@wrongstack/cli 0.301.0 → 0.302.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/data/providers.json +41 -155
- package/dist/{acp-DATHHPNT.js → acp-XCE4JJF3.js} +4 -4
- package/dist/{audit-QRCLEHHW.js → audit-BBR22QH3.js} +2 -2
- package/dist/{auth-JASC4K3F.js → auth-K7CYVVKH.js} +121 -78
- package/dist/auth-menu/index.d.ts +5 -5
- package/dist/auth-menu/local.d.ts +4 -5
- package/dist/auth-menu/openai-codex-oauth.d.ts +1 -1
- package/dist/{auto-discover-providers-DRW4OZHG.js → auto-discover-providers-MHFLDSD3.js} +2 -2
- package/dist/{bench-7ZDWSNEF.js → bench-XNDUJOSZ.js} +10 -11
- package/dist/boot/auto-discover-providers.d.ts +1 -1
- package/dist/boot/container-wiring.d.ts +3 -3
- package/dist/boot/dispatch-webui.d.ts +3 -16
- package/dist/boot/system-prompt.d.ts +1 -2
- package/dist/boot/tool-registry.d.ts +1 -1
- package/dist/boot/tui-coordinator-setup.d.ts +1 -1
- package/dist/boot/tui-project-picker-callback.d.ts +1 -1
- package/dist/boot/webui-session-child.d.ts +91 -0
- package/dist/boot-config.d.ts +2 -2
- package/dist/boot.d.ts +1 -1
- package/dist/{chunk-ETOEGL3V.js → chunk-3IC4IEZC.js} +7 -2
- package/dist/chunk-3JPTNADJ.js +128 -0
- package/dist/{chunk-4GVH7V3S.js → chunk-52C7PD2H.js} +1 -1
- package/dist/{chunk-OP47B3IX.js → chunk-7YLN7YUA.js} +7 -2
- package/dist/{chunk-263G3FMB.js → chunk-B4JLSXZB.js} +11 -14
- package/dist/{chunk-I5MEUFDI.js → chunk-BXQG3H2Y.js} +8 -3
- package/dist/{chunk-MHF2IJDE.js → chunk-C5NXM2SI.js} +21 -6
- package/dist/{chunk-XTIXVJXP.js → chunk-DGXNL7OT.js} +1 -1
- package/dist/{chunk-O7XNGCRT.js → chunk-FJVCVZIV.js} +974 -935
- package/dist/{chunk-MRLYDHQ7.js → chunk-JQURRYU4.js} +4 -6
- package/dist/{chunk-ZECLGUTF.js → chunk-KV6DNQT6.js} +2 -2
- package/dist/{chunk-F4PEGAJZ.js → chunk-NUIHRGPY.js} +1 -1
- package/dist/{chunk-GUHQQG63.js → chunk-RK7E3IXT.js} +2 -4
- package/dist/{chunk-PYTFS4MC.js → chunk-SSSJQVUY.js} +27 -16
- package/dist/{chunk-PJHET45A.js → chunk-SZ42FYPT.js} +3 -3
- package/dist/{chunk-2KDOFTTM.js → chunk-WOXUE2CN.js} +1067 -900
- package/dist/{chunk-A6Q5KGLV.js → chunk-YKBRFSGL.js} +5 -5
- package/dist/cli-context.d.ts +3 -1
- package/dist/cli-eternal-flag.d.ts +1 -2
- package/dist/{cli-main-XWC57MGE.js → cli-main-PJMDZHDK.js} +2683 -2134
- package/dist/context-limit.d.ts +11 -5
- package/dist/{diag-doctor-OQ3AA63O.js → diag-doctor-ZF5BF2MK.js} +2 -3
- package/dist/execute-deps.d.ts +3 -0
- package/dist/{execution-LHMSMDHB.js → execution-LZRYRGDD.js} +343 -177
- package/dist/{export-DOBGPY23.js → export-CCUXRJOU.js} +3 -11
- package/dist/fleet/host-supervisor.d.ts +1 -1
- package/dist/fleet/host.d.ts +1 -1
- package/dist/fleet/routing.d.ts +1 -2
- package/dist/goal-host.d.ts +2 -2
- package/dist/hooks-wiring.d.ts +1 -1
- package/dist/{hq-LN5CJHCM.js → hq-AHPAE7EN.js} +104 -55
- package/dist/hq-command-controller.d.ts +1 -1
- package/dist/hq-server/routes/system-handlers.d.ts +1 -2
- package/dist/hq-server/routes.d.ts +7 -7
- package/dist/{hq-server-S7HZG3PA.js → hq-server-KU2Z54QU.js} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2712 -2642
- package/dist/mailbox-bridge-bootstrap.d.ts +2 -2
- package/dist/{mcp-OHPJH73U.js → mcp-E5EBGOHF.js} +6 -6
- package/dist/mcp-serve.d.ts +1 -1
- package/dist/{modeldiag-3DOK4BWW.js → modeldiag-SIVUOX2Y.js} +18 -13
- package/dist/{permissions-FNYLZIL4.js → permissions-2PWBL4YU.js} +5 -3
- package/dist/picker.d.ts +1 -1
- package/dist/plugin-management.d.ts +1 -1
- package/dist/{plugin-usage-YEVLOR33.js → plugin-usage-PTEETL3J.js} +2 -2
- package/dist/{plugins-K3BAUP4D.js → plugins-XRGWC3NJ.js} +3 -3
- package/dist/pre-launch.d.ts +2 -2
- package/dist/{providers-models-WEZ4EGLL.js → providers-models-VV74TRQ2.js} +86 -37
- package/dist/repl.d.ts +1 -1
- package/dist/{replay-FCBNHW3K.js → replay-WBRMEWQ5.js} +2 -2
- package/dist/{rewind-AOD3JIYX.js → rewind-7RE6ONIC.js} +17 -17
- package/dist/{sdd-runtime-AIJCJGWC.js → sdd-runtime-GFZ3NJKS.js} +2 -2
- package/dist/{sessions-config-XXN7267N.js → sessions-config-YX2ZPAFM.js} +36 -32
- package/dist/{simpleui-dist-JIFGUJO7.js → simpleui-dist-33VO3QHF.js} +9 -2
- package/dist/slash-commands/agents.d.ts +14 -0
- package/dist/slash-commands/command-context.d.ts +2 -3
- package/dist/slash-commands/helpers.d.ts +1 -1
- package/dist/slash-commands/index.d.ts +1 -1
- package/dist/slash-commands/intake.d.ts +10 -0
- package/dist/slash-commands/memory-triage.d.ts +1 -1
- package/dist/slash-commands/provider-status.d.ts +1 -1
- package/dist/subcommands/handlers/hq.d.ts +20 -0
- package/dist/subcommands/handlers/per-subcommand-help-data.d.ts +1 -1
- package/dist/{update-MV6TUACD.js → update-LTDJGAFU.js} +3 -3
- package/dist/{update-check-UMYTOH7Z.js → update-check-WARHSVZA.js} +2 -2
- package/dist/webui-server/connection-handler.d.ts +1 -1
- package/dist/webui-server/context-breakdown.d.ts +1 -1
- package/dist/webui-server/cost-helpers.d.ts +1 -1
- package/dist/webui-server/lifecycle.d.ts +1 -1
- package/dist/webui-server/prefs-seeding.d.ts +1 -1
- package/dist/webui-server/setup-events.d.ts +1 -1
- package/dist/webui-server/static-serve.d.ts +1 -1
- package/dist/{webui-server-DD35QFNO.js → webui-server-E3OPEKU5.js} +66 -25
- package/dist/webui-server-options.d.ts +7 -0
- package/dist/wiring/command-host-state.d.ts +2 -2
- package/dist/wiring/controllers.d.ts +1 -2
- package/dist/wiring/dep-watcher.d.ts +1 -1
- package/dist/wiring/director-setup.d.ts +3 -3
- package/dist/wiring/eternal-command-handlers.d.ts +2 -2
- package/dist/wiring/management-tools.d.ts +2 -2
- package/dist/wiring/provider-runtime.d.ts +1 -1
- package/dist/wiring/provider-status.d.ts +1 -1
- package/dist/wiring/provider-utility-tools.d.ts +3 -3
- package/dist/wiring/provider.d.ts +1 -1
- package/dist/wiring/replay.d.ts +1 -1
- package/dist/wiring/runtime-controller-deps.d.ts +1 -1
- package/dist/wiring/runtime-dispatch-state.d.ts +1 -2
- package/dist/wiring/runtime-lifecycle-deps.d.ts +2 -2
- package/dist/wiring/runtime-picker-deps.d.ts +1 -2
- package/dist/wiring/sage.d.ts +1 -1
- package/dist/wiring/session-command-handlers.d.ts +1 -2
- package/dist/wiring/session.d.ts +6 -1
- package/dist/wiring/slash-commands.d.ts +2 -3
- package/package.json +23 -23
|
@@ -2,14 +2,12 @@ import {
|
|
|
2
2
|
fallbackCodexProviderModels,
|
|
3
3
|
filterCurrentCodexModelIds,
|
|
4
4
|
isCodexCatalogModel
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SSSJQVUY.js";
|
|
6
6
|
|
|
7
7
|
// src/acp-registry-cache.ts
|
|
8
|
-
import {
|
|
9
|
-
fetchAcpRegistry
|
|
10
|
-
} from "@wrongstack/acp";
|
|
11
8
|
import * as fs from "node:fs/promises";
|
|
12
9
|
import * as path from "node:path";
|
|
10
|
+
import { fetchAcpRegistry } from "@wrongstack/acp";
|
|
13
11
|
function acpRegistryCachePath(paths) {
|
|
14
12
|
return path.join(paths.cacheDir, "acp-registry.json");
|
|
15
13
|
}
|
|
@@ -88,8 +86,8 @@ function createGracefulShutdown(cleanup) {
|
|
|
88
86
|
}
|
|
89
87
|
|
|
90
88
|
// src/wiring/provider.ts
|
|
91
|
-
import { ConfigError } from "@wrongstack/core/types";
|
|
92
89
|
import { ProviderRegistry } from "@wrongstack/core/registry";
|
|
90
|
+
import { ConfigError } from "@wrongstack/core/types";
|
|
93
91
|
import {
|
|
94
92
|
buildProviderFactoriesFromRegistry,
|
|
95
93
|
createAiGatewayProviderFactory,
|
|
@@ -216,4 +214,4 @@ export {
|
|
|
216
214
|
setupProvider,
|
|
217
215
|
createGracefulShutdown
|
|
218
216
|
};
|
|
219
|
-
//# sourceMappingURL=chunk-
|
|
217
|
+
//# sourceMappingURL=chunk-JQURRYU4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PLUGIN_AUDIT_ENTRIES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RK7E3IXT.js";
|
|
4
4
|
import {
|
|
5
5
|
patchConfig
|
|
6
6
|
} from "./chunk-TYO2OVAD.js";
|
|
@@ -262,4 +262,4 @@ export {
|
|
|
262
262
|
BUILTIN_PLUGIN_FACTORIES,
|
|
263
263
|
setupPlugins
|
|
264
264
|
};
|
|
265
|
-
//# sourceMappingURL=chunk-
|
|
265
|
+
//# sourceMappingURL=chunk-KV6DNQT6.js.map
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
// src/plugin-management.ts
|
|
3
3
|
import * as fs from "node:fs/promises";
|
|
4
|
+
import { resolvePluginEnablement } from "@wrongstack/core/plugin";
|
|
4
5
|
import { atomicWrite } from "@wrongstack/core/utils";
|
|
5
|
-
import {
|
|
6
|
-
resolvePluginEnablement
|
|
7
|
-
} from "@wrongstack/core/plugin";
|
|
8
6
|
import {
|
|
9
7
|
PLUGIN_AUDIT_ENTRIES
|
|
10
8
|
} from "@wrongstack/plugins/plugin-audit-catalog";
|
|
@@ -508,4 +506,4 @@ export {
|
|
|
508
506
|
PLUGIN_AUDIT_ENTRIES,
|
|
509
507
|
runPluginManagementCommand
|
|
510
508
|
};
|
|
511
|
-
//# sourceMappingURL=chunk-
|
|
509
|
+
//# sourceMappingURL=chunk-RK7E3IXT.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
normalizeKeys,
|
|
4
4
|
nowIso,
|
|
5
5
|
writeKeysBack
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SZ42FYPT.js";
|
|
7
7
|
|
|
8
8
|
// src/auth-menu/openai-codex-oauth.ts
|
|
9
9
|
import { color } from "@wrongstack/core/utils";
|
|
@@ -92,7 +92,9 @@ async function runCodexOAuthLogin(deps, opts = {}) {
|
|
|
92
92
|
const onSig = () => {
|
|
93
93
|
sigintCount += 1;
|
|
94
94
|
if (sigintCount === 1) {
|
|
95
|
-
deps.renderer.write(
|
|
95
|
+
deps.renderer.write(
|
|
96
|
+
color.dim("\n Cancelling sign-in\u2026 (press Ctrl+C again to force-quit)\n")
|
|
97
|
+
);
|
|
96
98
|
ac.abort();
|
|
97
99
|
} else {
|
|
98
100
|
process.exit(130);
|
|
@@ -126,7 +128,11 @@ async function runCodexOAuthLogin(deps, opts = {}) {
|
|
|
126
128
|
);
|
|
127
129
|
} else {
|
|
128
130
|
deps.renderer.write(
|
|
129
|
-
color.amber(
|
|
131
|
+
color.amber(
|
|
132
|
+
" \u26A0 Could not start the local callback listener (ports 1455 and 1457 in use).\n"
|
|
133
|
+
) + color.dim(" After signing in, copy the full redirect URL from your browser\n") + color.dim(
|
|
134
|
+
" (it starts with http://localhost:1455/auth/callback or :1457) and paste it below.\n"
|
|
135
|
+
)
|
|
130
136
|
);
|
|
131
137
|
}
|
|
132
138
|
let code;
|
|
@@ -208,18 +214,23 @@ async function saveCodexTokens(deps, providerId, tokens, accountId, models) {
|
|
|
208
214
|
accountId
|
|
209
215
|
};
|
|
210
216
|
try {
|
|
211
|
-
await mutateConfigProviders(
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
217
|
+
await mutateConfigProviders(
|
|
218
|
+
deps.profileConfigPath,
|
|
219
|
+
deps.vault,
|
|
220
|
+
(all) => {
|
|
221
|
+
const existing = all[providerId];
|
|
222
|
+
const p = existing ? { ...existing } : { type: providerId };
|
|
223
|
+
p.family = "openai-codex";
|
|
224
|
+
if (!p.baseUrl) p.baseUrl = CODEX_BASE_URL;
|
|
225
|
+
p.models = [...models];
|
|
226
|
+
const keys = normalizeKeys(p).filter((k) => k.label !== entry.label);
|
|
227
|
+
keys.push(entry);
|
|
228
|
+
writeKeysBack(p, keys);
|
|
229
|
+
p.activeKey = entry.label;
|
|
230
|
+
all[providerId] = p;
|
|
231
|
+
},
|
|
232
|
+
deps.profileConfigPath
|
|
233
|
+
);
|
|
223
234
|
return true;
|
|
224
235
|
} catch (err) {
|
|
225
236
|
deps.renderer.writeError(` Failed to save tokens: ${err.message}`);
|
|
@@ -235,4 +246,4 @@ export {
|
|
|
235
246
|
filterCurrentCodexModelIds,
|
|
236
247
|
isCodexCatalogModel
|
|
237
248
|
};
|
|
238
|
-
//# sourceMappingURL=chunk-
|
|
249
|
+
//# sourceMappingURL=chunk-SSSJQVUY.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
// src/provider-config-utils.ts
|
|
3
|
-
import { expectDefined } from "@wrongstack/core/utils";
|
|
4
3
|
import { FsError } from "@wrongstack/core/types";
|
|
4
|
+
import { expectDefined } from "@wrongstack/core/utils";
|
|
5
5
|
import * as fs from "node:fs/promises";
|
|
6
|
-
import { atomicWrite, color } from "@wrongstack/core/utils";
|
|
7
6
|
import { decryptConfigSecrets, encryptConfigSecrets } from "@wrongstack/core/security";
|
|
7
|
+
import { atomicWrite, color } from "@wrongstack/core/utils";
|
|
8
8
|
function normalizeKeys(cfg) {
|
|
9
9
|
if (Array.isArray(cfg.apiKeys) && cfg.apiKeys.length > 0) {
|
|
10
10
|
return cfg.apiKeys.map((k) => ({ ...k }));
|
|
@@ -155,4 +155,4 @@ export {
|
|
|
155
155
|
loadConfigProviders,
|
|
156
156
|
mutateConfigProviders
|
|
157
157
|
};
|
|
158
|
-
//# sourceMappingURL=chunk-
|
|
158
|
+
//# sourceMappingURL=chunk-SZ42FYPT.js.map
|