@linkshell/host 0.4.0 → 0.4.1

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.
@@ -57,12 +57,12 @@ export declare const agentAuthSchema: z.ZodObject<{
57
57
  hint: z.ZodOptional<z.ZodString>;
58
58
  }, "strip", z.ZodTypeAny, {
59
59
  state: "unknown" | "ok" | "missing";
60
- hint?: string | undefined;
61
60
  method?: string | undefined;
61
+ hint?: string | undefined;
62
62
  }, {
63
63
  state: "unknown" | "ok" | "missing";
64
- hint?: string | undefined;
65
64
  method?: string | undefined;
65
+ hint?: string | undefined;
66
66
  }>;
67
67
  export type AgentAuth = z.infer<typeof agentAuthSchema>;
68
68
  export declare const agentInfoSchema: z.ZodObject<{
@@ -81,12 +81,12 @@ export declare const agentInfoSchema: z.ZodObject<{
81
81
  hint: z.ZodOptional<z.ZodString>;
82
82
  }, "strip", z.ZodTypeAny, {
83
83
  state: "unknown" | "ok" | "missing";
84
- hint?: string | undefined;
85
84
  method?: string | undefined;
85
+ hint?: string | undefined;
86
86
  }, {
87
87
  state: "unknown" | "ok" | "missing";
88
- hint?: string | undefined;
89
88
  method?: string | undefined;
89
+ hint?: string | undefined;
90
90
  }>>;
91
91
  capabilities: z.ZodObject<{
92
92
  interrupt: z.ZodBoolean;
@@ -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: "terminal" | "remote" | "multi_client" | "handoff";
126
+ tier: "multi_client" | "handoff" | "remote" | "terminal";
127
127
  installed: boolean;
128
128
  capabilities: {
129
129
  interrupt: boolean;
@@ -134,17 +134,17 @@ export declare const agentInfoSchema: z.ZodObject<{
134
134
  models: boolean;
135
135
  modes: boolean;
136
136
  };
137
+ version?: string | undefined;
138
+ problem?: string | undefined;
137
139
  auth?: {
138
140
  state: "unknown" | "ok" | "missing";
139
- hint?: string | undefined;
140
141
  method?: string | undefined;
142
+ hint?: string | undefined;
141
143
  } | undefined;
142
- version?: string | undefined;
143
- problem?: string | undefined;
144
144
  }, {
145
145
  id: string;
146
146
  label: string;
147
- tier: "terminal" | "remote" | "multi_client" | "handoff";
147
+ tier: "multi_client" | "handoff" | "remote" | "terminal";
148
148
  installed: boolean;
149
149
  capabilities: {
150
150
  interrupt: boolean;
@@ -155,13 +155,13 @@ export declare const agentInfoSchema: z.ZodObject<{
155
155
  models: boolean;
156
156
  modes: boolean;
157
157
  };
158
+ version?: string | undefined;
159
+ problem?: string | undefined;
158
160
  auth?: {
159
161
  state: "unknown" | "ok" | "missing";
160
- hint?: string | undefined;
161
162
  method?: string | undefined;
163
+ hint?: string | undefined;
162
164
  } | undefined;
163
- version?: string | undefined;
164
- problem?: string | undefined;
165
165
  }>;
166
166
  export type AgentInfo = z.infer<typeof agentInfoSchema>;
167
167
  /**
@@ -179,13 +179,13 @@ export declare const permissionOptionSchema: z.ZodObject<{
179
179
  name: z.ZodString;
180
180
  kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
181
181
  }, "strip", z.ZodTypeAny, {
182
+ optionId: string;
182
183
  name: string;
183
184
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
184
- optionId: string;
185
185
  }, {
186
+ optionId: string;
186
187
  name: string;
187
188
  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,11 +194,11 @@ 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: "tool" | "thinking" | "responding";
197
+ kind: "thinking" | "responding" | "tool";
198
198
  title?: string | undefined;
199
199
  toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
200
200
  }, {
201
- kind: "tool" | "thinking" | "responding";
201
+ kind: "thinking" | "responding" | "tool";
202
202
  title?: string | undefined;
203
203
  toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
204
204
  }>;
@@ -235,9 +235,9 @@ export declare const questionSchema: z.ZodObject<{
235
235
  secret: z.ZodOptional<z.ZodBoolean>;
236
236
  required: z.ZodOptional<z.ZodBoolean>;
237
237
  }, "strip", z.ZodTypeAny, {
238
- text: string;
239
- kind: "text" | "choice" | "choices";
240
238
  id: string;
239
+ kind: "text" | "choice" | "choices";
240
+ text: string;
241
241
  options?: {
242
242
  value: string;
243
243
  label: string;
@@ -248,9 +248,9 @@ export declare const questionSchema: z.ZodObject<{
248
248
  secret?: boolean | undefined;
249
249
  required?: boolean | undefined;
250
250
  }, {
251
- text: string;
252
- kind: "text" | "choice" | "choices";
253
251
  id: string;
252
+ kind: "text" | "choice" | "choices";
253
+ text: string;
254
254
  options?: {
255
255
  value: string;
256
256
  label: string;
@@ -288,13 +288,13 @@ export declare const pendingPermissionSchema: z.ZodObject<{
288
288
  name: z.ZodString;
289
289
  kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
290
290
  }, "strip", z.ZodTypeAny, {
291
+ optionId: string;
291
292
  name: string;
292
293
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
293
- optionId: string;
294
294
  }, {
295
+ optionId: string;
295
296
  name: string;
296
297
  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<{
@@ -323,9 +323,9 @@ export declare const pendingPermissionSchema: z.ZodObject<{
323
323
  secret: z.ZodOptional<z.ZodBoolean>;
324
324
  required: z.ZodOptional<z.ZodBoolean>;
325
325
  }, "strip", z.ZodTypeAny, {
326
- text: string;
327
- kind: "text" | "choice" | "choices";
328
326
  id: string;
327
+ kind: "text" | "choice" | "choices";
328
+ text: string;
329
329
  options?: {
330
330
  value: string;
331
331
  label: string;
@@ -336,9 +336,9 @@ export declare const pendingPermissionSchema: z.ZodObject<{
336
336
  secret?: boolean | undefined;
337
337
  required?: boolean | undefined;
338
338
  }, {
339
- text: string;
340
- kind: "text" | "choice" | "choices";
341
339
  id: string;
340
+ kind: "text" | "choice" | "choices";
341
+ text: string;
342
342
  options?: {
343
343
  value: string;
344
344
  label: string;
@@ -351,18 +351,18 @@ export declare const pendingPermissionSchema: z.ZodObject<{
351
351
  }>, "many">>;
352
352
  }, "strip", z.ZodTypeAny, {
353
353
  options: {
354
+ optionId: string;
354
355
  name: string;
355
356
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
356
- optionId: string;
357
357
  }[];
358
358
  title: string;
359
359
  requestId: string;
360
360
  toolCallId?: string | undefined;
361
361
  detail?: string | undefined;
362
362
  questions?: {
363
- text: string;
364
- kind: "text" | "choice" | "choices";
365
363
  id: string;
364
+ kind: "text" | "choice" | "choices";
365
+ text: string;
366
366
  options?: {
367
367
  value: string;
368
368
  label: string;
@@ -375,18 +375,18 @@ export declare const pendingPermissionSchema: z.ZodObject<{
375
375
  }[] | undefined;
376
376
  }, {
377
377
  options: {
378
+ optionId: string;
378
379
  name: string;
379
380
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
380
- optionId: string;
381
381
  }[];
382
382
  title: string;
383
383
  requestId: string;
384
384
  toolCallId?: string | undefined;
385
385
  detail?: string | undefined;
386
386
  questions?: {
387
- text: string;
388
- kind: "text" | "choice" | "choices";
389
387
  id: string;
388
+ kind: "text" | "choice" | "choices";
389
+ text: string;
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
- text: string;
409
408
  images: number;
409
+ text: string;
410
410
  clientMessageId: string;
411
411
  }, {
412
- text: string;
413
412
  images: number;
413
+ text: string;
414
414
  clientMessageId: string;
415
415
  }>;
416
416
  export type QueuedMessage = z.infer<typeof queuedMessageSchema>;
@@ -426,20 +426,20 @@ export declare const subagentInfoSchema: z.ZodObject<{
426
426
  startedAt: z.ZodNumber;
427
427
  endedAt: z.ZodOptional<z.ZodNumber>;
428
428
  }, "strip", z.ZodTypeAny, {
429
+ running: boolean;
429
430
  toolCallId: string;
430
431
  task: string;
431
- running: boolean;
432
432
  startedAt: number;
433
- failed?: boolean | undefined;
434
433
  agentType?: string | undefined;
434
+ failed?: boolean | undefined;
435
435
  endedAt?: number | undefined;
436
436
  }, {
437
+ running: boolean;
437
438
  toolCallId: string;
438
439
  task: string;
439
- running: boolean;
440
440
  startedAt: number;
441
- failed?: boolean | undefined;
442
441
  agentType?: string | undefined;
442
+ failed?: boolean | undefined;
443
443
  endedAt?: number | undefined;
444
444
  }>;
445
445
  export type SubagentInfo = z.infer<typeof subagentInfoSchema>;
@@ -464,11 +464,11 @@ export declare const sessionSummarySchema: z.ZodObject<{
464
464
  title: z.ZodOptional<z.ZodString>;
465
465
  toolKind: z.ZodOptional<z.ZodEnum<["read", "edit", "delete", "move", "search", "execute", "think", "fetch", "other"]>>;
466
466
  }, "strip", z.ZodTypeAny, {
467
- kind: "tool" | "thinking" | "responding";
467
+ kind: "thinking" | "responding" | "tool";
468
468
  title?: string | undefined;
469
469
  toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
470
470
  }, {
471
- kind: "tool" | "thinking" | "responding";
471
+ kind: "thinking" | "responding" | "tool";
472
472
  title?: string | undefined;
473
473
  toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
474
474
  }>>;
@@ -482,13 +482,13 @@ export declare const sessionSummarySchema: z.ZodObject<{
482
482
  name: z.ZodString;
483
483
  kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
484
484
  }, "strip", z.ZodTypeAny, {
485
+ optionId: string;
485
486
  name: string;
486
487
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
487
- optionId: string;
488
488
  }, {
489
+ optionId: string;
489
490
  name: string;
490
491
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
491
- optionId: string;
492
492
  }>, "many">;
493
493
  /** Set when this is a question to answer (`sessions.answer`) rather than a permission to give. */
494
494
  questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -517,9 +517,9 @@ export declare const sessionSummarySchema: z.ZodObject<{
517
517
  secret: z.ZodOptional<z.ZodBoolean>;
518
518
  required: z.ZodOptional<z.ZodBoolean>;
519
519
  }, "strip", z.ZodTypeAny, {
520
- text: string;
521
- kind: "text" | "choice" | "choices";
522
520
  id: string;
521
+ kind: "text" | "choice" | "choices";
522
+ text: string;
523
523
  options?: {
524
524
  value: string;
525
525
  label: string;
@@ -530,9 +530,9 @@ export declare const sessionSummarySchema: z.ZodObject<{
530
530
  secret?: boolean | undefined;
531
531
  required?: boolean | undefined;
532
532
  }, {
533
- text: string;
534
- kind: "text" | "choice" | "choices";
535
533
  id: string;
534
+ kind: "text" | "choice" | "choices";
535
+ text: string;
536
536
  options?: {
537
537
  value: string;
538
538
  label: string;
@@ -545,18 +545,18 @@ export declare const sessionSummarySchema: z.ZodObject<{
545
545
  }>, "many">>;
546
546
  }, "strip", z.ZodTypeAny, {
547
547
  options: {
548
+ optionId: string;
548
549
  name: string;
549
550
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
550
- optionId: string;
551
551
  }[];
552
552
  title: string;
553
553
  requestId: string;
554
554
  toolCallId?: string | undefined;
555
555
  detail?: string | undefined;
556
556
  questions?: {
557
- text: string;
558
- kind: "text" | "choice" | "choices";
559
557
  id: string;
558
+ kind: "text" | "choice" | "choices";
559
+ text: string;
560
560
  options?: {
561
561
  value: string;
562
562
  label: string;
@@ -569,18 +569,18 @@ export declare const sessionSummarySchema: z.ZodObject<{
569
569
  }[] | undefined;
570
570
  }, {
571
571
  options: {
572
+ optionId: string;
572
573
  name: string;
573
574
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
574
- optionId: string;
575
575
  }[];
576
576
  title: string;
577
577
  requestId: string;
578
578
  toolCallId?: string | undefined;
579
579
  detail?: string | undefined;
580
580
  questions?: {
581
- text: string;
582
- kind: "text" | "choice" | "choices";
583
581
  id: string;
582
+ kind: "text" | "choice" | "choices";
583
+ text: string;
584
584
  options?: {
585
585
  value: string;
586
586
  label: string;
@@ -602,12 +602,12 @@ export declare const sessionSummarySchema: z.ZodObject<{
602
602
  text: z.ZodString;
603
603
  images: z.ZodNumber;
604
604
  }, "strip", z.ZodTypeAny, {
605
- text: string;
606
605
  images: number;
606
+ text: string;
607
607
  clientMessageId: string;
608
608
  }, {
609
- text: string;
610
609
  images: number;
610
+ text: string;
611
611
  clientMessageId: string;
612
612
  }>, "many">>;
613
613
  /**
@@ -620,11 +620,11 @@ export declare const sessionSummarySchema: z.ZodObject<{
620
620
  branch: z.ZodString;
621
621
  source: z.ZodString;
622
622
  }, "strip", z.ZodTypeAny, {
623
- source: string;
624
623
  branch: string;
625
- }, {
626
624
  source: string;
625
+ }, {
627
626
  branch: string;
627
+ source: string;
628
628
  }>>;
629
629
  /** Live only, for sessions that started sub-agents: how many, and how many are working now (`sessions.subagents` lists them). */
630
630
  subagents: z.ZodOptional<z.ZodObject<{
@@ -638,43 +638,39 @@ export declare const sessionSummarySchema: z.ZodObject<{
638
638
  total: number;
639
639
  }>>;
640
640
  }, "strip", z.ZodTypeAny, {
641
- agent: string;
641
+ state: "idle" | "running" | "waiting" | "error" | "offline";
642
642
  id: string;
643
- state: "error" | "idle" | "running" | "waiting" | "offline";
643
+ agent: string;
644
644
  nativeId: string;
645
645
  cwd: string;
646
+ pendingPermissions: number;
646
647
  createdAt: number;
647
648
  updatedAt: number;
648
- pendingPermissions: number;
649
649
  lastSeq: number;
650
650
  archived: boolean;
651
651
  title?: string | undefined;
652
- model?: string | undefined;
653
- driver?: "desktop" | "remote" | "none" | undefined;
654
652
  preview?: string | undefined;
655
- subagents?: {
656
- running: number;
657
- total: number;
658
- } | undefined;
653
+ driver?: "remote" | "desktop" | "none" | undefined;
654
+ model?: string | undefined;
659
655
  activity?: {
660
- kind: "tool" | "thinking" | "responding";
656
+ kind: "thinking" | "responding" | "tool";
661
657
  title?: string | undefined;
662
658
  toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
663
659
  } | undefined;
664
660
  permission?: {
665
661
  options: {
662
+ optionId: string;
666
663
  name: string;
667
664
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
668
- optionId: string;
669
665
  }[];
670
666
  title: string;
671
667
  requestId: string;
672
668
  toolCallId?: string | undefined;
673
669
  detail?: string | undefined;
674
670
  questions?: {
675
- text: string;
676
- kind: "text" | "choice" | "choices";
677
671
  id: string;
672
+ kind: "text" | "choice" | "choices";
673
+ text: string;
678
674
  options?: {
679
675
  value: string;
680
676
  label: string;
@@ -687,52 +683,52 @@ export declare const sessionSummarySchema: z.ZodObject<{
687
683
  }[] | undefined;
688
684
  } | undefined;
689
685
  queue?: {
690
- text: string;
691
686
  images: number;
687
+ text: string;
692
688
  clientMessageId: string;
693
689
  }[] | undefined;
694
690
  worktree?: {
695
- source: string;
696
691
  branch: string;
692
+ source: string;
693
+ } | undefined;
694
+ subagents?: {
695
+ running: number;
696
+ total: number;
697
697
  } | undefined;
698
698
  }, {
699
- agent: string;
699
+ state: "idle" | "running" | "waiting" | "error" | "offline";
700
700
  id: string;
701
- state: "error" | "idle" | "running" | "waiting" | "offline";
701
+ agent: string;
702
702
  nativeId: string;
703
703
  cwd: string;
704
+ pendingPermissions: number;
704
705
  createdAt: number;
705
706
  updatedAt: number;
706
- pendingPermissions: number;
707
707
  lastSeq: number;
708
708
  archived: boolean;
709
709
  title?: string | undefined;
710
- model?: string | undefined;
711
- driver?: "desktop" | "remote" | "none" | undefined;
712
710
  preview?: string | undefined;
713
- subagents?: {
714
- running: number;
715
- total: number;
716
- } | undefined;
711
+ driver?: "remote" | "desktop" | "none" | undefined;
712
+ model?: string | undefined;
717
713
  activity?: {
718
- kind: "tool" | "thinking" | "responding";
714
+ kind: "thinking" | "responding" | "tool";
719
715
  title?: string | undefined;
720
716
  toolKind?: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other" | undefined;
721
717
  } | undefined;
722
718
  permission?: {
723
719
  options: {
720
+ optionId: string;
724
721
  name: string;
725
722
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
726
- optionId: string;
727
723
  }[];
728
724
  title: string;
729
725
  requestId: string;
730
726
  toolCallId?: string | undefined;
731
727
  detail?: string | undefined;
732
728
  questions?: {
733
- text: string;
734
- kind: "text" | "choice" | "choices";
735
729
  id: string;
730
+ kind: "text" | "choice" | "choices";
731
+ text: string;
736
732
  options?: {
737
733
  value: string;
738
734
  label: string;
@@ -745,13 +741,17 @@ export declare const sessionSummarySchema: z.ZodObject<{
745
741
  }[] | undefined;
746
742
  } | undefined;
747
743
  queue?: {
748
- text: string;
749
744
  images: number;
745
+ text: string;
750
746
  clientMessageId: string;
751
747
  }[] | undefined;
752
748
  worktree?: {
753
- source: string;
754
749
  branch: string;
750
+ source: string;
751
+ } | undefined;
752
+ subagents?: {
753
+ running: number;
754
+ total: number;
755
755
  } | undefined;
756
756
  }>;
757
757
  export type SessionSummary = z.infer<typeof sessionSummarySchema>;
@@ -800,17 +800,17 @@ export declare const worktreeEntrySchema: z.ZodObject<{
800
800
  dirty: boolean;
801
801
  path: string;
802
802
  createdAt: number;
803
+ branch: string;
803
804
  source: string;
804
805
  sessions: string[];
805
- branch: string;
806
806
  ahead: number;
807
807
  }, {
808
808
  dirty: boolean;
809
809
  path: string;
810
810
  createdAt: number;
811
+ branch: string;
811
812
  source: string;
812
813
  sessions: string[];
813
- branch: string;
814
814
  ahead: number;
815
815
  }>;
816
816
  export type WorktreeEntry = z.infer<typeof worktreeEntrySchema>;
@@ -858,12 +858,12 @@ export declare const machineInfoSchema: z.ZodObject<{
858
858
  hint: z.ZodOptional<z.ZodString>;
859
859
  }, "strip", z.ZodTypeAny, {
860
860
  state: "unknown" | "ok" | "missing";
861
- hint?: string | undefined;
862
861
  method?: string | undefined;
862
+ hint?: string | undefined;
863
863
  }, {
864
864
  state: "unknown" | "ok" | "missing";
865
- hint?: string | undefined;
866
865
  method?: string | undefined;
866
+ hint?: string | undefined;
867
867
  }>>;
868
868
  capabilities: z.ZodObject<{
869
869
  interrupt: z.ZodBoolean;
@@ -900,7 +900,7 @@ export declare const machineInfoSchema: z.ZodObject<{
900
900
  }, "strip", z.ZodTypeAny, {
901
901
  id: string;
902
902
  label: string;
903
- tier: "terminal" | "remote" | "multi_client" | "handoff";
903
+ tier: "multi_client" | "handoff" | "remote" | "terminal";
904
904
  installed: boolean;
905
905
  capabilities: {
906
906
  interrupt: boolean;
@@ -911,17 +911,17 @@ export declare const machineInfoSchema: z.ZodObject<{
911
911
  models: boolean;
912
912
  modes: boolean;
913
913
  };
914
+ version?: string | undefined;
915
+ problem?: string | undefined;
914
916
  auth?: {
915
917
  state: "unknown" | "ok" | "missing";
916
- hint?: string | undefined;
917
918
  method?: string | undefined;
919
+ hint?: string | undefined;
918
920
  } | undefined;
919
- version?: string | undefined;
920
- problem?: string | undefined;
921
921
  }, {
922
922
  id: string;
923
923
  label: string;
924
- tier: "terminal" | "remote" | "multi_client" | "handoff";
924
+ tier: "multi_client" | "handoff" | "remote" | "terminal";
925
925
  installed: boolean;
926
926
  capabilities: {
927
927
  interrupt: boolean;
@@ -932,13 +932,13 @@ export declare const machineInfoSchema: z.ZodObject<{
932
932
  models: boolean;
933
933
  modes: boolean;
934
934
  };
935
+ version?: string | undefined;
936
+ problem?: string | undefined;
935
937
  auth?: {
936
938
  state: "unknown" | "ok" | "missing";
937
- hint?: string | undefined;
938
939
  method?: string | undefined;
940
+ hint?: string | undefined;
939
941
  } | undefined;
940
- version?: string | undefined;
941
- problem?: string | undefined;
942
942
  }>, "many">;
943
943
  /**
944
944
  * The host can send bulk streams peer to peer (`direct.offer`); `iceServers`
@@ -952,10 +952,14 @@ export declare const machineInfoSchema: z.ZodObject<{
952
952
  iceServers: string[];
953
953
  }>>;
954
954
  }, "strip", z.ZodTypeAny, {
955
+ machineId: string;
956
+ hostname: string;
957
+ platform: string;
958
+ hostVersion: string;
955
959
  agents: {
956
960
  id: string;
957
961
  label: string;
958
- tier: "terminal" | "remote" | "multi_client" | "handoff";
962
+ tier: "multi_client" | "handoff" | "remote" | "terminal";
959
963
  installed: boolean;
960
964
  capabilities: {
961
965
  interrupt: boolean;
@@ -966,27 +970,27 @@ export declare const machineInfoSchema: z.ZodObject<{
966
970
  models: boolean;
967
971
  modes: boolean;
968
972
  };
973
+ version?: string | undefined;
974
+ problem?: string | undefined;
969
975
  auth?: {
970
976
  state: "unknown" | "ok" | "missing";
971
- hint?: string | undefined;
972
977
  method?: string | undefined;
978
+ hint?: string | undefined;
973
979
  } | undefined;
974
- version?: string | undefined;
975
- problem?: string | undefined;
976
980
  }[];
977
- machineId: string;
978
- hostname: string;
979
- platform: string;
980
- hostVersion: string;
981
981
  home?: string | undefined;
982
982
  direct?: {
983
983
  iceServers: string[];
984
984
  } | undefined;
985
985
  }, {
986
+ machineId: string;
987
+ hostname: string;
988
+ platform: string;
989
+ hostVersion: string;
986
990
  agents: {
987
991
  id: string;
988
992
  label: string;
989
- tier: "terminal" | "remote" | "multi_client" | "handoff";
993
+ tier: "multi_client" | "handoff" | "remote" | "terminal";
990
994
  installed: boolean;
991
995
  capabilities: {
992
996
  interrupt: boolean;
@@ -997,18 +1001,14 @@ export declare const machineInfoSchema: z.ZodObject<{
997
1001
  models: boolean;
998
1002
  modes: boolean;
999
1003
  };
1004
+ version?: string | undefined;
1005
+ problem?: string | undefined;
1000
1006
  auth?: {
1001
1007
  state: "unknown" | "ok" | "missing";
1002
- hint?: string | undefined;
1003
1008
  method?: string | undefined;
1009
+ hint?: string | undefined;
1004
1010
  } | undefined;
1005
- version?: string | undefined;
1006
- problem?: string | undefined;
1007
1011
  }[];
1008
- machineId: string;
1009
- hostname: string;
1010
- platform: string;
1011
- hostVersion: string;
1012
1012
  home?: string | undefined;
1013
1013
  direct?: {
1014
1014
  iceServers: string[];
@@ -1028,16 +1028,16 @@ export declare const portInfoSchema: z.ZodObject<{
1028
1028
  /** Answers HTTP at all (a dev server, not a database). */
1029
1029
  http: z.ZodBoolean;
1030
1030
  }, "strip", z.ZodTypeAny, {
1031
- http: boolean;
1032
1031
  port: number;
1033
1032
  process: string;
1033
+ http: boolean;
1034
1034
  title?: string | undefined;
1035
1035
  cwd?: string | undefined;
1036
1036
  pid?: number | undefined;
1037
1037
  }, {
1038
- http: boolean;
1039
1038
  port: number;
1040
1039
  process: string;
1040
+ http: boolean;
1041
1041
  title?: string | undefined;
1042
1042
  cwd?: string | undefined;
1043
1043
  pid?: number | undefined;
@@ -1061,26 +1061,26 @@ export declare const terminalInfoSchema: z.ZodObject<{
1061
1061
  /** Ended without an exit code: the host stopped while it ran. */
1062
1062
  interrupted: z.ZodOptional<z.ZodBoolean>;
1063
1063
  }, "strip", z.ZodTypeAny, {
1064
- title: string;
1065
1064
  id: string;
1065
+ title: string;
1066
1066
  cwd: string;
1067
1067
  createdAt: number;
1068
1068
  cols: number;
1069
1069
  rows: number;
1070
1070
  activeAt: number;
1071
- exitCode?: number | null | undefined;
1072
1071
  command?: string | undefined;
1072
+ exitCode?: number | null | undefined;
1073
1073
  interrupted?: boolean | undefined;
1074
1074
  }, {
1075
- title: string;
1076
1075
  id: string;
1076
+ title: string;
1077
1077
  cwd: string;
1078
1078
  createdAt: number;
1079
1079
  cols: number;
1080
1080
  rows: number;
1081
1081
  activeAt: number;
1082
- exitCode?: number | null | undefined;
1083
1082
  command?: string | undefined;
1083
+ exitCode?: number | null | undefined;
1084
1084
  interrupted?: boolean | undefined;
1085
1085
  }>;
1086
1086
  export type TerminalInfo = z.infer<typeof terminalInfoSchema>;
@@ -1102,11 +1102,11 @@ export declare const gatewayStatusSchema: z.ZodObject<{
1102
1102
  id: z.ZodString;
1103
1103
  name: z.ZodString;
1104
1104
  }, "strip", z.ZodTypeAny, {
1105
- name: string;
1106
1105
  id: string;
1107
- }, {
1108
1106
  name: string;
1107
+ }, {
1109
1108
  id: string;
1109
+ name: string;
1110
1110
  }>>;
1111
1111
  account: z.ZodOptional<z.ZodObject<{
1112
1112
  userId: z.ZodString;
@@ -1124,21 +1124,21 @@ export declare const gatewayStatusSchema: z.ZodObject<{
1124
1124
  pairedAt: z.ZodNumber;
1125
1125
  online: z.ZodBoolean;
1126
1126
  }, "strip", z.ZodTypeAny, {
1127
- name: string;
1128
1127
  id: string;
1128
+ name: string;
1129
1129
  online: boolean;
1130
1130
  pairedAt: number;
1131
1131
  }, {
1132
- name: string;
1133
1132
  id: string;
1133
+ name: string;
1134
1134
  online: boolean;
1135
1135
  pairedAt: number;
1136
1136
  }>, "many">;
1137
1137
  }, "strip", z.ZodTypeAny, {
1138
- status: "offline" | "connecting" | "off" | "online";
1138
+ status: "offline" | "off" | "connecting" | "online";
1139
1139
  devices: {
1140
- name: string;
1141
1140
  id: string;
1141
+ name: string;
1142
1142
  online: boolean;
1143
1143
  pairedAt: number;
1144
1144
  }[];
@@ -1148,18 +1148,18 @@ export declare const gatewayStatusSchema: z.ZodObject<{
1148
1148
  } | undefined;
1149
1149
  url?: string | undefined;
1150
1150
  machine?: {
1151
- name: string;
1152
1151
  id: string;
1152
+ name: string;
1153
1153
  } | undefined;
1154
1154
  account?: {
1155
1155
  userId: string;
1156
1156
  email?: string | undefined;
1157
1157
  } | undefined;
1158
1158
  }, {
1159
- status: "offline" | "connecting" | "off" | "online";
1159
+ status: "offline" | "off" | "connecting" | "online";
1160
1160
  devices: {
1161
- name: string;
1162
1161
  id: string;
1162
+ name: string;
1163
1163
  online: boolean;
1164
1164
  pairedAt: number;
1165
1165
  }[];
@@ -1169,8 +1169,8 @@ export declare const gatewayStatusSchema: z.ZodObject<{
1169
1169
  } | undefined;
1170
1170
  url?: string | undefined;
1171
1171
  machine?: {
1172
- name: string;
1173
1172
  id: string;
1173
+ name: string;
1174
1174
  } | undefined;
1175
1175
  account?: {
1176
1176
  userId: string;