@wrongstack/cli 0.302.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.
Files changed (112) hide show
  1. package/data/providers.json +41 -155
  2. package/dist/{acp-DATHHPNT.js → acp-XCE4JJF3.js} +4 -4
  3. package/dist/{audit-QRCLEHHW.js → audit-BBR22QH3.js} +2 -2
  4. package/dist/{auth-PJD3JRH2.js → auth-K7CYVVKH.js} +121 -78
  5. package/dist/auth-menu/index.d.ts +5 -5
  6. package/dist/auth-menu/local.d.ts +4 -5
  7. package/dist/auth-menu/openai-codex-oauth.d.ts +1 -1
  8. package/dist/{auto-discover-providers-DRW4OZHG.js → auto-discover-providers-MHFLDSD3.js} +2 -2
  9. package/dist/{bench-7ZDWSNEF.js → bench-XNDUJOSZ.js} +10 -11
  10. package/dist/boot/auto-discover-providers.d.ts +1 -1
  11. package/dist/boot/container-wiring.d.ts +3 -3
  12. package/dist/boot/dispatch-webui.d.ts +1 -1
  13. package/dist/boot/system-prompt.d.ts +1 -2
  14. package/dist/boot/tool-registry.d.ts +1 -1
  15. package/dist/boot/tui-coordinator-setup.d.ts +1 -1
  16. package/dist/boot/tui-project-picker-callback.d.ts +1 -1
  17. package/dist/boot-config.d.ts +2 -2
  18. package/dist/boot.d.ts +1 -1
  19. package/dist/{chunk-ETOEGL3V.js → chunk-3IC4IEZC.js} +7 -2
  20. package/dist/{chunk-PFVVUH5B.js → chunk-3JPTNADJ.js} +3 -2
  21. package/dist/{chunk-4GVH7V3S.js → chunk-52C7PD2H.js} +1 -1
  22. package/dist/{chunk-OP47B3IX.js → chunk-7YLN7YUA.js} +7 -2
  23. package/dist/{chunk-263G3FMB.js → chunk-B4JLSXZB.js} +11 -14
  24. package/dist/{chunk-I5MEUFDI.js → chunk-BXQG3H2Y.js} +8 -3
  25. package/dist/{chunk-MT6FGXO3.js → chunk-C5NXM2SI.js} +19 -6
  26. package/dist/{chunk-XTIXVJXP.js → chunk-DGXNL7OT.js} +1 -1
  27. package/dist/{chunk-3MOUBRKZ.js → chunk-FJVCVZIV.js} +974 -935
  28. package/dist/{chunk-MRLYDHQ7.js → chunk-JQURRYU4.js} +4 -6
  29. package/dist/{chunk-ZECLGUTF.js → chunk-KV6DNQT6.js} +2 -2
  30. package/dist/{chunk-F4PEGAJZ.js → chunk-NUIHRGPY.js} +1 -1
  31. package/dist/{chunk-GUHQQG63.js → chunk-RK7E3IXT.js} +2 -4
  32. package/dist/{chunk-PYTFS4MC.js → chunk-SSSJQVUY.js} +27 -16
  33. package/dist/{chunk-PJHET45A.js → chunk-SZ42FYPT.js} +3 -3
  34. package/dist/{chunk-2KDOFTTM.js → chunk-WOXUE2CN.js} +1067 -900
  35. package/dist/{chunk-A6Q5KGLV.js → chunk-YKBRFSGL.js} +5 -5
  36. package/dist/cli-context.d.ts +2 -2
  37. package/dist/cli-eternal-flag.d.ts +1 -2
  38. package/dist/{cli-main-EOJ74CI4.js → cli-main-PJMDZHDK.js} +2680 -2133
  39. package/dist/context-limit.d.ts +11 -5
  40. package/dist/{diag-doctor-OQ3AA63O.js → diag-doctor-ZF5BF2MK.js} +2 -3
  41. package/dist/execute-deps.d.ts +1 -1
  42. package/dist/{execution-CQ772VPS.js → execution-LZRYRGDD.js} +234 -143
  43. package/dist/{export-DOBGPY23.js → export-CCUXRJOU.js} +3 -11
  44. package/dist/fleet/host-supervisor.d.ts +1 -1
  45. package/dist/fleet/host.d.ts +1 -1
  46. package/dist/fleet/routing.d.ts +1 -2
  47. package/dist/goal-host.d.ts +2 -2
  48. package/dist/hooks-wiring.d.ts +1 -1
  49. package/dist/{hq-LN5CJHCM.js → hq-AHPAE7EN.js} +104 -55
  50. package/dist/hq-command-controller.d.ts +1 -1
  51. package/dist/hq-server/routes/system-handlers.d.ts +1 -2
  52. package/dist/hq-server/routes.d.ts +7 -7
  53. package/dist/{hq-server-S7HZG3PA.js → hq-server-KU2Z54QU.js} +2 -2
  54. package/dist/index.d.ts +1 -1
  55. package/dist/index.js +2635 -2642
  56. package/dist/mailbox-bridge-bootstrap.d.ts +2 -2
  57. package/dist/{mcp-OHPJH73U.js → mcp-E5EBGOHF.js} +6 -6
  58. package/dist/mcp-serve.d.ts +1 -1
  59. package/dist/{modeldiag-3DOK4BWW.js → modeldiag-SIVUOX2Y.js} +18 -13
  60. package/dist/{permissions-FNYLZIL4.js → permissions-2PWBL4YU.js} +5 -3
  61. package/dist/picker.d.ts +1 -1
  62. package/dist/plugin-management.d.ts +1 -1
  63. package/dist/{plugin-usage-YEVLOR33.js → plugin-usage-PTEETL3J.js} +2 -2
  64. package/dist/{plugins-K3BAUP4D.js → plugins-XRGWC3NJ.js} +3 -3
  65. package/dist/pre-launch.d.ts +2 -2
  66. package/dist/{providers-models-WEZ4EGLL.js → providers-models-VV74TRQ2.js} +86 -37
  67. package/dist/repl.d.ts +1 -1
  68. package/dist/{replay-FCBNHW3K.js → replay-WBRMEWQ5.js} +2 -2
  69. package/dist/{rewind-AOD3JIYX.js → rewind-7RE6ONIC.js} +17 -17
  70. package/dist/{sdd-runtime-AIJCJGWC.js → sdd-runtime-GFZ3NJKS.js} +2 -2
  71. package/dist/{sessions-config-XXN7267N.js → sessions-config-YX2ZPAFM.js} +36 -32
  72. package/dist/{simpleui-dist-JIFGUJO7.js → simpleui-dist-33VO3QHF.js} +9 -2
  73. package/dist/slash-commands/agents.d.ts +14 -0
  74. package/dist/slash-commands/command-context.d.ts +2 -3
  75. package/dist/slash-commands/helpers.d.ts +1 -1
  76. package/dist/slash-commands/index.d.ts +1 -1
  77. package/dist/slash-commands/intake.d.ts +10 -0
  78. package/dist/slash-commands/memory-triage.d.ts +1 -1
  79. package/dist/slash-commands/provider-status.d.ts +1 -1
  80. package/dist/subcommands/handlers/hq.d.ts +20 -0
  81. package/dist/subcommands/handlers/per-subcommand-help-data.d.ts +1 -1
  82. package/dist/{update-MV6TUACD.js → update-LTDJGAFU.js} +3 -3
  83. package/dist/{update-check-UMYTOH7Z.js → update-check-WARHSVZA.js} +2 -2
  84. package/dist/webui-server/connection-handler.d.ts +1 -1
  85. package/dist/webui-server/context-breakdown.d.ts +1 -1
  86. package/dist/webui-server/cost-helpers.d.ts +1 -1
  87. package/dist/webui-server/lifecycle.d.ts +1 -1
  88. package/dist/webui-server/prefs-seeding.d.ts +1 -1
  89. package/dist/webui-server/setup-events.d.ts +1 -1
  90. package/dist/webui-server/static-serve.d.ts +1 -1
  91. package/dist/{webui-server-NFNRGNNT.js → webui-server-E3OPEKU5.js} +18 -10
  92. package/dist/webui-server-options.d.ts +1 -1
  93. package/dist/wiring/command-host-state.d.ts +2 -2
  94. package/dist/wiring/controllers.d.ts +1 -2
  95. package/dist/wiring/dep-watcher.d.ts +1 -1
  96. package/dist/wiring/director-setup.d.ts +3 -3
  97. package/dist/wiring/eternal-command-handlers.d.ts +2 -2
  98. package/dist/wiring/management-tools.d.ts +2 -2
  99. package/dist/wiring/provider-runtime.d.ts +1 -1
  100. package/dist/wiring/provider-status.d.ts +1 -1
  101. package/dist/wiring/provider-utility-tools.d.ts +3 -3
  102. package/dist/wiring/provider.d.ts +1 -1
  103. package/dist/wiring/replay.d.ts +1 -1
  104. package/dist/wiring/runtime-controller-deps.d.ts +1 -1
  105. package/dist/wiring/runtime-dispatch-state.d.ts +1 -2
  106. package/dist/wiring/runtime-lifecycle-deps.d.ts +2 -2
  107. package/dist/wiring/runtime-picker-deps.d.ts +1 -2
  108. package/dist/wiring/sage.d.ts +1 -1
  109. package/dist/wiring/session-command-handlers.d.ts +1 -2
  110. package/dist/wiring/session.d.ts +6 -1
  111. package/dist/wiring/slash-commands.d.ts +2 -3
  112. package/package.json +23 -23
