@getpaseo/protocol 0.1.91-beta.2 → 0.1.91

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.
@@ -1818,6 +1818,28 @@ export declare const ReviewAttachmentSchema: z.ZodObject<{
1818
1818
  }[];
1819
1819
  baseRef?: string | null | undefined;
1820
1820
  }>;
1821
+ export declare const UploadedFileAttachmentSchema: z.ZodObject<{
1822
+ type: z.ZodLiteral<"uploaded_file">;
1823
+ id: z.ZodString;
1824
+ fileName: z.ZodString;
1825
+ mimeType: z.ZodString;
1826
+ size: z.ZodNumber;
1827
+ path: z.ZodString;
1828
+ }, "strip", z.ZodTypeAny, {
1829
+ type: "uploaded_file";
1830
+ path: string;
1831
+ mimeType: string;
1832
+ id: string;
1833
+ fileName: string;
1834
+ size: number;
1835
+ }, {
1836
+ type: "uploaded_file";
1837
+ path: string;
1838
+ mimeType: string;
1839
+ id: string;
1840
+ fileName: string;
1841
+ size: number;
1842
+ }>;
1821
1843
  export declare const AgentAttachmentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1822
1844
  type: z.ZodLiteral<"github_pr">;
1823
1845
  mimeType: z.ZodLiteral<"application/github-pr">;
@@ -2050,6 +2072,27 @@ export declare const AgentAttachmentSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2050
2072
  };
2051
2073
  }[];
2052
2074
  baseRef?: string | null | undefined;
2075
+ }>, z.ZodObject<{
2076
+ type: z.ZodLiteral<"uploaded_file">;
2077
+ id: z.ZodString;
2078
+ fileName: z.ZodString;
2079
+ mimeType: z.ZodString;
2080
+ size: z.ZodNumber;
2081
+ path: z.ZodString;
2082
+ }, "strip", z.ZodTypeAny, {
2083
+ type: "uploaded_file";
2084
+ path: string;
2085
+ mimeType: string;
2086
+ id: string;
2087
+ fileName: string;
2088
+ size: number;
2089
+ }, {
2090
+ type: "uploaded_file";
2091
+ path: string;
2092
+ mimeType: string;
2093
+ id: string;
2094
+ fileName: string;
2095
+ size: number;
2053
2096
  }>]>;
2054
2097
  export declare const SendAgentMessageSchema: z.ZodObject<{
2055
2098
  type: z.ZodLiteral<"send_agent_message">;
@@ -2114,6 +2157,13 @@ export declare const SendAgentMessageSchema: z.ZodObject<{
2114
2157
  };
2115
2158
  }[];
2116
2159
  baseRef?: string | null | undefined;
2160
+ } | {
2161
+ type: "uploaded_file";
2162
+ path: string;
2163
+ mimeType: string;
2164
+ id: string;
2165
+ fileName: string;
2166
+ size: number;
2117
2167
  })[], unknown>>;
2118
2168
  }, "strip", z.ZodTypeAny, {
2119
2169
  agentId: string;
@@ -2172,6 +2222,13 @@ export declare const SendAgentMessageSchema: z.ZodObject<{
2172
2222
  };
2173
2223
  }[];
2174
2224
  baseRef?: string | null | undefined;
2225
+ } | {
2226
+ type: "uploaded_file";
2227
+ path: string;
2228
+ mimeType: string;
2229
+ id: string;
2230
+ fileName: string;
2231
+ size: number;
2175
2232
  })[] | undefined;
2176
2233
  }, {
2177
2234
  agentId: string;
@@ -2552,6 +2609,13 @@ export declare const SendAgentMessageRequestSchema: z.ZodObject<{
2552
2609
  };
2553
2610
  }[];
2554
2611
  baseRef?: string | null | undefined;
2612
+ } | {
2613
+ type: "uploaded_file";
2614
+ path: string;
2615
+ mimeType: string;
2616
+ id: string;
2617
+ fileName: string;
2618
+ size: number;
2555
2619
  })[], unknown>>;
2556
2620
  }, "strip", z.ZodTypeAny, {
2557
2621
  agentId: string;
@@ -2611,6 +2675,13 @@ export declare const SendAgentMessageRequestSchema: z.ZodObject<{
2611
2675
  };
2612
2676
  }[];
2613
2677
  baseRef?: string | null | undefined;
2678
+ } | {
2679
+ type: "uploaded_file";
2680
+ path: string;
2681
+ mimeType: string;
2682
+ id: string;
2683
+ fileName: string;
2684
+ size: number;
2614
2685
  })[] | undefined;
2615
2686
  }, {
2616
2687
  agentId: string;
@@ -3459,11 +3530,11 @@ export declare const WriteProjectConfigRequestMessageSchema: z.ZodObject<{
3459
3530
  mtimeMs: z.ZodNumber;
3460
3531
  size: z.ZodNumber;
3461
3532
  }, "strip", z.ZodTypeAny, {
3462
- mtimeMs: number;
3463
3533
  size: number;
3464
- }, {
3465
3534
  mtimeMs: number;
3535
+ }, {
3466
3536
  size: number;
3537
+ mtimeMs: number;
3467
3538
  }>>;
3468
3539
  }, "strip", z.ZodTypeAny, {
3469
3540
  type: "write_project_config_request";
@@ -3514,8 +3585,8 @@ export declare const WriteProjectConfigRequestMessageSchema: z.ZodObject<{
3514
3585
  };
3515
3586
  repoRoot: string;
3516
3587
  expectedRevision: {
3517
- mtimeMs: number;
3518
3588
  size: number;
3589
+ mtimeMs: number;
3519
3590
  } | null;
3520
3591
  }, {
3521
3592
  type: "write_project_config_request";
@@ -3537,8 +3608,8 @@ export declare const WriteProjectConfigRequestMessageSchema: z.ZodObject<{
3537
3608
  };
3538
3609
  repoRoot: string;
3539
3610
  expectedRevision: {
3540
- mtimeMs: number;
3541
3611
  size: number;
3612
+ mtimeMs: number;
3542
3613
  } | null;
3543
3614
  }>;
3544
3615
  export declare const DictationStreamStartMessageSchema: z.ZodObject<{
@@ -3864,6 +3935,13 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
3864
3935
  };
3865
3936
  }[];
3866
3937
  baseRef?: string | null | undefined;
3938
+ } | {
3939
+ type: "uploaded_file";
3940
+ path: string;
3941
+ mimeType: string;
3942
+ id: string;
3943
+ fileName: string;
3944
+ size: number;
3867
3945
  })[], unknown>>;
3868
3946
  git: z.ZodOptional<z.ZodObject<{
3869
3947
  baseBranch: z.ZodOptional<z.ZodString>;
@@ -4030,6 +4108,13 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
4030
4108
  };
4031
4109
  }[];
4032
4110
  baseRef?: string | null | undefined;
4111
+ } | {
4112
+ type: "uploaded_file";
4113
+ path: string;
4114
+ mimeType: string;
4115
+ id: string;
4116
+ fileName: string;
4117
+ size: number;
4033
4118
  })[] | undefined;
4034
4119
  workspaceId?: string | undefined;
4035
4120
  worktreeName?: string | undefined;
@@ -5523,6 +5608,13 @@ export declare const FirstAgentContextSchema: z.ZodObject<{
5523
5608
  };
5524
5609
  }[];
5525
5610
  baseRef?: string | null | undefined;
5611
+ } | {
5612
+ type: "uploaded_file";
5613
+ path: string;
5614
+ mimeType: string;
5615
+ id: string;
5616
+ fileName: string;
5617
+ size: number;
5526
5618
  })[], unknown>>;
5527
5619
  }, "strip", z.ZodTypeAny, {
5528
5620
  prompt?: string | undefined;
@@ -5574,6 +5666,13 @@ export declare const FirstAgentContextSchema: z.ZodObject<{
5574
5666
  };
5575
5667
  }[];
5576
5668
  baseRef?: string | null | undefined;
5669
+ } | {
5670
+ type: "uploaded_file";
5671
+ path: string;
5672
+ mimeType: string;
5673
+ id: string;
5674
+ fileName: string;
5675
+ size: number;
5577
5676
  })[] | undefined;
5578
5677
  }, {
5579
5678
  prompt?: string | undefined;
@@ -5633,6 +5732,13 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
5633
5732
  };
5634
5733
  }[];
5635
5734
  baseRef?: string | null | undefined;
5735
+ } | {
5736
+ type: "uploaded_file";
5737
+ path: string;
5738
+ mimeType: string;
5739
+ id: string;
5740
+ fileName: string;
5741
+ size: number;
5636
5742
  })[], unknown>>>;
5637
5743
  firstAgentContext: z.ZodOptional<z.ZodObject<{
5638
5744
  prompt: z.ZodOptional<z.ZodString>;
@@ -5684,6 +5790,13 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
5684
5790
  };
5685
5791
  }[];
5686
5792
  baseRef?: string | null | undefined;
5793
+ } | {
5794
+ type: "uploaded_file";
5795
+ path: string;
5796
+ mimeType: string;
5797
+ id: string;
5798
+ fileName: string;
5799
+ size: number;
5687
5800
  })[], unknown>>;
5688
5801
  }, "strip", z.ZodTypeAny, {
5689
5802
  prompt?: string | undefined;
@@ -5735,6 +5848,13 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
5735
5848
  };
5736
5849
  }[];
5737
5850
  baseRef?: string | null | undefined;
5851
+ } | {
5852
+ type: "uploaded_file";
5853
+ path: string;
5854
+ mimeType: string;
5855
+ id: string;
5856
+ fileName: string;
5857
+ size: number;
5738
5858
  })[] | undefined;
5739
5859
  }, {
5740
5860
  prompt?: string | undefined;
@@ -5797,6 +5917,13 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
5797
5917
  };
5798
5918
  }[];
5799
5919
  baseRef?: string | null | undefined;
5920
+ } | {
5921
+ type: "uploaded_file";
5922
+ path: string;
5923
+ mimeType: string;
5924
+ id: string;
5925
+ fileName: string;
5926
+ size: number;
5800
5927
  })[] | undefined;
5801
5928
  worktreeSlug?: string | undefined;
5802
5929
  refName?: string | undefined;
@@ -5853,6 +5980,13 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
5853
5980
  };
5854
5981
  }[];
5855
5982
  baseRef?: string | null | undefined;
5983
+ } | {
5984
+ type: "uploaded_file";
5985
+ path: string;
5986
+ mimeType: string;
5987
+ id: string;
5988
+ fileName: string;
5989
+ size: number;
5856
5990
  })[] | undefined;
5857
5991
  } | undefined;
5858
5992
  }, {
@@ -6006,6 +6140,28 @@ export declare const FileDownloadTokenRequestSchema: z.ZodObject<{
6006
6140
  cwd: string;
6007
6141
  requestId: string;
6008
6142
  }>;
6143
+ export declare const FileUploadRequestSchema: z.ZodObject<{
6144
+ type: z.ZodLiteral<"file.upload.request">;
6145
+ fileName: z.ZodString;
6146
+ mimeType: z.ZodString;
6147
+ size: z.ZodNumber;
6148
+ modifiedAt: z.ZodString;
6149
+ requestId: z.ZodString;
6150
+ }, "strip", z.ZodTypeAny, {
6151
+ type: "file.upload.request";
6152
+ mimeType: string;
6153
+ fileName: string;
6154
+ size: number;
6155
+ requestId: string;
6156
+ modifiedAt: string;
6157
+ }, {
6158
+ type: "file.upload.request";
6159
+ mimeType: string;
6160
+ fileName: string;
6161
+ size: number;
6162
+ requestId: string;
6163
+ modifiedAt: string;
6164
+ }>;
6009
6165
  export declare const ClearAgentAttentionMessageSchema: z.ZodObject<{
6010
6166
  type: z.ZodLiteral<"clear_agent_attention">;
6011
6167
  agentId: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
@@ -6912,6 +7068,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
6912
7068
  };
6913
7069
  }[];
6914
7070
  baseRef?: string | null | undefined;
7071
+ } | {
7072
+ type: "uploaded_file";
7073
+ path: string;
7074
+ mimeType: string;
7075
+ id: string;
7076
+ fileName: string;
7077
+ size: number;
6915
7078
  })[], unknown>>;
6916
7079
  }, "strip", z.ZodTypeAny, {
6917
7080
  agentId: string;
@@ -6971,6 +7134,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
6971
7134
  };
6972
7135
  }[];
6973
7136
  baseRef?: string | null | undefined;
