@wirecat/notion-cli 0.6.0 → 0.8.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 (259) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/README.md +20 -3
  3. package/contracts/wirecat.json +238 -2
  4. package/dist/bin/notion.js +2 -2
  5. package/dist/bundle/agent-FDS2ENXJ.js +42 -0
  6. package/dist/bundle/{all-profiles-AELHUTFU.js → all-profiles-MIGUJ6UM.js} +11 -11
  7. package/dist/bundle/{anthropic-3CCYAGO3.js → anthropic-ZTYBZ7PI.js} +5 -5
  8. package/dist/bundle/{app-server-DJ6P4NY4.js → app-server-MGXJZOJ2.js} +72 -72
  9. package/dist/bundle/{bun-2FLR4IV4.js → bun-NS5YLOQT.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-QB6CU6TH.js → bun-sqlite-EKMD3TXK.js} +6 -6
  11. package/dist/bundle/{chunk-GUIQJUJV.js → chunk-2BPQNFA5.js} +6 -6
  12. package/dist/bundle/{chunk-RD7BKTWV.js → chunk-2Q5ATPA6.js} +4 -4
  13. package/dist/bundle/{chunk-DHVVXQEL.js → chunk-2T76TPDD.js} +3 -3
  14. package/dist/bundle/{chunk-CFQQTDSA.js → chunk-2TVHFJKV.js} +1 -1
  15. package/dist/bundle/{chunk-IURYZSG3.js → chunk-2XWVZDOM.js} +12 -12
  16. package/dist/bundle/{chunk-OEQNP56V.js → chunk-43PCMVTZ.js} +1 -1
  17. package/dist/bundle/{chunk-WGZH2M64.js → chunk-53UXHJEO.js} +16 -3
  18. package/dist/bundle/{chunk-KB35BVTG.js → chunk-5KL3PQWI.js} +2 -2
  19. package/dist/bundle/{chunk-A42T4YX7.js → chunk-5QCPDJLB.js} +2 -2
  20. package/dist/bundle/{chunk-PHKED7AG.js → chunk-64KVWK5N.js} +5 -5
  21. package/dist/bundle/{chunk-QGGRFRMP.js → chunk-66M7VFIM.js} +38 -38
  22. package/dist/bundle/{chunk-EHW45LLT.js → chunk-6BOEXO72.js} +3 -3
  23. package/dist/bundle/{chunk-QEJFBORC.js → chunk-6P7HUUR5.js} +3 -3
  24. package/dist/bundle/{chunk-P27NDZQR.js → chunk-77727OQH.js} +214 -158
  25. package/dist/bundle/{chunk-BEV5LO4D.js → chunk-7KNBZOLH.js} +13 -13
  26. package/dist/bundle/{chunk-FMMYBVCH.js → chunk-7YPZPJTB.js} +1 -1
  27. package/dist/bundle/{chunk-CHPWBQUK.js → chunk-A5PL2GYK.js} +1 -1
  28. package/dist/bundle/{chunk-2Z7UOXFC.js → chunk-AG34MPVN.js} +1 -1
  29. package/dist/bundle/{chunk-STTO2MSY.js → chunk-BCO37YUH.js} +327 -6
  30. package/dist/bundle/{chunk-CL3YNUCC.js → chunk-COF6KS7A.js} +6 -6
  31. package/dist/bundle/{chunk-YDDI4QIT.js → chunk-CWTTCFDX.js} +1182 -669
  32. package/dist/bundle/{chunk-T37TAXVL.js → chunk-D2IVASIC.js} +2 -2
  33. package/dist/bundle/{chunk-5OJLUUOJ.js → chunk-D3G375NT.js} +6 -6
  34. package/dist/bundle/{chunk-3MYN2RMG.js → chunk-DGZNVYKK.js} +8 -8
  35. package/dist/bundle/{chunk-LC6WE6JS.js → chunk-DLEAVO2T.js} +14 -7
  36. package/dist/bundle/{chunk-KGAUINBO.js → chunk-DW6YAEMZ.js} +10 -10
  37. package/dist/bundle/{chunk-WB2KSQIP.js → chunk-E4FNVLTR.js} +39 -6
  38. package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-E5EYJU5R.js} +1 -1
  39. package/dist/bundle/{chunk-3LMW7U7F.js → chunk-E5XATHAF.js} +21 -8
  40. package/dist/bundle/{chunk-3UX4VJWD.js → chunk-EXHTGQR2.js} +3 -4
  41. package/dist/bundle/{chunk-JFSVAOA7.js → chunk-EZAVBR47.js} +2 -2
  42. package/dist/bundle/{chunk-HOVHE3A3.js → chunk-F7DHR4OO.js} +7 -7
  43. package/dist/bundle/{chunk-HM6AMYHR.js → chunk-FGWQHNKK.js} +2 -2
  44. package/dist/bundle/{chunk-DGMTSDKB.js → chunk-FSWLPNJT.js} +5 -5
  45. package/dist/bundle/{chunk-F5ZAN7OC.js → chunk-GFI3UUIU.js} +1 -1
  46. package/dist/bundle/{chunk-4RFR4J2O.js → chunk-GGNVBN2S.js} +2 -2
  47. package/dist/bundle/{chunk-UOC52GCB.js → chunk-GPFE4SS7.js} +4 -4
  48. package/dist/bundle/{chunk-ESZHGC4Q.js → chunk-H76WEF2L.js} +6 -6
  49. package/dist/bundle/{chunk-LECMHK2F.js → chunk-HPS2YGSZ.js} +1 -1
  50. package/dist/bundle/{chunk-LQVDFD65.js → chunk-HZ5LRWKH.js} +2 -2
  51. package/dist/bundle/{chunk-SEAGUFBX.js → chunk-I5OAVMOI.js} +12 -12
  52. package/dist/bundle/{chunk-TFT4FVRU.js → chunk-I62MWK5L.js} +14 -2
  53. package/dist/bundle/{chunk-WAGADES3.js → chunk-IBFCD6TR.js} +17 -17
  54. package/dist/bundle/{chunk-7L2XOKDZ.js → chunk-IL3UYHCR.js} +8 -8
  55. package/dist/bundle/{chunk-T6XIBULH.js → chunk-J4CXJJJU.js} +132 -32
  56. package/dist/bundle/{chunk-RXU5T5NM.js → chunk-JRZEXLRQ.js} +13 -12
  57. package/dist/bundle/{chunk-IJVTN5L3.js → chunk-KDPV6YBX.js} +2 -2
  58. package/dist/bundle/{chunk-BAXNAOOL.js → chunk-KHEISFJO.js} +3 -3
  59. package/dist/bundle/{chunk-GPRJXJC7.js → chunk-KI6OOW6D.js} +22 -1
  60. package/dist/bundle/{chunk-HVXOA4FO.js → chunk-KPBUJQKT.js} +1 -1
  61. package/dist/bundle/{chunk-FRB2L7OE.js → chunk-LEO5GWPD.js} +3 -3
  62. package/dist/bundle/{chunk-BQBC2WIG.js → chunk-LKUWH6KU.js} +1 -1
  63. package/dist/bundle/{chunk-AE4VW4NB.js → chunk-LYJDZILD.js} +3 -3
  64. package/dist/bundle/{chunk-NSR43UEW.js → chunk-M27SMKNH.js} +5 -5
  65. package/dist/bundle/{chunk-K5IC4FZN.js → chunk-MA6U4XH2.js} +1 -1
  66. package/dist/bundle/{chunk-2XUV7HNE.js → chunk-MC3LAGIW.js} +2 -2
  67. package/dist/bundle/{chunk-YUDVRFXN.js → chunk-MGC2BAD2.js} +1 -1
  68. package/dist/bundle/{chunk-KNCPBX5P.js → chunk-MLXDGBH4.js} +19 -19
  69. package/dist/bundle/{chunk-WAU5LSHP.js → chunk-NQA2STEE.js} +113 -13
  70. package/dist/bundle/{chunk-6EJCI47L.js → chunk-NSBTYJRP.js} +4 -4
  71. package/dist/bundle/{chunk-5XPHFV7H.js → chunk-NSQN4F7H.js} +8 -8
  72. package/dist/bundle/{chunk-YXYZAWWW.js → chunk-NVXMWAEV.js} +6 -6
  73. package/dist/bundle/{chunk-EZMG5QXB.js → chunk-OZAP4FEG.js} +8 -8
  74. package/dist/bundle/{chunk-2CMLY2X3.js → chunk-OZZ5PTHG.js} +5 -5
  75. package/dist/bundle/{chunk-6YOMPW7Y.js → chunk-P4ADIGTL.js} +8 -8
  76. package/dist/bundle/{chunk-DIU2QJJF.js → chunk-PVTW7ZOY.js} +23 -23
  77. package/dist/bundle/{chunk-4VXXOJ2F.js → chunk-Q5PNS2K2.js} +3 -3
  78. package/dist/bundle/{chunk-ERN53B3Z.js → chunk-QQP54EEZ.js} +29 -178
  79. package/dist/bundle/{chunk-XYQVVW4R.js → chunk-RM4DO2WZ.js} +1 -1
  80. package/dist/bundle/{chunk-GCAJW4SR.js → chunk-S3SLDYTU.js} +1 -1
  81. package/dist/bundle/{chunk-JVESLS7B.js → chunk-S5NFSVNK.js} +63 -63
  82. package/dist/bundle/{chunk-Q7EIL6VU.js → chunk-UE7ST7JC.js} +30 -30
  83. package/dist/bundle/{chunk-SAPP2LEH.js → chunk-ULTKZLJV.js} +7 -7
  84. package/dist/bundle/{chunk-G4ZU73SD.js → chunk-VJ5EF4C7.js} +76 -61
  85. package/dist/bundle/{chunk-7JVKQ6NM.js → chunk-WBVZVP4T.js} +4 -4
  86. package/dist/bundle/{chunk-AZLDR36U.js → chunk-WDL3QYN2.js} +3 -3
  87. package/dist/bundle/{chunk-FV4WTZCU.js → chunk-WPNY2J2X.js} +16 -16
  88. package/dist/bundle/{chunk-YYQ5GKAI.js → chunk-XRA2V4MM.js} +1886 -860
  89. package/dist/bundle/{chunk-VH7526NL.js → chunk-Y6KPZOOD.js} +3 -3
  90. package/dist/bundle/{chunk-ZDYEOE7L.js → chunk-YAYVXHMO.js} +48 -48
  91. package/dist/bundle/{chunk-W2VQDIU5.js → chunk-YG2FFC2R.js} +9 -9
  92. package/dist/bundle/{chunk-HHEWTLAT.js → chunk-YOZHKJEN.js} +2 -2
  93. package/dist/bundle/{chunk-KZJQPJK5.js → chunk-ZKD3TL3O.js} +4 -4
  94. package/dist/bundle/command-contract-ZGBZCKZP.js +41 -0
  95. package/dist/bundle/{command-server-entry-VUR6WL77.js → command-server-entry-ZXB7VUIG.js} +29 -29
  96. package/dist/bundle/{decode-I64PF2RM.js → decode-BGLAM2YP.js} +5 -5
  97. package/dist/bundle/{dispatch-JQBAZWCL.js → dispatch-A3WIRXBM.js} +8 -8
  98. package/dist/bundle/{echarts-YRRVLEX3.js → echarts-ISH62J4E.js} +2 -2
  99. package/dist/bundle/{embed-BLXLKMK2.js → embed-POZWSFKL.js} +6 -6
  100. package/dist/bundle/{embedder-JYGF6R7I.js → embedder-7DIUHQOQ.js} +9 -9
  101. package/dist/bundle/{failure-I6AAF5R5.js → failure-BBT3B4UY.js} +2 -2
  102. package/dist/bundle/{first-run-YLDOZGY6.js → first-run-SLMRAWYB.js} +12 -12
  103. package/dist/bundle/first-screen-CCLGBTQ2.js +41 -0
  104. package/dist/bundle/{instructions-AG7SRWTR.js → instructions-G5ZGHVFB.js} +1 -1
  105. package/dist/bundle/{mcp-YGOAUNC3.js → mcp-MQ2L5IIM.js} +2 -2
  106. package/dist/bundle/meeting-combined-P56K6BUT.js +25 -0
  107. package/dist/bundle/meeting-model-UY4ABXAZ.js +27 -0
  108. package/dist/bundle/{meeting-semantic-3DZPHM7L.js → meeting-semantic-VPMFO4FB.js} +6 -6
  109. package/dist/bundle/{node-GJQYN4FT.js → node-NLJINXVQ.js} +2 -2
  110. package/dist/bundle/{node-sqlite-7VXIRQPH.js → node-sqlite-LPV27ECD.js} +7 -7
  111. package/dist/bundle/notes-search-TKP34WJZ.js +64 -0
  112. package/dist/bundle/notion.js +13 -13
  113. package/dist/bundle/{oauth-N67CH2TK.js → oauth-SC4HSJ7X.js} +7 -7
  114. package/dist/bundle/{open-JGXVHIKO.js → open-K2JIOWCG.js} +5 -5
  115. package/dist/bundle/{openai-PFQJTF4H.js → openai-MCKQLBZM.js} +18 -18
  116. package/dist/bundle/{process-MEKCZMX3.js → process-LPVAYRO7.js} +1 -1
  117. package/dist/bundle/{program-DUJYLJH5.js → program-QXA6YXUO.js} +11870 -8637
  118. package/dist/bundle/{prompt-FW44QDHD.js → prompt-XWESMSOG.js} +5 -5
  119. package/dist/bundle/{recognize-62TDQ6A7.js → recognize-TDE6PPXV.js} +4 -4
  120. package/dist/bundle/{remote-7ONFD7GG.js → remote-OAGPQQVE.js} +11 -11
  121. package/dist/bundle/{rerank-YOHQQJS4.js → rerank-375AKI4E.js} +7 -7
  122. package/dist/bundle/{schemas-IIGJ7DOP.js → schemas-ZE62D6CG.js} +1 -1
  123. package/dist/bundle/{serve-ZCXGT5RB.js → serve-YWCHKQEP.js} +9 -9
  124. package/dist/bundle/{server-RQ74M637.js → server-C4SH5PRK.js} +64 -64
  125. package/dist/bundle/server-SYGVF5BJ.js +90 -0
  126. package/dist/bundle/{services-FWBRZ57M.js → services-5Z2P4D2K.js} +51 -51
  127. package/dist/bundle/{sqlite-runtime-ZZBNGV5L.js → sqlite-runtime-KLELNUHI.js} +6 -6
  128. package/dist/bundle/{state-GDDFO62Y.js → state-OWEBLXCG.js} +6 -6
  129. package/dist/bundle/{store-D2LRIWEI.js → store-F63SKKV7.js} +27 -23
  130. package/dist/bundle/{store-KQCLR57N.js → store-IVJXGAX7.js} +21 -21
  131. package/dist/bundle/store-maintenance-command-YBMOO7XH.js +77 -0
  132. package/dist/bundle/surface-G3ITURGS.js +76 -0
  133. package/dist/commands/api.d.ts.map +1 -1
  134. package/dist/commands/api.js +3 -25
  135. package/dist/commands/api.js.map +1 -1
  136. package/dist/commands/comments.d.ts +1 -1
  137. package/dist/commands/comments.d.ts.map +1 -1
  138. package/dist/commands/comments.js +33 -2
  139. package/dist/commands/comments.js.map +1 -1
  140. package/dist/commands/databases.d.ts.map +1 -1
  141. package/dist/commands/databases.js +3 -2
  142. package/dist/commands/databases.js.map +1 -1
  143. package/dist/commands/documents.d.ts +13 -2
  144. package/dist/commands/documents.d.ts.map +1 -1
  145. package/dist/commands/documents.js +291 -23
  146. package/dist/commands/documents.js.map +1 -1
  147. package/dist/commands/library.d.ts.map +1 -1
  148. package/dist/commands/library.js +20 -10
  149. package/dist/commands/library.js.map +1 -1
  150. package/dist/commands/meetings.d.ts +7 -0
  151. package/dist/commands/meetings.d.ts.map +1 -0
  152. package/dist/commands/meetings.js +136 -0
  153. package/dist/commands/meetings.js.map +1 -0
  154. package/dist/commands/rows.d.ts +4 -0
  155. package/dist/commands/rows.d.ts.map +1 -0
  156. package/dist/commands/rows.js +51 -0
  157. package/dist/commands/rows.js.map +1 -0
  158. package/dist/commands/writing.d.ts +2 -1
  159. package/dist/commands/writing.d.ts.map +1 -1
  160. package/dist/commands/writing.js +2 -2
  161. package/dist/commands/writing.js.map +1 -1
  162. package/dist/config.d.ts.map +1 -1
  163. package/dist/config.js +12 -2
  164. package/dist/config.js.map +1 -1
  165. package/dist/context.d.ts +13 -3
  166. package/dist/context.d.ts.map +1 -1
  167. package/dist/context.js +22 -7
  168. package/dist/context.js.map +1 -1
  169. package/dist/generated/wirecat-config.d.ts +13 -0
  170. package/dist/generated/wirecat-config.d.ts.map +1 -0
  171. package/dist/generated/wirecat-config.js +90 -0
  172. package/dist/generated/wirecat-config.js.map +1 -0
  173. package/dist/knowledge.d.ts +18 -1
  174. package/dist/knowledge.d.ts.map +1 -1
  175. package/dist/library.d.ts +4 -5
  176. package/dist/library.d.ts.map +1 -1
  177. package/dist/library.js +11 -14
  178. package/dist/library.js.map +1 -1
  179. package/dist/notion/client.d.ts +2 -6
  180. package/dist/notion/client.d.ts.map +1 -1
  181. package/dist/notion/client.js +7 -8
  182. package/dist/notion/client.js.map +1 -1
  183. package/dist/notion/errors.d.ts +5 -0
  184. package/dist/notion/errors.d.ts.map +1 -1
  185. package/dist/notion/errors.js +40 -1
  186. package/dist/notion/errors.js.map +1 -1
  187. package/dist/notion/meeting-notes.d.ts +10 -0
  188. package/dist/notion/meeting-notes.d.ts.map +1 -0
  189. package/dist/notion/meeting-notes.js +196 -0
  190. package/dist/notion/meeting-notes.js.map +1 -0
  191. package/dist/notion/notion.d.ts +46 -0
  192. package/dist/notion/notion.d.ts.map +1 -1
  193. package/dist/notion/notion.js +105 -14
  194. package/dist/notion/notion.js.map +1 -1
  195. package/dist/notion/page-target.d.ts +30 -0
  196. package/dist/notion/page-target.d.ts.map +1 -0
  197. package/dist/notion/page-target.js +73 -0
  198. package/dist/notion/page-target.js.map +1 -0
  199. package/dist/notion/port.d.ts +10 -0
  200. package/dist/notion/port.d.ts.map +1 -1
  201. package/dist/notion/port.js +21 -0
  202. package/dist/notion/port.js.map +1 -1
  203. package/dist/notion/properties.d.ts +55 -0
  204. package/dist/notion/properties.d.ts.map +1 -0
  205. package/dist/notion/properties.js +280 -0
  206. package/dist/notion/properties.js.map +1 -0
  207. package/dist/notion/reads.d.ts +19 -1
  208. package/dist/notion/reads.d.ts.map +1 -1
  209. package/dist/notion/reads.js +2 -1
  210. package/dist/notion/reads.js.map +1 -1
  211. package/dist/notion/rows.d.ts +14 -0
  212. package/dist/notion/rows.d.ts.map +1 -0
  213. package/dist/notion/rows.js +119 -0
  214. package/dist/notion/rows.js.map +1 -0
  215. package/dist/notion/writes.d.ts +99 -0
  216. package/dist/notion/writes.d.ts.map +1 -1
  217. package/dist/notion/writes.js +278 -67
  218. package/dist/notion/writes.js.map +1 -1
  219. package/dist/program.d.ts.map +1 -1
  220. package/dist/program.js +7 -1
  221. package/dist/program.js.map +1 -1
  222. package/dist/sync/comments.d.ts +12 -0
  223. package/dist/sync/comments.d.ts.map +1 -0
  224. package/dist/sync/comments.js +47 -0
  225. package/dist/sync/comments.js.map +1 -0
  226. package/dist/sync/files.d.ts +10 -4
  227. package/dist/sync/files.d.ts.map +1 -1
  228. package/dist/sync/files.js.map +1 -1
  229. package/dist/sync/from-config.d.ts +13 -0
  230. package/dist/sync/from-config.d.ts.map +1 -0
  231. package/dist/sync/from-config.js +33 -0
  232. package/dist/sync/from-config.js.map +1 -0
  233. package/dist/sync/source.d.ts +2 -1
  234. package/dist/sync/source.d.ts.map +1 -1
  235. package/dist/sync/source.js +25 -29
  236. package/dist/sync/source.js.map +1 -1
  237. package/dist/sync/users.d.ts +1 -11
  238. package/dist/sync/users.d.ts.map +1 -1
  239. package/dist/sync/users.js +0 -33
  240. package/dist/sync/users.js.map +1 -1
  241. package/dist/version.d.ts +1 -1
  242. package/dist/version.js +1 -1
  243. package/package.json +7 -7
  244. package/skills/notion-cli/SKILL.md +29 -3
  245. package/dist/bundle/agent-ILG6AH7S.js +0 -42
  246. package/dist/bundle/command-contract-L2FASWD6.js +0 -41
  247. package/dist/bundle/first-screen-GZH3LMLZ.js +0 -41
  248. package/dist/bundle/meeting-combined-OFQSGKBG.js +0 -25
  249. package/dist/bundle/meeting-model-K6NSX3O5.js +0 -27
  250. package/dist/bundle/notes-search-ACDOPTNH.js +0 -64
  251. package/dist/bundle/server-XMZF57WM.js +0 -90
  252. package/dist/bundle/store-maintenance-command-CK2MU5M6.js +0 -77
  253. package/dist/bundle/surface-K4TPIQW7.js +0 -76
  254. package/dist/bundle/{hast-util-from-html-X2DCPS3T.js → hast-util-from-html-237ZT4C7.js} +3 -3
  255. package/dist/bundle/{hast-util-to-mdast-3CSMIWK2.js → hast-util-to-mdast-H5COQ6HJ.js} +6 -6
  256. package/dist/bundle/{mdast-util-gfm-JO7PHUIB.js → mdast-util-gfm-M3K5BNY2.js} +16 -16
  257. package/dist/bundle/{mdast-util-to-hast-AYJV7KAE.js → mdast-util-to-hast-TSB5MAAV.js} +1 -1
  258. package/dist/bundle/{mdast-util-to-markdown-DOXGHRI7.js → mdast-util-to-markdown-SG6455IT.js} +10 -10
  259. package/dist/bundle/{micromark-extension-gfm-PQ7DWZM7.js → micromark-extension-gfm-7SUOOQ3A.js} +3 -3
