@getpaseo/protocol 0.1.91-beta.2 → 0.1.92

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<{
@@ -38252,14 +38571,17 @@ export declare const ListCommandsResponseSchema: z.ZodObject<{
38252
38571
  name: z.ZodString;
38253
38572
  description: z.ZodString;
38254
38573
  argumentHint: z.ZodString;
38574
+ kind: z.ZodCatch<z.ZodOptional<z.ZodEnum<["command", "skill"]>>>;
38255
38575
  }, "strip", z.ZodTypeAny, {
38256
38576
  description: string;
38257
38577
  name: string;
38258
38578
  argumentHint: string;
38579
+ kind?: "command" | "skill" | undefined;
38259
38580
  }, {
38260
38581
  description: string;
38261
38582
  name: string;
38262
38583
  argumentHint: string;
38584
+ kind?: unknown;
38263
38585
  }>, "many">;
38264
38586
  error: z.ZodNullable<z.ZodString>;
38265
38587
  requestId: z.ZodString;
@@ -38271,6 +38593,7 @@ export declare const ListCommandsResponseSchema: z.ZodObject<{
38271
38593
  description: string;
38272
38594
  name: string;
38273
38595
  argumentHint: string;
38596
+ kind?: "command" | "skill" | undefined;
38274
38597
  }[];
38275
38598
  }, {
38276
38599
  error: string | null;
@@ -38280,6 +38603,7 @@ export declare const ListCommandsResponseSchema: z.ZodObject<{
38280
38603
  description: string;
38281
38604
  name: string;
38282
38605
  argumentHint: string;
38606
+ kind?: unknown;
38283
38607
  }[];
38284
38608
  }>;
38285
38609
  }, "strip", z.ZodTypeAny, {
@@ -38292,6 +38616,7 @@ export declare const ListCommandsResponseSchema: z.ZodObject<{
38292
38616
  description: string;
38293
38617
  name: string;
38294
38618
  argumentHint: string;
38619
+ kind?: "command" | "skill" | undefined;
38295
38620
  }[];
38296
38621
  };
38297
38622
  }, {
@@ -38304,6 +38629,7 @@ export declare const ListCommandsResponseSchema: z.ZodObject<{
38304
38629
  description: string;
38305
38630
  name: string;
38306
38631
  argumentHint: string;
38632
+ kind?: unknown;
38307
38633
  }[];
38308
38634
  };
38309
38635
  }>;
@@ -52549,11 +52875,11 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52549
52875
  mtimeMs: z.ZodNumber;
52550
52876
  size: z.ZodNumber;
52551
52877
  }, "strip", z.ZodTypeAny, {
52552
- mtimeMs: number;
52553
52878
  size: number;
52554
- }, {
52555
52879
  mtimeMs: number;
52880
+ }, {
52556
52881
  size: number;
52882
+ mtimeMs: number;
52557
52883
  }>>;
52558
52884
  }, "strip", z.ZodTypeAny, {
52559
52885
  requestId: string;
@@ -52676,8 +53002,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52676
53002
  repoRoot: string;
52677
53003
  ok: true;
52678
53004
  revision: {
52679
- mtimeMs: number;
52680
53005
  size: number;
53006
+ mtimeMs: number;
52681
53007
  } | null;
52682
53008
  }, {
52683
53009
  requestId: string;
@@ -52800,8 +53126,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52800
53126
  repoRoot: string;
52801
53127
  ok: true;
52802
53128
  revision: {
52803
- mtimeMs: number;
52804
53129
  size: number;
53130
+ mtimeMs: number;
52805
53131
  } | null;
52806
53132
  }>, z.ZodObject<{
52807
53133
  requestId: z.ZodString;
@@ -52825,23 +53151,23 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52825
53151
  mtimeMs: z.ZodNumber;
52826
53152
  size: z.ZodNumber;
52827
53153
  }, "strip", z.ZodTypeAny, {
52828
- mtimeMs: number;
52829
53154
  size: number;
52830
- }, {
52831
53155
  mtimeMs: number;
53156
+ }, {
52832
53157
  size: number;
53158
+ mtimeMs: number;
52833
53159
  }>>;
