@kmmao/happy-wire 0.12.0 → 0.13.1

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.cts CHANGED
@@ -177,8 +177,8 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
177
177
  }, z.core.$strip>, z.ZodObject<{
178
178
  t: z.ZodLiteral<"session-state-changed">;
179
179
  state: z.ZodEnum<{
180
- running: "running";
181
180
  idle: "idle";
181
+ running: "running";
182
182
  requires_action: "requires_action";
183
183
  }>;
184
184
  }, z.core.$strip>, z.ZodObject<{
@@ -423,8 +423,8 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
423
423
  }, z.core.$strip>, z.ZodObject<{
424
424
  t: z.ZodLiteral<"session-state-changed">;
425
425
  state: z.ZodEnum<{
426
- running: "running";
427
426
  idle: "idle";
427
+ running: "running";
428
428
  requires_action: "requires_action";
429
429
  }>;
430
430
  }, z.core.$strip>, z.ZodObject<{
@@ -1041,8 +1041,8 @@ declare const sessionNeedsContinueEventSchema: z.ZodObject<{
1041
1041
  declare const sessionStateChangedEventSchema: z.ZodObject<{
1042
1042
  t: z.ZodLiteral<"session-state-changed">;
1043
1043
  state: z.ZodEnum<{
1044
- running: "running";
1045
1044
  idle: "idle";
1045
+ running: "running";
1046
1046
  requires_action: "requires_action";
1047
1047
  }>;
1048
1048
  }, z.core.$strip>;
@@ -1203,8 +1203,8 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1203
1203
  }, z.core.$strip>, z.ZodObject<{
1204
1204
  t: z.ZodLiteral<"session-state-changed">;
1205
1205
  state: z.ZodEnum<{
1206
- running: "running";
1207
1206
  idle: "idle";
1207
+ running: "running";
1208
1208
  requires_action: "requires_action";
1209
1209
  }>;
1210
1210
  }, z.core.$strip>, z.ZodObject<{
@@ -1367,8 +1367,8 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
1367
1367
  }, z.core.$strip>, z.ZodObject<{
1368
1368
  t: z.ZodLiteral<"session-state-changed">;
1369
1369
  state: z.ZodEnum<{
1370
- running: "running";
1371
1370
  idle: "idle";
1371
+ running: "running";
1372
1372
  requires_action: "requires_action";
1373
1373
  }>;
1374
1374
  }, z.core.$strip>, z.ZodObject<{
@@ -1528,8 +1528,8 @@ declare const TunnelStateSchema: z.ZodObject<{
1528
1528
  }, z.core.$strip>;
1529
1529
  type TunnelState = z.infer<typeof TunnelStateSchema>;
1530
1530
  declare const AutomationPrioritySchema: z.ZodEnum<{
1531
- urgent: "urgent";
1532
1531
  user: "user";
1532
+ urgent: "urgent";
1533
1533
  background: "background";
1534
1534
  }>;
1535
1535
  type AutomationPriority = z.infer<typeof AutomationPrioritySchema>;
@@ -1541,12 +1541,12 @@ declare const AutomationJobKindSchema: z.ZodEnum<{
1541
1541
  }>;
1542
1542
  type AutomationJobKind = z.infer<typeof AutomationJobKindSchema>;
1543
1543
  declare const AutomationJobStatusSchema: z.ZodEnum<{
1544
- queued: "queued";
1545
- dispatching: "dispatching";
1546
- running: "running";
1547
1544
  completed: "completed";
1548
1545
  failed: "failed";
1549
1546
  cancelled: "cancelled";
1547
+ running: "running";
1548
+ queued: "queued";
1549
+ dispatching: "dispatching";
1550
1550
  }>;
1551
1551
  type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
1552
1552
  declare const AutomationJobSummarySchema: z.ZodObject<{
@@ -1558,16 +1558,16 @@ declare const AutomationJobSummarySchema: z.ZodObject<{
1558
1558
  task: "task";
1559
1559
  }>;
1560
1560
  status: z.ZodEnum<{
1561
- queued: "queued";
1562
- dispatching: "dispatching";
1563
- running: "running";
1564
1561
  completed: "completed";
1565
1562
  failed: "failed";
1566
1563
  cancelled: "cancelled";
1564
+ running: "running";
1565
+ queued: "queued";
1566
+ dispatching: "dispatching";
1567
1567
  }>;
1568
1568
  priority: z.ZodEnum<{
1569
- urgent: "urgent";
1570
1569
  user: "user";
1570
+ urgent: "urgent";
1571
1571
  background: "background";
1572
1572
  }>;
1573
1573
  dedupeKey: z.ZodString;
@@ -1721,16 +1721,16 @@ declare const AutomationStateSchema: z.ZodObject<{
1721
1721
  task: "task";
1722
1722
  }>;
1723
1723
  status: z.ZodEnum<{
1724
- queued: "queued";
1725
- dispatching: "dispatching";
1726
- running: "running";
1727
1724
  completed: "completed";
1728
1725
  failed: "failed";
1729
1726
  cancelled: "cancelled";
1727
+ running: "running";
1728
+ queued: "queued";
1729
+ dispatching: "dispatching";
1730
1730
  }>;
1731
1731
  priority: z.ZodEnum<{
1732
- urgent: "urgent";
1733
1732
  user: "user";
1733
+ urgent: "urgent";
1734
1734
  background: "background";
1735
1735
  }>;
1736
1736
  dedupeKey: z.ZodString;
@@ -1963,16 +1963,16 @@ declare const DaemonStateSchema: z.ZodObject<{
1963
1963
  task: "task";
1964
1964
  }>;
1965
1965
  status: z.ZodEnum<{
1966
- queued: "queued";
1967
- dispatching: "dispatching";
1968
- running: "running";
1969
1966
  completed: "completed";
1970
1967
  failed: "failed";
1971
1968
  cancelled: "cancelled";
1969
+ running: "running";
1970
+ queued: "queued";
1971
+ dispatching: "dispatching";
1972
1972
  }>;
1973
1973
  priority: z.ZodEnum<{
1974
- urgent: "urgent";
1975
1974
  user: "user";
1975
+ urgent: "urgent";
1976
1976
  background: "background";
1977
1977
  }>;
1978
1978
  dedupeKey: z.ZodString;
@@ -2126,8 +2126,8 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
2126
2126
  type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
2127
2127
  declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
2128
2128
  user: "user";
2129
- supervisor: "supervisor";
2130
2129
  session: "session";
2130
+ supervisor: "supervisor";
2131
2131
  }>;
2132
2132
  type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
2133
2133
  declare const KnowledgeActionSchema: z.ZodEnum<{
@@ -2159,8 +2159,8 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
2159
2159
  }>;
2160
2160
  contributorType: z.ZodEnum<{
2161
2161
  user: "user";
2162
- supervisor: "supervisor";
2163
2162
  session: "session";
2163
+ supervisor: "supervisor";
2164
2164
  }>;
2165
2165
  action: z.ZodEnum<{
2166
2166
  create: "create";
@@ -2469,18 +2469,18 @@ declare const VoiceTokenResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2469
2469
  type VoiceTokenResponse = z.infer<typeof VoiceTokenResponseSchema>;
2470
2470
 
2471
2471
  declare const TaskPrioritySchema: z.ZodEnum<{
2472
- urgent: "urgent";
2473
2472
  user: "user";
2473
+ urgent: "urgent";
2474
2474
  background: "background";
2475
2475
  }>;
2476
2476
  type TaskPriority = z.infer<typeof TaskPrioritySchema>;
2477
2477
  declare const TaskStatusSchema: z.ZodEnum<{
2478
- queued: "queued";
2479
- dispatching: "dispatching";
2480
- running: "running";
2481
2478
  completed: "completed";
2482
2479
  failed: "failed";
2483
2480
  cancelled: "cancelled";
2481
+ running: "running";
2482
+ queued: "queued";
2483
+ dispatching: "dispatching";
2484
2484
  }>;
2485
2485
  type TaskStatus = z.infer<typeof TaskStatusSchema>;
2486
2486
  declare const TaskTriggerTypeSchema: z.ZodEnum<{
@@ -2494,17 +2494,17 @@ declare const TaskSummarySchema: z.ZodObject<{
2494
2494
  projectId: z.ZodNullable<z.ZodString>;
2495
2495
  machineId: z.ZodString;
2496
2496
  priority: z.ZodEnum<{
2497
- urgent: "urgent";
2498
2497
  user: "user";
2498
+ urgent: "urgent";
2499
2499
  background: "background";
2500
2500
  }>;
2501
2501
  status: z.ZodEnum<{
2502
- queued: "queued";
2503
- dispatching: "dispatching";
2504
- running: "running";
2505
2502
  completed: "completed";
2506
2503
  failed: "failed";
2507
2504
  cancelled: "cancelled";
2505
+ running: "running";
2506
+ queued: "queued";
2507
+ dispatching: "dispatching";
2508
2508
  }>;
2509
2509
  triggerType: z.ZodEnum<{
2510
2510
  webhook: "webhook";
@@ -2529,8 +2529,8 @@ declare const CreateTaskBodySchema: z.ZodObject<{
2529
2529
  machineId: z.ZodString;
2530
2530
  prompt: z.ZodString;
2531
2531
  priority: z.ZodDefault<z.ZodEnum<{
2532
- urgent: "urgent";
2533
2532
  user: "user";
2533
+ urgent: "urgent";
2534
2534
  background: "background";
2535
2535
  }>>;
2536
2536
  maxAttempts: z.ZodDefault<z.ZodNumber>;
@@ -2543,8 +2543,8 @@ declare const TaskTriggerDataSchema: z.ZodObject<{
2543
2543
  prompt: z.ZodString;
2544
2544
  directory: z.ZodString;
2545
2545
  priority: z.ZodEnum<{
2546
- urgent: "urgent";
2547
2546
  user: "user";
2547
+ urgent: "urgent";
2548
2548
  background: "background";
2549
2549
  }>;
2550
2550
  projectId: z.ZodOptional<z.ZodString>;
@@ -2566,12 +2566,12 @@ type TaskOutcome = z.infer<typeof TaskOutcomeSchema>;
2566
2566
  declare const TaskStatusReportSchema: z.ZodObject<{
2567
2567
  taskId: z.ZodString;
2568
2568
  status: z.ZodEnum<{
2569
- queued: "queued";
2570
- dispatching: "dispatching";
2571
- running: "running";
2572
2569
  completed: "completed";
2573
2570
  failed: "failed";
2574
2571
  cancelled: "cancelled";
2572
+ running: "running";
2573
+ queued: "queued";
2574
+ dispatching: "dispatching";
2575
2575
  }>;
2576
2576
  outcome: z.ZodOptional<z.ZodEnum<{
2577
2577
  completed: "completed";
@@ -2587,12 +2587,12 @@ declare const TaskStatusChangedSchema: z.ZodObject<{
2587
2587
  taskId: z.ZodString;
2588
2588
  machineId: z.ZodOptional<z.ZodString>;
2589
2589
  status: z.ZodEnum<{
2590
- queued: "queued";
2591
- dispatching: "dispatching";
2592
- running: "running";
2593
2590
  completed: "completed";
2594
2591
  failed: "failed";
2595
2592
  cancelled: "cancelled";
2593
+ running: "running";
2594
+ queued: "queued";
2595
+ dispatching: "dispatching";
2596
2596
  }>;
2597
2597
  sessionId: z.ZodOptional<z.ZodString>;
2598
2598
  errorMessage: z.ZodOptional<z.ZodString>;
@@ -2637,10 +2637,10 @@ declare const SkillContentSchema: z.ZodObject<{
2637
2637
  type SkillContent = z.infer<typeof SkillContentSchema>;
2638
2638
 
2639
2639
  declare const InboxCategorySchema: z.ZodEnum<{
2640
+ session: "session";
2640
2641
  supervisor: "supervisor";
2641
2642
  task: "task";
2642
2643
  trigger: "trigger";
2643
- session: "session";
2644
2644
  knowledge: "knowledge";
2645
2645
  system: "system";
2646
2646
  }>;
@@ -2654,10 +2654,10 @@ type InboxSeverity = z.infer<typeof InboxSeveritySchema>;
2654
2654
  declare const InboxItemSummarySchema: z.ZodObject<{
2655
2655
  id: z.ZodString;
2656
2656
  category: z.ZodEnum<{
2657
+ session: "session";
2657
2658
  supervisor: "supervisor";
2658
2659
  task: "task";
2659
2660
  trigger: "trigger";
2660
- session: "session";
2661
2661
  knowledge: "knowledge";
2662
2662
  system: "system";
2663
2663
  }>;
@@ -2682,10 +2682,10 @@ declare const InboxNewItemSchema: z.ZodObject<{
2682
2682
  item: z.ZodObject<{
2683
2683
  id: z.ZodString;
2684
2684
  category: z.ZodEnum<{
2685
+ session: "session";
2685
2686
  supervisor: "supervisor";
2686
2687
  task: "task";
2687
2688
  trigger: "trigger";
2688
- session: "session";
2689
2689
  knowledge: "knowledge";
2690
2690
  system: "system";
2691
2691
  }>;
@@ -2828,384 +2828,6 @@ declare const terminalExitPayloadSchema: z.ZodObject<{
2828
2828
  }, z.core.$strip>;
2829
2829
  type TerminalExitPayload = z.infer<typeof terminalExitPayloadSchema>;
2830
2830
 
2831
- declare const SUGGESTION_TYPES: readonly ["suggested_goal", "suggested_task", "suggested_skill", "suggested_decision"];
2832
- type SuggestionType = typeof SUGGESTION_TYPES[number];
2833
- declare const SUGGESTION_STATUSES: readonly ["open", "processing", "accepted", "suspended", "dismissed", "expired"];
2834
- type SuggestionStatus = typeof SUGGESTION_STATUSES[number];
2835
- declare const SUGGESTION_BUCKETS: readonly ["next_step", "needs_decision", "needs_human_input"];
2836
- type SuggestionBucket = typeof SUGGESTION_BUCKETS[number];
2837
- declare const SUGGESTION_ACCEPT_SOURCES: readonly ["human", "system_auto"];
2838
- type SuggestionAcceptSource = typeof SUGGESTION_ACCEPT_SOURCES[number];
2839
- declare const SUPERVISOR_MODES: readonly ["disabled", "suggest", "semi-auto", "auto"];
2840
- type SupervisorMode = typeof SUPERVISOR_MODES[number];
2841
- declare const WorldAutonomyPolicySchema: z$1.ZodObject<{
2842
- level: z$1.ZodEnum<{
2843
- auto: "auto";
2844
- disabled: "disabled";
2845
- suggest: "suggest";
2846
- "semi-auto": "semi-auto";
2847
- }>;
2848
- maxAutoAcceptsPerDay: z$1.ZodNullable<z$1.ZodNumber>;
2849
- maxConcurrentAutoTasks: z$1.ZodNullable<z$1.ZodNumber>;
2850
- autoAcceptTypes: z$1.ZodArray<z$1.ZodString>;
2851
- }, z$1.core.$strip>;
2852
- type WorldAutonomyPolicy = z$1.infer<typeof WorldAutonomyPolicySchema>;
2853
- declare const SUGGESTION_ACCEPT_AUDIT_RULES: readonly ["safe_suggested_task_auto_accept", "retryable_failed_task_auto_accept", "blocked_goal_supplement_auto_accept", "precedent_auto_resolve", "goal_replan_auto_accept"];
2854
- type SuggestionAcceptAuditRule = typeof SUGGESTION_ACCEPT_AUDIT_RULES[number];
2855
- declare const SuggestionAcceptAuditSchema: z$1.ZodObject<{
2856
- rule: z$1.ZodEnum<{
2857
- safe_suggested_task_auto_accept: "safe_suggested_task_auto_accept";
2858
- retryable_failed_task_auto_accept: "retryable_failed_task_auto_accept";
2859
- blocked_goal_supplement_auto_accept: "blocked_goal_supplement_auto_accept";
2860
- precedent_auto_resolve: "precedent_auto_resolve";
2861
- goal_replan_auto_accept: "goal_replan_auto_accept";
2862
- }>;
2863
- checks: z$1.ZodArray<z$1.ZodString>;
2864
- }, z$1.core.$strip>;
2865
- type SuggestionAcceptAudit = z$1.infer<typeof SuggestionAcceptAuditSchema>;
2866
- declare const SUGGESTION_AUTO_ACCEPT_STATUSES: readonly ["skipped", "failed"];
2867
- type SuggestionAutoAcceptStatus = typeof SUGGESTION_AUTO_ACCEPT_STATUSES[number];
2868
- declare const SUGGESTION_AUTO_ACCEPT_REASON_CODES: readonly ["quota_exhausted", "already_acted", "accept_failed", "concurrency_exceeded", "mode_disabled"];
2869
- type SuggestionAutoAcceptReasonCode = typeof SUGGESTION_AUTO_ACCEPT_REASON_CODES[number];
2870
- declare const SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS: readonly ["dispatch_failed", "payload_invalid", "auto_accept_failed"];
2871
- type SuggestionAutoAcceptFailureDetail = typeof SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS[number];
2872
- declare const EVIDENCE_KINDS: readonly ["goal", "task", "decision", "message", "narrative"];
2873
- declare const SuggestionEvidenceSchema: z$1.ZodObject<{
2874
- kind: z$1.ZodEnum<{
2875
- task: "task";
2876
- message: "message";
2877
- decision: "decision";
2878
- goal: "goal";
2879
- narrative: "narrative";
2880
- }>;
2881
- id: z$1.ZodOptional<z$1.ZodString>;
2882
- label: z$1.ZodString;
2883
- }, z$1.core.$strip>;
2884
- type SuggestionEvidence = z$1.infer<typeof SuggestionEvidenceSchema>;
2885
- declare const SuggestionGoalPayloadSchema: z$1.ZodObject<{
2886
- title: z$1.ZodString;
2887
- detail: z$1.ZodOptional<z$1.ZodString>;
2888
- priority: z$1.ZodOptional<z$1.ZodString>;
2889
- }, z$1.core.$strip>;
2890
- type SuggestionGoalPayload = z$1.infer<typeof SuggestionGoalPayloadSchema>;
2891
- declare const SuggestionTaskPayloadSchema: z$1.ZodObject<{
2892
- title: z$1.ZodString;
2893
- prompt: z$1.ZodString;
2894
- roleType: z$1.ZodOptional<z$1.ZodString>;
2895
- goalId: z$1.ZodOptional<z$1.ZodString>;
2896
- priority: z$1.ZodOptional<z$1.ZodString>;
2897
- }, z$1.core.$strip>;
2898
- type SuggestionTaskPayload = z$1.infer<typeof SuggestionTaskPayloadSchema>;
2899
- declare const SuggestionSkillPayloadSchema: z$1.ZodObject<{
2900
- title: z$1.ZodString;
2901
- content: z$1.ZodString;
2902
- sourceTaskId: z$1.ZodOptional<z$1.ZodString>;
2903
- }, z$1.core.$strip>;
2904
- type SuggestionSkillPayload = z$1.infer<typeof SuggestionSkillPayloadSchema>;
2905
- declare const SuggestionDecisionPayloadSchema: z$1.ZodObject<{
2906
- question: z$1.ZodString;
2907
- context: z$1.ZodOptional<z$1.ZodString>;
2908
- goalId: z$1.ZodOptional<z$1.ZodString>;
2909
- existingDecisionId: z$1.ZodOptional<z$1.ZodString>;
2910
- options: z$1.ZodArray<z$1.ZodObject<{
2911
- id: z$1.ZodString;
2912
- description: z$1.ZodString;
2913
- pros: z$1.ZodOptional<z$1.ZodString>;
2914
- cons: z$1.ZodOptional<z$1.ZodString>;
2915
- }, z$1.core.$strip>>;
2916
- precedentKey: z$1.ZodOptional<z$1.ZodString>;
2917
- }, z$1.core.$strip>;
2918
- type SuggestionDecisionPayload = z$1.infer<typeof SuggestionDecisionPayloadSchema>;
2919
- declare function getSuggestionPayloadSchema(type: SuggestionType): z$1.ZodObject<{
2920
- goal: z$1.ZodObject<{
2921
- title: z$1.ZodString;
2922
- detail: z$1.ZodOptional<z$1.ZodString>;
2923
- priority: z$1.ZodOptional<z$1.ZodString>;
2924
- }, z$1.core.$strip>;
2925
- }, z$1.core.$strip> | z$1.ZodObject<{
2926
- task: z$1.ZodObject<{
2927
- title: z$1.ZodString;
2928
- prompt: z$1.ZodString;
2929
- roleType: z$1.ZodOptional<z$1.ZodString>;
2930
- goalId: z$1.ZodOptional<z$1.ZodString>;
2931
- priority: z$1.ZodOptional<z$1.ZodString>;
2932
- }, z$1.core.$strip>;
2933
- }, z$1.core.$strip> | z$1.ZodObject<{
2934
- skill: z$1.ZodObject<{
2935
- title: z$1.ZodString;
2936
- content: z$1.ZodString;
2937
- sourceTaskId: z$1.ZodOptional<z$1.ZodString>;
2938
- }, z$1.core.$strip>;
2939
- }, z$1.core.$strip> | z$1.ZodObject<{
2940
- decision: z$1.ZodObject<{
2941
- question: z$1.ZodString;
2942
- context: z$1.ZodOptional<z$1.ZodString>;
2943
- goalId: z$1.ZodOptional<z$1.ZodString>;
2944
- existingDecisionId: z$1.ZodOptional<z$1.ZodString>;
2945
- options: z$1.ZodArray<z$1.ZodObject<{
2946
- id: z$1.ZodString;
2947
- description: z$1.ZodString;
2948
- pros: z$1.ZodOptional<z$1.ZodString>;
2949
- cons: z$1.ZodOptional<z$1.ZodString>;
2950
- }, z$1.core.$strip>>;
2951
- precedentKey: z$1.ZodOptional<z$1.ZodString>;
2952
- }, z$1.core.$strip>;
2953
- }, z$1.core.$strip>;
2954
- type SuggestionPayload = {
2955
- goal: SuggestionGoalPayload;
2956
- } | {
2957
- task: SuggestionTaskPayload;
2958
- } | {
2959
- skill: SuggestionSkillPayload;
2960
- } | {
2961
- decision: SuggestionDecisionPayload;
2962
- };
2963
- declare const SuggestionPayloadSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
2964
- goal: z$1.ZodObject<{
2965
- title: z$1.ZodString;
2966
- detail: z$1.ZodOptional<z$1.ZodString>;
2967
- priority: z$1.ZodOptional<z$1.ZodString>;
2968
- }, z$1.core.$strip>;
2969
- }, z$1.core.$strip>, z$1.ZodObject<{
2970
- task: z$1.ZodObject<{
2971
- title: z$1.ZodString;
2972
- prompt: z$1.ZodString;
2973
- roleType: z$1.ZodOptional<z$1.ZodString>;
2974
- goalId: z$1.ZodOptional<z$1.ZodString>;
2975
- priority: z$1.ZodOptional<z$1.ZodString>;
2976
- }, z$1.core.$strip>;
2977
- }, z$1.core.$strip>, z$1.ZodObject<{
2978
- skill: z$1.ZodObject<{
2979
- title: z$1.ZodString;
2980
- content: z$1.ZodString;
2981
- sourceTaskId: z$1.ZodOptional<z$1.ZodString>;
2982
- }, z$1.core.$strip>;
2983
- }, z$1.core.$strip>, z$1.ZodObject<{
2984
- decision: z$1.ZodObject<{
2985
- question: z$1.ZodString;
2986
- context: z$1.ZodOptional<z$1.ZodString>;
2987
- goalId: z$1.ZodOptional<z$1.ZodString>;
2988
- existingDecisionId: z$1.ZodOptional<z$1.ZodString>;
2989
- options: z$1.ZodArray<z$1.ZodObject<{
2990
- id: z$1.ZodString;
2991
- description: z$1.ZodString;
2992
- pros: z$1.ZodOptional<z$1.ZodString>;
2993
- cons: z$1.ZodOptional<z$1.ZodString>;
2994
- }, z$1.core.$strip>>;
2995
- precedentKey: z$1.ZodOptional<z$1.ZodString>;
2996
- }, z$1.core.$strip>;
2997
- }, z$1.core.$strip>]>;
2998
- declare const AcceptBodySchema: z$1.ZodObject<{
2999
- machineId: z$1.ZodOptional<z$1.ZodString>;
3000
- priorityOverride: z$1.ZodOptional<z$1.ZodString>;
3001
- roleOverride: z$1.ZodOptional<z$1.ZodString>;
3002
- }, z$1.core.$strip>;
3003
- type AcceptBody = z$1.infer<typeof AcceptBodySchema>;
3004
- declare const WorldSuggestionUpdatedSchema: z$1.ZodObject<{
3005
- type: z$1.ZodLiteral<"world-suggestion-updated">;
3006
- projectId: z$1.ZodString;
3007
- suggestionId: z$1.ZodString;
3008
- status: z$1.ZodEnum<{
3009
- open: "open";
3010
- processing: "processing";
3011
- accepted: "accepted";
3012
- suspended: "suspended";
3013
- dismissed: "dismissed";
3014
- expired: "expired";
3015
- }>;
3016
- }, z$1.core.$strip>;
3017
- type WorldSuggestionUpdated = z$1.infer<typeof WorldSuggestionUpdatedSchema>;
3018
- type SuggestionSerialized = {
3019
- id: string;
3020
- projectId: string;
3021
- relatedGoalId: string | null;
3022
- relatedTaskId: string | null;
3023
- type: "suggested_goal";
3024
- title: string;
3025
- summary: string;
3026
- reason: string;
3027
- evidence: SuggestionEvidence[];
3028
- recommendedRole: string | null;
3029
- payload: {
3030
- goal: SuggestionGoalPayload;
3031
- };
3032
- requiresHuman: boolean;
3033
- status: SuggestionStatus;
3034
- dedupeKey: string;
3035
- bucket: SuggestionBucket;
3036
- createdAt: number;
3037
- actedAt: number | null;
3038
- acceptSource?: SuggestionAcceptSource | null;
3039
- acceptAudit?: SuggestionAcceptAudit | null;
3040
- autoAcceptStatus?: SuggestionAutoAcceptStatus | null;
3041
- autoAcceptReasonCode?: SuggestionAutoAcceptReasonCode | null;
3042
- autoAcceptFailureDetail?: SuggestionAutoAcceptFailureDetail | null;
3043
- } | {
3044
- id: string;
3045
- projectId: string;
3046
- relatedGoalId: string | null;
3047
- relatedTaskId: string | null;
3048
- type: "suggested_task";
3049
- title: string;
3050
- summary: string;
3051
- reason: string;
3052
- evidence: SuggestionEvidence[];
3053
- recommendedRole: string | null;
3054
- payload: {
3055
- task: SuggestionTaskPayload;
3056
- };
3057
- requiresHuman: boolean;
3058
- status: SuggestionStatus;
3059
- dedupeKey: string;
3060
- bucket: SuggestionBucket;
3061
- createdAt: number;
3062
- actedAt: number | null;
3063
- acceptSource?: SuggestionAcceptSource | null;
3064
- acceptAudit?: SuggestionAcceptAudit | null;
3065
- autoAcceptStatus?: SuggestionAutoAcceptStatus | null;
3066
- autoAcceptReasonCode?: SuggestionAutoAcceptReasonCode | null;
3067
- autoAcceptFailureDetail?: SuggestionAutoAcceptFailureDetail | null;
3068
- } | {
3069
- id: string;
3070
- projectId: string;
3071
- relatedGoalId: string | null;
3072
- relatedTaskId: string | null;
3073
- type: "suggested_skill";
3074
- title: string;
3075
- summary: string;
3076
- reason: string;
3077
- evidence: SuggestionEvidence[];
3078
- recommendedRole: string | null;
3079
- payload: {
3080
- skill: SuggestionSkillPayload;
3081
- };
3082
- requiresHuman: boolean;
3083
- status: SuggestionStatus;
3084
- dedupeKey: string;
3085
- bucket: SuggestionBucket;
3086
- createdAt: number;
3087
- actedAt: number | null;
3088
- acceptSource?: SuggestionAcceptSource | null;
3089
- acceptAudit?: SuggestionAcceptAudit | null;
3090
- autoAcceptStatus?: SuggestionAutoAcceptStatus | null;
3091
- autoAcceptReasonCode?: SuggestionAutoAcceptReasonCode | null;
3092
- autoAcceptFailureDetail?: SuggestionAutoAcceptFailureDetail | null;
3093
- } | {
3094
- id: string;
3095
- projectId: string;
3096
- relatedGoalId: string | null;
3097
- relatedTaskId: string | null;
3098
- type: "suggested_decision";
3099
- title: string;
3100
- summary: string;
3101
- reason: string;
3102
- evidence: SuggestionEvidence[];
3103
- recommendedRole: string | null;
3104
- payload: {
3105
- decision: SuggestionDecisionPayload;
3106
- };
3107
- requiresHuman: boolean;
3108
- status: SuggestionStatus;
3109
- dedupeKey: string;
3110
- bucket: SuggestionBucket;
3111
- createdAt: number;
3112
- actedAt: number | null;
3113
- acceptSource?: SuggestionAcceptSource | null;
3114
- acceptAudit?: SuggestionAcceptAudit | null;
3115
- autoAcceptStatus?: SuggestionAutoAcceptStatus | null;
3116
- autoAcceptReasonCode?: SuggestionAutoAcceptReasonCode | null;
3117
- autoAcceptFailureDetail?: SuggestionAutoAcceptFailureDetail | null;
3118
- };
3119
- type SuggestionSummary = SuggestionSerialized;
3120
- declare const AutonomyStatsRecentActionSchema: z$1.ZodObject<{
3121
- suggestionId: z$1.ZodString;
3122
- title: z$1.ZodString;
3123
- type: z$1.ZodEnum<{
3124
- suggested_goal: "suggested_goal";
3125
- suggested_task: "suggested_task";
3126
- suggested_skill: "suggested_skill";
3127
- suggested_decision: "suggested_decision";
3128
- }>;
3129
- acceptedAt: z$1.ZodNumber;
3130
- rule: z$1.ZodString;
3131
- }, z$1.core.$strip>;
3132
- declare const AutonomyStatsSchema: z$1.ZodObject<{
3133
- mode: z$1.ZodEnum<{
3134
- auto: "auto";
3135
- disabled: "disabled";
3136
- suggest: "suggest";
3137
- "semi-auto": "semi-auto";
3138
- }>;
3139
- todayAutoAccepted: z$1.ZodNumber;
3140
- todayQuota: z$1.ZodNullable<z$1.ZodNumber>;
3141
- concurrentAutoTasks: z$1.ZodNumber;
3142
- maxConcurrent: z$1.ZodNullable<z$1.ZodNumber>;
3143
- recentAutoActions: z$1.ZodArray<z$1.ZodObject<{
3144
- suggestionId: z$1.ZodString;
3145
- title: z$1.ZodString;
3146
- type: z$1.ZodEnum<{
3147
- suggested_goal: "suggested_goal";
3148
- suggested_task: "suggested_task";
3149
- suggested_skill: "suggested_skill";
3150
- suggested_decision: "suggested_decision";
3151
- }>;
3152
- acceptedAt: z$1.ZodNumber;
3153
- rule: z$1.ZodString;
3154
- }, z$1.core.$strip>>;
3155
- }, z$1.core.$strip>;
3156
- type AutonomyStats = z$1.infer<typeof AutonomyStatsSchema>;
3157
-
3158
- declare const AGENT_MSG_TYPES: readonly ["request", "report", "conflict", "law_suggestion", "dependency_blocked", "handoff", "review_request", "decision_request"];
3159
- type AgentMsgType = typeof AGENT_MSG_TYPES[number];
3160
- declare const AgentMsgTypeSchema: z.ZodEnum<{
3161
- request: "request";
3162
- report: "report";
3163
- conflict: "conflict";
3164
- law_suggestion: "law_suggestion";
3165
- dependency_blocked: "dependency_blocked";
3166
- handoff: "handoff";
3167
- review_request: "review_request";
3168
- decision_request: "decision_request";
3169
- }>;
3170
- declare const AGENT_MSG_STATUSES: readonly ["unread", "read", "resolved"];
3171
- type AgentMsgStatus = typeof AGENT_MSG_STATUSES[number];
3172
- declare const AGENT_MSG_PRIORITIES: readonly ["urgent", "normal", "low"];
3173
- type AgentMsgPriority = typeof AGENT_MSG_PRIORITIES[number];
3174
- declare const AgentMessageSummarySchema: z.ZodObject<{
3175
- id: z.ZodString;
3176
- projectId: z.ZodString;
3177
- fromRole: z.ZodString;
3178
- toRole: z.ZodNullable<z.ZodString>;
3179
- msgType: z.ZodEnum<{
3180
- request: "request";
3181
- report: "report";
3182
- conflict: "conflict";
3183
- law_suggestion: "law_suggestion";
3184
- dependency_blocked: "dependency_blocked";
3185
- handoff: "handoff";
3186
- review_request: "review_request";
3187
- decision_request: "decision_request";
3188
- }>;
3189
- content: z.ZodString;
3190
- status: z.ZodEnum<{
3191
- read: "read";
3192
- unread: "unread";
3193
- resolved: "resolved";
3194
- }>;
3195
- sessionId: z.ZodNullable<z.ZodString>;
3196
- decisionId: z.ZodNullable<z.ZodString>;
3197
- relatedGoalId: z.ZodNullable<z.ZodString>;
3198
- relatedTaskId: z.ZodNullable<z.ZodString>;
3199
- priority: z.ZodEnum<{
3200
- urgent: "urgent";
3201
- low: "low";
3202
- normal: "normal";
3203
- }>;
3204
- createdAt: z.ZodNumber;
3205
- updatedAt: z.ZodNumber;
3206
- }, z.core.$strip>;
3207
- type AgentMessageSummary = z.infer<typeof AgentMessageSummarySchema>;
3208
-
3209
2831
  declare const BuiltInAIBackendProfileIdSchema: z$1.ZodEnum<{
3210
2832
  anthropic: "anthropic";
3211
2833
  deepseek: "deepseek";
@@ -3582,6 +3204,72 @@ declare const sessionSummaryStateSchema: z.ZodObject<{
3582
3204
  updatedAt: z.ZodNumber;
3583
3205
  }, z.core.$strip>;
3584
3206
  type SessionSummaryState = z.infer<typeof sessionSummaryStateSchema>;
3207
+ /**
3208
+ * Active request for request-level summary refresh confirmation.
3209
+ *
3210
+ * Kept outside `sessionSummary` itself because this is control-plane state,
3211
+ * not user-visible narrative content.
3212
+ */
3213
+ declare const sessionSummaryRefreshActiveRequestSchema: z.ZodObject<{
3214
+ requestId: z.ZodString;
3215
+ requestedAt: z.ZodNumber;
3216
+ requester: z.ZodEnum<{
3217
+ system: "system";
3218
+ "happy-agent": "happy-agent";
3219
+ app: "app";
3220
+ }>;
3221
+ command: z.ZodLiteral<"summary-refresh">;
3222
+ requireSummary: z.ZodBoolean;
3223
+ }, z.core.$strip>;
3224
+ type SessionSummaryRefreshActiveRequest = z.infer<typeof sessionSummaryRefreshActiveRequestSchema>;
3225
+ /**
3226
+ * One resolved refresh request. `applied` means the runtime wrote the
3227
+ * requested summary update; `superseded` means a newer request replaced it
3228
+ * before it could complete.
3229
+ */
3230
+ declare const sessionSummaryRefreshRecentEntrySchema: z.ZodObject<{
3231
+ requestId: z.ZodString;
3232
+ status: z.ZodEnum<{
3233
+ superseded: "superseded";
3234
+ applied: "applied";
3235
+ }>;
3236
+ resolvedAt: z.ZodNumber;
3237
+ summaryUpdatedAt: z.ZodOptional<z.ZodNumber>;
3238
+ supersededByRequestId: z.ZodOptional<z.ZodString>;
3239
+ }, z.core.$strip>;
3240
+ type SessionSummaryRefreshRecentEntry = z.infer<typeof sessionSummaryRefreshRecentEntrySchema>;
3241
+ /**
3242
+ * Control-plane state for request-level summary confirmation.
3243
+ *
3244
+ * Runtimes initialize this when they support the protocol. Clients can
3245
+ * check `protocolVersion` up front instead of guessing support from
3246
+ * timeouts. `recent` is intentionally small; runtimes should trim it.
3247
+ */
3248
+ declare const sessionSummaryRefreshStateSchema: z.ZodObject<{
3249
+ protocolVersion: z.ZodLiteral<1>;
3250
+ active: z.ZodOptional<z.ZodObject<{
3251
+ requestId: z.ZodString;
3252
+ requestedAt: z.ZodNumber;
3253
+ requester: z.ZodEnum<{
3254
+ system: "system";
3255
+ "happy-agent": "happy-agent";
3256
+ app: "app";
3257
+ }>;
3258
+ command: z.ZodLiteral<"summary-refresh">;
3259
+ requireSummary: z.ZodBoolean;
3260
+ }, z.core.$strip>>;
3261
+ recent: z.ZodOptional<z.ZodArray<z.ZodObject<{
3262
+ requestId: z.ZodString;
3263
+ status: z.ZodEnum<{
3264
+ superseded: "superseded";
3265
+ applied: "applied";
3266
+ }>;
3267
+ resolvedAt: z.ZodNumber;
3268
+ summaryUpdatedAt: z.ZodOptional<z.ZodNumber>;
3269
+ supersededByRequestId: z.ZodOptional<z.ZodString>;
3270
+ }, z.core.$strip>>>;
3271
+ }, z.core.$strip>;
3272
+ type SessionSummaryRefreshState = z.infer<typeof sessionSummaryRefreshStateSchema>;
3585
3273
 
3586
3274
  declare const HAPPY_MCP_TOOL_NAMES: readonly ["change_title", "query_project_knowledge", "update_progress", "update_session_summary"];
3587
3275
  type HappyMcpCanonicalToolName = (typeof HAPPY_MCP_TOOL_NAMES)[number];
@@ -3783,5 +3471,5 @@ declare const CodexMetadataSchema: z.ZodObject<{
3783
3471
  }, z.core.$strip>;
3784
3472
  type CodexMetadata = z.infer<typeof CodexMetadataSchema>;
3785
3473
 
3786
- export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CODEX_APP_SERVER_BACKEND, CODEX_MCP_LEGACY_BACKEND, CODEX_REQUESTED_BACKEND_ALIASES, CliInstallInfoSchema, CliInstallSourceSchema, CodexAccountSchema, CodexAgentSummarySchema, CodexBackendModeSchema, CodexConfigModeSchema, CodexConfigSchema, CodexExperimentalFeatureSchema, CodexMcpServerSummarySchema, CodexMetadataSchema, CodexPromptSummarySchema, CodexRateLimitsSchema, CodexRequestedBackendSchema, CodexResolvedBackendSchema, CodexRuntimeConfigSchema, CodexSkillSummarySchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getBuiltInAIBackendProfile, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isCodexAppServerBackend, isCodexLegacyBackend, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, resolveCodexResolvedBackend, resolveCodexResumableThreadId, resolveRequestedCodexBackend, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, shouldAutoApproveHappyMcpReason, shouldAutoApproveHappyMcpToolName, shouldHideSuccessfulHappyMcpTool, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
3787
- export type { AIBackendProfile, AcceptBody, AgentLoopSummary, AgentMessage, AgentMessageSummary, AgentMsgPriority, AgentMsgStatus, AgentMsgType, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, AutonomyStats, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, CliInstallInfo, CliInstallSource, CodexAccount, CodexAgentSummary, CodexBackendMode, CodexConfigMode, CodexExperimentalFeature, CodexMcpServerSummary, CodexMetadata, CodexPromptSummary, CodexRateLimits, CodexRequestedBackend, CodexResolvedBackend, CodexRuntimeConfig, CodexSkillSummary, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, HappyMcpCanonicalToolName, HappyMcpToolActionMode, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryState, SessionTurnEndStatus, SkillContent, SkillSummary, SuggestionAcceptAudit, SuggestionAcceptAuditRule, SuggestionAcceptSource, SuggestionAutoAcceptFailureDetail, SuggestionAutoAcceptReasonCode, SuggestionAutoAcceptStatus, SuggestionBucket, SuggestionDecisionPayload, SuggestionEvidence, SuggestionGoalPayload, SuggestionPayload, SuggestionSerialized, SuggestionSkillPayload, SuggestionStatus, SuggestionSummary, SuggestionTaskPayload, SuggestionType, SupervisorMode, TailscaleInfo, TailscaleServeEntry, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse, WorldAutonomyPolicy, WorldSuggestionUpdated };
3474
+ export { AIBackendProfileSchema, AgentLoopSummarySchema, AgentMessageSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CODEX_APP_SERVER_BACKEND, CODEX_MCP_LEGACY_BACKEND, CODEX_REQUESTED_BACKEND_ALIASES, CliInstallInfoSchema, CliInstallSourceSchema, CodexAccountSchema, CodexAgentSummarySchema, CodexBackendModeSchema, CodexConfigModeSchema, CodexConfigSchema, CodexExperimentalFeatureSchema, CodexMcpServerSummarySchema, CodexMetadataSchema, CodexPromptSummarySchema, CodexRateLimitsSchema, CodexRequestedBackendSchema, CodexResolvedBackendSchema, CodexRuntimeConfigSchema, CodexSkillSummarySchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EnvironmentVariableSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, createEnvelope, createResolvedRuntimeProfile, getBuiltInAIBackendProfile, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, isCodexAppServerBackend, isCodexLegacyBackend, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, resolveCodexResolvedBackend, resolveCodexResumableThreadId, resolveRequestedCodexBackend, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryRefreshActiveRequestSchema, sessionSummaryRefreshRecentEntrySchema, sessionSummaryRefreshStateSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, shouldAutoApproveHappyMcpReason, shouldAutoApproveHappyMcpToolName, shouldHideSuccessfulHappyMcpTool, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
3475
+ export type { AIBackendProfile, AgentLoopSummary, AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, CliInstallInfo, CliInstallSource, CodexAccount, CodexAgentSummary, CodexBackendMode, CodexConfigMode, CodexExperimentalFeature, CodexMcpServerSummary, CodexMetadata, CodexPromptSummary, CodexRateLimits, CodexRequestedBackend, CodexResolvedBackend, CodexRuntimeConfig, CodexSkillSummary, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, HappyMcpCanonicalToolName, HappyMcpToolActionMode, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryRefreshActiveRequest, SessionSummaryRefreshRecentEntry, SessionSummaryRefreshState, SessionSummaryState, SessionTurnEndStatus, SkillContent, SkillSummary, TailscaleInfo, TailscaleServeEntry, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse };