@wrongstack/cli 0.317.2 → 0.319.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 (33) hide show
  1. package/data/providers.json +1 -22
  2. package/dist/{acp-CEQINXWB.js → acp-5ANIAOZC.js} +4 -4
  3. package/dist/arg-parser.d.ts +4 -0
  4. package/dist/{auth-3OSF6BMU.js → auth-KF5TAD7V.js} +10 -10
  5. package/dist/{chunk-GKHUHAIK.js → chunk-42JD25KU.js} +5 -5
  6. package/dist/{chunk-QYIIOMLE.js → chunk-E4I2TF5S.js} +2 -2
  7. package/dist/{chunk-37SPPLUD.js → chunk-F5GA2QW2.js} +15 -2
  8. package/dist/chunk-GGGUZSAU.js +235 -0
  9. package/dist/{chunk-QC5I4VWZ.js → chunk-H7GABTGS.js} +6 -2
  10. package/dist/chunk-OZDE3OWD.js +52 -0
  11. package/dist/chunk-P2OKBDCH.js +1166 -0
  12. package/dist/chunk-PCBJSXYV.js +65 -0
  13. package/dist/{chunk-KG4X5F7Z.js → chunk-VFCJOWJB.js} +10 -12
  14. package/dist/chunk-VWCZL4OH.js +46 -0
  15. package/dist/{chunk-YX6KUIDF.js → chunk-XHIEA6LG.js} +861 -29
  16. package/dist/{chunk-BXFYBQKR.js → chunk-XPX432BZ.js} +8 -1
  17. package/dist/cli-context-LH4QP4W2.js +3369 -0
  18. package/dist/{cli-main-ILRTNPDP.js → cli-main-72XUFUCL.js} +50 -44
  19. package/dist/{execution-BN4QIFH6.js → execution-DKJDNPYF.js} +17 -17
  20. package/dist/index.js +20 -4440
  21. package/dist/{modeldiag-4NYBRSFP.js → modeldiag-5FRMT6FQ.js} +2 -2
  22. package/dist/per-subcommand-help-6VCIKDUW.js +23 -0
  23. package/dist/{plugin-usage-AP7SJCDA.js → plugin-usage-CYUORYM6.js} +2 -2
  24. package/dist/{plugins-HQ5FU2AM.js → plugins-RV3OBBND.js} +3 -3
  25. package/dist/pre-launch/first-run.d.ts +51 -0
  26. package/dist/pre-launch.d.ts +1 -0
  27. package/dist/{providers-models-663NDPRQ.js → providers-models-OKKQZIWU.js} +2 -2
  28. package/dist/{sessions-config-P2LK2L32.js → sessions-config-KAMEBVOX.js} +4 -4
  29. package/dist/short-circuit-flags-U6CJAF6J.js +11 -0
  30. package/dist/subcommands-J4JMWC5W.js +10 -0
  31. package/dist/{webui-server-OJLLM6PE.js → webui-server-SY4EQCKD.js} +5 -5
  32. package/package.json +28 -28
  33. package/dist/chunk-L6ZNCTRJ.js +0 -1067
@@ -8,7 +8,7 @@ import {
8
8
  mutateConfigProviders,
9
9
  normalizeKeys,
10
10
  writeKeysBack
11
- } from "./chunk-BXFYBQKR.js";
11
+ } from "./chunk-XPX432BZ.js";
12
12
  import "./chunk-7OCVIDC7.js";
13
13
 
14
14
  // src/subcommands/handlers/modeldiag.ts
