@winmatrix/protocol 1.0.4 → 1.0.6

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/schemas.d.ts CHANGED
@@ -288,6 +288,23 @@ export declare const TaskAssignParamsSchema: z.ZodObject<{
288
288
  sessionId: z.ZodOptional<z.ZodString>;
289
289
  /** When true, adapter SHALL resume the session identified by sessionId */
290
290
  resumeSession: z.ZodOptional<z.ZodBoolean>;
291
+ /** 当前 turn 上下文预算(可选;V2 信封里由 launchSpec.contextBudget 覆盖)。 */
292
+ contextBudget: z.ZodOptional<z.ZodObject<{
293
+ maxInputChars: z.ZodOptional<z.ZodNumber>;
294
+ maxSystemChars: z.ZodOptional<z.ZodNumber>;
295
+ maxContextChars: z.ZodOptional<z.ZodNumber>;
296
+ compression: z.ZodOptional<z.ZodEnum<["none", "truncate_head", "truncate_tail"]>>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ maxInputChars?: number | undefined;
299
+ maxSystemChars?: number | undefined;
300
+ maxContextChars?: number | undefined;
301
+ compression?: "none" | "truncate_head" | "truncate_tail" | undefined;
302
+ }, {
303
+ maxInputChars?: number | undefined;
304
+ maxSystemChars?: number | undefined;
305
+ maxContextChars?: number | undefined;
306
+ compression?: "none" | "truncate_head" | "truncate_tail" | undefined;
307
+ }>>;
291
308
  }, "strip", z.ZodTypeAny, {
292
309
  streaming: boolean;
293
310
  taskId: string;
@@ -310,6 +327,12 @@ export declare const TaskAssignParamsSchema: z.ZodObject<{
310
327
  mcpToken?: string | undefined;
311
328
  sessionId?: string | undefined;
312
329
  resumeSession?: boolean | undefined;
330
+ contextBudget?: {
331
+ maxInputChars?: number | undefined;
332
+ maxSystemChars?: number | undefined;
333
+ maxContextChars?: number | undefined;
334
+ compression?: "none" | "truncate_head" | "truncate_tail" | undefined;
335
+ } | undefined;
313
336
  }, {
314
337
  streaming: boolean;
315
338
  taskId: string;
@@ -332,6 +355,12 @@ export declare const TaskAssignParamsSchema: z.ZodObject<{
332
355
  mcpToken?: string | undefined;
333
356
  sessionId?: string | undefined;
334
357
  resumeSession?: boolean | undefined;
358
+ contextBudget?: {
359
+ maxInputChars?: number | undefined;
360
+ maxSystemChars?: number | undefined;
361
+ maxContextChars?: number | undefined;
362
+ compression?: "none" | "truncate_head" | "truncate_tail" | undefined;
363
+ } | undefined;
335
364
  }>;
336
365
  export type TaskContext = z.infer<typeof TaskContextSchema>;
337
366
  export type TaskConstraints = z.infer<typeof TaskConstraintsSchema>;
@@ -339,7 +368,91 @@ export type TaskAssignParams = z.infer<typeof TaskAssignParamsSchema>;
339
368
  export declare const EngineIdSchema: z.ZodEnum<["claude-code", "codex", "hermes", "openclaw", "custom"]>;
340
369
  export declare const HostKindSchema: z.ZodEnum<["workstation", "external_computer"]>;
341
370
  export declare const HostProfileSchema: z.ZodUnion<[z.ZodEnum<["coding", "sre"]>, z.ZodString]>;
342
- export declare const EngineToolNameSchema: z.ZodEnum<["coding_task", "sre_skill_task", "workstation_execute", "external_agent_task"]>;
371
+ export declare const EngineToolNameSchema: z.ZodEnum<["coding_task", "sre_skill_task", "workstation_execute", "external_agent_task", "execute_task"]>;
372
+ /** 本次 Run 实际协商出的执行耐久等级(静态 capability 只表达最大可能集合)。 */
373
+ export declare const ExecutionDurabilitySchema: z.ZodEnum<["connection_bound", "host_persistent"]>;
374
+ /** 事件恢复等级(递进能力):live_only < replay < snapshot_fallback。 */
375
+ export declare const EventStreamModeSchema: z.ZodEnum<["live_only", "replay", "snapshot_fallback"]>;
376
+ export declare const EventRetentionSchema: z.ZodObject<{
377
+ maxEvents: z.ZodOptional<z.ZodNumber>;
378
+ maxAgeSeconds: z.ZodOptional<z.ZodNumber>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ maxEvents?: number | undefined;
381
+ maxAgeSeconds?: number | undefined;
382
+ }, {
383
+ maxEvents?: number | undefined;
384
+ maxAgeSeconds?: number | undefined;
385
+ }>;
386
+ export declare const EngineContentBlockKindSchema: z.ZodEnum<["text", "image_ref", "file_ref", "resource_ref"]>;
387
+ /** 跨 Engine 标准 Hook 阶段;Engine Adapter 只声明真实支持的映射。 */
388
+ export declare const AgentEngineHookPointSchema: z.ZodEnum<["session.start", "prompt.beforeSubmit", "tool.beforeExecute", "permission.request", "tool.completed", "tool.failed", "subagent.started", "subagent.beforeComplete", "turn.beforeComplete", "session.end", "context.beforeCompact", "context.compacted"]>;
389
+ /** 内部受治理 Hook Profile 引用;只允许出现在 canonical LaunchSpec 与 Host wire DTO。 */
390
+ export declare const EngineHookProfileRefSchema: z.ZodObject<{
391
+ profileId: z.ZodString;
392
+ version: z.ZodString;
393
+ policyRevision: z.ZodString;
394
+ }, "strip", z.ZodTypeAny, {
395
+ profileId: string;
396
+ version: string;
397
+ policyRevision: string;
398
+ }, {
399
+ profileId: string;
400
+ version: string;
401
+ policyRevision: string;
402
+ }>;
403
+ /** Host/daemon 内部 capability 声明用:已安装的 Profile 及策略版本。 */
404
+ export declare const EngineHookProfileDescriptorSchema: z.ZodObject<{
405
+ ref: z.ZodObject<{
406
+ profileId: z.ZodString;
407
+ version: z.ZodString;
408
+ policyRevision: z.ZodString;
409
+ }, "strip", z.ZodTypeAny, {
410
+ profileId: string;
411
+ version: string;
412
+ policyRevision: string;
413
+ }, {
414
+ profileId: string;
415
+ version: string;
416
+ policyRevision: string;
417
+ }>;
418
+ hookPoints: z.ZodArray<z.ZodEnum<["session.start", "prompt.beforeSubmit", "tool.beforeExecute", "permission.request", "tool.completed", "tool.failed", "subagent.started", "subagent.beforeComplete", "turn.beforeComplete", "session.end", "context.beforeCompact", "context.compacted"]>, "many">;
419
+ blocking: z.ZodEnum<["never", "allow_deny", "interaction"]>;
420
+ timeoutMs: z.ZodNumber;
421
+ failureMode: z.ZodEnum<["fail_closed", "fail_open", "report_only"]>;
422
+ }, "strip", z.ZodTypeAny, {
423
+ ref: {
424
+ profileId: string;
425
+ version: string;
426
+ policyRevision: string;
427
+ };
428
+ hookPoints: ("session.start" | "prompt.beforeSubmit" | "tool.beforeExecute" | "permission.request" | "tool.completed" | "tool.failed" | "subagent.started" | "subagent.beforeComplete" | "turn.beforeComplete" | "session.end" | "context.beforeCompact" | "context.compacted")[];
429
+ blocking: "never" | "allow_deny" | "interaction";
430
+ timeoutMs: number;
431
+ failureMode: "fail_closed" | "fail_open" | "report_only";
432
+ }, {
433
+ ref: {
434
+ profileId: string;
435
+ version: string;
436
+ policyRevision: string;
437
+ };
438
+ hookPoints: ("session.start" | "prompt.beforeSubmit" | "tool.beforeExecute" | "permission.request" | "tool.completed" | "tool.failed" | "subagent.started" | "subagent.beforeComplete" | "turn.beforeComplete" | "session.end" | "context.beforeCompact" | "context.compacted")[];
439
+ blocking: "never" | "allow_deny" | "interaction";
440
+ timeoutMs: number;
441
+ failureMode: "fail_closed" | "fail_open" | "report_only";
442
+ }>;
443
+ export declare const EngineInteractionOptionSchema: z.ZodObject<{
444
+ optionId: z.ZodString;
445
+ label: z.ZodString;
446
+ semantic: z.ZodOptional<z.ZodEnum<["allow_once", "allow_session", "deny", "custom"]>>;
447
+ }, "strip", z.ZodTypeAny, {
448
+ optionId: string;
449
+ label: string;
450
+ semantic?: "custom" | "allow_once" | "allow_session" | "deny" | undefined;
451
+ }, {
452
+ optionId: string;
453
+ label: string;
454
+ semantic?: "custom" | "allow_once" | "allow_session" | "deny" | undefined;
455
+ }>;
343
456
  export declare const EngineCapabilityProfileSchema: z.ZodObject<{
344
457
  engineId: z.ZodEnum<["claude-code", "codex", "hermes", "openclaw", "custom"]>;
345
458
  hostKind: z.ZodOptional<z.ZodEnum<["workstation", "external_computer"]>>;
@@ -360,6 +473,74 @@ export declare const EngineCapabilityProfileSchema: z.ZodObject<{
360
473
  resume?: string | undefined;
361
474
  }>>;
362
475
  unavailableReason: z.ZodOptional<z.ZodString>;
476
+ /** 最大静态耐久能力集合;具体 Run 的实际 durability 由 launch ack/snapshot 表达。 */
477
+ supportedExecutionDurability: z.ZodOptional<z.ZodArray<z.ZodEnum<["connection_bound", "host_persistent"]>, "many">>;
478
+ supportsInteractionResponse: z.ZodOptional<z.ZodBoolean>;
479
+ /** 只描述 startRun() 初始输入 block 类型,不表示支持运行中追加普通消息。 */
480
+ supportedInputKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["text", "image_ref", "file_ref", "resource_ref"]>, "many">>;
481
+ permissionModes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
482
+ supportsReasoningEffort: z.ZodOptional<z.ZodBoolean>;
483
+ supportsModelSelection: z.ZodOptional<z.ZodBoolean>;
484
+ supportsEngineOptionDiscovery: z.ZodOptional<z.ZodBoolean>;
485
+ /** 内部启动协商用,不属于用户可选 Engine options。 */
486
+ supportedEngineHookProfiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
487
+ ref: z.ZodObject<{
488
+ profileId: z.ZodString;
489
+ version: z.ZodString;
490
+ policyRevision: z.ZodString;
491
+ }, "strip", z.ZodTypeAny, {
492
+ profileId: string;
493
+ version: string;
494
+ policyRevision: string;
495
+ }, {
496
+ profileId: string;
497
+ version: string;
498
+ policyRevision: string;
499
+ }>;
500
+ hookPoints: z.ZodArray<z.ZodEnum<["session.start", "prompt.beforeSubmit", "tool.beforeExecute", "permission.request", "tool.completed", "tool.failed", "subagent.started", "subagent.beforeComplete", "turn.beforeComplete", "session.end", "context.beforeCompact", "context.compacted"]>, "many">;
501
+ blocking: z.ZodEnum<["never", "allow_deny", "interaction"]>;
502
+ timeoutMs: z.ZodNumber;
503
+ failureMode: z.ZodEnum<["fail_closed", "fail_open", "report_only"]>;
504
+ }, "strip", z.ZodTypeAny, {
505
+ ref: {
506
+ profileId: string;
507
+ version: string;
508
+ policyRevision: string;
509
+ };
510
+ hookPoints: ("session.start" | "prompt.beforeSubmit" | "tool.beforeExecute" | "permission.request" | "tool.completed" | "tool.failed" | "subagent.started" | "subagent.beforeComplete" | "turn.beforeComplete" | "session.end" | "context.beforeCompact" | "context.compacted")[];
511
+ blocking: "never" | "allow_deny" | "interaction";
512
+ timeoutMs: number;
513
+ failureMode: "fail_closed" | "fail_open" | "report_only";
514
+ }, {
515
+ ref: {
516
+ profileId: string;
517
+ version: string;
518
+ policyRevision: string;
519
+ };
520
+ hookPoints: ("session.start" | "prompt.beforeSubmit" | "tool.beforeExecute" | "permission.request" | "tool.completed" | "tool.failed" | "subagent.started" | "subagent.beforeComplete" | "turn.beforeComplete" | "session.end" | "context.beforeCompact" | "context.compacted")[];
521
+ blocking: "never" | "allow_deny" | "interaction";
522
+ timeoutMs: number;
523
+ failureMode: "fail_closed" | "fail_open" | "report_only";
524
+ }>, "many">>;
525
+ eventStreamMode: z.ZodOptional<z.ZodEnum<["live_only", "replay", "snapshot_fallback"]>>;
526
+ eventRetention: z.ZodOptional<z.ZodObject<{
527
+ maxEvents: z.ZodOptional<z.ZodNumber>;
528
+ maxAgeSeconds: z.ZodOptional<z.ZodNumber>;
529
+ }, "strip", z.ZodTypeAny, {
530
+ maxEvents?: number | undefined;
531
+ maxAgeSeconds?: number | undefined;
532
+ }, {
533
+ maxEvents?: number | undefined;
534
+ maxAgeSeconds?: number | undefined;
535
+ }>>;
536
+ supportsSessionList: z.ZodOptional<z.ZodBoolean>;
537
+ supportsSessionGet: z.ZodOptional<z.ZodBoolean>;
538
+ supportsSessionSearch: z.ZodOptional<z.ZodBoolean>;
539
+ supportsSessionDelete: z.ZodOptional<z.ZodBoolean>;
540
+ supportsSessionResume: z.ZodOptional<z.ZodBoolean>;
541
+ supportsSessionFork: z.ZodOptional<z.ZodBoolean>;
542
+ /** 旧字段:兼容期仅映射为 eventStreamMode='live_only',不得据此宣称 replay。 */
543
+ supportsReconnectableStream: z.ZodOptional<z.ZodBoolean>;
363
544
  }, "strip", z.ZodTypeAny, {
364
545
  streaming: boolean;
365
546
  toolCall: boolean;
@@ -374,6 +555,36 @@ export declare const EngineCapabilityProfileSchema: z.ZodObject<{
374
555
  resume?: string | undefined;
375
556
  } | undefined;
376
557
  unavailableReason?: string | undefined;
558
+ supportedExecutionDurability?: ("connection_bound" | "host_persistent")[] | undefined;
559
+ supportsInteractionResponse?: boolean | undefined;
560
+ supportedInputKinds?: ("text" | "image_ref" | "file_ref" | "resource_ref")[] | undefined;
561
+ permissionModes?: string[] | undefined;
562
+ supportsReasoningEffort?: boolean | undefined;
563
+ supportsModelSelection?: boolean | undefined;
564
+ supportsEngineOptionDiscovery?: boolean | undefined;
565
+ supportedEngineHookProfiles?: {
566
+ ref: {
567
+ profileId: string;
568
+ version: string;
569
+ policyRevision: string;
570
+ };
571
+ hookPoints: ("session.start" | "prompt.beforeSubmit" | "tool.beforeExecute" | "permission.request" | "tool.completed" | "tool.failed" | "subagent.started" | "subagent.beforeComplete" | "turn.beforeComplete" | "session.end" | "context.beforeCompact" | "context.compacted")[];
572
+ blocking: "never" | "allow_deny" | "interaction";
573
+ timeoutMs: number;
574
+ failureMode: "fail_closed" | "fail_open" | "report_only";
575
+ }[] | undefined;
576
+ eventStreamMode?: "live_only" | "replay" | "snapshot_fallback" | undefined;
577
+ eventRetention?: {
578
+ maxEvents?: number | undefined;
579
+ maxAgeSeconds?: number | undefined;
580
+ } | undefined;
581
+ supportsSessionList?: boolean | undefined;
582
+ supportsSessionGet?: boolean | undefined;
583
+ supportsSessionSearch?: boolean | undefined;
584
+ supportsSessionDelete?: boolean | undefined;
585
+ supportsSessionResume?: boolean | undefined;
586
+ supportsSessionFork?: boolean | undefined;
587
+ supportsReconnectableStream?: boolean | undefined;
377
588
  }, {
378
589
  streaming: boolean;
379
590
  toolCall: boolean;
@@ -388,13 +599,48 @@ export declare const EngineCapabilityProfileSchema: z.ZodObject<{
388
599
  resume?: string | undefined;
389
600
  } | undefined;
390
601
  unavailableReason?: string | undefined;
602
+ supportedExecutionDurability?: ("connection_bound" | "host_persistent")[] | undefined;
603
+ supportsInteractionResponse?: boolean | undefined;
604
+ supportedInputKinds?: ("text" | "image_ref" | "file_ref" | "resource_ref")[] | undefined;
605
+ permissionModes?: string[] | undefined;
606
+ supportsReasoningEffort?: boolean | undefined;
607
+ supportsModelSelection?: boolean | undefined;
608
+ supportsEngineOptionDiscovery?: boolean | undefined;
609
+ supportedEngineHookProfiles?: {
610
+ ref: {
611
+ profileId: string;
612
+ version: string;
613
+ policyRevision: string;
614
+ };
615
+ hookPoints: ("session.start" | "prompt.beforeSubmit" | "tool.beforeExecute" | "permission.request" | "tool.completed" | "tool.failed" | "subagent.started" | "subagent.beforeComplete" | "turn.beforeComplete" | "session.end" | "context.beforeCompact" | "context.compacted")[];
616
+ blocking: "never" | "allow_deny" | "interaction";
617
+ timeoutMs: number;
618
+ failureMode: "fail_closed" | "fail_open" | "report_only";
619
+ }[] | undefined;
620
+ eventStreamMode?: "live_only" | "replay" | "snapshot_fallback" | undefined;
621
+ eventRetention?: {
622
+ maxEvents?: number | undefined;
623
+ maxAgeSeconds?: number | undefined;
624
+ } | undefined;
625
+ supportsSessionList?: boolean | undefined;
626
+ supportsSessionGet?: boolean | undefined;
627
+ supportsSessionSearch?: boolean | undefined;
628
+ supportsSessionDelete?: boolean | undefined;
629
+ supportsSessionResume?: boolean | undefined;
630
+ supportsSessionFork?: boolean | undefined;
631
+ supportsReconnectableStream?: boolean | undefined;
391
632
  }>;
392
- export declare const EngineInvocationPlanSchema: z.ZodObject<{
633
+ /**
634
+ * V1 调用计划(字符串 input)。现有 shape 固定为 V1,不得原地改成对象;
635
+ * 结构化输入请使用 EngineInvocationPlanV2Schema(见 agentEngine.ts)。
636
+ * env 仅允许非敏感、可序列化配置;secret 走 Host 私有 binding。
637
+ */
638
+ export declare const EngineInvocationPlanV1Schema: z.ZodObject<{
393
639
  taskId: z.ZodString;
394
640
  engineId: z.ZodEnum<["claude-code", "codex", "hermes", "openclaw", "custom"]>;
395
641
  hostKind: z.ZodEnum<["workstation", "external_computer"]>;
396
642
  hostProfile: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["coding", "sre"]>, z.ZodString]>>;
397
- toolName: z.ZodEnum<["coding_task", "sre_skill_task", "workstation_execute", "external_agent_task"]>;
643
+ toolName: z.ZodEnum<["coding_task", "sre_skill_task", "workstation_execute", "external_agent_task", "execute_task"]>;
398
644
  input: z.ZodString;
399
645
  workDir: z.ZodOptional<z.ZodString>;
400
646
  timeoutMs: z.ZodOptional<z.ZodNumber>;
@@ -408,13 +654,13 @@ export declare const EngineInvocationPlanSchema: z.ZodObject<{
408
654
  input: string;
409
655
  engineId: "custom" | "claude-code" | "codex" | "hermes" | "openclaw";
410
656
  hostKind: "workstation" | "external_computer";
411
- toolName: "coding_task" | "sre_skill_task" | "workstation_execute" | "external_agent_task";
657
+ toolName: "coding_task" | "sre_skill_task" | "workstation_execute" | "external_agent_task" | "execute_task";
412
658
  allowedTools?: string[] | undefined;
413
659
  sessionId?: string | undefined;
660
+ timeoutMs?: number | undefined;
414
661
  hostProfile?: string | undefined;
415
662
  resume?: boolean | undefined;
416
663
  workDir?: string | undefined;
417
- timeoutMs?: number | undefined;
418
664
  env?: Record<string, string> | undefined;
419
665
  artifactPolicy?: Record<string, unknown> | undefined;
420
666
  }, {
@@ -422,29 +668,74 @@ export declare const EngineInvocationPlanSchema: z.ZodObject<{
422
668
  input: string;
423
669
  engineId: "custom" | "claude-code" | "codex" | "hermes" | "openclaw";
424
670
  hostKind: "workstation" | "external_computer";
425
- toolName: "coding_task" | "sre_skill_task" | "workstation_execute" | "external_agent_task";
671
+ toolName: "coding_task" | "sre_skill_task" | "workstation_execute" | "external_agent_task" | "execute_task";
426
672
  allowedTools?: string[] | undefined;
427
673
  sessionId?: string | undefined;
674
+ timeoutMs?: number | undefined;
428
675
  hostProfile?: string | undefined;
429
676
  resume?: boolean | undefined;
430
677
  workDir?: string | undefined;
431
- timeoutMs?: number | undefined;
432
678
  env?: Record<string, string> | undefined;
433
679
  artifactPolicy?: Record<string, unknown> | undefined;
434
680
  }>;
435
- export declare const EngineProgressEventTypeSchema: z.ZodEnum<["status", "content_delta", "thinking_delta", "tool_call", "tool_result_delta", "stderr_delta", "artifact", "usage", "result", "error"]>;
681
+ export declare const EngineProgressEventTypeSchema: z.ZodEnum<["status", "content_delta", "thinking_delta", "tool_call", "tool_result_delta", "stderr_delta", "artifact", "usage", "result", "error", "interaction_requested", "interaction_resolved"]>;
436
682
  export declare const EngineUsageSchema: z.ZodObject<{
437
683
  inputTokens: z.ZodOptional<z.ZodNumber>;
438
684
  outputTokens: z.ZodOptional<z.ZodNumber>;
439
685
  thinkingTokens: z.ZodOptional<z.ZodNumber>;
686
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
687
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
688
+ totalTokens: z.ZodOptional<z.ZodNumber>;
689
+ }, "strip", z.ZodTypeAny, {
690
+ inputTokens?: number | undefined;
691
+ outputTokens?: number | undefined;
692
+ thinkingTokens?: number | undefined;
693
+ cacheReadInputTokens?: number | undefined;
694
+ cacheCreationInputTokens?: number | undefined;
695
+ totalTokens?: number | undefined;
696
+ }, {
697
+ inputTokens?: number | undefined;
698
+ outputTokens?: number | undefined;
699
+ thinkingTokens?: number | undefined;
700
+ cacheReadInputTokens?: number | undefined;
701
+ cacheCreationInputTokens?: number | undefined;
702
+ totalTokens?: number | undefined;
703
+ }>;
704
+ /**
705
+ * D11.4: Token usage with acquisition source tracking.
706
+ * Each PodEngineDriver tries multiple paths (primary_event → session_log_scan → unknown)
707
+ * and records which path succeeded.
708
+ */
709
+ export declare const EngineTokenUsageSchema: z.ZodObject<{
710
+ inputTokens: z.ZodOptional<z.ZodNumber>;
711
+ outputTokens: z.ZodOptional<z.ZodNumber>;
712
+ thinkingTokens: z.ZodOptional<z.ZodNumber>;
713
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
714
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
715
+ totalTokens: z.ZodOptional<z.ZodNumber>;
716
+ } & {
717
+ /** How this usage was obtained */
718
+ source: z.ZodDefault<z.ZodEnum<["primary_event", "session_log_scan", "unknown"]>>;
719
+ /** Engine-specific raw usage data for diagnostics */
720
+ raw: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
440
721
  }, "strip", z.ZodTypeAny, {
722
+ source: "unknown" | "primary_event" | "session_log_scan";
441
723
  inputTokens?: number | undefined;
442
724
  outputTokens?: number | undefined;
443
725
  thinkingTokens?: number | undefined;
726
+ cacheReadInputTokens?: number | undefined;
727
+ cacheCreationInputTokens?: number | undefined;
728
+ totalTokens?: number | undefined;
729
+ raw?: Record<string, unknown> | undefined;
444
730
  }, {
445
731
  inputTokens?: number | undefined;
446
732
  outputTokens?: number | undefined;
447
733
  thinkingTokens?: number | undefined;
734
+ cacheReadInputTokens?: number | undefined;
735
+ cacheCreationInputTokens?: number | undefined;
736
+ totalTokens?: number | undefined;
737
+ source?: "unknown" | "primary_event" | "session_log_scan" | undefined;
738
+ raw?: Record<string, unknown> | undefined;
448
739
  }>;
449
740
  export declare const EngineFinalResultSchema: z.ZodObject<{
450
741
  success: z.ZodBoolean;
@@ -455,14 +746,23 @@ export declare const EngineFinalResultSchema: z.ZodObject<{
455
746
  inputTokens: z.ZodOptional<z.ZodNumber>;
456
747
  outputTokens: z.ZodOptional<z.ZodNumber>;
457
748
  thinkingTokens: z.ZodOptional<z.ZodNumber>;
749
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
750
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
751
+ totalTokens: z.ZodOptional<z.ZodNumber>;
458
752
  }, "strip", z.ZodTypeAny, {
459
753
  inputTokens?: number | undefined;
460
754
  outputTokens?: number | undefined;
461
755
  thinkingTokens?: number | undefined;
756
+ cacheReadInputTokens?: number | undefined;
757
+ cacheCreationInputTokens?: number | undefined;
758
+ totalTokens?: number | undefined;
462
759
  }, {
463
760
  inputTokens?: number | undefined;
464
761
  outputTokens?: number | undefined;
465
762
  thinkingTokens?: number | undefined;
763
+ cacheReadInputTokens?: number | undefined;
764
+ cacheCreationInputTokens?: number | undefined;
765
+ totalTokens?: number | undefined;
466
766
  }>>;
467
767
  error: z.ZodOptional<z.ZodString>;
468
768
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -470,24 +770,30 @@ export declare const EngineFinalResultSchema: z.ZodObject<{
470
770
  success: boolean;
471
771
  error?: string | undefined;
472
772
  sessionId?: string | undefined;
773
+ text?: string | undefined;
473
774
  usage?: {
474
775
  inputTokens?: number | undefined;
475
776
  outputTokens?: number | undefined;
476
777
  thinkingTokens?: number | undefined;
778
+ cacheReadInputTokens?: number | undefined;
779
+ cacheCreationInputTokens?: number | undefined;
780
+ totalTokens?: number | undefined;
477
781
  } | undefined;
478
- text?: string | undefined;
479
782
  artifacts?: Record<string, unknown>[] | undefined;
480
783
  metadata?: Record<string, unknown> | undefined;
481
784
  }, {
482
785
  success: boolean;
483
786
  error?: string | undefined;
484
787
  sessionId?: string | undefined;
788
+ text?: string | undefined;
485
789
  usage?: {
486
790
  inputTokens?: number | undefined;
487
791
  outputTokens?: number | undefined;
488
792
  thinkingTokens?: number | undefined;
793
+ cacheReadInputTokens?: number | undefined;
794
+ cacheCreationInputTokens?: number | undefined;
795
+ totalTokens?: number | undefined;
489
796
  } | undefined;
490
- text?: string | undefined;
491
797
  artifacts?: Record<string, unknown>[] | undefined;
492
798
  metadata?: Record<string, unknown> | undefined;
493
799
  }>;
@@ -554,6 +860,8 @@ export declare const EngineProgressEventSchema: z.ZodDiscriminatedUnion<"type",
554
860
  hostProfile: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["coding", "sre"]>, z.ZodString]>>;
555
861
  } & {
556
862
  type: z.ZodLiteral<"tool_call">;
863
+ /** 同一轮多个同名工具调用的稳定展示身份。 */
864
+ callId: z.ZodOptional<z.ZodString>;
557
865
  name: z.ZodString;
558
866
  input: z.ZodOptional<z.ZodUnknown>;
559
867
  }, "strip", z.ZodTypeAny, {
@@ -563,6 +871,7 @@ export declare const EngineProgressEventSchema: z.ZodDiscriminatedUnion<"type",
563
871
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
564
872
  hostKind?: "workstation" | "external_computer" | undefined;
565
873
  hostProfile?: string | undefined;
874
+ callId?: string | undefined;
566
875
  }, {
567
876
  type: "tool_call";
568
877
  name: string;
@@ -570,12 +879,15 @@ export declare const EngineProgressEventSchema: z.ZodDiscriminatedUnion<"type",
570
879
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
571
880
  hostKind?: "workstation" | "external_computer" | undefined;
572
881
  hostProfile?: string | undefined;
882
+ callId?: string | undefined;
573
883
  }>, z.ZodObject<{
574
884
  engineId: z.ZodOptional<z.ZodEnum<["claude-code", "codex", "hermes", "openclaw", "custom"]>>;
575
885
  hostKind: z.ZodOptional<z.ZodEnum<["workstation", "external_computer"]>>;
576
886
  hostProfile: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["coding", "sre"]>, z.ZodString]>>;
577
887
  } & {
578
888
  type: z.ZodLiteral<"tool_result_delta">;
889
+ /** 与 tool_call 配对;旧 runtime 未提供时允许服务端降级。 */
890
+ callId: z.ZodOptional<z.ZodString>;
579
891
  name: z.ZodOptional<z.ZodString>;
580
892
  text: z.ZodString;
581
893
  }, "strip", z.ZodTypeAny, {
@@ -585,6 +897,7 @@ export declare const EngineProgressEventSchema: z.ZodDiscriminatedUnion<"type",
585
897
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
586
898
  hostKind?: "workstation" | "external_computer" | undefined;
587
899
  hostProfile?: string | undefined;
900
+ callId?: string | undefined;
588
901
  }, {
589
902
  type: "tool_result_delta";
590
903
  text: string;
@@ -592,6 +905,7 @@ export declare const EngineProgressEventSchema: z.ZodDiscriminatedUnion<"type",
592
905
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
593
906
  hostKind?: "workstation" | "external_computer" | undefined;
594
907
  hostProfile?: string | undefined;
908
+ callId?: string | undefined;
595
909
  }>, z.ZodObject<{
596
910
  engineId: z.ZodOptional<z.ZodEnum<["claude-code", "codex", "hermes", "openclaw", "custom"]>>;
597
911
  hostKind: z.ZodOptional<z.ZodEnum<["workstation", "external_computer"]>>;
@@ -622,17 +936,17 @@ export declare const EngineProgressEventSchema: z.ZodDiscriminatedUnion<"type",
622
936
  }, "strip", z.ZodTypeAny, {
623
937
  type: "artifact";
624
938
  path: string;
939
+ label?: string | undefined;
625
940
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
626
941
  hostKind?: "workstation" | "external_computer" | undefined;
627
942
  hostProfile?: string | undefined;
628
- label?: string | undefined;
629
943
  }, {
630
944
  type: "artifact";
631
945
  path: string;
946
+ label?: string | undefined;
632
947
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
633
948
  hostKind?: "workstation" | "external_computer" | undefined;
634
949
  hostProfile?: string | undefined;
635
- label?: string | undefined;
636
950
  }>, z.ZodObject<{
637
951
  engineId: z.ZodOptional<z.ZodEnum<["claude-code", "codex", "hermes", "openclaw", "custom"]>>;
638
952
  hostKind: z.ZodOptional<z.ZodEnum<["workstation", "external_computer"]>>;
@@ -643,14 +957,23 @@ export declare const EngineProgressEventSchema: z.ZodDiscriminatedUnion<"type",
643
957
  inputTokens: z.ZodOptional<z.ZodNumber>;
644
958
  outputTokens: z.ZodOptional<z.ZodNumber>;
645
959
  thinkingTokens: z.ZodOptional<z.ZodNumber>;
960
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
961
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
962
+ totalTokens: z.ZodOptional<z.ZodNumber>;
646
963
  }, "strip", z.ZodTypeAny, {
647
964
  inputTokens?: number | undefined;
648
965
  outputTokens?: number | undefined;
649
966
  thinkingTokens?: number | undefined;
967
+ cacheReadInputTokens?: number | undefined;
968
+ cacheCreationInputTokens?: number | undefined;
969
+ totalTokens?: number | undefined;
650
970
  }, {
651
971
  inputTokens?: number | undefined;
652
972
  outputTokens?: number | undefined;
653
973
  thinkingTokens?: number | undefined;
974
+ cacheReadInputTokens?: number | undefined;
975
+ cacheCreationInputTokens?: number | undefined;
976
+ totalTokens?: number | undefined;
654
977
  }>;
655
978
  }, "strip", z.ZodTypeAny, {
656
979
  type: "usage";
@@ -658,6 +981,9 @@ export declare const EngineProgressEventSchema: z.ZodDiscriminatedUnion<"type",
658
981
  inputTokens?: number | undefined;
659
982
  outputTokens?: number | undefined;
660
983
  thinkingTokens?: number | undefined;
984
+ cacheReadInputTokens?: number | undefined;
985
+ cacheCreationInputTokens?: number | undefined;
986
+ totalTokens?: number | undefined;
661
987
  };