52834
53160
  }, "strip", z.ZodTypeAny, {
52835
53161
  code: "stale_project_config";
52836
53162
  currentRevision: {
52837
- mtimeMs: number;
52838
53163
  size: number;
53164
+ mtimeMs: number;
52839
53165
  } | null;
52840
53166
  }, {
52841
53167
  code: "stale_project_config";
52842
53168
  currentRevision: {
52843
- mtimeMs: number;
52844
53169
  size: number;
53170
+ mtimeMs: number;
52845
53171
  } | null;
52846
53172
  }>, z.ZodObject<{
52847
53173
  code: z.ZodLiteral<"write_failed">;
@@ -52858,8 +53184,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52858
53184
  } | {
52859
53185
  code: "stale_project_config";
52860
53186
  currentRevision: {
52861
- mtimeMs: number;
52862
53187
  size: number;
53188
+ mtimeMs: number;
52863
53189
  } | null;
52864
53190
  } | {
52865
53191
  code: "write_failed";
@@ -52875,8 +53201,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52875
53201
  } | {
52876
53202
  code: "stale_project_config";
52877
53203
  currentRevision: {
52878
- mtimeMs: number;
52879
53204
  size: number;
53205
+ mtimeMs: number;
52880
53206
  } | null;
52881
53207
  } | {
52882
53208
  code: "write_failed";
@@ -53008,8 +53334,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53008
53334
  repoRoot: string;
53009
53335
  ok: true;
53010
53336
  revision: {
53011
- mtimeMs: number;
53012
53337
  size: number;
53338
+ mtimeMs: number;
53013
53339
  } | null;
53014
53340
  } | {
53015
53341
  error: {
@@ -53019,8 +53345,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53019
53345
  } | {
53020
53346
  code: "stale_project_config";
53021
53347
  currentRevision: {
53022
- mtimeMs: number;
53023
53348
  size: number;
53349
+ mtimeMs: number;
53024
53350
  } | null;
53025
53351
  } | {
53026
53352
  code: "write_failed";
@@ -53152,8 +53478,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53152
53478
  repoRoot: string;
53153
53479
  ok: true;
53154
53480
  revision: {
53155
- mtimeMs: number;
53156
53481
  size: number;
53482
+ mtimeMs: number;
53157
53483
  } | null;
53158
53484
  } | {
53159
53485
  error: {
@@ -53163,8 +53489,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53163
53489
  } | {
53164
53490
  code: "stale_project_config";
53165
53491
  currentRevision: {
53166
- mtimeMs: number;
53167
53492
  size: number;
53493
+ mtimeMs: number;
53168
53494
  } | null;
53169
53495
  } | {
53170
53496
  code: "write_failed";
@@ -53529,11 +53855,11 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53529
53855
  mtimeMs: z.ZodNumber;
53530
53856
  size: z.ZodNumber;
53531
53857
  }, "strip", z.ZodTypeAny, {
53532
- mtimeMs: number;
53533
53858
  size: number;
53534
- }, {
53535
53859
  mtimeMs: number;
53860
+ }, {
53536
53861
  size: number;
53862
+ mtimeMs: number;
53537
53863
  }>;
53538
53864
  }, "strip", z.ZodTypeAny, {
53539
53865
  requestId: string;
@@ -53584,8 +53910,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53584
53910
  repoRoot: string;
53585
53911
  ok: true;
53586
53912
  revision: {
53587
- mtimeMs: number;
53588
53913
  size: number;
53914
+ mtimeMs: number;
53589
53915
  };
53590
53916
  }, {
53591
53917
  requestId: string;
@@ -53607,8 +53933,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53607
53933
  repoRoot: string;
53608
53934
  ok: true;
53609
53935
  revision: {
53610
- mtimeMs: number;
53611
53936
  size: number;
53937
+ mtimeMs: number;
53612
53938
  };
53613
53939
  }>, z.ZodObject<{
53614
53940
  requestId: z.ZodString;
@@ -53632,23 +53958,23 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53632
53958
  mtimeMs: z.ZodNumber;
53633
53959
  size: z.ZodNumber;
53634
53960
  }, "strip", z.ZodTypeAny, {
53635
- mtimeMs: number;
53636
53961
  size: number;
53637
- }, {
53638
53962
  mtimeMs: number;
53963
+ }, {
53639
53964
  size: number;
53965
+ mtimeMs: number;
53640
53966
  }>>;
53641
53967
  }, "strip", z.ZodTypeAny, {
53642
53968
  code: "stale_project_config";
53643
53969
  currentRevision: {
53644
- mtimeMs: number;
53645
53970
  size: number;
53971
+ mtimeMs: number;
53646
53972
  } | null;
53647
53973
  }, {
53648
53974
  code: "stale_project_config";
53649
53975
  currentRevision: {
53650
- mtimeMs: number;
53651
53976
  size: number;
53977
+ mtimeMs: number;
53652
53978
  } | null;
53653
53979
  }>, z.ZodObject<{
53654
53980
  code: z.ZodLiteral<"write_failed">;
@@ -53665,8 +53991,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53665
53991
  } | {
53666
53992
  code: "stale_project_config";
53667
53993
  currentRevision: {
53668
- mtimeMs: number;
53669
53994
  size: number;
53995
+ mtimeMs: number;
53670
53996
  } | null;
53671
53997
  } | {
53672
53998
  code: "write_failed";
@@ -53682,8 +54008,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53682
54008
  } | {
53683
54009
  code: "stale_project_config";
53684
54010
  currentRevision: {
53685
- mtimeMs: number;
53686
54011
  size: number;
54012
+ mtimeMs: number;
53687
54013
  } | null;
53688
54014
  } | {
53689
54015
  code: "write_failed";
@@ -53743,8 +54069,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53743
54069
  repoRoot: string;
53744
54070
  ok: true;
53745
54071
  revision: {
53746
- mtimeMs: number;
53747
54072
  size: number;
54073
+ mtimeMs: number;
53748
54074
  };
53749
54075
  } | {
53750
54076
  error: {
@@ -53754,8 +54080,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53754
54080
  } | {
53755
54081
  code: "stale_project_config";
53756
54082
  currentRevision: {
53757
- mtimeMs: number;
53758
54083
  size: number;
54084
+ mtimeMs: number;
53759
54085
  } | null;
53760
54086
  } | {
53761
54087
  code: "write_failed";
@@ -53786,8 +54112,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53786
54112
  repoRoot: string;
53787
54113
  ok: true;
53788
54114
  revision: {
53789
- mtimeMs: number;
53790
54115
  size: number;
54116
+ mtimeMs: number;
53791
54117
  };
53792
54118
  } | {
53793
54119
  error: {
@@ -53797,8 +54123,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53797
54123
  } | {
53798
54124
  code: "stale_project_config";
53799
54125
  currentRevision: {
53800
- mtimeMs: number;
53801
54126
  size: number;
54127
+ mtimeMs: number;
53802
54128
  } | null;
53803
54129
  } | {
53804
54130
  code: "write_failed";
@@ -59808,19 +60134,19 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
59808
60134
  path: string;
59809
60135
  mimeType: string | null;
59810
60136
  cwd: string;
59811
- requestId: string;
60137
+ fileName: string | null;
59812
60138
  size: number | null;
60139
+ requestId: string;
59813
60140
  token: string | null;
59814
- fileName: string | null;
59815
60141
  }, {
59816
60142
  error: string | null;
59817
60143
  path: string;
59818
60144
  mimeType: string | null;
59819
60145
  cwd: string;
59820
- requestId: string;
60146
+ fileName: string | null;
59821
60147
  size: number | null;
60148
+ requestId: string;
59822
60149
  token: string | null;
59823
- fileName: string | null;
59824
60150
  }>;
59825
60151
  }, "strip", z.ZodTypeAny, {
59826
60152
  type: "file_download_token_response";
@@ -59829,10 +60155,10 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
59829
60155
  path: string;
59830
60156
  mimeType: string | null;
59831
60157
  cwd: string;
59832
- requestId: string;
60158
+ fileName: string | null;
59833
60159
  size: number | null;
60160
+ requestId: string;
59834
60161
  token: string | null;
59835
- fileName: string | null;
59836
60162
  };
59837
60163
  }, {
59838
60164
  type: "file_download_token_response";
@@ -59841,10 +60167,88 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
59841
60167
  path: string;
59842
60168
  mimeType: string | null;
59843
60169
  cwd: string;
59844
- requestId: string;
60170
+ fileName: string | null;
59845
60171
  size: number | null;
60172
+ requestId: string;
59846
60173
  token: string | null;
59847
- fileName: string | null;
60174
+ };
60175
+ }>, z.ZodObject<{
60176
+ type: z.ZodLiteral<"file.upload.response">;
60177
+ payload: z.ZodObject<{
60178
+ requestId: z.ZodString;
60179
+ file: z.ZodNullable<z.ZodObject<{
60180
+ type: z.ZodLiteral<"uploaded_file">;
60181
+ id: z.ZodString;
60182
+ fileName: z.ZodString;
60183
+ mimeType: z.ZodString;
60184
+ size: z.ZodNumber;
60185
+ path: z.ZodString;
60186
+ }, "strip", z.ZodTypeAny, {
60187
+ type: "uploaded_file";
60188
+ path: string;
60189
+ mimeType: string;
60190
+ id: string;
60191
+ fileName: string;
60192
+ size: number;
60193
+ }, {
60194
+ type: "uploaded_file";
60195
+ path: string;
60196
+ mimeType: string;
60197
+ id: string;
60198
+ fileName: string;
60199
+ size: number;
60200
+ }>>;
60201
+ error: z.ZodNullable<z.ZodString>;
60202
+ }, "strip", z.ZodTypeAny, {
60203
+ error: string | null;
60204
+ requestId: string;
60205
+ file: {
60206
+ type: "uploaded_file";
60207
+ path: string;
60208
+ mimeType: string;
60209
+ id: string;
60210
+ fileName: string;
60211
+ size: number;
60212
+ } | null;
60213
+ }, {
60214
+ error: string | null;
60215
+ requestId: string;
60216
+ file: {
60217
+ type: "uploaded_file";
60218
+ path: string;
60219
+ mimeType: string;
60220
+ id: string;
60221
+ fileName: string;
60222
+ size: number;
60223
+ } | null;
60224
+ }>;
60225
+ }, "strip", z.ZodTypeAny, {
60226
+ type: "file.upload.response";
60227
+ payload: {
60228
+ error: string | null;
60229
+ requestId: string;
60230
+ file: {
60231
+ type: "uploaded_file";
60232
+ path: string;
60233
+ mimeType: string;
60234
+ id: string;
60235
+ fileName: string;
60236
+ size: number;
60237
+ } | null;
60238
+ };
60239
+ }, {
60240
+ type: "file.upload.response";
60241
+ payload: {
60242
+ error: string | null;
60243
+ requestId: string;
60244
+ file: {
60245
+ type: "uploaded_file";
60246
+ path: string;
60247
+ mimeType: string;
60248
+ id: string;
60249
+ fileName: string;
60250
+ size: number;
60251
+ } | null;
59848
60252
  };
59849
60253
  }>, z.ZodObject<{
59850
60254
  type: z.ZodLiteral<"list_provider_models_response">;
@@ -60471,14 +60875,17 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
60471
60875
  name: z.ZodString;
60472
60876
  description: z.ZodString;
60473
60877
  argumentHint: z.ZodString;
60878
+ kind: z.ZodCatch<z.ZodOptional<z.ZodEnum<["command", "skill"]>>>;
60474
60879
  }, "strip", z.ZodTypeAny, {
60475
60880
  description: string;
60476
60881
  name: string;
60477
60882
  argumentHint: string;
60883
+ kind?: "command" | "skill" | undefined;
60478
60884
  }, {
60479
60885
  description: string;
60480
60886
  name: string;
60481
60887
  argumentHint: string;
60888
+ kind?: unknown;
60482
60889
  }>, "many">;
60483
60890
  error: z.ZodNullable<z.ZodString>;
60484
60891
  requestId: z.ZodString;
@@ -60490,6 +60897,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
60490
60897
  description: string;
60491
60898
  name: string;
60492
60899
  argumentHint: string;
60900
+ kind?: "command" | "skill" | undefined;
60493
60901
  }[];
60494
60902
  }, {
60495
60903
  error: string | null;
@@ -60499,6 +60907,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
60499
60907
  description: string;
60500
60908
  name: string;
60501
60909
  argumentHint: string;
60910
+ kind?: unknown;
60502
60911
  }[];
60503
60912
  }>;
60504
60913
  }, "strip", z.ZodTypeAny, {
@@ -60511,6 +60920,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
60511
60920
  description: string;
60512
60921
  name: string;
60513
60922
  argumentHint: string;
60923
+ kind?: "command" | "skill" | undefined;
60514
60924
  }[];
60515
60925
  };
60516
60926
  }, {
@@ -60523,6 +60933,7 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
60523
60933
  description: string;
60524
60934
  name: string;
60525
60935
  argumentHint: string;
60936
+ kind?: unknown;
60526
60937
  }[];
60527
60938
  };
60528
60939
  }>, z.ZodObject<{
@@ -67703,6 +68114,8 @@ export type ProjectIconResponse = z.infer<typeof ProjectIconResponseSchema>;
67703
68114
  export type ProjectIcon = z.infer<typeof ProjectIconSchema>;
67704
68115
  export type FileDownloadTokenRequest = z.infer<typeof FileDownloadTokenRequestSchema>;
67705
68116
  export type FileDownloadTokenResponse = z.infer<typeof FileDownloadTokenResponseSchema>;
68117
+ export type FileUploadRequest = z.infer<typeof FileUploadRequestSchema>;
68118
+ export type FileUploadResponse = z.infer<typeof FileUploadResponseSchema>;
67706
68119
  export type RestartServerRequestMessage = z.infer<typeof RestartServerRequestMessageSchema>;
67707
68120
  export type ShutdownServerRequestMessage = z.infer<typeof ShutdownServerRequestMessageSchema>;
67708
68121
  export type ClearAgentAttentionMessage = z.infer<typeof ClearAgentAttentionMessageSchema>;
@@ -68294,6 +68707,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
68294
68707
  };
68295
68708
  }[];
68296
68709
  baseRef?: string | null | undefined;
68710
+ } | {
68711
+ type: "uploaded_file";
68712
+ path: string;
68713
+ mimeType: string;
68714
+ id: string;
68715
+ fileName: string;
68716
+ size: number;
68297
68717
  })[], unknown>>;
68298
68718
  }, "strip", z.ZodTypeAny, {
68299
68719
  agentId: string;
@@ -68353,6 +68773,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
68353
68773
  };
68354
68774
  }[];
68355
68775
  baseRef?: string | null | undefined;
68776
+ } | {
68777
+ type: "uploaded_file";
68778
+ path: string;
68779
+ mimeType: string;
68780
+ id: string;
68781
+ fileName: string;
68782
+ size: number;
68356
68783
  })[] | undefined;