@@ -1323,4 +1323,4 @@ var modeldiagCmd = async (args, deps) => {
1323
1323
  export {
1324
1324
  modeldiagCmd
1325
1325
  };
1326
- //# sourceMappingURL=modeldiag-4NYBRSFP.js.map
1326
+ //# sourceMappingURL=modeldiag-5FRMT6FQ.js.map
@@ -0,0 +1,23 @@
1
+ import {
2
+ deepSubcommandsWithFocusedHelp,
3
+ renderBlockToString,
4
+ renderDeepHelp,
5
+ renderDeepHelpToString,
6
+ renderFocusedHelp,
7
+ renderFocusedHelpToString,
8
+ renderGenericHelp,
9
+ subcommandsWithFocusedHelp
10
+ } from "./chunk-P2OKBDCH.js";
11
+ import "./chunk-2VMJ3E5Z.js";
12
+ import "./chunk-7OCVIDC7.js";
13
+ export {
14
+ deepSubcommandsWithFocusedHelp,
15
+ renderBlockToString,
16
+ renderDeepHelp,
17
+ renderDeepHelpToString,
18
+ renderFocusedHelp,
19
+ renderFocusedHelpToString,
20
+ renderGenericHelp,
21
+ subcommandsWithFocusedHelp
22
+ };
23
+ //# sourceMappingURL=per-subcommand-help-6VCIKDUW.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runPluginManagementCommand
3
- } from "./chunk-QC5I4VWZ.js";
3
+ } from "./chunk-H7GABTGS.js";
4
4
  import {
5
5
  restoreFlags
6
6
  } from "./chunk-CSAPOCBP.js";
@@ -41,4 +41,4 @@ export {
41
41
  pluginCmd,
42
42
  usageCmd
43
43
  };
44
- //# sourceMappingURL=plugin-usage-AP7SJCDA.js.map
44
+ //# sourceMappingURL=plugin-usage-CYUORYM6.js.map
@@ -6,9 +6,9 @@ import {
6
6
  pluginNameFromSpec,
7
7
  setupPlugins,
8
8
  warnIfDeprecatedPluginName
9
- } from "./chunk-GKHUHAIK.js";
10
- import "./chunk-QC5I4VWZ.js";
9
+ } from "./chunk-42JD25KU.js";
11
10
  import "./chunk-TYO2OVAD.js";
11
+ import "./chunk-H7GABTGS.js";
12
12
  import "./chunk-7OCVIDC7.js";
13
13
  export {
14
14
  BUILTIN_PLUGIN_FACTORIES,
@@ -19,4 +19,4 @@ export {
19
19
  setupPlugins,
20
20
  warnIfDeprecatedPluginName
21
21
  };
22
- //# sourceMappingURL=plugins-HQ5FU2AM.js.map
22
+ //# sourceMappingURL=plugins-RV3OBBND.js.map
@@ -0,0 +1,51 @@
1
+ import type { Config, ModelsRegistry, SecretVault } from '@wrongstack/core/types';
2
+ import type { ReadlineInputReader } from '../input-reader.js';
3
+ import type { TerminalRenderer } from '../renderer.js';
4
+ /**
5
+ * Does this machine have ANY way to reach a model right now?
6
+ *
7
+ * Three independent sources, checked cheapest-first:
8
+ * 1. A saved provider carrying a key or an OAuth token (`apiKeys[]`), or a
9
+ * keyless loopback gateway (Ollama / LM Studio / vLLM / OmniRoute).
10
+ * 2. An env var named by a provider WrongStack ships a definition for. This
11
+ * list is local and always complete, so it answers correctly offline and
12
+ * even when the catalog has been pruned.
13
+ * 3. An env var named by a catalog provider — covers providers that exist
14
+ * only in models.dev. Skipped without complaint when the catalog is
15
+ * unavailable; sources 1 and 2 already cover the common cases.
16
+ *
17
+ * Deliberately generous: a false positive only means the user sees the normal
18
+ * picker (which they can still act on), while a false negative would push a
19
+ * configured user through an onboarding screen they do not need.
20
+ */
21
+ export declare function hasAnyCredential(config: Config, modelsRegistry: ModelsRegistry, env?: Readonly<Record<string, string | undefined>>): Promise<boolean>;
22
+ export type FirstRunOutcome =
23
+ /** A credential was added. The caller must reload config from disk. */
24
+ {
25
+ kind: 'configured';
26
+ }
27
+ /** User chose to continue with no model connected. */
28
+ | {
29
+ kind: 'setup-mode';
30
+ }
31
+ /** User quit. The caller should exit 0 — this is not an error. */
32
+ | {
33
+ kind: 'quit';
34
+ };
35
+ export interface FirstRunDeps {
36
+ renderer: TerminalRenderer;
37
+ reader: ReadlineInputReader;
38
+ modelsRegistry: ModelsRegistry;
39
+ vault: SecretVault;
40
+ profileConfigPath: string;
41
+ /** Re-read after each auth flow so the loop can tell whether it succeeded. */
42
+ reloadConfig: () => Promise<Config>;
43
+ }
44
+ /**
45
+ * Run the first-run gate. Loops until the user configures a credential,
46
+ * chooses setup mode, or quits — a failed or abandoned auth flow returns here
47
+ * rather than falling through to the picker, which would be the same dead end
48
+ * this screen exists to remove.
49
+ */
50
+ export declare function runFirstRunSetup(deps: FirstRunDeps): Promise<FirstRunOutcome>;
51
+ //# sourceMappingURL=first-run.d.ts.map
@@ -1,3 +1,4 @@
1
+ export { type FirstRunDeps, type FirstRunOutcome, hasAnyCredential, runFirstRunSetup, } from './pre-launch/first-run.js';
1
2
  export { LaunchAbortedError, type LaunchModeChoices, persistLaunchChoices, runLaunchPrompts, } from './pre-launch/launch-prompts.js';
2
3
  export { detectProjectKind, type ProjectKind, runProjectCheck, } from './pre-launch/project-check.js';
3
4
  //# sourceMappingURL=pre-launch.d.ts.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-YMXXOOFN.js";
7
7
  import {
8
8
  mutateConfigProviders
9
- } from "./chunk-BXFYBQKR.js";
9
+ } from "./chunk-XPX432BZ.js";
10
10
  import "./chunk-7OCVIDC7.js";
