@rulvar/cli 1.96.0 → 1.97.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 +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.js +1 -1
- package/dist/{io--eTUZmOn.js → io-B4I9hIzW.js} +7 -5
- package/package.json +7 -7
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -39,10 +39,12 @@ declare function inspectCommand(argv: string[], context: CommandContext): Promis
|
|
|
39
39
|
* figure: abandoned subtrees included, exactly what a provider invoice
|
|
40
40
|
* bills). --json prints the machine-readable InvoiceExport; the text
|
|
41
41
|
* form prints one line per row and mirrors the export's declared
|
|
42
|
-
* pricing basis (
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
42
|
+
* pricing basis honestly (RV511): fully attributed runs price per
|
|
43
|
+
* request and the rows sum to gross; an aggregate-priced remainder or
|
|
44
|
+
* legacy entry makes the export say `row usd is non-additive`, and
|
|
45
|
+
* `allocatedUsd` is the additive column that sums to gross in every
|
|
46
|
+
* case. Pricing folds at read time from the assembled price table, the
|
|
47
|
+
* same numbers rulvar inspect reports.
|
|
46
48
|
*/
|
|
47
49
|
declare function invoiceCommand(argv: string[], context: CommandContext): Promise<number>;
|
|
48
50
|
/**
|
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
|
|
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-B4I9hIzW.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
|
/**
|
|
@@ -1122,10 +1122,12 @@ async function inspectCommand(argv, context) {
|
|
|
1122
1122
|
* figure: abandoned subtrees included, exactly what a provider invoice
|
|
1123
1123
|
* bills). --json prints the machine-readable InvoiceExport; the text
|
|
1124
1124
|
* form prints one line per row and mirrors the export's declared
|
|
1125
|
-
* pricing basis (
|
|
1126
|
-
*
|
|
1127
|
-
*
|
|
1128
|
-
*
|
|
1125
|
+
* pricing basis honestly (RV511): fully attributed runs price per
|
|
1126
|
+
* request and the rows sum to gross; an aggregate-priced remainder or
|
|
1127
|
+
* legacy entry makes the export say `row usd is non-additive`, and
|
|
1128
|
+
* `allocatedUsd` is the additive column that sums to gross in every
|
|
1129
|
+
* case. Pricing folds at read time from the assembled price table, the
|
|
1130
|
+
* same numbers rulvar inspect reports.
|
|
1129
1131
|
*/
|
|
1130
1132
|
async function invoiceCommand(argv, context) {
|
|
1131
1133
|
const parsed = parseCommand(GRAMMAR.invoice, argv);
|
|
@@ -1153,7 +1155,7 @@ async function invoiceCommand(argv, context) {
|
|
|
1153
1155
|
context.io.out(`run ${meta.runId}: invoice (${meta.status})`);
|
|
1154
1156
|
context.io.out(`gross: $${invoice.totalUsd.toFixed(4)} | net: $${invoice.netUsd.toFixed(4)} | abandoned: $${invoice.abandonedUsd.toFixed(4)}${invoice.usageApprox === true ? " (approx)" : ""}`);
|
|
1155
1157
|
context.io.out(`rows: ${invoice.rows.length} (reconciliation failures: ${invoice.reconciliationFailures}${invoice.usageUnknownRows === void 0 ? "" : `; usage unknown: ${invoice.usageUnknownRows}`})`);
|
|
1156
|
-
context.io.out(`pricing basis: ${invoice.pricingBasis} (row usd is non-additive; allocatedUsd sums to gross)
|
|
1158
|
+
context.io.out(`pricing basis: ${invoice.pricingBasis} ` + (invoice.rowUsdNonAdditive ? "(row usd is non-additive: an aggregate-priced remainder or legacy entry is in the fold; allocatedUsd sums to gross)" : "(rows are additive: every provider call priced per request; allocatedUsd agrees and sums to gross)"));
|
|
1157
1159
|
context.io.out(invoice.pricing?.source === "snapshot" ? "pricing rates: run-settle snapshot" + (invoice.pricing.pricingVersion === void 0 ? "" : ` (${invoice.pricing.pricingVersion})`) : "pricing rates: current table (no snapshot in the journal)");
|
|
1158
1160
|
for (const row of invoice.rows) {
|
|
1159
1161
|
const usd = row.usd === void 0 ? "unpriced" : `$${row.usd.toFixed(4)}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulvar/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.97.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.
|
|
25
|
+
"@rulvar/core": "1.97.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/
|
|
32
|
-
"@rulvar/
|
|
33
|
-
"@rulvar/
|
|
34
|
-
"@rulvar/
|
|
35
|
-
"@rulvar/evals": "1.
|
|
31
|
+
"@rulvar/store-sqlite": "1.97.0",
|
|
32
|
+
"@rulvar/testing": "1.97.0",
|
|
33
|
+
"@rulvar/planner": "1.97.0",
|
|
34
|
+
"@rulvar/plan": "1.97.0",
|
|
35
|
+
"@rulvar/evals": "1.97.0"
|
|
36
36
|
},
|
|
37
37
|
"bin": {
|
|
38
38
|
"rulvar": "./dist/cli.js"
|