@getpaseo/protocol 0.1.101 → 0.1.102

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.
@@ -389,12 +389,25 @@ export declare const GitHubIssueAttachmentSchema: z.ZodObject<{
389
389
  url: z.ZodString;
390
390
  body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
391
391
  }, z.core.$strip>;
392
- export declare const TextAttachmentSchema: z.ZodObject<{
392
+ export declare const TextAttachmentSchema: z.ZodPipe<z.ZodObject<{
393
393
  type: z.ZodLiteral<"text">;
394
394
  mimeType: z.ZodLiteral<"text/plain">;
395
+ contextKind: z.ZodOptional<z.ZodString>;
395
396
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
396
397
  text: z.ZodString;
397
- }, z.core.$strip>;
398
+ }, z.core.$strip>, z.ZodTransform<{
399
+ contextKind?: string | undefined;
400
+ type: "text";
401
+ mimeType: "text/plain";
402
+ text: string;
403
+ title?: string | null | undefined;
404
+ }, {
405
+ type: "text";
406
+ mimeType: "text/plain";
407
+ text: string;
408
+ contextKind?: string | undefined;
409
+ title?: string | null | undefined;
410
+ }>>;
398
411
  export declare const ReviewAttachmentContextLineSchema: z.ZodObject<{
399
412
  oldLineNumber: z.ZodNullable<z.ZodNumber>;
400
413
  newLineNumber: z.ZodNullable<z.ZodNumber>;
@@ -503,12 +516,25 @@ export declare const AgentAttachmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject
503
516
  title: z.ZodString;
504
517
  url: z.ZodString;
505
518
  body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
506
- }, z.core.$strip>, z.ZodObject<{
519
+ }, z.core.$strip>, z.ZodPipe<z.ZodObject<{
507
520
  type: z.ZodLiteral<"text">;
508
521
  mimeType: z.ZodLiteral<"text/plain">;
522
+ contextKind: z.ZodOptional<z.ZodString>;
509
523
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
510
524
  text: z.ZodString;
511
- }, z.core.$strip>, z.ZodObject<{
525
+ }, z.core.$strip>, z.ZodTransform<{
526
+ contextKind?: string | undefined;
527
+ type: "text";
528
+ mimeType: "text/plain";
529
+ text: string;
530
+ title?: string | null | undefined;
531
+ }, {
532
+ type: "text";
533
+ mimeType: "text/plain";
534
+ text: string;
535
+ contextKind?: string | undefined;
536
+ title?: string | null | undefined;
537
+ }>>, z.ZodObject<{
512
538
  type: z.ZodLiteral<"review">;
513
539
  mimeType: z.ZodLiteral<"application/paseo-review">;
514
540
  cwd: z.ZodString;
@@ -567,6 +593,12 @@ export declare const SendAgentMessageSchema: z.ZodObject<{
567
593
  mimeType: z.ZodString;
568
594
  }, z.core.$strip>>>;
569
595
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
596
+ contextKind?: string | undefined;
597
+ type: "text";
598
+ mimeType: "text/plain";
599
+ text: string;
600
+ title?: string | null | undefined;
601
+ } | {
570
602
  type: "github_pr";
571
603
  mimeType: "application/github-pr";
572
604
  number: number;
@@ -582,11 +614,6 @@ export declare const SendAgentMessageSchema: z.ZodObject<{
582
614
  title: string;
583
615
  url: string;
584
616
  body?: string | null | undefined;
585
- } | {
586
- type: "text";
587
- mimeType: "text/plain";
588
- text: string;
589
- title?: string | null | undefined;
590
617
  } | {
591
618
  type: "review";
592
619
  mimeType: "application/paseo-review";
@@ -756,6 +783,12 @@ export declare const SendAgentMessageRequestSchema: z.ZodObject<{
756
783
  mimeType: z.ZodString;
757
784
  }, z.core.$strip>>>;
758
785
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
786
+ contextKind?: string | undefined;
787
+ type: "text";
788
+ mimeType: "text/plain";
789
+ text: string;
790
+ title?: string | null | undefined;
791
+ } | {
759
792
  type: "github_pr";
760
793
  mimeType: "application/github-pr";
761
794
  number: number;
@@ -771,11 +804,6 @@ export declare const SendAgentMessageRequestSchema: z.ZodObject<{
771
804
  title: string;
772
805
  url: string;
773
806
  body?: string | null | undefined;
774
- } | {
775
- type: "text";
776
- mimeType: "text/plain";
777
- text: string;
778
- title?: string | null | undefined;
779
807
  } | {
780
808
  type: "review";
781
809
  mimeType: "application/paseo-review";
@@ -1004,6 +1032,12 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
1004
1032
  mimeType: z.ZodString;
1005
1033
  }, z.core.$strip>>>;
1006
1034
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
1035
+ contextKind?: string | undefined;
1036
+ type: "text";
1037
+ mimeType: "text/plain";
1038
+ text: string;
1039
+ title?: string | null | undefined;
1040
+ } | {
1007
1041
  type: "github_pr";
1008
1042
  mimeType: "application/github-pr";
1009
1043
  number: number;
@@ -1019,11 +1053,6 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
1019
1053
  title: string;
1020
1054
  url: string;
1021
1055
  body?: string | null | undefined;
1022
- } | {
1023
- type: "text";
1024
- mimeType: "text/plain";
1025
- text: string;
1026
- title?: string | null | undefined;
1027
1056
  } | {
1028
1057
  type: "review";
1029
1058
  mimeType: "application/paseo-review";
@@ -1192,6 +1221,10 @@ export declare const ShutdownServerRequestMessageSchema: z.ZodObject<{
1192
1221
  type: z.ZodLiteral<"shutdown_server_request">;
1193
1222
  requestId: z.ZodString;
1194
1223
  }, z.core.$strip>;
1224
+ export declare const DaemonUpdateRequestMessageSchema: z.ZodObject<{
1225
+ type: z.ZodLiteral<"daemon.update.request">;
1226
+ requestId: z.ZodString;
1227
+ }, z.core.$strip>;
1195
1228
  export declare const AgentTimelineCursorSchema: z.ZodObject<{
1196
1229
  epoch: z.ZodString;
1197
1230
  seq: z.ZodNumber;
@@ -1215,6 +1248,12 @@ export declare const FetchAgentTimelineRequestMessageSchema: z.ZodObject<{
1215
1248
  canonical: "canonical";
1216
1249
  }>>;
1217
1250
  }, z.core.$strip>;
1251
+ export declare const AgentForkContextRequestMessageSchema: z.ZodObject<{
1252
+ type: z.ZodLiteral<"agent.fork_context.request">;
1253
+ agentId: z.ZodString;
1254
+ boundaryMessageId: z.ZodOptional<z.ZodString>;
1255
+ requestId: z.ZodString;
1256
+ }, z.core.$strip>;
1218
1257
  export declare const SetAgentModeRequestMessageSchema: z.ZodObject<{
1219
1258
  type: z.ZodLiteral<"set_agent_mode_request">;
1220
1259
  agentId: z.ZodString;
@@ -1622,6 +1661,12 @@ export declare const PaseoWorktreeArchiveRequestSchema: z.ZodObject<{
1622
1661
  export declare const FirstAgentContextSchema: z.ZodObject<{
1623
1662
  prompt: z.ZodOptional<z.ZodString>;
1624
1663
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
1664
+ contextKind?: string | undefined;
1665
+ type: "text";
1666
+ mimeType: "text/plain";
1667
+ text: string;
1668
+ title?: string | null | undefined;
1669
+ } | {
1625
1670
  type: "github_pr";
1626
1671
  mimeType: "application/github-pr";
1627
1672
  number: number;
@@ -1637,11 +1682,6 @@ export declare const FirstAgentContextSchema: z.ZodObject<{
1637
1682
  title: string;
1638
1683
  url: string;
1639
1684
  body?: string | null | undefined;
1640
- } | {
1641
- type: "text";
1642
- mimeType: "text/plain";
1643
- text: string;
1644
- title?: string | null | undefined;
1645
1685
  } | {
1646
1686
  type: "review";
1647
1687
  mimeType: "application/paseo-review";
@@ -1685,6 +1725,12 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
1685
1725
  worktreeSlug: z.ZodOptional<z.ZodString>;
1686
1726
  nameContext: z.ZodOptional<z.ZodString>;
1687
1727
  attachments: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
1728
+ contextKind?: string | undefined;
1729
+ type: "text";
1730
+ mimeType: "text/plain";
1731
+ text: string;
1732
+ title?: string | null | undefined;
1733
+ } | {
1688
1734
  type: "github_pr";
1689
1735
  mimeType: "application/github-pr";
1690
1736
  number: number;
@@ -1700,11 +1746,6 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
1700
1746
  title: string;
1701
1747
  url: string;
1702
1748
  body?: string | null | undefined;
1703
- } | {
1704
- type: "text";
1705
- mimeType: "text/plain";
1706
- text: string;
1707
- title?: string | null | undefined;
1708
1749
  } | {
1709
1750
  type: "review";
1710
1751
  mimeType: "application/paseo-review";
@@ -1743,6 +1784,12 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
1743
1784
  firstAgentContext: z.ZodOptional<z.ZodObject<{
1744
1785
  prompt: z.ZodOptional<z.ZodString>;
1745
1786
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
1787
+ contextKind?: string | undefined;
1788
+ type: "text";
1789
+ mimeType: "text/plain";
1790
+ text: string;
1791
+ title?: string | null | undefined;
1792
+ } | {
1746
1793
  type: "github_pr";
1747
1794
  mimeType: "application/github-pr";
1748
1795
  number: number;
@@ -1758,11 +1805,6 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
1758
1805
  title: string;
1759
1806
  url: string;
1760
1807
  body?: string | null | undefined;
1761
- } | {
1762
- type: "text";
1763
- mimeType: "text/plain";
1764
- text: string;
1765
- title?: string | null | undefined;
1766
1808
  } | {
1767
1809
  type: "review";
1768
1810
  mimeType: "application/paseo-review";
@@ -1849,6 +1891,12 @@ export declare const WorkspaceCreateRequestSchema: z.ZodObject<{
1849
1891
  firstAgentContext: z.ZodOptional<z.ZodObject<{
1850
1892
  prompt: z.ZodOptional<z.ZodString>;
1851
1893
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
1894
+ contextKind?: string | undefined;
1895
+ type: "text";
1896
+ mimeType: "text/plain";
1897
+ text: string;
1898
+ title?: string | null | undefined;
1899
+ } | {
1852
1900
  type: "github_pr";
1853
1901
  mimeType: "application/github-pr";
1854
1902
  number: number;
@@ -1864,11 +1912,6 @@ export declare const WorkspaceCreateRequestSchema: z.ZodObject<{
1864
1912
  title: string;
1865
1913
  url: string;
1866
1914
  body?: string | null | undefined;
1867
- } | {
1868
- type: "text";
1869
- mimeType: "text/plain";
1870
- text: string;
1871
- title?: string | null | undefined;
1872
1915
  } | {
1873
1916
  type: "review";
1874
1917
  mimeType: "application/paseo-review";
@@ -2272,6 +2315,12 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
2272
2315
  mimeType: z.ZodString;
2273
2316
  }, z.core.$strip>>>;
2274
2317
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
2318
+ contextKind?: string | undefined;
2319
+ type: "text";
2320
+ mimeType: "text/plain";
2321
+ text: string;
2322
+ title?: string | null | undefined;
2323
+ } | {
2275
2324
  type: "github_pr";
2276
2325
  mimeType: "application/github-pr";
2277
2326
  number: number;
@@ -2287,11 +2336,6 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
2287
2336
  title: string;
2288
2337
  url: string;
2289
2338
  body?: string | null | undefined;
2290
- } | {
2291
- type: "text";
2292
- mimeType: "text/plain";
2293
- text: string;
2294
- title?: string | null | undefined;
2295
2339
  } | {
2296
2340
  type: "review";
2297
2341
  mimeType: "application/paseo-review";
@@ -2481,6 +2525,12 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
2481
2525
  mimeType: z.ZodString;
2482
2526
  }, z.core.$strip>>>;
2483
2527
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
2528
+ contextKind?: string | undefined;
2529
+ type: "text";
2530
+ mimeType: "text/plain";
2531
+ text: string;
2532
+ title?: string | null | undefined;
2533
+ } | {
2484
2534
  type: "github_pr";
2485
2535
  mimeType: "application/github-pr";
2486
2536
  number: number;
@@ -2496,11 +2546,6 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
2496
2546
  title: string;
2497
2547
  url: string;
2498
2548
  body?: string | null | undefined;
2499
- } | {
2500
- type: "text";
2501
- mimeType: "text/plain";
2502
- text: string;
2503
- title?: string | null | undefined;
2504
2549
  } | {
2505
2550
  type: "review";
2506
2551
  mimeType: "application/paseo-review";
@@ -2666,6 +2711,9 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
2666
2711
  type: z.ZodLiteral<"restart_server_request">;
2667
2712
  reason: z.ZodOptional<z.ZodString>;
2668
2713
  requestId: z.ZodString;
2714
+ }, z.core.$strip>, z.ZodObject<{
2715
+ type: z.ZodLiteral<"daemon.update.request">;
2716
+ requestId: z.ZodString;
2669
2717
  }, z.core.$strip>, z.ZodObject<{
2670
2718
  type: z.ZodLiteral<"fetch_agent_timeline_request">;
2671
2719
  agentId: z.ZodString;
@@ -2684,6 +2732,11 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
2684
2732
  projected: "projected";
2685
2733
  canonical: "canonical";
2686
2734
  }>>;
2735
+ }, z.core.$strip>, z.ZodObject<{
2736
+ type: z.ZodLiteral<"agent.fork_context.request">;
2737
+ agentId: z.ZodString;
2738
+ boundaryMessageId: z.ZodOptional<z.ZodString>;
2739
+ requestId: z.ZodString;
2687
2740
  }, z.core.$strip>, z.ZodObject<{
2688
2741
  type: z.ZodLiteral<"set_agent_mode_request">;
2689
2742
  agentId: z.ZodString;
@@ -2905,6 +2958,12 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
2905
2958
  worktreeSlug: z.ZodOptional<z.ZodString>;
2906
2959
  nameContext: z.ZodOptional<z.ZodString>;
2907
2960
  attachments: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
2961
+ contextKind?: string | undefined;
2962
+ type: "text";
2963
+ mimeType: "text/plain";
2964
+ text: string;
2965
+ title?: string | null | undefined;
2966
+ } | {
2908
2967
  type: "github_pr";
2909
2968
  mimeType: "application/github-pr";
2910
2969
  number: number;
@@ -2920,11 +2979,6 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
2920
2979
  title: string;
2921
2980
  url: string;
2922
2981
  body?: string | null | undefined;
2923
- } | {
2924
- type: "text";
2925
- mimeType: "text/plain";
2926
- text: string;
2927
- title?: string | null | undefined;
2928
2982
  } | {
2929
2983
  type: "review";
2930
2984
  mimeType: "application/paseo-review";
@@ -2963,6 +3017,12 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
2963
3017
  firstAgentContext: z.ZodOptional<z.ZodObject<{
2964
3018
  prompt: z.ZodOptional<z.ZodString>;
2965
3019
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
3020
+ contextKind?: string | undefined;
3021
+ type: "text";
3022
+ mimeType: "text/plain";
3023
+ text: string;
3024
+ title?: string | null | undefined;
3025
+ } | {
2966
3026
  type: "github_pr";
2967
3027
  mimeType: "application/github-pr";
2968
3028
  number: number;
@@ -2978,11 +3038,6 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
2978
3038
  title: string;
2979
3039
  url: string;
2980
3040
  body?: string | null | undefined;
2981
- } | {
2982
- type: "text";
2983
- mimeType: "text/plain";
2984
- text: string;
2985
- title?: string | null | undefined;
2986
3041
  } | {
2987
3042
  type: "review";
2988
3043
  mimeType: "application/paseo-review";
@@ -3062,6 +3117,12 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
3062
3117
  firstAgentContext: z.ZodOptional<z.ZodObject<{
3063
3118
  prompt: z.ZodOptional<z.ZodString>;
3064
3119
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
3120
+ contextKind?: string | undefined;
3121
+ type: "text";
3122
+ mimeType: "text/plain";
3123
+ text: string;
3124
+ title?: string | null | undefined;
3125
+ } | {
3065
3126
  type: "github_pr";
3066
3127
  mimeType: "application/github-pr";
3067
3128
  number: number;
@@ -3077,11 +3138,6 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
3077
3138
  title: string;
3078
3139
  url: string;
3079
3140
  body?: string | null | undefined;
3080
- } | {
3081
- type: "text";
3082
- mimeType: "text/plain";
3083
- text: string;
3084
- title?: string | null | undefined;
3085
3141
  } | {
3086
3142
  type: "review";
3087
3143
  mimeType: "application/paseo-review";
@@ -3617,6 +3673,8 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
3617
3673
  providerUsageList: z.ZodOptional<z.ZodBoolean>;
3618
3674
  agentDetach: z.ZodOptional<z.ZodBoolean>;
3619
3675
  daemonDiagnostics: z.ZodOptional<z.ZodBoolean>;
3676
+ daemonSelfUpdate: z.ZodOptional<z.ZodBoolean>;
3677
+ agentForkContext: z.ZodOptional<z.ZodBoolean>;
3620
3678
  }, z.core.$strip>>;
3621
3679
  }, z.core.$loose>, z.ZodTransform<{
3622
3680
  hostname: string | null;
@@ -3651,6 +3709,8 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
3651
3709
  providerUsageList?: boolean | undefined;
3652
3710
  agentDetach?: boolean | undefined;
3653
3711
  daemonDiagnostics?: boolean | undefined;
3712
+ daemonSelfUpdate?: boolean | undefined;
3713
+ agentForkContext?: boolean | undefined;
3654
3714
  } | undefined;
3655
3715
  }, {
3656
3716
  [x: string]: unknown;
@@ -3686,6 +3746,8 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
3686
3746
  providerUsageList?: boolean | undefined;
3687
3747
  agentDetach?: boolean | undefined;
3688
3748
  daemonDiagnostics?: boolean | undefined;
3749
+ daemonSelfUpdate?: boolean | undefined;
3750
+ agentForkContext?: boolean | undefined;
3689
3751
  } | undefined;
3690
3752
  }>>;
3691
3753
  export declare const StatusMessageSchema: z.ZodObject<{
@@ -7177,6 +7239,35 @@ export declare const FetchAgentTimelineResponseMessageSchema: z.ZodObject<{
7177
7239
  error: z.ZodNullable<z.ZodString>;
7178
7240
  }, z.core.$strip>;
7179
7241
  }, z.core.$strip>;
7242
+ export declare const AgentForkContextResponseMessageSchema: z.ZodObject<{
7243
+ type: z.ZodLiteral<"agent.fork_context.response">;
7244
+ payload: z.ZodObject<{
7245
+ requestId: z.ZodString;
7246
+ agentId: z.ZodString;
7247
+ attachment: z.ZodNullable<z.ZodPipe<z.ZodObject<{
7248
+ type: z.ZodLiteral<"text">;
7249
+ mimeType: z.ZodLiteral<"text/plain">;
7250
+ contextKind: z.ZodOptional<z.ZodString>;
7251
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7252
+ text: z.ZodString;
7253
+ }, z.core.$strip>, z.ZodTransform<{
7254
+ contextKind?: string | undefined;
7255
+ type: "text";
7256
+ mimeType: "text/plain";
7257
+ text: string;
7258
+ title?: string | null | undefined;
7259
+ }, {
7260
+ type: "text";
7261
+ mimeType: "text/plain";
7262
+ text: string;
7263
+ contextKind?: string | undefined;
7264
+ title?: string | null | undefined;
7265
+ }>>>;
7266
+ itemCount: z.ZodNumber;
7267
+ boundaryMessageId: z.ZodNullable<z.ZodString>;
7268
+ error: z.ZodNullable<z.ZodString>;
7269
+ }, z.core.$strip>;
7270
+ }, z.core.$strip>;
7180
7271
  export declare const CancelAgentResponseMessageSchema: z.ZodObject<{
7181
7272
  type: z.ZodLiteral<"cancel_agent_response">;
7182
7273
  payload: z.ZodObject<{
@@ -10087,6 +10178,30 @@ export declare const TerminalAttentionRequiredSchema: z.ZodObject<{
10087
10178
  shouldNotify: z.ZodBoolean;
10088
10179
  }, z.core.$strip>;
10089
10180
  }, z.core.$strip>;
10181
+ export declare const DaemonUpdateResponseSchema: z.ZodObject<{
10182
+ type: z.ZodLiteral<"daemon.update.response">;
10183
+ payload: z.ZodObject<{
10184
+ requestId: z.ZodString;
10185
+ success: z.ZodBoolean;
10186
+ error: z.ZodNullable<z.ZodString>;
10187
+ previousVersion: z.ZodNullable<z.ZodString>;
10188
+ newVersion: z.ZodNullable<z.ZodString>;
10189
+ }, z.core.$strip>;
10190
+ }, z.core.$strip>;
10191
+ export type DaemonUpdateResponse = z.infer<typeof DaemonUpdateResponseSchema>;
10192
+ export declare const DaemonUpdateProgressMessageSchema: z.ZodObject<{
10193
+ type: z.ZodLiteral<"daemon.update.progress">;
10194
+ payload: z.ZodObject<{
10195
+ requestId: z.ZodString;
10196
+ phase: z.ZodEnum<{
10197
+ starting: "starting";
10198
+ downloading: "downloading";
10199
+ installing: "installing";
10200
+ complete: "complete";
10201
+ }>;
10202
+ }, z.core.$strip>;
10203
+ }, z.core.$strip>;
10204
+ export type DaemonUpdateProgressMessage = z.infer<typeof DaemonUpdateProgressMessageSchema>;
10090
10205
  export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
10091
10206
  type: z.ZodLiteral<"activity_log">;
10092
10207
  payload: z.ZodObject<{
@@ -12477,6 +12592,34 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
12477
12592
  }, z.core.$strip>>;
12478
12593
  error: z.ZodNullable<z.ZodString>;
12479
12594
  }, z.core.$strip>;
12595
+ }, z.core.$strip>, z.ZodObject<{
12596
+ type: z.ZodLiteral<"agent.fork_context.response">;
12597
+ payload: z.ZodObject<{
12598
+ requestId: z.ZodString;
12599
+ agentId: z.ZodString;
12600
+ attachment: z.ZodNullable<z.ZodPipe<z.ZodObject<{
12601
+ type: z.ZodLiteral<"text">;
12602
+ mimeType: z.ZodLiteral<"text/plain">;
12603
+ contextKind: z.ZodOptional<z.ZodString>;
12604
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12605
+ text: z.ZodString;
12606
+ }, z.core.$strip>, z.ZodTransform<{
12607
+ contextKind?: string | undefined;
12608
+ type: "text";
12609
+ mimeType: "text/plain";
12610
+ text: string;
12611
+ title?: string | null | undefined;
12612
+ }, {
12613
+ type: "text";
12614
+ mimeType: "text/plain";
12615
+ text: string;
12616
+ contextKind?: string | undefined;
12617
+ title?: string | null | undefined;
12618
+ }>>>;
12619
+ itemCount: z.ZodNumber;
12620
+ boundaryMessageId: z.ZodNullable<z.ZodString>;
12621
+ error: z.ZodNullable<z.ZodString>;
12622
+ }, z.core.$strip>;
12480
12623
  }, z.core.$strip>, z.ZodObject<{
12481
12624
  type: z.ZodLiteral<"cancel_agent_response">;
12482
12625
  payload: z.ZodObject<{
@@ -16076,6 +16219,26 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
16076
16219
  }, z.core.$strip>>;
16077
16220
  error: z.ZodNullable<z.ZodString>;
16078
16221
  }, z.core.$strip>;
16222
+ }, z.core.$strip>, z.ZodObject<{
16223
+ type: z.ZodLiteral<"daemon.update.progress">;
16224
+ payload: z.ZodObject<{
16225
+ requestId: z.ZodString;
16226
+ phase: z.ZodEnum<{
16227
+ starting: "starting";
16228
+ downloading: "downloading";
16229
+ installing: "installing";
16230
+ complete: "complete";
16231
+ }>;
16232
+ }, z.core.$strip>;
16233
+ }, z.core.$strip>, z.ZodObject<{
16234
+ type: z.ZodLiteral<"daemon.update.response">;
16235
+ payload: z.ZodObject<{
16236
+ requestId: z.ZodString;
16237
+ success: z.ZodBoolean;
16238
+ error: z.ZodNullable<z.ZodString>;
16239
+ previousVersion: z.ZodNullable<z.ZodString>;
16240
+ newVersion: z.ZodNullable<z.ZodString>;
16241
+ }, z.core.$strip>;
16079
16242
  }, z.core.$strip>], "type">;
16080
16243
  export type SessionOutboundMessage = z.infer<typeof SessionOutboundMessageSchema>;
16081
16244
  export type ActivityLogMessage = z.infer<typeof ActivityLogMessageSchema>;
@@ -16116,6 +16279,7 @@ export type LegacyOpenInEditorResponseMessage = z.infer<typeof LegacyOpenInEdito
16116
16279
  export type ArchiveWorkspaceResponseMessage = z.infer<typeof ArchiveWorkspaceResponseMessageSchema>;
16117
16280
  export type FetchAgentResponseMessage = z.infer<typeof FetchAgentResponseMessageSchema>;
16118
16281
  export type FetchAgentTimelineResponseMessage = z.infer<typeof FetchAgentTimelineResponseMessageSchema>;
16282
+ export type AgentForkContextResponseMessage = z.infer<typeof AgentForkContextResponseMessageSchema>;
16119
16283
  export type CancelAgentResponseMessage = z.infer<typeof CancelAgentResponseMessageSchema>;
16120
16284
  export type SendAgentMessageResponseMessage = z.infer<typeof SendAgentMessageResponseMessageSchema>;
16121
16285
  export type SetVoiceModeResponseMessage = z.infer<typeof SetVoiceModeResponseMessageSchema>;
@@ -16184,6 +16348,7 @@ export type FetchAgentHistoryRequestMessage = z.infer<typeof FetchAgentHistoryRe
16184
16348
  export type FetchRecentProviderSessionsRequestMessage = z.infer<typeof FetchRecentProviderSessionsRequestMessageSchema>;
16185
16349
  export type FetchWorkspacesRequestMessage = z.infer<typeof FetchWorkspacesRequestMessageSchema>;
16186
16350
  export type FetchAgentRequestMessage = z.infer<typeof FetchAgentRequestMessageSchema>;
16351
+ export type AgentForkContextRequestMessage = z.infer<typeof AgentForkContextRequestMessageSchema>;
16187
16352
  export type SendAgentMessageRequest = z.infer<typeof SendAgentMessageRequestSchema>;
16188
16353
  export type WaitForFinishRequest = z.infer<typeof WaitForFinishRequestSchema>;
16189
16354
  export type DictationStreamStartMessage = z.infer<typeof DictationStreamStartMessageSchema>;
@@ -16546,6 +16711,12 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
16546
16711
  mimeType: z.ZodString;
16547
16712
  }, z.core.$strip>>>;
16548
16713
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
16714
+ contextKind?: string | undefined;
16715
+ type: "text";
16716
+ mimeType: "text/plain";
16717
+ text: string;
16718
+ title?: string | null | undefined;
16719
+ } | {
16549
16720
  type: "github_pr";
16550
16721
  mimeType: "application/github-pr";
16551
16722
  number: number;
@@ -16561,11 +16732,6 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
16561
16732
  title: string;
16562
16733
  url: string;
16563
16734
  body?: string | null | undefined;
16564
- } | {
16565
- type: "text";
16566
- mimeType: "text/plain";
16567
- text: string;
16568
- title?: string | null | undefined;
16569
16735
  } | {
16570
16736
  type: "review";
16571
16737
  mimeType: "application/paseo-review";
@@ -16755,6 +16921,12 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
16755
16921
  mimeType: z.ZodString;
16756
16922
  }, z.core.$strip>>>;