11
11
 
12
12
  // src/subcommands/handlers/providers-models.ts
@@ -661,4 +661,4 @@ export {
661
661
  modelsCmd,
662
662
  providersCmd
663
663
  };
664
- //# sourceMappingURL=providers-models-663NDPRQ.js.map
664
+ //# sourceMappingURL=providers-models-OKKQZIWU.js.map
@@ -1,12 +1,12 @@
1
- import {
2
- restoreFlags
3
- } from "./chunk-CSAPOCBP.js";
4
1
  import {
5
2
  getHistoryEntry,
6
3
  listHistory,
7
4
  restoreFromHistory,
8
5
  restoreLast
9
6
  } from "./chunk-B4JLSXZB.js";
7
+ import {
8
+ restoreFlags
9
+ } from "./chunk-CSAPOCBP.js";
10
10
  import {
11
11
  activeProfileConfigPath
12
12
  } from "./chunk-YMXXOOFN.js";
@@ -419,4 +419,4 @@ export {
419
419
  configCmd,
420
420
  sessionsCmd
421
421
  };
422
- //# sourceMappingURL=sessions-config-P2LK2L32.js.map
422
+ //# sourceMappingURL=sessions-config-KAMEBVOX.js.map
@@ -0,0 +1,11 @@
1
+ import {
2
+ handleHelpVersionShortCircuit
3
+ } from "./chunk-VWCZL4OH.js";
4
+ import "./chunk-QAC263FZ.js";
5
+ import "./chunk-XJXDOF63.js";
6
+ import "./chunk-GGGUZSAU.js";
7
+ import "./chunk-7OCVIDC7.js";
8
+ export {
9
+ handleHelpVersionShortCircuit
10
+ };
11
+ //# sourceMappingURL=short-circuit-flags-U6CJAF6J.js.map
@@ -0,0 +1,10 @@
1
+ import {
2
+ subcommandNames,
3
+ subcommands
4
+ } from "./chunk-OZDE3OWD.js";
5
+ import "./chunk-7OCVIDC7.js";
6
+ export {
7
+ subcommandNames,
8
+ subcommands
9
+ };
10
+ //# sourceMappingURL=subcommands-J4JMWC5W.js.map
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  createHqCommandDispatcher
3
3
  } from "./chunk-7YLN7YUA.js";
4
+ import {
5
+ WEBUI_SESSION_CHILD_CAPABILITIES
6
+ } from "./chunk-GPPRNAKW.js";
4
7
  import {
5
8
  createKanbanRunMirror
6
9
  } from "./chunk-VCYZ3WZV.js";
7
10
  import {
8
11
  startCliHqConnection
9
12
  } from "./chunk-XYKYXFEE.js";
10
- import {
11
- WEBUI_SESSION_CHILD_CAPABILITIES
12
- } from "./chunk-GPPRNAKW.js";
13
13
  import {
14
14
  loadConfigProviders,
15
15
  mutateConfigProviders
16
- } from "./chunk-BXFYBQKR.js";
16
+ } from "./chunk-XPX432BZ.js";
17
17
  import "./chunk-7OCVIDC7.js";
