@wrongstack/cli 0.313.1 → 0.316.2
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/{acp-LQMSMV32.js → acp-CEQINXWB.js} +2 -2
- package/dist/acp-registry-cache.d.ts +0 -2
- package/dist/acp-server-agent.d.ts +2 -1
- package/dist/arg-parser.d.ts +2 -1
- package/dist/{auth-VQMSZGKE.js → auth-GZ5A5OF5.js} +3 -3
- package/dist/auth-menu/local.d.ts +3 -2
- package/dist/boot/boot-auto-thin.d.ts +44 -0
- package/dist/boot/brain-decision-log.d.ts +2 -1
- package/dist/boot/config-backup-recovery.d.ts +2 -6
- package/dist/boot/dispatch-singleshot.d.ts +2 -1
- package/dist/boot/dispatch-webui.d.ts +5 -1
- package/dist/boot/event-wiring.d.ts +1 -1
- package/dist/boot/execution-mode.d.ts +2 -1
- package/dist/boot/governance-shadow-bridge.d.ts +4 -3
- package/dist/boot/governance-trace-context.d.ts +4 -4
- package/dist/boot/launch-menu.d.ts +2 -2
- package/dist/boot/system-prompt-builder.d.ts +1 -1
- package/dist/boot/system-prompt-menu.d.ts +10 -58
- package/dist/boot/system-prompt.d.ts +3 -3
- package/dist/boot/tool-registry.d.ts +3 -1
- package/dist/boot/tui-coordinator-callbacks.d.ts +2 -1
- package/dist/boot/tui-coordinator-setup.d.ts +3 -2
- package/dist/boot/tui-goal-wiring.d.ts +2 -1
- package/dist/boot/tui-live-sessions.d.ts +3 -1
- package/dist/boot/tui-session-resume.d.ts +82 -10
- package/dist/boot/tui-session-stub-enrich.d.ts +7 -1
- package/dist/boot/tui-settings-adapter.d.ts +3 -2
- package/dist/boot/tui-theme-adapter.d.ts +3 -2
- package/dist/boot/webui-session-child.d.ts +2 -12
- package/dist/boot-auto-thin-BZ675EVT.js +102 -0
- package/dist/boot-config.d.ts +1 -1
- package/dist/brain-menu/panel-service.d.ts +2 -1
- package/dist/chimera-cascade-evidence.d.ts +4 -21
- package/dist/chimera-review-task.d.ts +0 -7
- package/dist/chimera-subagent-ladder.d.ts +2 -2
- package/dist/{chunk-USYOJIV2.js → chunk-32MTOI2I.js} +2 -2
- package/dist/{chunk-CNQZ4HG4.js → chunk-37SPPLUD.js} +57 -8
- package/dist/chunk-ALE5KHCA.js +1 -0
- package/dist/{chunk-GWVLRUVH.js → chunk-G3IMKQRH.js} +25 -6
- package/dist/{chunk-BZJ4MP32.js → chunk-GKHUHAIK.js} +8 -3
- package/dist/{chunk-3JPTNADJ.js → chunk-GPPRNAKW.js} +1 -1
- package/dist/{chunk-KE7E7DPX.js → chunk-HXJYHAR4.js} +1 -1
- package/dist/{chunk-X3N5TS2S.js → chunk-JACOMTIH.js} +2 -76
- package/dist/{chunk-DGXNL7OT.js → chunk-JHUJUIOH.js} +1 -18
- package/dist/{chunk-WOTGMHAH.js → chunk-KG4X5F7Z.js} +1 -1
- package/dist/{chunk-NUIHRGPY.js → chunk-NV3JDK4F.js} +1 -1
- package/dist/{chunk-E3X4KM7T.js → chunk-NZZOYLQ7.js} +5 -10
- package/dist/{chunk-H6C7SO5H.js → chunk-QC5I4VWZ.js} +1 -1
- package/dist/chunk-SXJTVNWF.js +78 -0
- package/dist/{chunk-AOAIPYFB.js → chunk-SYIBTG3X.js} +2 -2
- package/dist/{chunk-PKHGLWUJ.js → chunk-T642Q732.js} +5 -4
- package/dist/{chunk-BGFM3PD7.js → chunk-UZ2TMHNH.js} +1 -1
- package/dist/{chunk-4S52MIIM.js → chunk-VXCCBI2W.js} +2 -2
- package/dist/{chunk-FKWHSFX4.js → chunk-XYKYXFEE.js} +1 -1
- package/dist/cli-entry-point.d.ts +9 -0
- package/dist/cli-eternal-flag.d.ts +1 -1
- package/dist/{cli-main-UOQ2ICUO.js → cli-main-IEAM6SK7.js} +3578 -1626
- package/dist/cli-main-helpers.d.ts +3 -3
- package/dist/config-doctor.d.ts +34 -3
- package/dist/context-limit.d.ts +4 -3
- package/dist/{diag-doctor-OPTB2NWY.js → diag-doctor-LFCCBPMD.js} +3 -3
- package/dist/execute-deps.d.ts +36 -7
- package/dist/{execution-L4CXQEND.js → execution-TZUGCKFU.js} +459 -77
- package/dist/execution-chimera-cascade.d.ts +1 -1
- package/dist/execution-chimera-review.d.ts +1 -1
- package/dist/execution-cleanup.d.ts +2 -1
- package/dist/execution-kanban-dispatch.d.ts +2 -1
- package/dist/execution-repl-fleet-callbacks.d.ts +3 -2
- package/dist/fleet/budget-source.d.ts +2 -1
- package/dist/fleet/host-context.d.ts +8 -1
- package/dist/fleet/host-director-event-bridges.d.ts +28 -3
- package/dist/fleet/host-event-bridge.d.ts +6 -1
- package/dist/fleet/host-explore-companion-registry.d.ts +60 -0
- package/dist/fleet/host-explore-companion.d.ts +7 -3
- package/dist/fleet/host-provider.d.ts +2 -1
- package/dist/fleet/host-session-writer.d.ts +9 -1
- package/dist/fleet/host-shadow-manager.d.ts +82 -20
- package/dist/fleet/host-shadow-pass.d.ts +9 -1
- package/dist/fleet/host-spawn-types.d.ts +9 -0
- package/dist/fleet/host-status.d.ts +2 -1
- package/dist/fleet/host-subagent-factory.d.ts +2 -1
- package/dist/fleet/host-subagent-session-audit.d.ts +56 -0
- package/dist/fleet/host-supervisor.d.ts +11 -1
- package/dist/fleet/host-task-result-report.d.ts +2 -1
- package/dist/fleet/host.d.ts +38 -6
- package/dist/fleet/status-broadcast.d.ts +2 -1
- package/dist/fleet-statusline.d.ts +2 -1
- package/dist/goal-host.d.ts +3 -2
- package/dist/{governance-V2Z42RBE.js → governance-JSGHHA2R.js} +1 -1
- package/dist/governance-hq-telemetry.d.ts +2 -2
- package/dist/{hq-2XIXGAER.js → hq-NDTJRRX3.js} +3 -3
- package/dist/hq-publisher.d.ts +1 -1
- package/dist/hq-recovery-html.d.ts +1 -6
- package/dist/hq-server/auth-state.d.ts +2 -1
- package/dist/hq-server/auth.d.ts +3 -2
- package/dist/hq-server/login-attempt-store.d.ts +2 -1
- package/dist/hq-server/mailbox-gateway-manager.d.ts +2 -1
- package/dist/hq-server/preflight.d.ts +3 -2
- package/dist/hq-server/server-lifecycle.d.ts +2 -1
- package/dist/hq-server/snapshot.d.ts +0 -9
- package/dist/hq-server/startup.d.ts +2 -3
- package/dist/hq-server/types.d.ts +2 -2
- package/dist/hq-server/upgrade-handler.d.ts +2 -1
- package/dist/hq-server/ws-leader.d.ts +0 -6
- package/dist/{hq-server-DBT3OOYD.js → hq-server-OH3SPSE2.js} +3 -13
- package/dist/hq-server.d.ts +1 -6
- package/dist/hq-static-serve.d.ts +2 -1
- package/dist/{hq-ttl-U2FAYFAT.js → hq-ttl-KUO3AU7X.js} +2 -2
- package/dist/{hq-tunnel-RFKGC4HI.js → hq-tunnel-LO55RCZE.js} +1 -1
- package/dist/hq-tunnel.d.ts +2 -1
- package/dist/index.js +113 -109
- package/dist/input-reader.d.ts +2 -1
- package/dist/kanban-dispatch-route.d.ts +27 -2
- package/dist/kanban-hq-sync.d.ts +2 -1
- package/dist/launch-hints.d.ts +2 -1
- package/dist/mailbox-bridge-bootstrap.d.ts +2 -3
- package/dist/{mailbox-serve-5S3PHG5D.js → mailbox-serve-VKQIRCCB.js} +47 -28
- package/dist/{mcp-RRPKNRSN.js → mcp-AQKSASHD.js} +1 -1
- package/dist/mcp-serve.d.ts +2 -1
- package/dist/{modeldiag-H6DKWJ2N.js → modeldiag-4NYBRSFP.js} +1 -1
- package/dist/next-task-predictor.d.ts +3 -2
- package/dist/permission-prompt.d.ts +2 -1
- package/dist/picker.d.ts +0 -18
- package/dist/plugin-management.d.ts +3 -14
- package/dist/{plugin-usage-GCTYOZPH.js → plugin-usage-AP7SJCDA.js} +2 -2
- package/dist/{plugins-EEKHCMBE.js → plugins-HQ5FU2AM.js} +3 -5
- package/dist/preflight.d.ts +2 -1
- package/dist/{proxy-wiring-G26YGP7S.js → proxy-wiring-EQB5X5YH.js} +3 -3
- package/dist/renderer.d.ts +18 -1
- package/dist/repl-client-registration.d.ts +2 -1
- package/dist/repl.d.ts +1 -1
- package/dist/{replay-XU6ZD7GM.js → replay-FJ2JBXUA.js} +1 -1
- package/dist/{sdd-runtime-GFZ3NJKS.js → sdd-runtime-FLKCSTYV.js} +3 -5
- package/dist/services/commit-message.d.ts +2 -1
- package/dist/services/sdd/state.d.ts +0 -2
- package/dist/services/sdd-runtime.d.ts +1 -1
- package/dist/services/statusline-config.d.ts +27 -4
- package/dist/session-event-wiring.d.ts +3 -5
- package/dist/{sessions-config-7Q7QJBKJ.js → sessions-config-P2LK2L32.js} +5 -1
- package/dist/sessions-doctor-EXHAZSSE.js +146 -0
- package/dist/settings-menu.d.ts +2 -1
- package/dist/shutdown-cleanup.d.ts +3 -2
- package/dist/{simpleui-dist-33VO3QHF.js → simpleui-dist-JKNRCRRK.js} +1 -1
- package/dist/simpleui-dist.d.ts +3 -2
- package/dist/slash-commands/brain-council.d.ts +0 -4
- package/dist/slash-commands/brain-status.d.ts +0 -1
- package/dist/slash-commands/command-context.d.ts +16 -2
- package/dist/slash-commands/fix-classifier.d.ts +2 -1
- package/dist/slash-commands/kanban-agent-helpers.d.ts +2 -1
- package/dist/slash-commands/kanban-board-handlers.d.ts +2 -1
- package/dist/slash-commands/kanban-lifecycle-diagnostics.d.ts +2 -1
- package/dist/slash-commands/kanban-task-subcommands.d.ts +0 -1
- package/dist/slash-commands/memory-audience.d.ts +1 -10
- package/dist/slash-commands/memory-flags.d.ts +2 -1
- package/dist/slash-commands/sdd-command-helpers.d.ts +3 -2
- package/dist/slash-commands/sdd.d.ts +2 -2
- package/dist/slash-commands/settings-mutations.d.ts +0 -1
- package/dist/slash-commands/statusline.d.ts +4 -4
- package/dist/slash-commands/telegram-pairing.d.ts +2 -2
- package/dist/slash-commands/telegram-setup.d.ts +2 -1
- package/dist/slash-commands/tier.d.ts +13 -0
- package/dist/subcommands/handlers/acp-connection-gate.d.ts +4 -3
- package/dist/subcommands/handlers/bench-run-help.d.ts +3 -8
- package/dist/subcommands/handlers/daemon-inventory.d.ts +3 -2
- package/dist/subcommands/handlers/governance.d.ts +2 -1
- package/dist/subcommands/handlers/model-smoke-test.d.ts +3 -2
- package/dist/subcommands/handlers/modeldiag-eval.d.ts +0 -4
- package/dist/subcommands/handlers/modeldiag-profiles.d.ts +1 -1
- package/dist/subcommands/handlers/models-add-help.d.ts +3 -8
- package/dist/subcommands/handlers/sessions-doctor.d.ts +3 -0
- package/dist/subcommands/handlers/update.d.ts +1 -1
- package/dist/terminal-format.d.ts +3 -2
- package/dist/tui-resource-menus.d.ts +2 -1
- package/dist/tuneup.d.ts +5 -5
- package/dist/{update-ZXNC6I6G.js → update-XKARO3CY.js} +3 -3
- package/dist/{update-check-WARHSVZA.js → update-check-LICQNYFK.js} +2 -2
- package/dist/update-check.d.ts +1 -1
- package/dist/utils/hq-ttl.d.ts +2 -1
- package/dist/webui-server/connection-handler.d.ts +34 -2
- package/dist/webui-server/prefs-seeding.d.ts +11 -1
- package/dist/webui-server/route-contexts.d.ts +45 -5
- package/dist/webui-server/session-start-payload.d.ts +13 -0
- package/dist/webui-server/setup-events.d.ts +14 -1
- package/dist/{webui-server-I53IYBW4.js → webui-server-LZOEH7O6.js} +374 -169
- package/dist/webui-server-options.d.ts +30 -4
- package/dist/wiring/brain-and-orchestration.d.ts +3 -3
- package/dist/wiring/cli-execute-builder.d.ts +3 -0
- package/dist/wiring/cli-heap-watchdog.d.ts +2 -1
- package/dist/wiring/cli-prompt-and-tools-setup.d.ts +10 -8
- package/dist/wiring/codebase-index.d.ts +2 -1
- package/dist/wiring/command-host-state.d.ts +61 -5
- package/dist/wiring/controllers.d.ts +3 -4
- package/dist/wiring/dep-watcher-bridge.d.ts +3 -2
- package/dist/wiring/dep-watcher.d.ts +2 -1
- package/dist/wiring/design-studio.d.ts +2 -1
- package/dist/wiring/director-setup.d.ts +3 -2
- package/dist/wiring/domain-terms-mirror.d.ts +2 -1
- package/dist/wiring/external-plugins.d.ts +3 -2
- package/dist/wiring/fleet-command-handlers.d.ts +2 -2
- package/dist/wiring/heap-watchdog-setup.d.ts +2 -1
- package/dist/wiring/hq-telemetry.d.ts +3 -2
- package/dist/wiring/lifecycle-plugins.d.ts +2 -2
- package/dist/wiring/management-tools.d.ts +30 -2
- package/dist/wiring/metrics.d.ts +2 -2
- package/dist/wiring/plugins.d.ts +0 -1
- package/dist/wiring/prompt-journal-recorder.d.ts +1 -1
- package/dist/wiring/provider-runtime-setup.d.ts +9 -2
- package/dist/wiring/provider-runtime.d.ts +23 -3
- package/dist/wiring/provider-status.d.ts +2 -1
- package/dist/wiring/provider-utility-tools.d.ts +2 -1
- package/dist/wiring/provider.d.ts +2 -1
- package/dist/wiring/replay-governance-setup.d.ts +2 -1
- package/dist/wiring/replay.d.ts +2 -1
- package/dist/wiring/resume-candidate.d.ts +27 -0
- package/dist/wiring/runtime-controller-deps.d.ts +8 -1
- package/dist/wiring/runtime-dispatch-state.d.ts +2 -1
- package/dist/wiring/runtime-lifecycle-deps.d.ts +2 -1
- package/dist/wiring/runtime-picker-deps.d.ts +2 -1
- package/dist/wiring/session-command-handlers.d.ts +2 -2
- package/dist/wiring/session-establishment.d.ts +2 -1
- package/dist/wiring/session-registry.d.ts +3 -2
- package/dist/wiring/session-runtime.d.ts +1 -1
- package/dist/wiring/slash-commands.d.ts +5 -4
- package/dist/wiring/teardown-registrar.d.ts +3 -2
- package/dist/wiring/vector-memory-setup.d.ts +3 -2
- package/dist/wiring/wrongtrace-hooks.d.ts +1 -1
- package/dist/wiring/wrongtrace-telemetry.d.ts +2 -1
- package/dist/{wrongtrace-telemetry-6M2CCBX5.js → wrongtrace-telemetry-FNLANZ5I.js} +1 -1
- package/package.json +31 -31
- package/dist/auth-menu.d.ts +0 -7
- package/dist/chunk-WHOIR577.js +0 -1
- package/dist/webui-server/terminal-log-view.d.ts +0 -47
- package/dist/wiring/tools.d.ts +0 -29
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
terminalLink,
|
|
3
3
|
terminalText
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HXJYHAR4.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveAuditActor
|
|
7
7
|
} from "./chunk-Q5GTM25S.js";
|
|
@@ -46,7 +46,7 @@ var HQ_RECOVERY_HTML = `<!doctype html>
|
|
|
46
46
|
<main data-hq-recovery-shell>
|
|
47
47
|
<h1>HQ frontend assets are unavailable</h1>
|
|
48
48
|
<p>The HQ backend is running, but the packaged React application could not be resolved.</p>
|
|
49
|
-
<p>Rebuild or reinstall <code>@wrongstack/webui-hq</code>, then restart HQ. API routes remain available for diagnostics.</p>
|
|
49
|
+
<p>Rebuild or reinstall <code>@wrongstack/webui-hq</code>, then restart HQ. From a workspace checkout, run <code>pnpm --filter @wrongstack/webui-hq build</code>. API routes remain available for diagnostics.</p>
|
|
50
50
|
</main>
|
|
51
51
|
</body>
|
|
52
52
|
</html>`;
|
|
@@ -2843,8 +2843,8 @@ async function handleApiAgentMessages(req, res, match, agentMessages) {
|
|
|
2843
2843
|
// src/hq-server/routes/system-handlers.ts
|
|
2844
2844
|
async function handleApiSystemUpdate(res) {
|
|
2845
2845
|
const [{ checkForUpdate }, { detectUpdatePackageName }] = await Promise.all([
|
|
2846
|
-
import("./update-check-
|
|
2847
|
-
import("./update-
|
|
2846
|
+
import("./update-check-LICQNYFK.js"),
|
|
2847
|
+
import("./update-XKARO3CY.js")
|
|
2848
2848
|
]);
|
|
2849
2849
|
const packageName = detectUpdatePackageName();
|
|
2850
2850
|
const info = await checkForUpdate({ packageName });
|
|
@@ -4911,12 +4911,7 @@ export {
|
|
|
4911
4911
|
DEFAULT_HOST,
|
|
4912
4912
|
DEFAULT_PORT,
|
|
4913
4913
|
MAX_EVENT_LOG3 as MAX_EVENT_LOG,
|
|
4914
|
-
MAX_NON_STRICT_PORT_SCAN,
|
|
4915
|
-
CLIENT_TTL_MS,
|
|
4916
|
-
CLIENT_CLEANUP_INTERVAL_MS,
|
|
4917
|
-
BROWSER_HEARTBEAT_INTERVAL_MS,
|
|
4918
|
-
SESSION_SNAPSHOT_TTL_MS,
|
|
4919
4914
|
startHqServer,
|
|
4920
4915
|
HqInsecureExposureError2 as HqInsecureExposureError
|
|
4921
4916
|
};
|
|
4922
|
-
//# sourceMappingURL=chunk-
|
|
4917
|
+
//# sourceMappingURL=chunk-NZZOYLQ7.js.map
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
|
|
2
|
+
// src/services/suggestion-store.ts
|
|
3
|
+
var sharedSuggestions = [];
|
|
4
|
+
var sharedAutoSuggestions = [];
|
|
5
|
+
function setSuggestions(suggestions) {
|
|
6
|
+
sharedSuggestions = suggestions;
|
|
7
|
+
}
|
|
8
|
+
function setAutoSuggestions(suggestions) {
|
|
9
|
+
sharedAutoSuggestions = suggestions;
|
|
10
|
+
}
|
|
11
|
+
function getSuggestions() {
|
|
12
|
+
return sharedSuggestions;
|
|
13
|
+
}
|
|
14
|
+
function removeSuggestions(indices) {
|
|
15
|
+
if (indices.length === 0) return;
|
|
16
|
+
const set = new Set(indices);
|
|
17
|
+
sharedSuggestions = sharedSuggestions.filter((_, i) => !set.has(i));
|
|
18
|
+
sharedAutoSuggestions = [];
|
|
19
|
+
}
|
|
20
|
+
function clearSuggestions() {
|
|
21
|
+
sharedSuggestions = [];
|
|
22
|
+
sharedAutoSuggestions = [];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// src/tui-thinking-word.ts
|
|
26
|
+
var DEFAULT_TUI_THINKING_WORD = "thinking";
|
|
27
|
+
var MAX_TUI_THINKING_WORD_LENGTH = 16;
|
|
28
|
+
function normalizeTuiThinkingWord(value) {
|
|
29
|
+
if (typeof value !== "string") return DEFAULT_TUI_THINKING_WORD;
|
|
30
|
+
const word = value.trim();
|
|
31
|
+
if (word.length === 0 || word.length > MAX_TUI_THINKING_WORD_LENGTH) {
|
|
32
|
+
return DEFAULT_TUI_THINKING_WORD;
|
|
33
|
+
}
|
|
34
|
+
if (!/^[\p{L}\p{N}_-]+$/u.test(word)) return DEFAULT_TUI_THINKING_WORD;
|
|
35
|
+
return word;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// src/services/run-git.ts
|
|
39
|
+
import { spawn } from "node:child_process";
|
|
40
|
+
import { toErrorMessage } from "@wrongstack/core/utils";
|
|
41
|
+
async function runGit(args, cwd) {
|
|
42
|
+
try {
|
|
43
|
+
return await new Promise((resolve, reject) => {
|
|
44
|
+
const child = spawn("git", args, {
|
|
45
|
+
cwd,
|
|
46
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
47
|
+
signal: AbortSignal.timeout(3e4),
|
|
48
|
+
windowsHide: true
|
|
49
|
+
});
|
|
50
|
+
let stdout = "";
|
|
51
|
+
let stderr = "";
|
|
52
|
+
child.stdout?.on("data", (d) => {
|
|
53
|
+
stdout += d;
|
|
54
|
+
});
|
|
55
|
+
child.stderr?.on("data", (d) => {
|
|
56
|
+
stderr += d;
|
|
57
|
+
});
|
|
58
|
+
child.on("error", (err) => {
|
|
59
|
+
reject(new Error(`Failed to run git: ${err.message}`));
|
|
60
|
+
});
|
|
61
|
+
child.on("close", (code) => resolve({ stdout, stderr, code: code ?? 0 }));
|
|
62
|
+
});
|
|
63
|
+
} catch (err) {
|
|
64
|
+
throw new Error(toErrorMessage(err));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export {
|
|
69
|
+
setSuggestions,
|
|
70
|
+
setAutoSuggestions,
|
|
71
|
+
getSuggestions,
|
|
72
|
+
removeSuggestions,
|
|
73
|
+
clearSuggestions,
|
|
74
|
+
MAX_TUI_THINKING_WORD_LENGTH,
|
|
75
|
+
normalizeTuiThinkingWord,
|
|
76
|
+
runGit
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=chunk-SXJTVNWF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
startProxyProbe
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-G3IMKQRH.js";
|
|
4
4
|
|
|
5
5
|
// src/wiring/proxy-wiring.ts
|
|
6
6
|
import {
|
|
@@ -55,4 +55,4 @@ export {
|
|
|
55
55
|
bootstrapWrongProxy,
|
|
56
56
|
shutdownWrongProxy
|
|
57
57
|
};
|
|
58
|
-
//# sourceMappingURL=chunk-
|
|
58
|
+
//# sourceMappingURL=chunk-SYIBTG3X.js.map
|
|
@@ -24,9 +24,10 @@ var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
|
|
|
24
24
|
"no-features",
|
|
25
25
|
"tui",
|
|
26
26
|
"no-tui",
|
|
27
|
-
//
|
|
28
|
-
//
|
|
29
|
-
//
|
|
27
|
+
// Recovery switches. `--recover` reopens the most recent session with no
|
|
28
|
+
// trailing `session_end` (see wiring/resume-candidate.ts); `--no-recovery`
|
|
29
|
+
// suppresses it, so a launch script that passes both still starts fresh.
|
|
30
|
+
// Both are boolean so they cannot swallow the next positional token.
|
|
30
31
|
"no-recovery",
|
|
31
32
|
"recover",
|
|
32
33
|
"output-json",
|
|
@@ -1074,4 +1075,4 @@ export {
|
|
|
1074
1075
|
runLiveProviderPicker,
|
|
1075
1076
|
runPicker
|
|
1076
1077
|
};
|
|
1077
|
-
//# sourceMappingURL=chunk-
|
|
1078
|
+
//# sourceMappingURL=chunk-T642Q732.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-U3SS4NRH.js";
|
|
4
4
|
import {
|
|
5
5
|
checkForUpdate
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NV3JDK4F.js";
|
|
7
7
|
|
|
8
8
|
// src/subcommands/handlers/update.ts
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
@@ -383,4 +383,4 @@ export {
|
|
|
383
383
|
detectUpdatePackageManager,
|
|
384
384
|
detectUpdatePackageName
|
|
385
385
|
};
|
|
386
|
-
//# sourceMappingURL=chunk-
|
|
386
|
+
//# sourceMappingURL=chunk-VXCCBI2W.js.map
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
* leaking plugin or MCP server can hang the process indefinitely.
|
|
13
13
|
* A 500ms `setTimeout(exit)` with `.unref()` lets the natural drain
|
|
14
14
|
* finish first, then forces exit if anything is still pending. The
|
|
15
|
+
* grace window is durability-aware: it extends in 500ms steps while a
|
|
16
|
+
* fs write stream is still active (hard 5s ceiling), grants sockets one
|
|
17
|
+
* extra window (idle keep-alives must not stall exit), and every forced
|
|
18
|
+
* exit is reported via a structured `exit.forced` warning. The
|
|
15
19
|
* `.unref()` is critical: it prevents the timer itself from keeping
|
|
16
20
|
* the event loop alive.
|
|
17
21
|
* 3. **Stack-trace on rejection** — a top-level `main().catch(...)` that
|
|
@@ -36,6 +40,11 @@ interface BrokenPipeHandlerOptions {
|
|
|
36
40
|
* boundary and rethrow other stream failures so genuine faults remain visible.
|
|
37
41
|
*/
|
|
38
42
|
export declare function installBrokenPipeHandlers(options?: BrokenPipeHandlerOptions): () => void;
|
|
43
|
+
interface ForcedExitDeps {
|
|
44
|
+
readonly getActiveResources?: () => readonly string[];
|
|
45
|
+
readonly exit?: ((code: number) => void) | undefined;
|
|
46
|
+
}
|
|
47
|
+
export declare function scheduleForcedExit(code: number, deps?: ForcedExitDeps): void;
|
|
39
48
|
export declare function runAsMain(mainFn: (argv: string[]) => Promise<number>): void;
|
|
40
49
|
export {};
|
|
41
50
|
//# sourceMappingURL=cli-entry-point.d.ts.map
|
|
@@ -30,7 +30,7 @@ import type { AutonomyMode } from './services/autonomy-mode.js';
|
|
|
30
30
|
type ContainerLike = {
|
|
31
31
|
resolve: <T>(token: Token<T>) => T;
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
interface EternalFlagDeps {
|
|
34
34
|
/** The `--eternal` flag value (already trimmed). Empty string = no-op. */
|
|
35
35
|
eternalFlag: string;
|
|
36
36
|
projectRoot: string;
|