7137
+ } | {
7138
+ type: "uploaded_file";
7139
+ path: string;
7140
+ mimeType: string;
7141
+ id: string;
7142
+ fileName: string;
7143
+ size: number;
6974
7144
  })[] | undefined;
6975
7145
  }, {
6976
7146
  agentId: string;
@@ -7812,11 +7982,11 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
7812
7982
  mtimeMs: z.ZodNumber;
7813
7983
  size: z.ZodNumber;
7814
7984
  }, "strip", z.ZodTypeAny, {
7815
- mtimeMs: number;
7816
7985
  size: number;
7817
- }, {
7818
7986
  mtimeMs: number;
7987
+ }, {
7819
7988
  size: number;
7989
+ mtimeMs: number;
7820
7990
  }>>;
7821
7991
  }, "strip", z.ZodTypeAny, {
7822
7992
  type: "write_project_config_request";
@@ -7867,8 +8037,8 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
7867
8037
  };
7868
8038
  repoRoot: string;
7869
8039
  expectedRevision: {
7870
- mtimeMs: number;
7871
8040
  size: number;
8041
+ mtimeMs: number;
7872
8042
  } | null;
7873
8043
  }, {
7874
8044
  type: "write_project_config_request";
@@ -7890,8 +8060,8 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
7890
8060
  };
7891
8061
  repoRoot: string;
7892
8062
  expectedRevision: {
7893
- mtimeMs: number;
7894
8063
  size: number;
8064
+ mtimeMs: number;
7895
8065
  } | null;
7896
8066
  }>, z.ZodObject<{
7897
8067
  type: z.ZodLiteral<"dictation_stream_start">;
@@ -8151,6 +8321,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
8151
8321
  };
8152
8322
  }[];
8153
8323
  baseRef?: string | null | undefined;
8324
+ } | {
8325
+ type: "uploaded_file";
8326
+ path: string;
8327
+ mimeType: string;
8328
+ id: string;
8329
+ fileName: string;
8330
+ size: number;
8154
8331
  })[], unknown>>;
8155
8332
  git: z.ZodOptional<z.ZodObject<{
8156
8333
  baseBranch: z.ZodOptional<z.ZodString>;
@@ -8317,6 +8494,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
8317
8494
  };
8318
8495
  }[];
8319
8496
  baseRef?: string | null | undefined;
8497
+ } | {
8498
+ type: "uploaded_file";
8499
+ path: string;
8500
+ mimeType: string;
8501
+ id: string;
8502
+ fileName: string;
8503
+ size: number;
8320
8504
  })[] | undefined;
8321
8505
  workspaceId?: string | undefined;
8322
8506
  worktreeName?: string | undefined;
@@ -9446,6 +9630,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
9446
9630
  };
9447
9631
  }[];
9448
9632
  baseRef?: string | null | undefined;
9633
+ } | {
9634
+ type: "uploaded_file";
9635
+ path: string;
9636
+ mimeType: string;
9637
+ id: string;
9638
+ fileName: string;
9639
+ size: number;
9449
9640
  })[], unknown>>>;
9450
9641
  firstAgentContext: z.ZodOptional<z.ZodObject<{
9451
9642
  prompt: z.ZodOptional<z.ZodString>;
@@ -9497,6 +9688,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
9497
9688
  };
9498
9689
  }[];
9499
9690
  baseRef?: string | null | undefined;
9691
+ } | {
9692
+ type: "uploaded_file";
9693
+ path: string;
9694
+ mimeType: string;
9695
+ id: string;
9696
+ fileName: string;
9697
+ size: number;
9500
9698
  })[], unknown>>;
9501
9699
  }, "strip", z.ZodTypeAny, {
9502
9700
  prompt?: string | undefined;
@@ -9548,6 +9746,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
9548
9746
  };
9549
9747
  }[];
9550
9748
  baseRef?: string | null | undefined;
9749
+ } | {
9750
+ type: "uploaded_file";
9751
+ path: string;
9752
+ mimeType: string;
9753
+ id: string;
9754
+ fileName: string;
9755
+ size: number;
9551
9756
  })[] | undefined;
9552
9757
  }, {
9553
9758
  prompt?: string | undefined;
@@ -9610,6 +9815,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
9610
9815
  };
9611
9816
  }[];
9612
9817
  baseRef?: string | null | undefined;
9818
+ } | {
9819
+ type: "uploaded_file";
9820
+ path: string;
9821
+ mimeType: string;
9822
+ id: string;
9823
+ fileName: string;
9824
+ size: number;
9613
9825
  })[] | undefined;
9614
9826
  worktreeSlug?: string | undefined;
9615
9827
  refName?: string | undefined;
@@ -9666,6 +9878,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
9666
9878
  };
9667
9879
  }[];
9668
9880
  baseRef?: string | null | undefined;
9881
+ } | {
9882
+ type: "uploaded_file";
9883
+ path: string;
9884
+ mimeType: string;
9885
+ id: string;
9886
+ fileName: string;
9887
+ size: number;
9669
9888
  })[] | undefined;
9670
9889
  } | undefined;
9671
9890
  }, {
@@ -9809,6 +10028,27 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
9809
10028
  path: string;
9810
10029
  cwd: string;
9811
10030
  requestId: string;
10031
+ }>, z.ZodObject<{
10032
+ type: z.ZodLiteral<"file.upload.request">;
10033
+ fileName: z.ZodString;
10034
+ mimeType: z.ZodString;
10035
+ size: z.ZodNumber;
10036
+ modifiedAt: z.ZodString;
10037
+ requestId: z.ZodString;
10038
+ }, "strip", z.ZodTypeAny, {
10039
+ type: "file.upload.request";
10040
+ mimeType: string;
10041
+ fileName: string;
10042
+ size: number;
10043
+ requestId: string;
10044
+ modifiedAt: string;
10045
+ }, {
10046
+ type: "file.upload.request";
10047
+ mimeType: string;
10048
+ fileName: string;
10049
+ size: number;
10050
+ requestId: string;
10051
+ modifiedAt: string;
9812
10052
  }>, z.ZodObject<{
9813
10053
  type: z.ZodLiteral<"clear_agent_attention">;
9814
10054
  agentId: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
@@ -30689,11 +30929,11 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
30689
30929
  mtimeMs: z.ZodNumber;
30690
30930
  size: z.ZodNumber;
30691
30931
  }, "strip", z.ZodTypeAny, {
30692
- mtimeMs: number;
30693
30932
  size: number;
30694
- }, {
30695
30933
  mtimeMs: number;
30934
+ }, {
30696
30935
  size: number;
30936
+ mtimeMs: number;
30697
30937
  }>>;
30698
30938
  }, "strip", z.ZodTypeAny, {
30699
30939
  requestId: string;
@@ -30816,8 +31056,8 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
30816
31056
  repoRoot: string;
30817
31057
  ok: true;
30818
31058
  revision: {
30819
- mtimeMs: number;
30820
31059
  size: number;
31060
+ mtimeMs: number;
30821
31061
  } | null;
30822
31062
  }, {
30823
31063
  requestId: string;
@@ -30940,8 +31180,8 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
30940
31180
  repoRoot: string;
30941
31181
  ok: true;
30942
31182
  revision: {
30943
- mtimeMs: number;
30944
31183
  size: number;
31184
+ mtimeMs: number;
30945
31185
  } | null;
30946
31186
  }>, z.ZodObject<{
30947
31187
  requestId: z.ZodString;
@@ -30965,23 +31205,23 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
30965
31205
  mtimeMs: z.ZodNumber;
30966
31206
  size: z.ZodNumber;
30967
31207
  }, "strip", z.ZodTypeAny, {
30968
- mtimeMs: number;
30969
31208
  size: number;
30970
- }, {
30971
31209
  mtimeMs: number;
31210
+ }, {
30972
31211
  size: number;
31212
+ mtimeMs: number;
30973
31213
  }>>;
