@getpaseo/protocol 0.1.91-beta.1 → 0.1.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1818,6 +1818,28 @@ export declare const ReviewAttachmentSchema: z.ZodObject<{
1818
1818
  }[];
1819
1819
  baseRef?: string | null | undefined;
1820
1820
  }>;
1821
+ export declare const UploadedFileAttachmentSchema: z.ZodObject<{
1822
+ type: z.ZodLiteral<"uploaded_file">;
1823
+ id: z.ZodString;
1824
+ fileName: z.ZodString;
1825
+ mimeType: z.ZodString;
1826
+ size: z.ZodNumber;
1827
+ path: z.ZodString;
1828
+ }, "strip", z.ZodTypeAny, {
1829
+ type: "uploaded_file";
1830
+ path: string;
1831
+ mimeType: string;
1832
+ id: string;
1833
+ fileName: string;
1834
+ size: number;
1835
+ }, {
1836
+ type: "uploaded_file";
1837
+ path: string;
1838
+ mimeType: string;
1839
+ id: string;
1840
+ fileName: string;
1841
+ size: number;
1842
+ }>;
1821
1843
  export declare const AgentAttachmentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1822
1844
  type: z.ZodLiteral<"github_pr">;
1823
1845
  mimeType: z.ZodLiteral<"application/github-pr">;
@@ -2050,6 +2072,27 @@ export declare const AgentAttachmentSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2050
2072
  };
2051
2073
  }[];
2052
2074
  baseRef?: string | null | undefined;
2075
+ }>, z.ZodObject<{
2076
+ type: z.ZodLiteral<"uploaded_file">;
2077
+ id: z.ZodString;
2078
+ fileName: z.ZodString;
2079
+ mimeType: z.ZodString;
2080
+ size: z.ZodNumber;
2081
+ path: z.ZodString;
2082
+ }, "strip", z.ZodTypeAny, {
2083
+ type: "uploaded_file";
2084
+ path: string;
2085
+ mimeType: string;
2086
+ id: string;
2087
+ fileName: string;
2088
+ size: number;
2089
+ }, {
2090
+ type: "uploaded_file";
2091
+ path: string;
2092
+ mimeType: string;
2093
+ id: string;
2094
+ fileName: string;
2095
+ size: number;
2053
2096
  }>]>;
2054
2097
  export declare const SendAgentMessageSchema: z.ZodObject<{
2055
2098
  type: z.ZodLiteral<"send_agent_message">;
@@ -2114,6 +2157,13 @@ export declare const SendAgentMessageSchema: z.ZodObject<{
2114
2157
  };
2115
2158
  }[];
2116
2159
  baseRef?: string | null | undefined;
2160
+ } | {
2161
+ type: "uploaded_file";
2162
+ path: string;
2163
+ mimeType: string;
2164
+ id: string;
2165
+ fileName: string;
2166
+ size: number;
2117
2167
  })[], unknown>>;
2118
2168
  }, "strip", z.ZodTypeAny, {
2119
2169
  agentId: string;
@@ -2172,6 +2222,13 @@ export declare const SendAgentMessageSchema: z.ZodObject<{
2172
2222
  };
2173
2223
  }[];
2174
2224
  baseRef?: string | null | undefined;
2225
+ } | {
2226
+ type: "uploaded_file";
2227
+ path: string;
2228
+ mimeType: string;
2229
+ id: string;
2230
+ fileName: string;
2231
+ size: number;
2175
2232
  })[] | undefined;
2176
2233
  }, {
2177
2234
  agentId: string;
@@ -2552,6 +2609,13 @@ export declare const SendAgentMessageRequestSchema: z.ZodObject<{
2552
2609
  };
2553
2610
  }[];
2554
2611
  baseRef?: string | null | undefined;
2612
+ } | {
2613
+ type: "uploaded_file";
2614
+ path: string;
2615
+ mimeType: string;
2616
+ id: string;
2617
+ fileName: string;
2618
+ size: number;
2555
2619
  })[], unknown>>;
2556
2620
  }, "strip", z.ZodTypeAny, {
2557
2621
  agentId: string;
@@ -2611,6 +2675,13 @@ export declare const SendAgentMessageRequestSchema: z.ZodObject<{
2611
2675
  };
2612
2676
  }[];
2613
2677
  baseRef?: string | null | undefined;
2678
+ } | {
2679
+ type: "uploaded_file";
2680
+ path: string;
2681
+ mimeType: string;
2682
+ id: string;
2683
+ fileName: string;
2684
+ size: number;
2614
2685
  })[] | undefined;
2615
2686
  }, {
2616
2687
  agentId: string;
@@ -3459,11 +3530,11 @@ export declare const WriteProjectConfigRequestMessageSchema: z.ZodObject<{
3459
3530
  mtimeMs: z.ZodNumber;
3460
3531
  size: z.ZodNumber;
3461
3532
  }, "strip", z.ZodTypeAny, {
3462
- mtimeMs: number;
3463
3533
  size: number;
3464
- }, {
3465
3534
  mtimeMs: number;
3535
+ }, {
3466
3536
  size: number;
3537
+ mtimeMs: number;
3467
3538
  }>>;
3468
3539
  }, "strip", z.ZodTypeAny, {
3469
3540
  type: "write_project_config_request";
@@ -3514,8 +3585,8 @@ export declare const WriteProjectConfigRequestMessageSchema: z.ZodObject<{
3514
3585
  };
3515
3586
  repoRoot: string;
3516
3587
  expectedRevision: {
3517
- mtimeMs: number;
3518
3588
  size: number;
3589
+ mtimeMs: number;
3519
3590
  } | null;
3520
3591
  }, {
3521
3592
  type: "write_project_config_request";
@@ -3537,8 +3608,8 @@ export declare const WriteProjectConfigRequestMessageSchema: z.ZodObject<{
3537
3608
  };
3538
3609
  repoRoot: string;
3539
3610
  expectedRevision: {
3540
- mtimeMs: number;
3541
3611
  size: number;
3612
+ mtimeMs: number;
3542
3613
  } | null;
3543
3614
  }>;
3544
3615
  export declare const DictationStreamStartMessageSchema: z.ZodObject<{
@@ -3687,39 +3758,48 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
3687
3758
  command: z.ZodString;
3688
3759
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3689
3760
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3761
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
3690
3762
  }, "strip", z.ZodTypeAny, {
3691
3763
  type: "stdio";
3692
3764
  command: string;
3693
3765
  args?: string[] | undefined;
3694
3766
  env?: Record<string, string> | undefined;
3767
+ alwaysLoad?: boolean | undefined;
3695
3768
  }, {
3696
3769
  type: "stdio";
3697
3770
  command: string;
3698
3771
  args?: string[] | undefined;
3699
3772
  env?: Record<string, string> | undefined;
3773
+ alwaysLoad?: boolean | undefined;
3700
3774
  }>, z.ZodObject<{
3701
3775
  type: z.ZodLiteral<"http">;
3702
3776
  url: z.ZodString;
3703
3777
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3778
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
3704
3779
  }, "strip", z.ZodTypeAny, {
3705
3780
  type: "http";
3706
3781
  url: string;
3782
+ alwaysLoad?: boolean | undefined;
3707
3783
  headers?: Record<string, string> | undefined;
3708
3784
  }, {
3709
3785
  type: "http";
3710
3786
  url: string;
3787
+ alwaysLoad?: boolean | undefined;
3711
3788
  headers?: Record<string, string> | undefined;
3712
3789
  }>, z.ZodObject<{
3713
3790
  type: z.ZodLiteral<"sse">;
3714
3791
  url: z.ZodString;
3715
3792
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3793
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
3716
3794
  }, "strip", z.ZodTypeAny, {
3717
3795
  type: "sse";
3718
3796
  url: string;
3797
+ alwaysLoad?: boolean | undefined;
3719
3798
  headers?: Record<string, string> | undefined;
3720
3799
  }, {
3721
3800
  type: "sse";
3722
3801
  url: string;
3802
+ alwaysLoad?: boolean | undefined;
3723
3803
  headers?: Record<string, string> | undefined;
3724
3804
  }>]>>>;
3725
3805
  }, "strip", z.ZodTypeAny, {
@@ -3744,13 +3824,16 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
3744
3824
  command: string;
3745
3825
  args?: string[] | undefined;
3746
3826
  env?: Record<string, string> | undefined;
3827
+ alwaysLoad?: boolean | undefined;
3747
3828
  } | {
3748
3829
  type: "http";
3749
3830
  url: string;
3831
+ alwaysLoad?: boolean | undefined;
3750
3832
  headers?: Record<string, string> | undefined;
3751
3833
  } | {
3752
3834
  type: "sse";
3753
3835
  url: string;
3836
+ alwaysLoad?: boolean | undefined;
3754
3837
  headers?: Record<string, string> | undefined;
3755
3838
  }> | undefined;
3756
3839
  }, {
@@ -3775,13 +3858,16 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
3775
3858
  command: string;
3776
3859
  args?: string[] | undefined;
3777
3860
  env?: Record<string, string> | undefined;
3861
+ alwaysLoad?: boolean | undefined;
3778
3862
  } | {
3779
3863
  type: "http";
3780
3864
  url: string;
3865
+ alwaysLoad?: boolean | undefined;
3781
3866
  headers?: Record<string, string> | undefined;
3782
3867
  } | {
3783
3868
  type: "sse";
3784
3869
  url: string;
3870
+ alwaysLoad?: boolean | undefined;
3785
3871
  headers?: Record<string, string> | undefined;
3786
3872
  }> | undefined;
3787
3873
  }>;
@@ -3849,6 +3935,13 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
3849
3935
  };
3850
3936
  }[];
3851
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;
3852
3945
  })[], unknown>>;
3853
3946
  git: z.ZodOptional<z.ZodObject<{
3854
3947
  baseBranch: z.ZodOptional<z.ZodString>;
@@ -3937,13 +4030,16 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
3937
4030
  command: string;
3938
4031
  args?: string[] | undefined;
3939
4032
  env?: Record<string, string> | undefined;
4033
+ alwaysLoad?: boolean | undefined;
3940
4034
  } | {
3941
4035
  type: "http";
3942
4036
  url: string;
4037
+ alwaysLoad?: boolean | undefined;
3943
4038
  headers?: Record<string, string> | undefined;
3944
4039
  } | {
3945
4040
  type: "sse";
3946
4041
  url: string;
4042
+ alwaysLoad?: boolean | undefined;
3947
4043
  headers?: Record<string, string> | undefined;
3948
4044
  }> | undefined;
3949
4045
  };
@@ -4012,6 +4108,13 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
4012
4108
  };
4013
4109
  }[];
4014
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;
4015
4118
  })[] | undefined;
4016
4119
  workspaceId?: string | undefined;
4017
4120
  worktreeName?: string | undefined;
@@ -4054,13 +4157,16 @@ export declare const CreateAgentRequestMessageSchema: z.ZodObject<{
4054
4157
  command: string;
4055
4158
  args?: string[] | undefined;
4056
4159
  env?: Record<string, string> | undefined;
4160
+ alwaysLoad?: boolean | undefined;
4057
4161
  } | {
4058
4162
  type: "http";
4059
4163
  url: string;
4164
+ alwaysLoad?: boolean | undefined;
4060
4165
  headers?: Record<string, string> | undefined;
4061
4166
  } | {
4062
4167
  type: "sse";
4063
4168
  url: string;
4169
+ alwaysLoad?: boolean | undefined;
4064
4170
  headers?: Record<string, string> | undefined;
4065
4171
  }> | undefined;
4066
4172
  };
@@ -4214,39 +4320,48 @@ export declare const ResumeAgentRequestMessageSchema: z.ZodObject<{
4214
4320
  command: z.ZodString;
4215
4321
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4216
4322
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4323
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
4217
4324
  }, "strip", z.ZodTypeAny, {
4218
4325
  type: "stdio";
4219
4326
  command: string;
4220
4327
  args?: string[] | undefined;
4221
4328
  env?: Record<string, string> | undefined;
4329
+ alwaysLoad?: boolean | undefined;
4222
4330
  }, {
4223
4331
  type: "stdio";
4224
4332
  command: string;
4225
4333
  args?: string[] | undefined;
4226
4334
  env?: Record<string, string> | undefined;
4335
+ alwaysLoad?: boolean | undefined;
4227
4336
  }>, z.ZodObject<{
4228
4337
  type: z.ZodLiteral<"http">;
4229
4338
  url: z.ZodString;
4230
4339
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4340
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
4231
4341
  }, "strip", z.ZodTypeAny, {
4232
4342
  type: "http";
4233
4343
  url: string;
4344
+ alwaysLoad?: boolean | undefined;
4234
4345
  headers?: Record<string, string> | undefined;
4235
4346
  }, {
4236
4347
  type: "http";
4237
4348
  url: string;
4349
+ alwaysLoad?: boolean | undefined;
4238
4350
  headers?: Record<string, string> | undefined;
4239
4351
  }>, z.ZodObject<{
4240
4352
  type: z.ZodLiteral<"sse">;
4241
4353
  url: z.ZodString;
4242
4354
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4355
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
4243
4356
  }, "strip", z.ZodTypeAny, {
4244
4357
  type: "sse";
4245
4358
  url: string;
4359
+ alwaysLoad?: boolean | undefined;
4246
4360
  headers?: Record<string, string> | undefined;
4247
4361
  }, {
4248
4362
  type: "sse";
4249
4363
  url: string;
4364
+ alwaysLoad?: boolean | undefined;
4250
4365
  headers?: Record<string, string> | undefined;
4251
4366
  }>]>>>>;
4252
4367
  }, "strip", z.ZodTypeAny, {
@@ -4271,13 +4386,16 @@ export declare const ResumeAgentRequestMessageSchema: z.ZodObject<{
4271
4386
  command: string;
4272
4387
  args?: string[] | undefined;
4273
4388
  env?: Record<string, string> | undefined;
4389
+ alwaysLoad?: boolean | undefined;
4274
4390
  } | {
4275
4391
  type: "http";
4276
4392
  url: string;
4393
+ alwaysLoad?: boolean | undefined;
4277
4394
  headers?: Record<string, string> | undefined;
4278
4395
  } | {
4279
4396
  type: "sse";
4280
4397
  url: string;
4398
+ alwaysLoad?: boolean | undefined;
4281
4399
  headers?: Record<string, string> | undefined;
4282
4400
  }> | undefined;
4283
4401
  }, {
@@ -4302,13 +4420,16 @@ export declare const ResumeAgentRequestMessageSchema: z.ZodObject<{
4302
4420
  command: string;
4303
4421
  args?: string[] | undefined;
4304
4422
  env?: Record<string, string> | undefined;
4423
+ alwaysLoad?: boolean | undefined;
4305
4424
  } | {
4306
4425
  type: "http";
4307
4426
  url: string;
4427
+ alwaysLoad?: boolean | undefined;
4308
4428
  headers?: Record<string, string> | undefined;
4309
4429
  } | {
4310
4430
  type: "sse";
4311
4431
  url: string;
4432
+ alwaysLoad?: boolean | undefined;
4312
4433
  headers?: Record<string, string> | undefined;
4313
4434
  }> | undefined;
4314
4435
  }>>;
@@ -4339,13 +4460,16 @@ export declare const ResumeAgentRequestMessageSchema: z.ZodObject<{
4339
4460
  command: string;
4340
4461
  args?: string[] | undefined;
4341
4462
  env?: Record<string, string> | undefined;
4463
+ alwaysLoad?: boolean | undefined;
4342
4464
  } | {
4343
4465
  type: "http";
4344
4466
  url: string;
4467
+ alwaysLoad?: boolean | undefined;
4345
4468
  headers?: Record<string, string> | undefined;
4346
4469
  } | {
4347
4470
  type: "sse";
4348
4471
  url: string;
4472
+ alwaysLoad?: boolean | undefined;
4349
4473
  headers?: Record<string, string> | undefined;
4350
4474
  }> | undefined;
4351
4475
  } | undefined;
@@ -4375,13 +4499,16 @@ export declare const ResumeAgentRequestMessageSchema: z.ZodObject<{
4375
4499
  command: string;
4376
4500
  args?: string[] | undefined;
4377
4501
  env?: Record<string, string> | undefined;
4502
+ alwaysLoad?: boolean | undefined;
4378
4503
  } | {
4379
4504
  type: "http";
4380
4505
  url: string;
4506
+ alwaysLoad?: boolean | undefined;
4381
4507
  headers?: Record<string, string> | undefined;
4382
4508
  } | {
4383
4509
  type: "sse";
4384
4510
  url: string;
4511
+ alwaysLoad?: boolean | undefined;
4385
4512
  headers?: Record<string, string> | undefined;
4386
4513
  }> | undefined;
4387
4514
  } | undefined;
@@ -5481,6 +5608,13 @@ export declare const FirstAgentContextSchema: z.ZodObject<{
5481
5608
  };
5482
5609
  }[];
5483
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;
5484
5618
  })[], unknown>>;
