@wirecat/notion-cli 0.5.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 (216) hide show
  1. package/CHANGELOG.md +35 -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-V37KCXH3.js → all-profiles-AELHUTFU.js} +64 -21
  7. package/dist/bundle/{anthropic-Q4S3BYXD.js → anthropic-3CCYAGO3.js} +6 -6
  8. package/dist/bundle/{app-server-43SR3ACI.js → app-server-DJ6P4NY4.js} +86 -65
  9. package/dist/bundle/{bun-M3J2QTR3.js → bun-2FLR4IV4.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-EJ3W2PSV.js → bun-sqlite-QB6CU6TH.js} +7 -7
  11. package/dist/bundle/chunk-2CMLY2X3.js +72 -0
  12. package/dist/bundle/{chunk-NHHJHXMQ.js → chunk-2XUV7HNE.js} +2 -2
  13. package/dist/bundle/{chunk-HZRQLAHO.js → chunk-2Z7UOXFC.js} +1 -1
  14. package/dist/bundle/{chunk-TOSCB4SO.js → chunk-3LMW7U7F.js} +16 -10
  15. package/dist/bundle/chunk-3MYN2RMG.js +398 -0
  16. package/dist/bundle/{chunk-E5WLE7BM.js → chunk-3UX4VJWD.js} +1 -1
  17. package/dist/bundle/chunk-4HP6KGBI.js +32 -0
  18. package/dist/bundle/{chunk-KHWOLBHQ.js → chunk-4RFR4J2O.js} +2 -2
  19. package/dist/bundle/{chunk-G2MJYXZG.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-ECC2UX7X.js → chunk-5OJLUUOJ.js} +6 -6
  23. package/dist/bundle/{chunk-C32AKHTY.js → chunk-5XPHFV7H.js} +35 -12
  24. package/dist/bundle/{chunk-O5YB7FQD.js → chunk-6EJCI47L.js} +4 -4
  25. package/dist/bundle/chunk-6VPC5Z56.js +2145 -0
  26. package/dist/bundle/{chunk-NA6QLHBZ.js → chunk-6YOMPW7Y.js} +10 -8
  27. package/dist/bundle/{chunk-P5BHKKBI.js → chunk-7JVKQ6NM.js} +4 -4
  28. package/dist/bundle/chunk-7L2XOKDZ.js +353 -0
  29. package/dist/bundle/{chunk-NE43YXKL.js → chunk-A42T4YX7.js} +3 -3
  30. package/dist/bundle/chunk-AE4VW4NB.js +50 -0
  31. package/dist/bundle/{chunk-FPUGMDJV.js → chunk-AV2ZJ4WX.js} +1 -1
  32. package/dist/bundle/{chunk-QWYMXFKM.js → chunk-AZLDR36U.js} +3 -3
  33. package/dist/bundle/{chunk-N2XADGL4.js → chunk-BAXNAOOL.js} +4 -4
  34. package/dist/bundle/{chunk-JCKWQGCD.js → chunk-BEV5LO4D.js} +110 -862
  35. package/dist/bundle/{chunk-UZSBGECU.js → chunk-BQBC2WIG.js} +1 -65
  36. package/dist/bundle/{chunk-CWXOXIWS.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-ONZVPE24.js → chunk-DGMTSDKB.js} +6 -6
  40. package/dist/bundle/{chunk-BWLBSQSU.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-DBEQI5YM.js → chunk-EHW45LLT.js} +3 -3
  45. package/dist/bundle/{chunk-WPP76PSX.js → chunk-ERN53B3Z.js} +32 -24
  46. package/dist/bundle/{chunk-XUPN2EHR.js → chunk-ESZHGC4Q.js} +23 -7
  47. package/dist/bundle/{chunk-3RL2MIUF.js → chunk-EZMG5QXB.js} +8 -8
  48. package/dist/bundle/chunk-F4BX7TH2.js +15 -0
  49. package/dist/bundle/{chunk-TP7GDWVF.js → chunk-F5ZAN7OC.js} +1 -1
  50. package/dist/bundle/{chunk-DFCHHR5M.js → chunk-FMMYBVCH.js} +1 -1
  51. package/dist/bundle/{chunk-E2AFUJDR.js → chunk-FRB2L7OE.js} +3 -3
  52. package/dist/bundle/chunk-FV4WTZCU.js +561 -0
  53. package/dist/bundle/{chunk-TD2JZ25O.js → chunk-G4ZU73SD.js} +98 -80
  54. package/dist/bundle/{chunk-FKA7DOCK.js → chunk-GCAJW4SR.js} +1 -1
  55. package/dist/bundle/{chunk-WE4UFASG.js → chunk-GPRJXJC7.js} +15 -1
  56. package/dist/bundle/chunk-GUIQJUJV.js +340 -0
  57. package/dist/bundle/{chunk-GTY6N5KZ.js → chunk-HHEWTLAT.js} +2 -2
  58. package/dist/bundle/{chunk-DB2XKHI4.js → chunk-HM6AMYHR.js} +2 -2
  59. package/dist/bundle/{chunk-H3E2PZ5Y.js → chunk-HOVHE3A3.js} +7 -7
  60. package/dist/bundle/{chunk-O3DYRCIT.js → chunk-HVXOA4FO.js} +1 -1
  61. package/dist/bundle/{chunk-PPHBRESD.js → chunk-IJVTN5L3.js} +2 -2
  62. package/dist/bundle/{chunk-FBZI4Z3Z.js → chunk-IURYZSG3.js} +13 -26
  63. package/dist/bundle/chunk-JFSVAOA7.js +108 -0
  64. package/dist/bundle/{chunk-HHVFIXDO.js → chunk-JVESLS7B.js} +399 -399
  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-W5JZMXGW.js → chunk-KNCPBX5P.js} +75 -75
  69. package/dist/bundle/{chunk-ECEZOLOD.js → chunk-KZJQPJK5.js} +4 -4
  70. package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
  71. package/dist/bundle/{chunk-QYXWRKNA.js → chunk-LC6WE6JS.js} +9 -9
  72. package/dist/bundle/{chunk-X2M6NIQG.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-NTG657MI.js → chunk-NSR43UEW.js} +7 -64
  77. package/dist/bundle/{chunk-CDK5E45T.js → chunk-OEQNP56V.js} +2 -100
  78. package/dist/bundle/{chunk-MGUEZYFA.js → chunk-OLAGFJDM.js} +13 -2143
  79. package/dist/bundle/{chunk-PWRRDDMZ.js → chunk-P27NDZQR.js} +232 -552
  80. package/dist/bundle/{chunk-PAW6RRCW.js → chunk-PHKED7AG.js} +8 -210
  81. package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
  82. package/dist/bundle/{chunk-RIGE67FR.js → chunk-Q7EIL6VU.js} +43 -33
  83. package/dist/bundle/{chunk-AT5I34AN.js → chunk-QEJFBORC.js} +3 -3
  84. package/dist/bundle/{chunk-RJMQGG3P.js → chunk-QGGRFRMP.js} +65 -49
  85. package/dist/bundle/{chunk-BNEE35WD.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-2FJNMADN.js → chunk-SAPP2LEH.js} +10 -10
  89. package/dist/bundle/{chunk-QIG55MZH.js → chunk-SEAGUFBX.js} +12 -12
  90. package/dist/bundle/{chunk-GCZ6MAEN.js → chunk-STTO2MSY.js} +43 -64
  91. package/dist/bundle/{chunk-DSP36YHQ.js → chunk-T37TAXVL.js} +2 -2
  92. package/dist/bundle/{chunk-KHZ2RGXI.js → chunk-T6XIBULH.js} +139 -572
  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-LBYGJKXW.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-TDNURSU6.js → chunk-WAGADES3.js} +19 -19
  102. package/dist/bundle/{chunk-J3NKZ6MO.js → chunk-WAU5LSHP.js} +79 -438
  103. package/dist/bundle/{chunk-B3FSLAIU.js → chunk-WB2KSQIP.js} +4 -4
  104. package/dist/bundle/{chunk-DO7BLXO3.js → chunk-WGZH2M64.js} +3 -3
  105. package/dist/bundle/chunk-WVN2KTNS.js +52 -0
  106. package/dist/bundle/{chunk-W7HM2VGO.js → chunk-XYQVVW4R.js} +1 -1
  107. package/dist/bundle/{chunk-BBSFQ3PU.js → chunk-YDDI4QIT.js} +1473 -1292
  108. package/dist/bundle/chunk-YHWFF6DN.js +39 -0
  109. package/dist/bundle/{chunk-W53EJOFQ.js → chunk-YUDVRFXN.js} +1 -1
  110. package/dist/bundle/{chunk-MNRMKWCN.js → chunk-YXYZAWWW.js} +6 -6
  111. package/dist/bundle/{chunk-5P5TXU2K.js → chunk-YYQ5GKAI.js} +9509 -10782
  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-LJ627ZUA.js → command-server-entry-VUR6WL77.js} +30 -27
  115. package/dist/bundle/{decode-PX2LZ5Y2.js → decode-I64PF2RM.js} +6 -6
  116. package/dist/bundle/{definitions-M3U4UYHN.js → definitions-MB65223J.js} +72 -18
  117. package/dist/bundle/{dispatch-KOISQ5QJ.js → dispatch-JQBAZWCL.js} +8 -8
  118. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  119. package/dist/bundle/{echarts-FVTUDXDU.js → echarts-YRRVLEX3.js} +2 -2
  120. package/dist/bundle/{embed-CCSDK43I.js → embed-BLXLKMK2.js} +7 -7
  121. package/dist/bundle/{embedder-VHI4DHB7.js → embedder-JYGF6R7I.js} +10 -10
  122. package/dist/bundle/{failure-FZ6VYKEQ.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-HET7BCYK.js → instructions-AG7SRWTR.js} +1 -1
  129. package/dist/bundle/{mcp-RGNRW77S.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-UD26T37N.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-CXZIFHZC.js → node-GJQYN4FT.js} +2 -2
  139. package/dist/bundle/{node-sqlite-ME7KMORI.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-HA6D3SXR.js → open-JGXVHIKO.js} +6 -6
  144. package/dist/bundle/{openai-H5AJPZBX.js → openai-PFQJTF4H.js} +21 -18
  145. package/dist/bundle/{process-5RUXWGYS.js → process-MEKCZMX3.js} +1 -1
  146. package/dist/bundle/{program-F3NBTZ7J.js → program-DUJYLJH5.js} +6373 -6588
  147. package/dist/bundle/{prompt-6XSUOLHK.js → prompt-FW44QDHD.js} +6 -6
  148. package/dist/bundle/{recognize-2Y7AUVGG.js → recognize-62TDQ6A7.js} +5 -5
  149. package/dist/bundle/{remote-KCABPXQ3.js → remote-7ONFD7GG.js} +12 -11
  150. package/dist/bundle/{rerank-BTN7LUVA.js → rerank-YOHQQJS4.js} +8 -8
  151. package/dist/bundle/{schemas-VVLTLMXS.js → schemas-IIGJ7DOP.js} +39 -60
  152. package/dist/bundle/{serve-CYEMVRFC.js → serve-ZCXGT5RB.js} +11 -11
  153. package/dist/bundle/{server-WFIICGMI.js → server-RQ74M637.js} +78 -56
  154. package/dist/bundle/server-XMZF57WM.js +90 -0
  155. package/dist/bundle/{services-L4W6ZWDG.js → services-FWBRZ57M.js} +103 -88
  156. package/dist/bundle/{sqlite-runtime-IKMYLRQC.js → sqlite-runtime-ZZBNGV5L.js} +7 -7
  157. package/dist/bundle/{state-LMUP636P.js → state-GDDFO62Y.js} +7 -7
  158. package/dist/bundle/{store-W2JC2JP4.js → store-D2LRIWEI.js} +24 -20
  159. package/dist/bundle/{store-A2QZFBOX.js → store-KQCLR57N.js} +30 -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 +8 -2
  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.map +1 -1
  181. package/dist/generated/manifest.js +49 -0
  182. package/dist/generated/manifest.js.map +1 -1
  183. package/dist/generated/schemas.d.ts.map +1 -1
  184. package/dist/generated/schemas.js +32 -32
  185. package/dist/generated/schemas.js.map +1 -1
  186. package/dist/generated/types.d.ts +125 -25
  187. package/dist/generated/types.d.ts.map +1 -1
  188. package/dist/library.d.ts +8 -0
  189. package/dist/library.d.ts.map +1 -1
  190. package/dist/library.js +24 -1
  191. package/dist/library.js.map +1 -1
  192. package/dist/program.d.ts.map +1 -1
  193. package/dist/program.js +2 -0
  194. package/dist/program.js.map +1 -1
  195. package/dist/sync/files.d.ts +12 -0
  196. package/dist/sync/files.d.ts.map +1 -1
  197. package/dist/sync/files.js.map +1 -1
  198. package/dist/sync/source.d.ts.map +1 -1
  199. package/dist/sync/source.js +53 -37
  200. package/dist/sync/source.js.map +1 -1
  201. package/dist/sync/users.d.ts +15 -2
  202. package/dist/sync/users.d.ts.map +1 -1
  203. package/dist/sync/users.js +36 -1
  204. package/dist/sync/users.js.map +1 -1
  205. package/dist/version.d.ts +1 -1
  206. package/dist/version.js +1 -1
  207. package/package.json +4 -4
  208. package/dist/bundle/chunk-6EOZTUHT.js +0 -726
  209. package/dist/bundle/command-contract-TVRFW2IX.js +0 -38
  210. package/dist/bundle/first-run-7JKE5AHN.js +0 -29
  211. package/dist/bundle/first-screen-ZROHOEYJ.js +0 -38
  212. package/dist/bundle/meeting-combined-SSTOJUIJ.js +0 -24
  213. package/dist/bundle/meeting-model-K7TPS4S5.js +0 -26
  214. package/dist/bundle/oauth-XBTROXHB.js +0 -20
  215. package/dist/bundle/server-UC2FNNXX.js +0 -72
  216. package/dist/bundle/store-maintenance-command-LRGQJPSZ.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-WPP76PSX.js";
