@roo-code/types 1.72.0 → 1.74.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/index.d.ts CHANGED
@@ -15548,18 +15548,21 @@ declare const staticAppPropertiesSchema: z.ZodObject<{
15548
15548
  vscodeVersion: z.ZodString;
15549
15549
  platform: z.ZodString;
15550
15550
  editorName: z.ZodString;
15551
+ hostname: z.ZodOptional<z.ZodString>;
15551
15552
  }, "strip", z.ZodTypeAny, {
15552
15553
  appName: string;
15553
15554
  appVersion: string;
15554
15555
  vscodeVersion: string;
15555
15556
  platform: string;
15556
15557
  editorName: string;
15558
+ hostname?: string | undefined;
15557
15559
  }, {
15558
15560
  appName: string;
15559
15561
  appVersion: string;
15560
15562
  vscodeVersion: string;
15561
15563
  platform: string;
15562
15564
  editorName: string;
15565
+ hostname?: string | undefined;
15563
15566
  }>;
15564
15567
  type StaticAppProperties = z.infer<typeof staticAppPropertiesSchema>;
15565
15568
  declare const dynamicAppPropertiesSchema: z.ZodObject<{
@@ -15590,6 +15593,7 @@ declare const appPropertiesSchema: z.ZodObject<{
15590
15593
  vscodeVersion: z.ZodString;
15591
15594
  platform: z.ZodString;
15592
15595
  editorName: z.ZodString;
15596
+ hostname: z.ZodOptional<z.ZodString>;
15593
15597
  }, "strip", z.ZodTypeAny, {
15594
15598
  mode: string;
15595
15599
  appName: string;
@@ -15598,6 +15602,7 @@ declare const appPropertiesSchema: z.ZodObject<{
15598
15602
  platform: string;
15599
15603
  editorName: string;
15600
15604
  language: string;
15605
+ hostname?: string | undefined;
15601
15606
  cloudIsAuthenticated?: boolean | undefined;
15602
15607
  }, {
15603
15608
  mode: string;
@@ -15607,6 +15612,7 @@ declare const appPropertiesSchema: z.ZodObject<{
15607
15612
  platform: string;
15608
15613
  editorName: string;
15609
15614
  language: string;
15615
+ hostname?: string | undefined;
15610
15616
  cloudIsAuthenticated?: boolean | undefined;
15611
15617
  }>;
15612
15618
  type AppProperties = z.infer<typeof appPropertiesSchema>;
@@ -15705,6 +15711,7 @@ declare const telemetryPropertiesSchema: z.ZodObject<{
15705
15711
  vscodeVersion: z.ZodString;
15706
15712
  platform: z.ZodString;
15707
15713
  editorName: z.ZodString;
15714
+ hostname: z.ZodOptional<z.ZodString>;
15708
15715
  }, "strip", z.ZodTypeAny, {
15709
15716
  mode: string;
15710
15717
  appName: string;
@@ -15717,6 +15724,7 @@ declare const telemetryPropertiesSchema: z.ZodObject<{
15717
15724
  taskId?: string | undefined;
15718
15725
  apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "claude-code" | "glama" | "openrouter" | "bedrock" | "vertex" | "vscode-lm" | "lmstudio" | "gemini-cli" | "openai-native" | "moonshot" | "deepseek" | "doubao" | "qwen-code" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | "huggingface" | "cerebras" | "sambanova" | "zai" | "fireworks" | "featherless" | "io-intelligence" | "roo" | undefined;
15719
15726
  modelId?: string | undefined;
15727
+ hostname?: string | undefined;
15720
15728
  cloudIsAuthenticated?: boolean | undefined;
15721
15729
  diffStrategy?: string | undefined;
15722
15730
  todos?: {
@@ -15740,6 +15748,7 @@ declare const telemetryPropertiesSchema: z.ZodObject<{
15740
15748
  taskId?: string | undefined;
15741
15749
  apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "claude-code" | "glama" | "openrouter" | "bedrock" | "vertex" | "vscode-lm" | "lmstudio" | "gemini-cli" | "openai-native" | "moonshot" | "deepseek" | "doubao" | "qwen-code" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | "huggingface" | "cerebras" | "sambanova" | "zai" | "fireworks" | "featherless" | "io-intelligence" | "roo" | undefined;
15742
15750
  modelId?: string | undefined;
15751
+ hostname?: string | undefined;
15743
15752
  cloudIsAuthenticated?: boolean | undefined;
15744
15753
  diffStrategy?: string | undefined;
15745
15754
  todos?: {
@@ -15798,6 +15807,7 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
15798
15807
  vscodeVersion: z.ZodString;
15799
15808
  platform: z.ZodString;
15800
15809
  editorName: z.ZodString;
15810
+ hostname: z.ZodOptional<z.ZodString>;
15801
15811
  }, "strip", z.ZodTypeAny, {
15802
15812
  mode: string;
15803
15813
  appName: string;
@@ -15810,6 +15820,7 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
15810
15820
  taskId?: string | undefined;
15811
15821
  apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "claude-code" | "glama" | "openrouter" | "bedrock" | "vertex" | "vscode-lm" | "lmstudio" | "gemini-cli" | "openai-native" | "moonshot" | "deepseek" | "doubao" | "qwen-code" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | "huggingface" | "cerebras" | "sambanova" | "zai" | "fireworks" | "featherless" | "io-intelligence" | "roo" | undefined;
15812
15822
  modelId?: string | undefined;
15823
+ hostname?: string | undefined;
15813
15824
  cloudIsAuthenticated?: boolean | undefined;
15814
15825
  diffStrategy?: string | undefined;
15815
15826
  todos?: {
@@ -15833,6 +15844,7 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
15833
15844
  taskId?: string | undefined;
15834
15845
  apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "claude-code" | "glama" | "openrouter" | "bedrock" | "vertex" | "vscode-lm" | "lmstudio" | "gemini-cli" | "openai-native" | "moonshot" | "deepseek" | "doubao" | "qwen-code" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | "huggingface" | "cerebras" | "sambanova" | "zai" | "fireworks" | "featherless" | "io-intelligence" | "roo" | undefined;
15835
15846
  modelId?: string | undefined;
15847
+ hostname?: string | undefined;
15836
15848
  cloudIsAuthenticated?: boolean | undefined;
15837
15849
  diffStrategy?: string | undefined;
15838
15850
  todos?: {
@@ -15859,6 +15871,7 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
15859
15871
  taskId?: string | undefined;
15860
15872
  apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "claude-code" | "glama" | "openrouter" | "bedrock" | "vertex" | "vscode-lm" | "lmstudio" | "gemini-cli" | "openai-native" | "moonshot" | "deepseek" | "doubao" | "qwen-code" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | "huggingface" | "cerebras" | "sambanova" | "zai" | "fireworks" | "featherless" | "io-intelligence" | "roo" | undefined;
15861
15873
  modelId?: string | undefined;
15874
+ hostname?: string | undefined;
15862
15875
  cloudIsAuthenticated?: boolean | undefined;
15863
15876
  diffStrategy?: string | undefined;
15864
15877
  todos?: {
@@ -15885,6 +15898,7 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
15885
15898
  taskId?: string | undefined;
15886
15899
  apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "claude-code" | "glama" | "openrouter" | "bedrock" | "vertex" | "vscode-lm" | "lmstudio" | "gemini-cli" | "openai-native" | "moonshot" | "deepseek" | "doubao" | "qwen-code" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | "huggingface" | "cerebras" | "sambanova" | "zai" | "fireworks" | "featherless" | "io-intelligence" | "roo" | undefined;
15887
15900
  modelId?: string | undefined;
15901
+ hostname?: string | undefined;
15888
15902
  cloudIsAuthenticated?: boolean | undefined;
15889
15903
  diffStrategy?: string | undefined;
15890
15904
  todos?: {
@@ -16059,6 +16073,7 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
16059
16073
  vscodeVersion: z.ZodString;
16060
16074
  platform: z.ZodString;
16061
16075
  editorName: z.ZodString;
16076
+ hostname: z.ZodOptional<z.ZodString>;
16062
16077
  }, "strip", z.ZodTypeAny, {
16063
16078
  message: {
16064
16079
  type: "ask" | "say";
@@ -16102,6 +16117,7 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
16102
16117
  isSubtask?: boolean | undefined;
16103
16118
  apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "claude-code" | "glama" | "openrouter" | "bedrock" | "vertex" | "vscode-lm" | "lmstudio" | "gemini-cli" | "openai-native" | "moonshot" | "deepseek" | "doubao" | "qwen-code" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | "huggingface" | "cerebras" | "sambanova" | "zai" | "fireworks" | "featherless" | "io-intelligence" | "roo" | undefined;
16104
16119
  modelId?: string | undefined;
16120
+ hostname?: string | undefined;
16105
16121
  cloudIsAuthenticated?: boolean | undefined;
16106
16122
  diffStrategy?: string | undefined;
16107
16123
  todos?: {
@@ -16156,6 +16172,7 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
16156
16172
  isSubtask?: boolean | undefined;
16157
16173
  apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "claude-code" | "glama" | "openrouter" | "bedrock" | "vertex" | "vscode-lm" | "lmstudio" | "gemini-cli" | "openai-native" | "moonshot" | "deepseek" | "doubao" | "qwen-code" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | "huggingface" | "cerebras" | "sambanova" | "zai" | "fireworks" | "featherless" | "io-intelligence" | "roo" | undefined;
16158
16174
  modelId?: string | undefined;
16175
+ hostname?: string | undefined;
16159
16176
  cloudIsAuthenticated?: boolean | undefined;
16160
16177
  diffStrategy?: string | undefined;
16161
16178
  todos?: {
@@ -16213,6 +16230,7 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
16213
16230
  isSubtask?: boolean | undefined;
16214
16231
  apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "claude-code" | "glama" | "openrouter" | "bedrock" | "vertex" | "vscode-lm" | "lmstudio" | "gemini-cli" | "openai-native" | "moonshot" | "deepseek" | "doubao" | "qwen-code" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | "huggingface" | "cerebras" | "sambanova" | "zai" | "fireworks" | "featherless" | "io-intelligence" | "roo" | undefined;
16215
16232
  modelId?: string | undefined;
16233
+ hostname?: string | undefined;
16216
16234
  cloudIsAuthenticated?: boolean | undefined;
16217
16235
  diffStrategy?: string | undefined;
16218
16236
  todos?: {
@@ -16270,6 +16288,7 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
16270
16288
  isSubtask?: boolean | undefined;
16271
16289
  apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "claude-code" | "glama" | "openrouter" | "bedrock" | "vertex" | "vscode-lm" | "lmstudio" | "gemini-cli" | "openai-native" | "moonshot" | "deepseek" | "doubao" | "qwen-code" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | "huggingface" | "cerebras" | "sambanova" | "zai" | "fireworks" | "featherless" | "io-intelligence" | "roo" | undefined;
16272
16290
  modelId?: string | undefined;
16291
+ hostname?: string | undefined;
16273
16292
  cloudIsAuthenticated?: boolean | undefined;
16274
16293
  diffStrategy?: string | undefined;
16275
16294
  todos?: {
@@ -16322,6 +16341,7 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
16322
16341
  vscodeVersion: z.ZodString;
16323
16342
  platform: z.ZodString;
16324
16343
  editorName: z.ZodString;
16344
+ hostname: z.ZodOptional<z.ZodString>;
16325
16345
  }, "strip", z.ZodTypeAny, {
16326
16346
  mode: string;
16327
16347
  appName: string;
@@ -16337,6 +16357,7 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
16337
16357
  taskId?: string | undefined;
16338
16358
  apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "claude-code" | "glama" | "openrouter" | "bedrock" | "vertex" | "vscode-lm" | "lmstudio" | "gemini-cli" | "openai-native" | "moonshot" | "deepseek" | "doubao" | "qwen-code" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | "huggingface" | "cerebras" | "sambanova" | "zai" | "fireworks" | "featherless" | "io-intelligence" | "roo" | undefined;
16339
16359
  modelId?: string | undefined;
16360
+ hostname?: string | undefined;
16340
16361
  cloudIsAuthenticated?: boolean | undefined;
16341
16362
  diffStrategy?: string | undefined;
16342
16363
  todos?: {
@@ -16365,6 +16386,7 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
16365
16386
  taskId?: string | undefined;
16366
16387
  apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "claude-code" | "glama" | "openrouter" | "bedrock" | "vertex" | "vscode-lm" | "lmstudio" | "gemini-cli" | "openai-native" | "moonshot" | "deepseek" | "doubao" | "qwen-code" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | "huggingface" | "cerebras" | "sambanova" | "zai" | "fireworks" | "featherless" | "io-intelligence" | "roo" | undefined;
16367
16388
  modelId?: string | undefined;
16389
+ hostname?: string | undefined;
16368
16390
  cloudIsAuthenticated?: boolean | undefined;
16369
16391
  diffStrategy?: string | undefined;
16370
16392
  todos?: {
@@ -16396,6 +16418,7 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
16396
16418
  taskId?: string | undefined;
16397
16419
  apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "claude-code" | "glama" | "openrouter" | "bedrock" | "vertex" | "vscode-lm" | "lmstudio" | "gemini-cli" | "openai-native" | "moonshot" | "deepseek" | "doubao" | "qwen-code" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | "huggingface" | "cerebras" | "sambanova" | "zai" | "fireworks" | "featherless" | "io-intelligence" | "roo" | undefined;
16398
16420
  modelId?: string | undefined;
16421
+ hostname?: string | undefined;
16399
16422
  cloudIsAuthenticated?: boolean | undefined;
16400
16423
  diffStrategy?: string | undefined;
16401
16424
  todos?: {
@@ -16427,6 +16450,7 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
16427
16450
  taskId?: string | undefined;
16428
16451
  apiProvider?: "openai" | "anthropic" | "ollama" | "gemini" | "mistral" | "vercel-ai-gateway" | "claude-code" | "glama" | "openrouter" | "bedrock" | "vertex" | "vscode-lm" | "lmstudio" | "gemini-cli" | "openai-native" | "moonshot" | "deepseek" | "doubao" | "qwen-code" | "unbound" | "requesty" | "human-relay" | "fake-ai" | "xai" | "groq" | "chutes" | "litellm" | "huggingface" | "cerebras" | "sambanova" | "zai" | "fireworks" | "featherless" | "io-intelligence" | "roo" | undefined;
16429
16452
  modelId?: string | undefined;
16453
+ hostname?: string | undefined;
16430
16454
  cloudIsAuthenticated?: boolean | undefined;
16431
16455
  diffStrategy?: string | undefined;
16432
16456
  todos?: {
@@ -16539,6 +16563,7 @@ type TaskProviderEvents = {
16539
16563
  [RooCodeEventName.TaskUnpaused]: [taskId: string];
16540
16564
  [RooCodeEventName.TaskSpawned]: [taskId: string];
16541
16565
  [RooCodeEventName.TaskUserMessage]: [taskId: string];
16566
+ [RooCodeEventName.TaskTokenUsageUpdated]: [taskId: string, tokenUsage: TokenUsage];
16542
16567
  [RooCodeEventName.ModeChanged]: [mode: string];
16543
16568
  [RooCodeEventName.ProviderProfileChanged]: [config: {
16544
16569
  name: string;
@@ -16583,6 +16608,7 @@ interface TaskLike {
16583
16608
  readonly taskStatus: TaskStatus;
16584
16609
  readonly taskAsk: ClineMessage | undefined;
16585
16610
  readonly queuedMessages: QueuedMessage[];
16611
+ readonly tokenUsage: TokenUsage | undefined;
16586
16612
  on<K extends keyof TaskEvents>(event: K, listener: (...args: TaskEvents[K]) => void | Promise<void>): this;
16587
16613
  off<K extends keyof TaskEvents>(event: K, listener: (...args: TaskEvents[K]) => void | Promise<void>): this;
16588
16614
  approveAsk(options?: {
@@ -18285,6 +18311,28 @@ declare const extensionTaskSchema: z.ZodObject<{
18285
18311
  }>, "many">>;
18286
18312
  parentTaskId: z.ZodOptional<z.ZodString>;
18287
18313
  childTaskId: z.ZodOptional<z.ZodString>;
18314
+ tokenUsage: z.ZodOptional<z.ZodObject<{
18315
+ totalTokensIn: z.ZodNumber;
18316
+ totalTokensOut: z.ZodNumber;
18317
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
18318
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
18319
+ totalCost: z.ZodNumber;
18320
+ contextTokens: z.ZodNumber;
18321
+ }, "strip", z.ZodTypeAny, {
18322
+ totalTokensIn: number;
18323
+ totalTokensOut: number;
18324
+ totalCost: number;
18325
+ contextTokens: number;
18326
+ totalCacheWrites?: number | undefined;
18327
+ totalCacheReads?: number | undefined;
18328
+ }, {
18329
+ totalTokensIn: number;
18330
+ totalTokensOut: number;
18331
+ totalCost: number;
18332
+ contextTokens: number;
18333
+ totalCacheWrites?: number | undefined;
18334
+ totalCacheReads?: number | undefined;
18335
+ }>>;
18288
18336
  }, "strip", z.ZodTypeAny, {
18289
18337
  taskId: string;
18290
18338
  taskStatus: TaskStatus;
@@ -18329,6 +18377,14 @@ declare const extensionTaskSchema: z.ZodObject<{
18329
18377
  images?: string[] | undefined;
18330
18378
  }[] | undefined;
18331
18379
  childTaskId?: string | undefined;
18380
+ tokenUsage?: {
18381
+ totalTokensIn: number;
18382
+ totalTokensOut: number;
18383
+ totalCost: number;
18384
+ contextTokens: number;
18385
+ totalCacheWrites?: number | undefined;
18386
+ totalCacheReads?: number | undefined;
18387
+ } | undefined;
18332
18388
  }, {
18333
18389
  taskId: string;
18334
18390
  taskStatus: TaskStatus;
@@ -18373,6 +18429,14 @@ declare const extensionTaskSchema: z.ZodObject<{
18373
18429
  images?: string[] | undefined;
18374
18430
  }[] | undefined;
18375
18431
  childTaskId?: string | undefined;
18432
+ tokenUsage?: {
18433
+ totalTokensIn: number;
18434
+ totalTokensOut: number;
18435
+ totalCost: number;
18436
+ contextTokens: number;
18437
+ totalCacheWrites?: number | undefined;
18438
+ totalCacheReads?: number | undefined;
18439
+ } | undefined;
18376
18440
  }>;
18377
18441
  type ExtensionTask = z.infer<typeof extensionTaskSchema>;
18378
18442
  /**
@@ -18388,18 +18452,21 @@ declare const extensionInstanceSchema: z.ZodObject<{
18388
18452
  vscodeVersion: z.ZodString;
18389
18453
  platform: z.ZodString;
18390
18454
  editorName: z.ZodString;
18455
+ hostname: z.ZodOptional<z.ZodString>;
18391
18456
  }, "strip", z.ZodTypeAny, {
18392
18457
  appName: string;
18393
18458
  appVersion: string;
18394
18459
  vscodeVersion: string;
18395
18460
  platform: string;
18396
18461
  editorName: string;
18462
+ hostname?: string | undefined;
18397
18463
  }, {
18398
18464
  appName: string;
18399
18465
  appVersion: string;
18400
18466
  vscodeVersion: string;
18401
18467
  platform: string;
18402
18468
  editorName: string;
18469
+ hostname?: string | undefined;
18403
18470
  }>;
18404
18471
  gitProperties: z.ZodOptional<z.ZodObject<{
18405
18472
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -18565,6 +18632,28 @@ declare const extensionInstanceSchema: z.ZodObject<{
18565
18632
  }>, "many">>;
18566
18633
  parentTaskId: z.ZodOptional<z.ZodString>;
18567
18634
  childTaskId: z.ZodOptional<z.ZodString>;
18635
+ tokenUsage: z.ZodOptional<z.ZodObject<{
18636
+ totalTokensIn: z.ZodNumber;
18637
+ totalTokensOut: z.ZodNumber;
18638
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
18639
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
18640
+ totalCost: z.ZodNumber;
18641
+ contextTokens: z.ZodNumber;
18642
+ }, "strip", z.ZodTypeAny, {
18643
+ totalTokensIn: number;
18644
+ totalTokensOut: number;
18645
+ totalCost: number;
18646
+ contextTokens: number;
18647
+ totalCacheWrites?: number | undefined;
18648
+ totalCacheReads?: number | undefined;
18649
+ }, {
18650
+ totalTokensIn: number;
18651
+ totalTokensOut: number;
18652
+ totalCost: number;
18653
+ contextTokens: number;
18654
+ totalCacheWrites?: number | undefined;
18655
+ totalCacheReads?: number | undefined;
18656
+ }>>;
18568
18657
  }, "strip", z.ZodTypeAny, {
18569
18658
  taskId: string;
18570
18659
  taskStatus: TaskStatus;
@@ -18609,6 +18698,14 @@ declare const extensionInstanceSchema: z.ZodObject<{
18609
18698
  images?: string[] | undefined;
18610
18699
  }[] | undefined;
18611
18700
  childTaskId?: string | undefined;
18701
+ tokenUsage?: {
18702
+ totalTokensIn: number;
18703
+ totalTokensOut: number;
18704
+ totalCost: number;
18705
+ contextTokens: number;
18706
+ totalCacheWrites?: number | undefined;
18707
+ totalCacheReads?: number | undefined;
18708
+ } | undefined;
18612
18709
  }, {
18613
18710
  taskId: string;
18614
18711
  taskStatus: TaskStatus;
@@ -18653,6 +18750,14 @@ declare const extensionInstanceSchema: z.ZodObject<{
18653
18750
  images?: string[] | undefined;
18654
18751
  }[] | undefined;
18655
18752
  childTaskId?: string | undefined;
18753
+ tokenUsage?: {
18754
+ totalTokensIn: number;
18755
+ totalTokensOut: number;
18756
+ totalCost: number;
18757
+ contextTokens: number;
18758
+ totalCacheWrites?: number | undefined;
18759
+ totalCacheReads?: number | undefined;
18760
+ } | undefined;
18656
18761
  }>;
18657
18762
  taskAsk: z.ZodOptional<z.ZodObject<{
18658
18763
  ts: z.ZodNumber;
@@ -18849,6 +18954,14 @@ declare const extensionInstanceSchema: z.ZodObject<{
18849
18954
  images?: string[] | undefined;
18850
18955
  }[] | undefined;
18851
18956
  childTaskId?: string | undefined;
18957
+ tokenUsage?: {
18958
+ totalTokensIn: number;
18959
+ totalTokensOut: number;
18960
+ totalCost: number;
18961
+ contextTokens: number;
18962
+ totalCacheWrites?: number | undefined;
18963
+ totalCacheReads?: number | undefined;
18964
+ } | undefined;
18852
18965
  };
18853
18966
  taskHistory: string[];
18854
18967
  instanceId: string;
@@ -18860,6 +18973,7 @@ declare const extensionInstanceSchema: z.ZodObject<{
18860
18973
  vscodeVersion: string;
18861
18974
  platform: string;
18862
18975
  editorName: string;
18976
+ hostname?: string | undefined;
18863
18977
  };
18864
18978
  lastHeartbeat: number;
18865
18979
  modes?: {
@@ -18953,6 +19067,14 @@ declare const extensionInstanceSchema: z.ZodObject<{
18953
19067
  images?: string[] | undefined;
18954
19068
  }[] | undefined;
18955
19069
  childTaskId?: string | undefined;
19070
+ tokenUsage?: {
19071
+ totalTokensIn: number;
19072
+ totalTokensOut: number;
19073
+ totalCost: number;
19074
+ contextTokens: number;
19075
+ totalCacheWrites?: number | undefined;
19076
+ totalCacheReads?: number | undefined;
19077
+ } | undefined;
18956
19078
  };
18957
19079
  taskHistory: string[];
18958
19080
  instanceId: string;
@@ -18964,6 +19086,7 @@ declare const extensionInstanceSchema: z.ZodObject<{
18964
19086
  vscodeVersion: string;
18965
19087
  platform: string;
18966
19088
  editorName: string;
19089
+ hostname?: string | undefined;
18967
19090
  };
18968
19091
  lastHeartbeat: number;
18969
19092
  modes?: {
@@ -19032,6 +19155,7 @@ declare enum ExtensionBridgeEventName {
19032
19155
  TaskUnpaused = "taskUnpaused",
19033
19156
  TaskSpawned = "taskSpawned",
19034
19157
  TaskUserMessage = "taskUserMessage",
19158
+ TaskTokenUsageUpdated = "taskTokenUsageUpdated",
19035
19159
  ModeChanged = "modeChanged",
19036
19160
  ProviderProfileChanged = "providerProfileChanged",
19037
19161
  InstanceRegistered = "instance_registered",
@@ -19050,18 +19174,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
19050
19174
  vscodeVersion: z.ZodString;
19051
19175
  platform: z.ZodString;
19052
19176
  editorName: z.ZodString;
19177
+ hostname: z.ZodOptional<z.ZodString>;
19053
19178
  }, "strip", z.ZodTypeAny, {
19054
19179
  appName: string;
19055
19180
  appVersion: string;
19056
19181
  vscodeVersion: string;
19057
19182
  platform: string;
19058
19183
  editorName: string;
19184
+ hostname?: string | undefined;
19059
19185
  }, {
19060
19186
  appName: string;
19061
19187
  appVersion: string;
19062
19188
  vscodeVersion: string;
19063
19189
  platform: string;
19064
19190
  editorName: string;
19191
+ hostname?: string | undefined;
19065
19192
  }>;
19066
19193
  gitProperties: z.ZodOptional<z.ZodObject<{
19067
19194
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -19227,6 +19354,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
19227
19354
  }>, "many">>;
19228
19355
  parentTaskId: z.ZodOptional<z.ZodString>;
19229
19356
  childTaskId: z.ZodOptional<z.ZodString>;
19357
+ tokenUsage: z.ZodOptional<z.ZodObject<{
19358
+ totalTokensIn: z.ZodNumber;
19359
+ totalTokensOut: z.ZodNumber;
19360
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
19361
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
19362
+ totalCost: z.ZodNumber;
19363
+ contextTokens: z.ZodNumber;
19364
+ }, "strip", z.ZodTypeAny, {
19365
+ totalTokensIn: number;
19366
+ totalTokensOut: number;
19367
+ totalCost: number;
19368
+ contextTokens: number;
19369
+ totalCacheWrites?: number | undefined;
19370
+ totalCacheReads?: number | undefined;
19371
+ }, {
19372
+ totalTokensIn: number;
19373
+ totalTokensOut: number;
19374
+ totalCost: number;
19375
+ contextTokens: number;
19376
+ totalCacheWrites?: number | undefined;
19377
+ totalCacheReads?: number | undefined;
19378
+ }>>;
19230
19379
  }, "strip", z.ZodTypeAny, {
19231
19380
  taskId: string;
19232
19381
  taskStatus: TaskStatus;
@@ -19271,6 +19420,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
19271
19420
  images?: string[] | undefined;
19272
19421
  }[] | undefined;
19273
19422
  childTaskId?: string | undefined;
19423
+ tokenUsage?: {
19424
+ totalTokensIn: number;
19425
+ totalTokensOut: number;
19426
+ totalCost: number;
19427
+ contextTokens: number;
19428
+ totalCacheWrites?: number | undefined;
19429
+ totalCacheReads?: number | undefined;
19430
+ } | undefined;
19274
19431
  }, {
19275
19432
  taskId: string;
19276
19433
  taskStatus: TaskStatus;
@@ -19315,6 +19472,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
19315
19472
  images?: string[] | undefined;
19316
19473
  }[] | undefined;
19317
19474
  childTaskId?: string | undefined;
19475
+ tokenUsage?: {
19476
+ totalTokensIn: number;
19477
+ totalTokensOut: number;
19478
+ totalCost: number;
19479
+ contextTokens: number;
19480
+ totalCacheWrites?: number | undefined;
19481
+ totalCacheReads?: number | undefined;
19482
+ } | undefined;
19318
19483
  }>;
19319
19484
  taskAsk: z.ZodOptional<z.ZodObject<{
19320
19485
  ts: z.ZodNumber;
@@ -19511,6 +19676,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
19511
19676
  images?: string[] | undefined;
19512
19677
  }[] | undefined;
19513
19678
  childTaskId?: string | undefined;
19679
+ tokenUsage?: {
19680
+ totalTokensIn: number;
19681
+ totalTokensOut: number;
19682
+ totalCost: number;
19683
+ contextTokens: number;
19684
+ totalCacheWrites?: number | undefined;
19685
+ totalCacheReads?: number | undefined;
19686
+ } | undefined;
19514
19687
  };
19515
19688
  taskHistory: string[];
19516
19689
  instanceId: string;
@@ -19522,6 +19695,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
19522
19695
  vscodeVersion: string;
19523
19696
  platform: string;
19524
19697
  editorName: string;
19698
+ hostname?: string | undefined;
19525
19699
  };
19526
19700
  lastHeartbeat: number;
19527
19701
  modes?: {
@@ -19615,6 +19789,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
19615
19789
  images?: string[] | undefined;
19616
19790
  }[] | undefined;
19617
19791
  childTaskId?: string | undefined;
19792
+ tokenUsage?: {
19793
+ totalTokensIn: number;
19794
+ totalTokensOut: number;
19795
+ totalCost: number;
19796
+ contextTokens: number;
19797
+ totalCacheWrites?: number | undefined;
19798
+ totalCacheReads?: number | undefined;
19799
+ } | undefined;
19618
19800
  };
19619
19801
  taskHistory: string[];
19620
19802
  instanceId: string;
@@ -19626,6 +19808,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
19626
19808
  vscodeVersion: string;
19627
19809
  platform: string;
19628
19810
  editorName: string;
19811
+ hostname?: string | undefined;
19629
19812
  };
19630
19813
  lastHeartbeat: number;
19631
19814
  modes?: {
@@ -19724,6 +19907,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
19724
19907
  images?: string[] | undefined;
19725
19908
  }[] | undefined;
19726
19909
  childTaskId?: string | undefined;
19910
+ tokenUsage?: {
19911
+ totalTokensIn: number;
19912
+ totalTokensOut: number;
19913
+ totalCost: number;
19914
+ contextTokens: number;
19915
+ totalCacheWrites?: number | undefined;
19916
+ totalCacheReads?: number | undefined;
19917
+ } | undefined;
19727
19918
  };
19728
19919
  taskHistory: string[];
19729
19920
  instanceId: string;
@@ -19735,6 +19926,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
19735
19926
  vscodeVersion: string;
19736
19927
  platform: string;
19737
19928
  editorName: string;
19929
+ hostname?: string | undefined;
19738
19930
  };
19739
19931
  lastHeartbeat: number;
19740
19932
  modes?: {
@@ -19832,6 +20024,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
19832
20024
  images?: string[] | undefined;
19833
20025
  }[] | undefined;
19834
20026
  childTaskId?: string | undefined;
20027
+ tokenUsage?: {
20028
+ totalTokensIn: number;
20029
+ totalTokensOut: number;
20030
+ totalCost: number;
20031
+ contextTokens: number;
20032
+ totalCacheWrites?: number | undefined;
20033
+ totalCacheReads?: number | undefined;
20034
+ } | undefined;
19835
20035
  };
19836
20036
  taskHistory: string[];
19837
20037
  instanceId: string;
@@ -19843,6 +20043,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
19843
20043
  vscodeVersion: string;
19844
20044
  platform: string;
19845
20045
  editorName: string;
20046
+ hostname?: string | undefined;
19846
20047
  };
19847
20048
  lastHeartbeat: number;
19848
20049
  modes?: {
@@ -19904,18 +20105,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
19904
20105
  vscodeVersion: z.ZodString;
19905
20106
  platform: z.ZodString;
19906
20107
  editorName: z.ZodString;
20108
+ hostname: z.ZodOptional<z.ZodString>;
19907
20109
  }, "strip", z.ZodTypeAny, {
19908
20110
  appName: string;
19909
20111
  appVersion: string;
19910
20112
  vscodeVersion: string;
19911
20113
  platform: string;
19912
20114
  editorName: string;
20115
+ hostname?: string | undefined;
19913
20116
  }, {
19914
20117
  appName: string;
19915
20118
  appVersion: string;
19916
20119
  vscodeVersion: string;
19917
20120
  platform: string;
19918
20121
  editorName: string;
20122
+ hostname?: string | undefined;
19919
20123
  }>;
19920
20124
  gitProperties: z.ZodOptional<z.ZodObject<{
19921
20125
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -20081,6 +20285,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
20081
20285
  }>, "many">>;
20082
20286
  parentTaskId: z.ZodOptional<z.ZodString>;
20083
20287
  childTaskId: z.ZodOptional<z.ZodString>;
20288
+ tokenUsage: z.ZodOptional<z.ZodObject<{
20289
+ totalTokensIn: z.ZodNumber;
20290
+ totalTokensOut: z.ZodNumber;
20291
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
20292
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
20293
+ totalCost: z.ZodNumber;
20294
+ contextTokens: z.ZodNumber;
20295
+ }, "strip", z.ZodTypeAny, {
20296
+ totalTokensIn: number;
20297
+ totalTokensOut: number;
20298
+ totalCost: number;
20299
+ contextTokens: number;
20300
+ totalCacheWrites?: number | undefined;
20301
+ totalCacheReads?: number | undefined;
20302
+ }, {
20303
+ totalTokensIn: number;
20304
+ totalTokensOut: number;
20305
+ totalCost: number;
20306
+ contextTokens: number;
20307
+ totalCacheWrites?: number | undefined;
20308
+ totalCacheReads?: number | undefined;
20309
+ }>>;
20084
20310
  }, "strip", z.ZodTypeAny, {
20085
20311
  taskId: string;
20086
20312
  taskStatus: TaskStatus;
@@ -20125,6 +20351,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
20125
20351
  images?: string[] | undefined;
20126
20352
  }[] | undefined;
20127
20353
  childTaskId?: string | undefined;
20354
+ tokenUsage?: {
20355
+ totalTokensIn: number;
20356
+ totalTokensOut: number;
20357
+ totalCost: number;
20358
+ contextTokens: number;
20359
+ totalCacheWrites?: number | undefined;
20360
+ totalCacheReads?: number | undefined;
20361
+ } | undefined;
20128
20362
  }, {
20129
20363
  taskId: string;
20130
20364
  taskStatus: TaskStatus;
@@ -20169,6 +20403,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
20169
20403
  images?: string[] | undefined;
20170
20404
  }[] | undefined;
20171
20405
  childTaskId?: string | undefined;
20406
+ tokenUsage?: {
20407
+ totalTokensIn: number;
20408
+ totalTokensOut: number;
20409
+ totalCost: number;
20410
+ contextTokens: number;
20411
+ totalCacheWrites?: number | undefined;
20412
+ totalCacheReads?: number | undefined;
20413
+ } | undefined;
20172
20414
  }>;
20173
20415
  taskAsk: z.ZodOptional<z.ZodObject<{
20174
20416
  ts: z.ZodNumber;
@@ -20365,6 +20607,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
20365
20607
  images?: string[] | undefined;
20366
20608
  }[] | undefined;
20367
20609
  childTaskId?: string | undefined;
20610
+ tokenUsage?: {
20611
+ totalTokensIn: number;
20612
+ totalTokensOut: number;
20613
+ totalCost: number;
20614
+ contextTokens: number;
20615
+ totalCacheWrites?: number | undefined;
20616
+ totalCacheReads?: number | undefined;
20617
+ } | undefined;
20368
20618
  };
20369
20619
  taskHistory: string[];
20370
20620
  instanceId: string;
@@ -20376,6 +20626,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
20376
20626
  vscodeVersion: string;
20377
20627
  platform: string;
20378
20628
  editorName: string;
20629
+ hostname?: string | undefined;
20379
20630
  };
20380
20631
  lastHeartbeat: number;
20381
20632
  modes?: {
@@ -20469,6 +20720,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
20469
20720
  images?: string[] | undefined;
20470
20721
  }[] | undefined;
20471
20722
  childTaskId?: string | undefined;
20723
+ tokenUsage?: {
20724
+ totalTokensIn: number;
20725
+ totalTokensOut: number;
20726
+ totalCost: number;
20727
+ contextTokens: number;
20728
+ totalCacheWrites?: number | undefined;
20729
+ totalCacheReads?: number | undefined;
20730
+ } | undefined;
20472
20731
  };
20473
20732
  taskHistory: string[];
20474
20733
  instanceId: string;
@@ -20480,6 +20739,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
20480
20739
  vscodeVersion: string;
20481
20740
  platform: string;
20482
20741
  editorName: string;
20742
+ hostname?: string | undefined;
20483
20743
  };
20484
20744
  lastHeartbeat: number;
20485
20745
  modes?: {
@@ -20578,6 +20838,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
20578
20838
  images?: string[] | undefined;
20579
20839
  }[] | undefined;
20580
20840
  childTaskId?: string | undefined;
20841
+ tokenUsage?: {
20842
+ totalTokensIn: number;
20843
+ totalTokensOut: number;
20844
+ totalCost: number;
20845
+ contextTokens: number;
20846
+ totalCacheWrites?: number | undefined;
20847
+ totalCacheReads?: number | undefined;
20848
+ } | undefined;
20581
20849
  };
20582
20850
  taskHistory: string[];
20583
20851
  instanceId: string;
@@ -20589,6 +20857,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
20589
20857
  vscodeVersion: string;
20590
20858
  platform: string;
20591
20859
  editorName: string;
20860
+ hostname?: string | undefined;
20592
20861
  };
20593
20862
  lastHeartbeat: number;
20594
20863
  modes?: {
@@ -20686,6 +20955,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
20686
20955
  images?: string[] | undefined;
20687
20956
  }[] | undefined;
20688
20957
  childTaskId?: string | undefined;
20958
+ tokenUsage?: {
20959
+ totalTokensIn: number;
20960
+ totalTokensOut: number;
20961
+ totalCost: number;
20962
+ contextTokens: number;
20963
+ totalCacheWrites?: number | undefined;
20964
+ totalCacheReads?: number | undefined;
20965
+ } | undefined;
20689
20966
  };
20690
20967
  taskHistory: string[];
20691
20968
  instanceId: string;
@@ -20697,6 +20974,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
20697
20974
  vscodeVersion: string;
20698
20975
  platform: string;
20699
20976
  editorName: string;
20977
+ hostname?: string | undefined;
20700
20978
  };
20701
20979
  lastHeartbeat: number;
20702
20980
  modes?: {
@@ -20758,18 +21036,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
20758
21036
  vscodeVersion: z.ZodString;
20759
21037
  platform: z.ZodString;
20760
21038
  editorName: z.ZodString;
21039
+ hostname: z.ZodOptional<z.ZodString>;
20761
21040
  }, "strip", z.ZodTypeAny, {
20762
21041
  appName: string;
20763
21042
  appVersion: string;
20764
21043
  vscodeVersion: string;
20765
21044
  platform: string;
20766
21045
  editorName: string;
21046
+ hostname?: string | undefined;
20767
21047
  }, {
20768
21048
  appName: string;
20769
21049
  appVersion: string;
20770
21050
  vscodeVersion: string;
20771
21051
  platform: string;
20772
21052
  editorName: string;
21053
+ hostname?: string | undefined;
20773
21054
  }>;
20774
21055
  gitProperties: z.ZodOptional<z.ZodObject<{
20775
21056
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -20935,6 +21216,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
20935
21216
  }>, "many">>;
20936
21217
  parentTaskId: z.ZodOptional<z.ZodString>;
20937
21218
  childTaskId: z.ZodOptional<z.ZodString>;
21219
+ tokenUsage: z.ZodOptional<z.ZodObject<{
21220
+ totalTokensIn: z.ZodNumber;
21221
+ totalTokensOut: z.ZodNumber;
21222
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
21223
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
21224
+ totalCost: z.ZodNumber;
21225
+ contextTokens: z.ZodNumber;
21226
+ }, "strip", z.ZodTypeAny, {
21227
+ totalTokensIn: number;
21228
+ totalTokensOut: number;
21229
+ totalCost: number;
21230
+ contextTokens: number;
21231
+ totalCacheWrites?: number | undefined;
21232
+ totalCacheReads?: number | undefined;
21233
+ }, {
21234
+ totalTokensIn: number;
21235
+ totalTokensOut: number;
21236
+ totalCost: number;
21237
+ contextTokens: number;
21238
+ totalCacheWrites?: number | undefined;
21239
+ totalCacheReads?: number | undefined;
21240
+ }>>;
20938
21241
  }, "strip", z.ZodTypeAny, {
20939
21242
  taskId: string;
20940
21243
  taskStatus: TaskStatus;
@@ -20979,6 +21282,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
20979
21282
  images?: string[] | undefined;
20980
21283
  }[] | undefined;
20981
21284
  childTaskId?: string | undefined;
21285
+ tokenUsage?: {
21286
+ totalTokensIn: number;
21287
+ totalTokensOut: number;
21288
+ totalCost: number;
21289
+ contextTokens: number;
21290
+ totalCacheWrites?: number | undefined;
21291
+ totalCacheReads?: number | undefined;
21292
+ } | undefined;
20982
21293
  }, {
20983
21294
  taskId: string;
20984
21295
  taskStatus: TaskStatus;
@@ -21023,6 +21334,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
21023
21334
  images?: string[] | undefined;
21024
21335
  }[] | undefined;
21025
21336
  childTaskId?: string | undefined;
21337
+ tokenUsage?: {
21338
+ totalTokensIn: number;
21339
+ totalTokensOut: number;
21340
+ totalCost: number;
21341
+ contextTokens: number;
21342
+ totalCacheWrites?: number | undefined;
21343
+ totalCacheReads?: number | undefined;
21344
+ } | undefined;
21026
21345
  }>;
21027
21346
  taskAsk: z.ZodOptional<z.ZodObject<{
21028
21347
  ts: z.ZodNumber;
@@ -21219,6 +21538,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
21219
21538
  images?: string[] | undefined;
21220
21539
  }[] | undefined;
21221
21540
  childTaskId?: string | undefined;
21541
+ tokenUsage?: {
21542
+ totalTokensIn: number;
21543
+ totalTokensOut: number;
21544
+ totalCost: number;
21545
+ contextTokens: number;
21546
+ totalCacheWrites?: number | undefined;
21547
+ totalCacheReads?: number | undefined;
21548
+ } | undefined;
21222
21549
  };
21223
21550
  taskHistory: string[];
21224
21551
  instanceId: string;
@@ -21230,6 +21557,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
21230
21557
  vscodeVersion: string;
21231
21558
  platform: string;
21232
21559
  editorName: string;
21560
+ hostname?: string | undefined;
21233
21561
  };
21234
21562
  lastHeartbeat: number;
21235
21563
  modes?: {
@@ -21323,6 +21651,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
21323
21651
  images?: string[] | undefined;
21324
21652
  }[] | undefined;
21325
21653
  childTaskId?: string | undefined;
21654
+ tokenUsage?: {
21655
+ totalTokensIn: number;
21656
+ totalTokensOut: number;
21657
+ totalCost: number;
21658
+ contextTokens: number;
21659
+ totalCacheWrites?: number | undefined;
21660
+ totalCacheReads?: number | undefined;
21661
+ } | undefined;
21326
21662
  };
21327
21663
  taskHistory: string[];
21328
21664
  instanceId: string;
@@ -21334,6 +21670,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
21334
21670
  vscodeVersion: string;
21335
21671
  platform: string;
21336
21672
  editorName: string;
21673
+ hostname?: string | undefined;
21337
21674
  };
21338
21675
  lastHeartbeat: number;
21339
21676
  modes?: {
@@ -21432,6 +21769,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
21432
21769
  images?: string[] | undefined;
21433
21770
  }[] | undefined;
21434
21771
  childTaskId?: string | undefined;
21772
+ tokenUsage?: {
21773
+ totalTokensIn: number;
21774
+ totalTokensOut: number;
21775
+ totalCost: number;
21776
+ contextTokens: number;
21777
+ totalCacheWrites?: number | undefined;
21778
+ totalCacheReads?: number | undefined;
21779
+ } | undefined;
21435
21780
  };
21436
21781
  taskHistory: string[];
21437
21782
  instanceId: string;
@@ -21443,6 +21788,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
21443
21788
  vscodeVersion: string;
21444
21789
  platform: string;
21445
21790
  editorName: string;
21791
+ hostname?: string | undefined;
21446
21792
  };
21447
21793
  lastHeartbeat: number;
21448
21794
  modes?: {
@@ -21540,6 +21886,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
21540
21886
  images?: string[] | undefined;
21541
21887
  }[] | undefined;
21542
21888
  childTaskId?: string | undefined;
21889
+ tokenUsage?: {
21890
+ totalTokensIn: number;
21891
+ totalTokensOut: number;
21892
+ totalCost: number;
21893
+ contextTokens: number;
21894
+ totalCacheWrites?: number | undefined;
21895
+ totalCacheReads?: number | undefined;
21896
+ } | undefined;
21543
21897
  };
21544
21898
  taskHistory: string[];
21545
21899
  instanceId: string;
@@ -21551,6 +21905,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
21551
21905
  vscodeVersion: string;
21552
21906
  platform: string;
21553
21907
  editorName: string;
21908
+ hostname?: string | undefined;
21554
21909
  };
21555
21910
  lastHeartbeat: number;
21556
21911
  modes?: {
@@ -21612,18 +21967,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
21612
21967
  vscodeVersion: z.ZodString;
21613
21968
  platform: z.ZodString;
21614
21969
  editorName: z.ZodString;
21970
+ hostname: z.ZodOptional<z.ZodString>;
21615
21971
  }, "strip", z.ZodTypeAny, {
21616
21972
  appName: string;
21617
21973
  appVersion: string;
21618
21974
  vscodeVersion: string;
21619
21975
  platform: string;
21620
21976
  editorName: string;
21977
+ hostname?: string | undefined;
21621
21978
  }, {
21622
21979
  appName: string;
21623
21980
  appVersion: string;
21624
21981
  vscodeVersion: string;
21625
21982
  platform: string;
21626
21983
  editorName: string;
21984
+ hostname?: string | undefined;
21627
21985
  }>;
21628
21986
  gitProperties: z.ZodOptional<z.ZodObject<{
21629
21987
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -21789,6 +22147,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
21789
22147
  }>, "many">>;
21790
22148
  parentTaskId: z.ZodOptional<z.ZodString>;
21791
22149
  childTaskId: z.ZodOptional<z.ZodString>;
22150
+ tokenUsage: z.ZodOptional<z.ZodObject<{
22151
+ totalTokensIn: z.ZodNumber;
22152
+ totalTokensOut: z.ZodNumber;
22153
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
22154
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
22155
+ totalCost: z.ZodNumber;
22156
+ contextTokens: z.ZodNumber;
22157
+ }, "strip", z.ZodTypeAny, {
22158
+ totalTokensIn: number;
22159
+ totalTokensOut: number;
22160
+ totalCost: number;
22161
+ contextTokens: number;
22162
+ totalCacheWrites?: number | undefined;
22163
+ totalCacheReads?: number | undefined;
22164
+ }, {
22165
+ totalTokensIn: number;
22166
+ totalTokensOut: number;
22167
+ totalCost: number;
22168
+ contextTokens: number;
22169
+ totalCacheWrites?: number | undefined;
22170
+ totalCacheReads?: number | undefined;
22171
+ }>>;
21792
22172
  }, "strip", z.ZodTypeAny, {
21793
22173
  taskId: string;
21794
22174
  taskStatus: TaskStatus;
@@ -21833,6 +22213,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
21833
22213
  images?: string[] | undefined;
21834
22214
  }[] | undefined;
21835
22215
  childTaskId?: string | undefined;
22216
+ tokenUsage?: {
22217
+ totalTokensIn: number;
22218
+ totalTokensOut: number;
22219
+ totalCost: number;
22220
+ contextTokens: number;
22221
+ totalCacheWrites?: number | undefined;
22222
+ totalCacheReads?: number | undefined;
22223
+ } | undefined;
21836
22224
  }, {
21837
22225
  taskId: string;
21838
22226
  taskStatus: TaskStatus;
@@ -21877,6 +22265,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
21877
22265
  images?: string[] | undefined;
21878
22266
  }[] | undefined;
21879
22267
  childTaskId?: string | undefined;
22268
+ tokenUsage?: {
22269
+ totalTokensIn: number;
22270
+ totalTokensOut: number;
22271
+ totalCost: number;
22272
+ contextTokens: number;
22273
+ totalCacheWrites?: number | undefined;
22274
+ totalCacheReads?: number | undefined;
22275
+ } | undefined;
21880
22276
  }>;
21881
22277
  taskAsk: z.ZodOptional<z.ZodObject<{
21882
22278
  ts: z.ZodNumber;
@@ -22073,6 +22469,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
22073
22469
  images?: string[] | undefined;
22074
22470
  }[] | undefined;
22075
22471
  childTaskId?: string | undefined;
22472
+ tokenUsage?: {
22473
+ totalTokensIn: number;
22474
+ totalTokensOut: number;
22475
+ totalCost: number;
22476
+ contextTokens: number;
22477
+ totalCacheWrites?: number | undefined;
22478
+ totalCacheReads?: number | undefined;
22479
+ } | undefined;
22076
22480
  };
22077
22481
  taskHistory: string[];
22078
22482
  instanceId: string;
@@ -22084,6 +22488,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
22084
22488
  vscodeVersion: string;
22085
22489
  platform: string;
22086
22490
  editorName: string;
22491
+ hostname?: string | undefined;
22087
22492
  };
22088
22493
  lastHeartbeat: number;
22089
22494
  modes?: {
@@ -22177,6 +22582,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
22177
22582
  images?: string[] | undefined;
22178
22583
  }[] | undefined;
22179
22584
  childTaskId?: string | undefined;
22585
+ tokenUsage?: {
22586
+ totalTokensIn: number;
22587
+ totalTokensOut: number;
22588
+ totalCost: number;
22589
+ contextTokens: number;
22590
+ totalCacheWrites?: number | undefined;
22591
+ totalCacheReads?: number | undefined;
22592
+ } | undefined;
22180
22593
  };
22181
22594
  taskHistory: string[];
22182
22595
  instanceId: string;
@@ -22188,6 +22601,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
22188
22601
  vscodeVersion: string;
22189
22602
  platform: string;
22190
22603
  editorName: string;
22604
+ hostname?: string | undefined;
22191
22605
  };
22192
22606
  lastHeartbeat: number;
22193
22607
  modes?: {
@@ -22286,6 +22700,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
22286
22700
  images?: string[] | undefined;
22287
22701
  }[] | undefined;
22288
22702
  childTaskId?: string | undefined;
22703
+ tokenUsage?: {
22704
+ totalTokensIn: number;
22705
+ totalTokensOut: number;
22706
+ totalCost: number;
22707
+ contextTokens: number;
22708
+ totalCacheWrites?: number | undefined;
22709
+ totalCacheReads?: number | undefined;
22710
+ } | undefined;
22289
22711
  };
22290
22712
  taskHistory: string[];
22291
22713
  instanceId: string;
@@ -22297,6 +22719,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
22297
22719
  vscodeVersion: string;
22298
22720
  platform: string;
22299
22721
  editorName: string;
22722
+ hostname?: string | undefined;
22300
22723
  };
22301
22724
  lastHeartbeat: number;
22302
22725
  modes?: {
@@ -22394,6 +22817,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
22394
22817
  images?: string[] | undefined;
22395
22818
  }[] | undefined;
22396
22819
  childTaskId?: string | undefined;
22820
+ tokenUsage?: {
22821
+ totalTokensIn: number;
22822
+ totalTokensOut: number;
22823
+ totalCost: number;
22824
+ contextTokens: number;
22825
+ totalCacheWrites?: number | undefined;
22826
+ totalCacheReads?: number | undefined;
22827
+ } | undefined;
22397
22828
  };
22398
22829
  taskHistory: string[];
22399
22830
  instanceId: string;
@@ -22405,6 +22836,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
22405
22836
  vscodeVersion: string;
22406
22837
  platform: string;
22407
22838
  editorName: string;
22839
+ hostname?: string | undefined;
22408
22840
  };
22409
22841
  lastHeartbeat: number;
22410
22842
  modes?: {
@@ -22466,18 +22898,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
22466
22898
  vscodeVersion: z.ZodString;
22467
22899
  platform: z.ZodString;
22468
22900
  editorName: z.ZodString;
22901
+ hostname: z.ZodOptional<z.ZodString>;
22469
22902
  }, "strip", z.ZodTypeAny, {
22470
22903
  appName: string;
22471
22904
  appVersion: string;
22472
22905
  vscodeVersion: string;
22473
22906
  platform: string;
22474
22907
  editorName: string;
22908
+ hostname?: string | undefined;
22475
22909
  }, {
22476
22910
  appName: string;
22477
22911
  appVersion: string;
22478
22912
  vscodeVersion: string;
22479
22913
  platform: string;
22480
22914
  editorName: string;
22915
+ hostname?: string | undefined;
22481
22916
  }>;
22482
22917
  gitProperties: z.ZodOptional<z.ZodObject<{
22483
22918
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -22643,6 +23078,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
22643
23078
  }>, "many">>;
22644
23079
  parentTaskId: z.ZodOptional<z.ZodString>;
22645
23080
  childTaskId: z.ZodOptional<z.ZodString>;
23081
+ tokenUsage: z.ZodOptional<z.ZodObject<{
23082
+ totalTokensIn: z.ZodNumber;
23083
+ totalTokensOut: z.ZodNumber;
23084
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
23085
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
23086
+ totalCost: z.ZodNumber;
23087
+ contextTokens: z.ZodNumber;
23088
+ }, "strip", z.ZodTypeAny, {
23089
+ totalTokensIn: number;
23090
+ totalTokensOut: number;
23091
+ totalCost: number;
23092
+ contextTokens: number;
23093
+ totalCacheWrites?: number | undefined;
23094
+ totalCacheReads?: number | undefined;
23095
+ }, {
23096
+ totalTokensIn: number;
23097
+ totalTokensOut: number;
23098
+ totalCost: number;
23099
+ contextTokens: number;
23100
+ totalCacheWrites?: number | undefined;
23101
+ totalCacheReads?: number | undefined;
23102
+ }>>;
22646
23103
  }, "strip", z.ZodTypeAny, {
22647
23104
  taskId: string;
22648
23105
  taskStatus: TaskStatus;
@@ -22687,6 +23144,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
22687
23144
  images?: string[] | undefined;
22688
23145
  }[] | undefined;
22689
23146
  childTaskId?: string | undefined;
23147
+ tokenUsage?: {
23148
+ totalTokensIn: number;
23149
+ totalTokensOut: number;
23150
+ totalCost: number;
23151
+ contextTokens: number;
23152
+ totalCacheWrites?: number | undefined;
23153
+ totalCacheReads?: number | undefined;
23154
+ } | undefined;
22690
23155
  }, {
22691
23156
  taskId: string;
22692
23157
  taskStatus: TaskStatus;
@@ -22731,6 +23196,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
22731
23196
  images?: string[] | undefined;
22732
23197
  }[] | undefined;
22733
23198
  childTaskId?: string | undefined;
23199
+ tokenUsage?: {
23200
+ totalTokensIn: number;
23201
+ totalTokensOut: number;
23202
+ totalCost: number;
23203
+ contextTokens: number;
23204
+ totalCacheWrites?: number | undefined;
23205
+ totalCacheReads?: number | undefined;
23206
+ } | undefined;
22734
23207
  }>;
22735
23208
  taskAsk: z.ZodOptional<z.ZodObject<{
22736
23209
  ts: z.ZodNumber;
@@ -22927,6 +23400,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
22927
23400
  images?: string[] | undefined;
22928
23401
  }[] | undefined;
22929
23402
  childTaskId?: string | undefined;
23403
+ tokenUsage?: {
23404
+ totalTokensIn: number;
23405
+ totalTokensOut: number;
23406
+ totalCost: number;
23407
+ contextTokens: number;
23408
+ totalCacheWrites?: number | undefined;
23409
+ totalCacheReads?: number | undefined;
23410
+ } | undefined;
22930
23411
  };
22931
23412
  taskHistory: string[];
22932
23413
  instanceId: string;
@@ -22938,6 +23419,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
22938
23419
  vscodeVersion: string;
22939
23420
  platform: string;
22940
23421
  editorName: string;
23422
+ hostname?: string | undefined;
22941
23423
  };
22942
23424
  lastHeartbeat: number;
22943
23425
  modes?: {
@@ -23031,6 +23513,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
23031
23513
  images?: string[] | undefined;
23032
23514
  }[] | undefined;
23033
23515
  childTaskId?: string | undefined;
23516
+ tokenUsage?: {
23517
+ totalTokensIn: number;
23518
+ totalTokensOut: number;
23519
+ totalCost: number;
23520
+ contextTokens: number;
23521
+ totalCacheWrites?: number | undefined;
23522
+ totalCacheReads?: number | undefined;
23523
+ } | undefined;
23034
23524
  };
23035
23525
  taskHistory: string[];
23036
23526
  instanceId: string;
@@ -23042,6 +23532,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
23042
23532
  vscodeVersion: string;
23043
23533
  platform: string;
23044
23534
  editorName: string;
23535
+ hostname?: string | undefined;
23045
23536
  };
23046
23537
  lastHeartbeat: number;
23047
23538
  modes?: {
@@ -23140,6 +23631,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
23140
23631
  images?: string[] | undefined;
23141
23632
  }[] | undefined;
23142
23633
  childTaskId?: string | undefined;
23634
+ tokenUsage?: {
23635
+ totalTokensIn: number;
23636
+ totalTokensOut: number;
23637
+ totalCost: number;
23638
+ contextTokens: number;
23639
+ totalCacheWrites?: number | undefined;
23640
+ totalCacheReads?: number | undefined;
23641
+ } | undefined;
23143
23642
  };
23144
23643
  taskHistory: string[];
23145
23644
  instanceId: string;
@@ -23151,6 +23650,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
23151
23650
  vscodeVersion: string;
23152
23651
  platform: string;
23153
23652
  editorName: string;
23653
+ hostname?: string | undefined;
23154
23654
  };
23155
23655
  lastHeartbeat: number;
23156
23656
  modes?: {
@@ -23248,6 +23748,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
23248
23748
  images?: string[] | undefined;
23249
23749
  }[] | undefined;
23250
23750
  childTaskId?: string | undefined;
23751
+ tokenUsage?: {
23752
+ totalTokensIn: number;
23753
+ totalTokensOut: number;
23754
+ totalCost: number;
23755
+ contextTokens: number;
23756
+ totalCacheWrites?: number | undefined;
23757
+ totalCacheReads?: number | undefined;
23758
+ } | undefined;
23251
23759
  };
23252
23760
  taskHistory: string[];
23253
23761
  instanceId: string;
@@ -23259,6 +23767,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
23259
23767
  vscodeVersion: string;
23260
23768
  platform: string;
23261
23769
  editorName: string;
23770
+ hostname?: string | undefined;
23262
23771
  };
23263
23772
  lastHeartbeat: number;
23264
23773
  modes?: {
@@ -23320,18 +23829,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
23320
23829
  vscodeVersion: z.ZodString;
23321
23830
  platform: z.ZodString;
23322
23831
  editorName: z.ZodString;
23832
+ hostname: z.ZodOptional<z.ZodString>;
23323
23833
  }, "strip", z.ZodTypeAny, {
23324
23834
  appName: string;
23325
23835
  appVersion: string;
23326
23836
  vscodeVersion: string;
23327
23837
  platform: string;
23328
23838
  editorName: string;
23839
+ hostname?: string | undefined;
23329
23840
  }, {
23330
23841
  appName: string;
23331
23842
  appVersion: string;
23332
23843
  vscodeVersion: string;
23333
23844
  platform: string;
23334
23845
  editorName: string;
23846
+ hostname?: string | undefined;
23335
23847
  }>;
23336
23848
  gitProperties: z.ZodOptional<z.ZodObject<{
23337
23849
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -23497,6 +24009,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
23497
24009
  }>, "many">>;
23498
24010
  parentTaskId: z.ZodOptional<z.ZodString>;
23499
24011
  childTaskId: z.ZodOptional<z.ZodString>;
24012
+ tokenUsage: z.ZodOptional<z.ZodObject<{
24013
+ totalTokensIn: z.ZodNumber;
24014
+ totalTokensOut: z.ZodNumber;
24015
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
24016
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
24017
+ totalCost: z.ZodNumber;
24018
+ contextTokens: z.ZodNumber;
24019
+ }, "strip", z.ZodTypeAny, {
24020
+ totalTokensIn: number;
24021
+ totalTokensOut: number;
24022
+ totalCost: number;
24023
+ contextTokens: number;
24024
+ totalCacheWrites?: number | undefined;
24025
+ totalCacheReads?: number | undefined;
24026
+ }, {
24027
+ totalTokensIn: number;
24028
+ totalTokensOut: number;
24029
+ totalCost: number;
24030
+ contextTokens: number;
24031
+ totalCacheWrites?: number | undefined;
24032
+ totalCacheReads?: number | undefined;
24033
+ }>>;
23500
24034
  }, "strip", z.ZodTypeAny, {
23501
24035
  taskId: string;
23502
24036
  taskStatus: TaskStatus;
@@ -23541,6 +24075,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
23541
24075
  images?: string[] | undefined;
23542
24076
  }[] | undefined;
23543
24077
  childTaskId?: string | undefined;
24078
+ tokenUsage?: {
24079
+ totalTokensIn: number;
24080
+ totalTokensOut: number;
24081
+ totalCost: number;
24082
+ contextTokens: number;
24083
+ totalCacheWrites?: number | undefined;
24084
+ totalCacheReads?: number | undefined;
24085
+ } | undefined;
23544
24086
  }, {
23545
24087
  taskId: string;
23546
24088
  taskStatus: TaskStatus;
@@ -23585,6 +24127,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
23585
24127
  images?: string[] | undefined;
23586
24128
  }[] | undefined;
23587
24129
  childTaskId?: string | undefined;
24130
+ tokenUsage?: {
24131
+ totalTokensIn: number;
24132
+ totalTokensOut: number;
24133
+ totalCost: number;
24134
+ contextTokens: number;
24135
+ totalCacheWrites?: number | undefined;
24136
+ totalCacheReads?: number | undefined;
24137
+ } | undefined;
23588
24138
  }>;
23589
24139
  taskAsk: z.ZodOptional<z.ZodObject<{
23590
24140
  ts: z.ZodNumber;
@@ -23781,6 +24331,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
23781
24331
  images?: string[] | undefined;
23782
24332
  }[] | undefined;
23783
24333
  childTaskId?: string | undefined;
24334
+ tokenUsage?: {
24335
+ totalTokensIn: number;
24336
+ totalTokensOut: number;
24337
+ totalCost: number;
24338
+ contextTokens: number;
24339
+ totalCacheWrites?: number | undefined;
24340
+ totalCacheReads?: number | undefined;
24341
+ } | undefined;
23784
24342
  };
23785
24343
  taskHistory: string[];
23786
24344
  instanceId: string;
@@ -23792,6 +24350,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
23792
24350
  vscodeVersion: string;
23793
24351
  platform: string;
23794
24352
  editorName: string;
24353
+ hostname?: string | undefined;
23795
24354
  };
23796
24355
  lastHeartbeat: number;
23797
24356
  modes?: {
@@ -23885,6 +24444,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
23885
24444
  images?: string[] | undefined;
23886
24445
  }[] | undefined;
23887
24446
  childTaskId?: string | undefined;
24447
+ tokenUsage?: {
24448
+ totalTokensIn: number;
24449
+ totalTokensOut: number;
24450
+ totalCost: number;
24451
+ contextTokens: number;
24452
+ totalCacheWrites?: number | undefined;
24453
+ totalCacheReads?: number | undefined;
24454
+ } | undefined;
23888
24455
  };
23889
24456
  taskHistory: string[];
23890
24457
  instanceId: string;
@@ -23896,6 +24463,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
23896
24463
  vscodeVersion: string;
23897
24464
  platform: string;
23898
24465
  editorName: string;
24466
+ hostname?: string | undefined;
23899
24467
  };
23900
24468
  lastHeartbeat: number;
23901
24469
  modes?: {
@@ -23994,6 +24562,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
23994
24562
  images?: string[] | undefined;
23995
24563
  }[] | undefined;
23996
24564
  childTaskId?: string | undefined;
24565
+ tokenUsage?: {
24566
+ totalTokensIn: number;
24567
+ totalTokensOut: number;
24568
+ totalCost: number;
24569
+ contextTokens: number;
24570
+ totalCacheWrites?: number | undefined;
24571
+ totalCacheReads?: number | undefined;
24572
+ } | undefined;
23997
24573
  };
23998
24574
  taskHistory: string[];
23999
24575
  instanceId: string;
@@ -24005,6 +24581,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
24005
24581
  vscodeVersion: string;
24006
24582
  platform: string;
24007
24583
  editorName: string;
24584
+ hostname?: string | undefined;
24008
24585
  };
24009
24586
  lastHeartbeat: number;
24010
24587
  modes?: {
@@ -24102,6 +24679,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
24102
24679
  images?: string[] | undefined;
24103
24680
  }[] | undefined;
24104
24681
  childTaskId?: string | undefined;
24682
+ tokenUsage?: {
24683
+ totalTokensIn: number;
24684
+ totalTokensOut: number;
24685
+ totalCost: number;
24686
+ contextTokens: number;
24687
+ totalCacheWrites?: number | undefined;
24688
+ totalCacheReads?: number | undefined;
24689
+ } | undefined;
24105
24690
  };
24106
24691
  taskHistory: string[];
24107
24692
  instanceId: string;
@@ -24113,6 +24698,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
24113
24698
  vscodeVersion: string;
24114
24699
  platform: string;
24115
24700
  editorName: string;
24701
+ hostname?: string | undefined;
24116
24702
  };
24117
24703
  lastHeartbeat: number;
24118
24704
  modes?: {
@@ -24174,18 +24760,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
24174
24760
  vscodeVersion: z.ZodString;
24175
24761
  platform: z.ZodString;
24176
24762
  editorName: z.ZodString;
24763
+ hostname: z.ZodOptional<z.ZodString>;
24177
24764
  }, "strip", z.ZodTypeAny, {
24178
24765
  appName: string;
24179
24766
  appVersion: string;
24180
24767
  vscodeVersion: string;
24181
24768
  platform: string;
24182
24769
  editorName: string;
24770
+ hostname?: string | undefined;
24183
24771
  }, {
24184
24772
  appName: string;
24185
24773
  appVersion: string;
24186
24774
  vscodeVersion: string;
24187
24775
  platform: string;
24188
24776
  editorName: string;
24777
+ hostname?: string | undefined;
24189
24778
  }>;
24190
24779
  gitProperties: z.ZodOptional<z.ZodObject<{
24191
24780
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -24351,6 +24940,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
24351
24940
  }>, "many">>;
24352
24941
  parentTaskId: z.ZodOptional<z.ZodString>;
24353
24942
  childTaskId: z.ZodOptional<z.ZodString>;
24943
+ tokenUsage: z.ZodOptional<z.ZodObject<{
24944
+ totalTokensIn: z.ZodNumber;
24945
+ totalTokensOut: z.ZodNumber;
24946
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
24947
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
24948
+ totalCost: z.ZodNumber;
24949
+ contextTokens: z.ZodNumber;
24950
+ }, "strip", z.ZodTypeAny, {
24951
+ totalTokensIn: number;
24952
+ totalTokensOut: number;
24953
+ totalCost: number;
24954
+ contextTokens: number;
24955
+ totalCacheWrites?: number | undefined;
24956
+ totalCacheReads?: number | undefined;
24957
+ }, {
24958
+ totalTokensIn: number;
24959
+ totalTokensOut: number;
24960
+ totalCost: number;
24961
+ contextTokens: number;
24962
+ totalCacheWrites?: number | undefined;
24963
+ totalCacheReads?: number | undefined;
24964
+ }>>;
24354
24965
  }, "strip", z.ZodTypeAny, {
24355
24966
  taskId: string;
24356
24967
  taskStatus: TaskStatus;
@@ -24395,6 +25006,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
24395
25006
  images?: string[] | undefined;
24396
25007
  }[] | undefined;
24397
25008
  childTaskId?: string | undefined;
25009
+ tokenUsage?: {
25010
+ totalTokensIn: number;
25011
+ totalTokensOut: number;
25012
+ totalCost: number;
25013
+ contextTokens: number;
25014
+ totalCacheWrites?: number | undefined;
25015
+ totalCacheReads?: number | undefined;
25016
+ } | undefined;
24398
25017
  }, {
24399
25018
  taskId: string;
24400
25019
  taskStatus: TaskStatus;
@@ -24439,6 +25058,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
24439
25058
  images?: string[] | undefined;
24440
25059
  }[] | undefined;
24441
25060
  childTaskId?: string | undefined;
25061
+ tokenUsage?: {
25062
+ totalTokensIn: number;
25063
+ totalTokensOut: number;
25064
+ totalCost: number;
25065
+ contextTokens: number;
25066
+ totalCacheWrites?: number | undefined;
25067
+ totalCacheReads?: number | undefined;
25068
+ } | undefined;
24442
25069
  }>;
24443
25070
  taskAsk: z.ZodOptional<z.ZodObject<{
24444
25071
  ts: z.ZodNumber;
@@ -24635,6 +25262,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
24635
25262
  images?: string[] | undefined;
24636
25263
  }[] | undefined;
24637
25264
  childTaskId?: string | undefined;
25265
+ tokenUsage?: {
25266
+ totalTokensIn: number;
25267
+ totalTokensOut: number;
25268
+ totalCost: number;
25269
+ contextTokens: number;
25270
+ totalCacheWrites?: number | undefined;
25271
+ totalCacheReads?: number | undefined;
25272
+ } | undefined;
24638
25273
  };
24639
25274
  taskHistory: string[];
24640
25275
  instanceId: string;
@@ -24646,6 +25281,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
24646
25281
  vscodeVersion: string;
24647
25282
  platform: string;
24648
25283
  editorName: string;
25284
+ hostname?: string | undefined;
24649
25285
  };
24650
25286
  lastHeartbeat: number;
24651
25287
  modes?: {
@@ -24739,6 +25375,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
24739
25375
  images?: string[] | undefined;
24740
25376
  }[] | undefined;
24741
25377
  childTaskId?: string | undefined;
25378
+ tokenUsage?: {
25379
+ totalTokensIn: number;
25380
+ totalTokensOut: number;
25381
+ totalCost: number;
25382
+ contextTokens: number;
25383
+ totalCacheWrites?: number | undefined;
25384
+ totalCacheReads?: number | undefined;
25385
+ } | undefined;
24742
25386
  };
24743
25387
  taskHistory: string[];
24744
25388
  instanceId: string;
@@ -24750,6 +25394,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
24750
25394
  vscodeVersion: string;
24751
25395
  platform: string;
24752
25396
  editorName: string;
25397
+ hostname?: string | undefined;
24753
25398
  };
24754
25399
  lastHeartbeat: number;
24755
25400
  modes?: {
@@ -24848,6 +25493,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
24848
25493
  images?: string[] | undefined;
24849
25494
  }[] | undefined;
24850
25495
  childTaskId?: string | undefined;
25496
+ tokenUsage?: {
25497
+ totalTokensIn: number;
25498
+ totalTokensOut: number;
25499
+ totalCost: number;
25500
+ contextTokens: number;
25501
+ totalCacheWrites?: number | undefined;
25502
+ totalCacheReads?: number | undefined;
25503
+ } | undefined;
24851
25504
  };
24852
25505
  taskHistory: string[];
24853
25506
  instanceId: string;
@@ -24859,6 +25512,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
24859
25512
  vscodeVersion: string;
24860
25513
  platform: string;
24861
25514
  editorName: string;
25515
+ hostname?: string | undefined;
24862
25516
  };
24863
25517
  lastHeartbeat: number;
24864
25518
  modes?: {
@@ -24956,6 +25610,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
24956
25610
  images?: string[] | undefined;
24957
25611
  }[] | undefined;
24958
25612
  childTaskId?: string | undefined;
25613
+ tokenUsage?: {
25614
+ totalTokensIn: number;
25615
+ totalTokensOut: number;
25616
+ totalCost: number;
25617
+ contextTokens: number;
25618
+ totalCacheWrites?: number | undefined;
25619
+ totalCacheReads?: number | undefined;
25620
+ } | undefined;
24959
25621
  };
24960
25622
  taskHistory: string[];
24961
25623
  instanceId: string;
@@ -24967,6 +25629,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
24967
25629
  vscodeVersion: string;
24968
25630
  platform: string;
24969
25631
  editorName: string;
25632
+ hostname?: string | undefined;
24970
25633
  };
24971
25634
  lastHeartbeat: number;
24972
25635
  modes?: {
@@ -25028,18 +25691,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
25028
25691
  vscodeVersion: z.ZodString;
25029
25692
  platform: z.ZodString;
25030
25693
  editorName: z.ZodString;
25694
+ hostname: z.ZodOptional<z.ZodString>;
25031
25695
  }, "strip", z.ZodTypeAny, {
25032
25696
  appName: string;
25033
25697
  appVersion: string;
25034
25698
  vscodeVersion: string;
25035
25699
  platform: string;
25036
25700
  editorName: string;
25701
+ hostname?: string | undefined;
25037
25702
  }, {
25038
25703
  appName: string;
25039
25704
  appVersion: string;
25040
25705
  vscodeVersion: string;
25041
25706
  platform: string;
25042
25707
  editorName: string;
25708
+ hostname?: string | undefined;
25043
25709
  }>;
25044
25710
  gitProperties: z.ZodOptional<z.ZodObject<{
25045
25711
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -25205,6 +25871,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
25205
25871
  }>, "many">>;
25206
25872
  parentTaskId: z.ZodOptional<z.ZodString>;
25207
25873
  childTaskId: z.ZodOptional<z.ZodString>;
25874
+ tokenUsage: z.ZodOptional<z.ZodObject<{
25875
+ totalTokensIn: z.ZodNumber;
25876
+ totalTokensOut: z.ZodNumber;
25877
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
25878
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
25879
+ totalCost: z.ZodNumber;
25880
+ contextTokens: z.ZodNumber;
25881
+ }, "strip", z.ZodTypeAny, {
25882
+ totalTokensIn: number;
25883
+ totalTokensOut: number;
25884
+ totalCost: number;
25885
+ contextTokens: number;
25886
+ totalCacheWrites?: number | undefined;
25887
+ totalCacheReads?: number | undefined;
25888
+ }, {
25889
+ totalTokensIn: number;
25890
+ totalTokensOut: number;
25891
+ totalCost: number;
25892
+ contextTokens: number;
25893
+ totalCacheWrites?: number | undefined;
25894
+ totalCacheReads?: number | undefined;
25895
+ }>>;
25208
25896
  }, "strip", z.ZodTypeAny, {
25209
25897
  taskId: string;
25210
25898
  taskStatus: TaskStatus;
@@ -25249,6 +25937,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
25249
25937
  images?: string[] | undefined;
25250
25938
  }[] | undefined;
25251
25939
  childTaskId?: string | undefined;
25940
+ tokenUsage?: {
25941
+ totalTokensIn: number;
25942
+ totalTokensOut: number;
25943
+ totalCost: number;
25944
+ contextTokens: number;
25945
+ totalCacheWrites?: number | undefined;
25946
+ totalCacheReads?: number | undefined;
25947
+ } | undefined;
25252
25948
  }, {
25253
25949
  taskId: string;
25254
25950
  taskStatus: TaskStatus;
@@ -25293,6 +25989,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
25293
25989
  images?: string[] | undefined;
25294
25990
  }[] | undefined;
25295
25991
  childTaskId?: string | undefined;
25992
+ tokenUsage?: {
25993
+ totalTokensIn: number;
25994
+ totalTokensOut: number;
25995
+ totalCost: number;
25996
+ contextTokens: number;
25997
+ totalCacheWrites?: number | undefined;
25998
+ totalCacheReads?: number | undefined;
25999
+ } | undefined;
25296
26000
  }>;
25297
26001
  taskAsk: z.ZodOptional<z.ZodObject<{
25298
26002
  ts: z.ZodNumber;
@@ -25489,6 +26193,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
25489
26193
  images?: string[] | undefined;
25490
26194
  }[] | undefined;
25491
26195
  childTaskId?: string | undefined;
26196
+ tokenUsage?: {
26197
+ totalTokensIn: number;
26198
+ totalTokensOut: number;
26199
+ totalCost: number;
26200
+ contextTokens: number;
26201
+ totalCacheWrites?: number | undefined;
26202
+ totalCacheReads?: number | undefined;
26203
+ } | undefined;
25492
26204
  };
25493
26205
  taskHistory: string[];
25494
26206
  instanceId: string;
@@ -25500,6 +26212,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
25500
26212
  vscodeVersion: string;
25501
26213
  platform: string;
25502
26214
  editorName: string;
26215
+ hostname?: string | undefined;
25503
26216
  };
25504
26217
  lastHeartbeat: number;
25505
26218
  modes?: {
@@ -25593,6 +26306,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
25593
26306
  images?: string[] | undefined;
25594
26307
  }[] | undefined;
25595
26308
  childTaskId?: string | undefined;
26309
+ tokenUsage?: {
26310
+ totalTokensIn: number;
26311
+ totalTokensOut: number;
26312
+ totalCost: number;
26313
+ contextTokens: number;
26314
+ totalCacheWrites?: number | undefined;
26315
+ totalCacheReads?: number | undefined;
26316
+ } | undefined;
25596
26317
  };
25597
26318
  taskHistory: string[];
25598
26319
  instanceId: string;
@@ -25604,6 +26325,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
25604
26325
  vscodeVersion: string;
25605
26326
  platform: string;
25606
26327
  editorName: string;
26328
+ hostname?: string | undefined;
25607
26329
  };
25608
26330
  lastHeartbeat: number;
25609
26331
  modes?: {
@@ -25702,6 +26424,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
25702
26424
  images?: string[] | undefined;
25703
26425
  }[] | undefined;
25704
26426
  childTaskId?: string | undefined;
26427
+ tokenUsage?: {
26428
+ totalTokensIn: number;
26429
+ totalTokensOut: number;
26430
+ totalCost: number;
26431
+ contextTokens: number;
26432
+ totalCacheWrites?: number | undefined;
26433
+ totalCacheReads?: number | undefined;
26434
+ } | undefined;
25705
26435
  };
25706
26436
  taskHistory: string[];
25707
26437
  instanceId: string;
@@ -25713,6 +26443,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
25713
26443
  vscodeVersion: string;
25714
26444
  platform: string;
25715
26445
  editorName: string;
26446
+ hostname?: string | undefined;
25716
26447
  };
25717
26448
  lastHeartbeat: number;
25718
26449
  modes?: {
@@ -25810,6 +26541,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
25810
26541
  images?: string[] | undefined;
25811
26542
  }[] | undefined;
25812
26543
  childTaskId?: string | undefined;
26544
+ tokenUsage?: {
26545
+ totalTokensIn: number;
26546
+ totalTokensOut: number;
26547
+ totalCost: number;
26548
+ contextTokens: number;
26549
+ totalCacheWrites?: number | undefined;
26550
+ totalCacheReads?: number | undefined;
26551
+ } | undefined;
25813
26552
  };
25814
26553
  taskHistory: string[];
25815
26554
  instanceId: string;
@@ -25821,6 +26560,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
25821
26560
  vscodeVersion: string;
25822
26561
  platform: string;
25823
26562
  editorName: string;
26563
+ hostname?: string | undefined;
25824
26564
  };
25825
26565
  lastHeartbeat: number;
25826
26566
  modes?: {
@@ -25882,18 +26622,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
25882
26622
  vscodeVersion: z.ZodString;
25883
26623
  platform: z.ZodString;
25884
26624
  editorName: z.ZodString;
26625
+ hostname: z.ZodOptional<z.ZodString>;
25885
26626
  }, "strip", z.ZodTypeAny, {
25886
26627
  appName: string;
25887
26628
  appVersion: string;
25888
26629
  vscodeVersion: string;
25889
26630
  platform: string;
25890
26631
  editorName: string;
26632
+ hostname?: string | undefined;
25891
26633
  }, {
25892
26634
  appName: string;
25893
26635
  appVersion: string;
25894
26636
  vscodeVersion: string;
25895
26637
  platform: string;
25896
26638
  editorName: string;
26639
+ hostname?: string | undefined;
25897
26640
  }>;
25898
26641
  gitProperties: z.ZodOptional<z.ZodObject<{
25899
26642
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -26059,6 +26802,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
26059
26802
  }>, "many">>;
26060
26803
  parentTaskId: z.ZodOptional<z.ZodString>;
26061
26804
  childTaskId: z.ZodOptional<z.ZodString>;
26805
+ tokenUsage: z.ZodOptional<z.ZodObject<{
26806
+ totalTokensIn: z.ZodNumber;
26807
+ totalTokensOut: z.ZodNumber;
26808
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
26809
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
26810
+ totalCost: z.ZodNumber;
26811
+ contextTokens: z.ZodNumber;
26812
+ }, "strip", z.ZodTypeAny, {
26813
+ totalTokensIn: number;
26814
+ totalTokensOut: number;
26815
+ totalCost: number;
26816
+ contextTokens: number;
26817
+ totalCacheWrites?: number | undefined;
26818
+ totalCacheReads?: number | undefined;
26819
+ }, {
26820
+ totalTokensIn: number;
26821
+ totalTokensOut: number;
26822
+ totalCost: number;
26823
+ contextTokens: number;
26824
+ totalCacheWrites?: number | undefined;
26825
+ totalCacheReads?: number | undefined;
26826
+ }>>;
26062
26827
  }, "strip", z.ZodTypeAny, {
26063
26828
  taskId: string;
26064
26829
  taskStatus: TaskStatus;
@@ -26103,6 +26868,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
26103
26868
  images?: string[] | undefined;
26104
26869
  }[] | undefined;
26105
26870
  childTaskId?: string | undefined;
26871
+ tokenUsage?: {
26872
+ totalTokensIn: number;
26873
+ totalTokensOut: number;
26874
+ totalCost: number;
26875
+ contextTokens: number;
26876
+ totalCacheWrites?: number | undefined;
26877
+ totalCacheReads?: number | undefined;
26878
+ } | undefined;
26106
26879
  }, {
26107
26880
  taskId: string;
26108
26881
  taskStatus: TaskStatus;
@@ -26147,6 +26920,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
26147
26920
  images?: string[] | undefined;
26148
26921
  }[] | undefined;
26149
26922
  childTaskId?: string | undefined;
26923
+ tokenUsage?: {
26924
+ totalTokensIn: number;
26925
+ totalTokensOut: number;
26926
+ totalCost: number;
26927
+ contextTokens: number;
26928
+ totalCacheWrites?: number | undefined;
26929
+ totalCacheReads?: number | undefined;
26930
+ } | undefined;
26150
26931
  }>;
26151
26932
  taskAsk: z.ZodOptional<z.ZodObject<{
26152
26933
  ts: z.ZodNumber;
@@ -26343,6 +27124,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
26343
27124
  images?: string[] | undefined;
26344
27125
  }[] | undefined;
26345
27126
  childTaskId?: string | undefined;
27127
+ tokenUsage?: {
27128
+ totalTokensIn: number;
27129
+ totalTokensOut: number;
27130
+ totalCost: number;
27131
+ contextTokens: number;
27132
+ totalCacheWrites?: number | undefined;
27133
+ totalCacheReads?: number | undefined;
27134
+ } | undefined;
26346
27135
  };
26347
27136
  taskHistory: string[];
26348
27137
  instanceId: string;
@@ -26354,6 +27143,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
26354
27143
  vscodeVersion: string;
26355
27144
  platform: string;
26356
27145
  editorName: string;
27146
+ hostname?: string | undefined;
26357
27147
  };
26358
27148
  lastHeartbeat: number;
26359
27149
  modes?: {
@@ -26447,6 +27237,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
26447
27237
  images?: string[] | undefined;
26448
27238
  }[] | undefined;
26449
27239
  childTaskId?: string | undefined;
27240
+ tokenUsage?: {
27241
+ totalTokensIn: number;
27242
+ totalTokensOut: number;
27243
+ totalCost: number;
27244
+ contextTokens: number;
27245
+ totalCacheWrites?: number | undefined;
27246
+ totalCacheReads?: number | undefined;
27247
+ } | undefined;
26450
27248
  };
26451
27249
  taskHistory: string[];
26452
27250
  instanceId: string;
@@ -26458,6 +27256,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
26458
27256
  vscodeVersion: string;
26459
27257
  platform: string;
26460
27258
  editorName: string;
27259
+ hostname?: string | undefined;
26461
27260
  };
26462
27261
  lastHeartbeat: number;
26463
27262
  modes?: {
@@ -26556,6 +27355,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
26556
27355
  images?: string[] | undefined;
26557
27356
  }[] | undefined;
26558
27357
  childTaskId?: string | undefined;
27358
+ tokenUsage?: {
27359
+ totalTokensIn: number;
27360
+ totalTokensOut: number;
27361
+ totalCost: number;
27362
+ contextTokens: number;
27363
+ totalCacheWrites?: number | undefined;
27364
+ totalCacheReads?: number | undefined;
27365
+ } | undefined;
26559
27366
  };
26560
27367
  taskHistory: string[];
26561
27368
  instanceId: string;
@@ -26567,6 +27374,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
26567
27374
  vscodeVersion: string;
26568
27375
  platform: string;
26569
27376
  editorName: string;
27377
+ hostname?: string | undefined;
26570
27378
  };
26571
27379
  lastHeartbeat: number;
26572
27380
  modes?: {
@@ -26664,6 +27472,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
26664
27472
  images?: string[] | undefined;
26665
27473
  }[] | undefined;
26666
27474
  childTaskId?: string | undefined;
27475
+ tokenUsage?: {
27476
+ totalTokensIn: number;
27477
+ totalTokensOut: number;
27478
+ totalCost: number;
27479
+ contextTokens: number;
27480
+ totalCacheWrites?: number | undefined;
27481
+ totalCacheReads?: number | undefined;
27482
+ } | undefined;
26667
27483
  };
26668
27484
  taskHistory: string[];
26669
27485
  instanceId: string;
@@ -26675,6 +27491,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
26675
27491
  vscodeVersion: string;
26676
27492
  platform: string;
26677
27493
  editorName: string;
27494
+ hostname?: string | undefined;
26678
27495
  };
26679
27496
  lastHeartbeat: number;
26680
27497
  modes?: {
@@ -26736,18 +27553,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
26736
27553
  vscodeVersion: z.ZodString;
26737
27554
  platform: z.ZodString;
26738
27555
  editorName: z.ZodString;
27556
+ hostname: z.ZodOptional<z.ZodString>;
26739
27557
  }, "strip", z.ZodTypeAny, {
26740
27558
  appName: string;
26741
27559
  appVersion: string;
26742
27560
  vscodeVersion: string;
26743
27561
  platform: string;
26744
27562
  editorName: string;
27563
+ hostname?: string | undefined;
26745
27564
  }, {
26746
27565
  appName: string;
26747
27566
  appVersion: string;
26748
27567
  vscodeVersion: string;
26749
27568
  platform: string;
26750
27569
  editorName: string;
27570
+ hostname?: string | undefined;
26751
27571
  }>;
26752
27572
  gitProperties: z.ZodOptional<z.ZodObject<{
26753
27573
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -26913,6 +27733,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
26913
27733
  }>, "many">>;
26914
27734
  parentTaskId: z.ZodOptional<z.ZodString>;
26915
27735
  childTaskId: z.ZodOptional<z.ZodString>;
27736
+ tokenUsage: z.ZodOptional<z.ZodObject<{
27737
+ totalTokensIn: z.ZodNumber;
27738
+ totalTokensOut: z.ZodNumber;
27739
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
27740
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
27741
+ totalCost: z.ZodNumber;
27742
+ contextTokens: z.ZodNumber;
27743
+ }, "strip", z.ZodTypeAny, {
27744
+ totalTokensIn: number;
27745
+ totalTokensOut: number;
27746
+ totalCost: number;
27747
+ contextTokens: number;
27748
+ totalCacheWrites?: number | undefined;
27749
+ totalCacheReads?: number | undefined;
27750
+ }, {
27751
+ totalTokensIn: number;
27752
+ totalTokensOut: number;
27753
+ totalCost: number;
27754
+ contextTokens: number;
27755
+ totalCacheWrites?: number | undefined;
27756
+ totalCacheReads?: number | undefined;
27757
+ }>>;
26916
27758
  }, "strip", z.ZodTypeAny, {
26917
27759
  taskId: string;
26918
27760
  taskStatus: TaskStatus;
@@ -26957,6 +27799,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
26957
27799
  images?: string[] | undefined;
26958
27800
  }[] | undefined;
26959
27801
  childTaskId?: string | undefined;
27802
+ tokenUsage?: {
27803
+ totalTokensIn: number;
27804
+ totalTokensOut: number;
27805
+ totalCost: number;
27806
+ contextTokens: number;
27807
+ totalCacheWrites?: number | undefined;
27808
+ totalCacheReads?: number | undefined;
27809
+ } | undefined;
26960
27810
  }, {
26961
27811
  taskId: string;
26962
27812
  taskStatus: TaskStatus;
@@ -27001,6 +27851,945 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
27001
27851
  images?: string[] | undefined;
27002
27852
  }[] | undefined;
27003
27853
  childTaskId?: string | undefined;
27854
+ tokenUsage?: {
27855
+ totalTokensIn: number;
27856
+ totalTokensOut: number;
27857
+ totalCost: number;
27858
+ contextTokens: number;
27859
+ totalCacheWrites?: number | undefined;
27860
+ totalCacheReads?: number | undefined;
27861
+ } | undefined;
27862
+ }>;
27863
+ taskAsk: z.ZodOptional<z.ZodObject<{
27864
+ ts: z.ZodNumber;
27865
+ type: z.ZodUnion<[z.ZodLiteral<"ask">, z.ZodLiteral<"say">]>;
27866
+ ask: z.ZodOptional<z.ZodEnum<["followup", "command", "command_output", "completion_result", "tool", "api_req_failed", "resume_task", "resume_completed_task", "mistake_limit_reached", "browser_action_launch", "use_mcp_server", "auto_approval_max_req_reached"]>>;
27867
+ say: z.ZodOptional<z.ZodEnum<["error", "api_req_started", "api_req_finished", "api_req_retried", "api_req_retry_delayed", "api_req_deleted", "text", "image", "reasoning", "completion_result", "user_feedback", "user_feedback_diff", "command_output", "shell_integration_warning", "browser_action", "browser_action_result", "mcp_server_request_started", "mcp_server_response", "subtask_result", "checkpoint_saved", "rooignore_error", "diff_error", "condense_context", "condense_context_error", "codebase_search_result", "user_edit_todos"]>>;
27868
+ text: z.ZodOptional<z.ZodString>;
27869
+ images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
27870
+ partial: z.ZodOptional<z.ZodBoolean>;
27871
+ reasoning: z.ZodOptional<z.ZodString>;
27872
+ conversationHistoryIndex: z.ZodOptional<z.ZodNumber>;
27873
+ checkpoint: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
27874
+ progressStatus: z.ZodOptional<z.ZodObject<{
27875
+ icon: z.ZodOptional<z.ZodString>;
27876
+ text: z.ZodOptional<z.ZodString>;
27877
+ }, "strip", z.ZodTypeAny, {
27878
+ text?: string | undefined;
27879
+ icon?: string | undefined;
27880
+ }, {
27881
+ text?: string | undefined;
27882
+ icon?: string | undefined;
27883
+ }>>;
27884
+ contextCondense: z.ZodOptional<z.ZodObject<{
27885
+ cost: z.ZodNumber;
27886
+ prevContextTokens: z.ZodNumber;
27887
+ newContextTokens: z.ZodNumber;
27888
+ summary: z.ZodString;
27889
+ }, "strip", z.ZodTypeAny, {
27890
+ cost: number;
27891
+ prevContextTokens: number;
27892
+ newContextTokens: number;
27893
+ summary: string;
27894
+ }, {
27895
+ cost: number;
27896
+ prevContextTokens: number;
27897
+ newContextTokens: number;
27898
+ summary: string;
27899
+ }>>;
27900
+ isProtected: z.ZodOptional<z.ZodBoolean>;
27901
+ apiProtocol: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"openai">, z.ZodLiteral<"anthropic">]>>;
27902
+ metadata: z.ZodOptional<z.ZodObject<{
27903
+ gpt5: z.ZodOptional<z.ZodObject<{
27904
+ previous_response_id: z.ZodOptional<z.ZodString>;
27905
+ instructions: z.ZodOptional<z.ZodString>;
27906
+ reasoning_summary: z.ZodOptional<z.ZodString>;
27907
+ }, "strip", z.ZodTypeAny, {
27908
+ previous_response_id?: string | undefined;
27909
+ instructions?: string | undefined;
27910
+ reasoning_summary?: string | undefined;
27911
+ }, {
27912
+ previous_response_id?: string | undefined;
27913
+ instructions?: string | undefined;
27914
+ reasoning_summary?: string | undefined;
27915
+ }>>;
27916
+ }, "strip", z.ZodTypeAny, {
27917
+ gpt5?: {
27918
+ previous_response_id?: string | undefined;
27919
+ instructions?: string | undefined;
27920
+ reasoning_summary?: string | undefined;
27921
+ } | undefined;
27922
+ }, {
27923
+ gpt5?: {
27924
+ previous_response_id?: string | undefined;
27925
+ instructions?: string | undefined;
27926
+ reasoning_summary?: string | undefined;
27927
+ } | undefined;
27928
+ }>>;
27929
+ }, "strip", z.ZodTypeAny, {
27930
+ type: "ask" | "say";
27931
+ ts: number;
27932
+ text?: string | undefined;
27933
+ reasoning?: string | undefined;
27934
+ ask?: "followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
27935
+ say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "condense_context_error" | "codebase_search_result" | "user_edit_todos" | undefined;
27936
+ images?: string[] | undefined;
27937
+ partial?: boolean | undefined;
27938
+ conversationHistoryIndex?: number | undefined;
27939
+ checkpoint?: Record<string, unknown> | undefined;
27940
+ progressStatus?: {
27941
+ text?: string | undefined;
27942
+ icon?: string | undefined;
27943
+ } | undefined;
27944
+ contextCondense?: {
27945
+ cost: number;
27946
+ prevContextTokens: number;
27947
+ newContextTokens: number;
27948
+ summary: string;
27949
+ } | undefined;
27950
+ isProtected?: boolean | undefined;
27951
+ apiProtocol?: "openai" | "anthropic" | undefined;
27952
+ metadata?: {
27953
+ gpt5?: {
27954
+ previous_response_id?: string | undefined;
27955
+ instructions?: string | undefined;
27956
+ reasoning_summary?: string | undefined;
27957
+ } | undefined;
27958
+ } | undefined;
27959
+ }, {
27960
+ type: "ask" | "say";
27961
+ ts: number;
27962
+ text?: string | undefined;
27963
+ reasoning?: string | undefined;
27964
+ ask?: "followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
27965
+ say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "condense_context_error" | "codebase_search_result" | "user_edit_todos" | undefined;
27966
+ images?: string[] | undefined;
27967
+ partial?: boolean | undefined;
27968
+ conversationHistoryIndex?: number | undefined;
27969
+ checkpoint?: Record<string, unknown> | undefined;
27970
+ progressStatus?: {
27971
+ text?: string | undefined;
27972
+ icon?: string | undefined;
27973
+ } | undefined;
27974
+ contextCondense?: {
27975
+ cost: number;
27976
+ prevContextTokens: number;
27977
+ newContextTokens: number;
27978
+ summary: string;
27979
+ } | undefined;
27980
+ isProtected?: boolean | undefined;
27981
+ apiProtocol?: "openai" | "anthropic" | undefined;
27982
+ metadata?: {
27983
+ gpt5?: {
27984
+ previous_response_id?: string | undefined;
27985
+ instructions?: string | undefined;
27986
+ reasoning_summary?: string | undefined;
27987
+ } | undefined;
27988
+ } | undefined;
27989
+ }>>;
27990
+ taskHistory: z.ZodArray<z.ZodString, "many">;
27991
+ mode: z.ZodOptional<z.ZodString>;
27992
+ modes: z.ZodOptional<z.ZodArray<z.ZodObject<{
27993
+ slug: z.ZodString;
27994
+ name: z.ZodString;
27995
+ }, "strip", z.ZodTypeAny, {
27996
+ name: string;
27997
+ slug: string;
27998
+ }, {
27999
+ name: string;
28000
+ slug: string;
28001
+ }>, "many">>;
28002
+ providerProfile: z.ZodOptional<z.ZodString>;
28003
+ providerProfiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
28004
+ name: z.ZodString;
28005
+ provider: z.ZodOptional<z.ZodString>;
28006
+ }, "strip", z.ZodTypeAny, {
28007
+ name: string;
28008
+ provider?: string | undefined;
28009
+ }, {
28010
+ name: string;
28011
+ provider?: string | undefined;
28012
+ }>, "many">>;
28013
+ }, "strip", z.ZodTypeAny, {
28014
+ task: {
28015
+ taskId: string;
28016
+ taskStatus: TaskStatus;
28017
+ images?: string[] | undefined;
28018
+ parentTaskId?: string | undefined;
28019
+ task?: string | undefined;
28020
+ taskAsk?: {
28021
+ type: "ask" | "say";
28022
+ ts: number;
28023
+ text?: string | undefined;
28024
+ reasoning?: string | undefined;
28025
+ ask?: "followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
28026
+ say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "condense_context_error" | "codebase_search_result" | "user_edit_todos" | undefined;
28027
+ images?: string[] | undefined;
28028
+ partial?: boolean | undefined;
28029
+ conversationHistoryIndex?: number | undefined;
28030
+ checkpoint?: Record<string, unknown> | undefined;
28031
+ progressStatus?: {
28032
+ text?: string | undefined;
28033
+ icon?: string | undefined;
28034
+ } | undefined;
28035
+ contextCondense?: {
28036
+ cost: number;
28037
+ prevContextTokens: number;
28038
+ newContextTokens: number;
28039
+ summary: string;
28040
+ } | undefined;
28041
+ isProtected?: boolean | undefined;
28042
+ apiProtocol?: "openai" | "anthropic" | undefined;
28043
+ metadata?: {
28044
+ gpt5?: {
28045
+ previous_response_id?: string | undefined;
28046
+ instructions?: string | undefined;
28047
+ reasoning_summary?: string | undefined;
28048
+ } | undefined;
28049
+ } | undefined;
28050
+ } | undefined;
28051
+ queuedMessages?: {
28052
+ text: string;
28053
+ timestamp: number;
28054
+ id: string;
28055
+ images?: string[] | undefined;
28056
+ }[] | undefined;
28057
+ childTaskId?: string | undefined;
28058
+ tokenUsage?: {
28059
+ totalTokensIn: number;
28060
+ totalTokensOut: number;
28061
+ totalCost: number;
28062
+ contextTokens: number;
28063
+ totalCacheWrites?: number | undefined;
28064
+ totalCacheReads?: number | undefined;
28065
+ } | undefined;
28066
+ };
28067
+ taskHistory: string[];
28068
+ instanceId: string;
28069
+ userId: string;
28070
+ workspacePath: string;
28071
+ appProperties: {
28072
+ appName: string;
28073
+ appVersion: string;
28074
+ vscodeVersion: string;
28075
+ platform: string;
28076
+ editorName: string;
28077
+ hostname?: string | undefined;
28078
+ };
28079
+ lastHeartbeat: number;
28080
+ modes?: {
28081
+ name: string;
28082
+ slug: string;
28083
+ }[] | undefined;
28084
+ mode?: string | undefined;
28085
+ providerProfiles?: {
28086
+ name: string;
28087
+ provider?: string | undefined;
28088
+ }[] | undefined;
28089
+ taskAsk?: {
28090
+ type: "ask" | "say";
28091
+ ts: number;
28092
+ text?: string | undefined;
28093
+ reasoning?: string | undefined;
28094
+ ask?: "followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
28095
+ say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "condense_context_error" | "codebase_search_result" | "user_edit_todos" | undefined;
28096
+ images?: string[] | undefined;
28097
+ partial?: boolean | undefined;
28098
+ conversationHistoryIndex?: number | undefined;
28099
+ checkpoint?: Record<string, unknown> | undefined;
28100
+ progressStatus?: {
28101
+ text?: string | undefined;
28102
+ icon?: string | undefined;
28103
+ } | undefined;
28104
+ contextCondense?: {
28105
+ cost: number;
28106
+ prevContextTokens: number;
28107
+ newContextTokens: number;
28108
+ summary: string;
28109
+ } | undefined;
28110
+ isProtected?: boolean | undefined;
28111
+ apiProtocol?: "openai" | "anthropic" | undefined;
28112
+ metadata?: {
28113
+ gpt5?: {
28114
+ previous_response_id?: string | undefined;
28115
+ instructions?: string | undefined;
28116
+ reasoning_summary?: string | undefined;
28117
+ } | undefined;
28118
+ } | undefined;
28119
+ } | undefined;
28120
+ gitProperties?: {
28121
+ repositoryUrl?: string | undefined;
28122
+ repositoryName?: string | undefined;
28123
+ defaultBranch?: string | undefined;
28124
+ } | undefined;
28125
+ providerProfile?: string | undefined;
28126
+ }, {
28127
+ task: {
28128
+ taskId: string;
28129
+ taskStatus: TaskStatus;
28130
+ images?: string[] | undefined;
28131
+ parentTaskId?: string | undefined;
28132
+ task?: string | undefined;
28133
+ taskAsk?: {
28134
+ type: "ask" | "say";
28135
+ ts: number;
28136
+ text?: string | undefined;
28137
+ reasoning?: string | undefined;
28138
+ ask?: "followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
28139
+ say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "condense_context_error" | "codebase_search_result" | "user_edit_todos" | undefined;
28140
+ images?: string[] | undefined;
28141
+ partial?: boolean | undefined;
28142
+ conversationHistoryIndex?: number | undefined;
28143
+ checkpoint?: Record<string, unknown> | undefined;
28144
+ progressStatus?: {
28145
+ text?: string | undefined;
28146
+ icon?: string | undefined;
28147
+ } | undefined;
28148
+ contextCondense?: {
28149
+ cost: number;
28150
+ prevContextTokens: number;
28151
+ newContextTokens: number;
28152
+ summary: string;
28153
+ } | undefined;
28154
+ isProtected?: boolean | undefined;
28155
+ apiProtocol?: "openai" | "anthropic" | undefined;
28156
+ metadata?: {
28157
+ gpt5?: {
28158
+ previous_response_id?: string | undefined;
28159
+ instructions?: string | undefined;
28160
+ reasoning_summary?: string | undefined;
28161
+ } | undefined;
28162
+ } | undefined;
28163
+ } | undefined;
28164
+ queuedMessages?: {
28165
+ text: string;
28166
+ timestamp: number;
28167
+ id: string;
28168
+ images?: string[] | undefined;
28169
+ }[] | undefined;
28170
+ childTaskId?: string | undefined;
28171
+ tokenUsage?: {
28172
+ totalTokensIn: number;
28173
+ totalTokensOut: number;
28174
+ totalCost: number;
28175
+ contextTokens: number;
28176
+ totalCacheWrites?: number | undefined;
28177
+ totalCacheReads?: number | undefined;
28178
+ } | undefined;
28179
+ };
28180
+ taskHistory: string[];
28181
+ instanceId: string;
28182
+ userId: string;
28183
+ workspacePath: string;
28184
+ appProperties: {
28185
+ appName: string;
28186
+ appVersion: string;
28187
+ vscodeVersion: string;
28188
+ platform: string;
28189
+ editorName: string;
28190
+ hostname?: string | undefined;
28191
+ };
28192
+ lastHeartbeat: number;
28193
+ modes?: {
28194
+ name: string;
28195
+ slug: string;
28196
+ }[] | undefined;
28197
+ mode?: string | undefined;
28198
+ providerProfiles?: {
28199
+ name: string;
28200
+ provider?: string | undefined;
28201
+ }[] | undefined;
28202
+ taskAsk?: {
28203
+ type: "ask" | "say";
28204
+ ts: number;
28205
+ text?: string | undefined;
28206
+ reasoning?: string | undefined;
28207
+ ask?: "followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
28208
+ say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "condense_context_error" | "codebase_search_result" | "user_edit_todos" | undefined;
28209
+ images?: string[] | undefined;
28210
+ partial?: boolean | undefined;
28211
+ conversationHistoryIndex?: number | undefined;
28212
+ checkpoint?: Record<string, unknown> | undefined;
28213
+ progressStatus?: {
28214
+ text?: string | undefined;
28215
+ icon?: string | undefined;
28216
+ } | undefined;
28217
+ contextCondense?: {
28218
+ cost: number;
28219
+ prevContextTokens: number;
28220
+ newContextTokens: number;
28221
+ summary: string;
28222
+ } | undefined;
28223
+ isProtected?: boolean | undefined;
28224
+ apiProtocol?: "openai" | "anthropic" | undefined;
28225
+ metadata?: {
28226
+ gpt5?: {
28227
+ previous_response_id?: string | undefined;
28228
+ instructions?: string | undefined;
28229
+ reasoning_summary?: string | undefined;
28230
+ } | undefined;
28231
+ } | undefined;
28232
+ } | undefined;
28233
+ gitProperties?: {
28234
+ repositoryUrl?: string | undefined;
28235
+ repositoryName?: string | undefined;
28236
+ defaultBranch?: string | undefined;
28237
+ } | undefined;
28238
+ providerProfile?: string | undefined;
28239
+ }>;
28240
+ timestamp: z.ZodNumber;
28241
+ }, "strip", z.ZodTypeAny, {
28242
+ type: ExtensionBridgeEventName.TaskIdle;
28243
+ timestamp: number;
28244
+ instance: {
28245
+ task: {
28246
+ taskId: string;
28247
+ taskStatus: TaskStatus;
28248
+ images?: string[] | undefined;
28249
+ parentTaskId?: string | undefined;
28250
+ task?: string | undefined;
28251
+ taskAsk?: {
28252
+ type: "ask" | "say";
28253
+ ts: number;
28254
+ text?: string | undefined;
28255
+ reasoning?: string | undefined;
28256
+ ask?: "followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
28257
+ say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "condense_context_error" | "codebase_search_result" | "user_edit_todos" | undefined;
28258
+ images?: string[] | undefined;
28259
+ partial?: boolean | undefined;
28260
+ conversationHistoryIndex?: number | undefined;
28261
+ checkpoint?: Record<string, unknown> | undefined;
28262
+ progressStatus?: {
28263
+ text?: string | undefined;
28264
+ icon?: string | undefined;
28265
+ } | undefined;
28266
+ contextCondense?: {
28267
+ cost: number;
28268
+ prevContextTokens: number;
28269
+ newContextTokens: number;
28270
+ summary: string;
28271
+ } | undefined;
28272
+ isProtected?: boolean | undefined;
28273
+ apiProtocol?: "openai" | "anthropic" | undefined;
28274
+ metadata?: {
28275
+ gpt5?: {
28276
+ previous_response_id?: string | undefined;
28277
+ instructions?: string | undefined;
28278
+ reasoning_summary?: string | undefined;
28279
+ } | undefined;
28280
+ } | undefined;
28281
+ } | undefined;
28282
+ queuedMessages?: {
28283
+ text: string;
28284
+ timestamp: number;
28285
+ id: string;
28286
+ images?: string[] | undefined;
28287
+ }[] | undefined;
28288
+ childTaskId?: string | undefined;
28289
+ tokenUsage?: {
28290
+ totalTokensIn: number;
28291
+ totalTokensOut: number;
28292
+ totalCost: number;
28293
+ contextTokens: number;
28294
+ totalCacheWrites?: number | undefined;
28295
+ totalCacheReads?: number | undefined;
28296
+ } | undefined;
28297
+ };
28298
+ taskHistory: string[];
28299
+ instanceId: string;
28300
+ userId: string;
28301
+ workspacePath: string;
28302
+ appProperties: {
28303
+ appName: string;
28304
+ appVersion: string;
28305
+ vscodeVersion: string;
28306
+ platform: string;
28307
+ editorName: string;
28308
+ hostname?: string | undefined;
28309
+ };
28310
+ lastHeartbeat: number;
28311
+ modes?: {
28312
+ name: string;
28313
+ slug: string;
28314
+ }[] | undefined;
28315
+ mode?: string | undefined;
28316
+ providerProfiles?: {
28317
+ name: string;
28318
+ provider?: string | undefined;
28319
+ }[] | undefined;
28320
+ taskAsk?: {
28321
+ type: "ask" | "say";
28322
+ ts: number;
28323
+ text?: string | undefined;
28324
+ reasoning?: string | undefined;
28325
+ ask?: "followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
28326
+ say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "condense_context_error" | "codebase_search_result" | "user_edit_todos" | undefined;
28327
+ images?: string[] | undefined;
28328
+ partial?: boolean | undefined;
28329
+ conversationHistoryIndex?: number | undefined;
28330
+ checkpoint?: Record<string, unknown> | undefined;
28331
+ progressStatus?: {
28332
+ text?: string | undefined;
28333
+ icon?: string | undefined;
28334
+ } | undefined;
28335
+ contextCondense?: {
28336
+ cost: number;
28337
+ prevContextTokens: number;
28338
+ newContextTokens: number;
28339
+ summary: string;
28340
+ } | undefined;
28341
+ isProtected?: boolean | undefined;
28342
+ apiProtocol?: "openai" | "anthropic" | undefined;
28343
+ metadata?: {
28344
+ gpt5?: {
28345
+ previous_response_id?: string | undefined;
28346
+ instructions?: string | undefined;
28347
+ reasoning_summary?: string | undefined;
28348
+ } | undefined;
28349
+ } | undefined;
28350
+ } | undefined;
28351
+ gitProperties?: {
28352
+ repositoryUrl?: string | undefined;
28353
+ repositoryName?: string | undefined;
28354
+ defaultBranch?: string | undefined;
28355
+ } | undefined;
28356
+ providerProfile?: string | undefined;
28357
+ };
28358
+ }, {
28359
+ type: ExtensionBridgeEventName.TaskIdle;
28360
+ timestamp: number;
28361
+ instance: {
28362
+ task: {
28363
+ taskId: string;
28364
+ taskStatus: TaskStatus;
28365
+ images?: string[] | undefined;
28366
+ parentTaskId?: string | undefined;
28367
+ task?: string | undefined;
28368
+ taskAsk?: {
28369
+ type: "ask" | "say";
28370
+ ts: number;
28371
+ text?: string | undefined;
28372
+ reasoning?: string | undefined;
28373
+ ask?: "followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
28374
+ say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "condense_context_error" | "codebase_search_result" | "user_edit_todos" | undefined;
28375
+ images?: string[] | undefined;
28376
+ partial?: boolean | undefined;
28377
+ conversationHistoryIndex?: number | undefined;
28378
+ checkpoint?: Record<string, unknown> | undefined;
28379
+ progressStatus?: {
28380
+ text?: string | undefined;
28381
+ icon?: string | undefined;
28382
+ } | undefined;
28383
+ contextCondense?: {
28384
+ cost: number;
28385
+ prevContextTokens: number;
28386
+ newContextTokens: number;
28387
+ summary: string;
28388
+ } | undefined;
28389
+ isProtected?: boolean | undefined;
28390
+ apiProtocol?: "openai" | "anthropic" | undefined;
28391
+ metadata?: {
28392
+ gpt5?: {
28393
+ previous_response_id?: string | undefined;
28394
+ instructions?: string | undefined;
28395
+ reasoning_summary?: string | undefined;
28396
+ } | undefined;
28397
+ } | undefined;
28398
+ } | undefined;
28399
+ queuedMessages?: {
28400
+ text: string;
28401
+ timestamp: number;
28402
+ id: string;
28403
+ images?: string[] | undefined;
28404
+ }[] | undefined;
28405
+ childTaskId?: string | undefined;
28406
+ tokenUsage?: {
28407
+ totalTokensIn: number;
28408
+ totalTokensOut: number;
28409
+ totalCost: number;
28410
+ contextTokens: number;
28411
+ totalCacheWrites?: number | undefined;
28412
+ totalCacheReads?: number | undefined;
28413
+ } | undefined;
28414
+ };
28415
+ taskHistory: string[];
28416
+ instanceId: string;
28417
+ userId: string;
28418
+ workspacePath: string;
28419
+ appProperties: {
28420
+ appName: string;
28421
+ appVersion: string;
28422
+ vscodeVersion: string;
28423
+ platform: string;
28424
+ editorName: string;
28425
+ hostname?: string | undefined;
28426
+ };
28427
+ lastHeartbeat: number;
28428
+ modes?: {
28429
+ name: string;
28430
+ slug: string;
28431
+ }[] | undefined;
28432
+ mode?: string | undefined;
28433
+ providerProfiles?: {
28434
+ name: string;
28435
+ provider?: string | undefined;
28436
+ }[] | undefined;
28437
+ taskAsk?: {
28438
+ type: "ask" | "say";
28439
+ ts: number;
28440
+ text?: string | undefined;
28441
+ reasoning?: string | undefined;
28442
+ ask?: "followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
28443
+ say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "condense_context_error" | "codebase_search_result" | "user_edit_todos" | undefined;
28444
+ images?: string[] | undefined;
28445
+ partial?: boolean | undefined;
28446
+ conversationHistoryIndex?: number | undefined;
28447
+ checkpoint?: Record<string, unknown> | undefined;
28448
+ progressStatus?: {
28449
+ text?: string | undefined;
28450
+ icon?: string | undefined;
28451
+ } | undefined;
28452
+ contextCondense?: {
28453
+ cost: number;
28454
+ prevContextTokens: number;
28455
+ newContextTokens: number;
28456
+ summary: string;
28457
+ } | undefined;
28458
+ isProtected?: boolean | undefined;
28459
+ apiProtocol?: "openai" | "anthropic" | undefined;
28460
+ metadata?: {
28461
+ gpt5?: {
28462
+ previous_response_id?: string | undefined;
28463
+ instructions?: string | undefined;
28464
+ reasoning_summary?: string | undefined;
28465
+ } | undefined;
28466
+ } | undefined;
28467
+ } | undefined;
28468
+ gitProperties?: {
28469
+ repositoryUrl?: string | undefined;
28470
+ repositoryName?: string | undefined;
28471
+ defaultBranch?: string | undefined;
28472
+ } | undefined;
28473
+ providerProfile?: string | undefined;
28474
+ };
28475
+ }>, z.ZodObject<{
28476
+ type: z.ZodLiteral<ExtensionBridgeEventName.TaskPaused>;
28477
+ instance: z.ZodObject<{
28478
+ instanceId: z.ZodString;
28479
+ userId: z.ZodString;
28480
+ workspacePath: z.ZodString;
28481
+ appProperties: z.ZodObject<{
28482
+ appName: z.ZodString;
28483
+ appVersion: z.ZodString;
28484
+ vscodeVersion: z.ZodString;
28485
+ platform: z.ZodString;
28486
+ editorName: z.ZodString;
28487
+ hostname: z.ZodOptional<z.ZodString>;
28488
+ }, "strip", z.ZodTypeAny, {
28489
+ appName: string;
28490
+ appVersion: string;
28491
+ vscodeVersion: string;
28492
+ platform: string;
28493
+ editorName: string;
28494
+ hostname?: string | undefined;
28495
+ }, {
28496
+ appName: string;
28497
+ appVersion: string;
28498
+ vscodeVersion: string;
28499
+ platform: string;
28500
+ editorName: string;
28501
+ hostname?: string | undefined;
28502
+ }>;
28503
+ gitProperties: z.ZodOptional<z.ZodObject<{
28504
+ repositoryUrl: z.ZodOptional<z.ZodString>;
28505
+ repositoryName: z.ZodOptional<z.ZodString>;
28506
+ defaultBranch: z.ZodOptional<z.ZodString>;
28507
+ }, "strip", z.ZodTypeAny, {
28508
+ repositoryUrl?: string | undefined;
28509
+ repositoryName?: string | undefined;
28510
+ defaultBranch?: string | undefined;
28511
+ }, {
28512
+ repositoryUrl?: string | undefined;
28513
+ repositoryName?: string | undefined;
28514
+ defaultBranch?: string | undefined;
28515
+ }>>;
28516
+ lastHeartbeat: z.ZodNumber;
28517
+ task: z.ZodObject<{
28518
+ task: z.ZodOptional<z.ZodString>;
28519
+ images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28520
+ taskId: z.ZodString;
28521
+ taskStatus: z.ZodNativeEnum<typeof TaskStatus>;
28522
+ taskAsk: z.ZodOptional<z.ZodObject<{
28523
+ ts: z.ZodNumber;
28524
+ type: z.ZodUnion<[z.ZodLiteral<"ask">, z.ZodLiteral<"say">]>;
28525
+ ask: z.ZodOptional<z.ZodEnum<["followup", "command", "command_output", "completion_result", "tool", "api_req_failed", "resume_task", "resume_completed_task", "mistake_limit_reached", "browser_action_launch", "use_mcp_server", "auto_approval_max_req_reached"]>>;
28526
+ say: z.ZodOptional<z.ZodEnum<["error", "api_req_started", "api_req_finished", "api_req_retried", "api_req_retry_delayed", "api_req_deleted", "text", "image", "reasoning", "completion_result", "user_feedback", "user_feedback_diff", "command_output", "shell_integration_warning", "browser_action", "browser_action_result", "mcp_server_request_started", "mcp_server_response", "subtask_result", "checkpoint_saved", "rooignore_error", "diff_error", "condense_context", "condense_context_error", "codebase_search_result", "user_edit_todos"]>>;
28527
+ text: z.ZodOptional<z.ZodString>;
28528
+ images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28529
+ partial: z.ZodOptional<z.ZodBoolean>;
28530
+ reasoning: z.ZodOptional<z.ZodString>;
28531
+ conversationHistoryIndex: z.ZodOptional<z.ZodNumber>;
28532
+ checkpoint: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
28533
+ progressStatus: z.ZodOptional<z.ZodObject<{
28534
+ icon: z.ZodOptional<z.ZodString>;
28535
+ text: z.ZodOptional<z.ZodString>;
28536
+ }, "strip", z.ZodTypeAny, {
28537
+ text?: string | undefined;
28538
+ icon?: string | undefined;
28539
+ }, {
28540
+ text?: string | undefined;
28541
+ icon?: string | undefined;
28542
+ }>>;
28543
+ contextCondense: z.ZodOptional<z.ZodObject<{
28544
+ cost: z.ZodNumber;
28545
+ prevContextTokens: z.ZodNumber;
28546
+ newContextTokens: z.ZodNumber;
28547
+ summary: z.ZodString;
28548
+ }, "strip", z.ZodTypeAny, {
28549
+ cost: number;
28550
+ prevContextTokens: number;
28551
+ newContextTokens: number;
28552
+ summary: string;
28553
+ }, {
28554
+ cost: number;
28555
+ prevContextTokens: number;
28556
+ newContextTokens: number;
28557
+ summary: string;
28558
+ }>>;
28559
+ isProtected: z.ZodOptional<z.ZodBoolean>;
28560
+ apiProtocol: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"openai">, z.ZodLiteral<"anthropic">]>>;
28561
+ metadata: z.ZodOptional<z.ZodObject<{
28562
+ gpt5: z.ZodOptional<z.ZodObject<{
28563
+ previous_response_id: z.ZodOptional<z.ZodString>;
28564
+ instructions: z.ZodOptional<z.ZodString>;
28565
+ reasoning_summary: z.ZodOptional<z.ZodString>;
28566
+ }, "strip", z.ZodTypeAny, {
28567
+ previous_response_id?: string | undefined;
28568
+ instructions?: string | undefined;
28569
+ reasoning_summary?: string | undefined;
28570
+ }, {
28571
+ previous_response_id?: string | undefined;
28572
+ instructions?: string | undefined;
28573
+ reasoning_summary?: string | undefined;
28574
+ }>>;
28575
+ }, "strip", z.ZodTypeAny, {
28576
+ gpt5?: {
28577
+ previous_response_id?: string | undefined;
28578
+ instructions?: string | undefined;
28579
+ reasoning_summary?: string | undefined;
28580
+ } | undefined;
28581
+ }, {
28582
+ gpt5?: {
28583
+ previous_response_id?: string | undefined;
28584
+ instructions?: string | undefined;
28585
+ reasoning_summary?: string | undefined;
28586
+ } | undefined;
28587
+ }>>;
28588
+ }, "strip", z.ZodTypeAny, {
28589
+ type: "ask" | "say";
28590
+ ts: number;
28591
+ text?: string | undefined;
28592
+ reasoning?: string | undefined;
28593
+ ask?: "followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
28594
+ say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "condense_context_error" | "codebase_search_result" | "user_edit_todos" | undefined;
28595
+ images?: string[] | undefined;
28596
+ partial?: boolean | undefined;
28597
+ conversationHistoryIndex?: number | undefined;
28598
+ checkpoint?: Record<string, unknown> | undefined;
28599
+ progressStatus?: {
28600
+ text?: string | undefined;
28601
+ icon?: string | undefined;
28602
+ } | undefined;
28603
+ contextCondense?: {
28604
+ cost: number;
28605
+ prevContextTokens: number;
28606
+ newContextTokens: number;
28607
+ summary: string;
28608
+ } | undefined;
28609
+ isProtected?: boolean | undefined;
28610
+ apiProtocol?: "openai" | "anthropic" | undefined;
28611
+ metadata?: {
28612
+ gpt5?: {
28613
+ previous_response_id?: string | undefined;
28614
+ instructions?: string | undefined;
28615
+ reasoning_summary?: string | undefined;
28616
+ } | undefined;
28617
+ } | undefined;
28618
+ }, {
28619
+ type: "ask" | "say";
28620
+ ts: number;
28621
+ text?: string | undefined;
28622
+ reasoning?: string | undefined;
28623
+ ask?: "followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
28624
+ say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "condense_context_error" | "codebase_search_result" | "user_edit_todos" | undefined;
28625
+ images?: string[] | undefined;
28626
+ partial?: boolean | undefined;
28627
+ conversationHistoryIndex?: number | undefined;
28628
+ checkpoint?: Record<string, unknown> | undefined;
28629
+ progressStatus?: {
28630
+ text?: string | undefined;
28631
+ icon?: string | undefined;
28632
+ } | undefined;
28633
+ contextCondense?: {
28634
+ cost: number;
28635
+ prevContextTokens: number;
28636
+ newContextTokens: number;
28637
+ summary: string;
28638
+ } | undefined;
28639
+ isProtected?: boolean | undefined;
28640
+ apiProtocol?: "openai" | "anthropic" | undefined;
28641
+ metadata?: {
28642
+ gpt5?: {
28643
+ previous_response_id?: string | undefined;
28644
+ instructions?: string | undefined;
28645
+ reasoning_summary?: string | undefined;
28646
+ } | undefined;
28647
+ } | undefined;
28648
+ }>>;
28649
+ queuedMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
28650
+ timestamp: z.ZodNumber;
28651
+ id: z.ZodString;
28652
+ text: z.ZodString;
28653
+ images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28654
+ }, "strip", z.ZodTypeAny, {
28655
+ text: string;
28656
+ timestamp: number;
28657
+ id: string;
28658
+ images?: string[] | undefined;
28659
+ }, {
28660
+ text: string;
28661
+ timestamp: number;
28662
+ id: string;
28663
+ images?: string[] | undefined;
28664
+ }>, "many">>;
28665
+ parentTaskId: z.ZodOptional<z.ZodString>;
28666
+ childTaskId: z.ZodOptional<z.ZodString>;
28667
+ tokenUsage: z.ZodOptional<z.ZodObject<{
28668
+ totalTokensIn: z.ZodNumber;
28669
+ totalTokensOut: z.ZodNumber;
28670
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
28671
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
28672
+ totalCost: z.ZodNumber;
28673
+ contextTokens: z.ZodNumber;
28674
+ }, "strip", z.ZodTypeAny, {
28675
+ totalTokensIn: number;
28676
+ totalTokensOut: number;
28677
+ totalCost: number;
28678
+ contextTokens: number;
28679
+ totalCacheWrites?: number | undefined;
28680
+ totalCacheReads?: number | undefined;
28681
+ }, {
28682
+ totalTokensIn: number;
28683
+ totalTokensOut: number;
28684
+ totalCost: number;
28685
+ contextTokens: number;
28686
+ totalCacheWrites?: number | undefined;
28687
+ totalCacheReads?: number | undefined;
28688
+ }>>;
28689
+ }, "strip", z.ZodTypeAny, {
28690
+ taskId: string;
28691
+ taskStatus: TaskStatus;
28692
+ images?: string[] | undefined;
28693
+ parentTaskId?: string | undefined;
28694
+ task?: string | undefined;
28695
+ taskAsk?: {
28696
+ type: "ask" | "say";
28697
+ ts: number;
28698
+ text?: string | undefined;
28699
+ reasoning?: string | undefined;
28700
+ ask?: "followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
28701
+ say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "condense_context_error" | "codebase_search_result" | "user_edit_todos" | undefined;
28702
+ images?: string[] | undefined;
28703
+ partial?: boolean | undefined;
28704
+ conversationHistoryIndex?: number | undefined;
28705
+ checkpoint?: Record<string, unknown> | undefined;
28706
+ progressStatus?: {
28707
+ text?: string | undefined;
28708
+ icon?: string | undefined;
28709
+ } | undefined;
28710
+ contextCondense?: {
28711
+ cost: number;
28712
+ prevContextTokens: number;
28713
+ newContextTokens: number;
28714
+ summary: string;
28715
+ } | undefined;
28716
+ isProtected?: boolean | undefined;
28717
+ apiProtocol?: "openai" | "anthropic" | undefined;
28718
+ metadata?: {
28719
+ gpt5?: {
28720
+ previous_response_id?: string | undefined;
28721
+ instructions?: string | undefined;
28722
+ reasoning_summary?: string | undefined;
28723
+ } | undefined;
28724
+ } | undefined;
28725
+ } | undefined;
28726
+ queuedMessages?: {
28727
+ text: string;
28728
+ timestamp: number;
28729
+ id: string;
28730
+ images?: string[] | undefined;
28731
+ }[] | undefined;
28732
+ childTaskId?: string | undefined;
28733
+ tokenUsage?: {
28734
+ totalTokensIn: number;
28735
+ totalTokensOut: number;
28736
+ totalCost: number;
28737
+ contextTokens: number;
28738
+ totalCacheWrites?: number | undefined;
28739
+ totalCacheReads?: number | undefined;
28740
+ } | undefined;
28741
+ }, {
28742
+ taskId: string;
28743
+ taskStatus: TaskStatus;
28744
+ images?: string[] | undefined;
28745
+ parentTaskId?: string | undefined;
28746
+ task?: string | undefined;
28747
+ taskAsk?: {
28748
+ type: "ask" | "say";
28749
+ ts: number;
28750
+ text?: string | undefined;
28751
+ reasoning?: string | undefined;
28752
+ ask?: "followup" | "command" | "command_output" | "completion_result" | "tool" | "api_req_failed" | "resume_task" | "resume_completed_task" | "mistake_limit_reached" | "browser_action_launch" | "use_mcp_server" | "auto_approval_max_req_reached" | undefined;
28753
+ say?: "command_output" | "completion_result" | "error" | "api_req_started" | "api_req_finished" | "api_req_retried" | "api_req_retry_delayed" | "api_req_deleted" | "text" | "image" | "reasoning" | "user_feedback" | "user_feedback_diff" | "shell_integration_warning" | "browser_action" | "browser_action_result" | "mcp_server_request_started" | "mcp_server_response" | "subtask_result" | "checkpoint_saved" | "rooignore_error" | "diff_error" | "condense_context" | "condense_context_error" | "codebase_search_result" | "user_edit_todos" | undefined;
28754
+ images?: string[] | undefined;
28755
+ partial?: boolean | undefined;
28756
+ conversationHistoryIndex?: number | undefined;
28757
+ checkpoint?: Record<string, unknown> | undefined;
28758
+ progressStatus?: {
28759
+ text?: string | undefined;
28760
+ icon?: string | undefined;
28761
+ } | undefined;
28762
+ contextCondense?: {
28763
+ cost: number;
28764
+ prevContextTokens: number;
28765
+ newContextTokens: number;
28766
+ summary: string;
28767
+ } | undefined;
28768
+ isProtected?: boolean | undefined;
28769
+ apiProtocol?: "openai" | "anthropic" | undefined;
28770
+ metadata?: {
28771
+ gpt5?: {
28772
+ previous_response_id?: string | undefined;
28773
+ instructions?: string | undefined;
28774
+ reasoning_summary?: string | undefined;
28775
+ } | undefined;
28776
+ } | undefined;
28777
+ } | undefined;
28778
+ queuedMessages?: {
28779
+ text: string;
28780
+ timestamp: number;
28781
+ id: string;
28782
+ images?: string[] | undefined;
28783
+ }[] | undefined;
28784
+ childTaskId?: string | undefined;
28785
+ tokenUsage?: {
28786
+ totalTokensIn: number;
28787
+ totalTokensOut: number;
28788
+ totalCost: number;
28789
+ contextTokens: number;
28790
+ totalCacheWrites?: number | undefined;
28791
+ totalCacheReads?: number | undefined;
28792
+ } | undefined;
27004
28793
  }>;
27005
28794
  taskAsk: z.ZodOptional<z.ZodObject<{
27006
28795
  ts: z.ZodNumber;
@@ -27197,6 +28986,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
27197
28986
  images?: string[] | undefined;
27198
28987
  }[] | undefined;
27199
28988
  childTaskId?: string | undefined;
28989
+ tokenUsage?: {
28990
+ totalTokensIn: number;
28991
+ totalTokensOut: number;
28992
+ totalCost: number;
28993
+ contextTokens: number;
28994
+ totalCacheWrites?: number | undefined;
28995
+ totalCacheReads?: number | undefined;
28996
+ } | undefined;
27200
28997
  };
27201
28998
  taskHistory: string[];
27202
28999
  instanceId: string;
@@ -27208,6 +29005,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
27208
29005
  vscodeVersion: string;
27209
29006
  platform: string;
27210
29007
  editorName: string;
29008
+ hostname?: string | undefined;
27211
29009
  };
27212
29010
  lastHeartbeat: number;
27213
29011
  modes?: {
@@ -27301,6 +29099,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
27301
29099
  images?: string[] | undefined;
27302
29100
  }[] | undefined;
27303
29101
  childTaskId?: string | undefined;
29102
+ tokenUsage?: {
29103
+ totalTokensIn: number;
29104
+ totalTokensOut: number;
29105
+ totalCost: number;
29106
+ contextTokens: number;
29107
+ totalCacheWrites?: number | undefined;
29108
+ totalCacheReads?: number | undefined;
29109
+ } | undefined;
27304
29110
  };
27305
29111
  taskHistory: string[];
27306
29112
  instanceId: string;
@@ -27312,6 +29118,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
27312
29118
  vscodeVersion: string;
27313
29119
  platform: string;
27314
29120
  editorName: string;
29121
+ hostname?: string | undefined;
27315
29122
  };
27316
29123
  lastHeartbeat: number;
27317
29124
  modes?: {
@@ -27363,7 +29170,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
27363
29170
  }>;
27364
29171
  timestamp: z.ZodNumber;
27365
29172
  }, "strip", z.ZodTypeAny, {
27366
- type: ExtensionBridgeEventName.TaskIdle;
29173
+ type: ExtensionBridgeEventName.TaskPaused;
27367
29174
  timestamp: number;
27368
29175
  instance: {
27369
29176
  task: {
@@ -27410,6 +29217,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
27410
29217
  images?: string[] | undefined;
27411
29218
  }[] | undefined;
27412
29219
  childTaskId?: string | undefined;
29220
+ tokenUsage?: {
29221
+ totalTokensIn: number;
29222
+ totalTokensOut: number;
29223
+ totalCost: number;
29224
+ contextTokens: number;
29225
+ totalCacheWrites?: number | undefined;
29226
+ totalCacheReads?: number | undefined;
29227
+ } | undefined;
27413
29228
  };
27414
29229
  taskHistory: string[];
27415
29230
  instanceId: string;
@@ -27421,6 +29236,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
27421
29236
  vscodeVersion: string;
27422
29237
  platform: string;
27423
29238
  editorName: string;
29239
+ hostname?: string | undefined;
27424
29240
  };
27425
29241
  lastHeartbeat: number;
27426
29242
  modes?: {
@@ -27471,7 +29287,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
27471
29287
  providerProfile?: string | undefined;
27472
29288
  };
27473
29289
  }, {
27474
- type: ExtensionBridgeEventName.TaskIdle;
29290
+ type: ExtensionBridgeEventName.TaskPaused;
27475
29291
  timestamp: number;
27476
29292
  instance: {
27477
29293
  task: {
@@ -27518,6 +29334,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
27518
29334
  images?: string[] | undefined;
27519
29335
  }[] | undefined;
27520
29336
  childTaskId?: string | undefined;
29337
+ tokenUsage?: {
29338
+ totalTokensIn: number;
29339
+ totalTokensOut: number;
29340
+ totalCost: number;
29341
+ contextTokens: number;
29342
+ totalCacheWrites?: number | undefined;
29343
+ totalCacheReads?: number | undefined;
29344
+ } | undefined;
27521
29345
  };
27522
29346
  taskHistory: string[];
27523
29347
  instanceId: string;
@@ -27529,6 +29353,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
27529
29353
  vscodeVersion: string;
27530
29354
  platform: string;
27531
29355
  editorName: string;
29356
+ hostname?: string | undefined;
27532
29357
  };
27533
29358
  lastHeartbeat: number;
27534
29359
  modes?: {
@@ -27579,7 +29404,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
27579
29404
  providerProfile?: string | undefined;
27580
29405
  };
27581
29406
  }>, z.ZodObject<{
27582
- type: z.ZodLiteral<ExtensionBridgeEventName.TaskPaused>;
29407
+ type: z.ZodLiteral<ExtensionBridgeEventName.TaskUnpaused>;
27583
29408
  instance: z.ZodObject<{
27584
29409
  instanceId: z.ZodString;
27585
29410
  userId: z.ZodString;
@@ -27590,18 +29415,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
27590
29415
  vscodeVersion: z.ZodString;
27591
29416
  platform: z.ZodString;
27592
29417
  editorName: z.ZodString;
29418
+ hostname: z.ZodOptional<z.ZodString>;
27593
29419
  }, "strip", z.ZodTypeAny, {
27594
29420
  appName: string;
27595
29421
  appVersion: string;
27596
29422
  vscodeVersion: string;
27597
29423
  platform: string;
27598
29424
  editorName: string;
29425
+ hostname?: string | undefined;
27599
29426
  }, {
27600
29427
  appName: string;
27601
29428
  appVersion: string;
27602
29429
  vscodeVersion: string;
27603
29430
  platform: string;
27604
29431
  editorName: string;
29432
+ hostname?: string | undefined;
27605
29433
  }>;
27606
29434
  gitProperties: z.ZodOptional<z.ZodObject<{
27607
29435
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -27767,6 +29595,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
27767
29595
  }>, "many">>;
27768
29596
  parentTaskId: z.ZodOptional<z.ZodString>;
27769
29597
  childTaskId: z.ZodOptional<z.ZodString>;
29598
+ tokenUsage: z.ZodOptional<z.ZodObject<{
29599
+ totalTokensIn: z.ZodNumber;
29600
+ totalTokensOut: z.ZodNumber;
29601
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
29602
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
29603
+ totalCost: z.ZodNumber;
29604
+ contextTokens: z.ZodNumber;
29605
+ }, "strip", z.ZodTypeAny, {
29606
+ totalTokensIn: number;
29607
+ totalTokensOut: number;
29608
+ totalCost: number;
29609
+ contextTokens: number;
29610
+ totalCacheWrites?: number | undefined;
29611
+ totalCacheReads?: number | undefined;
29612
+ }, {
29613
+ totalTokensIn: number;
29614
+ totalTokensOut: number;
29615
+ totalCost: number;
29616
+ contextTokens: number;
29617
+ totalCacheWrites?: number | undefined;
29618
+ totalCacheReads?: number | undefined;
29619
+ }>>;
27770
29620
  }, "strip", z.ZodTypeAny, {
27771
29621
  taskId: string;
27772
29622
  taskStatus: TaskStatus;
@@ -27811,6 +29661,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
27811
29661
  images?: string[] | undefined;
27812
29662
  }[] | undefined;
27813
29663
  childTaskId?: string | undefined;
29664
+ tokenUsage?: {
29665
+ totalTokensIn: number;
29666
+ totalTokensOut: number;
29667
+ totalCost: number;
29668
+ contextTokens: number;
29669
+ totalCacheWrites?: number | undefined;
29670
+ totalCacheReads?: number | undefined;
29671
+ } | undefined;
27814
29672
  }, {
27815
29673
  taskId: string;
27816
29674
  taskStatus: TaskStatus;
@@ -27855,6 +29713,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
27855
29713
  images?: string[] | undefined;
27856
29714
  }[] | undefined;
27857
29715
  childTaskId?: string | undefined;
29716
+ tokenUsage?: {
29717
+ totalTokensIn: number;
29718
+ totalTokensOut: number;
29719
+ totalCost: number;
29720
+ contextTokens: number;
29721
+ totalCacheWrites?: number | undefined;
29722
+ totalCacheReads?: number | undefined;
29723
+ } | undefined;
27858
29724
  }>;
27859
29725
  taskAsk: z.ZodOptional<z.ZodObject<{
27860
29726
  ts: z.ZodNumber;
@@ -28051,6 +29917,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
28051
29917
  images?: string[] | undefined;
28052
29918
  }[] | undefined;
28053
29919
  childTaskId?: string | undefined;
29920
+ tokenUsage?: {
29921
+ totalTokensIn: number;
29922
+ totalTokensOut: number;
29923
+ totalCost: number;
29924
+ contextTokens: number;
29925
+ totalCacheWrites?: number | undefined;
29926
+ totalCacheReads?: number | undefined;
29927
+ } | undefined;
28054
29928
  };
28055
29929
  taskHistory: string[];
28056
29930
  instanceId: string;
@@ -28062,6 +29936,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
28062
29936
  vscodeVersion: string;
28063
29937
  platform: string;
28064
29938
  editorName: string;
29939
+ hostname?: string | undefined;
28065
29940
  };
28066
29941
  lastHeartbeat: number;
28067
29942
  modes?: {
@@ -28155,6 +30030,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
28155
30030
  images?: string[] | undefined;
28156
30031
  }[] | undefined;
28157
30032
  childTaskId?: string | undefined;
30033
+ tokenUsage?: {
30034
+ totalTokensIn: number;
30035
+ totalTokensOut: number;
30036
+ totalCost: number;
30037
+ contextTokens: number;
30038
+ totalCacheWrites?: number | undefined;
30039
+ totalCacheReads?: number | undefined;
30040
+ } | undefined;
28158
30041
  };
28159
30042
  taskHistory: string[];
28160
30043
  instanceId: string;
@@ -28166,6 +30049,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
28166
30049
  vscodeVersion: string;
28167
30050
  platform: string;
28168
30051
  editorName: string;
30052
+ hostname?: string | undefined;
28169
30053
  };
28170
30054
  lastHeartbeat: number;
28171
30055
  modes?: {
@@ -28217,7 +30101,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
28217
30101
  }>;
28218
30102
  timestamp: z.ZodNumber;
28219
30103
  }, "strip", z.ZodTypeAny, {
28220
- type: ExtensionBridgeEventName.TaskPaused;
30104
+ type: ExtensionBridgeEventName.TaskUnpaused;
28221
30105
  timestamp: number;
28222
30106
  instance: {
28223
30107
  task: {
@@ -28264,6 +30148,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
28264
30148
  images?: string[] | undefined;
28265
30149
  }[] | undefined;
28266
30150
  childTaskId?: string | undefined;
30151
+ tokenUsage?: {
30152
+ totalTokensIn: number;
30153
+ totalTokensOut: number;
30154
+ totalCost: number;
30155
+ contextTokens: number;
30156
+ totalCacheWrites?: number | undefined;
30157
+ totalCacheReads?: number | undefined;
30158
+ } | undefined;
28267
30159
  };
28268
30160
  taskHistory: string[];
28269
30161
  instanceId: string;
@@ -28275,6 +30167,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
28275
30167
  vscodeVersion: string;
28276
30168
  platform: string;
28277
30169
  editorName: string;
30170
+ hostname?: string | undefined;
28278
30171
  };
28279
30172
  lastHeartbeat: number;
28280
30173
  modes?: {
@@ -28325,7 +30218,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
28325
30218
  providerProfile?: string | undefined;
28326
30219
  };
28327
30220
  }, {
28328
- type: ExtensionBridgeEventName.TaskPaused;
30221
+ type: ExtensionBridgeEventName.TaskUnpaused;
28329
30222
  timestamp: number;
28330
30223
  instance: {
28331
30224
  task: {
@@ -28372,6 +30265,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
28372
30265
  images?: string[] | undefined;
28373
30266
  }[] | undefined;
28374
30267
  childTaskId?: string | undefined;
30268
+ tokenUsage?: {
30269
+ totalTokensIn: number;
30270
+ totalTokensOut: number;
30271
+ totalCost: number;
30272
+ contextTokens: number;
30273
+ totalCacheWrites?: number | undefined;
30274
+ totalCacheReads?: number | undefined;
30275
+ } | undefined;
28375
30276
  };
28376
30277
  taskHistory: string[];
28377
30278
  instanceId: string;
@@ -28383,6 +30284,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
28383
30284
  vscodeVersion: string;
28384
30285
  platform: string;
28385
30286
  editorName: string;
30287
+ hostname?: string | undefined;
28386
30288
  };
28387
30289
  lastHeartbeat: number;
28388
30290
  modes?: {
@@ -28433,7 +30335,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
28433
30335
  providerProfile?: string | undefined;
28434
30336
  };
28435
30337
  }>, z.ZodObject<{
28436
- type: z.ZodLiteral<ExtensionBridgeEventName.TaskUnpaused>;
30338
+ type: z.ZodLiteral<ExtensionBridgeEventName.TaskSpawned>;
28437
30339
  instance: z.ZodObject<{
28438
30340
  instanceId: z.ZodString;
28439
30341
  userId: z.ZodString;
@@ -28444,18 +30346,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
28444
30346
  vscodeVersion: z.ZodString;
28445
30347
  platform: z.ZodString;
28446
30348
  editorName: z.ZodString;
30349
+ hostname: z.ZodOptional<z.ZodString>;
28447
30350
  }, "strip", z.ZodTypeAny, {
28448
30351
  appName: string;
28449
30352
  appVersion: string;
28450
30353
  vscodeVersion: string;
28451
30354
  platform: string;
28452
30355
  editorName: string;
30356
+ hostname?: string | undefined;
28453
30357
  }, {
28454
30358
  appName: string;
28455
30359
  appVersion: string;
28456
30360
  vscodeVersion: string;
28457
30361
  platform: string;
28458
30362
  editorName: string;
30363
+ hostname?: string | undefined;
28459
30364
  }>;
28460
30365
  gitProperties: z.ZodOptional<z.ZodObject<{
28461
30366
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -28621,6 +30526,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
28621
30526
  }>, "many">>;
28622
30527
  parentTaskId: z.ZodOptional<z.ZodString>;
28623
30528
  childTaskId: z.ZodOptional<z.ZodString>;
30529
+ tokenUsage: z.ZodOptional<z.ZodObject<{
30530
+ totalTokensIn: z.ZodNumber;
30531
+ totalTokensOut: z.ZodNumber;
30532
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
30533
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
30534
+ totalCost: z.ZodNumber;
30535
+ contextTokens: z.ZodNumber;
30536
+ }, "strip", z.ZodTypeAny, {
30537
+ totalTokensIn: number;
30538
+ totalTokensOut: number;
30539
+ totalCost: number;
30540
+ contextTokens: number;
30541
+ totalCacheWrites?: number | undefined;
30542
+ totalCacheReads?: number | undefined;
30543
+ }, {
30544
+ totalTokensIn: number;
30545
+ totalTokensOut: number;
30546
+ totalCost: number;
30547
+ contextTokens: number;
30548
+ totalCacheWrites?: number | undefined;
30549
+ totalCacheReads?: number | undefined;
30550
+ }>>;
28624
30551
  }, "strip", z.ZodTypeAny, {
28625
30552
  taskId: string;
28626
30553
  taskStatus: TaskStatus;
@@ -28665,6 +30592,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
28665
30592
  images?: string[] | undefined;
28666
30593
  }[] | undefined;
28667
30594
  childTaskId?: string | undefined;
30595
+ tokenUsage?: {
30596
+ totalTokensIn: number;
30597
+ totalTokensOut: number;
30598
+ totalCost: number;
30599
+ contextTokens: number;
30600
+ totalCacheWrites?: number | undefined;
30601
+ totalCacheReads?: number | undefined;
30602
+ } | undefined;
28668
30603
  }, {
28669
30604
  taskId: string;
28670
30605
  taskStatus: TaskStatus;
@@ -28709,6 +30644,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
28709
30644
  images?: string[] | undefined;
28710
30645
  }[] | undefined;
28711
30646
  childTaskId?: string | undefined;
30647
+ tokenUsage?: {
30648
+ totalTokensIn: number;
30649
+ totalTokensOut: number;
30650
+ totalCost: number;
30651
+ contextTokens: number;
30652
+ totalCacheWrites?: number | undefined;
30653
+ totalCacheReads?: number | undefined;
30654
+ } | undefined;
28712
30655
  }>;
28713
30656
  taskAsk: z.ZodOptional<z.ZodObject<{
28714
30657
  ts: z.ZodNumber;
@@ -28905,6 +30848,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
28905
30848
  images?: string[] | undefined;
28906
30849
  }[] | undefined;
28907
30850
  childTaskId?: string | undefined;
30851
+ tokenUsage?: {
30852
+ totalTokensIn: number;
30853
+ totalTokensOut: number;
30854
+ totalCost: number;
30855
+ contextTokens: number;
30856
+ totalCacheWrites?: number | undefined;
30857
+ totalCacheReads?: number | undefined;
30858
+ } | undefined;
28908
30859
  };
28909
30860
  taskHistory: string[];
28910
30861
  instanceId: string;
@@ -28916,6 +30867,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
28916
30867
  vscodeVersion: string;
28917
30868
  platform: string;
28918
30869
  editorName: string;
30870
+ hostname?: string | undefined;
28919
30871
  };
28920
30872
  lastHeartbeat: number;
28921
30873
  modes?: {
@@ -29009,6 +30961,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29009
30961
  images?: string[] | undefined;
29010
30962
  }[] | undefined;
29011
30963
  childTaskId?: string | undefined;
30964
+ tokenUsage?: {
30965
+ totalTokensIn: number;
30966
+ totalTokensOut: number;
30967
+ totalCost: number;
30968
+ contextTokens: number;
30969
+ totalCacheWrites?: number | undefined;
30970
+ totalCacheReads?: number | undefined;
30971
+ } | undefined;
29012
30972
  };
29013
30973
  taskHistory: string[];
29014
30974
  instanceId: string;
@@ -29020,6 +30980,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29020
30980
  vscodeVersion: string;
29021
30981
  platform: string;
29022
30982
  editorName: string;
30983
+ hostname?: string | undefined;
29023
30984
  };
29024
30985
  lastHeartbeat: number;
29025
30986
  modes?: {
@@ -29071,7 +31032,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29071
31032
  }>;
29072
31033
  timestamp: z.ZodNumber;
29073
31034
  }, "strip", z.ZodTypeAny, {
29074
- type: ExtensionBridgeEventName.TaskUnpaused;
31035
+ type: ExtensionBridgeEventName.TaskSpawned;
29075
31036
  timestamp: number;
29076
31037
  instance: {
29077
31038
  task: {
@@ -29118,6 +31079,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29118
31079
  images?: string[] | undefined;
29119
31080
  }[] | undefined;
29120
31081
  childTaskId?: string | undefined;
31082
+ tokenUsage?: {
31083
+ totalTokensIn: number;
31084
+ totalTokensOut: number;
31085
+ totalCost: number;
31086
+ contextTokens: number;
31087
+ totalCacheWrites?: number | undefined;
31088
+ totalCacheReads?: number | undefined;
31089
+ } | undefined;
29121
31090
  };
29122
31091
  taskHistory: string[];
29123
31092
  instanceId: string;
@@ -29129,6 +31098,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29129
31098
  vscodeVersion: string;
29130
31099
  platform: string;
29131
31100
  editorName: string;
31101
+ hostname?: string | undefined;
29132
31102
  };
29133
31103
  lastHeartbeat: number;
29134
31104
  modes?: {
@@ -29179,7 +31149,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29179
31149
  providerProfile?: string | undefined;
29180
31150
  };
29181
31151
  }, {
29182
- type: ExtensionBridgeEventName.TaskUnpaused;
31152
+ type: ExtensionBridgeEventName.TaskSpawned;
29183
31153
  timestamp: number;
29184
31154
  instance: {
29185
31155
  task: {
@@ -29226,6 +31196,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29226
31196
  images?: string[] | undefined;
29227
31197
  }[] | undefined;
29228
31198
  childTaskId?: string | undefined;
31199
+ tokenUsage?: {
31200
+ totalTokensIn: number;
31201
+ totalTokensOut: number;
31202
+ totalCost: number;
31203
+ contextTokens: number;
31204
+ totalCacheWrites?: number | undefined;
31205
+ totalCacheReads?: number | undefined;
31206
+ } | undefined;
29229
31207
  };
29230
31208
  taskHistory: string[];
29231
31209
  instanceId: string;
@@ -29237,6 +31215,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29237
31215
  vscodeVersion: string;
29238
31216
  platform: string;
29239
31217
  editorName: string;
31218
+ hostname?: string | undefined;
29240
31219
  };
29241
31220
  lastHeartbeat: number;
29242
31221
  modes?: {
@@ -29287,7 +31266,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29287
31266
  providerProfile?: string | undefined;
29288
31267
  };
29289
31268
  }>, z.ZodObject<{
29290
- type: z.ZodLiteral<ExtensionBridgeEventName.TaskSpawned>;
31269
+ type: z.ZodLiteral<ExtensionBridgeEventName.TaskUserMessage>;
29291
31270
  instance: z.ZodObject<{
29292
31271
  instanceId: z.ZodString;
29293
31272
  userId: z.ZodString;
@@ -29298,18 +31277,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29298
31277
  vscodeVersion: z.ZodString;
29299
31278
  platform: z.ZodString;
29300
31279
  editorName: z.ZodString;
31280
+ hostname: z.ZodOptional<z.ZodString>;
29301
31281
  }, "strip", z.ZodTypeAny, {
29302
31282
  appName: string;
29303
31283
  appVersion: string;
29304
31284
  vscodeVersion: string;
29305
31285
  platform: string;
29306
31286
  editorName: string;
31287
+ hostname?: string | undefined;
29307
31288
  }, {
29308
31289
  appName: string;
29309
31290
  appVersion: string;
29310
31291
  vscodeVersion: string;
29311
31292
  platform: string;
29312
31293
  editorName: string;
31294
+ hostname?: string | undefined;
29313
31295
  }>;
29314
31296
  gitProperties: z.ZodOptional<z.ZodObject<{
29315
31297
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -29475,6 +31457,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29475
31457
  }>, "many">>;
29476
31458
  parentTaskId: z.ZodOptional<z.ZodString>;
29477
31459
  childTaskId: z.ZodOptional<z.ZodString>;
31460
+ tokenUsage: z.ZodOptional<z.ZodObject<{
31461
+ totalTokensIn: z.ZodNumber;
31462
+ totalTokensOut: z.ZodNumber;
31463
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
31464
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
31465
+ totalCost: z.ZodNumber;
31466
+ contextTokens: z.ZodNumber;
31467
+ }, "strip", z.ZodTypeAny, {
31468
+ totalTokensIn: number;
31469
+ totalTokensOut: number;
31470
+ totalCost: number;
31471
+ contextTokens: number;
31472
+ totalCacheWrites?: number | undefined;
31473
+ totalCacheReads?: number | undefined;
31474
+ }, {
31475
+ totalTokensIn: number;
31476
+ totalTokensOut: number;
31477
+ totalCost: number;
31478
+ contextTokens: number;
31479
+ totalCacheWrites?: number | undefined;
31480
+ totalCacheReads?: number | undefined;
31481
+ }>>;
29478
31482
  }, "strip", z.ZodTypeAny, {
29479
31483
  taskId: string;
29480
31484
  taskStatus: TaskStatus;
@@ -29519,6 +31523,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29519
31523
  images?: string[] | undefined;
29520
31524
  }[] | undefined;
29521
31525
  childTaskId?: string | undefined;
31526
+ tokenUsage?: {
31527
+ totalTokensIn: number;
31528
+ totalTokensOut: number;
31529
+ totalCost: number;
31530
+ contextTokens: number;
31531
+ totalCacheWrites?: number | undefined;
31532
+ totalCacheReads?: number | undefined;
31533
+ } | undefined;
29522
31534
  }, {
29523
31535
  taskId: string;
29524
31536
  taskStatus: TaskStatus;
@@ -29563,6 +31575,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29563
31575
  images?: string[] | undefined;
29564
31576
  }[] | undefined;
29565
31577
  childTaskId?: string | undefined;
31578
+ tokenUsage?: {
31579
+ totalTokensIn: number;
31580
+ totalTokensOut: number;
31581
+ totalCost: number;
31582
+ contextTokens: number;
31583
+ totalCacheWrites?: number | undefined;
31584
+ totalCacheReads?: number | undefined;
31585
+ } | undefined;
29566
31586
  }>;
29567
31587
  taskAsk: z.ZodOptional<z.ZodObject<{
29568
31588
  ts: z.ZodNumber;
@@ -29759,6 +31779,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29759
31779
  images?: string[] | undefined;
29760
31780
  }[] | undefined;
29761
31781
  childTaskId?: string | undefined;
31782
+ tokenUsage?: {
31783
+ totalTokensIn: number;
31784
+ totalTokensOut: number;
31785
+ totalCost: number;
31786
+ contextTokens: number;
31787
+ totalCacheWrites?: number | undefined;
31788
+ totalCacheReads?: number | undefined;
31789
+ } | undefined;
29762
31790
  };
29763
31791
  taskHistory: string[];
29764
31792
  instanceId: string;
@@ -29770,6 +31798,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29770
31798
  vscodeVersion: string;
29771
31799
  platform: string;
29772
31800
  editorName: string;
31801
+ hostname?: string | undefined;
29773
31802
  };
29774
31803
  lastHeartbeat: number;
29775
31804
  modes?: {
@@ -29863,6 +31892,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29863
31892
  images?: string[] | undefined;
29864
31893
  }[] | undefined;
29865
31894
  childTaskId?: string | undefined;
31895
+ tokenUsage?: {
31896
+ totalTokensIn: number;
31897
+ totalTokensOut: number;
31898
+ totalCost: number;
31899
+ contextTokens: number;
31900
+ totalCacheWrites?: number | undefined;
31901
+ totalCacheReads?: number | undefined;
31902
+ } | undefined;
29866
31903
  };
29867
31904
  taskHistory: string[];
29868
31905
  instanceId: string;
@@ -29874,6 +31911,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29874
31911
  vscodeVersion: string;
29875
31912
  platform: string;
29876
31913
  editorName: string;
31914
+ hostname?: string | undefined;
29877
31915
  };
29878
31916
  lastHeartbeat: number;
29879
31917
  modes?: {
@@ -29925,7 +31963,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29925
31963
  }>;
29926
31964
  timestamp: z.ZodNumber;
29927
31965
  }, "strip", z.ZodTypeAny, {
29928
- type: ExtensionBridgeEventName.TaskSpawned;
31966
+ type: ExtensionBridgeEventName.TaskUserMessage;
29929
31967
  timestamp: number;
29930
31968
  instance: {
29931
31969
  task: {
@@ -29972,6 +32010,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29972
32010
  images?: string[] | undefined;
29973
32011
  }[] | undefined;
29974
32012
  childTaskId?: string | undefined;
32013
+ tokenUsage?: {
32014
+ totalTokensIn: number;
32015
+ totalTokensOut: number;
32016
+ totalCost: number;
32017
+ contextTokens: number;
32018
+ totalCacheWrites?: number | undefined;
32019
+ totalCacheReads?: number | undefined;
32020
+ } | undefined;
29975
32021
  };
29976
32022
  taskHistory: string[];
29977
32023
  instanceId: string;
@@ -29983,6 +32029,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
29983
32029
  vscodeVersion: string;
29984
32030
  platform: string;
29985
32031
  editorName: string;
32032
+ hostname?: string | undefined;
29986
32033
  };
29987
32034
  lastHeartbeat: number;
29988
32035
  modes?: {
@@ -30033,7 +32080,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30033
32080
  providerProfile?: string | undefined;
30034
32081
  };
30035
32082
  }, {
30036
- type: ExtensionBridgeEventName.TaskSpawned;
32083
+ type: ExtensionBridgeEventName.TaskUserMessage;
30037
32084
  timestamp: number;
30038
32085
  instance: {
30039
32086
  task: {
@@ -30080,6 +32127,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30080
32127
  images?: string[] | undefined;
30081
32128
  }[] | undefined;
30082
32129
  childTaskId?: string | undefined;
32130
+ tokenUsage?: {
32131
+ totalTokensIn: number;
32132
+ totalTokensOut: number;
32133
+ totalCost: number;
32134
+ contextTokens: number;
32135
+ totalCacheWrites?: number | undefined;
32136
+ totalCacheReads?: number | undefined;
32137
+ } | undefined;
30083
32138
  };
30084
32139
  taskHistory: string[];
30085
32140
  instanceId: string;
@@ -30091,6 +32146,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30091
32146
  vscodeVersion: string;
30092
32147
  platform: string;
30093
32148
  editorName: string;
32149
+ hostname?: string | undefined;
30094
32150
  };
30095
32151
  lastHeartbeat: number;
30096
32152
  modes?: {
@@ -30141,7 +32197,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30141
32197
  providerProfile?: string | undefined;
30142
32198
  };
30143
32199
  }>, z.ZodObject<{
30144
- type: z.ZodLiteral<ExtensionBridgeEventName.TaskUserMessage>;
32200
+ type: z.ZodLiteral<ExtensionBridgeEventName.TaskTokenUsageUpdated>;
30145
32201
  instance: z.ZodObject<{
30146
32202
  instanceId: z.ZodString;
30147
32203
  userId: z.ZodString;
@@ -30152,18 +32208,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30152
32208
  vscodeVersion: z.ZodString;
30153
32209
  platform: z.ZodString;
30154
32210
  editorName: z.ZodString;
32211
+ hostname: z.ZodOptional<z.ZodString>;
30155
32212
  }, "strip", z.ZodTypeAny, {
30156
32213
  appName: string;
30157
32214
  appVersion: string;
30158
32215
  vscodeVersion: string;
30159
32216
  platform: string;
30160
32217
  editorName: string;
32218
+ hostname?: string | undefined;
30161
32219
  }, {
30162
32220
  appName: string;
30163
32221
  appVersion: string;
30164
32222
  vscodeVersion: string;
30165
32223
  platform: string;
30166
32224
  editorName: string;
32225
+ hostname?: string | undefined;
30167
32226
  }>;
30168
32227
  gitProperties: z.ZodOptional<z.ZodObject<{
30169
32228
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -30329,6 +32388,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30329
32388
  }>, "many">>;
30330
32389
  parentTaskId: z.ZodOptional<z.ZodString>;
30331
32390
  childTaskId: z.ZodOptional<z.ZodString>;
32391
+ tokenUsage: z.ZodOptional<z.ZodObject<{
32392
+ totalTokensIn: z.ZodNumber;
32393
+ totalTokensOut: z.ZodNumber;
32394
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
32395
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
32396
+ totalCost: z.ZodNumber;
32397
+ contextTokens: z.ZodNumber;
32398
+ }, "strip", z.ZodTypeAny, {
32399
+ totalTokensIn: number;
32400
+ totalTokensOut: number;
32401
+ totalCost: number;
32402
+ contextTokens: number;
32403
+ totalCacheWrites?: number | undefined;
32404
+ totalCacheReads?: number | undefined;
32405
+ }, {
32406
+ totalTokensIn: number;
32407
+ totalTokensOut: number;
32408
+ totalCost: number;
32409
+ contextTokens: number;
32410
+ totalCacheWrites?: number | undefined;
32411
+ totalCacheReads?: number | undefined;
32412
+ }>>;
30332
32413
  }, "strip", z.ZodTypeAny, {
30333
32414
  taskId: string;
30334
32415
  taskStatus: TaskStatus;
@@ -30373,6 +32454,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30373
32454
  images?: string[] | undefined;
30374
32455
  }[] | undefined;
30375
32456
  childTaskId?: string | undefined;
32457
+ tokenUsage?: {
32458
+ totalTokensIn: number;
32459
+ totalTokensOut: number;
32460
+ totalCost: number;
32461
+ contextTokens: number;
32462
+ totalCacheWrites?: number | undefined;
32463
+ totalCacheReads?: number | undefined;
32464
+ } | undefined;
30376
32465
  }, {
30377
32466
  taskId: string;
30378
32467
  taskStatus: TaskStatus;
@@ -30417,6 +32506,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30417
32506
  images?: string[] | undefined;
30418
32507
  }[] | undefined;
30419
32508
  childTaskId?: string | undefined;
32509
+ tokenUsage?: {
32510
+ totalTokensIn: number;
32511
+ totalTokensOut: number;
32512
+ totalCost: number;
32513
+ contextTokens: number;
32514
+ totalCacheWrites?: number | undefined;
32515
+ totalCacheReads?: number | undefined;
32516
+ } | undefined;
30420
32517
  }>;
30421
32518
  taskAsk: z.ZodOptional<z.ZodObject<{
30422
32519
  ts: z.ZodNumber;
@@ -30613,6 +32710,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30613
32710
  images?: string[] | undefined;
30614
32711
  }[] | undefined;
30615
32712
  childTaskId?: string | undefined;
32713
+ tokenUsage?: {
32714
+ totalTokensIn: number;
32715
+ totalTokensOut: number;
32716
+ totalCost: number;
32717
+ contextTokens: number;
32718
+ totalCacheWrites?: number | undefined;
32719
+ totalCacheReads?: number | undefined;
32720
+ } | undefined;
30616
32721
  };
30617
32722
  taskHistory: string[];
30618
32723
  instanceId: string;
@@ -30624,6 +32729,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30624
32729
  vscodeVersion: string;
30625
32730
  platform: string;
30626
32731
  editorName: string;
32732
+ hostname?: string | undefined;
30627
32733
  };
30628
32734
  lastHeartbeat: number;
30629
32735
  modes?: {
@@ -30717,6 +32823,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30717
32823
  images?: string[] | undefined;
30718
32824
  }[] | undefined;
30719
32825
  childTaskId?: string | undefined;
32826
+ tokenUsage?: {
32827
+ totalTokensIn: number;
32828
+ totalTokensOut: number;
32829
+ totalCost: number;
32830
+ contextTokens: number;
32831
+ totalCacheWrites?: number | undefined;
32832
+ totalCacheReads?: number | undefined;
32833
+ } | undefined;
30720
32834
  };
30721
32835
  taskHistory: string[];
30722
32836
  instanceId: string;
@@ -30728,6 +32842,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30728
32842
  vscodeVersion: string;
30729
32843
  platform: string;
30730
32844
  editorName: string;
32845
+ hostname?: string | undefined;
30731
32846
  };
30732
32847
  lastHeartbeat: number;
30733
32848
  modes?: {
@@ -30779,7 +32894,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30779
32894
  }>;
30780
32895
  timestamp: z.ZodNumber;
30781
32896
  }, "strip", z.ZodTypeAny, {
30782
- type: ExtensionBridgeEventName.TaskUserMessage;
32897
+ type: ExtensionBridgeEventName.TaskTokenUsageUpdated;
30783
32898
  timestamp: number;
30784
32899
  instance: {
30785
32900
  task: {
@@ -30826,6 +32941,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30826
32941
  images?: string[] | undefined;
30827
32942
  }[] | undefined;
30828
32943
  childTaskId?: string | undefined;
32944
+ tokenUsage?: {
32945
+ totalTokensIn: number;
32946
+ totalTokensOut: number;
32947
+ totalCost: number;
32948
+ contextTokens: number;
32949
+ totalCacheWrites?: number | undefined;
32950
+ totalCacheReads?: number | undefined;
32951
+ } | undefined;
30829
32952
  };
30830
32953
  taskHistory: string[];
30831
32954
  instanceId: string;
@@ -30837,6 +32960,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30837
32960
  vscodeVersion: string;
30838
32961
  platform: string;
30839
32962
  editorName: string;
32963
+ hostname?: string | undefined;
30840
32964
  };
30841
32965
  lastHeartbeat: number;
30842
32966
  modes?: {
@@ -30887,7 +33011,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30887
33011
  providerProfile?: string | undefined;
30888
33012
  };
30889
33013
  }, {
30890
- type: ExtensionBridgeEventName.TaskUserMessage;
33014
+ type: ExtensionBridgeEventName.TaskTokenUsageUpdated;
30891
33015
  timestamp: number;
30892
33016
  instance: {
30893
33017
  task: {
@@ -30934,6 +33058,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30934
33058
  images?: string[] | undefined;
30935
33059
  }[] | undefined;
30936
33060
  childTaskId?: string | undefined;
33061
+ tokenUsage?: {
33062
+ totalTokensIn: number;
33063
+ totalTokensOut: number;
33064
+ totalCost: number;
33065
+ contextTokens: number;
33066
+ totalCacheWrites?: number | undefined;
33067
+ totalCacheReads?: number | undefined;
33068
+ } | undefined;
30937
33069
  };
30938
33070
  taskHistory: string[];
30939
33071
  instanceId: string;
@@ -30945,6 +33077,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
30945
33077
  vscodeVersion: string;
30946
33078
  platform: string;
30947
33079
  editorName: string;
33080
+ hostname?: string | undefined;
30948
33081
  };
30949
33082
  lastHeartbeat: number;
30950
33083
  modes?: {
@@ -31006,18 +33139,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
31006
33139
  vscodeVersion: z.ZodString;
31007
33140
  platform: z.ZodString;
31008
33141
  editorName: z.ZodString;
33142
+ hostname: z.ZodOptional<z.ZodString>;
31009
33143
  }, "strip", z.ZodTypeAny, {
31010
33144
  appName: string;
31011
33145
  appVersion: string;
31012
33146
  vscodeVersion: string;
31013
33147
  platform: string;
31014
33148
  editorName: string;
33149
+ hostname?: string | undefined;
31015
33150
  }, {
31016
33151
  appName: string;
31017
33152
  appVersion: string;
31018
33153
  vscodeVersion: string;
31019
33154
  platform: string;
31020
33155
  editorName: string;
33156
+ hostname?: string | undefined;
31021
33157
  }>;
31022
33158
  gitProperties: z.ZodOptional<z.ZodObject<{
31023
33159
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -31183,6 +33319,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
31183
33319
  }>, "many">>;
31184
33320
  parentTaskId: z.ZodOptional<z.ZodString>;
31185
33321
  childTaskId: z.ZodOptional<z.ZodString>;
33322
+ tokenUsage: z.ZodOptional<z.ZodObject<{
33323
+ totalTokensIn: z.ZodNumber;
33324
+ totalTokensOut: z.ZodNumber;
33325
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
33326
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
33327
+ totalCost: z.ZodNumber;
33328
+ contextTokens: z.ZodNumber;
33329
+ }, "strip", z.ZodTypeAny, {
33330
+ totalTokensIn: number;
33331
+ totalTokensOut: number;
33332
+ totalCost: number;
33333
+ contextTokens: number;
33334
+ totalCacheWrites?: number | undefined;
33335
+ totalCacheReads?: number | undefined;
33336
+ }, {
33337
+ totalTokensIn: number;
33338
+ totalTokensOut: number;
33339
+ totalCost: number;
33340
+ contextTokens: number;
33341
+ totalCacheWrites?: number | undefined;
33342
+ totalCacheReads?: number | undefined;
33343
+ }>>;
31186
33344
  }, "strip", z.ZodTypeAny, {
31187
33345
  taskId: string;
31188
33346
  taskStatus: TaskStatus;
@@ -31227,6 +33385,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
31227
33385
  images?: string[] | undefined;
31228
33386
  }[] | undefined;
31229
33387
  childTaskId?: string | undefined;
33388
+ tokenUsage?: {
33389
+ totalTokensIn: number;
33390
+ totalTokensOut: number;
33391
+ totalCost: number;
33392
+ contextTokens: number;
33393
+ totalCacheWrites?: number | undefined;
33394
+ totalCacheReads?: number | undefined;
33395
+ } | undefined;
31230
33396
  }, {
31231
33397
  taskId: string;
31232
33398
  taskStatus: TaskStatus;
@@ -31271,6 +33437,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
31271
33437
  images?: string[] | undefined;
31272
33438
  }[] | undefined;
31273
33439
  childTaskId?: string | undefined;
33440
+ tokenUsage?: {
33441
+ totalTokensIn: number;
33442
+ totalTokensOut: number;
33443
+ totalCost: number;
33444
+ contextTokens: number;
33445
+ totalCacheWrites?: number | undefined;
33446
+ totalCacheReads?: number | undefined;
33447
+ } | undefined;
31274
33448
  }>;
31275
33449
  taskAsk: z.ZodOptional<z.ZodObject<{
31276
33450
  ts: z.ZodNumber;
@@ -31467,6 +33641,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
31467
33641
  images?: string[] | undefined;
31468
33642
  }[] | undefined;
31469
33643
  childTaskId?: string | undefined;
33644
+ tokenUsage?: {
33645
+ totalTokensIn: number;
33646
+ totalTokensOut: number;
33647
+ totalCost: number;
33648
+ contextTokens: number;
33649
+ totalCacheWrites?: number | undefined;
33650
+ totalCacheReads?: number | undefined;
33651
+ } | undefined;
31470
33652
  };
31471
33653
  taskHistory: string[];
31472
33654
  instanceId: string;
@@ -31478,6 +33660,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
31478
33660
  vscodeVersion: string;
31479
33661
  platform: string;
31480
33662
  editorName: string;
33663
+ hostname?: string | undefined;
31481
33664
  };
31482
33665
  lastHeartbeat: number;
31483
33666
  modes?: {
@@ -31571,6 +33754,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
31571
33754
  images?: string[] | undefined;
31572
33755
  }[] | undefined;
31573
33756
  childTaskId?: string | undefined;
33757
+ tokenUsage?: {
33758
+ totalTokensIn: number;
33759
+ totalTokensOut: number;
33760
+ totalCost: number;
33761
+ contextTokens: number;
33762
+ totalCacheWrites?: number | undefined;
33763
+ totalCacheReads?: number | undefined;
33764
+ } | undefined;
31574
33765
  };
31575
33766
  taskHistory: string[];
31576
33767
  instanceId: string;
@@ -31582,6 +33773,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
31582
33773
  vscodeVersion: string;
31583
33774
  platform: string;
31584
33775
  editorName: string;
33776
+ hostname?: string | undefined;
31585
33777
  };
31586
33778
  lastHeartbeat: number;
31587
33779
  modes?: {
@@ -31682,6 +33874,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
31682
33874
  images?: string[] | undefined;
31683
33875
  }[] | undefined;
31684
33876
  childTaskId?: string | undefined;
33877
+ tokenUsage?: {
33878
+ totalTokensIn: number;
33879
+ totalTokensOut: number;
33880
+ totalCost: number;
33881
+ contextTokens: number;
33882
+ totalCacheWrites?: number | undefined;
33883
+ totalCacheReads?: number | undefined;
33884
+ } | undefined;
31685
33885
  };
31686
33886
  taskHistory: string[];
31687
33887
  instanceId: string;
@@ -31693,6 +33893,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
31693
33893
  vscodeVersion: string;
31694
33894
  platform: string;
31695
33895
  editorName: string;
33896
+ hostname?: string | undefined;
31696
33897
  };
31697
33898
  lastHeartbeat: number;
31698
33899
  modes?: {
@@ -31791,6 +33992,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
31791
33992
  images?: string[] | undefined;
31792
33993
  }[] | undefined;
31793
33994
  childTaskId?: string | undefined;
33995
+ tokenUsage?: {
33996
+ totalTokensIn: number;
33997
+ totalTokensOut: number;
33998
+ totalCost: number;
33999
+ contextTokens: number;
34000
+ totalCacheWrites?: number | undefined;
34001
+ totalCacheReads?: number | undefined;
34002
+ } | undefined;
31794
34003
  };
31795
34004
  taskHistory: string[];
31796
34005
  instanceId: string;
@@ -31802,6 +34011,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
31802
34011
  vscodeVersion: string;
31803
34012
  platform: string;
31804
34013
  editorName: string;
34014
+ hostname?: string | undefined;
31805
34015
  };
31806
34016
  lastHeartbeat: number;
31807
34017
  modes?: {
@@ -31863,18 +34073,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
31863
34073
  vscodeVersion: z.ZodString;
31864
34074
  platform: z.ZodString;
31865
34075
  editorName: z.ZodString;
34076
+ hostname: z.ZodOptional<z.ZodString>;
31866
34077
  }, "strip", z.ZodTypeAny, {
31867
34078
  appName: string;
31868
34079
  appVersion: string;
31869
34080
  vscodeVersion: string;
31870
34081
  platform: string;
31871
34082
  editorName: string;
34083
+ hostname?: string | undefined;
31872
34084
  }, {
31873
34085
  appName: string;
31874
34086
  appVersion: string;
31875
34087
  vscodeVersion: string;
31876
34088
  platform: string;
31877
34089
  editorName: string;
34090
+ hostname?: string | undefined;
31878
34091
  }>;
31879
34092
  gitProperties: z.ZodOptional<z.ZodObject<{
31880
34093
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -32040,6 +34253,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
32040
34253
  }>, "many">>;
32041
34254
  parentTaskId: z.ZodOptional<z.ZodString>;
32042
34255
  childTaskId: z.ZodOptional<z.ZodString>;
34256
+ tokenUsage: z.ZodOptional<z.ZodObject<{
34257
+ totalTokensIn: z.ZodNumber;
34258
+ totalTokensOut: z.ZodNumber;
34259
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
34260
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
34261
+ totalCost: z.ZodNumber;
34262
+ contextTokens: z.ZodNumber;
34263
+ }, "strip", z.ZodTypeAny, {
34264
+ totalTokensIn: number;
34265
+ totalTokensOut: number;
34266
+ totalCost: number;
34267
+ contextTokens: number;
34268
+ totalCacheWrites?: number | undefined;
34269
+ totalCacheReads?: number | undefined;
34270
+ }, {
34271
+ totalTokensIn: number;
34272
+ totalTokensOut: number;
34273
+ totalCost: number;
34274
+ contextTokens: number;
34275
+ totalCacheWrites?: number | undefined;
34276
+ totalCacheReads?: number | undefined;
34277
+ }>>;
32043
34278
  }, "strip", z.ZodTypeAny, {
32044
34279
  taskId: string;
32045
34280
  taskStatus: TaskStatus;
@@ -32084,6 +34319,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
32084
34319
  images?: string[] | undefined;
32085
34320
  }[] | undefined;
32086
34321
  childTaskId?: string | undefined;
34322
+ tokenUsage?: {
34323
+ totalTokensIn: number;
34324
+ totalTokensOut: number;
34325
+ totalCost: number;
34326
+ contextTokens: number;
34327
+ totalCacheWrites?: number | undefined;
34328
+ totalCacheReads?: number | undefined;
34329
+ } | undefined;
32087
34330
  }, {
32088
34331
  taskId: string;
32089
34332
  taskStatus: TaskStatus;
@@ -32128,6 +34371,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
32128
34371
  images?: string[] | undefined;
32129
34372
  }[] | undefined;
32130
34373
  childTaskId?: string | undefined;
34374
+ tokenUsage?: {
34375
+ totalTokensIn: number;
34376
+ totalTokensOut: number;
34377
+ totalCost: number;
34378
+ contextTokens: number;
34379
+ totalCacheWrites?: number | undefined;
34380
+ totalCacheReads?: number | undefined;
34381
+ } | undefined;
32131
34382
  }>;
32132
34383
  taskAsk: z.ZodOptional<z.ZodObject<{
32133
34384
  ts: z.ZodNumber;
@@ -32324,6 +34575,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
32324
34575
  images?: string[] | undefined;
32325
34576
  }[] | undefined;
32326
34577
  childTaskId?: string | undefined;
34578
+ tokenUsage?: {
34579
+ totalTokensIn: number;
34580
+ totalTokensOut: number;
34581
+ totalCost: number;
34582
+ contextTokens: number;
34583
+ totalCacheWrites?: number | undefined;
34584
+ totalCacheReads?: number | undefined;
34585
+ } | undefined;
32327
34586
  };
32328
34587
  taskHistory: string[];
32329
34588
  instanceId: string;
@@ -32335,6 +34594,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
32335
34594
  vscodeVersion: string;
32336
34595
  platform: string;
32337
34596
  editorName: string;
34597
+ hostname?: string | undefined;
32338
34598
  };
32339
34599
  lastHeartbeat: number;
32340
34600
  modes?: {
@@ -32428,6 +34688,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
32428
34688
  images?: string[] | undefined;
32429
34689
  }[] | undefined;
32430
34690
  childTaskId?: string | undefined;
34691
+ tokenUsage?: {
34692
+ totalTokensIn: number;
34693
+ totalTokensOut: number;
34694
+ totalCost: number;
34695
+ contextTokens: number;
34696
+ totalCacheWrites?: number | undefined;
34697
+ totalCacheReads?: number | undefined;
34698
+ } | undefined;
32431
34699
  };
32432
34700
  taskHistory: string[];
32433
34701
  instanceId: string;
@@ -32439,6 +34707,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
32439
34707
  vscodeVersion: string;
32440
34708
  platform: string;
32441
34709
  editorName: string;
34710
+ hostname?: string | undefined;
32442
34711
  };
32443
34712
  lastHeartbeat: number;
32444
34713
  modes?: {
@@ -32551,6 +34820,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
32551
34820
  images?: string[] | undefined;
32552
34821
  }[] | undefined;
32553
34822
  childTaskId?: string | undefined;
34823
+ tokenUsage?: {
34824
+ totalTokensIn: number;
34825
+ totalTokensOut: number;
34826
+ totalCost: number;
34827
+ contextTokens: number;
34828
+ totalCacheWrites?: number | undefined;
34829
+ totalCacheReads?: number | undefined;
34830
+ } | undefined;
32554
34831
  };
32555
34832
  taskHistory: string[];
32556
34833
  instanceId: string;
@@ -32562,6 +34839,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
32562
34839
  vscodeVersion: string;
32563
34840
  platform: string;
32564
34841
  editorName: string;
34842
+ hostname?: string | undefined;
32565
34843
  };
32566
34844
  lastHeartbeat: number;
32567
34845
  modes?: {
@@ -32663,6 +34941,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
32663
34941
  images?: string[] | undefined;
32664
34942
  }[] | undefined;
32665
34943
  childTaskId?: string | undefined;
34944
+ tokenUsage?: {
34945
+ totalTokensIn: number;
34946
+ totalTokensOut: number;
34947
+ totalCost: number;
34948
+ contextTokens: number;
34949
+ totalCacheWrites?: number | undefined;
34950
+ totalCacheReads?: number | undefined;
34951
+ } | undefined;
32666
34952
  };
32667
34953
  taskHistory: string[];
32668
34954
  instanceId: string;
@@ -32674,6 +34960,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
32674
34960
  vscodeVersion: string;
32675
34961
  platform: string;
32676
34962
  editorName: string;
34963
+ hostname?: string | undefined;
32677
34964
  };
32678
34965
  lastHeartbeat: number;
32679
34966
  modes?: {
@@ -32735,18 +35022,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
32735
35022
  vscodeVersion: z.ZodString;
32736
35023
  platform: z.ZodString;
32737
35024
  editorName: z.ZodString;
35025
+ hostname: z.ZodOptional<z.ZodString>;
32738
35026
  }, "strip", z.ZodTypeAny, {
32739
35027
  appName: string;
32740
35028
  appVersion: string;
32741
35029
  vscodeVersion: string;
32742
35030
  platform: string;
32743
35031
  editorName: string;
35032
+ hostname?: string | undefined;
32744
35033
  }, {
32745
35034
  appName: string;
32746
35035
  appVersion: string;
32747
35036
  vscodeVersion: string;
32748
35037
  platform: string;
32749
35038
  editorName: string;
35039
+ hostname?: string | undefined;
32750
35040
  }>;
32751
35041
  gitProperties: z.ZodOptional<z.ZodObject<{
32752
35042
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -32912,6 +35202,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
32912
35202
  }>, "many">>;
32913
35203
  parentTaskId: z.ZodOptional<z.ZodString>;
32914
35204
  childTaskId: z.ZodOptional<z.ZodString>;
35205
+ tokenUsage: z.ZodOptional<z.ZodObject<{
35206
+ totalTokensIn: z.ZodNumber;
35207
+ totalTokensOut: z.ZodNumber;
35208
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
35209
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
35210
+ totalCost: z.ZodNumber;
35211
+ contextTokens: z.ZodNumber;
35212
+ }, "strip", z.ZodTypeAny, {
35213
+ totalTokensIn: number;
35214
+ totalTokensOut: number;
35215
+ totalCost: number;
35216
+ contextTokens: number;
35217
+ totalCacheWrites?: number | undefined;
35218
+ totalCacheReads?: number | undefined;
35219
+ }, {
35220
+ totalTokensIn: number;
35221
+ totalTokensOut: number;
35222
+ totalCost: number;
35223
+ contextTokens: number;
35224
+ totalCacheWrites?: number | undefined;
35225
+ totalCacheReads?: number | undefined;
35226
+ }>>;
32915
35227
  }, "strip", z.ZodTypeAny, {
32916
35228
  taskId: string;
32917
35229
  taskStatus: TaskStatus;
@@ -32956,6 +35268,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
32956
35268
  images?: string[] | undefined;
32957
35269
  }[] | undefined;
32958
35270
  childTaskId?: string | undefined;
35271
+ tokenUsage?: {
35272
+ totalTokensIn: number;
35273
+ totalTokensOut: number;
35274
+ totalCost: number;
35275
+ contextTokens: number;
35276
+ totalCacheWrites?: number | undefined;
35277
+ totalCacheReads?: number | undefined;
35278
+ } | undefined;
32959
35279
  }, {
32960
35280
  taskId: string;
32961
35281
  taskStatus: TaskStatus;
@@ -33000,6 +35320,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
33000
35320
  images?: string[] | undefined;
33001
35321
  }[] | undefined;
33002
35322
  childTaskId?: string | undefined;
35323
+ tokenUsage?: {
35324
+ totalTokensIn: number;
35325
+ totalTokensOut: number;
35326
+ totalCost: number;
35327
+ contextTokens: number;
35328
+ totalCacheWrites?: number | undefined;
35329
+ totalCacheReads?: number | undefined;
35330
+ } | undefined;
33003
35331
  }>;
33004
35332
  taskAsk: z.ZodOptional<z.ZodObject<{
33005
35333
  ts: z.ZodNumber;
@@ -33196,6 +35524,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
33196
35524
  images?: string[] | undefined;
33197
35525
  }[] | undefined;
33198
35526
  childTaskId?: string | undefined;
35527
+ tokenUsage?: {
35528
+ totalTokensIn: number;
35529
+ totalTokensOut: number;
35530
+ totalCost: number;
35531
+ contextTokens: number;
35532
+ totalCacheWrites?: number | undefined;
35533
+ totalCacheReads?: number | undefined;
35534
+ } | undefined;
33199
35535
  };
33200
35536
  taskHistory: string[];
33201
35537
  instanceId: string;
@@ -33207,6 +35543,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
33207
35543
  vscodeVersion: string;
33208
35544
  platform: string;
33209
35545
  editorName: string;
35546
+ hostname?: string | undefined;
33210
35547
  };
33211
35548
  lastHeartbeat: number;
33212
35549
  modes?: {
@@ -33300,6 +35637,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
33300
35637
  images?: string[] | undefined;
33301
35638
  }[] | undefined;
33302
35639
  childTaskId?: string | undefined;
35640
+ tokenUsage?: {
35641
+ totalTokensIn: number;
35642
+ totalTokensOut: number;
35643
+ totalCost: number;
35644
+ contextTokens: number;
35645
+ totalCacheWrites?: number | undefined;
35646
+ totalCacheReads?: number | undefined;
35647
+ } | undefined;
33303
35648
  };
33304
35649
  taskHistory: string[];
33305
35650
  instanceId: string;
@@ -33311,6 +35656,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
33311
35656
  vscodeVersion: string;
33312
35657
  platform: string;
33313
35658
  editorName: string;
35659
+ hostname?: string | undefined;
33314
35660
  };
33315
35661
  lastHeartbeat: number;
33316
35662
  modes?: {
@@ -33409,6 +35755,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
33409
35755
  images?: string[] | undefined;
33410
35756
  }[] | undefined;
33411
35757
  childTaskId?: string | undefined;
35758
+ tokenUsage?: {
35759
+ totalTokensIn: number;
35760
+ totalTokensOut: number;
35761
+ totalCost: number;
35762
+ contextTokens: number;
35763
+ totalCacheWrites?: number | undefined;
35764
+ totalCacheReads?: number | undefined;
35765
+ } | undefined;
33412
35766
  };
33413
35767
  taskHistory: string[];
33414
35768
  instanceId: string;
@@ -33420,6 +35774,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
33420
35774
  vscodeVersion: string;
33421
35775
  platform: string;
33422
35776
  editorName: string;
35777
+ hostname?: string | undefined;
33423
35778
  };
33424
35779
  lastHeartbeat: number;
33425
35780
  modes?: {
@@ -33517,6 +35872,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
33517
35872
  images?: string[] | undefined;
33518
35873
  }[] | undefined;
33519
35874
  childTaskId?: string | undefined;
35875
+ tokenUsage?: {
35876
+ totalTokensIn: number;
35877
+ totalTokensOut: number;
35878
+ totalCost: number;
35879
+ contextTokens: number;
35880
+ totalCacheWrites?: number | undefined;
35881
+ totalCacheReads?: number | undefined;
35882
+ } | undefined;
33520
35883
  };
33521
35884
  taskHistory: string[];
33522
35885
  instanceId: string;
@@ -33528,6 +35891,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
33528
35891
  vscodeVersion: string;
33529
35892
  platform: string;
33530
35893
  editorName: string;
35894
+ hostname?: string | undefined;
33531
35895
  };
33532
35896
  lastHeartbeat: number;
33533
35897
  modes?: {
@@ -33589,18 +35953,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
33589
35953
  vscodeVersion: z.ZodString;
33590
35954
  platform: z.ZodString;
33591
35955
  editorName: z.ZodString;
35956
+ hostname: z.ZodOptional<z.ZodString>;
33592
35957
  }, "strip", z.ZodTypeAny, {
33593
35958
  appName: string;
33594
35959
  appVersion: string;
33595
35960
  vscodeVersion: string;
33596
35961
  platform: string;
33597
35962
  editorName: string;
35963
+ hostname?: string | undefined;
33598
35964
  }, {
33599
35965
  appName: string;
33600
35966
  appVersion: string;
33601
35967
  vscodeVersion: string;
33602
35968
  platform: string;
33603
35969
  editorName: string;
35970
+ hostname?: string | undefined;
33604
35971
  }>;
33605
35972
  gitProperties: z.ZodOptional<z.ZodObject<{
33606
35973
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -33766,6 +36133,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
33766
36133
  }>, "many">>;
33767
36134
  parentTaskId: z.ZodOptional<z.ZodString>;
33768
36135
  childTaskId: z.ZodOptional<z.ZodString>;
36136
+ tokenUsage: z.ZodOptional<z.ZodObject<{
36137
+ totalTokensIn: z.ZodNumber;
36138
+ totalTokensOut: z.ZodNumber;
36139
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
36140
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
36141
+ totalCost: z.ZodNumber;
36142
+ contextTokens: z.ZodNumber;
36143
+ }, "strip", z.ZodTypeAny, {
36144
+ totalTokensIn: number;
36145
+ totalTokensOut: number;
36146
+ totalCost: number;
36147
+ contextTokens: number;
36148
+ totalCacheWrites?: number | undefined;
36149
+ totalCacheReads?: number | undefined;
36150
+ }, {
36151
+ totalTokensIn: number;
36152
+ totalTokensOut: number;
36153
+ totalCost: number;
36154
+ contextTokens: number;
36155
+ totalCacheWrites?: number | undefined;
36156
+ totalCacheReads?: number | undefined;
36157
+ }>>;
33769
36158
  }, "strip", z.ZodTypeAny, {
33770
36159
  taskId: string;
33771
36160
  taskStatus: TaskStatus;
@@ -33810,6 +36199,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
33810
36199
  images?: string[] | undefined;
33811
36200
  }[] | undefined;
33812
36201
  childTaskId?: string | undefined;
36202
+ tokenUsage?: {
36203
+ totalTokensIn: number;
36204
+ totalTokensOut: number;
36205
+ totalCost: number;
36206
+ contextTokens: number;
36207
+ totalCacheWrites?: number | undefined;
36208
+ totalCacheReads?: number | undefined;
36209
+ } | undefined;
33813
36210
  }, {
33814
36211
  taskId: string;
33815
36212
  taskStatus: TaskStatus;
@@ -33854,6 +36251,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
33854
36251
  images?: string[] | undefined;
33855
36252
  }[] | undefined;
33856
36253
  childTaskId?: string | undefined;
36254
+ tokenUsage?: {
36255
+ totalTokensIn: number;
36256
+ totalTokensOut: number;
36257
+ totalCost: number;
36258
+ contextTokens: number;
36259
+ totalCacheWrites?: number | undefined;
36260
+ totalCacheReads?: number | undefined;
36261
+ } | undefined;
33857
36262
  }>;
33858
36263
  taskAsk: z.ZodOptional<z.ZodObject<{
33859
36264
  ts: z.ZodNumber;
@@ -34050,6 +36455,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
34050
36455
  images?: string[] | undefined;
34051
36456
  }[] | undefined;
34052
36457
  childTaskId?: string | undefined;
36458
+ tokenUsage?: {
36459
+ totalTokensIn: number;
36460
+ totalTokensOut: number;
36461
+ totalCost: number;
36462
+ contextTokens: number;
36463
+ totalCacheWrites?: number | undefined;
36464
+ totalCacheReads?: number | undefined;
36465
+ } | undefined;
34053
36466
  };
34054
36467
  taskHistory: string[];
34055
36468
  instanceId: string;
@@ -34061,6 +36474,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
34061
36474
  vscodeVersion: string;
34062
36475
  platform: string;
34063
36476
  editorName: string;
36477
+ hostname?: string | undefined;
34064
36478
  };
34065
36479
  lastHeartbeat: number;
34066
36480
  modes?: {
@@ -34154,6 +36568,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
34154
36568
  images?: string[] | undefined;
34155
36569
  }[] | undefined;
34156
36570
  childTaskId?: string | undefined;
36571
+ tokenUsage?: {
36572
+ totalTokensIn: number;
36573
+ totalTokensOut: number;
36574
+ totalCost: number;
36575
+ contextTokens: number;
36576
+ totalCacheWrites?: number | undefined;
36577
+ totalCacheReads?: number | undefined;
36578
+ } | undefined;
34157
36579
  };
34158
36580
  taskHistory: string[];
34159
36581
  instanceId: string;
@@ -34165,6 +36587,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
34165
36587
  vscodeVersion: string;
34166
36588
  platform: string;
34167
36589
  editorName: string;
36590
+ hostname?: string | undefined;
34168
36591
  };
34169
36592
  lastHeartbeat: number;
34170
36593
  modes?: {
@@ -34263,6 +36686,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
34263
36686
  images?: string[] | undefined;
34264
36687
  }[] | undefined;
34265
36688
  childTaskId?: string | undefined;
36689
+ tokenUsage?: {
36690
+ totalTokensIn: number;
36691
+ totalTokensOut: number;
36692
+ totalCost: number;
36693
+ contextTokens: number;
36694
+ totalCacheWrites?: number | undefined;
36695
+ totalCacheReads?: number | undefined;
36696
+ } | undefined;
34266
36697
  };
34267
36698
  taskHistory: string[];
34268
36699
  instanceId: string;
@@ -34274,6 +36705,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
34274
36705
  vscodeVersion: string;
34275
36706
  platform: string;
34276
36707
  editorName: string;
36708
+ hostname?: string | undefined;
34277
36709
  };
34278
36710
  lastHeartbeat: number;
34279
36711
  modes?: {
@@ -34371,6 +36803,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
34371
36803
  images?: string[] | undefined;
34372
36804
  }[] | undefined;
34373
36805
  childTaskId?: string | undefined;
36806
+ tokenUsage?: {
36807
+ totalTokensIn: number;
36808
+ totalTokensOut: number;
36809
+ totalCost: number;
36810
+ contextTokens: number;
36811
+ totalCacheWrites?: number | undefined;
36812
+ totalCacheReads?: number | undefined;
36813
+ } | undefined;
34374
36814
  };
34375
36815
  taskHistory: string[];
34376
36816
  instanceId: string;
@@ -34382,6 +36822,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
34382
36822
  vscodeVersion: string;
34383
36823
  platform: string;
34384
36824
  editorName: string;
36825
+ hostname?: string | undefined;
34385
36826
  };
34386
36827
  lastHeartbeat: number;
34387
36828
  modes?: {
@@ -34443,18 +36884,21 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
34443
36884
  vscodeVersion: z.ZodString;
34444
36885
  platform: z.ZodString;
34445
36886
  editorName: z.ZodString;
36887
+ hostname: z.ZodOptional<z.ZodString>;
34446
36888
  }, "strip", z.ZodTypeAny, {
34447
36889
  appName: string;
34448
36890
  appVersion: string;
34449
36891
  vscodeVersion: string;
34450
36892
  platform: string;
34451
36893
  editorName: string;
36894
+ hostname?: string | undefined;
34452
36895
  }, {
34453
36896
  appName: string;
34454
36897
  appVersion: string;
34455
36898
  vscodeVersion: string;
34456
36899
  platform: string;
34457
36900
  editorName: string;
36901
+ hostname?: string | undefined;
34458
36902
  }>;
34459
36903
  gitProperties: z.ZodOptional<z.ZodObject<{
34460
36904
  repositoryUrl: z.ZodOptional<z.ZodString>;
@@ -34620,6 +37064,28 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
34620
37064
  }>, "many">>;
34621
37065
  parentTaskId: z.ZodOptional<z.ZodString>;
34622
37066
  childTaskId: z.ZodOptional<z.ZodString>;
37067
+ tokenUsage: z.ZodOptional<z.ZodObject<{
37068
+ totalTokensIn: z.ZodNumber;
37069
+ totalTokensOut: z.ZodNumber;
37070
+ totalCacheWrites: z.ZodOptional<z.ZodNumber>;
37071
+ totalCacheReads: z.ZodOptional<z.ZodNumber>;
37072
+ totalCost: z.ZodNumber;
37073
+ contextTokens: z.ZodNumber;
37074
+ }, "strip", z.ZodTypeAny, {
37075
+ totalTokensIn: number;
37076
+ totalTokensOut: number;
37077
+ totalCost: number;
37078
+ contextTokens: number;
37079
+ totalCacheWrites?: number | undefined;
37080
+ totalCacheReads?: number | undefined;
37081
+ }, {
37082
+ totalTokensIn: number;
37083
+ totalTokensOut: number;
37084
+ totalCost: number;
37085
+ contextTokens: number;
37086
+ totalCacheWrites?: number | undefined;
37087
+ totalCacheReads?: number | undefined;
37088
+ }>>;
34623
37089
  }, "strip", z.ZodTypeAny, {
34624
37090
  taskId: string;
34625
37091
  taskStatus: TaskStatus;
@@ -34664,6 +37130,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
34664
37130
  images?: string[] | undefined;
34665
37131
  }[] | undefined;
34666
37132
  childTaskId?: string | undefined;
37133
+ tokenUsage?: {
37134
+ totalTokensIn: number;
37135
+ totalTokensOut: number;
37136
+ totalCost: number;
37137
+ contextTokens: number;
37138
+ totalCacheWrites?: number | undefined;
37139
+ totalCacheReads?: number | undefined;
37140
+ } | undefined;
34667
37141
  }, {
34668
37142
  taskId: string;
34669
37143
  taskStatus: TaskStatus;
@@ -34708,6 +37182,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
34708
37182
  images?: string[] | undefined;
34709
37183
  }[] | undefined;
34710
37184
  childTaskId?: string | undefined;
37185
+ tokenUsage?: {
37186
+ totalTokensIn: number;
37187
+ totalTokensOut: number;
37188
+ totalCost: number;
37189
+ contextTokens: number;
37190
+ totalCacheWrites?: number | undefined;
37191
+ totalCacheReads?: number | undefined;
37192
+ } | undefined;
34711
37193
  }>;
34712
37194
  taskAsk: z.ZodOptional<z.ZodObject<{
34713
37195
  ts: z.ZodNumber;
@@ -34904,6 +37386,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
34904
37386
  images?: string[] | undefined;
34905
37387
  }[] | undefined;
34906
37388
  childTaskId?: string | undefined;
37389
+ tokenUsage?: {
37390
+ totalTokensIn: number;
37391
+ totalTokensOut: number;
37392
+ totalCost: number;
37393
+ contextTokens: number;
37394
+ totalCacheWrites?: number | undefined;
37395
+ totalCacheReads?: number | undefined;
37396
+ } | undefined;
34907
37397
  };
34908
37398
  taskHistory: string[];
34909
37399
  instanceId: string;
@@ -34915,6 +37405,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
34915
37405
  vscodeVersion: string;
34916
37406
  platform: string;
34917
37407
  editorName: string;
37408
+ hostname?: string | undefined;
34918
37409
  };
34919
37410
  lastHeartbeat: number;
34920
37411
  modes?: {
@@ -35008,6 +37499,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
35008
37499
  images?: string[] | undefined;
35009
37500
  }[] | undefined;
35010
37501
  childTaskId?: string | undefined;
37502
+ tokenUsage?: {
37503
+ totalTokensIn: number;
37504
+ totalTokensOut: number;
37505
+ totalCost: number;
37506
+ contextTokens: number;
37507
+ totalCacheWrites?: number | undefined;
37508
+ totalCacheReads?: number | undefined;
37509
+ } | undefined;
35011
37510
  };
35012
37511
  taskHistory: string[];
35013
37512
  instanceId: string;
@@ -35019,6 +37518,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
35019
37518
  vscodeVersion: string;
35020
37519
  platform: string;
35021
37520
  editorName: string;
37521
+ hostname?: string | undefined;
35022
37522
  };
35023
37523
  lastHeartbeat: number;
35024
37524
  modes?: {
@@ -35117,6 +37617,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
35117
37617
  images?: string[] | undefined;
35118
37618
  }[] | undefined;
35119
37619
  childTaskId?: string | undefined;
37620
+ tokenUsage?: {
37621
+ totalTokensIn: number;
37622
+ totalTokensOut: number;
37623
+ totalCost: number;
37624
+ contextTokens: number;
37625
+ totalCacheWrites?: number | undefined;
37626
+ totalCacheReads?: number | undefined;
37627
+ } | undefined;
35120
37628
  };
35121
37629
  taskHistory: string[];
35122
37630
  instanceId: string;
@@ -35128,6 +37636,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
35128
37636
  vscodeVersion: string;
35129
37637
  platform: string;
35130
37638
  editorName: string;
37639
+ hostname?: string | undefined;
35131
37640
  };
35132
37641
  lastHeartbeat: number;
35133
37642
  modes?: {
@@ -35225,6 +37734,14 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
35225
37734
  images?: string[] | undefined;
35226
37735
  }[] | undefined;
35227
37736
  childTaskId?: string | undefined;
37737
+ tokenUsage?: {
37738
+ totalTokensIn: number;
37739
+ totalTokensOut: number;
37740
+ totalCost: number;
37741
+ contextTokens: number;
37742
+ totalCacheWrites?: number | undefined;
37743
+ totalCacheReads?: number | undefined;
37744
+ } | undefined;
35228
37745
  };
35229
37746
  taskHistory: string[];
35230
37747
  instanceId: string;
@@ -35236,6 +37753,7 @@ declare const extensionBridgeEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
35236
37753
  vscodeVersion: string;
35237
37754
  platform: string;
35238
37755
  editorName: string;
37756
+ hostname?: string | undefined;
35239
37757
  };
35240
37758
  lastHeartbeat: number;
35241
37759
  modes?: {