@wirecat/notion-cli 0.4.0 → 0.6.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 (229) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +5 -0
  3. package/contracts/wirecat.json +55 -2
  4. package/dist/bin/notion.js +2 -2
  5. package/dist/bundle/agent-ILG6AH7S.js +42 -0
  6. package/dist/bundle/{all-profiles-4IONYZB6.js → all-profiles-AELHUTFU.js} +64 -21
  7. package/dist/bundle/{anthropic-OXF74J4P.js → anthropic-3CCYAGO3.js} +6 -6
  8. package/dist/bundle/{app-server-M2VF6ABM.js → app-server-DJ6P4NY4.js} +86 -65
  9. package/dist/bundle/{bun-DLA6QRLL.js → bun-2FLR4IV4.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-F4BYLW3F.js → bun-sqlite-QB6CU6TH.js} +7 -7
  11. package/dist/bundle/chunk-2CMLY2X3.js +72 -0
  12. package/dist/bundle/{chunk-TZ2QJ53V.js → chunk-2XUV7HNE.js} +2 -2
  13. package/dist/bundle/{chunk-6JBLIQQN.js → chunk-2Z7UOXFC.js} +1 -1
  14. package/dist/bundle/{chunk-6GN7KU7X.js → chunk-3LMW7U7F.js} +22 -10
  15. package/dist/bundle/chunk-3MYN2RMG.js +398 -0
  16. package/dist/bundle/{chunk-YFWLHTNO.js → chunk-3UX4VJWD.js} +1 -1
  17. package/dist/bundle/chunk-4HP6KGBI.js +32 -0
  18. package/dist/bundle/{chunk-4KUJTSHG.js → chunk-4RFR4J2O.js} +2 -2
  19. package/dist/bundle/{chunk-OCDJ4FFA.js → chunk-4VXXOJ2F.js} +4 -4
  20. package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
  21. package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
  22. package/dist/bundle/{chunk-P3P6DA6K.js → chunk-5OJLUUOJ.js} +6 -6
  23. package/dist/bundle/{chunk-T5UNSFES.js → chunk-5XPHFV7H.js} +35 -12
  24. package/dist/bundle/{chunk-KL3P5TQK.js → chunk-6EJCI47L.js} +4 -4
  25. package/dist/bundle/chunk-6VPC5Z56.js +2145 -0
  26. package/dist/bundle/{chunk-IJMFG7HB.js → chunk-6YOMPW7Y.js} +10 -8
  27. package/dist/bundle/{chunk-7NF3V5L2.js → chunk-7JVKQ6NM.js} +4 -4
  28. package/dist/bundle/chunk-7L2XOKDZ.js +353 -0
  29. package/dist/bundle/{chunk-TXONV3HW.js → chunk-A42T4YX7.js} +3 -3
  30. package/dist/bundle/chunk-AE4VW4NB.js +50 -0
  31. package/dist/bundle/chunk-AV2ZJ4WX.js +7 -0
  32. package/dist/bundle/{chunk-L6H7PY4X.js → chunk-AZLDR36U.js} +3 -3
  33. package/dist/bundle/{chunk-TFNRCCGR.js → chunk-BAXNAOOL.js} +4 -4
  34. package/dist/bundle/{chunk-QX3TPFEX.js → chunk-BEV5LO4D.js} +110 -862
  35. package/dist/bundle/{chunk-UROEWCOG.js → chunk-BQBC2WIG.js} +1 -65
  36. package/dist/bundle/{chunk-NO2LIHWA.js → chunk-CFQQTDSA.js} +1 -1
  37. package/dist/bundle/chunk-CHPWBQUK.js +39 -0
  38. package/dist/bundle/chunk-CL3YNUCC.js +388 -0
  39. package/dist/bundle/{chunk-WHJWURZB.js → chunk-DGMTSDKB.js} +6 -6
  40. package/dist/bundle/{chunk-HTKSCSJU.js → chunk-DHVVXQEL.js} +4 -4
  41. package/dist/bundle/chunk-DIU2QJJF.js +785 -0
  42. package/dist/bundle/chunk-DQSOYH6N.js +20 -0
  43. package/dist/bundle/chunk-ECYOTDJM.js +14 -0
  44. package/dist/bundle/{chunk-Z53LYX4M.js → chunk-EHW45LLT.js} +3 -3
  45. package/dist/bundle/{chunk-XCTOCVMW.js → chunk-ERN53B3Z.js} +32 -24
  46. package/dist/bundle/{chunk-CDGZZNGY.js → chunk-ESZHGC4Q.js} +38 -8
  47. package/dist/bundle/{chunk-RMJMID5D.js → chunk-EZMG5QXB.js} +8 -8
  48. package/dist/bundle/chunk-F4BX7TH2.js +15 -0
  49. package/dist/bundle/{chunk-Y5LAJWR5.js → chunk-F5ZAN7OC.js} +1 -1
  50. package/dist/bundle/{chunk-2MHMKNWD.js → chunk-FMMYBVCH.js} +1 -1
  51. package/dist/bundle/{chunk-WZEEEQGC.js → chunk-FRB2L7OE.js} +3 -3
  52. package/dist/bundle/chunk-FV4WTZCU.js +561 -0
  53. package/dist/bundle/{chunk-BEPFGITI.js → chunk-G4ZU73SD.js} +101 -80
  54. package/dist/bundle/{chunk-5XP4KQ2F.js → chunk-GCAJW4SR.js} +1 -1
  55. package/dist/bundle/{chunk-FEMHUSGO.js → chunk-GPRJXJC7.js} +15 -1
  56. package/dist/bundle/chunk-GUIQJUJV.js +340 -0
  57. package/dist/bundle/{chunk-M2EEIYBU.js → chunk-HHEWTLAT.js} +2 -2
  58. package/dist/bundle/{chunk-LIQMUDIZ.js → chunk-HM6AMYHR.js} +2 -2
  59. package/dist/bundle/{chunk-TJCPTRYD.js → chunk-HOVHE3A3.js} +7 -7
  60. package/dist/bundle/{chunk-YAPDU3SV.js → chunk-HVXOA4FO.js} +1 -1
  61. package/dist/bundle/{chunk-D6RCRBDH.js → chunk-IJVTN5L3.js} +2 -2
  62. package/dist/bundle/{chunk-CIVXTBJY.js → chunk-IURYZSG3.js} +39 -52
  63. package/dist/bundle/chunk-JFSVAOA7.js +108 -0
  64. package/dist/bundle/{chunk-FSJHASRQ.js → chunk-JVESLS7B.js} +611 -572
  65. package/dist/bundle/chunk-K5IC4FZN.js +36 -0
  66. package/dist/bundle/chunk-KB35BVTG.js +30 -0
  67. package/dist/bundle/chunk-KGAUINBO.js +594 -0
  68. package/dist/bundle/{chunk-AYU5TFDU.js → chunk-KNCPBX5P.js} +85 -76
  69. package/dist/bundle/{chunk-GSNE7OB4.js → chunk-KZJQPJK5.js} +4 -4
  70. package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
  71. package/dist/bundle/{chunk-M6DGZ2O6.js → chunk-LC6WE6JS.js} +9 -9
  72. package/dist/bundle/{chunk-YGCI3DHS.js → chunk-LECMHK2F.js} +1 -1
  73. package/dist/bundle/chunk-LQVDFD65.js +72 -0
  74. package/dist/bundle/chunk-MEYYH47C.js +25 -0
  75. package/dist/bundle/chunk-NMQRSEZM.js +37 -0
  76. package/dist/bundle/{chunk-K5I64ZVI.js → chunk-NSR43UEW.js} +7 -64
  77. package/dist/bundle/{chunk-GK4GLPG2.js → chunk-OEQNP56V.js} +2 -100
  78. package/dist/bundle/{chunk-MGUEZYFA.js → chunk-OLAGFJDM.js} +13 -2143
  79. package/dist/bundle/{chunk-MRA62W5K.js → chunk-P27NDZQR.js} +255 -563
  80. package/dist/bundle/{chunk-GBFEEHQC.js → chunk-PHKED7AG.js} +8 -225
  81. package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
  82. package/dist/bundle/{chunk-JODE2XED.js → chunk-Q7EIL6VU.js} +43 -33
  83. package/dist/bundle/{chunk-4TQVZXOV.js → chunk-QEJFBORC.js} +3 -3
  84. package/dist/bundle/{chunk-ZC6ZQQ55.js → chunk-QGGRFRMP.js} +65 -49
  85. package/dist/bundle/{chunk-JIRRF6BM.js → chunk-RD7BKTWV.js} +4 -4
  86. package/dist/bundle/chunk-RXU5T5NM.js +714 -0
  87. package/dist/bundle/{chunk-MVA5HVKL.js → chunk-S4UUN6LD.js} +18 -0
  88. package/dist/bundle/{chunk-7NGFGFE5.js → chunk-SAPP2LEH.js} +10 -10
  89. package/dist/bundle/{chunk-COH7OEER.js → chunk-SEAGUFBX.js} +12 -12
  90. package/dist/bundle/{chunk-5LBJNTEJ.js → chunk-STTO2MSY.js} +43 -64
  91. package/dist/bundle/{chunk-5UA2TYMI.js → chunk-T37TAXVL.js} +2 -2
  92. package/dist/bundle/{chunk-R6SDRSZK.js → chunk-T6XIBULH.js} +139 -571
  93. package/dist/bundle/chunk-TFT4FVRU.js +67 -0
  94. package/dist/bundle/chunk-TRYYWV7J.js +291 -0
  95. package/dist/bundle/{chunk-KFVDL2QS.js → chunk-UC7JLE6J.js} +1 -89
  96. package/dist/bundle/{chunk-SGBS5QCU.js → chunk-UOC52GCB.js} +4 -4
  97. package/dist/bundle/chunk-UPL474OW.js +94 -0
  98. package/dist/bundle/chunk-VH7526NL.js +80 -0
  99. package/dist/bundle/chunk-VNWF4I7E.js +34 -0
  100. package/dist/bundle/chunk-W2VQDIU5.js +221 -0
  101. package/dist/bundle/{chunk-EQPAZ33O.js → chunk-WAGADES3.js} +19 -19
  102. package/dist/bundle/{chunk-WU3XHGOB.js → chunk-WAU5LSHP.js} +81 -438
  103. package/dist/bundle/{chunk-FIHXADRF.js → chunk-WB2KSQIP.js} +4 -4
  104. package/dist/bundle/{chunk-OI5DWZJG.js → chunk-WGZH2M64.js} +3 -3
  105. package/dist/bundle/chunk-WVN2KTNS.js +52 -0
  106. package/dist/bundle/{chunk-UKE3CGHK.js → chunk-XYQVVW4R.js} +1 -1
  107. package/dist/bundle/{chunk-7NVPM55S.js → chunk-YDDI4QIT.js} +2203 -1808
  108. package/dist/bundle/chunk-YHWFF6DN.js +39 -0
  109. package/dist/bundle/{chunk-7YZPBAQX.js → chunk-YUDVRFXN.js} +1 -1
  110. package/dist/bundle/{chunk-EY6S7FV3.js → chunk-YXYZAWWW.js} +6 -6
  111. package/dist/bundle/{chunk-GCCPFKSU.js → chunk-YYQ5GKAI.js} +9532 -10735
  112. package/dist/bundle/chunk-ZDYEOE7L.js +2366 -0
  113. package/dist/bundle/command-contract-L2FASWD6.js +41 -0
  114. package/dist/bundle/{command-server-entry-2SORMVRM.js → command-server-entry-VUR6WL77.js} +30 -27
  115. package/dist/bundle/{decode-5O7IEFPN.js → decode-I64PF2RM.js} +6 -6
  116. package/dist/bundle/{definitions-M3U4UYHN.js → definitions-MB65223J.js} +72 -18
  117. package/dist/bundle/{dispatch-YHQX6FEJ.js → dispatch-JQBAZWCL.js} +8 -8
  118. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  119. package/dist/bundle/{echarts-ARLMVQC7.js → echarts-YRRVLEX3.js} +2 -2
  120. package/dist/bundle/{embed-FUDUKQ3K.js → embed-BLXLKMK2.js} +7 -7
  121. package/dist/bundle/{embedder-HDRV7GX3.js → embedder-JYGF6R7I.js} +10 -10
  122. package/dist/bundle/{failure-JHXICWIL.js → failure-I6AAF5R5.js} +3 -3
  123. package/dist/bundle/first-run-YLDOZGY6.js +29 -0
  124. package/dist/bundle/first-screen-GZH3LMLZ.js +41 -0
  125. package/dist/bundle/hast-util-from-html-X2DCPS3T.js +10531 -0
  126. package/dist/bundle/hast-util-to-html-IIFHILP5.js +998 -0
  127. package/dist/bundle/hast-util-to-mdast-3CSMIWK2.js +2272 -0
  128. package/dist/bundle/{instructions-MEFIKCDI.js → instructions-AG7SRWTR.js} +1 -1
  129. package/dist/bundle/{mcp-VMS6PBCU.js → mcp-YGOAUNC3.js} +2 -2
  130. package/dist/bundle/{mdast-util-from-markdown-R66F4HZA.js → mdast-util-from-markdown-XCR5KW5S.js} +138 -195
  131. package/dist/bundle/{mdast-util-gfm-LN2ELINH.js → mdast-util-gfm-JO7PHUIB.js} +28 -357
  132. package/dist/bundle/mdast-util-to-hast-AYJV7KAE.js +879 -0
  133. package/dist/bundle/mdast-util-to-markdown-DOXGHRI7.js +1854 -0
  134. package/dist/bundle/meeting-combined-OFQSGKBG.js +25 -0
  135. package/dist/bundle/meeting-model-K6NSX3O5.js +27 -0
  136. package/dist/bundle/{meeting-semantic-R4CSLVRG.js → meeting-semantic-3DZPHM7L.js} +7 -7
  137. package/dist/bundle/{micromark-extension-gfm-5X7YT43T.js → micromark-extension-gfm-PQ7DWZM7.js} +12 -78
  138. package/dist/bundle/{node-MAQALPLA.js → node-GJQYN4FT.js} +2 -2
  139. package/dist/bundle/{node-sqlite-J7IJYNBO.js → node-sqlite-7VXIRQPH.js} +8 -8
  140. package/dist/bundle/notes-search-ACDOPTNH.js +64 -0
  141. package/dist/bundle/notion.js +14 -14
  142. package/dist/bundle/oauth-N67CH2TK.js +20 -0
  143. package/dist/bundle/{open-AB27MTGR.js → open-JGXVHIKO.js} +6 -6
  144. package/dist/bundle/{openai-D77MU5XV.js → openai-PFQJTF4H.js} +21 -18
  145. package/dist/bundle/{process-SIOWTRJ6.js → process-MEKCZMX3.js} +1 -1
  146. package/dist/bundle/{program-7K34KI27.js → program-DUJYLJH5.js} +6947 -6532
  147. package/dist/bundle/{prompt-W77YDHA6.js → prompt-FW44QDHD.js} +6 -6
  148. package/dist/bundle/{recognize-3JAXQQ36.js → recognize-62TDQ6A7.js} +5 -5
  149. package/dist/bundle/{remote-PSOJXCXO.js → remote-7ONFD7GG.js} +12 -11
  150. package/dist/bundle/{rerank-EE44ZTGL.js → rerank-YOHQQJS4.js} +8 -8
  151. package/dist/bundle/{schemas-LBYUMBC6.js → schemas-IIGJ7DOP.js} +39 -60
  152. package/dist/bundle/{serve-XJMGAMFW.js → serve-ZCXGT5RB.js} +11 -11
  153. package/dist/bundle/{server-ASU6CP5R.js → server-RQ74M637.js} +78 -56
  154. package/dist/bundle/server-XMZF57WM.js +90 -0
  155. package/dist/bundle/{services-PT4PA4J6.js → services-FWBRZ57M.js} +105 -90
  156. package/dist/bundle/{sqlite-runtime-YHXRTVXE.js → sqlite-runtime-ZZBNGV5L.js} +7 -7
  157. package/dist/bundle/{state-T6ZKFWGD.js → state-GDDFO62Y.js} +7 -7
  158. package/dist/bundle/{store-E5EE25FY.js → store-D2LRIWEI.js} +24 -20
  159. package/dist/bundle/{store-3MUCZEI3.js → store-KQCLR57N.js} +32 -18
  160. package/dist/bundle/store-maintenance-command-CK2MU5M6.js +77 -0
  161. package/dist/bundle/surface-K4TPIQW7.js +76 -0
  162. package/dist/commands/account.d.ts +3 -0
  163. package/dist/commands/account.d.ts.map +1 -0
  164. package/dist/commands/account.js +22 -0
  165. package/dist/commands/account.js.map +1 -0
  166. package/dist/commands/api.d.ts +7 -2
  167. package/dist/commands/api.d.ts.map +1 -1
  168. package/dist/commands/api.js +19 -119
  169. package/dist/commands/api.js.map +1 -1
  170. package/dist/commands/library.d.ts.map +1 -1
  171. package/dist/commands/library.js +16 -5
  172. package/dist/commands/library.js.map +1 -1
  173. package/dist/config.d.ts +11 -13
  174. package/dist/config.d.ts.map +1 -1
  175. package/dist/config.js +63 -54
  176. package/dist/config.js.map +1 -1
  177. package/dist/generated/definitions.d.ts.map +1 -1
  178. package/dist/generated/definitions.js +72 -18
  179. package/dist/generated/definitions.js.map +1 -1
  180. package/dist/generated/manifest.d.ts +4 -1
  181. package/dist/generated/manifest.d.ts.map +1 -1
  182. package/dist/generated/manifest.js +69 -0
  183. package/dist/generated/manifest.js.map +1 -1
  184. package/dist/generated/schemas.d.ts.map +1 -1
  185. package/dist/generated/schemas.js +32 -32
  186. package/dist/generated/schemas.js.map +1 -1
  187. package/dist/generated/types.d.ts +125 -25
  188. package/dist/generated/types.d.ts.map +1 -1
  189. package/dist/knowledge.d.ts +1 -0
  190. package/dist/knowledge.d.ts.map +1 -1
  191. package/dist/knowledge.js +68 -2
  192. package/dist/knowledge.js.map +1 -1
  193. package/dist/library.d.ts +12 -1
  194. package/dist/library.d.ts.map +1 -1
  195. package/dist/library.js +35 -1
  196. package/dist/library.js.map +1 -1
  197. package/dist/notion/port.d.ts.map +1 -1
  198. package/dist/notion/port.js +1 -0
  199. package/dist/notion/port.js.map +1 -1
  200. package/dist/notion/reads.d.ts +13 -1
  201. package/dist/notion/reads.d.ts.map +1 -1
  202. package/dist/notion/reads.js +1 -1
  203. package/dist/program.d.ts.map +1 -1
  204. package/dist/program.js +19 -2
  205. package/dist/program.js.map +1 -1
  206. package/dist/sync/files.d.ts +19 -0
  207. package/dist/sync/files.d.ts.map +1 -1
  208. package/dist/sync/files.js.map +1 -1
  209. package/dist/sync/source.d.ts +1 -1
  210. package/dist/sync/source.d.ts.map +1 -1
  211. package/dist/sync/source.js +60 -55
  212. package/dist/sync/source.js.map +1 -1
  213. package/dist/sync/users.d.ts +22 -0
  214. package/dist/sync/users.d.ts.map +1 -0
  215. package/dist/sync/users.js +111 -0
  216. package/dist/sync/users.js.map +1 -0
  217. package/dist/version.d.ts +1 -1
  218. package/dist/version.js +1 -1
  219. package/package.json +4 -4
  220. package/dist/bundle/chunk-L62XTC7N.js +0 -726
  221. package/dist/bundle/chunk-SHTHNBHG.js +0 -2
  222. package/dist/bundle/command-contract-UBXS6NHI.js +0 -38
  223. package/dist/bundle/first-run-BGEFTXOE.js +0 -29
  224. package/dist/bundle/first-screen-F5F3VS6Y.js +0 -38
  225. package/dist/bundle/meeting-combined-HNSS3FQY.js +0 -24
  226. package/dist/bundle/meeting-model-REZVYGQW.js +0 -26
  227. package/dist/bundle/oauth-AMV4YGJD.js +0 -20
  228. package/dist/bundle/server-WSPQ5EOA.js +0 -72
  229. package/dist/bundle/store-maintenance-command-ZZ55BBBG.js +0 -63
