@kody-ade/kody-engine 0.4.646 → 0.4.647

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.
@@ -10,6 +10,7 @@
10
10
  import type { AgentResult } from "../agent.js"
11
11
  import type { KodyConfig, ReasoningEffort } from "../config.js"
12
12
  import type { Phase } from "../state.js"
13
+ import type { RunUsage } from "../usage.js"
13
14
 
14
15
  // ────────────────────────────────────────────────────────────────────────────
15
16
  // Profile shape (mirrors the JSON on disk).
@@ -465,7 +466,7 @@ export interface Context {
465
466
  exitCode: number
466
467
  prUrl?: string
467
468
  reason?: string
468
- usage?: { tokens: number; costUsd: number }
469
+ usage?: RunUsage
469
470
  /**
470
471
  * In-process hand-off to the next stage. A stage (e.g. `classify`) sets
471
472
  * this so the orchestrator runs the chosen sub-orchestrator
@@ -631,5 +632,7 @@ export interface WorkflowRunState {
631
632
  facts: Record<string, unknown>
632
633
  evidence: Record<string, boolean>
633
634
  artifacts: Array<{ label: string; url?: string; path?: string }>
635
+ /** Aggregate provider usage checkpointed after every completed workflow step. */
636
+ usage?: RunUsage
634
637
  blocker?: string
635
638
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.646",
3
+ "version": "0.4.647",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
5
5
  "license": "MIT",
6
6
  "repository": {