@wrongstack/cli 0.302.0 → 0.303.0
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-AQMGKW6O.js} +6 -5
- package/dist/{audit-QRCLEHHW.js → audit-BBR22QH3.js} +2 -2
- package/dist/{auth-PJD3JRH2.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 +1 -1
- 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/tui-theme-adapter.d.ts +33 -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-PFVVUH5B.js → chunk-3JPTNADJ.js} +3 -2
- package/dist/{chunk-4GVH7V3S.js → chunk-52C7PD2H.js} +1 -1
- package/dist/{chunk-I5MEUFDI.js → chunk-53STH6CX.js} +94 -15
- package/dist/{chunk-OP47B3IX.js → chunk-7YLN7YUA.js} +7 -2
- package/dist/{chunk-263G3FMB.js → chunk-B4JLSXZB.js} +11 -14
- package/dist/{chunk-MT6FGXO3.js → chunk-C5NXM2SI.js} +19 -6
- package/dist/{chunk-XTIXVJXP.js → chunk-DGXNL7OT.js} +1 -1
- package/dist/{chunk-3MOUBRKZ.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-2KDOFTTM.js → chunk-LUAFQIXT.js} +1067 -900
- 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-A6Q5KGLV.js → chunk-YKBRFSGL.js} +5 -5
- package/dist/cli-context.d.ts +2 -2
- package/dist/cli-eternal-flag.d.ts +1 -2
- package/dist/{cli-main-EOJ74CI4.js → cli-main-37XO26GK.js} +3269 -2206
- 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 +1 -1
- package/dist/{execution-CQ772VPS.js → execution-MVOH6PAQ.js} +302 -149
- package/dist/{export-DOBGPY23.js → export-CCUXRJOU.js} +3 -11
- package/dist/fleet/host-context.d.ts +9 -0
- package/dist/fleet/host-learning-tracker.d.ts +2 -2
- package/dist/fleet/host-learning.d.ts +12 -1
- package/dist/fleet/host-subagent-factory.d.ts +1 -1
- package/dist/fleet/host-supervisor.d.ts +1 -1
- package/dist/fleet/host.d.ts +23 -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-CD77GVSS.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-DME6EWIO.js} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2635 -2642
- package/dist/mailbox-bridge-bootstrap.d.ts +2 -2
- package/dist/{mcp-OHPJH73U.js → mcp-AX6ZAFJR.js} +8 -7
- 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/agent-improve.d.ts +4 -1
- 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/slash-commands/theme.d.ts +6 -0
- package/dist/subcommands/handlers/hq.d.ts +20 -0
- package/dist/subcommands/handlers/per-subcommand-help-data.d.ts +1 -1
- package/dist/subcommands/handlers/update.d.ts +2 -0
- package/dist/{update-MV6TUACD.js → update-VZSOZGYC.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-NFNRGNNT.js → webui-server-E3OPEKU5.js} +18 -10
- package/dist/webui-server-options.d.ts +1 -1
- 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
|
@@ -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
|
|
@@ -464,13 +464,13 @@ on disconnect with exponential backoff, up to 3 attempts"._
|
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
export {
|
|
467
|
+
renderDiff,
|
|
468
|
+
makePromptDelegate,
|
|
469
|
+
makeConfirmAwaiter,
|
|
467
470
|
isSimpleUiFullAuto,
|
|
468
471
|
applySimpleUiFullAutoProfile,
|
|
469
472
|
configureSimpleUiRuntimeContext,
|
|
470
473
|
detectProjectFacts,
|
|
471
|
-
renderAgentsTemplate
|
|
472
|
-
renderDiff,
|
|
473
|
-
makePromptDelegate,
|
|
474
|
-
makeConfirmAwaiter
|
|
474
|
+
renderAgentsTemplate
|
|
475
475
|
};
|
|
476
|
-
//# sourceMappingURL=chunk-
|
|
476
|
+
//# sourceMappingURL=chunk-YKBRFSGL.js.map
|
package/dist/cli-context.d.ts
CHANGED
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
* Returns a `CliContext` object with all the dependencies the rest of
|
|
14
14
|
* main() needs, or a numeric exit code when a short-circuit fires.
|
|
15
15
|
*/
|
|
16
|
-
import { type WebuiSessionChildOptions } from './boot/webui-session-child.js';
|
|
17
|
-
import { wireContainer } from './boot/container-wiring.js';
|
|
18
16
|
import type { EventBus } from '@wrongstack/core/kernel';
|
|
19
17
|
import type { ConfigStore } from '@wrongstack/core/types';
|
|
18
|
+
import { wireContainer } from './boot/container-wiring.js';
|
|
19
|
+
import { type WebuiSessionChildOptions } from './boot/webui-session-child.js';
|
|
20
20
|
import type { BootContext } from './boot.js';
|
|
21
21
|
/** All boot-phase dependencies the rest of main() needs. */
|
|
22
22
|
export interface CliContext extends BootContext {
|
|
@@ -13,11 +13,10 @@
|
|
|
13
13
|
* happened, `false` if the flag was empty.
|
|
14
14
|
*/
|
|
15
15
|
import type { Agent } from '@wrongstack/core/agent';
|
|
16
|
-
import type { Logger } from '@wrongstack/core/types';
|
|
17
|
-
import type { Config } from '@wrongstack/core/types';
|
|
18
16
|
import { EternalAutonomyEngine } from '@wrongstack/core/execution';
|
|
19
17
|
import type { JournalEntry } from '@wrongstack/core/goal';
|
|
20
18
|
import type { Token } from '@wrongstack/core/kernel';
|
|
19
|
+
import type { Config, Logger } from '@wrongstack/core/types';
|
|
21
20
|
import type { TerminalRenderer } from './renderer.js';
|
|
22
21
|
import type { AutonomyMode } from './services/autonomy-mode.js';
|
|
23
22
|
/**
|