5485
5619
  }, "strip", z.ZodTypeAny, {
5486
5620
  prompt?: string | undefined;
@@ -5532,6 +5666,13 @@ export declare const FirstAgentContextSchema: z.ZodObject<{
5532
5666
  };
5533
5667
  }[];
5534
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;
5535
5676
  })[] | undefined;
5536
5677
  }, {
5537
5678
  prompt?: string | undefined;
@@ -5591,6 +5732,13 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
5591
5732
  };
5592
5733
  }[];
5593
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;
5594
5742
  })[], unknown>>>;
5595
5743
  firstAgentContext: z.ZodOptional<z.ZodObject<{
5596
5744
  prompt: z.ZodOptional<z.ZodString>;
@@ -5642,6 +5790,13 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
5642
5790
  };
5643
5791
  }[];
5644
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;
5645
5800
  })[], unknown>>;
5646
5801
  }, "strip", z.ZodTypeAny, {
5647
5802
  prompt?: string | undefined;
@@ -5693,6 +5848,13 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
5693
5848
  };
5694
5849
  }[];
5695
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;
5696
5858
  })[] | undefined;
5697
5859
  }, {
5698
5860
  prompt?: string | undefined;
@@ -5755,6 +5917,13 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
5755
5917
  };
5756
5918
  }[];
5757
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;
5758
5927
  })[] | undefined;
5759
5928
  worktreeSlug?: string | undefined;
5760
5929
  refName?: string | undefined;
@@ -5811,6 +5980,13 @@ export declare const CreatePaseoWorktreeRequestSchema: z.ZodObject<{
5811
5980
  };
5812
5981
  }[];
5813
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;
5814
5990
  })[] | undefined;
5815
5991
  } | undefined;
5816
5992
  }, {
@@ -5964,6 +6140,28 @@ export declare const FileDownloadTokenRequestSchema: z.ZodObject<{
5964
6140
  cwd: string;
5965
6141
  requestId: string;
5966
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
+ }>;
5967
6165
  export declare const ClearAgentAttentionMessageSchema: z.ZodObject<{
5968
6166
  type: z.ZodLiteral<"clear_agent_attention">;
5969
6167
  agentId: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
@@ -6870,6 +7068,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
6870
7068
  };
6871
7069
  }[];
6872
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;
6873
7078
  })[], unknown>>;
6874
7079
  }, "strip", z.ZodTypeAny, {
6875
7080
  agentId: string;
@@ -6929,6 +7134,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
6929
7134
  };
6930
7135
  }[];
6931
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;
6932
7144
  })[] | undefined;
6933
7145
  }, {
6934
7146
  agentId: string;
@@ -7770,11 +7982,11 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
7770
7982
  mtimeMs: z.ZodNumber;
7771
7983
  size: z.ZodNumber;
7772
7984
  }, "strip", z.ZodTypeAny, {
7773
- mtimeMs: number;
7774
7985
  size: number;
7775
- }, {
7776
7986
  mtimeMs: number;
7987
+ }, {
7777
7988
  size: number;
7989
+ mtimeMs: number;
7778
7990
  }>>;
7779
7991
  }, "strip", z.ZodTypeAny, {
7780
7992
  type: "write_project_config_request";
@@ -7825,8 +8037,8 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
7825
8037
  };
7826
8038
  repoRoot: string;
7827
8039
  expectedRevision: {
7828
- mtimeMs: number;
7829
8040
  size: number;
8041
+ mtimeMs: number;
7830
8042
  } | null;
7831
8043
  }, {
7832
8044
  type: "write_project_config_request";
@@ -7848,8 +8060,8 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
7848
8060
  };
7849
8061
  repoRoot: string;
7850
8062
  expectedRevision: {
7851
- mtimeMs: number;
7852
8063
  size: number;
8064
+ mtimeMs: number;
7853
8065
  } | null;
7854
8066
  }>, z.ZodObject<{
7855
8067
  type: z.ZodLiteral<"dictation_stream_start">;
@@ -7932,39 +8144,48 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
7932
8144
  command: z.ZodString;
7933
8145
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7934
8146
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8147
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
7935
8148
  }, "strip", z.ZodTypeAny, {
7936
8149
  type: "stdio";
7937
8150
  command: string;
7938
8151
  args?: string[] | undefined;
7939
8152
  env?: Record<string, string> | undefined;
8153
+ alwaysLoad?: boolean | undefined;
7940
8154
  }, {
7941
8155
  type: "stdio";
7942
8156
  command: string;
7943
8157
  args?: string[] | undefined;
7944
8158
  env?: Record<string, string> | undefined;
8159
+ alwaysLoad?: boolean | undefined;
7945
8160
  }>, z.ZodObject<{
7946
8161
  type: z.ZodLiteral<"http">;
7947
8162
  url: z.ZodString;
7948
8163
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8164
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
7949
8165
  }, "strip", z.ZodTypeAny, {
7950
8166
  type: "http";
7951
8167
  url: string;
8168
+ alwaysLoad?: boolean | undefined;
7952
8169
  headers?: Record<string, string> | undefined;
7953
8170
  }, {
7954
8171
  type: "http";
7955
8172
  url: string;
8173
+ alwaysLoad?: boolean | undefined;
7956
8174
  headers?: Record<string, string> | undefined;
7957
8175
  }>, z.ZodObject<{
7958
8176
  type: z.ZodLiteral<"sse">;
7959
8177
  url: z.ZodString;
7960
8178
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8179
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
7961
8180
  }, "strip", z.ZodTypeAny, {
7962
8181
  type: "sse";
7963
8182
  url: string;
8183
+ alwaysLoad?: boolean | undefined;
7964
8184
  headers?: Record<string, string> | undefined;
7965
8185
  }, {
7966
8186
  type: "sse";
7967
8187
  url: string;
8188
+ alwaysLoad?: boolean | undefined;
7968
8189
  headers?: Record<string, string> | undefined;
7969
8190
  }>]>>>;
7970
8191
  }, "strip", z.ZodTypeAny, {
@@ -7989,13 +8210,16 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
7989
8210
  command: string;
7990
8211
  args?: string[] | undefined;
7991
8212
  env?: Record<string, string> | undefined;
8213
+ alwaysLoad?: boolean | undefined;
7992
8214
  } | {
7993
8215
  type: "http";
7994
8216
  url: string;
8217
+ alwaysLoad?: boolean | undefined;
7995
8218
  headers?: Record<string, string> | undefined;
7996
8219
  } | {
7997
8220
  type: "sse";
7998
8221
  url: string;
8222
+ alwaysLoad?: boolean | undefined;
7999
8223
  headers?: Record<string, string> | undefined;
8000
8224
  }> | undefined;
8001
8225
  }, {
@@ -8020,13 +8244,16 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
8020
8244
  command: string;
8021
8245
  args?: string[] | undefined;
8022
8246
  env?: Record<string, string> | undefined;
8247
+ alwaysLoad?: boolean | undefined;
8023
8248
  } | {
8024
8249
  type: "http";
8025
8250
  url: string;
8251
+ alwaysLoad?: boolean | undefined;
8026
8252
  headers?: Record<string, string> | undefined;
8027
8253
  } | {
8028
8254
  type: "sse";
8029
8255
  url: string;
8256
+ alwaysLoad?: boolean | undefined;
8030
8257
  headers?: Record<string, string> | undefined;
8031
8258
  }> | undefined;
8032
8259
  }>;
@@ -8094,6 +8321,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
8094
8321
  };
8095
8322
  }[];
8096
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;
8097
8331
  })[], unknown>>;
8098
8332
  git: z.ZodOptional<z.ZodObject<{
8099
8333
  baseBranch: z.ZodOptional<z.ZodString>;
@@ -8182,13 +8416,16 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
8182
8416
  command: string;
8183
8417
  args?: string[] | undefined;
8184
8418
  env?: Record<string, string> | undefined;
8419
+ alwaysLoad?: boolean | undefined;
8185
8420
  } | {
8186
8421
  type: "http";
8187
8422
  url: string;
8423
+ alwaysLoad?: boolean | undefined;
8188
8424
  headers?: Record<string, string> | undefined;
8189
8425
  } | {
8190
8426
  type: "sse";
8191
8427
  url: string;
8428
+ alwaysLoad?: boolean | undefined;
8192
8429
  headers?: Record<string, string> | undefined;
8193
8430
  }> | undefined;
8194
8431
  };
@@ -8257,6 +8494,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
8257
8494
  };
8258
8495
  }[];
8259
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;
8260
8504
  })[] | undefined;
8261
8505
  workspaceId?: string | undefined;
8262
8506
  worktreeName?: string | undefined;
@@ -8299,13 +8543,16 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
8299
8543
  command: string;
8300
8544
  args?: string[] | undefined;
8301
8545
  env?: Record<string, string> | undefined;
8546
+ alwaysLoad?: boolean | undefined;
8302
8547
  } | {
8303
8548
  type: "http";
8304
8549
  url: string;
8550
+ alwaysLoad?: boolean | undefined;
8305
8551
  headers?: Record<string, string> | undefined;
8306
8552
  } | {
8307
8553
  type: "sse";
8308
8554
  url: string;
8555
+ alwaysLoad?: boolean | undefined;
8309
8556
  headers?: Record<string, string> | undefined;
8310
8557
  }> | undefined;
8311
8558
  };
@@ -8499,39 +8746,48 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
8499
8746
  command: z.ZodString;
8500
8747
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8501
8748
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8749
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
8502
8750
  }, "strip", z.ZodTypeAny, {
8503
8751
  type: "stdio";
8504
8752
  command: string;
8505
8753
  args?: string[] | undefined;
8506
8754
  env?: Record<string, string> | undefined;
8755
+ alwaysLoad?: boolean | undefined;
8507
8756
  }, {
8508
8757
  type: "stdio";
8509
8758
  command: string;
8510
8759
  args?: string[] | undefined;
8511
8760
  env?: Record<string, string> | undefined;
8761
+ alwaysLoad?: boolean | undefined;
8512
8762
  }>, z.ZodObject<{
8513
8763
  type: z.ZodLiteral<"http">;
8514
8764
  url: z.ZodString;
8515
8765
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8766
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
8516
8767
  }, "strip", z.ZodTypeAny, {
8517
8768
  type: "http";
8518
8769
  url: string;
8770
+ alwaysLoad?: boolean | undefined;
8519
8771
  headers?: Record<string, string> | undefined;
8520
8772
  }, {
8521
8773
  type: "http";
8522
8774
  url: string;
8775
+ alwaysLoad?: boolean | undefined;
8523
8776
  headers?: Record<string, string> | undefined;
8524
8777
  }>, z.ZodObject<{
8525
8778
  type: z.ZodLiteral<"sse">;
8526
8779
  url: z.ZodString;
8527
8780
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8781
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
8528
8782
  }, "strip", z.ZodTypeAny, {
8529
8783
  type: "sse";
8530
8784
  url: string;
8785
+ alwaysLoad?: boolean | undefined;
8531
8786
  headers?: Record<string, string> | undefined;
8532
8787
  }, {
8533
8788
  type: "sse";
8534
8789
  url: string;
8790
+ alwaysLoad?: boolean | undefined;
8535
8791
  headers?: Record<string, string> | undefined;
8536
8792
  }>]>>>>;
8537
8793
  }, "strip", z.ZodTypeAny, {
@@ -8556,13 +8812,16 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
8556
8812
  command: string;
8557
8813
  args?: string[] | undefined;
8558
8814
  env?: Record<string, string> | undefined;
8815
+ alwaysLoad?: boolean | undefined;
8559
8816
  } | {
8560
8817
  type: "http";
8561
8818
  url: string;
8819
+ alwaysLoad?: boolean | undefined;
8562
8820
  headers?: Record<string, string> | undefined;
8563
8821
  } | {
8564
8822
  type: "sse";
8565
8823
  url: string;
8824
+ alwaysLoad?: boolean | undefined;
8566
8825
  headers?: Record<string, string> | undefined;
8567
8826
  }> | undefined;
8568
8827
  }, {
@@ -8587,13 +8846,16 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
8587
8846
  command: string;
8588
8847
  args?: string[] | undefined;
8589
8848
  env?: Record<string, string> | undefined;
8849
+ alwaysLoad?: boolean | undefined;
8590
8850
  } | {
8591
8851
  type: "http";
8592
8852
  url: string;
8853
+ alwaysLoad?: boolean | undefined;
8593
8854
  headers?: Record<string, string> | undefined;
8594
8855
  } | {
8595
8856
  type: "sse";
8596
8857
  url: string;
8858
+ alwaysLoad?: boolean | undefined;
8597
8859
  headers?: Record<string, string> | undefined;
8598
8860
  }> | undefined;
8599
8861
  }>>;
@@ -8624,13 +8886,16 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
8624
8886
  command: string;
8625
8887
  args?: string[] | undefined;
8626
8888
  env?: Record<string, string> | undefined;
8889
+ alwaysLoad?: boolean | undefined;
8627
8890
  } | {
8628
8891
  type: "http";
8629
8892
  url: string;
8893
+ alwaysLoad?: boolean | undefined;
8630
8894
  headers?: Record<string, string> | undefined;
8631
8895
  } | {
8632
8896
  type: "sse";
8633
8897
  url: string;
8898
+ alwaysLoad?: boolean | undefined;
8634
8899
  headers?: Record<string, string> | undefined;
8635
8900
  }> | undefined;
8636
8901
  } | undefined;
@@ -8660,13 +8925,16 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
8660
8925
  command: string;
8661
8926
  args?: string[] | undefined;
8662
8927
  env?: Record<string, string> | undefined;
8928
+ alwaysLoad?: boolean | undefined;
8663
8929
  } | {
8664
8930
  type: "http";
8665
8931
  url: string;
8932
+ alwaysLoad?: boolean | undefined;
8666
8933
  headers?: Record<string, string> | undefined;
8667
8934
  } | {
8668
8935
  type: "sse";
8669
8936
  url: string;
8937
+ alwaysLoad?: boolean | undefined;
8670
8938
  headers?: Record<string, string> | undefined;
8671
8939
  }> | undefined;
8672
8940
  } | undefined;
@@ -9362,6 +9630,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
9362
9630
  };
9363
9631
  }[];
9364
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;
9365
9640
  })[], unknown>>>;
9366
9641
  firstAgentContext: z.ZodOptional<z.ZodObject<{
9367
9642
  prompt: z.ZodOptional<z.ZodString>;
@@ -9413,6 +9688,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
9413
9688
  };
9414
9689
  }[];
9415
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;
9416
9698
  })[], unknown>>;
9417
9699
  }, "strip", z.ZodTypeAny, {
9418
9700
  prompt?: string | undefined;
@@ -9464,6 +9746,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
9464
9746
  };
9465
9747
  }[];
9466
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;
9467
9756
  })[] | undefined;
9468
9757
  }, {
9469
9758
  prompt?: string | undefined;
@@ -9526,6 +9815,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
9526
9815
  };
9527
9816
  }[];
9528
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;
9529
9825
  })[] | undefined;
9530
9826
  worktreeSlug?: string | undefined;
9531
9827
  refName?: string | undefined;
@@ -9582,6 +9878,13 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
9582
9878
  };
9583
9879
  }[];
9584
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;
9585
9888
  })[] | undefined;
9586
9889
  } | undefined;
9587
9890
  }, {
@@ -9725,6 +10028,27 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
9725
10028
  path: string;
9726
10029
  cwd: string;
9727
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;
9728
10052
  }>, z.ZodObject<{
9729
10053
  type: z.ZodLiteral<"clear_agent_attention">;
9730
10054
  agentId: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
@@ -30605,11 +30929,11 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
30605
30929
  mtimeMs: z.ZodNumber;
30606
30930
  size: z.ZodNumber;
30607
30931
  }, "strip", z.ZodTypeAny, {
30608
- mtimeMs: number;
30609
30932
  size: number;
30610
- }, {
30611
30933
  mtimeMs: number;
30934
+ }, {
30612
30935
  size: number;
30936
+ mtimeMs: number;
30613
30937
  }>>;
30614
30938
  }, "strip", z.ZodTypeAny, {
30615
30939
  requestId: string;
@@ -30732,8 +31056,8 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
30732
31056
  repoRoot: string;
30733
31057
  ok: true;
30734
31058
  revision: {
30735
- mtimeMs: number;
30736
31059
  size: number;
31060
+ mtimeMs: number;
30737
31061
  } | null;
30738
31062
  }, {
30739
31063
  requestId: string;
@@ -30856,8 +31180,8 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
30856
31180
  repoRoot: string;
30857
31181
  ok: true;
30858
31182
  revision: {
30859
- mtimeMs: number;
30860
31183
  size: number;
31184
+ mtimeMs: number;
30861
31185
  } | null;
30862
31186
  }>, z.ZodObject<{
30863
31187
  requestId: z.ZodString;
@@ -30881,23 +31205,23 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
30881
31205
  mtimeMs: z.ZodNumber;
30882
31206
  size: z.ZodNumber;
30883
31207
  }, "strip", z.ZodTypeAny, {
30884
- mtimeMs: number;
30885
31208
  size: number;
30886
- }, {
30887
31209
  mtimeMs: number;
31210
+ }, {
30888
31211
  size: number;
31212
+ mtimeMs: number;
30889
31213
  }>>;
