@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,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CAPABILITY_STATEMENTS,
5
5
  storeCapable
6
- } from "./chunk-YXYZAWWW.js";
6
+ } from "./chunk-NVXMWAEV.js";
7
7
  import {
8
8
  importFrom
9
9
  } from "./chunk-Y5E2WNWB.js";
@@ -11,7 +11,7 @@ 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/sqlite-runtime.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/sqlite-runtime.js
15
15
  import { spawn, spawnSync } from "node:child_process";
16
16
  import { readFileSync } from "node:fs";
17
17
  import { dirname } from "node:path";
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-WGZH2M64.js";
8
+ } from "./chunk-53UXHJEO.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/mcp/http/state.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/mcp/http/state.js
14
14
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
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/mcp/http/activity.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/mcp/http/activity.js
17
17
  import { randomBytes } from "node:crypto";
18
18
  import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
86
86
  };
87
87
  }, "activityRecorder");
88
88
 
89
- // 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/mcp/http/state.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
90
90
  var ACCESS_SECONDS = 60 * 60;
91
91
  var REFRESH_SECONDS = 30 * 24 * 60 * 60;
92
92
  var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
@@ -5,16 +5,16 @@ import {
5
5
  backoffMs,
6
6
  realSleep,
7
7
  wallClock
8
- } from "./chunk-KNCPBX5P.js";
8
+ } from "./chunk-MLXDGBH4.js";
9
9
  import {
10
10
  CliError,
11
11
  isCliError
12
- } from "./chunk-HM6AMYHR.js";
12
+ } from "./chunk-FGWQHNKK.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // 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/http/body.js
17
+ // 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/http/body.js
18
18
  var interrupted = /* @__PURE__ */ __name((signal) => isCliError(signal.reason) ? signal.reason : new CliError(signal.reason instanceof Error && signal.reason.name === "TimeoutError" ? "timeout" : "cancelled", "HTTP response read was interrupted"), "interrupted");
19
19
  var checked = /* @__PURE__ */ __name((signal) => {
20
20
  if (signal?.aborted)
@@ -99,7 +99,7 @@ var readJsonResponse = /* @__PURE__ */ __name(async (response, options) => {
99
99
  }
100
100
  }, "readJsonResponse");
101
101
 
102
- // 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/http/hosts.js
102
+ // 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/http/hosts.js
103
103
  var LABEL = "[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?";
104
104
  var HOST_PATTERN = new RegExp(`^(?:${LABEL}(?:\\.${LABEL})*|\\*\\.${LABEL}(?:\\.${LABEL})+)$`);
105
105
  var hostProblems = /* @__PURE__ */ __name((hosts) => [
@@ -111,7 +111,7 @@ var hostCovered = /* @__PURE__ */ __name((hostname, hosts) => {
111
111
  return hosts.some((host) => host.startsWith("*.") ? name.endsWith(host.slice(1)) : name === host);
112
112
  }, "hostCovered");
113
113
 
114
- // 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/http/fetch.js
114
+ // 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/http/fetch.js
115
115
  var HOST_FETCH_TIMEOUT_MS = 3e4;
116
116
  var REDIRECTS = 5;
117
117
  var REDIRECT_STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
@@ -229,7 +229,7 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
229
229
  };
230
230
  }, "hostFetch");
231
231
 
232
- // 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/http/index.js
232
+ // 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/http/index.js
233
233
  var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
234
234
  if (!header)
235
235
  return void 0;
@@ -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/cli/stdin-field.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/cli/stdin-field.js
8
8
  var fields = /* @__PURE__ */ new WeakMap();