16757
16923
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
16924
+ contextKind?: string | undefined;
16925
+ type: "text";
16926
+ mimeType: "text/plain";
16927
+ text: string;
16928
+ title?: string | null | undefined;
16929
+ } | {
16758
16930
  type: "github_pr";
16759
16931
  mimeType: "application/github-pr";
16760
16932
  number: number;
@@ -16770,11 +16942,6 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
16770
16942
  title: string;
16771
16943
  url: string;
16772
16944
  body?: string | null | undefined;
16773
- } | {
16774
- type: "text";
16775
- mimeType: "text/plain";
16776
- text: string;
16777
- title?: string | null | undefined;
16778
16945
  } | {
16779
16946
  type: "review";
16780
16947
  mimeType: "application/paseo-review";
@@ -16940,6 +17107,9 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
16940
17107
  type: z.ZodLiteral<"restart_server_request">;
16941
17108
  reason: z.ZodOptional<z.ZodString>;
16942
17109
  requestId: z.ZodString;
17110
+ }, z.core.$strip>, z.ZodObject<{
17111
+ type: z.ZodLiteral<"daemon.update.request">;
17112
+ requestId: z.ZodString;
16943
17113
  }, z.core.$strip>, z.ZodObject<{
16944
17114
  type: z.ZodLiteral<"fetch_agent_timeline_request">;
16945
17115
  agentId: z.ZodString;
@@ -16958,6 +17128,11 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
16958
17128
  projected: "projected";
16959
17129
  canonical: "canonical";
16960
17130
  }>>;