30890
31214
  }, "strip", z.ZodTypeAny, {
30891
31215
  code: "stale_project_config";
30892
31216
  currentRevision: {
30893
- mtimeMs: number;
30894
31217
  size: number;
31218
+ mtimeMs: number;
30895
31219
  } | null;
30896
31220
  }, {
30897
31221
  code: "stale_project_config";
30898
31222
  currentRevision: {
30899
- mtimeMs: number;
30900
31223
  size: number;
31224
+ mtimeMs: number;
30901
31225
  } | null;
30902
31226
  }>, z.ZodObject<{
30903
31227
  code: z.ZodLiteral<"write_failed">;
@@ -30914,8 +31238,8 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
30914
31238
  } | {
30915
31239
  code: "stale_project_config";
30916
31240
  currentRevision: {
30917
- mtimeMs: number;
30918
31241
  size: number;
31242
+ mtimeMs: number;
30919
31243
  } | null;
30920
31244
  } | {
30921
31245
  code: "write_failed";
@@ -30931,8 +31255,8 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
30931
31255
  } | {
30932
31256
  code: "stale_project_config";
30933
31257
  currentRevision: {
30934
- mtimeMs: number;
30935
31258
  size: number;
31259
+ mtimeMs: number;
30936
31260
  } | null;
30937
31261
  } | {
30938
31262
  code: "write_failed";
@@ -31064,8 +31388,8 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
31064
31388
  repoRoot: string;
31065
31389
  ok: true;
31066
31390
  revision: {
31067
- mtimeMs: number;
31068
31391
  size: number;
31392
+ mtimeMs: number;
31069
31393
  } | null;
31070
31394
  } | {
31071
31395
  error: {
@@ -31075,8 +31399,8 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
31075
31399
  } | {
31076
31400
  code: "stale_project_config";
31077
31401
  currentRevision: {
31078
- mtimeMs: number;
31079
31402
  size: number;
31403
+ mtimeMs: number;
31080
31404
  } | null;
31081
31405
  } | {
31082
31406
  code: "write_failed";
@@ -31208,8 +31532,8 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
31208
31532
  repoRoot: string;
31209
31533
  ok: true;
31210
31534
  revision: {
31211
- mtimeMs: number;
31212
31535
  size: number;
31536
+ mtimeMs: number;
31213
31537
  } | null;
31214
31538
  } | {
31215
31539
  error: {
@@ -31219,8 +31543,8 @@ export declare const ReadProjectConfigResponseMessageSchema: z.ZodObject<{
31219
31543
  } | {
31220
31544
  code: "stale_project_config";
31221
31545
  currentRevision: {
31222
- mtimeMs: number;
31223
31546
  size: number;
31547
+ mtimeMs: number;
31224
31548
  } | null;
31225
31549
  } | {
31226
31550
  code: "write_failed";
@@ -31586,11 +31910,11 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31586
31910
  mtimeMs: z.ZodNumber;
31587
31911
  size: z.ZodNumber;
31588
31912
  }, "strip", z.ZodTypeAny, {
31589
- mtimeMs: number;
31590
31913
  size: number;
31591
- }, {
31592
31914
  mtimeMs: number;
31915
+ }, {
31593
31916
  size: number;
31917
+ mtimeMs: number;
31594
31918
  }>;
31595
31919
  }, "strip", z.ZodTypeAny, {
31596
31920
  requestId: string;
@@ -31641,8 +31965,8 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31641
31965
  repoRoot: string;
31642
31966
  ok: true;
31643
31967
  revision: {
31644
- mtimeMs: number;
31645
31968
  size: number;
31969
+ mtimeMs: number;
31646
31970
  };
31647
31971
  }, {
31648
31972
  requestId: string;
@@ -31664,8 +31988,8 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31664
31988
  repoRoot: string;
31665
31989
  ok: true;
31666
31990
  revision: {
31667
- mtimeMs: number;
31668
31991
  size: number;
31992
+ mtimeMs: number;
31669
31993
  };
31670
31994
  }>, z.ZodObject<{
31671
31995
  requestId: z.ZodString;
@@ -31689,23 +32013,23 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31689
32013
  mtimeMs: z.ZodNumber;
31690
32014
  size: z.ZodNumber;
31691
32015
  }, "strip", z.ZodTypeAny, {
31692
- mtimeMs: number;
31693
32016
  size: number;
31694
- }, {
31695
32017
  mtimeMs: number;
32018
+ }, {
31696
32019
  size: number;
32020
+ mtimeMs: number;
31697
32021
  }>>;
31698
32022
  }, "strip", z.ZodTypeAny, {
31699
32023
  code: "stale_project_config";
31700
32024
  currentRevision: {
31701
- mtimeMs: number;
31702
32025
  size: number;
32026
+ mtimeMs: number;
31703
32027
  } | null;
31704
32028
  }, {
31705
32029
  code: "stale_project_config";
31706
32030
  currentRevision: {
31707
- mtimeMs: number;
31708
32031
  size: number;
32032
+ mtimeMs: number;
31709
32033
  } | null;
31710
32034
  }>, z.ZodObject<{
31711
32035
  code: z.ZodLiteral<"write_failed">;
@@ -31722,8 +32046,8 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31722
32046
  } | {
31723
32047
  code: "stale_project_config";
31724
32048
  currentRevision: {
31725
- mtimeMs: number;
31726
32049
  size: number;
32050
+ mtimeMs: number;
31727
32051
  } | null;
31728
32052
  } | {
31729
32053
  code: "write_failed";
@@ -31739,8 +32063,8 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31739
32063
  } | {
31740
32064
  code: "stale_project_config";
31741
32065
  currentRevision: {
31742
- mtimeMs: number;
31743
32066
  size: number;
32067
+ mtimeMs: number;
31744
32068
  } | null;
31745
32069
  } | {
31746
32070
  code: "write_failed";
@@ -31800,8 +32124,8 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31800
32124
  repoRoot: string;
31801
32125
  ok: true;
31802
32126
  revision: {
31803
- mtimeMs: number;
31804
32127
  size: number;
32128
+ mtimeMs: number;
31805
32129
  };
31806
32130
  } | {
31807
32131
  error: {
@@ -31811,8 +32135,8 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31811
32135
  } | {
31812
32136
  code: "stale_project_config";
31813
32137
  currentRevision: {
31814
- mtimeMs: number;
31815
32138
  size: number;
32139
+ mtimeMs: number;
31816
32140
  } | null;
31817
32141
  } | {
31818
32142
  code: "write_failed";
@@ -31843,8 +32167,8 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31843
32167
  repoRoot: string;
31844
32168
  ok: true;
31845
32169
  revision: {
31846
- mtimeMs: number;
31847
32170
  size: number;
32171
+ mtimeMs: number;
31848
32172
  };
31849
32173
  } | {
31850
32174
  error: {
@@ -31854,8 +32178,8 @@ export declare const WriteProjectConfigResponseMessageSchema: z.ZodObject<{
31854
32178
  } | {
31855
32179
  code: "stale_project_config";
31856
32180
  currentRevision: {
31857
- mtimeMs: number;
31858
32181
  size: number;
32182
+ mtimeMs: number;
31859
32183
  } | null;
31860
32184
  } | {
31861
32185
  code: "write_failed";
@@ -37496,19 +37820,19 @@ export declare const FileDownloadTokenResponseSchema: z.ZodObject<{
37496
37820
  path: string;
37497
37821
  mimeType: string | null;
37498
37822
  cwd: string;
37499
- requestId: string;
37823
+ fileName: string | null;
37500
37824
  size: number | null;
37825
+ requestId: string;
37501
37826
  token: string | null;
37502
- fileName: string | null;
37503
37827
  }, {
37504
37828
  error: string | null;
37505
37829
  path: string;
37506
37830
  mimeType: string | null;
37507
37831
  cwd: string;
37508
- requestId: string;
37832
+ fileName: string | null;
37509
37833
  size: number | null;
37834
+ requestId: string;
37510
37835
  token: string | null;
37511
- fileName: string | null;
37512
37836
  }>;
37513
37837
  }, "strip", z.ZodTypeAny, {
37514
37838
  type: "file_download_token_response";
@@ -37517,10 +37841,10 @@ export declare const FileDownloadTokenResponseSchema: z.ZodObject<{
37517
37841
  path: string;
37518
37842
  mimeType: string | null;
37519
37843
  cwd: string;
37520
- requestId: string;
37844
+ fileName: string | null;
37521
37845
  size: number | null;
37846
+ requestId: string;
37522
37847
  token: string | null;
37523
- fileName: string | null;
37524
37848
  };
37525
37849
  }, {
37526
37850
  type: "file_download_token_response";
@@ -37529,10 +37853,89 @@ export declare const FileDownloadTokenResponseSchema: z.ZodObject<{
37529
37853
  path: string;
37530
37854
  mimeType: string | null;
37531
37855
  cwd: string;
37532
- requestId: string;
37856
+ fileName: string | null;
37533
37857
  size: number | null;
37858
+ requestId: string;
37534
37859
  token: string | null;
37535
- 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;
37536
37939
  };
37537
37940
  }>;
37538
37941
  export declare const ListProviderModelsResponseMessageSchema: z.ZodObject<{
@@ -52465,11 +52868,11 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52465
52868
  mtimeMs: z.ZodNumber;
52466
52869
  size: z.ZodNumber;
52467
52870
  }, "strip", z.ZodTypeAny, {
52468
- mtimeMs: number;
52469
52871
  size: number;
52470
- }, {
52471
52872
  mtimeMs: number;
52873
+ }, {
52472
52874
  size: number;
52875
+ mtimeMs: number;
52473
52876
  }>>;
52474
52877
  }, "strip", z.ZodTypeAny, {
52475
52878
  requestId: string;
@@ -52592,8 +52995,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52592
52995
  repoRoot: string;
52593
52996
  ok: true;
52594
52997
  revision: {
52595
- mtimeMs: number;
52596
52998
  size: number;
52999
+ mtimeMs: number;
52597
53000
  } | null;
52598
53001
  }, {
52599
53002
  requestId: string;
@@ -52716,8 +53119,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52716
53119
  repoRoot: string;
52717
53120
  ok: true;
52718
53121
  revision: {
52719
- mtimeMs: number;
52720
53122
  size: number;
53123
+ mtimeMs: number;
52721
53124
  } | null;
52722
53125
  }>, z.ZodObject<{
52723
53126
  requestId: z.ZodString;
@@ -52741,23 +53144,23 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52741
53144
  mtimeMs: z.ZodNumber;
52742
53145
  size: z.ZodNumber;
52743
53146
  }, "strip", z.ZodTypeAny, {
52744
- mtimeMs: number;
52745
53147
  size: number;
52746
- }, {
52747
53148
  mtimeMs: number;
53149
+ }, {
52748
53150
  size: number;
53151
+ mtimeMs: number;
52749
53152
  }>>;
52750
53153
  }, "strip", z.ZodTypeAny, {
52751
53154
  code: "stale_project_config";
52752
53155
  currentRevision: {
52753
- mtimeMs: number;
52754
53156
  size: number;
53157
+ mtimeMs: number;
52755
53158
  } | null;
52756
53159
  }, {
52757
53160
  code: "stale_project_config";
52758
53161
  currentRevision: {
52759
- mtimeMs: number;
52760
53162
  size: number;
53163
+ mtimeMs: number;
52761
53164
  } | null;
52762
53165
  }>, z.ZodObject<{
52763
53166
  code: z.ZodLiteral<"write_failed">;
@@ -52774,8 +53177,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52774
53177
  } | {
52775
53178
  code: "stale_project_config";
52776
53179
  currentRevision: {
52777
- mtimeMs: number;
52778
53180
  size: number;
53181
+ mtimeMs: number;
52779
53182
  } | null;
52780
53183
  } | {
52781
53184
  code: "write_failed";
@@ -52791,8 +53194,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52791
53194
  } | {
52792
53195
  code: "stale_project_config";
52793
53196
  currentRevision: {
52794
- mtimeMs: number;
52795
53197
  size: number;
53198
+ mtimeMs: number;
52796
53199
  } | null;
52797
53200
  } | {
52798
53201
  code: "write_failed";
@@ -52924,8 +53327,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52924
53327
  repoRoot: string;
52925
53328
  ok: true;
52926
53329
  revision: {
52927
- mtimeMs: number;
52928
53330
  size: number;
53331
+ mtimeMs: number;
52929
53332
  } | null;
52930
53333
  } | {
52931
53334
  error: {
@@ -52935,8 +53338,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
52935
53338
  } | {
52936
53339
  code: "stale_project_config";
52937
53340
  currentRevision: {
52938
- mtimeMs: number;
52939
53341
  size: number;
53342
+ mtimeMs: number;
52940
53343
  } | null;
52941
53344
  } | {
52942
53345
  code: "write_failed";
@@ -53068,8 +53471,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53068
53471
  repoRoot: string;
53069
53472
  ok: true;
53070
53473
  revision: {
53071
- mtimeMs: number;
53072
53474
  size: number;
53475
+ mtimeMs: number;
53073
53476
  } | null;
53074
53477
  } | {
53075
53478
  error: {
@@ -53079,8 +53482,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53079
53482
  } | {
53080
53483
  code: "stale_project_config";
53081
53484
  currentRevision: {
53082
- mtimeMs: number;
53083
53485
  size: number;
53486
+ mtimeMs: number;
53084
53487
  } | null;
53085
53488
  } | {
53086
53489
  code: "write_failed";
@@ -53445,11 +53848,11 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53445
53848
  mtimeMs: z.ZodNumber;
53446
53849
  size: z.ZodNumber;
53447
53850
  }, "strip", z.ZodTypeAny, {
53448
- mtimeMs: number;
53449
53851
  size: number;
53450
- }, {
53451
53852
  mtimeMs: number;
53853
+ }, {
53452
53854
  size: number;
53855
+ mtimeMs: number;
53453
53856
  }>;
53454
53857
  }, "strip", z.ZodTypeAny, {
53455
53858
  requestId: string;
@@ -53500,8 +53903,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53500
53903
  repoRoot: string;
53501
53904
  ok: true;
53502
53905
  revision: {
53503
- mtimeMs: number;
53504
53906
  size: number;
53907
+ mtimeMs: number;
53505
53908
  };
53506
53909
  }, {
53507
53910
  requestId: string;
@@ -53523,8 +53926,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53523
53926
  repoRoot: string;
53524
53927
  ok: true;
53525
53928
  revision: {
53526
- mtimeMs: number;
53527
53929
  size: number;
53930
+ mtimeMs: number;
53528
53931
  };
53529
53932
  }>, z.ZodObject<{
53530
53933
  requestId: z.ZodString;
@@ -53548,23 +53951,23 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53548
53951
  mtimeMs: z.ZodNumber;
53549
53952
  size: z.ZodNumber;
53550
53953
  }, "strip", z.ZodTypeAny, {
53551
- mtimeMs: number;
53552
53954
  size: number;
53553
- }, {
53554
53955
  mtimeMs: number;
53956
+ }, {
53555
53957
  size: number;
53958
+ mtimeMs: number;
53556
53959
  }>>;
53557
53960
  }, "strip", z.ZodTypeAny, {
53558
53961
  code: "stale_project_config";
53559
53962
  currentRevision: {
53560
- mtimeMs: number;
53561
53963
  size: number;
53964
+ mtimeMs: number;
53562
53965
  } | null;
53563
53966
  }, {
53564
53967
  code: "stale_project_config";
53565
53968
  currentRevision: {
53566
- mtimeMs: number;
53567
53969
  size: number;
53970
+ mtimeMs: number;
53568
53971
  } | null;
53569
53972
  }>, z.ZodObject<{
53570
53973
  code: z.ZodLiteral<"write_failed">;
@@ -53581,8 +53984,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53581
53984
  } | {
53582
53985
  code: "stale_project_config";
53583
53986
  currentRevision: {
53584
- mtimeMs: number;
53585
53987
  size: number;
53988
+ mtimeMs: number;
53586
53989
  } | null;
53587
53990
  } | {
53588
53991
  code: "write_failed";
@@ -53598,8 +54001,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53598
54001
  } | {
53599
54002
  code: "stale_project_config";
53600
54003
  currentRevision: {
53601
- mtimeMs: number;
53602
54004
  size: number;
54005
+ mtimeMs: number;
53603
54006
  } | null;
53604
54007
  } | {
53605
54008
  code: "write_failed";
@@ -53659,8 +54062,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53659
54062
  repoRoot: string;
53660
54063
  ok: true;
53661
54064
  revision: {
53662
- mtimeMs: number;
53663
54065
  size: number;
54066
+ mtimeMs: number;
53664
54067
  };
53665
54068
  } | {
53666
54069
  error: {
@@ -53670,8 +54073,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53670
54073
  } | {
53671
54074
  code: "stale_project_config";
53672
54075
  currentRevision: {
53673
- mtimeMs: number;
53674
54076
  size: number;
54077
+ mtimeMs: number;
53675
54078
  } | null;
53676
54079
  } | {
53677
54080
  code: "write_failed";
@@ -53702,8 +54105,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53702
54105
  repoRoot: string;
53703
54106
  ok: true;
53704
54107
  revision: {
53705
- mtimeMs: number;
53706
54108
  size: number;
54109
+ mtimeMs: number;
53707
54110
  };
53708
54111
  } | {
53709
54112
  error: {
@@ -53713,8 +54116,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
53713
54116
  } | {
53714
54117
  code: "stale_project_config";
53715
54118
  currentRevision: {
53716
- mtimeMs: number;
53717
54119
  size: number;
54120
+ mtimeMs: number;
53718
54121
  } | null;
53719
54122
  } | {
53720
54123
  code: "write_failed";
@@ -59724,19 +60127,19 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
59724
60127
  path: string;
59725
60128
  mimeType: string | null;
59726
60129
  cwd: string;
59727
- requestId: string;
60130
+ fileName: string | null;
59728
60131
  size: number | null;
60132
+ requestId: string;
59729
60133
  token: string | null;
59730
- fileName: string | null;
59731
60134
  }, {
59732
60135
  error: string | null;
59733
60136
  path: string;
59734
60137
  mimeType: string | null;
59735
60138
  cwd: string;
59736
- requestId: string;
60139
+ fileName: string | null;
59737
60140
  size: number | null;
60141
+ requestId: string;
59738
60142
  token: string | null;
59739
- fileName: string | null;
59740
60143
  }>;
59741
60144
  }, "strip", z.ZodTypeAny, {
59742
60145
  type: "file_download_token_response";
@@ -59745,10 +60148,10 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
59745
60148
  path: string;
59746
60149
  mimeType: string | null;
59747
60150
  cwd: string;
59748
- requestId: string;
60151
+ fileName: string | null;
59749
60152
  size: number | null;
60153
+ requestId: string;
59750
60154
  token: string | null;
59751
- fileName: string | null;
59752
60155
  };
59753
60156
  }, {
59754
60157
  type: "file_download_token_response";
@@ -59757,10 +60160,88 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
59757
60160
  path: string;
59758
60161
  mimeType: string | null;
59759
60162
  cwd: string;
59760
- requestId: string;
60163
+ fileName: string | null;
59761
60164
  size: number | null;
60165
+ requestId: string;
59762
60166
  token: string | null;
59763
- fileName: string | null;
60167
+ };
60168
+ }>, z.ZodObject<{
60169
+ type: z.ZodLiteral<"file.upload.response">;
60170
+ payload: z.ZodObject<{
60171
+ requestId: z.ZodString;
60172
+ file: z.ZodNullable<z.ZodObject<{
60173
+ type: z.ZodLiteral<"uploaded_file">;
60174
+ id: z.ZodString;
60175
+ fileName: z.ZodString;
60176
+ mimeType: z.ZodString;
60177
+ size: z.ZodNumber;
60178
+ path: z.ZodString;
60179
+ }, "strip", z.ZodTypeAny, {
60180
+ type: "uploaded_file";
60181
+ path: string;
60182
+ mimeType: string;
60183
+ id: string;
60184
+ fileName: string;
60185
+ size: number;
60186
+ }, {
60187
+ type: "uploaded_file";
60188
+ path: string;
60189
+ mimeType: string;
60190
+ id: string;
60191
+ fileName: string;
60192
+ size: number;
60193
+ }>>;
60194
+ error: z.ZodNullable<z.ZodString>;
60195
+ }, "strip", z.ZodTypeAny, {
60196
+ error: string | null;
60197
+ requestId: string;
60198
+ file: {
60199
+ type: "uploaded_file";
60200
+ path: string;
60201
+ mimeType: string;
60202
+ id: string;
60203
+ fileName: string;
60204
+ size: number;
60205
+ } | null;
60206
+ }, {
60207
+ error: string | null;
60208
+ requestId: string;
60209
+ file: {
60210
+ type: "uploaded_file";
60211
+ path: string;
60212
+ mimeType: string;
60213
+ id: string;
60214
+ fileName: string;
60215
+ size: number;
60216
+ } | null;
60217
+ }>;
60218
+ }, "strip", z.ZodTypeAny, {
60219
+ type: "file.upload.response";
60220
+ payload: {
60221
+ error: string | null;
60222
+ requestId: string;
60223
+ file: {
60224
+ type: "uploaded_file";
60225
+ path: string;
60226
+ mimeType: string;
60227
+ id: string;
60228
+ fileName: string;
60229
+ size: number;
60230
+ } | null;
60231
+ };
60232
+ }, {
60233
+ type: "file.upload.response";
60234
+ payload: {
60235
+ error: string | null;
60236
+ requestId: string;
60237
+ file: {
60238
+ type: "uploaded_file";
60239
+ path: string;
60240
+ mimeType: string;
60241
+ id: string;
60242
+ fileName: string;
60243
+ size: number;
60244
+ } | null;
59764
60245
  };
59765
60246
  }>, z.ZodObject<{
59766
60247
  type: z.ZodLiteral<"list_provider_models_response">;
@@ -67619,6 +68100,8 @@ export type ProjectIconResponse = z.infer<typeof ProjectIconResponseSchema>;
67619
68100
  export type ProjectIcon = z.infer<typeof ProjectIconSchema>;
67620
68101
  export type FileDownloadTokenRequest = z.infer<typeof FileDownloadTokenRequestSchema>;
67621
68102
  export type FileDownloadTokenResponse = z.infer<typeof FileDownloadTokenResponseSchema>;
68103
+ export type FileUploadRequest = z.infer<typeof FileUploadRequestSchema>;
68104
+ export type FileUploadResponse = z.infer<typeof FileUploadResponseSchema>;
67622
68105
  export type RestartServerRequestMessage = z.infer<typeof RestartServerRequestMessageSchema>;
67623
68106
  export type ShutdownServerRequestMessage = z.infer<typeof ShutdownServerRequestMessageSchema>;
67624
68107
  export type ClearAgentAttentionMessage = z.infer<typeof ClearAgentAttentionMessageSchema>;
@@ -68210,6 +68693,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
68210
68693
  };
68211
68694
  }[];