6
+ } from "./chunk-ERN53B3Z.js";
7
7
  import {
8
8
  chatEventAnswer,
9
9
  memberAnswer,
10
- pollVoteAnswer,
11
- serveRelay
12
- } from "./chunk-6EOZTUHT.js";
10
+ pollVoteAnswer
11
+ } from "./chunk-7L2XOKDZ.js";
13
12
  import {
14
13
  readSecret
15
- } from "./chunk-DBEQI5YM.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-5P5TXU2K.js";
31
+ syncsOneChat
32
+ } from "./chunk-YYQ5GKAI.js";
41
33
  import {
42
- holdLock,
43
- lockPath,
44
- releaseLock,
45
- servingProfiles,
46
- takeLock
47
- } from "./chunk-DO7BLXO3.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-PWRRDDMZ.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-W53EJOFQ.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-TDNURSU6.js";
96
+ } from "./chunk-WAGADES3.js";
87
97
  import {
88
98
  CORPORA,
89
99
  MIGRATIONS,
@@ -107,10 +117,12 @@ import {
107
117
  readStoreTables,
108
118
  rebuildMentions,
109
119
  resetAttachmentWords,
120
+ resetContentPostWords,
110
121
  resetCrmFileWords,
111
122
  resetNoteIndex,
112
123
  resetSearchIndex,
113
124
  resetStems,
125
+ resetTrackerItemWords,
114
126
  rollBack,
115
127
  rowCounts,
116
128
  searchIndexState,
@@ -119,44 +131,46 @@ import {
119
131
  storeClients,
120
132
  storeContents,
121
133
  vectorIndexCounts
122
- } from "./chunk-BBSFQ3PU.js";
134
+ } from "./chunk-YDDI4QIT.js";
123
135
  import {
124
- currentRun,
125
- formatLocator,
126
- parseLocator,
127
136
  readDamageMark,
128
137
  readHealthMark,
129
138
  readJournalMark,
130
139
  recordDeepCheck
131
- } from "./chunk-JCKWQGCD.js";
140
+ } from "./chunk-DIU2QJJF.js";
141
+ import {
142
+ currentRun,
143
+ formatLocator,
144
+ parseLocator
145
+ } from "./chunk-BEV5LO4D.js";
132
146
  import {
133
147
  failureKey,
134
148
  isStoreDamage
135
- } from "./chunk-UZSBGECU.js";
149
+ } from "./chunk-LQVDFD65.js";
136
150
  import {
137
151
  queryFieldsOf
138
- } from "./chunk-HHVFIXDO.js";
152
+ } from "./chunk-JVESLS7B.js";
139
153
  import {
140
154
  modelAddressAllowed,
141
155
  onThisComputer
142
- } from "./chunk-E2AFUJDR.js";
156
+ } from "./chunk-FRB2L7OE.js";
143
157
  import {
144
158
  readSharedSection,
145
159
  sharedConfigPath,
146
160
  writeSharedSection
147
- } from "./chunk-H3E2PZ5Y.js";
161
+ } from "./chunk-HOVHE3A3.js";
148
162
  import {
149
163
  storePath
150
- } from "./chunk-GTY6N5KZ.js";
164
+ } from "./chunk-HHEWTLAT.js";
151
165
  import {
152
166
  openCache
153
- } from "./chunk-MNRMKWCN.js";
167
+ } from "./chunk-YXYZAWWW.js";
154
168
  import {
155
169
  Credentials,
156
170
  isMovedRun,
157
171
  resolvePaths,
158
172
  writeSecurely
159
- } from "./chunk-W5JZMXGW.js";
173
+ } from "./chunk-KNCPBX5P.js";
160
174
  import {
161
175
  array,
162
176
  boolean,
@@ -178,12 +192,12 @@ import {
178
192
  string,
179
193
  transform,
180
194
  trim
181
- } from "./chunk-MVA5HVKL.js";
195
+ } from "./chunk-S4UUN6LD.js";
182
196
  import {
183
197
  CliError,
184
198
  singleLine,
185
199
  visibleControls
186
- } from "./chunk-DB2XKHI4.js";
200
+ } from "./chunk-HM6AMYHR.js";
187
201
  import {
188
202
  __commonJS,
189
203
  __name,
@@ -5523,11 +5537,11 @@ var require_liquid_node = __commonJS({
5523
5537
  }
5524
5538
  });
