@rulvar/cli 1.189.0 → 1.191.0

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/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { r as runCli, t as processIo } from "./io-CiYi4jwQ.js";
2
+ import { r as runCli, t as processIo } from "./io-C7TUZgVv.js";
3
3
  import { sanitizeTerminalText } from "@rulvar/core";
4
4
  import { inspect } from "node:util";
5
5
  //#region src/cli.ts
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as loadCliConfig, a as invoiceCommand, c as runCommand, d as reportOutcome, f as strictExitCode, g as assembleEngine, h as DEFAULT_STORE_DIR, i as inspectCommand, l as runsLsCommand, m as renderEventLine, n as HELP, o as preflightCommand, p as attachProgress, r as runCli, s as resumeCommand, t as processIo, u as driveRun, v as loadWorkflowModule, y as looksLikeFile } from "./io-CiYi4jwQ.js";
1
+ import { _ as loadCliConfig, a as invoiceCommand, c as runCommand, d as reportOutcome, f as strictExitCode, g as assembleEngine, h as DEFAULT_STORE_DIR, i as inspectCommand, l as runsLsCommand, m as renderEventLine, n as HELP, o as preflightCommand, p as attachProgress, r as runCli, s as resumeCommand, t as processIo, u as driveRun, v as loadWorkflowModule, y as looksLikeFile } from "./io-C7TUZgVv.js";
2
2
  import { ConfigError, JournalCompatibilityError, LeaseHeldError, Replayer, RulvarError, buildDeriverRegistry, compileSecretMasker, costReportFromJournal, journalPricingSnapshot, maskSecrets, normalizeEntry, persistedTerminalEnvelope, readRunMeta, scanJournalCompatibility, validateDetachedResolution } from "@rulvar/core";
3
3
  //#region src/server.ts
4
4
  /**
@@ -451,9 +451,23 @@ function strictExitCode(outcome, base, io) {
451
451
  io.err(`strict: claim coverage '${grade}': ` + (grade === "judge-failed" ? "the claim-consistency judge did not settle ok, so nothing was judged" : "declared critical anchors got no judged pair"));
452
452
  return 1;
453
453
  }
454
+ const low = lowCoverageOf(value);
455
+ if (low !== void 0) {
456
+ io.err("strict: claim coverage below the declared floor" + (typeof low.coverageRatio === "number" ? `: coverage ${low.coverageRatio.toFixed(3)}` + (typeof low.coverageFloor === "number" ? ` under floor ${String(low.coverageFloor)}` : "") : "") + (typeof low.runFactRatio === "number" ? `; run facts ${low.runFactRatio.toFixed(3)}` + (typeof low.runFactFloor === "number" ? ` under floor ${String(low.runFactFloor)}` : "") : ""));
457
+ return 1;
458
+ }
454
459
  if (grade === "partial") io.err("strict: claim coverage 'partial': the judge saw a bounded subset of the citing sentences; declare critical anchors (or raise the pair bound) to make the subset enforceable");
455
460
  return base;
456
461
  }
462
+ /** The stamped below-floor block of an outcome's claim meta, when present (RV1809). */
463
+ function lowCoverageOf(value) {
464
+ if (typeof value !== "object" || value === null) return;
465
+ const meta = value.claimConsistencyMeta;
466
+ if (typeof meta !== "object" || meta === null) return;
467
+ const low = meta.lowCoverage;
468
+ if (typeof low !== "object" || low === null || Array.isArray(low)) return;
469
+ return low;
470
+ }
457
471
  //#endregion
458
472
  //#region src/grammar.ts
459
473
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/cli",
3
- "version": "1.189.0",
3
+ "version": "1.191.0",
4
4
  "description": "Rulvar shell: run/resume/runs/inspect/plan/kb commands, TUI progress, createServer, createWorker, OTel exporter.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -22,17 +22,17 @@
22
22
  "access": "public"
23
23
  },
24
24
  "dependencies": {
25
- "@rulvar/core": "1.189.0"
25
+ "@rulvar/core": "1.191.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.20.1",
29
29
  "tsdown": "^0.22.14",
30
30
  "typescript": "~6.0.3",
31
- "@rulvar/testing": "1.189.0",
32
- "@rulvar/store-sqlite": "1.189.0",
33
- "@rulvar/evals": "1.189.0",
34
- "@rulvar/planner": "1.189.0",
35
- "@rulvar/plan": "1.189.0"
31
+ "@rulvar/store-sqlite": "1.191.0",
32
+ "@rulvar/plan": "1.191.0",
33
+ "@rulvar/evals": "1.191.0",
34
+ "@rulvar/planner": "1.191.0",
35
+ "@rulvar/testing": "1.191.0"
36
36
  },
37
37
  "bin": {
38
38
  "rulvar": "./dist/cli.js"