68212
68695
  baseRef?: string | null | undefined;
68696
+ } | {
68697
+ type: "uploaded_file";
68698
+ path: string;
68699
+ mimeType: string;
68700
+ id: string;
68701
+ fileName: string;
68702
+ size: number;
68213
68703
  })[], unknown>>;
68214
68704
  }, "strip", z.ZodTypeAny, {
68215
68705
  agentId: string;
@@ -68269,6 +68759,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
68269
68759
  };
68270
68760
  }[];
68271
68761
  baseRef?: string | null | undefined;
68762
+ } | {
68763
+ type: "uploaded_file";
68764
+ path: string;
68765
+ mimeType: string;
68766
+ id: string;
68767
+ fileName: string;
68768
+ size: number;
68272
68769
  })[] | undefined;
68273
68770
  }, {
68274
68771
  agentId: string;
@@ -69110,11 +69607,11 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69110
69607
  mtimeMs: z.ZodNumber;
69111
69608
  size: z.ZodNumber;
69112
69609
  }, "strip", z.ZodTypeAny, {
69113
- mtimeMs: number;
69114
69610
  size: number;
69115
- }, {
69116
69611
  mtimeMs: number;
69612
+ }, {
69117
69613
  size: number;
69614
+ mtimeMs: number;
69118
69615
  }>>;
69119
69616
  }, "strip", z.ZodTypeAny, {
69120
69617
  type: "write_project_config_request";
@@ -69165,8 +69662,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69165
69662
  };
69166
69663
  repoRoot: string;
69167
69664
  expectedRevision: {
69168
- mtimeMs: number;
69169
69665
  size: number;
69666
+ mtimeMs: number;
69170
69667
  } | null;
69171
69668
  }, {
69172
69669
  type: "write_project_config_request";
@@ -69188,8 +69685,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69188
69685
  };
69189
69686
  repoRoot: string;
69190
69687
  expectedRevision: {
69191
- mtimeMs: number;
69192
69688
  size: number;
69689
+ mtimeMs: number;
69193
69690
  } | null;
69194
69691
  }>, z.ZodObject<{
69195
69692
  type: z.ZodLiteral<"dictation_stream_start">;
@@ -69272,39 +69769,48 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69272
69769
  command: z.ZodString;
69273
69770
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
69274
69771
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
69772
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
69275
69773
  }, "strip", z.ZodTypeAny, {
69276
69774
  type: "stdio";
69277
69775
  command: string;
69278
69776
  args?: string[] | undefined;
69279
69777
  env?: Record<string, string> | undefined;
69778
+ alwaysLoad?: boolean | undefined;
69280
69779
  }, {
69281
69780
  type: "stdio";
69282
69781
  command: string;
69283
69782
  args?: string[] | undefined;
69284
69783
  env?: Record<string, string> | undefined;
69784
+ alwaysLoad?: boolean | undefined;
69285
69785
  }>, z.ZodObject<{
69286
69786
  type: z.ZodLiteral<"http">;
69287
69787
  url: z.ZodString;
69288
69788
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
69789
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
69289
69790
  }, "strip", z.ZodTypeAny, {
69290
69791
  type: "http";
69291
69792
  url: string;
69793
+ alwaysLoad?: boolean | undefined;
69292
69794
  headers?: Record<string, string> | undefined;
69293
69795
  }, {
69294
69796
  type: "http";
69295
69797
  url: string;
69798
+ alwaysLoad?: boolean | undefined;
69296
69799
  headers?: Record<string, string> | undefined;
69297
69800
  }>, z.ZodObject<{
69298
69801
  type: z.ZodLiteral<"sse">;
69299
69802
  url: z.ZodString;
69300
69803
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
69804
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
69301
69805
  }, "strip", z.ZodTypeAny, {
69302
69806
  type: "sse";
69303
69807
  url: string;
69808
+ alwaysLoad?: boolean | undefined;
69304
69809
  headers?: Record<string, string> | undefined;
69305
69810
  }, {
69306
69811
  type: "sse";
69307
69812
  url: string;
69813
+ alwaysLoad?: boolean | undefined;
69308
69814
  headers?: Record<string, string> | undefined;
69309
69815
  }>]>>>;
69310
69816
  }, "strip", z.ZodTypeAny, {
@@ -69329,13 +69835,16 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69329
69835
  command: string;
69330
69836
  args?: string[] | undefined;
69331
69837
  env?: Record<string, string> | undefined;
69838
+ alwaysLoad?: boolean | undefined;
69332
69839
  } | {
69333
69840
  type: "http";
69334
69841
  url: string;
69842
+ alwaysLoad?: boolean | undefined;
69335
69843
  headers?: Record<string, string> | undefined;
69336
69844
  } | {
69337
69845
  type: "sse";
69338
69846
  url: string;
69847
+ alwaysLoad?: boolean | undefined;
69339
69848
  headers?: Record<string, string> | undefined;
69340
69849
  }> | undefined;
69341
69850
  }, {
@@ -69360,13 +69869,16 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69360
69869
  command: string;
69361
69870
  args?: string[] | undefined;
69362
69871
  env?: Record<string, string> | undefined;
69872
+ alwaysLoad?: boolean | undefined;
69363
69873
  } | {
69364
69874
  type: "http";
69365
69875
  url: string;
69876
+ alwaysLoad?: boolean | undefined;
69366
69877
  headers?: Record<string, string> | undefined;
69367
69878
  } | {
69368
69879
  type: "sse";
69369
69880
  url: string;
69881
+ alwaysLoad?: boolean | undefined;
69370
69882
  headers?: Record<string, string> | undefined;
69371
69883
  }> | undefined;
69372
69884
  }>;
@@ -69434,6 +69946,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69434
69946
  };
69435
69947
  }[];
69436
69948
  baseRef?: string | null | undefined;
69949
+ } | {
69950
+ type: "uploaded_file";
69951
+ path: string;
69952
+ mimeType: string;
69953
+ id: string;
69954
+ fileName: string;
69955
+ size: number;
69437
69956
  })[], unknown>>;
69438
69957
  git: z.ZodOptional<z.ZodObject<{
69439
69958
  baseBranch: z.ZodOptional<z.ZodString>;
@@ -69522,13 +70041,16 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69522
70041
  command: string;
69523
70042
  args?: string[] | undefined;
69524
70043
  env?: Record<string, string> | undefined;
70044
+ alwaysLoad?: boolean | undefined;
69525
70045
  } | {
69526
70046
  type: "http";
69527
70047
  url: string;
70048
+ alwaysLoad?: boolean | undefined;
69528
70049
  headers?: Record<string, string> | undefined;
69529
70050
  } | {
69530
70051
  type: "sse";
69531
70052
  url: string;
70053
+ alwaysLoad?: boolean | undefined;
69532
70054
  headers?: Record<string, string> | undefined;
69533
70055
  }> | undefined;
69534
70056
  };
@@ -69597,6 +70119,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69597
70119
  };
69598
70120
  }[];
69599
70121
  baseRef?: string | null | undefined;
70122
+ } | {
70123
+ type: "uploaded_file";
70124
+ path: string;
70125
+ mimeType: string;
70126
+ id: string;
70127
+ fileName: string;
70128
+ size: number;
69600
70129
  })[] | undefined;
69601
70130
  workspaceId?: string | undefined;
69602
70131
  worktreeName?: string | undefined;
@@ -69639,13 +70168,16 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69639
70168
  command: string;
69640
70169
  args?: string[] | undefined;
69641
70170
  env?: Record<string, string> | undefined;
70171
+ alwaysLoad?: boolean | undefined;
69642
70172
  } | {
69643
70173
  type: "http";
69644
70174
  url: string;
70175
+ alwaysLoad?: boolean | undefined;
69645
70176
  headers?: Record<string, string> | undefined;
69646
70177
  } | {
69647
70178
  type: "sse";
69648
70179
  url: string;
70180
+ alwaysLoad?: boolean | undefined;
69649
70181
  headers?: Record<string, string> | undefined;
69650
70182
  }> | undefined;
69651
70183
  };
@@ -69839,39 +70371,48 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69839
70371
  command: z.ZodString;
69840
70372
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
69841
70373
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
70374
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
69842
70375
  }, "strip", z.ZodTypeAny, {
69843
70376
  type: "stdio";
69844
70377
  command: string;
69845
70378
  args?: string[] | undefined;
69846
70379
  env?: Record<string, string> | undefined;
70380
+ alwaysLoad?: boolean | undefined;
69847
70381
  }, {
69848
70382
  type: "stdio";
69849
70383
  command: string;
69850
70384
  args?: string[] | undefined;
69851
70385
  env?: Record<string, string> | undefined;
70386
+ alwaysLoad?: boolean | undefined;
69852
70387
  }>, z.ZodObject<{
69853
70388
  type: z.ZodLiteral<"http">;
69854
70389
  url: z.ZodString;
69855
70390
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
70391
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
69856
70392
  }, "strip", z.ZodTypeAny, {
69857
70393
  type: "http";
69858
70394
  url: string;
70395
+ alwaysLoad?: boolean | undefined;
69859
70396
  headers?: Record<string, string> | undefined;
69860
70397
  }, {
69861
70398
  type: "http";
69862
70399
  url: string;
70400
+ alwaysLoad?: boolean | undefined;
69863
70401
  headers?: Record<string, string> | undefined;
69864
70402
  }>, z.ZodObject<{
69865
70403
  type: z.ZodLiteral<"sse">;
69866
70404
  url: z.ZodString;
69867
70405
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
70406
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
69868
70407
  }, "strip", z.ZodTypeAny, {
69869
70408
  type: "sse";
69870
70409
  url: string;
70410
+ alwaysLoad?: boolean | undefined;
69871
70411
  headers?: Record<string, string> | undefined;
69872
70412
  }, {
69873
70413
  type: "sse";
69874
70414
  url: string;
70415
+ alwaysLoad?: boolean | undefined;
69875
70416
  headers?: Record<string, string> | undefined;
69876
70417
  }>]>>>>;
69877
70418
  }, "strip", z.ZodTypeAny, {
@@ -69896,13 +70437,16 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69896
70437
  command: string;
69897
70438
  args?: string[] | undefined;
69898
70439
  env?: Record<string, string> | undefined;
70440
+ alwaysLoad?: boolean | undefined;
69899
70441
  } | {
69900
70442
  type: "http";
69901
70443
  url: string;
70444
+ alwaysLoad?: boolean | undefined;
69902
70445
  headers?: Record<string, string> | undefined;
69903
70446
  } | {
69904
70447
  type: "sse";
69905
70448
  url: string;
70449
+ alwaysLoad?: boolean | undefined;
69906
70450
  headers?: Record<string, string> | undefined;
69907
70451
  }> | undefined;
69908
70452
  }, {
@@ -69927,13 +70471,16 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69927
70471
  command: string;
69928
70472
  args?: string[] | undefined;
69929
70473
  env?: Record<string, string> | undefined;
70474
+ alwaysLoad?: boolean | undefined;
69930
70475
  } | {
69931
70476
  type: "http";
69932
70477
  url: string;
70478
+ alwaysLoad?: boolean | undefined;
69933
70479
  headers?: Record<string, string> | undefined;
69934
70480
  } | {
69935
70481
  type: "sse";
69936
70482
  url: string;
70483
+ alwaysLoad?: boolean | undefined;
69937
70484
  headers?: Record<string, string> | undefined;
69938
70485
  }> | undefined;