@@ -3,48 +3,38 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answerOf,
5
5
  messengerContext
6
- } from "./chunk-XCTOCVMW.js";
6
+ } from "./chunk-ERN53B3Z.js";
7
7
  import {
8
8
  chatEventAnswer,
9
9
  memberAnswer,
10
- pollVoteAnswer,
11
- serveRelay
12
- } from "./chunk-L62XTC7N.js";
10
+ pollVoteAnswer
11
+ } from "./chunk-7L2XOKDZ.js";
13
12
  import {
14
13
  readSecret
15
- } from "./chunk-Z53LYX4M.js";
14
+ } from "./chunk-EHW45LLT.js";
16
15
  import {
17
16
  stringWidth,
18
17
  wrapAnsi
19
18
  } from "./chunk-EH6ZEJGT.js";
19
+ import {
20
+ serveRelay
21
+ } from "./chunk-GUIQJUJV.js";
20
22
  import {
21
23
  FETCHING,
22
24
  RULES_VERSION,
23
25
  applyTaskRulesOnArrival,
24
- capability,
25
- embeddingKeys,
26
- endpointKeyName,
27
- modelGateway,
28
26
  newSendId,
29
- onlineDeps,
30
27
  openRequestTask,
31
28
  patiently,
32
- queryTerms,
33
29
  refuseLockedOutput,
34
- senderIsMe,
35
30
  servicesFor,
36
- syncsOneChat,
37
- typedQuery,
38
- withQuery,
39
- withTimeLimit
40
- } from "./chunk-GCCPFKSU.js";
31
+ syncsOneChat
32
+ } from "./chunk-YYQ5GKAI.js";
41
33
  import {
42
- holdLock,
43
- lockPath,
44
- releaseLock,
45
- servingProfiles,
46
- takeLock
47
- } from "./chunk-OI5DWZJG.js";
34
+ queryTerms,
35
+ typedQuery,
36
+ withQuery
37
+ } from "./chunk-RXU5T5NM.js";
48
38
  import {
49
39
  Command,
50
40
  LOCAL_READ,
@@ -52,7 +42,6 @@ import {
52
42
  REMOTE_READ,
53
43
  REMOTE_WRITE,
54
44
  annotate,
55
- codeOf,
56
45
  commandAt,
57
46
  destroysNothing,
58
47
  environmentOf,
@@ -62,7 +51,6 @@ import {
62
51
  levelFor,
63
52
  lineOf,
64
53
  listOf,
65
- modelTarget,
66
54
  nextStep,
67
55
  outputFor,
68
56
  parseDuration,
@@ -72,10 +60,32 @@ import {
72
60
  snakeKeys,
73
61
  storeTable,
74
62
  withoutProviderRefs
75
- } from "./chunk-MRA62W5K.js";
63
+ } from "./chunk-P27NDZQR.js";
64
+ import {
65
+ embeddingKeys,
66
+ endpointKeyName,
67
+ modelGateway,
68
+ onlineDeps,
69
+ senderIsMe,
70
+ withTimeLimit
71
+ } from "./chunk-ZDYEOE7L.js";
72
+ import {
73
+ capability
74
+ } from "./chunk-KB35BVTG.js";
75
+ import {
76
+ codeOf,
77
+ modelTarget
78
+ } from "./chunk-3MYN2RMG.js";
79
+ import {
80
+ holdLock,
81
+ lockPath,
82
+ releaseLock,
83
+ servingProfiles,
84
+ takeLock
85
+ } from "./chunk-WGZH2M64.js";
76
86
  import {
77
87
  holdersOf
78
- } from "./chunk-7YZPBAQX.js";
88
+ } from "./chunk-YUDVRFXN.js";
79
89
  import {
80
90
  QUICK_HEALTH_CHECKS,
81
91
  fts5Tables,
@@ -83,7 +93,7 @@ import {
83
93
  lossUnknown,
84
94
  storeDamageReport,
85
95
  storeHealth
86
- } from "./chunk-EQPAZ33O.js";
96
+ } from "./chunk-WAGADES3.js";
87
97
  import {
88
98
  CORPORA,
89
99
  MIGRATIONS,
@@ -107,9 +117,12 @@ import {
107
117
  readStoreTables,
108
118
  rebuildMentions,
109
119
  resetAttachmentWords,
120
+ resetContentPostWords,
121
+ resetCrmFileWords,
110
122
  resetNoteIndex,
111
123
  resetSearchIndex,
112
124
  resetStems,
125
+ resetTrackerItemWords,
113
126
  rollBack,
114
127
  rowCounts,
115
128
  searchIndexState,
@@ -118,44 +131,46 @@ import {
118
131
  storeClients,
119
132
  storeContents,
120
133
  vectorIndexCounts
121
- } from "./chunk-7NVPM55S.js";
134
+ } from "./chunk-YDDI4QIT.js";
122
135
  import {
123
- currentRun,
124
- formatLocator,
125
- parseLocator,
126
136
  readDamageMark,
127
137
  readHealthMark,
128
138
  readJournalMark,
129
139
  recordDeepCheck
130
- } from "./chunk-QX3TPFEX.js";
140
+ } from "./chunk-DIU2QJJF.js";
141
+ import {
142
+ currentRun,
143
+ formatLocator,
144
+ parseLocator
145
+ } from "./chunk-BEV5LO4D.js";
131
146
  import {
132
147
  failureKey,
133
148
  isStoreDamage
134
- } from "./chunk-UROEWCOG.js";
149
+ } from "./chunk-LQVDFD65.js";
135
150
  import {
136
151
  queryFieldsOf
137
- } from "./chunk-FSJHASRQ.js";
152
+ } from "./chunk-JVESLS7B.js";
138
153
  import {
139
154
  modelAddressAllowed,
140
155
  onThisComputer
141
- } from "./chunk-WZEEEQGC.js";
156
+ } from "./chunk-FRB2L7OE.js";
142
157
  import {
143
158
  readSharedSection,
144
159
  sharedConfigPath,
145
160
  writeSharedSection
146
- } from "./chunk-TJCPTRYD.js";
161
+ } from "./chunk-HOVHE3A3.js";
147
162
  import {
148
163
  storePath
149
- } from "./chunk-M2EEIYBU.js";
164
+ } from "./chunk-HHEWTLAT.js";
150
165
  import {
151
166
  openCache
152
- } from "./chunk-EY6S7FV3.js";
167
+ } from "./chunk-YXYZAWWW.js";
153
168
  import {
154
169
  Credentials,
155
170
  isMovedRun,
156
171
  resolvePaths,
157
172
  writeSecurely
158
- } from "./chunk-AYU5TFDU.js";
173
+ } from "./chunk-KNCPBX5P.js";
159
174
  import {
160
175
  array,
161
176
  boolean,
@@ -177,12 +192,12 @@ import {
177
192
  string,
178
193
  transform,
179
194
  trim
180
- } from "./chunk-MVA5HVKL.js";
195
+ } from "./chunk-S4UUN6LD.js";
181
196
  import {
182
197
  CliError,
183
198
  singleLine,
184
199
  visibleControls
185
- } from "./chunk-LIQMUDIZ.js";
200
+ } from "./chunk-HM6AMYHR.js";
186
201
  import {
187
202
  __commonJS,
188
203
  __name,
@@ -5522,11 +5537,11 @@ var require_liquid_node = __commonJS({
5522
5537
  }
5523
5538
  });