68357
68784
  }, {
68358
68785
  agentId: string;
@@ -69194,11 +69621,11 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69194
69621
  mtimeMs: z.ZodNumber;
69195
69622
  size: z.ZodNumber;
69196
69623
  }, "strip", z.ZodTypeAny, {
69197
- mtimeMs: number;
69198
69624
  size: number;
69199
- }, {
69200
69625
  mtimeMs: number;
69626
+ }, {
69201
69627
  size: number;
69628
+ mtimeMs: number;
69202
69629
  }>>;
69203
69630
  }, "strip", z.ZodTypeAny, {
69204
69631
  type: "write_project_config_request";
@@ -69249,8 +69676,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69249
69676
  };
69250
69677
  repoRoot: string;
69251
69678
  expectedRevision: {
69252
- mtimeMs: number;
69253
69679
  size: number;
69680
+ mtimeMs: number;
69254
69681
  } | null;
69255
69682
  }, {
69256
69683
  type: "write_project_config_request";
@@ -69272,8 +69699,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69272
69699
  };
69273
69700
  repoRoot: string;
69274
69701
  expectedRevision: {
69275
- mtimeMs: number;
69276
69702
  size: number;
69703
+ mtimeMs: number;
69277
69704
  } | null;
69278
69705
  }>, z.ZodObject<{
69279
69706
  type: z.ZodLiteral<"dictation_stream_start">;
@@ -69533,6 +69960,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69533
69960
  };
69534
69961
  }[];
69535
69962
  baseRef?: string | null | undefined;
69963
+ } | {
69964
+ type: "uploaded_file";
69965
+ path: string;
69966
+ mimeType: string;
69967
+ id: string;
69968
+ fileName: string;
69969
+ size: number;
69536
69970
  })[], unknown>>;
69537
69971
  git: z.ZodOptional<z.ZodObject<{
69538
69972
  baseBranch: z.ZodOptional<z.ZodString>;
@@ -69699,6 +70133,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69699
70133
  };
69700
70134
  }[];
69701
70135
  baseRef?: string | null | undefined;
70136
+ } | {
70137
+ type: "uploaded_file";
70138
+ path: string;
70139
+ mimeType: string;
70140
+ id: string;
70141
+ fileName: string;
70142
+ size: number;
69702
70143
  })[] | undefined;
69703
70144
  workspaceId?: string | undefined;
69704
70145
  worktreeName?: string | undefined;
@@ -70828,6 +71269,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
70828
71269
  };
70829
71270
  }[];
70830
71271
  baseRef?: string | null | undefined;
71272
+ } | {
71273
+ type: "uploaded_file";
71274
+ path: string;
71275
+ mimeType: string;
71276
+ id: string;
71277
+ fileName: string;
71278
+ size: number;
70831
71279
  })[], unknown>>>;
70832
71280
  firstAgentContext: z.ZodOptional<z.ZodObject<{
70833
71281
  prompt: z.ZodOptional<z.ZodString>;
@@ -70879,6 +71327,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
70879
71327
  };
70880
71328
  }[];
70881
71329
  baseRef?: string | null | undefined;
71330
+ } | {
71331
+ type: "uploaded_file";
71332
+ path: string;
71333
+ mimeType: string;
71334
+ id: string;
71335
+ fileName: string;
71336
+ size: number;
70882
71337
  })[], unknown>>;
70883
71338
  }, "strip", z.ZodTypeAny, {
70884
71339
  prompt?: string | undefined;
@@ -70930,6 +71385,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
70930
71385
  };
70931
71386
  }[];
70932
71387
  baseRef?: string | null | undefined;
71388
+ } | {
71389
+ type: "uploaded_file";
71390
+ path: string;
71391
+ mimeType: string;
71392
+ id: string;
71393
+ fileName: string;
71394
+ size: number;
70933
71395
  })[] | undefined;
70934
71396
  }, {
70935
71397
  prompt?: string | undefined;
@@ -70992,6 +71454,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
70992
71454
  };
70993
71455
  }[];
70994
71456
  baseRef?: string | null | undefined;
71457
+ } | {
71458
+ type: "uploaded_file";
71459
+ path: string;
71460
+ mimeType: string;
71461
+ id: string;
71462
+ fileName: string;
71463
+ size: number;
70995
71464
  })[] | undefined;
70996
71465
  worktreeSlug?: string | undefined;
70997
71466
  refName?: string | undefined;
@@ -71048,6 +71517,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
71048
71517
  };
71049
71518
  }[];
71050
71519
  baseRef?: string | null | undefined;
71520
+ } | {
71521
+ type: "uploaded_file";
71522
+ path: string;
71523
+ mimeType: string;
71524
+ id: string;
71525
+ fileName: string;
71526
+ size: number;
71051
71527
  })[] | undefined;
71052
71528
  } | undefined;
71053
71529
  }, {
@@ -71191,6 +71667,27 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
71191
71667
  path: string;
71192
71668
  cwd: string;
71193
71669
  requestId: string;
71670
+ }>, z.ZodObject<{
71671
+ type: z.ZodLiteral<"file.upload.request">;
71672
+ fileName: z.ZodString;
71673
+ mimeType: z.ZodString;
71674
+ size: z.ZodNumber;
71675
+ modifiedAt: z.ZodString;
71676
+ requestId: z.ZodString;
71677
+ }, "strip", z.ZodTypeAny, {
71678
+ type: "file.upload.request";
71679
+ mimeType: string;
71680
+ fileName: string;
71681
+ size: number;
71682
+ requestId: string;
71683
+ modifiedAt: string;
71684
+ }, {
71685
+ type: "file.upload.request";
71686
+ mimeType: string;
71687
+ fileName: string;
71688
+ size: number;
71689
+ requestId: string;
71690
+ modifiedAt: string;
71194
71691
  }>, z.ZodObject<{
71195
71692
  type: z.ZodLiteral<"clear_agent_attention">;
71196
71693
  agentId: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
@@ -72520,6 +73017,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
72520
73017
  };
72521
73018
  }[];
72522
73019
  baseRef?: string | null | undefined;
73020
+ } | {
73021
+ type: "uploaded_file";
73022
+ path: string;
73023
+ mimeType: string;
73024
+ id: string;
73025
+ fileName: string;
73026
+ size: number;
72523
73027
  })[] | undefined;
72524
73028
  } | {
72525
73029
  agentId: string;
@@ -72634,8 +73138,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
72634
73138
  };
72635
73139
  repoRoot: string;
72636
73140
  expectedRevision: {
72637
- mtimeMs: number;
72638
73141
  size: number;
73142
+ mtimeMs: number;
72639
73143
  } | null;
72640
73144
  } | {
72641
73145
  type: "dictation_stream_start";
@@ -72757,6 +73261,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
72757
73261
  };
72758
73262
  }[];
72759
73263
  baseRef?: string | null | undefined;
73264
+ } | {
73265
+ type: "uploaded_file";
73266
+ path: string;
73267
+ mimeType: string;
73268
+ id: string;
73269
+ fileName: string;
73270
+ size: number;
72760
73271
  })[] | undefined;
72761
73272
  workspaceId?: string | undefined;
72762
73273
  worktreeName?: string | undefined;
@@ -73099,6 +73610,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
73099
73610
  };
73100
73611
  }[];
73101
73612
  baseRef?: string | null | undefined;
73613
+ } | {
73614
+ type: "uploaded_file";
73615
+ path: string;
73616
+ mimeType: string;
73617
+ id: string;
73618
+ fileName: string;
73619
+ size: number;
73102
73620
  })[] | undefined;
73103
73621
  worktreeSlug?: string | undefined;
73104
73622
  refName?: string | undefined;
@@ -73155,6 +73673,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
73155
73673
  };
73156
73674
  }[];
73157
73675
  baseRef?: string | null | undefined;
73676
+ } | {
73677
+ type: "uploaded_file";
73678
+ path: string;
73679
+ mimeType: string;
73680
+ id: string;
73681
+ fileName: string;
73682
+ size: number;
73158
73683
  })[] | undefined;
73159
73684
  } | undefined;
73160
73685
  } | {
@@ -73199,6 +73724,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
73199
73724
  path: string;
73200
73725
  cwd: string;
73201
73726
  requestId: string;
73727
+ } | {
73728
+ type: "file.upload.request";
73729
+ mimeType: string;
73730
+ fileName: string;
73731
+ size: number;
73732
+ requestId: string;
73733
+ modifiedAt: string;
73202
73734
  } | {
73203
73735
  agentId: string | string[];
73204
73736
  type: "clear_agent_attention";
@@ -73685,8 +74217,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
73685
74217
  };
73686
74218
  repoRoot: string;
73687
74219
  expectedRevision: {
73688
- mtimeMs: number;
73689
74220
  size: number;
74221
+ mtimeMs: number;
73690
74222
  } | null;
73691
74223
  } | {
73692
74224
  type: "dictation_stream_start";
@@ -74106,6 +74638,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
74106
74638
  path: string;
74107
74639
  cwd: string;
74108
74640
  requestId: string;
74641
+ } | {
74642
+ type: "file.upload.request";
74643
+ mimeType: string;
74644
+ fileName: string;
74645
+ size: number;
74646
+ requestId: string;
74647
+ modifiedAt: string;
74109
74648
  } | {
74110
74649
  agentId: string | string[];
74111
74650
  type: "clear_agent_attention";
@@ -87881,11 +88420,11 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
87881
88420
  mtimeMs: z.ZodNumber;
87882
88421
  size: z.ZodNumber;
87883
88422
  }, "strip", z.ZodTypeAny, {
87884
- mtimeMs: number;
87885
88423
  size: number;
87886
- }, {
87887
88424
  mtimeMs: number;
88425
+ }, {
87888
88426
  size: number;
88427
+ mtimeMs: number;
87889
88428
  }>>;
