@wirecat/tg-cli 0.132.0 → 0.134.0

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 (160) hide show
  1. package/README.md +139 -319
  2. package/contracts/wirecat.json +82 -2
  3. package/dist/bin/tg.js +2 -2
  4. package/dist/bot/generated/types.d.ts +188 -0
  5. package/dist/bot/generated/types.d.ts.map +1 -1
  6. package/dist/bundle/{adapter-OXVMOWVE.js → adapter-Y4IXTXAG.js} +104 -68
  7. package/dist/bundle/agent-G7VHOJMS.js +37 -0
  8. package/dist/bundle/{all-profiles-6OQC7PBL.js → all-profiles-SUGID6CX.js} +62 -20
  9. package/dist/bundle/{anthropic-YFMIHFW5.js → anthropic-4QKTXT4B.js} +5 -5
  10. package/dist/bundle/{app-server-S7CJPJXN.js → app-server-TPOD6LIJ.js} +75 -65
  11. package/dist/bundle/{bot-api-KJ6EZ4R6.js → bot-api-KBESP422.js} +73 -91
  12. package/dist/bundle/{bot-history-JYCXDFW4.js → bot-history-3EORA23G.js} +23 -22
  13. package/dist/bundle/{bun-FVTOBYZ2.js → bun-FL76M4M2.js} +2 -2
  14. package/dist/bundle/{bun-sqlite-KDGWBNOR.js → bun-sqlite-H37OSTAJ.js} +6 -6
  15. package/dist/bundle/{chunk-JZJV3DYK.js → chunk-2GT563YH.js} +2 -2
  16. package/dist/bundle/{chunk-EPR67IRV.js → chunk-2JWY7CXJ.js} +4 -4
  17. package/dist/bundle/{chunk-UGD4SCUI.js → chunk-3O25FAPA.js} +3 -4
  18. package/dist/bundle/{chunk-AERP2QR6.js → chunk-3PG6QVQZ.js} +11 -25
  19. package/dist/bundle/{chunk-DXPGMUOR.js → chunk-3QQWTP77.js} +2 -2
  20. package/dist/bundle/{chunk-FIUH52FE.js → chunk-3ZNO27UE.js} +1 -1
  21. package/dist/bundle/{chunk-Y57EKZZK.js → chunk-4R2ZJGFF.js} +3274 -1674
  22. package/dist/bundle/{chunk-6LPUK62N.js → chunk-4S2DHHJM.js} +2 -100
  23. package/dist/bundle/{chunk-LF6FACSW.js → chunk-4X6BX3XP.js} +144 -10
  24. package/dist/bundle/{chunk-LZ3HFDYL.js → chunk-6DGVK5KS.js} +2 -2
  25. package/dist/bundle/chunk-6DJJVFSG.js +388 -0
  26. package/dist/bundle/{chunk-BSXS7VAC.js → chunk-6MEHKUN6.js} +1 -1
  27. package/dist/bundle/{chunk-44A2XRDE.js → chunk-6UNLEQA5.js} +31 -20
  28. package/dist/bundle/{chunk-M2TV6BDB.js → chunk-77E7Q4EQ.js} +7 -7
  29. package/dist/bundle/chunk-7GGDCQJ5.js +353 -0
  30. package/dist/bundle/{chunk-OGZZUDJJ.js → chunk-AHVWZDXO.js} +79 -64
  31. package/dist/bundle/{chunk-YVI5SQPY.js → chunk-ANBI3OXK.js} +1 -1
  32. package/dist/bundle/{chunk-PR4F3TYK.js → chunk-AYWST6NA.js} +60 -51
  33. package/dist/bundle/{chunk-7SEVVE3X.js → chunk-CA7DY2YU.js} +3 -3
  34. package/dist/bundle/{chunk-O43PARFS.js → chunk-CDKXZLMP.js} +273 -176
  35. package/dist/bundle/{chunk-YAPO7QNO.js → chunk-CNGNR4CY.js} +6 -6
  36. package/dist/bundle/{chunk-2UGSIHLV.js → chunk-CSXCCK6J.js} +2 -2
  37. package/dist/bundle/{chunk-N5LZ6L4D.js → chunk-DG35TQ6P.js} +3 -3
  38. package/dist/bundle/{chunk-LMGVPDXN.js → chunk-EXMAWEHC.js} +2 -2
  39. package/dist/bundle/{chunk-A5D3J7XZ.js → chunk-FR3ATU5I.js} +4 -4
  40. package/dist/bundle/{chunk-JDNDWZYS.js → chunk-FR4Y5CGW.js} +4 -4
  41. package/dist/bundle/{chunk-YSNQGOUI.js → chunk-GIGZTI74.js} +2115 -1975
  42. package/dist/bundle/{chunk-3QHKZLBU.js → chunk-H3TLAYGY.js} +4 -4
  43. package/dist/bundle/{chunk-KJICORS4.js → chunk-HD7DV5B2.js} +65 -43
  44. package/dist/bundle/{chunk-NLRGMP7M.js → chunk-HETHFOHC.js} +3 -3
  45. package/dist/bundle/{chunk-4YB7JU2W.js → chunk-HEZK4W3U.js} +6 -6
  46. package/dist/bundle/{chunk-2LZD2VFV.js → chunk-IJ7R2WMK.js} +4 -4
  47. package/dist/bundle/{chunk-4ZTVJHWU.js → chunk-ITJ7DGNA.js} +4 -4
  48. package/dist/bundle/{chunk-5UPEEMEF.js → chunk-J5RB4ASI.js} +142 -372
  49. package/dist/bundle/{chunk-IY7CTAOQ.js → chunk-JAL443BH.js} +9 -9
  50. package/dist/bundle/{chunk-U7PHJSTX.js → chunk-JCDD5T3A.js} +2 -2
  51. package/dist/bundle/{chunk-BLZEQVP4.js → chunk-JHZJBNDO.js} +2 -2
  52. package/dist/bundle/chunk-JWLODUN3.js +555 -0
  53. package/dist/bundle/{chunk-4CKYANQH.js → chunk-JWNSG5GI.js} +1 -1
  54. package/dist/bundle/{chunk-YRXSNH3R.js → chunk-JXEO5EIN.js} +2 -2
  55. package/dist/bundle/{chunk-DSJNZXTP.js → chunk-K5FK6WWN.js} +1 -1
  56. package/dist/bundle/{chunk-LG3K5NHX.js → chunk-L47PFECD.js} +7 -7
  57. package/dist/bundle/{chunk-OIRNHSAH.js → chunk-L4PNDW4S.js} +6 -6
  58. package/dist/bundle/{chunk-WAVRUADL.js → chunk-M323L5SG.js} +30 -15
  59. package/dist/bundle/{chunk-AUZWIBHJ.js → chunk-MMDFPBFZ.js} +43 -64
  60. package/dist/bundle/{chunk-FKGYXIN7.js → chunk-MUV73B5A.js} +7 -7
  61. package/dist/bundle/chunk-MXA3FU2R.js +116 -0
  62. package/dist/bundle/{chunk-42MXCMW6.js → chunk-NUD4CBHK.js} +3 -3
  63. package/dist/bundle/{chunk-PG37E63A.js → chunk-NYEVPAF2.js} +511 -472
  64. package/dist/bundle/{chunk-QS46C5SW.js → chunk-O3QBO6NW.js} +17 -17
  65. package/dist/bundle/{chunk-CFWFESBO.js → chunk-O4ZOQJ6W.js} +9 -9
  66. package/dist/bundle/{chunk-74UPKW7H.js → chunk-OJSPB4LA.js} +2 -2
  67. package/dist/bundle/{chunk-JNWKV3QV.js → chunk-PCBVSHKD.js} +4 -4
  68. package/dist/bundle/{chunk-5RDNBG7D.js → chunk-PK5WEGPJ.js} +2 -2
  69. package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
  70. package/dist/bundle/{chunk-BMI2NWFI.js → chunk-PRI2XTM7.js} +35 -12
  71. package/dist/bundle/chunk-PRM7GKBV.js +340 -0
  72. package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-PZ2ZFPGO.js} +1 -1
  73. package/dist/bundle/chunk-QYRK4XXH.js +727 -0
  74. package/dist/bundle/{chunk-QNEAPLOP.js → chunk-RVA3CRSY.js} +12 -12
  75. package/dist/bundle/{chunk-4EDJJQJI.js → chunk-SPXNI53Z.js} +38 -9
  76. package/dist/bundle/{chunk-ZRW3DF25.js → chunk-TI5U6AUT.js} +34 -28
  77. package/dist/bundle/{chunk-SMQ45RZX.js → chunk-TKWYXM7L.js} +9 -60
  78. package/dist/bundle/{chunk-ZJIGVT6Z.js → chunk-TZCFJJEU.js} +6 -6
  79. package/dist/bundle/chunk-UTTEAOJ3.js +7 -0
  80. package/dist/bundle/chunk-V6G4LTXU.js +50 -0
  81. package/dist/bundle/{chunk-JMJOWT4N.js → chunk-VH4J7IIS.js} +1 -1
  82. package/dist/bundle/{chunk-UAFSDTID.js → chunk-VNJRWFHP.js} +1 -1
  83. package/dist/bundle/chunk-W2QSDPG6.js +80 -0
  84. package/dist/bundle/{chunk-ESOFH7PA.js → chunk-WGGUKQE7.js} +134 -558
  85. package/dist/bundle/{chunk-NWDADTPE.js → chunk-WPXVJGSL.js} +3 -3
  86. package/dist/bundle/{chunk-NWCFO37P.js → chunk-XLNV3U6N.js} +3 -3
  87. package/dist/bundle/{chunk-JPSRC732.js → chunk-XS4EE7MO.js} +17 -15
  88. package/dist/bundle/{chunk-FPSRT2TX.js → chunk-XVRLD3LN.js} +2 -2
  89. package/dist/bundle/{chunk-O3AM32YN.js → chunk-XZ6XEAJP.js} +18 -18
  90. package/dist/bundle/{chunk-B4LGDOG5.js → chunk-YHTSJMZ5.js} +3734 -3380
  91. package/dist/bundle/chunk-YPJCURT6.js +108 -0
  92. package/dist/bundle/{chunk-HBSKP7OV.js → chunk-Z77R76S2.js} +1 -1
  93. package/dist/bundle/{chunk-PYECFCPD.js → chunk-ZC7OEYDX.js} +1 -1
  94. package/dist/bundle/{chunk-IYJ4B632.js → chunk-ZW2N2GI2.js} +12 -12
  95. package/dist/bundle/command-contract-LEFXJAA3.js +37 -0
  96. package/dist/bundle/{command-server-entry-TM264M2J.js → command-server-entry-WQAE5UGU.js} +27 -27
  97. package/dist/bundle/{decode-RJFOSHCE.js → decode-2J2DOVGV.js} +5 -5
  98. package/dist/bundle/{dispatch-7OZP3X4O.js → dispatch-IZ2TP5GW.js} +8 -8
  99. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  100. package/dist/bundle/{echarts-PYKF4D7B.js → echarts-GFIIHZ4U.js} +2 -2
  101. package/dist/bundle/{embed-JFN6Z5TG.js → embed-AGOXADHW.js} +6 -6
  102. package/dist/bundle/{embedder-WN54JIMY.js → embedder-PCIXGM2Y.js} +9 -9
  103. package/dist/bundle/{entry-Z6LO6N6S.js → entry-HUQXUV52.js} +9 -9
  104. package/dist/bundle/{failure-UONA2IA5.js → failure-JSRHZ2S6.js} +2 -2
  105. package/dist/bundle/{first-run-WQAKES7G.js → first-run-2LXN7B33.js} +12 -12
  106. package/dist/bundle/first-screen-VUE6RCSF.js +37 -0
  107. package/dist/bundle/{instructions-PR4BBBTM.js → instructions-RSLTJVFJ.js} +1 -1
  108. package/dist/bundle/{mcp-O6ACR2DX.js → mcp-MMENCB7I.js} +2 -2
  109. package/dist/bundle/meeting-combined-PBNPHOM3.js +23 -0
  110. package/dist/bundle/{meeting-model-YVTUOM4H.js → meeting-model-SI77WMMK.js} +11 -11
  111. package/dist/bundle/{meeting-semantic-X4KG6RNV.js → meeting-semantic-WRXWUR4M.js} +6 -6
  112. package/dist/bundle/{node-OVS5LTVZ.js → node-5XGMCUGQ.js} +2 -2
  113. package/dist/bundle/{node-sqlite-LC44SM4Z.js → node-sqlite-ES7SQSIC.js} +7 -7
  114. package/dist/bundle/{oauth-NSVUFQCW.js → oauth-QFM4Y6N7.js} +8 -8
  115. package/dist/bundle/{open-XN5SJFVY.js → open-2MD2DKGQ.js} +5 -5
  116. package/dist/bundle/{openai-WOYZHJNL.js → openai-6TMKJKYO.js} +15 -15
  117. package/dist/bundle/{process-UFBRGTQC.js → process-VA2DP7MY.js} +1 -1
  118. package/dist/bundle/{program-RAGBRRQH.js → program-K3SLEA42.js} +70 -63
  119. package/dist/bundle/{prompt-6HAKBUQN.js → prompt-VZSPCE6E.js} +5 -5
  120. package/dist/bundle/{proxy-transport-5EJVFUTC.js → proxy-transport-OJU2EOOC.js} +5 -5
  121. package/dist/bundle/{recognize-CN5COBVJ.js → recognize-LH3ZZEIL.js} +4 -4
  122. package/dist/bundle/{remote-STX5AMGE.js → remote-JNW5HN2I.js} +9 -9
  123. package/dist/bundle/{rerank-ZCOWTXIJ.js → rerank-P23UJMII.js} +7 -7
  124. package/dist/bundle/{serve-XMQEOIG2.js → serve-VSLLMILH.js} +15 -15
  125. package/dist/bundle/{server-PGGUD3DM.js → server-FBRRRKCS.js} +68 -57
  126. package/dist/bundle/server-TA4QP7PG.js +78 -0
  127. package/dist/bundle/{sqlite-runtime-PS4DSOIU.js → sqlite-runtime-LWATDAAU.js} +6 -6
  128. package/dist/bundle/{state-GL4ZC57O.js → state-3AFJL2EL.js} +6 -6
  129. package/dist/bundle/{store-VISFXSHL.js → store-6TLYL2VU.js} +30 -17
  130. package/dist/bundle/{store-HJ76TLWD.js → store-PEXV5DNA.js} +24 -19
  131. package/dist/bundle/store-maintenance-command-IYJLUQ5X.js +65 -0
  132. package/dist/bundle/surface-L4VY4WFG.js +64 -0
  133. package/dist/bundle/tg.js +13 -13
  134. package/dist/telegram/adapter.d.ts +9 -2
  135. package/dist/telegram/adapter.d.ts.map +1 -1
  136. package/dist/telegram/adapter.js +5 -6
  137. package/dist/telegram/adapter.js.map +1 -1
  138. package/dist/telegram/messages.d.ts +12 -0
  139. package/dist/telegram/messages.d.ts.map +1 -1
  140. package/dist/telegram/messages.js +40 -0
  141. package/dist/telegram/messages.js.map +1 -1
  142. package/dist/version.d.ts +1 -1
  143. package/dist/version.js +1 -1
  144. package/package.json +3 -3
  145. package/skills/tg-cli/SKILL.md +80 -576
  146. package/skills/tg-cli/references/files.md +64 -0
  147. package/skills/tg-cli/references/history.md +22 -0
  148. package/skills/tg-cli/references/mcp-and-bots.md +54 -0
  149. package/skills/tg-cli/references/messages.md +115 -0
  150. package/skills/tg-cli/references/people.md +85 -0
  151. package/skills/tg-cli/references/search.md +132 -0
  152. package/skills/tg-cli/references/setup.md +91 -0
  153. package/skills/tg-cli/references/stats.md +45 -0
  154. package/skills/tg-cli/references/tasks.md +54 -0
  155. package/dist/bundle/chunk-VKE77B3F.js +0 -2
  156. package/dist/bundle/command-contract-FRH7LBGE.js +0 -37
  157. package/dist/bundle/first-screen-4RFG22SA.js +0 -35
  158. package/dist/bundle/meeting-combined-MHWTZOF2.js +0 -23
  159. package/dist/bundle/server-WTNYWCZ4.js +0 -69
  160. package/dist/bundle/store-maintenance-command-SMARMN5C.js +0 -60