17131
+ }, z.core.$strip>, z.ZodObject<{
17132
+ type: z.ZodLiteral<"agent.fork_context.request">;
17133
+ agentId: z.ZodString;
17134
+ boundaryMessageId: z.ZodOptional<z.ZodString>;
17135
+ requestId: z.ZodString;
16961
17136
  }, z.core.$strip>, z.ZodObject<{
16962
17137
  type: z.ZodLiteral<"set_agent_mode_request">;
16963
17138
  agentId: z.ZodString;
@@ -17179,6 +17354,12 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
17179
17354
  worktreeSlug: z.ZodOptional<z.ZodString>;
17180
17355
  nameContext: z.ZodOptional<z.ZodString>;
17181
17356
  attachments: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
17357
+ contextKind?: string | undefined;
17358
+ type: "text";
17359
+ mimeType: "text/plain";
17360
+ text: string;
17361
+ title?: string | null | undefined;
17362
+ } | {
17182
17363
  type: "github_pr";
17183
17364
  mimeType: "application/github-pr";
17184
17365
  number: number;
@@ -17194,11 +17375,6 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
17194
17375
  title: string;
17195
17376
  url: string;
17196
17377
  body?: string | null | undefined;
17197
- } | {
17198
- type: "text";
17199
- mimeType: "text/plain";
17200
- text: string;
17201
- title?: string | null | undefined;
17202
17378
  } | {
17203
17379
  type: "review";
17204
17380
  mimeType: "application/paseo-review";
@@ -17237,6 +17413,12 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
17237
17413
  firstAgentContext: z.ZodOptional<z.ZodObject<{
17238
17414
  prompt: z.ZodOptional<z.ZodString>;
17239
17415
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
17416
+ contextKind?: string | undefined;
17417
+ type: "text";
17418
+ mimeType: "text/plain";
17419
+ text: string;
17420
+ title?: string | null | undefined;
17421
+ } | {
17240
17422
  type: "github_pr";
17241
17423
  mimeType: "application/github-pr";
17242
17424
  number: number;
@@ -17252,11 +17434,6 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
17252
17434
  title: string;
17253
17435
  url: string;
17254
17436
  body?: string | null | undefined;
17255
- } | {
17256
- type: "text";
17257
- mimeType: "text/plain";
17258
- text: string;
17259
- title?: string | null | undefined;
17260
17437
  } | {
17261
17438
  type: "review";
17262
17439
  mimeType: "application/paseo-review";
@@ -17336,6 +17513,12 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
17336
17513
  firstAgentContext: z.ZodOptional<z.ZodObject<{
17337
17514
  prompt: z.ZodOptional<z.ZodString>;
17338
17515
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
17516
+ contextKind?: string | undefined;
17517
+ type: "text";
17518
+ mimeType: "text/plain";
17519
+ text: string;
17520
+ title?: string | null | undefined;
17521
+ } | {
17339
17522
  type: "github_pr";
17340
17523
  mimeType: "application/github-pr";
17341
17524
  number: number;
@@ -17351,11 +17534,6 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
17351
17534
  title: string;
17352
17535
  url: string;
17353
17536
  body?: string | null | undefined;
17354
- } | {
17355
- type: "text";
17356
- mimeType: "text/plain";
17357
- text: string;
17358
- title?: string | null | undefined;
17359
17537
  } | {
17360
17538
  type: "review";
17361
17539
  mimeType: "application/paseo-review";
@@ -20115,6 +20293,34 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
20115
20293
  }, z.core.$strip>>;
20116
20294
  error: z.ZodNullable<z.ZodString>;
20117
20295
  }, z.core.$strip>;
20296
+ }, z.core.$strip>, z.ZodObject<{
20297
+ type: z.ZodLiteral<"agent.fork_context.response">;
20298
+ payload: z.ZodObject<{
20299
+ requestId: z.ZodString;
20300
+ agentId: z.ZodString;
20301
+ attachment: z.ZodNullable<z.ZodPipe<z.ZodObject<{
20302
+ type: z.ZodLiteral<"text">;
20303
+ mimeType: z.ZodLiteral<"text/plain">;
20304
+ contextKind: z.ZodOptional<z.ZodString>;
20305
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20306
+ text: z.ZodString;
20307
+ }, z.core.$strip>, z.ZodTransform<{
20308
+ contextKind?: string | undefined;
20309
+ type: "text";
20310
+ mimeType: "text/plain";
20311
+ text: string;
20312
+ title?: string | null | undefined;
20313
+ }, {
20314
+ type: "text";
20315
+ mimeType: "text/plain";
20316
+ text: string;
20317
+ contextKind?: string | undefined;
20318
+ title?: string | null | undefined;
20319
+ }>>>;
20320
+ itemCount: z.ZodNumber;
20321
+ boundaryMessageId: z.ZodNullable<z.ZodString>;
20322
+ error: z.ZodNullable<z.ZodString>;
20323
+ }, z.core.$strip>;
20118
20324
  }, z.core.$strip>, z.ZodObject<{
20119
20325
  type: z.ZodLiteral<"cancel_agent_response">;
20120
20326
  payload: z.ZodObject<{
@@ -23714,6 +23920,26 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23714
23920
  }, z.core.$strip>>;
23715
23921
  error: z.ZodNullable<z.ZodString>;
23716
23922
  }, z.core.$strip>;
