linkshell-cli 0.10.16 → 0.10.18
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/README.md +14 -0
- package/dist/cli/tsconfig.tsbuildinfo +1 -1
- package/dist/host/src/drivers/acp/connection.d.ts +1 -0
- package/dist/host/src/drivers/acp/connection.js +6 -0
- package/dist/host/src/drivers/acp/connection.js.map +1 -1
- package/dist/host/src/drivers/acp/driver.d.ts +10 -5
- package/dist/host/src/drivers/acp/driver.js +51 -25
- package/dist/host/src/drivers/acp/driver.js.map +1 -1
- package/dist/host/src/drivers/acp/questions.d.ts +14 -0
- package/dist/host/src/drivers/acp/questions.js +114 -0
- package/dist/host/src/drivers/acp/questions.js.map +1 -0
- package/dist/host/src/drivers/claude/activity.d.ts +5 -0
- package/dist/host/src/drivers/claude/activity.js +80 -25
- package/dist/host/src/drivers/claude/activity.js.map +1 -1
- package/dist/host/src/drivers/claude/children.d.ts +18 -0
- package/dist/host/src/drivers/claude/children.js +60 -0
- package/dist/host/src/drivers/claude/children.js.map +1 -0
- package/dist/host/src/drivers/claude/driver.js +7 -2
- package/dist/host/src/drivers/claude/driver.js.map +1 -1
- package/dist/host/src/drivers/claude/tasks.d.ts +2 -2
- package/dist/host/src/drivers/claude/transcript.d.ts +83 -72
- package/dist/host/src/drivers/claude/transcript.js +27 -13
- package/dist/host/src/drivers/claude/transcript.js.map +1 -1
- package/dist/host/src/drivers/codex/attention.d.ts +7 -0
- package/dist/host/src/drivers/codex/attention.js +82 -0
- package/dist/host/src/drivers/codex/attention.js.map +1 -0
- package/dist/host/src/drivers/codex/driver.d.ts +2 -0
- package/dist/host/src/drivers/codex/driver.js +45 -2
- package/dist/host/src/drivers/codex/driver.js.map +1 -1
- package/dist/host/src/drivers/types.d.ts +2 -1
- package/dist/host/src/hub.d.ts +3 -1
- package/dist/host/src/hub.js +42 -6
- package/dist/host/src/hub.js.map +1 -1
- package/dist/host/src/screen-viewer.js +0 -5
- package/dist/host/src/screen-viewer.js.map +1 -1
- package/dist/wire/src/async-questions.d.ts +40 -0
- package/dist/wire/src/async-questions.js +66 -0
- package/dist/wire/src/async-questions.js.map +1 -0
- package/dist/wire/src/goal.d.ts +2 -2
- package/dist/wire/src/index.d.ts +1 -0
- package/dist/wire/src/index.js +1 -0
- package/dist/wire/src/index.js.map +1 -1
- package/dist/wire/src/model.d.ts +99 -72
- package/dist/wire/src/model.js +4 -0
- package/dist/wire/src/model.js.map +1 -1
- package/dist/wire/src/rpc.d.ts +2163 -1720
- package/dist/wire/src/updates.d.ts +663 -559
- package/dist/wire/src/updates.js +8 -1
- package/dist/wire/src/updates.js.map +1 -1
- package/dist/wire/src/workflow.d.ts +8 -8
- package/package.json +4 -4
package/dist/wire/src/model.d.ts
CHANGED
|
@@ -123,7 +123,7 @@ export declare const agentInfoSchema: z.ZodObject<{
|
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
124
|
id: string;
|
|
125
125
|
label: string;
|
|
126
|
-
tier: "
|
|
126
|
+
tier: "terminal" | "remote" | "multi_client" | "handoff";
|
|
127
127
|
installed: boolean;
|
|
128
128
|
capabilities: {
|
|
129
129
|
interrupt: boolean;
|
|
@@ -144,7 +144,7 @@ export declare const agentInfoSchema: z.ZodObject<{
|
|
|
144
144
|
}, {
|
|
145
145
|
id: string;
|
|
146
146
|
label: string;
|
|
147
|
-
tier: "
|
|
147
|
+
tier: "terminal" | "remote" | "multi_client" | "handoff";
|
|
148
148
|
installed: boolean;
|
|
149
149
|
capabilities: {
|
|
150
150
|
interrupt: boolean;
|
|
@@ -180,12 +180,12 @@ export declare const permissionOptionSchema: z.ZodObject<{
|
|
|
180
180
|
kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
|
|
181
181
|
}, "strip", z.ZodTypeAny, {
|
|
182
182
|
name: string;
|
|
183
|
-
optionId: string;
|
|
184
183
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
184
|
+
optionId: string;
|
|
185
185
|
}, {
|
|
186
186
|
name: string;
|
|
187
|
-
optionId: string;
|
|
188
187
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
188
|
+
optionId: string;
|
|
189
189
|
}>;
|
|
190
190
|
export type PermissionOption = z.infer<typeof permissionOptionSchema>;
|
|
191
191
|
/** What a running session is doing right now, for list rows. Live only. */
|
|
@@ -194,13 +194,13 @@ export declare const sessionActivitySchema: z.ZodObject<{
|
|
|
194
194
|
title: z.ZodOptional<z.ZodString>;
|
|
195
195
|
toolKind: z.ZodOptional<z.ZodEnum<["read", "edit", "delete", "move", "search", "execute", "think", "fetch", "other"]>>;
|
|
196
196
|
}, "strip", z.ZodTypeAny, {
|
|
197
|
-
kind: "
|
|
197
|
+
kind: "tool" | "thinking" | "responding";
|
|
198
198
|
title?: string | undefined;
|
|
199
|
-
toolKind?: "search" | "
|
|
199
|
+
toolKind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | undefined;
|
|
200
200
|
}, {
|
|
201
|
-
kind: "
|
|
201
|
+
kind: "tool" | "thinking" | "responding";
|
|
202
202
|
title?: string | undefined;
|
|
203
|
-
toolKind?: "search" | "
|
|
203
|
+
toolKind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | undefined;
|
|
204
204
|
}>;
|
|
205
205
|
export type SessionActivity = z.infer<typeof sessionActivitySchema>;
|
|
206
206
|
/** The oldest unanswered permission request, so lists can offer approval inline. Live only. */
|
|
@@ -236,8 +236,8 @@ export declare const questionSchema: z.ZodObject<{
|
|
|
236
236
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
238
|
id: string;
|
|
239
|
-
kind: "text" | "choice" | "choices";
|
|
240
239
|
text: string;
|
|
240
|
+
kind: "text" | "choice" | "choices";
|
|
241
241
|
options?: {
|
|
242
242
|
value: string;
|
|
243
243
|
label: string;
|
|
@@ -249,8 +249,8 @@ export declare const questionSchema: z.ZodObject<{
|
|
|
249
249
|
required?: boolean | undefined;
|
|
250
250
|
}, {
|
|
251
251
|
id: string;
|
|
252
|
-
kind: "text" | "choice" | "choices";
|
|
253
252
|
text: string;
|
|
253
|
+
kind: "text" | "choice" | "choices";
|
|
254
254
|
options?: {
|
|
255
255
|
value: string;
|
|
256
256
|
label: string;
|
|
@@ -289,12 +289,12 @@ export declare const pendingPermissionSchema: z.ZodObject<{
|
|
|
289
289
|
kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
|
|
290
290
|
}, "strip", z.ZodTypeAny, {
|
|
291
291
|
name: string;
|
|
292
|
-
optionId: string;
|
|
293
292
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
293
|
+
optionId: string;
|
|
294
294
|
}, {
|
|
295
295
|
name: string;
|
|
296
|
-
optionId: string;
|
|
297
296
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
297
|
+
optionId: string;
|
|
298
298
|
}>, "many">;
|
|
299
299
|
/** Set when this is a question to answer (`sessions.answer`) rather than a permission to give. */
|
|
300
300
|
questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -324,8 +324,8 @@ export declare const pendingPermissionSchema: z.ZodObject<{
|
|
|
324
324
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
325
325
|
}, "strip", z.ZodTypeAny, {
|
|
326
326
|
id: string;
|
|
327
|
-
kind: "text" | "choice" | "choices";
|
|
328
327
|
text: string;
|
|
328
|
+
kind: "text" | "choice" | "choices";
|
|
329
329
|
options?: {
|
|
330
330
|
value: string;
|
|
331
331
|
label: string;
|
|
@@ -337,8 +337,8 @@ export declare const pendingPermissionSchema: z.ZodObject<{
|
|
|
337
337
|
required?: boolean | undefined;
|
|
338
338
|
}, {
|
|
339
339
|
id: string;
|
|
340
|
-
kind: "text" | "choice" | "choices";
|
|
341
340
|
text: string;
|
|
341
|
+
kind: "text" | "choice" | "choices";
|
|
342
342
|
options?: {
|
|
343
343
|
value: string;
|
|
344
344
|
label: string;
|
|
@@ -352,8 +352,8 @@ export declare const pendingPermissionSchema: z.ZodObject<{
|
|
|
352
352
|
}, "strip", z.ZodTypeAny, {
|
|
353
353
|
options: {
|
|
354
354
|
name: string;
|
|
355
|
-
optionId: string;
|
|
356
355
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
356
|
+
optionId: string;
|
|
357
357
|
}[];
|
|
358
358
|
title: string;
|
|
359
359
|
requestId: string;
|
|
@@ -361,8 +361,8 @@ export declare const pendingPermissionSchema: z.ZodObject<{
|
|
|
361
361
|
detail?: string | undefined;
|
|
362
362
|
questions?: {
|
|
363
363
|
id: string;
|
|
364
|
-
kind: "text" | "choice" | "choices";
|
|
365
364
|
text: string;
|
|
365
|
+
kind: "text" | "choice" | "choices";
|
|
366
366
|
options?: {
|
|
367
367
|
value: string;
|
|
368
368
|
label: string;
|
|
@@ -376,8 +376,8 @@ export declare const pendingPermissionSchema: z.ZodObject<{
|
|
|
376
376
|
}, {
|
|
377
377
|
options: {
|
|
378
378
|
name: string;
|
|
379
|
-
optionId: string;
|
|
380
379
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
380
|
+
optionId: string;
|
|
381
381
|
}[];
|
|
382
382
|
title: string;
|
|
383
383
|
requestId: string;
|
|
@@ -385,8 +385,8 @@ export declare const pendingPermissionSchema: z.ZodObject<{
|
|
|
385
385
|
detail?: string | undefined;
|
|
386
386
|
questions?: {
|
|
387
387
|
id: string;
|
|
388
|
-
kind: "text" | "choice" | "choices";
|
|
389
388
|
text: string;
|
|
389
|
+
kind: "text" | "choice" | "choices";
|
|
390
390
|
options?: {
|
|
391
391
|
value: string;
|
|
392
392
|
label: string;
|
|
@@ -405,12 +405,12 @@ export declare const queuedMessageSchema: z.ZodObject<{
|
|
|
405
405
|
text: z.ZodString;
|
|
406
406
|
images: z.ZodNumber;
|
|
407
407
|
}, "strip", z.ZodTypeAny, {
|
|
408
|
-
images: number;
|
|
409
408
|
text: string;
|
|
409
|
+
images: number;
|
|
410
410
|
clientMessageId: string;
|
|
411
411
|
}, {
|
|
412
|
-
images: number;
|
|
413
412
|
text: string;
|
|
413
|
+
images: number;
|
|
414
414
|
clientMessageId: string;
|
|
415
415
|
}>;
|
|
416
416
|
export type QueuedMessage = z.infer<typeof queuedMessageSchema>;
|
|
@@ -422,6 +422,7 @@ export declare const subagentInfoSchema: z.ZodObject<{
|
|
|
422
422
|
task: z.ZodString;
|
|
423
423
|
/** Its role or type, e.g. "Explore". */
|
|
424
424
|
agentType: z.ZodOptional<z.ZodString>;
|
|
425
|
+
name: z.ZodOptional<z.ZodString>;
|
|
425
426
|
running: z.ZodBoolean;
|
|
426
427
|
failed: z.ZodOptional<z.ZodBoolean>;
|
|
427
428
|
startedAt: z.ZodNumber;
|
|
@@ -466,7 +467,7 @@ export declare const subagentInfoSchema: z.ZodObject<{
|
|
|
466
467
|
}, "strip", z.ZodTypeAny, {
|
|
467
468
|
id: string;
|
|
468
469
|
title: string;
|
|
469
|
-
state: "
|
|
470
|
+
state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
|
|
470
471
|
toolCallId?: string | undefined;
|
|
471
472
|
phaseId?: string | undefined;
|
|
472
473
|
model?: string | undefined;
|
|
@@ -479,7 +480,7 @@ export declare const subagentInfoSchema: z.ZodObject<{
|
|
|
479
480
|
}, {
|
|
480
481
|
id: string;
|
|
481
482
|
title: string;
|
|
482
|
-
state: "
|
|
483
|
+
state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
|
|
483
484
|
toolCallId?: string | undefined;
|
|
484
485
|
phaseId?: string | undefined;
|
|
485
486
|
model?: string | undefined;
|
|
@@ -492,7 +493,7 @@ export declare const subagentInfoSchema: z.ZodObject<{
|
|
|
492
493
|
}>, "many">>;
|
|
493
494
|
}, "strip", z.ZodTypeAny, {
|
|
494
495
|
completed?: number | undefined;
|
|
495
|
-
state?: "
|
|
496
|
+
state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
|
|
496
497
|
tokens?: number | undefined;
|
|
497
498
|
durationMs?: number | undefined;
|
|
498
499
|
startedAt?: number | undefined;
|
|
@@ -508,7 +509,7 @@ export declare const subagentInfoSchema: z.ZodObject<{
|
|
|
508
509
|
agents?: {
|
|
509
510
|
id: string;
|
|
510
511
|
title: string;
|
|
511
|
-
state: "
|
|
512
|
+
state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
|
|
512
513
|
toolCallId?: string | undefined;
|
|
513
514
|
phaseId?: string | undefined;
|
|
514
515
|
model?: string | undefined;
|
|
@@ -521,7 +522,7 @@ export declare const subagentInfoSchema: z.ZodObject<{
|
|
|
521
522
|
}[] | undefined;
|
|
522
523
|
}, {
|
|
523
524
|
completed?: number | undefined;
|
|
524
|
-
state?: "
|
|
525
|
+
state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
|
|
525
526
|
tokens?: number | undefined;
|
|
526
527
|
durationMs?: number | undefined;
|
|
527
528
|
startedAt?: number | undefined;
|
|
@@ -537,7 +538,7 @@ export declare const subagentInfoSchema: z.ZodObject<{
|
|
|
537
538
|
agents?: {
|
|
538
539
|
id: string;
|
|
539
540
|
title: string;
|
|
540
|
-
state: "
|
|
541
|
+
state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
|
|
541
542
|
toolCallId?: string | undefined;
|
|
542
543
|
phaseId?: string | undefined;
|
|
543
544
|
model?: string | undefined;
|
|
@@ -557,13 +558,13 @@ export declare const subagentInfoSchema: z.ZodObject<{
|
|
|
557
558
|
startedAt: number;
|
|
558
559
|
task: string;
|
|
559
560
|
failed?: boolean | undefined;
|
|
560
|
-
state?: "
|
|
561
|
+
state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
|
|
561
562
|
endedAt?: number | undefined;
|
|
562
|
-
|
|
563
|
+
name?: string | undefined;
|
|
563
564
|
agentType?: string | undefined;
|
|
564
565
|
workflow?: {
|
|
565
566
|
completed?: number | undefined;
|
|
566
|
-
state?: "
|
|
567
|
+
state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
|
|
567
568
|
tokens?: number | undefined;
|
|
568
569
|
durationMs?: number | undefined;
|
|
569
570
|
startedAt?: number | undefined;
|
|
@@ -579,7 +580,7 @@ export declare const subagentInfoSchema: z.ZodObject<{
|
|
|
579
580
|
agents?: {
|
|
580
581
|
id: string;
|
|
581
582
|
title: string;
|
|
582
|
-
state: "
|
|
583
|
+
state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
|
|
583
584
|
toolCallId?: string | undefined;
|
|
584
585
|
phaseId?: string | undefined;
|
|
585
586
|
model?: string | undefined;
|
|
@@ -591,6 +592,7 @@ export declare const subagentInfoSchema: z.ZodObject<{
|
|
|
591
592
|
result?: string | undefined;
|
|
592
593
|
}[] | undefined;
|
|
593
594
|
} | undefined;
|
|
595
|
+
parentToolCallId?: string | undefined;
|
|
594
596
|
lastSeq?: number | undefined;
|
|
595
597
|
}, {
|
|
596
598
|
running: boolean;
|
|
@@ -598,13 +600,13 @@ export declare const subagentInfoSchema: z.ZodObject<{
|
|
|
598
600
|
startedAt: number;
|
|
599
601
|
task: string;
|
|
600
602
|
failed?: boolean | undefined;
|
|
601
|
-
state?: "
|
|
603
|
+
state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
|
|
602
604
|
endedAt?: number | undefined;
|
|
603
|
-
|
|
605
|
+
name?: string | undefined;
|
|
604
606
|
agentType?: string | undefined;
|
|
605
607
|
workflow?: {
|
|
606
608
|
completed?: number | undefined;
|
|
607
|
-
state?: "
|
|
609
|
+
state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
|
|
608
610
|
tokens?: number | undefined;
|
|
609
611
|
durationMs?: number | undefined;
|
|
610
612
|
startedAt?: number | undefined;
|
|
@@ -620,7 +622,7 @@ export declare const subagentInfoSchema: z.ZodObject<{
|
|
|
620
622
|
agents?: {
|
|
621
623
|
id: string;
|
|
622
624
|
title: string;
|
|
623
|
-
state: "
|
|
625
|
+
state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
|
|
624
626
|
toolCallId?: string | undefined;
|
|
625
627
|
phaseId?: string | undefined;
|
|
626
628
|
model?: string | undefined;
|
|
@@ -632,6 +634,7 @@ export declare const subagentInfoSchema: z.ZodObject<{
|
|
|
632
634
|
result?: string | undefined;
|
|
633
635
|
}[] | undefined;
|
|
634
636
|
} | undefined;
|
|
637
|
+
parentToolCallId?: string | undefined;
|
|
635
638
|
lastSeq?: number | undefined;
|
|
636
639
|
}>;
|
|
637
640
|
export type SubagentInfo = z.infer<typeof subagentInfoSchema>;
|
|
@@ -667,31 +670,31 @@ export declare const backgroundTaskSchema: z.ZodObject<{
|
|
|
667
670
|
}, "strip", z.ZodTypeAny, {
|
|
668
671
|
id: string;
|
|
669
672
|
title: string;
|
|
670
|
-
state: "
|
|
673
|
+
state: "unknown" | "running" | "completed" | "failed" | "stopped";
|
|
671
674
|
startedAt: number;
|
|
672
675
|
kind: "shell" | "monitor";
|
|
673
676
|
toolCallId?: string | undefined;
|
|
674
677
|
endedAt?: number | undefined;
|
|
675
|
-
lastSeq?: number | undefined;
|
|
676
678
|
command?: string | undefined;
|
|
677
679
|
summary?: string | undefined;
|
|
678
680
|
exitCode?: number | undefined;
|
|
679
681
|
output?: boolean | undefined;
|
|
680
682
|
canStop?: boolean | undefined;
|
|
683
|
+
lastSeq?: number | undefined;
|
|
681
684
|
}, {
|
|
682
685
|
id: string;
|
|
683
686
|
title: string;
|
|
684
|
-
state: "
|
|
687
|
+
state: "unknown" | "running" | "completed" | "failed" | "stopped";
|
|
685
688
|
startedAt: number;
|
|
686
689
|
kind: "shell" | "monitor";
|
|
687
690
|
toolCallId?: string | undefined;
|
|
688
691
|
endedAt?: number | undefined;
|
|
689
|
-
lastSeq?: number | undefined;
|
|
690
692
|
command?: string | undefined;
|
|
691
693
|
summary?: string | undefined;
|
|
692
694
|
exitCode?: number | undefined;
|
|
693
695
|
output?: boolean | undefined;
|
|
694
696
|
canStop?: boolean | undefined;
|
|
697
|
+
lastSeq?: number | undefined;
|
|
695
698
|
}>;
|
|
696
699
|
export type BackgroundTask = z.infer<typeof backgroundTaskSchema>;
|
|
697
700
|
export declare const sessionSummarySchema: z.ZodObject<{
|
|
@@ -715,13 +718,13 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
715
718
|
title: z.ZodOptional<z.ZodString>;
|
|
716
719
|
toolKind: z.ZodOptional<z.ZodEnum<["read", "edit", "delete", "move", "search", "execute", "think", "fetch", "other"]>>;
|
|
717
720
|
}, "strip", z.ZodTypeAny, {
|
|
718
|
-
kind: "
|
|
721
|
+
kind: "tool" | "thinking" | "responding";
|
|
719
722
|
title?: string | undefined;
|
|
720
|
-
toolKind?: "search" | "
|
|
723
|
+
toolKind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | undefined;
|
|
721
724
|
}, {
|
|
722
|
-
kind: "
|
|
725
|
+
kind: "tool" | "thinking" | "responding";
|
|
723
726
|
title?: string | undefined;
|
|
724
|
-
toolKind?: "search" | "
|
|
727
|
+
toolKind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | undefined;
|
|
725
728
|
}>>;
|
|
726
729
|
permission: z.ZodOptional<z.ZodObject<{
|
|
727
730
|
requestId: z.ZodString;
|
|
@@ -734,12 +737,12 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
734
737
|
kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
|
|
735
738
|
}, "strip", z.ZodTypeAny, {
|
|
736
739
|
name: string;
|
|
737
|
-
optionId: string;
|
|
738
740
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
741
|
+
optionId: string;
|
|
739
742
|
}, {
|
|
740
743
|
name: string;
|
|
741
|
-
optionId: string;
|
|
742
744
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
745
|
+
optionId: string;
|
|
743
746
|
}>, "many">;
|
|
744
747
|
/** Set when this is a question to answer (`sessions.answer`) rather than a permission to give. */
|
|
745
748
|
questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -769,8 +772,8 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
769
772
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
770
773
|
}, "strip", z.ZodTypeAny, {
|
|
771
774
|
id: string;
|
|
772
|
-
kind: "text" | "choice" | "choices";
|
|
773
775
|
text: string;
|
|
776
|
+
kind: "text" | "choice" | "choices";
|
|
774
777
|
options?: {
|
|
775
778
|
value: string;
|
|
776
779
|
label: string;
|
|
@@ -782,8 +785,8 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
782
785
|
required?: boolean | undefined;
|
|
783
786
|
}, {
|
|
784
787
|
id: string;
|
|
785
|
-
kind: "text" | "choice" | "choices";
|
|
786
788
|
text: string;
|
|
789
|
+
kind: "text" | "choice" | "choices";
|
|
787
790
|
options?: {
|
|
788
791
|
value: string;
|
|
789
792
|
label: string;
|
|
@@ -797,8 +800,8 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
797
800
|
}, "strip", z.ZodTypeAny, {
|
|
798
801
|
options: {
|
|
799
802
|
name: string;
|
|
800
|
-
optionId: string;
|
|
801
803
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
804
|
+
optionId: string;
|
|
802
805
|
}[];
|
|
803
806
|
title: string;
|
|
804
807
|
requestId: string;
|
|
@@ -806,8 +809,8 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
806
809
|
detail?: string | undefined;
|
|
807
810
|
questions?: {
|
|
808
811
|
id: string;
|
|
809
|
-
kind: "text" | "choice" | "choices";
|
|
810
812
|
text: string;
|
|
813
|
+
kind: "text" | "choice" | "choices";
|
|
811
814
|
options?: {
|
|
812
815
|
value: string;
|
|
813
816
|
label: string;
|
|
@@ -821,8 +824,8 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
821
824
|
}, {
|
|
822
825
|
options: {
|
|
823
826
|
name: string;
|
|
824
|
-
optionId: string;
|
|
825
827
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
828
|
+
optionId: string;
|
|
826
829
|
}[];
|
|
827
830
|
title: string;
|
|
828
831
|
requestId: string;
|
|
@@ -830,8 +833,8 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
830
833
|
detail?: string | undefined;
|
|
831
834
|
questions?: {
|
|
832
835
|
id: string;
|
|
833
|
-
kind: "text" | "choice" | "choices";
|
|
834
836
|
text: string;
|
|
837
|
+
kind: "text" | "choice" | "choices";
|
|
835
838
|
options?: {
|
|
836
839
|
value: string;
|
|
837
840
|
label: string;
|
|
@@ -843,6 +846,20 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
843
846
|
required?: boolean | undefined;
|
|
844
847
|
}[] | undefined;
|
|
845
848
|
}>>;
|
|
849
|
+
/** Unanswered questions in the current turn, even while the agent continues working. */
|
|
850
|
+
asyncQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
851
|
+
id: z.ZodString;
|
|
852
|
+
title: z.ZodString;
|
|
853
|
+
options: z.ZodArray<z.ZodString, "many">;
|
|
854
|
+
}, "strip", z.ZodTypeAny, {
|
|
855
|
+
options: string[];
|
|
856
|
+
id: string;
|
|
857
|
+
title: string;
|
|
858
|
+
}, {
|
|
859
|
+
options: string[];
|
|
860
|
+
id: string;
|
|
861
|
+
title: string;
|
|
862
|
+
}>, "many">>;
|
|
846
863
|
/**
|
|
847
864
|
* Live only: messages waiting for the current turn to end, when the host
|
|
848
865
|
* holds them (agents that can't take input mid-turn). Oldest first.
|
|
@@ -853,12 +870,12 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
853
870
|
text: z.ZodString;
|
|
854
871
|
images: z.ZodNumber;
|
|
855
872
|
}, "strip", z.ZodTypeAny, {
|
|
856
|
-
images: number;
|
|
857
873
|
text: string;
|
|
874
|
+
images: number;
|
|
858
875
|
clientMessageId: string;
|
|
859
876
|
}, {
|
|
860
|
-
images: number;
|
|
861
877
|
text: string;
|
|
878
|
+
images: number;
|
|
862
879
|
clientMessageId: string;
|
|
863
880
|
}>, "many">>;
|
|
864
881
|
/**
|
|
@@ -901,9 +918,9 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
901
918
|
}>>;
|
|
902
919
|
}, "strip", z.ZodTypeAny, {
|
|
903
920
|
id: string;
|
|
904
|
-
state: "running" | "
|
|
905
|
-
lastSeq: number;
|
|
921
|
+
state: "running" | "error" | "idle" | "waiting" | "offline";
|
|
906
922
|
agent: string;
|
|
923
|
+
lastSeq: number;
|
|
907
924
|
nativeId: string;
|
|
908
925
|
cwd: string;
|
|
909
926
|
pendingPermissions: number;
|
|
@@ -912,18 +929,18 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
912
929
|
archived: boolean;
|
|
913
930
|
title?: string | undefined;
|
|
914
931
|
model?: string | undefined;
|
|
932
|
+
driver?: "desktop" | "remote" | "none" | undefined;
|
|
915
933
|
preview?: string | undefined;
|
|
916
|
-
driver?: "remote" | "desktop" | "none" | undefined;
|
|
917
934
|
activity?: {
|
|
918
|
-
kind: "
|
|
935
|
+
kind: "tool" | "thinking" | "responding";
|
|
919
936
|
title?: string | undefined;
|
|
920
|
-
toolKind?: "search" | "
|
|
937
|
+
toolKind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | undefined;
|
|
921
938
|
} | undefined;
|
|
922
939
|
permission?: {
|
|
923
940
|
options: {
|
|
924
941
|
name: string;
|
|
925
|
-
optionId: string;
|
|
926
942
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
943
|
+
optionId: string;
|
|
927
944
|
}[];
|
|
928
945
|
title: string;
|
|
929
946
|
requestId: string;
|
|
@@ -931,8 +948,8 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
931
948
|
detail?: string | undefined;
|
|
932
949
|
questions?: {
|
|
933
950
|
id: string;
|
|
934
|
-
kind: "text" | "choice" | "choices";
|
|
935
951
|
text: string;
|
|
952
|
+
kind: "text" | "choice" | "choices";
|
|
936
953
|
options?: {
|
|
937
954
|
value: string;
|
|
938
955
|
label: string;
|
|
@@ -944,9 +961,14 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
944
961
|
required?: boolean | undefined;
|
|
945
962
|
}[] | undefined;
|
|
946
963
|
} | undefined;
|
|
964
|
+
asyncQuestions?: {
|
|
965
|
+
options: string[];
|
|
966
|
+
id: string;
|
|
967
|
+
title: string;
|
|
968
|
+
}[] | undefined;
|
|
947
969
|
queue?: {
|
|
948
|
-
images: number;
|
|
949
970
|
text: string;
|
|
971
|
+
images: number;
|
|
950
972
|
clientMessageId: string;
|
|
951
973
|
}[] | undefined;
|
|
952
974
|
worktree?: {
|
|
@@ -963,9 +985,9 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
963
985
|
} | undefined;
|
|
964
986
|
}, {
|
|
965
987
|
id: string;
|
|
966
|
-
state: "running" | "
|
|
967
|
-
lastSeq: number;
|
|
988
|
+
state: "running" | "error" | "idle" | "waiting" | "offline";
|
|
968
989
|
agent: string;
|
|
990
|
+
lastSeq: number;
|
|
969
991
|
nativeId: string;
|
|
970
992
|
cwd: string;
|
|
971
993
|
pendingPermissions: number;
|
|
@@ -974,18 +996,18 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
974
996
|
archived: boolean;
|
|
975
997
|
title?: string | undefined;
|
|
976
998
|
model?: string | undefined;
|
|
999
|
+
driver?: "desktop" | "remote" | "none" | undefined;
|
|
977
1000
|
preview?: string | undefined;
|
|
978
|
-
driver?: "remote" | "desktop" | "none" | undefined;
|
|
979
1001
|
activity?: {
|
|
980
|
-
kind: "
|
|
1002
|
+
kind: "tool" | "thinking" | "responding";
|
|
981
1003
|
title?: string | undefined;
|
|
982
|
-
toolKind?: "search" | "
|
|
1004
|
+
toolKind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | undefined;
|
|
983
1005
|
} | undefined;
|
|
984
1006
|
permission?: {
|
|
985
1007
|
options: {
|
|
986
1008
|
name: string;
|
|
987
|
-
optionId: string;
|
|
988
1009
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
1010
|
+
optionId: string;
|
|
989
1011
|
}[];
|
|
990
1012
|
title: string;
|
|
991
1013
|
requestId: string;
|
|
@@ -993,8 +1015,8 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
993
1015
|
detail?: string | undefined;
|
|
994
1016
|
questions?: {
|
|
995
1017
|
id: string;
|
|
996
|
-
kind: "text" | "choice" | "choices";
|
|
997
1018
|
text: string;
|
|
1019
|
+
kind: "text" | "choice" | "choices";
|
|
998
1020
|
options?: {
|
|
999
1021
|
value: string;
|
|
1000
1022
|
label: string;
|
|
@@ -1006,9 +1028,14 @@ export declare const sessionSummarySchema: z.ZodObject<{
|
|
|
1006
1028
|
required?: boolean | undefined;
|
|
1007
1029
|
}[] | undefined;
|
|
1008
1030
|
} | undefined;
|
|
1031
|
+
asyncQuestions?: {
|
|
1032
|
+
options: string[];
|
|
1033
|
+
id: string;
|
|
1034
|
+
title: string;
|
|
1035
|
+
}[] | undefined;
|
|
1009
1036
|
queue?: {
|
|
1010
|
-
images: number;
|
|
1011
1037
|
text: string;
|
|
1038
|
+
images: number;
|
|
1012
1039
|
clientMessageId: string;
|
|
1013
1040
|
}[] | undefined;
|
|
1014
1041
|
worktree?: {
|
|
@@ -1170,7 +1197,7 @@ export declare const machineInfoSchema: z.ZodObject<{
|
|
|
1170
1197
|
}, "strip", z.ZodTypeAny, {
|
|
1171
1198
|
id: string;
|
|
1172
1199
|
label: string;
|
|
1173
|
-
tier: "
|
|
1200
|
+
tier: "terminal" | "remote" | "multi_client" | "handoff";
|
|
1174
1201
|
installed: boolean;
|
|
1175
1202
|
capabilities: {
|
|
1176
1203
|
interrupt: boolean;
|
|
@@ -1191,7 +1218,7 @@ export declare const machineInfoSchema: z.ZodObject<{
|
|
|
1191
1218
|
}, {
|
|
1192
1219
|
id: string;
|
|
1193
1220
|
label: string;
|
|
1194
|
-
tier: "
|
|
1221
|
+
tier: "terminal" | "remote" | "multi_client" | "handoff";
|
|
1195
1222
|
installed: boolean;
|
|
1196
1223
|
capabilities: {
|
|
1197
1224
|
interrupt: boolean;
|
|
@@ -1225,7 +1252,7 @@ export declare const machineInfoSchema: z.ZodObject<{
|
|
|
1225
1252
|
agents: {
|
|
1226
1253
|
id: string;
|
|
1227
1254
|
label: string;
|
|
1228
|
-
tier: "
|
|
1255
|
+
tier: "terminal" | "remote" | "multi_client" | "handoff";
|
|
1229
1256
|
installed: boolean;
|
|
1230
1257
|
capabilities: {
|
|
1231
1258
|
interrupt: boolean;
|
|
@@ -1256,7 +1283,7 @@ export declare const machineInfoSchema: z.ZodObject<{
|
|
|
1256
1283
|
agents: {
|
|
1257
1284
|
id: string;
|
|
1258
1285
|
label: string;
|
|
1259
|
-
tier: "
|
|
1286
|
+
tier: "terminal" | "remote" | "multi_client" | "handoff";
|
|
1260
1287
|
installed: boolean;
|
|
1261
1288
|
capabilities: {
|
|
1262
1289
|
interrupt: boolean;
|
package/dist/wire/src/model.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { asyncQuestionSchema } from "./async-questions.js";
|
|
2
3
|
import { workflowAgentStateSchema, workflowSchema } from "./workflow.js";
|
|
3
4
|
/**
|
|
4
5
|
* How far LinkShell can take a given agent. The UI renders capabilities from
|
|
@@ -128,6 +129,7 @@ export const subagentInfoSchema = z.object({
|
|
|
128
129
|
task: z.string(),
|
|
129
130
|
/** Its role or type, e.g. "Explore". */
|
|
130
131
|
agentType: z.string().optional(),
|
|
132
|
+
name: z.string().optional(),
|
|
131
133
|
running: z.boolean(),
|
|
132
134
|
failed: z.boolean().optional(),
|
|
133
135
|
startedAt: z.number(),
|
|
@@ -184,6 +186,8 @@ export const sessionSummarySchema = z.object({
|
|
|
184
186
|
archived: z.boolean(),
|
|
185
187
|
activity: sessionActivitySchema.optional(),
|
|
186
188
|
permission: pendingPermissionSchema.optional(),
|
|
189
|
+
/** Unanswered questions in the current turn, even while the agent continues working. */
|
|
190
|
+
asyncQuestions: z.array(asyncQuestionSchema).optional(),
|
|
187
191
|
/**
|
|
188
192
|
* Live only: messages waiting for the current turn to end, when the host
|
|
189
193
|
* holds them (agents that can't take input mid-turn). Oldest first.
|