linkshell-cli 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/cli/src/commands/host.d.ts +9 -1
  2. package/dist/cli/src/commands/host.js +24 -8
  3. package/dist/cli/src/commands/host.js.map +1 -1
  4. package/dist/cli/src/commands/pair.js +4 -1
  5. package/dist/cli/src/commands/pair.js.map +1 -1
  6. package/dist/cli/src/index.js +14 -8
  7. package/dist/cli/src/index.js.map +1 -1
  8. package/dist/cli/src/utils/daemon.d.ts +2 -0
  9. package/dist/cli/src/utils/daemon.js +4 -0
  10. package/dist/cli/src/utils/daemon.js.map +1 -1
  11. package/dist/cli/tsconfig.tsbuildinfo +1 -1
  12. package/dist/host/src/drivers/acp/driver.d.ts +8 -0
  13. package/dist/host/src/drivers/acp/driver.js +56 -5
  14. package/dist/host/src/drivers/acp/driver.js.map +1 -1
  15. package/dist/host/src/drivers/acp/mapper.js +5 -1
  16. package/dist/host/src/drivers/acp/mapper.js.map +1 -1
  17. package/dist/host/src/drivers/claude/driver.d.ts +24 -1
  18. package/dist/host/src/drivers/claude/driver.js +168 -4
  19. package/dist/host/src/drivers/claude/driver.js.map +1 -1
  20. package/dist/host/src/drivers/claude/transcript.d.ts +7 -1
  21. package/dist/host/src/drivers/claude/transcript.js +23 -5
  22. package/dist/host/src/drivers/claude/transcript.js.map +1 -1
  23. package/dist/host/src/drivers/codex/driver.d.ts +6 -0
  24. package/dist/host/src/drivers/codex/driver.js +30 -0
  25. package/dist/host/src/drivers/codex/driver.js.map +1 -1
  26. package/dist/host/src/drivers/types.d.ts +11 -1
  27. package/dist/host/src/gateway.js +1 -1
  28. package/dist/host/src/gateway.js.map +1 -1
  29. package/dist/host/src/host.js +11 -3
  30. package/dist/host/src/host.js.map +1 -1
  31. package/dist/host/src/hub.d.ts +8 -0
  32. package/dist/host/src/hub.js +91 -2
  33. package/dist/host/src/hub.js.map +1 -1
  34. package/dist/host/src/index.d.ts +1 -1
  35. package/dist/host/src/index.js +1 -1
  36. package/dist/host/src/index.js.map +1 -1
  37. package/dist/host/src/legacy.d.ts +7 -0
  38. package/dist/host/src/legacy.js +36 -0
  39. package/dist/host/src/legacy.js.map +1 -0
  40. package/dist/host/src/rpc/server.js +12 -0
  41. package/dist/host/src/rpc/server.js.map +1 -1
  42. package/dist/host/src/shell-env.d.ts +6 -0
  43. package/dist/host/src/shell-env.js +48 -0
  44. package/dist/host/src/shell-env.js.map +1 -1
  45. package/dist/host/src/store.d.ts +6 -0
  46. package/dist/host/src/store.js +34 -1
  47. package/dist/host/src/store.js.map +1 -1
  48. package/dist/host/src/terminals.js +19 -4
  49. package/dist/host/src/terminals.js.map +1 -1
  50. package/dist/wire/src/model.d.ts +47 -0
  51. package/dist/wire/src/model.js +13 -0
  52. package/dist/wire/src/model.js.map +1 -1
  53. package/dist/wire/src/rpc.d.ts +665 -0
  54. package/dist/wire/src/rpc.js +25 -0
  55. package/dist/wire/src/rpc.js.map +1 -1
  56. package/package.json +4 -4
  57. package/src/commands/host.ts +29 -9
  58. package/src/commands/pair.ts +6 -1
  59. package/src/index.ts +14 -8
  60. package/src/utils/daemon.ts +5 -0