23923
+ }, z.core.$strip>, z.ZodObject<{
23924
+ type: z.ZodLiteral<"daemon.update.progress">;
23925
+ payload: z.ZodObject<{
23926
+ requestId: z.ZodString;
23927
+ phase: z.ZodEnum<{
23928
+ starting: "starting";
23929
+ downloading: "downloading";
23930
+ installing: "installing";
23931
+ complete: "complete";
23932
+ }>;
23933
+ }, z.core.$strip>;
23934
+ }, z.core.$strip>, z.ZodObject<{
23935
+ type: z.ZodLiteral<"daemon.update.response">;
23936
+ payload: z.ZodObject<{
23937
+ requestId: z.ZodString;
23938
+ success: z.ZodBoolean;
23939
+ error: z.ZodNullable<z.ZodString>;
23940
+ previousVersion: z.ZodNullable<z.ZodString>;
23941
+ newVersion: z.ZodNullable<z.ZodString>;
23942
+ }, z.core.$strip>;
23717
23943
  }, z.core.$strip>], "type">;
23718
23944
  }, z.core.$strip>;
23719
23945
  export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -23910,6 +24136,12 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
23910
24136
  mimeType: z.ZodString;
23911
24137
  }, z.core.$strip>>>;
23912
24138
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
24139
+ contextKind?: string | undefined;
24140
+ type: "text";
24141
+ mimeType: "text/plain";
24142
+ text: string;
24143
+ title?: string | null | undefined;
24144
+ } | {
23913
24145
  type: "github_pr";
23914
24146
  mimeType: "application/github-pr";
23915
24147
  number: number;
@@ -23925,11 +24157,6 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
23925
24157
  title: string;
23926
24158
  url: string;
23927
24159
  body?: string | null | undefined;
23928
- } | {
23929
- type: "text";
23930
- mimeType: "text/plain";
23931
- text: string;
23932
- title?: string | null | undefined;
23933
24160
  } | {
23934
24161
  type: "review";
23935
24162
  mimeType: "application/paseo-review";
@@ -24119,6 +24346,12 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
24119
24346
  mimeType: z.ZodString;
24120
24347
  }, z.core.$strip>>>;
