@ouro.bot/cli 0.1.0-alpha.530 → 0.1.0-alpha.531

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,13 @@
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.531",
6
+ "changes": [
7
+ "`ouro doctor` now recognizes the current nested trip ledger schema (`ledger.ledgerId`) as healthy while keeping backward compatibility with older top-level `ledgerId` ledgers.",
8
+ "Adds regression coverage so valid trip ledgers no longer surface as doctor warnings during runtime reliability checks."
9
+ ]
10
+ },
4
11
  {
5
12
  "version": "0.1.0-alpha.530",
6
13
  "changes": [
@@ -420,7 +420,14 @@ function checkTrips(deps) {
420
420
  checks.push({ label: `${agentDir} trip ledger`, status: "fail", detail: "ledger.json is not valid JSON" });
421
421
  continue;
422
422
  }
423
- const ledgerId = typeof parsed.ledgerId === "string" ? parsed.ledgerId : null;
423
+ const nestedLedger = parsed.ledger && typeof parsed.ledger === "object"
424
+ ? parsed.ledger
425
+ : null;
426
+ const ledgerId = typeof parsed.ledgerId === "string"
427
+ ? parsed.ledgerId
428
+ : typeof nestedLedger?.ledgerId === "string"
429
+ ? nestedLedger.ledgerId
430
+ : null;
424
431
  const hasPrivateKey = typeof parsed.privateKeyPem === "string" && parsed.privateKeyPem.includes("BEGIN");
425
432
  if (!ledgerId) {
426
433
  checks.push({ label: `${agentDir} trip ledger`, status: "warn", detail: "ledger.json missing ledgerId field" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.530",
3
+ "version": "0.1.0-alpha.531",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",