@rulvar/cli 1.53.0 → 1.54.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.js +6 -2
- package/dist/{io-sanBkWnQ.js → io-FzfY_HhN.js} +1 -1
- package/package.json +7 -7
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as looksLikeFile, a as resumeCommand, c as driveRun, d as attachProgress, f as renderEventLine, g as loadWorkflowModule, h as loadCliConfig, i as inspectCommand, l as reportOutcome, m as assembleEngine, n as HELP, o as runCommand, p as DEFAULT_STORE_DIR, r as runCli, s as runsLsCommand, t as processIo, u as strictExitCode } from "./io-
|
|
1
|
+
import { _ as looksLikeFile, a as resumeCommand, c as driveRun, d as attachProgress, f as renderEventLine, g as loadWorkflowModule, h as loadCliConfig, i as inspectCommand, l as reportOutcome, m as assembleEngine, n as HELP, o as runCommand, p as DEFAULT_STORE_DIR, r as runCli, s as runsLsCommand, t as processIo, u as strictExitCode } from "./io-FzfY_HhN.js";
|
|
2
2
|
import { ConfigError, InvalidResolutionError, JournalCompatibilityError, LeaseHeldError, Replayer, RulvarError, buildDeriverRegistry, costReportFromJournal, maskSecrets, normalizeEntry, readRunMeta, scanJournalCompatibility, validateSchemaSpec } from "@rulvar/core";
|
|
3
3
|
//#region src/server.ts
|
|
4
4
|
/**
|
|
@@ -902,9 +902,13 @@ async function toOtel(run, tracer, options = {}) {
|
|
|
902
902
|
continue;
|
|
903
903
|
}
|
|
904
904
|
switch (event.type) {
|
|
905
|
-
case "run:end":
|
|
905
|
+
case "run:end": {
|
|
906
|
+
const runOpen = openBySpanId.get(event.spanId);
|
|
907
|
+
if (runOpen !== void 0 && event.completion !== void 0) runOpen.span.setAttribute("rulvar.run.completion", event.completion);
|
|
908
|
+
if (runOpen !== void 0 && event.childStatusCounts !== void 0) runOpen.span.setAttribute("rulvar.run.childStatusCounts", JSON.stringify(event.childStatusCounts));
|
|
906
909
|
endSpan(event.spanId, event.ts, event.status);
|
|
907
910
|
break;
|
|
911
|
+
}
|
|
908
912
|
case "agent:phase:start":
|
|
909
913
|
startSpan(event, `${event.spanId}#${event.invocation}`, event.spanId);
|
|
910
914
|
break;
|
|
@@ -210,7 +210,7 @@ function rawEventLine(event) {
|
|
|
210
210
|
return `determinism ${str(event.category)} (${str(event.provenance)}) ${where}`;
|
|
211
211
|
}
|
|
212
212
|
case "log": return event.level === "debug" ? void 0 : `${str(event.level)}: ${str(event.msg)}`;
|
|
213
|
-
case "run:end": return `run ${str(event.runId)} ${str(event.status)}${event.usageApprox === true ? " (cost approx)" : ""}`;
|
|
213
|
+
case "run:end": return `run ${str(event.runId)} ${str(event.status)}${event.usageApprox === true ? " (cost approx)" : ""}${event.completion === void 0 ? "" : ` completion=${str(event.completion)}`}`;
|
|
214
214
|
default: return;
|
|
215
215
|
}
|
|
216
216
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulvar/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.54.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.54.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/
|
|
32
|
-
"@rulvar/
|
|
33
|
-
"@rulvar/
|
|
34
|
-
"@rulvar/evals": "1.
|
|
35
|
-
"@rulvar/
|
|
31
|
+
"@rulvar/store-sqlite": "1.54.0",
|
|
32
|
+
"@rulvar/planner": "1.54.0",
|
|
33
|
+
"@rulvar/plan": "1.54.0",
|
|
34
|
+
"@rulvar/evals": "1.54.0",
|
|
35
|
+
"@rulvar/testing": "1.54.0"
|
|
36
36
|
},
|
|
37
37
|
"bin": {
|
|
38
38
|
"rulvar": "./dist/cli.js"
|