24121
24348
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
24349
+ contextKind?: string | undefined;
24350
+ type: "text";
24351
+ mimeType: "text/plain";
24352
+ text: string;
24353
+ title?: string | null | undefined;
24354
+ } | {
24122
24355
  type: "github_pr";
24123
24356
  mimeType: "application/github-pr";
24124
24357
  number: number;
@@ -24134,11 +24367,6 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
24134
24367
  title: string;
24135
24368
  url: string;
24136
24369
  body?: string | null | undefined;
24137
- } | {
24138
- type: "text";
24139
- mimeType: "text/plain";
24140
- text: string;
24141
- title?: string | null | undefined;
24142
24370
  } | {
24143
24371
  type: "review";
24144
24372
  mimeType: "application/paseo-review";
@@ -24304,6 +24532,9 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
24304
24532
  type: z.ZodLiteral<"restart_server_request">;
24305
24533
  reason: z.ZodOptional<z.ZodString>;
24306
24534
  requestId: z.ZodString;
24535
+ }, z.core.$strip>, z.ZodObject<{
24536
+ type: z.ZodLiteral<"daemon.update.request">;
24537
+ requestId: z.ZodString;
24307
24538
  }, z.core.$strip>, z.ZodObject<{
24308
24539
  type: z.ZodLiteral<"fetch_agent_timeline_request">;
24309
24540
  agentId: z.ZodString;
@@ -24322,6 +24553,11 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
24322
24553
  projected: "projected";
24323
24554
  canonical: "canonical";
24324
24555
  }>>;
