@rulvar/cli 1.66.0 → 1.67.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-DQqS6oAt.js";
2
+ import { r as runCli, t as processIo } from "./io-DVJQ4d97.js";
3
3
  import { sanitizeTerminalText } from "@rulvar/core";
4
4
  import { inspect } from "node:util";
5
5
  //#region src/cli.ts
package/dist/index.d.ts CHANGED
@@ -38,8 +38,11 @@ declare function inspectCommand(argv: string[], context: CommandContext): Promis
38
38
  * plus the gross/net ledger totals (`totalUsd` here is the GROSS
39
39
  * figure: abandoned subtrees included, exactly what a provider invoice
40
40
  * bills). --json prints the machine-readable InvoiceExport; the text
41
- * form prints one line per row. Pricing folds at read time from the
42
- * assembled price table, the same numbers rulvar inspect reports.
41
+ * form prints one line per row and mirrors the export's declared
42
+ * pricing basis (per-call row usd is non-additive; `allocatedUsd` is
43
+ * the additive column that sums to gross). Pricing folds at read time
44
+ * from the assembled price table, the same numbers rulvar inspect
45
+ * reports.
43
46
  */
44
47
  declare function invoiceCommand(argv: string[], context: CommandContext): Promise<number>;
45
48
  /**
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-DQqS6oAt.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-DVJQ4d97.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
  /**
@@ -1119,8 +1119,11 @@ async function inspectCommand(argv, context) {
1119
1119
  * plus the gross/net ledger totals (`totalUsd` here is the GROSS
1120
1120
  * figure: abandoned subtrees included, exactly what a provider invoice
1121
1121
  * bills). --json prints the machine-readable InvoiceExport; the text
1122
- * form prints one line per row. Pricing folds at read time from the
1123
- * assembled price table, the same numbers rulvar inspect reports.
1122
+ * form prints one line per row and mirrors the export's declared
1123
+ * pricing basis (per-call row usd is non-additive; `allocatedUsd` is
1124
+ * the additive column that sums to gross). Pricing folds at read time
1125
+ * from the assembled price table, the same numbers rulvar inspect
1126
+ * reports.
1124
1127
  */
1125
1128
  async function invoiceCommand(argv, context) {
1126
1129
  const parsed = parseCommand(GRAMMAR.invoice, argv);
@@ -1142,6 +1145,7 @@ async function invoiceCommand(argv, context) {
1142
1145
  context.io.out(`run ${meta.runId}: invoice (${meta.status})`);
1143
1146
  context.io.out(`gross: $${invoice.totalUsd.toFixed(4)} | net: $${invoice.netUsd.toFixed(4)} | abandoned: $${invoice.abandonedUsd.toFixed(4)}${invoice.usageApprox === true ? " (approx)" : ""}`);
1144
1147
  context.io.out(`rows: ${invoice.rows.length} (reconciliation failures: ${invoice.reconciliationFailures})`);
1148
+ context.io.out(`pricing basis: ${invoice.pricingBasis} (row usd is non-additive; allocatedUsd sums to gross)`);
1145
1149
  for (const row of invoice.rows) {
1146
1150
  const usd = row.usd === void 0 ? "unpriced" : `$${row.usd.toFixed(4)}`;
1147
1151
  const tokens = row.usage.inputTokens + row.usage.outputTokens;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/cli",
3
- "version": "1.66.0",
3
+ "version": "1.67.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.66.0"
25
+ "@rulvar/core": "1.67.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.66.0",
32
- "@rulvar/store-sqlite": "1.66.0",
33
- "@rulvar/evals": "1.66.0",
34
- "@rulvar/plan": "1.66.0",
35
- "@rulvar/planner": "1.66.0"
31
+ "@rulvar/testing": "1.67.0",
32
+ "@rulvar/plan": "1.67.0",
33
+ "@rulvar/store-sqlite": "1.67.0",
34
+ "@rulvar/planner": "1.67.0",
35
+ "@rulvar/evals": "1.67.0"
36
36
  },
37
37
  "bin": {
38
38
  "rulvar": "./dist/cli.js"