@wrongstack/cli 0.306.3 → 0.307.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.
Files changed (76) hide show
  1. package/dist/{auth-L3WGSGDX.js → auth-TVOOHL4Q.js} +45 -106
  2. package/dist/boot/short-circuit-flags.d.ts +2 -2
  3. package/dist/chimera-cascade-evidence.d.ts +1 -1
  4. package/dist/chunk-2VMJ3E5Z.js +71 -0
  5. package/dist/{chunk-5N34EWJR.js → chunk-2ZNBRZ4W.js} +2 -2
  6. package/dist/{chunk-RHLQT3EV.js → chunk-CB35UVXO.js} +1636 -1528
  7. package/dist/{chunk-YKBRFSGL.js → chunk-DOJLAULS.js} +28 -28
  8. package/dist/{chunk-JUHRI6OV.js → chunk-G7337TTK.js} +24 -5
  9. package/dist/{chunk-KXN5HZDL.js → chunk-PKHGLWUJ.js} +24 -6
  10. package/dist/{chunk-HITHEXE3.js → chunk-TOG7OMKJ.js} +2 -2
  11. package/dist/{chunk-ARWGQUB3.js → chunk-XSG33WHN.js} +15 -5
  12. package/dist/{cli-main-3PUWFKSL.js → cli-main-YDOZZOZA.js} +29026 -28205
  13. package/dist/cli-main.d.ts +0 -20
  14. package/dist/{execution-4IG5XKOL.js → execution-CGT6J5ZN.js} +306 -274
  15. package/dist/fleet/host-learning-scheduler.d.ts +27 -0
  16. package/dist/fleet/host-shadow-manager.d.ts +64 -0
  17. package/dist/fleet/host.d.ts +5 -140
  18. package/dist/{hq-ZK6PGN3W.js → hq-PA6RH2UW.js} +2 -2
  19. package/dist/hq-server/mailbox-gateway-manager.d.ts +32 -0
  20. package/dist/hq-server/routes/auth/bootstrap-routes.d.ts +5 -0
  21. package/dist/hq-server/routes/auth/common.d.ts +11 -0
  22. package/dist/hq-server/routes/auth/password-routes.d.ts +9 -0
  23. package/dist/hq-server/routes/auth/session-audit-routes.d.ts +6 -0
  24. package/dist/hq-server/routes/auth/totp-routes.d.ts +9 -0
  25. package/dist/hq-server/routes/auth-handlers.d.ts +5 -132
  26. package/dist/hq-server/routes/command-handlers.d.ts +7 -0
  27. package/dist/hq-server/routes/data-handlers.d.ts +8 -0
  28. package/dist/hq-server/routes/mailbox-handlers.d.ts +22 -0
  29. package/dist/hq-server/routes.d.ts +3 -3
  30. package/dist/hq-server/server-lifecycle.d.ts +37 -0
  31. package/dist/hq-server/snapshot.d.ts +6 -5
  32. package/dist/hq-server/types.d.ts +4 -0
  33. package/dist/hq-server/upgrade-handler.d.ts +34 -0
  34. package/dist/hq-server/ws-client-events.d.ts +25 -0
  35. package/dist/hq-server/ws-leader.d.ts +47 -0
  36. package/dist/hq-server/ws-resume.d.ts +27 -0
  37. package/dist/hq-server/ws.d.ts +4 -71
  38. package/dist/{hq-server-IVZLVCFV.js → hq-server-PBRU275L.js} +2 -2
  39. package/dist/hq-server.d.ts +0 -38
  40. package/dist/index.js +1267 -122
  41. package/dist/{mcp-JNWEQ6T2.js → mcp-CMLFHRG2.js} +19 -9
  42. package/dist/mcp-serve.d.ts +31 -1
  43. package/dist/{modeldiag-6VS5KDP5.js → modeldiag-ICMPHT5L.js} +868 -831
  44. package/dist/{project-manifest-GE25PW4S.js → project-manifest-YFTJ3D5N.js} +2 -2
  45. package/dist/{project-picker-BOCWHBXP.js → project-picker-R5TYAE3Q.js} +3 -3
  46. package/dist/{providers-models-HQN3AT3K.js → providers-models-4FAKM2WO.js} +4 -4
  47. package/dist/repl-eternal-loop.d.ts +8 -0
  48. package/dist/repl-goal-banner.d.ts +21 -0
  49. package/dist/slash-commands/brain-council.d.ts +36 -0
  50. package/dist/slash-commands/brain-status.d.ts +12 -0
  51. package/dist/slash-commands/fallback.d.ts +6 -0
  52. package/dist/slash-commands/kanban-board-handlers.d.ts +13 -0
  53. package/dist/slash-commands/kanban-lifecycle-diagnostics.d.ts +16 -0
  54. package/dist/slash-commands/kanban-task-subcommands.d.ts +8 -0
  55. package/dist/slash-commands/memory-audience.d.ts +14 -0
  56. package/dist/slash-commands/memory-gather.d.ts +9 -0
  57. package/dist/slash-commands/memory-stats.d.ts +5 -0
  58. package/dist/slash-commands/settings-mutations.d.ts +6 -0
  59. package/dist/slash-commands/settings-view.d.ts +5 -0
  60. package/dist/subcommands/handlers/modeldiag-bench.d.ts +10 -0
  61. package/dist/subcommands/handlers/modeldiag-eval.d.ts +27 -0
  62. package/dist/subcommands/handlers/modeldiag-test.d.ts +8 -0
  63. package/dist/{version-help-ASKQYXDJ.js → version-help-TFD6VPF3.js} +2 -2
  64. package/dist/vibe-protocol-wiring.d.ts +10 -0
  65. package/dist/webui-server/credential-watcher.d.ts +15 -0
  66. package/dist/webui-server/domain-handlers.d.ts +21 -0
  67. package/dist/webui-server/route-contexts.d.ts +41 -0
  68. package/dist/{webui-server-FTG7JAZU.js → webui-server-IPHGJGXE.js} +515 -437
  69. package/dist/wiring/cli-execute-builder.d.ts +88 -0
  70. package/dist/wiring/cli-heap-watchdog.d.ts +33 -0
  71. package/dist/wiring/cli-prompt-and-tools-setup.d.ts +25 -0
  72. package/dist/wiring/cli-slash-commands-setup.d.ts +79 -0
  73. package/dist/wiring/heap-watchdog-setup.d.ts +53 -0
  74. package/dist/wiring/metrics.d.ts +1 -0
  75. package/dist/wiring/replay-governance-setup.d.ts +31 -0
  76. package/package.json +27 -27