662
988
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
663
989
  hostKind?: "workstation" | "external_computer" | undefined;
@@ -668,6 +994,9 @@ export declare const EngineProgressEventSchema: z.ZodDiscriminatedUnion<"type",
668
994
  inputTokens?: number | undefined;
669
995
  outputTokens?: number | undefined;
670
996
  thinkingTokens?: number | undefined;
997
+ cacheReadInputTokens?: number | undefined;
998
+ cacheCreationInputTokens?: number | undefined;
999
+ totalTokens?: number | undefined;
671
1000
  };
672
1001
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
673
1002
  hostKind?: "workstation" | "external_computer" | undefined;
@@ -687,14 +1016,23 @@ export declare const EngineProgressEventSchema: z.ZodDiscriminatedUnion<"type",
687
1016
  inputTokens: z.ZodOptional<z.ZodNumber>;
688
1017
  outputTokens: z.ZodOptional<z.ZodNumber>;
689
1018
  thinkingTokens: z.ZodOptional<z.ZodNumber>;
1019
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
1020
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
1021
+ totalTokens: z.ZodOptional<z.ZodNumber>;
690
1022
  }, "strip", z.ZodTypeAny, {
691
1023
  inputTokens?: number | undefined;
692
1024
  outputTokens?: number | undefined;
693
1025
  thinkingTokens?: number | undefined;
1026
+ cacheReadInputTokens?: number | undefined;
1027
+ cacheCreationInputTokens?: number | undefined;
1028
+ totalTokens?: number | undefined;
694
1029
  }, {
695
1030
  inputTokens?: number | undefined;
696
1031
  outputTokens?: number | undefined;
697
1032
  thinkingTokens?: number | undefined;
1033
+ cacheReadInputTokens?: number | undefined;
1034
+ cacheCreationInputTokens?: number | undefined;
1035
+ totalTokens?: number | undefined;
698
1036
  }>>;
