@ouro.bot/cli 0.1.0-alpha.554 → 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,19 @@
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
+ },
10
+ {
11
+ "version": "0.1.0-alpha.555",
12
+ "changes": [
13
+ "`npm run build` now removes stale `dist/` output before compiling so deleted runtime modules cannot remain in published packages.",
14
+ "Package-asset validation now rejects published package contents that still mention the removed provider selection file, provider state module, or drift module surfaces."
15
+ ]
16
+ },
4
17
  {
5
18
  "version": "0.1.0-alpha.554",
6
19
  "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 */
@@ -93,16 +93,6 @@ const DISPATCH_EXEMPT_PATTERNS = [
93
93
  // buildDaemonHealthState → DaemonHealthWriter) owns observability via
94
94
  // daemon.health_written when the rolled-up state is persisted.
95
95
  "daemon/daemon-rollup",
96
- // Drift comparator + thin I/O loader: `detectProviderBindingDrift`
97
- // is a pure intent-vs-observed comparator with no side effects;
98
- // `loadDriftInputsForAgent` is a small fs-read wrapper that returns
99
- // `null` on missing/invalid state rather than emitting. The caller
100
- // (daemon-entry.ts buildDaemonHealthState's per-agent drift probe)
101
- // owns observability — drift findings ride along through
102
- // `daemon.health_written` as part of the rolled-up state, and
103
- // `agent-config-check.ts` carries `driftFindings` through its
104
- // existing instrumentation. Same pattern as `daemon-rollup`.
105
- "daemon/drift-detection",
106
96
  // Attachment helper modules: generic file-path/extension utilities and the
107
97
  // source registry are pure support seams. The orchestrator/adapters that
108
98
  // call them own the observability.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.554",
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",
@@ -34,7 +34,7 @@
34
34
  "test:mailbox-ui": "npm test --prefix packages/mailbox-ui",
35
35
  "test:coverage:vitest": "vitest run --coverage",
36
36
  "test:coverage": "node scripts/run-coverage-gate.cjs",
37
- "build": "tsc && (cd packages/mailbox-ui && npm install --ignore-scripts 2>/dev/null && npm run build && cd ../.. && node scripts/copy-mailbox-ui.cjs) || echo 'mailbox-ui build skipped'",
37
+ "build": "node scripts/clean-dist.cjs && tsc && (cd packages/mailbox-ui && npm install --ignore-scripts 2>/dev/null && npm run build && cd ../.. && node scripts/copy-mailbox-ui.cjs) || echo 'mailbox-ui build skipped'",
38
38
  "lint": "eslint src/",
39
39
  "release:preflight": "node scripts/release-preflight.cjs",
40
40
  "release:smoke": "node scripts/release-smoke.cjs",