@myagentroam/protocol 0.11.0 → 0.11.2

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.
@@ -31,16 +31,19 @@ export declare const directTransferResourceSchema: z.ZodDiscriminatedUnion<"kind
31
31
  kind: z.ZodLiteral<"WORKSPACE_FILE">;
32
32
  workspaceId: z.ZodString;
33
33
  path: z.ZodString;
34
+ repositoryPath: z.ZodOptional<z.ZodString>;
34
35
  worktreePath: z.ZodOptional<z.ZodString>;
35
36
  }, "strict", z.ZodTypeAny, {
36
37
  path: string;
37
38
  kind: "WORKSPACE_FILE";
38
39
  workspaceId: string;
40
+ repositoryPath?: string | undefined;
39
41
  worktreePath?: string | undefined;
40
42
  }, {
41
43
  path: string;
42
44
  kind: "WORKSPACE_FILE";
43
45
  workspaceId: string;
46
+ repositoryPath?: string | undefined;
44
47
  worktreePath?: string | undefined;
45
48
  }>, z.ZodObject<{
46
49
  kind: z.ZodLiteral<"GIT_COMMIT_BLOB">;
@@ -54,15 +57,15 @@ export declare const directTransferResourceSchema: z.ZodDiscriminatedUnion<"kind
54
57
  kind: "GIT_COMMIT_BLOB";
55
58
  workspaceId: string;
56
59
  commit: string;
57
- worktreePath?: string | undefined;
58
60
  repositoryPath?: string | undefined;
61
+ worktreePath?: string | undefined;
59
62
  }, {
60
63
  path: string;
61
64
  kind: "GIT_COMMIT_BLOB";
62
65
  workspaceId: string;
63
66
  commit: string;
64
- worktreePath?: string | undefined;
65
67
  repositoryPath?: string | undefined;
68
+ worktreePath?: string | undefined;
66
69
  }>]>;
67
70
  export type DirectTransferResource = z.infer<typeof directTransferResourceSchema>;
68
71
  export declare const directTransferDescriptorSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
@@ -70,16 +73,19 @@ export declare const directTransferDescriptorSchema: z.ZodUnion<[z.ZodEffects<z.
70
73
  kind: z.ZodLiteral<"WORKSPACE_FILE">;
71
74
  workspaceId: z.ZodString;
72
75
  path: z.ZodString;
76
+ repositoryPath: z.ZodOptional<z.ZodString>;
73
77
  worktreePath: z.ZodOptional<z.ZodString>;
74
78
  }, "strict", z.ZodTypeAny, {
75
79
  path: string;
76
80
  kind: "WORKSPACE_FILE";
77
81
  workspaceId: string;
82
+ repositoryPath?: string | undefined;
78
83
  worktreePath?: string | undefined;
79
84
  }, {
80
85
  path: string;
81
86
  kind: "WORKSPACE_FILE";
82
87
  workspaceId: string;
88
+ repositoryPath?: string | undefined;
83
89
  worktreePath?: string | undefined;
84
90
  }>, z.ZodObject<{
85
91
  kind: z.ZodLiteral<"GIT_COMMIT_BLOB">;
@@ -93,15 +99,15 @@ export declare const directTransferDescriptorSchema: z.ZodUnion<[z.ZodEffects<z.
93
99
  kind: "GIT_COMMIT_BLOB";
94
100
  workspaceId: string;
95
101
  commit: string;
96
- worktreePath?: string | undefined;
97
102
  repositoryPath?: string | undefined;
103
+ worktreePath?: string | undefined;
98
104
  }, {
99
105
  path: string;
100
106
  kind: "GIT_COMMIT_BLOB";
101
107
  workspaceId: string;
102
108
  commit: string;
103
- worktreePath?: string | undefined;
104
109
  repositoryPath?: string | undefined;
110
+ worktreePath?: string | undefined;
105
111
  }>]>;
106
112
  fileName: z.ZodString;
107
113
  size: z.ZodNumber;
@@ -125,14 +131,15 @@ export declare const directTransferDescriptorSchema: z.ZodUnion<[z.ZodEffects<z.
125
131
  path: string;
126
132
  kind: "WORKSPACE_FILE";
127
133
  workspaceId: string;
134
+ repositoryPath?: string | undefined;
128
135
  worktreePath?: string | undefined;
129
136
  } | {
130
137
  path: string;
131
138
  kind: "GIT_COMMIT_BLOB";
132
139
  workspaceId: string;
133
140
  commit: string;
134
- worktreePath?: string | undefined;
135
141
  repositoryPath?: string | undefined;
142
+ worktreePath?: string | undefined;
136
143
  };
137
144
  fileName: string;
138
145
  size: number;
@@ -149,14 +156,15 @@ export declare const directTransferDescriptorSchema: z.ZodUnion<[z.ZodEffects<z.
149
156
  path: string;
150
157
  kind: "WORKSPACE_FILE";
151
158
  workspaceId: string;
159
+ repositoryPath?: string | undefined;
152
160
  worktreePath?: string | undefined;
153
161
  } | {
154
162
  path: string;
155
163
  kind: "GIT_COMMIT_BLOB";
156
164
  workspaceId: string;
157
165
  commit: string;
158
- worktreePath?: string | undefined;
159
166
  repositoryPath?: string | undefined;
167
+ worktreePath?: string | undefined;
160
168
  };
161
169
  fileName: string;
162
170
  size: number;
@@ -173,14 +181,15 @@ export declare const directTransferDescriptorSchema: z.ZodUnion<[z.ZodEffects<z.
173
181
  path: string;
174
182
  kind: "WORKSPACE_FILE";
175
183
  workspaceId: string;
184
+ repositoryPath?: string | undefined;
176
185
  worktreePath?: string | undefined;
177
186
  } | {
178
187
  path: string;
179
188
  kind: "GIT_COMMIT_BLOB";
180
189
  workspaceId: string;
181
190
  commit: string;
182
- worktreePath?: string | undefined;
183
191
  repositoryPath?: string | undefined;
192
+ worktreePath?: string | undefined;
184
193
  };
185
194
  fileName: string;
186
195
  size: number;
@@ -197,14 +206,15 @@ export declare const directTransferDescriptorSchema: z.ZodUnion<[z.ZodEffects<z.
197
206
  path: string;
198
207
  kind: "WORKSPACE_FILE";
199
208
  workspaceId: string;
209
+ repositoryPath?: string | undefined;
200
210
  worktreePath?: string | undefined;
201
211
  } | {
202
212
  path: string;
203
213
  kind: "GIT_COMMIT_BLOB";
204
214
  workspaceId: string;
205
215
  commit: string;
206
- worktreePath?: string | undefined;
207
216
  repositoryPath?: string | undefined;
217
+ worktreePath?: string | undefined;
208
218
  };
