@wrongstack/cli 0.319.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/dist/{auth-KF5TAD7V.js → auth-ND7J7DTD.js} +2 -2
- package/dist/{chunk-H7GABTGS.js → chunk-635WW3II.js} +3 -13
- package/dist/{chunk-7CECQDNH.js → chunk-D3K4NYQL.js} +1 -1
- package/dist/{chunk-4JRIWVJ4.js → chunk-ERX4BLKP.js} +1 -1
- package/dist/{chunk-42JD25KU.js → chunk-HF5VQWIY.js} +2 -2
- package/dist/{chunk-XHIEA6LG.js → chunk-IMT6PNV5.js} +1 -1
- package/dist/{chunk-G7337TTK.js → chunk-IS2PPBQV.js} +1 -1
- package/dist/{chunk-G3IMKQRH.js → chunk-JHPXJRRI.js} +1 -1
- package/dist/{chunk-OZDE3OWD.js → chunk-KYDJJLJI.js} +10 -10
- package/dist/{chunk-VWCZL4OH.js → chunk-LIWVIEZM.js} +2 -2
- package/dist/{chunk-7JBKXVMK.js → chunk-TALOKMIC.js} +14 -18
- 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/{cli-context-LH4QP4W2.js → cli-context-K73EIND5.js} +6 -6
- package/dist/{cli-main-72XUFUCL.js → cli-main-QXSKKANW.js} +42 -57
- package/dist/{diag-doctor-LFCCBPMD.js → diag-doctor-QZVKUAE5.js} +4 -5
- package/dist/{execution-DKJDNPYF.js → execution-7ZFY4FJY.js} +484 -458
- 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 +3 -3
- package/dist/{modeldiag-5FRMT6FQ.js → modeldiag-ZL4ROTQ5.js} +1 -1
- package/dist/{plugin-usage-CYUORYM6.js → plugin-usage-7WCZW4NP.js} +2 -2
- package/dist/{plugins-RV3OBBND.js → plugins-7N3TF2QF.js} +3 -3
- 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/{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/{short-circuit-flags-U6CJAF6J.js → short-circuit-flags-7YUCERBB.js} +2 -2
- package/dist/slash-commands/sdd.d.ts +1 -1
- package/dist/{subcommands-J4JMWC5W.js → subcommands-KE6MEQQP.js} +2 -2
- package/dist/{webui-server-SY4EQCKD.js → webui-server-F7MSRHOF.js} +4 -2
- 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
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
runOAuthLoginKind,
|
|
14
14
|
runOAuthLoginMenu,
|
|
15
15
|
validateFamily
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IMT6PNV5.js";
|
|
17
17
|
import {
|
|
18
18
|
renderAuthLocalHelpToString,
|
|
19
19
|
wantsLocalHelp
|
|
@@ -596,4 +596,4 @@ async function runAuthRemove(deps, providerId) {
|
|
|
596
596
|
export {
|
|
597
597
|
authCmd
|
|
598
598
|
};
|
|
599
|
-
//# sourceMappingURL=auth-
|
|
599
|
+
//# sourceMappingURL=auth-ND7J7DTD.js.map
|
|
@@ -120,9 +120,7 @@ async function loadExternalPlugins(ctx, hooks) {
|
|
|
120
120
|
});
|
|
121
121
|
if (!enabled) {
|
|
122
122
|
if (enablementSource !== "default") {
|
|
123
|
-
log.info(
|
|
124
|
-
`[plugins] discovered plugin "${candidate.name}" disabled by ${enablementSource}`
|
|
125
|
-
);
|
|
123
|
+
log.info(`[plugins] discovered plugin "${candidate.name}" disabled by ${enablementSource}`);
|
|
126
124
|
}
|
|
127
125
|
continue;
|
|
128
126
|
}
|
|
@@ -880,15 +878,7 @@ function buildInstallArgs(pm, targetDir, runScripts, spec) {
|
|
|
880
878
|
case "bun":
|
|
881
879
|
return ["add", "--cwd", targetDir, ...ignoreScripts, spec];
|
|
882
880
|
default:
|
|
883
|
-
return [
|
|
884
|
-
"install",
|
|
885
|
-
"--prefix",
|
|
886
|
-
targetDir,
|
|
887
|
-
"--no-audit",
|
|
888
|
-
"--no-fund",
|
|
889
|
-
...ignoreScripts,
|
|
890
|
-
spec
|
|
891
|
-
];
|
|
881
|
+
return ["install", "--prefix", targetDir, "--no-audit", "--no-fund", ...ignoreScripts, spec];
|
|
892
882
|
}
|
|
893
883
|
}
|
|
894
884
|
function runPackageManagerInstall(pm, args, cwd) {
|
|
@@ -996,4 +986,4 @@ export {
|
|
|
996
986
|
PLUGIN_AUDIT_ENTRIES,
|
|
997
987
|
runPluginManagementCommand
|
|
998
988
|
};
|
|
999
|
-
//# sourceMappingURL=chunk-
|
|
989
|
+
//# sourceMappingURL=chunk-635WW3II.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
PLUGIN_AUDIT_ENTRIES,
|
|
6
6
|
loadExternalPlugins
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-635WW3II.js";
|
|
8
8
|
|
|
9
9
|
// src/wiring/plugins.ts
|
|
10
10
|
import { join } from "node:path";
|
|
@@ -261,4 +261,4 @@ export {
|
|
|
261
261
|
BUILTIN_PLUGIN_FACTORIES,
|
|
262
262
|
setupPlugins
|
|
263
263
|
};
|
|
264
|
-
//# sourceMappingURL=chunk-
|
|
264
|
+
//# sourceMappingURL=chunk-HF5VQWIY.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var loaders = {
|
|
4
4
|
acp: async () => (await import("./acp-5ANIAOZC.js")).acpCmd,
|
|
5
5
|
init: async () => (await import("./init-4JQSG66Q.js")).initCmd,
|
|
6
|
-
auth: async () => (await import("./auth-
|
|
6
|
+
auth: async () => (await import("./auth-ND7J7DTD.js")).authCmd,
|
|
7
7
|
update: async () => (await import("./update-K45CS6SS.js")).updateCmd,
|
|
8
8
|
sessions: async () => (await import("./sessions-config-KAMEBVOX.js")).sessionsCmd,
|
|
9
9
|
config: async () => (await import("./sessions-config-KAMEBVOX.js")).configCmd,
|
|
@@ -15,21 +15,21 @@ var loaders = {
|
|
|
15
15
|
providers: async () => (await import("./providers-models-OKKQZIWU.js")).providersCmd,
|
|
16
16
|
models: async () => (await import("./providers-models-OKKQZIWU.js")).modelsCmd,
|
|
17
17
|
mcp: async () => (await import("./mcp-AQKSASHD.js")).mcpCmd,
|
|
18
|
-
plugin: async () => (await import("./plugin-usage-
|
|
19
|
-
plugins: async () => (await import("./plugin-usage-
|
|
20
|
-
diag: async () => (await import("./diag-doctor-
|
|
21
|
-
doctor: async () => (await import("./diag-doctor-
|
|
22
|
-
"proxy-status": async () => (await import("./diag-doctor-
|
|
18
|
+
plugin: async () => (await import("./plugin-usage-7WCZW4NP.js")).pluginCmd,
|
|
19
|
+
plugins: async () => (await import("./plugin-usage-7WCZW4NP.js")).pluginCmd,
|
|
20
|
+
diag: async () => (await import("./diag-doctor-QZVKUAE5.js")).diagCmd,
|
|
21
|
+
doctor: async () => (await import("./diag-doctor-QZVKUAE5.js")).doctorCmd,
|
|
22
|
+
"proxy-status": async () => (await import("./diag-doctor-QZVKUAE5.js")).proxyCmd,
|
|
23
23
|
export: async () => (await import("./export-ROG3DKTZ.js")).exportCmd,
|
|
24
|
-
usage: async () => (await import("./plugin-usage-
|
|
24
|
+
usage: async () => (await import("./plugin-usage-7WCZW4NP.js")).usageCmd,
|
|
25
25
|
version: async () => (await import("./version-help-WMPSEL4U.js")).versionCmd,
|
|
26
26
|
help: async () => (await import("./version-help-WMPSEL4U.js")).helpCmd,
|
|
27
27
|
projects: async () => (await import("./projects-5J727S4L.js")).projectsCmd,
|
|
28
|
-
modeldiag: async () => (await import("./modeldiag-
|
|
28
|
+
modeldiag: async () => (await import("./modeldiag-ZL4ROTQ5.js")).modeldiagCmd,
|
|
29
29
|
quick: async () => (await import("./quick-XLYLZX4B.js")).quickCmd,
|
|
30
30
|
bench: async () => (await import("./bench-XYG56AMO.js")).benchCmd,
|
|
31
31
|
chronicle: async () => (await import("./chronicle-6EPPMUC5.js")).chronicleCmd,
|
|
32
|
-
hq: async () => (await import("./hq-
|
|
32
|
+
hq: async () => (await import("./hq-4QQJO2GN.js")).hqCmd,
|
|
33
33
|
mailbox: async () => (await import("./mailbox-serve-VKQIRCCB.js")).mailboxServeCmd,
|
|
34
34
|
permissions: async () => (await import("./permissions-2PWBL4YU.js")).permissionsCmd,
|
|
35
35
|
project: async () => (await import("./project-BLQ3ALVL.js")).projectCmd,
|
|
@@ -49,4 +49,4 @@ export {
|
|
|
49
49
|
subcommands,
|
|
50
50
|
subcommandNames
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=chunk-
|
|
52
|
+
//# sourceMappingURL=chunk-KYDJJLJI.js.map
|
|
@@ -22,7 +22,7 @@ async function handleHelpVersionShortCircuit(argv) {
|
|
|
22
22
|
}
|
|
23
23
|
if (earlyFlags["help"] === true) {
|
|
24
24
|
if (positional.length > 0) {
|
|
25
|
-
const { subcommandNames } = await import("./subcommands-
|
|
25
|
+
const { subcommandNames } = await import("./subcommands-KE6MEQQP.js");
|
|
26
26
|
if (subcommandNames.includes(positional[0])) {
|
|
27
27
|
const first = positional[0];
|
|
28
28
|
const deep = positional[1];
|
|
@@ -43,4 +43,4 @@ async function handleHelpVersionShortCircuit(argv) {
|
|
|
43
43
|
export {
|
|
44
44
|
handleHelpVersionShortCircuit
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=chunk-
|
|
46
|
+
//# sourceMappingURL=chunk-LIWVIEZM.js.map
|
|
@@ -1775,10 +1775,7 @@ function handleApiAuthAudit(_req, res, dataDir) {
|
|
|
1775
1775
|
|
|
1776
1776
|
// src/hq-server/routes/command-handlers.ts
|
|
1777
1777
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
1778
|
-
import {
|
|
1779
|
-
tokenHasCapability,
|
|
1780
|
-
validateHqCommand
|
|
1781
|
-
} from "@wrongstack/core/hq";
|
|
1778
|
+
import { tokenHasCapability, validateHqCommand } from "@wrongstack/core/hq";
|
|
1782
1779
|
|
|
1783
1780
|
// src/hq-server/snapshot.ts
|
|
1784
1781
|
import { WebSocket } from "ws";
|
|
@@ -2267,9 +2264,7 @@ async function authorizeHqCommand(input) {
|
|
|
2267
2264
|
|
|
2268
2265
|
// src/hq-server/routes/mailbox-handlers.ts
|
|
2269
2266
|
import * as path4 from "node:path";
|
|
2270
|
-
import {
|
|
2271
|
-
resolveProjectDir
|
|
2272
|
-
} from "@wrongstack/core/coordination";
|
|
2267
|
+
import { resolveProjectDir } from "@wrongstack/core/coordination";
|
|
2273
2268
|
|
|
2274
2269
|
// src/hq-server/project-root.ts
|
|
2275
2270
|
import { deriveHqProjectId } from "@wrongstack/core/hq";
|
|
@@ -3316,7 +3311,12 @@ var MailboxGatewayManager = class {
|
|
|
3316
3311
|
MAILBOX_GATEWAY_SWEEP_INTERVAL_MS = 6e4;
|
|
3317
3312
|
authorizeMailboxGateway(req, projectDir) {
|
|
3318
3313
|
const requestUrl = new URL(req.url ?? "/", `http://${this.deps.host}:${this.deps.port}`);
|
|
3319
|
-
const auth = authenticateBrowserRequest2(
|
|
3314
|
+
const auth = authenticateBrowserRequest2(
|
|
3315
|
+
req,
|
|
3316
|
+
requestUrl,
|
|
3317
|
+
this.deps.mutableAuth,
|
|
3318
|
+
this.deps.sessions
|
|
3319
|
+
);
|
|
3320
3320
|
const tokenMode = this.deps.mutableAuth.browserTokens.size > 0;
|
|
3321
3321
|
if (hqAuthRequired(this.deps.mutableAuth) && auth === void 0) {
|
|
3322
3322
|
return {
|
|
@@ -3638,10 +3638,7 @@ function handleIncomingClientEvent(ws, incomingEvent, clients, browsers, auth, s
|
|
|
3638
3638
|
const event = redactHqEvent(
|
|
3639
3639
|
{ ...incomingEvent, payload: parsedPayload.payload },
|
|
3640
3640
|
{
|
|
3641
|
-
policy: tightenHqRedactionPolicy(
|
|
3642
|
-
client.declaredRedactionPolicy,
|
|
3643
|
-
auth.getOperatorPolicy()
|
|
3644
|
-
),
|
|
3641
|
+
policy: tightenHqRedactionPolicy(client.declaredRedactionPolicy, auth.getOperatorPolicy()),
|
|
3645
3642
|
projectRoot: client.project.projectRoot,
|
|
3646
3643
|
// Chat-transcript events carry full turns — the generic 500-char
|
|
3647
3644
|
// summary cap would truncate them a second time after the
|
|
@@ -3807,10 +3804,7 @@ function handleIncomingClientEvent(ws, incomingEvent, clients, browsers, auth, s
|
|
|
3807
3804
|
}
|
|
3808
3805
|
|
|
3809
3806
|
// src/hq-server/ws-leader.ts
|
|
3810
|
-
import {
|
|
3811
|
-
HQ_BROWSER_PEER_RESUME_CLIENT_ID,
|
|
3812
|
-
HQ_PROTOCOL_VERSION
|
|
3813
|
-
} from "@wrongstack/core/hq";
|
|
3807
|
+
import { HQ_BROWSER_PEER_RESUME_CLIENT_ID, HQ_PROTOCOL_VERSION } from "@wrongstack/core/hq";
|
|
3814
3808
|
var MAX_EVENT_LOG = 5e3;
|
|
3815
3809
|
var PEER_DEDUP_WINDOW_MS = 60 * 60 * 1e3;
|
|
3816
3810
|
var peerDedupMap = /* @__PURE__ */ new Map();
|
|
@@ -4418,7 +4412,9 @@ function handleHqConnection(ws, req, pathname, deps) {
|
|
|
4418
4412
|
if (pathname === "/ws/browser") {
|
|
4419
4413
|
handleBrowser(ws, deps.snapshotBroadcaster, deps.browsers, deps.eventLog);
|
|
4420
4414
|
} else {
|
|
4421
|
-
const token = new URL(req.url ?? "/", `http://${deps.host}:${deps.port}`).searchParams.get(
|
|
4415
|
+
const token = new URL(req.url ?? "/", `http://${deps.host}:${deps.port}`).searchParams.get(
|
|
4416
|
+
"token"
|
|
4417
|
+
);
|
|
4422
4418
|
const authToken = token ? deps.mutableAuth.clientTokenObjs.get(hqTokenVerifier2(token)) : void 0;
|
|
4423
4419
|
deps.clientSocketTokens.set(ws, authToken);
|
|
4424
4420
|
ws.once("close", () => deps.clientSocketTokens.delete(ws));
|
|
@@ -4914,4 +4910,4 @@ export {
|
|
|
4914
4910
|
startHqServer,
|
|
4915
4911
|
HqInsecureExposureError2 as HqInsecureExposureError
|
|
4916
4912
|
};
|
|
4917
|
-
//# sourceMappingURL=chunk-
|
|
4913
|
+
//# sourceMappingURL=chunk-TALOKMIC.js.map
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
startProxyProbe
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JHPXJRRI.js";
|
|
4
4
|
|
|
5
5
|
// src/wiring/proxy-wiring.ts
|
|
6
|
-
import {
|
|
7
|
-
applyProxyConfig
|
|
8
|
-
} from "@wrongstack/core/wiring/proxy-rewrite";
|
|
6
|
+
import { applyProxyConfig } from "@wrongstack/core/wiring/proxy-rewrite";
|
|
9
7
|
var probeRunner;
|
|
10
8
|
function applyWrongProxyPrefs(payload) {
|
|
11
9
|
const patch = {};
|
|
@@ -55,4 +53,4 @@ export {
|
|
|
55
53
|
bootstrapWrongProxy,
|
|
56
54
|
shutdownWrongProxy
|
|
57
55
|
};
|
|
58
|
-
//# sourceMappingURL=chunk-
|
|
56
|
+
//# sourceMappingURL=chunk-VOTTENR5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-WHOIR577.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadManifest
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IS2PPBQV.js";
|
|
4
4
|
|
|
5
5
|
// src/project-picker.ts
|
|
6
6
|
import { color } from "@wrongstack/core/utils";
|
|
@@ -415,4 +415,4 @@ export {
|
|
|
415
415
|
skipDivider,
|
|
416
416
|
runProjectPicker
|
|
417
417
|
};
|
|
418
|
-
//# sourceMappingURL=chunk-
|
|
418
|
+
//# sourceMappingURL=chunk-WQZW3RDP.js.map
|
|
@@ -19,17 +19,17 @@ import {
|
|
|
19
19
|
} from "./chunk-TYO2OVAD.js";
|
|
20
20
|
import {
|
|
21
21
|
subcommands
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KYDJJLJI.js";
|
|
23
23
|
import {
|
|
24
24
|
renderDeepHelp,
|
|
25
25
|
renderFocusedHelp
|
|
26
26
|
} from "./chunk-P2OKBDCH.js";
|
|
27
27
|
import {
|
|
28
28
|
handleHelpVersionShortCircuit
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-LIWVIEZM.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_PORT
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-TALOKMIC.js";
|
|
33
33
|
import "./chunk-HXJYHAR4.js";
|
|
34
34
|
import "./chunk-Q5GTM25S.js";
|
|
35
35
|
import {
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
runPicker,
|
|
56
56
|
saveToGlobalConfig,
|
|
57
57
|
theme
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-IMT6PNV5.js";
|
|
59
59
|
import "./chunk-2VMJ3E5Z.js";
|
|
60
60
|
import "./chunk-B4JLSXZB.js";
|
|
61
61
|
import {
|
|
@@ -785,7 +785,7 @@ async function isPortInUse(host, port) {
|
|
|
785
785
|
}
|
|
786
786
|
async function handleHqShortCircuit(flags) {
|
|
787
787
|
if (flags["hq"] !== true) return null;
|
|
788
|
-
const { startHqServer } = await import("./hq-server-
|
|
788
|
+
const { startHqServer } = await import("./hq-server-CVAYICIS.js");
|
|
789
789
|
const tunnelRequested = flags["tunnel"] === true;
|
|
790
790
|
const host = typeof flags["host"] === "string" ? flags["host"] : tunnelRequested ? "127.0.0.1" : HQ_CLI_DEFAULT_HOST2;
|
|
791
791
|
if (tunnelRequested && !isLoopbackHost(host)) {
|
|
@@ -3366,4 +3366,4 @@ async function initializeCli(argv) {
|
|
|
3366
3366
|
export {
|
|
3367
3367
|
initializeCli
|
|
3368
3368
|
};
|
|
3369
|
-
//# sourceMappingURL=cli-context-
|
|
3369
|
+
//# sourceMappingURL=cli-context-K73EIND5.js.map
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
} from "./chunk-7YLN7YUA.js";
|
|
4
4
|
import {
|
|
5
5
|
runProjectPicker
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WQZW3RDP.js";
|
|
7
7
|
import {
|
|
8
8
|
ensureProjectDataDir,
|
|
9
9
|
findProject,
|
|
10
10
|
generateSlug,
|
|
11
11
|
loadManifest,
|
|
12
12
|
saveManifest
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IS2PPBQV.js";
|
|
14
14
|
import {
|
|
15
15
|
getWrongTrace
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ERX4BLKP.js";
|
|
17
17
|
import {
|
|
18
18
|
MAX_TUI_THINKING_WORD_LENGTH,
|
|
19
19
|
clearSuggestions,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-SXJTVNWF.js";
|
|
26
26
|
import {
|
|
27
27
|
setupPlugins
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HF5VQWIY.js";
|
|
29
29
|
import {
|
|
30
30
|
deriveFsAccessPair,
|
|
31
31
|
filterSafeForProject,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
import {
|
|
49
49
|
awaitFirstWrongProxyProbe,
|
|
50
50
|
bootstrapWrongProxy
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-VOTTENR5.js";
|
|
52
52
|
import {
|
|
53
53
|
advanceToNextTask,
|
|
54
54
|
findSpec,
|
|
@@ -65,11 +65,11 @@ import {
|
|
|
65
65
|
import {
|
|
66
66
|
PLUGIN_AUDIT_ENTRIES,
|
|
67
67
|
runPluginManagementCommand
|
|
68
|
-
} from "./chunk-
|
|
69
|
-
import "./chunk-
|
|
68
|
+
} from "./chunk-635WW3II.js";
|
|
69
|
+
import "./chunk-JHPXJRRI.js";
|
|
70
70
|
import {
|
|
71
71
|
recordGateDecision
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-D3K4NYQL.js";
|
|
73
73
|
import {
|
|
74
74
|
CLI_VERSION
|
|
75
75
|
} from "./chunk-XJXDOF63.js";
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
runClaudeOAuthLogin,
|
|
92
92
|
runCopilotOAuthLogin,
|
|
93
93
|
validateFamily
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-IMT6PNV5.js";
|
|
95
95
|
import {
|
|
96
96
|
appendHistory
|
|
97
97
|
} from "./chunk-B4JLSXZB.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) {
|
|
@@ -19412,7 +19399,9 @@ function formatMemoryDiagnostics(diag) {
|
|
|
19412
19399
|
lines.push(` with vectors: ${v.vectors}`);
|
|
19413
19400
|
lines.push(` providers: ${v.providers.join(", ") || "\u2205"}`);
|
|
19414
19401
|
lines.push(` model: ${v.modelId} (${v.dimensions}-dim)`);
|
|
19415
|
-
lines.push(
|
|
19402
|
+
lines.push(
|
|
19403
|
+
` cache: ${v.cacheEntries} rows \xB7 ${v.cacheProviders} provider(s) \xB7 ${v.totalUseCount} hits`
|
|
19404
|
+
);
|
|
19416
19405
|
if (v.oldestLastUsedAt) {
|
|
19417
19406
|
lines.push(` cache oldest: ${v.oldestLastUsedAt}`);
|
|
19418
19407
|
}
|
|
@@ -19421,7 +19410,9 @@ function formatMemoryDiagnostics(diag) {
|
|
|
19421
19410
|
lines.push("Cross-system coverage:");
|
|
19422
19411
|
lines.push(` vector \u2194 SAGE: ${v.mirroredInSage} mirrored`);
|
|
19423
19412
|
if (v.standalone > 0) {
|
|
19424
|
-
lines.push(
|
|
19413
|
+
lines.push(
|
|
19414
|
+
` standalone: ${v.standalone} vector-only entries (no SAGE id \u2014 lexical recall misses these)`
|
|
19415
|
+
);
|
|
19425
19416
|
}
|
|
19426
19417
|
if (v.mirroredInSage === 0 && diag.sageTotal > 0) {
|
|
19427
19418
|
lines.push(" \u{1F4A1} Run `wrongstack --vector-sync` to backfill the vector mirror.");
|
|
@@ -19522,18 +19513,14 @@ function formatSearchRace(race) {
|
|
|
19522
19513
|
if (race.lexicalOnly.length > 0) {
|
|
19523
19514
|
lines.push("### \u{1F170}\uFE0F Lexical only (vector missed)");
|
|
19524
19515
|
for (const row of race.lexicalOnly) {
|
|
19525
|
-
lines.push(
|
|
19526
|
-
`- \`${row.id.slice(0, 12)}\u2026\` L=${pct2(row.lexicalScore ?? 0)} ${row.preview}`
|
|
19527
|
-
);
|
|
19516
|
+
lines.push(`- \`${row.id.slice(0, 12)}\u2026\` L=${pct2(row.lexicalScore ?? 0)} ${row.preview}`);
|
|
19528
19517
|
}
|
|
19529
19518
|
lines.push("");
|
|
19530
19519
|
}
|
|
19531
19520
|
if (race.vectorOnly.length > 0) {
|
|
19532
19521
|
lines.push("### \u{1F171}\uFE0F Vector only (lexical missed)");
|
|
19533
19522
|
for (const row of race.vectorOnly) {
|
|
19534
|
-
lines.push(
|
|
19535
|
-
`- \`${row.id.slice(0, 12)}\u2026\` V=${pct2(row.vectorScore ?? 0)} ${row.preview}`
|
|
19536
|
-
);
|
|
19523
|
+
lines.push(`- \`${row.id.slice(0, 12)}\u2026\` V=${pct2(row.vectorScore ?? 0)} ${row.preview}`);
|
|
19537
19524
|
}
|
|
19538
19525
|
lines.push("");
|
|
19539
19526
|
}
|
|
@@ -20547,9 +20534,7 @@ File size reduced. Audit-logged as \`memory.log_compacted\`.`
|
|
|
20547
20534
|
try {
|
|
20548
20535
|
[sageStats, sageTotal] = await Promise.all([
|
|
20549
20536
|
Sage.stats(),
|
|
20550
|
-
Sage.listSagePage({ limit: 1 }).then(
|
|
20551
|
-
(page) => page.total ?? page.memories.length
|
|
20552
|
-
)
|
|
20537
|
+
Sage.listSagePage({ limit: 1 }).then((page) => page.total ?? page.memories.length)
|
|
20553
20538
|
]);
|
|
20554
20539
|
} catch (err) {
|
|
20555
20540
|
return {
|
|
@@ -24694,7 +24679,9 @@ function buildEffortCommand(opts) {
|
|
|
24694
24679
|
` ${color49.bold("effort")} ${color49.bold(current)}${ok ? "" : ` ${color49.amber(`(not advertised by this model \u2014 supported: ${levels.join(", ")})`)}`}`
|
|
24695
24680
|
);
|
|
24696
24681
|
} else {
|
|
24697
|
-
lines.push(
|
|
24682
|
+
lines.push(
|
|
24683
|
+
` ${color49.bold("effort")} ${color49.dim("(not set \u2014 auto \xB7 provider default applies)")}`
|
|
24684
|
+
);
|
|
24698
24685
|
}
|
|
24699
24686
|
if (levels) {
|
|
24700
24687
|
const rendered = REASONING_EFFORT_LEVELS2.filter((l) => levels.includes(l)).map(
|
|
@@ -24714,15 +24701,14 @@ function buildEffortCommand(opts) {
|
|
|
24714
24701
|
` ${color49.bold("levels")} ${color49.dim("(unknown \u2014 the resolver drops unsupported values with a warning)")}`
|
|
24715
24702
|
);
|
|
24716
24703
|
}
|
|
24717
|
-
lines.push(
|
|
24718
|
-
"",
|
|
24719
|
-
` ${color49.dim("/effort <level> \xB7 clear \xB7 matrix \xB7 help")}`
|
|
24720
|
-
);
|
|
24704
|
+
lines.push("", ` ${color49.dim("/effort <level> \xB7 clear \xB7 matrix \xB7 help")}`);
|
|
24721
24705
|
return { message: lines.join("\n") };
|
|
24722
24706
|
}
|
|
24723
24707
|
if (sub === "clear" || sub === "off-default") {
|
|
24724
24708
|
if (current === void 0) {
|
|
24725
|
-
return {
|
|
24709
|
+
return {
|
|
24710
|
+
message: `${color49.dim("No session effort set \u2014 provider default already applies.")}`
|
|
24711
|
+
};
|
|
24726
24712
|
}
|
|
24727
24713
|
await patchSessionEffort(void 0, opts.paths, config.activeProfile ?? "default");
|
|
24728
24714
|
opts.configStore.update({
|
|
@@ -31788,7 +31774,13 @@ async function setupCommandHostState(input) {
|
|
|
31788
31774
|
input.hqCommandController.interruptLeader = () => interruptController.abortLeader();
|
|
31789
31775
|
input.hqCommandController.killFleet = () => killFleet2(input.getDirector());
|
|
31790
31776
|
input.hqCommandController.terminateAgent = (subagentId) => terminateAgent(input.getDirector(), subagentId);
|
|
31791
|
-
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
|
+
);
|
|
31792
31784
|
const enhanceController = createEnhanceController(input.getConfig());
|
|
31793
31785
|
const statuslineConfigDeps = createStatuslineConfigDeps();
|
|
31794
31786
|
const hidden = await loadStatuslineHiddenItems();
|
|
@@ -33094,11 +33086,7 @@ async function setupCompaction(params) {
|
|
|
33094
33086
|
providerId: config.provider ?? provider.id,
|
|
33095
33087
|
modelId: config.model ?? context.model
|
|
33096
33088
|
});
|
|
33097
|
-
const initialPolicy = resolveContextWindowPolicy2(
|
|
33098
|
-
config.context,
|
|
33099
|
-
void 0,
|
|
33100
|
-
effectiveMaxContext
|
|
33101
|
-
);
|
|
33089
|
+
const initialPolicy = resolveContextWindowPolicy2(config.context, void 0, effectiveMaxContext);
|
|
33102
33090
|
context.meta ??= {};
|
|
33103
33091
|
context.meta["contextWindowMode"] = initialPolicy.id;
|
|
33104
33092
|
context.meta["contextWindowPolicy"] = initialPolicy;
|
|
@@ -33661,10 +33649,7 @@ async function setupLifecycleAndPlugins(deps) {
|
|
|
33661
33649
|
const getLiveConfig = () => configStore.get();
|
|
33662
33650
|
const fallbackProfileManager = container.resolve(TOKENS11.FallbackProfileManager);
|
|
33663
33651
|
const statusTracker = container.resolve(TOKENS11.ProviderModelStatusTracker);
|
|
33664
|
-
const buildUtilityProvider = (providerId) => buildProviderForIdRuntimeFn(
|
|
33665
|
-
{ config: getLiveConfig(), providerRegistry, logger },
|
|
33666
|
-
providerId
|
|
33667
|
-
);
|
|
33652
|
+
const buildUtilityProvider = (providerId) => buildProviderForIdRuntimeFn({ config: getLiveConfig(), providerRegistry, logger }, providerId);
|
|
33668
33653
|
const pluginOneShot = new OneShotOrchestrator2({
|
|
33669
33654
|
buildProvider: buildUtilityProvider,
|
|
33670
33655
|
getConfig: getLiveConfig,
|
|
@@ -36683,4 +36668,4 @@ export {
|
|
|
36683
36668
|
CLI_VERSION,
|
|
36684
36669
|
runInteractive
|
|
36685
36670
|
};
|
|
36686
|
-
//# 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
|