fix: clean up embedded lint
This commit is contained in:
@@ -25,7 +25,6 @@ import {
|
|||||||
import type { ThinkLevel, VerboseLevel } from "../auto-reply/thinking.js";
|
import type { ThinkLevel, VerboseLevel } from "../auto-reply/thinking.js";
|
||||||
import { formatToolAggregate } from "../auto-reply/tool-meta.js";
|
import { formatToolAggregate } from "../auto-reply/tool-meta.js";
|
||||||
import type { ClawdisConfig } from "../config/config.js";
|
import type { ClawdisConfig } from "../config/config.js";
|
||||||
import { logVerbose } from "../globals.js";
|
|
||||||
import { getMachineDisplayName } from "../infra/machine-name.js";
|
import { getMachineDisplayName } from "../infra/machine-name.js";
|
||||||
import { splitMediaFromOutput } from "../media/parse.js";
|
import { splitMediaFromOutput } from "../media/parse.js";
|
||||||
import {
|
import {
|
||||||
@@ -380,9 +379,9 @@ export async function runEmbeddedPiAgent(params: {
|
|||||||
|
|
||||||
const thinkingLevel = mapThinkingLevel(params.thinkLevel);
|
const thinkingLevel = mapThinkingLevel(params.thinkLevel);
|
||||||
|
|
||||||
defaultRuntime.log?.(
|
defaultRuntime.log?.(
|
||||||
`embedded run start: runId=${params.runId} sessionId=${params.sessionId} provider=${provider} model=${modelId} surface=${params.surface ?? "unknown"}`,
|
`embedded run start: runId=${params.runId} sessionId=${params.sessionId} provider=${provider} model=${modelId} surface=${params.surface ?? "unknown"}`,
|
||||||
);
|
);
|
||||||
|
|
||||||
await fs.mkdir(resolvedWorkspace, { recursive: true });
|
await fs.mkdir(resolvedWorkspace, { recursive: true });
|
||||||
await ensureSessionHeader({
|
await ensureSessionHeader({
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import {
|
|||||||
createToolDebouncer,
|
createToolDebouncer,
|
||||||
formatToolAggregate,
|
formatToolAggregate,
|
||||||
} from "../auto-reply/tool-meta.js";
|
} from "../auto-reply/tool-meta.js";
|
||||||
import { defaultRuntime } from "../runtime.js";
|
|
||||||
import { emitAgentEvent } from "../infra/agent-events.js";
|
import { emitAgentEvent } from "../infra/agent-events.js";
|
||||||
import { splitMediaFromOutput } from "../media/parse.js";
|
import { splitMediaFromOutput } from "../media/parse.js";
|
||||||
|
import { defaultRuntime } from "../runtime.js";
|
||||||
import {
|
import {
|
||||||
extractAssistantText,
|
extractAssistantText,
|
||||||
inferToolMetaFromArgs,
|
inferToolMetaFromArgs,
|
||||||
@@ -463,7 +463,9 @@ export function subscribeEmbeddedPiSession(params: {
|
|||||||
if (evt.type === "auto_compaction_start") {
|
if (evt.type === "auto_compaction_start") {
|
||||||
compactionInFlight = true;
|
compactionInFlight = true;
|
||||||
ensureCompactionPromise();
|
ensureCompactionPromise();
|
||||||
defaultRuntime.log?.(`embedded run compaction start: runId=${params.runId}`);
|
defaultRuntime.log?.(
|
||||||
|
`embedded run compaction start: runId=${params.runId}`,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (evt.type === "auto_compaction_end") {
|
if (evt.type === "auto_compaction_end") {
|
||||||
@@ -472,7 +474,9 @@ export function subscribeEmbeddedPiSession(params: {
|
|||||||
if (willRetry) {
|
if (willRetry) {
|
||||||
noteCompactionRetry();
|
noteCompactionRetry();
|
||||||
resetForCompactionRetry();
|
resetForCompactionRetry();
|
||||||
defaultRuntime.log?.(`embedded run compaction retry: runId=${params.runId}`);
|
defaultRuntime.log?.(
|
||||||
|
`embedded run compaction retry: runId=${params.runId}`,
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
maybeResolveCompactionWait();
|
maybeResolveCompactionWait();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user