209
219
  fileName: string;
210
220
  size: number;
@@ -221,16 +231,19 @@ export declare const directTransferDescriptorSchema: z.ZodUnion<[z.ZodEffects<z.
221
231
  kind: z.ZodLiteral<"WORKSPACE_FILE">;
222
232
  workspaceId: z.ZodString;
223
233
  path: z.ZodString;
234
+ repositoryPath: z.ZodOptional<z.ZodString>;
224
235
  worktreePath: z.ZodOptional<z.ZodString>;
225
236
  }, "strict", z.ZodTypeAny, {
226
237
  path: string;
227
238
  kind: "WORKSPACE_FILE";
228
239
  workspaceId: string;
240
+ repositoryPath?: string | undefined;
229
241
  worktreePath?: string | undefined;
230
242
  }, {
231
243
  path: string;
232
244
  kind: "WORKSPACE_FILE";
233
245
  workspaceId: string;
246
+ repositoryPath?: string | undefined;
234
247
  worktreePath?: string | undefined;
235
248
  }>, z.ZodObject<{
236
249
  kind: z.ZodLiteral<"GIT_COMMIT_BLOB">;
@@ -244,15 +257,15 @@ export declare const directTransferDescriptorSchema: z.ZodUnion<[z.ZodEffects<z.
244
257
  kind: "GIT_COMMIT_BLOB";
245
258
  workspaceId: string;
246
259
  commit: string;
247
- worktreePath?: string | undefined;
248
260
  repositoryPath?: string | undefined;
261
+ worktreePath?: string | undefined;
249
262
  }, {
250
263
  path: string;
251
264
  kind: "GIT_COMMIT_BLOB";
252
265
  workspaceId: string;
253
266
  commit: string;
254
- worktreePath?: string | undefined;
255
267
  repositoryPath?: string | undefined;
268
+ worktreePath?: string | undefined;
256
269
  }>]>;
257
270
  fileName: z.ZodString;
258
271
  size: z.ZodNumber;
@@ -274,14 +287,15 @@ export declare const directTransferDescriptorSchema: z.ZodUnion<[z.ZodEffects<z.
274
287
  path: string;
275
288
  kind: "WORKSPACE_FILE";
276
289
  workspaceId: string;
290
+ repositoryPath?: string | undefined;
277
291
  worktreePath?: string | undefined;
278
292
  } | {
279
293
  path: string;
280
294
  kind: "GIT_COMMIT_BLOB";
281
295
  workspaceId: string;
282
296
  commit: string;
283
- worktreePath?: string | undefined;
284
297
  repositoryPath?: string | undefined;
298
+ worktreePath?: string | undefined;
285
299
  };
286
300
  fileName: string;
287
301
  size: number;
@@ -296,14 +310,15 @@ export declare const directTransferDescriptorSchema: z.ZodUnion<[z.ZodEffects<z.
296
310
  path: string;
297
311
  kind: "WORKSPACE_FILE";
298
312
  workspaceId: string;
313
+ repositoryPath?: string | undefined;
299
314
  worktreePath?: string | undefined;
300
315
  } | {
301
316
  path: string;
302
317
  kind: "GIT_COMMIT_BLOB";
303
318
  workspaceId: string;
304
319
  commit: string;
305
- worktreePath?: string | undefined;
306
320
  repositoryPath?: string | undefined;
321
+ worktreePath?: string | undefined;
307
322
  };
308
323
  fileName: string;
309
324
  size: number;
@@ -318,14 +333,15 @@ export declare const directTransferDescriptorSchema: z.ZodUnion<[z.ZodEffects<z.
318
333
  path: string;
319
334
  kind: "WORKSPACE_FILE";
320
335
  workspaceId: string;
336
+ repositoryPath?: string | undefined;
321
337
  worktreePath?: string | undefined;
322
338
  } | {
323
339
  path: string;
324
340
  kind: "GIT_COMMIT_BLOB";
325
341
  workspaceId: string;
326
342
  commit: string;
327
- worktreePath?: string | undefined;
328
343
  repositoryPath?: string | undefined;
344
+ worktreePath?: string | undefined;
329
345
  };
330
346
  fileName: string;
331
347
  size: number;
@@ -340,14 +356,15 @@ export declare const directTransferDescriptorSchema: z.ZodUnion<[z.ZodEffects<z.
340
356
  path: string;
341
357
  kind: "WORKSPACE_FILE";
342
358
  workspaceId: string;
359
+ repositoryPath?: string | undefined;
343
360
  worktreePath?: string | undefined;
344
361
  } | {
345
362
  path: string;
346
363
  kind: "GIT_COMMIT_BLOB";
347
364
  workspaceId: string;
348
365
  commit: string;
349
- worktreePath?: string | undefined;
350
366
  repositoryPath?: string | undefined;
367
+ worktreePath?: string | undefined;
351
368
  };
352
369
  fileName: string;
353
370
  size: number;
@@ -391,16 +408,19 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
391
408
  kind: z.ZodLiteral<"WORKSPACE_FILE">;
392
409
  workspaceId: z.ZodString;
393
410
  path: z.ZodString;
411
+ repositoryPath: z.ZodOptional<z.ZodString>;
394
412
  worktreePath: z.ZodOptional<z.ZodString>;
395
413
  }, "strict", z.ZodTypeAny, {
396
414
  path: string;
397
415
  kind: "WORKSPACE_FILE";
398
416
  workspaceId: string;
417
+ repositoryPath?: string | undefined;
399
418
  worktreePath?: string | undefined;
400
419
  }, {
401
420
  path: string;
402
421
  kind: "WORKSPACE_FILE";
403
422
  workspaceId: string;
423
+ repositoryPath?: string | undefined;
404
424
  worktreePath?: string | undefined;
405
425
  }>, z.ZodObject<{
406
426
  kind: z.ZodLiteral<"GIT_COMMIT_BLOB">;
@@ -414,15 +434,15 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
414
434
  kind: "GIT_COMMIT_BLOB";
415
435
  workspaceId: string;
416
436
  commit: string;
417
- worktreePath?: string | undefined;
418
437
  repositoryPath?: string | undefined;
438
+ worktreePath?: string | undefined;
419
439
  }, {
420
440
  path: string;
421
441
  kind: "GIT_COMMIT_BLOB";
422
442
  workspaceId: string;
423
443
  commit: string;
424
- worktreePath?: string | undefined;
425
444
  repositoryPath?: string | undefined;
445
+ worktreePath?: string | undefined;
426
446
  }>]>;
427
447
  fileName: z.ZodString;