@@ -35,10 +35,7 @@ import {
35
35
  toUploadParams,
36
36
  videoMime,
37
37
  withCause
38
- } from "./chunk-JZJV3DYK.js";
39
- import {
40
- proxiedTransport
41
- } from "./chunk-BLZEQVP4.js";
38
+ } from "./chunk-2GT563YH.js";
42
39
  import {
43
40
  ADMIN_RIGHTS,
44
41
  ADMIN_RIGHT_FIELDS,
@@ -46,79 +43,89 @@ import {
46
43
  bareCheck,
47
44
  formatMarkdown,
48
45
  providerRequest
49
- } from "./chunk-YSNQGOUI.js";
50
- import "./chunk-2UGSIHLV.js";
51
- import "./chunk-UGD4SCUI.js";
52
- import "./chunk-ZRW3DF25.js";
53
- import "./chunk-BSXS7VAC.js";
54
- import "./chunk-5UPEEMEF.js";
55
- import "./chunk-OGZZUDJJ.js";
56
- import "./chunk-JPSRC732.js";
46
+ } from "./chunk-GIGZTI74.js";
47
+ import "./chunk-6MEHKUN6.js";
48
+ import {
49
+ proxiedTransport
50
+ } from "./chunk-JHZJBNDO.js";
51
+ import "./chunk-CSXCCK6J.js";
52
+ import "./chunk-3O25FAPA.js";
53
+ import "./chunk-TI5U6AUT.js";
54
+ import "./chunk-6DJJVFSG.js";
55
+ import "./chunk-J5RB4ASI.js";
56
+ import "./chunk-AHVWZDXO.js";
57
+ import "./chunk-XS4EE7MO.js";
58
+ import "./chunk-7GGDCQJ5.js";
57
59
  import {
58
60
  uploadBlob,
59
61
  validateFormattedText
60
- } from "./chunk-B4LGDOG5.js";
61
- import "./chunk-WAVRUADL.js";
62
- import "./chunk-AERP2QR6.js";
63
- import "./chunk-SMQ45RZX.js";
62
+ } from "./chunk-YHTSJMZ5.js";
63
+ import "./chunk-M323L5SG.js";
64
+ import "./chunk-3PG6QVQZ.js";
65
+ import "./chunk-TKWYXM7L.js";
64
66
  import "./chunk-2ABQZVK4.js";
