@kmmao/happy-wire 0.13.2 → 0.16.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
@@ -22,6 +22,10 @@ declare const MessageMetaSchema: z.ZodObject<{
22
22
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
23
23
  displayText: z.ZodOptional<z.ZodString>;
24
24
  shouldQuery: z.ZodOptional<z.ZodBoolean>;
25
+ worktree: z.ZodOptional<z.ZodObject<{
26
+ branch: z.ZodString;
27
+ path: z.ZodOptional<z.ZodString>;
28
+ }, z.core.$strip>>;
25
29
  }, z.core.$strip>;
26
30
  type MessageMeta = z.infer<typeof MessageMetaSchema>;
27
31
 
@@ -177,8 +181,8 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
177
181
  }, z.core.$strip>, z.ZodObject<{
178
182
  t: z.ZodLiteral<"session-state-changed">;
179
183
  state: z.ZodEnum<{
180
- idle: "idle";
181
184
  running: "running";
185
+ idle: "idle";
182
186
  requires_action: "requires_action";
183
187
  }>;
184
188
  }, z.core.$strip>, z.ZodObject<{
@@ -230,6 +234,10 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
230
234
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
231
235
  displayText: z.ZodOptional<z.ZodString>;
232
236
  shouldQuery: z.ZodOptional<z.ZodBoolean>;
237
+ worktree: z.ZodOptional<z.ZodObject<{
238
+ branch: z.ZodString;
239
+ path: z.ZodOptional<z.ZodString>;
240
+ }, z.core.$strip>>;
233
241
  }, z.core.$strip>>;
234
242
  }, z.core.$strip>;
235
243
  type SessionProtocolMessage = z.infer<typeof SessionProtocolMessageSchema>;
@@ -261,6 +269,10 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
261
269
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
262
270
  displayText: z.ZodOptional<z.ZodString>;
263
271
  shouldQuery: z.ZodOptional<z.ZodBoolean>;
272
+ worktree: z.ZodOptional<z.ZodObject<{
273
+ branch: z.ZodString;
274
+ path: z.ZodOptional<z.ZodString>;
275
+ }, z.core.$strip>>;
264
276
  }, z.core.$strip>>;
265
277
  }, z.core.$strip>, z.ZodObject<{
266
278
  role: z.ZodLiteral<"agent">;
@@ -288,6 +300,10 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
288
300
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
289
301
  displayText: z.ZodOptional<z.ZodString>;
290
302
  shouldQuery: z.ZodOptional<z.ZodBoolean>;
303
+ worktree: z.ZodOptional<z.ZodObject<{
304
+ branch: z.ZodString;
305
+ path: z.ZodOptional<z.ZodString>;
306
+ }, z.core.$strip>>;
291
307
  }, z.core.$strip>>;
292
308
  }, z.core.$strip>, z.ZodObject<{
293
309
  role: z.ZodLiteral<"session">;
@@ -423,8 +439,8 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
423
439
  }, z.core.$strip>, z.ZodObject<{
424
440
  t: z.ZodLiteral<"session-state-changed">;
425
441
  state: z.ZodEnum<{
426
- idle: "idle";
427
442
  running: "running";
443
+ idle: "idle";
428
444
  requires_action: "requires_action";
429
445
  }>;
430
446
  }, z.core.$strip>, z.ZodObject<{
@@ -476,6 +492,10 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
476
492
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
477
493
  displayText: z.ZodOptional<z.ZodString>;
478
494
  shouldQuery: z.ZodOptional<z.ZodBoolean>;
495
+ worktree: z.ZodOptional<z.ZodObject<{
496
+ branch: z.ZodString;
497
+ path: z.ZodOptional<z.ZodString>;
498
+ }, z.core.$strip>>;
479
499
  }, z.core.$strip>>;
480
500
  }, z.core.$strip>], "role">;
481
501
  type MessageContent = z.infer<typeof MessageContentSchema>;
@@ -789,6 +809,10 @@ declare const UserMessageSchema: z.ZodObject<{
789
809
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
790
810
  displayText: z.ZodOptional<z.ZodString>;
791
811
  shouldQuery: z.ZodOptional<z.ZodBoolean>;
812
+ worktree: z.ZodOptional<z.ZodObject<{
813
+ branch: z.ZodString;
814
+ path: z.ZodOptional<z.ZodString>;
815
+ }, z.core.$strip>>;
792
816
  }, z.core.$strip>>;