@@ -3,28 +3,28 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  formatMeetingReference,
5
5
  parseMeetingReference
6
- } from "./chunk-JVESLS7B.js";
6
+ } from "./chunk-S5NFSVNK.js";
7
7
  import {
8
8
  createRecordLog,
9
9
  resolvePaths,
10
10
  traceIdOf,
11
11
  writeSecurely
12
- } from "./chunk-KNCPBX5P.js";
12
+ } from "./chunk-MLXDGBH4.js";
13
13
  import {
14
14
  CliError,
15
15
  singleLine
16
- } from "./chunk-HM6AMYHR.js";
16
+ } from "./chunk-FGWQHNKK.js";
17
17
  import {
18
18
  __name
19
19
  } from "./chunk-ZVVMGPBJ.js";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/runs/run.js
21
+ // 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/runs/run.js
22
22
  import { randomUUID } from "node:crypto";
23
23
  import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
24
24
  import { userInfo } from "node:os";
25
25
  import { join, sep } from "node:path";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
27
+ // 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/runs/log-keys.js
28
28
  var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
29
29
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
30
30
  var renamed = /* @__PURE__ */ __name((record, name) => Object.fromEntries(Object.entries(record).map(([key, value]) => [name(key), value])), "renamed");
@@ -37,7 +37,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
37
37
  error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