5524
5539
 
5525
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5540
+ // 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/store-maintenance-command.js
5526
5541
  import { chmodSync, constants, copyFileSync, existsSync as existsSync10, mkdirSync, realpathSync as realpathSync3, renameSync as renameSync3, rmSync as rmSync3, statfsSync as statfsSync2, statSync as statSync4, writeFileSync as writeFileSync2 } from "node:fs";
5527
5542
  import { dirname as dirname3, resolve } from "node:path";
5528
5543
 
5529
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/sealed.js
5544
+ // 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/sealed.js
5530
5545
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5531
5546
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5532
5547
  import { Transform } from "node:stream";
@@ -5633,7 +5648,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5633
5648
  renameSync(pending, to);
5634
5649
  }, "unsealFile");
5635
5650
 
5636
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5651
+ // 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/compatibility.js
5637
5652
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5638
5653
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5639
5654
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5657,7 +5672,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5657
5672
  };
5658
5673
  }, "compatibilityOf");
5659
5674
 
5660
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/repair.js
5675
+ // 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/repair.js
5661
5676
  import { createHash as createHash2 } from "node:crypto";
5662
5677
  var COPY_MARK = "__repair_";
5663
5678
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5911,19 +5926,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5911
5926
  return found;
5912
5927
  }, "deleteCopy");
