@rulvar/cli 1.118.0 → 1.120.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-Ghdg-hbD.js";
2
+ import { r as runCli, t as processIo } from "./io-Dh-lBbqe.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-Ghdg-hbD.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-Dh-lBbqe.js";
2
2
  import { ConfigError, InvalidResolutionError, JournalCompatibilityError, LeaseHeldError, Replayer, RulvarError, buildDeriverRegistry, compileSecretMasker, costReportFromJournal, journalPricingSnapshot, maskSecrets, normalizeEntry, readRunMeta, scanJournalCompatibility, validateSchemaSpec } from "@rulvar/core";
3
3
  //#region src/server.ts
4
4
  /**
@@ -990,6 +990,7 @@ async function toOtel(run, tracer, options = {}) {
990
990
  if (runOpen !== void 0 && event.degradedReasons !== void 0) runOpen.span.setAttribute("rulvar.run.degradedReasons", JSON.stringify(event.degradedReasons));
991
991
  if (runOpen !== void 0 && event.salvagedPartialChildren !== void 0) runOpen.span.setAttribute("rulvar.run.salvagedPartialChildren", JSON.stringify(event.salvagedPartialChildren));
992
992
  if (runOpen !== void 0 && event.salvagedTerminalOutputChildren !== void 0) runOpen.span.setAttribute("rulvar.run.salvagedTerminalOutputChildren", JSON.stringify(event.salvagedTerminalOutputChildren));
993
+ if (runOpen !== void 0 && event.acceptanceChildren !== void 0) runOpen.span.setAttribute("rulvar.run.acceptanceChildren", JSON.stringify(event.acceptanceChildren));
993
994
  endSpan(event.spanId, event.ts, event.status);
994
995
  break;
995
996
  }
@@ -1109,6 +1109,24 @@ async function inspectCommand(argv, context) {
1109
1109
  if (cost.abandoned.usd > 0) context.io.out(`gross: $${cost.grossUsd.toFixed(4)} (abandoned: $${cost.abandoned.usd.toFixed(4)}; see rulvar invoice)`);
1110
1110
  for (const [model, usd] of Object.entries(cost.byModel)) context.io.out(` ${model}: $${usd.toFixed(4)}`);
1111
1111
  for (const item of cost.unpriced) context.io.out(` unpriced: ${item.model} (${item.usage.inputTokens + item.usage.outputTokens} tok)`);
1112
+ for (const entry of entries) {
1113
+ if (entry.kind !== "decision") continue;
1114
+ const value = entry.value;
1115
+ if (value?.decisionType === "orchestrator_acceptance") {
1116
+ context.io.out(`acceptance: ${value.verdict ?? "unknown"} (completion ${value.completion ?? "unknown"}; gate on the status and completion PAIR)`);
1117
+ if ((value.salvagedPartialChildren?.length ?? 0) > 0) context.io.out(` salvaged partial: ${(value.salvagedPartialChildren ?? []).join(", ")}`);
1118
+ if ((value.salvagedTerminalOutputChildren?.length ?? 0) > 0) context.io.out(` salvaged terminal output: ${(value.salvagedTerminalOutputChildren ?? []).join(", ")}`);
1119
+ for (const child of value.children ?? []) {
1120
+ if (child.evidence === void 0) continue;
1121
+ const marker = child.evidence.met ? "met" : child.evidence.waivedBySalvage === true ? "below floor, waived by salvage" : "below floor";
1122
+ context.io.out(` evidence ${child.child}: ${String(child.evidence.recordedEntries)} of ${String(child.evidence.minEntries)} (${marker})`);
1123
+ }
1124
+ }
1125
+ if (value?.decisionType === "quota_drift") {
1126
+ const drift = entry.value;
1127
+ context.io.out(`quota drift: ${drift.provider ?? "?"}:${drift.model ?? "?"} ${drift.dimension ?? "?"} declared ${String(drift.declaredPerMinute ?? "?")}/min vs provider ${String(drift.reportedPerMinute ?? "?")}/min (per-minute window, not cumulative)`);
1128
+ }
1129
+ }
1112
1130
  for (const entry of entries) {
1113
1131
  const status = entry.status === void 0 ? "" : ` ${entry.status}`;
1114
1132
  const served = entry.servedBy === void 0 ? "" : ` servedBy=${entry.servedBy}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/cli",
3
- "version": "1.118.0",
3
+ "version": "1.120.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.118.0"
25
+ "@rulvar/core": "1.120.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/store-sqlite": "1.118.0",
32
- "@rulvar/testing": "1.118.0",
33
- "@rulvar/plan": "1.118.0",
34
- "@rulvar/evals": "1.118.0",
35
- "@rulvar/planner": "1.118.0"
31
+ "@rulvar/store-sqlite": "1.120.0",
32
+ "@rulvar/testing": "1.120.0",
33
+ "@rulvar/evals": "1.120.0",
34
+ "@rulvar/plan": "1.120.0",
35
+ "@rulvar/planner": "1.120.0"
36
36
  },
37
37
  "bin": {
38
38
  "rulvar": "./dist/cli.js"