30974
31214
  }, "strip", z.ZodTypeAny, {
30975
31215
  code: "stale_project_config";
30976
31216
  currentRevision: {
30977
- mtimeMs: number;
30978
31217
  size: number;
31218
+ mtimeMs: number;
30979
31219
  } | null;
30980
31220
  }, {
30981
31221
  code: "stale_project_config";
30982
31222
  currentRevision: {
30983
- mtimeMs: number;
30984
31223
  size: number;
31224
+ mtimeMs: number;
30985
31225
  } | null;
30986
31226
  }>, z.ZodObject<{
30987
31227
  code: z.ZodLiteral<"write_failed">;
@@ -30998,8 +31238,8 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
30998
31238
  } | {
30999
31239
  code: "stale_project_config";
31000
31240
  currentRevision: {
31001
- mtimeMs: number;
31002
31241
  size: number;
31242
+ mtimeMs: number;
31003
31243
  } | null;
31004
31244
  } | {
31005
31245
  code: "write_failed";
@@ -31015,8 +31255,8 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
31015
31255
  } | {
31016
31256
  code: "stale_project_config";
31017
31257
  currentRevision: {
31018
- mtimeMs: number;
31019
31258
  size: number;
31259
+ mtimeMs: number;
31020
31260
  } | null;
31021
31261
  } | {
31022
31262
  code: "write_failed";
@@ -31148,8 +31388,8 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
31148
31388
  repoRoot: string;
31149
31389
  ok: true;
31150
31390
  revision: {
31151
- mtimeMs: number;
31152
31391
  size: number;
31392
+ mtimeMs: number;
31153
31393
  } | null;
31154
31394
  } | {
31155
31395
  error: {
@@ -31159,8 +31399,8 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
31159
31399
  } | {
31160
31400
  code: "stale_project_config";
31161
31401
  currentRevision: {
31162
- mtimeMs: number;
31163
31402
  size: number;
31403
+ mtimeMs: number;
31164
31404
  } | null;
31165
31405
  } | {
31166
31406
  code: "write_failed";
@@ -31292,8 +31532,8 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
31292
31532
  repoRoot: string;
31293
31533
  ok: true;
31294
31534
  revision: {
31295
- mtimeMs: number;
31296
31535
  size: number;
31536
+ mtimeMs: number;
31297
31537
  } | null;
31298
31538
  } | {
31299
31539
  error: {
@@ -31303,8 +31543,8 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
31303
31543
  } | {
31304
31544
  code: "stale_project_config";
31305
31545
  currentRevision: {
31306
- mtimeMs: number;
31307
31546
  size: number;
31547
+ mtimeMs: number;
31308
31548
  } | null;
31309
31549
  } | {
31310
31550
  code: "write_failed";
@@ -31670,11 +31910,11 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31670
31910
  mtimeMs: z.ZodNumber;
31671
31911
  size: z.ZodNumber;
31672
31912
  }, "strip", z.ZodTypeAny, {
31673
- mtimeMs: number;
31674
31913
  size: number;
31675
- }, {
31676
31914
  mtimeMs: number;
31915
+ }, {
31677
31916
  size: number;
31917
+ mtimeMs: number;
31678
31918
  }>;
31679
31919
  }, "strip", z.ZodTypeAny, {
31680
31920
  requestId: string;
@@ -31725,8 +31965,8 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31725
31965
  repoRoot: string;
31726
31966
  ok: true;
31727
31967
  revision: {
31728
- mtimeMs: number;
31729
31968
  size: number;
31969
+ mtimeMs: number;
31730
31970
  };
31731
31971
  }, {
31732
31972
  requestId: string;
@@ -31748,8 +31988,8 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31748
31988
  repoRoot: string;
31749
31989
  ok: true;
31750
31990
  revision: {
31751
- mtimeMs: number;
31752
31991
  size: number;
31992
+ mtimeMs: number;
31753
31993
  };
31754
31994
  }>, z.ZodObject<{
31755
31995
  requestId: z.ZodString;
@@ -31773,23 +32013,23 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31773
32013
  mtimeMs: z.ZodNumber;
31774
32014
  size: z.ZodNumber;
31775
32015
  }, "strip", z.ZodTypeAny, {
31776
- mtimeMs: number;
31777
32016
  size: number;
31778
- }, {
31779
32017
  mtimeMs: number;
32018
+ }, {
31780
32019
  size: number;
32020
+ mtimeMs: number;
31781
32021
  }>>;
31782
32022
  }, "strip", z.ZodTypeAny, {
31783
32023
  code: "stale_project_config";
31784
32024
  currentRevision: {
31785
- mtimeMs: number;
31786
32025
  size: number;
32026
+ mtimeMs: number;
31787
32027
  } | null;
31788
32028
  }, {
31789
32029
  code: "stale_project_config";
31790
32030
  currentRevision: {
31791
- mtimeMs: number;
31792
32031
  size: number;
32032
+ mtimeMs: number;
31793
32033
  } | null;
31794
32034
  }>, z.ZodObject<{
31795
32035
  code: z.ZodLiteral<"write_failed">;
@@ -31806,8 +32046,8 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31806
32046
  } | {
31807
32047
  code: "stale_project_config";
31808
32048
  currentRevision: {
31809
- mtimeMs: number;
31810
32049
  size: number;
32050
+ mtimeMs: number;
31811
32051
  } | null;
31812
32052
  } | {
31813
32053
  code: "write_failed";
@@ -31823,8 +32063,8 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31823
32063
  } | {
31824
32064
  code: "stale_project_config";
31825
32065
  currentRevision: {
31826
- mtimeMs: number;
31827
32066
  size: number;
32067
+ mtimeMs: number;
31828
32068
  } | null;
31829
32069
  } | {
31830
32070
  code: "write_failed";
@@ -31884,8 +32124,8 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31884
32124
  repoRoot: string;
31885
32125
  ok: true;
31886
32126
  revision: {
31887
- mtimeMs: number;
31888
32127
  size: number;
32128
+ mtimeMs: number;
31889
32129
  };
31890
32130
  } | {
31891
32131
  error: {
@@ -31895,8 +32135,8 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31895
32135
  } | {
31896
32136
  code: "stale_project_config";
31897
32137
  currentRevision: {
31898
- mtimeMs: number;
31899
32138
  size: number;
32139
+ mtimeMs: number;
31900
32140
  } | null;
31901
32141
  } | {
31902
32142
  code: "write_failed";
@@ -31927,8 +32167,8 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31927
32167
  repoRoot: string;
31928
32168
  ok: true;
31929
32169
  revision: {
31930
- mtimeMs: number;
31931
32170
  size: number;
32171
+ mtimeMs: number;
31932
32172
  };
31933
32173
  } | {
31934
32174
  error: {
@@ -31938,8 +32178,8 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31938
32178
  } | {
31939
32179
  code: "stale_project_config";
31940
32180
  currentRevision: {
31941
- mtimeMs: number;
31942
32181
  size: number;
32182
+ mtimeMs: number;
31943
32183
  } | null;
31944
32184
  } | {
31945
32185
  code: "write_failed";
@@ -37580,19 +37820,19 @@ export declare const FileDownloadTokenResponseSchema: z.ZodObject<{
37580
37820
  path: string;
37581
37821
  mimeType: string | null;
37582
37822
  cwd: string;
37583
- requestId: string;
37823
+ fileName: string | null;
37584
37824
  size: number | null;
37825
+ requestId: string;
37585
37826
  token: string | null;
37586
- fileName: string | null;
37587
37827
  }, {
37588
37828
  error: string | null;
37589
37829
  path: string;
37590
37830
  mimeType: string | null;
37591
37831
  cwd: string;
37592
- requestId: string;
37832
+ fileName: string | null;
37593
37833
  size: number | null;
37834
+ requestId: string;
37594
37835
  token: string | null;
37595
- fileName: string | null;
37596
37836
  }>;
37597
37837
  }, "strip", z.ZodTypeAny, {
37598
37838
  type: "file_download_token_response";
@@ -37601,10 +37841,10 @@ export declare const FileDownloadTokenResponseSchema: z.ZodObject<{
37601
37841
  path: string;
37602
37842
  mimeType: string | null;
37603
37843
  cwd: string;
37604
- requestId: string;
37844
+ fileName: string | null;
37605
37845
  size: number | null;
37846
+ requestId: string;
37606
37847
  token: string | null;
37607
- fileName: string | null;
37608
37848
  };
37609
37849
  }, {
37610
37850
  type: "file_download_token_response";
@@ -37613,10 +37853,89 @@ export declare const FileDownloadTokenResponseSchema: z.ZodObject<{
37613
37853
  path: string;
37614
37854
  mimeType: string | null;
37615
37855
  cwd: string;
37616
- requestId: string;
37856
+ fileName: string | null;
37617
37857
  size: number | null;
37858
+ requestId: string;
37618
37859
  token: string | null;
37619
- fileName: string | null;
37860
+ };
37861
+ }>;
37862
+ export declare const FileUploadResponseSchema: z.ZodObject<{
37863
+ type: z.ZodLiteral<"file.upload.response">;
37864
+ payload: z.ZodObject<{
37865
+ requestId: z.ZodString;
37866
+ file: z.ZodNullable<z.ZodObject<{
37867
+ type: z.ZodLiteral<"uploaded_file">;
37868
+ id: z.ZodString;
37869
+ fileName: z.ZodString;
37870
+ mimeType: z.ZodString;
37871
+ size: z.ZodNumber;
37872
+ path: z.ZodString;
37873
+ }, "strip", z.ZodTypeAny, {
37874
+ type: "uploaded_file";
37875
+ path: string;
37876
+ mimeType: string;
37877
+ id: string;
37878
+ fileName: string;
37879
+ size: number;
37880
+ }, {
37881
+ type: "uploaded_file";
37882
+ path: string;
37883
+ mimeType: string;
37884
+ id: string;
37885
+ fileName: string;
37886
+ size: number;
37887
+ }>>;
37888
+ error: z.ZodNullable<z.ZodString>;
37889
+ }, "strip", z.ZodTypeAny, {
37890
+ error: string | null;
37891
+ requestId: string;
37892
+ file: {
37893
+ type: "uploaded_file";
37894
+ path: string;
37895
+ mimeType: string;
37896
+ id: string;
37897
+ fileName: string;
37898
+ size: number;
37899
+ } | null;
37900
+ }, {
37901
+ error: string | null;
37902
+ requestId: string;
37903
+ file: {
37904
+ type: "uploaded_file";
37905
+ path: string;
37906
+ mimeType: string;
37907
+ id: string;
37908
+ fileName: string;
37909
+ size: number;
37910
+ } | null;
37911
+ }>;
37912
+ }, "strip", z.ZodTypeAny, {
37913
+ type: "file.upload.response";
37914
+ payload: {
37915
+ error: string | null;
37916
+ requestId: string;
37917
+ file: {
37918
+ type: "uploaded_file";
37919
+ path: string;
37920
+ mimeType: string;
37921
+ id: string;
37922
+ fileName: string;
37923
+ size: number;
37924
+ } | null;
37925
+ };
37926
+ }, {
37927
+ type: "file.upload.response";
37928
+ payload: {
37929
+ error: string | null;
37930
+ requestId: string;
37931
+ file: {
37932
+ type: "uploaded_file";
37933
+ path: string;
37934
+ mimeType: string;
37935
+ id: string;
37936
+ fileName: string;
37937
+ size: number;
37938
+ } | null;
37620
37939
  };
37621
37940
  }>;
37622
37941
  export declare const ListProviderModelsResponseMessageSchema: z.ZodObject<{
@@ -52549,11 +52868,11 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52549
52868
  mtimeMs: z.ZodNumber;
52550
52869
  size: z.ZodNumber;
52551
52870
  }, "strip", z.ZodTypeAny, {
52552
- mtimeMs: number;
52553
52871
  size: number;
52554
- }, {
52555
52872
  mtimeMs: number;
52873
+ }, {
52556
52874
  size: number;
52875
+ mtimeMs: number;
52557
52876
  }>>;
52558
52877
  }, "strip", z.ZodTypeAny, {
52559
52878
  requestId: string;
@@ -52676,8 +52995,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52676
52995
  repoRoot: string;
52677
52996
  ok: true;
52678
52997
  revision: {
52679
- mtimeMs: number;
52680
52998
  size: number;
52999
+ mtimeMs: number;
52681
53000
  } | null;
52682
53001
  }, {
52683
53002
  requestId: string;
@@ -52800,8 +53119,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52800
53119
  repoRoot: string;
52801
53120
  ok: true;
52802
53121
  revision: {
52803
- mtimeMs: number;
52804
53122
  size: number;
53123
+ mtimeMs: number;
52805
53124
  } | null;
52806
53125
  }>, z.ZodObject<{
52807
53126
  requestId: z.ZodString;
@@ -52825,23 +53144,23 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52825
53144
  mtimeMs: z.ZodNumber;
52826
53145
  size: z.ZodNumber;
52827
53146
  }, "strip", z.ZodTypeAny, {
52828
- mtimeMs: number;
52829
53147
  size: number;
52830
- }, {
52831
53148
  mtimeMs: number;
53149
+ }, {
52832
53150
  size: number;
53151
+ mtimeMs: number;
52833
53152
  }>>;
52834
53153
  }, "strip", z.ZodTypeAny, {
52835
53154
  code: "stale_project_config";
52836
53155
  currentRevision: {
52837
- mtimeMs: number;
52838
53156
  size: number;
53157
+ mtimeMs: number;
52839
53158
  } | null;
52840
53159
  }, {
52841
53160
  code: "stale_project_config";
52842
53161
  currentRevision: {
52843
- mtimeMs: number;
52844
53162
  size: number;
53163
+ mtimeMs: number;
52845
53164
  } | null;
52846
53165
  }>, z.ZodObject<{
52847
53166
  code: z.ZodLiteral<"write_failed">;
@@ -52858,8 +53177,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52858
53177
  } | {
52859
53178
  code: "stale_project_config";
52860
53179
  currentRevision: {
52861
- mtimeMs: number;
52862
53180
  size: number;
53181
+ mtimeMs: number;
52863
53182
  } | null;
52864
53183
  } | {
52865
53184
  code: "write_failed";
@@ -52875,8 +53194,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52875
53194
  } | {
52876
53195
  code: "stale_project_config";
52877
53196
  currentRevision: {
52878
- mtimeMs: number;
52879
53197
  size: number;
53198
+ mtimeMs: number;
52880
53199
  } | null;
52881
53200
  } | {
52882
53201
  code: "write_failed";
@@ -53008,8 +53327,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53008
53327
  repoRoot: string;
53009
53328
  ok: true;
53010
53329
  revision: {
53011
- mtimeMs: number;
53012
53330
  size: number;
53331
+ mtimeMs: number;
53013
53332
  } | null;
53014
53333
  } | {
53015
53334
  error: {
@@ -53019,8 +53338,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53019
53338
  } | {
53020
53339
  code: "stale_project_config";
53021
53340
  currentRevision: {
53022
- mtimeMs: number;
53023
53341
  size: number;
53342
+ mtimeMs: number;
53024
53343
  } | null;
53025
53344
  } | {
53026
53345
  code: "write_failed";
@@ -53152,8 +53471,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53152
53471
  repoRoot: string;
53153
53472
  ok: true;
53154
53473
  revision: {
53155
- mtimeMs: number;
53156
53474
  size: number;
53475
+ mtimeMs: number;
53157
53476
  } | null;
53158
53477
  } | {
53159
53478
  error: {
@@ -53163,8 +53482,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53163
53482
  } | {
53164
53483
  code: "stale_project_config";
53165
53484
  currentRevision: {
53166
- mtimeMs: number;
53167
53485
  size: number;
53486
+ mtimeMs: number;
53168
53487
  } | null;
53169
53488
  } | {
53170
53489
  code: "write_failed";
@@ -53529,11 +53848,11 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53529
53848
  mtimeMs: z.ZodNumber;
53530
53849
  size: z.ZodNumber;
53531
53850
  }, "strip", z.ZodTypeAny, {
53532
- mtimeMs: number;
53533
53851
  size: number;
53534
- }, {
53535
53852
  mtimeMs: number;
53853
+ }, {
53536
53854
  size: number;
53855
+ mtimeMs: number;
53537
53856
  }>;
53538
53857
  }, "strip", z.ZodTypeAny, {
53539
53858
  requestId: string;
@@ -53584,8 +53903,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53584
53903
  repoRoot: string;
53585
53904
  ok: true;
53586
53905
  revision: {
53587
- mtimeMs: number;
53588
53906
  size: number;
53907
+ mtimeMs: number;
53589
53908
  };
53590
53909
  }, {
53591
53910
  requestId: string;
@@ -53607,8 +53926,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53607
53926
  repoRoot: string;
53608
53927
  ok: true;
53609
53928
  revision: {
53610
- mtimeMs: number;
53611
53929
  size: number;
53930
+ mtimeMs: number;
53612
53931
  };
53613
53932
  }>, z.ZodObject<{
53614
53933
  requestId: z.ZodString;
@@ -53632,23 +53951,23 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53632
53951
  mtimeMs: z.ZodNumber;
53633
53952
  size: z.ZodNumber;
53634
53953
  }, "strip", z.ZodTypeAny, {
53635
- mtimeMs: number;
53636
53954
  size: number;
53637
- }, {
53638
53955
  mtimeMs: number;
53956
+ }, {
53639
53957
  size: number;
53958
+ mtimeMs: number;
53640
53959
  }>>;
53641
53960
  }, "strip", z.ZodTypeAny, {
53642
53961
  code: "stale_project_config";
53643
53962
  currentRevision: {
53644
- mtimeMs: number;
53645
53963
  size: number;
53964
+ mtimeMs: number;
53646
53965
  } | null;
53647
53966
  }, {
53648
53967
  code: "stale_project_config";
53649
53968
  currentRevision: {
53650
- mtimeMs: number;
53651
53969
  size: number;
53970
+ mtimeMs: number;
53652
53971
  } | null;
53653
53972
  }>, z.ZodObject<{
53654
53973
  code: z.ZodLiteral<"write_failed">;
@@ -53665,8 +53984,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53665
53984
  } | {
53666
53985
  code: "stale_project_config";
53667
53986
  currentRevision: {
53668
- mtimeMs: number;
53669
53987
  size: number;
53988
+ mtimeMs: number;
53670
53989
  } | null;
53671
53990
  } | {
53672
53991
  code: "write_failed";
@@ -53682,8 +54001,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53682
54001
  } | {
53683
54002
  code: "stale_project_config";
53684
54003
  currentRevision: {
53685
- mtimeMs: number;
53686
54004
  size: number;
54005
+ mtimeMs: number;
53687
54006
  } | null;
53688
54007
  } | {
53689
54008
  code: "write_failed";
@@ -53743,8 +54062,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53743
54062
  repoRoot: string;
53744
54063
  ok: true;
53745
54064
  revision: {
53746
- mtimeMs: number;
53747
54065
  size: number;
54066
+ mtimeMs: number;
53748
54067
  };
53749
54068
  } | {
53750
54069
  error: {
@@ -53754,8 +54073,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53754
54073
  } | {
53755
54074
  code: "stale_project_config";
53756
54075
  currentRevision: {
53757
- mtimeMs: number;
53758
54076
  size: number;
54077
+ mtimeMs: number;
53759
54078
  } | null;
53760
54079
  } | {
53761
54080
  code: "write_failed";
@@ -53786,8 +54105,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53786
54105
  repoRoot: string;
53787
54106
  ok: true;
53788
54107
  revision: {
53789
- mtimeMs: number;
53790
54108
  size: number;
54109
+ mtimeMs: number;
53791
54110
  };
53792
54111
  } | {
53793
54112
  error: {
@@ -53797,8 +54116,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53797
54116
  } | {
53798
54117
  code: "stale_project_config";
53799
54118
  currentRevision: {
53800
- mtimeMs: number;
53801
54119
  size: number;
54120
+ mtimeMs: number;
53802
54121
  } | null;
53803
54122
  } | {
53804
54123
  code: "write_failed";
@@ -59808,19 +60127,19 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
59808
60127
  path: string;
59809
60128
  mimeType: string | null;
59810
60129
  cwd: string;
59811
- requestId: string;
60130
+ fileName: string | null;
59812
60131
  size: number | null;
60132
+ requestId: string;
59813
60133
  token: string | null;
59814
- fileName: string | null;
59815
60134
  }, {
59816
60135
  error: string | null;
59817
60136
  path: string;
59818
60137
  mimeType: string | null;
59819
60138
  cwd: string;
59820
- requestId: string;
60139
+ fileName: string | null;
59821
60140
  size: number | null;
60141
+ requestId: string;
59822
60142
  token: string | null;
59823
- fileName: string | null;
59824
60143
  }>;
59825
60144
  }, "strip", z.ZodTypeAny, {
59826
60145
  type: "file_download_token_response";
@@ -59829,10 +60148,10 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
59829
60148
  path: string;
59830
60149
  mimeType: string | null;
59831
60150
  cwd: string;
59832
- requestId: string;
60151
+ fileName: string | null;
59833
60152
  size: number | null;
60153
+ requestId: string;
59834
60154
  token: string | null;
59835
- fileName: string | null;
59836
60155
  };
59837
60156
  }, {
59838
60157
  type: "file_download_token_response";
@@ -59841,10 +60160,88 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
59841
60160
  path: string;
59842
60161
  mimeType: string | null;
59843
60162
  cwd: string;
59844
- requestId: string;
60163
+ fileName: string | null;
59845
60164
  size: number | null;
60165
+ requestId: string;
59846
60166
  token: string | null;
59847
- fileName: string | null;
60167
+ };
60168
+ }>, z.ZodObject<{
60169
+ type: z.ZodLiteral<"file.upload.response">;
60170
+ payload: z.ZodObject<{
60171
+ requestId: z.ZodString;
60172
+ file: z.ZodNullable<z.ZodObject<{
60173
+ type: z.ZodLiteral<"uploaded_file">;
60174
+ id: z.ZodString;
60175
+ fileName: z.ZodString;
60176
+ mimeType: z.ZodString;
60177
+ size: z.ZodNumber;
60178
+ path: z.ZodString;
60179
+ }, "strip", z.ZodTypeAny, {
60180
+ type: "uploaded_file";
60181
+ path: string;
60182
+ mimeType: string;
60183
+ id: string;
60184
+ fileName: string;
60185
+ size: number;
60186
+ }, {
60187
+ type: "uploaded_file";
60188
+ path: string;
60189
+ mimeType: string;
60190
+ id: string;
60191
+ fileName: string;
60192
+ size: number;
60193
+ }>>;
60194
+ error: z.ZodNullable<z.ZodString>;
60195
+ }, "strip", z.ZodTypeAny, {
60196
+ error: string | null;
60197
+ requestId: string;
60198
+ file: {
60199
+ type: "uploaded_file";
60200
+ path: string;
60201
+ mimeType: string;
60202
+ id: string;
60203
+ fileName: string;
60204
+ size: number;
60205
+ } | null;
60206
+ }, {
60207
+ error: string | null;
60208
+ requestId: string;
60209
+ file: {
60210
+ type: "uploaded_file";
60211
+ path: string;
60212
+ mimeType: string;
60213
+ id: string;
60214
+ fileName: string;
60215
+ size: number;
60216
+ } | null;
60217
+ }>;
60218
+ }, "strip", z.ZodTypeAny, {
60219
+ type: "file.upload.response";
60220
+ payload: {
60221
+ error: string | null;
60222
+ requestId: string;
60223
+ file: {
60224
+ type: "uploaded_file";
60225
+ path: string;
60226
+ mimeType: string;
60227
+ id: string;
60228
+ fileName: string;
60229
+ size: number;
60230
+ } | null;
60231
+ };
60232
+ }, {
60233
+ type: "file.upload.response";
60234
+ payload: {
60235
+ error: string | null;
60236
+ requestId: string;
60237
+ file: {
60238
+ type: "uploaded_file";
60239
+ path: string;
60240
+ mimeType: string;
60241
+ id: string;
60242
+ fileName: string;
60243
+ size: number;
60244
+ } | null;
59848
60245
  };
59849
60246
  }>, z.ZodObject<{
59850
60247
  type: z.ZodLiteral<"list_provider_models_response">;
@@ -67703,6 +68100,8 @@ export type ProjectIconResponse = z.infer<typeof ProjectIconResponseSchema>;
67703
68100
  export type ProjectIcon = z.infer<typeof ProjectIconSchema>;
67704
68101
  export type FileDownloadTokenRequest = z.infer<typeof FileDownloadTokenRequestSchema>;
67705
68102
  export type FileDownloadTokenResponse = z.infer<typeof FileDownloadTokenResponseSchema>;
68103
+ export type FileUploadRequest = z.infer<typeof FileUploadRequestSchema>;
68104
+ export type FileUploadResponse = z.infer<typeof FileUploadResponseSchema>;
67706
68105
  export type RestartServerRequestMessage = z.infer<typeof RestartServerRequestMessageSchema>;
67707
68106
  export type ShutdownServerRequestMessage = z.infer<typeof ShutdownServerRequestMessageSchema>;
67708
68107
  export type ClearAgentAttentionMessage = z.infer<typeof ClearAgentAttentionMessageSchema>;
@@ -68294,6 +68693,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
68294
68693
  };
