@wrongstack/cli 0.309.1 → 0.310.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/{acp-7NWCC2GO.js → acp-GZIASCLH.js} +6 -4
- package/dist/acp-server-agent.d.ts +1 -1
- package/dist/{audit-BBR22QH3.js → audit-ZPCLCC3C.js} +1 -1
- package/dist/{auth-GZ2FK5KR.js → auth-VQMSZGKE.js} +4 -4
- package/dist/{bench-XNDUJOSZ.js → bench-XYG56AMO.js} +1 -1
- package/dist/boot/tui-session-stub-enrich.d.ts +20 -0
- package/dist/{chronicle-63MFCZN6.js → chronicle-6EPPMUC5.js} +1 -1
- package/dist/chunk-3FHFGIIN.js +58 -0
- package/dist/chunk-3MAUU765.js +120 -0
- package/dist/{chunk-53STH6CX.js → chunk-4S52MIIM.js} +4 -3
- package/dist/{chunk-SZ42FYPT.js → chunk-BXFYBQKR.js} +4 -6
- package/dist/{chunk-CB35UVXO.js → chunk-J3XBHGEO.js} +34 -9
- package/dist/{chunk-UINEP3E7.js → chunk-J4QSP6T2.js} +41 -10
- package/dist/{chunk-XSG33WHN.js → chunk-QAC263FZ.js} +4 -2
- package/dist/{chunk-XQ6FI2K6.js → chunk-QYIIOMLE.js} +2 -2
- package/dist/{chunk-ZRZ54GVL.js → chunk-USYOJIV2.js} +3 -3
- package/dist/{chunk-T6YAVFXA.js → chunk-X3N5TS2S.js} +2 -1
- package/dist/{cli-main-XGDOIPN5.js → cli-main-UDWMWX55.js} +3114 -2883
- package/dist/{diag-doctor-WTBHPOMB.js → diag-doctor-Z6JDXBVX.js} +48 -2
- package/dist/{execution-TYUXABWI.js → execution-ZEHK4II6.js} +217 -68
- package/dist/{export-CCUXRJOU.js → export-ROG3DKTZ.js} +1 -1
- package/dist/{hq-PA6RH2UW.js → hq-3BEUEXJQ.js} +18 -10
- package/dist/hq-server/handle-types.d.ts +32 -0
- package/dist/hq-server/login-attempt-store.d.ts +5 -0
- package/dist/{hq-server-PBRU275L.js → hq-server-4MIW3S4J.js} +2 -2
- package/dist/hq-server.d.ts +2 -20
- package/dist/index.js +107 -77
- package/dist/{init-E2NDDOHI.js → init-4JQSG66Q.js} +1 -1
- package/dist/live-settings-input.d.ts +14 -0
- package/dist/{mailbox-serve-V3QIJBDH.js → mailbox-serve-5S3PHG5D.js} +1 -1
- package/dist/{mcp-CMLFHRG2.js → mcp-RRPKNRSN.js} +3 -1
- package/dist/mcp-serve.d.ts +1 -1
- package/dist/{modeldiag-ICMPHT5L.js → modeldiag-H6DKWJ2N.js} +6 -12
- package/dist/{plugin-usage-26LIIW3P.js → plugin-usage-GCTYOZPH.js} +1 -1
- package/dist/{projects-XE76NFNZ.js → projects-5J727S4L.js} +1 -1
- package/dist/provider-config-utils.d.ts +1 -2
- package/dist/{providers-models-D23WUD74.js → providers-models-663NDPRQ.js} +2 -2
- package/dist/proxy-wiring-7RPGBHZP.js +15 -0
- package/dist/{quick-VIO2BEHS.js → quick-XLYLZX4B.js} +1 -1
- package/dist/{replay-WBRMEWQ5.js → replay-RZXZKP2U.js} +1 -1
- package/dist/{rewind-7RE6ONIC.js → rewind-2FFNOOKS.js} +1 -1
- package/dist/{sessions-config-YX2ZPAFM.js → sessions-config-7Q7QJBKJ.js} +1 -1
- package/dist/subcommands/handlers/acp.d.ts +1 -1
- package/dist/subcommands/handlers/audit.d.ts +1 -1
- package/dist/subcommands/handlers/auth.d.ts +1 -1
- package/dist/subcommands/handlers/bench.d.ts +1 -1
- package/dist/subcommands/handlers/chronicle.d.ts +1 -1
- package/dist/subcommands/handlers/config-history.d.ts +1 -1
- package/dist/subcommands/handlers/diag-doctor.d.ts +15 -1
- package/dist/subcommands/handlers/export.d.ts +1 -1
- package/dist/subcommands/handlers/hq.d.ts +1 -1
- package/dist/subcommands/handlers/init.d.ts +1 -1
- package/dist/subcommands/handlers/mailbox-serve.d.ts +1 -1
- package/dist/subcommands/handlers/mcp.d.ts +1 -1
- package/dist/subcommands/handlers/modeldiag-bench.d.ts +1 -1
- package/dist/subcommands/handlers/modeldiag-eval.d.ts +1 -1
- package/dist/subcommands/handlers/modeldiag-test.d.ts +1 -1
- package/dist/subcommands/handlers/modeldiag.d.ts +1 -1
- package/dist/subcommands/handlers/plugin-usage.d.ts +1 -1
- package/dist/subcommands/handlers/projects.d.ts +1 -1
- package/dist/subcommands/handlers/providers-models.d.ts +1 -1
- package/dist/subcommands/handlers/quick.d.ts +1 -1
- package/dist/subcommands/handlers/replay.d.ts +1 -1
- package/dist/subcommands/handlers/rewind.d.ts +1 -1
- package/dist/subcommands/handlers/sessions-config.d.ts +1 -1
- package/dist/subcommands/handlers/sessions-fleet.d.ts +1 -1
- package/dist/subcommands/handlers/tools-skills.d.ts +1 -1
- package/dist/subcommands/handlers/update.d.ts +1 -1
- package/dist/subcommands/handlers/version-help.d.ts +1 -1
- package/dist/subcommands/index.d.ts +2 -3
- package/dist/{tools-skills-UNKLOB7M.js → tools-skills-Q4P27URS.js} +1 -1
- package/dist/{update-VZSOZGYC.js → update-ZXNC6I6G.js} +2 -2
- package/dist/{version-help-TFD6VPF3.js → version-help-WMPSEL4U.js} +2 -2
- package/dist/webui-server/prefs-seeding.d.ts +4 -0
- package/dist/{webui-server-JXJ4CGIX.js → webui-server-UB75UHWX.js} +14 -10
- package/dist/webui-server-options.d.ts +8 -0
- package/dist/wiring/director-announcement.d.ts +31 -0
- package/dist/wiring/provider-runtime.d.ts +25 -0
- package/dist/wiring/proxy-probe.d.ts +62 -0
- package/dist/wiring/proxy-wiring.d.ts +59 -0
- package/dist/wiring/session-establishment.d.ts +45 -0
- package/dist/wiring/session-registry.d.ts +1 -1
- package/dist/wiring/session-runtime.d.ts +64 -0
- package/dist/wiring/teardown-registrar.d.ts +41 -0
- package/dist/wiring/vector-memory-setup.d.ts +30 -0
- package/package.json +27 -25
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
startProxyProbe
|
|
3
|
+
} from "./chunk-3MAUU765.js";
|
|
1
4
|
import {
|
|
2
5
|
API_VERSION
|
|
3
6
|
} from "./chunk-XJXDOF63.js";
|
|
@@ -8,6 +11,11 @@ import * as fs2 from "node:fs/promises";
|
|
|
8
11
|
import * as os from "node:os";
|
|
9
12
|
import * as path2 from "node:path";
|
|
10
13
|
import { color, toErrorMessage } from "@wrongstack/core/utils";
|
|
14
|
+
import {
|
|
15
|
+
applyProxyConfig,
|
|
16
|
+
getProxyConfig,
|
|
17
|
+
shouldRewriteFor
|
|
18
|
+
} from "@wrongstack/core/wiring/proxy-rewrite";
|
|
11
19
|
|
|
12
20
|
// src/subcommands/handlers/daemon-inventory.ts
|
|
13
21
|
import * as fs from "node:fs/promises";
|
|
@@ -138,6 +146,43 @@ var diagCmd = async (_args, deps) => {
|
|
|
138
146
|
deps.renderer.write(lines.join("\n") + "\n");
|
|
139
147
|
return 0;
|
|
140
148
|
};
|
|
149
|
+
var proxyCmd = async (_args, deps) => {
|
|
150
|
+
const persisted = deps.config.tools?.wrongProxy;
|
|
151
|
+
if (persisted) {
|
|
152
|
+
applyProxyConfig({
|
|
153
|
+
enabled: persisted.enabled === true,
|
|
154
|
+
url: typeof persisted.url === "string" ? persisted.url : ""
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
if (persisted?.enabled === true && persisted.url) {
|
|
158
|
+
const runner = startProxyProbe({ intervalMs: 6e4, timeoutMs: 2e3 });
|
|
159
|
+
await runner.poke();
|
|
160
|
+
}
|
|
161
|
+
const cfg = getProxyConfig();
|
|
162
|
+
const gate = shouldRewriteFor("openai");
|
|
163
|
+
const enabled = cfg.enabled;
|
|
164
|
+
const url = cfg.url || "<unset>";
|
|
165
|
+
const active = cfg.active;
|
|
166
|
+
const status = () => {
|
|
167
|
+
if (enabled && active && cfg.url) return { glyph: "\u2713", label: "live", color: color.green };
|
|
168
|
+
if (enabled && !active)
|
|
169
|
+
return { glyph: "\u25CF", label: "enabled, probe not yet active", color: color.amber };
|
|
170
|
+
if (!enabled && cfg.url)
|
|
171
|
+
return { glyph: "\u25CB", label: "url set, toggle off", color: color.dim };
|
|
172
|
+
return { glyph: "\xB7", label: "unconfigured", color: color.dim };
|
|
173
|
+
};
|
|
174
|
+
const s = status();
|
|
175
|
+
const rewriteGateLabel = (open) => open ? color.green("rewrites applied") : color.dim("rewrites bypassed");
|
|
176
|
+
const lines = [
|
|
177
|
+
color.bold("WrongProxy / WrongTrace status"),
|
|
178
|
+
` enabled: ${enabled}`,
|
|
179
|
+
` url: ${url}`,
|
|
180
|
+
` active: ${active} ${s.color(`(${s.label})`)}`,
|
|
181
|
+
` shouldRewrite:${gate} ${rewriteGateLabel(gate)}`
|
|
182
|
+
];
|
|
183
|
+
deps.renderer.write(lines.join("\n") + "\n");
|
|
184
|
+
return 0;
|
|
185
|
+
};
|
|
141
186
|
async function reportDaemons(deps, opts) {
|
|
142
187
|
const inventory = { projectRoot: deps.projectRoot, projectDir: deps.paths.projectDir };
|
|
143
188
|
let reports = await collectDaemonReports(inventory);
|
|
@@ -324,6 +369,7 @@ var doctorCmd = async (args, deps) => {
|
|
|
324
369
|
};
|
|
325
370
|
export {
|
|
326
371
|
diagCmd,
|
|
327
|
-
doctorCmd
|
|
372
|
+
doctorCmd,
|
|
373
|
+
proxyCmd
|
|
328
374
|
};
|
|
329
|
-
//# sourceMappingURL=diag-doctor-
|
|
375
|
+
//# sourceMappingURL=diag-doctor-Z6JDXBVX.js.map
|