87890
88429
  }, "strip", z.ZodTypeAny, {
87891
88430
  requestId: string;
@@ -88008,8 +88547,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88008
88547
  repoRoot: string;
88009
88548
  ok: true;
88010
88549
  revision: {
88011
- mtimeMs: number;
88012
88550
  size: number;
88551
+ mtimeMs: number;
88013
88552
  } | null;
88014
88553
  }, {
88015
88554
  requestId: string;
@@ -88132,8 +88671,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88132
88671
  repoRoot: string;
88133
88672
  ok: true;
88134
88673
  revision: {
88135
- mtimeMs: number;
88136
88674
  size: number;
88675
+ mtimeMs: number;
88137
88676
  } | null;
88138
88677
  }>, z.ZodObject<{
88139
88678
  requestId: z.ZodString;
@@ -88157,23 +88696,23 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88157
88696
  mtimeMs: z.ZodNumber;
88158
88697
  size: z.ZodNumber;
88159
88698
  }, "strip", z.ZodTypeAny, {
88160
- mtimeMs: number;
88161
88699
  size: number;
88162
- }, {
88163
88700
  mtimeMs: number;
88701
+ }, {
88164
88702
  size: number;
88703
+ mtimeMs: number;
88165
88704
  }>>;
88166
88705
  }, "strip", z.ZodTypeAny, {
88167
88706
  code: "stale_project_config";
88168
88707
  currentRevision: {
88169
- mtimeMs: number;
88170
88708
  size: number;
88709
+ mtimeMs: number;
88171
88710
  } | null;
88172
88711
  }, {
88173
88712
  code: "stale_project_config";
88174
88713
  currentRevision: {
88175
- mtimeMs: number;
88176
88714
  size: number;
88715
+ mtimeMs: number;
88177
88716
  } | null;
88178
88717
  }>, z.ZodObject<{
88179
88718
  code: z.ZodLiteral<"write_failed">;
@@ -88190,8 +88729,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88190
88729
  } | {
88191
88730
  code: "stale_project_config";
88192
88731
  currentRevision: {
88193
- mtimeMs: number;
88194
88732
  size: number;
88733
+ mtimeMs: number;
88195
88734
  } | null;
88196
88735
  } | {
88197
88736
  code: "write_failed";
@@ -88207,8 +88746,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88207
88746
  } | {
88208
88747
  code: "stale_project_config";
88209
88748
  currentRevision: {
88210
- mtimeMs: number;
88211
88749
  size: number;
88750
+ mtimeMs: number;
88212
88751
  } | null;
88213
88752
  } | {
88214
88753
  code: "write_failed";
@@ -88340,8 +88879,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88340
88879
  repoRoot: string;
88341
88880
  ok: true;
88342
88881
  revision: {
88343
- mtimeMs: number;
88344
88882
  size: number;
88883
+ mtimeMs: number;
88345
88884
  } | null;
88346
88885
  } | {
88347
88886
  error: {
@@ -88351,8 +88890,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88351
88890
  } | {
88352
88891
  code: "stale_project_config";
88353
88892
  currentRevision: {
88354
- mtimeMs: number;
88355
88893
  size: number;
88894
+ mtimeMs: number;
88356
88895
  } | null;
88357
88896
  } | {
88358
88897
  code: "write_failed";
@@ -88484,8 +89023,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88484
89023
  repoRoot: string;
88485
89024
  ok: true;
88486
89025
  revision: {
88487
- mtimeMs: number;
88488
89026
  size: number;
89027
+ mtimeMs: number;
88489
89028
  } | null;
88490
89029
  } | {
88491
89030
  error: {
@@ -88495,8 +89034,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88495
89034
  } | {
88496
89035
  code: "stale_project_config";
88497
89036
  currentRevision: {
88498
- mtimeMs: number;
88499
89037
  size: number;
89038
+ mtimeMs: number;
88500
89039
  } | null;
88501
89040
  } | {
88502
89041
  code: "write_failed";
@@ -88861,11 +89400,11 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88861
89400
  mtimeMs: z.ZodNumber;
88862
89401
  size: z.ZodNumber;
88863
89402
  }, "strip", z.ZodTypeAny, {
88864
- mtimeMs: number;
88865
89403
  size: number;
88866
- }, {
88867
89404
  mtimeMs: number;
89405
+ }, {
88868
89406
  size: number;
89407
+ mtimeMs: number;
88869
89408
  }>;
88870
89409
  }, "strip", z.ZodTypeAny, {
88871
89410
  requestId: string;
@@ -88916,8 +89455,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88916
89455
  repoRoot: string;
88917
89456
  ok: true;
88918
89457
  revision: {
88919
- mtimeMs: number;
88920
89458
  size: number;
89459
+ mtimeMs: number;
88921
89460
  };
88922
89461
  }, {
88923
89462
  requestId: string;
@@ -88939,8 +89478,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88939
89478
  repoRoot: string;
88940
89479
  ok: true;
88941
89480
  revision: {
88942
- mtimeMs: number;
88943
89481
  size: number;
89482
+ mtimeMs: number;
88944
89483
  };
88945
89484
  }>, z.ZodObject<{
88946
89485
  requestId: z.ZodString;
@@ -88964,23 +89503,23 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88964
89503
  mtimeMs: z.ZodNumber;
88965
89504
  size: z.ZodNumber;
88966
89505
  }, "strip", z.ZodTypeAny, {
88967
- mtimeMs: number;
88968
89506
  size: number;
88969
- }, {
88970
89507
  mtimeMs: number;
89508
+ }, {
88971
89509
  size: number;
89510
+ mtimeMs: number;
88972
89511
  }>>;
88973
89512
  }, "strip", z.ZodTypeAny, {
88974
89513
  code: "stale_project_config";
88975
89514
  currentRevision: {
88976
- mtimeMs: number;
88977
89515
  size: number;
89516
+ mtimeMs: number;
88978
89517
  } | null;
88979
89518
  }, {
88980
89519
  code: "stale_project_config";
88981
89520
  currentRevision: {
88982
- mtimeMs: number;
88983
89521
  size: number;
89522
+ mtimeMs: number;
88984
89523
  } | null;
88985
89524
  }>, z.ZodObject<{
88986
89525
  code: z.ZodLiteral<"write_failed">;
@@ -88997,8 +89536,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88997
89536
  } | {
88998
89537
  code: "stale_project_config";
88999
89538
  currentRevision: {
89000
- mtimeMs: number;
89001
89539
  size: number;
89540
+ mtimeMs: number;
89002
89541
  } | null;
89003
89542
  } | {
89004
89543
  code: "write_failed";
@@ -89014,8 +89553,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
89014
89553
  } | {
89015
89554
  code: "stale_project_config";
89016
89555
  currentRevision: {
89017
- mtimeMs: number;
89018
89556
  size: number;
89557
+ mtimeMs: number;
89019
89558
  } | null;
89020
89559
  } | {
89021
89560
  code: "write_failed";
@@ -89075,8 +89614,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
89075
89614
  repoRoot: string;
89076
89615
  ok: true;
89077
89616
  revision: {
89078
- mtimeMs: number;
89079
89617
  size: number;
89618
+ mtimeMs: number;
89080
89619
  };
89081
89620
  } | {
89082
89621
  error: {
@@ -89086,8 +89625,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
89086
89625
  } | {
89087
89626
  code: "stale_project_config";
89088
89627
  currentRevision: {
89089
- mtimeMs: number;
89090
89628
  size: number;
89629
+ mtimeMs: number;
89091
89630
  } | null;
89092
89631
  } | {
89093
89632
  code: "write_failed";
@@ -89118,8 +89657,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
89118
89657
  repoRoot: string;
89119
89658
  ok: true;
89120
89659
  revision: {
89121
- mtimeMs: number;
89122
89660
  size: number;
89661
+ mtimeMs: number;
89123
89662
  };
89124
89663
  } | {
89125
89664
  error: {
@@ -89129,8 +89668,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
89129
89668
  } | {
89130
89669
  code: "stale_project_config";
89131
89670
  currentRevision: {
89132
- mtimeMs: number;
89133
89671
  size: number;
89672
+ mtimeMs: number;
89134
89673
  } | null;
89135
89674
  } | {
89136
89675
  code: "write_failed";
@@ -95140,19 +95679,19 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
95140
95679
  path: string;
95141
95680
  mimeType: string | null;
95142
95681
  cwd: string;
95143
- requestId: string;
95682
+ fileName: string | null;
95144
95683
  size: number | null;
95684
+ requestId: string;
95145
95685
  token: string | null;
95146
- fileName: string | null;
95147
95686
  }, {
95148
95687
  error: string | null;
95149
95688
  path: string;
95150
95689
  mimeType: string | null;
95151
95690
  cwd: string;
95152
- requestId: string;
95691
+ fileName: string | null;
95153
95692
  size: number | null;
95693
+ requestId: string;
95154
95694
  token: string | null;
95155
- fileName: string | null;
95156
95695
  }>;
95157
95696
  }, "strip", z.ZodTypeAny, {
95158
95697
  type: "file_download_token_response";
@@ -95161,10 +95700,10 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
95161
95700
  path: string;
95162
95701
  mimeType: string | null;
95163
95702
  cwd: string;
95164
- requestId: string;
95703
+ fileName: string | null;
95165
95704
  size: number | null;
95705
+ requestId: string;
95166
95706
  token: string | null;
95167
- fileName: string | null;
95168
95707
  };
95169
95708
  }, {
95170
95709
  type: "file_download_token_response";
@@ -95173,10 +95712,88 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
95173
95712
  path: string;
95174
95713
  mimeType: string | null;
95175
95714
  cwd: string;
95176
- requestId: string;
95715
+ fileName: string | null;
95177
95716
  size: number | null;
95717
+ requestId: string;
95178
95718
  token: string | null;
95179
- fileName: string | null;
95719
+ };
95720
+ }>, z.ZodObject<{
95721
+ type: z.ZodLiteral<"file.upload.response">;
95722
+ payload: z.ZodObject<{
95723
+ requestId: z.ZodString;
95724
+ file: z.ZodNullable<z.ZodObject<{
95725
+ type: z.ZodLiteral<"uploaded_file">;
95726
+ id: z.ZodString;
95727
+ fileName: z.ZodString;
95728
+ mimeType: z.ZodString;
95729
+ size: z.ZodNumber;
95730
+ path: z.ZodString;
95731
+ }, "strip", z.ZodTypeAny, {
95732
+ type: "uploaded_file";
95733
+ path: string;
95734
+ mimeType: string;
95735
+ id: string;
95736
+ fileName: string;
95737
+ size: number;
95738
+ }, {
95739
+ type: "uploaded_file";
95740
+ path: string;
95741
+ mimeType: string;
95742
+ id: string;
95743
+ fileName: string;
95744
+ size: number;
95745
+ }>>;
95746
+ error: z.ZodNullable<z.ZodString>;
95747
+ }, "strip", z.ZodTypeAny, {
95748
+ error: string | null;
95749
+ requestId: string;
95750
+ file: {
95751
+ type: "uploaded_file";
95752
+ path: string;
95753
+ mimeType: string;
95754
+ id: string;
95755
+ fileName: string;
95756
+ size: number;
95757
+ } | null;
95758
+ }, {
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
+ }, "strip", z.ZodTypeAny, {
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;
95783
+ };
95784
+ }, {
95785
+ type: "file.upload.response";
95786
+ payload: {
95787
+ error: string | null;
95788
+ requestId: string;
95789
+ file: {
95790
+ type: "uploaded_file";
95791
+ path: string;
95792
+ mimeType: string;
95793
+ id: string;
95794
+ fileName: string;
95795
+ size: number;
95796
+ } | null;
95180
95797
  };
95181
95798
  }>, z.ZodObject<{
95182
95799
  type: z.ZodLiteral<"list_provider_models_response">;
@@ -95803,14 +96420,17 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
95803
96420
  name: z.ZodString;
95804
96421
  description: z.ZodString;
95805
96422
  argumentHint: z.ZodString;
96423
+ kind: z.ZodCatch<z.ZodOptional<z.ZodEnum<["command", "skill"]>>>;
95806
96424
  }, "strip", z.ZodTypeAny, {
95807
96425
  description: string;
95808
96426
  name: string;
95809
96427
  argumentHint: string;
96428
+ kind?: "command" | "skill" | undefined;
95810
96429
  }, {
95811
96430
  description: string;
95812
96431
  name: string;
95813
96432
  argumentHint: string;
96433
+ kind?: unknown;
95814
96434
  }>, "many">;