699
1037
  error: z.ZodOptional<z.ZodString>;
700
1038
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -702,24 +1040,30 @@ export declare const EngineProgressEventSchema: z.ZodDiscriminatedUnion<"type",
702
1040
  success: boolean;
703
1041
  error?: string | undefined;
704
1042
  sessionId?: string | undefined;
1043
+ text?: string | undefined;
705
1044
  usage?: {
706
1045
  inputTokens?: number | undefined;
707
1046
  outputTokens?: number | undefined;
708
1047
  thinkingTokens?: number | undefined;
1048
+ cacheReadInputTokens?: number | undefined;
1049
+ cacheCreationInputTokens?: number | undefined;
1050
+ totalTokens?: number | undefined;
709
1051
  } | undefined;
710
- text?: string | undefined;
711
1052
  artifacts?: Record<string, unknown>[] | undefined;
712
1053
  metadata?: Record<string, unknown> | undefined;
713
1054
  }, {
714
1055
  success: boolean;
715
1056
  error?: string | undefined;
716
1057
  sessionId?: string | undefined;
1058
+ text?: string | undefined;
717
1059
  usage?: {
718
1060
  inputTokens?: number | undefined;
719
1061
  outputTokens?: number | undefined;
720
1062
  thinkingTokens?: number | undefined;
1063
+ cacheReadInputTokens?: number | undefined;
1064
+ cacheCreationInputTokens?: number | undefined;
1065
+ totalTokens?: number | undefined;
721
1066
  } | undefined;
722
- text?: string | undefined;
723
1067
  artifacts?: Record<string, unknown>[] | undefined;
724
1068
  metadata?: Record<string, unknown> | undefined;
725
1069
  }>;