5525
5539
 
5526
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
5527
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";
5528
5542
  import { dirname as dirname3, resolve } from "node:path";
5529
5543
 
5530
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
5531
5545
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5532
5546
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5533
5547
  import { Transform } from "node:stream";
@@ -5634,7 +5648,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5634
5648
  renameSync(pending, to);
5635
5649
  }, "unsealFile");
5636
5650
 
5637
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
5638
5652
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5639
5653
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5640
5654
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5658,7 +5672,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5658
5672
  };
5659
5673
  }, "compatibilityOf");
5660
5674
 
5661
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
5662
5676
  import { createHash as createHash2 } from "node:crypto";
5663
5677
  var COPY_MARK = "__repair_";
5664
5678
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5912,19 +5926,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5912
5926
  return found;
5913
5927
  }, "deleteCopy");
5914
5928
 
5915
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
5916
5930
  import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
5917
5931
 
5918
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
5919
5933
  import { existsSync as existsSync3 } from "node:fs";
5920
5934
 
5921
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
5922
5936
  import { execFileSync, spawn } from "node:child_process";
5923
5937
  import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
5924
5938
  import { basename, dirname, join } from "node:path";
5925
5939
  import { Transform as Transform2 } from "node:stream";
5926
5940
 
5927
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
5928
5942
  var REFILL_MARGIN_MS = 864e5;