68295
68694
  }[];
68296
68695
  baseRef?: string | null | undefined;
68696
+ } | {
68697
+ type: "uploaded_file";
68698
+ path: string;
68699
+ mimeType: string;
68700
+ id: string;
68701
+ fileName: string;
68702
+ size: number;
68297
68703
  })[], unknown>>;
68298
68704
  }, "strip", z.ZodTypeAny, {
68299
68705
  agentId: string;
@@ -68353,6 +68759,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
68353
68759
  };
68354
68760
  }[];
68355
68761
  baseRef?: string | null | undefined;
68762
+ } | {
68763
+ type: "uploaded_file";
68764
+ path: string;
68765
+ mimeType: string;
68766
+ id: string;
68767
+ fileName: string;
68768
+ size: number;
68356
68769
  })[] | undefined;
68357
68770
  }, {
68358
68771
  agentId: string;
@@ -69194,11 +69607,11 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69194
69607
  mtimeMs: z.ZodNumber;
69195
69608
  size: z.ZodNumber;
69196
69609
  }, "strip", z.ZodTypeAny, {
69197
- mtimeMs: number;
69198
69610
  size: number;
69199
- }, {
69200
69611
  mtimeMs: number;
69612
+ }, {
69201
69613
  size: number;
69614
+ mtimeMs: number;
69202
69615
  }>>;
69203
69616
  }, "strip", z.ZodTypeAny, {
69204
69617
  type: "write_project_config_request";
@@ -69249,8 +69662,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69249
69662
  };
69250
69663
  repoRoot: string;
69251
69664
  expectedRevision: {
69252
- mtimeMs: number;
69253
69665
  size: number;
69666
+ mtimeMs: number;
69254
69667
  } | null;
69255
69668
  }, {
69256
69669
  type: "write_project_config_request";
@@ -69272,8 +69685,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69272
69685
  };
69273
69686
  repoRoot: string;
69274
69687
  expectedRevision: {
69275
- mtimeMs: number;
69276
69688
  size: number;
69689
+ mtimeMs: number;
69277
69690
  } | null;
69278
69691
  }>, z.ZodObject<{
69279
69692
  type: z.ZodLiteral<"dictation_stream_start">;
@@ -69533,6 +69946,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69533
69946
  };
69534
69947
  }[];
69535
69948
  baseRef?: string | null | undefined;
69949
+ } | {
69950
+ type: "uploaded_file";
69951
+ path: string;
69952
+ mimeType: string;
69953
+ id: string;
69954
+ fileName: string;
69955
+ size: number;
69536
69956
  })[], unknown>>;
69537
69957
  git: z.ZodOptional<z.ZodObject<{
69538
69958
  baseBranch: z.ZodOptional<z.ZodString>;
@@ -69699,6 +70119,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69699
70119
  };
69700
70120
  }[];
69701
70121
  baseRef?: string | null | undefined;
70122
+ } | {
70123
+ type: "uploaded_file";
70124
+ path: string;
70125
+ mimeType: string;
70126
+ id: string;
70127
+ fileName: string;
70128
+ size: number;
69702
70129
  })[] | undefined;
69703
70130
  workspaceId?: string | undefined;
69704
70131
  worktreeName?: string | undefined;
@@ -70828,6 +71255,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
70828
71255
  };
70829
71256
  }[];
70830
71257
  baseRef?: string | null | undefined;
71258
+ } | {
71259
+ type: "uploaded_file";
71260
+ path: string;
71261
+ mimeType: string;
71262
+ id: string;
71263
+ fileName: string;
71264
+ size: number;
70831
71265
  })[], unknown>>>;
70832
71266
  firstAgentContext: z.ZodOptional<z.ZodObject<{
70833
71267
  prompt: z.ZodOptional<z.ZodString>;
@@ -70879,6 +71313,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
70879
71313
  };
70880
71314
  }[];
70881
71315
  baseRef?: string | null | undefined;
71316
+ } | {
71317
+ type: "uploaded_file";
71318
+ path: string;
71319
+ mimeType: string;
71320
+ id: string;
71321
+ fileName: string;
71322
+ size: number;
70882
71323
  })[], unknown>>;
70883
71324
  }, "strip", z.ZodTypeAny, {
70884
71325
  prompt?: string | undefined;
@@ -70930,6 +71371,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
70930
71371
  };
70931
71372
  }[];
70932
71373
  baseRef?: string | null | undefined;