@@ -87,6 +87,7 @@ export declare const methods: {
87
87
  hostname: z.ZodString;
88
88
  platform: z.ZodString;
89
89
  hostVersion: z.ZodString;
90
+ home: z.ZodOptional<z.ZodString>;
90
91
  agents: z.ZodArray<z.ZodObject<{
91
92
  id: z.ZodString;
92
93
  label: z.ZodString;
@@ -202,6 +203,7 @@ export declare const methods: {
202
203
  problem?: string | undefined;
203
204
  }[];
204
205
  hostVersion: string;
206
+ home?: string | undefined;
205
207
  }, {
206
208
  machineId: string;
207
209
  hostname: string;
@@ -229,6 +231,7 @@ export declare const methods: {
229
231
  problem?: string | undefined;
230
232
  }[];
231
233
  hostVersion: string;
234
+ home?: string | undefined;
232
235
  }>;
233
236
  };
234
237
  readonly "projects.list": {
@@ -355,6 +358,19 @@ export declare const methods: {
355
358
  detail?: string | undefined;
356
359
  toolCallId?: string | undefined;
357
360
  }>>;
361
+ queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
362
+ clientMessageId: z.ZodString;
363
+ text: z.ZodString;
364
+ images: z.ZodNumber;
365
+ }, "strip", z.ZodTypeAny, {
366
+ text: string;
367
+ clientMessageId: string;
368
+ images: number;
369
+ }, {
370
+ text: string;
371
+ clientMessageId: string;
372
+ images: number;
373
+ }>, "many">>;
358
374
  }, "strip", z.ZodTypeAny, {
359
375
  id: string;
360
376
  cwd: string;
@@ -386,6 +402,11 @@ export declare const methods: {
386
402
  title?: string | undefined;
387
403
  toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
388
404
  } | undefined;
405
+ queue?: {
406
+ text: string;
407
+ clientMessageId: string;
408
+ images: number;
409
+ }[] | undefined;
389
410
  }, {
390
411
  id: string;
391
412
  cwd: string;
@@ -417,6 +438,11 @@ export declare const methods: {
417
438
  title?: string | undefined;
418
439
  toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
419
440
  } | undefined;
441
+ queue?: {
442
+ text: string;
443
+ clientMessageId: string;
444
+ images: number;
445
+ }[] | undefined;
420
446
  }>, "many">;
421
447
  nextBefore: z.ZodOptional<z.ZodNumber>;
422
448
  }, "strip", z.ZodTypeAny, {
@@ -451,6 +477,11 @@ export declare const methods: {
451
477
  title?: string | undefined;
452
478
  toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
453
479
  } | undefined;
480
+ queue?: {
481
+ text: string;
482
+ clientMessageId: string;
483
+ images: number;
484
+ }[] | undefined;
454
485
  }[];
455
486
  nextBefore?: number | undefined;
456
487
  }, {
@@ -485,6 +516,11 @@ export declare const methods: {
485
516
  title?: string | undefined;
486
517
  toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
487
518
  } | undefined;
519
+ queue?: {
520
+ text: string;
521
+ clientMessageId: string;
522
+ images: number;
523
+ }[] | undefined;
488
524
  }[];
489
525
  nextBefore?: number | undefined;
490
526
  }>;
@@ -642,6 +678,19 @@ export declare const methods: {
642
678
  detail?: string | undefined;
643
679
  toolCallId?: string | undefined;
644
680
  }>>;
681
+ queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
682
+ clientMessageId: z.ZodString;
683
+ text: z.ZodString;
684
+ images: z.ZodNumber;
685
+ }, "strip", z.ZodTypeAny, {
686
+ text: string;
687
+ clientMessageId: string;
688
+ images: number;
689
+ }, {
690
+ text: string;
691
+ clientMessageId: string;
692
+ images: number;
693
+ }>, "many">>;
645
694
  }, "strip", z.ZodTypeAny, {
646
695
  id: string;
647
696
  cwd: string;
@@ -673,6 +722,11 @@ export declare const methods: {
673
722
  title?: string | undefined;
674
723
  toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
675
724
  } | undefined;
725
+ queue?: {
726
+ text: string;
727
+ clientMessageId: string;
728
+ images: number;
729
+ }[] | undefined;
676
730
  }, {
677
731
  id: string;
678
732
  cwd: string;
@@ -704,6 +758,11 @@ export declare const methods: {
704
758
  title?: string | undefined;
705
759
  toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
706
760
  } | undefined;
761
+ queue?: {
762
+ text: string;
763
+ clientMessageId: string;
764
+ images: number;
765
+ }[] | undefined;
707
766
  }>;