5929
5943
  var TIME_KEYS = 1e12;
5930
5944
  var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
@@ -6004,7 +6018,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
6004
6018
  return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
6005
6019
  }, "forgetMail");
6006
6020
 
6007
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
6008
6022
  var SQLITE3_MINIMUM = [3, 43, 0];
6009
6023
  var STORE_PARTS = ["", "-wal", "-shm"];
6010
6024
  var RECOVER_LOCK = ".recover-lock";
@@ -6282,6 +6296,8 @@ var FILLERS = {
6282
6296
  }, "message_stems"),
6283
6297
  attachment_words: /* @__PURE__ */ __name((database) => void resetAttachmentWords(database), "attachment_words"),
6284
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"),
6285
6301
  attachment_name_words: /* @__PURE__ */ __name((database) => (
6286
6302
  // As migration 20 filled it: й and ё fold as the triggers fold them.
6287
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")
@@ -6533,7 +6549,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
6533
6549
  }
6534
6550
  }, "recoverLocked");
6535
6551
 
6536
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
6537
6553
  var COUNTED = [
6538
6554
  "accounts",
6539
6555
  "chats",
@@ -6689,7 +6705,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
6689
6705
  return recover;
6690
6706
  }, "storeRecoverCommand");
6691
6707
 
6692
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
6693
6709
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
6694
6710
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
6695
6711
  var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