@@ -2,33 +2,6 @@ import {
2
2
  theme
3
3
  } from "./chunk-QD544J2B.js";
4
4
 
5
- // src/boot/simpleui-full-auto.ts
6
- function isSimpleUiFullAuto(flags) {
7
- return flags["simpleui"] === true && flags["full-auto"] === true;
8
- }
9
- function applySimpleUiFullAutoProfile(config, flags) {
10
- if (!isSimpleUiFullAuto(flags)) return config;
11
- flags["yolo"] = true;
12
- flags["director"] = true;
13
- flags["no-director"] = false;
14
- flags["autonomy"] = "auto";
15
- flags["no-autonomy"] = false;
16
- return Object.freeze({
17
- ...config,
18
- yolo: true,
19
- tools: Object.freeze({
20
- ...config.tools,
21
- disabledTools: []
22
- })
23
- });
24
- }
25
- function configureSimpleUiRuntimeContext(meta, flags) {
26
- if (flags["simpleui"] !== true) return;
27
- meta["source"] = "webui";
28
- meta["surface"] = "simpleui";
29
- meta["coordinationContextMode"] = "background";
30
- }
31
-
32
5
  // src/permission-prompt.ts
33
6
  import { alwaysAllowUnavailableReason } from "@wrongstack/core/security";
34
7
  import { color as color2, truncate, unifiedDiff, writeOut } from "@wrongstack/core/utils";
@@ -127,6 +100,33 @@ function renderPayloadPreview(input) {
127
100
  return typeof diff === "string" && diff ? clipPreview(renderDiff(diff)) : "";
128
101
  }
129
102
 
