@wirecat/drive-cli 0.71.0 → 0.72.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/README.md +150 -71
  2. package/contracts/wirecat.json +77 -8
  3. package/dist/bin/drive.js +2 -2
  4. package/dist/bundle/agent-GOCD4ZW2.js +46 -0
  5. package/dist/bundle/{all-profiles-3QJG2NAN.js → all-profiles-PZVP3G73.js} +67 -25
  6. package/dist/bundle/{anthropic-PSWTEU6G.js → anthropic-PUOTKSYV.js} +9 -9
  7. package/dist/bundle/{app-server-PVTA6ABR.js → app-server-MKDCXRZM.js} +97 -79
  8. package/dist/bundle/{bun-LU5LP3JI.js → bun-NS5YLOQT.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-PYMKLBRU.js → bun-sqlite-KSKWRLLO.js} +9 -9
  10. package/dist/bundle/{chunk-COOOO5B3.js → chunk-2CG3LUQS.js} +4 -4
  11. package/dist/bundle/{chunk-YVI5SQPY.js → chunk-2TVHFJKV.js} +1 -1
  12. package/dist/bundle/chunk-35FIJGTT.js +52 -0
  13. package/dist/bundle/chunk-35GROSBS.js +3233 -0
  14. package/dist/bundle/{chunk-D5TGYUVU.js → chunk-3CH7I452.js} +9 -60
  15. package/dist/bundle/{chunk-ICDCAQ6K.js → chunk-3QBRS3JT.js} +13 -9
  16. package/dist/bundle/chunk-3T7JIHSO.js +353 -0
  17. package/dist/bundle/{chunk-Q7DOMFJ4.js → chunk-3VIEGRBA.js} +6 -6
  18. package/dist/bundle/chunk-3YCUYFTD.js +2159 -0
  19. package/dist/bundle/{chunk-CJLVYIOP.js → chunk-3ZGWJYSG.js} +30 -21
  20. package/dist/bundle/{chunk-YPFWNVHV.js → chunk-43PCMVTZ.js} +2 -100
  21. package/dist/bundle/{chunk-OF422U5D.js → chunk-4DK55MLP.js} +402 -402
  22. package/dist/bundle/chunk-4HP6KGBI.js +32 -0
  23. package/dist/bundle/chunk-4P6D6CUS.js +282 -0
  24. package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
  25. package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
  26. package/dist/bundle/{chunk-6W763DZN.js → chunk-54O5NJRC.js} +14 -13
  27. package/dist/bundle/{chunk-MNLL5YLM.js → chunk-5BHP4FVM.js} +2 -2
  28. package/dist/bundle/{chunk-ACUAV6VX.js → chunk-6JU4KLAZ.js} +108 -72
  29. package/dist/bundle/{chunk-YMJ6IDGT.js → chunk-6KND2DYT.js} +38 -8
  30. package/dist/bundle/{chunk-4HWJOU7N.js → chunk-7YPZPJTB.js} +1 -1
  31. package/dist/bundle/chunk-A5XNUMW7.js +108 -0
  32. package/dist/bundle/{chunk-X4TIMMKJ.js → chunk-AG34MPVN.js} +1 -1
  33. package/dist/bundle/chunk-B5V2U7IS.js +221 -0
  34. package/dist/bundle/chunk-B6JC5RS3.js +696 -0
  35. package/dist/bundle/chunk-BDZXGDGI.js +80 -0
  36. package/dist/bundle/{chunk-B5KSXHJ7.js → chunk-BMTMGMGE.js} +1 -1
  37. package/dist/bundle/{chunk-ZCR3IRZ2.js → chunk-CP2TZXAG.js} +16 -9
  38. package/dist/bundle/{chunk-TAUBRNC5.js → chunk-DOEP4EPW.js} +72 -59
  39. package/dist/bundle/chunk-DQSOYH6N.js +20 -0
  40. package/dist/bundle/{chunk-QETR5HIZ.js → chunk-E2TMWONO.js} +4385 -2684
  41. package/dist/bundle/chunk-E5EYJU5R.js +7 -0
  42. package/dist/bundle/chunk-ECYOTDJM.js +14 -0
  43. package/dist/bundle/{chunk-HL52XXZX.js → chunk-EXHTGQR2.js} +3 -4
  44. package/dist/bundle/chunk-F4BX7TH2.js +15 -0
  45. package/dist/bundle/{chunk-ASMMG72J.js → chunk-FJQO5OHR.js} +261 -565
  46. package/dist/bundle/{chunk-RJOQH5YY.js → chunk-FKP4T7A4.js} +111 -859
  47. package/dist/bundle/{chunk-JDV7HNNQ.js → chunk-FTL3WXZB.js} +13 -26
  48. package/dist/bundle/{chunk-FP54WSIR.js → chunk-G2CH4FRW.js} +4 -4
  49. package/dist/bundle/chunk-G2KKMQRN.js +30 -0
  50. package/dist/bundle/{chunk-NYECVHFH.js → chunk-G4NHRFS7.js} +755 -0
  51. package/dist/bundle/{chunk-Y2NWGNUB.js → chunk-G7SKXAVZ.js} +5 -5
  52. package/dist/bundle/{chunk-FT3LN3HP.js → chunk-GFI3UUIU.js} +1 -1
  53. package/dist/bundle/chunk-GTPPUBYU.js +1876 -0
  54. package/dist/bundle/{chunk-QFR2PNJN.js → chunk-GTROGY74.js} +12 -12
  55. package/dist/bundle/{chunk-UTO2GO4P.js → chunk-GYAPDUF5.js} +45 -66
  56. package/dist/bundle/{chunk-GBKNJWOZ.js → chunk-HCMEU7AF.js} +8 -8
  57. package/dist/bundle/{chunk-FJH7DJWK.js → chunk-HDGJ7IDE.js} +6 -6
  58. package/dist/bundle/{chunk-Z3KUSRCF.js → chunk-HMN26CVU.js} +2 -2
  59. package/dist/bundle/{chunk-I4RWW3UD.js → chunk-HOICQNJX.js} +20 -5
  60. package/dist/bundle/{chunk-P7CUM5IB.js → chunk-HPS2YGSZ.js} +1 -1
  61. package/dist/bundle/{chunk-HMS6EEQL.js → chunk-HSASPXRW.js} +3 -3
  62. package/dist/bundle/{chunk-KGYVHPGE.js → chunk-IABPGOMT.js} +2 -2
  63. package/dist/bundle/{chunk-4QNW4NK6.js → chunk-IBQZT2YD.js} +1 -1
  64. package/dist/bundle/{chunk-PRW6SYA3.js → chunk-IE3R46YN.js} +313 -257
  65. package/dist/bundle/{chunk-7PDHGZN4.js → chunk-IE6O7463.js} +4 -4
  66. package/dist/bundle/{chunk-3UGYFXH6.js → chunk-IPBYU43F.js} +192 -379
  67. package/dist/bundle/{chunk-RWDKMU74.js → chunk-IS7STZEB.js} +3 -3
  68. package/dist/bundle/{chunk-GOWXXYEF.js → chunk-IV77ZFF4.js} +4 -4
  69. package/dist/bundle/{chunk-6XFIITOG.js → chunk-JDGF3YYS.js} +4811 -3486
  70. package/dist/bundle/{chunk-GPQ44Y2R.js → chunk-JHAACT4I.js} +2 -2
  71. package/dist/bundle/{chunk-SERXSCN3.js → chunk-JRED7BNX.js} +337 -390
  72. package/dist/bundle/{chunk-MIA7P6FZ.js → chunk-JSYUB4SM.js} +6 -6
  73. package/dist/bundle/{chunk-RESDD3Q4.js → chunk-JVM75M4H.js} +16 -3
  74. package/dist/bundle/{chunk-XF4EXO2C.js → chunk-JZ65CQWK.js} +6 -6
  75. package/dist/bundle/{chunk-QNRRK3CN.js → chunk-KBR7OC5S.js} +2 -2
  76. package/dist/bundle/chunk-KI6OOW6D.js +123 -0
  77. package/dist/bundle/chunk-KOI5G7NM.js +388 -0
  78. package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-KPBUJQKT.js} +1 -1
  79. package/dist/bundle/{chunk-2LHAVY4U.js → chunk-KVBGIZ2C.js} +1 -1
  80. package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
  81. package/dist/bundle/{chunk-SAKO3P4H.js → chunk-LKUWH6KU.js} +1 -1
  82. package/dist/bundle/chunk-MA6U4XH2.js +36 -0
  83. package/dist/bundle/{chunk-TAFHYHKA.js → chunk-MA7ETVTZ.js} +43 -186
  84. package/dist/bundle/{chunk-KYKW2W6X.js → chunk-MDJUYCHT.js} +1 -1
  85. package/dist/bundle/chunk-MEYYH47C.js +25 -0
  86. package/dist/bundle/{chunk-Z56QFOBR.js → chunk-MGC2BAD2.js} +1 -1
  87. package/dist/bundle/chunk-NMQRSEZM.js +37 -0
  88. package/dist/bundle/{chunk-5DPV7X27.js → chunk-NTZWY5R3.js} +321 -0
  89. package/dist/bundle/{chunk-OJSBWP3F.js → chunk-OBDPKDGB.js} +69 -7
  90. package/dist/bundle/{chunk-WVDCCYS3.js → chunk-ODTBJGWQ.js} +17 -17
  91. package/dist/bundle/chunk-PB6ACIME.js +80 -0
  92. package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
  93. package/dist/bundle/{chunk-72C4YOCH.js → chunk-PMAV3RNP.js} +7 -7
  94. package/dist/bundle/chunk-PSY67L73.js +783 -0
  95. package/dist/bundle/{chunk-6TNNT2MQ.js → chunk-PUVQOZ2N.js} +483 -176
  96. package/dist/bundle/{chunk-SDKQNOL5.js → chunk-QB7K6PIP.js} +6 -6
  97. package/dist/bundle/chunk-QK7GKFKB.js +188 -0
  98. package/dist/bundle/{chunk-4PA4DHYV.js → chunk-QMUWHKP5.js} +6 -6
  99. package/dist/bundle/chunk-QURQ2OU2.js +250 -0
  100. package/dist/bundle/{chunk-LXKYKRHD.js → chunk-R3EDZWXF.js} +8 -227
  101. package/dist/bundle/{chunk-KGERXYTV.js → chunk-RM4DO2WZ.js} +1 -1
  102. package/dist/bundle/chunk-S27UKJVL.js +730 -0
  103. package/dist/bundle/{chunk-22QQUKWA.js → chunk-S3SLDYTU.js} +1 -1
  104. package/dist/bundle/{chunk-FCS26CYQ.js → chunk-SAEBHENE.js} +4 -4
  105. package/dist/bundle/chunk-SM7Z2BQF.js +561 -0
  106. package/dist/bundle/{chunk-QXC6IEH6.js → chunk-SODB63MR.js} +201 -423
  107. package/dist/bundle/{chunk-2PUNKUYJ.js → chunk-SSFGSY77.js} +10320 -9907
  108. package/dist/bundle/{chunk-37MAA6F2.js → chunk-STUPCKAA.js} +11 -2221
  109. package/dist/bundle/{chunk-BKSQBBYG.js → chunk-SUQT4KI2.js} +9 -9
  110. package/dist/bundle/{chunk-YPNWIB6H.js → chunk-SWQDKO6D.js} +3 -3
  111. package/dist/bundle/chunk-SZ7XJZGH.js +2231 -0
  112. package/dist/bundle/{chunk-3N2OFXB5.js → chunk-T3OK6AYZ.js} +5 -5
  113. package/dist/bundle/{chunk-HKY7X6NY.js → chunk-TFIAD57H.js} +4 -4
  114. package/dist/bundle/chunk-TRYYWV7J.js +291 -0
  115. package/dist/bundle/{chunk-XMMFBPGC.js → chunk-TUL6MCTY.js} +3 -3
  116. package/dist/bundle/{chunk-6Y2BYFXQ.js → chunk-UC7JLE6J.js} +0 -7
  117. package/dist/bundle/{chunk-YJIGGUPI.js → chunk-UL5HSHFU.js} +4 -4
  118. package/dist/bundle/{chunk-3EBBLKIT.js → chunk-UT64BBEP.js} +4 -4
  119. package/dist/bundle/{chunk-26DHFMGZ.js → chunk-VBIZD5V5.js} +2 -2
  120. package/dist/bundle/chunk-VHTELRUA.js +50 -0
  121. package/dist/bundle/chunk-VOQICE3G.js +340 -0
  122. package/dist/bundle/{chunk-GZ2D4KXG.js → chunk-WDJRUNQN.js} +35 -12
  123. package/dist/bundle/{chunk-2UUWXPOB.js → chunk-X5CXANSA.js} +3 -3
  124. package/dist/bundle/{chunk-35SCQ4VI.js → chunk-X6HPQKAI.js} +43 -35
  125. package/dist/bundle/{chunk-COJSWDNU.js → chunk-XKWQDQ4B.js} +3 -3
  126. package/dist/bundle/{chunk-6SJOTNHF.js → chunk-XZEVHUKI.js} +6 -28
  127. package/dist/bundle/{chunk-JZHBZOJR.js → chunk-YE7DJB3F.js} +3 -3
  128. package/dist/bundle/chunk-YHWFF6DN.js +39 -0
  129. package/dist/bundle/{chunk-2BVVU7GG.js → chunk-YJVQ5GST.js} +1 -1
  130. package/dist/bundle/{chunk-ZM63SUHG.js → chunk-YRCGFSRR.js} +2 -2
  131. package/dist/bundle/{chunk-EOEU3AZN.js → chunk-ZNFXKFGF.js} +13 -13
  132. package/dist/bundle/{cli-556DERZL.js → cli-KXRWXGTS.js} +217 -114
  133. package/dist/bundle/command-contract-BGNT7MTQ.js +45 -0
  134. package/dist/bundle/{command-server-entry-AYLGNZWD.js → command-server-entry-7FZX74T6.js} +36 -34
  135. package/dist/bundle/{decode-QU24MWMN.js → decode-SZ6W34U3.js} +10 -10
  136. package/dist/bundle/{dispatch-4KODNOXV.js → dispatch-4KNSZ3PI.js} +10 -10
  137. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  138. package/dist/bundle/drive.js +11 -11
  139. package/dist/bundle/{echarts-BXX4OQWC.js → echarts-ISH62J4E.js} +2 -2
  140. package/dist/bundle/{embed-KG27KG3D.js → embed-6ODGTZPK.js} +10 -10
  141. package/dist/bundle/{embedder-IPAVUQUV.js → embedder-6FY67FTQ.js} +15 -15
  142. package/dist/bundle/entry-2SA6ZX7E.js +25 -0
  143. package/dist/bundle/{failure-ESL7ETL4.js → failure-V3ILKUTX.js} +4 -4
  144. package/dist/bundle/first-run-ZNKPPD6M.js +31 -0
  145. package/dist/bundle/first-screen-WF6GYLPN.js +45 -0
  146. package/dist/bundle/google-QCADNPCQ.js +46 -0
  147. package/dist/bundle/{google-api-VCDBSNOW.js → google-api-ZTI3NKZX.js} +88 -73
  148. package/dist/bundle/grants-BPN5AGDK.js +133 -0
  149. package/dist/bundle/hast-util-from-html-X2DCPS3T.js +10531 -0
  150. package/dist/bundle/hast-util-to-html-VP6XLPKJ.js +998 -0
  151. package/dist/bundle/hast-util-to-mdast-IZ5PRX72.js +2272 -0
  152. package/dist/bundle/{identity-LOWMVGZY.js → identity-YX4IPGOO.js} +7 -6
  153. package/dist/bundle/{instructions-2VECIDXF.js → instructions-G5ZGHVFB.js} +1 -1
  154. package/dist/bundle/{login-7GBONT7V.js → login-CVX5VJX6.js} +96 -81
  155. package/dist/bundle/{mcp-O6ACR2DX.js → mcp-MQ2L5IIM.js} +2 -2
  156. package/dist/bundle/{mdast-util-from-markdown-FXEPSNER.js → mdast-util-from-markdown-HEZF7KJ4.js} +137 -195
  157. package/dist/bundle/mdast-util-gfm-AQW6R6MG.js +925 -0
  158. package/dist/bundle/mdast-util-to-hast-DF2QVIRV.js +879 -0
  159. package/dist/bundle/mdast-util-to-markdown-XYLXB3Z3.js +18 -0
  160. package/dist/bundle/meeting-combined-HKZJMJ6Q.js +28 -0
  161. package/dist/bundle/meeting-model-DSE4GRVE.js +29 -0
  162. package/dist/bundle/{meeting-semantic-G7PFOKU7.js → meeting-semantic-OHG2QN2G.js} +10 -10
  163. package/dist/bundle/{micromark-extension-gfm-GRL24TU6.js → micromark-extension-gfm-OE2GBORZ.js} +11 -78
  164. package/dist/bundle/{node-MPEQSFI3.js → node-NLJINXVQ.js} +2 -2
  165. package/dist/bundle/{node-sqlite-OLQMAYB4.js → node-sqlite-KDFQDYVZ.js} +10 -10
  166. package/dist/bundle/notes-search-3VBVSQ3R.js +70 -0
  167. package/dist/bundle/oauth-M3E62ZHC.js +22 -0
  168. package/dist/bundle/{open-OXTE672W.js → open-WVRUVBIZ.js} +8 -8
  169. package/dist/bundle/{openai-EB3TPIZY.js → openai-JJWOSJMV.js} +22 -21
  170. package/dist/bundle/{process-F6TKXWWA.js → process-LPVAYRO7.js} +1 -1
  171. package/dist/bundle/{program-4IFDZ7FM.js → program-ZJRIP25J.js} +276 -1149
  172. package/dist/bundle/{prompt-F5RRHPN2.js → prompt-XCDHTEAO.js} +8 -8
  173. package/dist/bundle/{reasons-UORHJDHK.js → reasons-REEEQDAZ.js} +6 -5
  174. package/dist/bundle/{recognize-DAVNZND3.js → recognize-OZLFDJAT.js} +7 -7
  175. package/dist/bundle/remote-MDPYVCZB.js +35 -0
  176. package/dist/bundle/{rerank-CND2GVLZ.js → rerank-FLZWJNHA.js} +11 -11
  177. package/dist/bundle/{serve-ZHSPUIGX.js → serve-5UV5VLRV.js} +19 -19
  178. package/dist/bundle/{server-YMAK4LHC.js → server-53A2X2MK.js} +89 -70
  179. package/dist/bundle/server-5GMURMDE.js +97 -0
  180. package/dist/bundle/{services-ZILSFJ6E.js → services-XSMH7BXB.js} +109 -89
  181. package/dist/bundle/{sqlite-runtime-S5VPMZQH.js → sqlite-runtime-E3L7ENFU.js} +9 -9
  182. package/dist/bundle/{start-CR6X25RT.js → start-4S2VNR4J.js} +7 -7
  183. package/dist/bundle/{state-YFPHVIIJ.js → state-TQI4JSH7.js} +9 -9
  184. package/dist/bundle/{store-CL4ZJZRI.js → store-GS7PU6PJ.js} +38 -23
  185. package/dist/bundle/{store-UODRT6X4.js → store-VYJPL7MW.js} +36 -25
  186. package/dist/bundle/store-maintenance-command-JJVYUZMG.js +85 -0
  187. package/dist/bundle/surface-JC4XVMZR.js +83 -0
  188. package/dist/bundle/tokens-KJQ5EAPW.js +133 -0
  189. package/dist/commands/documents.d.ts.map +1 -1
  190. package/dist/commands/documents.js +11 -1
  191. package/dist/commands/documents.js.map +1 -1
  192. package/dist/commands/remote.d.ts.map +1 -1
  193. package/dist/commands/remote.js +8 -22
  194. package/dist/commands/remote.js.map +1 -1
  195. package/dist/commands/sync.d.ts.map +1 -1
  196. package/dist/commands/sync.js +14 -4
  197. package/dist/commands/sync.js.map +1 -1
  198. package/dist/config.d.ts +5 -0
  199. package/dist/config.d.ts.map +1 -1
  200. package/dist/config.js +5 -0
  201. package/dist/config.js.map +1 -1
  202. package/dist/first-screen.d.ts.map +1 -1
  203. package/dist/first-screen.js +2 -1
  204. package/dist/first-screen.js.map +1 -1
  205. package/dist/generated/manifest.d.ts +2 -1
  206. package/dist/generated/manifest.d.ts.map +1 -1
  207. package/dist/generated/manifest.js +782 -0
  208. package/dist/generated/manifest.js.map +1 -1
  209. package/dist/generated/types.d.ts +262 -58
  210. package/dist/generated/types.d.ts.map +1 -1
  211. package/dist/google.d.ts.map +1 -1
  212. package/dist/google.js +5 -5
  213. package/dist/google.js.map +1 -1
  214. package/dist/model.d.ts +5 -2
  215. package/dist/model.d.ts.map +1 -1
  216. package/dist/model.js.map +1 -1
  217. package/dist/policy-keys.js +1 -1
  218. package/dist/policy-keys.js.map +1 -1
  219. package/dist/program.d.ts.map +1 -1
  220. package/dist/program.js +9 -4
  221. package/dist/program.js.map +1 -1
  222. package/dist/state.d.ts.map +1 -1
  223. package/dist/state.js +6 -1
  224. package/dist/state.js.map +1 -1
  225. package/dist/store.d.ts.map +1 -1
  226. package/dist/store.js +2 -7
  227. package/dist/store.js.map +1 -1
  228. package/dist/supported.d.ts +2 -2
  229. package/dist/supported.d.ts.map +1 -1
  230. package/dist/supported.js +2 -3
  231. package/dist/supported.js.map +1 -1
  232. package/dist/sync.d.ts +2 -1
  233. package/dist/sync.d.ts.map +1 -1
  234. package/dist/sync.js +5 -2
  235. package/dist/sync.js.map +1 -1
  236. package/dist/version.d.ts +1 -1
  237. package/dist/version.js +1 -1
  238. package/package.json +3 -3
  239. package/scenarios/find-decision.md +1 -1
  240. package/skills/drive-cli/SKILL.md +4 -2
  241. package/dist/bundle/chunk-J5Q5FS2N.js +0 -593
  242. package/dist/bundle/chunk-L46C6HQ7.js +0 -729
  243. package/dist/bundle/chunk-UDMNY63V.js +0 -899
  244. package/dist/bundle/chunk-VKE77B3F.js +0 -2
  245. package/dist/bundle/command-contract-VRTOAV6W.js +0 -43
  246. package/dist/bundle/entry-MVXQETWS.js +0 -25
  247. package/dist/bundle/first-run-4UVLW2WR.js +0 -31
  248. package/dist/bundle/first-screen-JAKAIINI.js +0 -41
  249. package/dist/bundle/google-22NXXJX5.js +0 -45
  250. package/dist/bundle/grants-MQMTVCRQ.js +0 -118
  251. package/dist/bundle/mdast-util-gfm-SZM5GBDF.js +0 -2103
  252. package/dist/bundle/meeting-combined-LVP4AZKA.js +0 -27
  253. package/dist/bundle/meeting-model-RAY5XDXZ.js +0 -29
  254. package/dist/bundle/oauth-SGH2I2BY.js +0 -22
  255. package/dist/bundle/remote-D5EYYIAU.js +0 -35
  256. package/dist/bundle/server-DUVJWP3Q.js +0 -80
  257. package/dist/bundle/store-maintenance-command-DY5XIBWR.js +0 -72
  258. package/dist/bundle/tokens-AF7QOFOF.js +0 -118