@@ -729,12 +1073,15 @@ export declare const EngineProgressEventSchema: z.ZodDiscriminatedUnion<"type",
729
1073
  success: boolean;
730
1074
  error?: string | undefined;
731
1075
  sessionId?: string | undefined;
1076
+ text?: string | undefined;
732
1077
  usage?: {
733
1078
  inputTokens?: number | undefined;
734
1079
  outputTokens?: number | undefined;
735
1080
  thinkingTokens?: number | undefined;
1081
+ cacheReadInputTokens?: number | undefined;
1082
+ cacheCreationInputTokens?: number | undefined;
1083
+ totalTokens?: number | undefined;
736
1084
  } | undefined;
737
- text?: string | undefined;
738
1085
  artifacts?: Record<string, unknown>[] | undefined;
739
1086
  metadata?: Record<string, unknown> | undefined;
740
1087
  };
@@ -747,12 +1094,15 @@ export declare const EngineProgressEventSchema: z.ZodDiscriminatedUnion<"type",
747
1094
  success: boolean;
748
1095
  error?: string | undefined;
749
1096
  sessionId?: string | undefined;
1097
+ text?: string | undefined;
750
1098
  usage?: {
751
1099
  inputTokens?: number | undefined;
752
1100
  outputTokens?: number | undefined;
753
1101
  thinkingTokens?: number | undefined;
1102
+ cacheReadInputTokens?: number | undefined;
1103
+ cacheCreationInputTokens?: number | undefined;
1104
+ totalTokens?: number | undefined;
754
1105
  } | undefined;