38
38
  }), "snakeLogger");
39
39
 
40
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
40
+ // 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/runs/log-attributes.js
41
41
  var diagnostic = {
42
42
  event: true,
43
43
  operation: true,
@@ -111,7 +111,7 @@ var LOG_ATTRIBUTES = [
111
111
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
112
112
  ].sort();
113
113
 
114
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/runs/run.js
114
+ // 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/runs/run.js
115
115
  var KEEP_RUNS_FOR_DAYS = 30;
116
116
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
117
117
  var KEEP_STORE_RUNS_FOR_DAYS = 3;
@@ -478,7 +478,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
478
478
  };
479
479
  }, "metadataOf");
480
480
 
481
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/runs/scope.js
481
+ // 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/runs/scope.js
482
482
  import { AsyncLocalStorage } from "node:async_hooks";
483
483
  import { randomBytes } from "node:crypto";
484
484
  var scopes = new AsyncLocalStorage();
@@ -531,7 +531,7 @@ var attempts = new AsyncLocalStorage();
531
531
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
532
532
  var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
533
533
 
534
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/locator.js
534
+ // 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/domain/locator.js
535
535
  var SCHEME = "msg:";
536
536
  var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
537
537
  var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
@@ -552,7 +552,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
552
552
  return { provider, account, chat, message };
