@linkshell/host 0.1.1 → 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.
Files changed (67) hide show
  1. package/dist/host/src/carry.d.ts +15 -0
  2. package/dist/host/src/carry.js +83 -0
  3. package/dist/host/src/carry.js.map +1 -0
  4. package/dist/host/src/drivers/acp/driver.d.ts +13 -3
  5. package/dist/host/src/drivers/acp/driver.js +43 -8
  6. package/dist/host/src/drivers/acp/driver.js.map +1 -1
  7. package/dist/host/src/drivers/acp/mapper.d.ts +5 -1
  8. package/dist/host/src/drivers/acp/mapper.js +53 -5
  9. package/dist/host/src/drivers/acp/mapper.js.map +1 -1
  10. package/dist/host/src/drivers/claude/driver.d.ts +53 -8
  11. package/dist/host/src/drivers/claude/driver.js +357 -40
  12. package/dist/host/src/drivers/claude/driver.js.map +1 -1
  13. package/dist/host/src/drivers/claude/holders.d.ts +9 -0
  14. package/dist/host/src/drivers/claude/holders.js +61 -0
  15. package/dist/host/src/drivers/claude/holders.js.map +1 -0
  16. package/dist/host/src/drivers/claude/transcript.d.ts +103 -65
  17. package/dist/host/src/drivers/claude/transcript.js +246 -26
  18. package/dist/host/src/drivers/claude/transcript.js.map +1 -1
  19. package/dist/host/src/drivers/codex/commands.d.ts +27 -0
  20. package/dist/host/src/drivers/codex/commands.js +23 -0
  21. package/dist/host/src/drivers/codex/commands.js.map +1 -0
  22. package/dist/host/src/drivers/codex/driver.d.ts +15 -1
  23. package/dist/host/src/drivers/codex/driver.js +110 -1
  24. package/dist/host/src/drivers/codex/driver.js.map +1 -1
  25. package/dist/host/src/drivers/codex/mapper.d.ts +4 -0
  26. package/dist/host/src/drivers/codex/mapper.js +29 -5
  27. package/dist/host/src/drivers/codex/mapper.js.map +1 -1
  28. package/dist/host/src/drivers/types.d.ts +34 -3
  29. package/dist/host/src/fs.d.ts +26 -4
  30. package/dist/host/src/fs.js +71 -17
  31. package/dist/host/src/fs.js.map +1 -1
  32. package/dist/host/src/gateway.d.ts +3 -0
  33. package/dist/host/src/gateway.js +9 -0
  34. package/dist/host/src/gateway.js.map +1 -1
  35. package/dist/host/src/host.d.ts +7 -3
  36. package/dist/host/src/host.js +42 -18
  37. package/dist/host/src/host.js.map +1 -1
  38. package/dist/host/src/hub.d.ts +91 -15
  39. package/dist/host/src/hub.js +556 -33
  40. package/dist/host/src/hub.js.map +1 -1
  41. package/dist/host/src/rpc/server.d.ts +4 -2
  42. package/dist/host/src/rpc/server.js +51 -6
  43. package/dist/host/src/rpc/server.js.map +1 -1
  44. package/dist/host/src/screen.d.ts +11 -0
  45. package/dist/host/src/screen.js +57 -3
  46. package/dist/host/src/screen.js.map +1 -1
  47. package/dist/host/src/slim.d.ts +17 -0
  48. package/dist/host/src/slim.js +66 -0
  49. package/dist/host/src/slim.js.map +1 -0
  50. package/dist/host/src/store.d.ts +75 -3
  51. package/dist/host/src/store.js +216 -16
  52. package/dist/host/src/store.js.map +1 -1
  53. package/dist/host/src/worktrees.d.ts +36 -0
  54. package/dist/host/src/worktrees.js +96 -0
  55. package/dist/host/src/worktrees.js.map +1 -0
  56. package/dist/host/tsconfig.tsbuildinfo +1 -1
  57. package/dist/wire/src/model.d.ts +148 -0
  58. package/dist/wire/src/model.js +55 -0
  59. package/dist/wire/src/model.js.map +1 -1
  60. package/dist/wire/src/relay-client.d.ts +2 -0
  61. package/dist/wire/src/relay-client.js +12 -0
  62. package/dist/wire/src/relay-client.js.map +1 -1
  63. package/dist/wire/src/rpc.d.ts +5977 -259
  64. package/dist/wire/src/rpc.js +130 -7
  65. package/dist/wire/src/rpc.js.map +1 -1
  66. package/dist/wire/src/updates.d.ts +79 -79
  67. package/package.json +2 -2