755
- text?: string | undefined;
756
1106
  artifacts?: Record<string, unknown>[] | undefined;
757
1107
  metadata?: Record<string, unknown> | undefined;
758
1108
  };
@@ -781,6 +1131,83 @@ export declare const EngineProgressEventSchema: z.ZodDiscriminatedUnion<"type",
781
1131
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
782
1132
  hostKind?: "workstation" | "external_computer" | undefined;
783
1133
  hostProfile?: string | undefined;
1134
+ }>, z.ZodObject<{
1135
+ engineId: z.ZodOptional<z.ZodEnum<["claude-code", "codex", "hermes", "openclaw", "custom"]>>;
1136
+ hostKind: z.ZodOptional<z.ZodEnum<["workstation", "external_computer"]>>;
1137
+ hostProfile: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["coding", "sre"]>, z.ZodString]>>;
1138
+ } & {
1139
+ type: z.ZodLiteral<"interaction_requested">;
1140
+ interactionId: z.ZodString;
1141
+ interactionType: z.ZodEnum<["permission", "confirmation", "question", "selection"]>;
1142
+ /** 最小必要的用户决策说明;不得包含 Engine 内部思考或 secret。 */
1143
+ prompt: z.ZodString;
1144
+ options: z.ZodArray<z.ZodObject<{
1145
+ optionId: z.ZodString;
1146
+ label: z.ZodString;
1147
+ semantic: z.ZodOptional<z.ZodEnum<["allow_once", "allow_session", "deny", "custom"]>>;
1148
+ }, "strip", z.ZodTypeAny, {
1149
+ optionId: string;
1150
+ label: string;
1151
+ semantic?: "custom" | "allow_once" | "allow_session" | "deny" | undefined;
1152
+ }, {
1153
+ optionId: string;
1154
+ label: string;
1155
+ semantic?: "custom" | "allow_once" | "allow_session" | "deny" | undefined;
1156
+ }>, "many">;
1157
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1158
+ }, "strip", z.ZodTypeAny, {
1159
+ type: "interaction_requested";
1160
+ options: {
1161
+ optionId: string;
1162
+ label: string;
1163
+ semantic?: "custom" | "allow_once" | "allow_session" | "deny" | undefined;
1164
+ }[];
1165
+ interactionId: string;
1166
+ interactionType: "permission" | "confirmation" | "question" | "selection";
1167
+ prompt: string;
1168
+ timeoutMs?: number | undefined;
1169
+ engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1170
+ hostKind?: "workstation" | "external_computer" | undefined;
1171
+ hostProfile?: string | undefined;
1172
+ }, {
1173
+ type: "interaction_requested";
1174
+ options: {
1175
+ optionId: string;
1176
+ label: string;
1177
+ semantic?: "custom" | "allow_once" | "allow_session" | "deny" | undefined;
1178
+ }[];
1179
+ interactionId: string;
1180
+ interactionType: "permission" | "confirmation" | "question" | "selection";
1181
+ prompt: string;
1182
+ timeoutMs?: number | undefined;
1183
+ engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1184
+ hostKind?: "workstation" | "external_computer" | undefined;
1185
+ hostProfile?: string | undefined;
1186
+ }>, z.ZodObject<{
1187
+ engineId: z.ZodOptional<z.ZodEnum<["claude-code", "codex", "hermes", "openclaw", "custom"]>>;
1188
+ hostKind: z.ZodOptional<z.ZodEnum<["workstation", "external_computer"]>>;
1189
+ hostProfile: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["coding", "sre"]>, z.ZodString]>>;
1190
+ } & {
1191
+ type: z.ZodLiteral<"interaction_resolved">;
1192
+ interactionId: z.ZodString;
1193
+ responseId: z.ZodOptional<z.ZodString>;
1194
+ resolution: z.ZodEnum<["accepted", "rejected", "answered", "expired"]>;
1195
+ }, "strip", z.ZodTypeAny, {
1196
+ type: "interaction_resolved";
1197
+ interactionId: string;
1198
+ resolution: "accepted" | "rejected" | "answered" | "expired";
1199
+ engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1200
+ hostKind?: "workstation" | "external_computer" | undefined;
1201
+ hostProfile?: string | undefined;
1202
+ responseId?: string | undefined;
1203
+ }, {
1204
+ type: "interaction_resolved";
1205
+ interactionId: string;
1206
+ resolution: "accepted" | "rejected" | "answered" | "expired";
1207
+ engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1208
+ hostKind?: "workstation" | "external_computer" | undefined;
1209
+ hostProfile?: string | undefined;
1210
+ responseId?: string | undefined;
784
1211
  }>]>;
785
1212
  export declare const TaskDeltaEventSchema: z.ZodObject<{
786
1213
  taskId: z.ZodString;
@@ -849,6 +1276,8 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
849
1276
  hostProfile: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["coding", "sre"]>, z.ZodString]>>;
850
1277
  } & {
851
1278
  type: z.ZodLiteral<"tool_call">;
1279
+ /** 同一轮多个同名工具调用的稳定展示身份。 */
1280
+ callId: z.ZodOptional<z.ZodString>;
852
1281
  name: z.ZodString;
853
1282
  input: z.ZodOptional<z.ZodUnknown>;
854
1283
  }, "strip", z.ZodTypeAny, {
@@ -858,6 +1287,7 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
858
1287
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
859
1288
  hostKind?: "workstation" | "external_computer" | undefined;
860
1289
  hostProfile?: string | undefined;
1290
+ callId?: string | undefined;
861
1291
  }, {
862
1292
  type: "tool_call";
863
1293
  name: string;
@@ -865,12 +1295,15 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
865
1295
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
866
1296
  hostKind?: "workstation" | "external_computer" | undefined;
867
1297
  hostProfile?: string | undefined;
1298
+ callId?: string | undefined;
868
1299
  }>, z.ZodObject<{
869
1300
  engineId: z.ZodOptional<z.ZodEnum<["claude-code", "codex", "hermes", "openclaw", "custom"]>>;
870
1301
  hostKind: z.ZodOptional<z.ZodEnum<["workstation", "external_computer"]>>;
871
1302
  hostProfile: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["coding", "sre"]>, z.ZodString]>>;