708
767
  }, "strip", z.ZodTypeAny, {
709
768
  session: {
@@ -737,6 +796,11 @@ export declare const methods: {
737
796
  title?: string | undefined;
738
797
  toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
739
798
  } | undefined;
799
+ queue?: {
800
+ text: string;
801
+ clientMessageId: string;
802
+ images: number;
803
+ }[] | undefined;
740
804
  };
741
805
  }, {
742
806
  session: {
@@ -770,6 +834,11 @@ export declare const methods: {
770
834
  title?: string | undefined;
771
835
  toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
772
836
  } | undefined;
837
+ queue?: {
838
+ text: string;
839
+ clientMessageId: string;
840
+ images: number;
841
+ }[] | undefined;
773
842
  };
774
843
  }>;
775
844
  };
@@ -853,6 +922,19 @@ export declare const methods: {
853
922
  detail?: string | undefined;
854
923
  toolCallId?: string | undefined;
855
924
  }>>;
925
+ queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
926
+ clientMessageId: z.ZodString;
927
+ text: z.ZodString;
928
+ images: z.ZodNumber;
929
+ }, "strip", z.ZodTypeAny, {
930
+ text: string;
931
+ clientMessageId: string;
932
+ images: number;
933
+ }, {
934
+ text: string;
935
+ clientMessageId: string;
936
+ images: number;
937
+ }>, "many">>;
856
938
  }, "strip", z.ZodTypeAny, {
857
939
  id: string;
858
940
  cwd: string;
@@ -884,6 +966,11 @@ export declare const methods: {
884
966
  title?: string | undefined;
885
967
  toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
886
968
  } | undefined;
969
+ queue?: {
970
+ text: string;
971
+ clientMessageId: string;
972
+ images: number;
973
+ }[] | undefined;
887
974
  }, {
888
975
  id: string;
889
976
  cwd: string;
@@ -915,6 +1002,11 @@ export declare const methods: {
915
1002
  title?: string | undefined;
916
1003
  toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
917
1004
  } | undefined;
1005
+ queue?: {
1006
+ text: string;
1007
+ clientMessageId: string;
1008
+ images: number;
1009
+ }[] | undefined;
918
1010
  }>;
919
1011
  }, "strip", z.ZodTypeAny, {
920
1012
  session: {
@@ -948,6 +1040,11 @@ export declare const methods: {
948
1040
  title?: string | undefined;
949
1041
  toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
950
1042
  } | undefined;
1043
+ queue?: {
1044
+ text: string;
1045
+ clientMessageId: string;
1046
+ images: number;
1047
+ }[] | undefined;
951
1048
  };
952
1049
  }, {
953
1050
  session: {
@@ -981,6 +1078,11 @@ export declare const methods: {
981
1078
  title?: string | undefined;
982
1079
  toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
983
1080
  } | undefined;
1081
+ queue?: {
1082
+ text: string;
1083
+ clientMessageId: string;
1084
+ images: number;
1085
+ }[] | undefined;
984
1086
  };
985
1087
  }>;
986
1088
  };
@@ -1125,6 +1227,528 @@ export declare const methods: {
1125
1227
  }>;
1126
1228
  readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1127
1229
  };