553
553
  }, "parseLocator");
554
554
 
555
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/references.js
555
+ // 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/domain/references.js
556
556
  var SIMPLE_REFERENCES = [
557
557
  "note",
558
558
  "document",
@@ -715,7 +715,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text) => {
715
715
  return match !== null && byPrefix.has(match[1]);
716
716
  }, "looksLikeReference");
717
717
 
718
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/providers.js
718
+ // 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/domain/providers.js
719
719
  var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
720
720
  var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
721
721
  var PROVIDERS = [
@@ -890,7 +890,7 @@ var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).in
890
890
  var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
891
891
  var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
892
892
 
893
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/search/query.js
893
+ // 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/search/query.js
894
894
  var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
895
895
  var inSource = /* @__PURE__ */ __name((source, provider) => source === "all" || source === "bots" && isBotProvider(provider) || source === "personal" && !isBotProvider(provider) || source === provider || providerNamed(source)?.name === provider || isKind(source) && holdsKindOf(provider, source), "inSource");
896
896
  var fail = /* @__PURE__ */ __name((message) => {
@@ -913,7 +913,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
913
913
  return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
914
914
  }, "sourceOf");
915
915
 
916
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/search/account-list.js
916
+ // 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/search/account-list.js
917
917
  var ACCOUNT_GROUPS = "accountGroups";