65
- import "./chunk-IYJ4B632.js";
66
- import "./chunk-A5D3J7XZ.js";
67
- import "./chunk-YVI5SQPY.js";
68
- import "./chunk-QNEAPLOP.js";
69
- import "./chunk-3QHKZLBU.js";
70
- import "./chunk-NLRGMP7M.js";
71
- import "./chunk-QS46C5SW.js";
72
- import "./chunk-YAPO7QNO.js";
73
- import "./chunk-IY7CTAOQ.js";
74
- import "./chunk-AUZWIBHJ.js";
75
- import "./chunk-N5LZ6L4D.js";
76
- import "./chunk-FKGYXIN7.js";
77
- import "./chunk-PYECFCPD.js";
78
- import "./chunk-HBSKP7OV.js";
79
- import "./chunk-42MXCMW6.js";
80
- import "./chunk-YRXSNH3R.js";
67
+ import "./chunk-MXA3FU2R.js";
68
+ import "./chunk-ZW2N2GI2.js";
69
+ import "./chunk-FR3ATU5I.js";
70
+ import "./chunk-ANBI3OXK.js";
71
+ import "./chunk-RVA3CRSY.js";
72
+ import "./chunk-H3TLAYGY.js";
73
+ import "./chunk-HETHFOHC.js";
74
+ import "./chunk-V6G4LTXU.js";
75
+ import "./chunk-PRM7GKBV.js";
76
+ import "./chunk-QYRK4XXH.js";
77
+ import "./chunk-O3QBO6NW.js";
78
+ import "./chunk-CNGNR4CY.js";
79
+ import "./chunk-JAL443BH.js";
80
+ import "./chunk-MMDFPBFZ.js";
81
+ import "./chunk-DG35TQ6P.js";
82
+ import "./chunk-MUV73B5A.js";
83
+ import "./chunk-ZC7OEYDX.js";
84
+ import "./chunk-Z77R76S2.js";
85
+ import "./chunk-NUD4CBHK.js";
86
+ import "./chunk-JXEO5EIN.js";
81
87
  import {
82
88
  observedCounters,
83
89
  pickChat
84
- } from "./chunk-Y57EKZZK.js";
85
- import "./chunk-CFWFESBO.js";
86
- import "./chunk-BMI2NWFI.js";
87
- import "./chunk-FIUH52FE.js";
88
- import "./chunk-UAFSDTID.js";
89
- import "./chunk-JDNDWZYS.js";
90
- import "./chunk-ZZ32DXTH.js";
90
+ } from "./chunk-4R2ZJGFF.js";
91
+ import "./chunk-O4ZOQJ6W.js";
92
+ import "./chunk-PRI2XTM7.js";
93
+ import "./chunk-3ZNO27UE.js";
94
+ import "./chunk-W2QSDPG6.js";
95
+ import "./chunk-VNJRWFHP.js";
96
+ import "./chunk-FR4Y5CGW.js";
97
+ import "./chunk-PZ2ZFPGO.js";
91
98
  import "./chunk-D72URWJE.js";