1230
+ /** Drops a message still waiting in the host's queue (see SessionSummary.queue). */
1231
+ readonly "sessions.unqueue": {
1232
+ readonly params: z.ZodObject<{
1233
+ sessionId: z.ZodString;
1234
+ clientMessageId: z.ZodString;
1235
+ }, "strip", z.ZodTypeAny, {
1236
+ sessionId: string;
1237
+ clientMessageId: string;
1238
+ }, {
1239
+ sessionId: string;
1240
+ clientMessageId: string;
1241
+ }>;
1242
+ readonly result: z.ZodObject<{
1243
+ removed: z.ZodBoolean;
1244
+ }, "strip", z.ZodTypeAny, {
1245
+ removed: boolean;
1246
+ }, {
1247
+ removed: boolean;
1248
+ }>;
1249
+ };
1250
+ /** Archives (or restores) a session: hidden from lists, kept on disk; natively where the agent supports it. */
1251
+ readonly "sessions.archive": {
1252
+ readonly params: z.ZodObject<{
1253
+ sessionId: z.ZodString;
1254
+ archived: z.ZodBoolean;
1255
+ }, "strip", z.ZodTypeAny, {
1256
+ sessionId: string;
1257
+ archived: boolean;
1258
+ }, {
1259
+ sessionId: string;
1260
+ archived: boolean;
1261
+ }>;
1262
+ readonly result: z.ZodObject<{
1263
+ session: z.ZodObject<{
1264
+ id: z.ZodString;
1265
+ agent: z.ZodString;
1266
+ nativeId: z.ZodString;
1267
+ title: z.ZodOptional<z.ZodString>;
1268
+ preview: z.ZodOptional<z.ZodString>;
1269
+ cwd: z.ZodString;
1270
+ state: z.ZodEnum<["idle", "running", "waiting", "error", "offline"]>;
1271
+ driver: z.ZodOptional<z.ZodEnum<["desktop", "remote", "none"]>>;
1272
+ pendingPermissions: z.ZodNumber;
1273
+ model: z.ZodOptional<z.ZodString>;
1274
+ createdAt: z.ZodNumber;
1275
+ updatedAt: z.ZodNumber;
1276
+ lastSeq: z.ZodNumber;
1277
+ archived: z.ZodBoolean;
1278
+ activity: z.ZodOptional<z.ZodObject<{
1279
+ kind: z.ZodEnum<["thinking", "responding", "tool"]>;
1280
+ title: z.ZodOptional<z.ZodString>;
1281
+ toolKind: z.ZodOptional<z.ZodEnum<["read", "edit", "delete", "move", "search", "execute", "think", "fetch", "other"]>>;
1282
+ }, "strip", z.ZodTypeAny, {
1283
+ kind: "thinking" | "tool" | "responding";
1284
+ title?: string | undefined;
1285
+ toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
1286
+ }, {
1287
+ kind: "thinking" | "tool" | "responding";
1288
+ title?: string | undefined;
1289
+ toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
1290
+ }>>;
1291
+ permission: z.ZodOptional<z.ZodObject<{
1292
+ requestId: z.ZodString;
1293
+ toolCallId: z.ZodOptional<z.ZodString>;
1294
+ title: z.ZodString;
1295
+ detail: z.ZodOptional<z.ZodString>;
1296
+ options: z.ZodArray<z.ZodObject<{
1297
+ optionId: z.ZodString;
1298
+ name: z.ZodString;
1299
+ kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
1300
+ }, "strip", z.ZodTypeAny, {
1301
+ name: string;
1302
+ kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1303
+ optionId: string;
1304
+ }, {
1305
+ name: string;
1306
+ kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1307
+ optionId: string;
1308
+ }>, "many">;
1309
+ }, "strip", z.ZodTypeAny, {
1310
+ options: {
1311
+ name: string;
1312
+ kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1313
+ optionId: string;
1314
+ }[];
1315
+ requestId: string;
1316
+ title: string;
1317
+ detail?: string | undefined;
1318
+ toolCallId?: string | undefined;
1319
+ }, {
1320
+ options: {
1321
+ name: string;
1322
+ kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1323
+ optionId: string;
1324
+ }[];
1325
+ requestId: string;
1326
+ title: string;
1327
+ detail?: string | undefined;
1328
+ toolCallId?: string | undefined;
1329
+ }>>;
1330
+ queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
1331
+ clientMessageId: z.ZodString;
1332
+ text: z.ZodString;
1333
+ images: z.ZodNumber;
1334
+ }, "strip", z.ZodTypeAny, {
1335
+ text: string;
1336
+ clientMessageId: string;
1337
+ images: number;
1338
+ }, {
1339
+ text: string;
1340
+ clientMessageId: string;
1341
+ images: number;
1342
+ }>, "many">>;
1343
+ }, "strip", z.ZodTypeAny, {
1344
+ id: string;
1345
+ cwd: string;
1346
+ createdAt: number;
1347
+ pendingPermissions: number;
1348
+ updatedAt: number;
1349
+ archived: boolean;
1350
+ state: "idle" | "error" | "running" | "waiting" | "offline";
1351
+ agent: string;
1352
+ nativeId: string;
1353
+ lastSeq: number;
1354
+ title?: string | undefined;
1355
+ model?: string | undefined;
1356
+ permission?: {
1357
+ options: {
1358
+ name: string;
1359
+ kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1360
+ optionId: string;
1361
+ }[];
1362
+ requestId: string;
1363
+ title: string;
1364
+ detail?: string | undefined;
1365
+ toolCallId?: string | undefined;
1366
+ } | undefined;
1367
+ preview?: string | undefined;
1368
+ driver?: "none" | "desktop" | "remote" | undefined;
1369
+ activity?: {
1370
+ kind: "thinking" | "tool" | "responding";
1371
+ title?: string | undefined;
1372
+ toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
1373
+ } | undefined;
1374
+ queue?: {
1375
+ text: string;
1376
+ clientMessageId: string;
1377
+ images: number;
1378
+ }[] | undefined;
1379
+ }, {
1380
+ id: string;
1381
+ cwd: string;
1382
+ createdAt: number;
1383
+ pendingPermissions: number;
1384
+ updatedAt: number;
1385
+ archived: boolean;
1386
+ state: "idle" | "error" | "running" | "waiting" | "offline";
1387
+ agent: string;
1388
+ nativeId: string;
1389
+ lastSeq: number;
1390
+ title?: string | undefined;
1391
+ model?: string | undefined;
1392
+ permission?: {
1393
+ options: {
1394
+ name: string;
1395
+ kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1396
+ optionId: string;
1397
+ }[];
1398
+ requestId: string;
1399
+ title: string;
1400
+ detail?: string | undefined;
1401
+ toolCallId?: string | undefined;
1402
+ } | undefined;
1403
+ preview?: string | undefined;
1404
+ driver?: "none" | "desktop" | "remote" | undefined;
1405
+ activity?: {
1406
+ kind: "thinking" | "tool" | "responding";
1407
+ title?: string | undefined;
1408
+ toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
1409
+ } | undefined;
1410
+ queue?: {
1411
+ text: string;
1412
+ clientMessageId: string;
1413
+ images: number;
1414
+ }[] | undefined;
1415
+ }>;
1416
+ }, "strip", z.ZodTypeAny, {
1417
+ session: {
1418
+ id: string;
1419
+ cwd: string;
1420
+ createdAt: number;
1421
+ pendingPermissions: number;
1422
+ updatedAt: number;
1423
+ archived: boolean;
1424
+ state: "idle" | "error" | "running" | "waiting" | "offline";
1425
+ agent: string;
1426
+ nativeId: string;
1427
+ lastSeq: number;
1428
+ title?: string | undefined;
1429
+ model?: string | undefined;
1430
+ permission?: {
1431
+ options: {
1432
+ name: string;
1433
+ kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1434
+ optionId: string;
1435
+ }[];
1436
+ requestId: string;
1437
+ title: string;
1438
+ detail?: string | undefined;
1439
+ toolCallId?: string | undefined;
1440
+ } | undefined;
1441
+ preview?: string | undefined;
1442
+ driver?: "none" | "desktop" | "remote" | undefined;
1443
+ activity?: {
1444
+ kind: "thinking" | "tool" | "responding";
1445
+ title?: string | undefined;
1446
+ toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
1447
+ } | undefined;
1448
+ queue?: {
1449
+ text: string;
1450
+ clientMessageId: string;
1451
+ images: number;
1452
+ }[] | undefined;
1453
+ };
1454
+ }, {
1455
+ session: {
1456
+ id: string;
1457
+ cwd: string;
1458
+ createdAt: number;
1459
+ pendingPermissions: number;
1460
+ updatedAt: number;
1461
+ archived: boolean;
1462
+ state: "idle" | "error" | "running" | "waiting" | "offline";
1463
+ agent: string;
1464
+ nativeId: string;
1465
+ lastSeq: number;
1466
+ title?: string | undefined;
1467
+ model?: string | undefined;
1468
+ permission?: {
1469
+ options: {
1470
+ name: string;
1471
+ kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1472
+ optionId: string;
1473
+ }[];
1474
+ requestId: string;
1475
+ title: string;
1476
+ detail?: string | undefined;
1477
+ toolCallId?: string | undefined;
1478
+ } | undefined;
1479
+ preview?: string | undefined;
1480
+ driver?: "none" | "desktop" | "remote" | undefined;
1481
+ activity?: {
1482
+ kind: "thinking" | "tool" | "responding";
1483
+ title?: string | undefined;
1484
+ toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
1485
+ } | undefined;
1486
+ queue?: {
1487
+ text: string;
1488
+ clientMessageId: string;
1489
+ images: number;
1490
+ }[] | undefined;
1491
+ };
1492
+ }>;
1493
+ };
1494
+ /** Names a session; an empty title goes back to the agent's own. */
1495
+ readonly "sessions.rename": {
1496
+ readonly params: z.ZodObject<{
1497
+ sessionId: z.ZodString;
1498
+ title: z.ZodString;
1499
+ }, "strip", z.ZodTypeAny, {
1500
+ sessionId: string;
1501
+ title: string;
1502
+ }, {
1503
+ sessionId: string;
1504
+ title: string;
1505
+ }>;
1506
+ readonly result: z.ZodObject<{
1507
+ session: z.ZodObject<{
1508
+ id: z.ZodString;
1509
+ agent: z.ZodString;
1510
+ nativeId: z.ZodString;
1511
+ title: z.ZodOptional<z.ZodString>;
1512
+ preview: z.ZodOptional<z.ZodString>;
1513
+ cwd: z.ZodString;
1514
+ state: z.ZodEnum<["idle", "running", "waiting", "error", "offline"]>;
1515
+ driver: z.ZodOptional<z.ZodEnum<["desktop", "remote", "none"]>>;
1516
+ pendingPermissions: z.ZodNumber;
1517
+ model: z.ZodOptional<z.ZodString>;
1518
+ createdAt: z.ZodNumber;
1519
+ updatedAt: z.ZodNumber;
1520
+ lastSeq: z.ZodNumber;
1521
+ archived: z.ZodBoolean;
1522
+ activity: z.ZodOptional<z.ZodObject<{
1523
+ kind: z.ZodEnum<["thinking", "responding", "tool"]>;
1524
+ title: z.ZodOptional<z.ZodString>;
1525
+ toolKind: z.ZodOptional<z.ZodEnum<["read", "edit", "delete", "move", "search", "execute", "think", "fetch", "other"]>>;
1526
+ }, "strip", z.ZodTypeAny, {
1527
+ kind: "thinking" | "tool" | "responding";
1528
+ title?: string | undefined;
1529
+ toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
1530
+ }, {
1531
+ kind: "thinking" | "tool" | "responding";
1532
+ title?: string | undefined;
1533
+ toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
1534
+ }>>;
1535
+ permission: z.ZodOptional<z.ZodObject<{
1536
+ requestId: z.ZodString;
1537
+ toolCallId: z.ZodOptional<z.ZodString>;
1538
+ title: z.ZodString;
1539
+ detail: z.ZodOptional<z.ZodString>;
1540
+ options: z.ZodArray<z.ZodObject<{
1541
+ optionId: z.ZodString;
1542
+ name: z.ZodString;
1543
+ kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
1544
+ }, "strip", z.ZodTypeAny, {
1545
+ name: string;
1546
+ kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1547
+ optionId: string;
1548
+ }, {
1549
+ name: string;
1550
+ kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1551
+ optionId: string;
1552
+ }>, "many">;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ options: {
1555
+ name: string;
1556
+ kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1557
+ optionId: string;
1558
+ }[];
1559
+ requestId: string;
1560
+ title: string;
1561
+ detail?: string | undefined;
1562
+ toolCallId?: string | undefined;
1563
+ }, {
1564
+ options: {
1565
+ name: string;
1566
+ kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1567
+ optionId: string;
1568
+ }[];
1569
+ requestId: string;
1570
+ title: string;
1571
+ detail?: string | undefined;
1572
+ toolCallId?: string | undefined;
1573
+ }>>;
1574
+ queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
1575
+ clientMessageId: z.ZodString;
1576
+ text: z.ZodString;
1577
+ images: z.ZodNumber;
1578
+ }, "strip", z.ZodTypeAny, {
1579
+ text: string;
1580
+ clientMessageId: string;
1581
+ images: number;
1582
+ }, {
1583
+ text: string;
1584
+ clientMessageId: string;
1585
+ images: number;
1586
+ }>, "many">>;
1587
+ }, "strip", z.ZodTypeAny, {
1588
+ id: string;
1589
+ cwd: string;
1590
+ createdAt: number;
1591
+ pendingPermissions: number;
1592
+ updatedAt: number;
1593
+ archived: boolean;
1594
+ state: "idle" | "error" | "running" | "waiting" | "offline";
1595
+ agent: string;
1596
+ nativeId: string;
1597
+ lastSeq: number;
1598
+ title?: string | undefined;
1599
+ model?: string | undefined;
1600
+ permission?: {
1601
+ options: {
1602
+ name: string;
1603
+ kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1604
+ optionId: string;
1605
+ }[];
1606
+ requestId: string;
1607
+ title: string;
1608
+ detail?: string | undefined;
1609
+ toolCallId?: string | undefined;
1610
+ } | undefined;
1611
+ preview?: string | undefined;
1612
+ driver?: "none" | "desktop" | "remote" | undefined;
1613
+ activity?: {
1614
+ kind: "thinking" | "tool" | "responding";
1615
+ title?: string | undefined;
1616
+ toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
1617
+ } | undefined;
1618
+ queue?: {
1619
+ text: string;
1620
+ clientMessageId: string;
1621
+ images: number;
1622
+ }[] | undefined;
1623
+ }, {
1624
+ id: string;
1625
+ cwd: string;
1626
+ createdAt: number;
1627
+ pendingPermissions: number;
1628
+ updatedAt: number;
1629
+ archived: boolean;
1630
+ state: "idle" | "error" | "running" | "waiting" | "offline";
1631
+ agent: string;
1632
+ nativeId: string;
1633
+ lastSeq: number;
1634
+ title?: string | undefined;
1635
+ model?: string | undefined;
1636
+ permission?: {
1637
+ options: {
1638
+ name: string;
1639
+ kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1640
+ optionId: string;
1641
+ }[];
1642
+ requestId: string;
1643
+ title: string;
1644
+ detail?: string | undefined;
1645
+ toolCallId?: string | undefined;
1646
+ } | undefined;
1647
+ preview?: string | undefined;
1648
+ driver?: "none" | "desktop" | "remote" | undefined;
1649
+ activity?: {
1650
+ kind: "thinking" | "tool" | "responding";
1651
+ title?: string | undefined;
1652
+ toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
1653
+ } | undefined;
1654
+ queue?: {
1655
+ text: string;
1656
+ clientMessageId: string;
1657
+ images: number;
1658
+ }[] | undefined;
1659
+ }>;
1660
+ }, "strip", z.ZodTypeAny, {
1661
+ session: {
1662
+ id: string;
1663
+ cwd: string;
1664
+ createdAt: number;
1665
+ pendingPermissions: number;
1666
+ updatedAt: number;
1667
+ archived: boolean;
1668
+ state: "idle" | "error" | "running" | "waiting" | "offline";
1669
+ agent: string;
1670
+ nativeId: string;
1671
+ lastSeq: number;
1672
+ title?: string | undefined;
1673
+ model?: string | undefined;
1674
+ permission?: {
1675
+ options: {
1676
+ name: string;
1677
+ kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1678
+ optionId: string;
1679
+ }[];
1680
+ requestId: string;
1681
+ title: string;
1682
+ detail?: string | undefined;
1683
+ toolCallId?: string | undefined;
1684
+ } | undefined;
1685
+ preview?: string | undefined;
1686
+ driver?: "none" | "desktop" | "remote" | undefined;
1687
+ activity?: {
1688
+ kind: "thinking" | "tool" | "responding";
1689
+ title?: string | undefined;
1690
+ toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
1691
+ } | undefined;
1692
+ queue?: {
1693
+ text: string;
1694
+ clientMessageId: string;
1695
+ images: number;
1696
+ }[] | undefined;
1697
+ };
1698
+ }, {
1699
+ session: {
1700
+ id: string;
1701
+ cwd: string;
1702
+ createdAt: number;
1703
+ pendingPermissions: number;
1704
+ updatedAt: number;
1705
+ archived: boolean;
1706
+ state: "idle" | "error" | "running" | "waiting" | "offline";
1707
+ agent: string;
1708
+ nativeId: string;
1709
+ lastSeq: number;
1710
+ title?: string | undefined;
1711
+ model?: string | undefined;
1712
+ permission?: {
1713
+ options: {
1714
+ name: string;
1715
+ kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1716
+ optionId: string;
1717
+ }[];
1718
+ requestId: string;
1719
+ title: string;
1720
+ detail?: string | undefined;
1721
+ toolCallId?: string | undefined;
1722
+ } | undefined;
1723
+ preview?: string | undefined;
1724
+ driver?: "none" | "desktop" | "remote" | undefined;
1725
+ activity?: {
1726
+ kind: "thinking" | "tool" | "responding";
1727
+ title?: string | undefined;
1728
+ toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
1729
+ } | undefined;
1730
+ queue?: {
1731
+ text: string;
1732
+ clientMessageId: string;
1733
+ images: number;
1734
+ }[] | undefined;
1735
+ };
1736
+ }>;
1737
+ };
1738
+ /**
1739
+ * Deletes a session: the agent's own record where it has one (Codex thread,
1740
+ * Claude transcript), and LinkShell's copy either way. Not while it runs.
1741
+ */
1742
+ readonly "sessions.delete": {
1743
+ readonly params: z.ZodObject<{
1744
+ sessionId: z.ZodString;
1745
+ }, "strip", z.ZodTypeAny, {
1746
+ sessionId: string;
1747
+ }, {
1748
+ sessionId: string;
1749
+ }>;
1750
+ readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1751
+ };
1128
1752
  readonly "sessions.takeover": {
1129
1753
  readonly params: z.ZodObject<{
1130
1754
  sessionId: z.ZodString;
@@ -3800,6 +4424,19 @@ export declare const notifications: {
3800
4424
  detail?: string | undefined;
3801
4425
  toolCallId?: string | undefined;
3802
4426
  }>>;
4427
+ queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
4428
+ clientMessageId: z.ZodString;
4429
+ text: z.ZodString;
4430
+ images: z.ZodNumber;
4431
+ }, "strip", z.ZodTypeAny, {
4432
+ text: string;
4433
+ clientMessageId: string;
4434
+ images: number;
4435
+ }, {
4436
+ text: string;
4437
+ clientMessageId: string;
4438
+ images: number;
4439
+ }>, "many">>;
3803
4440
  }, "strip", z.ZodTypeAny, {
3804
4441
  id: string;
3805
4442
  cwd: string;
@@ -3831,6 +4468,11 @@ export declare const notifications: {
3831
4468
  title?: string | undefined;
3832
4469
  toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
3833
4470
  } | undefined;
4471
+ queue?: {
4472
+ text: string;
4473
+ clientMessageId: string;
4474
+ images: number;
4475
+ }[] | undefined;
3834
4476
  }, {
3835
4477
  id: string;
3836
4478
  cwd: string;
@@ -3862,6 +4504,11 @@ export declare const notifications: {
3862
4504
  title?: string | undefined;
3863
4505
  toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
3864
4506
  } | undefined;
4507
+ queue?: {
4508
+ text: string;
4509
+ clientMessageId: string;
4510
+ images: number;
4511
+ }[] | undefined;
3865
4512
  }>;
