@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
@@ -12,7 +12,13 @@ import {
12
12
  refuseWriteBeforeConnecting,
13
13
  registerPrompts,
14
14
  syncsFirst
15
- } from "./chunk-ZRW3DF25.js";
15
+ } from "./chunk-TI5U6AUT.js";
16
+ import {
17
+ skillResources
18
+ } from "./chunk-6DJJVFSG.js";
19
+ import {
20
+ instructions
21
+ } from "./chunk-JWNSG5GI.js";
16
22
  import {
17
23
  BinaryResource,
18
24
  Picture,
@@ -27,60 +33,64 @@ import {
27
33
  outcomeOf,
28
34
  outputOf,
29
35
  registerCommands,
30
- runCommandForAgent,
31
36
  surfaceCommands,
32
37
  tierOf,
33
38
  tool,
34
- toolKey,
35
- toolsFromCommands
36
- } from "./chunk-ESOFH7PA.js";
39
+ toolKey
40
+ } from "./chunk-JWLODUN3.js";
37
41
  import {
38
- agentJson,
39
- skillResource
40
- } from "./chunk-5UPEEMEF.js";
42
+ agentJson
43
+ } from "./chunk-J5RB4ASI.js";
41
44
  import {
42
45
  StdioServerTransport,
43
46
  answeredWire,
44
- callerOf,
45
- callingAgent,
46
47
  serveStdio
47
- } from "./chunk-6LPUK62N.js";
48
- import {
49
- McpServer,
50
- ResourceTemplate
51
- } from "./chunk-5D4AEUVA.js";
48
+ } from "./chunk-4S2DHHJM.js";
52
49
  import {
53
50
  connectedFor
54
- } from "./chunk-JPSRC732.js";
51
+ } from "./chunk-XS4EE7MO.js";
52
+ import {
53
+ wholeList
54
+ } from "./chunk-7GGDCQJ5.js";
55
55
  import {
56
- capability,
57
- dateWindow,
58
56
  guardFor,
59
57
  imageSize,
60
58
  lackedNeed,
61
59
  servicesFor,
62
- storedDeps,
63
- wholeList
64
- } from "./chunk-B4LGDOG5.js";
60
+ storedDeps
61
+ } from "./chunk-YHTSJMZ5.js";
65
62
  import {
66
63
  mcpHttpMarker
67
- } from "./chunk-3QHKZLBU.js";
64
+ } from "./chunk-H3TLAYGY.js";
68
65
  import {
69
- instructions
70
- } from "./chunk-4CKYANQH.js";
66
+ runCommandForAgent,
67
+ toolsFromCommands
68
+ } from "./chunk-WGGUKQE7.js";
69
+ import {
70
+ callerOf,
71
+ callingAgent
72
+ } from "./chunk-YPJCURT6.js";
73
+ import {
74
+ capability,
75
+ dateWindow
76
+ } from "./chunk-QYRK4XXH.js";
77
+ import {
78
+ McpServer,
79
+ ResourceTemplate
80
+ } from "./chunk-PL5P7UKW.js";
71
81
  import {
72
82
  warmEmbedders
73
- } from "./chunk-AUZWIBHJ.js";
83
+ } from "./chunk-MMDFPBFZ.js";
74
84
  import {
75
85
  stdinFieldOf
76
- } from "./chunk-PYECFCPD.js";
86
+ } from "./chunk-ZC7OEYDX.js";
77
87
  import {
78
88
  openStore,
79
89
  pdfPreviewLimits
80
- } from "./chunk-Y57EKZZK.js";
90
+ } from "./chunk-4R2ZJGFF.js";
81
91
  import {
82
92
  findCommand
83
- } from "./chunk-2LZD2VFV.js";
93
+ } from "./chunk-IJ7R2WMK.js";
84
94
  import {
85
95
  DEFAULT_OUTPUT_BYTES,
86
96
  changesAuthorityAt,
@@ -97,22 +107,22 @@ import {
97
107
  rootOf2 as rootOf,
98
108
  sealed,
99
109
  snakeKeys
100
- } from "./chunk-O43PARFS.js";
110
+ } from "./chunk-CDKXZLMP.js";
101
111
  import {
102
112
  withCaller
103
- } from "./chunk-LG3K5NHX.js";
113
+ } from "./chunk-L47PFECD.js";
104
114
  import {
105
115
  readOnlyLockOf
106
- } from "./chunk-74UPKW7H.js";
116
+ } from "./chunk-OJSPB4LA.js";
107
117
  import {
108
118
  typedCommand
109
- } from "./chunk-KJICORS4.js";
119
+ } from "./chunk-HD7DV5B2.js";
110
120
  import {
111
121
  isCliFailure
112
- } from "./chunk-NWDADTPE.js";
122
+ } from "./chunk-WPXVJGSL.js";
113
123
  import {
114
124
  timezoneOf
115
- } from "./chunk-PG37E63A.js";
125
+ } from "./chunk-NYEVPAF2.js";
116
126
  import {
117
127
  description,
118
128
  errorObjectOf,
@@ -129,19 +139,19 @@ import {
129
139
  regex,
130
140
  strictObject,
131
141
  string
132
- } from "./chunk-4EDJJQJI.js";
142
+ } from "./chunk-SPXNI53Z.js";
133
143
  import {
134
144
  CliError,
135
145
  visibleControls
136
- } from "./chunk-5RDNBG7D.js";
146
+ } from "./chunk-PK5WEGPJ.js";
137
147
  import {
138
148
  __name
139
149
  } from "./chunk-ZVVMGPBJ.js";