@@ -2,14 +2,12 @@ import {
2
2
  fallbackCodexProviderModels,
3
3
  filterCurrentCodexModelIds,
4
4
  isCodexCatalogModel
5
- } from "./chunk-PYTFS4MC.js";
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-MRLYDHQ7.js.map
217
+ //# sourceMappingURL=chunk-JQURRYU4.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PLUGIN_AUDIT_ENTRIES
3
- } from "./chunk-GUHQQG63.js";
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-ZECLGUTF.js.map
265
+ //# sourceMappingURL=chunk-KV6DNQT6.js.map
@@ -173,4 +173,4 @@ export {
173
173
  checkForUpdate,
174
174
  getUpdateNotification
175
175
  };
176
- //# sourceMappingURL=chunk-F4PEGAJZ.js.map
176
+ //# sourceMappingURL=chunk-NUIHRGPY.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-GUHQQG63.js.map
509
+ //# sourceMappingURL=chunk-RK7E3IXT.js.map
@@ -3,7 +3,7 @@ import {
3
3
  normalizeKeys,
4
4
  nowIso,
5
5
  writeKeysBack
6
- } from "./chunk-PJHET45A.js";
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(color.dim("\n Cancelling sign-in\u2026 (press Ctrl+C again to force-quit)\n"));
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(" \u26A0 Could not start the local callback listener (ports 1455 and 1457 in use).\n") + color.dim(" After signing in, copy the full redirect URL from your browser\n") + color.dim(" (it starts with http://localhost:1455/auth/callback or :1457) and paste it below.\n")
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(deps.profileConfigPath, deps.vault, (all) => {
212
- const existing = all[providerId];
213
- const p = existing ? { ...existing } : { type: providerId };
214
- p.family = "openai-codex";
215
- if (!p.baseUrl) p.baseUrl = CODEX_BASE_URL;
216
- p.models = [...models];
217
- const keys = normalizeKeys(p).filter((k) => k.label !== entry.label);
218
- keys.push(entry);
219
- writeKeysBack(p, keys);
220
- p.activeKey = entry.label;
221
- all[providerId] = p;
222
- }, deps.profileConfigPath);
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-PYTFS4MC.js.map
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-PJHET45A.js.map
158
+ //# sourceMappingURL=chunk-SZ42FYPT.js.map