@ordewell/cli 0.10.3 → 0.10.4

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 (2) hide show
  1. package/dist/main.js +7 -5
  2. package/package.json +3 -3
package/dist/main.js CHANGED
@@ -4993,15 +4993,17 @@ function plannerItems(state) {
4993
4993
  const runner = (0, import_core31.runnerForProvider)(id);
4994
4994
  usability[runner] = installed.has(runner) ? { usable: true } : { usable: false, reason: "CLI not installed or not on PATH" };
4995
4995
  }
4996
- const entries = (0, import_core31.plannerBackendEntries)(usability, state.configuredProviders);
4997
- const items = entries.map((entry) => ({
4996
+ const offered2 = (0, import_core31.plannerBackendEntries)(usability, state.configuredProviders).filter((entry) => entry.usable);
4997
+ if (offered2.length === 0) {
4998
+ return [{ id: "", label: "No planner available", detail: "install a coding agent or add a key with /key", disabled: true }];
4999
+ }
5000
+ const items = offered2.map((entry) => ({
4998
5001
  id: entry.id,
4999
5002
  label: entry.label,
5000
5003
  detail: entry.reason,
5001
- selected: state.plannerProvider === entry.id,
5002
- disabled: !entry.usable
5004
+ selected: state.plannerProvider === entry.id
5003
5005
  }));
5004
- return entries.some((entry) => entry.kind === "vendor") ? items : [...items, { id: "", label: "No API providers configured", detail: "add a key with /key", disabled: true }];
5006
+ return offered2.some((entry) => entry.kind === "vendor") ? items : [...items, { id: "", label: "No API providers configured", detail: "add a key with /key", disabled: true }];
5005
5007
  }
5006
5008
 
5007
5009
  // src/version.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ordewell/cli",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Ordewell CLI and TUI — plan, run and verify coding-agent tasks from the terminal.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Alessandro Costanzo Ciano",
@@ -51,8 +51,8 @@
51
51
  "typecheck": "tsc --noEmit"
52
52
  },
53
53
  "dependencies": {
54
- "@ordewell/core": "^0.10.3",
55
- "@ordewell/web": "^0.10.3",
54
+ "@ordewell/core": "^0.10.4",
55
+ "@ordewell/web": "^0.10.4",
56
56
  "string-width": "^7.2.0",
57
57
  "ws": "^8.18.0"
58
58
  },