71374
+ } | {
71375
+ type: "uploaded_file";
71376
+ path: string;
71377
+ mimeType: string;
71378
+ id: string;
71379
+ fileName: string;
71380
+ size: number;
70933
71381
  })[] | undefined;
70934
71382
  }, {
70935
71383
  prompt?: string | undefined;
@@ -70992,6 +71440,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
70992
71440
  };
70993
71441
  }[];
70994
71442
  baseRef?: string | null | undefined;
71443
+ } | {
71444
+ type: "uploaded_file";
71445
+ path: string;
71446
+ mimeType: string;
71447
+ id: string;
71448
+ fileName: string;
71449
+ size: number;
70995
71450
  })[] | undefined;
70996
71451
  worktreeSlug?: string | undefined;
70997
71452
  refName?: string | undefined;
@@ -71048,6 +71503,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
71048
71503
  };
71049
71504
  }[];
71050
71505
  baseRef?: string | null | undefined;
71506
+ } | {
71507
+ type: "uploaded_file";
71508
+ path: string;
71509
+ mimeType: string;
71510
+ id: string;
71511
+ fileName: string;
71512
+ size: number;
71051
71513
  })[] | undefined;
71052
71514
  } | undefined;
71053
71515
  }, {
@@ -71191,6 +71653,27 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
71191
71653
  path: string;
71192
71654
  cwd: string;
71193
71655
  requestId: string;
71656
+ }>, z.ZodObject<{
71657
+ type: z.ZodLiteral<"file.upload.request">;
71658
+ fileName: z.ZodString;
71659
+ mimeType: z.ZodString;
71660
+ size: z.ZodNumber;
71661
+ modifiedAt: z.ZodString;
71662
+ requestId: z.ZodString;
71663
+ }, "strip", z.ZodTypeAny, {
71664
+ type: "file.upload.request";
71665
+ mimeType: string;
71666
+ fileName: string;
71667
+ size: number;
71668
+ requestId: string;
71669
+ modifiedAt: string;
71670
+ }, {
71671
+ type: "file.upload.request";
71672
+ mimeType: string;
71673
+ fileName: string;
71674
+ size: number;
71675
+ requestId: string;
71676
+ modifiedAt: string;
71194
71677
  }>, z.ZodObject<{
71195
71678
  type: z.ZodLiteral<"clear_agent_attention">;
71196
71679
  agentId: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
@@ -72520,6 +73003,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
72520
73003
  };
72521
73004
  }[];
72522
73005
  baseRef?: string | null | undefined;
73006
+ } | {
73007
+ type: "uploaded_file";
73008
+ path: string;
73009
+ mimeType: string;
73010
+ id: string;
73011
+ fileName: string;
73012
+ size: number;
72523
73013
  })[] | undefined;
72524
73014
  } | {
72525
73015
  agentId: string;
@@ -72634,8 +73124,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
72634
73124
  };
72635
73125
  repoRoot: string;
72636
73126
  expectedRevision: {
72637
- mtimeMs: number;
72638
73127
  size: number;
73128
+ mtimeMs: number;
72639
73129
  } | null;
72640
73130
  } | {
72641
73131
  type: "dictation_stream_start";
@@ -72757,6 +73247,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
72757
73247
  };
72758
73248
  }[];
72759
73249
  baseRef?: string | null | undefined;
73250
+ } | {
73251
+ type: "uploaded_file";
73252
+ path: string;
73253
+ mimeType: string;
73254
+ id: string;
73255
+ fileName: string;
73256
+ size: number;
72760
73257
  })[] | undefined;
72761
73258
  workspaceId?: string | undefined;
72762
73259
  worktreeName?: string | undefined;
@@ -73099,6 +73596,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
73099
73596
  };
73100
73597
  }[];
73101
73598
  baseRef?: string | null | undefined;
73599
+ } | {
73600
+ type: "uploaded_file";
73601
+ path: string;
73602
+ mimeType: string;
73603
+ id: string;
73604
+ fileName: string;
73605
+ size: number;
73102
73606
  })[] | undefined;
73103
73607
  worktreeSlug?: string | undefined;
73104
73608
  refName?: string | undefined;
@@ -73155,6 +73659,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
73155
73659
  };
73156
73660
  }[];
73157
73661
  baseRef?: string | null | undefined;
73662
+ } | {
73663
+ type: "uploaded_file";
73664
+ path: string;
73665
+ mimeType: string;
73666
+ id: string;
73667
+ fileName: string;
73668
+ size: number;
73158
73669
  })[] | undefined;
73159
73670
  } | undefined;
73160
73671
  } | {
@@ -73199,6 +73710,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
73199
73710
  path: string;
73200
73711
  cwd: string;
73201
73712
  requestId: string;
73713
+ } | {
73714
+ type: "file.upload.request";
73715
+ mimeType: string;
73716
+ fileName: string;
73717
+ size: number;
73718
+ requestId: string;
73719
+ modifiedAt: string;
73202
73720
  } | {
73203
73721
  agentId: string | string[];
73204
73722
  type: "clear_agent_attention";
@@ -73685,8 +74203,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
73685
74203
  };
73686
74204
  repoRoot: string;
73687
74205
  expectedRevision: {
73688
- mtimeMs: number;
73689
74206
  size: number;
74207
+ mtimeMs: number;
73690
74208
  } | null;
73691
74209
  } | {
73692
74210
  type: "dictation_stream_start";
@@ -74106,6 +74624,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
74106
74624
  path: string;
74107
74625
  cwd: string;
74108
74626
  requestId: string;
74627
+ } | {
74628
+ type: "file.upload.request";
74629
+ mimeType: string;
74630
+ fileName: string;
74631
+ size: number;
74632
+ requestId: string;
74633
+ modifiedAt: string;
74109
74634
  } | {
74110
74635
  agentId: string | string[];
74111
74636
  type: "clear_agent_attention";
@@ -87881,11 +88406,11 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
87881
88406
  mtimeMs: z.ZodNumber;
87882
88407
  size: z.ZodNumber;
87883
88408
  }, "strip", z.ZodTypeAny, {
87884
- mtimeMs: number;
87885
88409
  size: number;
87886
- }, {
87887
88410
  mtimeMs: number;
88411
+ }, {
87888
88412
  size: number;
88413
+ mtimeMs: number;
87889
88414
  }>>;
87890
88415
  }, "strip", z.ZodTypeAny, {
87891
88416
  requestId: string;
@@ -88008,8 +88533,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88008
88533
  repoRoot: string;
88009
88534
  ok: true;
88010
88535
  revision: {
88011
- mtimeMs: number;
88012
88536
  size: number;
88537
+ mtimeMs: number;
88013
88538
  } | null;
88014
88539
  }, {
88015
88540
  requestId: string;
@@ -88132,8 +88657,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88132
88657
  repoRoot: string;
88133
88658
  ok: true;
88134
88659
  revision: {
88135
- mtimeMs: number;
88136
88660
  size: number;
88661
+ mtimeMs: number;
88137
88662
  } | null;
88138
88663
  }>, z.ZodObject<{
88139
88664
  requestId: z.ZodString;
@@ -88157,23 +88682,23 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88157
88682
  mtimeMs: z.ZodNumber;
88158
88683
  size: z.ZodNumber;
88159
88684
  }, "strip", z.ZodTypeAny, {
88160
- mtimeMs: number;
88161
88685
  size: number;
88162
- }, {
88163
88686
  mtimeMs: number;
88687
+ }, {
88164
88688
  size: number;
88689
+ mtimeMs: number;
88165
88690
  }>>;
