@spencerboucher/switchyard-client 0.14.0 → 0.17.0
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.
- package/dist/index.js +1524 -1333
- package/dist/types/protocol/api.d.ts +38 -0
- package/dist/types/protocol/client-wire.d.ts +76 -0
- package/dist/types/protocol/entities.d.ts +39 -0
- package/dist/types/protocol/events.d.ts +38 -0
- package/dist/types/protocol/host-wire.d.ts +103 -0
- package/dist/types/protocol/ids.d.ts +1 -1
- package/dist/types/protocol/index.d.ts +1 -0
- package/dist/types/protocol/trackers.d.ts +244 -0
- package/dist/types/protocol/views.d.ts +3 -1
- package/package.json +5 -1
|
@@ -71,6 +71,8 @@ export declare const UpdateProjectRequest: z.ZodObject<{
|
|
|
71
71
|
single_writer: "single_writer";
|
|
72
72
|
}>>;
|
|
73
73
|
worktreeDir: z.ZodOptional<z.ZodString>;
|
|
74
|
+
ensureSessions: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
+
removeLanded: z.ZodOptional<z.ZodBoolean>;
|
|
74
76
|
}, z.core.$strip>;
|
|
75
77
|
export declare const AddCheckoutRequest: z.ZodObject<{
|
|
76
78
|
hostId: z.ZodString;
|
|
@@ -624,6 +626,9 @@ export declare const BranchResult: z.ZodObject<{
|
|
|
624
626
|
lastAssistantText: z.ZodNullable<z.ZodString>;
|
|
625
627
|
createdAt: z.ZodString;
|
|
626
628
|
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
629
|
+
external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
630
|
+
client: z.ZodNullable<z.ZodString>;
|
|
631
|
+
}, z.core.$strip>>>;
|
|
627
632
|
unreadSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
628
633
|
adapterGeneration: z.ZodOptional<z.ZodString>;
|
|
629
634
|
transcriptEpoch: z.ZodOptional<z.ZodNumber>;
|
|
@@ -894,6 +899,7 @@ export declare const UpdateTaskRequest: z.ZodObject<{
|
|
|
894
899
|
githubIssueUrl: z.ZodOptional<z.ZodNever>;
|
|
895
900
|
githubIssue: z.ZodOptional<z.ZodNever>;
|
|
896
901
|
launchPrompt: z.ZodOptional<z.ZodNever>;
|
|
902
|
+
tracker: z.ZodOptional<z.ZodNever>;
|
|
897
903
|
title: z.ZodOptional<z.ZodString>;
|
|
898
904
|
objective: z.ZodOptional<z.ZodString>;
|
|
899
905
|
acceptanceCriteria: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1012,6 +1018,36 @@ export declare const MoveTaskResult: z.ZodObject<{
|
|
|
1012
1018
|
url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1013
1019
|
launchPrompt: z.ZodString;
|
|
1014
1020
|
}, z.core.$strict>>;
|
|
1021
|
+
tracker: z.ZodOptional<z.ZodObject<{
|
|
1022
|
+
trackerId: z.ZodString;
|
|
1023
|
+
itemId: z.ZodString;
|
|
1024
|
+
repository: z.ZodString;
|
|
1025
|
+
number: z.ZodNumber;
|
|
1026
|
+
assignees: z.ZodArray<z.ZodString>;
|
|
1027
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
1028
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
1029
|
+
pullRequest: z.ZodNullable<z.ZodObject<{
|
|
1030
|
+
number: z.ZodNumber;
|
|
1031
|
+
state: z.ZodEnum<{
|
|
1032
|
+
CLOSED: "CLOSED";
|
|
1033
|
+
MERGED: "MERGED";
|
|
1034
|
+
OPEN: "OPEN";
|
|
1035
|
+
}>;
|
|
1036
|
+
url: z.ZodString;
|
|
1037
|
+
headRefName: z.ZodString;
|
|
1038
|
+
}, z.core.$strip>>;
|
|
1039
|
+
board: z.ZodNullable<z.ZodObject<{
|
|
1040
|
+
projectId: z.ZodString;
|
|
1041
|
+
projectItemId: z.ZodString;
|
|
1042
|
+
fieldId: z.ZodString;
|
|
1043
|
+
status: z.ZodNullable<z.ZodString>;
|
|
1044
|
+
statusOptionId: z.ZodNullable<z.ZodString>;
|
|
1045
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1046
|
+
id: z.ZodString;
|
|
1047
|
+
name: z.ZodString;
|
|
1048
|
+
}, z.core.$strip>>;
|
|
1049
|
+
}, z.core.$strip>>;
|
|
1050
|
+
}, z.core.$strip>>;
|
|
1015
1051
|
currentRunId: z.ZodNullable<z.ZodString>;
|
|
1016
1052
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
1017
1053
|
review: z.ZodObject<{
|
|
@@ -1431,6 +1467,7 @@ export declare const ViewInput: z.ZodObject<{
|
|
|
1431
1467
|
}>>;
|
|
1432
1468
|
projectIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1433
1469
|
hostIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1470
|
+
clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1434
1471
|
}, z.core.$strip>;
|
|
1435
1472
|
export declare const ViewPatch: z.ZodObject<{
|
|
1436
1473
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1440,6 +1477,7 @@ export declare const ViewPatch: z.ZodObject<{
|
|
|
1440
1477
|
}>>>;
|
|
1441
1478
|
projectIds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
|
|
1442
1479
|
hostIds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
|
|
1480
|
+
clientId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1443
1481
|
}, z.core.$strip>;
|
|
1444
1482
|
export declare const ViewClientReport: z.ZodObject<{
|
|
1445
1483
|
id: z.ZodString;
|
|
@@ -100,6 +100,8 @@ export declare const SyncState: z.ZodObject<{
|
|
|
100
100
|
single_writer: "single_writer";
|
|
101
101
|
}>;
|
|
102
102
|
worktreeDir: z.ZodDefault<z.ZodString>;
|
|
103
|
+
ensureSessions: z.ZodDefault<z.ZodBoolean>;
|
|
104
|
+
removeLanded: z.ZodDefault<z.ZodBoolean>;
|
|
103
105
|
createdAt: z.ZodString;
|
|
104
106
|
updatedAt: z.ZodString;
|
|
105
107
|
}, z.core.$strip>>;
|
|
@@ -131,6 +133,7 @@ export declare const SyncState: z.ZodObject<{
|
|
|
131
133
|
ahead: z.ZodNumber;
|
|
132
134
|
behind: z.ZodNumber;
|
|
133
135
|
unmerged: z.ZodBoolean;
|
|
136
|
+
head: z.ZodOptional<z.ZodString>;
|
|
134
137
|
}, z.core.$strip>;
|
|
135
138
|
setup: z.ZodObject<{
|
|
136
139
|
state: z.ZodEnum<{
|
|
@@ -278,6 +281,8 @@ export declare const SyncState: z.ZodObject<{
|
|
|
278
281
|
machine: z.ZodString;
|
|
279
282
|
lastSeenAt: z.ZodString;
|
|
280
283
|
}, z.core.$strip>>;
|
|
284
|
+
trackerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
285
|
+
clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
281
286
|
createdAt: z.ZodString;
|
|
282
287
|
updatedAt: z.ZodString;
|
|
283
288
|
}, z.core.$strip>>;
|
|
@@ -394,6 +399,9 @@ export declare const SyncState: z.ZodObject<{
|
|
|
394
399
|
lastAssistantText: z.ZodNullable<z.ZodString>;
|
|
395
400
|
createdAt: z.ZodString;
|
|
396
401
|
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
402
|
+
external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
403
|
+
client: z.ZodNullable<z.ZodString>;
|
|
404
|
+
}, z.core.$strip>>>;
|
|
397
405
|
unreadSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
398
406
|
adapterGeneration: z.ZodOptional<z.ZodString>;
|
|
399
407
|
transcriptEpoch: z.ZodOptional<z.ZodNumber>;
|
|
@@ -495,6 +503,36 @@ export declare const SyncState: z.ZodObject<{
|
|
|
495
503
|
url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
496
504
|
launchPrompt: z.ZodString;
|
|
497
505
|
}, z.core.$strict>>;
|
|
506
|
+
tracker: z.ZodOptional<z.ZodObject<{
|
|
507
|
+
trackerId: z.ZodString;
|
|
508
|
+
itemId: z.ZodString;
|
|
509
|
+
repository: z.ZodString;
|
|
510
|
+
number: z.ZodNumber;
|
|
511
|
+
assignees: z.ZodArray<z.ZodString>;
|
|
512
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
513
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
514
|
+
pullRequest: z.ZodNullable<z.ZodObject<{
|
|
515
|
+
number: z.ZodNumber;
|
|
516
|
+
state: z.ZodEnum<{
|
|
517
|
+
CLOSED: "CLOSED";
|
|
518
|
+
MERGED: "MERGED";
|
|
519
|
+
OPEN: "OPEN";
|
|
520
|
+
}>;
|
|
521
|
+
url: z.ZodString;
|
|
522
|
+
headRefName: z.ZodString;
|
|
523
|
+
}, z.core.$strip>>;
|
|
524
|
+
board: z.ZodNullable<z.ZodObject<{
|
|
525
|
+
projectId: z.ZodString;
|
|
526
|
+
projectItemId: z.ZodString;
|
|
527
|
+
fieldId: z.ZodString;
|
|
528
|
+
status: z.ZodNullable<z.ZodString>;
|
|
529
|
+
statusOptionId: z.ZodNullable<z.ZodString>;
|
|
530
|
+
options: z.ZodArray<z.ZodObject<{
|
|
531
|
+
id: z.ZodString;
|
|
532
|
+
name: z.ZodString;
|
|
533
|
+
}, z.core.$strip>>;
|
|
534
|
+
}, z.core.$strip>>;
|
|
535
|
+
}, z.core.$strip>>;
|
|
498
536
|
currentRunId: z.ZodNullable<z.ZodString>;
|
|
499
537
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
500
538
|
review: z.ZodObject<{
|
|
@@ -970,6 +1008,8 @@ export declare const ServerToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
970
1008
|
single_writer: "single_writer";
|
|
971
1009
|
}>;
|
|
972
1010
|
worktreeDir: z.ZodDefault<z.ZodString>;
|
|
1011
|
+
ensureSessions: z.ZodDefault<z.ZodBoolean>;
|
|
1012
|
+
removeLanded: z.ZodDefault<z.ZodBoolean>;
|
|
973
1013
|
createdAt: z.ZodString;
|
|
974
1014
|
updatedAt: z.ZodString;
|
|
975
1015
|
}, z.core.$strip>>;
|
|
@@ -1001,6 +1041,7 @@ export declare const ServerToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1001
1041
|
ahead: z.ZodNumber;
|
|
1002
1042
|
behind: z.ZodNumber;
|
|
1003
1043
|
unmerged: z.ZodBoolean;
|
|
1044
|
+
head: z.ZodOptional<z.ZodString>;
|
|
1004
1045
|
}, z.core.$strip>;
|
|
1005
1046
|
setup: z.ZodObject<{
|
|
1006
1047
|
state: z.ZodEnum<{
|
|
@@ -1148,6 +1189,8 @@ export declare const ServerToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1148
1189
|
machine: z.ZodString;
|
|
1149
1190
|
lastSeenAt: z.ZodString;
|
|
1150
1191
|
}, z.core.$strip>>;
|
|
1192
|
+
trackerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1193
|
+
clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1151
1194
|
createdAt: z.ZodString;
|
|
1152
1195
|
updatedAt: z.ZodString;
|
|
1153
1196
|
}, z.core.$strip>>;
|
|
@@ -1264,6 +1307,9 @@ export declare const ServerToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1264
1307
|
lastAssistantText: z.ZodNullable<z.ZodString>;
|
|
1265
1308
|
createdAt: z.ZodString;
|
|
1266
1309
|
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
1310
|
+
external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1311
|
+
client: z.ZodNullable<z.ZodString>;
|
|
1312
|
+
}, z.core.$strip>>>;
|
|
1267
1313
|
unreadSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1268
1314
|
adapterGeneration: z.ZodOptional<z.ZodString>;
|
|
1269
1315
|
transcriptEpoch: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1365,6 +1411,36 @@ export declare const ServerToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1365
1411
|
url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1366
1412
|
launchPrompt: z.ZodString;
|
|
1367
1413
|
}, z.core.$strict>>;
|
|
1414
|
+
tracker: z.ZodOptional<z.ZodObject<{
|
|
1415
|
+
trackerId: z.ZodString;
|
|
1416
|
+
itemId: z.ZodString;
|
|
1417
|
+
repository: z.ZodString;
|
|
1418
|
+
number: z.ZodNumber;
|
|
1419
|
+
assignees: z.ZodArray<z.ZodString>;
|
|
1420
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
1421
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
1422
|
+
pullRequest: z.ZodNullable<z.ZodObject<{
|
|
1423
|
+
number: z.ZodNumber;
|
|
1424
|
+
state: z.ZodEnum<{
|
|
1425
|
+
CLOSED: "CLOSED";
|
|
1426
|
+
MERGED: "MERGED";
|
|
1427
|
+
OPEN: "OPEN";
|
|
1428
|
+
}>;
|
|
1429
|
+
url: z.ZodString;
|
|
1430
|
+
headRefName: z.ZodString;
|
|
1431
|
+
}, z.core.$strip>>;
|
|
1432
|
+
board: z.ZodNullable<z.ZodObject<{
|
|
1433
|
+
projectId: z.ZodString;
|
|
1434
|
+
projectItemId: z.ZodString;
|
|
1435
|
+
fieldId: z.ZodString;
|
|
1436
|
+
status: z.ZodNullable<z.ZodString>;
|
|
1437
|
+
statusOptionId: z.ZodNullable<z.ZodString>;
|
|
1438
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1439
|
+
id: z.ZodString;
|
|
1440
|
+
name: z.ZodString;
|
|
1441
|
+
}, z.core.$strip>>;
|
|
1442
|
+
}, z.core.$strip>>;
|
|
1443
|
+
}, z.core.$strip>>;
|
|
1368
1444
|
currentRunId: z.ZodNullable<z.ZodString>;
|
|
1369
1445
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
1370
1446
|
review: z.ZodObject<{
|
|
@@ -225,6 +225,8 @@ export declare const Project: z.ZodObject<{
|
|
|
225
225
|
single_writer: "single_writer";
|
|
226
226
|
}>;
|
|
227
227
|
worktreeDir: z.ZodDefault<z.ZodString>;
|
|
228
|
+
ensureSessions: z.ZodDefault<z.ZodBoolean>;
|
|
229
|
+
removeLanded: z.ZodDefault<z.ZodBoolean>;
|
|
228
230
|
createdAt: z.ZodString;
|
|
229
231
|
updatedAt: z.ZodString;
|
|
230
232
|
}, z.core.$strip>;
|
|
@@ -245,6 +247,7 @@ export declare const GitState: z.ZodObject<{
|
|
|
245
247
|
ahead: z.ZodNumber;
|
|
246
248
|
behind: z.ZodNumber;
|
|
247
249
|
unmerged: z.ZodBoolean;
|
|
250
|
+
head: z.ZodOptional<z.ZodString>;
|
|
248
251
|
}, z.core.$strip>;
|
|
249
252
|
export type GitState = z.infer<typeof GitState>;
|
|
250
253
|
export declare const Workspace: z.ZodObject<{
|
|
@@ -266,6 +269,7 @@ export declare const Workspace: z.ZodObject<{
|
|
|
266
269
|
ahead: z.ZodNumber;
|
|
267
270
|
behind: z.ZodNumber;
|
|
268
271
|
unmerged: z.ZodBoolean;
|
|
272
|
+
head: z.ZodOptional<z.ZodString>;
|
|
269
273
|
}, z.core.$strip>;
|
|
270
274
|
setup: z.ZodObject<{
|
|
271
275
|
state: z.ZodEnum<{
|
|
@@ -479,6 +483,8 @@ export declare const View: z.ZodObject<{
|
|
|
479
483
|
machine: z.ZodString;
|
|
480
484
|
lastSeenAt: z.ZodString;
|
|
481
485
|
}, z.core.$strip>>;
|
|
486
|
+
trackerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
487
|
+
clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
482
488
|
createdAt: z.ZodString;
|
|
483
489
|
updatedAt: z.ZodString;
|
|
484
490
|
}, z.core.$strip>;
|
|
@@ -635,6 +641,9 @@ export declare const Session: z.ZodObject<{
|
|
|
635
641
|
lastAssistantText: z.ZodNullable<z.ZodString>;
|
|
636
642
|
createdAt: z.ZodString;
|
|
637
643
|
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
644
|
+
external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
645
|
+
client: z.ZodNullable<z.ZodString>;
|
|
646
|
+
}, z.core.$strip>>>;
|
|
638
647
|
unreadSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
639
648
|
adapterGeneration: z.ZodOptional<z.ZodString>;
|
|
640
649
|
transcriptEpoch: z.ZodOptional<z.ZodNumber>;
|
|
@@ -811,6 +820,36 @@ export declare const Task: z.ZodObject<{
|
|
|
811
820
|
url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
812
821
|
launchPrompt: z.ZodString;
|
|
813
822
|
}, z.core.$strict>>;
|
|
823
|
+
tracker: z.ZodOptional<z.ZodObject<{
|
|
824
|
+
trackerId: z.ZodString;
|
|
825
|
+
itemId: z.ZodString;
|
|
826
|
+
repository: z.ZodString;
|
|
827
|
+
number: z.ZodNumber;
|
|
828
|
+
assignees: z.ZodArray<z.ZodString>;
|
|
829
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
830
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
831
|
+
pullRequest: z.ZodNullable<z.ZodObject<{
|
|
832
|
+
number: z.ZodNumber;
|
|
833
|
+
state: z.ZodEnum<{
|
|
834
|
+
CLOSED: "CLOSED";
|
|
835
|
+
MERGED: "MERGED";
|
|
836
|
+
OPEN: "OPEN";
|
|
837
|
+
}>;
|
|
838
|
+
url: z.ZodString;
|
|
839
|
+
headRefName: z.ZodString;
|
|
840
|
+
}, z.core.$strip>>;
|
|
841
|
+
board: z.ZodNullable<z.ZodObject<{
|
|
842
|
+
projectId: z.ZodString;
|
|
843
|
+
projectItemId: z.ZodString;
|
|
844
|
+
fieldId: z.ZodString;
|
|
845
|
+
status: z.ZodNullable<z.ZodString>;
|
|
846
|
+
statusOptionId: z.ZodNullable<z.ZodString>;
|
|
847
|
+
options: z.ZodArray<z.ZodObject<{
|
|
848
|
+
id: z.ZodString;
|
|
849
|
+
name: z.ZodString;
|
|
850
|
+
}, z.core.$strip>>;
|
|
851
|
+
}, z.core.$strip>>;
|
|
852
|
+
}, z.core.$strip>>;
|
|
814
853
|
currentRunId: z.ZodNullable<z.ZodString>;
|
|
815
854
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
816
855
|
review: z.ZodObject<{
|
|
@@ -101,6 +101,8 @@ export declare const EventDataSchemas: {
|
|
|
101
101
|
single_writer: "single_writer";
|
|
102
102
|
}>;
|
|
103
103
|
worktreeDir: z.ZodDefault<z.ZodString>;
|
|
104
|
+
ensureSessions: z.ZodDefault<z.ZodBoolean>;
|
|
105
|
+
removeLanded: z.ZodDefault<z.ZodBoolean>;
|
|
104
106
|
createdAt: z.ZodString;
|
|
105
107
|
updatedAt: z.ZodString;
|
|
106
108
|
}, z.core.$strip>;
|
|
@@ -135,6 +137,7 @@ export declare const EventDataSchemas: {
|
|
|
135
137
|
ahead: z.ZodNumber;
|
|
136
138
|
behind: z.ZodNumber;
|
|
137
139
|
unmerged: z.ZodBoolean;
|
|
140
|
+
head: z.ZodOptional<z.ZodString>;
|
|
138
141
|
}, z.core.$strip>;
|
|
139
142
|
setup: z.ZodObject<{
|
|
140
143
|
state: z.ZodEnum<{
|
|
@@ -288,6 +291,8 @@ export declare const EventDataSchemas: {
|
|
|
288
291
|
machine: z.ZodString;
|
|
289
292
|
lastSeenAt: z.ZodString;
|
|
290
293
|
}, z.core.$strip>>;
|
|
294
|
+
trackerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
295
|
+
clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
291
296
|
createdAt: z.ZodString;
|
|
292
297
|
updatedAt: z.ZodString;
|
|
293
298
|
}, z.core.$strip>;
|
|
@@ -407,6 +412,9 @@ export declare const EventDataSchemas: {
|
|
|
407
412
|
lastAssistantText: z.ZodNullable<z.ZodString>;
|
|
408
413
|
createdAt: z.ZodString;
|
|
409
414
|
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
415
|
+
external: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
416
|
+
client: z.ZodNullable<z.ZodString>;
|
|
417
|
+
}, z.core.$strip>>>;
|
|
410
418
|
unreadSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
411
419
|
adapterGeneration: z.ZodOptional<z.ZodString>;
|
|
412
420
|
transcriptEpoch: z.ZodOptional<z.ZodNumber>;
|
|
@@ -722,6 +730,36 @@ export declare const EventDataSchemas: {
|
|
|
722
730
|
url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
723
731
|
launchPrompt: z.ZodString;
|
|
724
732
|
}, z.core.$strict>>;
|
|
733
|
+
tracker: z.ZodOptional<z.ZodObject<{
|
|
734
|
+
trackerId: z.ZodString;
|
|
735
|
+
itemId: z.ZodString;
|
|
736
|
+
repository: z.ZodString;
|
|
737
|
+
number: z.ZodNumber;
|
|
738
|
+
assignees: z.ZodArray<z.ZodString>;
|
|
739
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
740
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
741
|
+
pullRequest: z.ZodNullable<z.ZodObject<{
|
|
742
|
+
number: z.ZodNumber;
|
|
743
|
+
state: z.ZodEnum<{
|
|
744
|
+
CLOSED: "CLOSED";
|
|
745
|
+
MERGED: "MERGED";
|
|
746
|
+
OPEN: "OPEN";
|
|
747
|
+
}>;
|
|
748
|
+
url: z.ZodString;
|
|
749
|
+
headRefName: z.ZodString;
|
|
750
|
+
}, z.core.$strip>>;
|
|
751
|
+
board: z.ZodNullable<z.ZodObject<{
|
|
752
|
+
projectId: z.ZodString;
|
|
753
|
+
projectItemId: z.ZodString;
|
|
754
|
+
fieldId: z.ZodString;
|
|
755
|
+
status: z.ZodNullable<z.ZodString>;
|
|
756
|
+
statusOptionId: z.ZodNullable<z.ZodString>;
|
|
757
|
+
options: z.ZodArray<z.ZodObject<{
|
|
758
|
+
id: z.ZodString;
|
|
759
|
+
name: z.ZodString;
|
|
760
|
+
}, z.core.$strip>>;
|
|
761
|
+
}, z.core.$strip>>;
|
|
762
|
+
}, z.core.$strip>>;
|
|
725
763
|
currentRunId: z.ZodNullable<z.ZodString>;
|
|
726
764
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
727
765
|
review: z.ZodObject<{
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
/** Host feature: the host answers `workspace.log` and `workspace.diff` with `rev`. */
|
|
3
|
+
export declare const GIT_LOG_FEATURE = "gitLog.v1";
|
|
4
|
+
/** A narrower diff: only uncommitted work, or one commit (full SHA) against its first parent. */
|
|
5
|
+
export declare const DiffRev: z.ZodString;
|
|
6
|
+
export type DiffRev = z.infer<typeof DiffRev>;
|
|
2
7
|
export declare const HostCommand: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
8
|
type: z.ZodLiteral<"session.start">;
|
|
4
9
|
sessionId: z.ZodString;
|
|
@@ -238,11 +243,18 @@ export declare const HostCommand: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
238
243
|
dirty: z.ZodBoolean;
|
|
239
244
|
unmerged: z.ZodBoolean;
|
|
240
245
|
}, z.core.$strip>;
|
|
246
|
+
deleteBranch: z.ZodOptional<z.ZodBoolean>;
|
|
241
247
|
}, z.core.$strip>, z.ZodObject<{
|
|
242
248
|
type: z.ZodLiteral<"workspace.diff">;
|
|
243
249
|
path: z.ZodString;
|
|
244
250
|
base: z.ZodNullable<z.ZodString>;
|
|
245
251
|
file: z.ZodNullable<z.ZodString>;
|
|
252
|
+
rev: z.ZodOptional<z.ZodString>;
|
|
253
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
254
|
+
type: z.ZodLiteral<"workspace.log">;
|
|
255
|
+
path: z.ZodString;
|
|
256
|
+
base: z.ZodNullable<z.ZodString>;
|
|
257
|
+
limit: z.ZodNumber;
|
|
246
258
|
}, z.core.$strip>, z.ZodObject<{
|
|
247
259
|
type: z.ZodLiteral<"workspace.files">;
|
|
248
260
|
path: z.ZodString;
|
|
@@ -268,6 +280,35 @@ export declare const HostCommand: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
268
280
|
expectedPullRequestNodeId: z.ZodString;
|
|
269
281
|
type: z.ZodLiteral<"workspace.prMerge">;
|
|
270
282
|
}, z.core.$strict>, z.ZodObject<{
|
|
283
|
+
owner: z.ZodString;
|
|
284
|
+
repositories: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
285
|
+
board: z.ZodNullable<z.ZodObject<{
|
|
286
|
+
projectNumber: z.ZodNumber;
|
|
287
|
+
statusField: z.ZodString;
|
|
288
|
+
}, z.core.$strip>>;
|
|
289
|
+
type: z.ZodLiteral<"tracker.sync">;
|
|
290
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
291
|
+
checkoutPath: z.ZodString;
|
|
292
|
+
branch: z.ZodString;
|
|
293
|
+
type: z.ZodLiteral<"tracker.prepareBranch">;
|
|
294
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
295
|
+
checkoutPath: z.ZodString;
|
|
296
|
+
repository: z.ZodString;
|
|
297
|
+
number: z.ZodNumber;
|
|
298
|
+
branch: z.ZodString;
|
|
299
|
+
base: z.ZodString;
|
|
300
|
+
type: z.ZodLiteral<"tracker.startIssue">;
|
|
301
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
302
|
+
projectId: z.ZodString;
|
|
303
|
+
projectItemId: z.ZodString;
|
|
304
|
+
fieldId: z.ZodString;
|
|
305
|
+
statusField: z.ZodString;
|
|
306
|
+
optionId: z.ZodString;
|
|
307
|
+
expectedOptionId: z.ZodNullable<z.ZodString>;
|
|
308
|
+
login: z.ZodString;
|
|
309
|
+
allowShared: z.ZodBoolean;
|
|
310
|
+
type: z.ZodLiteral<"tracker.setStatus">;
|
|
311
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
271
312
|
type: z.ZodLiteral<"dispatch.start">;
|
|
272
313
|
dispatchKey: z.ZodString;
|
|
273
314
|
runId: z.ZodString;
|
|
@@ -365,6 +406,7 @@ export declare const DiscoveredWorktree: z.ZodObject<{
|
|
|
365
406
|
ahead: z.ZodNumber;
|
|
366
407
|
behind: z.ZodNumber;
|
|
367
408
|
unmerged: z.ZodBoolean;
|
|
409
|
+
head: z.ZodOptional<z.ZodString>;
|
|
368
410
|
}, z.core.$strip>>;
|
|
369
411
|
}, z.core.$strip>;
|
|
370
412
|
export type DiscoveredWorktree = z.infer<typeof DiscoveredWorktree>;
|
|
@@ -408,6 +450,31 @@ export declare const ProjectSuggestions: z.ZodObject<{
|
|
|
408
450
|
}, z.core.$strip>>;
|
|
409
451
|
}, z.core.$strip>;
|
|
410
452
|
export type ProjectSuggestions = z.infer<typeof ProjectSuggestions>;
|
|
453
|
+
export declare const GitCommit: z.ZodObject<{
|
|
454
|
+
sha: z.ZodString;
|
|
455
|
+
subject: z.ZodString;
|
|
456
|
+
author: z.ZodString;
|
|
457
|
+
authoredAt: z.ZodString;
|
|
458
|
+
pushed: z.ZodBoolean;
|
|
459
|
+
}, z.core.$strip>;
|
|
460
|
+
export type GitCommit = z.infer<typeof GitCommit>;
|
|
461
|
+
export declare const LogResult: z.ZodObject<{
|
|
462
|
+
base: z.ZodString;
|
|
463
|
+
scope: z.ZodEnum<{
|
|
464
|
+
branch: "branch";
|
|
465
|
+
recent: "recent";
|
|
466
|
+
}>;
|
|
467
|
+
commits: z.ZodArray<z.ZodObject<{
|
|
468
|
+
sha: z.ZodString;
|
|
469
|
+
subject: z.ZodString;
|
|
470
|
+
author: z.ZodString;
|
|
471
|
+
authoredAt: z.ZodString;
|
|
472
|
+
pushed: z.ZodBoolean;
|
|
473
|
+
}, z.core.$strip>>;
|
|
474
|
+
truncated: z.ZodBoolean;
|
|
475
|
+
uncommitted: z.ZodNumber;
|
|
476
|
+
}, z.core.$strip>;
|
|
477
|
+
export type LogResult = z.infer<typeof LogResult>;
|
|
411
478
|
export declare const DiffFile: z.ZodObject<{
|
|
412
479
|
path: z.ZodString;
|
|
413
480
|
oldPath: z.ZodNullable<z.ZodString>;
|
|
@@ -1299,11 +1366,18 @@ export declare const CoordinatorToHost: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1299
1366
|
dirty: z.ZodBoolean;
|
|
1300
1367
|
unmerged: z.ZodBoolean;
|
|
1301
1368
|
}, z.core.$strip>;
|
|
1369
|
+
deleteBranch: z.ZodOptional<z.ZodBoolean>;
|
|
1302
1370
|
}, z.core.$strip>, z.ZodObject<{
|
|
1303
1371
|
type: z.ZodLiteral<"workspace.diff">;
|
|
1304
1372
|
path: z.ZodString;
|
|
1305
1373
|
base: z.ZodNullable<z.ZodString>;
|
|
1306
1374
|
file: z.ZodNullable<z.ZodString>;
|
|
1375
|
+
rev: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1377
|
+
type: z.ZodLiteral<"workspace.log">;
|
|
1378
|
+
path: z.ZodString;
|
|
1379
|
+
base: z.ZodNullable<z.ZodString>;
|
|
1380
|
+
limit: z.ZodNumber;
|
|
1307
1381
|
}, z.core.$strip>, z.ZodObject<{
|
|
1308
1382
|
type: z.ZodLiteral<"workspace.files">;
|
|
1309
1383
|
path: z.ZodString;
|
|
@@ -1329,6 +1403,35 @@ export declare const CoordinatorToHost: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1329
1403
|
expectedPullRequestNodeId: z.ZodString;
|
|
1330
1404
|
type: z.ZodLiteral<"workspace.prMerge">;
|
|
1331
1405
|
}, z.core.$strict>, z.ZodObject<{
|
|
1406
|
+
owner: z.ZodString;
|
|
1407
|
+
repositories: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1408
|
+
board: z.ZodNullable<z.ZodObject<{
|
|
1409
|
+
projectNumber: z.ZodNumber;
|
|
1410
|
+
statusField: z.ZodString;
|
|
1411
|
+
}, z.core.$strip>>;
|
|
1412
|
+
type: z.ZodLiteral<"tracker.sync">;
|
|
1413
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1414
|
+
checkoutPath: z.ZodString;
|
|
1415
|
+
branch: z.ZodString;
|
|
1416
|
+
type: z.ZodLiteral<"tracker.prepareBranch">;
|
|
1417
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1418
|
+
checkoutPath: z.ZodString;
|
|
1419
|
+
repository: z.ZodString;
|
|
1420
|
+
number: z.ZodNumber;
|
|
1421
|
+
branch: z.ZodString;
|
|
1422
|
+
base: z.ZodString;
|
|
1423
|
+
type: z.ZodLiteral<"tracker.startIssue">;
|
|
1424
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1425
|
+
projectId: z.ZodString;
|
|
1426
|
+
projectItemId: z.ZodString;
|
|
1427
|
+
fieldId: z.ZodString;
|
|
1428
|
+
statusField: z.ZodString;
|
|
1429
|
+
optionId: z.ZodString;
|
|
1430
|
+
expectedOptionId: z.ZodNullable<z.ZodString>;
|
|
1431
|
+
login: z.ZodString;
|
|
1432
|
+
allowShared: z.ZodBoolean;
|
|
1433
|
+
type: z.ZodLiteral<"tracker.setStatus">;
|
|
1434
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1332
1435
|
type: z.ZodLiteral<"dispatch.start">;
|
|
1333
1436
|
dispatchKey: z.ZodString;
|
|
1334
1437
|
runId: z.ZodString;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const ID_PREFIXES: readonly ["prj", "chk", "wsp", "ses", "tsk", "run", "aut", "occ", "int", "att", "dev", "hst", "enr", "cmd", "trm", "evt", "prf", "itm", "viw"];
|
|
1
|
+
export declare const ID_PREFIXES: readonly ["prj", "chk", "wsp", "ses", "tsk", "run", "aut", "occ", "int", "att", "dev", "hst", "enr", "cmd", "trm", "evt", "prf", "itm", "viw", "trk"];
|
|
2
2
|
export type IdPrefix = (typeof ID_PREFIXES)[number];
|
|
3
3
|
/** Stable, sortable, prefixed identifier, e.g. `ses_01J...`. */
|
|
4
4
|
export declare function newId(prefix: IdPrefix): string;
|