@ouro.bot/cli 0.1.0-alpha.1430 → 0.1.0-alpha.1431

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
@@ -2,9 +2,10 @@
2
2
  "_note": "Each pull request writes its own change note under changes/; the release job on main gives each landed change its version and adds the notes here (scripts/release-version.cjs). On main this file stops at the last version set by hand; the published package has every release. Agents read this file directly via read_file to understand what changed between versions.",
3
3
  "versions": [
4
4
  {
5
- "version": "0.1.0-alpha.1430",
5
+ "version": "0.1.0-alpha.1431",
6
6
  "changes": [
7
- "Phone utterances in the cascade voice path (Twilio Media Stream and Twilio recordings) now end with a recorded outcome; the OpenAI Realtime and SIP engines are not covered yet. Each thing a caller says is recorded before its turn runs. Its speech, and any tool that messages a person, is noted before it goes out, and its turn records it as answered, silent (the agent had nothing to say) or failed. A reply counts as answered only once it could reach the caller: a Media Stream reply once some of its audio went down the call (so a hangup or talk-over after part of it played still counts as answered), a buffered recording's reply once its playback files are written, and a streamed recording's reply once its speech is made, before Twilio fetches the stream. A Media Stream reply cut off before any audio played is recorded as failed, saying why: the call ended, the caller spoke again, a tool's audio took its place, or the reply made no audio to send. Live audio is never replayed: an utterance a stopped process left is recorded as failed once the voice sense is listening again, and when it shuts down, and the record says what the caller had already heard. A bridge that cannot take its port leaves the running one's records alone. A recording callback Twilio sends twice runs one turn: a retry while the first is still being answered gets the same reply, a retry of a streamed reply gets the same play link while its stream is still served, and any other retry is sent on to listen. A record that cannot be written is logged and never costs the caller the answer or stops the voice sense."
7
+ "Phone utterances in the cascade voice path (Twilio Media Stream and Twilio recordings) now end with a recorded outcome; the OpenAI Realtime and SIP engines are not covered yet. Each thing a caller says is recorded before its turn runs. Its speech, and any tool that messages a person, is noted before it goes out, and its turn records it as answered, silent (the agent had nothing to say) or failed. A reply counts as answered only once it could reach the caller: a Media Stream reply once some of its audio went down the call (so a hangup or talk-over after part of it played still counts as answered), a buffered recording's reply once its playback files are written, and a streamed recording's reply once its speech is made, before Twilio fetches the stream. A Media Stream reply cut off before any audio played is recorded as failed, saying why: the call ended, the caller spoke again, a tool's audio took its place, or the reply made no audio to send. Live audio is never replayed: an utterance a stopped process left is recorded as failed once the voice sense is listening again, and when it shuts down, and the record says what the caller had already heard. A bridge that cannot take its port leaves the running one's records alone. A recording callback Twilio sends twice runs one turn: a retry while the first is still being answered gets the same reply, a retry of a streamed reply gets the same play link while its stream is still served, and any other retry is sent on to listen. A record that cannot be written is logged and never costs the caller the answer or stops the voice sense.",
8
+ "`ouro up` now says why an update did not install (\"could not install X: ...\"), instead of \"update check unavailable\", and says when npm lists a release but is not serving its tarball yet. The unattended updater treats that not-served-yet answer (ETARGET, or a 404 on the release's tarball) as a wait for the next pass, not an install failure, and does not count it as a failed attempt."
8
9
  ]
9
10
  },
10
11
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1430",
2
+ "runtimeVersion": "0.1.0-alpha.1431",
3
3
  "bundleSchemaVersion": 3,
4
4
  "lastUpdated": "2026-09-03T00:00:00.000Z"
5
5
  }
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0"?>
2
2
  <Container version="2">
3
3
  <Name>ouro-butler</Name>
4
- <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1430</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1431</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -96,6 +96,7 @@ const machine_identity_1 = require("../machine-identity");
96
96
  const bluebubbles_host_1 = require("./bluebubbles-host");
97
97
  const provider_models_1 = require("../provider-models");
98
98
  const ouro_version_manager_1 = require("../versioning/ouro-version-manager");
99
+ const self_update_1 = require("../versioning/self-update");
99
100
  const update_checker_1 = require("../versioning/update-checker");
100
101
  const sync_1 = require("../sync");
101
102
  const core_1 = require("../../mailroom/core");
@@ -241,6 +242,12 @@ function isRsvpCliCommand(command) {
241
242
  }
