@wirecat/drive-cli 0.68.0 → 0.70.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 (225) hide show
  1. package/contracts/wirecat.json +14 -13
  2. package/dist/age.d.ts +0 -36
  3. package/dist/age.d.ts.map +1 -1
  4. package/dist/age.js +0 -22
  5. package/dist/age.js.map +1 -1
  6. package/dist/bin/drive.js +2 -2
  7. package/dist/bundle/{all-profiles-BU6XUFUP.js → all-profiles-FW3GK3QO.js} +24 -34
  8. package/dist/bundle/{anthropic-ZP5B7S2Z.js → anthropic-QVKJT3II.js} +8 -8
  9. package/dist/bundle/{app-server-EB4DH6T7.js → app-server-QU73RD5R.js} +68 -76
  10. package/dist/bundle/{bun-PWMM6L45.js → bun-5XCD5CBB.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-6VPR2SVC.js → bun-sqlite-TIGSVNSV.js} +9 -9
  12. package/dist/bundle/{chunk-7BXVI7XF.js → chunk-2SBC4DVV.js} +4 -4
  13. package/dist/bundle/{chunk-UFPRP7MG.js → chunk-3AHBZP33.js} +10 -15
  14. package/dist/bundle/{chunk-QRSPFCRY.js → chunk-3CHW7JGR.js} +17 -17
  15. package/dist/bundle/chunk-3TCMANIM.js +387 -0
  16. package/dist/bundle/{chunk-EOC7RHJ2.js → chunk-3UWRAIWA.js} +5 -7
  17. package/dist/bundle/{chunk-5G2BY4B6.js → chunk-3UZ4OH22.js} +32 -31
  18. package/dist/bundle/{chunk-UIKVP23D.js → chunk-4WK26MPY.js} +1 -1
  19. package/dist/bundle/{chunk-WUFZGPXX.js → chunk-54BQWRJL.js} +7 -7
  20. package/dist/bundle/{chunk-EA2OB75T.js → chunk-54NDYVZA.js} +1 -1
  21. package/dist/bundle/{chunk-QKY24RWV.js → chunk-5JTB4URG.js} +12 -12
  22. package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-66PL7P4C.js} +1 -1
  23. package/dist/bundle/{chunk-JMZQBRRZ.js → chunk-6BMTW5A6.js} +9 -9
  24. package/dist/bundle/{chunk-CVAJMRRD.js → chunk-6DPOWBKA.js} +6 -6
  25. package/dist/bundle/{chunk-YUGTJBV3.js → chunk-7C5KENNU.js} +3 -3
  26. package/dist/bundle/chunk-7DJNURKV.js +823 -0
  27. package/dist/bundle/{chunk-5TK2YQCO.js → chunk-7IBENBCK.js} +2 -2
  28. package/dist/bundle/chunk-7QSRODXM.js +259 -0
  29. package/dist/bundle/{chunk-HCZYJMBP.js → chunk-ABZ2NYDT.js} +1 -1
  30. package/dist/bundle/chunk-AV5UKJZM.js +729 -0
  31. package/dist/bundle/{chunk-IVOG6T6P.js → chunk-BBFXQPKD.js} +3 -3
  32. package/dist/bundle/{chunk-BXHFJTU5.js → chunk-BBRMDMIR.js} +3 -3
  33. package/dist/bundle/{chunk-DYLYH7VE.js → chunk-BD2K2ONK.js} +4 -4
  34. package/dist/bundle/{chunk-AIEMFRBU.js → chunk-BFKFKDPC.js} +1 -1
  35. package/dist/bundle/{chunk-JZ3MT7IE.js → chunk-BXPC5TFG.js} +2 -2
  36. package/dist/bundle/chunk-DHX27E5M.js +31 -0
  37. package/dist/bundle/{chunk-6QR7NKMG.js → chunk-DR57KDAY.js} +109 -5
  38. package/dist/bundle/{chunk-2VYEGKQ3.js → chunk-DVI72ZQG.js} +1 -1
  39. package/dist/bundle/{chunk-WGX4DZPW.js → chunk-DVVUJ254.js} +2 -2
  40. package/dist/bundle/{chunk-PJ3FKBXG.js → chunk-EDO5LZVF.js} +1 -1
  41. package/dist/bundle/{chunk-QTRYJZL7.js → chunk-EG62WVR2.js} +6 -6
  42. package/dist/bundle/{chunk-WCNTDETD.js → chunk-F5KJWRF5.js} +98 -6
  43. package/dist/bundle/{chunk-D4MVEOU2.js → chunk-FADAOLGB.js} +4 -4
  44. package/dist/bundle/{chunk-FAMXUI2X.js → chunk-FCSHWUMW.js} +5 -5
  45. package/dist/bundle/{chunk-O7T3WGCV.js → chunk-FN3RXBO7.js} +6 -6
  46. package/dist/bundle/{chunk-5W65QTYS.js → chunk-FONIFRYI.js} +4 -4
  47. package/dist/bundle/{chunk-UUQJVKPB.js → chunk-FVTKFIQH.js} +2340 -1436
  48. package/dist/bundle/{chunk-7A77GYCE.js → chunk-FYPW7NMH.js} +4 -4
  49. package/dist/bundle/{chunk-FIVFP53N.js → chunk-GA3URWIF.js} +1 -1
  50. package/dist/bundle/{chunk-GTLXBAJV.js → chunk-GAHIHE4K.js} +3035 -2482
  51. package/dist/bundle/{chunk-CMWFYZ45.js → chunk-GJZSVSV3.js} +2 -2
  52. package/dist/bundle/{chunk-QWGEOQHA.js → chunk-GK3BJMGK.js} +1 -1
  53. package/dist/bundle/{chunk-TI2OANJZ.js → chunk-GPDPEHYX.js} +1 -1
  54. package/dist/bundle/{chunk-KPKIHJIT.js → chunk-GV5DGHSA.js} +4 -4
  55. package/dist/bundle/{chunk-JRFKCYMW.js → chunk-HHAZ6DCY.js} +23 -6
  56. package/dist/bundle/{chunk-ZVQDOKDY.js → chunk-HK225DAG.js} +1 -1
  57. package/dist/bundle/{chunk-MW46BLWH.js → chunk-HRATXUFH.js} +22 -20
  58. package/dist/bundle/{chunk-Z5BMYI2V.js → chunk-HWUPU6WX.js} +8 -8
  59. package/dist/bundle/{chunk-6WAC2LOS.js → chunk-HYXXMSVD.js} +8614 -8597
  60. package/dist/bundle/{chunk-YYIWPH53.js → chunk-I7YSHUPW.js} +13 -13
  61. package/dist/bundle/{chunk-MWCPKUU4.js → chunk-IFTX7AQU.js} +5 -5
  62. package/dist/bundle/{chunk-SOS4U2RF.js → chunk-IGNIUDI3.js} +71 -49
  63. package/dist/bundle/{chunk-7JKECODO.js → chunk-ILAQIBEO.js} +1 -11
  64. package/dist/bundle/{chunk-CK2SQ2CE.js → chunk-KSJAFMU5.js} +78 -31
  65. package/dist/bundle/{chunk-ZSVMZH5O.js → chunk-LINBDWJK.js} +2 -2
  66. package/dist/bundle/{chunk-43NEDPXB.js → chunk-LMJBQFW6.js} +6 -6
  67. package/dist/bundle/{chunk-IJCUAKR5.js → chunk-ML3R2UHV.js} +4 -4
  68. package/dist/bundle/{chunk-PGPHEC2X.js → chunk-MXNQZAJQ.js} +2 -2
  69. package/dist/bundle/{chunk-RT5NT62B.js → chunk-NP7LJATI.js} +16 -70
  70. package/dist/bundle/chunk-OY7TNUEC.js +16 -0
  71. package/dist/bundle/{chunk-74NCZKRW.js → chunk-P77FL6RY.js} +18 -18
  72. package/dist/bundle/chunk-P7PLKNPX.js +3611 -0
  73. package/dist/bundle/{chunk-QVJMFZFW.js → chunk-PAPY6Q6H.js} +1 -1
  74. package/dist/bundle/{chunk-Q6BD6RUH.js → chunk-PN4JYURZ.js} +102 -57
  75. package/dist/bundle/{chunk-MOKEB656.js → chunk-PR7XD2DI.js} +2 -2
  76. package/dist/bundle/{chunk-UPCEHSIZ.js → chunk-Q5C6YKAY.js} +21 -16
  77. package/dist/bundle/{chunk-EXWZCI5G.js → chunk-QBAOIMVB.js} +1 -1
  78. package/dist/bundle/{chunk-ULNN3LCY.js → chunk-RCTOWLCD.js} +44 -37
  79. package/dist/bundle/{chunk-7TNQZKRD.js → chunk-REM5WHHQ.js} +77 -76
  80. package/dist/bundle/{chunk-Y2QVNVHK.js → chunk-RHSBXOQM.js} +1 -1
  81. package/dist/bundle/{chunk-UYBLNGZ2.js → chunk-RLNZ7NX5.js} +2 -2
  82. package/dist/bundle/chunk-RQNRYF6D.js +170 -0
  83. package/dist/bundle/{chunk-PV3AWPHR.js → chunk-SONPLYV7.js} +5 -5
  84. package/dist/bundle/{chunk-CRIEW4FP.js → chunk-T5D4OGDC.js} +2 -2
  85. package/dist/bundle/{chunk-MLSXHTUB.js → chunk-TGS5VPJD.js} +1228 -455
  86. package/dist/bundle/chunk-TNKQDS5A.js +335 -0
  87. package/dist/bundle/{chunk-DU23ET2O.js → chunk-VVN6GHAZ.js} +60 -81
  88. package/dist/bundle/{chunk-PWIEOATY.js → chunk-WJK6KTCS.js} +325 -14
  89. package/dist/bundle/{chunk-U52QE4QV.js → chunk-WWE5GO6G.js} +3 -3
  90. package/dist/bundle/{chunk-6HFZZ2PW.js → chunk-XOL346TJ.js} +2 -2
  91. package/dist/bundle/{chunk-ZAIE3G5I.js → chunk-XZBA6FVH.js} +3 -3
  92. package/dist/bundle/chunk-YCL3SK4T.js +1978 -0
  93. package/dist/bundle/{chunk-DIZBJLPM.js → chunk-YRUR3E3E.js} +68 -78
  94. package/dist/bundle/{chunk-EEE4H2PA.js → chunk-YZPE72GE.js} +12 -12
  95. package/dist/bundle/{chunk-F7KAMSXA.js → chunk-ZCXWV4XO.js} +4 -4
  96. package/dist/bundle/{chunk-NV75QPML.js → chunk-ZHZYGY5R.js} +4 -4
  97. package/dist/bundle/{cli-L7P36YUH.js → cli-K4D4DIGQ.js} +137 -88
  98. package/dist/bundle/command-contract-V3F452QI.js +43 -0
  99. package/dist/bundle/{command-server-entry-H3VGPOLJ.js → command-server-entry-WREK3QBB.js} +33 -31
  100. package/dist/bundle/decode-SEETPKBH.js +299 -0
  101. package/dist/bundle/{dispatch-WBEOHZDV.js → dispatch-SQCEURVK.js} +9 -9
  102. package/dist/bundle/drive.js +11 -11
  103. package/dist/bundle/{echarts-SDZA2SWG.js → echarts-WZ5RKFCX.js} +2 -2
  104. package/dist/bundle/{embed-WUKOASQG.js → embed-B2UCRZZR.js} +9 -9
  105. package/dist/bundle/{embedder-UBRAXRDZ.js → embedder-4R6Z7G7L.js} +12 -12
  106. package/dist/bundle/entry-ORZYRJ5N.js +25 -0
  107. package/dist/bundle/{failure-X6PSLVSO.js → failure-CYNXH3RQ.js} +4 -4
  108. package/dist/bundle/first-run-KAKA6KBY.js +31 -0
  109. package/dist/bundle/first-screen-R645UHRH.js +41 -0
  110. package/dist/bundle/google-BSO3YB7N.js +45 -0
  111. package/dist/bundle/{google-api-SQQ4BSNR.js → google-api-SAND2F7L.js} +70 -63
  112. package/dist/bundle/grants-PLNFYARD.js +118 -0
  113. package/dist/bundle/{identity-SRL6RSU2.js → identity-JVVGS4U6.js} +6 -6
  114. package/dist/bundle/{instructions-7T6JJIFS.js → instructions-JSMTSB22.js} +1 -1
  115. package/dist/bundle/{login-N243GGEE.js → login-6WG3YBDU.js} +78 -71
  116. package/dist/bundle/{mcp-TDKGDB4V.js → mcp-VFIOZDVY.js} +2 -2
  117. package/dist/bundle/meeting-combined-SUKMFK3F.js +27 -0
  118. package/dist/bundle/meeting-model-S4YGKIFI.js +29 -0
  119. package/dist/bundle/meeting-semantic-5U7JQCFF.js +25 -0
  120. package/dist/bundle/{node-BZDMUFTW.js → node-VJMVHOWD.js} +2 -2
  121. package/dist/bundle/{node-sqlite-SZQCCMV2.js → node-sqlite-DCNT3HVE.js} +10 -10
  122. package/dist/bundle/oauth-KCMNQ3ZP.js +22 -0
  123. package/dist/bundle/{open-RVTPKDA3.js → open-NFOEHVW7.js} +8 -8
  124. package/dist/bundle/{openai-6NN63BMH.js → openai-D47WY7EC.js} +32 -30
  125. package/dist/bundle/{process-756VBE7E.js → process-Q2FRU5VA.js} +1 -1
  126. package/dist/bundle/{program-B4QBJYB5.js → program-T2AJJQEM.js} +1327 -1329
  127. package/dist/bundle/{prompt-HGP2DSRW.js → prompt-YJSDABXN.js} +8 -8
  128. package/dist/bundle/{reasons-KSYP5VDJ.js → reasons-WEHPCSJX.js} +5 -5
  129. package/dist/bundle/{recognize-26SHB7HI.js → recognize-6OBEIEB3.js} +7 -7
  130. package/dist/bundle/{remote-Z4PWHZ5N.js → remote-3SL2QJ7T.js} +13 -13
  131. package/dist/bundle/{rerank-QHJZJK3Q.js → rerank-L6F5SLIB.js} +10 -10
  132. package/dist/bundle/{serve-MYJW5IEM.js → serve-GYSWIWH4.js} +12 -12
  133. package/dist/bundle/server-BI46BSRE.js +80 -0
  134. package/dist/bundle/{server-XFW3V7CR.js → server-GWWP3RIT.js} +62 -53
  135. package/dist/bundle/{services-IQG2RVTO.js → services-BDQBRXT5.js} +91 -51
  136. package/dist/bundle/{sqlite-runtime-X4GB5PBV.js → sqlite-runtime-ZSZGAUYB.js} +9 -9
  137. package/dist/bundle/{start-C6EXYXAL.js → start-BJ275RUK.js} +7 -7
  138. package/dist/bundle/{state-ATQK2X3W.js → state-HLNGFI2T.js} +9 -9
  139. package/dist/bundle/{store-QUBUPK6F.js → store-I43KZNJW.js} +35 -26
  140. package/dist/bundle/{store-MEHEUOJH.js → store-OSRTGYGI.js} +23 -19
  141. package/dist/bundle/store-maintenance-command-FO7LEVSL.js +72 -0
  142. package/dist/bundle/tokens-DB7O7QNB.js +118 -0
  143. package/dist/catalog.d.ts +0 -28
  144. package/dist/catalog.d.ts.map +1 -1
  145. package/dist/catalog.js +0 -82
  146. package/dist/catalog.js.map +1 -1
  147. package/dist/commands/catalog.d.ts +3 -8
  148. package/dist/commands/catalog.d.ts.map +1 -1
  149. package/dist/commands/catalog.js +36 -109
  150. package/dist/commands/catalog.js.map +1 -1
  151. package/dist/commands/context.d.ts +3 -0
  152. package/dist/commands/context.d.ts.map +1 -1
  153. package/dist/commands/context.js +20 -0
  154. package/dist/commands/context.js.map +1 -1
  155. package/dist/commands/documents.d.ts.map +1 -1
  156. package/dist/commands/documents.js +30 -72
  157. package/dist/commands/documents.js.map +1 -1
  158. package/dist/commands/folders.d.ts +1 -1
  159. package/dist/commands/folders.d.ts.map +1 -1
  160. package/dist/commands/folders.js +45 -48
  161. package/dist/commands/folders.js.map +1 -1
  162. package/dist/commands/knowledge.d.ts +4 -21
  163. package/dist/commands/knowledge.d.ts.map +1 -1
  164. package/dist/commands/knowledge.js +3 -241
  165. package/dist/commands/knowledge.js.map +1 -1
  166. package/dist/commands/mirrors.d.ts +2 -2
  167. package/dist/commands/mirrors.d.ts.map +1 -1
  168. package/dist/commands/mirrors.js +46 -202
  169. package/dist/commands/mirrors.js.map +1 -1
  170. package/dist/commands/search.d.ts +1 -3
  171. package/dist/commands/search.d.ts.map +1 -1
  172. package/dist/commands/search.js +20 -42
  173. package/dist/commands/search.js.map +1 -1
  174. package/dist/commands/sync.d.ts.map +1 -1
  175. package/dist/commands/sync.js +36 -53
  176. package/dist/commands/sync.js.map +1 -1
  177. package/dist/contract-overrides.d.ts +0 -2
  178. package/dist/contract-overrides.d.ts.map +1 -1
  179. package/dist/contract-overrides.js +0 -317
  180. package/dist/contract-overrides.js.map +1 -1
  181. package/dist/knowledge.d.ts +1 -1
  182. package/dist/knowledge.d.ts.map +1 -1
  183. package/dist/knowledge.js +4 -3
  184. package/dist/knowledge.js.map +1 -1
  185. package/dist/list-queries.d.ts +0 -31
  186. package/dist/list-queries.d.ts.map +1 -1
  187. package/dist/list-queries.js +0 -36
  188. package/dist/list-queries.js.map +1 -1
  189. package/dist/policy.d.ts +1 -1
  190. package/dist/policy.d.ts.map +1 -1
  191. package/dist/policy.js +3 -3
  192. package/dist/policy.js.map +1 -1
  193. package/dist/program.d.ts.map +1 -1
  194. package/dist/program.js +2 -3
  195. package/dist/program.js.map +1 -1
  196. package/dist/provider-json.d.ts.map +1 -1
  197. package/dist/provider-json.js +5 -5
  198. package/dist/provider-json.js.map +1 -1
  199. package/dist/reasons.d.ts.map +1 -1
  200. package/dist/reasons.js +0 -10
  201. package/dist/reasons.js.map +1 -1
  202. package/dist/version.d.ts +1 -1
  203. package/dist/version.js +1 -1
  204. package/package.json +3 -3
  205. package/dist/bundle/chunk-2UHQVRH2.js +0 -1235
  206. package/dist/bundle/chunk-AXYG2DDY.js +0 -4721
  207. package/dist/bundle/chunk-J5LXL435.js +0 -1316
  208. package/dist/bundle/chunk-R5FTCNLJ.js +0 -76
  209. package/dist/bundle/command-contract-EYFGMKIG.js +0 -41
  210. package/dist/bundle/decode-JEU6JWCV.js +0 -165
  211. package/dist/bundle/entry-C4NUQFTF.js +0 -25
  212. package/dist/bundle/first-run-PKHBS7B4.js +0 -30
  213. package/dist/bundle/first-screen-QOVOM4BF.js +0 -39
  214. package/dist/bundle/google-XXHSMTVK.js +0 -45
  215. package/dist/bundle/grants-2U4JVT6O.js +0 -111
  216. package/dist/bundle/oauth-CMAFXX6A.js +0 -22
  217. package/dist/bundle/server-HBZPIHDX.js +0 -74
  218. package/dist/bundle/store-maintenance-command-33ULVDWY.js +0 -65
  219. package/dist/bundle/tokens-A2GP4F34.js +0 -111
  220. package/dist/knowledge-query.d.ts +0 -77
  221. package/dist/knowledge-query.d.ts.map +0 -1
  222. package/dist/knowledge-query.js +0 -104
  223. package/dist/knowledge-query.js.map +0 -1
  224. package/dist/bundle/{chunk-XWBPP2HX.js → chunk-ZI3YTXSF.js} +0 -0
  225. package/dist/bundle/{mdast-util-from-markdown-CE73EWJ2.js → mdast-util-from-markdown-FXEPSNER.js} +3 -3