428
448
  size: z.ZodNumber;
@@ -446,14 +466,15 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
446
466
  path: string;
447
467
  kind: "WORKSPACE_FILE";
448
468
  workspaceId: string;
469
+ repositoryPath?: string | undefined;
449
470
  worktreePath?: string | undefined;
450
471
  } | {
451
472
  path: string;
452
473
  kind: "GIT_COMMIT_BLOB";
453
474
  workspaceId: string;
454
475
  commit: string;
455
- worktreePath?: string | undefined;
456
476
  repositoryPath?: string | undefined;
477
+ worktreePath?: string | undefined;
457
478
  };
458
479
  fileName: string;
459
480
  size: number;
@@ -470,14 +491,15 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
470
491
  path: string;
471
492
  kind: "WORKSPACE_FILE";
472
493
  workspaceId: string;
494
+ repositoryPath?: string | undefined;
473
495
  worktreePath?: string | undefined;
474
496
  } | {
475
497
  path: string;
476
498
  kind: "GIT_COMMIT_BLOB";
477
499
  workspaceId: string;
478
500
  commit: string;
479
- worktreePath?: string | undefined;
480
501
  repositoryPath?: string | undefined;
502
+ worktreePath?: string | undefined;
481
503
  };
482
504
  fileName: string;
483
505
  size: number;
@@ -494,14 +516,15 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
494
516
  path: string;
495
517
  kind: "WORKSPACE_FILE";
496
518
  workspaceId: string;
519
+ repositoryPath?: string | undefined;
497
520
  worktreePath?: string | undefined;
498
521
  } | {
499
522
  path: string;
500
523
  kind: "GIT_COMMIT_BLOB";
501
524
  workspaceId: string;
502
525
  commit: string;
503
- worktreePath?: string | undefined;
504
526
  repositoryPath?: string | undefined;
527
+ worktreePath?: string | undefined;
505
528
  };
506
529
  fileName: string;
507
530
  size: number;
@@ -518,14 +541,15 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
518
541
  path: string;
519
542
  kind: "WORKSPACE_FILE";
520
543
  workspaceId: string;
544
+ repositoryPath?: string | undefined;
521
545
  worktreePath?: string | undefined;
522
546
  } | {
523
547
  path: string;
524
548
  kind: "GIT_COMMIT_BLOB";
525
549
  workspaceId: string;
526
550
  commit: string;
527
- worktreePath?: string | undefined;
528
551
  repositoryPath?: string | undefined;
552
+ worktreePath?: string | undefined;
529
553
  };
530
554
  fileName: string;
531
555
  size: number;
@@ -542,16 +566,19 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
542
566
  kind: z.ZodLiteral<"WORKSPACE_FILE">;
543
567
  workspaceId: z.ZodString;
544
568
  path: z.ZodString;
569
+ repositoryPath: z.ZodOptional<z.ZodString>;
545
570
  worktreePath: z.ZodOptional<z.ZodString>;
546
571
  }, "strict", z.ZodTypeAny, {
547
572
  path: string;
548
573
  kind: "WORKSPACE_FILE";
549
574
  workspaceId: string;
575
+ repositoryPath?: string | undefined;
550
576
  worktreePath?: string | undefined;
551
577
  }, {
552
578
  path: string;
553
579
  kind: "WORKSPACE_FILE";
554
580
  workspaceId: string;
581
+ repositoryPath?: string | undefined;
555
582
  worktreePath?: string | undefined;
556
583
  }>, z.ZodObject<{
557
584
  kind: z.ZodLiteral<"GIT_COMMIT_BLOB">;
@@ -565,15 +592,15 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
565
592
  kind: "GIT_COMMIT_BLOB";
566
593
  workspaceId: string;
567
594
  commit: string;
568
- worktreePath?: string | undefined;
569
595
  repositoryPath?: string | undefined;
596
+ worktreePath?: string | undefined;
570
597
  }, {
571
598
  path: string;
572
599
  kind: "GIT_COMMIT_BLOB";
573
600
  workspaceId: string;
574
601
  commit: string;
575
- worktreePath?: string | undefined;
576
602
  repositoryPath?: string | undefined;
603
+ worktreePath?: string | undefined;
577
604
  }>]>;
578
605
  fileName: z.ZodString;
579
606
  size: z.ZodNumber;
@@ -595,14 +622,15 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
595
622
  path: string;
596
623
  kind: "WORKSPACE_FILE";
597
624
  workspaceId: string;
625
+ repositoryPath?: string | undefined;
598
626
  worktreePath?: string | undefined;
599
627
  } | {
600
628
  path: string;
601
629
  kind: "GIT_COMMIT_BLOB";
602
630
  workspaceId: string;
603
631
  commit: string;
604
- worktreePath?: string | undefined;
605
632
  repositoryPath?: string | undefined;
633
+ worktreePath?: string | undefined;
606
634
  };
607
635
  fileName: string;
608
636
  size: number;
@@ -617,14 +645,15 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
617
645
  path: string;
618
646
  kind: "WORKSPACE_FILE";
619
647
  workspaceId: string;
648
+ repositoryPath?: string | undefined;
620
649
  worktreePath?: string | undefined;
621
650
  } | {
622
651
  path: string;
623
652
  kind: "GIT_COMMIT_BLOB";
624
653
  workspaceId: string;
625
654
  commit: string;
626
- worktreePath?: string | undefined;
627
655
  repositoryPath?: string | undefined;
656
+ worktreePath?: string | undefined;
628
657
  };
629
658
  fileName: string;
630
659
  size: number;
@@ -639,14 +668,15 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
639
668
  path: string;
640
669
  kind: "WORKSPACE_FILE";
641
670
  workspaceId: string;
671
+ repositoryPath?: string | undefined;
642
672
  worktreePath?: string | undefined;
643
673
  } | {
644
674
  path: string;
645
675
  kind: "GIT_COMMIT_BLOB";
646
676
  workspaceId: string;
647
677
  commit: string;
648
- worktreePath?: string | undefined;
649
678
  repositoryPath?: string | undefined;
679
+ worktreePath?: string | undefined;
650
680
  };
651
681
  fileName: string;
652
682
  size: number;
@@ -661,14 +691,15 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
661
691
  path: string;
662
692
  kind: "WORKSPACE_FILE";
663
693
  workspaceId: string;
694
+ repositoryPath?: string | undefined;
664
695
  worktreePath?: string | undefined;
665
696
  } | {
666
697
  path: string;
667
698
  kind: "GIT_COMMIT_BLOB";
668
699
  workspaceId: string;
669
700
  commit: string;
670
- worktreePath?: string | undefined;
671
701
  repositoryPath?: string | undefined;
702
+ worktreePath?: string | undefined;
672
703
  };
