@rulvar/cli 1.72.0 → 1.74.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-B8X7XZgH.js";
2
+ import { r as runCli, t as processIo } from "./io-dDNXMGHN.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-B8X7XZgH.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-dDNXMGHN.js";
2
2
  import { ConfigError, InvalidResolutionError, JournalCompatibilityError, LeaseHeldError, Replayer, RulvarError, buildDeriverRegistry, compileSecretMasker, costReportFromJournal, maskSecrets, normalizeEntry, readRunMeta, scanJournalCompatibility, validateSchemaSpec } from "@rulvar/core";
3
3
  //#region src/server.ts
4
4
  /**
@@ -1144,13 +1144,13 @@ async function invoiceCommand(argv, context) {
1144
1144
  }
1145
1145
  context.io.out(`run ${meta.runId}: invoice (${meta.status})`);
1146
1146
  context.io.out(`gross: $${invoice.totalUsd.toFixed(4)} | net: $${invoice.netUsd.toFixed(4)} | abandoned: $${invoice.abandonedUsd.toFixed(4)}${invoice.usageApprox === true ? " (approx)" : ""}`);
1147
- context.io.out(`rows: ${invoice.rows.length} (reconciliation failures: ${invoice.reconciliationFailures})`);
1147
+ context.io.out(`rows: ${invoice.rows.length} (reconciliation failures: ${invoice.reconciliationFailures}${invoice.usageUnknownRows === void 0 ? "" : `; usage unknown: ${invoice.usageUnknownRows}`})`);
1148
1148
  context.io.out(`pricing basis: ${invoice.pricingBasis} (row usd is non-additive; allocatedUsd sums to gross)`);
1149
1149
  for (const row of invoice.rows) {
1150
1150
  const usd = row.usd === void 0 ? "unpriced" : `$${row.usd.toFixed(4)}`;
1151
1151
  const tokens = row.usage.inputTokens + row.usage.outputTokens;
1152
1152
  const id = row.responseId ?? "no-id";
1153
- const flags = `${row.usageApprox === true ? " approx" : ""}${row.abandoned === true ? " abandoned" : ""}`;
1153
+ const flags = `${row.usageApprox === true ? " approx" : ""}${row.usageUnknown === true ? " usage-unknown" : ""}${row.abandoned === true ? " abandoned" : ""}`;
1154
1154
  context.io.out(`#${row.entrySeq}.${row.ordinal} ${row.servedBy}${row.role === void 0 ? "" : ` ${row.role}`}${row.attempt === void 0 ? "" : ` attempt=${row.attempt}`} ${row.outcome} ${id} ${tokens} tok ${usd}${flags} [${row.reconciliation}]`);
1155
1155
  }
1156
1156
  for (const item of invoice.unpriced) context.io.out(`unpriced: ${item.model} (${item.usage.inputTokens + item.usage.outputTokens} tok)`);
@@ -1169,6 +1169,7 @@ function renderPreflight(report, io) {
1169
1169
  if (budget.orchestrator !== void 0) {
1170
1170
  const orch = budget.orchestrator;
1171
1171
  io.out(`orchestrator: effectiveCap=${usdOf(orch.effectiveCapUsd)} finalizeReserve=${usdOf(orch.finalizeReserveUsd)} over ${orch.finalizeTurns} turns (${orch.reserveCommitted ? "committed against the run root" : "not committed: no plan extension"})`);
1172
+ if (orch.synthesis !== void 0) io.out(`synthesis: servedBy=${orch.synthesis.servedBy ?? "UNROUTED"} projectedTurns=${orch.synthesis.projectedProviderTurns}`);
1172
1173
  }
1173
1174
  io.out(`quota: ${report.quota.configured ? "configured" : "none"}` + (report.quota.tenant === void 0 ? "" : ` tenant=${report.quota.tenant}`) + (report.quota.rules === void 0 ? "" : ` rules=${report.quota.rules}`));
1174
1175
  io.out(`run limits: ${JSON.stringify(report.runLimits)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/cli",
3
- "version": "1.72.0",
3
+ "version": "1.74.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.72.0"
25
+ "@rulvar/core": "1.74.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.20.0",
29
29
  "tsdown": "^0.22.3",
30
30
  "typescript": "~6.0.3",
31
- "@rulvar/testing": "1.72.0",
32
- "@rulvar/planner": "1.72.0",
33
- "@rulvar/evals": "1.72.0",
34
- "@rulvar/store-sqlite": "1.72.0",
35
- "@rulvar/plan": "1.72.0"
31
+ "@rulvar/testing": "1.74.0",
32
+ "@rulvar/store-sqlite": "1.74.0",
33
+ "@rulvar/planner": "1.74.0",
34
+ "@rulvar/evals": "1.74.0",
35
+ "@rulvar/plan": "1.74.0"
36
36
  },
37
37
  "bin": {
38
38
  "rulvar": "./dist/cli.js"