140
150
 
141
- // 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/server.js
151
+ // 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/server.js
142
152
  import { randomUUID } from "node:crypto";
143
153
 
144
- // 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/agent-log.js
154
+ // 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/agent-log.js
145
155
  var agentLog = /* @__PURE__ */ __name((open) => {
146
156
  let held;
147
157
  return {
@@ -160,7 +170,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
160
170
  };
161
171
  }, "agentLog");
162
172
 
163
- // 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/resources.js
173
+ // 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/resources.js
164
174
  var LISTED = 100;
165
175
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
166
176
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -198,7 +208,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
198
208
  });
199
209
  }, "registerResources");
200
210
 
201
- // 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/session.js
211
+ // 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/session.js
202
212
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
203
213
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
204
214
  var MessengerSession = class {
@@ -273,7 +283,7 @@ var MessengerSession = class {
273
283
  }
274
284
  };
275
285
 
276
- // 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/tools/attachments.js
286
+ // 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/tools/attachments.js
277
287
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
278
288
  const _command = messenger.app.command;
279
289
  return {
@@ -327,7 +337,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
327
337
  };
328
338
  }, "attachmentsTools");
329
339
 
330
- // 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/tools/messages-photo.js
340
+ // 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/tools/messages-photo.js
331
341
  var PHOTO_LIMIT = 512 * 1024;
332
342
  var IMAGE_TYPES = [
333
343
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -383,7 +393,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
383
393
  return new Uint8Array(Buffer.concat(chunks));
384
394
  }, "readUpTo");
385
395
 
386
- // 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/tools/stats.js
396
+ // 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/tools/stats.js
387
397
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
388
398
  stats_charts: tool({
389
399
  title: "A chart from a chat's statistics",
@@ -420,14 +430,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
420
430
  })
421
431
  }), "statsTools");
422
432
 
423
- // 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/tools.js
433
+ // 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/tools.js
424
434
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
425
435
  ...messagesPhotoTools(messenger),
426
436
  ...attachmentsTools(messenger),
427
437
  ...statsTools(messenger)
428
438
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
429
439
 
430
- // 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/server.js
440
+ // 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/server.js
431
441
  var PER_RUN = /* @__PURE__ */ new Set([
432
442
  "streams",
433
443
  "stdin",
@@ -545,7 +555,8 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
545
555
  ...messenger.diagnose ? { [messenger.provider]: await messenger.diagnose(command, context) } : {}
546
556
  }), "local")
547
557
  });
548
- const skill = messenger.skill ? skillResource(app, messenger.skill) : void 0;
558
+ const skills = messenger.skill ? skillResources(app, messenger.skill) : [];
559
+ const skill = skills[0];
549
560
  const log = agentLog(() => openStore({ env: context.env, command: app.command, version: app.version }));
550
561
  const audit = /* @__PURE__ */ __name(async (call, caller) => {
551
562
  if (!recalledAccount(app, provider, settings.profile, context.env))
@@ -715,10 +726,8 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
715
726
  });
716
727
  }, "assertRead")
717
728
  });
718
- if (skill) {
719
- const { uri, name: resource, title, description: description2, mimeType, read } = skill;
720
- server.registerResource(resource, uri, { title, description: description2, mimeType }, read);
721
- }
729
+ for (const { uri, name: name2, title, description: description2, mimeType, read } of skills)
730
+ server.registerResource(name2, uri, { title, description: description2, mimeType }, read);
722
731
  return server;
723
732
  }, "build");
724
733
  return { session, embedders, build, log, offered: [...commands.map((one) => one.command), ...pictured] };
@@ -744,7 +753,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
744
753
  }, "serveOverStdio");
745
754
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
746
755
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
747
- const { serveOverHttp } = await import("./serve-XMQEOIG2.js");
756
+ const { serveOverHttp } = await import("./serve-VSLLMILH.js");
748
757
  const appName = messenger.app.command;
749
758
  const appEnvPrefix = messenger.app.envPrefix;
750
759
  const listening = await serveOverHttp(build, {
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  readSharedSection,
5
5
  writeSharedSection
6
- } from "./chunk-M2TV6BDB.js";
6
+ } from "./chunk-77E7Q4EQ.js";
7
7
  import {
8
8
  CliError
9
- } from "./chunk-5RDNBG7D.js";
9
+ } from "./chunk-PK5WEGPJ.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // 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/cli/setup-answers.js
14
+ // 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/cli/setup-answers.js
15
15
  var PERMISSION_ANSWERS = ["readonly", "allow"];
16
16
  var QUESTIONS = ["languages", "tools", "permissions"];
17
17
  var SECTION = "setup";