673
704
  fileName: string;
674
705
  size: number;
@@ -691,14 +722,15 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
691
722
  path: string;
692
723
  kind: "WORKSPACE_FILE";
693
724
  workspaceId: string;
725
+ repositoryPath?: string | undefined;
694
726
  worktreePath?: string | undefined;
695
727
  } | {
696
728
  path: string;
697
729
  kind: "GIT_COMMIT_BLOB";
698
730
  workspaceId: string;
699
731
  commit: string;
700
- worktreePath?: string | undefined;
701
732
  repositoryPath?: string | undefined;
733
+ worktreePath?: string | undefined;
702
734
  };
703
735
  fileName: string;
704
736
  size: number;
@@ -715,14 +747,15 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
715
747
  path: string;
716
748
  kind: "WORKSPACE_FILE";
717
749
  workspaceId: string;
750
+ repositoryPath?: string | undefined;
718
751
  worktreePath?: string | undefined;
719
752
  } | {
720
753
  path: string;
721
754
  kind: "GIT_COMMIT_BLOB";
722
755
  workspaceId: string;
723
756
  commit: string;
724
- worktreePath?: string | undefined;
725
757
  repositoryPath?: string | undefined;
758
+ worktreePath?: string | undefined;
726
759
  };
727
760
  fileName: string;
728
761
  size: number;
@@ -745,14 +778,15 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
745
778
  path: string;
746
779
  kind: "WORKSPACE_FILE";
747
780
  workspaceId: string;
781
+ repositoryPath?: string | undefined;
748
782
  worktreePath?: string | undefined;
749
783
  } | {
750
784
  path: string;
751
785
  kind: "GIT_COMMIT_BLOB";
752
786
  workspaceId: string;
753
787
  commit: string;
754
- worktreePath?: string | undefined;
755
788
  repositoryPath?: string | undefined;
789
+ worktreePath?: string | undefined;
756
790
  };
757
791
  fileName: string;
758
792
  size: number;
@@ -769,14 +803,15 @@ export declare const directPrepareRequestSchema: z.ZodDiscriminatedUnion<"purpos
769
803
  path: string;
770
804
  kind: "WORKSPACE_FILE";
771
805
  workspaceId: string;
806
+ repositoryPath?: string | undefined;
772
807
  worktreePath?: string | undefined;
773
808
  } | {
774
809
  path: string;
775
810
  kind: "GIT_COMMIT_BLOB";
776
811
  workspaceId: string;
777
812
  commit: string;
778
- worktreePath?: string | undefined;
779
813
  repositoryPath?: string | undefined;
814
+ worktreePath?: string | undefined;
780
815
  };
781
816
  fileName: string;
782
817
  size: number;
@@ -896,16 +931,19 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
896
931
  kind: z.ZodLiteral<"WORKSPACE_FILE">;
897
932
  workspaceId: z.ZodString;
898
933
  path: z.ZodString;
934
+ repositoryPath: z.ZodOptional<z.ZodString>;
899
935
  worktreePath: z.ZodOptional<z.ZodString>;
900
936
  }, "strict", z.ZodTypeAny, {
901
937
  path: string;
902
938
  kind: "WORKSPACE_FILE";
903
939
  workspaceId: string;
940
+ repositoryPath?: string | undefined;
904
941
  worktreePath?: string | undefined;
905
942
  }, {
906
943
  path: string;
907
944
  kind: "WORKSPACE_FILE";
908
945
  workspaceId: string;
946
+ repositoryPath?: string | undefined;
909
947
  worktreePath?: string | undefined;
910
948
  }>, z.ZodObject<{
911
949
  kind: z.ZodLiteral<"GIT_COMMIT_BLOB">;
@@ -919,15 +957,15 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
919
957
  kind: "GIT_COMMIT_BLOB";
920
958
  workspaceId: string;
921
959
  commit: string;
922
- worktreePath?: string | undefined;
923
960
  repositoryPath?: string | undefined;
961
+ worktreePath?: string | undefined;
924
962
  }, {
925
963
  path: string;
926
964
  kind: "GIT_COMMIT_BLOB";
927
965
  workspaceId: string;
928
966
  commit: string;
929
- worktreePath?: string | undefined;
930
967
  repositoryPath?: string | undefined;
968
+ worktreePath?: string | undefined;
931
969
  }>]>;
932
970
  fileName: z.ZodString;
933
971
  size: z.ZodNumber;
@@ -951,14 +989,15 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
951
989
  path: string;
952
990
  kind: "WORKSPACE_FILE";
953
991
  workspaceId: string;
992
+ repositoryPath?: string | undefined;
954
993
  worktreePath?: string | undefined;
955
994
  } | {
956
995
  path: string;
957
996
  kind: "GIT_COMMIT_BLOB";
958
997
  workspaceId: string;
959
998
  commit: string;
960
- worktreePath?: string | undefined;
961
999
  repositoryPath?: string | undefined;
1000
+ worktreePath?: string | undefined;
962
1001
  };
963
1002
  fileName: string;
964
1003
  size: number;
@@ -975,14 +1014,15 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
975
1014
  path: string;
976
1015
  kind: "WORKSPACE_FILE";
977
1016
  workspaceId: string;
1017
+ repositoryPath?: string | undefined;
978
1018
  worktreePath?: string | undefined;
979
1019
  } | {
980
1020
  path: string;
981
1021
  kind: "GIT_COMMIT_BLOB";
982
1022
  workspaceId: string;
983
1023
  commit: string;
984
- worktreePath?: string | undefined;
985
1024
  repositoryPath?: string | undefined;
1025
+ worktreePath?: string | undefined;
986
1026
  };
987
1027
  fileName: string;
988
1028
  size: number;
@@ -999,14 +1039,15 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
999
1039
  path: string;
1000
1040
  kind: "WORKSPACE_FILE";
1001
1041
  workspaceId: string;
1042
+ repositoryPath?: string | undefined;
1002
1043
  worktreePath?: string | undefined;
1003
1044
  } | {
1004
1045
  path: string;
1005
1046
  kind: "GIT_COMMIT_BLOB";
1006
1047
  workspaceId: string;
1007
1048
  commit: string;
1008
- worktreePath?: string | undefined;
1009
1049
  repositoryPath?: string | undefined;
1050
+ worktreePath?: string | undefined;
1010
1051
  };
1011
1052
  fileName: string;
1012
1053
  size: number;
@@ -1023,14 +1064,15 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
1023
1064
  path: string;
1024
1065
  kind: "WORKSPACE_FILE";
1025
1066
  workspaceId: string;