92
- import "./chunk-DXPGMUOR.js";
93
- import "./chunk-OIRNHSAH.js";
94
- import "./chunk-JMJOWT4N.js";
95
- import "./chunk-2LZD2VFV.js";
96
- import "./chunk-O43PARFS.js";
97
- import "./chunk-LG3K5NHX.js";
98
- import "./chunk-7SEVVE3X.js";
99
- import "./chunk-74UPKW7H.js";
100
- import "./chunk-DSJNZXTP.js";
101
- import "./chunk-NWCFO37P.js";
102
- import "./chunk-4YB7JU2W.js";
103
- import "./chunk-LF6FACSW.js";
104
- import "./chunk-EPR67IRV.js";
99
+ import "./chunk-3QQWTP77.js";
100
+ import "./chunk-L4PNDW4S.js";
101
+ import "./chunk-VH4J7IIS.js";
102
+ import "./chunk-IJ7R2WMK.js";
103
+ import "./chunk-CDKXZLMP.js";
104
+ import "./chunk-L47PFECD.js";
105
+ import "./chunk-CA7DY2YU.js";
106
+ import "./chunk-OJSPB4LA.js";
107
+ import "./chunk-K5FK6WWN.js";
108
+ import "./chunk-XLNV3U6N.js";
109
+ import "./chunk-HEZK4W3U.js";
110
+ import "./chunk-4X6BX3XP.js";
111
+ import "./chunk-2JWY7CXJ.js";
105
112
  import {
106
113
  currentAttempt,
107
114
  runEvent
108
- } from "./chunk-KJICORS4.js";
109
- import "./chunk-NWDADTPE.js";
110
- import "./chunk-U7PHJSTX.js";
111
- import "./chunk-M2TV6BDB.js";
112
- import "./chunk-PG37E63A.js";
113
- import "./chunk-VKE77B3F.js";
114
- import "./chunk-FPSRT2TX.js";
115
- import "./chunk-44A2XRDE.js";
116
- import "./chunk-4EDJJQJI.js";
115
+ } from "./chunk-HD7DV5B2.js";
116
+ import "./chunk-WPXVJGSL.js";
117
+ import "./chunk-JCDD5T3A.js";
118
+ import "./chunk-77E7Q4EQ.js";
119
+ import "./chunk-NYEVPAF2.js";
120
+ import "./chunk-UTTEAOJ3.js";
121
+ import "./chunk-XVRLD3LN.js";
122
+ import "./chunk-6UNLEQA5.js";
123
+ import "./chunk-SPXNI53Z.js";
117
124
  import "./chunk-Y5E2WNWB.js";
