@rulvar/cli 1.140.0 → 1.141.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.
Files changed (2) hide show
  1. package/dist/index.js +7 -1
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -291,7 +291,8 @@ function createServer(options) {
291
291
  ...outcome.error === void 0 ? {} : { error: outcome.error },
292
292
  pending: outcome.pending,
293
293
  dropped: outcome.dropped.length,
294
- usage: outcome.usage
294
+ usage: outcome.usage,
295
+ envelope: outcome.envelope
295
296
  });
296
297
  }
297
298
  const meta = await metaOf(runId);
@@ -997,6 +998,11 @@ async function toOtel(run, tracer, options = {}) {
997
998
  runOpen.span.setAttribute("rulvar.run.settled", false);
998
999
  if (event.settledReason !== void 0) runOpen.span.setAttribute("rulvar.run.settled_reason", event.settledReason);
999
1000
  }
1001
+ const envelope = event.envelope;
1002
+ if (runOpen !== void 0 && envelope !== void 0) {
1003
+ runOpen.span.setAttribute("rulvar.run.total_usd", envelope.totalUsd);
1004
+ runOpen.span.setAttribute("rulvar.run.agents_spawned", envelope.agentsSpawned);
1005
+ }
1000
1006
  endSpan(event.spanId, event.ts, event.status, event.settled === false ? event.settledReason === "superseded" ? "superseded: a successor owns settlement; this stale terminal is withheld" : "settlement failed: nothing durable records this terminal; resume re-settles" : void 0, event.settled === false);
1001
1007
  break;
1002
1008
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/cli",
3
- "version": "1.140.0",
3
+ "version": "1.141.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.140.0"
25
+ "@rulvar/core": "1.141.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/testing": "1.140.0",
32
- "@rulvar/store-sqlite": "1.140.0",
33
- "@rulvar/planner": "1.140.0",
34
- "@rulvar/evals": "1.140.0",
35
- "@rulvar/plan": "1.140.0"
31
+ "@rulvar/testing": "1.141.0",
32
+ "@rulvar/store-sqlite": "1.141.0",
33
+ "@rulvar/planner": "1.141.0",
34
+ "@rulvar/evals": "1.141.0",
35
+ "@rulvar/plan": "1.141.0"
36
36
  },
37
37
  "bin": {
38
38
  "rulvar": "./dist/cli.js"