5913
5928
 
5914
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5929
+ // 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/store-info.js
5915
5930
  import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
5916
5931
 
5917
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
5932
+ // 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/store-recover.js
5918
5933
  import { existsSync as existsSync3 } from "node:fs";
5919
5934
 
5920
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/recover.js
5935
+ // 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/recover.js
5921
5936
  import { execFileSync, spawn } from "node:child_process";
5922
5937
  import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
5923
5938
  import { basename, dirname, join } from "node:path";
5924
5939
  import { Transform as Transform2 } from "node:stream";
5925
5940
 
5926
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/refill.js
5941
+ // 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/refill.js
5927
5942
  var REFILL_MARGIN_MS = 864e5;
5928
5943
  var TIME_KEYS = 1e12;
5929
5944
  var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
@@ -6003,7 +6018,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
6003
6018
  return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
6004
6019
  }, "forgetMail");
6005
6020
 
6006
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/recover.js
6021
+ // 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/recover.js
6007
6022
  var SQLITE3_MINIMUM = [3, 43, 0];
6008
6023
  var STORE_PARTS = ["", "-wal", "-shm"];
6009
6024
  var RECOVER_LOCK = ".recover-lock";
@@ -6280,6 +6295,9 @@ var FILLERS = {
6280
6295
  fillStems(database, { now });
6281
6296
  }, "message_stems"),