9
9
  var readsStdin = /* @__PURE__ */ __name((command, field) => {
10
10
  fields.set(command, field);
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError,
5
5
  errorCodes
6
- } from "./chunk-HM6AMYHR.js";
6
+ } from "./chunk-FGWQHNKK.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // 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/errors/failures.js
11
+ // 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/errors/failures.js
12
12
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
13
13
  var isCommanderFailure = /* @__PURE__ */ __name((value) => {
14
14
  const { code, exitCode } = value ?? {};
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  updateCommand
5
- } from "./chunk-4VXXOJ2F.js";
5
+ } from "./chunk-Q5PNS2K2.js";
6
6
  import {
7
7
  QUESTIONS,
8
8
  readSetupAnswers,
9
9
  unanswered,
10
10
  writeSetupAnswers
11
- } from "./chunk-QEJFBORC.js";
11
+ } from "./chunk-6P7HUUR5.js";
12
12
  import {
13
13
  DEFAULT_STEMMERS,
14
14
  LANGUAGES
15
- } from "./chunk-5XPHFV7H.js";
15
+ } from "./chunk-NSQN4F7H.js";
16
16
  import {
17
17
  sharedConfigPath
18
- } from "./chunk-HOVHE3A3.js";
18
+ } from "./chunk-F7DHR4OO.js";
19
19
  import {
20
20
  installerOf
21
- } from "./chunk-HVXOA4FO.js";
21
+ } from "./chunk-KPBUJQKT.js";
22
22
  import {
23
23
  storePath
24
- } from "./chunk-HHEWTLAT.js";
24
+ } from "./chunk-YOZHKJEN.js";
25
25
  import {
26
26
  __name
27
27
  } from "./chunk-ZVVMGPBJ.js";
28
28
 
29
- // 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/first-run.js
29
+ // 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/first-run.js
30
30
  import { spawnSync } from "node:child_process";
31
31
  import { accessSync, constants, realpathSync } from "node:fs";
32
32
  import { delimiter, join } from "node:path";
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
84
84
  return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
85
85
  }, "suggested");
86
86
  var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
87
- const { openStore } = await import("./store-KQCLR57N.js");
87
+ const { openStore } = await import("./store-IVJXGAX7.js");
88
88
  const store = await openStore({ env });
89
89
  let rebuild = false;