24556
+ }, z.core.$strip>, z.ZodObject<{
24557
+ type: z.ZodLiteral<"agent.fork_context.request">;
24558
+ agentId: z.ZodString;
24559
+ boundaryMessageId: z.ZodOptional<z.ZodString>;
24560
+ requestId: z.ZodString;
24325
24561
  }, z.core.$strip>, z.ZodObject<{
24326
24562
  type: z.ZodLiteral<"set_agent_mode_request">;
24327
24563
  agentId: z.ZodString;
@@ -24543,6 +24779,12 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
24543
24779
  worktreeSlug: z.ZodOptional<z.ZodString>;
24544
24780
  nameContext: z.ZodOptional<z.ZodString>;
24545
24781
  attachments: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
24782
+ contextKind?: string | undefined;
24783
+ type: "text";
24784
+ mimeType: "text/plain";
24785
+ text: string;
24786
+ title?: string | null | undefined;
24787
+ } | {
24546
24788
  type: "github_pr";
24547
24789
  mimeType: "application/github-pr";
24548
24790
  number: number;
@@ -24558,11 +24800,6 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
24558
24800
  title: string;
24559
24801
  url: string;
24560
24802
  body?: string | null | undefined;
24561
- } | {
24562
- type: "text";
24563
- mimeType: "text/plain";
24564
- text: string;
24565
- title?: string | null | undefined;
24566
24803
  } | {
24567
24804
  type: "review";
24568
24805
  mimeType: "application/paseo-review";
@@ -24601,6 +24838,12 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
24601
24838
  firstAgentContext: z.ZodOptional<z.ZodObject<{
24602
24839
  prompt: z.ZodOptional<z.ZodString>;
24603
24840
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
24841
+ contextKind?: string | undefined;
24842
+ type: "text";
24843
+ mimeType: "text/plain";
24844
+ text: string;
24845
+ title?: string | null | undefined;
24846
+ } | {
24604
24847
  type: "github_pr";
24605
24848
  mimeType: "application/github-pr";
24606
24849
  number: number;
@@ -24616,11 +24859,6 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
24616
24859
  title: string;
24617
24860
  url: string;
24618
24861
  body?: string | null | undefined;
24619
- } | {
24620
- type: "text";
24621
- mimeType: "text/plain";
24622
- text: string;
24623
- title?: string | null | undefined;
24624
24862
  } | {
24625
24863
  type: "review";
24626
24864
  mimeType: "application/paseo-review";
@@ -24700,6 +24938,12 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
24700
24938
  firstAgentContext: z.ZodOptional<z.ZodObject<{
24701
24939
  prompt: z.ZodOptional<z.ZodString>;
24702
24940
  attachments: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<({
24941
+ contextKind?: string | undefined;
24942
+ type: "text";
24943
+ mimeType: "text/plain";
24944
+ text: string;
24945
+ title?: string | null | undefined;
24946
+ } | {
24703
24947
  type: "github_pr";
24704
24948
  mimeType: "application/github-pr";
24705
24949
  number: number;
@@ -24715,11 +24959,6 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
24715
24959
  title: string;
24716
24960
  url: string;
24717
24961
  body?: string | null | undefined;
24718
- } | {
24719
- type: "text";
24720
- mimeType: "text/plain";
24721
- text: string;
24722
- title?: string | null | undefined;
24723
24962
  } | {
24724
24963
  type: "review";
24725
24964
  mimeType: "application/paseo-review";
@@ -27481,6 +27720,34 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
27481
27720
  }, z.core.$strip>>;
27482
27721
  error: z.ZodNullable<z.ZodString>;
27483
27722
  }, z.core.$strip>;
27723
+ }, z.core.$strip>, z.ZodObject<{
27724
+ type: z.ZodLiteral<"agent.fork_context.response">;
27725
+ payload: z.ZodObject<{
27726
+ requestId: z.ZodString;
27727
+ agentId: z.ZodString;
27728
+ attachment: z.ZodNullable<z.ZodPipe<z.ZodObject<{
27729
+ type: z.ZodLiteral<"text">;
27730
+ mimeType: z.ZodLiteral<"text/plain">;
27731
+ contextKind: z.ZodOptional<z.ZodString>;
27732
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27733
+ text: z.ZodString;
27734
+ }, z.core.$strip>, z.ZodTransform<{
27735
+ contextKind?: string | undefined;
27736
+ type: "text";
27737
+ mimeType: "text/plain";
27738
+ text: string;
27739
+ title?: string | null | undefined;
27740
+ }, {
27741
+ type: "text";
27742
+ mimeType: "text/plain";
27743
+ text: string;
27744
+ contextKind?: string | undefined;
27745
+ title?: string | null | undefined;
27746
+ }>>>;
27747
+ itemCount: z.ZodNumber;
27748
+ boundaryMessageId: z.ZodNullable<z.ZodString>;
27749
+ error: z.ZodNullable<z.ZodString>;
27750
+ }, z.core.$strip>;
27484
27751
  }, z.core.$strip>, z.ZodObject<{
27485
27752
  type: z.ZodLiteral<"cancel_agent_response">;
27486
27753
  payload: z.ZodObject<{
@@ -31080,6 +31347,26 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
31080
31347
  }, z.core.$strip>>;
31081
31348
  error: z.ZodNullable<z.ZodString>;
31082
31349
  }, z.core.$strip>;
31350
+ }, z.core.$strip>, z.ZodObject<{
31351
+ type: z.ZodLiteral<"daemon.update.progress">;
31352
+ payload: z.ZodObject<{
31353
+ requestId: z.ZodString;
31354
+ phase: z.ZodEnum<{
31355
+ starting: "starting";
31356
+ downloading: "downloading";
31357
+ installing: "installing";
31358
+ complete: "complete";
31359
+ }>;
31360
+ }, z.core.$strip>;
31361
+ }, z.core.$strip>, z.ZodObject<{
31362
+ type: z.ZodLiteral<"daemon.update.response">;
31363
+ payload: z.ZodObject<{
31364
+ requestId: z.ZodString;
31365
+ success: z.ZodBoolean;
31366
+ error: z.ZodNullable<z.ZodString>;
31367
+ previousVersion: z.ZodNullable<z.ZodString>;
31368
+ newVersion: z.ZodNullable<z.ZodString>;
31369
+ }, z.core.$strip>;
31083
31370
  }, z.core.$strip>], "type">;