@@ -201,15 +201,15 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
201
201
  }, "strip", z.ZodTypeAny, {
202
202
  type: "subagent";
203
203
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
204
- model?: string | undefined;
205
204
  task?: string | undefined;
206
205
  agentType?: string | undefined;
206
+ model?: string | undefined;
207
207
  }, {
208
208
  type: "subagent";
209
- model?: string | undefined;
210
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
211
209
  task?: string | undefined;
212
210
  agentType?: string | undefined;
211
+ model?: string | undefined;
212
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
213
213
  }>, z.ZodObject<{
214
214
  type: z.ZodLiteral<"skill">;
215
215
  name: z.ZodString;
@@ -359,6 +359,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
359
359
  kind?: "agent" | "file" | "skill" | undefined;
360
360
  }>]>;
361
361
  }, "strip", z.ZodTypeAny, {
362
+ sessionUpdate: "user_message_chunk";
362
363
  content: {
363
364
  type: "text";
364
365
  text: string;
@@ -373,9 +374,9 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
373
374
  uri: string;
374
375
  kind?: "agent" | "file" | "skill" | undefined;
375
376
  };
376
- sessionUpdate: "user_message_chunk";
377
377
  messageId?: string | undefined;
378
378
  }, {
379
+ sessionUpdate: "user_message_chunk";
379
380
  content: {
380
381
  type: "text";
381
382
  text: string;
@@ -390,7 +391,6 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
390
391
  uri: string;
391
392
  kind?: "agent" | "file" | "skill" | undefined;
392
393
  };
393
- sessionUpdate: "user_message_chunk";
394
394
  messageId?: string | undefined;
395
395
  }>, z.ZodObject<{
396
396
  sessionUpdate: z.ZodLiteral<"agent_message_chunk">;
@@ -438,6 +438,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
438
438
  kind?: "agent" | "file" | "skill" | undefined;
439
439
  }>]>;
440
440
  }, "strip", z.ZodTypeAny, {
441
+ sessionUpdate: "agent_message_chunk";
442
+ messageId: string;
441
443
  content: {
442
444
  type: "text";
443
445
  text: string;
@@ -452,10 +454,10 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
452
454
  uri: string;
453
455
  kind?: "agent" | "file" | "skill" | undefined;
454
456
  };
455
- sessionUpdate: "agent_message_chunk";
456
- messageId: string;
457
457
  parentToolCallId?: string | undefined;
458
458
  }, {
459
+ sessionUpdate: "agent_message_chunk";
460
+ messageId: string;
459
461
  content: {
460
462
  type: "text";
461
463
  text: string;
@@ -470,8 +472,6 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
470
472
  uri: string;
471
473
  kind?: "agent" | "file" | "skill" | undefined;
472
474
  };
473
- sessionUpdate: "agent_message_chunk";
474
- messageId: string;
475
475
  parentToolCallId?: string | undefined;
476
476
  }>, z.ZodObject<{
477
477
  sessionUpdate: z.ZodLiteral<"agent_thought_chunk">;
@@ -519,6 +519,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
519
519
  kind?: "agent" | "file" | "skill" | undefined;
520
520
  }>]>;
521
521
  }, "strip", z.ZodTypeAny, {
522
+ sessionUpdate: "agent_thought_chunk";
523
+ messageId: string;
522
524
  content: {
523
525
  type: "text";
524
526
  text: string;
@@ -533,10 +535,10 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
533
535
  uri: string;
534
536
  kind?: "agent" | "file" | "skill" | undefined;
535
537
  };
536
- sessionUpdate: "agent_thought_chunk";
537
- messageId: string;
538
538
  parentToolCallId?: string | undefined;
539
539
  }, {
540
+ sessionUpdate: "agent_thought_chunk";
541
+ messageId: string;
540
542
  content: {
541
543
  type: "text";
542
544
  text: string;
@@ -551,8 +553,6 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
551
553
  uri: string;
552
554
  kind?: "agent" | "file" | "skill" | undefined;
553
555
  };
554
- sessionUpdate: "agent_thought_chunk";
555
- messageId: string;
556
556
  parentToolCallId?: string | undefined;
557
557
  }>, z.ZodObject<{
558
558
  sessionUpdate: z.ZodLiteral<"tool_call">;
@@ -714,15 +714,15 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
714
714
  }, "strip", z.ZodTypeAny, {
715
715
  type: "subagent";
716
716
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
717
- model?: string | undefined;
718
717
  task?: string | undefined;
719
718
  agentType?: string | undefined;
719
+ model?: string | undefined;
720
720
  }, {
721
721
  type: "subagent";
722
- model?: string | undefined;
723
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
724
722
  task?: string | undefined;
725
723
  agentType?: string | undefined;
724
+ model?: string | undefined;
725
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
726
726
  }>, z.ZodObject<{
727
727
  type: z.ZodLiteral<"skill">;
728
728
  name: z.ZodString;
@@ -770,7 +770,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
770
770
  phase: "started" | "finished";
771
771
  }>]>>;