@@ -6735,7 +6751,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
6735
6751
  renderAnswer(this, outputFor(this), itemOf(answer));
6736
6752
  }), "storeInfoCommand");
6737
6753
 
6738
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
6739
6755
  var ENCRYPT_OPTION = [
6740
6756
  "--encrypt",
6741
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"
@@ -6754,7 +6770,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
6754
6770
  return password;
6755
6771
  }, "passwordOf");
6756
6772
 
6757
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
6758
6774
  import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
6759
6775
  import { join as join2 } from "node:path";
6760
6776
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6925,7 +6941,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6925
6941
  }, "problem");
6926
6942
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6927
6943
 
6928
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
6929
6945
  import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
6930
6946
  import { join as join3 } from "node:path";
6931
6947
  var ANSWERED_KEPT = 1e3;
@@ -6978,7 +6994,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6978
6994
  }, "recordReply");
6979
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");
6980
6996
 
6981
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
6982
6998
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6983
6999
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6984
7000
  const { message, chat, owner, sender } = incoming;
@@ -7084,10 +7100,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
7084
7100
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
7085
7101
  }, "filled");
7086
7102
 
7087
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
7088
7104
  var import_liquidjs2 = __toESM(require_liquid_node(), 1);
7089
7105
 
7090
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
7091
7107
  var import_liquidjs = __toESM(require_liquid_node(), 1);