3866
4513
  }, "strip", z.ZodTypeAny, {
3867
4514
  session: {
@@ -3895,6 +4542,11 @@ export declare const notifications: {
3895
4542
  title?: string | undefined;
3896
4543
  toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
3897
4544
  } | undefined;
4545
+ queue?: {
4546
+ text: string;
4547
+ clientMessageId: string;
4548
+ images: number;
4549
+ }[] | undefined;
3898
4550
  };
3899
4551
  }, {
3900
4552
  session: {
@@ -3928,8 +4580,21 @@ export declare const notifications: {
3928
4580
  title?: string | undefined;
3929
4581
  toolKind?: "search" | "other" | "read" | "edit" | "delete" | "move" | "execute" | "think" | "fetch" | undefined;
3930
4582
  } | undefined;
4583
+ queue?: {
4584
+ text: string;
4585
+ clientMessageId: string;
4586
+ images: number;
4587
+ }[] | undefined;
3931
4588
  };
3932
4589
  }>;
4590
+ /** A session was deleted (from any device, or natively by the agent). */
4591
+ readonly "session.removed": z.ZodObject<{
4592
+ sessionId: z.ZodString;
4593
+ }, "strip", z.ZodTypeAny, {
4594
+ sessionId: string;
4595
+ }, {
4596
+ sessionId: string;
4597
+ }>;
3933
4598
  /** To a desktop shim: a device is taking over; exit the native UI, then call desktop.yielded. */
3934
4599
  readonly "desktop.yield": z.ZodObject<{
3935
4600
  sessionId: z.ZodString;