69939
70486
  }>>;
@@ -69964,13 +70511,16 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
69964
70511
  command: string;
69965
70512
  args?: string[] | undefined;
69966
70513
  env?: Record<string, string> | undefined;
70514
+ alwaysLoad?: boolean | undefined;
69967
70515
  } | {
69968
70516
  type: "http";
69969
70517
  url: string;
70518
+ alwaysLoad?: boolean | undefined;
69970
70519
  headers?: Record<string, string> | undefined;
69971
70520
  } | {
69972
70521
  type: "sse";
69973
70522
  url: string;
70523
+ alwaysLoad?: boolean | undefined;
69974
70524
  headers?: Record<string, string> | undefined;
69975
70525
  }> | undefined;
69976
70526
  } | undefined;
@@ -70000,13 +70550,16 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
70000
70550
  command: string;
70001
70551
  args?: string[] | undefined;
70002
70552
  env?: Record<string, string> | undefined;
70553
+ alwaysLoad?: boolean | undefined;
70003
70554
  } | {
70004
70555
  type: "http";
70005
70556
  url: string;
70557
+ alwaysLoad?: boolean | undefined;
70006
70558
  headers?: Record<string, string> | undefined;
70007
70559
  } | {
70008
70560
  type: "sse";
70009
70561
  url: string;
70562
+ alwaysLoad?: boolean | undefined;
70010
70563
  headers?: Record<string, string> | undefined;
70011
70564
  }> | undefined;
70012
70565
  } | undefined;
@@ -70702,6 +71255,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
70702
71255
  };
70703
71256
  }[];
70704
71257
  baseRef?: string | null | undefined;
71258
+ } | {
71259
+ type: "uploaded_file";
71260
+ path: string;
71261
+ mimeType: string;
71262
+ id: string;
71263
+ fileName: string;
71264
+ size: number;
70705
71265
  })[], unknown>>>;
70706
71266
  firstAgentContext: z.ZodOptional<z.ZodObject<{
70707
71267
  prompt: z.ZodOptional<z.ZodString>;
@@ -70753,6 +71313,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
70753
71313
  };
70754
71314
  }[];
70755
71315
  baseRef?: string | null | undefined;
71316
+ } | {
71317
+ type: "uploaded_file";
71318
+ path: string;
71319
+ mimeType: string;
71320
+ id: string;
71321
+ fileName: string;
71322
+ size: number;
70756
71323
  })[], unknown>>;
70757
71324
  }, "strip", z.ZodTypeAny, {
70758
71325
  prompt?: string | undefined;
@@ -70804,6 +71371,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
70804
71371
  };
70805
71372
  }[];
70806
71373
  baseRef?: string | null | undefined;
71374
+ } | {
71375
+ type: "uploaded_file";
71376
+ path: string;
71377
+ mimeType: string;
71378
+ id: string;
71379
+ fileName: string;
71380
+ size: number;
70807
71381
  })[] | undefined;
70808
71382
  }, {
70809
71383
  prompt?: string | undefined;
@@ -70866,6 +71440,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
70866
71440
  };
70867
71441
  }[];
70868
71442
  baseRef?: string | null | undefined;
71443
+ } | {
71444
+ type: "uploaded_file";
71445
+ path: string;
71446
+ mimeType: string;
71447
+ id: string;
71448
+ fileName: string;
71449
+ size: number;
70869
71450
  })[] | undefined;
70870
71451
  worktreeSlug?: string | undefined;
70871
71452
  refName?: string | undefined;
@@ -70922,6 +71503,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
70922
71503
  };
70923
71504
  }[];
70924
71505
  baseRef?: string | null | undefined;
71506
+ } | {
71507
+ type: "uploaded_file";
71508
+ path: string;
71509
+ mimeType: string;
71510
+ id: string;
71511
+ fileName: string;
71512
+ size: number;
70925
71513
  })[] | undefined;
70926
71514
  } | undefined;
70927
71515
  }, {
@@ -71065,6 +71653,27 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
71065
71653
  path: string;
71066
71654
  cwd: string;
71067
71655
  requestId: string;
71656
+ }>, z.ZodObject<{
71657
+ type: z.ZodLiteral<"file.upload.request">;
71658
+ fileName: z.ZodString;
71659
+ mimeType: z.ZodString;
71660
+ size: z.ZodNumber;
71661
+ modifiedAt: z.ZodString;
71662
+ requestId: z.ZodString;
71663
+ }, "strip", z.ZodTypeAny, {
71664
+ type: "file.upload.request";
71665
+ mimeType: string;
71666
+ fileName: string;
71667
+ size: number;
71668
+ requestId: string;
71669
+ modifiedAt: string;
71670
+ }, {
71671
+ type: "file.upload.request";
71672
+ mimeType: string;
71673
+ fileName: string;
71674
+ size: number;
71675
+ requestId: string;
71676
+ modifiedAt: string;
71068
71677
  }>, z.ZodObject<{
71069
71678
  type: z.ZodLiteral<"clear_agent_attention">;
71070
71679
  agentId: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
@@ -72394,6 +73003,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
72394
73003
  };
72395
73004
  }[];
72396
73005
  baseRef?: string | null | undefined;
73006
+ } | {
73007
+ type: "uploaded_file";
73008
+ path: string;
73009
+ mimeType: string;
73010
+ id: string;
73011
+ fileName: string;
73012
+ size: number;
72397
73013
  })[] | undefined;
72398
73014
  } | {
72399
73015
  agentId: string;
@@ -72508,8 +73124,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
72508
73124
  };
72509
73125
  repoRoot: string;
72510
73126
  expectedRevision: {
72511
- mtimeMs: number;
72512
73127
  size: number;
73128
+ mtimeMs: number;
72513
73129
  } | null;
72514
73130
  } | {
72515
73131
  type: "dictation_stream_start";
@@ -72553,13 +73169,16 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
72553
73169
  command: string;
72554
73170
  args?: string[] | undefined;
72555
73171
  env?: Record<string, string> | undefined;
73172
+ alwaysLoad?: boolean | undefined;
72556
73173
  } | {
72557
73174
  type: "http";
72558
73175
  url: string;
73176
+ alwaysLoad?: boolean | undefined;
72559
73177
  headers?: Record<string, string> | undefined;
72560
73178
  } | {
72561
73179
  type: "sse";
72562
73180
  url: string;
73181
+ alwaysLoad?: boolean | undefined;
72563
73182
  headers?: Record<string, string> | undefined;
72564
73183
  }> | undefined;
72565
73184
  };
@@ -72628,6 +73247,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
72628
73247
  };
72629
73248
  }[];
72630
73249
  baseRef?: string | null | undefined;
73250
+ } | {
73251
+ type: "uploaded_file";
73252
+ path: string;
73253
+ mimeType: string;
73254
+ id: string;
73255
+ fileName: string;
73256
+ size: number;
72631
73257
  })[] | undefined;
72632
73258
  workspaceId?: string | undefined;
72633
73259
  worktreeName?: string | undefined;
@@ -72697,13 +73323,16 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
72697
73323
  command: string;
72698
73324
  args?: string[] | undefined;
72699
73325
  env?: Record<string, string> | undefined;
73326
+ alwaysLoad?: boolean | undefined;
72700
73327
  } | {
72701
73328
  type: "http";
72702
73329
  url: string;
73330
+ alwaysLoad?: boolean | undefined;
72703
73331
  headers?: Record<string, string> | undefined;
72704
73332
  } | {
72705
73333
  type: "sse";
72706
73334
  url: string;
73335
+ alwaysLoad?: boolean | undefined;
72707
73336
  headers?: Record<string, string> | undefined;
72708
73337
  }> | undefined;
72709
73338
  } | undefined;
@@ -72967,6 +73596,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
72967
73596
  };
72968
73597
  }[];
72969
73598
  baseRef?: string | null | undefined;
73599
+ } | {
73600
+ type: "uploaded_file";
73601
+ path: string;
73602
+ mimeType: string;
73603
+ id: string;
73604
+ fileName: string;
73605
+ size: number;
72970
73606
  })[] | undefined;
72971
73607
  worktreeSlug?: string | undefined;
72972
73608
  refName?: string | undefined;
@@ -73023,6 +73659,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
73023
73659
  };
73024
73660
  }[];
73025
73661
  baseRef?: string | null | undefined;
73662
+ } | {
73663
+ type: "uploaded_file";
73664
+ path: string;
73665
+ mimeType: string;
73666
+ id: string;
73667
+ fileName: string;
73668
+ size: number;
73026
73669
  })[] | undefined;
73027
73670
  } | undefined;
73028
73671
  } | {
@@ -73067,6 +73710,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
73067
73710
  path: string;
73068
73711
  cwd: string;
73069
73712
  requestId: string;
73713
+ } | {
73714
+ type: "file.upload.request";
73715
+ mimeType: string;
73716
+ fileName: string;
73717
+ size: number;
73718
+ requestId: string;
73719
+ modifiedAt: string;
73070
73720
  } | {
73071
73721
  agentId: string | string[];
73072
73722
  type: "clear_agent_attention";
@@ -73553,8 +74203,8 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
73553
74203
  };
73554
74204
  repoRoot: string;
73555
74205
  expectedRevision: {
73556
- mtimeMs: number;
73557
74206
  size: number;
74207
+ mtimeMs: number;
73558
74208
  } | null;
73559
74209
  } | {
73560
74210
  type: "dictation_stream_start";
@@ -73598,13 +74248,16 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
73598
74248
  command: string;
73599
74249
  args?: string[] | undefined;
73600
74250
  env?: Record<string, string> | undefined;
74251
+ alwaysLoad?: boolean | undefined;
73601
74252
  } | {
73602
74253
  type: "http";
73603
74254
  url: string;
74255
+ alwaysLoad?: boolean | undefined;
73604
74256
  headers?: Record<string, string> | undefined;
73605
74257
  } | {
73606
74258
  type: "sse";
73607
74259
  url: string;
74260
+ alwaysLoad?: boolean | undefined;
73608
74261
  headers?: Record<string, string> | undefined;
73609
74262
  }> | undefined;
73610
74263
  };
@@ -73694,13 +74347,16 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
73694
74347
  command: string;
73695
74348
  args?: string[] | undefined;
73696
74349
  env?: Record<string, string> | undefined;
74350
+ alwaysLoad?: boolean | undefined;
73697
74351
  } | {
73698
74352
  type: "http";
73699
74353
  url: string;
74354
+ alwaysLoad?: boolean | undefined;
73700
74355
  headers?: Record<string, string> | undefined;
73701
74356
  } | {
73702
74357
  type: "sse";
73703
74358
  url: string;
74359
+ alwaysLoad?: boolean | undefined;
73704
74360
  headers?: Record<string, string> | undefined;
73705
74361
  }> | undefined;
73706
74362
  } | undefined;
@@ -73968,6 +74624,13 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
73968
74624
  path: string;
73969
74625
  cwd: string;
73970
74626
  requestId: string;
74627
+ } | {
74628
+ type: "file.upload.request";
74629
+ mimeType: string;
74630
+ fileName: string;
74631
+ size: number;
74632
+ requestId: string;
74633
+ modifiedAt: string;
73971
74634
  } | {
73972
74635
  agentId: string | string[];
73973
74636
  type: "clear_agent_attention";
@@ -87743,11 +88406,11 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
87743
88406
  mtimeMs: z.ZodNumber;
87744
88407
  size: z.ZodNumber;
87745
88408
  }, "strip", z.ZodTypeAny, {
87746
- mtimeMs: number;
87747
88409
  size: number;
87748
- }, {
87749
88410
  mtimeMs: number;
88411
+ }, {
87750
88412
  size: number;
88413
+ mtimeMs: number;
87751
88414
  }>>;
87752
88415
  }, "strip", z.ZodTypeAny, {
87753
88416
  requestId: string;
@@ -87870,8 +88533,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
87870
88533
  repoRoot: string;
87871
88534
  ok: true;
87872
88535
  revision: {
87873
- mtimeMs: number;
87874
88536
  size: number;
88537
+ mtimeMs: number;
87875
88538
  } | null;
87876
88539
  }, {
87877
88540
  requestId: string;
@@ -87994,8 +88657,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
87994
88657
  repoRoot: string;
87995
88658
  ok: true;
87996
88659
  revision: {
87997
- mtimeMs: number;
87998
88660
  size: number;
88661
+ mtimeMs: number;
87999
88662
  } | null;
88000
88663
  }>, z.ZodObject<{
88001
88664
  requestId: z.ZodString;
@@ -88019,23 +88682,23 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88019
88682
  mtimeMs: z.ZodNumber;
88020
88683
  size: z.ZodNumber;
88021
88684
  }, "strip", z.ZodTypeAny, {
88022
- mtimeMs: number;
88023
88685
  size: number;
88024
- }, {
88025
88686
  mtimeMs: number;
88687
+ }, {
88026
88688
  size: number;
88689
+ mtimeMs: number;
88027
88690
  }>>;