793
817
  }, z.core.$strip>;
794
818
  type UserMessage = z.infer<typeof UserMessageSchema>;
@@ -818,6 +842,10 @@ declare const AgentMessageSchema: z.ZodObject<{
818
842
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
819
843
  displayText: z.ZodOptional<z.ZodString>;
820
844
  shouldQuery: z.ZodOptional<z.ZodBoolean>;
845
+ worktree: z.ZodOptional<z.ZodObject<{
846
+ branch: z.ZodString;
847
+ path: z.ZodOptional<z.ZodString>;
848
+ }, z.core.$strip>>;
821
849
  }, z.core.$strip>>;
822
850
  }, z.core.$strip>;
823
851
  type AgentMessage = z.infer<typeof AgentMessageSchema>;
@@ -849,6 +877,10 @@ declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
849
877
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
850
878
  displayText: z.ZodOptional<z.ZodString>;
851
879
  shouldQuery: z.ZodOptional<z.ZodBoolean>;
880
+ worktree: z.ZodOptional<z.ZodObject<{
881
+ branch: z.ZodString;
882
+ path: z.ZodOptional<z.ZodString>;
883
+ }, z.core.$strip>>;
852
884
  }, z.core.$strip>>;
853
885
  }, z.core.$strip>, z.ZodObject<{
854
886
  role: z.ZodLiteral<"agent">;
@@ -876,6 +908,10 @@ declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
876
908
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
877
909
  displayText: z.ZodOptional<z.ZodString>;
878
910
  shouldQuery: z.ZodOptional<z.ZodBoolean>;
911
+ worktree: z.ZodOptional<z.ZodObject<{
912
+ branch: z.ZodString;
913
+ path: z.ZodOptional<z.ZodString>;
914
+ }, z.core.$strip>>;
879
915
  }, z.core.$strip>>;
880
916
  }, z.core.$strip>], "role">;
881
917
  type LegacyMessageContent = z.infer<typeof LegacyMessageContentSchema>;
