@ouro.bot/cli 0.1.0-alpha.431 → 0.1.0-alpha.433

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.
package/changelog.json CHANGED
@@ -1,6 +1,22 @@
1
1
  {
2
2
  "_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
3
3
  "versions": [
4
+ {
5
+ "version": "0.1.0-alpha.433",
6
+ "changes": [
7
+ "The human-facing CLI now speaks one shared terminal language across `ouro`, `ouro up`, `ouro connect`, repair, auth, vault, and hatch: the Ouroboros control deck, calm capability intros, and clear `What changed` / `Next moves` landings instead of raw transcript walls.",
8
+ "Guided connector and repair flows now tell the truth about what is portable versus machine-local, use the same live provider verification path as startup and auth verification, and keep visible progress on long-running work so the terminal never degrades into a dead blinking cursor while real work is still happening.",
9
+ "The refreshed CLI surface is now locked in by expanded screen-level daemon tests, full-suite regression coverage, hermetic built-runtime integration coverage, and packaged-install e2e coverage, with operator docs updated to match the new house-style behavior."
10
+ ]
11
+ },
12
+ {
13
+ "version": "0.1.0-alpha.432",
14
+ "changes": [
15
+ "`ouro up` no longer risks hanging forever on an unbounded npm registry check during startup; the update-check phase now shows live detail, aborts the stalled fetch after a short shared timeout, and continues booting with truthful status like `skipped; registry did not answer`.",
16
+ "The same bounded update-check helper now powers `ouro versions`, so published-version lookup cannot freeze there either and the human-facing status wording stays consistent across commands.",
17
+ "Focused startup/version coverage plus the full test suite now protect the stalled-registry regression, and `@ouro.bot/cli` plus the `ouro.bot` wrapper are version-synced for the startup freeze fix release."
18
+ ]
19
+ },
4
20
  {
5
21
  "version": "0.1.0-alpha.431",
6
22
  "changes": [
@@ -53,6 +53,7 @@ const runtime_1 = require("../../nerves/runtime");
53
53
  const ouro_path_installer_1 = require("../versioning/ouro-path-installer");
54
54
  const ouro_uti_1 = require("../versioning/ouro-uti");
55
55
  const ouro_version_manager_1 = require("../versioning/ouro-version-manager");
56
+ const update_checker_1 = require("../versioning/update-checker");
56
57
  const skill_management_installer_1 = require("./skill-management-installer");
57
58
  const hatch_flow_1 = require("../hatch/hatch-flow");
58
59
  const specialist_orchestrator_1 = require("../hatch/specialist-orchestrator");
@@ -144,6 +145,29 @@ function defaultReadRecentDaemonLogLines(lines = 10) {
144
145
  }
145
146
  return recentLines.slice(-lines).map((line) => (0, log_tailer_1.formatLogLine)(line));
146
147
  }
148
+ /* v8 ignore start -- CLI npm registry fetch wrapper: integration code @preserve */
149
+ async function defaultFetchCliRegistryJson(timeoutMs) {
150
+ const controller = new AbortController();
151
+ const timeoutId = setTimeout(() => {
152
+ controller.abort();
153
+ }, timeoutMs);
154
+ try {
155
+ const res = await fetch("https://registry.npmjs.org/@ouro.bot/cli", {
156
+ signal: controller.signal,
157
+ });
158
+ return res.json();
159
+ }
160
+ catch (error) {
161
+ if (error instanceof Error && error.name === "AbortError") {
162
+ throw new Error(`update check timed out after ${Math.max(1, Math.round(timeoutMs / 1000))}s`);
163
+ }
164
+ throw error;
165
+ }
166
+ finally {
167
+ clearTimeout(timeoutId);
168
+ }
169
+ }
170
+ /* v8 ignore stop */
147
171
  function defaultSleep(ms) {
148
172
  return new Promise((resolve) => setTimeout(resolve, ms));
149
173
  }
@@ -501,6 +525,7 @@ function createDefaultOuroCliDeps(socketPath = socket_client_1.DEFAULT_DAEMON_SO
501
525
  readRecentDaemonLogLines: defaultReadRecentDaemonLogLines,
502
526
  sleep: defaultSleep,
503
527
  now: () => Date.now(),
528
+ updateCheckTimeoutMs: update_checker_1.CLI_UPDATE_CHECK_TIMEOUT_MS,
504
529
  startupPollIntervalMs: 250,
505
530
  startupStabilityWindowMs: 1_500,
506
531
  startupTimeoutMs: 10_000,
@@ -540,10 +565,7 @@ function createDefaultOuroCliDeps(socketPath = socket_client_1.DEFAULT_DAEMON_SO
540
565
  checkForCliUpdate: async () => {
541
566
  const { checkForUpdate } = await Promise.resolve().then(() => __importStar(require("../versioning/update-checker")));
542
567
  return checkForUpdate((0, bundle_manifest_1.getPackageVersion)(), {
543
- fetchRegistryJson: async () => {
544
- const res = await fetch("https://registry.npmjs.org/@ouro.bot/cli");
545
- return res.json();
546
- },
568
+ fetchRegistryJson: () => defaultFetchCliRegistryJson(update_checker_1.CLI_UPDATE_CHECK_TIMEOUT_MS),
547
569
  distTag: "latest",
548
570
  });
549
571
  },