6282
6297
  attachment_words: /* @__PURE__ */ __name((database) => void resetAttachmentWords(database), "attachment_words"),
6298
+ crm_file_words: /* @__PURE__ */ __name((database) => void resetCrmFileWords(database), "crm_file_words"),
6299
+ tracker_item_words: /* @__PURE__ */ __name((database) => void resetTrackerItemWords(database), "tracker_item_words"),
6300
+ content_post_words: /* @__PURE__ */ __name((database) => void resetContentPostWords(database), "content_post_words"),
6283
6301
  attachment_name_words: /* @__PURE__ */ __name((database) => (
6284
6302
  // As migration 20 filled it: й and ё fold as the triggers fold them.
6285
6303
  database.exec("INSERT INTO attachment_name_words (rowid, name) SELECT id, replace(replace(replace(replace(name, '\u0439', '\u0438'), '\u0419', '\u0418'), '\u0451', '\u0435'), '\u0401', '\u0415') FROM attachments WHERE name IS NOT NULL")
@@ -6531,7 +6549,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
6531
6549
  }
6532
6550
  }, "recoverLocked");
6533
6551
 
6534
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
6552
+ // 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/store-recover.js
6535
6553
  var COUNTED = [
6536
6554
  "accounts",
6537
6555
  "chats",
@@ -6687,7 +6705,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
6687
6705
  return recover;
6688
6706
  }, "storeRecoverCommand");