1067
+ repositoryPath?: string | undefined;
1026
1068
  worktreePath?: string | undefined;
1027
1069
  } | {
1028
1070
  path: string;
1029
1071
  kind: "GIT_COMMIT_BLOB";
1030
1072
  workspaceId: string;
1031
1073
  commit: string;
1032
- worktreePath?: string | undefined;
1033
1074
  repositoryPath?: string | undefined;
1075
+ worktreePath?: string | undefined;
1034
1076
  };
1035
1077
  fileName: string;
1036
1078
  size: number;
@@ -1047,16 +1089,19 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
1047
1089
  kind: z.ZodLiteral<"WORKSPACE_FILE">;
1048
1090
  workspaceId: z.ZodString;
1049
1091
  path: z.ZodString;
1092
+ repositoryPath: z.ZodOptional<z.ZodString>;
1050
1093
  worktreePath: z.ZodOptional<z.ZodString>;
1051
1094
  }, "strict", z.ZodTypeAny, {
1052
1095
  path: string;
1053
1096
  kind: "WORKSPACE_FILE";
1054
1097
  workspaceId: string;
1098
+ repositoryPath?: string | undefined;
1055
1099
  worktreePath?: string | undefined;
1056
1100
  }, {
1057
1101
  path: string;
1058
1102
  kind: "WORKSPACE_FILE";
1059
1103
  workspaceId: string;
1104
+ repositoryPath?: string | undefined;
1060
1105
  worktreePath?: string | undefined;
1061
1106
  }>, z.ZodObject<{
1062
1107
  kind: z.ZodLiteral<"GIT_COMMIT_BLOB">;
@@ -1070,15 +1115,15 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
1070
1115
  kind: "GIT_COMMIT_BLOB";
1071
1116
  workspaceId: string;
1072
1117
  commit: string;
1073
- worktreePath?: string | undefined;
1074
1118
  repositoryPath?: string | undefined;
1119
+ worktreePath?: string | undefined;
1075
1120
  }, {
1076
1121
  path: string;
1077
1122
  kind: "GIT_COMMIT_BLOB";
1078
1123
  workspaceId: string;
1079
1124
  commit: string;
1080
- worktreePath?: string | undefined;
1081
1125
  repositoryPath?: string | undefined;
1126
+ worktreePath?: string | undefined;
1082
1127
  }>]>;
1083
1128
  fileName: z.ZodString;
1084
1129
  size: z.ZodNumber;
@@ -1100,14 +1145,15 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
1100
1145
  path: string;
1101
1146
  kind: "WORKSPACE_FILE";
1102
1147
  workspaceId: string;
1148
+ repositoryPath?: string | undefined;
1103
1149
  worktreePath?: string | undefined;
1104
1150
  } | {
1105
1151
  path: string;
1106
1152
  kind: "GIT_COMMIT_BLOB";
1107
1153
  workspaceId: string;
1108
1154
  commit: string;
1109
- worktreePath?: string | undefined;
1110
1155
  repositoryPath?: string | undefined;
1156
+ worktreePath?: string | undefined;
1111
1157
  };
1112
1158
  fileName: string;
1113
1159
  size: number;
@@ -1122,14 +1168,15 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
1122
1168
  path: string;
1123
1169
  kind: "WORKSPACE_FILE";
1124
1170
  workspaceId: string;
1171
+ repositoryPath?: string | undefined;
1125
1172
  worktreePath?: string | undefined;
1126
1173
  } | {
1127
1174
  path: string;
1128
1175
  kind: "GIT_COMMIT_BLOB";
1129
1176
  workspaceId: string;
1130
1177
  commit: string;
1131
- worktreePath?: string | undefined;
1132
1178
  repositoryPath?: string | undefined;
1179
+ worktreePath?: string | undefined;
1133
1180
  };
1134
1181
  fileName: string;
1135
1182
  size: number;
@@ -1144,14 +1191,15 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
1144
1191
  path: string;
1145
1192
  kind: "WORKSPACE_FILE";
1146
1193
  workspaceId: string;
1194
+ repositoryPath?: string | undefined;
1147
1195
  worktreePath?: string | undefined;
1148
1196
  } | {
1149
1197
  path: string;
1150
1198
  kind: "GIT_COMMIT_BLOB";
1151
1199
  workspaceId: string;
1152
1200
  commit: string;
1153
- worktreePath?: string | undefined;
1154
1201
  repositoryPath?: string | undefined;
1202
+ worktreePath?: string | undefined;
1155
1203
  };
1156
1204
  fileName: string;
1157
1205
  size: number;
@@ -1166,14 +1214,15 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
1166
1214
  path: string;
1167
1215
  kind: "WORKSPACE_FILE";
1168
1216
  workspaceId: string;
1217
+ repositoryPath?: string | undefined;
1169
1218
  worktreePath?: string | undefined;
1170
1219
  } | {
1171
1220
  path: string;
1172
1221
  kind: "GIT_COMMIT_BLOB";
1173
1222
  workspaceId: string;
1174
1223
  commit: string;
1175
- worktreePath?: string | undefined;
1176
1224
  repositoryPath?: string | undefined;
1225
+ worktreePath?: string | undefined;
1177
1226
  };
1178
1227
  fileName: string;
1179
1228
  size: number;
@@ -1196,14 +1245,15 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
1196
1245
  path: string;
1197
1246
  kind: "WORKSPACE_FILE";
1198
1247
  workspaceId: string;
1248
+ repositoryPath?: string | undefined;
1199
1249
  worktreePath?: string | undefined;
1200
1250
  } | {
1201
1251
  path: string;
1202
1252
  kind: "GIT_COMMIT_BLOB";
1203
1253
  workspaceId: string;
1204
1254
  commit: string;
1205
- worktreePath?: string | undefined;
1206
1255
  repositoryPath?: string | undefined;
1256
+ worktreePath?: string | undefined;
1207
1257
  };
1208
1258
  fileName: string;
1209
1259
  size: number;
@@ -1220,14 +1270,15 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
1220
1270
  path: string;
1221
1271
  kind: "WORKSPACE_FILE";
1222
1272
  workspaceId: string;
1273
+ repositoryPath?: string | undefined;
1223
1274
  worktreePath?: string | undefined;
1224
1275
  } | {
1225
1276
  path: string;
1226
1277
  kind: "GIT_COMMIT_BLOB";
1227
1278
  workspaceId: string;
1228
1279
  commit: string;
1229
- worktreePath?: string | undefined;
1230
1280
  repositoryPath?: string | undefined;
1281
+ worktreePath?: string | undefined;
1231
1282
  };
1232
1283
  fileName: string;
1233
1284
  size: number;