31084
31371
  }, z.core.$strip>], "type">;
31085
31372
  export type WSInboundMessage = z.infer<typeof WSInboundMessageSchema>;
package/dist/messages.js CHANGED
@@ -669,12 +669,18 @@ export const GitHubIssueAttachmentSchema = z.object({
669
669
  url: z.string(),
670
670
  body: z.string().nullable().optional(),
671
671
  });
672
- export const TextAttachmentSchema = z.object({
672
+ export const TextAttachmentSchema = z
673
+ .object({
673
674
  type: z.literal("text"),
674
675
  mimeType: z.literal("text/plain"),
676
+ contextKind: z.string().optional(),
675
677
  title: z.string().nullable().optional(),
676
678
  text: z.string(),
677
- });
679
+ })
680
+ .transform(({ contextKind, ...attachment }) => ({
681
+ ...attachment,
682
+ ...(contextKind === "chat_history" ? { contextKind } : {}),
683
+ }));
678
684
  export const ReviewAttachmentContextLineSchema = z.object({
679
685
  oldLineNumber: z.number().int().positive().nullable(),
680
686
  newLineNumber: z.number().int().positive().nullable(),
@@ -1021,6 +1027,10 @@ export const ShutdownServerRequestMessageSchema = z.object({
1021
1027
  type: z.literal("shutdown_server_request"),
1022
1028
  requestId: z.string(),
1023
1029
  });
1030
+ export const DaemonUpdateRequestMessageSchema = z.object({
1031
+ type: z.literal("daemon.update.request"),
1032
+ requestId: z.string(),
1033
+ });
1024
1034
  export const AgentTimelineCursorSchema = z.object({
1025
1035
  epoch: z.string(),
1026
1036
  seq: z.number().int().nonnegative(),
@@ -1036,6 +1046,12 @@ export const FetchAgentTimelineRequestMessageSchema = z.object({
1036
1046
  // Default should be projected for app timeline loading.
1037
1047
  projection: z.enum(["projected", "canonical"]).optional(),
1038
1048
  });
1049
+ export const AgentForkContextRequestMessageSchema = z.object({
1050
+ type: z.literal("agent.fork_context.request"),
1051
+ agentId: z.string(),
1052
+ boundaryMessageId: z.string().optional(),
1053
+ requestId: z.string(),
1054
+ });
1039
1055
  export const SetAgentModeRequestMessageSchema = z.object({
1040
1056
  type: z.literal("set_agent_mode_request"),
1041
1057
  agentId: z.string(),
@@ -1724,7 +1740,9 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
1724
1740
  CancelAgentRequestMessageSchema,
1725
1741
  ShutdownServerRequestMessageSchema,
1726
1742
  RestartServerRequestMessageSchema,
1743
+ DaemonUpdateRequestMessageSchema,
1727
1744
  FetchAgentTimelineRequestMessageSchema,
1745
+ AgentForkContextRequestMessageSchema,
1728
1746
  SetAgentModeRequestMessageSchema,
1729
1747
  SetAgentModelRequestMessageSchema,
1730
1748
  SetAgentThinkingRequestMessageSchema,
@@ -1977,6 +1995,10 @@ export const ServerInfoStatusPayloadSchema = z
1977
1995
  agentDetach: z.boolean().optional(),
1978
1996
  // COMPAT(daemonDiagnostics): added in v0.1.100, remove gate after 2026-12-25 once daemon floor >= v0.1.100.
1979
1997
  daemonDiagnostics: z.boolean().optional(),
1998
+ // COMPAT(daemonSelfUpdate): added in v0.1.93, remove gate after 2026-12-13.
1999
+ daemonSelfUpdate: z.boolean().optional(),
2000
+ // COMPAT(agentForkContext): added in v0.1.102, remove gate after 2026-12-28.
2001
+ agentForkContext: z.boolean().optional(),
1980
2002
  })
1981
2003
  .optional(),
1982
2004
  })
@@ -2511,6 +2533,17 @@ export const FetchAgentTimelineResponseMessageSchema = z.object({
2511
2533
  error: z.string().nullable(),
2512
2534
  }),
2513
2535
  });