@@ -1,37 +1,40 @@
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-YPFWNVHV.js";
7
+ } from "./chunk-43PCMVTZ.js";
11
8
  import {
9
+ CALLER_META_KEY,
10
+ PROXY_CLIENT_NAME,
11
+ callerOf
12
+ } from "./chunk-A5XNUMW7.js";
13
+ import {
14
+ InMemoryTransport,
12
15
  McpServer
13
- } from "./chunk-5D4AEUVA.js";
14
- import "./chunk-72C4YOCH.js";
15
- import "./chunk-SAKO3P4H.js";
16
- import "./chunk-26DHFMGZ.js";
17
- import "./chunk-VKE77B3F.js";
18
- import "./chunk-CJLVYIOP.js";
16
+ } from "./chunk-PL5P7UKW.js";
17
+ import "./chunk-PMAV3RNP.js";
18
+ import "./chunk-LKUWH6KU.js";
19
+ import "./chunk-VBIZD5V5.js";
20
+ import "./chunk-E5EYJU5R.js";
21
+ import "./chunk-3ZGWJYSG.js";
19
22
  import {
20
23
  errorObjectOf,
21
24
  mcpErrorResult
22
- } from "./chunk-3N2OFXB5.js";
23
- import "./chunk-Y5E2WNWB.js";
24
- import "./chunk-KYKW2W6X.js";
25
- import "./chunk-KGYVHPGE.js";
26
- import "./chunk-OJSBWP3F.js";
25
+ } from "./chunk-T3OK6AYZ.js";
26
+ import "./chunk-MDJUYCHT.js";
27
+ import "./chunk-IABPGOMT.js";
28
+ import "./chunk-OBDPKDGB.js";
27
29
  import {
28
30
  CliError
29
- } from "./chunk-4QNW4NK6.js";
31
+ } from "./chunk-IBQZT2YD.js";
32
+ import "./chunk-Y5E2WNWB.js";
30
33
  import {
31
34
  __name
32
35
  } from "./chunk-ZVVMGPBJ.js";