7092
7108
  var safeLiquid = /* @__PURE__ */ __name((limits) => {
7093
7109
  const engine = new import_liquidjs.Liquid({
@@ -7114,7 +7130,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
7114
7130
  return engine;
7115
7131
  }, "safeLiquid");
7116
7132
 
7117
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
7118
7134
  var TEMPLATE_LIMITS = {
7119
7135
  parse: 32768,
7120
7136
  renders: 2e3,
@@ -7253,7 +7269,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
7253
7269
  }
7254
7270
  }, "renderReplyTemplate");
7255
7271
 
7256
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
7257
7273
  var DRY_RUN_DAYS = 7;
7258
7274
  var PAGE = 500;
7259
7275
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -7367,7 +7383,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
7367
7383
  }
7368
7384
  }, "storedSince");
7369
7385
 
7370
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
7371
7387
  var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
7372
7388
  var DEFAULT_BASE_URL = {
7373
7389
  anthropic: "https://api.anthropic.com",
@@ -7517,7 +7533,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
7517
7533
  }
7518
7534
  }, "checkAi");
7519
7535
 
7520
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
7521
7537
  var HOSTED = {
7522
7538
  openai: "https://api.openai.com/v1",
7523
7539
  anthropic: "https://api.anthropic.com"
@@ -7538,7 +7554,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
7538
7554
  return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
7539
7555
  }, "purposeModel");
7540
7556
 
7541
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
7542
7558
  import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
7543
7559
  import { join as join4 } from "node:path";
7544
7560
  var shape = strictObject({
@@ -7563,7 +7579,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
7563
7579
  return consent.provider === provider && !consent.deniedChats.includes(chat);
7564
7580
  }, "mayModelReply");
7565
7581
 
7566
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
7567
7583
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
7568
7584
  ai: true
7569
7585
  }) => async (rule2, message, chat, now) => {
@@ -7611,7 +7627,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
7611
7627
  return result2;
7612
7628
  }, "replyRenderer");
7613
7629
 
7614
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
7615
7631
  var NOT_ALLOWED = "replies.send is not allow";
7616
7632
  var NO_RULES = "no rules";
7617
7633
  var ONLY_TASK = "opened a task, sent nothing";
@@ -7704,7 +7720,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
7704
7720
  return { skip: why };
7705
7721
  }, "replyTo");
7706
7722
 
7707
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
7708
7724
  var START_SYNC_DELAY_MS = 3e4;
7709
7725
  var START_SYNC_BUDGET_MS = 5 * 6e4;
7710
7726
  var START_SYNC_WINDOW_MS = 7 * 864e5;
@@ -7781,7 +7797,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
7781
7797
  };
7782
7798
  }, "startSync");
7783
7799
 
7784
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
7785
7801
  var FIRST_FETCH_MS = 6e4;
7786
7802
  var DAY_MS = 864e5;
7787
7803
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -7835,7 +7851,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
7835
7851
  };