88028
88691
  }, "strip", z.ZodTypeAny, {
88029
88692
  code: "stale_project_config";
88030
88693
  currentRevision: {
88031
- mtimeMs: number;
88032
88694
  size: number;
88695
+ mtimeMs: number;
88033
88696
  } | null;
88034
88697
  }, {
88035
88698
  code: "stale_project_config";
88036
88699
  currentRevision: {
88037
- mtimeMs: number;
88038
88700
  size: number;
88701
+ mtimeMs: number;
88039
88702
  } | null;
88040
88703
  }>, z.ZodObject<{
88041
88704
  code: z.ZodLiteral<"write_failed">;
@@ -88052,8 +88715,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88052
88715
  } | {
88053
88716
  code: "stale_project_config";
88054
88717
  currentRevision: {
88055
- mtimeMs: number;
88056
88718
  size: number;
88719
+ mtimeMs: number;
88057
88720
  } | null;
88058
88721
  } | {
88059
88722
  code: "write_failed";
@@ -88069,8 +88732,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88069
88732
  } | {
88070
88733
  code: "stale_project_config";
88071
88734
  currentRevision: {
88072
- mtimeMs: number;
88073
88735
  size: number;
88736
+ mtimeMs: number;
88074
88737
  } | null;
88075
88738
  } | {
88076
88739
  code: "write_failed";
@@ -88202,8 +88865,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88202
88865
  repoRoot: string;
88203
88866
  ok: true;
88204
88867
  revision: {
88205
- mtimeMs: number;
88206
88868
  size: number;
88869
+ mtimeMs: number;
88207
88870
  } | null;
88208
88871
  } | {
88209
88872
  error: {
@@ -88213,8 +88876,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88213
88876
  } | {
88214
88877
  code: "stale_project_config";
88215
88878
  currentRevision: {
88216
- mtimeMs: number;
88217
88879
  size: number;
88880
+ mtimeMs: number;
88218
88881
  } | null;
88219
88882
  } | {
88220
88883
  code: "write_failed";
@@ -88346,8 +89009,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88346
89009
  repoRoot: string;
88347
89010
  ok: true;
88348
89011
  revision: {
88349
- mtimeMs: number;
88350
89012
  size: number;
89013
+ mtimeMs: number;
88351
89014
  } | null;
88352
89015
  } | {
88353
89016
  error: {
@@ -88357,8 +89020,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88357
89020
  } | {
88358
89021
  code: "stale_project_config";
88359
89022
  currentRevision: {
88360
- mtimeMs: number;
88361
89023
  size: number;
89024
+ mtimeMs: number;
88362
89025
  } | null;
88363
89026
  } | {
88364
89027
  code: "write_failed";
@@ -88723,11 +89386,11 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88723
89386
  mtimeMs: z.ZodNumber;
88724
89387
  size: z.ZodNumber;
88725
89388
  }, "strip", z.ZodTypeAny, {
88726
- mtimeMs: number;
88727
89389
  size: number;
88728
- }, {
88729
89390
  mtimeMs: number;
89391
+ }, {
88730
89392
  size: number;
89393
+ mtimeMs: number;
88731
89394
  }>;
88732
89395
  }, "strip", z.ZodTypeAny, {
88733
89396
  requestId: string;
@@ -88778,8 +89441,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88778
89441
  repoRoot: string;
88779
89442
  ok: true;
88780
89443
  revision: {
88781
- mtimeMs: number;
88782
89444
  size: number;
89445
+ mtimeMs: number;
88783
89446
  };
88784
89447
  }, {
88785
89448
  requestId: string;
@@ -88801,8 +89464,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88801
89464
  repoRoot: string;
88802
89465
  ok: true;
88803
89466
  revision: {
88804
- mtimeMs: number;
88805
89467
  size: number;
89468
+ mtimeMs: number;
88806
89469
  };
88807
89470
  }>, z.ZodObject<{
88808
89471
  requestId: z.ZodString;
@@ -88826,23 +89489,23 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88826
89489
  mtimeMs: z.ZodNumber;
88827
89490
  size: z.ZodNumber;
88828
89491
  }, "strip", z.ZodTypeAny, {
88829
- mtimeMs: number;
88830
89492
  size: number;
88831
- }, {
88832
89493
  mtimeMs: number;
89494
+ }, {
88833
89495
  size: number;
89496
+ mtimeMs: number;
88834
89497
  }>>;
88835
89498
  }, "strip", z.ZodTypeAny, {
88836
89499
  code: "stale_project_config";
88837
89500
  currentRevision: {
88838
- mtimeMs: number;
88839
89501
  size: number;
89502
+ mtimeMs: number;
88840
89503
  } | null;
88841
89504
  }, {
88842
89505
  code: "stale_project_config";
88843
89506
  currentRevision: {
88844
- mtimeMs: number;
88845
89507
  size: number;
89508
+ mtimeMs: number;
88846
89509
  } | null;
88847
89510
  }>, z.ZodObject<{
88848
89511
  code: z.ZodLiteral<"write_failed">;
@@ -88859,8 +89522,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88859
89522
  } | {
88860
89523
  code: "stale_project_config";
88861
89524
  currentRevision: {
88862
- mtimeMs: number;
88863
89525
  size: number;
89526
+ mtimeMs: number;
88864
89527
  } | null;
88865
89528
  } | {
88866
89529
  code: "write_failed";
@@ -88876,8 +89539,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88876
89539
  } | {
88877
89540
  code: "stale_project_config";
88878
89541
  currentRevision: {
88879
- mtimeMs: number;
88880
89542
  size: number;
89543
+ mtimeMs: number;
88881
89544
  } | null;
88882
89545
  } | {
88883
89546
  code: "write_failed";
@@ -88937,8 +89600,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88937
89600
  repoRoot: string;
88938
89601
  ok: true;
88939
89602
  revision: {
88940
- mtimeMs: number;
88941
89603
  size: number;
89604
+ mtimeMs: number;
88942
89605
  };
88943
89606
  } | {
88944
89607
  error: {
@@ -88948,8 +89611,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88948
89611
  } | {
88949
89612
  code: "stale_project_config";
88950
89613
  currentRevision: {
88951
- mtimeMs: number;
88952
89614
  size: number;
89615
+ mtimeMs: number;
88953
89616
  } | null;
88954
89617
  } | {
88955
89618
  code: "write_failed";
@@ -88980,8 +89643,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88980
89643
  repoRoot: string;
88981
89644
  ok: true;
88982
89645
  revision: {
88983
- mtimeMs: number;
88984
89646
  size: number;
89647
+ mtimeMs: number;
88985
89648
  };
88986
89649
  } | {
88987
89650
  error: {
@@ -88991,8 +89654,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
88991
89654
  } | {
88992
89655
  code: "stale_project_config";
88993
89656
  currentRevision: {
88994
- mtimeMs: number;
88995
89657
  size: number;
89658
+ mtimeMs: number;
88996
89659
  } | null;
88997
89660
  } | {
88998
89661
  code: "write_failed";
@@ -95002,19 +95665,19 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
95002
95665
  path: string;
95003
95666
  mimeType: string | null;
95004
95667
  cwd: string;
95005
- requestId: string;
95668
+ fileName: string | null;
95006
95669
  size: number | null;
95670
+ requestId: string;
95007
95671
  token: string | null;
95008
- fileName: string | null;
95009
95672
  }, {
95010
95673
  error: string | null;
95011
95674
  path: string;
95012
95675
  mimeType: string | null;
95013
95676
  cwd: string;
95014
- requestId: string;
95677
+ fileName: string | null;
95015
95678
  size: number | null;
95679
+ requestId: string;
95016
95680
  token: string | null;
95017
- fileName: string | null;
95018
95681
  }>;
95019
95682
  }, "strip", z.ZodTypeAny, {
95020
95683
  type: "file_download_token_response";
@@ -95023,10 +95686,10 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
95023
95686
  path: string;
95024
95687
  mimeType: string | null;
95025
95688
  cwd: string;
95026
- requestId: string;
95689
+ fileName: string | null;
95027
95690
  size: number | null;
95691
+ requestId: string;
95028
95692
  token: string | null;
95029
- fileName: string | null;
95030
95693
  };
95031
95694
  }, {
95032
95695
  type: "file_download_token_response";
@@ -95035,10 +95698,88 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
95035
95698
  path: string;
95036
95699
  mimeType: string | null;
95037
95700
  cwd: string;
95038
- requestId: string;
95701
+ fileName: string | null;
95039
95702
  size: number | null;
95703
+ requestId: string;
95040
95704
  token: string | null;
95041
- fileName: string | null;
95705
+ };
95706
+ }>, z.ZodObject<{
95707
+ type: z.ZodLiteral<"file.upload.response">;
95708
+ payload: z.ZodObject<{
95709
+ requestId: z.ZodString;
95710
+ file: z.ZodNullable<z.ZodObject<{
95711
+ type: z.ZodLiteral<"uploaded_file">;
95712
+ id: z.ZodString;
95713
+ fileName: z.ZodString;
95714
+ mimeType: z.ZodString;
95715
+ size: z.ZodNumber;
95716
+ path: z.ZodString;
95717
+ }, "strip", z.ZodTypeAny, {
95718
+ type: "uploaded_file";
95719
+ path: string;
95720
+ mimeType: string;
95721
+ id: string;
95722
+ fileName: string;
95723
+ size: number;
95724
+ }, {
95725
+ type: "uploaded_file";
95726
+ path: string;
95727
+ mimeType: string;
95728
+ id: string;
95729
+ fileName: string;
95730
+ size: number;
95731
+ }>>;
95732
+ error: z.ZodNullable<z.ZodString>;
95733
+ }, "strip", z.ZodTypeAny, {
95734
+ error: string | null;
95735
+ requestId: string;
95736
+ file: {
95737
+ type: "uploaded_file";
95738
+ path: string;
95739
+ mimeType: string;
95740
+ id: string;
95741
+ fileName: string;
95742
+ size: number;
95743
+ } | null;
95744
+ }, {
95745
+ error: string | null;
95746
+ requestId: string;
95747
+ file: {
95748
+ type: "uploaded_file";
95749
+ path: string;
95750
+ mimeType: string;
95751
+ id: string;
95752
+ fileName: string;
95753
+ size: number;
95754
+ } | null;
95755
+ }>;
95756
+ }, "strip", z.ZodTypeAny, {
95757
+ type: "file.upload.response";
95758
+ payload: {
95759
+ error: string | null;
95760
+ requestId: string;
95761
+ file: {
95762
+ type: "uploaded_file";
95763
+ path: string;
95764
+ mimeType: string;
95765
+ id: string;
95766
+ fileName: string;
95767
+ size: number;
95768
+ } | null;
95769
+ };
95770
+ }, {
95771
+ type: "file.upload.response";
95772
+ payload: {
95773
+ error: string | null;
95774
+ requestId: string;
95775
+ file: {
95776
+ type: "uploaded_file";
95777
+ path: string;
95778
+ mimeType: string;
95779
+ id: string;
95780
+ fileName: string;
95781
+ size: number;
95782
+ } | null;
95042
95783
  };
95043
95784
  }>, z.ZodObject<{
95044
95785
  type: z.ZodLiteral<"list_provider_models_response">;
@@ -105158,8 +105899,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
105158
105899
  repoRoot: string;
105159
105900
  ok: true;
105160
105901
  revision: {
105161
- mtimeMs: number;
105162
105902
  size: number;
105903
+ mtimeMs: number;
105163
105904
  } | null;
105164
105905
  } | {
105165
105906
  error: {
@@ -105169,8 +105910,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
105169
105910
  } | {
105170
105911
  code: "stale_project_config";
105171
105912
  currentRevision: {
105172
- mtimeMs: number;
105173
105913
  size: number;
105914
+ mtimeMs: number;
105174
105915
  } | null;
105175
105916
  } | {
105176
105917
  code: "write_failed";
@@ -105230,8 +105971,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
105230
105971
  repoRoot: string;
105231
105972
  ok: true;
105232
105973
  revision: {
105233
- mtimeMs: number;
105234
105974
  size: number;
105975
+ mtimeMs: number;
105235
105976
  };
105236
105977
  } | {
105237
105978
  error: {
@@ -105241,8 +105982,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
105241
105982
  } | {
105242
105983
  code: "stale_project_config";
105243
105984
  currentRevision: {
105244
- mtimeMs: number;
105245
105985
  size: number;
105986
+ mtimeMs: number;
105246
105987
  } | null;
105247
105988
  } | {
105248
105989
  code: "write_failed";
@@ -106026,10 +106767,24 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
106026
106767
  path: string;
106027
106768
  mimeType: string | null;
106028
106769
  cwd: string;
106029
- requestId: string;
106770
+ fileName: string | null;
106030
106771
  size: number | null;
106772
+ requestId: string;
106031
106773
  token: string | null;
106032
- fileName: string | null;
106774
+ };
106775
+ } | {
106776
+ type: "file.upload.response";
106777
+ payload: {
106778
+ error: string | null;
106779
+ requestId: string;
106780
+ file: {
106781
+ type: "uploaded_file";
106782
+ path: string;
106783
+ mimeType: string;
106784
+ id: string;
106785
+ fileName: string;
106786
+ size: number;
106787
+ } | null;
106033
106788
  };
106034
106789
  } | {
106035
106790
  type: "list_provider_models_response";
@@ -108708,8 +109463,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
108708
109463
  repoRoot: string;
108709
109464
  ok: true;
108710
109465
  revision: {
108711
- mtimeMs: number;
108712
109466
  size: number;
109467
+ mtimeMs: number;
108713
109468
  } | null;
108714
109469
  } | {
108715
109470
  error: {
@@ -108719,8 +109474,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
108719
109474
  } | {
108720
109475
  code: "stale_project_config";
108721
109476
  currentRevision: {
108722
- mtimeMs: number;
108723
109477
  size: number;
109478
+ mtimeMs: number;
108724
109479
  } | null;
108725
109480
  } | {
108726
109481
  code: "write_failed";
@@ -108751,8 +109506,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
108751
109506
  repoRoot: string;
108752
109507
  ok: true;
108753
109508
  revision: {
108754
- mtimeMs: number;
108755
109509
  size: number;
109510
+ mtimeMs: number;
108756
109511
  };
108757
109512
  } | {
108758
109513
  error: {
@@ -108762,8 +109517,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
108762
109517
  } | {
108763
109518
  code: "stale_project_config";
108764
109519
  currentRevision: {
108765
- mtimeMs: number;
108766
109520
  size: number;
109521
+ mtimeMs: number;
108767
109522
  } | null;
108768
109523
  } | {
108769
109524
  code: "write_failed";
@@ -109523,10 +110278,24 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
109523
110278
  path: string;
109524
110279
  mimeType: string | null;
109525
110280
  cwd: string;
109526
- requestId: string;
110281
+ fileName: string | null;
109527
110282
  size: number | null;
110283
+ requestId: string;
109528
110284
  token: string | null;
109529
- fileName: string | null;
110285
+ };
110286
+ } | {
110287
+ type: "file.upload.response";
110288
+ payload: {
110289
+ error: string | null;
110290
+ requestId: string;
110291
+ file: {
110292
+ type: "uploaded_file";
110293
+ path: string;
110294
+ mimeType: string;
110295
+ id: string;
110296
+ fileName: string;
110297
+ size: number;
110298
+ } | null;
109530
110299
  };
109531
110300
  } | {
109532
110301
  type: "list_provider_models_response";
@@ -110272,6 +111041,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
110272
111041
  };
110273
111042
  }[];
110274
111043
  baseRef?: string | null | undefined;
111044
+ } | {
111045
+ type: "uploaded_file";
111046
+ path: string;
111047
+ mimeType: string;
111048
+ id: string;
111049
+ fileName: string;
111050
+ size: number;
110275
111051
  })[], unknown>>;
110276
111052
  }, "strip", z.ZodTypeAny, {
110277
111053
  agentId: string;
@@ -110331,6 +111107,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
110331
111107
  };
110332
111108
  }[];
110333
111109
  baseRef?: string | null | undefined;
111110
+ } | {
111111
+ type: "uploaded_file";
111112
+ path: string;
111113
+ mimeType: string;
111114
+ id: string;
111115
+ fileName: string;
111116
+ size: number;
110334
111117
  })[] | undefined;
110335
111118
  }, {
110336
111119
  agentId: string;
@@ -111172,11 +111955,11 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111172
111955
  mtimeMs: z.ZodNumber;
111173
111956
  size: z.ZodNumber;
111174
111957
  }, "strip", z.ZodTypeAny, {
111175
- mtimeMs: number;
111176
111958
  size: number;
111177
- }, {
111178
111959
  mtimeMs: number;
111960
+ }, {
111179
111961
  size: number;
111962
+ mtimeMs: number;
111180
111963
  }>>;
111181
111964
  }, "strip", z.ZodTypeAny, {
111182
111965
  type: "write_project_config_request";
@@ -111227,8 +112010,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111227
112010
  };
111228
112011
  repoRoot: string;
111229
112012
  expectedRevision: {
111230
- mtimeMs: number;
111231
112013
  size: number;
112014
+ mtimeMs: number;
111232
112015
  } | null;
111233
112016
  }, {
111234
112017
  type: "write_project_config_request";
@@ -111250,8 +112033,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111250
112033
  };
111251
112034
  repoRoot: string;
111252
112035
  expectedRevision: {
111253
- mtimeMs: number;
111254
112036
  size: number;
112037
+ mtimeMs: number;
111255
112038
  } | null;
111256
112039
  }>, z.ZodObject<{
111257
112040
  type: z.ZodLiteral<"dictation_stream_start">;
@@ -111334,39 +112117,48 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111334
112117
  command: z.ZodString;
111335
112118
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
111336
112119
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
112120
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
111337
112121
  }, "strip", z.ZodTypeAny, {
111338
112122
  type: "stdio";
111339
112123
  command: string;
111340
112124
  args?: string[] | undefined;
111341
112125
  env?: Record<string, string> | undefined;
112126
+ alwaysLoad?: boolean | undefined;
111342
112127
  }, {
111343
112128
  type: "stdio";
111344
112129
  command: string;
111345
112130
  args?: string[] | undefined;
111346
112131
  env?: Record<string, string> | undefined;
112132
+ alwaysLoad?: boolean | undefined;
111347
112133
  }>, z.ZodObject<{
111348
112134
  type: z.ZodLiteral<"http">;
111349
112135
  url: z.ZodString;
111350
112136
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
112137
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
111351
112138
  }, "strip", z.ZodTypeAny, {
111352
112139
  type: "http";
111353
112140
  url: string;
112141
+ alwaysLoad?: boolean | undefined;
111354
112142
  headers?: Record<string, string> | undefined;
111355
112143
  }, {
111356
112144
  type: "http";
111357
112145
  url: string;
112146
+ alwaysLoad?: boolean | undefined;
111358
112147
  headers?: Record<string, string> | undefined;
111359
112148
  }>, z.ZodObject<{
111360
112149
  type: z.ZodLiteral<"sse">;
111361
112150
  url: z.ZodString;
111362
112151
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
112152
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
111363
112153
  }, "strip", z.ZodTypeAny, {
111364
112154
  type: "sse";
111365
112155
  url: string;
112156
+ alwaysLoad?: boolean | undefined;
111366
112157
  headers?: Record<string, string> | undefined;
111367
112158
  }, {
111368
112159
  type: "sse";
111369
112160
  url: string;
112161
+ alwaysLoad?: boolean | undefined;
111370
112162
  headers?: Record<string, string> | undefined;
111371
112163
  }>]>>>;
111372
112164
  }, "strip", z.ZodTypeAny, {
@@ -111391,13 +112183,16 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111391
112183
  command: string;
111392
112184
  args?: string[] | undefined;
111393
112185
  env?: Record<string, string> | undefined;
112186
+ alwaysLoad?: boolean | undefined;
111394
112187
  } | {
111395
112188
  type: "http";
111396
112189
  url: string;
112190
+ alwaysLoad?: boolean | undefined;
111397
112191
  headers?: Record<string, string> | undefined;
111398
112192
  } | {
111399
112193
  type: "sse";
111400
112194
  url: string;
112195
+ alwaysLoad?: boolean | undefined;
111401
112196
  headers?: Record<string, string> | undefined;
111402
112197
  }> | undefined;
111403
112198
  }, {
@@ -111422,13 +112217,16 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111422
112217
  command: string;
111423
112218
  args?: string[] | undefined;
111424
112219
  env?: Record<string, string> | undefined;
112220
+ alwaysLoad?: boolean | undefined;
111425
112221
  } | {
111426
112222
  type: "http";
111427
112223
  url: string;
112224
+ alwaysLoad?: boolean | undefined;
111428
112225
  headers?: Record<string, string> | undefined;
111429
112226
  } | {
111430
112227
  type: "sse";
111431
112228
  url: string;
112229
+ alwaysLoad?: boolean | undefined;
111432
112230
  headers?: Record<string, string> | undefined;
111433
112231
  }> | undefined;