118
125
  import {
119
126
  CliError,
120
127
  isCliError
121
- } from "./chunk-5RDNBG7D.js";
128
+ } from "./chunk-PK5WEGPJ.js";
122
129
  import {
123
130
  __name
124
131
  } from "./chunk-ZVVMGPBJ.js";
@@ -1635,6 +1642,36 @@ var scheduled = /* @__PURE__ */ __name((feature, reference) => {
1635
1642
  return queued.map(toMessage).sort((a, b) => a.timestamp.localeCompare(b.timestamp));
1636
1643
  });
1637
1644
  }, "scheduled");
1645
+ var scheduledNumbers = /* @__PURE__ */ __name((ids) => ids.map((id) => messageNumber(id, "a scheduled id is a number")), "scheduledNumbers");
1646
+ var cancelScheduled = /* @__PURE__ */ __name((feature, chatId, ids) => {
1647
+ const numbers = scheduledNumbers(ids);
1648
+ return feature.write("the scheduled messages may have been cancelled \u2014 repeating it is safe", () => feature.client.deleteScheduledMessages(Number(chatId), numbers));
1649
+ }, "cancelScheduled");
1650
+ var editScheduled = /* @__PURE__ */ __name((feature, chatId, messageId, { text, formatting, at }) => {
1651
+ const [id] = scheduledNumbers([messageId]);
1652
+ const body = text === void 0 ? void 0 : formatting ? toFormatted(text, formatting) : text;
1653
+ return feature.call(async () => {
1654
+ try {
1655
+ return toMessage(await feature.client.editMessage({
1656
+ chatId: Number(chatId),
1657
+ message: id,
1658
+ ...body === void 0 ? {} : { text: body },
1659
+ scheduleDate: new Date(at)
1660
+ }));
1661
+ } catch (error) {
1662
+ if (tl8.RpcError.is(error, "MESSAGE_NOT_MODIFIED")) {
1663
+ const [current] = await feature.client.getScheduledMessages(Number(chatId), [id]);
1664
+ if (current)
1665
+ return toMessage(current);
1666
+ }
1667
+ throw unknownIfUnanswered(error, "the edit may have been made \u2014 repeating it is safe");
1668
+ }
1669
+ });
1670
+ }, "editScheduled");
1671
+ var sendScheduled = /* @__PURE__ */ __name((feature, chatId, ids) => {
1672
+ const numbers = scheduledNumbers(ids);
1673
+ return feature.write("the scheduled messages may have been sent \u2014 check the chat and its scheduled list before repeating", async () => (await feature.client.sendScheduled(Number(chatId), numbers)).map(toMessage));
1674
+ }, "sendScheduled");
1638
1675
  var saveDraft = /* @__PURE__ */ __name((feature, chatId, text, { replyTo, threadId, formatting, noPreview }) => {
1639
1676
  if (text.trim() === "")
1640
1677
  throw new CliError("validation_error", "a draft needs nonempty text; clearing is not supported");
@@ -2709,12 +2746,11 @@ var TelegramAdapter = class _TelegramAdapter {
2709
2746
  fetchCounters(reference, messageId, fields, signal) {
2710
2747
  return fetchCounters(this.#feature, reference, messageId, fields, signal);
2711
2748
  }
2712
- permalink(chatId, messageId) {
2713
- return permalink(this.#feature, chatId, messageId);
2714
- }
2715
- scheduled(reference) {
2716
- return scheduled(this.#feature, reference);
2717
- }
2749
+ permalink = /* @__PURE__ */ __name((chatId, messageId) => permalink(this.#feature, chatId, messageId), "permalink");
2750
+ scheduled = /* @__PURE__ */ __name((reference) => scheduled(this.#feature, reference), "scheduled");
2751
+ cancelScheduled = /* @__PURE__ */ __name((chatId, ids) => cancelScheduled(this.#feature, chatId, ids), "cancelScheduled");
2752
+ editScheduled = /* @__PURE__ */ __name((chatId, id, change) => editScheduled(this.#feature, chatId, id, change), "editScheduled");
2753
+ sendScheduled = /* @__PURE__ */ __name((chatId, ids) => sendScheduled(this.#feature, chatId, ids), "sendScheduled");
2718
2754
  send(chatId, text, options) {
2719
2755
  return send(this.#feature, chatId, text, options);
2720
2756
  }
@@ -0,0 +1,37 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ runCommandForAgent,
5
+ toolsFromCommands
6
+ } from "./chunk-WGGUKQE7.js";
7
+ import "./chunk-V6G4LTXU.js";
8
+ import "./chunk-YPJCURT6.js";
9
+ import "./chunk-PRM7GKBV.js";
10
+ import "./chunk-QYRK4XXH.js";
11
+ import "./chunk-PL5P7UKW.js";
12
+ import "./chunk-W2QSDPG6.js";
13
+ import "./chunk-CDKXZLMP.js";
14
+ import "./chunk-L47PFECD.js";
15
+ import "./chunk-CA7DY2YU.js";
16
+ import "./chunk-OJSPB4LA.js";
17
+ import "./chunk-K5FK6WWN.js";
18
+ import "./chunk-XLNV3U6N.js";
19
+ import "./chunk-HEZK4W3U.js";
20
+ import "./chunk-4X6BX3XP.js";
21
+ import "./chunk-2JWY7CXJ.js";
22
+ import "./chunk-HD7DV5B2.js";
23
+ import "./chunk-WPXVJGSL.js";
24
+ import "./chunk-JCDD5T3A.js";
25
+ import "./chunk-77E7Q4EQ.js";
26
+ import "./chunk-NYEVPAF2.js";
27
+ import "./chunk-UTTEAOJ3.js";
28
+ import "./chunk-XVRLD3LN.js";
29
+ import "./chunk-6UNLEQA5.js";
30
+ import "./chunk-SPXNI53Z.js";
31
+ import "./chunk-Y5E2WNWB.js";
32
+ import "./chunk-PK5WEGPJ.js";
33
+ import "./chunk-ZVVMGPBJ.js";
34
+ export {
35
+ runCommandForAgent,
36
+ toolsFromCommands
37
+ };
@@ -1,33 +1,36 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
- CALLER_META_KEY,
5
- PROXY_CLIENT_NAME,
6
4
  StdioServerTransport,
7
5
  answeredWire,
8
- callerOf,
9
6
  serveStdio
10
- } from "./chunk-6LPUK62N.js";
7
+ } from "./chunk-4S2DHHJM.js";
8
+ import {
9
+ CALLER_META_KEY,
10
+ PROXY_CLIENT_NAME,
11
+ callerOf
12
+ } from "./chunk-YPJCURT6.js";
11
13
  import {
14
+ InMemoryTransport,
12
15
  McpServer
13
- } from "./chunk-5D4AEUVA.js";
14
- import "./chunk-LG3K5NHX.js";
15
- import "./chunk-NWDADTPE.js";
16
- import "./chunk-VKE77B3F.js";
17
- import "./chunk-44A2XRDE.js";
16
+ } from "./chunk-PL5P7UKW.js";
17
+ import "./chunk-L47PFECD.js";
18
+ import "./chunk-WPXVJGSL.js";
19
+ import "./chunk-UTTEAOJ3.js";
20
+ import "./chunk-6UNLEQA5.js";
18
21
  import {
19
22
  errorObjectOf,
20
23
  mcpErrorResult
21
- } from "./chunk-4EDJJQJI.js";
24
+ } from "./chunk-SPXNI53Z.js";
22
25
  import "./chunk-Y5E2WNWB.js";
23
26
  import {
24
27
  CliError
25
- } from "./chunk-5RDNBG7D.js";
28
+ } from "./chunk-PK5WEGPJ.js";
26
29
  import {
27
30
  __name
28
31
  } from "./chunk-ZVVMGPBJ.js";
29
32
 
30
- // node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
33
+ // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
31
34
  import { spawn } from "node:child_process";
32
35
  import { randomUUID } from "node:crypto";
33
36
  var PROTOCOL = "2025-06-18";
@@ -168,13 +171,16 @@ var withProfile = /* @__PURE__ */ __name((tool, profiles, name, signedIn = () =>
168
171
  inputSchema: {
169
172
  ...tool.inputSchema,
170
173
  properties: {
171
- profile: {
174
+ profile: profiles.length === 0 ? (
175
+ // An empty enum matches nothing, and a directory that checks the schema refuses the tool.
176
+ {
177
+ type: "string",
178
+ description: `Which ${name} account, by its profile. None is set up on this computer yet.`
179
+ }
180
+ ) : {
172
181
  type: "string",
173
182
  enum: [...profiles],
174
- oneOf: profiles.map((profile) => ({
175
- const: profile,
176
- title: signedIn(profile) ? profile : `${profile} \u2014 not signed in`
177
- })),
183
+ oneOf: profiles.map((one) => ({ const: one, title: signedIn(one) ? one : `${one} \u2014 not signed in` })),
178
184
  description: `Which ${name} account, by its profile. If the owner did not name one, ask which \u2014 never guess.${states}`
179
185
  },
180
186
  ...schema.properties
@@ -197,9 +203,14 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
197
203
  const signedIn = /* @__PURE__ */ __name((profile) => options.signedIn?.(profile) ?? true, "signedIn");
198
204
  const build = /* @__PURE__ */ __name(() => {
199
205
  const profiles = [...options.profiles()].sort();
200
- const server = new McpServer({ name: options.command, version: options.version }, { capabilities: { tools: {} }, instructions: options.instructions });
206
+ const server = new McpServer({ name: options.command, version: options.version }, {
207
+ capabilities: { tools: {} },
208
+ // Read per session, as the profiles are: clients cut the instructions short, so this line comes first.
209
+ instructions: profiles.length === 0 && options.setup ? `${options.setup.charAt(0).toUpperCase()}${options.setup.slice(1)}.
210
+ ${options.instructions}` : options.instructions
211
+ });
201
212
  server.server.setRequestHandler("tools/list", async () => ({
202
- tools: profiles.length === 0 ? [] : (await tools(profiles)).map((one) => withProfile(one, profiles, options.name, signedIn))
213
+ tools: (profiles.length === 0 ? await options.catalogue?.() ?? [] : await tools(profiles)).map((one) => withProfile(one, profiles, options.name, signedIn))
203
214
  }));
204
215
  const callers = {
205
216
  env: options.env ?? process.env,
@@ -209,6 +220,8 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
209
220
  server.server.setRequestHandler("tools/call", async (request, ctx) => {
210
221
  const { name, arguments: given = {}, _meta } = request.params;
211
222
  const { profile, ...rest } = given;
223
+ if (profiles.length === 0)
224
+ return refusal("configuration_error", options.setup ?? `no ${options.command} profile on this computer yet.`);
212
225
  if (typeof profile !== "string" || !profiles.includes(profile))
213
226
  return refusal("validation_error", `${name} needs "profile", one of: ${profiles.join(", ")}. If the owner did not say which account, ask.`);
214
227
  if (!signedIn(profile))
@@ -230,6 +243,34 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
230
243
  }, "build");
231
244
  return { build, close: /* @__PURE__ */ __name(() => children.close(), "close") };
232
245
  }, "allProfilesServer");
246
+ var listedTools = /* @__PURE__ */ __name(async (server) => {
247
+ const [own, other] = InMemoryTransport.createLinkedPair();
248
+ const answers = /* @__PURE__ */ new Map();
249
+ other.onmessage = (message) => {
250
+ const { id, result, error } = message;
251
+ if (typeof id === "number")
252
+ answers.get(id)?.(result, error);
253
+ };
254
+ const ask = /* @__PURE__ */ __name((id, method, params) => new Promise((resolve, reject) => {
255
+ answers.set(id, (result, error) => error || !result ? reject(new Error(error?.message ?? `${method} had no answer`)) : resolve(result));
256
+ void other.send({ jsonrpc: "2.0", id, method, params });
257
+ }), "ask");
258
+ await server.connect(own);
259
+ try {
260
+ await ask(1, "initialize", {
261
+ protocolVersion: PROTOCOL,
262
+ capabilities: {},
263
+ clientInfo: { name: PROXY_CLIENT_NAME, version: "1" }
264
+ });
265
+ await other.send({ jsonrpc: "2.0", method: "notifications/initialized" });
266
+ const answer = await ask(2, "tools/list", {});
267
+ if (!Array.isArray(answer.tools))
268
+ throw new Error("the catalogue server listed no tools");
269
+ return answer.tools;
270
+ } finally {
271
+ await server.close();
272
+ }
273
+ }, "listedTools");
233
274
  var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {}) => {
234
275
  const { build, close } = allProfilesServer(options);
235
276
  const own = io.stdin !== void 0 && io.stdin !== process.stdin;
@@ -248,7 +289,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
248
289
  }, "serveAllProfilesOverStdio");
249
290
  var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
250
291
  const { build, close } = allProfilesServer(options);
251
- const { serveOverHttp } = await import("./serve-XMQEOIG2.js");
292
+ const { serveOverHttp } = await import("./serve-VSLLMILH.js");
252
293
  const listening = await serveOverHttp(build, {
253
294
  ...http,
254
295
  appName: options.command,
@@ -271,6 +312,7 @@ var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
271
312
  export {
272
313
  CHILD_IDLE_MS,
273
314
  allProfilesServer,
315
+ listedTools,
274
316
  serveAllProfilesOverHttp,
275
317
  serveAllProfilesOverStdio,
276
318
  withProfile
@@ -5,11 +5,11 @@ import {
5
5
  checkedOptions,
6
6
  messagesFor,
7
7
  systemFor
8
- } from "./chunk-JDNDWZYS.js";
8
+ } from "./chunk-FR4Y5CGW.js";
9
9
  import {
10
10
  Anthropic
11
11
  } from "./chunk-ADLS6FVG.js";
12
- import "./chunk-44A2XRDE.js";
12
+ import "./chunk-6UNLEQA5.js";
13
13
  import {
14
14
  array,
15
15
  literal,
@@ -19,14 +19,14 @@ import {
19
19
  strictObject,
20
20
  string,
21
21
  unknown
22
- } from "./chunk-4EDJJQJI.js";
22
+ } from "./chunk-SPXNI53Z.js";
23
23
  import "./chunk-Y5E2WNWB.js";
24
- import "./chunk-5RDNBG7D.js";
24
+ import "./chunk-PK5WEGPJ.js";
25
25
  import {
26
26
  __name
27
27
  } from "./chunk-ZVVMGPBJ.js";
28
28
 
29
- // node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/models/anthropic.js
29
+ // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/models/anthropic.js
30
30
  var options = strictObject({
31
31
  stop_sequences: optional(array(string())),
32
32
  thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
@@ -3,60 +3,71 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PER_RUN,
5
5
  envelope
6
- } from "./chunk-PR4F3TYK.js";
6
+ } from "./chunk-AYWST6NA.js";
7
7
  import {
8
8
  mcpUrlOf
9
- } from "./chunk-ZRW3DF25.js";
9
+ } from "./chunk-TI5U6AUT.js";
10
+ import {
11
+ skillResources
12
+ } from "./chunk-6DJJVFSG.js";
13
+ import {
14
+ appInstructions
15
+ } from "./chunk-JWNSG5GI.js";
10
16
  import {
11
17
  answered,
12
18
  failed,
13
- registerCommands,
14
- runCommandForAgent,
15
- toolsFromCommands
16
- } from "./chunk-ESOFH7PA.js";
19
+ registerCommands
20
+ } from "./chunk-JWLODUN3.js";
17
21
  import {
18
- agentJson,
19
- skillResource
20
- } from "./chunk-5UPEEMEF.js";
22
+ agentJson
23
+ } from "./chunk-J5RB4ASI.js";
21
24
  import {
22
25
  StdioServerTransport,
23
26
  answeredWire,
24
27
  serveStdio
25
- } from "./chunk-6LPUK62N.js";
26
- import {
27
- McpServer
28
- } from "./chunk-5D4AEUVA.js";
29
- import "./chunk-JPSRC732.js";
30
- import "./chunk-B4LGDOG5.js";
31
- import "./chunk-WAVRUADL.js";
32
- import "./chunk-AERP2QR6.js";
33
- import "./chunk-A5D3J7XZ.js";
34
- import "./chunk-YVI5SQPY.js";
28
+ } from "./chunk-4S2DHHJM.js";
29
+ import "./chunk-XS4EE7MO.js";
30
+ import "./chunk-7GGDCQJ5.js";
31
+ import "./chunk-YHTSJMZ5.js";
32
+ import "./chunk-M323L5SG.js";
33
+ import "./chunk-3PG6QVQZ.js";
34
+ import "./chunk-MXA3FU2R.js";
35
+ import "./chunk-FR3ATU5I.js";
36
+ import "./chunk-ANBI3OXK.js";
35
37
  import {
36
38
  mcpHttpMarker
37
- } from "./chunk-3QHKZLBU.js";
38
- import "./chunk-NLRGMP7M.js";
39
+ } from "./chunk-H3TLAYGY.js";
40
+ import "./chunk-HETHFOHC.js";
39
41
  import {
40
- appInstructions
41
- } from "./chunk-4CKYANQH.js";
42
- import "./chunk-QS46C5SW.js";
43
- import "./chunk-YAPO7QNO.js";
44
- import "./chunk-IY7CTAOQ.js";
45
- import "./chunk-AUZWIBHJ.js";
46
- import "./chunk-N5LZ6L4D.js";
47
- import "./chunk-PYECFCPD.js";
48
- import "./chunk-YRXSNH3R.js";
49
- import "./chunk-Y57EKZZK.js";
50
- import "./chunk-CFWFESBO.js";
51
- import "./chunk-BMI2NWFI.js";
52
- import "./chunk-FIUH52FE.js";
53
- import "./chunk-UAFSDTID.js";
54
- import "./chunk-JDNDWZYS.js";
55
- import "./chunk-ZZ32DXTH.js";
42
+ runCommandForAgent,
43
+ toolsFromCommands
44
+ } from "./chunk-WGGUKQE7.js";
45
+ import "./chunk-V6G4LTXU.js";
46
+ import "./chunk-YPJCURT6.js";
47
+ import "./chunk-PRM7GKBV.js";
48
+ import "./chunk-QYRK4XXH.js";
49
+ import {
50
+ McpServer
51
+ } from "./chunk-PL5P7UKW.js";
52
+ import "./chunk-O3QBO6NW.js";
53
+ import "./chunk-CNGNR4CY.js";
54
+ import "./chunk-JAL443BH.js";
55
+ import "./chunk-MMDFPBFZ.js";
56
+ import "./chunk-DG35TQ6P.js";
57
+ import "./chunk-ZC7OEYDX.js";
58
+ import "./chunk-JXEO5EIN.js";
59
+ import "./chunk-4R2ZJGFF.js";
60
+ import "./chunk-O4ZOQJ6W.js";
61
+ import "./chunk-PRI2XTM7.js";
62
+ import "./chunk-3ZNO27UE.js";
63
+ import "./chunk-W2QSDPG6.js";
64
+ import "./chunk-VNJRWFHP.js";
65
+ import "./chunk-FR4Y5CGW.js";
66
+ import "./chunk-PZ2ZFPGO.js";
56
67
  import "./chunk-D72URWJE.js";
57
- import "./chunk-OIRNHSAH.js";
58
- import "./chunk-JMJOWT4N.js";
59
- import "./chunk-2LZD2VFV.js";
68
+ import "./chunk-L4PNDW4S.js";
69
+ import "./chunk-VH4J7IIS.js";
70
+ import "./chunk-IJ7R2WMK.js";
60
71
  import {
61
72
  DEFAULT_OUTPUT_BYTES,
62
73
  changesAuthorityAt,
@@ -66,37 +77,37 @@ import {
66
77
  judgedTargets,
67
78
  readsOverMcpAt,
68
79
  rootOf2 as rootOf
69
- } from "./chunk-O43PARFS.js";
70
- import "./chunk-LG3K5NHX.js";
71
- import "./chunk-7SEVVE3X.js";
80
+ } from "./chunk-CDKXZLMP.js";
81
+ import "./chunk-L47PFECD.js";
82
+ import "./chunk-CA7DY2YU.js";
72
83
  import {
73
84
  readOnlyLockOf
74
- } from "./chunk-74UPKW7H.js";
75
- import "./chunk-DSJNZXTP.js";
76
- import "./chunk-NWCFO37P.js";
77
- import "./chunk-4YB7JU2W.js";
78
- import "./chunk-LF6FACSW.js";
79
- import "./chunk-EPR67IRV.js";
80
- import "./chunk-KJICORS4.js";
81
- import "./chunk-NWDADTPE.js";
82
- import "./chunk-U7PHJSTX.js";
83
- import "./chunk-M2TV6BDB.js";
84
- import "./chunk-PG37E63A.js";
85
- import "./chunk-VKE77B3F.js";
86
- import "./chunk-FPSRT2TX.js";
87
- import "./chunk-44A2XRDE.js";
85
+ } from "./chunk-OJSPB4LA.js";
86
+ import "./chunk-K5FK6WWN.js";
87
+ import "./chunk-XLNV3U6N.js";
88
+ import "./chunk-HEZK4W3U.js";
89
+ import "./chunk-4X6BX3XP.js";
90
+ import "./chunk-2JWY7CXJ.js";
91
+ import "./chunk-HD7DV5B2.js";
92
+ import "./chunk-WPXVJGSL.js";
93
+ import "./chunk-JCDD5T3A.js";
94
+ import "./chunk-77E7Q4EQ.js";
95
+ import "./chunk-NYEVPAF2.js";
96
+ import "./chunk-UTTEAOJ3.js";
97
+ import "./chunk-XVRLD3LN.js";
98
+ import "./chunk-6UNLEQA5.js";
88
99
  import {
89
100
  mcpErrorResult
90
- } from "./chunk-4EDJJQJI.js";
101
+ } from "./chunk-SPXNI53Z.js";
91
102
  import "./chunk-Y5E2WNWB.js";
92
103
  import {
93
104
  CliError
94
- } from "./chunk-5RDNBG7D.js";
105
+ } from "./chunk-PK5WEGPJ.js";
95
106
  import {
96
107
  __name
97
108
  } from "./chunk-ZVVMGPBJ.js";
98
109
 
99
- // node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
110
+ // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
100
111
  var EXCLUDED = [["mcp"]];
101
112
  var aliasesOf = /* @__PURE__ */ __name((root, path) => {
102
113
  let at = root;
@@ -177,7 +188,8 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
177
188
  }, "run")
178
189
  }
179
190
  ]));
180
- const skill = options.skill ? skillResource(app, options.skill) : void 0;
191
+ const skills = options.skill ? skillResources(app, options.skill) : [];
192
+ const skill = skills[0];
181
193
  const build = /* @__PURE__ */ __name(() => {
182
194
  const server = new McpServer({ name: app.command, version: app.version }, {
183
195
  instructions: appInstructions({
@@ -189,10 +201,8 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
189
201
  })
190
202
  });
191
203
  registerCommands(server, app.command, commands, app.errors, void 0, app.messenger);
192
- if (skill) {
193
- const { uri, name, title, description, mimeType, read } = skill;
204
+ for (const { uri, name, title, description, mimeType, read } of skills)
194
205
  server.registerResource(name, uri, { title, description, mimeType }, read);
195
- }
196
206
  return server;
197
207
  }, "build");
198
208
  return { build, offered: Object.keys(commands) };
@@ -213,7 +223,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
213
223
  var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
214
224
  const { app } = options;
215
225
  const { build } = createAppServer(command, context, options);
216
- const { serveOverHttp } = await import("./serve-XMQEOIG2.js");
226
+ const { serveOverHttp } = await import("./serve-VSLLMILH.js");
217
227
  const listening = await serveOverHttp(build, {
218
228
  ...http,
219
229
  appName: app.command,