6689
6707
 
6690
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/store-info.js
6708
+ // 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/store-info.js
6691
6709
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
6692
6710
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
6693
6711
  var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
@@ -6733,7 +6751,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
6733
6751
  renderAnswer(this, outputFor(this), itemOf(answer));
6734
6752
  }), "storeInfoCommand");
6735
6753
 
6736
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
6754
+ // 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/password.js
6737
6755
  var ENCRYPT_OPTION = [
6738
6756
  "--encrypt",
6739
6757
  "compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
@@ -6752,7 +6770,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
6752
6770
  return password;
6753
6771
  }, "passwordOf");
6754
6772
 
6755
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/rules.js
6773
+ // 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/replies/rules.js
6756
6774
  import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
6757
6775
  import { join as join2 } from "node:path";
6758
6776
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6923,7 +6941,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6923
6941
  }, "problem");
6924
6942
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6925
6943
 
6926
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/state.js
6944
+ // 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/replies/state.js
6927
6945
  import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
6928
6946
  import { join as join3 } from "node:path";
6929
6947
  var ANSWERED_KEPT = 1e3;
@@ -6976,7 +6994,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6976
6994
  }, "recordReply");
6977
6995
  var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
6978
6996
 
6979
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/decide.js
6997
+ // 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/replies/decide.js
6980
6998
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6981
6999
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6982
7000
  const { message, chat, owner, sender } = incoming;