18
18
 
19
19
  // src/webui-server.ts
@@ -1910,4 +1910,4 @@ async function runWebUI(opts) {
1910
1910
  export {
1911
1911
  runWebUI
1912
1912
  };
1913
- //# sourceMappingURL=webui-server-OJLLM6PE.js.map
1913
+ //# sourceMappingURL=webui-server-SY4EQCKD.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/cli",
3
- "version": "0.317.2",
3
+ "version": "0.319.0",
4
4
  "license": "MIT",
5
5
  "description": "WrongStack CLI — terminal AI coding agent with provider catalog from models.dev. Provides `wrongstack` and `wstack` binaries.",
6
6
  "keywords": [
@@ -41,36 +41,36 @@
41
41
  "data"
42
42
  ],
43
43
  "dependencies": {
44
- "@wrongstack/acp": "0.317.2",
45
- "@wrongstack/bench": "0.317.2",
46
- "@wrongstack/core": "0.317.2",
47
- "@wrongstack/primitives": "0.317.2",
48
- "@wrongstack/kanban": "0.317.2",
49
- "@wrongstack/mcp": "0.317.2",
50
- "@wrongstack/persistence": "0.317.2",
51
- "@wrongstack/plug-lsp": "0.317.2",
52
- "@wrongstack/plugins": "0.317.2",
53
- "@wrongstack/providers": "0.317.2",
54
- "@wrongstack/requirement-intake": "0.317.2",
55
- "@wrongstack/runtime": "0.317.2",
56
- "@wrongstack/sage": "0.317.2",
57
- "@wrongstack/sdd": "0.317.2",
58
- "@wrongstack/security-scanner": "0.317.2",
59
- "@wrongstack/simpleui": "0.317.2",
60
- "@wrongstack/techstack": "0.317.2",
61
- "@wrongstack/telegram": "0.317.2",
62
- "@wrongstack/tools": "0.317.2",
63
- "@wrongstack/tui": "0.317.2",
64
- "@wrongstack/vector-memory": "0.317.2",
65
- "@wrongstack/webui": "0.317.2",
66
- "@wrongstack/webui-hq": "0.317.2",
67
- "@wrongstack/webui-protocol": "0.317.2",
68
- "@wrongstack/wrongtrace": "0.317.2",
69
- "@wrongstack/webui-server": "0.317.2",
44
+ "@wrongstack/acp": "0.319.0",
45
+ "@wrongstack/bench": "0.319.0",
46
+ "@wrongstack/core": "0.319.0",
47
+ "@wrongstack/primitives": "0.319.0",
48
+ "@wrongstack/kanban": "0.319.0",
49
+ "@wrongstack/mcp": "0.319.0",
50
+ "@wrongstack/persistence": "0.319.0",
51
+ "@wrongstack/plug-lsp": "0.319.0",
52
+ "@wrongstack/plugins": "0.319.0",
53
+ "@wrongstack/providers": "0.319.0",
54
+ "@wrongstack/requirement-intake": "0.319.0",
55
+ "@wrongstack/runtime": "0.319.0",
56
+ "@wrongstack/sage": "0.319.0",
57
+ "@wrongstack/sdd": "0.319.0",
58
+ "@wrongstack/security-scanner": "0.319.0",
59
+ "@wrongstack/simpleui": "0.319.0",
60
+ "@wrongstack/techstack": "0.319.0",
61
+ "@wrongstack/telegram": "0.319.0",
62
+ "@wrongstack/tools": "0.319.0",
63
+ "@wrongstack/tui": "0.319.0",
64
+ "@wrongstack/vector-memory": "0.319.0",
65
+ "@wrongstack/webui": "0.319.0",
66
+ "@wrongstack/webui-hq": "0.319.0",
67
+ "@wrongstack/webui-protocol": "0.319.0",
68
+ "@wrongstack/wrongtrace": "0.319.0",
69
+ "@wrongstack/webui-server": "0.319.0",
70
70
  "ws": "^8.21.3"
71
71
  },
72
72
  "optionalDependencies": {
73
- "@wrongstack/desktop": "0.317.2"
73
+ "@wrongstack/desktop": "0.319.0"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/node": "^26.2.0",