@@ -1250,14 +1301,15 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
1250
1301
  path: string;
1251
1302
  kind: "WORKSPACE_FILE";
1252
1303
  workspaceId: string;
1304
+ repositoryPath?: string | undefined;
1253
1305
  worktreePath?: string | undefined;
1254
1306
  } | {
1255
1307
  path: string;
1256
1308
  kind: "GIT_COMMIT_BLOB";
1257
1309
  workspaceId: string;
1258
1310
  commit: string;
1259
- worktreePath?: string | undefined;
1260
1311
  repositoryPath?: string | undefined;
1312
+ worktreePath?: string | undefined;
1261
1313
  };
1262
1314
  fileName: string;
1263
1315
  size: number;
@@ -1274,14 +1326,15 @@ export declare const directBrowserMessageSchema: z.ZodUnion<[z.ZodDiscriminatedU
1274
1326
  path: string;
1275
1327
  kind: "WORKSPACE_FILE";
1276
1328
  workspaceId: string;
1329
+ repositoryPath?: string | undefined;
1277
1330
  worktreePath?: string | undefined;
1278
1331
  } | {
1279
1332
  path: string;
1280
1333
  kind: "GIT_COMMIT_BLOB";
1281
1334
  workspaceId: string;
1282
1335
  commit: string;
1283
- worktreePath?: string | undefined;
1284
1336
  repositoryPath?: string | undefined;
1337
+ worktreePath?: string | undefined;
1285
1338
  };
1286
1339
  fileName: string;
1287
1340
  size: number;