95815
96435
  error: z.ZodNullable<z.ZodString>;
95816
96436
  requestId: z.ZodString;
@@ -95822,6 +96442,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
95822
96442
  description: string;
95823
96443
  name: string;
95824
96444
  argumentHint: string;
96445
+ kind?: "command" | "skill" | undefined;
95825
96446
  }[];
95826
96447
  }, {
95827
96448
  error: string | null;
@@ -95831,6 +96452,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
95831
96452
  description: string;
95832
96453
  name: string;
95833
96454
  argumentHint: string;
96455
+ kind?: unknown;
95834
96456
  }[];
95835
96457
  }>;
95836
96458
  }, "strip", z.ZodTypeAny, {
@@ -95843,6 +96465,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
95843
96465
  description: string;
95844
96466
  name: string;
95845
96467
  argumentHint: string;
96468
+ kind?: "command" | "skill" | undefined;
95846
96469
  }[];
95847
96470
  };
95848
96471
  }, {
@@ -95855,6 +96478,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
95855
96478
  description: string;
95856
96479
  name: string;
95857
96480
  argumentHint: string;
96481
+ kind?: unknown;
95858
96482
  }[];
95859
96483
  };
95860
96484
  }>, z.ZodObject<{
@@ -105296,8 +105920,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
105296
105920
  repoRoot: string;
105297
105921
  ok: true;
105298
105922
  revision: {
105299
- mtimeMs: number;
105300
105923
  size: number;
105924
+ mtimeMs: number;
105301
105925
  } | null;
105302
105926
  } | {
105303
105927
  error: {
@@ -105307,8 +105931,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
105307
105931
  } | {
105308
105932
  code: "stale_project_config";
105309
105933
  currentRevision: {
105310
- mtimeMs: number;
105311
105934
  size: number;
105935
+ mtimeMs: number;
105312
105936
  } | null;
105313
105937
  } | {
105314
105938
  code: "write_failed";
@@ -105368,8 +105992,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
105368
105992
  repoRoot: string;
105369
105993
  ok: true;
105370
105994
  revision: {
105371
- mtimeMs: number;
105372
105995
  size: number;
105996
+ mtimeMs: number;
105373
105997
  };
105374
105998
  } | {
105375
105999
  error: {
@@ -105379,8 +106003,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
105379
106003
  } | {
105380
106004
  code: "stale_project_config";
105381
106005
  currentRevision: {
105382
- mtimeMs: number;
105383
106006
  size: number;
106007
+ mtimeMs: number;
105384
106008
  } | null;
105385
106009
  } | {
105386
106010
  code: "write_failed";
@@ -106164,10 +106788,24 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
106164
106788
  path: string;
106165
106789
  mimeType: string | null;
106166
106790
  cwd: string;
106167
- requestId: string;
106791
+ fileName: string | null;
106168
106792
  size: number | null;
106793
+ requestId: string;
106169
106794
  token: string | null;
106170
- fileName: string | null;
106795
+ };
106796
+ } | {
106797
+ type: "file.upload.response";
106798
+ payload: {
106799
+ error: string | null;
106800
+ requestId: string;
106801
+ file: {
106802
+ type: "uploaded_file";
106803
+ path: string;
106804
+ mimeType: string;
106805
+ id: string;
106806
+ fileName: string;
106807
+ size: number;
106808
+ } | null;
106171
106809
  };
106172
106810
  } | {
106173
106811
  type: "list_provider_models_response";
@@ -106290,6 +106928,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
106290
106928
  description: string;
106291
106929
  name: string;
106292
106930
  argumentHint: string;
106931
+ kind?: "command" | "skill" | undefined;
106293
106932
  }[];
106294
106933
  };
106295
106934
  } | {
@@ -108846,8 +109485,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
108846
109485
  repoRoot: string;
108847
109486
  ok: true;
108848
109487
  revision: {
108849
- mtimeMs: number;
108850
109488
  size: number;
109489
+ mtimeMs: number;
108851
109490
  } | null;
108852
109491
  } | {
108853
109492
  error: {
@@ -108857,8 +109496,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
108857
109496
  } | {
108858
109497
  code: "stale_project_config";
108859
109498
  currentRevision: {
108860
- mtimeMs: number;
108861
109499
  size: number;
109500
+ mtimeMs: number;
108862
109501
  } | null;
108863
109502
  } | {
108864
109503
  code: "write_failed";
@@ -108889,8 +109528,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
108889
109528
  repoRoot: string;
108890
109529
  ok: true;
108891
109530
  revision: {
108892
- mtimeMs: number;
108893
109531
  size: number;
109532
+ mtimeMs: number;
108894
109533
  };
108895
109534
  } | {
108896
109535
  error: {
@@ -108900,8 +109539,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
108900
109539
  } | {
108901
109540
  code: "stale_project_config";
108902
109541
  currentRevision: {
108903
- mtimeMs: number;
108904
109542
  size: number;
109543
+ mtimeMs: number;
108905
109544
  } | null;
108906
109545
  } | {
108907
109546
  code: "write_failed";
@@ -109661,10 +110300,24 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
109661
110300
  path: string;
109662
110301
  mimeType: string | null;
109663
110302
  cwd: string;
109664
- requestId: string;
110303
+ fileName: string | null;
109665
110304
  size: number | null;
110305
+ requestId: string;
109666
110306
  token: string | null;
109667
- fileName: string | null;
110307
+ };
110308
+ } | {
110309
+ type: "file.upload.response";
110310
+ payload: {
110311
+ error: string | null;
110312
+ requestId: string;
110313
+ file: {
110314
+ type: "uploaded_file";
110315
+ path: string;
110316
+ mimeType: string;
110317
+ id: string;
110318
+ fileName: string;
110319
+ size: number;
110320
+ } | null;
109668
110321
  };
109669
110322
  } | {
109670
110323
  type: "list_provider_models_response";
@@ -109787,6 +110440,7 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
109787
110440
  description: string;
109788
110441
  name: string;
109789
110442
  argumentHint: string;
110443
+ kind?: unknown;
109790
110444
  }[];
109791
110445
  };
109792
110446
  } | {
@@ -110410,6 +111064,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
110410
111064
  };
110411
111065
  }[];
110412
111066
  baseRef?: string | null | undefined;
111067
+ } | {
111068
+ type: "uploaded_file";
111069
+ path: string;
111070
+ mimeType: string;
111071
+ id: string;
111072
+ fileName: string;
111073
+ size: number;
110413
111074
  })[], unknown>>;
110414
111075
  }, "strip", z.ZodTypeAny, {
110415
111076
  agentId: string;
@@ -110469,6 +111130,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
110469
111130
  };
110470
111131
  }[];
110471
111132
  baseRef?: string | null | undefined;
111133
+ } | {
111134
+ type: "uploaded_file";
111135
+ path: string;
111136
+ mimeType: string;
111137
+ id: string;
111138
+ fileName: string;
111139
+ size: number;
110472
111140
  })[] | undefined;
