@wrongstack/cli 0.318.0 → 0.319.1
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/data/providers.json +1 -22
- package/dist/{acp-CEQINXWB.js → acp-5ANIAOZC.js} +4 -4
- package/dist/arg-parser.d.ts +4 -0
- package/dist/{auth-3OSF6BMU.js → auth-ND7J7DTD.js} +10 -10
- package/dist/{chunk-QC5I4VWZ.js → chunk-635WW3II.js} +8 -14
- package/dist/{chunk-7CECQDNH.js → chunk-D3K4NYQL.js} +1 -1
- package/dist/{chunk-QYIIOMLE.js → chunk-E4I2TF5S.js} +2 -2
- package/dist/{chunk-4JRIWVJ4.js → chunk-ERX4BLKP.js} +1 -1
- package/dist/{chunk-37SPPLUD.js → chunk-F5GA2QW2.js} +15 -2
- package/dist/chunk-GGGUZSAU.js +235 -0
- package/dist/{chunk-GKHUHAIK.js → chunk-HF5VQWIY.js} +5 -5
- package/dist/{chunk-YX6KUIDF.js → chunk-IMT6PNV5.js} +861 -29
- package/dist/{chunk-G7337TTK.js → chunk-IS2PPBQV.js} +1 -1
- package/dist/{chunk-G3IMKQRH.js → chunk-JHPXJRRI.js} +1 -1
- package/dist/chunk-KYDJJLJI.js +52 -0
- package/dist/chunk-LIWVIEZM.js +46 -0
- package/dist/chunk-P2OKBDCH.js +1166 -0
- package/dist/chunk-PCBJSXYV.js +65 -0
- package/dist/{chunk-7JBKXVMK.js → chunk-TALOKMIC.js} +14 -18
- package/dist/{chunk-KG4X5F7Z.js → chunk-VFCJOWJB.js} +10 -12
- package/dist/{chunk-SYIBTG3X.js → chunk-VOTTENR5.js} +3 -5
- package/dist/chunk-WHOIR577.js +1 -0
- package/dist/{chunk-2ZNBRZ4W.js → chunk-WQZW3RDP.js} +2 -2
- package/dist/{chunk-BXFYBQKR.js → chunk-XPX432BZ.js} +8 -1
- package/dist/cli-context-K73EIND5.js +3369 -0
- package/dist/{cli-main-ILRTNPDP.js → cli-main-QXSKKANW.js} +84 -93
- package/dist/{diag-doctor-LFCCBPMD.js → diag-doctor-QZVKUAE5.js} +4 -5
- package/dist/{execution-BN4QIFH6.js → execution-7ZFY4FJY.js} +499 -473
- package/dist/{hq-3GWBFLON.js → hq-4QQJO2GN.js} +2 -2
- package/dist/hq-server/routes.d.ts +1 -1
- package/dist/{hq-server-OARPUSQJ.js → hq-server-CVAYICIS.js} +2 -2
- package/dist/index.js +20 -4440
- package/dist/{modeldiag-4NYBRSFP.js → modeldiag-ZL4ROTQ5.js} +2 -2
- package/dist/per-subcommand-help-6VCIKDUW.js +23 -0
- package/dist/{plugin-usage-AP7SJCDA.js → plugin-usage-7WCZW4NP.js} +2 -2
- package/dist/{plugins-HQ5FU2AM.js → plugins-7N3TF2QF.js} +3 -3
- package/dist/pre-launch/first-run.d.ts +51 -0
- package/dist/pre-launch.d.ts +1 -0
- package/dist/{project-manifest-YFTJ3D5N.js → project-manifest-RV5FXGQI.js} +2 -2
- package/dist/{project-picker-R5TYAE3Q.js → project-picker-CCQR3W4I.js} +3 -3
- package/dist/{providers-models-663NDPRQ.js → providers-models-OKKQZIWU.js} +2 -2
- package/dist/{proxy-wiring-EQB5X5YH.js → proxy-wiring-QCI7EWQC.js} +3 -3
- package/dist/{sdd-runtime-FLKCSTYV.js → sdd-runtime-R6FAK2G2.js} +2 -2
- package/dist/services/sdd-runtime.d.ts +1 -1
- package/dist/{sessions-config-P2LK2L32.js → sessions-config-KAMEBVOX.js} +4 -4
- package/dist/short-circuit-flags-7YUCERBB.js +11 -0
- package/dist/slash-commands/sdd.d.ts +1 -1
- package/dist/subcommands-KE6MEQQP.js +10 -0
- package/dist/{webui-server-OJLLM6PE.js → webui-server-F7MSRHOF.js} +8 -6
- package/dist/wiring/wrongtrace-gate.d.ts +2 -2
- package/dist/wiring/wrongtrace-hooks.d.ts +1 -1
- package/dist/{wrongtrace-gate-counters-P5BCBXQN.js → wrongtrace-gate-counters-GSVY372D.js} +2 -2
- package/dist/{wrongtrace-telemetry-FNLANZ5I.js → wrongtrace-telemetry-KBBM5NLQ.js} +2 -2
- package/package.json +28 -28
- package/dist/chunk-ALE5KHCA.js +0 -1
- package/dist/chunk-L6ZNCTRJ.js +0 -1067
|
@@ -1,6 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createHqCommandDispatcher
|
|
3
|
+
} from "./chunk-7YLN7YUA.js";
|
|
4
|
+
import {
|
|
5
|
+
runProjectPicker
|
|
6
|
+
} from "./chunk-WQZW3RDP.js";
|
|
7
|
+
import {
|
|
8
|
+
ensureProjectDataDir,
|
|
9
|
+
findProject,
|
|
10
|
+
generateSlug,
|
|
11
|
+
loadManifest,
|
|
12
|
+
saveManifest
|
|
13
|
+
} from "./chunk-IS2PPBQV.js";
|
|
1
14
|
import {
|
|
2
15
|
getWrongTrace
|
|
3
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ERX4BLKP.js";
|
|
4
17
|
import {
|
|
5
18
|
MAX_TUI_THINKING_WORD_LENGTH,
|
|
6
19
|
clearSuggestions,
|
|
@@ -12,7 +25,7 @@ import {
|
|
|
12
25
|
} from "./chunk-SXJTVNWF.js";
|
|
13
26
|
import {
|
|
14
27
|
setupPlugins
|
|
15
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HF5VQWIY.js";
|
|
16
29
|
import {
|
|
17
30
|
deriveFsAccessPair,
|
|
18
31
|
filterSafeForProject,
|
|
@@ -20,10 +33,22 @@ import {
|
|
|
20
33
|
persistConfigSetting,
|
|
21
34
|
persistTelegramConfig
|
|
22
35
|
} from "./chunk-JACOMTIH.js";
|
|
36
|
+
import {
|
|
37
|
+
configureSimpleUiRuntimeContext,
|
|
38
|
+
detectProjectFacts,
|
|
39
|
+
makeConfirmAwaiter,
|
|
40
|
+
renderAgentsTemplate
|
|
41
|
+
} from "./chunk-VFCJOWJB.js";
|
|
42
|
+
import "./chunk-QD544J2B.js";
|
|
43
|
+
import {
|
|
44
|
+
fmtTaskResultLine,
|
|
45
|
+
fmtTok,
|
|
46
|
+
patchConfig
|
|
47
|
+
} from "./chunk-TYO2OVAD.js";
|
|
23
48
|
import {
|
|
24
49
|
awaitFirstWrongProxyProbe,
|
|
25
50
|
bootstrapWrongProxy
|
|
26
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-VOTTENR5.js";
|
|
27
52
|
import {
|
|
28
53
|
advanceToNextTask,
|
|
29
54
|
findSpec,
|
|
@@ -34,48 +59,17 @@ import {
|
|
|
34
59
|
matchTaskNode,
|
|
35
60
|
sddState
|
|
36
61
|
} from "./chunk-JHUJUIOH.js";
|
|
37
|
-
import {
|
|
38
|
-
createHqCommandDispatcher
|
|
39
|
-
} from "./chunk-7YLN7YUA.js";
|
|
40
|
-
import {
|
|
41
|
-
runProjectPicker
|
|
42
|
-
} from "./chunk-2ZNBRZ4W.js";
|
|
43
|
-
import {
|
|
44
|
-
ensureProjectDataDir,
|
|
45
|
-
findProject,
|
|
46
|
-
generateSlug,
|
|
47
|
-
loadManifest,
|
|
48
|
-
saveManifest
|
|
49
|
-
} from "./chunk-G7337TTK.js";
|
|
50
62
|
import {
|
|
51
63
|
startCliHqConnection
|
|
52
64
|
} from "./chunk-XYKYXFEE.js";
|
|
53
65
|
import {
|
|
54
66
|
PLUGIN_AUDIT_ENTRIES,
|
|
55
67
|
runPluginManagementCommand
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
68
|
+
} from "./chunk-635WW3II.js";
|
|
69
|
+
import "./chunk-JHPXJRRI.js";
|
|
58
70
|
import {
|
|
59
71
|
recordGateDecision
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import {
|
|
62
|
-
configureSimpleUiRuntimeContext,
|
|
63
|
-
detectProjectFacts,
|
|
64
|
-
makeConfirmAwaiter,
|
|
65
|
-
renderAgentsTemplate
|
|
66
|
-
} from "./chunk-KG4X5F7Z.js";
|
|
67
|
-
import "./chunk-QD544J2B.js";
|
|
68
|
-
import {
|
|
69
|
-
fmtTaskResultLine,
|
|
70
|
-
fmtTok,
|
|
71
|
-
patchConfig
|
|
72
|
-
} from "./chunk-TYO2OVAD.js";
|
|
73
|
-
import {
|
|
74
|
-
buildWin32CmdShimInvocation
|
|
75
|
-
} from "./chunk-U3SS4NRH.js";
|
|
76
|
-
import {
|
|
77
|
-
checkForUpdate
|
|
78
|
-
} from "./chunk-YLQEGYV4.js";
|
|
72
|
+
} from "./chunk-D3K4NYQL.js";
|
|
79
73
|
import {
|
|
80
74
|
CLI_VERSION
|
|
81
75
|
} from "./chunk-XJXDOF63.js";
|
|
@@ -86,8 +80,9 @@ import {
|
|
|
86
80
|
refreshAcpRegistry,
|
|
87
81
|
resolveProviderCfg,
|
|
88
82
|
setupProvider
|
|
89
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-F5GA2QW2.js";
|
|
90
84
|
import {
|
|
85
|
+
LOCAL_LLM_PRESETS,
|
|
91
86
|
addCustomProvider,
|
|
92
87
|
addKeyForCatalogProvider,
|
|
93
88
|
addKeyForProvider,
|
|
@@ -96,11 +91,7 @@ import {
|
|
|
96
91
|
runClaudeOAuthLogin,
|
|
97
92
|
runCopilotOAuthLogin,
|
|
98
93
|
validateFamily
|
|
99
|
-
} from "./chunk-
|
|
100
|
-
import {
|
|
101
|
-
LOCAL_LLM_PRESETS,
|
|
102
|
-
parseSpawnFlags
|
|
103
|
-
} from "./chunk-L6ZNCTRJ.js";
|
|
94
|
+
} from "./chunk-IMT6PNV5.js";
|
|
104
95
|
import {
|
|
105
96
|
appendHistory
|
|
106
97
|
} from "./chunk-B4JLSXZB.js";
|
|
@@ -111,9 +102,12 @@ import {
|
|
|
111
102
|
import {
|
|
112
103
|
activeProfileConfigPath
|
|
113
104
|
} from "./chunk-YMXXOOFN.js";
|
|
105
|
+
import {
|
|
106
|
+
parseSpawnFlags
|
|
107
|
+
} from "./chunk-GGGUZSAU.js";
|
|
114
108
|
import {
|
|
115
109
|
runCodexOAuthLogin
|
|
116
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-E4I2TF5S.js";
|
|
117
111
|
import {
|
|
118
112
|
activeLabel,
|
|
119
113
|
loadConfigProviders,
|
|
@@ -121,7 +115,13 @@ import {
|
|
|
121
115
|
normalizeKeys,
|
|
122
116
|
nowIso,
|
|
123
117
|
writeKeysBack
|
|
124
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-XPX432BZ.js";
|
|
119
|
+
import {
|
|
120
|
+
buildWin32CmdShimInvocation
|
|
121
|
+
} from "./chunk-U3SS4NRH.js";
|
|
122
|
+
import {
|
|
123
|
+
checkForUpdate
|
|
124
|
+
} from "./chunk-YLQEGYV4.js";
|
|
125
125
|
import {
|
|
126
126
|
__require
|
|
127
127
|
} from "./chunk-7OCVIDC7.js";
|
|
@@ -1094,7 +1094,7 @@ async function loadOnlineAgentsForPrompt(projectDir, skip) {
|
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
1096
|
async function getSddRuntimeStateForCli() {
|
|
1097
|
-
const sdd = await import("./sdd-runtime-
|
|
1097
|
+
const sdd = await import("./sdd-runtime-R6FAK2G2.js");
|
|
1098
1098
|
return {
|
|
1099
1099
|
tracker: sdd.getTaskTracker(),
|
|
1100
1100
|
builder: sdd.getActiveBuilder(),
|
|
@@ -1219,12 +1219,7 @@ function createSubagentWrongTraceHookRunner(sessionId, emit) {
|
|
|
1219
1219
|
const hooks = createWrongTraceHookPair(sessionId, {
|
|
1220
1220
|
emit: (event) => emit?.(event)
|
|
1221
1221
|
});
|
|
1222
|
-
registry.registerInProcess(
|
|
1223
|
-
"PreToolUse",
|
|
1224
|
-
WRONGTRACE_MATCHER,
|
|
1225
|
-
hooks.preToolUse,
|
|
1226
|
-
"wrongtrace-gate"
|
|
1227
|
-
);
|
|
1222
|
+
registry.registerInProcess("PreToolUse", WRONGTRACE_MATCHER, hooks.preToolUse, "wrongtrace-gate");
|
|
1228
1223
|
registry.registerInProcess(
|
|
1229
1224
|
"PostToolUse",
|
|
1230
1225
|
WRONGTRACE_MATCHER,
|
|
@@ -1236,9 +1231,7 @@ function createSubagentWrongTraceHookRunner(sessionId, emit) {
|
|
|
1236
1231
|
|
|
1237
1232
|
// src/fleet/host.ts
|
|
1238
1233
|
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
1239
|
-
import {
|
|
1240
|
-
createProjectAgentRoster
|
|
1241
|
-
} from "@wrongstack/core/agent-catalog";
|
|
1234
|
+
import { createProjectAgentRoster } from "@wrongstack/core/agent-catalog";
|
|
1242
1235
|
import {
|
|
1243
1236
|
AdaptiveConcurrencyController,
|
|
1244
1237
|
areSubagentsAllowedForSession as areSubagentsAllowedForSession2,
|
|
@@ -5710,7 +5703,7 @@ async function runCliExecution(params) {
|
|
|
5710
5703
|
governanceHandle,
|
|
5711
5704
|
setConfig
|
|
5712
5705
|
} = params;
|
|
5713
|
-
const { execute } = await import("./execution-
|
|
5706
|
+
const { execute } = await import("./execution-7ZFY4FJY.js");
|
|
5714
5707
|
return execute(
|
|
5715
5708
|
toExecuteDeps({
|
|
5716
5709
|
core: {
|
|
@@ -5942,10 +5935,7 @@ function createWrongTracePromptContributor() {
|
|
|
5942
5935
|
const wt = await raceWithDeadline(getWrongTrace(), CONTRIBUTOR_DEADLINE_MS);
|
|
5943
5936
|
if (!wt?.isAvailable) return [];
|
|
5944
5937
|
const [atlas, friction] = await raceWithDeadline(
|
|
5945
|
-
Promise.all([
|
|
5946
|
-
wt.getAtlas({ includeSymbols: false }),
|
|
5947
|
-
wt.getFrictionMatrix(50)
|
|
5948
|
-
]),
|
|
5938
|
+
Promise.all([wt.getAtlas({ includeSymbols: false }), wt.getFrictionMatrix(50)]),
|
|
5949
5939
|
CONTRIBUTOR_DEADLINE_MS
|
|
5950
5940
|
) ?? [null, []];
|
|
5951
5941
|
const digest = digestAtlas(atlas);
|
|
@@ -9342,10 +9332,7 @@ async function handleBrainCouncilSubcommand(rest, opts, applyPatch) {
|
|
|
9342
9332
|
opts.renderer.writeWarning(msg2);
|
|
9343
9333
|
return { message: msg2 };
|
|
9344
9334
|
}
|
|
9345
|
-
return applyPatch(
|
|
9346
|
-
{ council: { voters: seats } },
|
|
9347
|
-
councilSummary
|
|
9348
|
-
);
|
|
9335
|
+
return applyPatch({ council: { voters: seats } }, councilSummary);
|
|
9349
9336
|
}
|
|
9350
9337
|
if (op === "personas") {
|
|
9351
9338
|
const lines = [
|
|
@@ -12460,7 +12447,7 @@ function buildDoctorCommand(opts) {
|
|
|
12460
12447
|
].join("\n");
|
|
12461
12448
|
async function loadPluginSchemas() {
|
|
12462
12449
|
try {
|
|
12463
|
-
const { BUILTIN_PLUGIN_FACTORIES } = await import("./plugins-
|
|
12450
|
+
const { BUILTIN_PLUGIN_FACTORIES } = await import("./plugins-7N3TF2QF.js");
|
|
12464
12451
|
const settled = await Promise.allSettled(BUILTIN_PLUGIN_FACTORIES.map((f) => f()));
|
|
12465
12452
|
const loaded = [];
|
|
12466
12453
|
for (const s of settled) {
|
|
@@ -13667,7 +13654,13 @@ function buildTierCommand(opts) {
|
|
|
13667
13654
|
return { message: `${color26.red("Invalid")} maxCostUsd: "${parts[2] ?? ""}"` };
|
|
13668
13655
|
}
|
|
13669
13656
|
const iters = parts[3] !== void 0 ? Number.parseInt(parts[3], 10) : void 0;
|
|
13657
|
+
if (iters !== void 0 && (!Number.isFinite(iters) || iters < 0)) {
|
|
13658
|
+
return { message: `${color26.red("Invalid")} maxIterations: "${parts[3]}"` };
|
|
13659
|
+
}
|
|
13670
13660
|
const tools = parts[4] !== void 0 ? Number.parseInt(parts[4], 10) : void 0;
|
|
13661
|
+
if (tools !== void 0 && (!Number.isFinite(tools) || tools < 0)) {
|
|
13662
|
+
return { message: `${color26.red("Invalid")} maxToolCalls: "${parts[4]}"` };
|
|
13663
|
+
}
|
|
13671
13664
|
await persist((tiers) => {
|
|
13672
13665
|
const levels = levelsOf(tiers);
|
|
13673
13666
|
levels[tier] = {
|
|
@@ -19406,7 +19399,9 @@ function formatMemoryDiagnostics(diag) {
|
|
|
19406
19399
|
lines.push(` with vectors: ${v.vectors}`);
|
|
19407
19400
|
lines.push(` providers: ${v.providers.join(", ") || "\u2205"}`);
|
|
19408
19401
|
lines.push(` model: ${v.modelId} (${v.dimensions}-dim)`);
|
|
19409
|
-
lines.push(
|
|
19402
|
+
lines.push(
|
|
19403
|
+
` cache: ${v.cacheEntries} rows \xB7 ${v.cacheProviders} provider(s) \xB7 ${v.totalUseCount} hits`
|
|
19404
|
+
);
|
|
19410
19405
|
if (v.oldestLastUsedAt) {
|
|
19411
19406
|
lines.push(` cache oldest: ${v.oldestLastUsedAt}`);
|
|
19412
19407
|
}
|
|
@@ -19415,7 +19410,9 @@ function formatMemoryDiagnostics(diag) {
|
|
|
19415
19410
|
lines.push("Cross-system coverage:");
|
|
19416
19411
|
lines.push(` vector \u2194 SAGE: ${v.mirroredInSage} mirrored`);
|
|
19417
19412
|
if (v.standalone > 0) {
|
|
19418
|
-
lines.push(
|
|
19413
|
+
lines.push(
|
|
19414
|
+
` standalone: ${v.standalone} vector-only entries (no SAGE id \u2014 lexical recall misses these)`
|
|
19415
|
+
);
|
|
19419
19416
|
}
|
|
19420
19417
|
if (v.mirroredInSage === 0 && diag.sageTotal > 0) {
|
|
19421
19418
|
lines.push(" \u{1F4A1} Run `wrongstack --vector-sync` to backfill the vector mirror.");
|
|
@@ -19516,18 +19513,14 @@ function formatSearchRace(race) {
|
|
|
19516
19513
|
if (race.lexicalOnly.length > 0) {
|
|
19517
19514
|
lines.push("### \u{1F170}\uFE0F Lexical only (vector missed)");
|
|
19518
19515
|
for (const row of race.lexicalOnly) {
|
|
19519
|
-
lines.push(
|
|
19520
|
-
`- \`${row.id.slice(0, 12)}\u2026\` L=${pct2(row.lexicalScore ?? 0)} ${row.preview}`
|
|
19521
|
-
);
|
|
19516
|
+
lines.push(`- \`${row.id.slice(0, 12)}\u2026\` L=${pct2(row.lexicalScore ?? 0)} ${row.preview}`);
|
|
19522
19517
|
}
|
|
19523
19518
|
lines.push("");
|
|
19524
19519
|
}
|
|
19525
19520
|
if (race.vectorOnly.length > 0) {
|
|
19526
19521
|
lines.push("### \u{1F171}\uFE0F Vector only (lexical missed)");
|
|
19527
19522
|
for (const row of race.vectorOnly) {
|
|
19528
|
-
lines.push(
|
|
19529
|
-
`- \`${row.id.slice(0, 12)}\u2026\` V=${pct2(row.vectorScore ?? 0)} ${row.preview}`
|
|
19530
|
-
);
|
|
19523
|
+
lines.push(`- \`${row.id.slice(0, 12)}\u2026\` V=${pct2(row.vectorScore ?? 0)} ${row.preview}`);
|
|
19531
19524
|
}
|
|
19532
19525
|
lines.push("");
|
|
19533
19526
|
}
|
|
@@ -20541,9 +20534,7 @@ File size reduced. Audit-logged as \`memory.log_compacted\`.`
|
|
|
20541
20534
|
try {
|
|
20542
20535
|
[sageStats, sageTotal] = await Promise.all([
|
|
20543
20536
|
Sage.stats(),
|
|
20544
|
-
Sage.listSagePage({ limit: 1 }).then(
|
|
20545
|
-
(page) => page.total ?? page.memories.length
|
|
20546
|
-
)
|
|
20537
|
+
Sage.listSagePage({ limit: 1 }).then((page) => page.total ?? page.memories.length)
|
|
20547
20538
|
]);
|
|
20548
20539
|
} catch (err) {
|
|
20549
20540
|
return {
|
|
@@ -24688,7 +24679,9 @@ function buildEffortCommand(opts) {
|
|
|
24688
24679
|
` ${color49.bold("effort")} ${color49.bold(current)}${ok ? "" : ` ${color49.amber(`(not advertised by this model \u2014 supported: ${levels.join(", ")})`)}`}`
|
|
24689
24680
|
);
|
|
24690
24681
|
} else {
|
|
24691
|
-
lines.push(
|
|
24682
|
+
lines.push(
|
|
24683
|
+
` ${color49.bold("effort")} ${color49.dim("(not set \u2014 auto \xB7 provider default applies)")}`
|
|
24684
|
+
);
|
|
24692
24685
|
}
|
|
24693
24686
|
if (levels) {
|
|
24694
24687
|
const rendered = REASONING_EFFORT_LEVELS2.filter((l) => levels.includes(l)).map(
|
|
@@ -24708,15 +24701,14 @@ function buildEffortCommand(opts) {
|
|
|
24708
24701
|
` ${color49.bold("levels")} ${color49.dim("(unknown \u2014 the resolver drops unsupported values with a warning)")}`
|
|
24709
24702
|
);
|
|
24710
24703
|
}
|
|
24711
|
-
lines.push(
|
|
24712
|
-
"",
|
|
24713
|
-
` ${color49.dim("/effort <level> \xB7 clear \xB7 matrix \xB7 help")}`
|
|
24714
|
-
);
|
|
24704
|
+
lines.push("", ` ${color49.dim("/effort <level> \xB7 clear \xB7 matrix \xB7 help")}`);
|
|
24715
24705
|
return { message: lines.join("\n") };
|
|
24716
24706
|
}
|
|
24717
24707
|
if (sub === "clear" || sub === "off-default") {
|
|
24718
24708
|
if (current === void 0) {
|
|
24719
|
-
return {
|
|
24709
|
+
return {
|
|
24710
|
+
message: `${color49.dim("No session effort set \u2014 provider default already applies.")}`
|
|
24711
|
+
};
|
|
24720
24712
|
}
|
|
24721
24713
|
await patchSessionEffort(void 0, opts.paths, config.activeProfile ?? "default");
|
|
24722
24714
|
opts.configStore.update({
|
|
@@ -31782,7 +31774,13 @@ async function setupCommandHostState(input) {
|
|
|
31782
31774
|
input.hqCommandController.interruptLeader = () => interruptController.abortLeader();
|
|
31783
31775
|
input.hqCommandController.killFleet = () => killFleet2(input.getDirector());
|
|
31784
31776
|
input.hqCommandController.terminateAgent = (subagentId) => terminateAgent(input.getDirector(), subagentId);
|
|
31785
|
-
input.hqCommandController.spawnAgent = (role, task, maxIterations) => spawnAgent2(
|
|
31777
|
+
input.hqCommandController.spawnAgent = (role, task, maxIterations) => spawnAgent2(
|
|
31778
|
+
input.getDirector(),
|
|
31779
|
+
input.sessionRef.current?.id ?? input.session.id,
|
|
31780
|
+
role,
|
|
31781
|
+
task,
|
|
31782
|
+
maxIterations
|
|
31783
|
+
);
|
|
31786
31784
|
const enhanceController = createEnhanceController(input.getConfig());
|
|
31787
31785
|
const statuslineConfigDeps = createStatuslineConfigDeps();
|
|
31788
31786
|
const hidden = await loadStatuslineHiddenItems();
|
|
@@ -33088,11 +33086,7 @@ async function setupCompaction(params) {
|
|
|
33088
33086
|
providerId: config.provider ?? provider.id,
|
|
33089
33087
|
modelId: config.model ?? context.model
|
|
33090
33088
|
});
|
|
33091
|
-
const initialPolicy = resolveContextWindowPolicy2(
|
|
33092
|
-
config.context,
|
|
33093
|
-
void 0,
|
|
33094
|
-
effectiveMaxContext
|
|
33095
|
-
);
|
|
33089
|
+
const initialPolicy = resolveContextWindowPolicy2(config.context, void 0, effectiveMaxContext);
|
|
33096
33090
|
context.meta ??= {};
|
|
33097
33091
|
context.meta["contextWindowMode"] = initialPolicy.id;
|
|
33098
33092
|
context.meta["contextWindowPolicy"] = initialPolicy;
|
|
@@ -33655,10 +33649,7 @@ async function setupLifecycleAndPlugins(deps) {
|
|
|
33655
33649
|
const getLiveConfig = () => configStore.get();
|
|
33656
33650
|
const fallbackProfileManager = container.resolve(TOKENS11.FallbackProfileManager);
|
|
33657
33651
|
const statusTracker = container.resolve(TOKENS11.ProviderModelStatusTracker);
|
|
33658
|
-
const buildUtilityProvider = (providerId) => buildProviderForIdRuntimeFn(
|
|
33659
|
-
{ config: getLiveConfig(), providerRegistry, logger },
|
|
33660
|
-
providerId
|
|
33661
|
-
);
|
|
33652
|
+
const buildUtilityProvider = (providerId) => buildProviderForIdRuntimeFn({ config: getLiveConfig(), providerRegistry, logger }, providerId);
|
|
33662
33653
|
const pluginOneShot = new OneShotOrchestrator2({
|
|
33663
33654
|
buildProvider: buildUtilityProvider,
|
|
33664
33655
|
getConfig: getLiveConfig,
|
|
@@ -36677,4 +36668,4 @@ export {
|
|
|
36677
36668
|
CLI_VERSION,
|
|
36678
36669
|
runInteractive
|
|
36679
36670
|
};
|
|
36680
|
-
//# sourceMappingURL=cli-main-
|
|
36671
|
+
//# sourceMappingURL=cli-main-QXSKKANW.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
startProxyProbe
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JHPXJRRI.js";
|
|
4
4
|
import {
|
|
5
5
|
formatGateCounterReport,
|
|
6
6
|
loadWrongTraceGateCounters
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D3K4NYQL.js";
|
|
8
8
|
import {
|
|
9
9
|
API_VERSION
|
|
10
10
|
} from "./chunk-XJXDOF63.js";
|
|
@@ -174,8 +174,7 @@ var proxyCmd = async (_args, deps) => {
|
|
|
174
174
|
if (enabled && active && cfg.url) return { glyph: "\u2713", label: "live", color: color.green };
|
|
175
175
|
if (enabled && !active)
|
|
176
176
|
return { glyph: "\u25CF", label: "enabled, probe not yet active", color: color.amber };
|
|
177
|
-
if (!enabled && cfg.url)
|
|
178
|
-
return { glyph: "\u25CB", label: "url set, toggle off", color: color.dim };
|
|
177
|
+
if (!enabled && cfg.url) return { glyph: "\u25CB", label: "url set, toggle off", color: color.dim };
|
|
179
178
|
return { glyph: "\xB7", label: "unconfigured", color: color.dim };
|
|
180
179
|
};
|
|
181
180
|
const s = status();
|
|
@@ -384,4 +383,4 @@ export {
|
|
|
384
383
|
doctorCmd,
|
|
385
384
|
proxyCmd
|
|
386
385
|
};
|
|
387
|
-
//# sourceMappingURL=diag-doctor-
|
|
386
|
+
//# sourceMappingURL=diag-doctor-QZVKUAE5.js.map
|