@@ -1713,16 +1766,19 @@ export declare const directNodeCommandSchema: z.ZodUnion<[z.ZodObject<{
1713
1766
  kind: z.ZodLiteral<"WORKSPACE_FILE">;
1714
1767
  workspaceId: z.ZodString;
1715
1768
  path: z.ZodString;
1769
+ repositoryPath: z.ZodOptional<z.ZodString>;
1716
1770
  worktreePath: z.ZodOptional<z.ZodString>;
1717
1771
  }, "strict", z.ZodTypeAny, {
1718
1772
  path: string;
1719
1773
  kind: "WORKSPACE_FILE";
1720
1774
  workspaceId: string;
1775
+ repositoryPath?: string | undefined;
1721
1776
  worktreePath?: string | undefined;
1722
1777
  }, {
1723
1778
  path: string;
1724
1779
  kind: "WORKSPACE_FILE";
1725
1780
  workspaceId: string;
1781
+ repositoryPath?: string | undefined;
1726
1782
  worktreePath?: string | undefined;
1727
1783
  }>, z.ZodObject<{
1728
1784
  kind: z.ZodLiteral<"GIT_COMMIT_BLOB">;
@@ -1736,15 +1792,15 @@ export declare const directNodeCommandSchema: z.ZodUnion<[z.ZodObject<{
1736
1792
  kind: "GIT_COMMIT_BLOB";
1737
1793
  workspaceId: string;
1738
1794
  commit: string;
1739
- worktreePath?: string | undefined;
1740
1795
  repositoryPath?: string | undefined;
1796
+ worktreePath?: string | undefined;
1741
1797
  }, {
1742
1798
  path: string;
1743
1799
  kind: "GIT_COMMIT_BLOB";
1744
1800
  workspaceId: string;
1745
1801
  commit: string;
1746
- worktreePath?: string | undefined;
1747
1802
  repositoryPath?: string | undefined;
1803
+ worktreePath?: string | undefined;
1748
1804
  }>]>;
1749
1805
  fileName: z.ZodString;
1750
1806
  size: z.ZodNumber;
@@ -1768,14 +1824,15 @@ export declare const directNodeCommandSchema: z.ZodUnion<[z.ZodObject<{
1768
1824
  path: string;
1769
1825
  kind: "WORKSPACE_FILE";
1770
1826
  workspaceId: string;
1827
+ repositoryPath?: string | undefined;
1771
1828
  worktreePath?: string | undefined;
1772
1829
  } | {
1773
1830
  path: string;
1774
1831
  kind: "GIT_COMMIT_BLOB";
1775
1832
  workspaceId: string;
1776
1833
  commit: string;
1777
- worktreePath?: string | undefined;
1778
1834
  repositoryPath?: string | undefined;
1835
+ worktreePath?: string | undefined;
1779
1836
  };
1780
1837
  fileName: string;
1781
1838
  size: number;
@@ -1792,14 +1849,15 @@ export declare const directNodeCommandSchema: z.ZodUnion<[z.ZodObject<{
1792
1849
  path: string;
1793
1850
  kind: "WORKSPACE_FILE";
1794
1851
  workspaceId: string;
1852
+ repositoryPath?: string | undefined;
1795
1853
  worktreePath?: string | undefined;
1796
1854
  } | {
1797
1855
  path: string;
1798
1856
  kind: "GIT_COMMIT_BLOB";
1799
1857
  workspaceId: string;
1800
1858
  commit: string;
1801
- worktreePath?: string | undefined;
1802
1859
  repositoryPath?: string | undefined;
1860
+ worktreePath?: string | undefined;
1803
1861
  };
1804
1862
  fileName: string;
1805
1863
  size: number;
@@ -1816,14 +1874,15 @@ export declare const directNodeCommandSchema: z.ZodUnion<[z.ZodObject<{
1816
1874
  path: string;
1817
1875
  kind: "WORKSPACE_FILE";
1818
1876
  workspaceId: string;
1877
+ repositoryPath?: string | undefined;
1819
1878
  worktreePath?: string | undefined;
1820
1879
  } | {
1821
1880
  path: string;
1822
1881
  kind: "GIT_COMMIT_BLOB";
1823
1882
  workspaceId: string;
1824
1883
  commit: string;
1825
- worktreePath?: string | undefined;
1826
1884
  repositoryPath?: string | undefined;
1885
+ worktreePath?: string | undefined;
1827
1886
  };
1828
1887
  fileName: string;
1829
1888
  size: number;
@@ -1840,14 +1899,15 @@ export declare const directNodeCommandSchema: z.ZodUnion<[z.ZodObject<{
1840
1899
  path: string;
1841
1900
  kind: "WORKSPACE_FILE";
1842
1901
  workspaceId: string;
1902
+ repositoryPath?: string | undefined;
1843
1903
  worktreePath?: string | undefined;
1844
1904
  } | {
1845
1905
  path: string;
1846
1906
  kind: "GIT_COMMIT_BLOB";
1847
1907
  workspaceId: string;
1848
1908
  commit: string;
1849
- worktreePath?: string | undefined;
1850
1909
  repositoryPath?: string | undefined;
1910
+ worktreePath?: string | undefined;
1851
1911
  };
1852
1912
  fileName: string;
1853
1913
  size: number;
@@ -1864,16 +1924,19 @@ export declare const directNodeCommandSchema: z.ZodUnion<[z.ZodObject<{
1864
1924
  kind: z.ZodLiteral<"WORKSPACE_FILE">;
1865
1925
  workspaceId: z.ZodString;
1866
1926
  path: z.ZodString;
1927
+ repositoryPath: z.ZodOptional<z.ZodString>;
1867
1928
  worktreePath: z.ZodOptional<z.ZodString>;
1868
1929
  }, "strict", z.ZodTypeAny, {
1869
1930
  path: string;
1870
1931
  kind: "WORKSPACE_FILE";
1871
1932
  workspaceId: string;
1933
+ repositoryPath?: string | undefined;
1872
1934
  worktreePath?: string | undefined;
1873
1935
  }, {
1874
1936
  path: string;
1875
1937
  kind: "WORKSPACE_FILE";
1876
1938
  workspaceId: string;
1939
+ repositoryPath?: string | undefined;
1877
1940
  worktreePath?: string | undefined;
1878
1941
  }>, z.ZodObject<{
1879
1942
  kind: z.ZodLiteral<"GIT_COMMIT_BLOB">;
@@ -1887,15 +1950,15 @@ export declare const directNodeCommandSchema: z.ZodUnion<[z.ZodObject<{
1887
1950
  kind: "GIT_COMMIT_BLOB";
1888
1951
  workspaceId: string;
1889
1952
  commit: string;
1890
- worktreePath?: string | undefined;
1891
1953
  repositoryPath?: string | undefined;
1954
+ worktreePath?: string | undefined;
1892
1955
  }, {
1893
1956
  path: string;
1894
1957
  kind: "GIT_COMMIT_BLOB";
1895
1958
  workspaceId: string;
1896
1959
  commit: string;
1897
- worktreePath?: string | undefined;
1898
1960
  repositoryPath?: string | undefined;
1961
+ worktreePath?: string | undefined;
1899
1962
  }>]>;
1900
1963
  fileName: z.ZodString;
1901
1964
  size: z.ZodNumber;
@@ -1917,14 +1980,15 @@ export declare const directNodeCommandSchema: z.ZodUnion<[z.ZodObject<{
1917
1980
  path: string;
1918
1981
  kind: "WORKSPACE_FILE";
1919
1982
  workspaceId: string;
1983
+ repositoryPath?: string | undefined;
1920
1984
  worktreePath?: string | undefined;
1921
1985
  } | {
1922
1986
  path: string;
1923
1987
  kind: "GIT_COMMIT_BLOB";
1924
1988
  workspaceId: string;
1925
1989
  commit: string;
1926
- worktreePath?: string | undefined;
1927
1990
  repositoryPath?: string | undefined;
1991
+ worktreePath?: string | undefined;
1928
1992
  };
1929
1993
  fileName: string;
1930
1994
  size: number;
@@ -1939,14 +2003,15 @@ export declare const directNodeCommandSchema: z.ZodUnion<[z.ZodObject<{
1939
2003
  path: string;
1940
2004
  kind: "WORKSPACE_FILE";
1941
2005
  workspaceId: string;
2006
+ repositoryPath?: string | undefined;
1942
2007
  worktreePath?: string | undefined;
1943
2008
  } | {
1944
2009
  path: string;
1945
2010
  kind: "GIT_COMMIT_BLOB";
1946
2011
  workspaceId: string;
1947
2012
  commit: string;
1948
- worktreePath?: string | undefined;
1949
2013
  repositoryPath?: string | undefined;
2014
+ worktreePath?: string | undefined;
1950
2015
  };
1951
2016
  fileName: string;
1952
2017
  size: number;
@@ -1961,14 +2026,15 @@ export declare const directNodeCommandSchema: z.ZodUnion<[z.ZodObject<{
1961
2026
  path: string;
1962
2027
  kind: "WORKSPACE_FILE";
1963
2028
  workspaceId: string;
2029
+ repositoryPath?: string | undefined;
1964
2030
  worktreePath?: string | undefined;
1965
2031
  } | {
1966
2032
  path: string;
1967
2033
  kind: "GIT_COMMIT_BLOB";
1968
2034
  workspaceId: string;
1969
2035
  commit: string;
1970
- worktreePath?: string | undefined;
1971
2036
  repositoryPath?: string | undefined;
2037
+ worktreePath?: string | undefined;
1972
2038
  };
1973
2039
  fileName: string;
1974
2040
  size: number;
@@ -1983,14 +2049,15 @@ export declare const directNodeCommandSchema: z.ZodUnion<[z.ZodObject<{
1983
2049
  path: string;
1984
2050
  kind: "WORKSPACE_FILE";
1985
2051
  workspaceId: string;
2052
+ repositoryPath?: string | undefined;
1986
2053
  worktreePath?: string | undefined;
1987
2054
  } | {
1988
2055
  path: string;
1989
2056
  kind: "GIT_COMMIT_BLOB";
1990
2057
  workspaceId: string;
1991
2058
  commit: string;
1992
- worktreePath?: string | undefined;
1993
2059
  repositoryPath?: string | undefined;
2060
+ worktreePath?: string | undefined;
1994
2061
  };
1995
2062
  fileName: string;
1996
2063
  size: number;
@@ -2013,14 +2080,15 @@ export declare const directNodeCommandSchema: z.ZodUnion<[z.ZodObject<{
2013
2080
  path: string;
2014
2081
  kind: "WORKSPACE_FILE";
2015
2082
  workspaceId: string;
2083
+ repositoryPath?: string | undefined;
2016
2084
  worktreePath?: string | undefined;
2017
2085
  } | {
2018
2086
  path: string;
2019
2087
  kind: "GIT_COMMIT_BLOB";
2020
2088
  workspaceId: string;
2021
2089
  commit: string;
2022
- worktreePath?: string | undefined;
2023
2090
  repositoryPath?: string | undefined;
2091
+ worktreePath?: string | undefined;
2024
2092
  };
2025
2093
  fileName: string;
2026
2094
  size: number;
@@ -2037,14 +2105,15 @@ export declare const directNodeCommandSchema: z.ZodUnion<[z.ZodObject<{
2037
2105
  path: string;
2038
2106
  kind: "WORKSPACE_FILE";
2039
2107
  workspaceId: string;
2108
+ repositoryPath?: string | undefined;
2040
2109
  worktreePath?: string | undefined;
2041
2110
  } | {
2042
2111
  path: string;
2043
2112
  kind: "GIT_COMMIT_BLOB";
2044
2113
  workspaceId: string;
2045
2114
  commit: string;
2046
- worktreePath?: string | undefined;
2047
2115
  repositoryPath?: string | undefined;
2116
+ worktreePath?: string | undefined;
2048
2117
  };
2049
2118
  fileName: string;
2050
2119
  size: number;
@@ -2069,14 +2138,15 @@ export declare const directNodeCommandSchema: z.ZodUnion<[z.ZodObject<{
2069
2138
  path: string;
2070
2139
  kind: "WORKSPACE_FILE";
2071
2140
  workspaceId: string;
2141
+ repositoryPath?: string | undefined;
2072
2142
  worktreePath?: string | undefined;
2073
2143
  } | {
2074
2144
  path: string;
2075
2145
  kind: "GIT_COMMIT_BLOB";
2076
2146
  workspaceId: string;
2077
2147
  commit: string;
2078
- worktreePath?: string | undefined;
2079
2148
  repositoryPath?: string | undefined;
2149
+ worktreePath?: string | undefined;
2080
2150
  };
2081
2151
  fileName: string;
2082
2152
  size: number;
@@ -2093,14 +2163,15 @@ export declare const directNodeCommandSchema: z.ZodUnion<[z.ZodObject<{
2093
2163
  path: string;
2094
2164
  kind: "WORKSPACE_FILE";
2095
2165
  workspaceId: string;
2166
+ repositoryPath?: string | undefined;
2096
2167
  worktreePath?: string | undefined;
2097
2168
  } | {
2098
2169
  path: string;
2099
2170
  kind: "GIT_COMMIT_BLOB";
2100
2171
  workspaceId: string;
2101
2172
  commit: string;
2102
- worktreePath?: string | undefined;
2103
2173
  repositoryPath?: string | undefined;
2174
+ worktreePath?: string | undefined;
2104
2175
  };
2105
2176
  fileName: string;
2106
2177
  size: number;
@@ -37,6 +37,7 @@ const workspaceFileResourceSchema = z
37
37
  kind: z.literal('WORKSPACE_FILE'),
38
38
  workspaceId: resourceIdentifierSchema,
39
39
  path: relativePathSchema,
40
+ repositoryPath: z.string().max(4096).optional(),
40
41
  worktreePath: relativePathSchema.optional()
41
42
  })
42
43
  .strict();
@@ -77,6 +78,14 @@ const directUploadDescriptorSchema = directTransferDescriptorBaseSchema
77
78
  })
78
79
  .strict()
79
80
  .superRefine((descriptor, context) => {
81
+ if (descriptor.resource.kind === 'WORKSPACE_FILE' &&
82
+ (descriptor.resource.repositoryPath !== undefined ||
83
+ descriptor.resource.worktreePath !== undefined))
84
+ context.addIssue({
85
+ code: 'custom',
86
+ path: ['resource'],
87
+ message: 'Git file targets are read-only'
88
+ });
80
89
  if (descriptor.resumeOffset !== undefined && descriptor.resumeOffset > descriptor.size)
81
90
  context.addIssue({
82
91
  code: 'custom',
@@ -482,10 +482,13 @@ export declare const personalGitSummarySchema: z.ZodObject<{
482
482
  export type PersonalGitSummary = z.infer<typeof personalGitSummarySchema>;
483
483
  export declare const workspaceGitSettingsSchema: z.ZodObject<{
484
484
  preserveGitConfig: z.ZodBoolean;
485
+ includeParentRepository: z.ZodOptional<z.ZodBoolean>;
485
486
  }, "strict", z.ZodTypeAny, {
486
487
  preserveGitConfig: boolean;
488
+ includeParentRepository?: boolean | undefined;
487
489
  }, {
488
490
  preserveGitConfig: boolean;
491
+ includeParentRepository?: boolean | undefined;
489
492
  }>;
490
493
  /** Reject unsupported persisted Git configuration shapes at the owning boundary. */
491
494
  export declare function parsePersonalGitRuntime(value: unknown): PersonalGitRuntime;
@@ -242,7 +242,12 @@ export const personalGitSummarySchema = z
242
242
  credentials: z.array(gitCredentialSummarySchema).max(64)
243
243
  })
244
244
  .strict();
245
- export const workspaceGitSettingsSchema = z.object({ preserveGitConfig: z.boolean() }).strict();
245
+ export const workspaceGitSettingsSchema = z
246
+ .object({
247
+ preserveGitConfig: z.boolean(),
248
+ includeParentRepository: z.boolean().optional()
249
+ })
250
+ .strict();
246
251
  /** Reject unsupported persisted Git configuration shapes at the owning boundary. */
247
252
  export function parsePersonalGitRuntime(value) {
248
253
  const current = personalGitRuntimeSchema.safeParse(value);
package/dist/index.d.ts CHANGED
@@ -1561,6 +1561,7 @@ export type NodeCapabilities = z.infer<typeof nodeCapabilitiesSchema>;
1561
1561
  export declare const workspaceKindSchema: z.ZodEnum<["DIRECTORY", "GIT_WORKSPACE"]>;
1562
1562
  export type WorkspaceKind = z.infer<typeof workspaceKindSchema>;
1563
1563
  export declare const gitSummarySchema: z.ZodObject<{
1564
+ repositoryRoot: z.ZodOptional<z.ZodString>;
1564
1565
  commonDir: z.ZodString;
1565
1566
  head: z.ZodString;
1566
1567
  branch: z.ZodNullable<z.ZodString>;
@@ -1572,12 +1573,14 @@ export declare const gitSummarySchema: z.ZodObject<{
1572
1573
  head: string;
1573
1574
  branch: string | null;
1574
1575
  snapshot: string;
1576
+ repositoryRoot?: string | undefined;
1575
1577
  }, {
1576
1578
  dirty: boolean;
1577
1579
  commonDir: string;
1578
1580
  head: string;
1579
1581
  branch: string | null;
1580
1582
  snapshot: string;
1583
+ repositoryRoot?: string | undefined;
1581
1584
  }>;
1582
1585
  export type GitSummary = z.infer<typeof gitSummarySchema>;
1583
1586
  /** Runner names are deliberately closed in the first implementation. */
package/dist/index.js CHANGED
@@ -356,6 +356,7 @@ export const nodeCapabilitiesSchema = z
356
356
  });
357
357
  export const workspaceKindSchema = z.enum(['DIRECTORY', 'GIT_WORKSPACE']);
358
358
  export const gitSummarySchema = z.object({
359
+ repositoryRoot: z.string().optional(),
359
360
  commonDir: z.string(),
360
361
  head: z.string(),
361
362
  branch: z.string().nullable(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "Shared runtime protocol schemas for MyAgentRoam.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",