@rulvar/cli 1.50.0 → 1.52.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 +13 -3
- package/dist/{io-DK9Ji_H2.js → io-sanBkWnQ.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-sanBkWnQ.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
|
/**
|
|
@@ -914,11 +914,21 @@ async function toOtel(run, tracer, options = {}) {
|
|
|
914
914
|
endSpan(key, event.ts, event.outcome);
|
|
915
915
|
break;
|
|
916
916
|
}
|
|
917
|
-
case "agent:end":
|
|
918
|
-
|
|
917
|
+
case "agent:end": {
|
|
918
|
+
const agentOpen = openBySpanId.get(event.spanId);
|
|
919
|
+
setUsageAttributes(agentOpen, event, "rulvar.retry_count", event.retryCount);
|
|
920
|
+
if (event.exploration !== void 0 && agentOpen !== void 0) {
|
|
921
|
+
agentOpen.span.setAttribute("rulvar.exploration.tool_calls_used", event.exploration.toolCallsUsed);
|
|
922
|
+
agentOpen.span.setAttribute("rulvar.exploration.distinct_signatures", event.exploration.distinctSignatures);
|
|
923
|
+
agentOpen.span.setAttribute("rulvar.exploration.repeated_calls", event.exploration.repeatedCalls);
|
|
924
|
+
agentOpen.span.setAttribute("rulvar.exploration.duplicate_result_calls", event.exploration.duplicateResultCalls);
|
|
925
|
+
agentOpen.span.setAttribute("rulvar.exploration.denied_repeats", event.exploration.deniedRepeats);
|
|
926
|
+
}
|
|
919
927
|
endSpan(event.spanId, event.ts, event.status);
|
|
920
928
|
break;
|
|
929
|
+
}
|
|
921
930
|
case "tool:end":
|
|
931
|
+
if (event.guard !== void 0) openBySpanId.get(event.spanId)?.span.setAttribute("rulvar.tool.guard", event.guard);
|
|
922
932
|
endSpan(event.spanId, event.ts, event.outcome);
|
|
923
933
|
break;
|
|
924
934
|
case "child:end":
|
|
@@ -203,7 +203,7 @@ function rawEventLine(event) {
|
|
|
203
203
|
case "agent:error": return `agent ${who} error: ${str(event.error?.message)}${event.willRetry === true ? " (will retry)" : ""}`;
|
|
204
204
|
case "agent:queued": return `agent ${who} queued`;
|
|
205
205
|
case "tool:start": return `${replayMark}tool ${str(event.toolName)}`;
|
|
206
|
-
case "tool:end": return `${replayMark}tool ${str(event.toolName)} ${str(event.outcome)} (${String(num(event.durationMs))}ms)`;
|
|
206
|
+
case "tool:end": return `${replayMark}tool ${str(event.toolName)} ${str(event.outcome)} (${String(num(event.durationMs))}ms)${str(event.guard) === "" ? "" : ` guard ${str(event.guard)}`}`;
|
|
207
207
|
case "approval:pending": return `approval pending: tool ${str(event.toolName)} (entry ${String(num(event.entryRef))})`;
|
|
208
208
|
case "determinism:warning": {
|
|
209
209
|
const where = str(event.file) === "" ? str(event.frame) : `at ${str(event.file)}:${String(num(event.line))}:${String(num(event.column))}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulvar/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.52.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.52.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.
|
|
32
|
-
"@rulvar/store-sqlite": "1.
|
|
33
|
-
"@rulvar/planner": "1.
|
|
34
|
-
"@rulvar/
|
|
35
|
-
"@rulvar/
|
|
31
|
+
"@rulvar/testing": "1.52.0",
|
|
32
|
+
"@rulvar/store-sqlite": "1.52.0",
|
|
33
|
+
"@rulvar/planner": "1.52.0",
|
|
34
|
+
"@rulvar/evals": "1.52.0",
|
|
35
|
+
"@rulvar/plan": "1.52.0"
|
|
36
36
|
},
|
|
37
37
|
"bin": {
|
|
38
38
|
"rulvar": "./dist/cli.js"
|