@runtypelabs/cli 2.22.6 → 2.22.7

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 +5 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -15566,7 +15566,7 @@ function resolveFallback(parsed, context, tracking) {
15566
15566
  }
15567
15567
  var templateEngine = new SimpleTemplateEngine();
15568
15568
 
15569
- // ../shared/dist/chunk-6KHYBEWY.mjs
15569
+ // ../shared/dist/chunk-KYIGNRXE.mjs
15570
15570
  var tokensSchema = external_exports.object({ input: external_exports.number(), output: external_exports.number() });
15571
15571
  var wireStopReasonSchema = external_exports.enum([
15572
15572
  "end_turn",
@@ -15689,6 +15689,10 @@ var unifiedStepCompleteEventSchema = external_exports.object({
15689
15689
  completedAt: external_exports.string().optional(),
15690
15690
  error: external_exports.string().optional(),
15691
15691
  unresolvedVariables: external_exports.array(external_exports.string()).optional(),
15692
+ // Per-step token usage forwarded from the engine's flow `step_complete`
15693
+ // (scalar, total tokens for the step). Optional — context/non-model steps omit
15694
+ // it. Consumers that surface a per-step token count read this field.
15695
+ tokensUsed: external_exports.number().optional(),
15692
15696
  fallback: fallbackInfoSchema.optional()
15693
15697
  });
15694
15698
  var unifiedStepSkipEventSchema = external_exports.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/cli",
3
- "version": "2.22.6",
3
+ "version": "2.22.7",
4
4
  "description": "Command-line interface for Runtype AI platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "rosie-skills": "0.8.1",
25
25
  "yaml": "^2.9.0",
26
26
  "@runtypelabs/ink-components": "0.3.2",
27
- "@runtypelabs/sdk": "5.0.0",
27
+ "@runtypelabs/sdk": "5.1.0",
28
28
  "@runtypelabs/terminal-animations": "0.2.1"
29
29
  },
30
30
  "devDependencies": {
@@ -39,7 +39,7 @@
39
39
  "tsx": "^4.7.1",
40
40
  "typescript": "^5.3.3",
41
41
  "vitest": "^4.1.0",
42
- "@runtypelabs/shared": "1.36.0"
42
+ "@runtypelabs/shared": "1.37.0"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=22.0.0"