90
90
  try {
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
113
113
  if (!rebuild)
114
114
  return;
115
115
  const [{ openCache }, { buildStems }] = await Promise.all([
116
- import("./open-JGXVHIKO.js"),
117
- import("./store-maintenance-command-CK2MU5M6.js")
116
+ import("./open-K2JIOWCG.js"),
117
+ import("./store-maintenance-command-YBMOO7XH.js")
118
118
  ]);
119
119
  const database = await openCache(storePath(env));
120
120
  try {
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
126
126
  var askTools = /* @__PURE__ */ __name(async (run) => {
127
127
  const { command, env, io } = run;
128
128
  const installed = run.installed ?? ((name) => onPath(name, env));
129
- const { WIRECAT_TOOLS } = await import("./first-screen-GZH3LMLZ.js");
129
+ const { WIRECAT_TOOLS } = await import("./first-screen-CCLGBTQ2.js");
130
130
  const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
131
131
  const missing = others.filter((tool) => !installed(tool.command));
132
132
  io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
@@ -200,7 +200,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
200
200
  // `setup describe` and `setup apply` are a program's; only the bare walk-through asks everything again.
201
201
  all: start.path.length === 1 && start.path[0] === "setup",
202
202
  io: {
203
- ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-FW44QDHD.js")).readSecret(prompt, { input, echo: true }), "ask"),
203
+ ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-XWESMSOG.js")).readSecret(prompt, { input, echo: true }), "ask"),
204
204
  say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
205
205
  `), "say")
206
206
  }
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-HM6AMYHR.js";
5
+ } from "./chunk-FGWQHNKK.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/cli/messenger/lacks.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/cli/messenger/lacks.js
11
11
  var COMMAND_NEEDS = {
12
12
  "account update": ["updateProfile", "change the profile"],
13
13
  "account sessions list": ["sessions", "list the account's sessions"],
@@ -19,10 +19,20 @@ var COMMAND_NEEDS = {
19
19
  "chats folders create": ["createFolder", "create a folder"],
20
20
  "chats folders update": ["updateFolder", "change a folder"],
21
21
  "chats folders delete": ["deleteFolder", "delete a folder"],
22
+ "chats links show": ["group", "read a group"],
23
+ "chats links reset": ["resetInviteLink", "replace an invite link"],
24
+ "chats requests list": ["joinRequests", "read join requests"],
25
+ "chats requests confirm": ["answerJoinRequest", "answer join requests"],
26
+ "chats requests reject": ["answerJoinRequest", "answer join requests"],
27
+ "chats admins add": ["addAdmin", "make someone an admin"],
28
+ "chats admins remove": ["removeAdmin", "take admin rights back"],
22
29
  "contacts add": ["addContact", "add a contact"],
23
30
  "contacts remove": ["removeContact", "remove a contact"],
24
31
  "contacts rename": ["renameContact", "rename a contact"],
25
32
  "contacts import": ["importContacts", "import contacts"],
33
+ "contacts block": ["block", "block a person"],
34
+ "contacts unblock": ["unblock", "unblock a person"],
35
+ "messages forward": ["forward", "forward a message"],
26
36
  "messages comments": ["comments", "read comments on a channel post"],
27
37
  "messages pin": ["pin", "pin a message"],
28
38
  "messages unpin": ["unpin", "unpin a message"],
@@ -54,6 +64,8 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
54
64
  if (need && messenger.never?.includes(need[0]))
55
65
  child._hidden = true;
56
66
  walk(child, at);
67
+ if (child.commands.length > 0 && child.commands.every((one) => one._hidden))
68
+ child._hidden = true;
57
69
  }
58
70
  }, "walk");
59
71
  walk(group, [group.name()]);
@@ -23,28 +23,28 @@ import {
23
23
  tagMemberIds,
24
24
  thingOf,
25
25
  write
26
- } from "./chunk-YDDI4QIT.js";
26
+ } from "./chunk-CWTTCFDX.js";
27
27
  import {
28
28
  ADDED_PROVIDER,
29
29
  filesAccountSql,
30
30
  folderProviderOf,
31
31
  folderProviderSql,
32
32
  isDocumentAccountProvider
33
- } from "./chunk-BEV5LO4D.js";
33
+ } from "./chunk-7KNBZOLH.js";
34
34
  import {
35
35
  damagedFile
36
- } from "./chunk-LQVDFD65.js";
36
+ } from "./chunk-HZ5LRWKH.js";
37
37
  import {
38
38
  fold
39
- } from "./chunk-2Z7UOXFC.js";
39
+ } from "./chunk-AG34MPVN.js";
40
40
  import {
41
41
  CliError
42
- } from "./chunk-HM6AMYHR.js";
42
+ } from "./chunk-FGWQHNKK.js";
43
43
  import {
44
44
  __name
45
45
  } from "./chunk-ZVVMGPBJ.js";
46
46
 
47
- // 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/damage.js
47
+ // 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/damage.js
48
48
  var DERIVED = /* @__PURE__ */ new Set(["mentions", "involvements", "embeddings"]);
49
49
  var named = /* @__PURE__ */ __name((tables) => tables.length <= 5 ? tables.join(", ") : `${tables.slice(0, 5).join(", ")} and ${tables.length - 5} more`, "named");
50
50
  var isDerivedTable = /* @__PURE__ */ __name((table, searchIndexes) => DERIVED.has(table) || table.startsWith("vector_index_") || searchIndexes.some((index) => table === index || table.startsWith(`${index}_`)), "isDerivedTable");
@@ -147,11 +147,11 @@ var storeDamageReport = /* @__PURE__ */ __name(({ health, command, mark = null,
147
147
  };
148
148
  }, "storeDamageReport");
149
149
 
150
- // 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/document-transfer/index.js
150
+ // 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/document-transfer/index.js
151
151
  import { realpathSync, statSync } from "node:fs";
152
152
  import { resolve } from "node:path";
153
153
 
154
- // 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/sqlite/document-transfer/people.js
154
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
155
155
  var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
156
156
  const creatable = /* @__PURE__ */ new Set();
157
157
  let people = 0, identities = 0;
@@ -214,11 +214,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
214
214
  }
215
215
  }, "copyPeople");
216
216
 
217
- // 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/document-transfer/digest.js
217
+ // 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/document-transfer/digest.js
218
218
  import { createHash } from "node:crypto";
219
219
  var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
220
220
 
221
- // 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/sqlite/document-transfer/collection.js
221
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
222
222
  var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
223
223
  const colon = collection.indexOf(":");
224
224
  const provider = collection.slice(0, colon);
@@ -262,7 +262,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
262
262
  };
263
263
  }, "currentCollection");
264
264
 
265
- // 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/sqlite/document-transfer/plan.js
265
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
266
266
  var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
267
267
  const mappings = /* @__PURE__ */ new Map();
268
268
  const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
@@ -429,7 +429,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
429
429
  };
430
430
  }, "planTransfer");
431
431
 
432
- // 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/sqlite/document-transfer/snapshot.js
432
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
433
433
  var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
434
434
  var MAX_ENTITIES = 1e3;
435
435
  var MAX_AUXILIARY = 1e4;
@@ -591,7 +591,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
591
591
  };
592
592
  }), "transferSnapshot");
593
593
 
594
- // 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/sqlite/document-transfer/apply.js
594
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
595
595
  var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
596
596
  if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
597
597
  return provider ?? null;
@@ -763,7 +763,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
763
763
  database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
764
764
  }, "remapEntity");
765
765
 
766
- // 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/document-transfer/index.js
766
+ // 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/document-transfer/index.js
767
767
  var locations = /* @__PURE__ */ __name((options) => {
768
768
  for (const value of [options.source, options.destination, options.collection])
769
769
  if (typeof value !== "string" || !value.trim())
@@ -865,7 +865,7 @@ var applyWith = /* @__PURE__ */ __name(async (location, options) => {
865
865
  }
866
866
  }, "applyWith");
867
867
 
868
- // 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/health.js
868
+ // 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/health.js
869
869
  import { existsSync, statSync as statSync2 } from "node:fs";
870
870
  var JSON_COLUMNS = {
871
871
  accounts: ["settings"],
@@ -1007,7 +1007,7 @@ var storeHealth = /* @__PURE__ */ __name(async (path, { deep = false } = {}) =>
1007
1007
  }
1008
1008
  }, "storeHealth");
1009
1009
 
1010
- // 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/project-transfer/preview.js
1010
+ // 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/project-transfer/preview.js
1011
1011
  var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
1012
1012
  if (!options || typeof options !== "object" || Array.isArray(options))
1013
1013
  throw new CliError("validation_error", "project preview options are required");
@@ -1033,7 +1033,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
1033
1033
  });
1034
1034
  }, "previewProjectAnnotationSnapshot");
1035
1035
 
1036
- // 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/project-transfer/snapshot.js
1036
+ // 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/project-transfer/snapshot.js
1037
1037
  var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
1038
1038
  if (!options || typeof options !== "object" || Array.isArray(options))
1039
1039
  throw new CliError("validation_error", "snapshot options are required");
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  AUDIT_MIN_SCORE
5
- } from "./chunk-YYQ5GKAI.js";
5
+ } from "./chunk-XRA2V4MM.js";
6
6
  import {
7
7
  LIST_QUERY_GUIDE,
8
8
  nativeTerms
9
- } from "./chunk-RXU5T5NM.js";
9
+ } from "./chunk-JRZEXLRQ.js";
10
10
  import {
11
11
  DEFAULT_CONFIG,
12
12
  environmentOf,
@@ -16,21 +16,21 @@ import {
16
16
  renderAnswer,
17
17
  snakeKeys,
18
18
  withAgentLevels
19
- } from "./chunk-P27NDZQR.js";
19
+ } from "./chunk-77727OQH.js";
20
20
  import {
21
21
  formatReference
22
- } from "./chunk-BEV5LO4D.js";
22
+ } from "./chunk-7KNBZOLH.js";
23
23
  import {
24
24
  queryError
25
- } from "./chunk-JVESLS7B.js";
25
+ } from "./chunk-S5NFSVNK.js";
26
26
  import {
27
27
  CliError
28
- } from "./chunk-HM6AMYHR.js";
28
+ } from "./chunk-FGWQHNKK.js";
29
29
  import {
30
30
  __name
31
31
  } from "./chunk-ZVVMGPBJ.js";
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/cli/paging.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/cli/paging.js
34
34
  var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
35
35
  if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
36
36
  throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
@@ -57,7 +57,7 @@ var pagingOf = /* @__PURE__ */ __name((command) => {
57
57
  return { limit: limit ?? DEFAULT_CONFIG.defaults.limit, page: page ?? 1 };
58
58
  }, "pagingOf");
59
59
 
60
- // 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/messenger/chat-answers.js
60
+ // 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/messenger/chat-answers.js
61
61
  var defined = /* @__PURE__ */ __name((record) => Object.fromEntries(Object.entries(record).filter(([, value]) => value !== void 0)), "defined");
62
62
  var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
63
63
  var settingsOf = /* @__PURE__ */ __name((settings) => defined({