33
36
 
34
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
37
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
35
38
  import { spawn } from "node:child_process";
36
39
  import { randomUUID } from "node:crypto";
37
40
  var PROTOCOL = "2025-06-18";
@@ -172,13 +175,16 @@ var withProfile = /* @__PURE__ */ __name((tool, profiles, name, signedIn = () =>
172
175
  inputSchema: {
173
176
  ...tool.inputSchema,
174
177
  properties: {
175
- profile: {
178
+ profile: profiles.length === 0 ? (
179
+ // An empty enum matches nothing, and a directory that checks the schema refuses the tool.
180
+ {
181
+ type: "string",
182
+ description: `Which ${name} account, by its profile. None is set up on this computer yet.`
183
+ }
184
+ ) : {
176
185
  type: "string",
177
186
  enum: [...profiles],
178
- oneOf: profiles.map((profile) => ({
179
- const: profile,
180
- title: signedIn(profile) ? profile : `${profile} \u2014 not signed in`
181
- })),
187
+ oneOf: profiles.map((one) => ({ const: one, title: signedIn(one) ? one : `${one} \u2014 not signed in` })),
182
188
  description: `Which ${name} account, by its profile. If the owner did not name one, ask which \u2014 never guess.${states}`
183
189
  },
184
190
  ...schema.properties
@@ -201,9 +207,14 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
201
207
  const signedIn = /* @__PURE__ */ __name((profile) => options.signedIn?.(profile) ?? true, "signedIn");
202
208
  const build = /* @__PURE__ */ __name(() => {
203
209
  const profiles = [...options.profiles()].sort();
204
- const server = new McpServer({ name: options.command, version: options.version }, { capabilities: { tools: {} }, instructions: options.instructions });
210
+ const server = new McpServer({ name: options.command, version: options.version }, {
211
+ capabilities: { tools: {} },
212
+ // Read per session, as the profiles are: clients cut the instructions short, so this line comes first.
213
+ instructions: profiles.length === 0 && options.setup ? `${options.setup.charAt(0).toUpperCase()}${options.setup.slice(1)}.
214
+ ${options.instructions}` : options.instructions
215
+ });
205
216
  server.server.setRequestHandler("tools/list", async () => ({
206
- tools: profiles.length === 0 ? [] : (await tools(profiles)).map((one) => withProfile(one, profiles, options.name, signedIn))
217
+ tools: (profiles.length === 0 ? await options.catalogue?.() ?? [] : await tools(profiles)).map((one) => withProfile(one, profiles, options.name, signedIn))
207
218
  }));
208
219
  const callers = {
209
220
  env: options.env ?? process.env,
@@ -213,6 +224,8 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
213
224
  server.server.setRequestHandler("tools/call", async (request, ctx) => {
214
225
  const { name, arguments: given = {}, _meta } = request.params;
215
226
  const { profile, ...rest } = given;
227
+ if (profiles.length === 0)
228
+ return refusal("configuration_error", options.setup ?? `no ${options.command} profile on this computer yet.`);
216
229
  if (typeof profile !== "string" || !profiles.includes(profile))
217
230
  return refusal("validation_error", `${name} needs "profile", one of: ${profiles.join(", ")}. If the owner did not say which account, ask.`);
218
231
  if (!signedIn(profile))
@@ -234,6 +247,34 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
234
247
  }, "build");
235
248
  return { build, close: /* @__PURE__ */ __name(() => children.close(), "close") };
236
249
  }, "allProfilesServer");
250
+ var listedTools = /* @__PURE__ */ __name(async (server) => {
251
+ const [own, other] = InMemoryTransport.createLinkedPair();
252
+ const answers = /* @__PURE__ */ new Map();
253
+ other.onmessage = (message) => {
254
+ const { id, result, error } = message;
255
+ if (typeof id === "number")
256
+ answers.get(id)?.(result, error);
257
+ };
258
+ const ask = /* @__PURE__ */ __name((id, method, params) => new Promise((resolve, reject) => {
259
+ answers.set(id, (result, error) => error || !result ? reject(new Error(error?.message ?? `${method} had no answer`)) : resolve(result));
260
+ void other.send({ jsonrpc: "2.0", id, method, params });
261
+ }), "ask");
262
+ await server.connect(own);
263
+ try {
264
+ await ask(1, "initialize", {
265
+ protocolVersion: PROTOCOL,
266
+ capabilities: {},
267
+ clientInfo: { name: PROXY_CLIENT_NAME, version: "1" }
268
+ });
269
+ await other.send({ jsonrpc: "2.0", method: "notifications/initialized" });
270
+ const answer = await ask(2, "tools/list", {});
271
+ if (!Array.isArray(answer.tools))
272
+ throw new Error("the catalogue server listed no tools");
273
+ return answer.tools;
274
+ } finally {
275
+ await server.close();
276
+ }
277
+ }, "listedTools");
237
278
  var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {}) => {
238
279
  const { build, close } = allProfilesServer(options);
239
280
  const own = io.stdin !== void 0 && io.stdin !== process.stdin;
@@ -252,7 +293,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
252
293
  }, "serveAllProfilesOverStdio");
253
294
  var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
254
295
  const { build, close } = allProfilesServer(options);
255
- const { serveOverHttp } = await import("./serve-ZHSPUIGX.js");
296
+ const { serveOverHttp } = await import("./serve-5UV5VLRV.js");
256
297
  const listening = await serveOverHttp(build, {
257
298
  ...http,
258
299
  appName: options.command,
@@ -275,6 +316,7 @@ var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
275
316
  export {
276
317
  CHILD_IDLE_MS,
277
318
  allProfilesServer,
319
+ listedTools,
278
320
  serveAllProfilesOverHttp,
279
321
  serveAllProfilesOverStdio,
280
322
  withProfile
@@ -5,15 +5,14 @@ import {
5
5
  checkedOptions,
6
6
  messagesFor,
7
7
  systemFor
8
- } from "./chunk-3EBBLKIT.js";
8
+ } from "./chunk-UT64BBEP.js";
9
9
  import {
10
10
  Anthropic
11
11
  } from "./chunk-ADLS6FVG.js";
12
- import "./chunk-CJLVYIOP.js";
13
- import "./chunk-3N2OFXB5.js";
14
- import "./chunk-Y5E2WNWB.js";
15
- import "./chunk-KYKW2W6X.js";
16
- import "./chunk-KGYVHPGE.js";
12
+ import "./chunk-3ZGWJYSG.js";
13
+ import "./chunk-T3OK6AYZ.js";
14
+ import "./chunk-MDJUYCHT.js";
15
+ import "./chunk-IABPGOMT.js";
17
16
  import {
18
17
  array,
19
18
  literal,
@@ -23,13 +22,14 @@ import {
23
22
  strictObject,
24
23
  string,
25
24
  unknown
26
- } from "./chunk-OJSBWP3F.js";
27
- import "./chunk-4QNW4NK6.js";
25
+ } from "./chunk-OBDPKDGB.js";
26
+ import "./chunk-IBQZT2YD.js";
27
+ import "./chunk-Y5E2WNWB.js";
28
28
  import {
29
29
  __name
30
30
  } from "./chunk-ZVVMGPBJ.js";
31
31
 
32
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/models/anthropic.js
32
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/models/anthropic.js
33
33
  var options = strictObject({
34
34
  stop_sequences: optional(array(string())),
35
35
  thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
@@ -3,54 +3,69 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PER_RUN,
5
5
  envelope
6
- } from "./chunk-TAUBRNC5.js";
6
+ } from "./chunk-DOEP4EPW.js";
7
7
  import {
8
8
  mcpUrlOf
9
- } from "./chunk-35SCQ4VI.js";
9
+ } from "./chunk-X6HPQKAI.js";
10
10
  import {
11
- answered,
12
- failed,
13
- registerCommands,
14
- runCommandForAgent,
15
- toolsFromCommands
16
- } from "./chunk-ASMMG72J.js";
17
- import {
18
- agentJson,
19
- skillResource
20
- } from "./chunk-3UGYFXH6.js";
11
+ skillResources
12
+ } from "./chunk-KOI5G7NM.js";
21
13
  import {
22
14
  StdioServerTransport,
23
15
  answeredWire,
24
16
  serveStdio
25
- } from "./chunk-YPFWNVHV.js";
17
+ } from "./chunk-43PCMVTZ.js";
18
+ import {
19
+ mcpHttpMarker
20
+ } from "./chunk-TFIAD57H.js";
21
+ import {
22
+ runCommandForAgent,
23
+ toolsFromCommands
24
+ } from "./chunk-FJQO5OHR.js";
25
+ import "./chunk-VHTELRUA.js";
26
26
  import {
27
27
  appInstructions
28
- } from "./chunk-22QQUKWA.js";
28
+ } from "./chunk-S3SLDYTU.js";
29
29
  import {
30
- McpServer
31
- } from "./chunk-5D4AEUVA.js";
30
+ answered,
31
+ failed,
32
+ registerCommands
33
+ } from "./chunk-SM7Z2BQF.js";
32
34
  import {
33
- mcpHttpMarker
34
- } from "./chunk-HKY7X6NY.js";
35
- import "./chunk-TAFHYHKA.js";
36
- import "./chunk-L46C6HQ7.js";
37
- import "./chunk-RESDD3Q4.js";
38
- import "./chunk-2PUNKUYJ.js";
39
- import "./chunk-QXC6IEH6.js";
40
- import "./chunk-JDV7HNNQ.js";
41
- import "./chunk-Q7DOMFJ4.js";
42
- import "./chunk-LXKYKRHD.js";
43
- import "./chunk-COJSWDNU.js";
44
- import "./chunk-FP54WSIR.js";
45
- import "./chunk-YVI5SQPY.js";
46
- import "./chunk-3EBBLKIT.js";
47
- import "./chunk-Y2NWGNUB.js";
48
- import "./chunk-SDKQNOL5.js";
49
- import "./chunk-WVDCCYS3.js";
50
- import "./chunk-UTO2GO4P.js";
51
- import "./chunk-5DPV7X27.js";
52
- import "./chunk-P7CUM5IB.js";
53
- import "./chunk-7PDHGZN4.js";
35
+ agentJson
36
+ } from "./chunk-IPBYU43F.js";
37
+ import "./chunk-A5XNUMW7.js";
38
+ import {
39
+ McpServer
40
+ } from "./chunk-PL5P7UKW.js";
41
+ import "./chunk-MA7ETVTZ.js";
42
+ import "./chunk-3T7JIHSO.js";
43
+ import "./chunk-JVM75M4H.js";
44
+ import "./chunk-VOQICE3G.js";
45
+ import "./chunk-PB6ACIME.js";
46
+ import "./chunk-SSFGSY77.js";
47
+ import "./chunk-SODB63MR.js";
48
+ import "./chunk-FTL3WXZB.js";
49
+ import "./chunk-G2CH4FRW.js";
50
+ import "./chunk-2TVHFJKV.js";
51
+ import "./chunk-S27UKJVL.js";
52
+ import "./chunk-3YCUYFTD.js";
53
+ import "./chunk-QURQ2OU2.js";
54
+ import "./chunk-MA6U4XH2.js";
55
+ import "./chunk-G2KKMQRN.js";
56
+ import "./chunk-3VIEGRBA.js";
57
+ import "./chunk-B5V2U7IS.js";
58
+ import "./chunk-R3EDZWXF.js";
59
+ import "./chunk-XKWQDQ4B.js";
60
+ import "./chunk-KI6OOW6D.js";
61
+ import "./chunk-UT64BBEP.js";
62
+ import "./chunk-G7SKXAVZ.js";
63
+ import "./chunk-QB7K6PIP.js";
64
+ import "./chunk-ODTBJGWQ.js";
65
+ import "./chunk-GYAPDUF5.js";
66
+ import "./chunk-NTZWY5R3.js";
67
+ import "./chunk-HPS2YGSZ.js";
68
+ import "./chunk-IE6O7463.js";
54
69
  import {
55
70
  DEFAULT_OUTPUT_BYTES,
56
71
  changesAuthorityAt,
@@ -60,54 +75,58 @@ import {
60
75
  judgedTargets,
61
76
  readsOverMcpAt,
62
77
  rootOf2 as rootOf
63
- } from "./chunk-SERXSCN3.js";
64
- import "./chunk-I4RWW3UD.js";
65
- import "./chunk-72C4YOCH.js";
78
+ } from "./chunk-JRED7BNX.js";
79
+ import "./chunk-PMAV3RNP.js";
80
+ import "./chunk-SAEBHENE.js";
81
+ import "./chunk-MGC2BAD2.js";
82
+ import "./chunk-QK7GKFKB.js";
83
+ import "./chunk-HOICQNJX.js";
66
84
  import {
67
85
  readOnlyLockOf
68
- } from "./chunk-MNLL5YLM.js";
69
- import "./chunk-Z56QFOBR.js";
70
- import "./chunk-XF4EXO2C.js";
71
- import "./chunk-FCS26CYQ.js";
72
- import "./chunk-YMJ6IDGT.js";
73
- import "./chunk-HMS6EEQL.js";
74
- import "./chunk-COOOO5B3.js";
75
- import "./chunk-QNRRK3CN.js";
76
- import "./chunk-QETR5HIZ.js";
77
- import "./chunk-JZHBZOJR.js";
78
- import "./chunk-ZCR3IRZ2.js";
79
- import "./chunk-GZ2D4KXG.js";
80
- import "./chunk-X4TIMMKJ.js";
81
- import "./chunk-4PA4DHYV.js";
82
- import "./chunk-RJOQH5YY.js";
83
- import "./chunk-SAKO3P4H.js";
84
- import "./chunk-26DHFMGZ.js";
85
- import "./chunk-2UUWXPOB.js";
86
- import "./chunk-PRW6SYA3.js";
87
- import "./chunk-OF422U5D.js";
88
- import "./chunk-GBKNJWOZ.js";
89
- import "./chunk-FT3LN3HP.js";
86
+ } from "./chunk-5BHP4FVM.js";
87
+ import "./chunk-JZ65CQWK.js";
88
+ import "./chunk-6KND2DYT.js";
89
+ import "./chunk-HSASPXRW.js";
90
+ import "./chunk-2CG3LUQS.js";
91
+ import "./chunk-KBR7OC5S.js";
92
+ import "./chunk-E2TMWONO.js";
93
+ import "./chunk-YE7DJB3F.js";
94
+ import "./chunk-BDZXGDGI.js";
95
+ import "./chunk-B6JC5RS3.js";
96
+ import "./chunk-WDJRUNQN.js";
97
+ import "./chunk-CP2TZXAG.js";
98
+ import "./chunk-AG34MPVN.js";
99
+ import "./chunk-QMUWHKP5.js";
100
+ import "./chunk-PSY67L73.js";
101
+ import "./chunk-LKUWH6KU.js";
102
+ import "./chunk-FKP4T7A4.js";
103
+ import "./chunk-VBIZD5V5.js";
104
+ import "./chunk-X5CXANSA.js";
105
+ import "./chunk-IE3R46YN.js";
106
+ import "./chunk-4DK55MLP.js";
107
+ import "./chunk-HCMEU7AF.js";
108
+ import "./chunk-GFI3UUIU.js";
90
109
  import "./chunk-D72URWJE.js";
