@pentoshi/clai 4.0.2 → 4.0.3

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.
@@ -1,5 +1,5 @@
1
1
  import type { SessionPlan } from "../store/plan.js";
2
- import type { TokenUsage } from "../types.js";
2
+ import type { ProviderId, TokenUsage } from "../types.js";
3
3
  import type { TurnOutcome } from "./turn-outcome.js";
4
4
  export type AgentEvent = {
5
5
  type: "turn-start";
@@ -110,6 +110,7 @@ export type AgentEvent = {
110
110
  type: "token-usage";
111
111
  usage: TokenUsage;
112
112
  model?: string | undefined;
113
+ provider?: ProviderId | undefined;
113
114
  }
114
115
  /** Authoritative assembled-request estimate (same measure as compaction). */
115
116
  | {
@@ -3351,6 +3351,7 @@ export async function runAgentTurn(prompt, options = {}) {
3351
3351
  type: "token-usage",
3352
3352
  usage: completion.usage,
3353
3353
  model: completion.model,
3354
+ provider: completion.provider,
3354
3355
  });
3355
3356
  // Cache telemetry: without read/create counts there is no way to tell
3356
3357
  // whether the stable prefix is actually being reused.