@@ -7082,10 +7100,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
7082
7100
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
7083
7101
  }, "filled");
7084
7102
 
7085
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/template.js
7103
+ // 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/replies/template.js
7086
7104
  var import_liquidjs2 = __toESM(require_liquid_node(), 1);
7087
7105
 
7088
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/render/liquid.js
7106
+ // 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/render/liquid.js
7089
7107
  var import_liquidjs = __toESM(require_liquid_node(), 1);
7090
7108
  var safeLiquid = /* @__PURE__ */ __name((limits) => {
7091
7109
  const engine = new import_liquidjs.Liquid({
@@ -7112,7 +7130,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
7112
7130
  return engine;
7113
7131
  }, "safeLiquid");
7114
7132
 
7115
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/template.js
7133
+ // 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/replies/template.js
7116
7134
  var TEMPLATE_LIMITS = {
7117
7135
  parse: 32768,
7118
7136
  renders: 2e3,
@@ -7251,7 +7269,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
7251
7269
  }
7252
7270
  }, "renderReplyTemplate");
7253
7271
 
7254
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
7272
+ // 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/replies/dry-run.js
7255
7273
  var DRY_RUN_DAYS = 7;
7256
7274
  var PAGE = 500;
7257
7275
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -7365,7 +7383,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
7365
7383
  }
7366
7384
  }, "storedSince");
7367
7385
 
7368
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/models/ai.js
7386
+ // 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/ai.js
7369
7387
  var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
7370
7388
  var DEFAULT_BASE_URL = {
7371
7389
  anthropic: "https://api.anthropic.com",
@@ -7515,7 +7533,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
7515
7533
  }
7516
7534
  }, "checkAi");
7517
7535
 
7518
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/models/purpose.js
7536
+ // 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/purpose.js
7519
7537
  var HOSTED = {
7520
7538
  openai: "https://api.openai.com/v1",
7521
7539
  anthropic: "https://api.anthropic.com"
@@ -7536,7 +7554,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
7536
7554
  return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
7537
7555
  }, "purposeModel");
7538
7556
 
7539
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/consents.js
7557
+ // 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/replies/consents.js
7540
7558
  import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
7541
7559
  import { join as join4 } from "node:path";
7542
7560
  var shape = strictObject({
@@ -7561,7 +7579,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
7561
7579
  return consent.provider === provider && !consent.deniedChats.includes(chat);
7562
7580
  }, "mayModelReply");
7563
7581
 
7564
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/rendering.js
7582
+ // 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/replies/rendering.js
7565
7583
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
7566
7584
  ai: true
7567
7585
  }) => async (rule2, message, chat, now) => {
@@ -7609,7 +7627,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
7609
7627
  return result2;
7610
7628
  }, "replyRenderer");
7611
7629
 
7612
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/serve.js
7630
+ // 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/replies/serve.js
7613
7631
  var NOT_ALLOWED = "replies.send is not allow";
7614
7632
  var NO_RULES = "no rules";
7615
7633
  var ONLY_TASK = "opened a task, sent nothing";
@@ -7702,7 +7720,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
7702
7720
  return { skip: why };
7703
7721
  }, "replyTo");
7704
7722
 
7705
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
7723
+ // 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/serve-catch-up.js
7706
7724
  var START_SYNC_DELAY_MS = 3e4;
7707
7725
  var START_SYNC_BUDGET_MS = 5 * 6e4;
7708
7726
  var START_SYNC_WINDOW_MS = 7 * 864e5;
@@ -7779,7 +7797,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
7779
7797
  };
7780
7798
  }, "startSync");
7781
7799
 
7782
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
7800
+ // 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/serve-members.js
7783
7801
  var FIRST_FETCH_MS = 6e4;
7784
7802
  var DAY_MS = 864e5;
7785
7803
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -7833,7 +7851,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
7833
7851
  };
7834
7852
  }, "memberFetches");
7835
7853
 
7836
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
7854
+ // 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/serve-notice.js
7837
7855
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
7838
7856
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
7839
7857
  if (context.format === "pretty") {
@@ -7866,7 +7884,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
7866
7884
  return context;
7867
7885
  }, "recordDiagnostics");
7868
7886
 
7869
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
7887
+ // 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/serve-outdated.js
7870
7888
  import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
7871
7889
  import { dirname as dirname2, join as join5 } from "node:path";
7872
7890
  var OUTDATED_CHECK_MS = 6e4;
@@ -7952,7 +7970,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
7952
7970
  };
7953
7971
  }, "watchOutdated");
7954
7972
 
7955
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7973
+ // 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/serve-stems.js
7956
7974
  var STEMS_EVERY_MS = 3e4;
7957
7975
  var STEMS_SLICE_MS = 2e3;
7958
7976
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -7992,7 +8010,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
7992
8010
  };
7993
8011
  }, "stemFills");
7994
8012
 
7995
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/render/messages.js
8013
+ // 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/render/messages.js
7996
8014
  import { styleText } from "node:util";
7997
8015
  var TIME_WIDTH = 8;
7998
8016
  var INDENT = " ".repeat(TIME_WIDTH + 2);