91
- import "./chunk-ZZ32DXTH.js";
92
- import "./chunk-VKE77B3F.js";
93
- import "./chunk-4HWJOU7N.js";
94
- import "./chunk-Z3KUSRCF.js";
95
- import "./chunk-CJLVYIOP.js";
110
+ import "./chunk-KPBUJQKT.js";
111
+ import "./chunk-E5EYJU5R.js";
112
+ import "./chunk-7YPZPJTB.js";
113
+ import "./chunk-HMN26CVU.js";
114
+ import "./chunk-3ZGWJYSG.js";
96
115
  import {
97
116
  mcpErrorResult
98
- } from "./chunk-3N2OFXB5.js";
99
- import "./chunk-Y5E2WNWB.js";
100
- import "./chunk-KYKW2W6X.js";
101
- import "./chunk-KGYVHPGE.js";
102
- import "./chunk-OJSBWP3F.js";
117
+ } from "./chunk-T3OK6AYZ.js";
118
+ import "./chunk-MDJUYCHT.js";
119
+ import "./chunk-IABPGOMT.js";
120
+ import "./chunk-OBDPKDGB.js";
103
121
  import {
104
122
  CliError
105
- } from "./chunk-4QNW4NK6.js";
123
+ } from "./chunk-IBQZT2YD.js";
124
+ import "./chunk-Y5E2WNWB.js";
106
125
  import {
107
126
  __name
108
127
  } from "./chunk-ZVVMGPBJ.js";
