@ouro.bot/cli 0.1.0-alpha.1380 → 0.1.0-alpha.1382

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,18 @@
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.1382",
6
+ "changes": [
7
+ "`ouro up` no longer reports a healthy new daemon as \"answered once and then disappeared during startup\". One socket probe can time out (800 ms) while the new daemon is busy starting its senses; startup now calls the daemon gone only after three missed probes in a row, and never while its process is still alive."
8
+ ]
9
+ },
10
+ {
11
+ "version": "0.1.0-alpha.1381",
12
+ "changes": [
13
+ "ouro git, ouro git status and ouro git install have Ouro AX cards, so the census finds a card for every ouro command and agent door."
14
+ ]
15
+ },
4
16
  {
5
17
  "version": "0.1.0-alpha.1380",
6
18
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1380",
2
+ "runtimeVersion": "0.1.0-alpha.1382",
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.1380</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1382</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -28,6 +28,9 @@ exports.LIFECYCLE_COMMANDS = [
28
28
  { name: "service", effect: "private", readOnly: true, summary: "The commands for running the daemon as a Linux service.", ax: { id: "cli:service", group: "lifecycle", effect: "read", when: "Names the Linux service actions: install writes a SysV script or systemd unit, uninstall takes it away.", errors: [(0, cards_1.needsSubcommand)("service", "install, uninstall"), (0, cards_1.unknownFlag)("service")] } },
29
29
  { name: "service install", effect: "private", summary: "Install the daemon as a Linux service.", ax: { id: "cli:service install", group: "lifecycle", effect: "write", when: "On Linux without launchd: supervise the daemon with --init sysv or systemd, so ouro up starts it there; --print only shows it.", errors: [(0, cards_1.usageError)("service install", "needs --init sysv or systemd, and whole numbers in range for the memory flags.", "Pass --init, and --print first to read what it would write."), (0, cards_1.unknownFlag)("service install")] } },
30
30
  { name: "service uninstall", effect: "private", summary: "Remove the daemon's Linux service.", ax: { id: "cli:service uninstall", group: "lifecycle", effect: "write", when: "Take the supervised Linux service away, so the daemon no longer starts at boot through it.", errors: [(0, cards_1.usageError)("service uninstall", "takes no other words.", "Run ouro service uninstall alone."), (0, cards_1.unknownFlag)("service uninstall")] } },
31
+ { name: "git", effect: "private", readOnly: true, summary: "The commands for the git Ouro uses.", ax: { id: "cli:git", group: "lifecycle", effect: "read", when: "Names the git actions: status shows which git sync and clone use, install adds a portable one on Linux.", errors: [(0, cards_1.needsSubcommand)("git", "status, install"), (0, cards_1.unknownFlag)("git")] } },
32
+ { name: "git status", effect: "private", readOnly: true, summary: "Show which git Ouro uses.", ax: { id: "cli:git status", group: "lifecycle", effect: "read", when: "When ouro sync or clone fails on git: learn which git binary Ouro found, and from where.", errors: [(0, cards_1.usageError)("git status", "takes no other words.", "Run ouro git status alone."), (0, cards_1.unknownFlag)("git status")] } },
33
+ { name: "git install", effect: "private", summary: "Install a portable git on Linux.", ax: { id: "cli:git install", group: "lifecycle", effect: "write", when: "On a Linux host with no git: add a portable one so bundle sync and clone work; --force replaces it.", errors: [(0, cards_1.usageError)("git install", "takes only --force.", "Run ouro git install, adding --force to replace it."), (0, cards_1.unknownFlag)("git install")] } },
31
34
  { name: "sanctuary", effect: "private", readOnly: true, summary: "The commands for the Butler's sanctuary.", ax: { id: "cli:sanctuary", group: "lifecycle", effect: "read", when: "Names the one sanctuary action, git-exclude --print, which lists what the Butler's bundle keeps out of git.", errors: [(0, cards_1.usageError)("sanctuary", "needs git-exclude --print.", "Run ouro sanctuary git-exclude --print."), (0, cards_1.unknownFlag)("sanctuary")] } },
32
35
  { name: "sanctuary git-exclude", effect: "private", readOnly: true, summary: "Print the Butler bundle's git exclude list.", ax: { id: "cli:sanctuary git-exclude", group: "lifecycle", effect: "read", when: "Setting up the Butler's bundle repo: print its exclude list, one entry per line, without starting or reading anything.", errors: [(0, cards_1.usageError)("sanctuary git-exclude", "needs --print and nothing else.", "Run ouro sanctuary git-exclude --print."), (0, cards_1.unknownFlag)("sanctuary git-exclude")] } },
33
36
  { name: "setup", effect: "private", summary: "Connect a coding tool to the agent.", ax: { id: "cli:setup", group: "coding-tools", effect: "write", when: "Connect Claude Code or Codex to an agent: register its MCP server and lifecycle hooks in that tool's settings.", errors: [(0, cards_1.usageError)("setup", "needs --tool claude-code or codex.", "Pass --tool with one of those two."), ...(0, cards_1.agentErrors)("setup"), (0, cards_1.unknownFlag)("setup")] } },
@@ -154,6 +154,13 @@ const DEFAULT_DAEMON_STARTUP_TIMEOUT_MS = 60_000;
154
154
  const DEFAULT_DAEMON_STARTUP_POLL_INTERVAL_MS = 500;
155
155
  const DEFAULT_DAEMON_STARTUP_STABILITY_WINDOW_MS = 1_500;
156
156
  const DEFAULT_DAEMON_STARTUP_RETRY_LIMIT = 1;
157
+ /**
158
+ * Missed socket probes in a row, after the daemon first answered, before
159
+ * startup calls it gone. One probe can time out (800 ms) while a new daemon
160
+ * is busy starting its senses (2026-11-23 00:42:05Z: a healthy daemon was
161
+ * reported as disappeared after a single slow probe).
162
+ */
163
+ const DAEMON_STARTUP_DISAPPEARED_MISSES = 3;
157
164
  function setupReloadNotice(tool) {
158
165
  const host = tool === "codex" ? "Codex" : "Claude Code";
159
166
  return ` reload required: open a fresh ${host} session so the host launches the newly registered MCP bridge; existing MCP processes keep their old runtime`;
@@ -1404,6 +1411,7 @@ async function waitForDaemonStartup(deps, options) {
1404
1411
  const useHealthMonitor = hasStartupHealthMonitor(deps);
1405
1412
  let stableSinceMs = null;
1406
1413
  let sawSocket = false;
1414
+ let missesInARow = 0;
1407
1415
  if (!useHealthMonitor) {
1408
1416
  while (now() < deadline) {
1409
1417
  await sleep(pollIntervalMs);
@@ -1434,7 +1442,9 @@ async function waitForDaemonStartup(deps, options) {
1434
1442
  return { reason: startupFailure, retryable: false, includeRecentLogs: false };
1435
1443
  const aliveNow = await deps.checkSocketAlive(deps.socketPath);
1436
1444
  if (!aliveNow) {
1437
- if (options.pid !== null && deps.isProcessAlive && !deps.isProcessAlive(options.pid)) {
1445
+ // null when there is no pid or no way to check it.
1446
+ const processAlive = options.pid !== null && deps.isProcessAlive ? deps.isProcessAlive(options.pid) : null;
1447
+ if (processAlive === false) {
1438
1448
  return {
1439
1449
  reason: `${options.serviceLabel} exited before answering`,
1440
1450
  retryable: false,
@@ -1442,18 +1452,25 @@ async function waitForDaemonStartup(deps, options) {
1442
1452
  };
1443
1453
  }
1444
1454
  if (sawSocket) {
1445
- return {
1446
- reason: `${options.serviceLabel} answered once and then disappeared during startup`,
1447
- retryable: true,
1448
- };
1455
+ // The answer has to hold steady for the whole window again.
1456
+ stableSinceMs = null;
1457
+ missesInARow += 1;
1458
+ if (processAlive === null && missesInARow >= DAEMON_STARTUP_DISAPPEARED_MISSES) {
1459
+ return {
1460
+ reason: `${options.serviceLabel} answered once and then disappeared during startup`,
1461
+ retryable: true,
1462
+ };
1463
+ }
1449
1464
  }
1450
1465
  const latestEvent = options.readLatestDaemonEvent?.() ?? null;
1451
1466
  deps.reportDaemonStartupPhase?.(formatDaemonStartupProgressLine(options.serviceLabel, "waiting", latestEvent));
1452
1467
  continue;
1453
1468
  }
1469
+ missesInARow = 0;
1470
+ if (stableSinceMs === null)
1471
+ stableSinceMs = now();
1454
1472
  if (!sawSocket) {
1455
1473
  sawSocket = true;
1456
- stableSinceMs = now();
1457
1474
  const latestEvent = options.readLatestDaemonEvent?.() ?? null;
1458
1475
  deps.reportDaemonStartupPhase?.(formatDaemonStartupProgressLine(options.serviceLabel, "answering", latestEvent));
1459
1476
  }
@@ -449,6 +449,16 @@ exports.COMMAND_REGISTRY = {
449
449
  },
450
450
  };
451
451
  const SUBCOMMAND_HELP = {
452
+ "git status": {
453
+ description: "Show which git sync and clone use, and where it was found",
454
+ usage: "ouro git status",
455
+ example: "ouro git status",
456
+ },
457
+ "git install": {
458
+ description: "Install a portable git on Linux; --force replaces it",
459
+ usage: "ouro git install [--force]",
460
+ example: "ouro git install",
461
+ },
452
462
  "habit probe": {
453
463
  description: "Probe one habit through its real dispatch path with an irrevocable no-send boundary; it cannot send and reports zero transport invocations",
454
464
  usage: "ouro habit probe --agent <name> --habit <name> --no-send [--json]",
@@ -780,7 +790,7 @@ function getCommandHelp(name) {
780
790
  if (!entry)
781
791
  return null;
782
792
  const lines = [
783
- `${name} - ${entry.description}`,
793
+ `ouro ${name} - ${entry.description}`,
784
794
  "",
785
795
  `Usage: ${entry.usage}`,
786
796
  ];
@@ -484,6 +484,8 @@ function usage() {
484
484
  " ouro self-update disable|status",
485
485
  " ouro service install --init sysv|systemd [--path <file>] [--print] [--min-mem-available-mb <mb>] [--max-old-space-size <mb>] [--oom-score-adj <-1000..1000>] [--alert-file <file>]",
486
486
  " ouro service uninstall",
487
+ " ouro git install [--force]",
488
+ " ouro git status",
487
489
  " ouro sanctuary git-exclude --print",
488
490
  " ouro setup --tool claude-code|codex [--agent <name>]",
489
491
  " ouro hook <event> --agent <name>",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1380",
3
+ "version": "0.1.0-alpha.1382",
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.1380",
9
+ "version": "0.1.0-alpha.1382",
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.1380",
3
+ "version": "0.1.0-alpha.1382",
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": {