872
1303
  } & {
873
1304
  type: z.ZodLiteral<"tool_result_delta">;
1305
+ /** 与 tool_call 配对;旧 runtime 未提供时允许服务端降级。 */
1306
+ callId: z.ZodOptional<z.ZodString>;
874
1307
  name: z.ZodOptional<z.ZodString>;
875
1308
  text: z.ZodString;
876
1309
  }, "strip", z.ZodTypeAny, {
@@ -880,6 +1313,7 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
880
1313
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
881
1314
  hostKind?: "workstation" | "external_computer" | undefined;
882
1315
  hostProfile?: string | undefined;
1316
+ callId?: string | undefined;
883
1317
  }, {
884
1318
  type: "tool_result_delta";
885
1319
  text: string;
@@ -887,6 +1321,7 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
887
1321
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
888
1322
  hostKind?: "workstation" | "external_computer" | undefined;
889
1323
  hostProfile?: string | undefined;
1324
+ callId?: string | undefined;
890
1325
  }>, z.ZodObject<{
891
1326
  engineId: z.ZodOptional<z.ZodEnum<["claude-code", "codex", "hermes", "openclaw", "custom"]>>;
892
1327
  hostKind: z.ZodOptional<z.ZodEnum<["workstation", "external_computer"]>>;
@@ -917,17 +1352,17 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
917
1352
  }, "strip", z.ZodTypeAny, {
918
1353
  type: "artifact";
919
1354
  path: string;
1355
+ label?: string | undefined;
920
1356
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
921
1357
  hostKind?: "workstation" | "external_computer" | undefined;
922
1358
  hostProfile?: string | undefined;
923
- label?: string | undefined;
924
1359
  }, {
925
1360
  type: "artifact";
926
1361
  path: string;
1362
+ label?: string | undefined;
927
1363
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
928
1364
  hostKind?: "workstation" | "external_computer" | undefined;
929
1365
  hostProfile?: string | undefined;
930
- label?: string | undefined;
931
1366
  }>, z.ZodObject<{
932
1367
  engineId: z.ZodOptional<z.ZodEnum<["claude-code", "codex", "hermes", "openclaw", "custom"]>>;
933
1368
  hostKind: z.ZodOptional<z.ZodEnum<["workstation", "external_computer"]>>;
@@ -938,14 +1373,23 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
938
1373
  inputTokens: z.ZodOptional<z.ZodNumber>;
939
1374
  outputTokens: z.ZodOptional<z.ZodNumber>;
940
1375
  thinkingTokens: z.ZodOptional<z.ZodNumber>;
1376
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
1377
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
1378
+ totalTokens: z.ZodOptional<z.ZodNumber>;
941
1379
  }, "strip", z.ZodTypeAny, {
942
1380
  inputTokens?: number | undefined;
943
1381
  outputTokens?: number | undefined;
944
1382
  thinkingTokens?: number | undefined;
1383
+ cacheReadInputTokens?: number | undefined;
1384
+ cacheCreationInputTokens?: number | undefined;
1385
+ totalTokens?: number | undefined;
945
1386
  }, {
946
1387
  inputTokens?: number | undefined;
947
1388
  outputTokens?: number | undefined;
948
1389
  thinkingTokens?: number | undefined;
1390
+ cacheReadInputTokens?: number | undefined;
1391
+ cacheCreationInputTokens?: number | undefined;
1392
+ totalTokens?: number | undefined;
949
1393
  }>;
950
1394
  }, "strip", z.ZodTypeAny, {
951
1395
  type: "usage";
@@ -953,6 +1397,9 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
953
1397
  inputTokens?: number | undefined;
954
1398
  outputTokens?: number | undefined;
955
1399
  thinkingTokens?: number | undefined;
1400
+ cacheReadInputTokens?: number | undefined;
1401
+ cacheCreationInputTokens?: number | undefined;
1402
+ totalTokens?: number | undefined;
956
1403
  };
957
1404
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
958
1405
  hostKind?: "workstation" | "external_computer" | undefined;
@@ -963,6 +1410,9 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
963
1410
  inputTokens?: number | undefined;
964
1411
  outputTokens?: number | undefined;
965
1412
  thinkingTokens?: number | undefined;
1413
+ cacheReadInputTokens?: number | undefined;
1414
+ cacheCreationInputTokens?: number | undefined;
1415
+ totalTokens?: number | undefined;
966
1416
  };
967
1417
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
968
1418
  hostKind?: "workstation" | "external_computer" | undefined;
@@ -982,14 +1432,23 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
982
1432
  inputTokens: z.ZodOptional<z.ZodNumber>;
983
1433
  outputTokens: z.ZodOptional<z.ZodNumber>;
984
1434
  thinkingTokens: z.ZodOptional<z.ZodNumber>;
1435
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
1436
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
1437
+ totalTokens: z.ZodOptional<z.ZodNumber>;
985
1438
  }, "strip", z.ZodTypeAny, {
986
1439
  inputTokens?: number | undefined;
987
1440
  outputTokens?: number | undefined;
988
1441
  thinkingTokens?: number | undefined;
1442
+ cacheReadInputTokens?: number | undefined;
1443
+ cacheCreationInputTokens?: number | undefined;
1444
+ totalTokens?: number | undefined;
989
1445
  }, {
990
1446
  inputTokens?: number | undefined;
991
1447
  outputTokens?: number | undefined;
992
1448
  thinkingTokens?: number | undefined;
1449
+ cacheReadInputTokens?: number | undefined;
1450
+ cacheCreationInputTokens?: number | undefined;
1451
+ totalTokens?: number | undefined;
993
1452
  }>>;
994
1453
  error: z.ZodOptional<z.ZodString>;
995
1454
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -997,24 +1456,30 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
997
1456
  success: boolean;
998
1457
  error?: string | undefined;
999
1458
  sessionId?: string | undefined;
1459
+ text?: string | undefined;
1000
1460
  usage?: {
1001
1461
  inputTokens?: number | undefined;
1002
1462
  outputTokens?: number | undefined;
1003
1463
  thinkingTokens?: number | undefined;
1464
+ cacheReadInputTokens?: number | undefined;
1465
+ cacheCreationInputTokens?: number | undefined;
1466
+ totalTokens?: number | undefined;
1004
1467
  } | undefined;
1005
- text?: string | undefined;
1006
1468
  artifacts?: Record<string, unknown>[] | undefined;
1007
1469
  metadata?: Record<string, unknown> | undefined;
1008
1470
  }, {
1009
1471
  success: boolean;
1010
1472
  error?: string | undefined;
1011
1473
  sessionId?: string | undefined;
1474
+ text?: string | undefined;
1012
1475
  usage?: {
1013
1476
  inputTokens?: number | undefined;
1014
1477
  outputTokens?: number | undefined;
1015
1478
  thinkingTokens?: number | undefined;
1479
+ cacheReadInputTokens?: number | undefined;
1480
+ cacheCreationInputTokens?: number | undefined;
1481
+ totalTokens?: number | undefined;
1016
1482
  } | undefined;
1017
- text?: string | undefined;
1018
1483
  artifacts?: Record<string, unknown>[] | undefined;
1019
1484
  metadata?: Record<string, unknown> | undefined;
1020
1485
  }>;
@@ -1024,12 +1489,15 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
1024
1489
  success: boolean;
1025
1490
  error?: string | undefined;
1026
1491
  sessionId?: string | undefined;
1492
+ text?: string | undefined;
1027
1493
  usage?: {
1028
1494
  inputTokens?: number | undefined;
1029
1495
  outputTokens?: number | undefined;
1030
1496
  thinkingTokens?: number | undefined;
1497
+ cacheReadInputTokens?: number | undefined;
1498
+ cacheCreationInputTokens?: number | undefined;
1499
+ totalTokens?: number | undefined;
1031
1500
  } | undefined;
1032
- text?: string | undefined;
1033
1501
  artifacts?: Record<string, unknown>[] | undefined;
1034
1502
  metadata?: Record<string, unknown> | undefined;
1035
1503
  };
@@ -1042,12 +1510,15 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
1042
1510
  success: boolean;
1043
1511
  error?: string | undefined;
1044
1512
  sessionId?: string | undefined;
1513
+ text?: string | undefined;
1045
1514
  usage?: {
1046
1515
  inputTokens?: number | undefined;
1047
1516
  outputTokens?: number | undefined;
1048
1517
  thinkingTokens?: number | undefined;
1518
+ cacheReadInputTokens?: number | undefined;
1519
+ cacheCreationInputTokens?: number | undefined;
1520
+ totalTokens?: number | undefined;
1049
1521
  } | undefined;
1050
- text?: string | undefined;
1051
1522
  artifacts?: Record<string, unknown>[] | undefined;
1052
1523
  metadata?: Record<string, unknown> | undefined;
1053
1524
  };
@@ -1076,6 +1547,83 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
1076
1547
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1077
1548
  hostKind?: "workstation" | "external_computer" | undefined;
1078
1549
  hostProfile?: string | undefined;