772
772
  }, "strip", z.ZodTypeAny, {
773
- status: "pending" | "in_progress" | "completed" | "failed";
773
+ status: "failed" | "pending" | "in_progress" | "completed";
774
774
  kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
775
775
  title: string;
776
776
  toolCallId: string;
@@ -782,9 +782,9 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
782
782
  } | {
783
783
  type: "subagent";
784
784
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
785
- model?: string | undefined;
786
785
  task?: string | undefined;
787
786
  agentType?: string | undefined;
787
+ model?: string | undefined;
788
788
  } | {
789
789
  type: "skill";
790
790
  name: string;
@@ -839,7 +839,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
839
839
  line?: number | undefined;
840
840
  }[] | undefined;
841
841
  }, {
842
- status: "pending" | "in_progress" | "completed" | "failed";
842
+ status: "failed" | "pending" | "in_progress" | "completed";
843
843
  kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
844
844
  title: string;
845
845
  toolCallId: string;
@@ -850,10 +850,10 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
850
850
  server: string;
851
851
  } | {
852
852
  type: "subagent";
853
- model?: string | undefined;
854
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
855
853
  task?: string | undefined;
856
854
  agentType?: string | undefined;
855
+ model?: string | undefined;
856
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
857
857
  } | {
858
858
  type: "skill";
859
859
  name: string;
@@ -936,15 +936,15 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
936
936
  }, "strip", z.ZodTypeAny, {
937
937
  type: "subagent";
938
938
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
939
- model?: string | undefined;
940
939
  task?: string | undefined;
941
940
  agentType?: string | undefined;
941
+ model?: string | undefined;
942
942
  }, {
943
943
  type: "subagent";
944
- model?: string | undefined;
945
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
946
944
  task?: string | undefined;
947
945
  agentType?: string | undefined;
946
+ model?: string | undefined;
947
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
948
948
  }>, z.ZodObject<{
949
949
  type: z.ZodLiteral<"skill">;
950
950
  name: z.ZodString;
@@ -1116,7 +1116,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1116
1116
  }, "strip", z.ZodTypeAny, {
1117
1117
  toolCallId: string;
1118
1118
  sessionUpdate: "tool_call_update";
1119
- status?: "pending" | "in_progress" | "completed" | "failed" | undefined;
1119
+ status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
1120
1120
  title?: string | undefined;
1121
1121
  detail?: {
1122
1122
  type: "mcp";
@@ -1125,9 +1125,9 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1125
1125
  } | {
1126
1126
  type: "subagent";
1127
1127
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
1128
- model?: string | undefined;
1129
1128
  task?: string | undefined;
1130
1129
  agentType?: string | undefined;
1130
+ model?: string | undefined;
1131
1131
  } | {
1132
1132
  type: "skill";
1133
1133
  name: string;
@@ -1181,7 +1181,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1181
1181
  }, {
1182
1182
  toolCallId: string;
1183
1183
  sessionUpdate: "tool_call_update";
1184
- status?: "pending" | "in_progress" | "completed" | "failed" | undefined;
1184
+ status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
1185
1185
  title?: string | undefined;
1186
1186
  detail?: {
1187
1187
  type: "mcp";
@@ -1189,10 +1189,10 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1189
1189
  server: string;
1190
1190
  } | {
1191
1191
  type: "subagent";
1192
- model?: string | undefined;
1193
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
1194
1192
  task?: string | undefined;
1195
1193
  agentType?: string | undefined;
1194
+ model?: string | undefined;
1195
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
1196
1196
  } | {
1197
1197
  type: "skill";
1198
1198
  name: string;
@@ -1593,6 +1593,7 @@ export declare const sessionEventSchema: z.ZodObject<{
1593
1593
  kind?: "agent" | "file" | "skill" | undefined;
1594
1594
  }>]>;
1595
1595
  }, "strip", z.ZodTypeAny, {
1596
+ sessionUpdate: "user_message_chunk";
1596
1597
  content: {
1597
1598
  type: "text";
1598
1599
  text: string;
@@ -1607,9 +1608,9 @@ export declare const sessionEventSchema: z.ZodObject<{
1607
1608
  uri: string;
1608
1609
  kind?: "agent" | "file" | "skill" | undefined;
1609
1610
  };
1610
- sessionUpdate: "user_message_chunk";
1611
1611
  messageId?: string | undefined;
1612
1612
  }, {
1613
+ sessionUpdate: "user_message_chunk";
1613
1614
  content: {
1614
1615
  type: "text";
1615
1616
  text: string;
@@ -1624,7 +1625,6 @@ export declare const sessionEventSchema: z.ZodObject<{
1624
1625
  uri: string;
1625
1626
  kind?: "agent" | "file" | "skill" | undefined;
1626
1627
  };
1627
- sessionUpdate: "user_message_chunk";
1628
1628
  messageId?: string | undefined;
1629
1629
  }>, z.ZodObject<{
1630
1630
  sessionUpdate: z.ZodLiteral<"agent_message_chunk">;
@@ -1672,6 +1672,8 @@ export declare const sessionEventSchema: z.ZodObject<{
1672
1672
  kind?: "agent" | "file" | "skill" | undefined;
1673
1673
  }>]>;
1674
1674
  }, "strip", z.ZodTypeAny, {
1675
+ sessionUpdate: "agent_message_chunk";
1676
+ messageId: string;
1675
1677
  content: {
1676
1678
  type: "text";
1677
1679
  text: string;
@@ -1686,10 +1688,10 @@ export declare const sessionEventSchema: z.ZodObject<{
1686
1688
  uri: string;
1687
1689
  kind?: "agent" | "file" | "skill" | undefined;
1688
1690
  };
1689
- sessionUpdate: "agent_message_chunk";
1690
- messageId: string;
1691
1691
  parentToolCallId?: string | undefined;
1692
1692
  }, {
1693
+ sessionUpdate: "agent_message_chunk";
1694
+ messageId: string;
1693
1695
  content: {
1694
1696
  type: "text";
1695
1697
  text: string;
@@ -1704,8 +1706,6 @@ export declare const sessionEventSchema: z.ZodObject<{
1704
1706
  uri: string;
1705
1707
  kind?: "agent" | "file" | "skill" | undefined;
1706
1708
  };
1707
- sessionUpdate: "agent_message_chunk";
1708
- messageId: string;
1709
1709
  parentToolCallId?: string | undefined;
1710
1710
  }>, z.ZodObject<{
1711
1711
  sessionUpdate: z.ZodLiteral<"agent_thought_chunk">;
@@ -1753,6 +1753,8 @@ export declare const sessionEventSchema: z.ZodObject<{
1753
1753
  kind?: "agent" | "file" | "skill" | undefined;
1754
1754
  }>]>;
1755
1755
  }, "strip", z.ZodTypeAny, {
1756
+ sessionUpdate: "agent_thought_chunk";
1757
+ messageId: string;
1756
1758
  content: {
1757
1759
  type: "text";
1758
1760
  text: string;
@@ -1767,10 +1769,10 @@ export declare const sessionEventSchema: z.ZodObject<{
1767
1769
  uri: string;
1768
1770
  kind?: "agent" | "file" | "skill" | undefined;
1769
1771
  };
1770
- sessionUpdate: "agent_thought_chunk";
1771
- messageId: string;
1772
1772
  parentToolCallId?: string | undefined;
1773
1773
  }, {
1774
+ sessionUpdate: "agent_thought_chunk";
1775
+ messageId: string;
1774
1776
  content: {
1775
1777
  type: "text";
1776
1778
  text: string;
@@ -1785,8 +1787,6 @@ export declare const sessionEventSchema: z.ZodObject<{
1785
1787
  uri: string;
1786
1788
  kind?: "agent" | "file" | "skill" | undefined;
1787
1789
  };
1788
- sessionUpdate: "agent_thought_chunk";
1789
- messageId: string;
1790
1790
  parentToolCallId?: string | undefined;
1791
1791
  }>, z.ZodObject<{
1792
1792
  sessionUpdate: z.ZodLiteral<"tool_call">;
@@ -1948,15 +1948,15 @@ export declare const sessionEventSchema: z.ZodObject<{
1948
1948
  }, "strip", z.ZodTypeAny, {
1949
1949
  type: "subagent";
1950
1950
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
1951
- model?: string | undefined;
1952
1951
  task?: string | undefined;
1953
1952
  agentType?: string | undefined;
1953
+ model?: string | undefined;
1954
1954
  }, {
1955
1955
  type: "subagent";
1956
- model?: string | undefined;
1957
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
1958
1956
  task?: string | undefined;
1959
1957
  agentType?: string | undefined;
1958
+ model?: string | undefined;
1959
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
1960
1960
  }>, z.ZodObject<{
1961
1961
  type: z.ZodLiteral<"skill">;
1962
1962
  name: z.ZodString;
@@ -2004,7 +2004,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2004
2004
  phase: "started" | "finished";
2005
2005
  }>]>>;
2006
2006
  }, "strip", z.ZodTypeAny, {
2007
- status: "pending" | "in_progress" | "completed" | "failed";
2007
+ status: "failed" | "pending" | "in_progress" | "completed";
2008
2008
  kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
2009
2009
  title: string;
2010
2010
  toolCallId: string;
@@ -2016,9 +2016,9 @@ export declare const sessionEventSchema: z.ZodObject<{
2016
2016
  } | {
2017
2017
  type: "subagent";
2018
2018
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
2019
- model?: string | undefined;
2020
2019
  task?: string | undefined;
2021
2020
  agentType?: string | undefined;
2021
+ model?: string | undefined;
2022
2022
  } | {
2023
2023
  type: "skill";
2024
2024
  name: string;
@@ -2073,7 +2073,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2073
2073
  line?: number | undefined;
2074
2074
  }[] | undefined;
2075
2075
  }, {
2076
- status: "pending" | "in_progress" | "completed" | "failed";
2076
+ status: "failed" | "pending" | "in_progress" | "completed";
2077
2077
  kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
2078
2078
  title: string;
2079
2079
  toolCallId: string;
@@ -2084,10 +2084,10 @@ export declare const sessionEventSchema: z.ZodObject<{
2084
2084
  server: string;
2085
2085
  } | {
2086
2086
  type: "subagent";
2087
- model?: string | undefined;
2088
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
2089
2087
  task?: string | undefined;
2090
2088
  agentType?: string | undefined;
2089
+ model?: string | undefined;
2090
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
2091
2091
  } | {
2092
2092
  type: "skill";
2093
2093
  name: string;
@@ -2170,15 +2170,15 @@ export declare const sessionEventSchema: z.ZodObject<{
2170
2170
  }, "strip", z.ZodTypeAny, {
2171
2171
  type: "subagent";
2172
2172
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
2173
- model?: string | undefined;
2174
2173
  task?: string | undefined;
2175
2174
  agentType?: string | undefined;
2175
+ model?: string | undefined;
2176
2176
  }, {
2177
2177
  type: "subagent";
2178
- model?: string | undefined;
2179
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
2180
2178
  task?: string | undefined;
2181
2179
  agentType?: string | undefined;
2180
+ model?: string | undefined;
2181
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
2182
2182
  }>, z.ZodObject<{
2183
2183
  type: z.ZodLiteral<"skill">;
2184
2184
  name: z.ZodString;
@@ -2350,7 +2350,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2350
2350
  }, "strip", z.ZodTypeAny, {
2351
2351
  toolCallId: string;
2352
2352
  sessionUpdate: "tool_call_update";
2353
- status?: "pending" | "in_progress" | "completed" | "failed" | undefined;
2353
+ status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
2354
2354
  title?: string | undefined;
2355
2355
  detail?: {
2356
2356
  type: "mcp";
@@ -2359,9 +2359,9 @@ export declare const sessionEventSchema: z.ZodObject<{
2359
2359
  } | {
2360
2360
  type: "subagent";
2361
2361
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
2362
- model?: string | undefined;
2363
2362
  task?: string | undefined;
2364
2363
  agentType?: string | undefined;
2364
+ model?: string | undefined;
2365
2365
  } | {
2366
2366
  type: "skill";
2367
2367
  name: string;
@@ -2415,7 +2415,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2415
2415
  }, {
2416
2416
  toolCallId: string;
2417
2417
  sessionUpdate: "tool_call_update";
2418
- status?: "pending" | "in_progress" | "completed" | "failed" | undefined;
2418
+ status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
2419
2419
  title?: string | undefined;
2420
2420
  detail?: {
2421
2421
  type: "mcp";
@@ -2423,10 +2423,10 @@ export declare const sessionEventSchema: z.ZodObject<{
2423
2423
  server: string;
2424
2424
  } | {
2425
2425
  type: "subagent";
2426
- model?: string | undefined;
2427
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
2428
2426
  task?: string | undefined;
2429
2427
  agentType?: string | undefined;
2428
+ model?: string | undefined;
2429
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
2430
2430
  } | {
2431
2431
  type: "skill";
2432
2432
  name: string;
@@ -2776,7 +2776,11 @@ export declare const sessionEventSchema: z.ZodObject<{
2776
2776
  hint?: string | undefined;
2777
2777
  }>]>;
2778
2778
  }, "strip", z.ZodTypeAny, {
2779
+ sessionId: string;
2780
+ seq: number;
2781
+ ts: number;
2779
2782
  update: {
2783
+ sessionUpdate: "user_message_chunk";
2780
2784
  content: {
2781
2785
  type: "text";
2782
2786
  text: string;
@@ -2791,9 +2795,10 @@ export declare const sessionEventSchema: z.ZodObject<{
2791
2795
  uri: string;
2792
2796
  kind?: "agent" | "file" | "skill" | undefined;
2793
2797
  };
2794
- sessionUpdate: "user_message_chunk";
2795
2798
  messageId?: string | undefined;
2796
2799
  } | {
2800
+ sessionUpdate: "agent_message_chunk";
2801
+ messageId: string;
2797
2802
  content: {
2798
2803
  type: "text";
2799
2804
  text: string;
@@ -2808,10 +2813,10 @@ export declare const sessionEventSchema: z.ZodObject<{
2808
2813
  uri: string;
2809
2814
  kind?: "agent" | "file" | "skill" | undefined;
2810
2815
  };
2811
- sessionUpdate: "agent_message_chunk";
2812
- messageId: string;
2813
2816
  parentToolCallId?: string | undefined;
2814
2817
  } | {
2818
+ sessionUpdate: "agent_thought_chunk";
2819
+ messageId: string;
2815
2820
  content: {
2816
2821
  type: "text";
2817
2822
  text: string;
@@ -2826,11 +2831,9 @@ export declare const sessionEventSchema: z.ZodObject<{
2826
2831
  uri: string;
2827
2832
  kind?: "agent" | "file" | "skill" | undefined;
2828
2833
  };
2829
- sessionUpdate: "agent_thought_chunk";
2830
- messageId: string;
2831
2834
  parentToolCallId?: string | undefined;
2832
2835
  } | {
2833
- status: "pending" | "in_progress" | "completed" | "failed";
2836
+ status: "failed" | "pending" | "in_progress" | "completed";
2834
2837
  kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
2835
2838
  title: string;
2836
2839
  toolCallId: string;
@@ -2842,9 +2845,9 @@ export declare const sessionEventSchema: z.ZodObject<{
2842
2845
  } | {
2843
2846
  type: "subagent";
2844
2847
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
2845
- model?: string | undefined;
2846
2848
  task?: string | undefined;
2847
2849
  agentType?: string | undefined;
2850
+ model?: string | undefined;
2848
2851
  } | {
2849
2852
  type: "skill";
2850
2853
  name: string;
@@ -2901,7 +2904,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2901
2904
  } | {
2902
2905
  toolCallId: string;
2903
2906
  sessionUpdate: "tool_call_update";
2904
- status?: "pending" | "in_progress" | "completed" | "failed" | undefined;
2907
+ status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
2905
2908
  title?: string | undefined;
2906
2909
  detail?: {
2907
2910
  type: "mcp";
@@ -2910,9 +2913,9 @@ export declare const sessionEventSchema: z.ZodObject<{
2910
2913
  } | {
2911
2914
  type: "subagent";
2912
2915
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
2913
- model?: string | undefined;
2914
2916
  task?: string | undefined;
2915
2917
  agentType?: string | undefined;
2918
+ model?: string | undefined;
2916
2919
  } | {
2917
2920
  type: "skill";
2918
2921
  name: string;
@@ -3045,11 +3048,12 @@ export declare const sessionEventSchema: z.ZodObject<{
3045
3048
  sessionUpdate: "ls_error";
3046
3049
  hint?: string | undefined;
3047
3050
  };
3051
+ }, {
3048
3052
  sessionId: string;
3049
3053
  seq: number;
3050
3054
  ts: number;
3051
- }, {
3052
3055
  update: {
3056
+ sessionUpdate: "user_message_chunk";
3053
3057
  content: {
3054
3058
  type: "text";
3055
3059
  text: string;
@@ -3064,9 +3068,10 @@ export declare const sessionEventSchema: z.ZodObject<{
3064
3068
  uri: string;
3065
3069
  kind?: "agent" | "file" | "skill" | undefined;
3066
3070
  };
3067
- sessionUpdate: "user_message_chunk";
3068
3071
  messageId?: string | undefined;
3069
3072
  } | {
3073
+ sessionUpdate: "agent_message_chunk";
3074
+ messageId: string;
3070
3075
  content: {
3071
3076
  type: "text";
3072
3077
  text: string;
@@ -3081,10 +3086,10 @@ export declare const sessionEventSchema: z.ZodObject<{
3081
3086
  uri: string;
3082
3087
  kind?: "agent" | "file" | "skill" | undefined;
3083
3088
  };
3084
- sessionUpdate: "agent_message_chunk";
3085
- messageId: string;
3086
3089
  parentToolCallId?: string | undefined;
3087
3090
  } | {
3091
+ sessionUpdate: "agent_thought_chunk";
3092
+ messageId: string;
3088
3093
  content: {
3089
3094
  type: "text";
3090
3095
  text: string;
@@ -3099,11 +3104,9 @@ export declare const sessionEventSchema: z.ZodObject<{
3099
3104
  uri: string;
3100
3105
  kind?: "agent" | "file" | "skill" | undefined;
3101
3106
  };
3102
- sessionUpdate: "agent_thought_chunk";
3103
- messageId: string;
3104
3107
  parentToolCallId?: string | undefined;
3105
3108
  } | {
3106
- status: "pending" | "in_progress" | "completed" | "failed";
3109
+ status: "failed" | "pending" | "in_progress" | "completed";
3107
3110
  kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
3108
3111
  title: string;
3109
3112
  toolCallId: string;
@@ -3114,10 +3117,10 @@ export declare const sessionEventSchema: z.ZodObject<{
3114
3117
  server: string;
3115
3118
  } | {
3116
3119
  type: "subagent";
3117
- model?: string | undefined;
3118
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
3119
3120
  task?: string | undefined;
3120
3121
  agentType?: string | undefined;
3122
+ model?: string | undefined;
3123
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
3121
3124
  } | {
3122
3125
  type: "skill";
3123
3126
  name: string;
@@ -3174,7 +3177,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3174
3177
  } | {
3175
3178
  toolCallId: string;
3176
3179
  sessionUpdate: "tool_call_update";
3177
- status?: "pending" | "in_progress" | "completed" | "failed" | undefined;
3180
+ status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
3178
3181
  title?: string | undefined;
3179
3182
  detail?: {
3180
3183
  type: "mcp";
@@ -3182,10 +3185,10 @@ export declare const sessionEventSchema: z.ZodObject<{
3182
3185
  server: string;
3183
3186
  } | {
3184
3187
  type: "subagent";
3185
- model?: string | undefined;
3186
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
3187
3188
  task?: string | undefined;
3188
3189
  agentType?: string | undefined;
3190
+ model?: string | undefined;
3191
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
3189
3192
  } | {
3190
3193
  type: "skill";
3191
3194
  name: string;
@@ -3318,8 +3321,5 @@ export declare const sessionEventSchema: z.ZodObject<{
3318
3321
  sessionUpdate: "ls_error";
3319
3322
  hint?: string | undefined;
3320
3323
  };
3321
- sessionId: string;
3322
- seq: number;
3323
- ts: number;
3324
3324
  }>;
3325
3325
  export type SessionEvent = z.infer<typeof sessionEventSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkshell/host",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "LinkShell v2 host daemon: owns agent sessions and terminals on your computer, serves them to your devices.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,7 +34,7 @@
34
34
  "node-pty": "^1.1.0",
35
35
  "ws": "^8.18.1",
36
36
  "zod": "^3.24.3",
37
- "@linkshell/wire": "0.1.1"
37
+ "@linkshell/wire": "0.1.3"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/ws": "^8.5.14",