110473
111141
  }, {
110474
111142
  agentId: string;
@@ -111310,11 +111978,11 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111310
111978
  mtimeMs: z.ZodNumber;
111311
111979
  size: z.ZodNumber;
111312
111980
  }, "strip", z.ZodTypeAny, {
111313
- mtimeMs: number;
111314
111981
  size: number;
111315
- }, {
111316
111982
  mtimeMs: number;
111983
+ }, {
111317
111984
  size: number;
111985
+ mtimeMs: number;
111318
111986
  }>>;
111319
111987
  }, "strip", z.ZodTypeAny, {
111320
111988
  type: "write_project_config_request";
@@ -111365,8 +112033,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111365
112033
  };
111366
112034
  repoRoot: string;
111367
112035
  expectedRevision: {
111368
- mtimeMs: number;
111369
112036
  size: number;
112037
+ mtimeMs: number;
111370
112038
  } | null;
111371
112039
  }, {
111372
112040
  type: "write_project_config_request";
@@ -111388,8 +112056,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111388
112056
  };
111389
112057
  repoRoot: string;
111390
112058
  expectedRevision: {
111391
- mtimeMs: number;
111392
112059
  size: number;
112060
+ mtimeMs: number;
111393
112061
  } | null;
111394
112062
  }>, z.ZodObject<{
111395
112063
  type: z.ZodLiteral<"dictation_stream_start">;
@@ -111649,6 +112317,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111649
112317
  };
111650
112318
  }[];
111651
112319
  baseRef?: string | null | undefined;
112320
+ } | {
112321
+ type: "uploaded_file";
112322
+ path: string;
112323
+ mimeType: string;
112324
+ id: string;
112325
+ fileName: string;
112326
+ size: number;
111652
112327
  })[], unknown>>;
111653
112328
  git: z.ZodOptional<z.ZodObject<{
111654
112329
  baseBranch: z.ZodOptional<z.ZodString>;
@@ -111815,6 +112490,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111815
112490
  };
111816
112491
  }[];
111817
112492
  baseRef?: string | null | undefined;
112493
+ } | {
112494
+ type: "uploaded_file";
112495
+ path: string;
112496
+ mimeType: string;
112497
+ id: string;
112498
+ fileName: string;
112499
+ size: number;
111818
112500
  })[] | undefined;
111819
112501
  workspaceId?: string | undefined;
111820
112502
  worktreeName?: string | undefined;
@@ -112944,6 +113626,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
112944
113626
  };
112945
113627
  }[];
112946
113628
  baseRef?: string | null | undefined;
113629
+ } | {
113630
+ type: "uploaded_file";
113631
+ path: string;
113632
+ mimeType: string;
113633
+ id: string;
113634
+ fileName: string;
113635
+ size: number;
112947
113636
  })[], unknown>>>;
112948
113637
  firstAgentContext: z.ZodOptional<z.ZodObject<{
112949
113638
  prompt: z.ZodOptional<z.ZodString>;
@@ -112995,6 +113684,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
112995
113684
  };
112996
113685
  }[];
112997
113686
  baseRef?: string | null | undefined;
113687
+ } | {
113688
+ type: "uploaded_file";
113689
+ path: string;
113690
+ mimeType: string;
113691
+ id: string;
113692
+ fileName: string;
113693
+ size: number;
112998
113694
  })[], unknown>>;
112999
113695
  }, "strip", z.ZodTypeAny, {
113000
113696
  prompt?: string | undefined;
@@ -113046,6 +113742,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
113046
113742
  };
113047
113743
  }[];
113048
113744
  baseRef?: string | null | undefined;
113745
+ } | {
113746
+ type: "uploaded_file";
113747
+ path: string;
113748
+ mimeType: string;
113749
+ id: string;
113750
+ fileName: string;
113751
+ size: number;
113049
113752
  })[] | undefined;
113050
113753
  }, {
113051
113754
  prompt?: string | undefined;
@@ -113108,6 +113811,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
113108
113811
  };
113109
113812
  }[];
113110
113813
  baseRef?: string | null | undefined;
113814
+ } | {
113815
+ type: "uploaded_file";
113816
+ path: string;
113817
+ mimeType: string;
113818
+ id: string;
113819
+ fileName: string;
113820
+ size: number;
113111
113821
  })[] | undefined;
113112
113822
  worktreeSlug?: string | undefined;
113113
113823
  refName?: string | undefined;
@@ -113164,6 +113874,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
113164
113874
  };
113165
113875
  }[];
113166
113876
  baseRef?: string | null | undefined;
113877
+ } | {
113878
+ type: "uploaded_file";
113879
+ path: string;
113880
+ mimeType: string;
113881
+ id: string;
113882
+ fileName: string;
113883
+ size: number;
113167
113884
  })[] | undefined;
113168
113885
  } | undefined;
113169
113886
  }, {
@@ -113307,6 +114024,27 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
113307
114024
  path: string;
113308
114025
  cwd: string;
113309
114026
  requestId: string;
114027
+ }>, z.ZodObject<{
114028
+ type: z.ZodLiteral<"file.upload.request">;
114029
+ fileName: z.ZodString;
114030
+ mimeType: z.ZodString;
114031
+ size: z.ZodNumber;
114032
+ modifiedAt: z.ZodString;
114033
+ requestId: z.ZodString;
114034
+ }, "strip", z.ZodTypeAny, {
114035
+ type: "file.upload.request";
114036
+ mimeType: string;
114037
+ fileName: string;
114038
+ size: number;
114039
+ requestId: string;
114040
+ modifiedAt: string;
114041
+ }, {
114042
+ type: "file.upload.request";
114043
+ mimeType: string;
114044
+ fileName: string;
114045
+ size: number;
114046
+ requestId: string;
114047
+ modifiedAt: string;
113310
114048
  }>, z.ZodObject<{
113311
114049
  type: z.ZodLiteral<"clear_agent_attention">;
113312
114050
  agentId: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
@@ -114636,6 +115374,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
114636
115374
  };
114637
115375
  }[];
114638
115376
  baseRef?: string | null | undefined;
115377
+ } | {
115378
+ type: "uploaded_file";
115379
+ path: string;
115380
+ mimeType: string;
115381
+ id: string;
115382
+ fileName: string;
115383
+ size: number;
114639
115384
  })[] | undefined;
114640
115385
  } | {
114641
115386
  agentId: string;
@@ -114750,8 +115495,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
114750
115495
  };
114751
115496
  repoRoot: string;
114752
115497
  expectedRevision: {
114753
- mtimeMs: number;
114754
115498
  size: number;
115499
+ mtimeMs: number;
114755
115500
  } | null;
114756
115501
  } | {
114757
115502
  type: "dictation_stream_start";
@@ -114873,6 +115618,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
114873
115618
  };
114874
115619
  }[];
114875
115620
  baseRef?: string | null | undefined;
115621
+ } | {
115622
+ type: "uploaded_file";
115623
+ path: string;
115624
+ mimeType: string;
115625
+ id: string;
115626
+ fileName: string;
115627
+ size: number;
114876
115628
  })[] | undefined;
114877
115629
  workspaceId?: string | undefined;
114878
115630
  worktreeName?: string | undefined;
@@ -115215,6 +115967,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
115215
115967
  };
115216
115968
  }[];
115217
115969
  baseRef?: string | null | undefined;
115970
+ } | {
115971
+ type: "uploaded_file";
115972
+ path: string;
115973
+ mimeType: string;
115974
+ id: string;
115975
+ fileName: string;
115976
+ size: number;
115218
115977
  })[] | undefined;
115219
115978
  worktreeSlug?: string | undefined;
115220
115979
  refName?: string | undefined;
@@ -115271,6 +116030,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
115271
116030
  };
115272
116031
  }[];
115273
116032
  baseRef?: string | null | undefined;
116033
+ } | {
116034
+ type: "uploaded_file";
116035
+ path: string;
116036
+ mimeType: string;
116037
+ id: string;
116038
+ fileName: string;
116039
+ size: number;
115274
116040
  })[] | undefined;
115275
116041
  } | undefined;
115276
116042
  } | {
@@ -115315,6 +116081,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
115315
116081
  path: string;
115316
116082
  cwd: string;
115317
116083
  requestId: string;
116084
+ } | {
116085
+ type: "file.upload.request";
116086
+ mimeType: string;
116087
+ fileName: string;
116088
+ size: number;
116089
+ requestId: string;
116090
+ modifiedAt: string;
115318
116091
  } | {
115319
116092
  agentId: string | string[];
115320
116093
  type: "clear_agent_attention";
@@ -115801,8 +116574,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
115801
116574
  };
115802
116575
  repoRoot: string;
115803
116576
  expectedRevision: {
115804
- mtimeMs: number;
115805
116577
  size: number;
116578
+ mtimeMs: number;
115806
116579
  } | null;
115807
116580
  } | {
115808
116581
  type: "dictation_stream_start";
@@ -116222,6 +116995,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
116222
116995
  path: string;
116223
116996
  cwd: string;
116224
116997
  requestId: string;
116998
+ } | {
116999
+ type: "file.upload.request";
117000
+ mimeType: string;
117001
+ fileName: string;
117002
+ size: number;
117003
+ requestId: string;
117004
+ modifiedAt: string;
116225
117005
  } | {
116226
117006
  agentId: string | string[];
116227
117007
  type: "clear_agent_attention";
@@ -130003,11 +130783,11 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130003
130783
  mtimeMs: z.ZodNumber;
130004
130784
  size: z.ZodNumber;
130005
130785
  }, "strip", z.ZodTypeAny, {
130006
- mtimeMs: number;
130007
130786
  size: number;
130008
- }, {
130009
130787
  mtimeMs: number;
130788
+ }, {
130010
130789
  size: number;
130790
+ mtimeMs: number;
130011
130791
  }>>;