103
+ // src/boot/simpleui-full-auto.ts
104
+ function isSimpleUiFullAuto(flags) {
105
+ return flags["simpleui"] === true && flags["full-auto"] === true;
106
+ }
107
+ function applySimpleUiFullAutoProfile(config, flags) {
108
+ if (!isSimpleUiFullAuto(flags)) return config;
109
+ flags["yolo"] = true;
110
+ flags["director"] = true;
111
+ flags["no-director"] = false;
112
+ flags["autonomy"] = "auto";
113
+ flags["no-autonomy"] = false;
114
+ return Object.freeze({
115
+ ...config,
116
+ yolo: true,
117
+ tools: Object.freeze({
118
+ ...config.tools,
119
+ disabledTools: []
120
+ })
121
+ });
122
+ }
123
+ function configureSimpleUiRuntimeContext(meta, flags) {
124
+ if (flags["simpleui"] !== true) return;
125
+ meta["source"] = "webui";
126
+ meta["surface"] = "simpleui";
127
+ meta["coordinationContextMode"] = "background";
128
+ }
129
+
130
130
  // src/services/project-facts.ts
131
131
  import * as fs from "node:fs/promises";
132
132
  import * as path from "node:path";
@@ -473,4 +473,4 @@ export {
473
473
  detectProjectFacts,
474
474
  renderAgentsTemplate
475
475
  };
476
- //# sourceMappingURL=chunk-YKBRFSGL.js.map
476
+ //# sourceMappingURL=chunk-DOJLAULS.js.map
@@ -15,12 +15,31 @@ function projectsDataDir(globalConfigPath) {
15
15
  }
16
16
  async function loadManifest(globalConfigPath) {
17
17
  const file = projectsJsonPath(globalConfigPath);
18
+ let raw;
19
+ try {
20
+ raw = await fs.readFile(file, "utf8");
21
+ } catch (error) {
22
+ if (error.code === "ENOENT") return { projects: [] };
23
+ throw new ConfigError({
24
+ message: `Unable to read projects manifest: ${file}`,
25
+ code: "CONFIG_INVALID",
26
+ context: { file, phase: "manifest-read" },
27
+ cause: error
28
+ });
29
+ }
18
30
  try {
19
- const raw = await fs.readFile(file, "utf8");
20
31
  const parsed = JSON.parse(raw);
21
- return { projects: parsed.projects ?? [] };
22
- } catch {
23
- return { projects: [] };
32
+ if (!parsed || typeof parsed !== "object" || !Array.isArray(parsed.projects)) {
33
+ throw new Error("projects must be an array");
34
+ }
35
+ return { projects: parsed.projects };
36
+ } catch (error) {
37
+ throw new ConfigError({
38
+ message: `Unable to parse projects manifest: ${file}`,
39
+ code: "CONFIG_PARSE_FAILED",
40
+ context: { file, phase: "manifest-parse" },
41
+ cause: error
42
+ });
24
43
  }
25
44
  }
26
45
  async function saveManifest(manifest, globalConfigPath) {
@@ -97,4 +116,4 @@ export {
97
116
  ensureProjectDataDir,
98
117
  touchProjectInManifest
99
118
  };
100
- //# sourceMappingURL=chunk-JUHRI6OV.js.map
119
+ //# sourceMappingURL=chunk-G7337TTK.js.map
@@ -1,12 +1,12 @@
1
+ import {
2
+ appendHistory,
3
+ backupCurrent
4
+ } from "./chunk-B4JLSXZB.js";
1
5
  import {
2
6
  hasApiKey,
3
7
  isKeylessLocalProvider,
4
8
  visibleModelIds
5
9
  } from "./chunk-VUVOMXWP.js";
6
- import {
7
- appendHistory,
8
- backupCurrent
9
- } from "./chunk-B4JLSXZB.js";
10
10
 
11
11
  // src/arg-parser.ts
12
12
  var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
@@ -101,7 +101,25 @@ var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
101
101
  "no-tools",
102
102
  "no-diagnostics",
103
103
  "unsupported",
104
- "ws"
104
+ "ws",
105
+ "force",
106
+ "no-browser",
107
+ // `wstack auth local` booleans
108
+ "no-key",
109
+ "skip-key",
110
+ "no-probe",
111
+ "skip-probe",
112
+ "probe-only",
113
+ // `wstack models add` capability toggles
114
+ "tools",
115
+ "vision",
116
+ "no-vision",
117
+ "reasoning",
118
+ "no-reasoning",
119
+ "streaming",
120
+ "no-streaming",
121
+ "json-mode",
122
+ "no-json-mode"
105
123
  ]);