1550
+ }>, z.ZodObject<{
1551
+ engineId: z.ZodOptional<z.ZodEnum<["claude-code", "codex", "hermes", "openclaw", "custom"]>>;
1552
+ hostKind: z.ZodOptional<z.ZodEnum<["workstation", "external_computer"]>>;
1553
+ hostProfile: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["coding", "sre"]>, z.ZodString]>>;
1554
+ } & {
1555
+ type: z.ZodLiteral<"interaction_requested">;
1556
+ interactionId: z.ZodString;
1557
+ interactionType: z.ZodEnum<["permission", "confirmation", "question", "selection"]>;
1558
+ /** 最小必要的用户决策说明;不得包含 Engine 内部思考或 secret。 */
1559
+ prompt: z.ZodString;
1560
+ options: z.ZodArray<z.ZodObject<{
1561
+ optionId: z.ZodString;
1562
+ label: z.ZodString;
1563
+ semantic: z.ZodOptional<z.ZodEnum<["allow_once", "allow_session", "deny", "custom"]>>;
1564
+ }, "strip", z.ZodTypeAny, {
1565
+ optionId: string;
1566
+ label: string;
1567
+ semantic?: "custom" | "allow_once" | "allow_session" | "deny" | undefined;
1568
+ }, {
1569
+ optionId: string;
1570
+ label: string;
1571
+ semantic?: "custom" | "allow_once" | "allow_session" | "deny" | undefined;
1572
+ }>, "many">;
1573
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1574
+ }, "strip", z.ZodTypeAny, {
1575
+ type: "interaction_requested";
1576
+ options: {
1577
+ optionId: string;
1578
+ label: string;
1579
+ semantic?: "custom" | "allow_once" | "allow_session" | "deny" | undefined;
1580
+ }[];
1581
+ interactionId: string;
1582
+ interactionType: "permission" | "confirmation" | "question" | "selection";
1583
+ prompt: string;
1584
+ timeoutMs?: number | undefined;
1585
+ engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1586
+ hostKind?: "workstation" | "external_computer" | undefined;
1587
+ hostProfile?: string | undefined;
1588
+ }, {
1589
+ type: "interaction_requested";
1590
+ options: {
1591
+ optionId: string;
1592
+ label: string;
1593
+ semantic?: "custom" | "allow_once" | "allow_session" | "deny" | undefined;
1594
+ }[];
1595
+ interactionId: string;
1596
+ interactionType: "permission" | "confirmation" | "question" | "selection";
1597
+ prompt: string;
1598
+ timeoutMs?: number | undefined;
1599
+ engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1600
+ hostKind?: "workstation" | "external_computer" | undefined;
1601
+ hostProfile?: string | undefined;
1602
+ }>, z.ZodObject<{
1603
+ engineId: z.ZodOptional<z.ZodEnum<["claude-code", "codex", "hermes", "openclaw", "custom"]>>;
1604
+ hostKind: z.ZodOptional<z.ZodEnum<["workstation", "external_computer"]>>;
1605
+ hostProfile: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["coding", "sre"]>, z.ZodString]>>;
1606
+ } & {
1607
+ type: z.ZodLiteral<"interaction_resolved">;
1608
+ interactionId: z.ZodString;
1609
+ responseId: z.ZodOptional<z.ZodString>;
1610
+ resolution: z.ZodEnum<["accepted", "rejected", "answered", "expired"]>;
1611
+ }, "strip", z.ZodTypeAny, {
1612
+ type: "interaction_resolved";
1613
+ interactionId: string;
1614
+ resolution: "accepted" | "rejected" | "answered" | "expired";
1615
+ engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1616
+ hostKind?: "workstation" | "external_computer" | undefined;
1617
+ hostProfile?: string | undefined;
1618
+ responseId?: string | undefined;
1619
+ }, {
1620
+ type: "interaction_resolved";
1621
+ interactionId: string;
1622
+ resolution: "accepted" | "rejected" | "answered" | "expired";
1623
+ engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1624
+ hostKind?: "workstation" | "external_computer" | undefined;
1625
+ hostProfile?: string | undefined;
1626
+ responseId?: string | undefined;
1079
1627
  }>]>>;
1080
1628
  }, "strip", z.ZodTypeAny, {
1081
1629
  taskId: string;
@@ -1106,6 +1654,7 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
1106
1654
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1107
1655
  hostKind?: "workstation" | "external_computer" | undefined;
1108
1656
  hostProfile?: string | undefined;
1657
+ callId?: string | undefined;
1109
1658
  } | {
1110
1659
  type: "tool_result_delta";
1111
1660
  text: string;
@@ -1113,6 +1662,7 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
1113
1662
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1114
1663
  hostKind?: "workstation" | "external_computer" | undefined;
1115
1664
  hostProfile?: string | undefined;
1665
+ callId?: string | undefined;
1116
1666
  } | {
1117
1667
  type: "stderr_delta";
1118
1668
  text: string;
@@ -1122,16 +1672,19 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
1122
1672
  } | {
1123
1673
  type: "artifact";
1124
1674
  path: string;
1675
+ label?: string | undefined;
1125
1676
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1126
1677
  hostKind?: "workstation" | "external_computer" | undefined;
1127
1678
  hostProfile?: string | undefined;
1128
- label?: string | undefined;
1129
1679
  } | {
1130
1680
  type: "usage";
1131
1681
  usage: {
1132
1682
  inputTokens?: number | undefined;
1133
1683
  outputTokens?: number | undefined;
1134
1684
  thinkingTokens?: number | undefined;
1685
+ cacheReadInputTokens?: number | undefined;
1686
+ cacheCreationInputTokens?: number | undefined;
1687
+ totalTokens?: number | undefined;
1135
1688
  };
1136
1689
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1137
1690
  hostKind?: "workstation" | "external_computer" | undefined;
@@ -1142,12 +1695,15 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
1142
1695
  success: boolean;
1143
1696
  error?: string | undefined;
1144
1697
  sessionId?: string | undefined;
1698
+ text?: string | undefined;
1145
1699
  usage?: {
1146
1700
  inputTokens?: number | undefined;
1147
1701
  outputTokens?: number | undefined;
1148
1702
  thinkingTokens?: number | undefined;
1703
+ cacheReadInputTokens?: number | undefined;
1704
+ cacheCreationInputTokens?: number | undefined;
1705
+ totalTokens?: number | undefined;
1149
1706
  } | undefined;
1150
- text?: string | undefined;
1151
1707
  artifacts?: Record<string, unknown>[] | undefined;
1152
1708
  metadata?: Record<string, unknown> | undefined;
1153
1709
  };
@@ -1161,6 +1717,28 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
1161
1717
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1162
1718
  hostKind?: "workstation" | "external_computer" | undefined;
1163
1719
  hostProfile?: string | undefined;
1720
+ } | {
1721
+ type: "interaction_requested";
1722
+ options: {
1723
+ optionId: string;
1724
+ label: string;
1725
+ semantic?: "custom" | "allow_once" | "allow_session" | "deny" | undefined;
1726
+ }[];
1727
+ interactionId: string;
1728
+ interactionType: "permission" | "confirmation" | "question" | "selection";
1729
+ prompt: string;
1730
+ timeoutMs?: number | undefined;
1731
+ engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1732
+ hostKind?: "workstation" | "external_computer" | undefined;
1733
+ hostProfile?: string | undefined;
1734
+ } | {
1735
+ type: "interaction_resolved";
1736
+ interactionId: string;
1737
+ resolution: "accepted" | "rejected" | "answered" | "expired";
1738
+ engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1739
+ hostKind?: "workstation" | "external_computer" | undefined;
1740
+ hostProfile?: string | undefined;
1741
+ responseId?: string | undefined;
1164
1742
  } | undefined;
1165
1743
  }, {
1166
1744
  taskId: string;
@@ -1191,6 +1769,7 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
1191
1769
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1192
1770
  hostKind?: "workstation" | "external_computer" | undefined;
1193
1771
  hostProfile?: string | undefined;
1772
+ callId?: string | undefined;
1194
1773
  } | {
1195
1774
  type: "tool_result_delta";
1196
1775
  text: string;
@@ -1198,6 +1777,7 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
1198
1777
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1199
1778
  hostKind?: "workstation" | "external_computer" | undefined;
1200
1779
  hostProfile?: string | undefined;
1780
+ callId?: string | undefined;
1201
1781
  } | {
1202
1782
  type: "stderr_delta";
1203
1783
  text: string;
@@ -1207,16 +1787,19 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
1207
1787
  } | {
1208
1788
  type: "artifact";
1209
1789
  path: string;
1790
+ label?: string | undefined;
1210
1791
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1211
1792
  hostKind?: "workstation" | "external_computer" | undefined;
1212
1793
  hostProfile?: string | undefined;
1213
- label?: string | undefined;
1214
1794
  } | {
1215
1795
  type: "usage";
1216
1796
  usage: {
1217
1797
  inputTokens?: number | undefined;
1218
1798
  outputTokens?: number | undefined;
1219
1799
  thinkingTokens?: number | undefined;
1800
+ cacheReadInputTokens?: number | undefined;
1801
+ cacheCreationInputTokens?: number | undefined;
1802
+ totalTokens?: number | undefined;
1220
1803
  };
1221
1804
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1222
1805
  hostKind?: "workstation" | "external_computer" | undefined;
@@ -1227,12 +1810,15 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
1227
1810
  success: boolean;
1228
1811
  error?: string | undefined;
1229
1812
  sessionId?: string | undefined;
1813
+ text?: string | undefined;
1230
1814
  usage?: {
1231
1815
  inputTokens?: number | undefined;
1232
1816
  outputTokens?: number | undefined;
1233
1817
  thinkingTokens?: number | undefined;
1818
+ cacheReadInputTokens?: number | undefined;
1819
+ cacheCreationInputTokens?: number | undefined;
1820
+ totalTokens?: number | undefined;
1234
1821
  } | undefined;
1235
- text?: string | undefined;
1236
1822
  artifacts?: Record<string, unknown>[] | undefined;
1237
1823
  metadata?: Record<string, unknown> | undefined;
1238
1824
  };