88166
88691
  }, "strip", z.ZodTypeAny, {
88167
88692
  code: "stale_project_config";
88168
88693
  currentRevision: {
88169
- mtimeMs: number;
88170
88694
  size: number;
88695
+ mtimeMs: number;
88171
88696
  } | null;
88172
88697
  }, {
88173
88698
  code: "stale_project_config";
88174
88699
  currentRevision: {
88175
- mtimeMs: number;
88176
88700
  size: number;
88701
+ mtimeMs: number;
88177
88702
  } | null;
88178
88703
  }>, z.ZodObject<{
88179
88704
  code: z.ZodLiteral<"write_failed">;
@@ -88190,8 +88715,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88190
88715
  } | {
88191
88716
  code: "stale_project_config";
88192
88717
  currentRevision: {
88193
- mtimeMs: number;
88194
88718
  size: number;
88719
+ mtimeMs: number;
88195
88720
  } | null;
88196
88721
  } | {
88197
88722
  code: "write_failed";
@@ -88207,8 +88732,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88207
88732
  } | {
88208
88733
  code: "stale_project_config";
88209
88734
  currentRevision: {
88210
- mtimeMs: number;
88211
88735
  size: number;
88736
+ mtimeMs: number;
88212
88737
  } | null;
88213
88738
  } | {
88214
88739
  code: "write_failed";
@@ -88340,8 +88865,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88340
88865
  repoRoot: string;
88341
88866
  ok: true;
88342
88867
  revision: {
88343
- mtimeMs: number;
88344
88868
  size: number;
88869
+ mtimeMs: number;
88345
88870
  } | null;
88346
88871
  } | {
88347
88872
  error: {
@@ -88351,8 +88876,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88351
88876
  } | {
88352
88877
  code: "stale_project_config";
88353
88878
  currentRevision: {
88354
- mtimeMs: number;
88355
88879
  size: number;
88880
+ mtimeMs: number;
88356
88881
  } | null;
88357
88882
  } | {
88358
88883
  code: "write_failed";
@@ -88484,8 +89009,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88484
89009
  repoRoot: string;
88485
89010
  ok: true;
88486
89011
  revision: {
88487
- mtimeMs: number;
88488
89012
  size: number;
89013
+ mtimeMs: number;
88489
89014
  } | null;
88490
89015
  } | {
88491
89016
  error: {
@@ -88495,8 +89020,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88495
89020
  } | {
88496
89021
  code: "stale_project_config";
88497
89022
  currentRevision: {
88498
- mtimeMs: number;
88499
89023
  size: number;
89024
+ mtimeMs: number;
88500
89025
  } | null;
88501
89026
  } | {
88502
89027
  code: "write_failed";
@@ -88861,11 +89386,11 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88861
89386
  mtimeMs: z.ZodNumber;
88862
89387
  size: z.ZodNumber;
88863
89388
  }, "strip", z.ZodTypeAny, {
88864
- mtimeMs: number;
88865
89389
  size: number;
88866
- }, {
88867
89390
  mtimeMs: number;
89391
+ }, {
88868
89392
  size: number;
89393
+ mtimeMs: number;
88869
89394
  }>;
88870
89395
  }, "strip", z.ZodTypeAny, {
88871
89396
  requestId: string;
@@ -88916,8 +89441,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88916
89441
  repoRoot: string;
88917
89442
  ok: true;
88918
89443
  revision: {
88919
- mtimeMs: number;
88920
89444
  size: number;
89445
+ mtimeMs: number;
88921
89446
  };
88922
89447
  }, {
88923
89448
  requestId: string;
@@ -88939,8 +89464,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88939
89464
  repoRoot: string;
88940
89465
  ok: true;
88941
89466
  revision: {
88942
- mtimeMs: number;
88943
89467
  size: number;
89468
+ mtimeMs: number;
88944
89469
  };
88945
89470
  }>, z.ZodObject<{
88946
89471
  requestId: z.ZodString;
@@ -88964,23 +89489,23 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88964
89489
  mtimeMs: z.ZodNumber;
88965
89490
  size: z.ZodNumber;
88966
89491
  }, "strip", z.ZodTypeAny, {
88967
- mtimeMs: number;
88968
89492
  size: number;
88969
- }, {
88970
89493
  mtimeMs: number;
89494
+ }, {
88971
89495
  size: number;
89496
+ mtimeMs: number;
88972
89497
  }>>;
88973
89498
  }, "strip", z.ZodTypeAny, {
88974
89499
  code: "stale_project_config";
88975
89500
  currentRevision: {
88976
- mtimeMs: number;
88977
89501
  size: number;
89502
+ mtimeMs: number;
88978
89503
  } | null;
88979
89504
  }, {
88980
89505
  code: "stale_project_config";
88981
89506
  currentRevision: {
88982
- mtimeMs: number;
88983
89507
  size: number;
89508
+ mtimeMs: number;
88984
89509
  } | null;
88985
89510
  }>, z.ZodObject<{
88986
89511
  code: z.ZodLiteral<"write_failed">;
@@ -88997,8 +89522,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88997
89522
  } | {
88998
89523
  code: "stale_project_config";
88999
89524
  currentRevision: {
89000
- mtimeMs: number;
89001
89525
  size: number;
89526
+ mtimeMs: number;
89002
89527
  } | null;
89003
89528
  } | {
89004
89529
  code: "write_failed";
@@ -89014,8 +89539,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
89014
89539
  } | {
89015
89540
  code: "stale_project_config";
89016
89541
  currentRevision: {
89017
- mtimeMs: number;
89018
89542
  size: number;
89543
+ mtimeMs: number;
89019
89544
  } | null;
89020
89545
  } | {
89021
89546
  code: "write_failed";
@@ -89075,8 +89600,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
89075
89600
  repoRoot: string;
89076
89601
  ok: true;
89077
89602
  revision: {
89078
- mtimeMs: number;
89079
89603
  size: number;
89604
+ mtimeMs: number;
89080
89605
  };
89081
89606
  } | {
89082
89607
  error: {
@@ -89086,8 +89611,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
89086
89611
  } | {
89087
89612
  code: "stale_project_config";
89088
89613
  currentRevision: {
89089
- mtimeMs: number;
89090
89614
  size: number;
89615
+ mtimeMs: number;
89091
89616
  } | null;
89092
89617
  } | {
89093
89618
  code: "write_failed";
@@ -89118,8 +89643,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
89118
89643
  repoRoot: string;
89119
89644
  ok: true;
89120
89645
  revision: {
89121
- mtimeMs: number;
89122
89646
  size: number;
89647
+ mtimeMs: number;
89123
89648
  };
89124
89649
  } | {
89125
89650
  error: {
@@ -89129,8 +89654,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
89129
89654
  } | {
89130
89655
  code: "stale_project_config";
89131
89656
  currentRevision: {
89132
- mtimeMs: number;
89133
89657
  size: number;
89658
+ mtimeMs: number;
89134
89659
  } | null;
89135
89660
  } | {
89136
89661
  code: "write_failed";
@@ -95140,19 +95665,19 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
95140
95665
  path: string;
95141
95666
  mimeType: string | null;
95142
95667
  cwd: string;
95143
- requestId: string;
95668
+ fileName: string | null;
95144
95669
  size: number | null;
95670
+ requestId: string;
95145
95671
  token: string | null;
95146
- fileName: string | null;
95147
95672
  }, {
95148
95673
  error: string | null;
95149
95674
  path: string;
95150
95675
  mimeType: string | null;
95151
95676
  cwd: string;
95152
- requestId: string;
95677
+ fileName: string | null;
95153
95678
  size: number | null;
95679
+ requestId: string;
95154
95680
  token: string | null;
95155
- fileName: string | null;
95156
95681
  }>;
95157
95682
  }, "strip", z.ZodTypeAny, {
95158
95683
  type: "file_download_token_response";
@@ -95161,10 +95686,10 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
95161
95686
  path: string;
95162
95687
  mimeType: string | null;
95163
95688
  cwd: string;
95164
- requestId: string;
95689
+ fileName: string | null;
95165
95690
  size: number | null;
95691
+ requestId: string;
95166
95692
  token: string | null;
95167
- fileName: string | null;
95168
95693
  };
95169
95694
  }, {
95170
95695
  type: "file_download_token_response";
@@ -95173,10 +95698,88 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
95173
95698
  path: string;
95174
95699
  mimeType: string | null;
95175
95700
  cwd: string;
95176
- requestId: string;
95701
+ fileName: string | null;
95177
95702
  size: number | null;
95703
+ requestId: string;
95178
95704
  token: string | null;
95179
- fileName: string | null;
95705
+ };
95706
+ }>, z.ZodObject<{
95707
+ type: z.ZodLiteral<"file.upload.response">;
95708
+ payload: z.ZodObject<{
95709
+ requestId: z.ZodString;
95710
+ file: z.ZodNullable<z.ZodObject<{
95711
+ type: z.ZodLiteral<"uploaded_file">;
95712
+ id: z.ZodString;
95713
+ fileName: z.ZodString;
95714
+ mimeType: z.ZodString;
95715
+ size: z.ZodNumber;
95716
+ path: z.ZodString;
95717
+ }, "strip", z.ZodTypeAny, {
95718
+ type: "uploaded_file";
95719
+ path: string;
95720
+ mimeType: string;
95721
+ id: string;
95722
+ fileName: string;
95723
+ size: number;
95724
+ }, {
95725
+ type: "uploaded_file";
95726
+ path: string;
95727
+ mimeType: string;
95728
+ id: string;
95729
+ fileName: string;
95730
+ size: number;
95731
+ }>>;
95732
+ error: z.ZodNullable<z.ZodString>;
95733
+ }, "strip", z.ZodTypeAny, {
95734
+ error: string | null;
95735
+ requestId: string;
95736
+ file: {
95737
+ type: "uploaded_file";
95738
+ path: string;
95739
+ mimeType: string;
95740
+ id: string;
95741
+ fileName: string;
95742
+ size: number;
95743
+ } | null;
95744
+ }, {
95745
+ error: string | null;
95746
+ requestId: string;
95747
+ file: {
95748
+ type: "uploaded_file";
95749
+ path: string;
95750
+ mimeType: string;
95751
+ id: string;
95752
+ fileName: string;
95753
+ size: number;
95754
+ } | null;
95755
+ }>;
95756
+ }, "strip", z.ZodTypeAny, {
95757
+ type: "file.upload.response";
95758
+ payload: {
95759
+ error: string | null;
95760
+ requestId: string;
95761
+ file: {
95762
+ type: "uploaded_file";
95763
+ path: string;
95764
+ mimeType: string;
95765
+ id: string;
95766
+ fileName: string;
95767
+ size: number;
95768
+ } | null;
95769
+ };
95770
+ }, {
95771
+ type: "file.upload.response";
95772
+ payload: {
95773
+ error: string | null;
95774
+ requestId: string;
95775
+ file: {
95776
+ type: "uploaded_file";
95777
+ path: string;
95778
+ mimeType: string;
95779
+ id: string;
95780
+ fileName: string;
95781
+ size: number;
95782
+ } | null;
95180
95783
  };
95181
95784
  }>, z.ZodObject<{
95182
95785
  type: z.ZodLiteral<"list_provider_models_response">;
@@ -105296,8 +105899,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
105296
105899
  repoRoot: string;
105297
105900
  ok: true;
105298
105901
  revision: {
105299
- mtimeMs: number;
105300
105902
  size: number;
105903
+ mtimeMs: number;
105301
105904
  } | null;
105302
105905
  } | {
105303
105906
  error: {
@@ -105307,8 +105910,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
105307
105910
  } | {
105308
105911
  code: "stale_project_config";
105309
105912
  currentRevision: {
105310
- mtimeMs: number;
105311
105913
  size: number;
105914
+ mtimeMs: number;
105312
105915
  } | null;
105313
105916
  } | {
105314
105917
  code: "write_failed";
@@ -105368,8 +105971,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
105368
105971
  repoRoot: string;
105369
105972
  ok: true;
105370
105973
  revision: {
105371
- mtimeMs: number;
105372
105974
  size: number;
105975
+ mtimeMs: number;
105373
105976
  };
105374
105977
  } | {
105375
105978
  error: {
@@ -105379,8 +105982,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
105379
105982
  } | {
105380
105983
  code: "stale_project_config";
105381
105984
  currentRevision: {
105382
- mtimeMs: number;
105383
105985
  size: number;
105986
+ mtimeMs: number;
105384
105987
  } | null;
105385
105988
  } | {
105386
105989
  code: "write_failed";
@@ -106164,10 +106767,24 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
106164
106767
  path: string;
106165
106768
  mimeType: string | null;
106166
106769
  cwd: string;
106167
- requestId: string;
106770
+ fileName: string | null;
106168
106771
  size: number | null;
106772
+ requestId: string;
106169
106773
  token: string | null;
106170
- fileName: string | null;
106774
+ };
106775
+ } | {
106776
+ type: "file.upload.response";
106777
+ payload: {
106778
+ error: string | null;
106779
+ requestId: string;
106780
+ file: {
106781
+ type: "uploaded_file";
106782
+ path: string;
106783
+ mimeType: string;
106784
+ id: string;
106785
+ fileName: string;
106786
+ size: number;
106787
+ } | null;
106171
106788
  };
106172
106789
  } | {
106173
106790
  type: "list_provider_models_response";
@@ -108846,8 +109463,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
108846
109463
  repoRoot: string;
108847
109464
  ok: true;
108848
109465
  revision: {
108849
- mtimeMs: number;
108850
109466
  size: number;
109467
+ mtimeMs: number;
108851
109468
  } | null;
108852
109469
  } | {
108853
109470
  error: {
@@ -108857,8 +109474,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
108857
109474
  } | {
108858
109475
  code: "stale_project_config";
108859
109476
  currentRevision: {
108860
- mtimeMs: number;
108861
109477
  size: number;
109478
+ mtimeMs: number;
108862
109479
  } | null;
108863
109480
  } | {
108864
109481
  code: "write_failed";
@@ -108889,8 +109506,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
108889
109506
  repoRoot: string;
108890
109507
  ok: true;
108891
109508
  revision: {
108892
- mtimeMs: number;
108893
109509
  size: number;
109510
+ mtimeMs: number;
108894
109511
  };
108895
109512
  } | {
108896
109513
  error: {
@@ -108900,8 +109517,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
108900
109517
  } | {
108901
109518
  code: "stale_project_config";
108902
109519
  currentRevision: {
108903
- mtimeMs: number;
108904
109520
  size: number;
109521
+ mtimeMs: number;
108905
109522
  } | null;
108906
109523
  } | {
108907
109524
  code: "write_failed";
@@ -109661,10 +110278,24 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
109661
110278
  path: string;
109662
110279
  mimeType: string | null;
109663
110280
  cwd: string;
109664
- requestId: string;
110281
+ fileName: string | null;
109665
110282
  size: number | null;
110283
+ requestId: string;
109666
110284
  token: string | null;
109667
- fileName: string | null;
110285
+ };
110286
+ } | {
110287
+ type: "file.upload.response";
110288
+ payload: {
110289
+ error: string | null;
110290
+ requestId: string;
110291
+ file: {
110292
+ type: "uploaded_file";
110293
+ path: string;
110294
+ mimeType: string;
110295
+ id: string;
110296
+ fileName: string;
110297
+ size: number;
110298
+ } | null;
109668
110299
  };
109669
110300
  } | {
109670
110301
  type: "list_provider_models_response";
@@ -110410,6 +111041,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
110410
111041
  };
110411
111042
  }[];
110412
111043
  baseRef?: string | null | undefined;
111044
+ } | {
111045
+ type: "uploaded_file";
111046
+ path: string;
111047
+ mimeType: string;
111048
+ id: string;
111049
+ fileName: string;
111050
+ size: number;
110413
111051
  })[], unknown>>;
110414
111052
  }, "strip", z.ZodTypeAny, {
110415
111053
  agentId: string;
@@ -110469,6 +111107,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
110469
111107
  };
110470
111108
  }[];
110471
111109
  baseRef?: string | null | undefined;
111110
+ } | {
111111
+ type: "uploaded_file";
111112
+ path: string;
111113
+ mimeType: string;
111114
+ id: string;
111115
+ fileName: string;
111116
+ size: number;
110472
111117
  })[] | undefined;
110473
111118
  }, {
110474
111119
  agentId: string;
@@ -111310,11 +111955,11 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111310
111955
  mtimeMs: z.ZodNumber;
111311
111956
  size: z.ZodNumber;
111312
111957
  }, "strip", z.ZodTypeAny, {
111313
- mtimeMs: number;
111314
111958
  size: number;
111315
- }, {
111316
111959
  mtimeMs: number;
111960
+ }, {
111317
111961
  size: number;
111962
+ mtimeMs: number;
111318
111963
  }>>;
111319
111964
  }, "strip", z.ZodTypeAny, {
111320
111965
  type: "write_project_config_request";
@@ -111365,8 +112010,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111365
112010
  };
111366
112011
  repoRoot: string;
111367
112012
  expectedRevision: {
111368
- mtimeMs: number;
111369
112013
  size: number;
112014
+ mtimeMs: number;
111370
112015
  } | null;
111371
112016
  }, {
111372
112017
  type: "write_project_config_request";
@@ -111388,8 +112033,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111388
112033
  };
111389
112034
  repoRoot: string;
111390
112035
  expectedRevision: {
111391
- mtimeMs: number;
111392
112036
  size: number;
112037
+ mtimeMs: number;
111393
112038
  } | null;
111394
112039
  }>, z.ZodObject<{
111395
112040
  type: z.ZodLiteral<"dictation_stream_start">;
@@ -111649,6 +112294,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111649
112294
  };