918
918
  var ACCOUNT_GROUPS_SETTING = "account_groups";
919
919
  var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/store/driver.js
7
+ // 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/driver.js
8
8
  var TIME_LIMIT_FUNCTION = "wc_time_limit";
9
9
  var TimeLimitReached = class extends Error {
10
10
  static {
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
13
+ // 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/codegen/runtime.js
14
14
  var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
15
15
  var INTEGER = /^-?\d+$/;
16
16
  var INT64_MIN = -(2n ** 63n);
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/store/normalize.js
7
+ // 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/normalize.js
8
8
  var NORMALIZER_VERSION = 1;
9
9
  var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
10
10
  var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
@@ -5,23 +5,23 @@ import {
5
5
  installFiles,
6
6
  megabytes,
7
7
  sharedModelsDirectory
8
- } from "./chunk-RD7BKTWV.js";
8
+ } from "./chunk-2Q5ATPA6.js";
9
9
  import {
10
10
  importFrom
11
11
  } from "./chunk-Y5E2WNWB.js";
12
12
  import {
13
13
  CliError
14
- } from "./chunk-HM6AMYHR.js";
14
+ } from "./chunk-FGWQHNKK.js";
15
15
  import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
19
+ // 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/embeddings/embed.js
20
20
  import { readFileSync as readFileSync2 } from "node:fs";
21
21
  import { availableParallelism } from "node:os";
22
22
  import { basename, join as join2 } from "node:path";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
24
+ // 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/embeddings/onnx-runtime.js
25
25
  import { createHash } from "node:crypto";
26
26
  import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
27
27
  import { join } from "node:path";
@@ -193,7 +193,9 @@ var fdt = new u8(32);
193
193
  for (i = 0; i < 32; ++i)
194
194
  fdt[i] = 5;
195
195
  var i;
196
+ var flm = /* @__PURE__ */ hMap(flt, 9, 0);
196
197
  var flrm = /* @__PURE__ */ hMap(flt, 9, 1);
198
+ var fdm = /* @__PURE__ */ hMap(fdt, 5, 0);
197
199
  var fdrm = /* @__PURE__ */ hMap(fdt, 5, 1);