@@ -1246,6 +1832,28 @@ export declare const TaskDeltaEventSchema: z.ZodObject<{
1246
1832
  engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1247
1833
  hostKind?: "workstation" | "external_computer" | undefined;
1248
1834
  hostProfile?: string | undefined;
1835
+ } | {
1836
+ type: "interaction_requested";
1837
+ options: {
1838
+ optionId: string;
1839
+ label: string;
1840
+ semantic?: "custom" | "allow_once" | "allow_session" | "deny" | undefined;
1841
+ }[];
1842
+ interactionId: string;
1843
+ interactionType: "permission" | "confirmation" | "question" | "selection";
1844
+ prompt: string;
1845
+ timeoutMs?: number | undefined;
1846
+ engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1847
+ hostKind?: "workstation" | "external_computer" | undefined;
1848
+ hostProfile?: string | undefined;
1849
+ } | {
1850
+ type: "interaction_resolved";
1851
+ interactionId: string;
1852
+ resolution: "accepted" | "rejected" | "answered" | "expired";
1853
+ engineId?: "custom" | "claude-code" | "codex" | "hermes" | "openclaw" | undefined;
1854
+ hostKind?: "workstation" | "external_computer" | undefined;
1855
+ hostProfile?: string | undefined;
1856
+ responseId?: string | undefined;
1249
1857
  } | undefined;
1250
1858
  }>;
1251
1859
  export declare const TaskThinkingEventSchema: z.ZodObject<{
@@ -1328,11 +1936,20 @@ export type EngineId = z.infer<typeof EngineIdSchema>;
1328
1936
  export type HostKind = z.infer<typeof HostKindSchema>;
1329
1937
  export type HostProfile = z.infer<typeof HostProfileSchema>;
1330
1938
  export type EngineToolName = z.infer<typeof EngineToolNameSchema>;
1939
+ export type ExecutionDurability = z.infer<typeof ExecutionDurabilitySchema>;
1940
+ export type EventStreamMode = z.infer<typeof EventStreamModeSchema>;
1941
+ export type EventRetention = z.infer<typeof EventRetentionSchema>;
1942
+ export type EngineContentBlockKind = z.infer<typeof EngineContentBlockKindSchema>;
1943
+ export type AgentEngineHookPoint = z.infer<typeof AgentEngineHookPointSchema>;
1944
+ export type EngineHookProfileRef = z.infer<typeof EngineHookProfileRefSchema>;
1945
+ export type EngineHookProfileDescriptor = z.infer<typeof EngineHookProfileDescriptorSchema>;
1946
+ export type EngineInteractionOption = z.infer<typeof EngineInteractionOptionSchema>;
1331
1947
  export type EngineCapabilityProfile = z.infer<typeof EngineCapabilityProfileSchema>;
1332
- export type EngineInvocationPlan = z.infer<typeof EngineInvocationPlanSchema>;
1948
+ export type EngineInvocationPlanV1 = z.infer<typeof EngineInvocationPlanV1Schema>;
1333
1949
  export type EngineProgressEventType = z.infer<typeof EngineProgressEventTypeSchema>;
1334
1950
  export type EngineProgressEvent = z.infer<typeof EngineProgressEventSchema>;
1335
1951
  export type EngineFinalResult = z.infer<typeof EngineFinalResultSchema>;
1952
+ export type EngineTokenUsage = z.infer<typeof EngineTokenUsageSchema>;
1336
1953
  export type TaskThinkingPayload = z.infer<typeof TaskThinkingEventSchema>;
1337
1954
  export type TaskCompletePayload = z.infer<typeof TaskCompleteEventSchema>;
1338
1955
  export type TaskErrorPayload = z.infer<typeof TaskErrorEventSchema>;
@@ -1794,13 +2411,13 @@ export declare const AgentProfileSchema: z.ZodObject<{
1794
2411
  category: z.ZodOptional<z.ZodString>;
1795
2412
  }, "strip", z.ZodTypeAny, {
1796
2413
  name: string;
1797
- description?: string | undefined;
1798
2414
  source?: string | undefined;
2415
+ description?: string | undefined;
1799
2416
  category?: string | undefined;
1800
2417
  }, {
1801
2418
  name: string;
1802
- description?: string | undefined;
1803
2419
  source?: string | undefined;
2420
+ description?: string | undefined;
1804
2421
  category?: string | undefined;
1805
2422
  }>, "many">;
1806
2423
  toolCategories: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
@@ -1810,8 +2427,8 @@ export declare const AgentProfileSchema: z.ZodObject<{
1810
2427
  tools: string[];
1811
2428
  skills: {
1812
2429
  name: string;
1813
- description?: string | undefined;
1814
2430
  source?: string | undefined;
2431
+ description?: string | undefined;
1815
2432
  category?: string | undefined;
1816
2433
  }[];
1817
2434
  toolCategories: Record<string, string[]>;
@@ -1821,8 +2438,8 @@ export declare const AgentProfileSchema: z.ZodObject<{
1821
2438
  tools: string[];
1822
2439
  skills: {
1823
2440
  name: string;
1824
- description?: string | undefined;
1825
2441
  source?: string | undefined;
2442
+ description?: string | undefined;
1826
2443
  category?: string | undefined;
1827
2444
  }[];
1828
2445
  toolCategories: Record<string, string[]>;
@@ -1840,13 +2457,13 @@ export declare const ComputerHeartbeatPayloadSchema: z.ZodOptional<z.ZodObject<{
1840
2457
  category: z.ZodOptional<z.ZodString>;
1841
2458
  }, "strip", z.ZodTypeAny, {
1842
2459
  name: string;
1843
- description?: string | undefined;
1844
2460
  source?: string | undefined;
2461
+ description?: string | undefined;
1845
2462
  category?: string | undefined;
1846
2463
  }, {
1847
2464
  name: string;
1848
- description?: string | undefined;
1849
2465
  source?: string | undefined;
2466
+ description?: string | undefined;
1850
2467
  category?: string | undefined;
1851
2468
  }>, "many">;
1852
2469
  toolCategories: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
@@ -1856,8 +2473,8 @@ export declare const ComputerHeartbeatPayloadSchema: z.ZodOptional<z.ZodObject<{
1856
2473
  tools: string[];
1857
2474
  skills: {
1858
2475
  name: string;
1859
- description?: string | undefined;
1860
2476
  source?: string | undefined;
2477
+ description?: string | undefined;
1861
2478
  category?: string | undefined;
1862
2479
  }[];
1863
2480
  toolCategories: Record<string, string[]>;
@@ -1867,8 +2484,8 @@ export declare const ComputerHeartbeatPayloadSchema: z.ZodOptional<z.ZodObject<{
1867
2484
  tools: string[];
1868
2485
  skills: {
1869
2486
  name: string;
1870
- description?: string | undefined;
1871
2487
  source?: string | undefined;
2488
+ description?: string | undefined;
1872
2489
  category?: string | undefined;
1873
2490
  }[];
1874
2491
  toolCategories: Record<string, string[]>;
@@ -1880,8 +2497,8 @@ export declare const ComputerHeartbeatPayloadSchema: z.ZodOptional<z.ZodObject<{
1880
2497
  tools: string[];
1881
2498
  skills: {
1882
2499
  name: string;
1883
- description?: string | undefined;
1884
2500
  source?: string | undefined;
2501
+ description?: string | undefined;
1885
2502
  category?: string | undefined;
1886
2503
  }[];
1887
2504
  toolCategories: Record<string, string[]>;
@@ -1893,8 +2510,8 @@ export declare const ComputerHeartbeatPayloadSchema: z.ZodOptional<z.ZodObject<{
1893
2510
  tools: string[];
1894
2511
  skills: {
1895
2512
  name: string;
1896
- description?: string | undefined;
1897
2513
  source?: string | undefined;
2514
+ description?: string | undefined;
1898
2515
  category?: string | undefined;
1899
2516
  }[];
1900
2517
  toolCategories: Record<string, string[]>;