@@ -8168,7 +8186,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
8168
8186
  return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
8169
8187
  }, "editedAt");
8170
8188
 
8171
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
8189
+ // 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/message-items.js
8172
8190
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
8173
8191
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
8174
8192
  kind: attachment.kind,
@@ -8264,7 +8282,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
8264
8282
  locale: messenger.app.locale
8265
8283
  }), "viewOf");
8266
8284
 
8267
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
8285
+ // 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/watch-answers.js
8268
8286
  var observed = /* @__PURE__ */ __name((value) => ({
8269
8287
  value: value.value,
8270
8288
  observed_at: value.observedAt,
@@ -8331,7 +8349,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
8331
8349
  }
8332
8350
  }, "watchEventItem");
8333
8351
 
8334
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
8352
+ // 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/watch-command.js
8335
8353
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
8336
8354
  output: { entity: "watch_item" },
8337
8355
  effects: REMOTE_READ,
@@ -8486,7 +8504,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
8486
8504
  }
8487
8505
  }, "describe");
8488
8506
 
8489
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
8507
+ // 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/serve-command.js
8490
8508
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
8491
8509
  const command = annotate(new Command("serve"), {
8492
8510
  output: { entity: "serve_summary" },
@@ -8772,7 +8790,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
8772
8790
  };
8773
8791
  }, "tasking");
8774
8792
 
8775
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8793
+ // 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/store-tables-command.js
8776
8794
  import { existsSync as existsSync9 } from "node:fs";
8777
8795
  var PATH = "store tables list";
8778
8796
  var STORE_TABLES_QUERY = {
@@ -8815,7 +8833,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
8815
8833
  return tables;
8816
8834
  }, "storeTablesCommand");
8817
8835
 
8818
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8836
+ // 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/store-maintenance-command.js
8819
8837
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
8820
8838
  var WORD_INDEX = "message_words";
8821
8839
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -9057,7 +9075,10 @@ var inspect = /* @__PURE__ */ __name((path) => reading(path, (database) => {
9057
9075
  ...schema.version > 0 ? SEARCH_INDEXES.map((index) => [index, indexIntegrity(database, index)]) : [],
9058
9076
  ...wordIndex ? [[WORD_INDEX, indexIntegrity(database, WORD_INDEX, 0)]] : [],
9059
9077
  ...stems ? [["message_stems", indexIntegrity(database, "message_stems", 0)]] : [],
9060
- ...schema.version > 0 ? [["attachment_words", indexIntegrity(database, "attachment_words", 0)]] : []
9078
+ ...schema.version > 0 ? [["attachment_words", indexIntegrity(database, "attachment_words", 0)]] : [],
9079
+ ...schema.version >= 68 ? [["crm_file_words", indexIntegrity(database, "crm_file_words", 0)]] : [],
9080
+ ...schema.version >= 70 ? [["tracker_item_words", indexIntegrity(database, "tracker_item_words", 0)]] : [],
9081
+ ...schema.version >= 71 ? [["content_post_words", indexIntegrity(database, "content_post_words", 0)]] : []
9061
9082
  ]);
9062
9083
  const size = bytesOf2(path) + bytesOf2(`${path}-wal`);
9063
9084
  const { bavail, bsize } = statfsSync2(dirname3(path));
@@ -9225,7 +9246,7 @@ var reindexCommand = /* @__PURE__ */ __name((owner) => destroysNothing(annotate(
9225
9246
  throw new CliError("validation_error", `the store is behind this build \u2014 \`${lineOf(this, "store migrate")}\` first`);
9226
9247
  }
9227
9248
  resetSearchIndex(database);
9228
- const fileTexts = resetAttachmentWords(database);
9249
+ const fileTexts = resetAttachmentWords(database) + resetCrmFileWords(database) + resetTrackerItemWords(database) + resetContentPostWords(database);
9229
9250
  const words = buildWordIndex(database, (note) => renderer.note(note));
9230
9251
  return {
9231
9252
  path,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
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/mcp/instructions.js
8
8
  var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
9
9
  const all = typeof profile !== "string";
10
10
  const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
 
4
- // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/ports/wirecat-tools.js
4
+ // 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/ports/wirecat-tools.js
5
5
  var WIRECAT_TOOLS = [
6
6
  {
7
7
  command: "tg",
@@ -67,6 +67,13 @@ var WIRECAT_TOOLS = [
67
67
  package: "@wirecat/bitrix24-cli",
68
68
  does: "Bitrix24 CRM: deals, leads and pipelines, searchable with your other WireCat data"
69
69
  },
70
+ {
71
+ command: "amo",
72
+ appName: "amo-cli",
73
+ envPrefix: "AMO",
74
+ package: "@wirecat/amo-cli",
75
+ does: "amoCRM and Kommo: deals, contacts and companies, searchable with your other WireCat data"
76
+ },
70
77
  {
71
78
  command: "pbx",
72
79
  appName: "asterisk-cli",
@@ -80,6 +87,13 @@ var WIRECAT_TOOLS = [
80
87
  envPrefix: "WCNOTION",
81
88
  package: "@wirecat/notion-cli",
82
89
  does: "Notion pages and databases as local text, searchable with your other WireCat data"
90
+ },
91
+ {
92
+ command: "ydisk",
93
+ appName: "yandex-disk-cli",
94
+ envPrefix: "YDISK",
95
+ package: "@wirecat/yandex-disk-cli",
96
+ does: "Yandex Disk folders as local text, searchable with your other WireCat data"
83
97
  }
84
98
  ];
85
99