106
124
  function parseArgs(argv) {
107
125
  const flags = {};
@@ -1056,4 +1074,4 @@ export {
1056
1074
  runLiveProviderPicker,
1057
1075
  runPicker
1058
1076
  };
1059
- //# sourceMappingURL=chunk-KXN5HZDL.js.map
1077
+ //# sourceMappingURL=chunk-PKHGLWUJ.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  LOCAL_LLM_PRESETS,
3
3
  runLiveProviderPicker
4
- } from "./chunk-KXN5HZDL.js";
4
+ } from "./chunk-PKHGLWUJ.js";
5
5
  import {
6
6
  openBrowser,
7
7
  runCodexOAuthLogin,
@@ -1374,4 +1374,4 @@ export {
1374
1374
  addCustomProvider,
1375
1375
  addKeyForProvider
1376
1376
  };
1377
- //# sourceMappingURL=chunk-HITHEXE3.js.map
1377
+ //# sourceMappingURL=chunk-TOG7OMKJ.js.map
@@ -27,11 +27,11 @@ var helpCmd = async (_args, deps) => {
27
27
  " wstack resume [<id>] Resume a session",
28
28
  " wstack sessions List recent sessions",
29
29
  " wstack auth Interactive setup + key manager (add/edit/delete)",
30
- " wstack auth <provider> Add API key for a provider",
31
30
  " wstack auth list Quick listing of saved providers and keys",
32
31
  " wstack auth status <id> Detailed view of one provider",
33
32
  " wstack auth remove <id> Delete a provider (asks for confirmation)",
34
33
  " wstack auth <provider> Add a key for a provider (--label, --family, \u2026)",
34
+ " wstack auth local [...] Quick-configure local Ollama / vLLM / LM Studio",
35
35
  " wstack config [show|edit] Show or edit effective config",
36
36
  " wstack tools List registered tools",
37
37
  " wstack skills List discovered skills",
@@ -41,11 +41,21 @@ var helpCmd = async (_args, deps) => {
41
41
  " wstack models add <mid> Add/override custom model (--max-context, --tools, --vision, \u2026)",
42
42
  " wstack models remove <mid> Remove a custom model",
43
43
  " wstack models list List all custom models",
44
- " wstack mcp [list] List MCP servers",
45
- " wstack plugin [list|report|menu|official|install|toggle|remove|enable|disable] Manage plugins",
46
- " wstack project id|init|rekey Manage the committed repository identity",
44
+ " wstack mcp [list|add|serve] Manage MCP servers",
45
+ " wstack plugin [list|install|toggle|remove|enable|disable] Manage plugins",
46
+ " wstack project id|init|rekey Manage the committed repository identity",
47
47
  " wstack governance status Show advisory project-daemon governance health",
48
48
  " wstack projects List tracked projects",
49
+ " wstack audit [<id>] [--list] Tamper-evident session audit log",
50
+ " wstack replay [<id>] [--list] Recorded provider responses log",
51
+ " wstack rewind [<id>] [opts] Rewind a session to an earlier point",
52
+ " wstack chronicle [opts] Chronological session metrics and timeline",
53
+ " wstack mailbox serve [opts] Start external-agent mailbox HTTP bridge",
54
+ " wstack permissions explain Explain tool permission policy decisions",
55
+ " wstack modeldiag [test] Model benchmarks and capability diagnostics",
56
+ " wstack bench [run|list] Agentic benchmarks against standard suites",
57
+ " wstack acp [serve] Agent Client Protocol (ACP) server",
58
+ " wstack update [--check-only] Self-update the CLI",
49
59
  " wstack diag Full diagnostics",
50
60
  " wstack doctor Health checks",
51
61
  " wstack export <id> [opts] Render a session",
@@ -82,4 +92,4 @@ export {
82
92
  versionCmd,
83
93
  helpCmd
84
94
  };
85
- //# sourceMappingURL=chunk-ARWGQUB3.js.map
95
+ //# sourceMappingURL=chunk-XSG33WHN.js.map