2536
+ export const AgentForkContextResponseMessageSchema = z.object({
2537
+ type: z.literal("agent.fork_context.response"),
2538
+ payload: z.object({
2539
+ requestId: z.string(),
2540
+ agentId: z.string(),
2541
+ attachment: TextAttachmentSchema.nullable(),
2542
+ itemCount: z.number().int().nonnegative(),
2543
+ boundaryMessageId: z.string().nullable(),
2544
+ error: z.string().nullable(),
2545
+ }),
2546
+ });
2514
2547
  export const CancelAgentResponseMessageSchema = z.object({
2515
2548
  type: z.literal("cancel_agent_response"),
2516
2549
  payload: z.object({
@@ -3566,6 +3599,23 @@ export const TerminalAttentionRequiredSchema = z.object({
3566
3599
  shouldNotify: z.boolean(),
3567
3600
  }),
3568
3601
  });
3602
+ export const DaemonUpdateResponseSchema = z.object({
3603
+ type: z.literal("daemon.update.response"),
3604
+ payload: z.object({
3605
+ requestId: z.string(),
3606
+ success: z.boolean(),
3607
+ error: z.string().nullable(),
3608
+ previousVersion: z.string().nullable(),
3609
+ newVersion: z.string().nullable(),
3610
+ }),
3611
+ });
3612
+ export const DaemonUpdateProgressMessageSchema = z.object({
3613
+ type: z.literal("daemon.update.progress"),
3614
+ payload: z.object({
3615
+ requestId: z.string(),
3616
+ phase: z.enum(["starting", "downloading", "installing", "complete"]),
3617
+ }),
3618
+ });
3569
3619
  export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
3570
3620
  ActivityLogMessageSchema,
3571
3621
  AssistantChunkMessageSchema,
@@ -3600,6 +3650,7 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
3600
3650
  ArchiveWorkspaceResponseMessageSchema,
3601
3651
  FetchAgentResponseMessageSchema,
3602
3652
  FetchAgentTimelineResponseMessageSchema,
3653
+ AgentForkContextResponseMessageSchema,
3603
3654
  CancelAgentResponseMessageSchema,
3604
3655
  ClearAgentAttentionResponseMessageSchema,
3605
3656
  WorkspaceCreateResponseSchema,
@@ -3701,6 +3752,8 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
3701
3752
  LoopInspectResponseSchema,
3702
3753
  LoopLogsResponseSchema,
3703
3754
  LoopStopResponseSchema,
3755
+ DaemonUpdateProgressMessageSchema,
3756
+ DaemonUpdateResponseSchema,
3704
3757
  ]);
3705
3758
  // ============================================================================
3706
3759
  // WebSocket Level Messages (wraps session messages)
@@ -3,6 +3,7 @@ export const BUILTIN_PROVIDER_ICON_NAMES = [
3
3
  "codex",
4
4
  "copilot",
5
5
  "kiro",
6
+ "minimax",
6
7
  "omp",
7
8
  "opencode",
8
9
  "pi",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpaseo/protocol",
3
- "version": "0.1.101",
3
+ "version": "0.1.102",
4
4
  "description": "Paseo shared protocol schemas and wire types",
5
5
  "files": [
6
6
  "dist",