@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,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  timezoneOf,
5
5
  zonedMoment
6
- } from "./chunk-JVESLS7B.js";
6
+ } from "./chunk-S5NFSVNK.js";
7
7
  import {
8
8
  CliError
9
- } from "./chunk-HM6AMYHR.js";
9
+ } from "./chunk-FGWQHNKK.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // 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/moment.js
14
+ // 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/moment.js
15
15
  var calendarMoment = /* @__PURE__ */ __name((wanted, flag, { zone, end = false } = {}) => {
16
16
  try {
17
17
  return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  safeName
5
- } from "./chunk-K5IC4FZN.js";
5
+ } from "./chunk-MA6U4XH2.js";
6
6
  import {
7
7
  capability
8
- } from "./chunk-KB35BVTG.js";
8
+ } from "./chunk-5KL3PQWI.js";
9
9
  import {
10
10
  ANSWER_RESERVE_MS,
11
11
  DEFAULT_IMAGE_MODEL,
@@ -15,7 +15,7 @@ import {
15
15
  imageModel,
16
16
  imageModelsDirectory,
17
17
  isImageModelInstalled
18
- } from "./chunk-3MYN2RMG.js";
18
+ } from "./chunk-DGZNVYKK.js";
19
19
  import {
20
20
  EmptyAnswer,
21
21
  checkedOptions,
@@ -23,11 +23,11 @@ import {
23
23
  range,
24
24
  systemFor,
25
25
  validateImages
26
- } from "./chunk-BAXNAOOL.js";
26
+ } from "./chunk-KHEISFJO.js";
27
27
  import {
28
28
  questionLookup,
29
29
  questionText
30
- } from "./chunk-PHKED7AG.js";
30
+ } from "./chunk-64KVWK5N.js";
31
31
  import {
32
32
  DEFAULT_TEXT_MODEL,
33
33
  PREVIOUS_DEFAULT_TEXT_MODEL,
@@ -36,7 +36,7 @@ import {
36
36
  textModel,
37
37
  textModels,
38
38
  vectorModelKey
39
- } from "./chunk-DGMTSDKB.js";
39
+ } from "./chunk-FSWLPNJT.js";
40
40
  import {
41
41
  chatReferenceOf,
42
42
  chatsMatching,
@@ -48,11 +48,11 @@ import {
48
48
  pickChat,
49
49
  pickPerson,
50
50
  profilesOn
51
- } from "./chunk-KGAUINBO.js";
51
+ } from "./chunk-DW6YAEMZ.js";
52
52
  import {
53
53
  DEFAULT_STEMMERS,
54
54
  createStemmer
55
- } from "./chunk-5XPHFV7H.js";
55
+ } from "./chunk-NSQN4F7H.js";
56
56
  import {
57
57
  INTERNAL_NOTES,
58
58
  accountsOfList,
@@ -71,59 +71,59 @@ import {
71
71
  sameAs,
72
72
  sourceOf2 as sourceOf,
73
73
  typedCommand
74
- } from "./chunk-BEV5LO4D.js";
74
+ } from "./chunk-7KNBZOLH.js";
75
75
  import {
76
76
  isCliFailure,
77
77
  sqliteCode
78
- } from "./chunk-LQVDFD65.js";
78
+ } from "./chunk-HZ5LRWKH.js";
79
79
  import {
80
80
  RRF_K,
81
81
  SEARCH_QUERY,
82
82
  isQueryLimit,
83
83
  plainQuery,
84
84
  validateFields
85
- } from "./chunk-LC6WE6JS.js";
85
+ } from "./chunk-DLEAVO2T.js";
86
86
  import {
87
87
  normalize
88
- } from "./chunk-2Z7UOXFC.js";
88
+ } from "./chunk-AG34MPVN.js";
89
89
  import {
90
90
  normalizeTag
91
- } from "./chunk-T37TAXVL.js";
91
+ } from "./chunk-D2IVASIC.js";
92
92
  import {
93
93
  dateRange,
94
94
  parseLucene,
95
95
  timezoneOf
96
- } from "./chunk-JVESLS7B.js";
96
+ } from "./chunk-S5NFSVNK.js";
97
97
  import {
98
98
  localOnly,
99
99
  refuseOffComputer
100
- } from "./chunk-2CMLY2X3.js";
100
+ } from "./chunk-OZZ5PTHG.js";
101
101
  import {
102
102
  PLAIN_HTTP_REFUSED,
103
103
  endpoint,
104
104
  endpointFetch,
105
105
  modelAddressAllowed,
106
106
  onThisComputer
107
- } from "./chunk-FRB2L7OE.js";
107
+ } from "./chunk-LEO5GWPD.js";
108
108
  import {
109
109
  readSharedSection,
110
110
  sharedConfigPath,
111
111
  writeSharedSection
112
- } from "./chunk-HOVHE3A3.js";
112
+ } from "./chunk-F7DHR4OO.js";
113
113
  import {
114
114
  defaultThreads,
115
115
  isTextModelInstalled,
116
116
  openEmbedder,
117
117
  textModelsDirectory
118
- } from "./chunk-STTO2MSY.js";
118
+ } from "./chunk-BCO37YUH.js";
119
119
  import {
120
120
  storePath
121
- } from "./chunk-HHEWTLAT.js";
121
+ } from "./chunk-YOZHKJEN.js";
122
122
  import {
123
123
  Credentials,
124
124
  pathsAreOverridden,
125
125
  resolvePaths
126
- } from "./chunk-KNCPBX5P.js";
126
+ } from "./chunk-MLXDGBH4.js";
127
127
  import {
128
128
  array,
129
129
  check,
@@ -150,12 +150,12 @@ import {
150
150
  import {
151
151
  CliError,
152
152
  singleLine
153
- } from "./chunk-HM6AMYHR.js";
153
+ } from "./chunk-FGWQHNKK.js";
154
154
  import {
155
155
  __name
156
156
  } from "./chunk-ZVVMGPBJ.js";
157
157
 
158
- // 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/groups.js
158
+ // 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/groups.js
159
159
  var ALL = "all";
160
160
  var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
161
161
  var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
@@ -290,7 +290,7 @@ var scopeToGroup = /* @__PURE__ */ __name((run, request, context) => {
290
290
  return scoped;
291
291
  }, "scopeToGroup");
292
292
 
293
- // 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/lucene/meaning-parts.js
293
+ // 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/lucene/meaning-parts.js
294
294
  var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
295
295
  var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
296
296
  let narrows = false;
@@ -319,7 +319,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
319
319
  return wanted(root).join(" ").trim();
320
320
  }, "meaningWords");