@@ -1041,8 +1077,8 @@ declare const sessionNeedsContinueEventSchema: z.ZodObject<{
1041
1077
  declare const sessionStateChangedEventSchema: z.ZodObject<{
1042
1078
  t: z.ZodLiteral<"session-state-changed">;
1043
1079
  state: z.ZodEnum<{
1044
- idle: "idle";
1045
1080
  running: "running";
1081
+ idle: "idle";
1046
1082
  requires_action: "requires_action";
1047
1083
  }>;
1048
1084
  }, z.core.$strip>;
@@ -1203,8 +1239,8 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1203
1239
  }, z.core.$strip>, z.ZodObject<{
1204
1240
  t: z.ZodLiteral<"session-state-changed">;
1205
1241
  state: z.ZodEnum<{
1206
- idle: "idle";
1207
1242
  running: "running";
1243
+ idle: "idle";
1208
1244
  requires_action: "requires_action";
1209
1245
  }>;
1210
1246
  }, z.core.$strip>, z.ZodObject<{
@@ -1367,8 +1403,8 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
1367
1403
  }, z.core.$strip>, z.ZodObject<{
1368
1404
  t: z.ZodLiteral<"session-state-changed">;
1369
1405
  state: z.ZodEnum<{
1370
- idle: "idle";
1371
1406
  running: "running";
1407
+ idle: "idle";
1372
1408
  requires_action: "requires_action";
1373
1409
  }>;
1374
1410
  }, z.core.$strip>, z.ZodObject<{
@@ -1528,8 +1564,8 @@ declare const TunnelStateSchema: z.ZodObject<{
1528
1564
  }, z.core.$strip>;
1529
1565
  type TunnelState = z.infer<typeof TunnelStateSchema>;
1530
1566
  declare const AutomationPrioritySchema: z.ZodEnum<{
1531
- user: "user";
1532
1567
  urgent: "urgent";
1568
+ user: "user";
1533
1569
  background: "background";
1534
1570
  }>;
1535
1571
  type AutomationPriority = z.infer<typeof AutomationPrioritySchema>;
@@ -1541,12 +1577,12 @@ declare const AutomationJobKindSchema: z.ZodEnum<{
1541
1577
  }>;
1542
1578
  type AutomationJobKind = z.infer<typeof AutomationJobKindSchema>;
1543
1579
  declare const AutomationJobStatusSchema: z.ZodEnum<{
1580
+ queued: "queued";
1581
+ dispatching: "dispatching";
1582
+ running: "running";
1544
1583
  completed: "completed";
1545
1584
  failed: "failed";
1546
1585
  cancelled: "cancelled";
1547
- running: "running";
1548
- queued: "queued";
1549
- dispatching: "dispatching";
1550
1586
  }>;
1551
1587
  type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
1552
1588
  declare const AutomationJobSummarySchema: z.ZodObject<{
@@ -1558,16 +1594,16 @@ declare const AutomationJobSummarySchema: z.ZodObject<{
1558
1594
  task: "task";
1559
1595
  }>;
1560
1596
  status: z.ZodEnum<{
1597
+ queued: "queued";
1598
+ dispatching: "dispatching";
1599
+ running: "running";
1561
1600
  completed: "completed";
1562
1601
  failed: "failed";
1563
1602
  cancelled: "cancelled";
1564
- running: "running";
1565
- queued: "queued";
1566
- dispatching: "dispatching";
1567
1603
  }>;
1568
1604
  priority: z.ZodEnum<{
1569
- user: "user";
1570
1605
  urgent: "urgent";
1606
+ user: "user";
1571
1607
  background: "background";
1572
1608
  }>;
1573
1609
  dedupeKey: z.ZodString;
@@ -1721,16 +1757,16 @@ declare const AutomationStateSchema: z.ZodObject<{
1721
1757
  task: "task";
1722
1758
  }>;
1723
1759
  status: z.ZodEnum<{
1760
+ queued: "queued";
1761
+ dispatching: "dispatching";
1762
+ running: "running";
1724
1763
  completed: "completed";
1725
1764
  failed: "failed";
1726
1765
  cancelled: "cancelled";
1727
- running: "running";
1728
- queued: "queued";
1729
- dispatching: "dispatching";
1730
1766
  }>;
1731
1767
  priority: z.ZodEnum<{
1732
- user: "user";
1733
1768
  urgent: "urgent";
1769
+ user: "user";
1734
1770
  background: "background";
1735
1771
  }>;
1736
1772
  dedupeKey: z.ZodString;
@@ -1963,16 +1999,16 @@ declare const DaemonStateSchema: z.ZodObject<{
1963
1999
  task: "task";
1964
2000
  }>;
1965
2001
  status: z.ZodEnum<{
2002
+ queued: "queued";
2003
+ dispatching: "dispatching";
2004
+ running: "running";
1966
2005
  completed: "completed";
1967
2006
  failed: "failed";
1968
2007
  cancelled: "cancelled";
1969
- running: "running";
1970
- queued: "queued";
1971
- dispatching: "dispatching";
1972
2008
  }>;
1973
2009
  priority: z.ZodEnum<{
1974
- user: "user";
1975
2010
  urgent: "urgent";
2011
+ user: "user";
1976
2012
  background: "background";
1977
2013
  }>;
1978
2014
  dedupeKey: z.ZodString;
@@ -2126,8 +2162,8 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
2126
2162
  type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
2127
2163
  declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
2128
2164
  user: "user";
2129
- session: "session";
2130
2165
  supervisor: "supervisor";
2166
+ session: "session";
2131
2167
  }>;
2132
2168
  type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
2133
2169
  declare const KnowledgeActionSchema: z.ZodEnum<{
@@ -2159,8 +2195,8 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
2159
2195
  }>;
2160
2196
  contributorType: z.ZodEnum<{
2161
2197
  user: "user";
2162
- session: "session";
2163
2198
  supervisor: "supervisor";
2199
+ session: "session";
2164
2200
  }>;
2165
2201
  action: z.ZodEnum<{
2166
2202
  create: "create";
@@ -2469,18 +2505,18 @@ declare const VoiceTokenResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2469
2505
  type VoiceTokenResponse = z.infer<typeof VoiceTokenResponseSchema>;
2470
2506
 
2471
2507
  declare const TaskPrioritySchema: z.ZodEnum<{
2472
- user: "user";
2473
2508
  urgent: "urgent";
2509
+ user: "user";
2474
2510
  background: "background";
2475
2511
  }>;
2476
2512
  type TaskPriority = z.infer<typeof TaskPrioritySchema>;
2477
2513
  declare const TaskStatusSchema: z.ZodEnum<{
2514
+ queued: "queued";
2515
+ dispatching: "dispatching";
2516
+ running: "running";
2478
2517
  completed: "completed";
2479
2518
  failed: "failed";
2480
2519
  cancelled: "cancelled";
2481
- running: "running";
2482
- queued: "queued";
2483
- dispatching: "dispatching";
2484
2520
  }>;
2485
2521
  type TaskStatus = z.infer<typeof TaskStatusSchema>;
2486
2522
  declare const TaskTriggerTypeSchema: z.ZodEnum<{
@@ -2494,17 +2530,17 @@ declare const TaskSummarySchema: z.ZodObject<{
2494
2530
  projectId: z.ZodNullable<z.ZodString>;
2495
2531
  machineId: z.ZodString;
2496
2532
  priority: z.ZodEnum<{
2497
- user: "user";
2498
2533
  urgent: "urgent";
2534
+ user: "user";
2499
2535
  background: "background";
2500
2536
  }>;
2501
2537
  status: z.ZodEnum<{
2538
+ queued: "queued";
2539
+ dispatching: "dispatching";
2540
+ running: "running";
2502
2541
  completed: "completed";
2503
2542
  failed: "failed";
2504
2543
  cancelled: "cancelled";
2505
- running: "running";
2506
- queued: "queued";
2507
- dispatching: "dispatching";
2508
2544
  }>;
2509
2545
  triggerType: z.ZodEnum<{
2510
2546
  webhook: "webhook";
@@ -2529,12 +2565,13 @@ declare const CreateTaskBodySchema: z.ZodObject<{
2529
2565
  machineId: z.ZodString;
2530
2566
  prompt: z.ZodString;
2531
2567
  priority: z.ZodDefault<z.ZodEnum<{
2532
- user: "user";
2533
2568
  urgent: "urgent";
2569
+ user: "user";
2534
2570
  background: "background";
2535
2571
  }>>;
2536
2572
  maxAttempts: z.ZodDefault<z.ZodNumber>;
2537
2573
  skillIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2574
+ profileId: z.ZodOptional<z.ZodString>;
2538
2575
  }, z.core.$strip>;
2539
2576
  type CreateTaskBody = z.infer<typeof CreateTaskBodySchema>;
2540
2577
  declare const TaskTriggerDataSchema: z.ZodObject<{
@@ -2543,8 +2580,8 @@ declare const TaskTriggerDataSchema: z.ZodObject<{
2543
2580
  prompt: z.ZodString;
2544
2581
  directory: z.ZodString;
2545
2582
  priority: z.ZodEnum<{
2546
- user: "user";
2547
2583
  urgent: "urgent";
2584
+ user: "user";
2548
2585
  background: "background";
2549
2586
  }>;
2550
2587
  projectId: z.ZodOptional<z.ZodString>;
@@ -2555,6 +2592,51 @@ declare const TaskTriggerDataSchema: z.ZodObject<{
2555
2592
  }, z.core.$strip>>>;
2556
2593
  agentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2557
2594
  modelOverride: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2595
+ profileId: z.ZodOptional<z.ZodString>;
2596
+ runtimeProfile: z.ZodOptional<z.ZodObject<{
2597
+ schemaVersion: z.ZodDefault<z.ZodLiteral<1>>;
2598
+ profileId: z.ZodOptional<z.ZodString>;
2599
+ profileName: z.ZodOptional<z.ZodString>;
2600
+ source: z.ZodEnum<{
2601
+ "built-in-profile": "built-in-profile";
2602
+ "account-profile": "account-profile";
2603
+ "local-profile": "local-profile";
2604
+ "ad-hoc": "ad-hoc";
2605
+ }>;
2606
+ trust: z.ZodEnum<{
2607
+ trusted: "trusted";
2608
+ untrusted: "untrusted";
2609
+ }>;
2610
+ isBuiltIn: z.ZodOptional<z.ZodBoolean>;
2611
+ compatibility: z.ZodOptional<z.ZodObject<{
2612
+ claude: z.ZodDefault<z.ZodBoolean>;
2613
+ codex: z.ZodDefault<z.ZodBoolean>;
2614
+ gemini: z.ZodDefault<z.ZodBoolean>;
2615
+ }, z.core.$strip>>;
2616
+ environmentVariables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
2617
+ startupBashScript: z.ZodOptional<z.ZodString>;
2618
+ customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
2619
+ id: z.ZodString;
2620
+ name: z.ZodString;
2621
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2622
+ }, z.core.$strip>>>;
2623
+ modelMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2624
+ defaultSessionType: z.ZodOptional<z.ZodEnum<{
2625
+ worktree: "worktree";
2626
+ simple: "simple";
2627
+ }>>;
2628
+ defaultPermissionMode: z.ZodOptional<z.ZodEnum<{
2629
+ default: "default";
2630
+ acceptEdits: "acceptEdits";
2631
+ bypassPermissions: "bypassPermissions";
2632
+ plan: "plan";
2633
+ auto: "auto";
2634
+ "read-only": "read-only";
2635
+ "safe-yolo": "safe-yolo";
2636
+ yolo: "yolo";
2637
+ }>>;
2638
+ defaultModelMode: z.ZodOptional<z.ZodString>;
2639
+ }, z.core.$strip>>;
2558
2640
  }, z.core.$strip>;
2559
2641
  type TaskTriggerData = z.infer<typeof TaskTriggerDataSchema>;
2560
2642
  declare const TaskOutcomeSchema: z.ZodEnum<{
@@ -2566,12 +2648,12 @@ type TaskOutcome = z.infer<typeof TaskOutcomeSchema>;
2566
2648
  declare const TaskStatusReportSchema: z.ZodObject<{
2567
2649
  taskId: z.ZodString;
2568
2650
  status: z.ZodEnum<{
2651
+ queued: "queued";
2652
+ dispatching: "dispatching";
2653
+ running: "running";
2569
2654
  completed: "completed";
2570
2655
  failed: "failed";
2571
2656
  cancelled: "cancelled";
2572
- running: "running";
2573
- queued: "queued";
2574
- dispatching: "dispatching";
2575
2657
  }>;
2576
2658
  outcome: z.ZodOptional<z.ZodEnum<{
2577
2659
  completed: "completed";
@@ -2587,12 +2669,12 @@ declare const TaskStatusChangedSchema: z.ZodObject<{
2587
2669
  taskId: z.ZodString;
2588
2670
  machineId: z.ZodOptional<z.ZodString>;
2589
2671
  status: z.ZodEnum<{
2672
+ queued: "queued";
2673
+ dispatching: "dispatching";
2674
+ running: "running";
2590
2675
  completed: "completed";
2591
2676
  failed: "failed";
2592
2677
  cancelled: "cancelled";
2593
- running: "running";
2594
- queued: "queued";
2595
- dispatching: "dispatching";
2596
2678
  }>;
2597
2679
  sessionId: z.ZodOptional<z.ZodString>;
2598
2680
  errorMessage: z.ZodOptional<z.ZodString>;
@@ -2637,10 +2719,10 @@ declare const SkillContentSchema: z.ZodObject<{
2637
2719
  type SkillContent = z.infer<typeof SkillContentSchema>;
2638
2720
 
2639
2721
  declare const InboxCategorySchema: z.ZodEnum<{
2640
- session: "session";
2641
2722
  supervisor: "supervisor";
2642
2723
  task: "task";
2643
2724
  trigger: "trigger";
2725
+ session: "session";
2644
2726
  knowledge: "knowledge";
2645
2727
  system: "system";
2646
2728
  }>;
@@ -2654,10 +2736,10 @@ type InboxSeverity = z.infer<typeof InboxSeveritySchema>;
2654
2736
  declare const InboxItemSummarySchema: z.ZodObject<{
2655
2737
  id: z.ZodString;
2656
2738
  category: z.ZodEnum<{
2657
- session: "session";
2658
2739
  supervisor: "supervisor";
2659
2740
  task: "task";
2660
2741
  trigger: "trigger";
2742
+ session: "session";
2661
2743
  knowledge: "knowledge";
2662
2744
  system: "system";
2663
2745
  }>;
@@ -2682,10 +2764,10 @@ declare const InboxNewItemSchema: z.ZodObject<{
2682
2764
  item: z.ZodObject<{
2683
2765
  id: z.ZodString;
2684
2766
  category: z.ZodEnum<{
2685
- session: "session";
2686
2767
  supervisor: "supervisor";
2687
2768
  task: "task";
2688
2769
  trigger: "trigger";
2770
+ session: "session";
2689
2771
  knowledge: "knowledge";
2690
2772
  system: "system";
2691
2773
  }>;
@@ -2973,8 +3055,8 @@ declare const AIBackendProfileSchema: z$1.ZodObject<{
2973
3055
  }, z$1.core.$strip>>>;
2974
3056
  modelMappings: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
2975
3057
  defaultSessionType: z$1.ZodOptional<z$1.ZodEnum<{
2976
- simple: "simple";
2977
3058
  worktree: "worktree";
3059
+ simple: "simple";
2978
3060
  }>>;
2979
3061
  defaultPermissionMode: z$1.ZodOptional<z$1.ZodEnum<{
2980
3062
  default: "default";
@@ -3040,8 +3122,8 @@ declare const ResolvedRuntimeProfileSchema: z$1.ZodObject<{
3040
3122
  }, z$1.core.$strip>>>;
3041
3123
  modelMappings: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
3042
3124
  defaultSessionType: z$1.ZodOptional<z$1.ZodEnum<{
3043
- simple: "simple";
3044
3125
  worktree: "worktree";
3126
+ simple: "simple";
3045
3127
  }>>;
3046
3128
  defaultPermissionMode: z$1.ZodOptional<z$1.ZodEnum<{
3047
3129
  default: "default";
@@ -3080,6 +3162,29 @@ declare function normalizeResolvedRuntimeProfile(input: unknown, options?: {
3080
3162
  }): ResolvedRuntimeProfile | undefined;
3081
3163
  declare function isTrustedRuntimeProfile(runtimeProfile: ResolvedRuntimeProfile | null | undefined): boolean;
3082
3164
 
3165
+ /**
3166
+ * Canonical env variable names for runtime-profile fields that cannot be
3167
+ * expressed via AIBackendProfile.environmentVariables / codexConfig.
3168
+ *
3169
+ * Used for Claude-specific runtime behavior (extended thinking, max turns,
3170
+ * permission mode). Server encodes these before spawning a session; CLI reads
3171
+ * them when constructing Claude Agent SDK options.
3172
+ *
3173
+ * All values are encoded as strings since env is stringly-typed. Consumers must
3174
+ * parse booleans/integers explicitly.
3175
+ */
3176
+ declare const HAPPY_PROFILE_ENV_KEYS: {
3177
+ /** `"true" | "false"` — toggle Claude extended thinking */
3178
+ readonly claudeThinkingEnabled: "HAPPY_CLAUDE_THINKING_ENABLED";
3179
+ /** integer as string — Claude extended thinking budget tokens */
3180
+ readonly claudeThinkingBudgetTokens: "HAPPY_CLAUDE_THINKING_BUDGET_TOKENS";
3181
+ /** integer as string — max conversation turns before stop */
3182
+ readonly maxTurns: "HAPPY_MAX_TURNS";
3183
+ /** DefaultPermissionMode literal — permission mode override */
3184
+ readonly permissionMode: "HAPPY_PERMISSION_MODE";
3185
+ };
3186
+ type HappyProfileEnvKey = (typeof HAPPY_PROFILE_ENV_KEYS)[keyof typeof HAPPY_PROFILE_ENV_KEYS];
3187
+
3083
3188
  /**
3084
3189
  * Shared schemas for live session state surfaced to the App's Progress tab.
3085
3190
  *
@@ -3471,5 +3576,107 @@ declare const CodexMetadataSchema: z.ZodObject<{
3471
3576
  }, z.core.$strip>;
3472
3577
  type CodexMetadata = z.infer<typeof CodexMetadataSchema>;
3473
3578
 
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 };
3579
+ /**
3580
+ * Claude Control RPC wire schemas for the Claude-runtime-only sidebar APIs
3581
+ * added in SDK 0.2.119.
3582
+ *
3583
+ * These RPCs are registered by the Claude CLI's RpcHandlerManager and consumed
3584
+ * by Happy App through the standard encrypted RPC channel. Params and
3585
+ * responses are E2E encrypted by RpcHandlerManager at the transport layer;
3586
+ * the schemas here describe the plaintext shape on both ends.
3587
+ *
3588
+ * Namespace convention: methods are registered as `claude-control:<subtype>`
3589
+ * on RpcHandlerManager's scopePrefix so they never collide with codex/gemini
3590
+ * runtime RPCs.
3591
+ *
3592
+ * Tier classification (see docs/encryption.md for the full data-tier model):
3593
+ * - Plaintext-content tier (simple pass-through, no content-level secrets):
3594
+ * get_session_cost, get_binary_version, set_color
3595
+ * - E2E content tier (payload contains user source / paths):
3596
+ * read_file
3597
+ * - Permission-gated (destructive side effects):
3598
+ * mcp_call
3599
+ */
3600
+
3601
+ declare const CLAUDE_CONTROL_SCOPE: "claude-control";
3602
+ declare const GetSessionCostRequestSchema: z$1.ZodObject<{}, z$1.core.$strict>;
3603
+ declare const GetSessionCostResponseSchema: z$1.ZodObject<{
3604
+ formatted: z$1.ZodString;
3605
+ totalUsd: z$1.ZodNumber;
3606
+ byModel: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3607
+ inputTokens: z$1.ZodNumber;
3608
+ outputTokens: z$1.ZodNumber;
3609
+ cacheCreationInputTokens: z$1.ZodOptional<z$1.ZodNumber>;
3610
+ cacheReadInputTokens: z$1.ZodOptional<z$1.ZodNumber>;
3611
+ costUsd: z$1.ZodNumber;
3612
+ }, z$1.core.$strip>>>;
3613
+ }, z$1.core.$strict>;
3614
+ type GetSessionCostRequest = z$1.infer<typeof GetSessionCostRequestSchema>;
3615
+ type GetSessionCostResponse = z$1.infer<typeof GetSessionCostResponseSchema>;
3616
+ declare const GetBinaryVersionRequestSchema: z$1.ZodObject<{}, z$1.core.$strict>;
3617
+ declare const GetBinaryVersionResponseSchema: z$1.ZodObject<{
3618
+ version: z$1.ZodString;
3619
+ binaryPath: z$1.ZodOptional<z$1.ZodString>;
3620
+ happyCliVersion: z$1.ZodOptional<z$1.ZodString>;
3621
+ }, z$1.core.$strict>;
3622
+ type GetBinaryVersionRequest = z$1.infer<typeof GetBinaryVersionRequestSchema>;
3623
+ type GetBinaryVersionResponse = z$1.infer<typeof GetBinaryVersionResponseSchema>;
3624
+ declare const SetColorRequestSchema: z$1.ZodObject<{
3625
+ color: z$1.ZodString;
3626
+ }, z$1.core.$strict>;
3627
+ declare const SetColorResponseSchema: z$1.ZodObject<{
3628
+ success: z$1.ZodLiteral<true>;
3629
+ color: z$1.ZodString;
3630
+ }, z$1.core.$strict>;
3631
+ type SetColorRequest = z$1.infer<typeof SetColorRequestSchema>;
3632
+ type SetColorResponse = z$1.infer<typeof SetColorResponseSchema>;
3633
+ declare const ReadFileRequestSchema: z$1.ZodObject<{
3634
+ path: z$1.ZodString;
3635
+ maxBytes: z$1.ZodOptional<z$1.ZodNumber>;
3636
+ }, z$1.core.$strict>;
3637
+ declare const ReadFileResponseSchema: z$1.ZodObject<{
3638
+ result: z$1.ZodNullable<z$1.ZodObject<{
3639
+ contents: z$1.ZodString;
3640
+ absPath: z$1.ZodString;
3641
+ truncated: z$1.ZodOptional<z$1.ZodBoolean>;
3642
+ }, z$1.core.$strip>>;
3643
+ deniedReason: z$1.ZodOptional<z$1.ZodEnum<{
3644
+ error: "error";
3645
+ not_found: "not_found";
3646
+ permission_denied: "permission_denied";
3647
+ blacklisted_path: "blacklisted_path";
3648
+ too_large: "too_large";
3649
+ }>>;
3650
+ }, z$1.core.$strict>;
3651
+ type ReadFileRequest = z$1.infer<typeof ReadFileRequestSchema>;
3652
+ type ReadFileResponse = z$1.infer<typeof ReadFileResponseSchema>;
3653
+ declare const McpCallRequestSchema: z$1.ZodObject<{
3654
+ tool: z$1.ZodString;
3655
+ arguments: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3656
+ clientConfirmToken: z$1.ZodString;
3657
+ }, z$1.core.$strict>;
3658
+ declare const McpCallResponseSchema: z$1.ZodObject<{
3659
+ success: z$1.ZodBoolean;
3660
+ result: z$1.ZodOptional<z$1.ZodUnknown>;
3661
+ errorCode: z$1.ZodOptional<z$1.ZodEnum<{
3662
+ unknown: "unknown";
3663
+ permission_denied: "permission_denied";
3664
+ not_whitelisted: "not_whitelisted";
3665
+ server_unavailable: "server_unavailable";
3666
+ tool_not_found: "tool_not_found";
3667
+ invalid_arguments: "invalid_arguments";
3668
+ sdk_not_implemented: "sdk_not_implemented";
3669
+ }>>;
3670
+ errorMessage: z$1.ZodOptional<z$1.ZodString>;
3671
+ }, z$1.core.$strict>;
3672
+ type McpCallRequest = z$1.infer<typeof McpCallRequestSchema>;
3673
+ type McpCallResponse = z$1.infer<typeof McpCallResponseSchema>;
3674
+ /**
3675
+ * Method name enum — consumers should derive typed handlers from this.
3676
+ * When adding a new method, update the CLI handler registration too.
3677
+ */
3678
+ declare const CLAUDE_CONTROL_METHODS: readonly ["get_session_cost", "get_binary_version", "set_color", "read_file", "mcp_call"];
3679
+ type ClaudeControlMethod = typeof CLAUDE_CONTROL_METHODS[number];
3680
+
3681
+ 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, CLAUDE_CONTROL_METHODS, CLAUDE_CONTROL_SCOPE, 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, GetBinaryVersionRequestSchema, GetBinaryVersionResponseSchema, GetSessionCostRequestSchema, GetSessionCostResponseSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, HAPPY_PROFILE_ENV_KEYS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, McpCallRequestSchema, McpCallResponseSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ReadFileRequestSchema, ReadFileResponseSchema, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SetColorRequestSchema, SetColorResponseSchema, 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 };
3682
+ export type { AIBackendProfile, AgentLoopSummary, AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, ClaudeControlMethod, CliInstallInfo, CliInstallSource, CodexAccount, CodexAgentSummary, CodexBackendMode, CodexConfigMode, CodexExperimentalFeature, CodexMcpServerSummary, CodexMetadata, CodexPromptSummary, CodexRateLimits, CodexRequestedBackend, CodexResolvedBackend, CodexRuntimeConfig, CodexSkillSummary, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, GetBinaryVersionRequest, GetBinaryVersionResponse, GetSessionCostRequest, GetSessionCostResponse, HappyMcpCanonicalToolName, HappyMcpToolActionMode, HappyProfileEnvKey, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, McpCallRequest, McpCallResponse, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ReadFileRequest, ReadFileResponse, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryRefreshActiveRequest, SessionSummaryRefreshRecentEntry, SessionSummaryRefreshState, SessionSummaryState, SessionTurnEndStatus, SetColorRequest, SetColorResponse, 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 };