109
128
 
110
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
129
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
111
130
  var EXCLUDED = [["mcp"]];
112
131
  var aliasesOf = /* @__PURE__ */ __name((root, path) => {
113
132
  let at = root;
@@ -188,7 +207,8 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
188
207
  }, "run")
189
208
  }
190
209
  ]));
191
- const skill = options.skill ? skillResource(app, options.skill) : void 0;
210
+ const skills = options.skill ? skillResources(app, options.skill) : [];
211
+ const skill = skills[0];
192
212
  const build = /* @__PURE__ */ __name(() => {
193
213
  const server = new McpServer({ name: app.command, version: app.version }, {
194
214
  instructions: appInstructions({
@@ -200,10 +220,8 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
200
220
  })
201
221
  });
202
222
  registerCommands(server, app.command, commands, app.errors, void 0, app.messenger);
203
- if (skill) {
204
- const { uri, name, title, description, mimeType, read } = skill;
223
+ for (const { uri, name, title, description, mimeType, read } of skills)
205
224
  server.registerResource(name, uri, { title, description, mimeType }, read);
206
- }
207
225
  return server;
208
226
  }, "build");
209
227
  return { build, offered: Object.keys(commands) };
@@ -224,7 +242,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
224
242
  var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
225
243
  const { app } = options;