7836
7852
  }, "memberFetches");
7837
7853
 
7838
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
7839
7855
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
7840
7856
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
7841
7857
  if (context.format === "pretty") {
@@ -7868,7 +7884,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
7868
7884
  return context;
7869
7885
  }, "recordDiagnostics");
7870
7886
 
7871
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
7872
7888
  import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
7873
7889
  import { dirname as dirname2, join as join5 } from "node:path";
7874
7890
  var OUTDATED_CHECK_MS = 6e4;
@@ -7954,7 +7970,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
7954
7970
  };
7955
7971
  }, "watchOutdated");
7956
7972
 
7957
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
7958
7974
  var STEMS_EVERY_MS = 3e4;
7959
7975
  var STEMS_SLICE_MS = 2e3;
7960
7976
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -7994,7 +8010,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
7994
8010
  };
7995
8011
  }, "stemFills");
7996
8012
 
7997
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
7998
8014
  import { styleText } from "node:util";
7999
8015
  var TIME_WIDTH = 8;
8000
8016
  var INDENT = " ".repeat(TIME_WIDTH + 2);
@@ -8170,7 +8186,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
8170
8186
  return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
8171
8187
  }, "editedAt");
8172
8188
 
8173
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
8174
8190
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
8175
8191
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
8176
8192
  kind: attachment.kind,
@@ -8266,7 +8282,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
8266
8282
  locale: messenger.app.locale
8267
8283
  }), "viewOf");
8268
8284
 
8269
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
8270
8286
  var observed = /* @__PURE__ */ __name((value) => ({
8271
8287
  value: value.value,
8272
8288
  observed_at: value.observedAt,
@@ -8333,7 +8349,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
8333
8349
  }
8334
8350
  }, "watchEventItem");
8335
8351
 
8336
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
8337
8353
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
8338
8354
  output: { entity: "watch_item" },
8339
8355
  effects: REMOTE_READ,
@@ -8488,7 +8504,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
8488
8504
  }
8489
8505
  }, "describe");
8490
8506
 
8491
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
8492
8508
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
8493
8509
  const command = annotate(new Command("serve"), {
8494
8510
  output: { entity: "serve_summary" },
@@ -8774,7 +8790,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
8774
8790
  };
8775
8791
  }, "tasking");
8776
8792
 
8777
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
8778
8794
  import { existsSync as existsSync9 } from "node:fs";
8779
8795
  var PATH = "store tables list";
8780
8796
  var STORE_TABLES_QUERY = {
@@ -8817,7 +8833,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
8817
8833
  return tables;
8818
8834
  }, "storeTablesCommand");
8819
8835
 
8820
- // node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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
8821
8837
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
8822
8838
  var WORD_INDEX = "message_words";
8823
8839
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -9060,7 +9076,9 @@ var inspect = /* @__PURE__ */ __name((path) => reading(path, (database) => {
9060
9076
  ...wordIndex ? [[WORD_INDEX, indexIntegrity(database, WORD_INDEX, 0)]] : [],
9061
9077
  ...stems ? [["message_stems", indexIntegrity(database, "message_stems", 0)]] : [],
9062
9078
  ...schema.version > 0 ? [["attachment_words", indexIntegrity(database, "attachment_words", 0)]] : [],
9063
- ...schema.version >= 68 ? [["crm_file_words", indexIntegrity(database, "crm_file_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)]] : []
9064
9082
  ]);
9065
9083
  const size = bytesOf2(path) + bytesOf2(`${path}-wal`);
9066
9084
  const { bavail, bsize } = statfsSync2(dirname3(path));
@@ -9228,7 +9246,7 @@ var reindexCommand = /* @__PURE__ */ __name((owner) => destroysNothing(annotate(
9228
9246
  throw new CliError("validation_error", `the store is behind this build \u2014 \`${lineOf(this, "store migrate")}\` first`);
9229
9247
  }
9230
9248
  resetSearchIndex(database);
9231
- const fileTexts = resetAttachmentWords(database) + resetCrmFileWords(database);
9249
+ const fileTexts = resetAttachmentWords(database) + resetCrmFileWords(database) + resetTrackerItemWords(database) + resetContentPostWords(database);
9232
9250
  const words = buildWordIndex(database, (note) => renderer.note(note));
9233
9251
  return {
9234
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.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/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