omniharness-cli 0.1.54 → 0.1.56

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/cli.js +11 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -52,11 +52,20 @@ else if (command === 'doctor') {
52
52
  }
53
53
  else if (command === 'models') {
54
54
  void (async () => {
55
+ const client = new OmniRouteClient();
55
56
  try {
56
- console.log((await models(new OmniRouteClient())).join('\n'));
57
+ console.log((await models(client)).join('\n'));
57
58
  }
58
59
  catch (error) {
59
- console.error(`omniharness models: ${error instanceof Error ? error.message : String(error)}`);
60
+ // "fetch failed" on its own tells the user nothing they can act on.
61
+ // Name the endpoint that was tried and what to check, the way doctor
62
+ // does — a connection failure here almost always means the gateway is
63
+ // not running or OMNIROUTE_URL points somewhere else.
64
+ const reason = error instanceof Error ? error.message : String(error);
65
+ console.error(`omniharness models: ${reason}`);
66
+ console.error(` endpoint: ${client.endpoint}`);
67
+ console.error(' check that OmniRoute is running, and that OMNIROUTE_URL points at it');
68
+ console.error(" run 'omniharness doctor' for a full connection report");
60
69
  process.exitCode = 1;
61
70
  }
62
71
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omniharness-cli",
3
- "version": "0.1.54",
3
+ "version": "0.1.56",
4
4
  "description": "OmniHarness — local-first agent orchestration harness for OmniRoute.",
5
5
  "license": "MIT",
6
6
  "type": "module",