@cydm/pie 4.9.0 → 4.10.0
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 +4 -4
- package/dist/builtin/extensions/im-forward/index.js +65 -33
- package/dist/builtin/extensions/memory/index.js +5 -5
- package/dist/builtin/extensions/pie-ipc/index.js +5 -5
- package/dist/builtin/extensions/pie-proc/index.js +336 -102
- package/dist/builtin/extensions/plan-mode/index.js +4 -4
- package/dist/builtin/extensions/subagent/index.js +5 -5
- package/dist/builtin/extensions/todo/index.js +4 -4
- package/dist/builtin/skills/computer-use-axi/computer-use-axi-broker.js +83 -10
- package/dist/chunks/{chunk-LRHNAG4V.js → chunk-5QMS6RQC.js} +7 -2
- package/dist/chunks/{chunk-EEC5PJTC.js → chunk-7LICWWUE.js} +3 -3
- package/dist/chunks/{chunk-BA4Z27XT.js → chunk-BQWHLYYZ.js} +1 -1
- package/dist/chunks/{chunk-Z5KL6AO2.js → chunk-BTUMBUDU.js} +2 -2
- package/dist/chunks/{chunk-WYXUF4MP.js → chunk-FC5AN5QP.js} +22 -1
- package/dist/chunks/{chunk-4UIUMTHG.js → chunk-G2K4GY6N.js} +1 -1
- package/dist/chunks/{chunk-DBDU3RRN.js → chunk-HK3FHIAH.js} +3 -3
- package/dist/chunks/{chunk-WBL73KRI.js → chunk-KWK7KTSZ.js} +1 -0
- package/dist/chunks/{chunk-PN6B54VT.js → chunk-XMTRKMBG.js} +6 -6
- package/dist/chunks/{host-image-fallback-RASJSVZY.js → host-image-fallback-3TEMOQM5.js} +1 -1
- package/dist/chunks/{model-registry-5TLYILYR.js → model-registry-QKJ3YVDS.js} +2 -2
- package/dist/chunks/{read-file-understanding-VPKDBV23.js → read-file-understanding-N2ZZQLTZ.js} +5 -5
- package/dist/chunks/{src-6QGGDHIW.js → src-3PSR2AAX.js} +3 -3
- package/dist/chunks/{src-2XI5P62J.js → src-D5GN4Q5O.js} +2 -2
- package/dist/chunks/{src-DI4MCAGT.js → src-F5N6O2HR.js} +4 -4
- package/dist/chunks/{src-CCEENRKC.js → src-TIDKYA5F.js} +1 -1
- package/dist/chunks/{test-stream-SYVWIPPW.js → test-stream-JAJHK44G.js} +1 -1
- package/dist/cli.js +2376 -1043
- package/package.json +1 -1
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
createPlanCapability,
|
|
7
7
|
markCompletedPlanSteps,
|
|
8
8
|
restoreExecutionState
|
|
9
|
-
} from "../../../chunks/chunk-
|
|
10
|
-
import "../../../chunks/chunk-
|
|
11
|
-
import "../../../chunks/chunk-
|
|
12
|
-
import "../../../chunks/chunk-
|
|
9
|
+
} from "../../../chunks/chunk-HK3FHIAH.js";
|
|
10
|
+
import "../../../chunks/chunk-5QMS6RQC.js";
|
|
11
|
+
import "../../../chunks/chunk-BQWHLYYZ.js";
|
|
12
|
+
import "../../../chunks/chunk-G2K4GY6N.js";
|
|
13
13
|
import {
|
|
14
14
|
Type
|
|
15
15
|
} from "../../../chunks/chunk-XXGYUYXI.js";
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
createCliRetryPolicy,
|
|
6
6
|
formatTransportLifecycle,
|
|
7
7
|
logTransportLifecycle
|
|
8
|
-
} from "../../../chunks/chunk-
|
|
8
|
+
} from "../../../chunks/chunk-7LICWWUE.js";
|
|
9
9
|
import {
|
|
10
10
|
SUBAGENT_SESSION_RECORD_VERSION,
|
|
11
11
|
createPolicyEnforcedTools,
|
|
12
12
|
createSharedFileSystemTools,
|
|
13
13
|
createSubagentCapability
|
|
14
|
-
} from "../../../chunks/chunk-
|
|
15
|
-
import "../../../chunks/chunk-
|
|
16
|
-
import "../../../chunks/chunk-
|
|
14
|
+
} from "../../../chunks/chunk-HK3FHIAH.js";
|
|
15
|
+
import "../../../chunks/chunk-5QMS6RQC.js";
|
|
16
|
+
import "../../../chunks/chunk-BQWHLYYZ.js";
|
|
17
17
|
import {
|
|
18
18
|
getConfigDir
|
|
19
19
|
} from "../../../chunks/chunk-CBDQJMUI.js";
|
|
20
|
-
import "../../../chunks/chunk-
|
|
20
|
+
import "../../../chunks/chunk-G2K4GY6N.js";
|
|
21
21
|
import "../../../chunks/chunk-XXGYUYXI.js";
|
|
22
22
|
import "../../../chunks/chunk-LZQXQOPJ.js";
|
|
23
23
|
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
executeManageTodoList,
|
|
9
9
|
executionStateToTodos,
|
|
10
10
|
restoreExecutionState
|
|
11
|
-
} from "../../../chunks/chunk-
|
|
12
|
-
import "../../../chunks/chunk-
|
|
13
|
-
import "../../../chunks/chunk-
|
|
14
|
-
import "../../../chunks/chunk-
|
|
11
|
+
} from "../../../chunks/chunk-HK3FHIAH.js";
|
|
12
|
+
import "../../../chunks/chunk-5QMS6RQC.js";
|
|
13
|
+
import "../../../chunks/chunk-BQWHLYYZ.js";
|
|
14
|
+
import "../../../chunks/chunk-G2K4GY6N.js";
|
|
15
15
|
import "../../../chunks/chunk-XXGYUYXI.js";
|
|
16
16
|
import "../../../chunks/chunk-LZQXQOPJ.js";
|
|
17
17
|
|
|
@@ -8395,7 +8395,7 @@ async function verifyProfileHolderDetailed(pid, profile) {
|
|
|
8395
8395
|
}
|
|
8396
8396
|
if (process.platform === "darwin") {
|
|
8397
8397
|
return await new Promise((resolve2) => {
|
|
8398
|
-
execFile("ps", ["-o", "command=", "-p", String(pid)], { timeout: 1500 }, (error, stdout) => {
|
|
8398
|
+
execFile("ps", ["-ww", "-o", "command=", "-p", String(pid)], { timeout: 1500 }, (error, stdout) => {
|
|
8399
8399
|
if (error) {
|
|
8400
8400
|
resolve2(pidStillAlive(pid) ? "unknown" : "no_match");
|
|
8401
8401
|
return;
|
|
@@ -8405,7 +8405,7 @@ async function verifyProfileHolderDetailed(pid, profile) {
|
|
|
8405
8405
|
resolve2(pidStillAlive(pid) ? "unknown" : "no_match");
|
|
8406
8406
|
return;
|
|
8407
8407
|
}
|
|
8408
|
-
resolve2(
|
|
8408
|
+
resolve2(evaluateMacOsPsCommand(command, profile));
|
|
8409
8409
|
});
|
|
8410
8410
|
});
|
|
8411
8411
|
}
|
|
@@ -8468,25 +8468,97 @@ function commandIncludesExactUserDataDir(command, profile) {
|
|
|
8468
8468
|
const exactFlag = `--user-data-dir=${profile}`;
|
|
8469
8469
|
return tokens.some((arg, i) => arg === exactFlag || arg === "--user-data-dir" && tokens[i + 1] === profile);
|
|
8470
8470
|
}
|
|
8471
|
-
|
|
8471
|
+
function evaluateMacOsPsCommand(command, profile) {
|
|
8472
|
+
const hasAmbiguousProfileChars = /[\s'"]/.test(profile);
|
|
8473
|
+
if (!hasAmbiguousProfileChars && commandIncludesExactUserDataDir(command, profile)) {
|
|
8474
|
+
return "match";
|
|
8475
|
+
}
|
|
8476
|
+
if (hasAmbiguousProfileChars && command.includes(profile)) {
|
|
8477
|
+
return "unknown";
|
|
8478
|
+
}
|
|
8479
|
+
if (tokenizeCommandLine(command) === void 0) {
|
|
8480
|
+
return "unknown";
|
|
8481
|
+
}
|
|
8482
|
+
return "no_match";
|
|
8483
|
+
}
|
|
8484
|
+
async function readProcessStartSignature(pid) {
|
|
8472
8485
|
if (process.platform === "win32") {
|
|
8486
|
+
return await new Promise((resolve2) => {
|
|
8487
|
+
execFile(
|
|
8488
|
+
"powershell.exe",
|
|
8489
|
+
[
|
|
8490
|
+
"-NoProfile",
|
|
8491
|
+
"-NonInteractive",
|
|
8492
|
+
"-Command",
|
|
8493
|
+
`Get-CimInstance Win32_Process -Filter "ProcessId=${pid}" | Select-Object -ExpandProperty CreationDate`
|
|
8494
|
+
],
|
|
8495
|
+
{ timeout: 2500, windowsHide: true },
|
|
8496
|
+
(error, stdout) => {
|
|
8497
|
+
if (error) {
|
|
8498
|
+
resolve2(null);
|
|
8499
|
+
return;
|
|
8500
|
+
}
|
|
8501
|
+
const sig = String(stdout ?? "").trim();
|
|
8502
|
+
resolve2(sig || null);
|
|
8503
|
+
}
|
|
8504
|
+
);
|
|
8505
|
+
});
|
|
8506
|
+
}
|
|
8507
|
+
return await new Promise((resolve2) => {
|
|
8508
|
+
execFile("ps", ["-o", "lstart=", "-p", String(pid)], { timeout: 1500 }, (error, stdout) => {
|
|
8509
|
+
if (error) {
|
|
8510
|
+
resolve2(null);
|
|
8511
|
+
return;
|
|
8512
|
+
}
|
|
8513
|
+
const sig = String(stdout ?? "").trim();
|
|
8514
|
+
resolve2(sig || null);
|
|
8515
|
+
});
|
|
8516
|
+
});
|
|
8517
|
+
}
|
|
8518
|
+
async function terminateVerifiedPid(pid, guard) {
|
|
8519
|
+
const verifyHolder = guard?.verifyHolder ?? verifyProfileHolderDetailed;
|
|
8520
|
+
const readStartSig = guard?.readStartSignature ?? readProcessStartSignature;
|
|
8521
|
+
const sendKill = guard?.kill ?? ((targetPid, signal) => {
|
|
8522
|
+
process.kill(targetPid, signal);
|
|
8523
|
+
});
|
|
8524
|
+
const sleep4 = guard?.sleep ?? ((ms) => new Promise((resolve2) => setTimeout(resolve2, ms)));
|
|
8525
|
+
const stillOwned = async () => {
|
|
8526
|
+
if (!guard) return true;
|
|
8527
|
+
if (await verifyHolder(pid, guard.profile) !== "match") return false;
|
|
8528
|
+
if (guard.expectedStartSignature) {
|
|
8529
|
+
const currentSig = await readStartSig(pid);
|
|
8530
|
+
if (!currentSig || currentSig !== guard.expectedStartSignature) return false;
|
|
8531
|
+
}
|
|
8532
|
+
return true;
|
|
8533
|
+
};
|
|
8534
|
+
if (!await stillOwned()) return false;
|
|
8535
|
+
if (process.platform === "win32" && !guard?.kill) {
|
|
8473
8536
|
await new Promise((resolve2) => {
|
|
8474
8537
|
execFile("taskkill.exe", ["/PID", String(pid), "/T", "/F"], { windowsHide: true, timeout: 3e3 }, () => resolve2());
|
|
8475
8538
|
});
|
|
8476
|
-
return;
|
|
8539
|
+
return true;
|
|
8477
8540
|
}
|
|
8478
8541
|
try {
|
|
8479
|
-
|
|
8542
|
+
sendKill(pid, "SIGTERM");
|
|
8480
8543
|
} catch {
|
|
8481
8544
|
}
|
|
8482
|
-
await
|
|
8483
|
-
|
|
8545
|
+
await sleep4(400);
|
|
8546
|
+
let alive = false;
|
|
8547
|
+
try {
|
|
8548
|
+
sendKill(pid, 0);
|
|
8549
|
+
alive = true;
|
|
8550
|
+
} catch (error) {
|
|
8551
|
+
alive = error.code === "EPERM";
|
|
8552
|
+
}
|
|
8553
|
+
if (alive) {
|
|
8554
|
+
if (!await stillOwned()) return false;
|
|
8484
8555
|
try {
|
|
8485
|
-
|
|
8556
|
+
sendKill(pid, "SIGKILL");
|
|
8486
8557
|
} catch {
|
|
8487
8558
|
}
|
|
8488
|
-
await
|
|
8559
|
+
await sleep4(300);
|
|
8489
8560
|
}
|
|
8561
|
+
return true;
|
|
8490
8562
|
}
|
|
8491
8563
|
async function signalTreeOfProfile(profile, signal) {
|
|
8492
8564
|
const scan = await scanProfileHolders(profile);
|
|
@@ -8983,11 +9055,12 @@ async function sweepOrphanedManagedBrowser() {
|
|
|
8983
9055
|
return;
|
|
8984
9056
|
}
|
|
8985
9057
|
const pidVerified = pid !== void 0 && await manifestPidIsOurBrowser(pid, resolved);
|
|
9058
|
+
const pidStartSignature = pidVerified && pid !== void 0 ? await readProcessStartSignature(pid) : null;
|
|
8986
9059
|
if (port && pidVerified) {
|
|
8987
9060
|
await requestBrowserClose(port).catch(() => void 0);
|
|
8988
9061
|
}
|
|
8989
9062
|
if (pidVerified && pid !== void 0) {
|
|
8990
|
-
await terminateVerifiedPid(pid);
|
|
9063
|
+
await terminateVerifiedPid(pid, { profile: resolved, expectedStartSignature: pidStartSignature });
|
|
8991
9064
|
}
|
|
8992
9065
|
await releaseOwnedBrowser(void 0, void 0, resolved);
|
|
8993
9066
|
clearManagedBrowserManifest();
|
|
@@ -2,14 +2,14 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
createAgentOperationError,
|
|
4
4
|
getAgentFailureMetadata
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BQWHLYYZ.js";
|
|
6
6
|
import {
|
|
7
7
|
FileSystemGateway,
|
|
8
8
|
detectPlatform,
|
|
9
9
|
getFileSystemGateway,
|
|
10
10
|
getPlatformConfig,
|
|
11
11
|
streamSimple
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-G2K4GY6N.js";
|
|
13
13
|
import {
|
|
14
14
|
Type
|
|
15
15
|
} from "./chunk-XXGYUYXI.js";
|
|
@@ -6243,6 +6243,8 @@ async function runAgentSessionControllerAutoCompact(params) {
|
|
|
6243
6243
|
}
|
|
6244
6244
|
if (!result?.aborted && runAfterAgentEndHook) {
|
|
6245
6245
|
await params.handleAgentEndHook(params.agent.state.messages.slice());
|
|
6246
|
+
} else if (result?.aborted && !cancelOnAbort && runAfterAgentEndHook) {
|
|
6247
|
+
params.scheduleQueuedTurn?.();
|
|
6246
6248
|
}
|
|
6247
6249
|
}
|
|
6248
6250
|
return result;
|
|
@@ -6615,6 +6617,9 @@ var AgentSessionController = class {
|
|
|
6615
6617
|
await this.continue();
|
|
6616
6618
|
},
|
|
6617
6619
|
handleAgentEndHook: (messages) => this.handleAgentEndHook(messages),
|
|
6620
|
+
scheduleQueuedTurn: () => {
|
|
6621
|
+
if (this.queue.length > 0) this.queueDispatcher.schedule();
|
|
6622
|
+
},
|
|
6618
6623
|
emitSettled: options?.emitSettled,
|
|
6619
6624
|
runAfterAgentEndHook: options?.runAfterAgentEndHook,
|
|
6620
6625
|
cancelOnAbort: options?.cancelOnAbort
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
createSharedWebSearchTool,
|
|
7
7
|
defaultShellKindForPlatform,
|
|
8
8
|
interpretShellExit
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HK3FHIAH.js";
|
|
10
10
|
import {
|
|
11
11
|
requestInteraction
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5QMS6RQC.js";
|
|
13
13
|
import {
|
|
14
14
|
getBuiltinDir,
|
|
15
15
|
getConfigDir
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
EMPTY_ASSISTANT_CONTENT_ERROR,
|
|
19
19
|
OPENAI_COMPAT_PROTOCOL_ERROR_CODE,
|
|
20
20
|
getLogger
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-G2K4GY6N.js";
|
|
22
22
|
import {
|
|
23
23
|
Type
|
|
24
24
|
} from "./chunk-XXGYUYXI.js";
|
|
@@ -2,13 +2,13 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
createReadFileUnderstandingHandler,
|
|
4
4
|
modalityForReadFileUnderstandingKind
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HK3FHIAH.js";
|
|
6
6
|
import {
|
|
7
7
|
readImageFormat
|
|
8
8
|
} from "./chunk-F7EBZTZO.js";
|
|
9
9
|
import {
|
|
10
10
|
getLogger
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-G2K4GY6N.js";
|
|
12
12
|
|
|
13
13
|
// src/capabilities/read-file-understanding.ts
|
|
14
14
|
import * as path10 from "node:path";
|
|
@@ -6,13 +6,14 @@ import {
|
|
|
6
6
|
ACTIVE_THINKING_LEVELS,
|
|
7
7
|
ALL_THINKING_LEVELS,
|
|
8
8
|
MODEL_CLASS_FALLBACK_ORDER,
|
|
9
|
+
getModelThinkingCapabilities,
|
|
9
10
|
isDisableWireCompatibleWithApi,
|
|
10
11
|
isThinkingModeCompatibleWithApi,
|
|
11
12
|
isThinkingSelectionLevel,
|
|
12
13
|
modelSupportsToolPurpose,
|
|
13
14
|
requiredCapabilityForToolPurpose,
|
|
14
15
|
sortToolModelCandidatesByCapability
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-G2K4GY6N.js";
|
|
16
17
|
|
|
17
18
|
// src/core/model-registry.ts
|
|
18
19
|
import * as fs from "fs";
|
|
@@ -138,6 +139,26 @@ function validateThinkingCapabilityForApi(value, api, label) {
|
|
|
138
139
|
if (cap.disableWire !== void 0 && !isDisableWireCompatibleWithApi(api, cap.disableWire)) {
|
|
139
140
|
throw new Error(`${label}.disableWire "${cap.disableWire}" is incompatible with api "${api}"`);
|
|
140
141
|
}
|
|
142
|
+
if (cap.defaultLevel !== void 0 && !Array.isArray(cap.supportedLevels) && cap.mode !== "none") {
|
|
143
|
+
const effective = getModelThinkingCapabilities({
|
|
144
|
+
id: "__validate__",
|
|
145
|
+
name: "__validate__",
|
|
146
|
+
api,
|
|
147
|
+
provider: "__validate__",
|
|
148
|
+
baseUrl: "",
|
|
149
|
+
reasoning: false,
|
|
150
|
+
thinking: cap,
|
|
151
|
+
input: ["text"],
|
|
152
|
+
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
|
153
|
+
contextWindow: 128e3,
|
|
154
|
+
maxTokens: 8192
|
|
155
|
+
});
|
|
156
|
+
if (effective.supportedLevels.length > 0 && !effective.supportedLevels.includes(cap.defaultLevel)) {
|
|
157
|
+
throw new Error(
|
|
158
|
+
`${label}.defaultLevel "${cap.defaultLevel}" is not supported by api "${api}" mode "${cap.mode}" (supported: ${effective.supportedLevels.join(", ")})`
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
141
162
|
}
|
|
142
163
|
function cloneThinkingCapability(value) {
|
|
143
164
|
if (!value) return void 0;
|
|
@@ -4362,8 +4362,8 @@ function buildDisableWire(cap, model) {
|
|
|
4362
4362
|
return { kind: "omit" };
|
|
4363
4363
|
}
|
|
4364
4364
|
function resolveThinkingSelection(model, requestedInput, options) {
|
|
4365
|
-
const requested = isThinkingSelectionLevel(requestedInput) ? requestedInput : "off";
|
|
4366
4365
|
const cap = getModelThinkingCapabilities(model);
|
|
4366
|
+
const requested = isThinkingSelectionLevel(requestedInput) ? requestedInput : cap.defaultLevel ?? "off";
|
|
4367
4367
|
if (model && isForcedNoneEffort(model)) {
|
|
4368
4368
|
return {
|
|
4369
4369
|
requested,
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
parseEntryIdSeq,
|
|
14
14
|
readAncestryPage,
|
|
15
15
|
requestInteraction
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5QMS6RQC.js";
|
|
17
17
|
import {
|
|
18
18
|
Agent,
|
|
19
19
|
getToolCallerIdentity
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BQWHLYYZ.js";
|
|
21
21
|
import {
|
|
22
22
|
ALL_THINKING_LEVELS,
|
|
23
23
|
AssistantMessageEventStream,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
hashText,
|
|
29
29
|
resolveThinkingSelection,
|
|
30
30
|
streamSimple
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-G2K4GY6N.js";
|
|
32
32
|
import {
|
|
33
33
|
Type
|
|
34
34
|
} from "./chunk-XXGYUYXI.js";
|
|
@@ -196,11 +196,11 @@ async function runDistillWorkerMain(memoryRoot, date, noExit = false, sessionsDi
|
|
|
196
196
|
let result;
|
|
197
197
|
let ledger;
|
|
198
198
|
try {
|
|
199
|
-
const { ModelRegistry } = await import("./model-registry-
|
|
199
|
+
const { ModelRegistry } = await import("./model-registry-QKJ3YVDS.js");
|
|
200
200
|
const { AuthStorage } = await import("./auth-storage-C3FZMT7J.js");
|
|
201
201
|
const { getSessionsDir } = await import("./config-4EOI5NOU.js");
|
|
202
|
-
const { FileSessionStore } = await import("./src-
|
|
203
|
-
const { MemoryStore, runDistillation } = await import("./src-
|
|
202
|
+
const { FileSessionStore } = await import("./src-3PSR2AAX.js");
|
|
203
|
+
const { MemoryStore, runDistillation } = await import("./src-F5N6O2HR.js");
|
|
204
204
|
const store = new MemoryStore(memoryRoot);
|
|
205
205
|
ledger = store;
|
|
206
206
|
const registry = new ModelRegistry(AuthStorage.create());
|
|
@@ -215,7 +215,7 @@ async function runDistillWorkerMain(memoryRoot, date, noExit = false, sessionsDi
|
|
|
215
215
|
if (!resolved.model || !resolved.apiKey) {
|
|
216
216
|
throw new Error(`no complete model/key pair for class ${modelClass}${resolved.fallbackReason ? `: ${resolved.fallbackReason}` : ""}`);
|
|
217
217
|
}
|
|
218
|
-
const { completeSimple } = await import("./src-
|
|
218
|
+
const { completeSimple } = await import("./src-TIDKYA5F.js");
|
|
219
219
|
const message = await withModelTimeout(
|
|
220
220
|
completeSimple(
|
|
221
221
|
resolved.model,
|
|
@@ -285,7 +285,7 @@ async function runDistillAuto(memoryRoot, days = 7, runner, sessionsDir) {
|
|
|
285
285
|
} catch {
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
|
-
const { MemoryStore, todayKey, harvestSessionsForDate } = await import("./src-
|
|
288
|
+
const { MemoryStore, todayKey, harvestSessionsForDate } = await import("./src-F5N6O2HR.js");
|
|
289
289
|
const store = new MemoryStore(memoryRoot);
|
|
290
290
|
const today = todayKey(Date.now());
|
|
291
291
|
const dates = [];
|
|
@@ -293,7 +293,7 @@ async function runDistillAuto(memoryRoot, days = 7, runner, sessionsDir) {
|
|
|
293
293
|
let recoveryCwdFilter;
|
|
294
294
|
if (sessionsDir) {
|
|
295
295
|
try {
|
|
296
|
-
const { FileSessionStore } = await import("./src-
|
|
296
|
+
const { FileSessionStore } = await import("./src-3PSR2AAX.js");
|
|
297
297
|
pinnedSessionStore = new FileSessionStore(path.resolve(sessionsDir));
|
|
298
298
|
const excludeCwds = await readExcludeCwds();
|
|
299
299
|
if (excludeCwds.length > 0) {
|
|
@@ -5,7 +5,7 @@ import "./chunk-LZQXQOPJ.js";
|
|
|
5
5
|
import * as os from "node:os";
|
|
6
6
|
async function describeImageViaUnderstandingChain(options) {
|
|
7
7
|
try {
|
|
8
|
-
const { understandReadFile } = await import("./read-file-understanding-
|
|
8
|
+
const { understandReadFile } = await import("./read-file-understanding-N2ZZQLTZ.js");
|
|
9
9
|
const ext = options.filePath.toLowerCase().split(".").pop() ?? "";
|
|
10
10
|
const mimeType = ext === "png" ? "image/png" : ext === "gif" ? "image/gif" : ext === "webp" ? "image/webp" : "image/jpeg";
|
|
11
11
|
const result = await understandReadFile(
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
assertNoSecretSubstrings,
|
|
5
5
|
configuredRemoteCredentialValues,
|
|
6
6
|
loadResolvedModelsConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FC5AN5QP.js";
|
|
8
8
|
import "./chunk-CBDQJMUI.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-G2K4GY6N.js";
|
|
10
10
|
import "./chunk-XXGYUYXI.js";
|
|
11
11
|
import "./chunk-LZQXQOPJ.js";
|
|
12
12
|
export {
|
package/dist/chunks/{read-file-understanding-VPKDBV23.js → read-file-understanding-N2ZZQLTZ.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
understandReadFile
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-BTUMBUDU.js";
|
|
5
|
+
import "./chunk-HK3FHIAH.js";
|
|
6
|
+
import "./chunk-5QMS6RQC.js";
|
|
7
|
+
import "./chunk-BQWHLYYZ.js";
|
|
8
8
|
import "./chunk-F7EBZTZO.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-G2K4GY6N.js";
|
|
10
10
|
import "./chunk-XXGYUYXI.js";
|
|
11
11
|
import "./chunk-LZQXQOPJ.js";
|
|
12
12
|
export {
|
|
@@ -142,9 +142,9 @@ import {
|
|
|
142
142
|
substituteArgs,
|
|
143
143
|
validateRetainedTailEntries,
|
|
144
144
|
verifyPreparedCompactionCommit
|
|
145
|
-
} from "./chunk-
|
|
146
|
-
import "./chunk-
|
|
147
|
-
import "./chunk-
|
|
145
|
+
} from "./chunk-5QMS6RQC.js";
|
|
146
|
+
import "./chunk-BQWHLYYZ.js";
|
|
147
|
+
import "./chunk-G2K4GY6N.js";
|
|
148
148
|
import "./chunk-XXGYUYXI.js";
|
|
149
149
|
import "./chunk-LZQXQOPJ.js";
|
|
150
150
|
export {
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
createToolCallerIdentity,
|
|
9
9
|
getAgentFailureMetadata,
|
|
10
10
|
getToolCallerIdentity
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-BQWHLYYZ.js";
|
|
12
|
+
import "./chunk-G2K4GY6N.js";
|
|
13
13
|
import "./chunk-XXGYUYXI.js";
|
|
14
14
|
import "./chunk-LZQXQOPJ.js";
|
|
15
15
|
export {
|
|
@@ -221,12 +221,12 @@ import {
|
|
|
221
221
|
understandFileWithModel,
|
|
222
222
|
validateTodos,
|
|
223
223
|
writeJournalNarrative
|
|
224
|
-
} from "./chunk-
|
|
225
|
-
import "./chunk-
|
|
226
|
-
import "./chunk-
|
|
224
|
+
} from "./chunk-HK3FHIAH.js";
|
|
225
|
+
import "./chunk-5QMS6RQC.js";
|
|
226
|
+
import "./chunk-BQWHLYYZ.js";
|
|
227
227
|
import {
|
|
228
228
|
hashText
|
|
229
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-G2K4GY6N.js";
|
|
230
230
|
import "./chunk-XXGYUYXI.js";
|
|
231
231
|
import "./chunk-LZQXQOPJ.js";
|
|
232
232
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
EventStream
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-G2K4GY6N.js";
|
|
5
5
|
import "./chunk-XXGYUYXI.js";
|
|
6
6
|
import "./chunk-LZQXQOPJ.js";
|
|
7
7
|
|