226
244
  const { build } = createAppServer(command, context, options);
227
- const { serveOverHttp } = await import("./serve-ZHSPUIGX.js");
245
+ const { serveOverHttp } = await import("./serve-5UV5VLRV.js");
228
246
  const listening = await serveOverHttp(build, {
229
247
  ...http,
230
248
  appName: app.command,
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-FT3LN3HP.js";
21
+ } from "./chunk-GFI3UUIU.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
27
27
  import { Database } from "bun:sqlite";
28
28
  var bunSQLiteCodecs = refineSqliteCodecs({
29
29
  "integer:boolean": { normalize: booleanFromInteger },
@@ -3,24 +3,24 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-GOWXXYEF.js";
6
+ } from "./chunk-IV77ZFF4.js";
7
7
  import {
8
8
  refuseOwnerStoreInTests
9
- } from "./chunk-Z3KUSRCF.js";
10
- import "./chunk-CJLVYIOP.js";
11
- import "./chunk-3N2OFXB5.js";
9
+ } from "./chunk-HMN26CVU.js";
10
+ import "./chunk-3ZGWJYSG.js";
11
+ import "./chunk-T3OK6AYZ.js";
12
+ import "./chunk-MDJUYCHT.js";
13
+ import "./chunk-IABPGOMT.js";
14
+ import "./chunk-OBDPKDGB.js";
15
+ import "./chunk-IBQZT2YD.js";
12
16
  import {
13
17
  importFrom
14
18
  } from "./chunk-Y5E2WNWB.js";
15
- import "./chunk-KYKW2W6X.js";
16
- import "./chunk-KGYVHPGE.js";
17
- import "./chunk-OJSBWP3F.js";
18
- import "./chunk-4QNW4NK6.js";
19
19
  import {
20
20
  __name
21
21
  } from "./chunk-ZVVMGPBJ.js";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
24
24
  var customised = false;
25
25
  var ownLibrary = /* @__PURE__ */ __name(async () => {
26
26
  try {
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  wirecatDirectory
5
- } from "./chunk-Z3KUSRCF.js";
5
+ } from "./chunk-HMN26CVU.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-4QNW4NK6.js";
8
+ } from "./chunk-IBQZT2YD.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/speech/models.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/speech/models.js
14
14
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
15
15
  var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
16
16
  var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
137
137
  return model;
138
138
  }, "speechModel");