198
200
  var max = /* @__PURE__ */ __name(function(a) {
199
201
  var m = a[0];
@@ -389,7 +391,321 @@ var inflt = /* @__PURE__ */ __name(function(dat, st, buf, dict) {
389
391
  } while (!final);
390
392
  return bt != buf.length && noBuf ? slc(buf, 0, bt) : buf.subarray(0, bt);
391
393
  }, "inflt");
394
+ var wbits = /* @__PURE__ */ __name(function(d, p, v) {
395
+ v <<= p & 7;
396
+ var o = p / 8 | 0;
397
+ d[o] |= v;
398
+ d[o + 1] |= v >> 8;
399
+ }, "wbits");
400
+ var wbits16 = /* @__PURE__ */ __name(function(d, p, v) {
401
+ v <<= p & 7;
402
+ var o = p / 8 | 0;
403
+ d[o] |= v;
404
+ d[o + 1] |= v >> 8;
405
+ d[o + 2] |= v >> 16;
406
+ }, "wbits16");
407
+ var hTree = /* @__PURE__ */ __name(function(d, mb) {
408
+ var t = [];
409
+ for (var i2 = 0; i2 < d.length; ++i2) {
410
+ if (d[i2])
411
+ t.push({ s: i2, f: d[i2] });
412
+ }
413
+ var s = t.length;
414
+ var t2 = t.slice();
415
+ if (!s)
416
+ return { t: et, l: 0 };
417
+ if (s == 1) {
418
+ var v = new u8(t[0].s + 1);
419
+ v[t[0].s] = 1;
420
+ return { t: v, l: 1 };
421
+ }
422
+ t.sort(function(a, b) {
423
+ return a.f - b.f;
424
+ });
425
+ t.push({ s: -1, f: 25001 });
426
+ var l = t[0], r = t[1], i0 = 0, i1 = 1, i22 = 2;
427
+ t[0] = { s: -1, f: l.f + r.f, l, r };
428
+ while (i1 != s - 1) {
429
+ l = t[t[i0].f < t[i22].f ? i0++ : i22++];
430
+ r = t[i0 != i1 && t[i0].f < t[i22].f ? i0++ : i22++];
431
+ t[i1++] = { s: -1, f: l.f + r.f, l, r };
432
+ }
433
+ var maxSym = t2[0].s;
434
+ for (var i2 = 1; i2 < s; ++i2) {
435
+ if (t2[i2].s > maxSym)
436
+ maxSym = t2[i2].s;
437
+ }
438
+ var tr = new u16(maxSym + 1);
439
+ var mbt = ln(t[i1 - 1], tr, 0);
440
+ if (mbt > mb) {
441
+ var i2 = 0, dt = 0;
442
+ var lft = mbt - mb, cst = 1 << lft;
443
+ t2.sort(function(a, b) {
444
+ return tr[b.s] - tr[a.s] || a.f - b.f;
445
+ });
446
+ for (; i2 < s; ++i2) {
447
+ var i2_1 = t2[i2].s;
448
+ if (tr[i2_1] > mb) {
449
+ dt += cst - (1 << mbt - tr[i2_1]);
450
+ tr[i2_1] = mb;
451
+ } else
452
+ break;
453
+ }
454
+ dt >>= lft;
455
+ while (dt > 0) {
456
+ var i2_2 = t2[i2].s;
457
+ if (tr[i2_2] < mb)
458
+ dt -= 1 << mb - tr[i2_2]++ - 1;
459
+ else
460
+ ++i2;
461
+ }
462
+ for (; i2 >= 0 && dt; --i2) {
463
+ var i2_3 = t2[i2].s;
464
+ if (tr[i2_3] == mb) {
465
+ --tr[i2_3];
466
+ ++dt;
467
+ }
468
+ }
469
+ mbt = mb;
470
+ }
471
+ return { t: new u8(tr), l: mbt };
472
+ }, "hTree");
473
+ var ln = /* @__PURE__ */ __name(function(n, l, d) {
474
+ return n.s == -1 ? Math.max(ln(n.l, l, d + 1), ln(n.r, l, d + 1)) : l[n.s] = d;
475
+ }, "ln");
476
+ var lc = /* @__PURE__ */ __name(function(c) {
477
+ var s = c.length;
478
+ while (s && !c[--s])
479
+ ;
480
+ var cl = new u16(++s);
481
+ var cli = 0, cln = c[0], cls = 1;
482
+ var w = /* @__PURE__ */ __name(function(v) {
483
+ cl[cli++] = v;
484
+ }, "w");
485
+ for (var i2 = 1; i2 <= s; ++i2) {
486
+ if (c[i2] == cln && i2 != s)
487
+ ++cls;
488
+ else {
489
+ if (!cln && cls > 2) {
490
+ for (; cls > 138; cls -= 138)
491
+ w(32754);
492
+ if (cls > 2) {
493
+ w(cls > 10 ? cls - 11 << 5 | 28690 : cls - 3 << 5 | 12305);
494
+ cls = 0;
495
+ }
496
+ } else if (cls > 3) {
497
+ w(cln), --cls;
498
+ for (; cls > 6; cls -= 6)
499
+ w(8304);
500
+ if (cls > 2)
501
+ w(cls - 3 << 5 | 8208), cls = 0;
502
+ }
503
+ while (cls--)
504
+ w(cln);
505
+ cls = 1;
506
+ cln = c[i2];
507
+ }
508
+ }
509
+ return { c: cl.subarray(0, cli), n: s };
510
+ }, "lc");
511
+ var clen = /* @__PURE__ */ __name(function(cf, cl) {
512
+ var l = 0;
513
+ for (var i2 = 0; i2 < cl.length; ++i2)
514
+ l += cf[i2] * cl[i2];
515
+ return l;
516
+ }, "clen");
517
+ var wfblk = /* @__PURE__ */ __name(function(out, pos, dat) {
518
+ var s = dat.length;
519
+ var o = shft(pos + 2);
520
+ out[o] = s & 255;
521
+ out[o + 1] = s >> 8;
522
+ out[o + 2] = out[o] ^ 255;
523
+ out[o + 3] = out[o + 1] ^ 255;
524
+ for (var i2 = 0; i2 < s; ++i2)
525
+ out[o + i2 + 4] = dat[i2];
526
+ return (o + 4 + s) * 8;
527
+ }, "wfblk");
528
+ var wblk = /* @__PURE__ */ __name(function(dat, out, final, syms, lf, df, eb, li, bs, bl, p) {
529
+ wbits(out, p++, final);
530
+ ++lf[256];
531
+ var _a2 = hTree(lf, 15), dlt = _a2.t, mlb = _a2.l;
532
+ var _b2 = hTree(df, 15), ddt = _b2.t, mdb = _b2.l;
533
+ var _c = lc(dlt), lclt = _c.c, nlc = _c.n;
534
+ var _d = lc(ddt), lcdt = _d.c, ndc = _d.n;
535
+ var lcfreq = new u16(19);
536
+ for (var i2 = 0; i2 < lclt.length; ++i2)
537
+ ++lcfreq[lclt[i2] & 31];
538
+ for (var i2 = 0; i2 < lcdt.length; ++i2)
539
+ ++lcfreq[lcdt[i2] & 31];
540
+ var _e = hTree(lcfreq, 7), lct = _e.t, mlcb = _e.l;
541
+ var nlcc = 19;
542
+ for (; nlcc > 4 && !lct[clim[nlcc - 1]]; --nlcc)
543
+ ;
544
+ var flen = bl + 5 << 3;
545
+ var ftlen = clen(lf, flt) + clen(df, fdt) + eb;
546
+ var dtlen = clen(lf, dlt) + clen(df, ddt) + eb + 14 + 3 * nlcc + clen(lcfreq, lct) + 2 * lcfreq[16] + 3 * lcfreq[17] + 7 * lcfreq[18];
547
+ if (bs >= 0 && flen <= ftlen && flen <= dtlen)
548
+ return wfblk(out, p, dat.subarray(bs, bs + bl));
549
+ var lm, ll, dm, dl;
550
+ wbits(out, p, 1 + (dtlen < ftlen)), p += 2;
551
+ if (dtlen < ftlen) {
552
+ lm = hMap(dlt, mlb, 0), ll = dlt, dm = hMap(ddt, mdb, 0), dl = ddt;
553
+ var llm = hMap(lct, mlcb, 0);
554
+ wbits(out, p, nlc - 257);
555
+ wbits(out, p + 5, ndc - 1);
556
+ wbits(out, p + 10, nlcc - 4);
557
+ p += 14;
558
+ for (var i2 = 0; i2 < nlcc; ++i2)
559
+ wbits(out, p + 3 * i2, lct[clim[i2]]);
560
+ p += 3 * nlcc;
561
+ var lcts = [lclt, lcdt];
562
+ for (var it = 0; it < 2; ++it) {
563
+ var clct = lcts[it];
564
+ for (var i2 = 0; i2 < clct.length; ++i2) {
565
+ var len = clct[i2] & 31;
566
+ wbits(out, p, llm[len]), p += lct[len];
567
+ if (len > 15)
568
+ wbits(out, p, clct[i2] >> 5 & 127), p += clct[i2] >> 12;
569
+ }
570
+ }
571
+ } else {
572
+ lm = flm, ll = flt, dm = fdm, dl = fdt;
573
+ }
574
+ for (var i2 = 0; i2 < li; ++i2) {
575
+ var sym = syms[i2];
576
+ if (sym > 255) {
577
+ var len = sym >> 18 & 31;
578
+ wbits16(out, p, lm[len + 257]), p += ll[len + 257];
579
+ if (len > 7)
580
+ wbits(out, p, sym >> 23 & 31), p += fleb[len];
581
+ var dst = sym & 31;
582
+ wbits16(out, p, dm[dst]), p += dl[dst];
583
+ if (dst > 3)
584
+ wbits16(out, p, sym >> 5 & 8191), p += fdeb[dst];
585
+ } else {
586
+ wbits16(out, p, lm[sym]), p += ll[sym];
587
+ }
588
+ }
589
+ wbits16(out, p, lm[256]);
590
+ return p + ll[256];
591
+ }, "wblk");
592
+ var deo = /* @__PURE__ */ new i32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]);
392
593
  var et = /* @__PURE__ */ new u8(0);
