@cydm/pie 2.6.11 → 2.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builtin/extensions/ask-user/index.js +2 -2
- package/dist/builtin/extensions/plan-mode/index.js +2 -2
- package/dist/builtin/extensions/subagent/index.js +3 -3
- package/dist/builtin/extensions/todo/index.js +2 -2
- package/dist/chunks/{chunk-MA4CHFN4.js → chunk-AAEBH6KX.js} +1 -1
- package/dist/chunks/{chunk-PAC62XU4.js → chunk-HHNOENEH.js} +11 -2
- package/dist/chunks/{chunk-ZVM234WE.js → chunk-PPEWRUMQ.js} +13 -1
- package/dist/chunks/{src-HPIBCE2I.js → src-OWQI5M6W.js} +1 -1
- package/dist/cli.js +1529 -165
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createAskUserCapability
|
|
4
|
-
} from "../../../chunks/chunk-
|
|
5
|
-
import "../../../chunks/chunk-
|
|
4
|
+
} from "../../../chunks/chunk-PPEWRUMQ.js";
|
|
5
|
+
import "../../../chunks/chunk-HHNOENEH.js";
|
|
6
6
|
import "../../../chunks/chunk-7B4IIBVS.js";
|
|
7
7
|
import "../../../chunks/chunk-XXGYUYXI.js";
|
|
8
8
|
import "../../../chunks/chunk-LZQXQOPJ.js";
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
isPlanModeSafeCommand,
|
|
8
8
|
markCompletedPlanSteps,
|
|
9
9
|
restoreExecutionState
|
|
10
|
-
} from "../../../chunks/chunk-
|
|
11
|
-
import "../../../chunks/chunk-
|
|
10
|
+
} from "../../../chunks/chunk-PPEWRUMQ.js";
|
|
11
|
+
import "../../../chunks/chunk-HHNOENEH.js";
|
|
12
12
|
import "../../../chunks/chunk-7B4IIBVS.js";
|
|
13
13
|
import {
|
|
14
14
|
Type
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createCliHostCapabilities
|
|
4
|
-
} from "../../../chunks/chunk-
|
|
4
|
+
} from "../../../chunks/chunk-AAEBH6KX.js";
|
|
5
5
|
import {
|
|
6
6
|
SUBAGENT_SESSION_RECORD_VERSION,
|
|
7
7
|
createSharedFileSystemTools,
|
|
8
8
|
createSubagentCapability
|
|
9
|
-
} from "../../../chunks/chunk-
|
|
10
|
-
import "../../../chunks/chunk-
|
|
9
|
+
} from "../../../chunks/chunk-PPEWRUMQ.js";
|
|
10
|
+
import "../../../chunks/chunk-HHNOENEH.js";
|
|
11
11
|
import "../../../chunks/chunk-7B4IIBVS.js";
|
|
12
12
|
import "../../../chunks/chunk-5353DEEC.js";
|
|
13
13
|
import "../../../chunks/chunk-XXGYUYXI.js";
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
executeManageTodoList,
|
|
9
9
|
executionStateToTodos,
|
|
10
10
|
restoreExecutionState
|
|
11
|
-
} from "../../../chunks/chunk-
|
|
12
|
-
import "../../../chunks/chunk-
|
|
11
|
+
} from "../../../chunks/chunk-PPEWRUMQ.js";
|
|
12
|
+
import "../../../chunks/chunk-HHNOENEH.js";
|
|
13
13
|
import "../../../chunks/chunk-7B4IIBVS.js";
|
|
14
14
|
import "../../../chunks/chunk-XXGYUYXI.js";
|
|
15
15
|
import "../../../chunks/chunk-LZQXQOPJ.js";
|
|
@@ -261,7 +261,15 @@ async function streamAssistantResponse(context, config, signal, stream, streamFn
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
|
|
264
|
+
const finalResult = await response.result();
|
|
265
|
+
if (signal?.aborted && finalResult.stopReason === "stop") {
|
|
266
|
+
const adjusted = { ...finalResult, stopReason: "aborted" };
|
|
267
|
+
if (addedPartial && context.messages.length > 0) {
|
|
268
|
+
context.messages[context.messages.length - 1] = adjusted;
|
|
269
|
+
}
|
|
270
|
+
return adjusted;
|
|
271
|
+
}
|
|
272
|
+
return finalResult;
|
|
265
273
|
}
|
|
266
274
|
async function executeToolCalls(tools, assistantMessage, signal, stream, getSteeringMessages, hooks) {
|
|
267
275
|
const toolCalls = assistantMessage.content.filter((c) => c.type === "toolCall");
|
|
@@ -833,7 +841,8 @@ var Agent = class {
|
|
|
833
841
|
(c) => c.type === "thinking" && c.thinking?.trim().length > 0 || c.type === "text" && c.text?.trim().length > 0 || c.type === "toolCall" && c.name?.trim().length > 0
|
|
834
842
|
);
|
|
835
843
|
if (!onlyEmpty) {
|
|
836
|
-
this.
|
|
844
|
+
const effective = this.abortController?.signal.aborted && partial.stopReason === "stop" ? { ...partial, stopReason: "aborted" } : partial;
|
|
845
|
+
this.appendMessage(effective);
|
|
837
846
|
}
|
|
838
847
|
}
|
|
839
848
|
} catch (err) {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
Agent,
|
|
4
4
|
getToolCallerIdentity
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HHNOENEH.js";
|
|
6
6
|
import {
|
|
7
7
|
AssistantMessageEventStream,
|
|
8
8
|
FileSystemGateway,
|
|
@@ -8664,6 +8664,18 @@ var SessionTraceSnapshotWriter = class {
|
|
|
8664
8664
|
recentTurnsLimit;
|
|
8665
8665
|
recentEventsLimit;
|
|
8666
8666
|
debounceMs;
|
|
8667
|
+
/**
|
|
8668
|
+
* Current in-memory trace snapshot for the active session, or null
|
|
8669
|
+
* when no session is active. Read-only observability accessor: never
|
|
8670
|
+
* loads, mutates, or flushes state.
|
|
8671
|
+
*/
|
|
8672
|
+
getLiveSnapshot() {
|
|
8673
|
+
if (!this.cachedSessionId || !this.cachedController) return null;
|
|
8674
|
+
if (this.cachedSessionId !== String(this.options.getSessionId() || "").trim()) {
|
|
8675
|
+
return null;
|
|
8676
|
+
}
|
|
8677
|
+
return this.cachedController.getSnapshot();
|
|
8678
|
+
}
|
|
8667
8679
|
loadController(sessionId) {
|
|
8668
8680
|
if (this.cachedSessionId === sessionId && this.cachedController) {
|
|
8669
8681
|
return this.cachedController;
|