111650
112295
  }[];
111651
112296
  baseRef?: string | null | undefined;
112297
+ } | {
112298
+ type: "uploaded_file";
112299
+ path: string;
112300
+ mimeType: string;
112301
+ id: string;
112302
+ fileName: string;
112303
+ size: number;
111652
112304
  })[], unknown>>;
111653
112305
  git: z.ZodOptional<z.ZodObject<{
111654
112306
  baseBranch: z.ZodOptional<z.ZodString>;
@@ -111815,6 +112467,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111815
112467
  };
111816
112468
  }[];
111817
112469
  baseRef?: string | null | undefined;
112470
+ } | {
112471
+ type: "uploaded_file";
112472
+ path: string;
112473
+ mimeType: string;
112474
+ id: string;
112475
+ fileName: string;
112476
+ size: number;
111818
112477
  })[] | undefined;
111819
112478
  workspaceId?: string | undefined;
111820
112479
  worktreeName?: string | undefined;
@@ -112944,6 +113603,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
112944
113603
  };
112945
113604
  }[];
112946
113605
  baseRef?: string | null | undefined;
113606
+ } | {
113607
+ type: "uploaded_file";
113608
+ path: string;
113609
+ mimeType: string;
113610
+ id: string;
113611
+ fileName: string;
113612
+ size: number;
112947
113613
  })[], unknown>>>;
112948
113614
  firstAgentContext: z.ZodOptional<z.ZodObject<{
112949
113615
  prompt: z.ZodOptional<z.ZodString>;
@@ -112995,6 +113661,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
112995
113661
  };
112996
113662
  }[];
112997
113663
  baseRef?: string | null | undefined;
113664
+ } | {
113665
+ type: "uploaded_file";
113666
+ path: string;
113667
+ mimeType: string;
113668
+ id: string;
113669
+ fileName: string;
113670
+ size: number;
112998
113671
  })[], unknown>>;
112999
113672
  }, "strip", z.ZodTypeAny, {
113000
113673
  prompt?: string | undefined;
@@ -113046,6 +113719,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
113046
113719
  };
113047
113720
  }[];
113048
113721
  baseRef?: string | null | undefined;
113722
+ } | {
113723
+ type: "uploaded_file";
113724
+ path: string;
113725
+ mimeType: string;
113726
+ id: string;
113727
+ fileName: string;
113728
+ size: number;
113049
113729
  })[] | undefined;
113050
113730
  }, {
113051
113731
  prompt?: string | undefined;
@@ -113108,6 +113788,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
113108
113788
  };
113109
113789
  }[];
113110
113790
  baseRef?: string | null | undefined;
113791
+ } | {
113792
+ type: "uploaded_file";
113793
+ path: string;
113794
+ mimeType: string;
113795
+ id: string;
113796
+ fileName: string;
113797
+ size: number;
113111
113798
  })[] | undefined;
113112
113799
  worktreeSlug?: string | undefined;
113113
113800
  refName?: string | undefined;
@@ -113164,6 +113851,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
113164
113851
  };
113165
113852
  }[];
113166
113853
  baseRef?: string | null | undefined;
113854
+ } | {
113855
+ type: "uploaded_file";
113856
+ path: string;
113857
+ mimeType: string;
113858
+ id: string;
113859
+ fileName: string;
113860
+ size: number;
113167
113861
  })[] | undefined;
113168
113862
  } | undefined;
113169
113863
  }, {
@@ -113307,6 +114001,27 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
113307
114001
  path: string;
113308
114002
  cwd: string;
113309
114003
  requestId: string;
114004
+ }>, z.ZodObject<{
114005
+ type: z.ZodLiteral<"file.upload.request">;
114006
+ fileName: z.ZodString;
114007
+ mimeType: z.ZodString;
114008
+ size: z.ZodNumber;
114009
+ modifiedAt: z.ZodString;
114010
+ requestId: z.ZodString;
114011
+ }, "strip", z.ZodTypeAny, {
114012
+ type: "file.upload.request";
114013
+ mimeType: string;
114014
+ fileName: string;
114015
+ size: number;
114016
+ requestId: string;
114017
+ modifiedAt: string;
114018
+ }, {
114019
+ type: "file.upload.request";
114020
+ mimeType: string;
114021
+ fileName: string;
114022
+ size: number;
114023
+ requestId: string;
114024
+ modifiedAt: string;
113310
114025
  }>, z.ZodObject<{
113311
114026
  type: z.ZodLiteral<"clear_agent_attention">;
113312
114027
  agentId: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
@@ -114636,6 +115351,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
114636
115351
  };
114637
115352
  }[];
114638
115353
  baseRef?: string | null | undefined;
115354
+ } | {
115355
+ type: "uploaded_file";
115356
+ path: string;
115357
+ mimeType: string;
115358
+ id: string;
115359
+ fileName: string;
115360
+ size: number;
114639
115361
  })[] | undefined;
114640
115362
  } | {
114641
115363
  agentId: string;
@@ -114750,8 +115472,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
114750
115472
  };
114751
115473
  repoRoot: string;
114752
115474
  expectedRevision: {
114753
- mtimeMs: number;
114754
115475
  size: number;
115476
+ mtimeMs: number;
114755
115477
  } | null;
114756
115478
  } | {
114757
115479
  type: "dictation_stream_start";
@@ -114873,6 +115595,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
114873
115595
  };
114874
115596
  }[];
114875
115597
  baseRef?: string | null | undefined;
115598
+ } | {
115599
+ type: "uploaded_file";
115600
+ path: string;
115601
+ mimeType: string;
115602
+ id: string;
115603
+ fileName: string;
115604
+ size: number;
114876
115605
  })[] | undefined;
114877
115606
  workspaceId?: string | undefined;
114878
115607
  worktreeName?: string | undefined;
@@ -115215,6 +115944,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
115215
115944
  };
115216
115945
  }[];
115217
115946
  baseRef?: string | null | undefined;
115947
+ } | {
115948
+ type: "uploaded_file";
115949
+ path: string;
115950
+ mimeType: string;
115951
+ id: string;
115952
+ fileName: string;
115953
+ size: number;
115218
115954
  })[] | undefined;
115219
115955
  worktreeSlug?: string | undefined;
115220
115956
  refName?: string | undefined;
@@ -115271,6 +116007,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
115271
116007
  };
115272
116008
  }[];
115273
116009
  baseRef?: string | null | undefined;
116010
+ } | {
116011
+ type: "uploaded_file";
116012
+ path: string;
116013
+ mimeType: string;
116014
+ id: string;
116015
+ fileName: string;
116016
+ size: number;
115274
116017
  })[] | undefined;
115275
116018
  } | undefined;
115276
116019
  } | {
@@ -115315,6 +116058,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
115315
116058
  path: string;
115316
116059
  cwd: string;
115317
116060
  requestId: string;
116061
+ } | {
116062
+ type: "file.upload.request";
116063
+ mimeType: string;
116064
+ fileName: string;
116065
+ size: number;
116066
+ requestId: string;
116067
+ modifiedAt: string;
115318
116068
  } | {
115319
116069
  agentId: string | string[];
115320
116070
  type: "clear_agent_attention";
@@ -115801,8 +116551,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
115801
116551
  };
115802
116552
  repoRoot: string;
115803
116553
  expectedRevision: {
115804
- mtimeMs: number;
115805
116554
  size: number;
116555
+ mtimeMs: number;
115806
116556
  } | null;
115807
116557
  } | {
115808
116558
  type: "dictation_stream_start";
@@ -116222,6 +116972,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
116222
116972
  path: string;
116223
116973
  cwd: string;
116224
116974
  requestId: string;
116975
+ } | {
116976
+ type: "file.upload.request";
116977
+ mimeType: string;
116978
+ fileName: string;
116979
+ size: number;
116980
+ requestId: string;
116981
+ modifiedAt: string;
116225
116982
  } | {
116226
116983
  agentId: string | string[];
116227
116984
  type: "clear_agent_attention";
@@ -130003,11 +130760,11 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130003
130760
  mtimeMs: z.ZodNumber;
130004
130761
  size: z.ZodNumber;
130005
130762
  }, "strip", z.ZodTypeAny, {
130006
- mtimeMs: number;
130007
130763
  size: number;
130008
- }, {
130009
130764
  mtimeMs: number;
130765
+ }, {
130010
130766
  size: number;
130767
+ mtimeMs: number;
130011
130768
  }>>;
130012
130769
  }, "strip", z.ZodTypeAny, {
130013
130770
  requestId: string;
@@ -130130,8 +130887,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130130
130887
  repoRoot: string;
130131
130888
  ok: true;
130132
130889
  revision: {
130133
- mtimeMs: number;
130134
130890
  size: number;
130891
+ mtimeMs: number;
130135
130892
  } | null;
130136
130893
  }, {
130137
130894
  requestId: string;
@@ -130254,8 +131011,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130254
131011
  repoRoot: string;
130255
131012
  ok: true;
130256
131013
  revision: {
130257
- mtimeMs: number;
130258
131014
  size: number;
131015
+ mtimeMs: number;
130259
131016
  } | null;
130260
131017
  }>, z.ZodObject<{
130261
131018
  requestId: z.ZodString;
@@ -130279,23 +131036,23 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130279
131036
  mtimeMs: z.ZodNumber;
130280
131037
  size: z.ZodNumber;
130281
131038
  }, "strip", z.ZodTypeAny, {
130282
- mtimeMs: number;
130283
131039
  size: number;
130284
- }, {
130285
131040
  mtimeMs: number;
131041
+ }, {
130286
131042
  size: number;
131043
+ mtimeMs: number;
130287
131044
  }>>;