@@ -1,5 +1,9 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ modelSettingsShape,
5
+ resolveModelSettings
6
+ } from "./chunk-FYPW7NMH.js";
3
7
  import {
4
8
  currentCaller,
5
9
  endpointTemplate,
@@ -9,58 +13,33 @@ import {
9
13
  providerErrorKey,
10
14
  renderEvent,
11
15
  runContextOf
12
- } from "./chunk-WUFZGPXX.js";
13
- import {
14
- CEILING_KEY,
15
- COMMAND_PATH_KEY,
16
- DEFAULT_HISTORY_LIMITS,
17
- DEFAULT_RERANK_MODEL,
18
- HISTORY_MAX_DAYS,
19
- IMAGE_MODELS,
20
- LEVELS,
21
- RERANK_MODELS,
22
- RESOURCES,
23
- RESOURCE_KEY,
24
- WEIGHTS,
25
- agenda,
26
- assertOverridesTighten,
27
- attachment,
28
- closeSuggestion,
29
- conversation,
30
- hitFile,
31
- keyForCommand,
32
- layerPermissions,
33
- parseDuration,
34
- permissionOverrides,
35
- progressOf,
36
- runBudget,
37
- stopWrites,
38
- tagging,
39
- task,
40
- withWriteScope
41
- } from "./chunk-J5LXL435.js";
42
- import {
43
- modelSettingsShape,
44
- resolveModelSettings
45
- } from "./chunk-7A77GYCE.js";
46
- import {
47
- permissionCeiling
48
- } from "./chunk-KPKIHJIT.js";
16
+ } from "./chunk-54BQWRJL.js";
49
17
  import {
50
18
  ancestorValue,
51
19
  envName,
52
20
  readOnlyLockOf,
53
21
  readOnlyRefusal
54
- } from "./chunk-MOKEB656.js";
22
+ } from "./chunk-PR7XD2DI.js";
55
23
  import {
56
24
  carries
57
- } from "./chunk-UIKVP23D.js";
25
+ } from "./chunk-4WK26MPY.js";
26
+ import {
27
+ DEFAULT_RERANK_MODEL,
28
+ RERANK_MODELS
29
+ } from "./chunk-TNKQDS5A.js";
30
+ import {
31
+ permissionCeiling
32
+ } from "./chunk-GV5DGHSA.js";
58
33
  import {
59
34
  endpoint
60
- } from "./chunk-6QR7NKMG.js";
35
+ } from "./chunk-DR57KDAY.js";
61
36
  import {
62
37
  note
63
- } from "./chunk-IVOG6T6P.js";
38
+ } from "./chunk-BBFXQPKD.js";
39
+ import {
40
+ filesPresent,
41
+ sharedModelsDirectory
42
+ } from "./chunk-FONIFRYI.js";
64
43
  import {
65
44
  BUSINESS_KINDS,
66
45
  CATEGORIES,
@@ -69,7 +48,6 @@ import {
69
48
  DEAL_ROLES,
70
49
  DEAL_STATUSES,
71
50
  FACT_STATUSES,
72
- FACT_TYPES,
73
51
  FINANCE_REVIEWS,
74
52
  INVOICE_DIRECTIONS,
75
53
  INVOICE_STATUSES,
@@ -78,7 +56,6 @@ import {
78
56
  LINK_KINDS,
79
57
  LINK_SOURCES,
80
58
  LOG_ATTRIBUTES,
81
- MEETING_RESULT_ENTITIES,
82
59
  MEMORY_KINDS,
83
60
  MEMORY_SCOPES,
84
61
  MEMORY_STATUSES,
@@ -100,26 +77,12 @@ import {
100
77
  count,
101
78
  currentRun,
102
79
  enclosingTraceId,
103
- event,
104
80
  evidenceSource,
105
81
  id,
106
82
  inRun,
107
83
  isGroupName,
108
84
  logAttributes,
109
85
  markStoreDamaged,
110
- meeting,
111
- meetingCounts,
112
- meetingDetails,
113
- meetingHit,
114
- meetingLink,
115
- meetingParticipants,
116
- meetingPassage,
117
- meetingProjectEvidence,
118
- meetingReview,
119
- meetingSpeaker,
120
- meetingStats,
121
- meetingSummary,
122
- meetingTranscript,
123
86
  newRunId,
124
87
  organization,
125
88
  project,
@@ -135,22 +98,50 @@ import {
135
98
  typedCommand,
136
99
  untrusted,
137
100
  useAsProcessRun
138
- } from "./chunk-AXYG2DDY.js";
139
- import {
140
- FIELD_TYPES,
141
- QUERY_BACKENDS,
142
- describeQuery
143
- } from "./chunk-UPCEHSIZ.js";
101
+ } from "./chunk-YCL3SK4T.js";
144
102
  import {
145
103
  isCliFailure,
146
104
  storeDamaged
147
- } from "./chunk-UYBLNGZ2.js";
105
+ } from "./chunk-RLNZ7NX5.js";
106
+ import {
107
+ TAG_TYPES
108
+ } from "./chunk-DHX27E5M.js";
148
109
  import {
110
+ FACT_TYPES,
111
+ MEETING_RESULT_ENTITIES,
112
+ callStats,
113
+ event,
114
+ meeting,
115
+ meetingCounts,
116
+ meetingDetails,
117
+ meetingHit,
118
+ meetingLink,
119
+ meetingParticipants,
120
+ meetingPassage,
121
+ meetingProjectEvidence,
122
+ meetingReview,
123
+ meetingSpeaker,
124
+ meetingStats,
125
+ meetingSummary,
126
+ meetingTagChange,
127
+ meetingTagging,
128
+ meetingTranscript,
129
+ readsZone
130
+ } from "./chunk-P7PLKNPX.js";
131
+ import {
132
+ FIELD_TYPES,
133
+ QUERY_BACKENDS,
134
+ describeQuery,
135
+ parseLucene,
136
+ timezoneOf
137
+ } from "./chunk-Q5C6YKAY.js";
138
+ import {
139
+ repairConfigText,
149
140
  sharedConfigPath
150
- } from "./chunk-PWIEOATY.js";
141
+ } from "./chunk-WJK6KTCS.js";
151
142
  import {
152
143
  storePath
153
- } from "./chunk-CRIEW4FP.js";
144
+ } from "./chunk-T5D4OGDC.js";
154
145
  import {
155
146
  configFilePath,
156
147
  createRecordLog,
@@ -161,19 +152,19 @@ import {
161
152
  resolvePaths,
162
153
  saveConfigFile,
163
154
  writeSecurely
164
- } from "./chunk-MW46BLWH.js";
155
+ } from "./chunk-HRATXUFH.js";
165
156
  import {
166
157
  EXIT_CODES,
167
158
  GENERIC_FAILURE,
168
159
  exitCodeOfAnswer
169
- } from "./chunk-PV3AWPHR.js";
160
+ } from "./chunk-SONPLYV7.js";
170
161
  import {
171
162
  singleLine,
172
163
  visibleControls
173
- } from "./chunk-HCZYJMBP.js";
164
+ } from "./chunk-ABZ2NYDT.js";
174
165
  import {
175
166
  defineLogEvents
176
- } from "./chunk-5TK2YQCO.js";
167
+ } from "./chunk-7IBENBCK.js";
177
168
  import {
178
169
  COMPACT_FLAG,
179
170
  MAX_NEXT_STEPS,
@@ -223,15 +214,16 @@ import {
223
214
  unwrap,
224
215
  variant,
225
216
  writes
226
- } from "./chunk-JRFKCYMW.js";
217
+ } from "./chunk-HHAZ6DCY.js";
227
218
  import {
228
- CliError
229
- } from "./chunk-EA2OB75T.js";
219
+ CliError,
220
+ isCliError
221
+ } from "./chunk-54NDYVZA.js";
230
222
  import {
231
223
  __name
232
224
  } from "./chunk-ZVVMGPBJ.js";
233
225
 
234
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
226
+ // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
235
227
  var labels = /* @__PURE__ */ new WeakMap();