139
139
 
140
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/speech/install.js
140
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/speech/install.js
141
141
  import { createHash, randomUUID } from "node:crypto";
142
142
  import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
143
143
  import { rename, rm } from "node:fs/promises";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
7
+ // node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
8
8
  import { existsSync } from "node:fs";
9
9
  import { win32 } from "node:path";
10
10
  var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
@@ -0,0 +1,52 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ decodeNamedCharacterReference
5
+ } from "./chunk-SZ7XJZGH.js";
6
+ import {
7
+ __name
8
+ } from "./chunk-ZVVMGPBJ.js";
9
+
10
+ // node_modules/.pnpm/micromark-util-decode-numeric-character-reference@2.0.2/node_modules/micromark-util-decode-numeric-character-reference/index.js
11
+ function decodeNumericCharacterReference(value, base) {
12
+ const code = Number.parseInt(value, base);
13
+ if (
14
+ // C0 except for HT, LF, FF, CR, space.
15
+ code < 9 || code === 11 || code > 13 && code < 32 || // Control character (DEL) of C0, and C1 controls.
16
+ code > 126 && code < 160 || // Lone high surrogates and low surrogates.
17
+ code > 55295 && code < 57344 || // Noncharacters.
18
+ code > 64975 && code < 65008 || /* eslint-disable no-bitwise */
19
+ (code & 65535) === 65535 || (code & 65535) === 65534 || /* eslint-enable no-bitwise */
20
+ // Out of range
21
+ code > 1114111
22
+ ) {
23
+ return "\uFFFD";
24
+ }
25
+ return String.fromCodePoint(code);
26
+ }
27
+ __name(decodeNumericCharacterReference, "decodeNumericCharacterReference");
28
+
29
+ // node_modules/.pnpm/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.js
30
+ var characterEscapeOrReference = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
31
+ function decodeString(value) {
32
+ return value.replace(characterEscapeOrReference, decode);
33
+ }
34
+ __name(decodeString, "decodeString");
35
+ function decode($0, $1, $2) {
36
+ if ($1) {
37
+ return $1;
38
+ }
39
+ const head = $2.charCodeAt(0);
40
+ if (head === 35) {
41
+ const head2 = $2.charCodeAt(1);
42
+ const hex = head2 === 120 || head2 === 88;
43
+ return decodeNumericCharacterReference($2.slice(hex ? 2 : 1), hex ? 16 : 10);
44
+ }
45
+ return decodeNamedCharacterReference($2) || $0;
46
+ }
47
+ __name(decode, "decode");
48
+
49
+ export {
50
+ decodeNumericCharacterReference,
51
+ decodeString
52
+ };