@linkshell/wire 0.1.2 → 0.1.3
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/model.d.ts +100 -0
- package/dist/model.js +41 -0
- package/dist/model.js.map +1 -1
- package/dist/rpc.d.ts +590 -2
- package/dist/rpc.js +30 -2
- package/dist/rpc.js.map +1 -1
- package/package.json +1 -1
- package/src/model.ts +45 -0
- package/src/rpc.ts +31 -1
package/dist/rpc.d.ts
CHANGED
|
@@ -255,16 +255,19 @@ export declare const methods: {
|
|
|
255
255
|
name: z.ZodString;
|
|
256
256
|
lastActiveAt: z.ZodNumber;
|
|
257
257
|
sessionCount: z.ZodNumber;
|
|
258
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
258
259
|
}, "strip", z.ZodTypeAny, {
|
|
259
260
|
name: string;
|
|
260
261
|
cwd: string;
|
|
261
262
|
lastActiveAt: number;
|
|
262
263
|
sessionCount: number;
|
|
264
|
+
branch?: string | undefined;
|
|
263
265
|
}, {
|
|
264
266
|
name: string;
|
|
265
267
|
cwd: string;
|
|
266
268
|
lastActiveAt: number;
|
|
267
269
|
sessionCount: number;
|
|
270
|
+
branch?: string | undefined;
|
|
268
271
|
}>, "many">;
|
|
269
272
|
}, "strip", z.ZodTypeAny, {
|
|
270
273
|
projects: {
|
|
@@ -272,6 +275,7 @@ export declare const methods: {
|
|
|
272
275
|
cwd: string;
|
|
273
276
|
lastActiveAt: number;
|
|
274
277
|
sessionCount: number;
|
|
278
|
+
branch?: string | undefined;
|
|
275
279
|
}[];
|
|
276
280
|
}, {
|
|
277
281
|
projects: {
|
|
@@ -279,6 +283,7 @@ export declare const methods: {
|
|
|
279
283
|
cwd: string;
|
|
280
284
|
lastActiveAt: number;
|
|
281
285
|
sessionCount: number;
|
|
286
|
+
branch?: string | undefined;
|
|
282
287
|
}[];
|
|
283
288
|
}>;
|
|
284
289
|
};
|
|
@@ -378,6 +383,16 @@ export declare const methods: {
|
|
|
378
383
|
clientMessageId: string;
|
|
379
384
|
text: string;
|
|
380
385
|
}>, "many">>;
|
|
386
|
+
worktree: z.ZodOptional<z.ZodObject<{
|
|
387
|
+
branch: z.ZodString;
|
|
388
|
+
source: z.ZodString;
|
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
|
390
|
+
branch: string;
|
|
391
|
+
source: string;
|
|
392
|
+
}, {
|
|
393
|
+
branch: string;
|
|
394
|
+
source: string;
|
|
395
|
+
}>>;
|
|
381
396
|
subagents: z.ZodOptional<z.ZodObject<{
|
|
382
397
|
total: z.ZodNumber;
|
|
383
398
|
running: z.ZodNumber;
|
|
@@ -424,6 +439,10 @@ export declare const methods: {
|
|
|
424
439
|
clientMessageId: string;
|
|
425
440
|
text: string;
|
|
426
441
|
}[] | undefined;
|
|
442
|
+
worktree?: {
|
|
443
|
+
branch: string;
|
|
444
|
+
source: string;
|
|
445
|
+
} | undefined;
|
|
427
446
|
subagents?: {
|
|
428
447
|
running: number;
|
|
429
448
|
total: number;
|
|
@@ -464,6 +483,10 @@ export declare const methods: {
|
|
|
464
483
|
clientMessageId: string;
|
|
465
484
|
text: string;
|
|
466
485
|
}[] | undefined;
|
|
486
|
+
worktree?: {
|
|
487
|
+
branch: string;
|
|
488
|
+
source: string;
|
|
489
|
+
} | undefined;
|
|
467
490
|
subagents?: {
|
|
468
491
|
running: number;
|
|
469
492
|
total: number;
|
|
@@ -507,6 +530,10 @@ export declare const methods: {
|
|
|
507
530
|
clientMessageId: string;
|
|
508
531
|
text: string;
|
|
509
532
|
}[] | undefined;
|
|
533
|
+
worktree?: {
|
|
534
|
+
branch: string;
|
|
535
|
+
source: string;
|
|
536
|
+
} | undefined;
|
|
510
537
|
subagents?: {
|
|
511
538
|
running: number;
|
|
512
539
|
total: number;
|
|
@@ -550,6 +577,10 @@ export declare const methods: {
|
|
|
550
577
|
clientMessageId: string;
|
|
551
578
|
text: string;
|
|
552
579
|
}[] | undefined;
|
|
580
|
+
worktree?: {
|
|
581
|
+
branch: string;
|
|
582
|
+
source: string;
|
|
583
|
+
} | undefined;
|
|
553
584
|
subagents?: {
|
|
554
585
|
running: number;
|
|
555
586
|
total: number;
|
|
@@ -604,11 +635,18 @@ export declare const methods: {
|
|
|
604
635
|
}>]>, "many">>;
|
|
605
636
|
clientMessageId: z.ZodOptional<z.ZodString>;
|
|
606
637
|
model: z.ZodOptional<z.ZodString>;
|
|
638
|
+
/**
|
|
639
|
+
* Start in a new git worktree of `cwd`'s repository (its own branch, from
|
|
640
|
+
* the last commit) instead of in `cwd` itself. Refused with `not_a_repo`
|
|
641
|
+
* outside a git repository.
|
|
642
|
+
*/
|
|
643
|
+
worktree: z.ZodOptional<z.ZodBoolean>;
|
|
607
644
|
}, "strip", z.ZodTypeAny, {
|
|
608
645
|
agent: string;
|
|
609
646
|
cwd: string;
|
|
610
647
|
clientMessageId?: string | undefined;
|
|
611
648
|
model?: string | undefined;
|
|
649
|
+
worktree?: boolean | undefined;
|
|
612
650
|
prompt?: ({
|
|
613
651
|
type: "text";
|
|
614
652
|
text: string;
|
|
@@ -628,6 +666,7 @@ export declare const methods: {
|
|
|
628
666
|
cwd: string;
|
|
629
667
|
clientMessageId?: string | undefined;
|
|
630
668
|
model?: string | undefined;
|
|
669
|
+
worktree?: boolean | undefined;
|
|
631
670
|
prompt?: ({
|
|
632
671
|
type: "text";
|
|
633
672
|
text: string;
|
|
@@ -724,6 +763,16 @@ export declare const methods: {
|
|
|
724
763
|
clientMessageId: string;
|
|
725
764
|
text: string;
|
|
726
765
|
}>, "many">>;
|
|
766
|
+
worktree: z.ZodOptional<z.ZodObject<{
|
|
767
|
+
branch: z.ZodString;
|
|
768
|
+
source: z.ZodString;
|
|
769
|
+
}, "strip", z.ZodTypeAny, {
|
|
770
|
+
branch: string;
|
|
771
|
+
source: string;
|
|
772
|
+
}, {
|
|
773
|
+
branch: string;
|
|
774
|
+
source: string;
|
|
775
|
+
}>>;
|
|
727
776
|
subagents: z.ZodOptional<z.ZodObject<{
|
|
728
777
|
total: z.ZodNumber;
|
|
729
778
|
running: z.ZodNumber;
|
|
@@ -770,6 +819,10 @@ export declare const methods: {
|
|
|
770
819
|
clientMessageId: string;
|
|
771
820
|
text: string;
|
|
772
821
|
}[] | undefined;
|
|
822
|
+
worktree?: {
|
|
823
|
+
branch: string;
|
|
824
|
+
source: string;
|
|
825
|
+
} | undefined;
|
|
773
826
|
subagents?: {
|
|
774
827
|
running: number;
|
|
775
828
|
total: number;
|
|
@@ -810,6 +863,10 @@ export declare const methods: {
|
|
|
810
863
|
clientMessageId: string;
|
|
811
864
|
text: string;
|
|
812
865
|
}[] | undefined;
|
|
866
|
+
worktree?: {
|
|
867
|
+
branch: string;
|
|
868
|
+
source: string;
|
|
869
|
+
} | undefined;
|
|
813
870
|
subagents?: {
|
|
814
871
|
running: number;
|
|
815
872
|
total: number;
|
|
@@ -852,6 +909,10 @@ export declare const methods: {
|
|
|
852
909
|
clientMessageId: string;
|
|
853
910
|
text: string;
|
|
854
911
|
}[] | undefined;
|
|
912
|
+
worktree?: {
|
|
913
|
+
branch: string;
|
|
914
|
+
source: string;
|
|
915
|
+
} | undefined;
|
|
855
916
|
subagents?: {
|
|
856
917
|
running: number;
|
|
857
918
|
total: number;
|
|
@@ -894,6 +955,314 @@ export declare const methods: {
|
|
|
894
955
|
clientMessageId: string;
|
|
895
956
|
text: string;
|
|
896
957
|
}[] | undefined;
|
|
958
|
+
worktree?: {
|
|
959
|
+
branch: string;
|
|
960
|
+
source: string;
|
|
961
|
+
} | undefined;
|
|
962
|
+
subagents?: {
|
|
963
|
+
running: number;
|
|
964
|
+
total: number;
|
|
965
|
+
} | undefined;
|
|
966
|
+
};
|
|
967
|
+
}>;
|
|
968
|
+
};
|
|
969
|
+
/**
|
|
970
|
+
* A new session that starts with this one's conversation: all of it, or up
|
|
971
|
+
* to and including the turn of `itemId` (a message in it). The original is
|
|
972
|
+
* untouched. With `worktree` the new session works in a new git worktree of
|
|
973
|
+
* the project instead of the same directory.
|
|
974
|
+
*/
|
|
975
|
+
readonly "sessions.fork": {
|
|
976
|
+
readonly params: z.ZodObject<{
|
|
977
|
+
sessionId: z.ZodString;
|
|
978
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
979
|
+
worktree: z.ZodOptional<z.ZodBoolean>;
|
|
980
|
+
}, "strip", z.ZodTypeAny, {
|
|
981
|
+
sessionId: string;
|
|
982
|
+
worktree?: boolean | undefined;
|
|
983
|
+
itemId?: string | undefined;
|
|
984
|
+
}, {
|
|
985
|
+
sessionId: string;
|
|
986
|
+
worktree?: boolean | undefined;
|
|
987
|
+
itemId?: string | undefined;
|
|
988
|
+
}>;
|
|
989
|
+
readonly result: z.ZodObject<{
|
|
990
|
+
session: z.ZodObject<{
|
|
991
|
+
id: z.ZodString;
|
|
992
|
+
agent: z.ZodString;
|
|
993
|
+
nativeId: z.ZodString;
|
|
994
|
+
title: z.ZodOptional<z.ZodString>;
|
|
995
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
996
|
+
cwd: z.ZodString;
|
|
997
|
+
state: z.ZodEnum<["idle", "running", "waiting", "error", "offline"]>;
|
|
998
|
+
driver: z.ZodOptional<z.ZodEnum<["desktop", "remote", "none"]>>;
|
|
999
|
+
pendingPermissions: z.ZodNumber;
|
|
1000
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1001
|
+
createdAt: z.ZodNumber;
|
|
1002
|
+
updatedAt: z.ZodNumber;
|
|
1003
|
+
lastSeq: z.ZodNumber;
|
|
1004
|
+
archived: z.ZodBoolean;
|
|
1005
|
+
activity: z.ZodOptional<z.ZodObject<{
|
|
1006
|
+
kind: z.ZodEnum<["thinking", "responding", "tool"]>;
|
|
1007
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1008
|
+
toolKind: z.ZodOptional<z.ZodEnum<["read", "edit", "delete", "move", "search", "execute", "think", "fetch", "other"]>>;
|
|
1009
|
+
}, "strip", z.ZodTypeAny, {
|
|
1010
|
+
kind: "thinking" | "responding" | "tool";
|
|
1011
|
+
title?: string | undefined;
|
|
1012
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
1013
|
+
}, {
|
|
1014
|
+
kind: "thinking" | "responding" | "tool";
|
|
1015
|
+
title?: string | undefined;
|
|
1016
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
1017
|
+
}>>;
|
|
1018
|
+
permission: z.ZodOptional<z.ZodObject<{
|
|
1019
|
+
requestId: z.ZodString;
|
|
1020
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
1021
|
+
title: z.ZodString;
|
|
1022
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1023
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1024
|
+
optionId: z.ZodString;
|
|
1025
|
+
name: z.ZodString;
|
|
1026
|
+
kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
|
|
1027
|
+
}, "strip", z.ZodTypeAny, {
|
|
1028
|
+
optionId: string;
|
|
1029
|
+
name: string;
|
|
1030
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1031
|
+
}, {
|
|
1032
|
+
optionId: string;
|
|
1033
|
+
name: string;
|
|
1034
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1035
|
+
}>, "many">;
|
|
1036
|
+
}, "strip", z.ZodTypeAny, {
|
|
1037
|
+
options: {
|
|
1038
|
+
optionId: string;
|
|
1039
|
+
name: string;
|
|
1040
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1041
|
+
}[];
|
|
1042
|
+
title: string;
|
|
1043
|
+
requestId: string;
|
|
1044
|
+
toolCallId?: string | undefined;
|
|
1045
|
+
detail?: string | undefined;
|
|
1046
|
+
}, {
|
|
1047
|
+
options: {
|
|
1048
|
+
optionId: string;
|
|
1049
|
+
name: string;
|
|
1050
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1051
|
+
}[];
|
|
1052
|
+
title: string;
|
|
1053
|
+
requestId: string;
|
|
1054
|
+
toolCallId?: string | undefined;
|
|
1055
|
+
detail?: string | undefined;
|
|
1056
|
+
}>>;
|
|
1057
|
+
queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1058
|
+
clientMessageId: z.ZodString;
|
|
1059
|
+
text: z.ZodString;
|
|
1060
|
+
images: z.ZodNumber;
|
|
1061
|
+
}, "strip", z.ZodTypeAny, {
|
|
1062
|
+
images: number;
|
|
1063
|
+
clientMessageId: string;
|
|
1064
|
+
text: string;
|
|
1065
|
+
}, {
|
|
1066
|
+
images: number;
|
|
1067
|
+
clientMessageId: string;
|
|
1068
|
+
text: string;
|
|
1069
|
+
}>, "many">>;
|
|
1070
|
+
worktree: z.ZodOptional<z.ZodObject<{
|
|
1071
|
+
branch: z.ZodString;
|
|
1072
|
+
source: z.ZodString;
|
|
1073
|
+
}, "strip", z.ZodTypeAny, {
|
|
1074
|
+
branch: string;
|
|
1075
|
+
source: string;
|
|
1076
|
+
}, {
|
|
1077
|
+
branch: string;
|
|
1078
|
+
source: string;
|
|
1079
|
+
}>>;
|
|
1080
|
+
subagents: z.ZodOptional<z.ZodObject<{
|
|
1081
|
+
total: z.ZodNumber;
|
|
1082
|
+
running: z.ZodNumber;
|
|
1083
|
+
}, "strip", z.ZodTypeAny, {
|
|
1084
|
+
running: number;
|
|
1085
|
+
total: number;
|
|
1086
|
+
}, {
|
|
1087
|
+
running: number;
|
|
1088
|
+
total: number;
|
|
1089
|
+
}>>;
|
|
1090
|
+
}, "strip", z.ZodTypeAny, {
|
|
1091
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
1092
|
+
id: string;
|
|
1093
|
+
agent: string;
|
|
1094
|
+
nativeId: string;
|
|
1095
|
+
cwd: string;
|
|
1096
|
+
pendingPermissions: number;
|
|
1097
|
+
createdAt: number;
|
|
1098
|
+
updatedAt: number;
|
|
1099
|
+
lastSeq: number;
|
|
1100
|
+
archived: boolean;
|
|
1101
|
+
title?: string | undefined;
|
|
1102
|
+
preview?: string | undefined;
|
|
1103
|
+
driver?: "remote" | "desktop" | "none" | undefined;
|
|
1104
|
+
model?: string | undefined;
|
|
1105
|
+
activity?: {
|
|
1106
|
+
kind: "thinking" | "responding" | "tool";
|
|
1107
|
+
title?: string | undefined;
|
|
1108
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
1109
|
+
} | undefined;
|
|
1110
|
+
permission?: {
|
|
1111
|
+
options: {
|
|
1112
|
+
optionId: string;
|
|
1113
|
+
name: string;
|
|
1114
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1115
|
+
}[];
|
|
1116
|
+
title: string;
|
|
1117
|
+
requestId: string;
|
|
1118
|
+
toolCallId?: string | undefined;
|
|
1119
|
+
detail?: string | undefined;
|
|
1120
|
+
} | undefined;
|
|
1121
|
+
queue?: {
|
|
1122
|
+
images: number;
|
|
1123
|
+
clientMessageId: string;
|
|
1124
|
+
text: string;
|
|
1125
|
+
}[] | undefined;
|
|
1126
|
+
worktree?: {
|
|
1127
|
+
branch: string;
|
|
1128
|
+
source: string;
|
|
1129
|
+
} | undefined;
|
|
1130
|
+
subagents?: {
|
|
1131
|
+
running: number;
|
|
1132
|
+
total: number;
|
|
1133
|
+
} | undefined;
|
|
1134
|
+
}, {
|
|
1135
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
1136
|
+
id: string;
|
|
1137
|
+
agent: string;
|
|
1138
|
+
nativeId: string;
|
|
1139
|
+
cwd: string;
|
|
1140
|
+
pendingPermissions: number;
|
|
1141
|
+
createdAt: number;
|
|
1142
|
+
updatedAt: number;
|
|
1143
|
+
lastSeq: number;
|
|
1144
|
+
archived: boolean;
|
|
1145
|
+
title?: string | undefined;
|
|
1146
|
+
preview?: string | undefined;
|
|
1147
|
+
driver?: "remote" | "desktop" | "none" | undefined;
|
|
1148
|
+
model?: string | undefined;
|
|
1149
|
+
activity?: {
|
|
1150
|
+
kind: "thinking" | "responding" | "tool";
|
|
1151
|
+
title?: string | undefined;
|
|
1152
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
1153
|
+
} | undefined;
|
|
1154
|
+
permission?: {
|
|
1155
|
+
options: {
|
|
1156
|
+
optionId: string;
|
|
1157
|
+
name: string;
|
|
1158
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1159
|
+
}[];
|
|
1160
|
+
title: string;
|
|
1161
|
+
requestId: string;
|
|
1162
|
+
toolCallId?: string | undefined;
|
|
1163
|
+
detail?: string | undefined;
|
|
1164
|
+
} | undefined;
|
|
1165
|
+
queue?: {
|
|
1166
|
+
images: number;
|
|
1167
|
+
clientMessageId: string;
|
|
1168
|
+
text: string;
|
|
1169
|
+
}[] | undefined;
|
|
1170
|
+
worktree?: {
|
|
1171
|
+
branch: string;
|
|
1172
|
+
source: string;
|
|
1173
|
+
} | undefined;
|
|
1174
|
+
subagents?: {
|
|
1175
|
+
running: number;
|
|
1176
|
+
total: number;
|
|
1177
|
+
} | undefined;
|
|
1178
|
+
}>;
|
|
1179
|
+
}, "strip", z.ZodTypeAny, {
|
|
1180
|
+
session: {
|
|
1181
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
1182
|
+
id: string;
|
|
1183
|
+
agent: string;
|
|
1184
|
+
nativeId: string;
|
|
1185
|
+
cwd: string;
|
|
1186
|
+
pendingPermissions: number;
|
|
1187
|
+
createdAt: number;
|
|
1188
|
+
updatedAt: number;
|
|
1189
|
+
lastSeq: number;
|
|
1190
|
+
archived: boolean;
|
|
1191
|
+
title?: string | undefined;
|
|
1192
|
+
preview?: string | undefined;
|
|
1193
|
+
driver?: "remote" | "desktop" | "none" | undefined;
|
|
1194
|
+
model?: string | undefined;
|
|
1195
|
+
activity?: {
|
|
1196
|
+
kind: "thinking" | "responding" | "tool";
|
|
1197
|
+
title?: string | undefined;
|
|
1198
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
1199
|
+
} | undefined;
|
|
1200
|
+
permission?: {
|
|
1201
|
+
options: {
|
|
1202
|
+
optionId: string;
|
|
1203
|
+
name: string;
|
|
1204
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1205
|
+
}[];
|
|
1206
|
+
title: string;
|
|
1207
|
+
requestId: string;
|
|
1208
|
+
toolCallId?: string | undefined;
|
|
1209
|
+
detail?: string | undefined;
|
|
1210
|
+
} | undefined;
|
|
1211
|
+
queue?: {
|
|
1212
|
+
images: number;
|
|
1213
|
+
clientMessageId: string;
|
|
1214
|
+
text: string;
|
|
1215
|
+
}[] | undefined;
|
|
1216
|
+
worktree?: {
|
|
1217
|
+
branch: string;
|
|
1218
|
+
source: string;
|
|
1219
|
+
} | undefined;
|
|
1220
|
+
subagents?: {
|
|
1221
|
+
running: number;
|
|
1222
|
+
total: number;
|
|
1223
|
+
} | undefined;
|
|
1224
|
+
};
|
|
1225
|
+
}, {
|
|
1226
|
+
session: {
|
|
1227
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
1228
|
+
id: string;
|
|
1229
|
+
agent: string;
|
|
1230
|
+
nativeId: string;
|
|
1231
|
+
cwd: string;
|
|
1232
|
+
pendingPermissions: number;
|
|
1233
|
+
createdAt: number;
|
|
1234
|
+
updatedAt: number;
|
|
1235
|
+
lastSeq: number;
|
|
1236
|
+
archived: boolean;
|
|
1237
|
+
title?: string | undefined;
|
|
1238
|
+
preview?: string | undefined;
|
|
1239
|
+
driver?: "remote" | "desktop" | "none" | undefined;
|
|
1240
|
+
model?: string | undefined;
|
|
1241
|
+
activity?: {
|
|
1242
|
+
kind: "thinking" | "responding" | "tool";
|
|
1243
|
+
title?: string | undefined;
|
|
1244
|
+
toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
|
|
1245
|
+
} | undefined;
|
|
1246
|
+
permission?: {
|
|
1247
|
+
options: {
|
|
1248
|
+
optionId: string;
|
|
1249
|
+
name: string;
|
|
1250
|
+
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1251
|
+
}[];
|
|
1252
|
+
title: string;
|
|
1253
|
+
requestId: string;
|
|
1254
|
+
toolCallId?: string | undefined;
|
|
1255
|
+
detail?: string | undefined;
|
|
1256
|
+
} | undefined;
|
|
1257
|
+
queue?: {
|
|
1258
|
+
images: number;
|
|
1259
|
+
clientMessageId: string;
|
|
1260
|
+
text: string;
|
|
1261
|
+
}[] | undefined;
|
|
1262
|
+
worktree?: {
|
|
1263
|
+
branch: string;
|
|
1264
|
+
source: string;
|
|
1265
|
+
} | undefined;
|
|
897
1266
|
subagents?: {
|
|
898
1267
|
running: number;
|
|
899
1268
|
total: number;
|
|
@@ -1007,6 +1376,16 @@ export declare const methods: {
|
|
|
1007
1376
|
clientMessageId: string;
|
|
1008
1377
|
text: string;
|
|
1009
1378
|
}>, "many">>;
|
|
1379
|
+
worktree: z.ZodOptional<z.ZodObject<{
|
|
1380
|
+
branch: z.ZodString;
|
|
1381
|
+
source: z.ZodString;
|
|
1382
|
+
}, "strip", z.ZodTypeAny, {
|
|
1383
|
+
branch: string;
|
|
1384
|
+
source: string;
|
|
1385
|
+
}, {
|
|
1386
|
+
branch: string;
|
|
1387
|
+
source: string;
|
|
1388
|
+
}>>;
|
|
1010
1389
|
subagents: z.ZodOptional<z.ZodObject<{
|
|
1011
1390
|
total: z.ZodNumber;
|
|
1012
1391
|
running: z.ZodNumber;
|
|
@@ -1053,6 +1432,10 @@ export declare const methods: {
|
|
|
1053
1432
|
clientMessageId: string;
|
|
1054
1433
|
text: string;
|
|
1055
1434
|
}[] | undefined;
|
|
1435
|
+
worktree?: {
|
|
1436
|
+
branch: string;
|
|
1437
|
+
source: string;
|
|
1438
|
+
} | undefined;
|
|
1056
1439
|
subagents?: {
|
|
1057
1440
|
running: number;
|
|
1058
1441
|
total: number;
|
|
@@ -1093,6 +1476,10 @@ export declare const methods: {
|
|
|
1093
1476
|
clientMessageId: string;
|
|
1094
1477
|
text: string;
|
|
1095
1478
|
}[] | undefined;
|
|
1479
|
+
worktree?: {
|
|
1480
|
+
branch: string;
|
|
1481
|
+
source: string;
|
|
1482
|
+
} | undefined;
|
|
1096
1483
|
subagents?: {
|
|
1097
1484
|
running: number;
|
|
1098
1485
|
total: number;
|
|
@@ -1136,6 +1523,10 @@ export declare const methods: {
|
|
|
1136
1523
|
clientMessageId: string;
|
|
1137
1524
|
text: string;
|
|
1138
1525
|
}[] | undefined;
|
|
1526
|
+
worktree?: {
|
|
1527
|
+
branch: string;
|
|
1528
|
+
source: string;
|
|
1529
|
+
} | undefined;
|
|
1139
1530
|
subagents?: {
|
|
1140
1531
|
running: number;
|
|
1141
1532
|
total: number;
|
|
@@ -1179,6 +1570,10 @@ export declare const methods: {
|
|
|
1179
1570
|
clientMessageId: string;
|
|
1180
1571
|
text: string;
|
|
1181
1572
|
}[] | undefined;
|
|
1573
|
+
worktree?: {
|
|
1574
|
+
branch: string;
|
|
1575
|
+
source: string;
|
|
1576
|
+
} | undefined;
|
|
1182
1577
|
subagents?: {
|
|
1183
1578
|
running: number;
|
|
1184
1579
|
total: number;
|
|
@@ -6233,6 +6628,16 @@ export declare const methods: {
|
|
|
6233
6628
|
clientMessageId: string;
|
|
6234
6629
|
text: string;
|
|
6235
6630
|
}>, "many">>;
|
|
6631
|
+
worktree: z.ZodOptional<z.ZodObject<{
|
|
6632
|
+
branch: z.ZodString;
|
|
6633
|
+
source: z.ZodString;
|
|
6634
|
+
}, "strip", z.ZodTypeAny, {
|
|
6635
|
+
branch: string;
|
|
6636
|
+
source: string;
|
|
6637
|
+
}, {
|
|
6638
|
+
branch: string;
|
|
6639
|
+
source: string;
|
|
6640
|
+
}>>;
|
|
6236
6641
|
subagents: z.ZodOptional<z.ZodObject<{
|
|
6237
6642
|
total: z.ZodNumber;
|
|
6238
6643
|
running: z.ZodNumber;
|
|
@@ -6279,6 +6684,10 @@ export declare const methods: {
|
|
|
6279
6684
|
clientMessageId: string;
|
|
6280
6685
|
text: string;
|
|
6281
6686
|
}[] | undefined;
|
|
6687
|
+
worktree?: {
|
|
6688
|
+
branch: string;
|
|
6689
|
+
source: string;
|
|
6690
|
+
} | undefined;
|
|
6282
6691
|
subagents?: {
|
|
6283
6692
|
running: number;
|
|
6284
6693
|
total: number;
|
|
@@ -6319,6 +6728,10 @@ export declare const methods: {
|
|
|
6319
6728
|
clientMessageId: string;
|
|
6320
6729
|
text: string;
|
|
6321
6730
|
}[] | undefined;
|
|
6731
|
+
worktree?: {
|
|
6732
|
+
branch: string;
|
|
6733
|
+
source: string;
|
|
6734
|
+
} | undefined;
|
|
6322
6735
|
subagents?: {
|
|
6323
6736
|
running: number;
|
|
6324
6737
|
total: number;
|
|
@@ -6361,6 +6774,10 @@ export declare const methods: {
|
|
|
6361
6774
|
clientMessageId: string;
|
|
6362
6775
|
text: string;
|
|
6363
6776
|
}[] | undefined;
|
|
6777
|
+
worktree?: {
|
|
6778
|
+
branch: string;
|
|
6779
|
+
source: string;
|
|
6780
|
+
} | undefined;
|
|
6364
6781
|
subagents?: {
|
|
6365
6782
|
running: number;
|
|
6366
6783
|
total: number;
|
|
@@ -6403,6 +6820,10 @@ export declare const methods: {
|
|
|
6403
6820
|
clientMessageId: string;
|
|
6404
6821
|
text: string;
|
|
6405
6822
|
}[] | undefined;
|
|
6823
|
+
worktree?: {
|
|
6824
|
+
branch: string;
|
|
6825
|
+
source: string;
|
|
6826
|
+
} | undefined;
|
|
6406
6827
|
subagents?: {
|
|
6407
6828
|
running: number;
|
|
6408
6829
|
total: number;
|
|
@@ -6503,6 +6924,16 @@ export declare const methods: {
|
|
|
6503
6924
|
clientMessageId: string;
|
|
6504
6925
|
text: string;
|
|
6505
6926
|
}>, "many">>;
|
|
6927
|
+
worktree: z.ZodOptional<z.ZodObject<{
|
|
6928
|
+
branch: z.ZodString;
|
|
6929
|
+
source: z.ZodString;
|
|
6930
|
+
}, "strip", z.ZodTypeAny, {
|
|
6931
|
+
branch: string;
|
|
6932
|
+
source: string;
|
|
6933
|
+
}, {
|
|
6934
|
+
branch: string;
|
|
6935
|
+
source: string;
|
|
6936
|
+
}>>;
|
|
6506
6937
|
subagents: z.ZodOptional<z.ZodObject<{
|
|
6507
6938
|
total: z.ZodNumber;
|
|
6508
6939
|
running: z.ZodNumber;
|
|
@@ -6549,6 +6980,10 @@ export declare const methods: {
|
|
|
6549
6980
|
clientMessageId: string;
|
|
6550
6981
|
text: string;
|
|
6551
6982
|
}[] | undefined;
|
|
6983
|
+
worktree?: {
|
|
6984
|
+
branch: string;
|
|
6985
|
+
source: string;
|
|
6986
|
+
} | undefined;
|
|
6552
6987
|
subagents?: {
|
|
6553
6988
|
running: number;
|
|
6554
6989
|
total: number;
|
|
@@ -6589,6 +7024,10 @@ export declare const methods: {
|
|
|
6589
7024
|
clientMessageId: string;
|
|
6590
7025
|
text: string;
|
|
6591
7026
|
}[] | undefined;
|
|
7027
|
+
worktree?: {
|
|
7028
|
+
branch: string;
|
|
7029
|
+
source: string;
|
|
7030
|
+
} | undefined;
|
|
6592
7031
|
subagents?: {
|
|
6593
7032
|
running: number;
|
|
6594
7033
|
total: number;
|
|
@@ -6631,6 +7070,10 @@ export declare const methods: {
|
|
|
6631
7070
|
clientMessageId: string;
|
|
6632
7071
|
text: string;
|
|
6633
7072
|
}[] | undefined;
|
|
7073
|
+
worktree?: {
|
|
7074
|
+
branch: string;
|
|
7075
|
+
source: string;
|
|
7076
|
+
} | undefined;
|
|
6634
7077
|
subagents?: {
|
|
6635
7078
|
running: number;
|
|
6636
7079
|
total: number;
|
|
@@ -6673,6 +7116,10 @@ export declare const methods: {
|
|
|
6673
7116
|
clientMessageId: string;
|
|
6674
7117
|
text: string;
|
|
6675
7118
|
}[] | undefined;
|
|
7119
|
+
worktree?: {
|
|
7120
|
+
branch: string;
|
|
7121
|
+
source: string;
|
|
7122
|
+
} | undefined;
|
|
6676
7123
|
subagents?: {
|
|
6677
7124
|
running: number;
|
|
6678
7125
|
total: number;
|
|
@@ -6684,13 +7131,21 @@ export declare const methods: {
|
|
|
6684
7131
|
* Deletes a session: the agent's own record where it has one (Codex thread,
|
|
6685
7132
|
* Claude transcript), and LinkShell's copy either way. Not while it runs.
|
|
6686
7133
|
*/
|
|
7134
|
+
/**
|
|
7135
|
+
* Deletes a session. Its worktree (when it has one that no other session
|
|
7136
|
+
* uses) goes with it if nothing in it would be lost; `worktree: "remove"`
|
|
7137
|
+
* removes it even with uncommitted changes or new commits, "keep" never.
|
|
7138
|
+
*/
|
|
6687
7139
|
readonly "sessions.delete": {
|
|
6688
7140
|
readonly params: z.ZodObject<{
|
|
6689
7141
|
sessionId: z.ZodString;
|
|
7142
|
+
worktree: z.ZodOptional<z.ZodEnum<["keep", "remove"]>>;
|
|
6690
7143
|
}, "strip", z.ZodTypeAny, {
|
|
6691
7144
|
sessionId: string;
|
|
7145
|
+
worktree?: "keep" | "remove" | undefined;
|
|
6692
7146
|
}, {
|
|
6693
7147
|
sessionId: string;
|
|
7148
|
+
worktree?: "keep" | "remove" | undefined;
|
|
6694
7149
|
}>;
|
|
6695
7150
|
readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
6696
7151
|
};
|
|
@@ -7033,6 +7488,113 @@ export declare const methods: {
|
|
|
7033
7488
|
}>;
|
|
7034
7489
|
readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
7035
7490
|
};
|
|
7491
|
+
/** What git says about `path`; no `git` when it isn't in a repository. */
|
|
7492
|
+
readonly "git.info": {
|
|
7493
|
+
readonly params: z.ZodObject<{
|
|
7494
|
+
path: z.ZodString;
|
|
7495
|
+
}, "strip", z.ZodTypeAny, {
|
|
7496
|
+
path: string;
|
|
7497
|
+
}, {
|
|
7498
|
+
path: string;
|
|
7499
|
+
}>;
|
|
7500
|
+
readonly result: z.ZodObject<{
|
|
7501
|
+
git: z.ZodOptional<z.ZodObject<{
|
|
7502
|
+
root: z.ZodString;
|
|
7503
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
7504
|
+
head: z.ZodOptional<z.ZodString>;
|
|
7505
|
+
dirty: z.ZodBoolean;
|
|
7506
|
+
}, "strip", z.ZodTypeAny, {
|
|
7507
|
+
dirty: boolean;
|
|
7508
|
+
root: string;
|
|
7509
|
+
branch?: string | undefined;
|
|
7510
|
+
head?: string | undefined;
|
|
7511
|
+
}, {
|
|
7512
|
+
dirty: boolean;
|
|
7513
|
+
root: string;
|
|
7514
|
+
branch?: string | undefined;
|
|
7515
|
+
head?: string | undefined;
|
|
7516
|
+
}>>;
|
|
7517
|
+
}, "strip", z.ZodTypeAny, {
|
|
7518
|
+
git?: {
|
|
7519
|
+
dirty: boolean;
|
|
7520
|
+
root: string;
|
|
7521
|
+
branch?: string | undefined;
|
|
7522
|
+
head?: string | undefined;
|
|
7523
|
+
} | undefined;
|
|
7524
|
+
}, {
|
|
7525
|
+
git?: {
|
|
7526
|
+
dirty: boolean;
|
|
7527
|
+
root: string;
|
|
7528
|
+
branch?: string | undefined;
|
|
7529
|
+
head?: string | undefined;
|
|
7530
|
+
} | undefined;
|
|
7531
|
+
}>;
|
|
7532
|
+
};
|
|
7533
|
+
/** The worktrees LinkShell made, newest first. */
|
|
7534
|
+
readonly "worktrees.list": {
|
|
7535
|
+
readonly params: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
7536
|
+
readonly result: z.ZodObject<{
|
|
7537
|
+
worktrees: z.ZodArray<z.ZodObject<{
|
|
7538
|
+
path: z.ZodString;
|
|
7539
|
+
branch: z.ZodString;
|
|
7540
|
+
source: z.ZodString;
|
|
7541
|
+
createdAt: z.ZodNumber;
|
|
7542
|
+
sessions: z.ZodArray<z.ZodString, "many">;
|
|
7543
|
+
dirty: z.ZodBoolean;
|
|
7544
|
+
ahead: z.ZodNumber;
|
|
7545
|
+
}, "strip", z.ZodTypeAny, {
|
|
7546
|
+
dirty: boolean;
|
|
7547
|
+
path: string;
|
|
7548
|
+
createdAt: number;
|
|
7549
|
+
branch: string;
|
|
7550
|
+
source: string;
|
|
7551
|
+
sessions: string[];
|
|
7552
|
+
ahead: number;
|
|
7553
|
+
}, {
|
|
7554
|
+
dirty: boolean;
|
|
7555
|
+
path: string;
|
|
7556
|
+
createdAt: number;
|
|
7557
|
+
branch: string;
|
|
7558
|
+
source: string;
|
|
7559
|
+
sessions: string[];
|
|
7560
|
+
ahead: number;
|
|
7561
|
+
}>, "many">;
|
|
7562
|
+
}, "strip", z.ZodTypeAny, {
|
|
7563
|
+
worktrees: {
|
|
7564
|
+
dirty: boolean;
|
|
7565
|
+
path: string;
|
|
7566
|
+
createdAt: number;
|
|
7567
|
+
branch: string;
|
|
7568
|
+
source: string;
|
|
7569
|
+
sessions: string[];
|
|
7570
|
+
ahead: number;
|
|
7571
|
+
}[];
|
|
7572
|
+
}, {
|
|
7573
|
+
worktrees: {
|
|
7574
|
+
dirty: boolean;
|
|
7575
|
+
path: string;
|
|
7576
|
+
createdAt: number;
|
|
7577
|
+
branch: string;
|
|
7578
|
+
source: string;
|
|
7579
|
+
sessions: string[];
|
|
7580
|
+
ahead: number;
|
|
7581
|
+
}[];
|
|
7582
|
+
}>;
|
|
7583
|
+
};
|
|
7584
|
+
/** Removes a worktree and its branch. Refused (`busy`) while a session uses it, or (`dirty`) when work in it would be lost, unless `force`. */
|
|
7585
|
+
readonly "worktrees.remove": {
|
|
7586
|
+
readonly params: z.ZodObject<{
|
|
7587
|
+
path: z.ZodString;
|
|
7588
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
7589
|
+
}, "strip", z.ZodTypeAny, {
|
|
7590
|
+
path: string;
|
|
7591
|
+
force?: boolean | undefined;
|
|
7592
|
+
}, {
|
|
7593
|
+
path: string;
|
|
7594
|
+
force?: boolean | undefined;
|
|
7595
|
+
}>;
|
|
7596
|
+
readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
7597
|
+
};
|
|
7036
7598
|
/** Subdirectories of `path` (default: the home directory). */
|
|
7037
7599
|
readonly "fs.list": {
|
|
7038
7600
|
readonly params: z.ZodObject<{
|
|
@@ -7077,6 +7639,7 @@ export declare const methods: {
|
|
|
7077
7639
|
/** The directory holds more than a listing carries (1000 entries). */
|
|
7078
7640
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
7079
7641
|
}, "strip", z.ZodTypeAny, {
|
|
7642
|
+
path: string;
|
|
7080
7643
|
entries: {
|
|
7081
7644
|
path: string;
|
|
7082
7645
|
name: string;
|
|
@@ -7084,11 +7647,11 @@ export declare const methods: {
|
|
|
7084
7647
|
project?: boolean | undefined;
|
|
7085
7648
|
size?: number | undefined;
|
|
7086
7649
|
}[];
|
|
7087
|
-
path: string;
|
|
7088
7650
|
home: string;
|
|
7089
7651
|
parent?: string | undefined;
|
|
7090
7652
|
truncated?: boolean | undefined;
|
|
7091
7653
|
}, {
|
|
7654
|
+
path: string;
|
|
7092
7655
|
entries: {
|
|
7093
7656
|
path: string;
|
|
7094
7657
|
name: string;
|
|
@@ -7096,7 +7659,6 @@ export declare const methods: {
|
|
|
7096
7659
|
project?: boolean | undefined;
|
|
7097
7660
|
size?: number | undefined;
|
|
7098
7661
|
}[];
|
|
7099
|
-
path: string;
|
|
7100
7662
|
home: string;
|
|
7101
7663
|
parent?: string | undefined;
|
|
7102
7664
|
truncated?: boolean | undefined;
|
|
@@ -9541,6 +10103,16 @@ export declare const notifications: {
|
|
|
9541
10103
|
clientMessageId: string;
|
|
9542
10104
|
text: string;
|
|
9543
10105
|
}>, "many">>;
|
|
10106
|
+
worktree: z.ZodOptional<z.ZodObject<{
|
|
10107
|
+
branch: z.ZodString;
|
|
10108
|
+
source: z.ZodString;
|
|
10109
|
+
}, "strip", z.ZodTypeAny, {
|
|
10110
|
+
branch: string;
|
|
10111
|
+
source: string;
|
|
10112
|
+
}, {
|
|
10113
|
+
branch: string;
|
|
10114
|
+
source: string;
|
|
10115
|
+
}>>;
|
|
9544
10116
|
subagents: z.ZodOptional<z.ZodObject<{
|
|
9545
10117
|
total: z.ZodNumber;
|
|
9546
10118
|
running: z.ZodNumber;
|
|
@@ -9587,6 +10159,10 @@ export declare const notifications: {
|
|
|
9587
10159
|
clientMessageId: string;
|
|
9588
10160
|
text: string;
|
|
9589
10161
|
}[] | undefined;
|
|
10162
|
+
worktree?: {
|
|
10163
|
+
branch: string;
|
|
10164
|
+
source: string;
|
|
10165
|
+
} | undefined;
|
|
9590
10166
|
subagents?: {
|
|
9591
10167
|
running: number;
|
|
9592
10168
|
total: number;
|
|
@@ -9627,6 +10203,10 @@ export declare const notifications: {
|
|
|
9627
10203
|
clientMessageId: string;
|
|
9628
10204
|
text: string;
|
|
9629
10205
|
}[] | undefined;
|
|
10206
|
+
worktree?: {
|
|
10207
|
+
branch: string;
|
|
10208
|
+
source: string;
|
|
10209
|
+
} | undefined;
|
|
9630
10210
|
subagents?: {
|
|
9631
10211
|
running: number;
|
|
9632
10212
|
total: number;
|
|
@@ -9669,6 +10249,10 @@ export declare const notifications: {
|
|
|
9669
10249
|
clientMessageId: string;
|
|
9670
10250
|
text: string;
|
|
9671
10251
|
}[] | undefined;
|
|
10252
|
+
worktree?: {
|
|
10253
|
+
branch: string;
|
|
10254
|
+
source: string;
|
|
10255
|
+
} | undefined;
|
|
9672
10256
|
subagents?: {
|
|
9673
10257
|
running: number;
|
|
9674
10258
|
total: number;
|
|
@@ -9711,6 +10295,10 @@ export declare const notifications: {
|
|
|
9711
10295
|
clientMessageId: string;
|
|
9712
10296
|
text: string;
|
|
9713
10297
|
}[] | undefined;
|
|
10298
|
+
worktree?: {
|
|
10299
|
+
branch: string;
|
|
10300
|
+
source: string;
|
|
10301
|
+
} | undefined;
|
|
9714
10302
|
subagents?: {
|
|
9715
10303
|
running: number;
|
|
9716
10304
|
total: number;
|