236
228
  var annotate = /* @__PURE__ */ __name((command, meta) => {
237
229
  labels.set(command, { ...labels.get(command), ...meta });
@@ -251,8 +243,8 @@ var snake = /* @__PURE__ */ __name((name) => name.replace(/[A-Z]/g, (letter) =>
251
243
  var stepTargets = /* @__PURE__ */ __name((root) => {
252
244
  const found = /* @__PURE__ */ new Map();
253
245
  const optionName = /* @__PURE__ */ __name((option) => snake((option.long ?? option.attributeName()).replace(/^--/, "")), "optionName");
254
- const visit2 = /* @__PURE__ */ __name((command, parents, above) => {
255
- const path2 = [...parents, command.name()];
246
+ const visit2 = /* @__PURE__ */ __name((command, parents2, above) => {
247
+ const path2 = [...parents2, command.name()];
256
248
  const options = [...above, ...command.options];
257
249
  const { effects } = metaOf(command);
258
250
  found.set(path2.join(" "), {
@@ -274,8 +266,8 @@ var describeAlone = /* @__PURE__ */ __name((command, known) => {
274
266
  }
275
267
  return found;
276
268
  }, "describeAlone");
277
- var describe = /* @__PURE__ */ __name((command, cli, parents, above, known) => {
278
- const path2 = [...parents, command.name()];
269
+ var describe = /* @__PURE__ */ __name((command, cli, parents2, above, known) => {
270
+ const path2 = [...parents2, command.name()];
279
271
  const args = command.registeredArguments.map(describeArgument);
280
272
  const options = describeOptions(command);
281
273
  const { origin = "handwritten", query, mcp, offline, ...meta } = metaOf(command);
@@ -3732,7 +3724,7 @@ __name(useColor, "useColor");
3732
3724
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3733
3725
  var program = new Command();
3734
3726
 
3735
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3727
+ // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3736
3728
  import { isDeepStrictEqual } from "node:util";
3737
3729
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3738
3730
  var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
@@ -3934,7 +3926,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
3934
3926
  return command;
3935
3927
  }, "customizeSharedCommand");
3936
3928
 
3937
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3929
+ // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3938
3930
  var argumentInfoSchema = object({
3939
3931
  name: string(),
3940
3932
  required: boolean(),
@@ -4017,7 +4009,7 @@ var commandsDocument = /* @__PURE__ */ __name((root, about) => ({
4017
4009
  exit_codes: { ok: 0, internal_error: GENERIC_FAILURE, ...EXIT_CODES }
4018
4010
  }), "commandsDocument");
4019
4011
 
4020
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
4012
+ // node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
4021
4013
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
4022
4014
  let command = root;
4023
4015
  const path2 = [];
@@ -4035,7 +4027,458 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
4035
4027
  }
4036
4028
  }, "refuseJoinedPath");
4037
4029
 
4038
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
4030
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/sends/permissions.js
4031
+ var LEVELS = ["deny", "readonly", "ask", "allow"];
4032
+ var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
4033
+ var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
4034
+ var DEFAULT_PERMISSIONS = {
4035
+ // Owner, 2026-11-14: deleting a message does not ask; a profile that wants the question sets `ask`.
4036
+ "messages.delete": "allow",
4037
+ "account.sessions.end": "ask",
4038
+ "bot.messages.delete": "allow",
4039
+ "topics.enable": "ask",
4040
+ "topics.delete": "ask",
4041
+ "chats.delete": "ask",
4042
+ "chats.clear": "ask",
4043
+ // Owner, 2026-11-14 (replaces NEED-568): a rule the owner enabled may send; `deny` stops every automatic reply.
4044
+ "replies.send": "allow",
4045
+ // NEED-1662: an agent that changes settings, schedules or recipients could lift its own limits; the owner opts in.
4046
+ "mcp.authority": "deny",
4047
+ // NEED-1663: writes no level stopped before, so MCP could not offer them; over MCP `ask` goes ahead.
4048
+ "store.backup": "ask",
4049
+ "store.restore": "ask",
4050
+ "store.migrate": "ask",
4051
+ "store.repair": "ask",
4052
+ "store.reset": "ask",
4053
+ "store.import": "ask",
4054
+ "store.clear": "ask",
4055
+ "store.decrypt": "ask",
4056
+ "store.copies.delete": "ask",
4057
+ "store.recover.run": "ask",
4058
+ "server.start": "ask",
4059
+ "server.stop": "ask",
4060
+ "server.restart": "ask",
4061
+ "models.download": "ask",
4062
+ // NEED-2357.f: many MCP clients (ChatGPT) cannot answer a question, and a switch deletes nothing; kept as a key so a
4063
+ // profile can still deny it.
4064
+ "models.set": "allow",
4065
+ "models.add": "ask",
4066
+ "images.models.download": "ask",
4067
+ "schedule.run": "ask",
4068
+ "schedule.exec": "ask",
4069
+ "doctor.reports.create": "ask",
4070
+ // A meeting changed on the service reaches its invitees: asked first, as zoom's `remote-meetings` was.
4071
+ "meetings.create": "ask",
4072
+ "meetings.update": "ask",
4073
+ "meetings.cancel": "ask"
4074
+ };
4075
+ var KEYED_UNDER_HOUSEKEEPING = new Set(Object.keys(DEFAULT_PERMISSIONS).filter((key) => /^(store|server|models|images|schedule|doctor)\./.test(key)));
4076
+ var AUTHORITY_KEY = "mcp.authority";
4077
+ var authorityAllowed = /* @__PURE__ */ __name((levels) => {
4078
+ const { level: level2 } = levelFor(levels, AUTHORITY_KEY);
4079
+ return level2 === "allow" || level2 === "ask";
4080
+ }, "authorityAllowed");
4081
+ var BOT_API_KEY = "bot.api";
4082
+ var isBotApi = /* @__PURE__ */ __name((path2) => path2[0] === "bot" && path2[1] === "api", "isBotApi");
4083
+ var botApiAllowed = /* @__PURE__ */ __name((levels) => {
4084
+ const { level: level2 } = levelFor(levels, BOT_API_KEY, { ...DEFAULT_PERMISSIONS, [BOT_API_KEY]: "deny" });
4085
+ return level2 === "allow" || level2 === "ask";
4086
+ }, "botApiAllowed");
4087
+ var RESOURCES = [
4088
+ "messages",
4089
+ "drafts",
4090
+ "reactions",
4091
+ "polls",
4092
+ "topics",
4093
+ "chats",
4094
+ "contacts",
4095
+ "account",
4096
+ "bot",
4097
+ "conversations",
4098
+ "tags",
4099
+ "mentions",
4100
+ "search",
4101
+ "searches",
4102
+ "tasks",
4103
+ "replies",
4104
+ "attachments",
4105
+ "stats",
4106
+ "store",
4107
+ "metadata",
4108
+ "mcp",
4109
+ "server",
4110
+ "models",
4111
+ "schedule",
4112
+ "doctor",
4113
+ "images"
4114
+ ];
4115
+ var layerPermissions = /* @__PURE__ */ __name((layers) => {
4116
+ const levels = {};
4117
+ const sources = {};
4118
+ for (const [from, layer] of layers) {
4119
+ const nearer = Object.keys(levels);
4120
+ for (const [key, level2] of Object.entries(layer ?? {})) {
4121
+ if (nearer.some((named3) => key === named3 || key.startsWith(`${named3}.`)))
4122
+ continue;
4123
+ levels[key] = level2;
4124
+ sources[key] = from;
4125
+ }
4126
+ }
4127
+ return { levels, sources };
4128
+ }, "layerPermissions");
4129
+ var CEILING_KEY = "*";
4130
+ var STORE_ONLY_KEYS = /* @__PURE__ */ new Set([
4131
+ "attachments.extract",
4132
+ "conversations.embeddings",
4133
+ "conversations.links",
4134
+ "messages.server-search",
4135
+ "messages.sync-first",
4136
+ "metadata.sync",
4137
+ "stats.contacts.top.sync-first",
4138
+ "stats.messages.counters.sync",
4139
+ "stats.messages.show.sync-first",
4140
+ "stats.messages.top.sync-first",
4141
+ "store.gaps.repair"
4142
+ ]);
4143
+ var FETCH_KEYS = new Set([...STORE_ONLY_KEYS].filter((key) => !["attachments.extract", "conversations.embeddings", "conversations.links"].includes(key)));
4144
+ var fetchesUnder = /* @__PURE__ */ __name((level2, key) => level2 === "readonly" && FETCH_KEYS.has(key), "fetchesUnder");
4145
+ var fetchesAt = /* @__PURE__ */ __name((level2) => level2 === "allow" || level2 === "readonly", "fetchesAt");
4146
+ var stops = /* @__PURE__ */ __name((level2, key) => level2 === "deny" || level2 === "readonly" && !FETCH_KEYS.has(key), "stops");
4147
+ var ALLOWED = { level: "allow", key: null };
4148
+ var ORDER = { deny: 0, readonly: 1, ask: 2, allow: 3 };
4149
+ var nearest = /* @__PURE__ */ __name((levels, key) => {
4150
+ for (let parts = key.split("."); parts.length > 0; parts = parts.slice(0, -1)) {
4151
+ const named3 = parts.join(".");
4152
+ const level2 = levels[named3];
4153
+ if (level2)
4154
+ return { level: level2, key: named3, depth: parts.length };
4155
+ }
4156
+ return void 0;
4157
+ }, "nearest");
4158
+ var levelFor = /* @__PURE__ */ __name((permissions, key, defaults = DEFAULT_PERMISSIONS) => {
4159
+ const found = profileLevel(permissions, key, defaults);
4160
+ const ceiling = permissions[CEILING_KEY];
4161
+ return ceiling && ORDER[ceiling] < ORDER[found.level] ? { level: ceiling, key: CEILING_KEY } : found;
4162
+ }, "levelFor");
4163
+ var profileLevel = /* @__PURE__ */ __name((permissions, key, defaults) => {
4164
+ const own = nearest(permissions, key);
4165
+ const builtIn = nearest(defaults, key);
4166
+ if (!builtIn || own && own.depth >= builtIn.depth)
4167
+ return own ? { level: own.level, key: own.key } : ALLOWED;
4168
+ if (!own || ORDER[builtIn.level] <= ORDER[own.level])
4169
+ return { level: builtIn.level, key: builtIn.key };
4170
+ return { level: own.level, key: own.key };
4171
+ }, "profileLevel");
4172
+ var CHAT_KEYS = {
4173
+ settings: "chats.update",
4174
+ "requests.accept": "chats.requests.confirm",
4175
+ "requests.decline": "chats.requests.reject",
4176
+ "link.create": "chats.links.create",
4177
+ "link.reset": "chats.links.reset",
4178
+ "link.revoke": "chats.links.remove",
4179
+ "link.update": "chats.links.update"
4180
+ };
4181
+ var ACCOUNT_KEYS = {
4182
+ "contact-add": "contacts.add",
4183
+ "contact-remove": "contacts.remove",
4184
+ "contact-import": "contacts.import",
4185
+ "contact-rename": "contacts.rename",
4186
+ "contact-block": "contacts.block",
4187
+ "contact-unblock": "contacts.unblock",
4188
+ profile: "account.update",
4189
+ "folder-create": "chats.folders.create",
4190
+ "folder-update": "chats.folders.update",
4191
+ "folder-delete": "chats.folders.delete",
4192
+ "folder-order": "chats.folders.order",
4193
+ "folder-join": "chats.folders.join",
4194
+ "sessions-end": "account.sessions.end",
4195
+ "chat-mute": "chats.mute",
4196
+ "chat-unmute": "chats.unmute",
4197
+ "chat-archive": "chats.archive",
4198
+ "chat-unarchive": "chats.unarchive",
4199
+ "chat-pin": "chats.pin",
4200
+ "chat-unpin": "chats.unpin",
4201
+ "chat-mark-unread": "chats.mark-unread",
4202
+ "message-star": "messages.star",
4203
+ "message-unstar": "messages.unstar",
4204
+ // A mail CLI names its own key on every write; these only answer `keyForWrite` when one is left out.
4205
+ "message-flag": "messages.update",
4206
+ "message-move": "messages.move",
4207
+ "message-copy": "messages.copy",
4208
+ "message-delete": "messages.trash",
4209
+ "message-restore": "messages.restore",
4210
+ privacy: "account.privacy.set"
4211
+ };
4212
+ var KIND_KEYS = {
4213
+ message: "messages.send",
4214
+ forward: "messages.forward",
4215
+ edit: "messages.edit",
4216
+ pin: "messages.pin",
4217
+ reaction: "reactions",
4218
+ read: "chats.mark-read",
4219
+ delete: "messages.delete"
4220
+ };
4221
+ var keyForWrite = /* @__PURE__ */ __name((kind2, action2) => {
4222
+ if (kind2 === "chat")
4223
+ return CHAT_KEYS[action2] ?? `chats.${action2 ?? "update"}`;
4224
+ if (kind2 === "account") {
4225
+ const key = ACCOUNT_KEYS[action2];
4226
+ if (!key)
4227
+ throw new Error(`an account change without a known action: ${action2}`);
4228
+ return key;
4229
+ }
4230
+ return KIND_KEYS[kind2];
4231
+ }, "keyForWrite");
4232
+ var writeOfKey = /* @__PURE__ */ __name((key) => {
4233
+ const account2 = Object.entries(ACCOUNT_KEYS).find(([, named3]) => named3 === key)?.[0];
4234
+ if (account2)
4235
+ return { kind: "account", action: account2 };
4236
+ const kind2 = Object.entries(KIND_KEYS).find(([, named3]) => named3 === key || key.startsWith(`${named3}.`))?.[0];
4237
+ if (kind2)
4238
+ return { kind: kind2 };
4239
+ if (key === "messages.unpin")
4240
+ return { kind: "pin" };
4241
+ if (key.startsWith("chats.")) {
4242
+ const action2 = Object.entries(CHAT_KEYS).find(([, named3]) => named3 === key)?.[0] ?? key.slice("chats.".length);
4243
+ return { kind: "chat", action: action2 };
4244
+ }
4245
+ return {};
4246
+ }, "writeOfKey");
4247
+ var NAMED_WRITE_KEYS = [
4248
+ "drafts",
4249
+ "store.gaps.repair",
4250
+ "messages.sync-first",
4251
+ "messages.server-search",
4252
+ "messages.press",
4253
+ "chats.start",
4254
+ "chats.app",
4255
+ "stats.messages.counters.sync",
4256
+ "stats.messages.show.sync-first",
4257
+ "stats.messages.top.sync-first",
4258
+ "stats.contacts.top.sync-first",
4259
+ "account.sessions.list",
4260
+ "attachments.extract",
4261
+ "attachments.move",
4262
+ "attachments.update",
4263
+ "bot.callbacks.answer",
4264
+ "bot.chats.action",
4265
+ "bot.chats.admins.add",
4266
+ "bot.chats.admins.remove",
4267
+ "bot.chats.leave",
4268
+ "bot.chats.members.remove",
4269
+ "bot.chats.moderate",
4270
+ "bot.messages.delete",
4271
+ "bot.messages.edit",
4272
+ "bot.messages.pin",
4273
+ "bot.messages.send",
4274
+ "bot.messages.unpin",
4275
+ "chats.admins.add",
4276
+ "chats.admins.remove",
4277
+ "chats.links.create",
4278
+ "chats.links.reset",
4279
+ "chats.links.remove",
4280
+ "chats.links.update",
4281
+ "chats.members.add",
4282
+ "chats.members.remove",
4283
+ "chats.moderate",
4284
+ "conversations.embeddings",
4285
+ "conversations.links",
4286
+ "polls.close",
4287
+ "polls.create",
4288
+ "polls.vote",
4289
+ "searches.clear",
4290
+ "searches.create",
4291
+ "searches.delete",
4292
+ "contacts.aliases.set",
4293
+ "contacts.aliases.remove",
4294
+ "contacts.notes.add",
4295
+ "contacts.notes.edit",
4296
+ "contacts.notes.remove",
4297
+ "tags.rebuild",
4298
+ "metadata.sync",
4299
+ "mentions.rebuild",
4300
+ "mentions.confirm",
4301
+ "mentions.reject",
4302
+ "tags.add",
4303
+ "tags.remove",
4304
+ "tasks.acknowledge",
4305
+ "tasks.add",
4306
+ "tasks.claim",
4307
+ "tasks.close",
4308
+ "tasks.duplicates.defer",
4309
+ "tasks.duplicates.reject",
4310
+ "tasks.link",
4311
+ "tasks.merge",
4312
+ "tasks.update",
4313
+ "tasks.release",
4314
+ "tasks.scan",
4315
+ "tasks.unmerge",
4316
+ "topics.create",
4317
+ "topics.edit",
4318
+ "topics.enable"
4319
+ ];
4320
+ var WRITE_KEYS = [
4321
+ .../* @__PURE__ */ new Set([
4322
+ ...NAMED_WRITE_KEYS,
4323
+ ...Object.keys(DEFAULT_PERMISSIONS),
4324
+ ...Object.values(KIND_KEYS),
4325
+ ...Object.values(ACCOUNT_KEYS),
4326
+ ...Object.values(CHAT_KEYS)
4327
+ ])
4328
+ ];
4329
+ var HOUSEKEEPING = /* @__PURE__ */ new Set([
4330
+ "help",
4331
+ "guide",
4332
+ "config",
4333
+ "session",
4334
+ "doctor",
4335
+ "commands",
4336
+ "complete",
4337
+ "upgrade",
4338
+ "skill",
4339
+ "models",
4340
+ "server",
4341
+ // What a schedule runs is checked by its own key when it runs; an agent runs read-only.
4342
+ "schedule",
4343
+ "runs",
4344
+ "sends",
4345
+ "recipients",
4346
+ "flood",
4347
+ "mcp",
4348
+ // Its commands read the rules or flip the pause switch; what a rule sends is checked as `replies.send`.
4349
+ "replies"
4350
+ ]);
4351
+ var BOT_HOUSEKEEPING = /* @__PURE__ */ new Set(["auth", "list", "sends", "recipients", "mcp"]);
4352
+ var STORE_MAINTENANCE = /* @__PURE__ */ new Set(["info", "check", "copies"]);
4353
+ var SHOW_MESSAGES = /* @__PURE__ */ new Set(["inbox", "review", "watch", "serve", "store", "conversations", "projects"]);
4354
+ var readKeysForCommand = /* @__PURE__ */ __name((path2) => {
4355
+ if (path2[0] === "bot")
4356
+ return readKeysForCommand(path2.slice(1)).map((key2) => `bot.${key2}`);
4357
+ const key = keyForCommand(path2);
4358
+ if (!key)
4359
+ return [];
4360
+ if (path2[0] === "attachments" && path2[1] === "download")
4361
+ return [key, "messages", "chats"];
4362
+ if (path2[0] === "attachments" && (path2[1] === "extract" || path2[1] === "show"))
4363
+ return [key, "messages"];
4364
+ if (path2[0] === "store" && path2[1] === "gaps" && path2[2] === "repair")
4365
+ return [key, "messages"];
4366
+ if (path2[0] === "store" && ["reset", "clear", "decrypt"].includes(path2[1] ?? ""))
4367
+ return [key, "messages"];
4368
+ if (key === "store.recover.run")
4369
+ return [key, "messages"];
4370
+ if (path2[0] === "search") {
4371
+ if (path2[1] === "notes")
4372
+ return [key];
4373
+ if (path2[1] === "topics")
4374
+ return [key, "topics"];
4375
+ if (path2[1] === "conversations")
4376
+ return [key, "messages", "conversations"];
4377
+ return [key, "messages"];
4378
+ }
4379
+ if (path2[0] !== "stats")
4380
+ return [key];
4381
+ const resource = path2[1] === "charts" ? "chats" : path2[1];
4382
+ return [
4383
+ .../* @__PURE__ */ new Set([
4384
+ key,
4385
+ "messages",
4386
+ ...["chats", "contacts", "tasks"].includes(resource ?? "") ? [resource] : []
4387
+ ])
4388
+ ];
4389
+ }, "readKeysForCommand");
4390
+ var keyForCommand = /* @__PURE__ */ __name((path2) => {
4391
+ if (path2.length === 0)
4392
+ return null;
4393
+ const [top, next] = path2;
4394
+ if (top === "bot") {
4395
+ if (next === void 0 || BOT_HOUSEKEEPING.has(next))
4396
+ return null;
4397
+ const inner = keyForCommand(path2.slice(1));
4398
+ return `bot.${inner ?? path2.slice(1).join(".")}`;
4399
+ }
4400
+ if (KEYED_UNDER_HOUSEKEEPING.has(path2.join(".")))
4401
+ return path2.join(".");
4402
+ if (top === void 0 || HOUSEKEEPING.has(top) || top === "search" && next === "runs")
4403
+ return null;
4404
+ if (top === "images" && next === "models")
4405
+ return null;
4406
+ if (top === "attachments" && (next === "check" || next === "jobs"))
4407
+ return null;
4408
+ if (top === "attachments" && next === "download")
4409
+ return "messages";
4410
+ if (top === "store" && next !== void 0 && STORE_MAINTENANCE.has(next))
4411
+ return null;
4412
+ if (top === "conversations" && next === "links")
4413
+ return path2[2] === "rebuild" ? "conversations.links.rebuild" : "conversations.links";
4414
+ if (top === "conversations" && (next === "embeddings" || next === "embed") || top === "images" && next === "embed" || top === "conversations" && next === "rebuild")
4415
+ return "conversations.embeddings";
4416
+ if (top === "attachments" && next === "list" || top === "chats" && next === "documents")
4417
+ return "messages";
4418
+ if (top === "mentions")
4419
+ return next === "rebuild" || next === "confirm" || next === "reject" ? `mentions.${next}` : "messages";
4420
+ if (top === "store" && (next === "gaps" || next === "jobs"))
4421
+ return path2.join(".");
4422
+ if (SHOW_MESSAGES.has(top) || top === "contacts" && (next === "context" || next === "prepare" || next === "events"))
4423
+ return "messages";
4424
+ if (RESOURCES.includes(top))
4425
+ return path2.join(".");
4426
+ return void 0;
4427
+ }, "keyForCommand");
4428
+ var RESOURCE_KEY = new RegExp(`^(${RESOURCES.join("|")})(\\.[a-z][a-z-]*)*$`);
4429
+ var COMMAND_PATH_KEY = /^[a-z][a-z-]*(\.[a-zA-Z][a-zA-Z-]*)*$/;
4430
+ var permissionOverrides = /* @__PURE__ */ __name((entries = [], shape = RESOURCE_KEY) => {
4431
+ const levels = {};
4432
+ const example = shape === RESOURCE_KEY ? "messages.send=allow" : "api=readonly";
4433
+ for (const entry of entries) {
4434
+ const [key = "", level2 = "", extra] = entry.split("=");
4435
+ if (!shape.test(key) || !LEVELS.includes(level2) || extra !== void 0)
4436
+ throw new CliError("validation_error", `--permission takes a command path and level, e.g. ${example} (deny, readonly, ask, allow)`);
4437
+ levels[key] = level2;
4438
+ }
4439
+ return levels;
4440
+ }, "permissionOverrides");
4441
+ var assertOverridesTighten = /* @__PURE__ */ __name((overrides, profile, defaults = DEFAULT_PERMISSIONS) => {
4442
+ for (const [key, level2] of Object.entries(overrides)) {
4443
+ const under = Object.keys(profile).filter((named3) => named3.startsWith(`${key}.`));
4444
+ const lifted = [key, ...under].find((named3) => ORDER[level2] > ORDER[levelFor(profile, named3, defaults).level]);
4445
+ if (lifted !== void 0)
4446
+ throw new CliError("validation_error", `--permission ${key}=${level2} would loosen ${lifted} from ${levelFor(profile, lifted, defaults).level}; it only tightens \u2014 change the profile's permissions to loosen it`, { key, lifted });
4447
+ }
4448
+ }, "assertOverridesTighten");
4449
+ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
4450
+ for (const permission of ["stats.chats.retention", "chats"]) {
4451
+ if (levelFor(permissions, permission).level === "deny")
4452
+ throw new CliError("permission_error", `profile denies ${permission}`, { permission });
4453
+ }
4454
+ }, "assertRetentionEvidenceRead");
4455
+
4456
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
4457
+ var WEIGHTS = {
4458
+ bot: 3,
4459
+ scam: 3,
4460
+ fake: 3,
4461
+ deleted: 1,
4462
+ no_photo: 1,
4463
+ no_username: 1,
4464
+ odd_name: 1,
4465
+ never_wrote: 1,
4466
+ link_first: 2,
4467
+ burst_join: 1,
4468
+ mass_invited: 1,
4469
+ new_account: 2,
4470
+ no_bio: 1,
4471
+ same_text: 2,
4472
+ photo_recent: 1,
4473
+ cas_banned: 3,
4474
+ lols_banned: 3,
4475
+ lols_scammer: 3
4476
+ };
4477
+ var LINK = /https?:\/\/|t\.me\/|www\./i;
4478
+ var DIGITS = /\d{5,}/;
4479
+ var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
4480
+
4481
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
4039
4482
  var linkedIdentity = strictObject({
4040
4483
  provider: text,
4041
4484
  id,
@@ -4090,7 +4533,7 @@ var contactCheck = strictObject({
4090
4533
  checked_at: time
4091
4534
  });
4092
4535
 
4093
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/member.js
4536
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/member.js
4094
4537
  var member = strictObject({
4095
4538
  id,
4096
4539
  name: nullable(text),
@@ -4113,7 +4556,7 @@ var member = strictObject({
4113
4556
  check: optional(record(string(), unknown()))
4114
4557
  });
4115
4558
 
4116
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/chat.js
4559
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/chat.js
4117
4560
  var setting = optional(nullable(boolean()));
4118
4561
  var chat = strictObject({
4119
4562
  ref: reference,
@@ -4154,7 +4597,52 @@ var chat = strictObject({
4154
4597
  members: optional(array(member))
4155
4598
  });
4156
4599
 
4157
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/message.js
4600
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/attachment.js
4601
+ var attachment = strictObject({
4602
+ /** The message it came with, as a locator; absent inside that message. */
4603
+ message: optional(reference),
4604
+ /** Lower-cased: `photo`, `video`, `file`, `voice`… */
4605
+ kind: text,
4606
+ /** Its place among the message's attachments, from 1, as `attachments show --attachment` takes it. */
4607
+ position: optional(count),
4608
+ url: optional(text),
4609
+ name: optional(text),
4610
+ title: optional(text),
4611
+ mime: optional(text),
4612
+ size: optional(count),
4613
+ width: optional(count),
4614
+ height: optional(count),
4615
+ /** Seconds, for audio and video. */
4616
+ duration: optional(number()),
4617
+ /** The text read out of it; how it was read is `extraction`. */
4618
+ text: optional(text),
4619
+ extraction: optional(strictObject({ origin: text, extractor: text, chars: count, error: optional(text) })),
4620
+ local_path: optional(text),
4621
+ /** A shared contact card (`kind: "contact"`); the phone is the whole number as the sender put it. */
4622
+ contact: optional(strictObject({
4623
+ name: text,
4624
+ first_name: optional(text),
4625
+ last_name: optional(text),
4626
+ phone: optional(text),
4627
+ user_id: optional(id)
4628
+ })),
4629
+ /** A bot's keyboard under the message, row by row; `messages press` presses one. */
4630
+ buttons: optional(array(array(strictObject({
4631
+ kind: picklist(["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"]),
4632
+ text,
4633
+ url: optional(text)
4634
+ }))))
4635
+ });
4636
+ var hitFile = strictObject({
4637
+ position: count,
4638
+ kind: text,
4639
+ name: optional(text),
4640
+ size: optional(count),
4641
+ /** The saved copy on this computer, once `messages download` fetched it; absent until then. */
4642
+ local_path: optional(text)
4643
+ });
4644
+
4645
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/message.js
4158
4646
  var quoted = strictObject({
4159
4647
  id,
4160
4648
  sender_id: nullable(id),
@@ -4273,7 +4761,7 @@ var message = strictObject({
4273
4761
  provider_metadata: providerMetadata
4274
4762
  });
4275
4763
 
4276
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
4764
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
4277
4765
  var recordedMeeting = strictObject({
4278
4766
  ref: reference,
4279
4767
  meeting_id: count,
@@ -4286,7 +4774,7 @@ var recordedMeeting = strictObject({
4286
4774
  people: array(reference)
4287
4775
  });
4288
4776
 
4289
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
4777
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
4290
4778
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
4291
4779
  var contextMessage = strictObject({
4292
4780
  locator: reference,
@@ -4492,7 +4980,7 @@ var contactPreparation = strictObject({
4492
4980
  })
4493
4981
  });
4494
4982
 
4495
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/deal.js
4983
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/deal.js
4496
4984
  var nullableText = nullable(text);
4497
4985
  var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
4498
4986
  var outcome = picklist(["open", "won", "lost"]);
@@ -4603,7 +5091,7 @@ var stage = strictObject({
4603
5091
  untrusted
4604
5092
  });
4605
5093
 
4606
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/business-context.js
5094
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/business-context.js
4607
5095
  var nullableText2 = nullable(text);
4608
5096
  var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
4609
5097
  var standing = picklist(STANDINGS);
@@ -4777,7 +5265,7 @@ var dealBrief = strictObject({
4777
5265
  not_read: coverage2.entries.not_read
4778
5266
  });
4779
5267
 
4780
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/list-results.js
5268
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/list-results.js
4781
5269
  var botProfile = strictObject({
4782
5270
  name: text,
4783
5271
  token: text,
@@ -4901,7 +5389,7 @@ var stickerInventory = strictObject({
4901
5389
  url: optional(nullable(text))
4902
5390
  });
4903
5391
 
4904
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
5392
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
4905
5393
  var actionableError = objectWithRest({
4906
5394
  code: text,
4907
5395
  message: text,
@@ -4918,7 +5406,7 @@ var batchResult = strictObject({
4918
5406
  max_error_percent: count
4919
5407
  });
4920
5408
 
4921
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
5409
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
4922
5410
  var conversationBuild = strictObject({
4923
5411
  chat: id,
4924
5412
  messages: count,
@@ -4943,13 +5431,29 @@ var catchUpPreparation = strictObject({
4943
5431
  prepared: optional(conversationPreparation)
4944
5432
  });
4945
5433
 
4946
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
5434
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
4947
5435
  import { spawn } from "node:child_process";
4948
5436
  import { randomBytes } from "node:crypto";
4949
5437
  import { closeSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync, realpathSync, rmSync } from "node:fs";
4950
5438
  import { dirname, join } from "node:path";
4951
5439
 
4952
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/record-log.js
5440
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
5441
+ var progressOf = /* @__PURE__ */ __name((input) => {
5442
+ const total = input.total ?? null;
5443
+ const updated = input.updatedAt ?? null;
5444
+ return {
5445
+ job: input.job,
5446
+ profile: input.profile,
5447
+ done: input.done,
5448
+ total,
5449
+ remaining: total === null ? null : Math.max(0, total - input.done),
5450
+ state: input.complete ?? (total !== null && input.done >= total) ? "complete" : "partial",
5451
+ updated_at: updated,
5452
+ cursor_age_ms: updated === null ? null : Math.max(0, (input.now ?? /* @__PURE__ */ new Date()).getTime() - Date.parse(updated))
5453
+ };
5454
+ }, "progressOf");
5455
+
5456
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/runs/record-log.js
4953
5457
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
4954
5458
  const run = currentRun();
4955
5459
  const trace = traceId ?? run.traceId;
@@ -4963,7 +5467,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
4963
5467
  }));
4964
5468
  }, "recordLogFor");
4965
5469
 
4966
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
5470
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
4967
5471
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
4968
5472
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
4969
5473
  const out = openSync(log, "a", 384);
@@ -5118,7 +5622,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
5118
5622
  return { job: id6, pid, chat: input.chat, log };
5119
5623
  }, "startArchiveJob");
5120
5624
 
5121
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/job.js
5625
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/job.js
5122
5626
  var problem = strictObject({ code: text, message: text });
5123
5627
  var job = strictObject({
5124
5628
  id,
@@ -5141,7 +5645,7 @@ var job = strictObject({
5141
5645
  error: optional(problem)
5142
5646
  });
5143
5647
 
5144
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
5648
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
5145
5649
  var extractionItem = strictObject({
5146
5650
  ref: reference,
5147
5651
  attachment: count,
@@ -5174,7 +5678,7 @@ var extractionReport = strictObject({
5174
5678
  cursor: optional(text)
5175
5679
  });
5176
5680
 
5177
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
5681
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
5178
5682
  var savedMessageFile = strictObject({
5179
5683
  kind: text,
5180
5684
  path: text,
@@ -5261,7 +5765,7 @@ var messageSyncAll = strictObject({
5261
5765
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
5262
5766
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
5263
5767
 
5264
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/store-records.js
5768
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/store-records.js
5265
5769
  var range = strictObject({ from: number(), to: number() });
5266
5770
  var storeChatStatus = strictObject({
5267
5771
  chat_id: id,
@@ -5359,7 +5863,7 @@ var storeJobRetry = union([
5359
5863
  ]);
5360
5864
  var storeJobClear = strictObject({ cleared: array(id) });
5361
5865
 
5362
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/account.js
5866
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/account.js
5363
5867
  var account = strictObject({
5364
5868
  provider: text,
5365
5869
  id,
@@ -5369,7 +5873,7 @@ var account = strictObject({
5369
5873
  scope: optional(picklist(["personal", "work"]))
5370
5874
  });
5371
5875
 
5372
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/account-session.js
5876
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/account-session.js
5373
5877
  var accountSession = strictObject({
5374
5878
  current: boolean(),
5375
5879
  client: nullable(text),
@@ -5379,7 +5883,7 @@ var accountSession = strictObject({
5379
5883
  created_at: optional(nullable(time))
5380
5884
  });
5381
5885
 
5382
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/account-change.js
5886
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/account-change.js
5383
5887
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
5384
5888
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
5385
5889
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -5408,7 +5912,7 @@ var accountRemoval = strictObject({
5408
5912
  kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
5409
5913
  });
5410
5914
 
5411
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
5915
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
5412
5916
  var accountProfile = strictObject({
5413
5917
  profile: id,
5414
5918
  current: boolean(),
@@ -5420,7 +5924,7 @@ var accountProfile = strictObject({
5420
5924
  bot: optional(literal(true))
5421
5925
  });
5422
5926
 
5423
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
5927
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
5424
5928
  var milliseconds = pipe(number(), minValue(0));
5425
5929
  var counterReading = strictObject({
5426
5930
  counter: picklist(["views", "reactions", "comments"]),
@@ -5432,7 +5936,7 @@ var counterReading = strictObject({
5432
5936
  });
5433
5937
  var selection = record(string(), unknown());
5434
5938
 
5435
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
5939
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
5436
5940
  var adminRow = strictObject({
5437
5941
  ref: reference,
5438
5942
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -5485,11 +5989,143 @@ var adminReport = strictObject({
5485
5989
  rows: array(adminRow)
5486
5990
  });
5487
5991
 
5488
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
5992
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/task.js
5993
+ var closeSuggestion = strictObject({
5994
+ as: picklist(["done", "dismissed"]),
5995
+ /** The agent's name. */
5996
+ by: text,
5997
+ /** 0–1, as the agent rated it. */
5998
+ certainty: number(),
5999
+ reason: nullable(text),
6000
+ at: time
6001
+ });
6002
+ var task = strictObject({
6003
+ ref: reference,
6004
+ id,
6005
+ /** The readable key: `Q-15` for a task found in a message from now on, `IN1A2B3C4D-17` before, `HRB-12` in a project. */
6006
+ key: optional(nullable(text)),
6007
+ title: nullable(text),
6008
+ description: optional(nullable(text)),
6009
+ kind: picklist(TASK_TYPES),
6010
+ state: picklist(TASK_STATES),
6011
+ origin: optional(picklist(TASK_ORIGINS)),
6012
+ project: optional(nullable(text)),
6013
+ /** The project's key and name, as `tasks counts` names it. */
6014
+ project_key: optional(nullable(text)),
6015
+ project_name: optional(nullable(text)),
6016
+ /** Who added it: the owner, or an agent by its bot name. */
6017
+ created_by: optional(nullable(strictObject({ type: picklist(["person", "bot"]), id, name: nullable(text), owner: boolean() }))),
6018
+ account: optional(text),
6019
+ /** The chat it came from, as a `chat:` reference. */
6020
+ chat: optional(nullable(reference)),
6021
+ /** The message it came from. */
6022
+ source_message: optional(nullable(reference)),
6023
+ /** `<service>:<id>`, its id in an outside service, such as `avito:4512345678`. */
6024
+ external_id: optional(nullable(text)),
6025
+ /** The http or https page it is about, such as an Avito ad. */
6026
+ source_url: optional(nullable(text)),
6027
+ /** 0 to 1, higher first; `priority_label` reads it as low, medium, high or critical. */
6028
+ priority: optional(nullable(number())),
6029
+ priority_label: optional(nullable(picklist(PRIORITY_LABELS))),
6030
+ /** The agent working on it, apart from its assignees and its claim. */
6031
+ agent: optional(nullable(text)),
6032
+ /** Give it back with `--revision` to refuse a write made on a stale copy. */
6033
+ revision: optional(number()),
6034
+ assignments: optional(array(strictObject({ to: reference, role: picklist(["assignee", "reviewer", "watcher"]) }))),
6035
+ /** Open work whose blocked-by tasks are all done. */
6036
+ ready: optional(boolean()),
6037
+ /** The blocked-by tasks not done yet: open (any open state), dismissed, or unavailable. */
6038
+ blocked_by: optional(array(strictObject({ task: reference, state: picklist(["open", "dismissed", "unavailable"]) }))),
6039
+ parent: optional(nullable(reference)),
6040
+ due_at: optional(nullable(time)),
6041
+ closed_at: optional(nullable(time)),
6042
+ reason: optional(nullable(text)),
6043
+ /** One name from the category list (`tasks categories`). */
6044
+ category: optional(nullable(text)),
6045
+ /** Who works on it now, and until when; null when nobody does. */
6046
+ claimed_by: optional(nullable(text)),
6047
+ claimed_until: optional(nullable(time)),
6048
+ /** The close an agent would make, waiting on the owner: `tasks close` confirms it, `tasks reject` refuses it. */
6049
+ close_suggestion: optional(nullable(closeSuggestion)),
6050
+ created_at: time,
6051
+ updated_at: optional(time)
6052
+ });
6053
+
6054
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/agenda.js
6055
+ var agendaChat = strictObject({
6056
+ chat: reference,
6057
+ title: nullable(text),
6058
+ kind: picklist(["dialog", "group", "channel", "saved", "unknown"]),
6059
+ /** The newest message, never its text; `null` while it is not stored. */
6060
+ last_message: nullable(reference),
6061
+ last_message_at: time,
6062
+ /** `null` when the newest message is not stored, or the messenger did not say who sent it. */
6063
+ last_from_owner: nullable(boolean()),
6064
+ /** Open tasks whose source is in this chat. */
6065
+ open_tasks: array(id),
6066
+ /** `unknown` means nothing ever fetched the chat's history; `partial` that the store holds only part of it. */
6067
+ completeness: strictObject({
6068
+ state: picklist(["complete", "partial", "unknown"]),
6069
+ up_to_date: nullable(boolean()),
6070
+ gaps: boolean(),
6071
+ reaches_start: boolean(),
6072
+ fetched_at: nullable(time)
6073
+ }),
6074
+ /** What the store holds of the chat: the count and the span, never the text. */
6075
+ held: strictObject({ messages: number(), oldest_at: nullable(time), newest_at: nullable(time) })
6076
+ });
6077
+ var agenda = strictObject({
6078
+ at: time,
6079
+ account: text,
6080
+ stored_at: nullable(time),
6081
+ /** The store saved nothing for a day: a chat may look quiet only because nothing was synced. */
6082
+ stale: boolean(),
6083
+ tasks: array(strictObject({
6084
+ id,
6085
+ key: text,
6086
+ title: nullable(text),
6087
+ kind: picklist(TASK_TYPES),
6088
+ category: nullable(text),
6089
+ /** The message or note it came from. */
6090
+ source: nullable(reference),
6091
+ due_at: nullable(time),
6092
+ next_check_at: nullable(time),
6093
+ /** Who works on it now; only the asker's own claims are listed unless the query names claimed:. */
6094
+ claimed_by: nullable(text),
6095
+ claimed_until: nullable(time),
6096
+ /** An agent's close waiting on the owner: `tasks close` confirms it, `tasks reject` refuses it. */
6097
+ close_suggestion: nullable(closeSuggestion),
6098
+ created_at: time,
6099
+ reasons: array(picklist(["overdue", "due", "check", "unplanned", "close-suggested"]))
6100
+ })),
6101
+ /** Someone else wrote last, and the owner has not answered. */
6102
+ owed: array(agendaChat),
6103
+ /** The owner wrote last, and nobody answered. */
6104
+ waiting: array(agendaChat),
6105
+ /** The chat list says these moved and their newest message is not stored: read them first. */
6106
+ unsynced: array(agendaChat),
6107
+ /** Open tasks someone else does: what they owe the owner, oldest first. */
6108
+ assigned: array(strictObject({
6109
+ id,
6110
+ key: text,
6111
+ title: nullable(text),
6112
+ kind: picklist(TASK_TYPES),
6113
+ category: nullable(text),
6114
+ source: nullable(reference),
6115
+ due_at: nullable(time),
6116
+ created_at: time,
6117
+ /** `person:<id>`, each one who does it. */
6118
+ assignees: array(reference)
6119
+ })),
6120
+ /** Open tasks carry these categories, which the list no longer holds: move them, or put the category back. */
6121
+ unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
6122
+ });
6123
+
6124
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
5489
6125
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
5490
6126
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
5491
6127
 
5492
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
6128
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
5493
6129
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
5494
6130
  var attachmentBytes = strictObject({
5495
6131
  ref: reference,
@@ -5520,7 +6156,7 @@ var attachmentTextChange = strictObject({
5520
6156
  text: optional(text)
5521
6157
  });
5522
6158
 
5523
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/chart.js
6159
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/chart.js
5524
6160
  var chart = strictObject({
5525
6161
  version: literal(1),
5526
6162
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -5535,7 +6171,7 @@ var chart = strictObject({
5535
6171
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
5536
6172
  });
5537
6173
 
5538
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/folder.js
6174
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/folder.js
5539
6175
  var named = strictObject({
5540
6176
  id,
5541
6177
  title: nullable(text),
@@ -5558,7 +6194,7 @@ var folder = strictObject({
5558
6194
  excluded_chats: optional(array(named))
5559
6195
  });
5560
6196
 
5561
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
6197
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
5562
6198
  var inviteLink = strictObject({
5563
6199
  link: text,
5564
6200
  /** Who joins by it asks first, and an admin lets them in. */
@@ -5574,7 +6210,7 @@ var inviteLink = strictObject({
5574
6210
  joined_count: optional(count)
5575
6211
  });
5576
6212
 
5577
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
6213
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
5578
6214
  var operated = { operation_id: id, chat_id: id };
5579
6215
  var group = strictObject({
5580
6216
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -5654,7 +6290,7 @@ var chatFolderOrder = strictObject({
5654
6290
  folders: array(strictObject({ id, title: text }))
5655
6291
  });
5656
6292
 
5657
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
6293
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
5658
6294
  var operated2 = { operation_id: id, chat_id: id };
5659
6295
  var chatRemoval = strictObject(operated2);
5660
6296
  var chatMuting = strictObject({
@@ -5665,7 +6301,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
5665
6301
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
5666
6302
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
5667
6303
 
5668
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
6304
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
5669
6305
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
5670
6306
  var chatEvent = strictObject({
5671
6307
  chat_id: id,
@@ -5682,7 +6318,7 @@ var chatEvent = strictObject({
5682
6318
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
5683
6319
  });
5684
6320
 
5685
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
6321
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
5686
6322
  var chatMetadata = strictObject({
5687
6323
  chat_id: id,
5688
6324
  title: nullable(text),
@@ -5697,7 +6333,7 @@ var chatMetadataRefresh = strictObject({
5697
6333
  has_more: boolean()
5698
6334
  });
5699
6335
 
5700
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
6336
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
5701
6337
  var action = picklist(["report", "delete", "remove"]);
5702
6338
  var level = picklist(["deny", "readonly", "ask", "allow"]);
5703
6339
  var chatRules = strictObject({
@@ -5734,7 +6370,17 @@ var chatModeration = strictObject({
5734
6370
  }))
5735
6371
  });
5736
6372
 
5737
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
6373
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
6374
+ var chatSending = strictObject({
6375
+ mode: picklist(["allowed", "ask", "denied"]),
6376
+ meaning: text,
6377
+ /** When the owner last set it; `null` while it is the default, ask. */
6378
+ since: nullable(time),
6379
+ /** `set` only: whether this run changed it. */
6380
+ changed: optional(boolean())
6381
+ });
6382
+
6383
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
5738
6384
  var optionalCount = optional(count);
5739
6385
  var minutes = nullable(number());
5740
6386
  var chatStats = strictObject({
@@ -5810,7 +6456,7 @@ var taskStats = strictObject({
5810
6456
  }))
5811
6457
  });
5812
6458
 
5813
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
6459
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
5814
6460
  var memberCount = strictObject({
5815
6461
  day: pipe(text, isoDate()),
5816
6462
  participants: nullable(count),
@@ -5833,7 +6479,7 @@ var chatTracking = strictObject({
5833
6479
  tracked: boolean()
5834
6480
  });
5835
6481
 
5836
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
6482
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
5837
6483
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
5838
6484
  var contactSync = strictObject({ added: count, changed: count, known: count });
5839
6485
  var profileFields = {
@@ -5871,7 +6517,7 @@ var profileFields = {
5871
6517
  }))
5872
6518
  };
5873
6519
 
5874
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/contact.js
6520
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/contact.js
5875
6521
  var contact = strictObject({
5876
6522
  ref: reference,
5877
6523
  id,
@@ -5902,7 +6548,7 @@ var contact = strictObject({
5902
6548
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
5903
6549
  });
5904
6550
 
5905
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
6551
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
5906
6552
  var contactNote = strictObject({
5907
6553
  id,
5908
6554
  /** The contact, as a `contact:` reference. */
@@ -5914,13 +6560,28 @@ var contactNote = strictObject({
5914
6560
  updated_at: time
5915
6561
  });
5916
6562
 
5917
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
6563
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
5918
6564
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
5919
6565
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
5920
6566
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
5921
6567
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
5922
6568
 
5923
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
6569
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/conversation.js
6570
+ var conversation = strictObject({
6571
+ id,
6572
+ chat: reference,
6573
+ /** The message it starts with. */
6574
+ first_message: reference,
6575
+ started_at: time,
6576
+ ended_at: time,
6577
+ messages_count: count,
6578
+ /** How many people wrote in it. */
6579
+ senders_count: count,
6580
+ built_at: time,
6581
+ rules_version: count
6582
+ });
6583
+
6584
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
5924
6585
  var conversationDetails = union([
5925
6586
  strictObject({ ...conversation.entries, messages: array(message) }),
5926
6587
  message
@@ -6010,7 +6671,7 @@ var conversationHit = strictObject({
6010
6671
  stale: boolean()
6011
6672
  });
6012
6673
 
6013
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/counters.js
6674
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/counters.js
6014
6675
  var counters = strictObject({
6015
6676
  cutoff: time,
6016
6677
  max_age_ms: milliseconds,
@@ -6040,7 +6701,7 @@ var counterRefresh = strictObject({
6040
6701
  complete: optional(boolean())
6041
6702
  });
6042
6703
 
6043
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/document.js
6704
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/document.js
6044
6705
  var document = strictObject({
6045
6706
  ref: reference,
6046
6707
  id,
@@ -6055,7 +6716,7 @@ var document = strictObject({
6055
6716
  owners: optional(array(text))
6056
6717
  });
6057
6718
 
6058
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/document-link.js
6719
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/document-link.js
6059
6720
  var documentLink = strictObject({
6060
6721
  ref: reference,
6061
6722
  url: text,
@@ -6066,7 +6727,7 @@ var documentLink = strictObject({
6066
6727
  sender: strictObject({ id: nullable(id), name: nullable(text) })
6067
6728
  });
6068
6729
 
6069
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/evidence.js
6730
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/evidence.js
6070
6731
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
6071
6732
  var contribution = strictObject({
6072
6733
  message: evidenceMessage,
@@ -6096,7 +6757,7 @@ var retentionStay = strictObject({
6096
6757
  });
6097
6758
  var evidence = union([contribution, retentionStay]);
6098
6759
 
6099
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/fact.js
6760
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/fact.js
6100
6761
  var fact = strictObject({
6101
6762
  ref: reference,
6102
6763
  id,
@@ -6127,7 +6788,7 @@ var fact = strictObject({
6127
6788
  updated_at: time
6128
6789
  });
6129
6790
 
6130
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/hit.js
6791
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/hit.js
6131
6792
  var hit = strictObject({
6132
6793
  kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
6133
6794
  ref: reference,
@@ -6175,7 +6836,7 @@ var hit = strictObject({
6175
6836
  untrusted
6176
6837
  });
6177
6838
 
6178
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/identity.js
6839
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/identity.js
6179
6840
  var identity = strictObject({
6180
6841
  ref: reference,
6181
6842
  provider: text,
@@ -6191,7 +6852,7 @@ var identity = strictObject({
6191
6852
  person: optional(nullable(reference))
6192
6853
  });
6193
6854
 
6194
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
6855
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
6195
6856
  var imageEmbedding = strictObject({
6196
6857
  model: text,
6197
6858
  embedded: count,
@@ -6200,7 +6861,7 @@ var imageEmbedding = strictObject({
6200
6861
  more: boolean()
6201
6862
  });
6202
6863
 
6203
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/join-request.js
6864
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/join-request.js
6204
6865
  var joinRequest = strictObject({
6205
6866
  person_id: id,
6206
6867
  name: nullable(text),
@@ -6211,7 +6872,7 @@ var joinRequest = strictObject({
6211
6872
  about: optional(text)
6212
6873
  });
6213
6874
 
6214
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
6875
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
6215
6876
  var pollVote = strictObject({
6216
6877
  person_id: id,
6217
6878
  name: nullable(text),
@@ -6221,7 +6882,7 @@ var pollVote = strictObject({
6221
6882
  voted_at: time
6222
6883
  });
6223
6884
 
6224
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/listener.js
6885
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/listener.js
6225
6886
  var reactions = unwrap(unwrap(message.entries.reactions));
6226
6887
  var observation = strictObject({
6227
6888
  value: pipe(number(), minValue(0)),
@@ -6263,7 +6924,7 @@ var serveSummary = strictObject({
6263
6924
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
6264
6925
  });
6265
6926
 
6266
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
6927
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
6267
6928
  var mailCounts = strictObject({
6268
6929
  by: picklist(["day", "week", "sender"]),
6269
6930
  received: count,
@@ -6278,7 +6939,7 @@ var mailCounts = strictObject({
6278
6939
  }))
6279
6940
  });
6280
6941
 
6281
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
6942
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
6282
6943
  var evidence2 = strictObject({ reference, fingerprint: text });
6283
6944
  var base = { id, evidence: array(evidence2) };
6284
6945
  var finding = variant("kind", [
@@ -6422,7 +7083,7 @@ var mailFindings = strictObject({
6422
7083
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
6423
7084
  });
6424
7085
 
6425
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
7086
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
6426
7087
  var mediaArchive = strictObject({
6427
7088
  directory: text,
6428
7089
  chats: count,
@@ -6454,7 +7115,7 @@ var mediaArchiveTimer = union([
6454
7115
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
6455
7116
  ]);
6456
7117
 
6457
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
7118
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
6458
7119
  var preparationId = pipe(string(), minLength(1));
6459
7120
  var preparationCount = pipe(number(), integer(), minValue(0));
6460
7121
  var preparationTime = nullable(isoTime);
@@ -6546,7 +7207,7 @@ var preparationMeeting = strictObject({
6546
7207
  updated_at: isoTime
6547
7208
  });
6548
7209
 
6549
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
7210
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
6550
7211
  var meetingEvidence = preparationEvidence;
6551
7212
  var meetingPersonContext = strictObject({
6552
7213
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -6568,7 +7229,7 @@ var meetingPersonContext = strictObject({
6568
7229
  })
6569
7230
  });
6570
7231
 
6571
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
7232
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
6572
7233
  var evidence3 = strictObject({ reference, fingerprint: text });
6573
7234
  var base2 = { id, project: reference, evidence: array(evidence3) };
6574
7235
  var finding2 = variant("kind", [
@@ -6606,7 +7267,7 @@ var meetingFindings = strictObject({
6606
7267
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
6607
7268
  });
6608
7269
 
6609
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
7270
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
6610
7271
  var communicationCoverage = strictObject({
6611
7272
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
6612
7273
  query: string(),
@@ -6651,7 +7312,7 @@ var preparationCommunications = strictObject({
6651
7312
  }))
6652
7313
  });
6653
7314
 
6654
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
7315
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
6655
7316
  var meetingPreparation = strictObject({
6656
7317
  communications: optional(preparationCommunications),
6657
7318
  schema_version: literal(1),
@@ -6764,7 +7425,7 @@ var meetingPreparation = strictObject({
6764
7425
  })
6765
7426
  });
6766
7427
 
6767
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
7428
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
6768
7429
  var count3 = pipe(number(), integer(), minValue(0));
6769
7430
  var id3 = pipe(string(), minLength(1));
6770
7431
  var text3 = string();
@@ -6828,7 +7489,7 @@ var meetingProjectCandidates = strictObject({
6828
7489
  })
6829
7490
  });
6830
7491
 
6831
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
7492
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
6832
7493
  var count4 = pipe(number(), integer(), minValue(0));
6833
7494
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
6834
7495
  var meetingSeriesInventory = strictObject({
@@ -6858,7 +7519,7 @@ var meetingSeriesInventory = strictObject({
6858
7519
  })
6859
7520
  });
6860
7521
 
6861
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
7522
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
6862
7523
  var text4 = string();
6863
7524
  var id5 = pipe(number(), integer(), minValue(1));
6864
7525
  var revision = picklist(["current", "superseded"]);
@@ -6875,7 +7536,7 @@ var meetingTaskProposal = strictObject({
6875
7536
  persistence: literal("proposal-only")
6876
7537
  });
6877
7538
 
6878
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/memory.js
7539
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/memory.js
6879
7540
  var memory = strictObject({
6880
7541
  ref: reference,
6881
7542
  id,
@@ -6903,7 +7564,7 @@ var memory = strictObject({
6903
7564
  updated_at: time
6904
7565
  });
6905
7566
 
6906
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/mention.js
7567
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/mention.js
6907
7568
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
6908
7569
  var status = picklist(["found", "linked", "proposed", "dismissed"]);
6909
7570
  var mention = strictObject({
@@ -6947,13 +7608,13 @@ var mentionRebuild = strictObject({
6947
7608
  mentions: count
6948
7609
  });
6949
7610
 
6950
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/message-change.js
7611
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/message-change.js
6951
7612
  var operated3 = { operation_id: id, chat_id: id };
6952
7613
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
6953
7614
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
6954
7615
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
6955
7616
 
6956
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/message-read.js
7617
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/message-read.js
6957
7618
  var messageTranscript = strictObject({
6958
7619
  message_id: id,
6959
7620
  text,
@@ -7011,7 +7672,7 @@ var evidencePacket = strictObject({
7011
7672
  }))
7012
7673
  });
7013
7674
 
7014
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/message-context.js
7675
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/message-context.js
7015
7676
  var messageThread = strictObject({
7016
7677
  ref: reference,
7017
7678
  chat: id,
@@ -7028,7 +7689,7 @@ var messageThread = strictObject({
7028
7689
  });
7029
7690
  var messageContext = union([message, messageThread]);
7030
7691
 
7031
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
7692
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
7032
7693
  var messageCounts = strictObject({
7033
7694
  by: picklist(["chat", "sender", "day", "hour"]),
7034
7695
  total: count,
@@ -7041,7 +7702,7 @@ var messageCounts = strictObject({
7041
7702
  }))
7042
7703
  });
7043
7704
 
7044
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/message-link.js
7705
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/message-link.js
7045
7706
  var messageLink = strictObject({
7046
7707
  ref: reference,
7047
7708
  url: nullable(text),
@@ -7058,7 +7719,7 @@ var messageLink = strictObject({
7058
7719
  })))
7059
7720
  });
7060
7721
 
7061
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/message-write.js
7722
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/message-write.js
7062
7723
  var messageWrite = strictObject({
7063
7724
  operation_id: id,
7064
7725
  message,
@@ -7073,7 +7734,7 @@ var draftWrite = strictObject({
7073
7734
  });
7074
7735
  var messageSend = union([messageWrite, draftWrite]);
7075
7736
 
7076
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/model.js
7737
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/model.js
7077
7738
  var model = strictObject({
7078
7739
  id,
7079
7740
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -7108,7 +7769,7 @@ var chosenModel = strictObject({
7108
7769
  estimate_seconds: nullable(count)
7109
7770
  });
7110
7771
 
7111
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/model-key.js
7772
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/model-key.js
7112
7773
  var source = picklist(["environment", "keyring", "file"]);
7113
7774
  var modelKey = strictObject({
7114
7775
  provider: text,
@@ -7118,7 +7779,7 @@ var modelKey = strictObject({
7118
7779
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
7119
7780
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
7120
7781
 
7121
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
7782
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
7122
7783
  var versus = strictObject({ current: number(), previous: number() });
7123
7784
  var person = { person_ref: reference, name: nullable(text) };
7124
7785
  var graph = strictObject({
@@ -7152,14 +7813,14 @@ var officialStats = strictObject({
7152
7813
  graphs: record(string(), union([graph, strictObject({ error: text })]))
7153
7814
  });
7154
7815
 
7155
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/person.js
7816
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/person.js
7156
7817
  var person2 = strictObject({
7157
7818
  ref: reference,
7158
7819
  name: nullable(text),
7159
7820
  identities: optional(array(identity))
7160
7821
  });
7161
7822
 
7162
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/poll.js
7823
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/poll.js
7163
7824
  var poll = strictObject({
7164
7825
  chat_id: id,
7165
7826
  message_id: id,
@@ -7175,11 +7836,11 @@ var poll = strictObject({
7175
7836
  });
7176
7837
  var pollChange = strictObject({ operation_id: id, poll });
7177
7838
 
7178
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
7839
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
7179
7840
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
7180
7841
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
7181
7842
 
7182
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/ranking.js
7843
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/ranking.js
7183
7844
  var figures = record(string(), number());
7184
7845
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
7185
7846
  var rankingRow = strictObject({
@@ -7226,7 +7887,7 @@ var ranking = strictObject({
7226
7887
  rows: array(rankingRow)
7227
7888
  });
7228
7889
 
7229
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/reaction.js
7890
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/reaction.js
7230
7891
  var reaction = strictObject({
7231
7892
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
7232
7893
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -7234,7 +7895,7 @@ var reaction = strictObject({
7234
7895
  reacted_at: time
7235
7896
  });
7236
7897
 
7237
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
7898
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
7238
7899
  var reactionChange = strictObject({
7239
7900
  operation_id: id,
7240
7901
  chat_id: id,
@@ -7242,7 +7903,7 @@ var reactionChange = strictObject({
7242
7903
  reaction: nullable(text)
7243
7904
  });
7244
7905
 
7245
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/recipient.js
7906
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/recipient.js
7246
7907
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
7247
7908
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
7248
7909
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -7253,7 +7914,7 @@ var recipientChange = strictObject({
7253
7914
  ...partial(recipientOff).entries
7254
7915
  });
7255
7916
 
7256
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
7917
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
7257
7918
  var events = array(record(string(), unknown()));
7258
7919
  var recordedRun = strictObject({
7259
7920
  run_id: id,
@@ -7325,7 +7986,7 @@ var runHit = strictObject({
7325
7986
  });
7326
7987
  var runLocation = strictObject({ path: text });
7327
7988
 
7328
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/relationship.js
7989
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/relationship.js
7329
7990
  var relationship = strictObject({
7330
7991
  id,
7331
7992
  from: reference,
@@ -7352,7 +8013,7 @@ var relationship = strictObject({
7352
8013
  created_at: time
7353
8014
  });
7354
8015
 
7355
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
8016
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
7356
8017
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
7357
8018
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
7358
8019
  var responseTimes = strictObject({
@@ -7369,7 +8030,7 @@ var waitingChats = strictObject({
7369
8030
  by_kind: strictObject({ private: count, group: count })
7370
8031
  });
7371
8032
 
7372
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/retention.js
8033
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/retention.js
7373
8034
  var retentionCohort = strictObject({
7374
8035
  /** The first day of the joining day or week. */
7375
8036
  cohort: text,
@@ -7417,7 +8078,7 @@ var retention = strictObject({
7417
8078
  rows: array(retentionCohort)
7418
8079
  });
7419
8080
 
7420
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
8081
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
7421
8082
  var savedSearch = strictObject({
7422
8083
  id,
7423
8084
  /** `null` for a run in the history. */
@@ -7434,7 +8095,7 @@ var savedSearch = strictObject({
7434
8095
  });
7435
8096
  var searchHistoryClear = strictObject({ cleared: count });
7436
8097
 
7437
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
8098
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
7438
8099
  var sendAttempt = strictObject({
7439
8100
  at: time,
7440
8101
  profile: text,
@@ -7462,7 +8123,7 @@ var sendAttempt = strictObject({
7462
8123
  error_code: optional(text)
7463
8124
  });
7464
8125
 
7465
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
8126
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
7466
8127
  var absent = strictObject({ path: text, exists: literal(false) });
7467
8128
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
7468
8129
  var infoSchema = strictObject({
@@ -7692,7 +8353,7 @@ var storeRepair = union([
7692
8353
  ]);
7693
8354
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
7694
8355
 
7695
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/store-table.js
8356
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/store-table.js
7696
8357
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
7697
8358
  var storeTable = strictObject({
7698
8359
  name: text,
@@ -7701,7 +8362,7 @@ var storeTable = strictObject({
7701
8362
  bytes: optional(nullable(count))
7702
8363
  });
7703
8364
 
7704
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
8365
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
7705
8366
  var tagTarget = variant("type", [
7706
8367
  strictObject({ type: literal("chat"), chat_id: id }),
7707
8368
  strictObject({ type: literal("contact"), person_id: id }),
@@ -7732,7 +8393,20 @@ var automaticTags = strictObject({
7732
8393
  dry_run: boolean()
7733
8394
  });
7734
8395
 
7735
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
8396
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/tagging.js
8397
+ var tagging = strictObject({
8398
+ tag: text,
8399
+ type: picklist(TAG_TYPES),
8400
+ /** What carries it: a `chat:`, `contact:` or `msg:` reference. */
8401
+ target: reference,
8402
+ /** The chat's title or the person's name, as the store holds it. */
8403
+ name: nullable(text),
8404
+ /** Who claims it: `manual` the owner, `auto` the keyword rules; both when both do. */
8405
+ sources: array(picklist(["manual", "auto"])),
8406
+ created_at: time
8407
+ });
8408
+
8409
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
7736
8410
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
7737
8411
  var taskPair = strictObject({
7738
8412
  task: nullable(side),
@@ -7755,7 +8429,7 @@ var taskPair = strictObject({
7755
8429
  created_at: time
7756
8430
  });
7757
8431
 
7758
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/task-results.js
8432
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/task-results.js
7759
8433
  var nullableTime = nullable(time);
7760
8434
  var link = strictObject({
7761
8435
  id,
@@ -7929,7 +8603,7 @@ var taskReview = strictObject({
7929
8603
  untrusted
7930
8604
  });
7931
8605
 
7932
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/template.js
8606
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/template.js
7933
8607
  var template = strictObject({
7934
8608
  key: text,
7935
8609
  channel: picklist(["telegram", "email", "text"]),
@@ -7941,7 +8615,7 @@ var template = strictObject({
7941
8615
  updated_by: nullable(text)
7942
8616
  });
7943
8617
 
7944
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/topic.js
8618
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/topic.js
7945
8619
  var topic = strictObject({
7946
8620
  id,
7947
8621
  title: text,
@@ -7955,7 +8629,7 @@ var topic = strictObject({
7955
8629
  untrusted
7956
8630
  });
7957
8631
 
7958
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/index.js
8632
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/entities/index.js
7959
8633
  var ENTITIES = {
7960
8634
  sync_progress: progress,
7961
8635
  deal,
@@ -8130,6 +8804,9 @@ var ENTITIES = {
8130
8804
  meeting_link: meetingLink,
8131
8805
  meeting_stats: meetingStats,
8132
8806
  meeting_counts: meetingCounts,
8807
+ call_stats: callStats,
8808
+ meeting_tag_change: meetingTagChange,
8809
+ meeting_tagging: meetingTagging,
8133
8810
  meeting_speaker: meetingSpeaker,
8134
8811
  meeting_participants: meetingParticipants,
8135
8812
  meeting_passage: meetingPassage,
@@ -8206,6 +8883,7 @@ var ENTITIES = {
8206
8883
  chat_moderation: chatModeration,
8207
8884
  "model.chosen": chosenModel,
8208
8885
  model_key: modelKey,
8886
+ chat_sending: chatSending,
8209
8887
  "model_key.stored": storedModelKey,
8210
8888
  "model_key.removed": removedModelKey,
8211
8889
  chat_event: chatEvent,
@@ -8250,7 +8928,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
8250
8928
  return [name, definition];
8251
8929
  })), "entityDefinitions");
8252
8930
 
8253
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
8931
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
8254
8932
  var schemas = /* @__PURE__ */ new WeakMap();
8255
8933
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
8256
8934
  if (Object.hasOwn(ENTITIES, name))
@@ -8284,7 +8962,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
8284
8962
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
8285
8963
  }, "answerRow");
8286
8964
 
8287
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
8965
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
8288
8966
  var where = [{ field: "ref" }];
8289
8967
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
8290
8968
  var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
@@ -8376,7 +9054,7 @@ var STATUS_ROWS = {
8376
9054
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
8377
9055
  };
8378
9056
 
8379
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/compact.js
9057
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/compact.js
8380
9058
  var TEXT_CHARS = 400;
8381
9059
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
8382
9060
  var messageRow = {
@@ -8744,7 +9422,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
8744
9422
  return lines.concat(footerOf(body)).join("\n");
8745
9423
  }, "compactText");
8746
9424
 
8747
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
9425
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
8748
9426
  var named2 = /* @__PURE__ */ __name((work) => {
8749
9427
  try {
8750
9428
  return work();
@@ -8771,7 +9449,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named2(() => {
8771
9449
  return projectFields(value, fields);
8772
9450
  }), "projectFields");
8773
9451
 
8774
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/log-events.js
9452
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/runs/log-events.js
8775
9453
  var CORE_LOG_EVENTS = defineLogEvents([
8776
9454
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
8777
9455
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -8809,7 +9487,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
8809
9487
  progress: "sync.progress"
8810
9488
  };
8811
9489
 
8812
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/recording.js
9490
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/runs/recording.js
8813
9491
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
8814
9492
  const recording = startRecording(options);
8815
9493
  try {
@@ -9024,7 +9702,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
9024
9702
  return void 0;
9025
9703
  }, "partialOutcome");
9026
9704
 
9027
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
9705
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
9028
9706
  import { AsyncLocalStorage } from "node:async_hooks";
9029
9707
  var requests = new AsyncLocalStorage();
9030
9708
  var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
@@ -9039,7 +9717,113 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
9039
9717
  return direct;
9040
9718
  }, "exitCodeSet");
9041
9719
 
9042
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/deadline.js
9720
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/sends/guarded.js
9721
+ import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
9722
+ var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
9723
+ messageId: message2.id,
9724
+ ...message2.chatId && message2.chatId !== typed2 ? { resultChatId: message2.chatId } : {}
9725
+ }), "sentIds");
9726
+ var current = new AsyncLocalStorage2();
9727
+ var writesInFlight = new AsyncLocalStorage2();
9728
+ var parents = /* @__PURE__ */ new WeakMap();
9729
+ var stopped = /* @__PURE__ */ new WeakMap();
9730
+ var scopesFor = /* @__PURE__ */ __name((scope = writesInFlight.getStore()) => {
9731
+ const result = [];
9732
+ for (let at2 = scope; at2; at2 = parents.get(at2))
9733
+ result.push(at2);
9734
+ return result;
9735
+ }, "scopesFor");
9736
+ var withWriteScope = /* @__PURE__ */ __name((scope, body) => {
9737
+ const parent = writesInFlight.getStore();
9738
+ if (parent && parent !== scope)
9739
+ parents.set(scope, parent);
9740
+ return writesInFlight.run(scope, body);
9741
+ }, "withWriteScope");
9742
+ var stopWrites = /* @__PURE__ */ __name((scope, reason) => {
9743
+ stopped.set(scope, reason);
9744
+ for (const write of scope)
9745
+ write.cut();
9746
+ }, "stopWrites");
9747
+ var refuseStopped = /* @__PURE__ */ __name((scopes3) => {
9748
+ for (const scope of scopes3)
9749
+ if (stopped.has(scope))
9750
+ throw stopped.get(scope);
9751
+ }, "refuseStopped");
9752
+ var currentOperation = /* @__PURE__ */ __name(() => current.getStore(), "currentOperation");
9753
+ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 = () => ({}), prepare) => {
9754
+ const scopes3 = scopesFor();
9755
+ refuseStopped(scopes3);
9756
+ try {
9757
+ await guard.ask?.(attempt);
9758
+ refuseStopped(scopes3);
9759
+ if (guard.reserve) {
9760
+ guard.check(attempt, { reserve: false });
9761
+ await guard.reserve(attempt);
9762
+ } else
9763
+ guard.check(attempt);
9764
+ } catch (error) {
9765
+ guard.record({ ...attempt, outcome: "refused", errorCode: codeOf(error) });
9766
+ throw error;
9767
+ }
9768
+ try {
9769
+ refuseStopped(scopes3);
9770
+ } catch (error) {
9771
+ guard.record({ ...attempt, outcome: "failed", errorCode: codeOf(error) });
9772
+ throw error;
9773
+ }
9774
+ let recorded2 = false;
9775
+ const once = /* @__PURE__ */ __name((entry) => {
9776
+ if (recorded2)
9777
+ return;
9778
+ recorded2 = true;
9779
+ guard.record(entry);
9780
+ }, "once");
9781
+ let cancelled = false;
9782
+ const flight = {
9783
+ operationId: attempt.operationId,
9784
+ preparing: prepare !== void 0,
9785
+ cut: /* @__PURE__ */ __name(() => {
9786
+ cancelled = true;
9787
+ once({
9788
+ ...attempt,
9789
+ outcome: flight.preparing ? "failed" : "outcome_unknown",
9790
+ errorCode: flight.preparing ? "timeout" : "outcome_unknown"
9791
+ });
9792
+ }, "cut")
9793
+ };
9794
+ for (const scope of scopes3)
9795
+ scope.add(flight);
9796
+ try {
9797
+ if (prepare !== void 0)
9798
+ await prepare();
9799
+ if (cancelled)
9800
+ throw new CliError("timeout", "the command ended before sending; nothing was sent", { sent: false });
9801
+ flight.preparing = false;
9802
+ const done = await current.run(attempt.operationId, act);
9803
+ if (cancelled)
9804
+ throw new CliError("outcome_unknown", "the command ended with a write in flight; check its result before continuing", { operation_id: attempt.operationId });
9805
+ once({ ...attempt, ...settled2(done), outcome: "sent" });
9806
+ return done;
9807
+ } catch (error) {
9808
+ const code = codeOf(error);
9809
+ once({ ...attempt, outcome: code === "outcome_unknown" ? "outcome_unknown" : "failed", errorCode: code });
9810
+ if (code === "outcome_unknown" && error instanceof Error)
9811
+ throw new CliError("outcome_unknown", error.message, {
9812
+ ...error.details,
9813
+ operation_id: attempt.operationId,
9814
+ retryable: false
9815
+ });
9816
+ if (flight.preparing && isCliError(error) && error.details.sent === void 0)
9817
+ throw new CliError(error.code, error.message, { ...error.details, sent: false });
9818
+ throw error;
9819
+ } finally {
9820
+ for (const scope of scopes3)
9821
+ scope.delete(flight);
9822
+ }
9823
+ }, "guardedWrite");
9824
+ var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
9825
+
9826
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/deadline.js
9043
9827
  var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
9044
9828
  if (ms2 === void 0)
9045
9829
  return body();
@@ -9065,7 +9849,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
9065
9849
  }
9066
9850
  }, "withDeadline");
9067
9851
 
9068
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/execution.js
9852
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/execution.js
9069
9853
  var DEFAULT_COMMAND_MS = 3e4;
9070
9854
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
9071
9855
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -9248,7 +10032,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
9248
10032
  }
9249
10033
  }, "withAbort");
9250
10034
 
9251
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/profile.js
10035
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/profile.js
9252
10036
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
9253
10037
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
9254
10038
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -9335,7 +10119,7 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
9335
10119
  return void 0;
9336
10120
  }, "sampleCommand");
9337
10121
 
9338
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/analysis/settings.js
10122
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/analysis/settings.js
9339
10123
  var model2 = pipe(string(), trim(), minLength(1), maxLength(200));
9340
10124
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
9341
10125
  var AI_FIELDS = {
@@ -9379,7 +10163,21 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
9379
10163
  };
9380
10164
  }, "resolveAISettings");
9381
10165
 
9382
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
10166
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/domain/duration.js
10167
+ var DURATION = /^(\d+)(ms|s|m|h|d)$/;
10168
+ var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
10169
+ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
10170
+ const match = DURATION.exec(value.trim());
10171
+ if (!match?.[1] || !match[2]) {
10172
+ throw new CliError("validation_error", `${source2} takes a duration with a unit \u2014 500ms, 30s, 2m, 4h or 1d \u2014 not "${value}"`);
10173
+ }
10174
+ const ms2 = Number(match[1]) * (UNIT_MS[match[2]] ?? 0);
10175
+ if (ms2 <= 0)
10176
+ throw new CliError("validation_error", `${source2} has to be more than zero, and "${value}" is not`);
10177
+ return ms2;
10178
+ }, "parseDuration");
10179
+
10180
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
9383
10181
  import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
9384
10182
  import { join as join2 } from "node:path";
9385
10183
  var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
@@ -9468,251 +10266,8 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
9468
10266
  return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
9469
10267
  }, "registryProfiles");
9470
10268
 
9471
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
10269
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
9472
10270
  import { readFileSync as readFileSync3 } from "node:fs";
9473
-
9474
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
9475
- var REPAIR_WORDS = {
9476
- byte_order_mark: "an invisible byte-order mark at the start",
9477
- comment: "a comment, which JSON does not allow",
9478
- trailing_comma: "a comma before a closing bracket",
9479
- missing_comma: "a missing comma",
9480
- unquoted_key: "a key without double quotes",
9481
- single_quotes: "text in single quotes",
9482
- missing_closer: "the file stops before its closing brackets \u2014 whatever followed this line was already lost"
9483
- };
9484
- var GiveUp = class {
9485
- static {
9486
- __name(this, "GiveUp");
9487
- }
9488
- at;
9489
- why;
9490
- constructor(at2, why) {
9491
- this.at = at2;
9492
- this.why = why;
9493
- }
9494
- };
9495
- var NUMBER = /^-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?/;
9496
- var LITERAL = /^(true|false|null)/;
9497
- var KEY = /^[A-Za-z_$][\w$.-]*/;
9498
- var ENDS_VALUE = /^[\s,\]}/]?$/;
9499
- var repairConfigText = /* @__PURE__ */ __name((text5) => {
9500
- try {
9501
- JSON.parse(text5);
9502
- return { state: "valid" };
9503
- } catch {
9504
- }
9505
- const fixes = [];
9506
- const lineAt = /* @__PURE__ */ __name((offset) => text5.slice(0, offset).split("\n").length, "lineAt");
9507
- const fix = /* @__PURE__ */ __name((kind2, offset) => fixes.push({ kind: kind2, line: lineAt(offset) }), "fix");
9508
- const giveUp = /* @__PURE__ */ __name((why, offset = at2) => {
9509
- throw new GiveUp(offset, why);
9510
- }, "giveUp");
9511
- let at2 = 0;
9512
- let truncated = false;
9513
- let last = "open";
9514
- let lastEnd = 0;
9515
- const previous = /* @__PURE__ */ __name(() => last, "previous");
9516
- const skip = /* @__PURE__ */ __name(() => {
9517
- for (; ; ) {
9518
- while (/\s/.test(text5[at2] ?? ""))
9519
- at2++;
9520
- if (text5.startsWith("//", at2)) {
9521
- fix("comment", at2);
9522
- while (at2 < text5.length && text5[at2] !== "\n")
9523
- at2++;
9524
- } else if (text5.startsWith("/*", at2)) {
9525
- const end = text5.indexOf("*/", at2 + 2);
9526
- if (end < 0)
9527
- giveUp("a /* comment is never closed");
9528
- fix("comment", at2);
9529
- at2 = end + 2;
9530
- } else
9531
- return;
9532
- }
9533
- }, "skip");
9534
- const string2 = /* @__PURE__ */ __name(() => {
9535
- const quote = text5[at2];
9536
- const start = at2;
9537
- if (quote === "'")
9538
- fix("single_quotes", at2);
9539
- at2++;
9540
- let body = "";
9541
- for (; ; ) {
9542
- if (at2 >= text5.length)
9543
- giveUp("the file stops inside a quoted text", start);
9544
- const char = text5[at2];
9545
- if (char === quote)
9546
- break;
9547
- if (text5.charCodeAt(at2) < 32)
9548
- giveUp("a line break inside a quoted text");
9549
- if (char === "\\") {
9550
- const next = text5[at2 + 1] ?? "";
9551
- if (quote === "'" && next === "'")
9552
- body += "'";
9553
- else if (/^["\\/bfnrt]$/.test(next))
9554
- body += `\\${next}`;
9555
- else if (next === "u" && /^[0-9a-fA-F]{4}$/.test(text5.slice(at2 + 2, at2 + 6))) {
9556
- body += text5.slice(at2, at2 + 6);
9557
- at2 += 4;
9558
- } else
9559
- giveUp("an escape JSON has no meaning for");
9560
- at2 += 2;
9561
- continue;
9562
- }
9563
- body += char === '"' ? '\\"' : char;
9564
- at2++;
9565
- }
9566
- at2++;
9567
- return JSON.parse(`"${body}"`);
9568
- }, "string");
9569
- const key = /* @__PURE__ */ __name(() => {
9570
- const char = text5[at2] ?? "";
9571
- if (char === '"' || char === "'")
9572
- return string2();
9573
- const word = KEY.exec(text5.slice(at2))?.[0];
9574
- if (!word)
9575
- return giveUp("something other than a key where a key should be");
9576
- fix("unquoted_key", at2);
9577
- at2 += word.length;
9578
- return word;
9579
- }, "key");
9580
- const scalar = /* @__PURE__ */ __name(() => {
9581
- const char = text5[at2] ?? "";
9582
- if (char === '"' || char === "'")
9583
- return { json: JSON.stringify(string2()) };
9584
- const word = (NUMBER.exec(text5.slice(at2)) ?? LITERAL.exec(text5.slice(at2)))?.[0];
9585
- if (!word || !ENDS_VALUE.test(text5[at2 + word.length] ?? ""))
9586
- return giveUp("a value that is not JSON \u2014 text needs quotes, and only true, false and null go without");
9587
- if (at2 + word.length === text5.length && NUMBER.test(word))
9588
- giveUp("the file stops inside a number");
9589
- at2 += word.length;
9590
- return { json: word };
9591
- }, "scalar");
9592
- const members = /* @__PURE__ */ __name((close, one) => {
9593
- const out = [];
9594
- at2++;
9595
- last = "open";
9596
- let comma = -1;
9597
- for (; ; ) {
9598
- skip();
9599
- if (truncated)
9600
- return out;
9601
- if (at2 >= text5.length) {
9602
- if (previous() === "close")
9603
- giveUp("the file stops after a closing bracket, so which brackets are missing has two readings");
9604
- if (previous() === "comma")
9605
- fix("trailing_comma", comma);
9606
- fix("missing_closer", text5.length);
9607
- truncated = true;
9608
- return out;
9609
- }
9610
- const char = text5[at2];
9611
- if (char === close) {
9612
- if (previous() === "comma")
9613
- fix("trailing_comma", comma);
9614
- at2++;
9615
- last = "close";
9616
- return out;
9617
- }
9618
- if (char === "}" || char === "]")
9619
- giveUp(`a ${char} where ${close} should close`);
9620
- if (char === ",") {
9621
- if (previous() !== "value" && previous() !== "close")
9622
- giveUp("a comma with nothing before it");
9623
- comma = at2;
9624
- at2++;
9625
- last = "comma";
9626
- continue;
9627
- }
9628
- if (previous() === "value" || previous() === "close") {
9629
- if (lineAt(at2) === lineAt(lastEnd))
9630
- giveUp("two entries on one line with no comma between them");
9631
- fix("missing_comma", lastEnd);
9632
- }
9633
- out.push(one());
9634
- }
9635
- }, "members");
9636
- const value = /* @__PURE__ */ __name(() => {
9637
- const char = text5[at2] ?? "";
9638
- let node;
9639
- if (char === "{") {
9640
- const seen = /* @__PURE__ */ new Set();
9641
- node = {
9642
- object: members("}", () => {
9643
- const start = at2;
9644
- const name = key();
9645
- if (seen.has(name))
9646
- giveUp("a key appears twice in one object", start);
9647
- seen.add(name);
9648
- skip();
9649
- if (at2 >= text5.length)
9650
- giveUp("the file stops after a key, before its value");
9651
- if (text5[at2] !== ":")
9652
- giveUp("a key with no colon after it");
9653
- at2++;
9654
- skip();
9655
- if (at2 >= text5.length)
9656
- giveUp("the file stops after a key, before its value");
9657
- return [name, value()];
9658
- })
9659
- };
9660
- } else if (char === "[") {
9661
- node = {
9662
- array: members("]", () => {
9663
- return value();
9664
- })
9665
- };
9666
- } else
9667
- node = scalar();
9668
- if (!truncated) {
9669
- last = "json" in node ? "value" : "close";
9670
- lastEnd = at2;
9671
- }
9672
- return node;
9673
- }, "value");
9674
- try {
9675
- if (text5.includes("\0") || text5.includes(String.fromCharCode(65533)))
9676
- giveUp("the file is not text", 0);
9677
- if (text5.charCodeAt(0) === 65279) {
9678
- fix("byte_order_mark", 0);
9679
- at2 = 1;
9680
- }
9681
- skip();
9682
- if (text5[at2] !== "{")
9683
- giveUp(at2 >= text5.length ? "the file is empty" : "the file does not start with {");
9684
- const root = value();
9685
- skip();
9686
- if (at2 < text5.length)
9687
- giveUp("more text after the closing }");
9688
- const repaired = `${serialise(root, "")}
9689
- `;
9690
- JSON.parse(repaired);
9691
- return { state: "repaired", text: repaired, fixes };
9692
- } catch (error) {
9693
- if (!(error instanceof GiveUp))
9694
- throw error;
9695
- const before = text5.slice(0, error.at).split("\n");
9696
- return {
9697
- state: "refused",
9698
- line: before.length,
9699
- column: (before.at(-1)?.length ?? 0) + 1,
9700
- why: error.why
9701
- };
9702
- }
9703
- }, "repairConfigText");
9704
- var serialise = /* @__PURE__ */ __name((node, indent) => {
9705
- if ("json" in node)
9706
- return node.json;
9707
- const inner = `${indent} `;
9708
- const parts = "object" in node ? node.object.map(([name, item]) => `${inner}${JSON.stringify(name)}: ${serialise(item, inner)}`) : node.array.map((item) => `${inner}${serialise(item, inner)}`);
9709
- const [open, close] = "object" in node ? ["{", "}"] : ["[", "]"];
9710
- return parts.length === 0 ? `${open}${close}` : `${open}
9711
- ${parts.join(",\n")}
9712
- ${indent}${close}`;
9713
- }, "serialise");
9714
-
9715
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
9716
10271
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
9717
10272
  var SECTIONS = ["personal", "bot"];
9718
10273
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -9819,8 +10374,8 @@ var failureOffset = /* @__PURE__ */ __name((text5) => {
9819
10374
  value();
9820
10375
  space();
9821
10376
  return at2;
9822
- } catch (stopped) {
9823
- return typeof stopped === "number" ? stopped : at2;
10377
+ } catch (stopped2) {
10378
+ return typeof stopped2 === "number" ? stopped2 : at2;
9824
10379
  }
9825
10380
  }, "failureOffset");
9826
10381
  var parseConfigText = /* @__PURE__ */ __name((text5, file) => {
@@ -10007,7 +10562,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
10007
10562
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
10008
10563
  }, "readConfigFile");
10009
10564
 
10010
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/default-config.js
10565
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/default-config.js
10011
10566
  import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync } from "node:fs";
10012
10567
  import { dirname as dirname2, join as join3 } from "node:path";
10013
10568
  var DEFAULT_CONFIG = {
@@ -10036,7 +10591,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
10036
10591
  }
10037
10592
  __name(ensureDefaultConfig, "ensureDefaultConfig");
10038
10593
 
10039
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
10594
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
10040
10595
  import { existsSync as existsSync4, readdirSync as readdirSync3, readFileSync as readFileSync4 } from "node:fs";
10041
10596
  import { join as join4 } from "node:path";
10042
10597
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -10058,7 +10613,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
10058
10613
  }, "profilesWithAccounts");
10059
10614
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
10060
10615
 
10061
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
10616
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
10062
10617
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
10063
10618
  var parentOf = /* @__PURE__ */ __name((config, key) => {
10064
10619
  const path2 = key.split(".");
@@ -10091,8 +10646,57 @@ var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((settin
10091
10646
  };
10092
10647
  }), "settingRows");
10093
10648
 
10094
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/settings.js
10649
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/settings.js
10095
10650
  import { existsSync as existsSync5 } from "node:fs";
10651
+
10652
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/services/history-limits.js
10653
+ var HISTORY_MAX_DAYS = 1095;
10654
+ var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
10655
+ var DAY_MS = 24 * 60 * 60 * 1e3;
10656
+ var historyWindow = /* @__PURE__ */ __name((shape, limits, now) => {
10657
+ const group2 = shape !== void 0 && shape.kind !== "dialog" && shape.kind !== "saved";
10658
+ if (group2 && (shape.participantsCount ?? 0) > limits.groupMembersMax)
10659
+ return { skip: "group_too_large", members: shape.participantsCount ?? 0 };
10660
+ const days = group2 ? limits.groupDays : limits.dialogDays;
10661
+ return { keepFrom: now - Math.min(days, HISTORY_MAX_DAYS) * DAY_MS };
10662
+ }, "historyWindow");
10663
+ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now = Date.now()) => {
10664
+ const skipped = /* @__PURE__ */ new Map();
10665
+ if (!batch.messages?.length)
10666
+ return { batch, skipped };
10667
+ const named3 = new Map((batch.chats ?? []).map((chat2) => [chat2.id, chat2]));
10668
+ const windows = /* @__PURE__ */ new Map();
10669
+ const windowOf = /* @__PURE__ */ __name((chatId) => {
10670
+ if (!windows.has(chatId)) {
10671
+ const chat2 = named3.get(chatId);
10672
+ const shape = chat2 ? { kind: chat2.kind, participantsCount: chat2.participantsCount ?? null } : shapes(chatId);
10673
+ windows.set(chatId, included(chatId) ? void 0 : historyWindow(shape, limits, now));
10674
+ }
10675
+ return windows.get(chatId);
10676
+ }, "windowOf");
10677
+ const messages = batch.messages.filter((message2) => {
10678
+ const window = windowOf(message2.chatId);
10679
+ if (window === void 0)
10680
+ return true;
10681
+ const at2 = Date.parse(message2.timestamp);
10682
+ if ("keepFrom" in window && !(at2 < window.keepFrom))
10683
+ return true;
10684
+ const reason = "skip" in window ? window.skip : "older_than_window";
10685
+ const held = skipped.get(message2.chatId);
10686
+ const iso = new Date(at2).toISOString();
10687
+ skipped.set(message2.chatId, {
10688
+ reason,
10689
+ messages: (held?.messages ?? 0) + 1,
10690
+ oldestAt: held && held.oldestAt < iso ? held.oldestAt : iso,
10691
+ newestAt: held && held.newestAt > iso ? held.newestAt : iso,
10692
+ ..."skip" in window ? { members: window.members } : { keptFrom: new Date(window.keepFrom).toISOString() }
10693
+ });
10694
+ return false;
10695
+ });
10696
+ return { batch: { ...batch, messages }, skipped };
10697
+ }, "limitBatch");
10698
+
10699
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/settings.js
10096
10700
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
10097
10701
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
10098
10702
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -10618,7 +11222,50 @@ var given = /* @__PURE__ */ __name((value) => {
10618
11222
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
10619
11223
  }, "given");
10620
11224
 
10621
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/output-detail.js
11225
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/background/budget.js
11226
+ var DEADLINE_MARGIN_MS = 5e3;
11227
+ var DEADLINE_MARGIN_SHARE = 0.15;
11228
+ var DEFAULT_REQUEST_MS = 2e3;
11229
+ var deadlineMargin = /* @__PURE__ */ __name((deadline) => Math.max(DEADLINE_MARGIN_MS, deadline.ms * DEADLINE_MARGIN_SHARE), "deadlineMargin");
11230
+ var requestsFor = /* @__PURE__ */ __name((deadline, requestMs = DEFAULT_REQUEST_MS) => deadline === void 0 ? null : Math.max(1, Math.floor((deadline.ms - deadlineMargin(deadline)) / requestMs)), "requestsFor");
11231
+ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, requestMs, signal, now = Date.now } = {}) => {
11232
+ const fits = requestsFor(deadline, requestMs);
11233
+ const limit = fits === null ? requests2 ?? null : Math.min(fits, requests2 ?? fits);
11234
+ const margin = deadline ? deadlineMargin(deadline) : 0;
11235
+ let used = 0;
11236
+ let stopped2 = null;
11237
+ let last;
11238
+ let slowest = 0;
11239
+ return {
11240
+ take() {
11241
+ if (stopped2)
11242
+ return stopped2;
11243
+ const at2 = now();
11244
+ if (last !== void 0)
11245
+ slowest = Math.max(slowest, at2 - last);
11246
+ if (signal?.aborted)
11247
+ stopped2 = "cancelled";
11248
+ else if (limit !== null && used >= limit)
11249
+ stopped2 = "requests";
11250
+ else if (deadline && at2 + margin + slowest >= deadline.endsAt)
11251
+ stopped2 = "deadline";
11252
+ if (stopped2)
11253
+ return stopped2;
11254
+ used += 1;
11255
+ last = at2;
11256
+ return null;
11257
+ },
11258
+ get used() {
11259
+ return used;
11260
+ },
11261
+ limit,
11262
+ get stopped() {
11263
+ return stopped2;
11264
+ }
11265
+ };
11266
+ }, "runBudget");
11267
+
11268
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/output-detail.js
10622
11269
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
10623
11270
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
10624
11271
  var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
@@ -10654,7 +11301,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
10654
11301
  return value;
10655
11302
  }, "atDetail");
10656
11303
 
10657
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/output.js
11304
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/output.js
10658
11305
  var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
10659
11306
  const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
10660
11307
  if (other)
@@ -10718,7 +11365,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
10718
11365
  }, "warn")
10719
11366
  }), "silence");
10720
11367
 
10721
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/context.js
11368
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/context.js
10722
11369
  var runBudgetOf = /* @__PURE__ */ __name((command, requests2) => {
10723
11370
  const { deadline, signal, app } = environmentOf(command);
10724
11371
  const now = deadline?.();
@@ -10758,11 +11405,17 @@ var detailOf = /* @__PURE__ */ __name(({ brief, full }) => {
10758
11405
  return brief ? { hitDetail: "brief" } : full ? { hitDetail: "full" } : {};
10759
11406
  }, "detailOf");
10760
11407
  var COMPACT_KEY = new Option(COMPACT_FLAG).attributeName();
11408
+ var outputFieldsOf = /* @__PURE__ */ __name((command) => {
11409
+ const fields = rootOf(command).getOptionValue("fields");
11410
+ return typeof fields === "string" ? { fields } : {};
11411
+ }, "outputFieldsOf");
10761
11412
  var compactOf = /* @__PURE__ */ __name((command) => command.optsWithGlobals()[COMPACT_KEY] === true, "compactOf");
10762
11413
  var outputFor = /* @__PURE__ */ __name((command) => {
10763
11414
  const { streams, tty, env, agent } = environmentOf(command);
11415
+ const { fields: _own, ...flags } = command.optsWithGlobals();
10764
11416
  return resolveOutput({
10765
- ...command.optsWithGlobals(),
11417
+ ...flags,
11418
+ ...outputFieldsOf(command),
10766
11419
  ...detailOf(command.optsWithGlobals()),
10767
11420
  compact: compactOf(command),
10768
11421
  ...agent ? { capture: agent.result } : {},
@@ -10780,7 +11433,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
10780
11433
  env,
10781
11434
  compact: compactOf(command),
10782
11435
  ...detailOf(command.optsWithGlobals()),
10783
- ...command.optsWithGlobals().fields ? { fields: command.optsWithGlobals().fields } : {},
11436
+ ...outputFieldsOf(command),
10784
11437
  ...environment.agent ? { capture: environment.agent.result } : {},
10785
11438
  ...environment.streams ? { streams: environment.streams } : {},
10786
11439
  ...environment.tty === void 0 ? {} : { tty: environment.tty }
@@ -10853,12 +11506,12 @@ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
10853
11506
  }, "inCommandRun");
10854
11507
  var commandPath = /* @__PURE__ */ __name((command) => {
10855
11508
  const words = [];
10856
- for (let current = command; current?.parent; current = current.parent)
10857
- words.unshift(current.name());
11509
+ for (let current2 = command; current2?.parent; current2 = current2.parent)
11510
+ words.unshift(current2.name());
10858
11511
  return words.join(" ");
10859
11512
  }, "commandPath");
10860
11513
 
10861
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/effects.js
11514
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/effects.js
10862
11515
  var REMOTE_READ = { remote: "read", local: "read" };
10863
11516
  var FETCH = { remote: "read", local: "write" };
10864
11517
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -10923,7 +11576,12 @@ var changesStore = /* @__PURE__ */ __name((command) => {
10923
11576
  STORE_WRITES.add(command);
10924
11577
  return command;
10925
11578
  }, "changesStore");
10926
- var savesFiles = /* @__PURE__ */ __name((command) => command.name() === "download" || [...command.options.map((option) => option.attributeName()), ...command.registeredArguments.map((one) => one.name())].map((name) => name.toLowerCase()).some((name) => name === "dir" || name.endsWith("dir") || name === "output"), "savesFiles");
11579
+ var OWNER_FILES = /* @__PURE__ */ new WeakSet();
11580
+ var writesOwnerFiles = /* @__PURE__ */ __name((command) => {
11581
+ OWNER_FILES.add(command);
11582
+ return command;
11583
+ }, "writesOwnerFiles");
11584
+ var savesFiles = /* @__PURE__ */ __name((command) => OWNER_FILES.has(command) || command.name() === "download" || [...command.options.map((option) => option.attributeName()), ...command.registeredArguments.map((one) => one.name())].map((name) => name.toLowerCase()).some((name) => name === "dir" || name.endsWith("dir") || name === "output"), "savesFiles");
10927
11585
  var fetchesOnly = /* @__PURE__ */ __name((command) => {
10928
11586
  const effects = metaOf(command).effects;
10929
11587
  return effects?.remote === "read" && effects.local === "write" && !STORE_WRITES.has(command) && !changesAuthority(command) && !OTHER_SERVICE.has(command) && !savesFiles(command);
@@ -10948,7 +11606,7 @@ var writesFileNow = /* @__PURE__ */ __name((command) => {
10948
11606
  const option = FILE_OPTION.get(command);
10949
11607
  return option === void 0 || command.opts()[option] !== void 0;
10950
11608
  }, "writesFileNow");
10951
- var readsOverMcp = /* @__PURE__ */ __name((command) => fetchesOnly(command) || FILE_OPTION.has(command), "readsOverMcp");
11609
+ var readsOverMcp = /* @__PURE__ */ __name((command) => fetchesOnly(command) && !LOGIN.has(command) || FILE_OPTION.has(command), "readsOverMcp");
10952
11610
  var readsOverMcpAt = /* @__PURE__ */ __name((root) => (path2) => {
10953
11611
  let at2 = root;
10954
11612
  for (const word of path2)
@@ -11005,7 +11663,61 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
11005
11663
  throw readOnlyRefusal(lock, what);
11006
11664
  }, "refuseUnderReadOnly");
11007
11665
 
11008
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/steps.js
11666
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/images/picture/models.js
11667
+ import { join as join5 } from "node:path";
11668
+ var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
11669
+ var IMAGE_MODELS = [
11670
+ {
11671
+ id: "clip-b32",
11672
+ title: "CLIP ViT-B/32, 8-bit",
11673
+ languages: "English only: translate a query before searching",
11674
+ licence: "MIT",
11675
+ dims: 512,
11676
+ key: "local:clip-b32:512",
11677
+ maxTokens: 77,
11678
+ vision: "onnx/vision_model_quantized.onnx",
11679
+ text: "onnx/text_model_quantized.onnx",
11680
+ files: [
11681
+ {
11682
+ name: "onnx/vision_model_quantized.onnx",
11683
+ url: clip("onnx/vision_model_quantized.onnx"),
11684
+ sha256: "583fd1110a514667812fee7d684952aaf82a99b959760c8d7dca7e0ab9839299",
11685
+ bytes: 89117001
11686
+ },
11687
+ {
11688
+ name: "onnx/text_model_quantized.onnx",
11689
+ url: clip("onnx/text_model_quantized.onnx"),
11690
+ sha256: "73baab855d406190da9faa498cfedf65f15cf309f4cc7385b7b032e6d08e5c3a",
11691
+ bytes: 64504507
11692
+ },
11693
+ {
11694
+ name: "tokenizer.json",
11695
+ url: clip("tokenizer.json"),
11696
+ sha256: "f7f3b7af117d467b58374797691a6438d3e6b9e9cef800dfd5dced7f697a90cd",
11697
+ bytes: 2224119
11698
+ },
11699
+ {
11700
+ name: "tokenizer_config.json",
11701
+ url: clip("tokenizer_config.json"),
11702
+ sha256: "60ba2912bc6344c94bc16bbdec27fa1209409167b6f2fdf3cfe9e65462ea3967",
11703
+ bytes: 775
11704
+ }
11705
+ ]
11706
+ }
11707
+ ];
11708
+ var DEFAULT_IMAGE_MODEL = "clip-b32";
11709
+ var imageModel = /* @__PURE__ */ __name((id6) => {
11710
+ const found = IMAGE_MODELS.find((model3) => model3.id === id6);
11711
+ if (!found) {
11712
+ throw new CliError("validation_error", `no image model ${id6} \u2014 one of: ${IMAGE_MODELS.map((model3) => model3.id).join(", ")}`);
11713
+ }
11714
+ return found;
11715
+ }, "imageModel");
11716
+ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
11717
+ var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
11718
+ var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
11719
+
11720
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/steps.js
11009
11721
  var STEPS2 = defineSteps([
11010
11722
  ...STEPS,
11011
11723
  {
@@ -11295,7 +12007,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
11295
12007
  ].join(" ");
11296
12008
  }, "stepLine");
11297
12009
 
11298
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
12010
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
11299
12011
  var SOFT_OUTPUT_BYTES = 256 * 1024;
11300
12012
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
11301
12013
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -11353,7 +12065,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
11353
12065
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
11354
12066
  }, "largeAnswerSteps");
11355
12067
 
11356
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
12068
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
11357
12069
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
11358
12070
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
11359
12071
  var strip = /* @__PURE__ */ __name((value) => {
@@ -11367,7 +12079,7 @@ var strip = /* @__PURE__ */ __name((value) => {
11367
12079
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
11368
12080
  }, "strip");
11369
12081
 
11370
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
12082
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
11371
12083
  var OPEN = "\u27E6";
11372
12084
  var CLOSE = "\u27E7";
11373
12085
  var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
@@ -11451,7 +12163,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
11451
12163
  return result;
11452
12164
  }, "withFieldsMarked");
11453
12165
 
11454
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/envelope.js
12166
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/envelope.js
11455
12167
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
11456
12168
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
11457
12169
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -11557,9 +12269,27 @@ var withLargeAnswerStep = /* @__PURE__ */ __name((command, body) => {
11557
12269
  }, "withLargeAnswerStep");
11558
12270
  var linesOf = /* @__PURE__ */ __name((body) => jsonlOf("items" in body ? body : { items: [body.item], page: { mode: "page", limit: 1, has_more: false }, meta: body.meta }), "linesOf");
11559
12271
  var jsonlRecords = /* @__PURE__ */ __name((body) => linesOf(sealed(body)).split("\n").map((line) => JSON.parse(line)), "jsonlRecords");
12272
+ var listZone = /* @__PURE__ */ __name((command) => {
12273
+ const registry = metaOf(command).query;
12274
+ const words = command.processedArgs.at(-1);
12275
+ const text5 = Array.isArray(words) ? words.join(" ") : typeof words === "string" ? words : "";
12276
+ const times = new Set(registry?.fields.filter(({ type }) => type === "time").map(({ name }) => name));
12277
+ if (times.size === 0 || text5.trim() === "")
12278
+ return void 0;
12279
+ try {
12280
+ if (!readsZone(parseLucene(text5, { defaultField: "none" }), times))
12281
+ return void 0;
12282
+ } catch {
12283
+ return void 0;
12284
+ }
12285
+ return timezoneOf(command.optsWithGlobals().timezone);
12286
+ }, "listZone");
11560
12287
  var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams, compact, full }, body, view) => {
11561
12288
  if (!isBody(body))
11562
12289
  refuse(body);
12290
+ const zone = "items" in body && body.meta?.timezone === void 0 ? listZone(command) : void 0;
12291
+ if (zone)
12292
+ body = { ...body, meta: { ...body.meta, timezone: zone } };
11563
12293
  const root = rootOf2(command);
11564
12294
  const runnableSteps = runnable(root, body.next);
11565
12295
  const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
@@ -11628,9 +12358,37 @@ export {
11628
12358
  sharedCommand,
11629
12359
  customizeSharedCommand,
11630
12360
  refuseJoinedPath,
12361
+ LEVELS,
12362
+ skipFlagFor,
12363
+ DEFAULT_PERMISSIONS,
12364
+ KEYED_UNDER_HOUSEKEEPING,
12365
+ AUTHORITY_KEY,
12366
+ authorityAllowed,
12367
+ BOT_API_KEY,
12368
+ isBotApi,
12369
+ botApiAllowed,
12370
+ layerPermissions,
12371
+ CEILING_KEY,
12372
+ STORE_ONLY_KEYS,
12373
+ fetchesUnder,
12374
+ fetchesAt,
12375
+ stops,
12376
+ levelFor,
12377
+ keyForWrite,
12378
+ writeOfKey,
12379
+ WRITE_KEYS,
12380
+ readKeysForCommand,
12381
+ keyForCommand,
12382
+ assertRetentionEvidenceRead,
11631
12383
  accountSession,
11632
12384
  accountProfile,
12385
+ task,
12386
+ agenda,
11633
12387
  analysisConsent,
12388
+ attachment,
12389
+ WEIGHTS,
12390
+ LINK,
12391
+ oddName,
11634
12392
  member,
11635
12393
  chat,
11636
12394
  message,
@@ -11643,6 +12401,7 @@ export {
11643
12401
  chatEvent,
11644
12402
  contact,
11645
12403
  contactNote,
12404
+ conversation,
11646
12405
  documentLink,
11647
12406
  recordLogFor,
11648
12407
  spawnDetached,
@@ -11684,6 +12443,7 @@ export {
11684
12443
  sendAttempt,
11685
12444
  progress,
11686
12445
  storeTable,
12446
+ tagging,
11687
12447
  template,
11688
12448
  topic,
11689
12449
  ENTITIES,
@@ -11710,6 +12470,10 @@ export {
11710
12470
  inCommandServerRequest,
11711
12471
  commandServerRequest,
11712
12472
  exitCodeSet,
12473
+ sentIds,
12474
+ currentOperation,
12475
+ guardedWrite,
12476
+ codeOf,
11713
12477
  withDeadline,
11714
12478
  DEFAULT_COMMAND_MS,
11715
12479
  DEFAULT_COOPERATIVE_MS,
@@ -11735,12 +12499,13 @@ export {
11735
12499
  AI_ENTRIES,
11736
12500
  AI_SETTING_KEYS,
11737
12501
  resolveAISettings,
12502
+ parseDuration,
12503
+ historyWindow,
12504
+ limitBatch,
11738
12505
  botsDirectory,
11739
12506
  botFiles,
11740
12507
  ChatRegistry,
11741
12508
  registryProfiles,
11742
- REPAIR_WORDS,
11743
- repairConfigText,
11744
12509
  permissionIssues,
11745
12510
  settingPathOf,
11746
12511
  withoutPath,
@@ -11774,9 +12539,16 @@ export {
11774
12539
  environmentOf,
11775
12540
  withAgentLevels,
11776
12541
  secretInputOf,
12542
+ outputFieldsOf,
11777
12543
  outputFor,
11778
12544
  baseContext,
11779
12545
  inCommandRun,
12546
+ IMAGE_MODELS,
12547
+ DEFAULT_IMAGE_MODEL,
12548
+ imageModel,
12549
+ imageModelsDirectory,
12550
+ placedImage,
12551
+ isImageModelInstalled,
11780
12552
  REMOTE_READ,
11781
12553
  FETCH,
11782
12554
  REMOTE_WRITE,
@@ -11797,6 +12569,7 @@ export {
11797
12569
  narrowsUnderLock,
11798
12570
  admittedUnderLock,
11799
12571
  changesStore,
12572
+ writesOwnerFiles,
11800
12573
  fetchesOnly,
11801
12574
  fetchesOnlyAt,
11802
12575
  writesFileOnlyWith,