594
+ var dflt = /* @__PURE__ */ __name(function(dat, lvl, plvl, pre, post, st) {
595
+ var s = st.z || dat.length;
596
+ var o = new u8(pre + s + 5 * (1 + Math.ceil(s / 7e3)) + post);
597
+ var w = o.subarray(pre, o.length - post);
598
+ var lst = st.l;
599
+ var pos = (st.r || 0) & 7;
600
+ if (lvl) {
601
+ if (pos)
602
+ w[0] = st.r >> 3;
603
+ var opt = deo[lvl - 1];
604
+ var n = opt >> 13, c = opt & 8191;
605
+ var msk_1 = (1 << plvl) - 1;
606
+ var prev = st.p || new u16(32768), head = st.h || new u16(msk_1 + 1);
607
+ var bs1_1 = Math.ceil(plvl / 3), bs2_1 = 2 * bs1_1;
608
+ var hsh = /* @__PURE__ */ __name(function(i3) {
609
+ return (dat[i3] ^ dat[i3 + 1] << bs1_1 ^ dat[i3 + 2] << bs2_1) & msk_1;
610
+ }, "hsh");
611
+ var syms = new i32(25e3);
612
+ var lf = new u16(288), df = new u16(32);
613
+ var lc_1 = 0, eb = 0, i2 = st.i || 0, li = 0, wi = st.w || 0, bs = 0;
614
+ for (; i2 + 2 < s; ++i2) {
615
+ var hv = hsh(i2);
616
+ var imod = i2 & 32767, pimod = head[hv];
617
+ prev[imod] = pimod;
618
+ head[hv] = imod;
619
+ if (wi <= i2) {
620
+ var rem = s - i2;
621
+ if ((lc_1 > 7e3 || li > 24576) && (rem > 423 || !lst)) {
622
+ pos = wblk(dat, w, 0, syms, lf, df, eb, li, bs, i2 - bs, pos);
623
+ li = lc_1 = eb = 0, bs = i2;
624
+ for (var j = 0; j < 286; ++j)
625
+ lf[j] = 0;
626
+ for (var j = 0; j < 30; ++j)
627
+ df[j] = 0;
628
+ }
629
+ var l = 2, d = 0, ch_1 = c, dif = imod - pimod & 32767;
630
+ if (rem > 2 && hv == hsh(i2 - dif)) {
631
+ var maxn = Math.min(n, rem) - 1;
632
+ var maxd = Math.min(32767, i2);
633
+ var ml = Math.min(258, rem);
634
+ while (dif <= maxd && --ch_1 && imod != pimod) {
635
+ if (dat[i2 + l] == dat[i2 + l - dif]) {
636
+ var nl = 0;
637
+ for (; nl < ml && dat[i2 + nl] == dat[i2 + nl - dif]; ++nl)
638
+ ;
639
+ if (nl > l) {
640
+ l = nl, d = dif;
641
+ if (nl > maxn)
642
+ break;
643
+ var mmd = Math.min(dif, nl - 2);
644
+ var md = 0;
645
+ for (var j = 0; j < mmd; ++j) {
646
+ var ti = i2 - dif + j & 32767;
647
+ var pti = prev[ti];
648
+ var cd = ti - pti & 32767;
649
+ if (cd > md)
650
+ md = cd, pimod = ti;
651
+ }
652
+ }
653
+ }
654
+ imod = pimod, pimod = prev[imod];
655
+ dif += imod - pimod & 32767;
656
+ }
657
+ }
658
+ if (d) {
659
+ syms[li++] = 268435456 | revfl[l] << 18 | revfd[d];
660
+ var lin = revfl[l] & 31, din = revfd[d] & 31;
661
+ eb += fleb[lin] + fdeb[din];
662
+ ++lf[257 + lin];
663
+ ++df[din];
664
+ wi = i2 + l;
665
+ ++lc_1;
666
+ } else {
667
+ syms[li++] = dat[i2];
668
+ ++lf[dat[i2]];
669
+ }
670
+ }
671
+ }
672
+ for (i2 = Math.max(i2, wi); i2 < s; ++i2) {
673
+ syms[li++] = dat[i2];
674
+ ++lf[dat[i2]];
675
+ }
676
+ pos = wblk(dat, w, lst, syms, lf, df, eb, li, bs, i2 - bs, pos);
677
+ if (!lst) {
678
+ st.r = pos & 7 | w[pos / 8 | 0] << 3;
679
+ pos -= 7;
680
+ st.h = head, st.p = prev, st.i = i2, st.w = wi;
681
+ }
682
+ } else {
683
+ for (var i2 = st.w || 0; i2 < s + lst; i2 += 65535) {
684
+ var e = i2 + 65535;
685
+ if (e >= s) {
686
+ w[pos / 8 | 0] = lst;
687
+ e = s;
688
+ }
689
+ pos = wfblk(w, pos + 1, dat.subarray(i2, e));
690
+ }
691
+ st.i = s;
692
+ }
693
+ return slc(o, 0, pre + shft(pos) + post);
694
+ }, "dflt");
695
+ var dopt = /* @__PURE__ */ __name(function(dat, opt, pre, post, st) {
696
+ if (!st) {
697
+ st = { l: 1 };
698
+ if (opt.dictionary) {
699
+ var dict = opt.dictionary.subarray(-32768);
700
+ var newDat = new u8(dict.length + dat.length);
701
+ newDat.set(dict);
702
+ newDat.set(dat, dict.length);
703
+ dat = newDat;
704
+ st.w = dict.length;
705
+ }
706
+ }
707
+ return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? st.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : 20 : 12 + opt.mem, pre, post, st);
708
+ }, "dopt");
393
709
  var b2 = /* @__PURE__ */ __name(function(d, b) {
394
710
  return d[b] | d[b + 1] << 8;
395
711
  }, "b2");
