jinzd-ai-cli 0.4.287 → 0.4.288
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/{batch-6OH7D5YU.js → batch-YAEXKK2C.js} +2 -2
- package/dist/{chunk-AXSWLNCU.js → chunk-37WBQV3E.js} +90 -127
- package/dist/{chunk-HEUB5PV6.js → chunk-5G6HX57U.js} +1 -1
- package/dist/{chunk-L7RAEUUN.js → chunk-6NEEFOVF.js} +1 -1
- package/dist/{chunk-5F7BGV72.js → chunk-7RC7AN6V.js} +1 -1
- package/dist/{chunk-EU6NMK7G.js → chunk-C5UAM4X7.js} +3 -3
- package/dist/{chunk-3BHJKMPQ.js → chunk-E66SCDTD.js} +1 -1
- package/dist/{chunk-L625B2XV.js → chunk-EYA4IXQJ.js} +1 -1
- package/dist/{chunk-3Y5BCGD2.js → chunk-G5QZS5TN.js} +1 -1
- package/dist/{chunk-ERDFOXYK.js → chunk-JBNNJ32H.js} +1 -1
- package/dist/{chunk-HNUT4STJ.js → chunk-NJDQCQ7P.js} +7 -7
- package/dist/{chunk-UDFK5Q52.js → chunk-O4CZPTPU.js} +1 -1
- package/dist/{chunk-CYUAHF6X.js → chunk-U4NQ2IRE.js} +1 -1
- package/dist/{chunk-RZVGR3KD.js → chunk-WQ2YQ5YC.js} +3 -3
- package/dist/{ci-WXCMI4ND.js → ci-RO2NLIRH.js} +4 -4
- package/dist/{ci-format-JXD2BQM6.js → ci-format-GBSRK2J4.js} +2 -2
- package/dist/{constants-SRRV3K5Y.js → constants-JQP6BENR.js} +1 -1
- package/dist/{constants-2B7CN2ER.js → constants-T2B3SBMR.js} +1 -1
- package/dist/{doctor-cli-LQYTDJ74.js → doctor-cli-CVOE7FAE.js} +4 -4
- package/dist/electron-server.js +117 -235
- package/dist/{hub-Y62P5MIA.js → hub-LFWL5PGH.js} +1 -1
- package/dist/index.js +17 -17
- package/dist/{persistent-memory-46JSUEYV.js → persistent-memory-4UR27ACM.js} +2 -2
- package/dist/{persistent-memory-3N2XQKJK.js → persistent-memory-LFE3YHZO.js} +2 -2
- package/dist/{pr-L7Y3XHGL.js → pr-3QAG7XO7.js} +4 -4
- package/dist/{run-tests-WC644BHH.js → run-tests-GGNFI7CL.js} +2 -2
- package/dist/{run-tests-3ZOMRFIX.js → run-tests-R3JB4UEI.js} +2 -2
- package/dist/{server-XWURZCAF.js → server-I6DXVJRO.js} +39 -114
- package/dist/{server-L4QHJT2I.js → server-THHSJRNI.js} +5 -5
- package/dist/{task-orchestrator-6TVKJYKC.js → task-orchestrator-6HH3KQUQ.js} +5 -5
- package/dist/{usage-L2PSI2KH.js → usage-UB4ZT5PE.js} +2 -2
- package/package.json +1 -1
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
touchMemoryReferences,
|
|
28
28
|
updateMemoryApproval,
|
|
29
29
|
updateMemoryEntry
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-EYA4IXQJ.js";
|
|
31
31
|
import "./chunk-FSC6KEWU.js";
|
|
32
32
|
import "./chunk-6BUTA5VW.js";
|
|
33
33
|
import "./chunk-CGLYJRFA.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-U4NQ2IRE.js";
|
|
35
35
|
export {
|
|
36
36
|
addMemoryEntry,
|
|
37
37
|
backupMemoryStore,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
countSeverity,
|
|
4
4
|
runCi
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-WQ2YQ5YC.js";
|
|
6
|
+
import "./chunk-G5QZS5TN.js";
|
|
7
7
|
import {
|
|
8
8
|
buildReviewPrompt,
|
|
9
9
|
buildSecurityReviewPrompt,
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
} from "./chunk-ALSSNFNK.js";
|
|
18
18
|
import {
|
|
19
19
|
ConfigManager
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7RC7AN6V.js";
|
|
21
21
|
import "./chunk-TEXT4DAT.js";
|
|
22
22
|
import "./chunk-TU3L3PW7.js";
|
|
23
23
|
import "./chunk-IW3Q7AE5.js";
|
|
24
24
|
import {
|
|
25
25
|
VERSION
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-O4CZPTPU.js";
|
|
27
27
|
|
|
28
28
|
// src/cli/pr.ts
|
|
29
29
|
import { execFileSync } from "child_process";
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
skillHistoryNote,
|
|
82
82
|
snapshotFile,
|
|
83
83
|
stripRoutingTags
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-NJDQCQ7P.js";
|
|
85
85
|
import {
|
|
86
86
|
CNY_PER_USD,
|
|
87
87
|
CostTracker,
|
|
@@ -100,9 +100,11 @@ import {
|
|
|
100
100
|
cleanupRejectedTeeFile,
|
|
101
101
|
clearBashSession,
|
|
102
102
|
clearRecentlyDeniedAutoActions,
|
|
103
|
+
decideToolGate,
|
|
103
104
|
defaultActionClassifier,
|
|
104
105
|
estimateTokens,
|
|
105
106
|
formatPermissionProfileWarning,
|
|
107
|
+
gateMessages,
|
|
106
108
|
getPreferredAgentName,
|
|
107
109
|
getRecentlyDeniedAutoActions,
|
|
108
110
|
googleSearchContext,
|
|
@@ -110,6 +112,7 @@ import {
|
|
|
110
112
|
isToolCapableProvider,
|
|
111
113
|
listAgentConfigs,
|
|
112
114
|
listAgentRuns,
|
|
115
|
+
needsPermissionRequestHook,
|
|
113
116
|
recordRecentlyDeniedAutoAction,
|
|
114
117
|
renderDiff,
|
|
115
118
|
requestAgentStop,
|
|
@@ -123,7 +126,7 @@ import {
|
|
|
123
126
|
spawnAgentContext,
|
|
124
127
|
truncateOutput,
|
|
125
128
|
undoStack
|
|
126
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-37WBQV3E.js";
|
|
127
130
|
import {
|
|
128
131
|
buildReviewPrompt,
|
|
129
132
|
buildSecurityReviewPrompt
|
|
@@ -150,7 +153,7 @@ import {
|
|
|
150
153
|
restoreMemoryEntries,
|
|
151
154
|
updateMemoryApproval,
|
|
152
155
|
updateMemoryEntry
|
|
153
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-JBNNJ32H.js";
|
|
154
157
|
import "./chunk-4DEMGCK4.js";
|
|
155
158
|
import "./chunk-UUSRWSSX.js";
|
|
156
159
|
import "./chunk-CKH4KQ4E.js";
|
|
@@ -169,7 +172,7 @@ import {
|
|
|
169
172
|
buildDoctorReport,
|
|
170
173
|
formatDoctorReport,
|
|
171
174
|
loadContextFiles
|
|
172
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-C5UAM4X7.js";
|
|
173
176
|
import {
|
|
174
177
|
describePlugin,
|
|
175
178
|
getActivePluginAssets,
|
|
@@ -184,14 +187,14 @@ import {
|
|
|
184
187
|
runTool,
|
|
185
188
|
setPluginEnabled,
|
|
186
189
|
trustPlugin
|
|
187
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-5G6HX57U.js";
|
|
188
191
|
import "./chunk-RS7SKYTS.js";
|
|
189
192
|
import {
|
|
190
193
|
ProviderRegistry
|
|
191
194
|
} from "./chunk-ALSSNFNK.js";
|
|
192
195
|
import {
|
|
193
196
|
ConfigManager
|
|
194
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-7RC7AN6V.js";
|
|
195
198
|
import {
|
|
196
199
|
CONTENT_ONLY_STREAM_REMINDER,
|
|
197
200
|
TEE_FINAL_USER_NUDGE,
|
|
@@ -221,7 +224,7 @@ import {
|
|
|
221
224
|
maskConfigSecrets
|
|
222
225
|
} from "./chunk-XNFIYS7G.js";
|
|
223
226
|
import "./chunk-4BKXL7SM.js";
|
|
224
|
-
import "./chunk-
|
|
227
|
+
import "./chunk-6NEEFOVF.js";
|
|
225
228
|
import {
|
|
226
229
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
227
230
|
AUTHOR,
|
|
@@ -237,7 +240,7 @@ import {
|
|
|
237
240
|
SKILLS_DIR_NAME,
|
|
238
241
|
VERSION,
|
|
239
242
|
buildUserIdentityPrompt
|
|
240
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-O4CZPTPU.js";
|
|
241
244
|
|
|
242
245
|
// src/web/server.ts
|
|
243
246
|
import express from "express";
|
|
@@ -488,15 +491,6 @@ var ToolExecutorWeb = class _ToolExecutorWeb {
|
|
|
488
491
|
{ configDir: this.hookConfigDir, onSummary: (message) => this.send({ type: "info", message: `[hook] ${message}` }) }
|
|
489
492
|
);
|
|
490
493
|
const preDeny = preToolDecisions.find((d) => d.action === "deny");
|
|
491
|
-
if (preDeny) {
|
|
492
|
-
const result = {
|
|
493
|
-
callId: call.id,
|
|
494
|
-
content: `[Hook denied] ${preDeny.reason ?? `PreToolUse blocked ${call.name}`}. Do not retry without asking.`,
|
|
495
|
-
isError: true
|
|
496
|
-
};
|
|
497
|
-
this.sendToolCallResult(call, result.content, true);
|
|
498
|
-
return result;
|
|
499
|
-
}
|
|
500
494
|
for (const d of preToolDecisions) {
|
|
501
495
|
const warnings = [d.warning, ...d.warnings ?? []].filter(Boolean);
|
|
502
496
|
for (const warning of warnings) this.send({ type: "info", message: `[hook] ${warning}` });
|
|
@@ -516,7 +510,19 @@ var ToolExecutorWeb = class _ToolExecutorWeb {
|
|
|
516
510
|
}
|
|
517
511
|
);
|
|
518
512
|
const networkPermission = checkNetworkPolicy(call.name, call.arguments, this.networkPolicy);
|
|
519
|
-
|
|
513
|
+
const gate = decideToolGate(call, {
|
|
514
|
+
dangerLevel,
|
|
515
|
+
permission,
|
|
516
|
+
networkPermission,
|
|
517
|
+
hookDeny: preDeny ? { reason: preDeny.reason } : void 0,
|
|
518
|
+
sessionAutoMode: this.sessionAutoMode,
|
|
519
|
+
sessionAutoApprove: this.sessionAutoApprove,
|
|
520
|
+
classify: () => defaultActionClassifier.classify(call, dangerLevel, {
|
|
521
|
+
workspaceRoot: this.workspaceRoot,
|
|
522
|
+
tempDirs: [tmpdir()]
|
|
523
|
+
})
|
|
524
|
+
});
|
|
525
|
+
if (needsPermissionRequestHook({ permission, networkPermission })) {
|
|
520
526
|
runLifecycleHooks(
|
|
521
527
|
this.hookConfig,
|
|
522
528
|
"PermissionRequest",
|
|
@@ -524,105 +530,24 @@ var ToolExecutorWeb = class _ToolExecutorWeb {
|
|
|
524
530
|
{ configDir: this.hookConfigDir, onSummary: (message) => this.send({ type: "info", message: "[hook] " + message }) }
|
|
525
531
|
);
|
|
526
532
|
}
|
|
527
|
-
if (
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
content: `[Permission denied] Tool ${call.name} is blocked by networkPolicy${reason}. Do not retry.`,
|
|
532
|
-
isError: true
|
|
533
|
-
};
|
|
533
|
+
if (gate.kind === "denied") {
|
|
534
|
+
if (gate.source === "auto-mode") recordRecentlyDeniedAutoAction(call, gate.classification);
|
|
535
|
+
this.sendToolCallResult(call, gate.message, true);
|
|
536
|
+
return { callId: call.id, content: gate.message, isError: true };
|
|
534
537
|
}
|
|
535
|
-
if (
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
content: `[Permission denied] Tool ${call.name} is blocked by permission profile "${permission.profileName}"${reason}. Do not retry.`,
|
|
540
|
-
isError: true
|
|
541
|
-
};
|
|
542
|
-
}
|
|
543
|
-
if (permission.action === "auto-approve" && networkPermission?.action !== "confirm") {
|
|
544
|
-
this.sendToolCallStart(call);
|
|
545
|
-
try {
|
|
546
|
-
const rawContent = await runTool(tool, call.arguments, call.name);
|
|
547
|
-
const content = truncateOutput(rawContent, call.name);
|
|
548
|
-
this.sendToolCallResult(call, rawContent, false);
|
|
549
|
-
runHook(this.hookConfig?.postToolExecution, { tool: call.name, status: "ok" });
|
|
550
|
-
runLifecycleHooks(this.hookConfig, "PostToolUse", { tool: call.name, status: "ok" }, { configDir: this.hookConfigDir });
|
|
551
|
-
return { callId: call.id, content, isError: false };
|
|
552
|
-
} catch (err) {
|
|
553
|
-
const message = err instanceof Error ? err.message : err && typeof err === "object" && "message" in err ? String(err.message) : String(err);
|
|
554
|
-
this.sendToolCallResult(call, message, true);
|
|
555
|
-
runHook(this.hookConfig?.postToolExecution, { tool: call.name, status: "error" });
|
|
556
|
-
runLifecycleHooks(this.hookConfig, "PostToolUse", { tool: call.name, status: "error", error: message }, { configDir: this.hookConfigDir });
|
|
557
|
-
return { callId: call.id, content: message, isError: true };
|
|
538
|
+
if (gate.kind === "confirm") {
|
|
539
|
+
if (!toolCallStarted) {
|
|
540
|
+
this.sendToolCallStart(call);
|
|
541
|
+
toolCallStarted = true;
|
|
558
542
|
}
|
|
559
|
-
|
|
560
|
-
const requiresHardConfirmation = permission.action === "confirm" && permission.hardBoundary === true;
|
|
561
|
-
if ((networkPermission?.action === "confirm" || requiresHardConfirmation) && dangerLevel === "safe") {
|
|
562
|
-
this.sendToolCallStart(call);
|
|
563
|
-
toolCallStarted = true;
|
|
564
|
-
const confirmed = await this.confirm(call, "write");
|
|
543
|
+
const confirmed = await this.confirm(call, gate.level);
|
|
565
544
|
if (!confirmed) {
|
|
566
|
-
const rejectionMsg =
|
|
545
|
+
const rejectionMsg = gate.source === "permission" ? gateMessages.permissionCancelled(call.name) : gateMessages.operationCancelled(call.name, gate.level);
|
|
567
546
|
this.sendToolCallResult(call, rejectionMsg, true);
|
|
568
547
|
return { callId: call.id, content: rejectionMsg, isError: true };
|
|
569
548
|
}
|
|
570
549
|
}
|
|
571
550
|
if (!toolCallStarted) this.sendToolCallStart(call);
|
|
572
|
-
if (this.sessionAutoMode && networkPermission?.action !== "confirm") {
|
|
573
|
-
const classification = defaultActionClassifier.classify(call, dangerLevel, {
|
|
574
|
-
workspaceRoot: this.workspaceRoot,
|
|
575
|
-
tempDirs: [tmpdir()]
|
|
576
|
-
});
|
|
577
|
-
if (classification.decision === "deny") {
|
|
578
|
-
recordRecentlyDeniedAutoAction(call, classification);
|
|
579
|
-
const rejectionMsg = `[Auto denied] ${classification.reason}. Do not retry without asking.`;
|
|
580
|
-
this.sendToolCallResult(call, rejectionMsg, true);
|
|
581
|
-
return { callId: call.id, content: rejectionMsg, isError: true };
|
|
582
|
-
}
|
|
583
|
-
if (classification.decision === "auto-approve" && !requiresHardConfirmation) {
|
|
584
|
-
this.send({ type: "info", message: `\u26A1 Auto-approved (/auto: ${classification.ruleId})` });
|
|
585
|
-
try {
|
|
586
|
-
const rawContent = await runTool(tool, call.arguments, call.name);
|
|
587
|
-
const content = truncateOutput(rawContent, call.name);
|
|
588
|
-
this.sendToolCallResult(call, rawContent, false);
|
|
589
|
-
runHook(this.hookConfig?.postToolExecution, { tool: call.name, status: "ok" });
|
|
590
|
-
runLifecycleHooks(this.hookConfig, "PostToolUse", { tool: call.name, status: "ok" }, { configDir: this.hookConfigDir });
|
|
591
|
-
return { callId: call.id, content, isError: false };
|
|
592
|
-
} catch (err) {
|
|
593
|
-
const message = err instanceof Error ? err.message : err && typeof err === "object" && "message" in err ? String(err.message) : String(err);
|
|
594
|
-
this.sendToolCallResult(call, message, true);
|
|
595
|
-
runHook(this.hookConfig?.postToolExecution, { tool: call.name, status: "error" });
|
|
596
|
-
runLifecycleHooks(this.hookConfig, "PostToolUse", { tool: call.name, status: "error", error: message }, { configDir: this.hookConfigDir });
|
|
597
|
-
return { callId: call.id, content: message, isError: true };
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
if (this.sessionAutoApprove && dangerLevel === "write" && !requiresHardConfirmation) {
|
|
602
|
-
try {
|
|
603
|
-
const rawContent = await runTool(tool, call.arguments, call.name);
|
|
604
|
-
const content = truncateOutput(rawContent, call.name);
|
|
605
|
-
this.sendToolCallResult(call, rawContent, false);
|
|
606
|
-
runHook(this.hookConfig?.postToolExecution, { tool: call.name, status: "ok" });
|
|
607
|
-
runLifecycleHooks(this.hookConfig, "PostToolUse", { tool: call.name, status: "ok" }, { configDir: this.hookConfigDir });
|
|
608
|
-
return { callId: call.id, content, isError: false };
|
|
609
|
-
} catch (err) {
|
|
610
|
-
const message = err instanceof Error ? err.message : err && typeof err === "object" && "message" in err ? String(err.message) : String(err);
|
|
611
|
-
this.sendToolCallResult(call, message, true);
|
|
612
|
-
runHook(this.hookConfig?.postToolExecution, { tool: call.name, status: "error" });
|
|
613
|
-
runLifecycleHooks(this.hookConfig, "PostToolUse", { tool: call.name, status: "error", error: message }, { configDir: this.hookConfigDir });
|
|
614
|
-
return { callId: call.id, content: message, isError: true };
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
if (dangerLevel === "write" || dangerLevel === "destructive") {
|
|
618
|
-
const confirmed = await this.confirm(call, dangerLevel);
|
|
619
|
-
if (!confirmed) {
|
|
620
|
-
const label = dangerLevel === "destructive" ? "destructive " : "";
|
|
621
|
-
const rejectionMsg = `[User cancelled] The user declined the ${label}${call.name} operation. Do not retry without asking.`;
|
|
622
|
-
this.sendToolCallResult(call, rejectionMsg, true);
|
|
623
|
-
return { callId: call.id, content: rejectionMsg, isError: true };
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
551
|
try {
|
|
627
552
|
const rawContent = await runTool(tool, call.arguments, call.name);
|
|
628
553
|
const content = truncateOutput(rawContent, call.name);
|
|
@@ -995,7 +920,7 @@ Cache: write=${cacheCreate} read=${cacheRead}` : "";
|
|
|
995
920
|
Cost: ${formatCost(cost)}` : "";
|
|
996
921
|
let memoryLine = "";
|
|
997
922
|
try {
|
|
998
|
-
const { countPendingMemories: countPendingMemories2 } = await import("./persistent-memory-
|
|
923
|
+
const { countPendingMemories: countPendingMemories2 } = await import("./persistent-memory-4UR27ACM.js");
|
|
999
924
|
const pending = countPendingMemories2(ctx.config.getConfigDir());
|
|
1000
925
|
if (pending > 0) memoryLine = `
|
|
1001
926
|
Memory: \u26A0 ${pending} pending approval \u2014 see the Memory panel or /memory`;
|
|
@@ -1919,7 +1844,7 @@ async function handleTest(args, ctx) {
|
|
|
1919
1844
|
const isCommand = argStr.includes(" ") || /^(mvn|gradle|npm|pytest|cargo|go)\b/.test(argStr);
|
|
1920
1845
|
testArgs = isCommand ? { command: argStr } : { filter: argStr };
|
|
1921
1846
|
}
|
|
1922
|
-
const runTests = ctx.runTests ?? (await import("./run-tests-
|
|
1847
|
+
const runTests = ctx.runTests ?? (await import("./run-tests-GGNFI7CL.js")).executeTests;
|
|
1923
1848
|
const report = await runTests(testArgs);
|
|
1924
1849
|
ctx.send({ type: "info", message: report });
|
|
1925
1850
|
} catch (err) {
|
|
@@ -2194,7 +2119,7 @@ async function handleMemory(args, ctx) {
|
|
|
2194
2119
|
}
|
|
2195
2120
|
if (intent.kind === "status") {
|
|
2196
2121
|
const { getChatIndexStatus } = await import("./chat-index-2D5GK2DB.js");
|
|
2197
|
-
const { listMemoryEntries: listMemoryEntries2, isMemoryExpired: isMemoryExpired2, formatMemoryForPrompt: formatMemoryForPrompt2 } = await import("./persistent-memory-
|
|
2122
|
+
const { listMemoryEntries: listMemoryEntries2, isMemoryExpired: isMemoryExpired2, formatMemoryForPrompt: formatMemoryForPrompt2 } = await import("./persistent-memory-4UR27ACM.js");
|
|
2198
2123
|
const memories = listMemoryEntries2(configDir, { includeExpired: true, includeRejected: true });
|
|
2199
2124
|
const injected = formatMemoryForPrompt2(configDir, process.cwd(), ctx.config.get("memory")?.maxChars);
|
|
2200
2125
|
const view = buildMemoryStatusView({
|
|
@@ -2217,7 +2142,7 @@ async function handleMemory(args, ctx) {
|
|
|
2217
2142
|
return;
|
|
2218
2143
|
}
|
|
2219
2144
|
if (intent.kind === "recall") {
|
|
2220
|
-
const { searchPersistentMemories, touchMemoryReferences } = await import("./persistent-memory-
|
|
2145
|
+
const { searchPersistentMemories, touchMemoryReferences } = await import("./persistent-memory-4UR27ACM.js");
|
|
2221
2146
|
const { searchChatMemory } = await import("./chat-index-2D5GK2DB.js");
|
|
2222
2147
|
const persistentHits = searchPersistentMemories(configDir, intent.query, process.cwd(), 3);
|
|
2223
2148
|
if (persistentHits.length > 0) {
|
|
@@ -2338,7 +2263,7 @@ async function handleMemory(args, ctx) {
|
|
|
2338
2263
|
ctx.handleMemoryManage(intent.action, args[1], intent.action === "expire" ? args[2] : void 0);
|
|
2339
2264
|
} else if (intent.kind === "export") {
|
|
2340
2265
|
if (args[1] === "md") {
|
|
2341
|
-
const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-
|
|
2266
|
+
const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-4UR27ACM.js");
|
|
2342
2267
|
ctx.send({
|
|
2343
2268
|
type: "export_data",
|
|
2344
2269
|
format: "md",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ToolRegistry
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-37WBQV3E.js";
|
|
5
5
|
import "./chunk-GHWZVPUV.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-JBNNJ32H.js";
|
|
7
7
|
import "./chunk-4DEMGCK4.js";
|
|
8
8
|
import "./chunk-UUSRWSSX.js";
|
|
9
9
|
import "./chunk-CKH4KQ4E.js";
|
|
@@ -14,7 +14,7 @@ import "./chunk-NYNSYLFY.js";
|
|
|
14
14
|
import "./chunk-3FEZSLGI.js";
|
|
15
15
|
import {
|
|
16
16
|
runTool
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5G6HX57U.js";
|
|
18
18
|
import "./chunk-RS7SKYTS.js";
|
|
19
19
|
import {
|
|
20
20
|
getDangerLevel,
|
|
@@ -24,10 +24,10 @@ import "./chunk-TU3L3PW7.js";
|
|
|
24
24
|
import "./chunk-HOSJZMQS.js";
|
|
25
25
|
import "./chunk-IW3Q7AE5.js";
|
|
26
26
|
import "./chunk-4BKXL7SM.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-6NEEFOVF.js";
|
|
28
28
|
import {
|
|
29
29
|
VERSION
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-O4CZPTPU.js";
|
|
31
31
|
|
|
32
32
|
// src/mcp/server.ts
|
|
33
33
|
import { createInterface } from "readline";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
googleSearchContext,
|
|
5
5
|
isToolCapableProvider,
|
|
6
6
|
truncateOutput
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-37WBQV3E.js";
|
|
8
8
|
import "./chunk-GHWZVPUV.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-JBNNJ32H.js";
|
|
10
10
|
import "./chunk-4DEMGCK4.js";
|
|
11
11
|
import "./chunk-UUSRWSSX.js";
|
|
12
12
|
import "./chunk-CKH4KQ4E.js";
|
|
@@ -17,7 +17,7 @@ import "./chunk-NYNSYLFY.js";
|
|
|
17
17
|
import "./chunk-3FEZSLGI.js";
|
|
18
18
|
import {
|
|
19
19
|
runTool
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5G6HX57U.js";
|
|
21
21
|
import "./chunk-RS7SKYTS.js";
|
|
22
22
|
import {
|
|
23
23
|
getDangerLevel,
|
|
@@ -29,10 +29,10 @@ import {
|
|
|
29
29
|
atomicWriteFileSync
|
|
30
30
|
} from "./chunk-IW3Q7AE5.js";
|
|
31
31
|
import "./chunk-4BKXL7SM.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-6NEEFOVF.js";
|
|
33
33
|
import {
|
|
34
34
|
SUBAGENT_ALLOWED_TOOLS
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-O4CZPTPU.js";
|
|
36
36
|
|
|
37
37
|
// src/hub/task-orchestrator.ts
|
|
38
38
|
import { createInterface } from "readline";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
import "./chunk-RS7SKYTS.js";
|
|
10
10
|
import {
|
|
11
11
|
ConfigManager
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7RC7AN6V.js";
|
|
13
13
|
import "./chunk-TU3L3PW7.js";
|
|
14
14
|
import "./chunk-IW3Q7AE5.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-O4CZPTPU.js";
|
|
16
16
|
|
|
17
17
|
// src/cli/usage.ts
|
|
18
18
|
function classifyRowCost(row) {
|