321
321
 
322
- // 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/total.js
322
+ // 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/total.js
323
323
  var TOTAL_CAP = 1e4;
324
324
  var totalOf = /* @__PURE__ */ __name((count, shown, hasMore, exact = true) => {
325
325
  const least = shown + (hasMore ? 1 : 0);
@@ -330,7 +330,7 @@ var totalOf = /* @__PURE__ */ __name((count, shown, hasMore, exact = true) => {
330
330
  return { value: count, relation: exact ? "eq" : "gte" };
331
331
  }, "totalOf");
332
332
 
333
- // 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/services/document-pictures.js
333
+ // 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/services/document-pictures.js
334
334
  import { createHash } from "node:crypto";
335
335
  var refOf = /* @__PURE__ */ __name((target) => target.ref ?? `document:${target.documentId}`, "refOf");
336
336
  var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
@@ -338,7 +338,7 @@ var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}
338
338
  const directory = imageModelsDirectory(env);
339
339
  if (!isImageModelInstalled(model, directory))
340
340
  throw new CliError("not_found", `the picture model is not downloaded \u2014 ${command === void 0 ? "install it with a WireCat CLI that has `images models download` (tg, max or wa); they share the model folder" : `\`${command} images models download ${model.id}\` fetches it`}`, { reason: "model.not-downloaded", model: model.id });
341
- const { openPictureEmbedder } = await import("./embedder-JYGF6R7I.js");
341
+ const { openPictureEmbedder } = await import("./embedder-7DIUHQOQ.js");
342
342
  return openPictureEmbedder(model, directory);
343
343
  }, "openPictureEmbedderFor");
344
344
  var savePicture = /* @__PURE__ */ __name(async (store, target, bytes, options2 = {}) => {
@@ -359,7 +359,7 @@ var savePicture = /* @__PURE__ */ __name(async (store, target, bytes, options2 =
359
359
  }, "savePicture");
360
360
  var removePicture = /* @__PURE__ */ __name((store, target) => store.notes.removePicture(refOf(target)), "removePicture");
361
361
 
362
- // 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/services/document-source.js
362
+ // 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/services/document-source.js
363
363
  var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
364
364
  const metadata = note.frontMatter;
365
365
  const account = accounts.find(({ id }) => String(id) === note.folderId);
@@ -381,7 +381,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
381
381
  };
382
382
  }, "documentSource");
383
383
 
384
- // 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/keys.js
384
+ // 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/keys.js
385
385
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
386
386
  const host = new URL(baseUrl).host;
387
387
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -414,7 +414,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
414
414
  };
415
415
  }, "embeddingKeys");
416
416
 
417
- // 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/http/time-limit.js
417
+ // 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/http/time-limit.js
418
418
  var timeLimit = /* @__PURE__ */ __name((ms) => {
419
419
  const controller = new AbortController();
420
420
  const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
@@ -430,7 +430,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
430
430
  }
431
431
  }, "withTimeLimit");
432
432
 
433
- // 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/models/openai.js
433
+ // 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/openai.js
434
434
  var options = strictObject({
435
435
  temperature: range(0, 2),
436
436
  top_p: range(0, 1),
@@ -497,7 +497,7 @@ var openai = {
497
497
  }), "complete")
498
498
  };
499
499
 
500
- // 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/models/index.js
500
+ // 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/index.js
501
501
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
502
502
  complete: /* @__PURE__ */ __name(async (request) => {
503
503
  if (deps.signal?.aborted)
@@ -512,7 +512,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
512
512
  if (!adapter && target.provider === "openai")
513
513
  adapter = openai;
514
514
  if (!adapter && target.provider === "anthropic")
515
- adapter = (await import("./anthropic-3CCYAGO3.js")).anthropic;
515
+ adapter = (await import("./anthropic-ZTYBZ7PI.js")).anthropic;
516
516
  if (!adapter)
517
517
  throw new CliError("validation_error", `no model adapter for ${target.provider}`);
518
518
  if (request.images !== void 0 && adapter.images !== true)
@@ -572,7 +572,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
572
572
  }, "complete")
573
573
  }), "modelGateway");
574
574
 
575
- // 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/services/enrichment-setting.js
575
+ // 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/services/enrichment-setting.js
576
576
  var SECTION = "enrichment";
577
577
  var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
578
578
  var DEFAULT_BASE_URLS = {
@@ -647,7 +647,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
647
647
  return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
648
648
  }, "costOf");
649
649
 
650
- // 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/services/enrichment.js
650
+ // 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/services/enrichment.js
651
651
  var ENRICH_PER_RUN = 600;
652
652
  var BATCH = 20;
653
653
  var CONCURRENCY = 4;
@@ -932,7 +932,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
932
932
  };
933
933
  }, "enrichmentState");
934
934
 
935
- // 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/services/meaning-model.js
935
+ // 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/services/meaning-model.js
936
936
  var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
937
937
  const chosen = chosenTextModel(env);
938
938
  if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
@@ -947,7 +947,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
947
947
  return (counts.get(before) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
948
948
  }, "meaningModel");
949
949
 
950
- // 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/services/notes-title-tier.js
950
+ // 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/services/notes-title-tier.js
951
951
  var plainQueryWords = /* @__PURE__ */ __name((query) => {
952
952
  let root;
953
953
  try {
@@ -974,12 +974,12 @@ var titleTiers = /* @__PURE__ */ __name((hits, words) => {
974
974
  return [...hits].sort((a, b) => rank(a) - rank(b));
975
975
  }, "titleTiers");
976
976
 
977
- // 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/services/pictures.js
977
+ // 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/services/pictures.js
978
978
  import { createHash as createHash2 } from "node:crypto";
979
979
  import { lstat, readFile } from "node:fs/promises";
980
980
  import { setTimeout as sleep } from "node:timers/promises";
981
981
 
982
- // 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/models.js
982
+ // 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/models.js
983
983
  var GROUP_SETTINGS = [
984
984
  "allCanPin",
985
985
  "onlyAdminsAdd",
@@ -993,20 +993,20 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
993
993
  var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
994
994
  var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
995
995
 
996
- // 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/services/file-download.js
996
+ // 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/services/file-download.js
997
997
  import { createWriteStream, mkdirSync } from "node:fs";
998
998
  import { link, rm } from "node:fs/promises";
999
999
  import { join, resolve } from "node:path";
1000
1000
  import { Readable, Transform } from "node:stream";
1001
1001
  import { pipeline } from "node:stream/promises";
1002
1002
 
1003
- // 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/recovery.js
1003
+ // 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/recovery.js
1004
1004
  var withRecovery = /* @__PURE__ */ __name((error) => ({
1005
1005
  ...error,
1006
1006
  retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
1007
1007
  }), "withRecovery");
1008
1008
 
1009
- // 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/services/batch.js
1009
+ // 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/services/batch.js
1010
1010
  var actionable = /* @__PURE__ */ __name((error) => {
1011
1011
  if (isCliFailure(error))
1012
1012
  return withRecovery({ code: error.code, message: error.message, ...error.details });
@@ -1089,7 +1089,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
1089
1089
  };
1090
1090
  }, "mergeBatches");
1091
1091
 
1092
- // 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/services/file-download.js
1092
+ // 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/services/file-download.js
1093
1093
  var refreshedFiles = /* @__PURE__ */ __name((files) => files.flatMap(({ kind, name, position, providerRef }) => providerRef === void 0 || Object.keys(providerRef).length === 0 ? [] : [
1094
1094
  {
1095
1095
  kind,
@@ -1198,7 +1198,7 @@ var save = /* @__PURE__ */ __name(async (file, directory, fallbackName, { unique
1198
1198
  }
1199
1199
  }, "save");
1200
1200
 
1201
- // 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/services/deps.js
1201
+ // 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/services/deps.js
1202
1202
  var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
1203
1203
  var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
1204
1204
  var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
@@ -1273,7 +1273,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
1273
1273
  return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
1274
1274
  }, "storeOnlyDeps");
1275
1275
 
1276
- // 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/services/search-kind.js
1276
+ // 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/services/search-kind.js
1277
1277
  var NO_MAIL = "no_mail";
1278
1278
  var MAIL = "email";
1279
1279
  var groupLockOf = /* @__PURE__ */ __name((app, env) => {
@@ -1347,7 +1347,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
1347
1347
  return chosenMail.map(({ provider, account }) => ({ provider, account }));
1348
1348
  }, "accountsOfKind");
1349
1349
 
1350
- // 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/services/message-resolution.js
1350
+ // 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/services/message-resolution.js
1351
1351
  var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
1352
1352
  if (deps.reads !== "store")
1353
1353
  return keptChatId(deps.messenger, reference, store, account);
@@ -1548,7 +1548,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
1548
1548
  }, "chatsMatchingIn");
1549
1549
  var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
1550
1550
 
1551
- // 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/services/pictures.js
1551
+ // 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/services/pictures.js
1552
1552
  var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
1553
1553
  var PICTURE_FLOOR = 0.25;
1554
1554
  var PAGE = 50;
@@ -1589,7 +1589,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
1589
1589
  const directory = imageModelsDirectory(deps.env);
1590
1590
  if (!isImageModelInstalled(model2, directory))
1591
1591
  throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
1592
- const { openPictureEmbedder } = await import("./embedder-JYGF6R7I.js");
1592
+ const { openPictureEmbedder } = await import("./embedder-7DIUHQOQ.js");
1593
1593
  return openPictureEmbedder(model2, directory);
1594
1594
  }, "open");
1595
1595
  const embedder = /* @__PURE__ */ __name(() => {
@@ -1763,7 +1763,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
1763
1763
  }, "search")
1764
1764
  }), "withPictures");
1765
1765
 
1766
- // 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/services/notes-search.js
1766
+ // 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/services/notes-search.js
1767
1767
  var storeQuery = /* @__PURE__ */ __name(async (store, text, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text, exact), timezone), "storeQuery");
1768
1768
  var parsedQuery = /* @__PURE__ */ __name((text, exact) => validateFields(parseLucene(text, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
1769
1769
  var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
@@ -2,35 +2,35 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  questionTerms
5
- } from "./chunk-PHKED7AG.js";
5
+ } from "./chunk-64KVWK5N.js";
6
6
  import {
7
7
  meaningFloor
8
- } from "./chunk-DGMTSDKB.js";
8
+ } from "./chunk-FSWLPNJT.js";
9
9
  import {
10
10
  validateVector
11
- } from "./chunk-AZLDR36U.js";
11
+ } from "./chunk-WDL3QYN2.js";
12
12
  import {
13
13
  RRF_K,
14
14
  plainQuery
15
- } from "./chunk-LC6WE6JS.js";
15
+ } from "./chunk-DLEAVO2T.js";
16
16
  import {
17
17
  MEETING_FIELD_NAMES,
18
18
  formatMeetingReference,
19
19
  liftMeetingFields,
20
20
  parseMeetingReference,
21
21
  refreshMeetingIndex
22
- } from "./chunk-JVESLS7B.js";
22
+ } from "./chunk-S5NFSVNK.js";
23
23
  import {
24
24
  CliError
25
- } from "./chunk-HM6AMYHR.js";
25
+ } from "./chunk-FGWQHNKK.js";
26
26
  import {
27
27
  __name
28
28
  } from "./chunk-ZVVMGPBJ.js";
29
29
 
30
- // 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/services/meeting-combined.js
30
+ // 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/services/meeting-combined.js
31
31
  import { createHash } from "node:crypto";
32
32
 
33
- // 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/services/meeting-hit-search.js
33
+ // 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/services/meeting-hit-search.js
34
34
  var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
35
35
  const { project, tag, topic, ...input } = request;
36
36
  input.signal?.throwIfAborted();
@@ -77,7 +77,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
77
77
  return { ...result, selection };
78
78
  }, "searchMeetingHits");
79
79
 
80
- // 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/services/meeting-combined.js
80
+ // 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/services/meeting-combined.js
81
81
  var DEPTH = 200;
82
82
  var cursorOf = /* @__PURE__ */ __name((value, key) => {
83
83
  if (value === void 0)
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  resolvePaths
5
- } from "./chunk-KNCPBX5P.js";
5
+ } from "./chunk-MLXDGBH4.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // 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/path.js
10
+ // 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/path.js
11
11
  import { realpathSync } from "node:fs";
12
12
  import { userInfo } from "node:os";
13
13
  import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
@@ -5,15 +5,15 @@ import {
5
5
  } from "./chunk-Y5E2WNWB.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-HM6AMYHR.js";
8
+ } from "./chunk-FGWQHNKK.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // 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/speech/recognize.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/recognize.js
14
14
  import { createRequire } from "node:module";
15
15
 
16
- // 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/speech/ogg-limit.js
16
+ // 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/ogg-limit.js
17
17
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
18
18
  var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
19
19
  const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
70
70
  throw invalid();
71
71
  }, "checkOggDuration");
72
72
 
73
- // 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/speech/recognize.js
73
+ // 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/recognize.js
74
74
  var SAMPLE_RATE = 16e3;
75
75
  var LEAD = SAMPLE_RATE / 2;
76
76
  var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
@@ -0,0 +1,41 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ SCHEMA_DIALECT,
5
+ commandContract,
6
+ commandPathOf,
7
+ findCommand,
8
+ outputOf
9
+ } from "./chunk-NSBTYJRP.js";
10
+ import "./chunk-77727OQH.js";
11
+ import "./chunk-P4ADIGTL.js";
12
+ import "./chunk-6P7HUUR5.js";
13
+ import "./chunk-DGZNVYKK.js";
14
+ import "./chunk-FSWLPNJT.js";
15
+ import "./chunk-MGC2BAD2.js";
16
+ import "./chunk-2T76TPDD.js";
17
+ import "./chunk-PVTW7ZOY.js";
18
+ import "./chunk-LKUWH6KU.js";
19
+ import "./chunk-7KNBZOLH.js";
20
+ import "./chunk-HZ5LRWKH.js";
21
+ import "./chunk-D2IVASIC.js";
22
+ import "./chunk-S5NFSVNK.js";
23
+ import "./chunk-LEO5GWPD.js";
24
+ import "./chunk-F7DHR4OO.js";
25
+ import "./chunk-2Q5ATPA6.js";
26
+ import "./chunk-E5EYJU5R.js";
27
+ import "./chunk-H76WEF2L.js";
28
+ import "./chunk-YOZHKJEN.js";
29
+ import "./chunk-MLXDGBH4.js";
30
+ import "./chunk-E5XATHAF.js";
31
+ import "./chunk-S4UUN6LD.js";
32
+ import "./chunk-Y5E2WNWB.js";
33
+ import "./chunk-FGWQHNKK.js";
34
+ import "./chunk-ZVVMGPBJ.js";
35
+ export {
36
+ SCHEMA_DIALECT,
37
+ commandContract,
38
+ commandPathOf,
39
+ findCommand,
40
+ outputOf
41
+ };
@@ -4,53 +4,53 @@ import {
4
4
  COMMAND_SERVER_CONCURRENT,
5
5
  enterCommandServer,
6
6
  serveCommands
7
- } from "./chunk-EZMG5QXB.js";
8
- import "./chunk-LECMHK2F.js";
9
- import "./chunk-6EJCI47L.js";
7
+ } from "./chunk-OZAP4FEG.js";
8
+ import "./chunk-HPS2YGSZ.js";
9
+ import "./chunk-NSBTYJRP.js";
10
10
  import {
11
11
  ensureSqlite
12
- } from "./chunk-4RFR4J2O.js";
12
+ } from "./chunk-GGNVBN2S.js";
13
13
  import {
14
14
  commandServerRequest,
15
15
  exitCodeSet,
16
16
  inCommandServerRequest
17
- } from "./chunk-P27NDZQR.js";
18
- import "./chunk-6YOMPW7Y.js";
19
- import "./chunk-QEJFBORC.js";
20
- import "./chunk-3MYN2RMG.js";
21
- import "./chunk-DGMTSDKB.js";
22
- import "./chunk-YUDVRFXN.js";
23
- import "./chunk-DHVVXQEL.js";
24
- import "./chunk-DIU2QJJF.js";
25
- import "./chunk-BQBC2WIG.js";
17
+ } from "./chunk-77727OQH.js";
18
+ import "./chunk-P4ADIGTL.js";
19
+ import "./chunk-6P7HUUR5.js";
20
+ import "./chunk-DGZNVYKK.js";
21
+ import "./chunk-FSWLPNJT.js";
22
+ import "./chunk-MGC2BAD2.js";
23
+ import "./chunk-2T76TPDD.js";
24
+ import "./chunk-PVTW7ZOY.js";
25
+ import "./chunk-LKUWH6KU.js";
26
26
  import {
27
27
  asOwnProcess
28
- } from "./chunk-BEV5LO4D.js";
29
- import "./chunk-LQVDFD65.js";
30
- import "./chunk-T37TAXVL.js";
31
- import "./chunk-JVESLS7B.js";
32
- import "./chunk-FRB2L7OE.js";
33
- import "./chunk-HOVHE3A3.js";
34
- import "./chunk-RD7BKTWV.js";
35
- import "./chunk-AV2ZJ4WX.js";
36
- import "./chunk-ESZHGC4Q.js";
37
- import "./chunk-HHEWTLAT.js";
38
- import "./chunk-YXYZAWWW.js";
39
- import "./chunk-FMMYBVCH.js";
40
- import "./chunk-KNCPBX5P.js";
28
+ } from "./chunk-7KNBZOLH.js";
29
+ import "./chunk-HZ5LRWKH.js";
30
+ import "./chunk-D2IVASIC.js";
31
+ import "./chunk-S5NFSVNK.js";
32
+ import "./chunk-LEO5GWPD.js";
33
+ import "./chunk-F7DHR4OO.js";
34
+ import "./chunk-2Q5ATPA6.js";
35
+ import "./chunk-E5EYJU5R.js";
36
+ import "./chunk-H76WEF2L.js";
37
+ import "./chunk-YOZHKJEN.js";
38
+ import "./chunk-NVXMWAEV.js";
39
+ import "./chunk-7YPZPJTB.js";
40
+ import "./chunk-MLXDGBH4.js";
41
41
  import {
42
42
  catchCrashes
43
- } from "./chunk-3LMW7U7F.js";
43
+ } from "./chunk-E5XATHAF.js";
44
44
  import "./chunk-S4UUN6LD.js";
45
45
  import "./chunk-Y5E2WNWB.js";
46
46
  import {
47
47
  CliError
48
- } from "./chunk-HM6AMYHR.js";
48
+ } from "./chunk-FGWQHNKK.js";
49
49
  import {
50
50
  __name
51
51
  } from "./chunk-ZVVMGPBJ.js";
52
52
 
53
- // 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/cli/command-server-entry.js
53
+ // 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/cli/command-server-entry.js
54
54
  import { PassThrough } from "node:stream";
55
55
  var route = /* @__PURE__ */ __name((stream, sink) => {
56
56
  const original = stream.write;