130012
130792
  }, "strip", z.ZodTypeAny, {
130013
130793
  requestId: string;
@@ -130130,8 +130910,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130130
130910
  repoRoot: string;
130131
130911
  ok: true;
130132
130912
  revision: {
130133
- mtimeMs: number;
130134
130913
  size: number;
130914
+ mtimeMs: number;
130135
130915
  } | null;
130136
130916
  }, {
130137
130917
  requestId: string;
@@ -130254,8 +131034,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130254
131034
  repoRoot: string;
130255
131035
  ok: true;
130256
131036
  revision: {
130257
- mtimeMs: number;
130258
131037
  size: number;
131038
+ mtimeMs: number;
130259
131039
  } | null;
130260
131040
  }>, z.ZodObject<{
130261
131041
  requestId: z.ZodString;
@@ -130279,23 +131059,23 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130279
131059
  mtimeMs: z.ZodNumber;
130280
131060
  size: z.ZodNumber;
130281
131061
  }, "strip", z.ZodTypeAny, {
130282
- mtimeMs: number;
130283
131062
  size: number;
130284
- }, {
130285
131063
  mtimeMs: number;
131064
+ }, {
130286
131065
  size: number;
131066
+ mtimeMs: number;
130287
131067
  }>>;
130288
131068
  }, "strip", z.ZodTypeAny, {
130289
131069
  code: "stale_project_config";
130290
131070
  currentRevision: {
130291
- mtimeMs: number;
130292
131071
  size: number;
131072
+ mtimeMs: number;
130293
131073
  } | null;
130294
131074
  }, {
130295
131075
  code: "stale_project_config";
130296
131076
  currentRevision: {
130297
- mtimeMs: number;
130298
131077
  size: number;
131078
+ mtimeMs: number;
130299
131079
  } | null;
130300
131080
  }>, z.ZodObject<{
130301
131081
  code: z.ZodLiteral<"write_failed">;
@@ -130312,8 +131092,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130312
131092
  } | {
130313
131093
  code: "stale_project_config";
130314
131094
  currentRevision: {
130315
- mtimeMs: number;
130316
131095
  size: number;
131096
+ mtimeMs: number;
130317
131097
  } | null;
130318
131098
  } | {
130319
131099
  code: "write_failed";
@@ -130329,8 +131109,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130329
131109
  } | {
130330
131110
  code: "stale_project_config";
130331
131111
  currentRevision: {
130332
- mtimeMs: number;
130333
131112
  size: number;
131113
+ mtimeMs: number;
130334
131114
  } | null;
130335
131115
  } | {
130336
131116
  code: "write_failed";
@@ -130462,8 +131242,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130462
131242
  repoRoot: string;
130463
131243
  ok: true;
130464
131244
  revision: {
130465
- mtimeMs: number;
130466
131245
  size: number;
131246
+ mtimeMs: number;
130467
131247
  } | null;
130468
131248
  } | {
130469
131249
  error: {
@@ -130473,8 +131253,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130473
131253
  } | {
130474
131254
  code: "stale_project_config";
130475
131255
  currentRevision: {
130476
- mtimeMs: number;
130477
131256
  size: number;
131257
+ mtimeMs: number;
130478
131258
  } | null;
130479
131259
  } | {
130480
131260
  code: "write_failed";
@@ -130606,8 +131386,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130606
131386
  repoRoot: string;
130607
131387
  ok: true;
130608
131388
  revision: {
130609
- mtimeMs: number;
130610
131389
  size: number;
131390
+ mtimeMs: number;
130611
131391
  } | null;
130612
131392
  } | {
130613
131393
  error: {
@@ -130617,8 +131397,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130617
131397
  } | {
130618
131398
  code: "stale_project_config";
130619
131399
  currentRevision: {
130620
- mtimeMs: number;
130621
131400
  size: number;
131401
+ mtimeMs: number;
130622
131402
  } | null;
130623
131403
  } | {
130624
131404
  code: "write_failed";
@@ -130983,11 +131763,11 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130983
131763
  mtimeMs: z.ZodNumber;
130984
131764
  size: z.ZodNumber;
130985
131765
  }, "strip", z.ZodTypeAny, {
130986
- mtimeMs: number;
130987
131766
  size: number;
130988
- }, {
130989
131767
  mtimeMs: number;
131768
+ }, {
130990
131769
  size: number;
131770
+ mtimeMs: number;
130991
131771
  }>;
130992
131772
  }, "strip", z.ZodTypeAny, {
130993
131773
  requestId: string;
@@ -131038,8 +131818,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131038
131818
  repoRoot: string;
131039
131819
  ok: true;
131040
131820
  revision: {
131041
- mtimeMs: number;
131042
131821
  size: number;
131822
+ mtimeMs: number;
131043
131823
  };
131044
131824
  }, {
131045
131825
  requestId: string;
@@ -131061,8 +131841,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131061
131841
  repoRoot: string;
131062
131842
  ok: true;
131063
131843
  revision: {
131064
- mtimeMs: number;
131065
131844
  size: number;
131845
+ mtimeMs: number;
131066
131846
  };
131067
131847
  }>, z.ZodObject<{
131068
131848
  requestId: z.ZodString;
@@ -131086,23 +131866,23 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131086
131866
  mtimeMs: z.ZodNumber;
131087
131867
  size: z.ZodNumber;
131088
131868
  }, "strip", z.ZodTypeAny, {
131089
- mtimeMs: number;
131090
131869
  size: number;
131091
- }, {
131092
131870
  mtimeMs: number;
131871
+ }, {
131093
131872
  size: number;
131873
+ mtimeMs: number;
131094
131874
  }>>;
131095
131875
  }, "strip", z.ZodTypeAny, {
131096
131876
  code: "stale_project_config";
131097
131877
  currentRevision: {
131098
- mtimeMs: number;
131099
131878
  size: number;
131879
+ mtimeMs: number;
131100
131880
  } | null;
131101
131881
  }, {
131102
131882
  code: "stale_project_config";
131103
131883
  currentRevision: {
131104
- mtimeMs: number;
131105
131884
  size: number;
131885
+ mtimeMs: number;
131106
131886
  } | null;
131107
131887
  }>, z.ZodObject<{
131108
131888
  code: z.ZodLiteral<"write_failed">;
@@ -131119,8 +131899,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131119
131899
  } | {
131120
131900
  code: "stale_project_config";
131121
131901
  currentRevision: {
131122
- mtimeMs: number;
131123
131902
  size: number;
131903
+ mtimeMs: number;
131124
131904
  } | null;
131125
131905
  } | {
131126
131906
  code: "write_failed";
@@ -131136,8 +131916,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131136
131916
  } | {
131137
131917
  code: "stale_project_config";
131138
131918
  currentRevision: {
131139
- mtimeMs: number;
131140
131919
  size: number;
131920
+ mtimeMs: number;
131141
131921
  } | null;
131142
131922
  } | {
131143
131923
  code: "write_failed";
@@ -131197,8 +131977,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131197
131977
  repoRoot: string;
131198
131978
  ok: true;
131199
131979
  revision: {
131200
- mtimeMs: number;
131201
131980
  size: number;
131981
+ mtimeMs: number;
131202
131982
  };
131203
131983
  } | {
131204
131984
  error: {
@@ -131208,8 +131988,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131208
131988
  } | {
131209
131989
  code: "stale_project_config";
131210
131990
  currentRevision: {
131211
- mtimeMs: number;
131212
131991
  size: number;
131992
+ mtimeMs: number;
131213
131993
  } | null;
131214
131994
  } | {
131215
131995
  code: "write_failed";
@@ -131240,8 +132020,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131240
132020
  repoRoot: string;
131241
132021
  ok: true;
131242
132022
  revision: {
131243
- mtimeMs: number;
131244
132023
  size: number;
132024
+ mtimeMs: number;
131245
132025
  };
131246
132026
  } | {
131247
132027
  error: {
@@ -131251,8 +132031,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131251
132031
  } | {
131252
132032
  code: "stale_project_config";
131253
132033
  currentRevision: {
131254
- mtimeMs: number;
131255
132034
  size: number;
132035
+ mtimeMs: number;
131256
132036
  } | null;
131257
132037
  } | {
131258
132038
  code: "write_failed";
@@ -137262,19 +138042,19 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
137262
138042
  path: string;
137263
138043
  mimeType: string | null;
137264
138044
  cwd: string;
137265
- requestId: string;
138045
+ fileName: string | null;
137266
138046
  size: number | null;
138047
+ requestId: string;
137267
138048
  token: string | null;
137268
- fileName: string | null;
137269
138049
  }, {
137270
138050
  error: string | null;
137271
138051
  path: string;
137272
138052
  mimeType: string | null;
137273
138053
  cwd: string;
137274
- requestId: string;
138054
+ fileName: string | null;
137275
138055
  size: number | null;
138056
+ requestId: string;
137276
138057
  token: string | null;
137277
- fileName: string | null;
137278
138058
  }>;
137279
138059
  }, "strip", z.ZodTypeAny, {
137280
138060
  type: "file_download_token_response";
@@ -137283,10 +138063,10 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
137283
138063
  path: string;
137284
138064
  mimeType: string | null;
137285
138065
  cwd: string;
137286
- requestId: string;
138066
+ fileName: string | null;
137287
138067
  size: number | null;
138068
+ requestId: string;
137288
138069
  token: string | null;
137289
- fileName: string | null;
137290
138070
  };
137291
138071
  }, {
137292
138072
  type: "file_download_token_response";
@@ -137295,10 +138075,88 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
137295
138075
  path: string;
137296
138076
  mimeType: string | null;
137297
138077
  cwd: string;
137298
- requestId: string;
138078
+ fileName: string | null;
137299
138079
  size: number | null;
138080
+ requestId: string;
137300
138081
  token: string | null;
137301
- fileName: string | null;
138082
+ };
138083
+ }>, z.ZodObject<{
138084
+ type: z.ZodLiteral<"file.upload.response">;
138085
+ payload: z.ZodObject<{
138086
+ requestId: z.ZodString;
138087
+ file: z.ZodNullable<z.ZodObject<{
138088
+ type: z.ZodLiteral<"uploaded_file">;
138089
+ id: z.ZodString;
138090
+ fileName: z.ZodString;
138091
+ mimeType: z.ZodString;
138092
+ size: z.ZodNumber;
138093
+ path: z.ZodString;
138094
+ }, "strip", z.ZodTypeAny, {
138095
+ type: "uploaded_file";
138096
+ path: string;
138097
+ mimeType: string;
138098
+ id: string;
138099
+ fileName: string;
138100
+ size: number;
138101
+ }, {
138102
+ type: "uploaded_file";
138103
+ path: string;
138104
+ mimeType: string;
138105
+ id: string;
138106
+ fileName: string;
138107
+ size: number;
138108
+ }>>;
138109
+ error: z.ZodNullable<z.ZodString>;
138110
+ }, "strip", z.ZodTypeAny, {
138111
+ error: string | null;
138112
+ requestId: string;
138113
+ file: {
138114
+ type: "uploaded_file";
138115
+ path: string;
138116
+ mimeType: string;
138117
+ id: string;
138118
+ fileName: string;
138119
+ size: number;
138120
+ } | null;
138121
+ }, {
138122
+ error: string | null;
138123
+ requestId: string;
138124
+ file: {
138125
+ type: "uploaded_file";
138126
+ path: string;
138127
+ mimeType: string;
138128
+ id: string;
138129
+ fileName: string;
138130
+ size: number;
138131
+ } | null;
138132
+ }>;
138133
+ }, "strip", z.ZodTypeAny, {
138134
+ type: "file.upload.response";
138135
+ payload: {
138136
+ error: string | null;
138137
+ requestId: string;
138138
+ file: {
138139
+ type: "uploaded_file";
138140
+ path: string;
138141
+ mimeType: string;
138142
+ id: string;
138143
+ fileName: string;
138144
+ size: number;
138145
+ } | null;
138146
+ };
138147
+ }, {
138148
+ type: "file.upload.response";
138149
+ payload: {
138150
+ error: string | null;
138151
+ requestId: string;
138152
+ file: {
138153
+ type: "uploaded_file";
138154
+ path: string;
138155
+ mimeType: string;
138156
+ id: string;
138157
+ fileName: string;
138158
+ size: number;
138159
+ } | null;
137302
138160
  };
137303
138161
  }>, z.ZodObject<{
137304
138162
  type: z.ZodLiteral<"list_provider_models_response">;
@@ -137925,14 +138783,17 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
137925
138783
  name: z.ZodString;
137926
138784
  description: z.ZodString;
137927
138785
  argumentHint: z.ZodString;
138786
+ kind: z.ZodCatch<z.ZodOptional<z.ZodEnum<["command", "skill"]>>>;
137928
138787
  }, "strip", z.ZodTypeAny, {
137929
138788
  description: string;
137930
138789
  name: string;
137931
138790
  argumentHint: string;
138791
+ kind?: "command" | "skill" | undefined;
137932
138792
  }, {
137933
138793
  description: string;
137934
138794
  name: string;
137935
138795
  argumentHint: string;
138796
+ kind?: unknown;
137936
138797
  }>, "many">;