130288
131045
  }, "strip", z.ZodTypeAny, {
130289
131046
  code: "stale_project_config";
130290
131047
  currentRevision: {
130291
- mtimeMs: number;
130292
131048
  size: number;
131049
+ mtimeMs: number;
130293
131050
  } | null;
130294
131051
  }, {
130295
131052
  code: "stale_project_config";
130296
131053
  currentRevision: {
130297
- mtimeMs: number;
130298
131054
  size: number;
131055
+ mtimeMs: number;
130299
131056
  } | null;
130300
131057
  }>, z.ZodObject<{
130301
131058
  code: z.ZodLiteral<"write_failed">;
@@ -130312,8 +131069,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130312
131069
  } | {
130313
131070
  code: "stale_project_config";
130314
131071
  currentRevision: {
130315
- mtimeMs: number;
130316
131072
  size: number;
131073
+ mtimeMs: number;
130317
131074
  } | null;
130318
131075
  } | {
130319
131076
  code: "write_failed";
@@ -130329,8 +131086,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130329
131086
  } | {
130330
131087
  code: "stale_project_config";
130331
131088
  currentRevision: {
130332
- mtimeMs: number;
130333
131089
  size: number;
131090
+ mtimeMs: number;
130334
131091
  } | null;
130335
131092
  } | {
130336
131093
  code: "write_failed";
@@ -130462,8 +131219,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130462
131219
  repoRoot: string;
130463
131220
  ok: true;
130464
131221
  revision: {
130465
- mtimeMs: number;
130466
131222
  size: number;
131223
+ mtimeMs: number;
130467
131224
  } | null;
130468
131225
  } | {
130469
131226
  error: {
@@ -130473,8 +131230,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130473
131230
  } | {
130474
131231
  code: "stale_project_config";
130475
131232
  currentRevision: {
130476
- mtimeMs: number;
130477
131233
  size: number;
131234
+ mtimeMs: number;
130478
131235
  } | null;
130479
131236
  } | {
130480
131237
  code: "write_failed";
@@ -130606,8 +131363,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130606
131363
  repoRoot: string;
130607
131364
  ok: true;
130608
131365
  revision: {
130609
- mtimeMs: number;
130610
131366
  size: number;
131367
+ mtimeMs: number;
130611
131368
  } | null;
130612
131369
  } | {
130613
131370
  error: {
@@ -130617,8 +131374,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130617
131374
  } | {
130618
131375
  code: "stale_project_config";
130619
131376
  currentRevision: {
130620
- mtimeMs: number;
130621
131377
  size: number;
131378
+ mtimeMs: number;
130622
131379
  } | null;
130623
131380
  } | {
130624
131381
  code: "write_failed";
@@ -130983,11 +131740,11 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130983
131740
  mtimeMs: z.ZodNumber;
130984
131741
  size: z.ZodNumber;
130985
131742
  }, "strip", z.ZodTypeAny, {
130986
- mtimeMs: number;
130987
131743
  size: number;
130988
- }, {
130989
131744
  mtimeMs: number;
131745
+ }, {
130990
131746
  size: number;
131747
+ mtimeMs: number;
130991
131748
  }>;
130992
131749
  }, "strip", z.ZodTypeAny, {
130993
131750
  requestId: string;
@@ -131038,8 +131795,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131038
131795
  repoRoot: string;
131039
131796
  ok: true;
131040
131797
  revision: {
131041
- mtimeMs: number;
131042
131798
  size: number;
131799
+ mtimeMs: number;
131043
131800
  };
131044
131801
  }, {
131045
131802
  requestId: string;
@@ -131061,8 +131818,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131061
131818
  repoRoot: string;
131062
131819
  ok: true;
131063
131820
  revision: {
131064
- mtimeMs: number;
131065
131821
  size: number;
131822
+ mtimeMs: number;
131066
131823
  };
131067
131824
  }>, z.ZodObject<{
131068
131825
  requestId: z.ZodString;
@@ -131086,23 +131843,23 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131086
131843
  mtimeMs: z.ZodNumber;
131087
131844
  size: z.ZodNumber;
131088
131845
  }, "strip", z.ZodTypeAny, {
131089
- mtimeMs: number;
131090
131846
  size: number;
131091
- }, {
131092
131847
  mtimeMs: number;
131848
+ }, {
131093
131849
  size: number;
131850
+ mtimeMs: number;
131094
131851
  }>>;
131095
131852
  }, "strip", z.ZodTypeAny, {
131096
131853
  code: "stale_project_config";
131097
131854
  currentRevision: {
131098
- mtimeMs: number;
131099
131855
  size: number;
131856
+ mtimeMs: number;
131100
131857
  } | null;
131101
131858
  }, {
131102
131859
  code: "stale_project_config";
131103
131860
  currentRevision: {
131104
- mtimeMs: number;
131105
131861
  size: number;
131862
+ mtimeMs: number;
131106
131863
  } | null;
131107
131864
  }>, z.ZodObject<{
131108
131865
  code: z.ZodLiteral<"write_failed">;
@@ -131119,8 +131876,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131119
131876
  } | {
131120
131877
  code: "stale_project_config";
131121
131878
  currentRevision: {
131122
- mtimeMs: number;
131123
131879
  size: number;
131880
+ mtimeMs: number;
131124
131881
  } | null;
131125
131882
  } | {
131126
131883
  code: "write_failed";
@@ -131136,8 +131893,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131136
131893
  } | {
131137
131894
  code: "stale_project_config";
131138
131895
  currentRevision: {
131139
- mtimeMs: number;
131140
131896
  size: number;
131897
+ mtimeMs: number;
131141
131898
  } | null;
131142
131899
  } | {
131143
131900
  code: "write_failed";
@@ -131197,8 +131954,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131197
131954
  repoRoot: string;
131198
131955
  ok: true;
131199
131956
  revision: {
131200
- mtimeMs: number;
131201
131957
  size: number;
131958
+ mtimeMs: number;
131202
131959
  };
131203
131960
  } | {
131204
131961
  error: {
@@ -131208,8 +131965,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131208
131965
  } | {
131209
131966
  code: "stale_project_config";
131210
131967
  currentRevision: {
131211
- mtimeMs: number;
131212
131968
  size: number;
131969
+ mtimeMs: number;
131213
131970
  } | null;
131214
131971
  } | {
131215
131972
  code: "write_failed";
@@ -131240,8 +131997,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131240
131997
  repoRoot: string;
131241
131998
  ok: true;
131242
131999
  revision: {
131243
- mtimeMs: number;
131244
132000
  size: number;
132001
+ mtimeMs: number;
131245
132002
  };
131246
132003
  } | {
131247
132004
  error: {
@@ -131251,8 +132008,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131251
132008
  } | {
131252
132009
  code: "stale_project_config";
131253
132010
  currentRevision: {
131254
- mtimeMs: number;
131255
132011
  size: number;
132012
+ mtimeMs: number;
131256
132013
  } | null;
131257
132014
  } | {
131258
132015
  code: "write_failed";
@@ -137262,19 +138019,19 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
137262
138019
  path: string;
137263
138020
  mimeType: string | null;
137264
138021
  cwd: string;
137265
- requestId: string;
138022
+ fileName: string | null;
137266
138023
  size: number | null;
138024
+ requestId: string;
137267
138025
  token: string | null;
137268
- fileName: string | null;
137269
138026
  }, {
137270
138027
  error: string | null;
137271
138028
  path: string;
137272
138029
  mimeType: string | null;
137273
138030
  cwd: string;
137274
- requestId: string;
138031
+ fileName: string | null;
137275
138032
  size: number | null;
138033
+ requestId: string;
137276
138034
  token: string | null;
137277
- fileName: string | null;
137278
138035
  }>;
137279
138036
  }, "strip", z.ZodTypeAny, {
137280
138037
  type: "file_download_token_response";
@@ -137283,10 +138040,10 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
137283
138040
  path: string;
137284
138041
  mimeType: string | null;
137285
138042
  cwd: string;
137286
- requestId: string;
138043
+ fileName: string | null;
137287
138044
  size: number | null;
138045
+ requestId: string;
137288
138046
  token: string | null;
137289
- fileName: string | null;
137290
138047
  };
137291
138048
  }, {
137292
138049
  type: "file_download_token_response";
@@ -137295,10 +138052,88 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
137295
138052
  path: string;
137296
138053
  mimeType: string | null;
137297
138054
  cwd: string;
137298
- requestId: string;
138055
+ fileName: string | null;
137299
138056
  size: number | null;
138057
+ requestId: string;
137300
138058
  token: string | null;
137301
- fileName: string | null;
138059
+ };
138060
+ }>, z.ZodObject<{
138061
+ type: z.ZodLiteral<"file.upload.response">;
138062
+ payload: z.ZodObject<{
138063
+ requestId: z.ZodString;
138064
+ file: z.ZodNullable<z.ZodObject<{
138065
+ type: z.ZodLiteral<"uploaded_file">;
138066
+ id: z.ZodString;
138067
+ fileName: z.ZodString;
138068
+ mimeType: z.ZodString;
138069
+ size: z.ZodNumber;
138070
+ path: z.ZodString;
138071
+ }, "strip", z.ZodTypeAny, {
138072
+ type: "uploaded_file";
138073
+ path: string;
138074
+ mimeType: string;
138075
+ id: string;
138076
+ fileName: string;
138077
+ size: number;
138078
+ }, {
138079
+ type: "uploaded_file";
138080
+ path: string;
138081
+ mimeType: string;
138082
+ id: string;
138083
+ fileName: string;
138084
+ size: number;
138085
+ }>>;
138086
+ error: z.ZodNullable<z.ZodString>;
138087
+ }, "strip", z.ZodTypeAny, {
138088
+ error: string | null;
138089
+ requestId: string;
138090
+ file: {
138091
+ type: "uploaded_file";
138092
+ path: string;
138093
+ mimeType: string;
138094
+ id: string;
138095
+ fileName: string;
138096
+ size: number;
138097
+ } | null;
138098
+ }, {
138099
+ error: string | null;
138100
+ requestId: string;
138101
+ file: {
138102
+ type: "uploaded_file";
138103
+ path: string;
138104
+ mimeType: string;
138105
+ id: string;
138106
+ fileName: string;
138107
+ size: number;
138108
+ } | null;
138109
+ }>;
138110
+ }, "strip", z.ZodTypeAny, {
138111
+ type: "file.upload.response";
138112
+ payload: {
138113
+ error: string | null;
138114
+ requestId: string;
138115
+ file: {
138116
+ type: "uploaded_file";
138117
+ path: string;
138118
+ mimeType: string;
138119
+ id: string;
138120
+ fileName: string;
138121
+ size: number;
138122
+ } | null;
138123
+ };
138124
+ }, {
138125
+ type: "file.upload.response";
138126
+ payload: {
138127
+ error: string | null;
138128
+ requestId: string;
138129
+ file: {
138130
+ type: "uploaded_file";
138131
+ path: string;
138132
+ mimeType: string;
138133
+ id: string;
138134
+ fileName: string;
138135
+ size: number;
138136
+ } | null;
137302
138137
  };
137303
138138
  }>, z.ZodObject<{
137304
138139
  type: z.ZodLiteral<"list_provider_models_response">;
@@ -147418,8 +148253,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
147418
148253
  repoRoot: string;
147419
148254
  ok: true;
147420
148255
  revision: {
147421
- mtimeMs: number;
147422
148256
  size: number;
148257
+ mtimeMs: number;
147423
148258
  } | null;
147424
148259
  } | {
147425
148260
  error: {
@@ -147429,8 +148264,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
147429
148264
  } | {
147430
148265
  code: "stale_project_config";
147431
148266
  currentRevision: {
147432
- mtimeMs: number;
147433
148267
  size: number;
148268
+ mtimeMs: number;
147434
148269
  } | null;
147435
148270
  } | {
147436
148271
  code: "write_failed";
@@ -147490,8 +148325,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
147490
148325
  repoRoot: string;
147491
148326
  ok: true;
147492
148327
  revision: {
147493
- mtimeMs: number;
147494
148328
  size: number;
148329
+ mtimeMs: number;
147495
148330
  };
147496
148331
  } | {
147497
148332
  error: {
@@ -147501,8 +148336,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
147501
148336
  } | {
147502
148337
  code: "stale_project_config";
147503
148338
  currentRevision: {
147504
- mtimeMs: number;
147505
148339
  size: number;
148340
+ mtimeMs: number;
147506
148341
  } | null;
147507
148342
  } | {
147508
148343
  code: "write_failed";
@@ -148286,10 +149121,24 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
148286
149121
  path: string;
148287
149122
  mimeType: string | null;
148288
149123
  cwd: string;
148289
- requestId: string;
149124
+ fileName: string | null;
148290
149125
  size: number | null;
149126
+ requestId: string;
148291
149127
  token: string | null;
148292
- fileName: string | null;
149128
+ };
149129
+ } | {
149130
+ type: "file.upload.response";
149131
+ payload: {
149132
+ error: string | null;
149133
+ requestId: string;
149134
+ file: {
149135
+ type: "uploaded_file";
149136
+ path: string;
149137
+ mimeType: string;
149138
+ id: string;
149139
+ fileName: string;
149140
+ size: number;
149141
+ } | null;
148293
149142
  };
148294
149143
  } | {
148295
149144
  type: "list_provider_models_response";
@@ -150968,8 +151817,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
150968
151817
  repoRoot: string;
150969
151818
  ok: true;
150970
151819
  revision: {
150971
- mtimeMs: number;
150972
151820
  size: number;
151821
+ mtimeMs: number;
150973
151822
  } | null;
150974
151823
  } | {
150975
151824
  error: {
@@ -150979,8 +151828,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
150979
151828
  } | {
150980
151829
  code: "stale_project_config";
150981
151830
  currentRevision: {
150982
- mtimeMs: number;
150983
151831
  size: number;
151832
+ mtimeMs: number;
150984
151833
  } | null;
150985
151834
  } | {
150986
151835
  code: "write_failed";
@@ -151011,8 +151860,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
151011
151860
  repoRoot: string;
151012
151861
  ok: true;
151013
151862
  revision: {
151014
- mtimeMs: number;
151015
151863
  size: number;
151864
+ mtimeMs: number;
151016
151865
  };
151017
151866
  } | {
151018
151867
  error: {
@@ -151022,8 +151871,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
151022
151871
  } | {
151023
151872
  code: "stale_project_config";
151024
151873
  currentRevision: {
151025
- mtimeMs: number;
151026
151874
  size: number;
151875
+ mtimeMs: number;
151027
151876
  } | null;
151028
151877
  } | {
151029
151878
  code: "write_failed";
@@ -151783,10 +152632,24 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
151783
152632
  path: string;
151784
152633
  mimeType: string | null;
151785
152634
  cwd: string;
151786
- requestId: string;
152635
+ fileName: string | null;
151787
152636
  size: number | null;
152637
+ requestId: string;
151788
152638
  token: string | null;
151789
- fileName: string | null;
152639
+ };
152640
+ } | {
152641
+ type: "file.upload.response";
152642
+ payload: {
152643
+ error: string | null;
152644
+ requestId: string;
152645
+ file: {
152646
+ type: "uploaded_file";
152647
+ path: string;
152648
+ mimeType: string;
152649
+ id: string;
152650
+ fileName: string;
152651
+ size: number;
152652
+ } | null;
151790
152653
  };
151791
152654
  } | {
151792
152655
  type: "list_provider_models_response";