111434
112232
  }>;
@@ -111496,6 +112294,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111496
112294
  };
111497
112295
  }[];
111498
112296
  baseRef?: string | null | undefined;
112297
+ } | {
112298
+ type: "uploaded_file";
112299
+ path: string;
112300
+ mimeType: string;
112301
+ id: string;
112302
+ fileName: string;
112303
+ size: number;
111499
112304
  })[], unknown>>;
111500
112305
  git: z.ZodOptional<z.ZodObject<{
111501
112306
  baseBranch: z.ZodOptional<z.ZodString>;
@@ -111584,13 +112389,16 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111584
112389
  command: string;
111585
112390
  args?: string[] | undefined;
111586
112391
  env?: Record<string, string> | undefined;
112392
+ alwaysLoad?: boolean | undefined;
111587
112393
  } | {
111588
112394
  type: "http";
111589
112395
  url: string;
112396
+ alwaysLoad?: boolean | undefined;
111590
112397
  headers?: Record<string, string> | undefined;
111591
112398
  } | {
111592
112399
  type: "sse";
111593
112400
  url: string;
112401
+ alwaysLoad?: boolean | undefined;
111594
112402
  headers?: Record<string, string> | undefined;
111595
112403
  }> | undefined;
111596
112404
  };
@@ -111659,6 +112467,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111659
112467
  };
111660
112468
  }[];
111661
112469
  baseRef?: string | null | undefined;
112470
+ } | {
112471
+ type: "uploaded_file";
112472
+ path: string;
112473
+ mimeType: string;
112474
+ id: string;
112475
+ fileName: string;
112476
+ size: number;
111662
112477
  })[] | undefined;
111663
112478
  workspaceId?: string | undefined;
111664
112479
  worktreeName?: string | undefined;
@@ -111701,13 +112516,16 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111701
112516
  command: string;
111702
112517
  args?: string[] | undefined;
111703
112518
  env?: Record<string, string> | undefined;
112519
+ alwaysLoad?: boolean | undefined;
111704
112520
  } | {
111705
112521
  type: "http";
111706
112522
  url: string;
112523
+ alwaysLoad?: boolean | undefined;
111707
112524
  headers?: Record<string, string> | undefined;
111708
112525
  } | {
111709
112526
  type: "sse";
111710
112527
  url: string;
112528
+ alwaysLoad?: boolean | undefined;
111711
112529
  headers?: Record<string, string> | undefined;
111712
112530
  }> | undefined;
111713
112531
  };
@@ -111901,39 +112719,48 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111901
112719
  command: z.ZodString;
111902
112720
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
111903
112721
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
112722
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
111904
112723
  }, "strip", z.ZodTypeAny, {
111905
112724
  type: "stdio";
111906
112725
  command: string;
111907
112726
  args?: string[] | undefined;
111908
112727
  env?: Record<string, string> | undefined;
112728
+ alwaysLoad?: boolean | undefined;
111909
112729
  }, {
111910
112730
  type: "stdio";
111911
112731
  command: string;
111912
112732
  args?: string[] | undefined;
111913
112733
  env?: Record<string, string> | undefined;
112734
+ alwaysLoad?: boolean | undefined;
111914
112735
  }>, z.ZodObject<{
111915
112736
  type: z.ZodLiteral<"http">;
111916
112737
  url: z.ZodString;
111917
112738
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
112739
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
111918
112740
  }, "strip", z.ZodTypeAny, {
111919
112741
  type: "http";
111920
112742
  url: string;
112743
+ alwaysLoad?: boolean | undefined;
111921
112744
  headers?: Record<string, string> | undefined;
111922
112745
  }, {
111923
112746
  type: "http";
111924
112747
  url: string;
112748
+ alwaysLoad?: boolean | undefined;
111925
112749
  headers?: Record<string, string> | undefined;
111926
112750
  }>, z.ZodObject<{
111927
112751
  type: z.ZodLiteral<"sse">;
111928
112752
  url: z.ZodString;
111929
112753
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
112754
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
111930
112755
  }, "strip", z.ZodTypeAny, {
111931
112756
  type: "sse";
111932
112757
  url: string;
112758
+ alwaysLoad?: boolean | undefined;
111933
112759
  headers?: Record<string, string> | undefined;
111934
112760
  }, {
111935
112761
  type: "sse";
111936
112762
  url: string;
112763
+ alwaysLoad?: boolean | undefined;
111937
112764
  headers?: Record<string, string> | undefined;
111938
112765
  }>]>>>>;
111939
112766
  }, "strip", z.ZodTypeAny, {
@@ -111958,13 +112785,16 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111958
112785
  command: string;
111959
112786
  args?: string[] | undefined;
111960
112787
  env?: Record<string, string> | undefined;
112788
+ alwaysLoad?: boolean | undefined;
111961
112789
  } | {
111962
112790
  type: "http";
111963
112791
  url: string;
112792
+ alwaysLoad?: boolean | undefined;
111964
112793
  headers?: Record<string, string> | undefined;
111965
112794
  } | {
111966
112795
  type: "sse";
111967
112796
  url: string;
112797
+ alwaysLoad?: boolean | undefined;
111968
112798
  headers?: Record<string, string> | undefined;
111969
112799
  }> | undefined;
111970
112800
  }, {
@@ -111989,13 +112819,16 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
111989
112819
  command: string;
111990
112820
  args?: string[] | undefined;
111991
112821
  env?: Record<string, string> | undefined;
112822
+ alwaysLoad?: boolean | undefined;
111992
112823
  } | {
111993
112824
  type: "http";
111994
112825
  url: string;
112826
+ alwaysLoad?: boolean | undefined;
111995
112827
  headers?: Record<string, string> | undefined;
111996
112828
  } | {
111997
112829
  type: "sse";
111998
112830
  url: string;
112831
+ alwaysLoad?: boolean | undefined;
111999
112832
  headers?: Record<string, string> | undefined;
112000
112833
  }> | undefined;
112001
112834
  }>>;
@@ -112026,13 +112859,16 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
112026
112859
  command: string;
112027
112860
  args?: string[] | undefined;
112028
112861
  env?: Record<string, string> | undefined;
112862
+ alwaysLoad?: boolean | undefined;
112029
112863
  } | {
112030
112864
  type: "http";
112031
112865
  url: string;
112866
+ alwaysLoad?: boolean | undefined;
112032
112867
  headers?: Record<string, string> | undefined;
112033
112868
  } | {
112034
112869
  type: "sse";
112035
112870
  url: string;
112871
+ alwaysLoad?: boolean | undefined;
112036
112872
  headers?: Record<string, string> | undefined;
112037
112873
  }> | undefined;
112038
112874
  } | undefined;
@@ -112062,13 +112898,16 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
112062
112898
  command: string;
112063
112899
  args?: string[] | undefined;
112064
112900
  env?: Record<string, string> | undefined;
112901
+ alwaysLoad?: boolean | undefined;
112065
112902
  } | {
112066
112903
  type: "http";
112067
112904
  url: string;
112905
+ alwaysLoad?: boolean | undefined;
112068
112906
  headers?: Record<string, string> | undefined;
112069
112907
  } | {
112070
112908
  type: "sse";
112071
112909
  url: string;
112910
+ alwaysLoad?: boolean | undefined;
112072
112911
  headers?: Record<string, string> | undefined;
112073
112912
  }> | undefined;
112074
112913
  } | undefined;
@@ -112764,6 +113603,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
112764
113603
  };
112765
113604
  }[];
112766
113605
  baseRef?: string | null | undefined;
113606
+ } | {
113607
+ type: "uploaded_file";
113608
+ path: string;
113609
+ mimeType: string;
113610
+ id: string;
113611
+ fileName: string;
113612
+ size: number;
112767
113613
  })[], unknown>>>;
112768
113614
  firstAgentContext: z.ZodOptional<z.ZodObject<{
112769
113615
  prompt: z.ZodOptional<z.ZodString>;
@@ -112815,6 +113661,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
112815
113661
  };
112816
113662
  }[];
112817
113663
  baseRef?: string | null | undefined;
113664
+ } | {
113665
+ type: "uploaded_file";
113666
+ path: string;
113667
+ mimeType: string;
113668
+ id: string;
113669
+ fileName: string;
113670
+ size: number;
112818
113671
  })[], unknown>>;
112819
113672
  }, "strip", z.ZodTypeAny, {
112820
113673
  prompt?: string | undefined;
@@ -112866,6 +113719,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
112866
113719
  };
112867
113720
  }[];
112868
113721
  baseRef?: string | null | undefined;
113722
+ } | {
113723
+ type: "uploaded_file";
113724
+ path: string;
113725
+ mimeType: string;
113726
+ id: string;
113727
+ fileName: string;
113728
+ size: number;
112869
113729
  })[] | undefined;
112870
113730
  }, {
112871
113731
  prompt?: string | undefined;
@@ -112928,6 +113788,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
112928
113788
  };
112929
113789
  }[];
112930
113790
  baseRef?: string | null | undefined;
113791
+ } | {
113792
+ type: "uploaded_file";
113793
+ path: string;
113794
+ mimeType: string;
113795
+ id: string;
113796
+ fileName: string;
113797
+ size: number;
112931
113798
  })[] | undefined;
112932
113799
  worktreeSlug?: string | undefined;
112933
113800
  refName?: string | undefined;
@@ -112984,6 +113851,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
112984
113851
  };
112985
113852
  }[];
112986
113853
  baseRef?: string | null | undefined;
113854
+ } | {
113855
+ type: "uploaded_file";
113856
+ path: string;
113857
+ mimeType: string;
113858
+ id: string;
113859
+ fileName: string;
113860
+ size: number;
112987
113861
  })[] | undefined;
112988
113862
  } | undefined;
112989
113863
  }, {
@@ -113127,6 +114001,27 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
113127
114001
  path: string;
113128
114002
  cwd: string;
113129
114003
  requestId: string;
114004
+ }>, z.ZodObject<{
114005
+ type: z.ZodLiteral<"file.upload.request">;
114006
+ fileName: z.ZodString;
114007
+ mimeType: z.ZodString;
114008
+ size: z.ZodNumber;
114009
+ modifiedAt: z.ZodString;
114010
+ requestId: z.ZodString;
114011
+ }, "strip", z.ZodTypeAny, {
114012
+ type: "file.upload.request";
114013
+ mimeType: string;
114014
+ fileName: string;
114015
+ size: number;
114016
+ requestId: string;
114017
+ modifiedAt: string;
114018
+ }, {
114019
+ type: "file.upload.request";
114020
+ mimeType: string;
114021
+ fileName: string;
114022
+ size: number;
114023
+ requestId: string;
114024
+ modifiedAt: string;
113130
114025
  }>, z.ZodObject<{
113131
114026
  type: z.ZodLiteral<"clear_agent_attention">;
113132
114027
  agentId: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
@@ -114456,6 +115351,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
114456
115351
  };
114457
115352
  }[];
114458
115353
  baseRef?: string | null | undefined;
115354
+ } | {
115355
+ type: "uploaded_file";
115356
+ path: string;
115357
+ mimeType: string;
115358
+ id: string;
115359
+ fileName: string;
115360
+ size: number;
114459
115361
  })[] | undefined;
114460
115362
  } | {
114461
115363
  agentId: string;
@@ -114570,8 +115472,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
114570
115472
  };
114571
115473
  repoRoot: string;
114572
115474
  expectedRevision: {
114573
- mtimeMs: number;
114574
115475
  size: number;
115476
+ mtimeMs: number;
114575
115477
  } | null;
114576
115478
  } | {
114577
115479
  type: "dictation_stream_start";
@@ -114615,13 +115517,16 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
114615
115517
  command: string;
114616
115518
  args?: string[] | undefined;
114617
115519
  env?: Record<string, string> | undefined;
115520
+ alwaysLoad?: boolean | undefined;
114618
115521
  } | {
114619
115522
  type: "http";
114620
115523
  url: string;
115524
+ alwaysLoad?: boolean | undefined;
114621
115525
  headers?: Record<string, string> | undefined;
114622
115526
  } | {
114623
115527
  type: "sse";
114624
115528
  url: string;
115529
+ alwaysLoad?: boolean | undefined;
114625
115530
  headers?: Record<string, string> | undefined;
114626
115531
  }> | undefined;
114627
115532
  };
@@ -114690,6 +115595,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
114690
115595
  };
114691
115596
  }[];
114692
115597
  baseRef?: string | null | undefined;
115598
+ } | {
115599
+ type: "uploaded_file";
115600
+ path: string;
115601
+ mimeType: string;
115602
+ id: string;
115603
+ fileName: string;
115604
+ size: number;
114693
115605
  })[] | undefined;
114694
115606
  workspaceId?: string | undefined;
114695
115607
  worktreeName?: string | undefined;
@@ -114759,13 +115671,16 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
114759
115671
  command: string;
114760
115672
  args?: string[] | undefined;
114761
115673
  env?: Record<string, string> | undefined;
115674
+ alwaysLoad?: boolean | undefined;
114762
115675
  } | {
114763
115676
  type: "http";
114764
115677
  url: string;
115678
+ alwaysLoad?: boolean | undefined;
114765
115679
  headers?: Record<string, string> | undefined;
114766
115680
  } | {
114767
115681
  type: "sse";
114768
115682
  url: string;
115683
+ alwaysLoad?: boolean | undefined;
114769
115684
  headers?: Record<string, string> | undefined;
114770
115685
  }> | undefined;
114771
115686
  } | undefined;
@@ -115029,6 +115944,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
115029
115944
  };
115030
115945
  }[];
115031
115946
  baseRef?: string | null | undefined;
115947
+ } | {
115948
+ type: "uploaded_file";
115949
+ path: string;
115950
+ mimeType: string;
115951
+ id: string;
115952
+ fileName: string;
115953
+ size: number;
115032
115954
  })[] | undefined;
115033
115955
  worktreeSlug?: string | undefined;
115034
115956
  refName?: string | undefined;
@@ -115085,6 +116007,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
115085
116007
  };
115086
116008
  }[];
115087
116009
  baseRef?: string | null | undefined;
116010
+ } | {
116011
+ type: "uploaded_file";
116012
+ path: string;
116013
+ mimeType: string;
116014
+ id: string;
116015
+ fileName: string;
116016
+ size: number;
115088
116017
  })[] | undefined;
115089
116018
  } | undefined;
115090
116019
  } | {
@@ -115129,6 +116058,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
115129
116058
  path: string;
115130
116059
  cwd: string;
115131
116060
  requestId: string;
116061
+ } | {
116062
+ type: "file.upload.request";
116063
+ mimeType: string;
116064
+ fileName: string;
116065
+ size: number;
116066
+ requestId: string;
116067
+ modifiedAt: string;
115132
116068
  } | {
115133
116069
  agentId: string | string[];
115134
116070
  type: "clear_agent_attention";
@@ -115615,8 +116551,8 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
115615
116551
  };
115616
116552
  repoRoot: string;
115617
116553
  expectedRevision: {
115618
- mtimeMs: number;
115619
116554
  size: number;
116555
+ mtimeMs: number;
115620
116556
  } | null;
115621
116557
  } | {
115622
116558
  type: "dictation_stream_start";
@@ -115660,13 +116596,16 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
115660
116596
  command: string;
115661
116597
  args?: string[] | undefined;
115662
116598
  env?: Record<string, string> | undefined;
116599
+ alwaysLoad?: boolean | undefined;
115663
116600
  } | {
115664
116601
  type: "http";
115665
116602
  url: string;
116603
+ alwaysLoad?: boolean | undefined;
115666
116604
  headers?: Record<string, string> | undefined;
115667
116605
  } | {
115668
116606
  type: "sse";
115669
116607
  url: string;
116608
+ alwaysLoad?: boolean | undefined;
115670
116609
  headers?: Record<string, string> | undefined;
115671
116610
  }> | undefined;
115672
116611
  };
@@ -115756,13 +116695,16 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
115756
116695
  command: string;
115757
116696
  args?: string[] | undefined;
115758
116697
  env?: Record<string, string> | undefined;
116698
+ alwaysLoad?: boolean | undefined;
115759
116699
  } | {
115760
116700
  type: "http";
115761
116701
  url: string;
116702
+ alwaysLoad?: boolean | undefined;
115762
116703
  headers?: Record<string, string> | undefined;
115763
116704
  } | {
115764
116705
  type: "sse";
115765
116706
  url: string;
116707
+ alwaysLoad?: boolean | undefined;
115766
116708
  headers?: Record<string, string> | undefined;
115767
116709
  }> | undefined;
115768
116710
  } | undefined;
@@ -116030,6 +116972,13 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
116030
116972
  path: string;
116031
116973
  cwd: string;
116032
116974
  requestId: string;