@@ -414,6 +730,10 @@ var gzl = /* @__PURE__ */ __name(function(d) {
414
730
  var l = d.length;
415
731
  return (d[l - 4] | d[l - 3] << 8 | d[l - 2] << 16 | d[l - 1] << 24) >>> 0;
416
732
  }, "gzl");
733
+ function deflateSync(data, opts) {
734
+ return dopt(data, opts || {}, 0, 0);
735
+ }
736
+ __name(deflateSync, "deflateSync");
417
737
  var Inflate = /* @__PURE__ */ (function() {
418
738
  function Inflate2(opts, cb) {
419
739
  if (typeof opts == "function")
@@ -678,7 +998,7 @@ var Unzip = /* @__PURE__ */ (function() {
678
998
  return Unzip2;
679
999
  })();
680
1000
 
681
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
1001
+ // 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/embeddings/onnx-runtime.js
682
1002
  var ONNX_RUNTIME_VERSION = "1.30.0";
683
1003
  var REGISTRY = "https://registry.npmjs.org";
684
1004
  var wirecat = /* @__PURE__ */ __name((target, sha256, bytes, library) => ({
@@ -837,7 +1157,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
837
1157
  return { ort, session: await ort.InferenceSession.create(bytes, options) };
838
1158
  }, "openSession");
839
1159
 
840
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
1160
+ // 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/embeddings/embed.js
841
1161
  var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
842
1162
  var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
843
1163
  var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
@@ -988,6 +1308,7 @@ var openEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = d
988
1308
  }, "openEmbedder");
989
1309
 
990
1310
  export {
1311
+ deflateSync,
991
1312
  UnzipInflate,
992
1313
  Unzip,
993
1314
  installNativeRuntime,
@@ -5,31 +5,31 @@ import {
5
5
  isNewer,
6
6
  readNoticeState,
7
7
  writeUpdateState
8
- } from "./chunk-4VXXOJ2F.js";
8
+ } from "./chunk-Q5PNS2K2.js";
9
9
  import {
10
10
  executableEnvironment,
11
11
  executableOnPath
12
- } from "./chunk-CFQQTDSA.js";
12
+ } from "./chunk-2TVHFJKV.js";
13
13
  import {
14
14
  Command,
15
15
  Option,
16
16
  annotate
17
- } from "./chunk-P27NDZQR.js";
17
+ } from "./chunk-77727OQH.js";
18
18
  import {
19
19
  require_cross_spawn
20
20
  } from "./chunk-D72URWJE.js";
21
21
  import {
22
22
  refuseOwnerHomeInTests
23
- } from "./chunk-KNCPBX5P.js";
23
+ } from "./chunk-MLXDGBH4.js";
24
24
  import {
25
25
  CliError
26
- } from "./chunk-HM6AMYHR.js";
26
+ } from "./chunk-FGWQHNKK.js";
27
27
  import {
28
28
  __name,
29
29
  __toESM
30
30
  } from "./chunk-ZVVMGPBJ.js";
31
31
 
32
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/skill/index.js
32
+ // 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/skill/index.js
33
33
  import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
34
34
  import { homedir } from "node:os";
35
35
  import { basename, dirname, join, relative, resolve, sep } from "node:path";