242
243
  function summarizeCliUpdateCheckStatus(error, timedOut = false) {
243
244
  const normalized = error.trim().toLowerCase();
245
+ if (normalized.startsWith("could not install ")) {
246
+ const firstLine = error.trim().split("\n")[0];
247
+ return (0, self_update_1.isTarballNotServedYet)(error)
248
+ ? `skipped; ${firstLine.replace(/:.*$/, "")}: npm lists it but is not serving it yet, so the next run tries again`
249
+ : `skipped; ${firstLine.slice(0, 160)}`;
250
+ }
244
251
  if (timedOut || normalized.includes("timed out") || normalized.includes("abort")) {
245
252
  return "skipped; registry did not answer";
246
253
  }
@@ -7347,7 +7354,13 @@ async function runOuroCli(args, deps = (0, cli_defaults_1.createDefaultOuroCliDe
7347
7354
  });
7348
7355
  }
7349
7356
  if (needsActivation) {
7350
- await deps.installCliVersion(targetVersion);
7357
+ try {
7358
+ await deps.installCliVersion(targetVersion);
7359
+ }
7360
+ catch (installError) {
7361
+ const said = installError instanceof Error ? installError.message : String(installError);
7362
+ throw new Error(`could not install ${targetVersion}: ${said}`);
7363
+ }
7351
7364
  const validation = deps.validateCliVersionForActivation?.(targetVersion);
7352
7365
  if (validation && !validation.ok) {
7353
7366
  throw new Error(`refusing to activate ${targetVersion}: ${validation.message}`);
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RESTART_MEMORY_HEADROOM_BYTES = exports.PIN_MAX_AGE_MS = void 0;
4
+ exports.isTarballNotServedYet = isTarballNotServedYet;
4
5
  exports.runSelfUpdate = runSelfUpdate;
5
6
  const runtime_1 = require("../../nerves/runtime");
6
7
  const ouro_version_manager_1 = require("./ouro-version-manager");
@@ -36,6 +37,10 @@ const RESTART_MEMORY_POLL_MS = 10_000;
36
37
  function errorText(error) {
37
38
  return error instanceof Error ? error.message : String(error);
38
39
  }
40
+ /** npm lists a version before it serves its tarball: ETARGET, or a 404 on that tarball's URL. */
41
+ function isTarballNotServedYet(text) {
42
+ return /\bETARGET\b/.test(text) || (/\bE404\b/.test(text) && /\.tgz\b/.test(text));
43
+ }
39
44
  const FAILURE_OUTCOMES = ["unreachable", "install-failed", "rejected", "rolled-back"];
40
45
  async function runSelfUpdate(deps) {
41
46
  const release = deps.acquireLock();
@@ -212,7 +217,15 @@ async function runLocked(deps) {
212
217
  installSource = await deps.install(latest, lookup);
213
218
  }
214
219
  catch (error) {
215
- return finish("install-failed", { summary: errorText(error), latestVersion: latest });
220
+ const said = errorText(error);
221
+ if (isTarballNotServedYet(said)) {
222
+ return finish("deferred", {
223
+ summary: `${latest} is listed but its tarball is not served yet; staying on ${currentVersion} and trying again next pass`,
224
+ detail: said,
225
+ latestVersion: latest,
226
+ });
227
+ }
228
+ return finish("install-failed", { summary: said, latestVersion: latest });
216
229
  }
217
230
  const validation = deps.validate(latest);
218
231
  const smoke = validation.ok ? await deps.smokeTest(latest) : { ok: false, detail: validation.message };
@@ -119,7 +119,7 @@ function formatUpdateStatusLine(state, options) {
119
119
  line = `Updates: pinned to ${version} (checked ${age}; ${state.detail ?? "pin honored"})`;
120
120
  break;
121
121
  case "deferred":
122
- line = `Updates: ${state.latestVersion ?? "a new version"} waits for memory, staying on ${version} (checked ${age}; ${state.detail ?? "deferred"})`;
122
+ line = `Updates: ${state.latestVersion ?? "a new version"} waits, staying on ${version} (checked ${age}; ${state.detail ?? "deferred"})`;
123
123
  break;
124
124
  default:
125
125
  line = `Updates: needs attention: ${state.outcome} ${age} on ${version}${state.latestVersion ? ` (latest ${state.latestVersion})` : ""}: ${state.detail ?? "no detail"}`;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1430",
3
+ "version": "0.1.0-alpha.1431",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@ouro.bot/cli",
9
- "version": "0.1.0-alpha.1430",
9
+ "version": "0.1.0-alpha.1431",
10
10
  "bundleDependencies": [
11
11
  "@ouro.bot/friends"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1430",
3
+ "version": "0.1.0-alpha.1431",
4
4
  "description": "Ouroboros, the agent harness: agents with durable memory that live where you talk (terminal, Teams, iMessage, mail, voice) and use real tools. Start with npx ouro.bot@latest.",
5
5
  "homepage": "https://ouroboros.bot/",
6
6
  "engines": {