116975
+ } | {
116976
+ type: "file.upload.request";
116977
+ mimeType: string;
116978
+ fileName: string;
116979
+ size: number;
116980
+ requestId: string;
116981
+ modifiedAt: string;
116033
116982
  } | {
116034
116983
  agentId: string | string[];
116035
116984
  type: "clear_agent_attention";
@@ -129811,11 +130760,11 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
129811
130760
  mtimeMs: z.ZodNumber;
129812
130761
  size: z.ZodNumber;
129813
130762
  }, "strip", z.ZodTypeAny, {
129814
- mtimeMs: number;
129815
130763
  size: number;
129816
- }, {
129817
130764
  mtimeMs: number;
130765
+ }, {
129818
130766
  size: number;
130767
+ mtimeMs: number;
129819
130768
  }>>;
129820
130769
  }, "strip", z.ZodTypeAny, {
129821
130770
  requestId: string;
@@ -129938,8 +130887,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
129938
130887
  repoRoot: string;
129939
130888
  ok: true;
129940
130889
  revision: {
129941
- mtimeMs: number;
129942
130890
  size: number;
130891
+ mtimeMs: number;
129943
130892
  } | null;
129944
130893
  }, {
129945
130894
  requestId: string;
@@ -130062,8 +131011,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130062
131011
  repoRoot: string;
130063
131012
  ok: true;
130064
131013
  revision: {
130065
- mtimeMs: number;
130066
131014
  size: number;
131015
+ mtimeMs: number;
130067
131016
  } | null;
130068
131017
  }>, z.ZodObject<{
130069
131018
  requestId: z.ZodString;
@@ -130087,23 +131036,23 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130087
131036
  mtimeMs: z.ZodNumber;
130088
131037
  size: z.ZodNumber;
130089
131038
  }, "strip", z.ZodTypeAny, {
130090
- mtimeMs: number;
130091
131039
  size: number;
130092
- }, {
130093
131040
  mtimeMs: number;
131041
+ }, {
130094
131042
  size: number;
131043
+ mtimeMs: number;
130095
131044
  }>>;
130096
131045
  }, "strip", z.ZodTypeAny, {
130097
131046
  code: "stale_project_config";
130098
131047
  currentRevision: {
130099
- mtimeMs: number;
130100
131048
  size: number;
131049
+ mtimeMs: number;
130101
131050
  } | null;
130102
131051
  }, {
130103
131052
  code: "stale_project_config";
130104
131053
  currentRevision: {
130105
- mtimeMs: number;
130106
131054
  size: number;
131055
+ mtimeMs: number;
130107
131056
  } | null;
130108
131057
  }>, z.ZodObject<{
130109
131058
  code: z.ZodLiteral<"write_failed">;
@@ -130120,8 +131069,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130120
131069
  } | {
130121
131070
  code: "stale_project_config";
130122
131071
  currentRevision: {
130123
- mtimeMs: number;
130124
131072
  size: number;
131073
+ mtimeMs: number;
130125
131074
  } | null;
130126
131075
  } | {
130127
131076
  code: "write_failed";
@@ -130137,8 +131086,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130137
131086
  } | {
130138
131087
  code: "stale_project_config";
130139
131088
  currentRevision: {
130140
- mtimeMs: number;
130141
131089
  size: number;
131090
+ mtimeMs: number;
130142
131091
  } | null;
130143
131092
  } | {
130144
131093
  code: "write_failed";
@@ -130270,8 +131219,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130270
131219
  repoRoot: string;
130271
131220
  ok: true;
130272
131221
  revision: {
130273
- mtimeMs: number;
130274
131222
  size: number;
131223
+ mtimeMs: number;
130275
131224
  } | null;
130276
131225
  } | {
130277
131226
  error: {
@@ -130281,8 +131230,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130281
131230
  } | {
130282
131231
  code: "stale_project_config";
130283
131232
  currentRevision: {
130284
- mtimeMs: number;
130285
131233
  size: number;
131234
+ mtimeMs: number;
130286
131235
  } | null;
130287
131236
  } | {
130288
131237
  code: "write_failed";
@@ -130414,8 +131363,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130414
131363
  repoRoot: string;
130415
131364
  ok: true;
130416
131365
  revision: {
130417
- mtimeMs: number;
130418
131366
  size: number;
131367
+ mtimeMs: number;
130419
131368
  } | null;
130420
131369
  } | {
130421
131370
  error: {
@@ -130425,8 +131374,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130425
131374
  } | {
130426
131375
  code: "stale_project_config";
130427
131376
  currentRevision: {
130428
- mtimeMs: number;
130429
131377
  size: number;
131378
+ mtimeMs: number;
130430
131379
  } | null;
130431
131380
  } | {
130432
131381
  code: "write_failed";
@@ -130791,11 +131740,11 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130791
131740
  mtimeMs: z.ZodNumber;
130792
131741
  size: z.ZodNumber;
130793
131742
  }, "strip", z.ZodTypeAny, {
130794
- mtimeMs: number;
130795
131743
  size: number;
130796
- }, {
130797
131744
  mtimeMs: number;
131745
+ }, {
130798
131746
  size: number;
131747
+ mtimeMs: number;
130799
131748
  }>;
130800
131749
  }, "strip", z.ZodTypeAny, {
130801
131750
  requestId: string;
@@ -130846,8 +131795,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130846
131795
  repoRoot: string;
130847
131796
  ok: true;
130848
131797
  revision: {
130849
- mtimeMs: number;
130850
131798
  size: number;
131799
+ mtimeMs: number;
130851
131800
  };
130852
131801
  }, {
130853
131802
  requestId: string;
@@ -130869,8 +131818,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130869
131818
  repoRoot: string;
130870
131819
  ok: true;
130871
131820
  revision: {
130872
- mtimeMs: number;
130873
131821
  size: number;
131822
+ mtimeMs: number;
130874
131823
  };
130875
131824
  }>, z.ZodObject<{
130876
131825
  requestId: z.ZodString;
@@ -130894,23 +131843,23 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130894
131843
  mtimeMs: z.ZodNumber;
130895
131844
  size: z.ZodNumber;
130896
131845
  }, "strip", z.ZodTypeAny, {
130897
- mtimeMs: number;
130898
131846
  size: number;
130899
- }, {
130900
131847
  mtimeMs: number;
131848
+ }, {
130901
131849
  size: number;
131850
+ mtimeMs: number;
130902
131851
  }>>;
130903
131852
  }, "strip", z.ZodTypeAny, {
130904
131853
  code: "stale_project_config";
130905
131854
  currentRevision: {
130906
- mtimeMs: number;
130907
131855
  size: number;
131856
+ mtimeMs: number;
130908
131857
  } | null;
130909
131858
  }, {
130910
131859
  code: "stale_project_config";
130911
131860
  currentRevision: {
130912
- mtimeMs: number;
130913
131861
  size: number;
131862
+ mtimeMs: number;
130914
131863
  } | null;
130915
131864
  }>, z.ZodObject<{
130916
131865
  code: z.ZodLiteral<"write_failed">;
@@ -130927,8 +131876,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130927
131876
  } | {
130928
131877
  code: "stale_project_config";
130929
131878
  currentRevision: {
130930
- mtimeMs: number;
130931
131879
  size: number;
131880
+ mtimeMs: number;
130932
131881
  } | null;
130933
131882
  } | {
130934
131883
  code: "write_failed";
@@ -130944,8 +131893,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
130944
131893
  } | {
130945
131894
  code: "stale_project_config";
130946
131895
  currentRevision: {
130947
- mtimeMs: number;
130948
131896
  size: number;
131897
+ mtimeMs: number;
130949
131898
  } | null;
130950
131899
  } | {
130951
131900
  code: "write_failed";
@@ -131005,8 +131954,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131005
131954
  repoRoot: string;
131006
131955
  ok: true;
131007
131956
  revision: {
131008
- mtimeMs: number;
131009
131957
  size: number;
131958
+ mtimeMs: number;
131010
131959
  };
131011
131960
  } | {
131012
131961
  error: {
@@ -131016,8 +131965,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131016
131965
  } | {
131017
131966
  code: "stale_project_config";
131018
131967
  currentRevision: {
131019
- mtimeMs: number;
131020
131968
  size: number;
131969
+ mtimeMs: number;
131021
131970
  } | null;
131022
131971
  } | {
131023
131972
  code: "write_failed";
@@ -131048,8 +131997,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131048
131997
  repoRoot: string;
131049
131998
  ok: true;
131050
131999
  revision: {
131051
- mtimeMs: number;
131052
132000
  size: number;
132001
+ mtimeMs: number;
131053
132002
  };
131054
132003
  } | {
131055
132004
  error: {
@@ -131059,8 +132008,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
131059
132008
  } | {
131060
132009
  code: "stale_project_config";
131061
132010
  currentRevision: {
131062
- mtimeMs: number;
131063
132011
  size: number;
132012
+ mtimeMs: number;
131064
132013
  } | null;
131065
132014
  } | {
131066
132015
  code: "write_failed";
@@ -137070,19 +138019,19 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
137070
138019
  path: string;
137071
138020
  mimeType: string | null;
137072
138021
  cwd: string;
137073
- requestId: string;
138022
+ fileName: string | null;
137074
138023
  size: number | null;
138024
+ requestId: string;
137075
138025
  token: string | null;
137076
- fileName: string | null;
137077
138026
  }, {
137078
138027
  error: string | null;
137079
138028
  path: string;
137080
138029
  mimeType: string | null;
137081
138030
  cwd: string;
137082
- requestId: string;
138031
+ fileName: string | null;
137083
138032
  size: number | null;
138033
+ requestId: string;
137084
138034
  token: string | null;
137085
- fileName: string | null;
137086
138035
  }>;
137087
138036
  }, "strip", z.ZodTypeAny, {
137088
138037
  type: "file_download_token_response";
@@ -137091,10 +138040,10 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
137091
138040
  path: string;
137092
138041
  mimeType: string | null;
137093
138042
  cwd: string;
137094
- requestId: string;
138043
+ fileName: string | null;
137095
138044
  size: number | null;
138045
+ requestId: string;
137096
138046
  token: string | null;
137097
- fileName: string | null;
137098
138047
  };
137099
138048
  }, {
137100
138049
  type: "file_download_token_response";
@@ -137103,10 +138052,88 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
137103
138052
  path: string;
137104
138053
  mimeType: string | null;
137105
138054
  cwd: string;
137106
- requestId: string;
138055
+ fileName: string | null;
137107
138056
  size: number | null;
138057
+ requestId: string;
137108
138058
  token: string | null;
137109
- fileName: string | null;
138059
+ };
138060
+ }>, z.ZodObject<{
138061
+ type: z.ZodLiteral<"file.upload.response">;
138062
+ payload: z.ZodObject<{
138063
+ requestId: z.ZodString;
138064
+ file: z.ZodNullable<z.ZodObject<{
138065
+ type: z.ZodLiteral<"uploaded_file">;
138066
+ id: z.ZodString;
138067
+ fileName: z.ZodString;
138068
+ mimeType: z.ZodString;
138069
+ size: z.ZodNumber;
138070
+ path: z.ZodString;
138071
+ }, "strip", z.ZodTypeAny, {
138072
+ type: "uploaded_file";
138073
+ path: string;
138074
+ mimeType: string;
138075
+ id: string;
138076
+ fileName: string;
138077
+ size: number;
138078
+ }, {
138079
+ type: "uploaded_file";
138080
+ path: string;
138081
+ mimeType: string;
138082
+ id: string;
138083
+ fileName: string;
138084
+ size: number;
138085
+ }>>;
138086
+ error: z.ZodNullable<z.ZodString>;
138087
+ }, "strip", z.ZodTypeAny, {
138088
+ error: string | null;
138089
+ requestId: string;
138090
+ file: {
138091
+ type: "uploaded_file";
138092
+ path: string;
138093
+ mimeType: string;
138094
+ id: string;
138095
+ fileName: string;
138096
+ size: number;
138097
+ } | null;
138098
+ }, {
138099
+ error: string | null;
138100
+ requestId: string;
138101
+ file: {
138102
+ type: "uploaded_file";
138103
+ path: string;
138104
+ mimeType: string;
138105
+ id: string;
138106
+ fileName: string;
138107
+ size: number;
138108
+ } | null;
138109
+ }>;
138110
+ }, "strip", z.ZodTypeAny, {
138111
+ type: "file.upload.response";
138112
+ payload: {
138113
+ error: string | null;
138114
+ requestId: string;
138115
+ file: {
138116
+ type: "uploaded_file";
138117
+ path: string;
138118
+ mimeType: string;
138119
+ id: string;
138120
+ fileName: string;
138121
+ size: number;
138122
+ } | null;
138123
+ };
138124
+ }, {
138125
+ type: "file.upload.response";
138126
+ payload: {
138127
+ error: string | null;
138128
+ requestId: string;
138129
+ file: {
138130
+ type: "uploaded_file";
138131
+ path: string;
138132
+ mimeType: string;
138133
+ id: string;
138134
+ fileName: string;
138135
+ size: number;
138136
+ } | null;
137110
138137
  };
137111
138138
  }>, z.ZodObject<{
137112
138139
  type: z.ZodLiteral<"list_provider_models_response">;
@@ -147226,8 +148253,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
147226
148253
  repoRoot: string;
147227
148254
  ok: true;
147228
148255
  revision: {
147229
- mtimeMs: number;
147230
148256
  size: number;
148257
+ mtimeMs: number;
147231
148258
  } | null;
147232
148259
  } | {
147233
148260
  error: {
@@ -147237,8 +148264,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
147237
148264
  } | {
147238
148265
  code: "stale_project_config";
147239
148266
  currentRevision: {
147240
- mtimeMs: number;
147241
148267
  size: number;
148268
+ mtimeMs: number;
147242
148269
  } | null;
147243
148270
  } | {
147244
148271
  code: "write_failed";
@@ -147298,8 +148325,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
147298
148325
  repoRoot: string;
147299
148326
  ok: true;
147300
148327
  revision: {
147301
- mtimeMs: number;
147302
148328
  size: number;
148329
+ mtimeMs: number;
147303
148330
  };
147304
148331
  } | {
147305
148332
  error: {
@@ -147309,8 +148336,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
147309
148336
  } | {
147310
148337
  code: "stale_project_config";
147311
148338
  currentRevision: {
147312
- mtimeMs: number;
147313
148339
  size: number;
148340
+ mtimeMs: number;
147314
148341
  } | null;
147315
148342
  } | {
147316
148343
  code: "write_failed";
@@ -148094,10 +149121,24 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
148094
149121
  path: string;
148095
149122
  mimeType: string | null;
148096
149123
  cwd: string;
148097
- requestId: string;
149124
+ fileName: string | null;
148098
149125
  size: number | null;
149126
+ requestId: string;
148099
149127
  token: string | null;
148100
- fileName: string | null;
149128
+ };
149129
+ } | {
149130
+ type: "file.upload.response";
149131
+ payload: {
149132
+ error: string | null;
149133
+ requestId: string;
149134
+ file: {
149135
+ type: "uploaded_file";
149136
+ path: string;
149137
+ mimeType: string;
149138
+ id: string;
149139
+ fileName: string;
149140
+ size: number;
149141
+ } | null;
148101
149142
  };
148102
149143
  } | {
148103
149144
  type: "list_provider_models_response";
@@ -150776,8 +151817,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
150776
151817
  repoRoot: string;
150777
151818
  ok: true;
150778
151819
  revision: {
150779
- mtimeMs: number;
150780
151820
  size: number;
151821
+ mtimeMs: number;
150781
151822
  } | null;
150782
151823
  } | {
150783
151824
  error: {
@@ -150787,8 +151828,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
150787
151828
  } | {
150788
151829
  code: "stale_project_config";
150789
151830
  currentRevision: {
150790
- mtimeMs: number;
150791
151831
  size: number;
151832
+ mtimeMs: number;
150792
151833
  } | null;
150793
151834
  } | {
150794
151835
  code: "write_failed";
@@ -150819,8 +151860,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
150819
151860
  repoRoot: string;
150820
151861
  ok: true;
150821
151862
  revision: {
150822
- mtimeMs: number;
150823
151863
  size: number;
151864
+ mtimeMs: number;
150824
151865
  };
150825
151866
  } | {
150826
151867
  error: {
@@ -150830,8 +151871,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
150830
151871
  } | {
150831
151872
  code: "stale_project_config";
150832
151873
  currentRevision: {
150833
- mtimeMs: number;
150834
151874
  size: number;
151875
+ mtimeMs: number;
150835
151876
  } | null;
150836
151877
  } | {
150837
151878
  code: "write_failed";
@@ -151591,10 +152632,24 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
151591
152632
  path: string;
151592
152633
  mimeType: string | null;
151593
152634
  cwd: string;
151594
- requestId: string;
152635
+ fileName: string | null;
151595
152636
  size: number | null;
152637
+ requestId: string;
151596
152638
  token: string | null;
151597
- fileName: string | null;
152639
+ };
152640
+ } | {
152641
+ type: "file.upload.response";
152642
+ payload: {
152643
+ error: string | null;
152644
+ requestId: string;
152645
+ file: {
152646
+ type: "uploaded_file";
152647
+ path: string;
152648
+ mimeType: string;
152649
+ id: string;
152650
+ fileName: string;
152651
+ size: number;
152652
+ } | null;
151598
152653
  };
151599
152654
  } | {
151600
152655
  type: "list_provider_models_response";