137937
138798
  error: z.ZodNullable<z.ZodString>;
137938
138799
  requestId: z.ZodString;
@@ -137944,6 +138805,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
137944
138805
  description: string;
137945
138806
  name: string;
137946
138807
  argumentHint: string;
138808
+ kind?: "command" | "skill" | undefined;
137947
138809
  }[];
137948
138810
  }, {
137949
138811
  error: string | null;
@@ -137953,6 +138815,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
137953
138815
  description: string;
137954
138816
  name: string;
137955
138817
  argumentHint: string;
138818
+ kind?: unknown;
137956
138819
  }[];
137957
138820
  }>;
137958
138821
  }, "strip", z.ZodTypeAny, {
@@ -137965,6 +138828,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
137965
138828
  description: string;
137966
138829
  name: string;
137967
138830
  argumentHint: string;
138831
+ kind?: "command" | "skill" | undefined;
137968
138832
  }[];
137969
138833
  };
137970
138834
  }, {
@@ -137977,6 +138841,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
137977
138841
  description: string;
137978
138842
  name: string;
137979
138843
  argumentHint: string;
138844
+ kind?: unknown;
137980
138845
  }[];
137981
138846
  };
137982
138847
  }>, z.ZodObject<{
@@ -147418,8 +148283,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
147418
148283
  repoRoot: string;
147419
148284
  ok: true;
147420
148285
  revision: {
147421
- mtimeMs: number;
147422
148286
  size: number;
148287
+ mtimeMs: number;
147423
148288
  } | null;
147424
148289
  } | {
147425
148290
  error: {
@@ -147429,8 +148294,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
147429
148294
  } | {
147430
148295
  code: "stale_project_config";
147431
148296
  currentRevision: {
147432
- mtimeMs: number;
147433
148297
  size: number;
148298
+ mtimeMs: number;
147434
148299
  } | null;
147435
148300
  } | {
147436
148301
  code: "write_failed";
@@ -147490,8 +148355,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
147490
148355
  repoRoot: string;
147491
148356
  ok: true;
147492
148357
  revision: {
147493
- mtimeMs: number;
147494
148358
  size: number;
148359
+ mtimeMs: number;
147495
148360
  };
147496
148361
  } | {
147497
148362
  error: {
@@ -147501,8 +148366,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
147501
148366
  } | {
147502
148367
  code: "stale_project_config";
147503
148368
  currentRevision: {
147504
- mtimeMs: number;
147505
148369
  size: number;
148370
+ mtimeMs: number;
147506
148371
  } | null;
147507
148372
  } | {
147508
148373
  code: "write_failed";
@@ -148286,10 +149151,24 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
148286
149151
  path: string;
148287
149152
  mimeType: string | null;
148288
149153
  cwd: string;
148289
- requestId: string;
149154
+ fileName: string | null;
148290
149155
  size: number | null;
149156
+ requestId: string;
148291
149157
  token: string | null;
148292
- fileName: string | null;
149158
+ };
149159
+ } | {
149160
+ type: "file.upload.response";
149161
+ payload: {
149162
+ error: string | null;
149163
+ requestId: string;
149164
+ file: {
149165
+ type: "uploaded_file";
149166
+ path: string;
149167
+ mimeType: string;
149168
+ id: string;
149169
+ fileName: string;
149170
+ size: number;
149171
+ } | null;
148293
149172
  };
148294
149173
  } | {
148295
149174
  type: "list_provider_models_response";
@@ -148412,6 +149291,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
148412
149291
  description: string;
148413
149292
  name: string;
148414
149293
  argumentHint: string;
149294
+ kind?: "command" | "skill" | undefined;
148415
149295
  }[];
148416
149296
  };
148417
149297
  } | {
@@ -150968,8 +151848,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
150968
151848
  repoRoot: string;
150969
151849
  ok: true;
150970
151850
  revision: {
150971
- mtimeMs: number;
150972
151851
  size: number;
151852
+ mtimeMs: number;
150973
151853
  } | null;
150974
151854
  } | {
150975
151855
  error: {
@@ -150979,8 +151859,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
150979
151859
  } | {
150980
151860
  code: "stale_project_config";
150981
151861
  currentRevision: {
150982
- mtimeMs: number;
150983
151862
  size: number;
151863
+ mtimeMs: number;
150984
151864
  } | null;
150985
151865
  } | {
150986
151866
  code: "write_failed";
@@ -151011,8 +151891,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
151011
151891
  repoRoot: string;
151012
151892
  ok: true;
151013
151893
  revision: {
151014
- mtimeMs: number;
151015
151894
  size: number;
151895
+ mtimeMs: number;
151016
151896
  };
151017
151897
  } | {
151018
151898
  error: {
@@ -151022,8 +151902,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
151022
151902
  } | {
151023
151903
  code: "stale_project_config";
151024
151904
  currentRevision: {
151025
- mtimeMs: number;
151026
151905
  size: number;
151906
+ mtimeMs: number;
151027
151907
  } | null;
151028
151908
  } | {
151029
151909
  code: "write_failed";
@@ -151783,10 +152663,24 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
151783
152663
  path: string;
151784
152664
  mimeType: string | null;
151785
152665
  cwd: string;
151786
- requestId: string;
152666
+ fileName: string | null;
151787
152667
  size: number | null;
152668
+ requestId: string;
151788
152669
  token: string | null;
151789
- fileName: string | null;
152670
+ };
152671
+ } | {
152672
+ type: "file.upload.response";
152673
+ payload: {
152674
+ error: string | null;
152675
+ requestId: string;
152676
+ file: {
152677
+ type: "uploaded_file";
152678
+ path: string;
152679
+ mimeType: string;
152680
+ id: string;
152681
+ fileName: string;
152682
+ size: number;
152683
+ } | null;
151790
152684
  };
151791
152685
  } | {
151792
152686
  type: "list_provider_models_response";
@@ -151909,6 +152803,7 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
151909
152803
  description: string;
151910
152804
  name: string;
151911
152805
  argumentHint: string;
152806
+ kind?: unknown;
151912
152807
  }[];
151913
152808
  };
151914
152809
  } | {