@ouro.bot/cli 0.1.0-alpha.555 → 0.1.0-alpha.556

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,12 @@
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.556",
6
+ "changes": [
7
+ "`ouro up` runtime replacement now captures the daemon boot timestamp before starting the replacement process, so a fast healthy daemon is not rejected for publishing health before the monitor begins polling."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.555",
6
12
  "changes": [
@@ -889,9 +889,10 @@ async function ensureDaemonRunning(deps, options = {}) {
889
889
  startDaemonProcess: deps.startDaemonProcess,
890
890
  checkSocketAlive: deps.checkSocketAlive,
891
891
  onProgress: deps.reportDaemonStartupPhase,
892
- waitForDaemonStartup: async ({ pid }) => {
892
+ now: deps.now,
893
+ waitForDaemonStartup: async ({ pid, bootStartedAtMs }) => {
893
894
  const startupFailure = await waitForDaemonStartup(deps, {
894
- bootStartedAtMs: (deps.now ?? Date.now)(),
895
+ bootStartedAtMs,
895
896
  pid,
896
897
  serviceLabel: "replacement background service",
897
898
  readLatestDaemonEvent: readLatestDaemonStartupEvent,
@@ -164,10 +164,11 @@ async function ensureCurrentDaemonRuntime(deps) {
164
164
  }
165
165
  deps.cleanupStaleSocket(deps.socketPath);
166
166
  deps.onProgress?.("starting the replacement background service");
167
+ const bootStartedAtMs = (deps.now ?? Date.now)();
167
168
  const started = await deps.startDaemonProcess(deps.socketPath);
168
169
  const pid = started.pid ?? "unknown";
169
170
  const startupCheck = deps.waitForDaemonStartup
170
- ? await deps.waitForDaemonStartup({ pid: started.pid ?? null })
171
+ ? await deps.waitForDaemonStartup({ pid: started.pid ?? null, bootStartedAtMs })
171
172
  : { ok: await verifyDaemonStarted(deps) };
172
173
  const verified = startupCheck.ok;
173
174
  /* v8 ignore next -- daemon liveness failure: requires real daemon crash timing @preserve */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.555",
3
+ "version": "0.1.0-alpha.556",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",