@wirecat/zoom-cli 0.65.0 → 0.67.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 (194) hide show
  1. package/README.md +2 -1
  2. package/constants.json +7 -0
  3. package/dist/answers.d.ts +4 -4
  4. package/dist/bin/main.js +3 -2
  5. package/dist/bin/main.js.map +1 -1
  6. package/dist/bin/zm.js +2 -2
  7. package/dist/bin/zm.js.map +1 -1
  8. package/dist/bundle/{all-profiles-SKMLZJSY.js → all-profiles-SEW2VL76.js} +12 -8
  9. package/dist/bundle/answer-policy-5OYUL6UF.js +103 -0
  10. package/dist/bundle/{anthropic-TVHK7CY2.js → anthropic-FSNASJML.js} +7 -4
  11. package/dist/bundle/{app-server-44ASFH47.js → app-server-EVSRYJ3H.js} +66 -59
  12. package/dist/bundle/{bun-O4WHGL2F.js → bun-DACL5SVO.js} +2 -2
  13. package/dist/bundle/{bun-sqlite-NS32GMM4.js → bun-sqlite-HQ2KOXSI.js} +6 -3
  14. package/dist/bundle/chunk-2UW533HQ.js +166 -0
  15. package/dist/bundle/{chunk-FYJL276J.js → chunk-3GO3KME7.js} +3 -3
  16. package/dist/bundle/{chunk-Z5424QL6.js → chunk-3ZIHUSMM.js} +2 -2
  17. package/dist/bundle/{chunk-MRWIXUYT.js → chunk-4GCKDO2H.js} +5 -3
  18. package/dist/bundle/{chunk-7SQJCKR6.js → chunk-4KDZ22RA.js} +1 -1
  19. package/dist/bundle/{chunk-25IDWPEN.js → chunk-4U2555EQ.js} +35 -31
  20. package/dist/bundle/{chunk-UKU6MYUI.js → chunk-4UVT2QCO.js} +9 -20
  21. package/dist/bundle/{chunk-ZOGYTDHG.js → chunk-4ZR5DJ26.js} +5 -3
  22. package/dist/bundle/{chunk-CVCRQW3A.js → chunk-54RTMQL6.js} +4 -4
  23. package/dist/bundle/chunk-6AJDVJVZ.js +35 -0
  24. package/dist/bundle/chunk-6IBM4Z3V.js +34 -0
  25. package/dist/bundle/{chunk-CNEE6TPE.js → chunk-6TZF2JP7.js} +13 -13
  26. package/dist/bundle/{chunk-QLCYAQ66.js → chunk-6UFWFKFH.js} +2 -2
  27. package/dist/bundle/chunk-6VFORXL3.js +101 -0
  28. package/dist/bundle/{chunk-M6IDHQ7N.js → chunk-7HAIM7GV.js} +1633 -683
  29. package/dist/bundle/{chunk-FYM27FCG.js → chunk-7K5TDTZY.js} +13 -7
  30. package/dist/bundle/{chunk-NO24PJNW.js → chunk-7LLUUXJB.js} +1 -1
  31. package/dist/bundle/{chunk-VJTGYBJJ.js → chunk-7VU5UGRR.js} +37 -29
  32. package/dist/bundle/{chunk-ZH743WNV.js → chunk-AAZFLJSH.js} +25 -24
  33. package/dist/bundle/{chunk-DYJXAY7Q.js → chunk-ASCHAVNW.js} +35 -27
  34. package/dist/bundle/{chunk-EA63UGWE.js → chunk-B3KWAULD.js} +2 -2
  35. package/dist/bundle/{chunk-H7762LDA.js → chunk-B5Z4XPVS.js} +2 -2
  36. package/dist/bundle/{chunk-UPJXN2CO.js → chunk-BKY4XVB4.js} +1787 -1224
  37. package/dist/bundle/{chunk-QI7BZS2G.js → chunk-C6UKW7JO.js} +6 -6
  38. package/dist/bundle/{chunk-U3ZUT557.js → chunk-CLEZE65P.js} +1 -1
  39. package/dist/bundle/{chunk-37PHGASE.js → chunk-CRLBTNC4.js} +5 -3
  40. package/dist/bundle/{chunk-VH4F2EK4.js → chunk-D4KBD63W.js} +1 -1
  41. package/dist/bundle/{chunk-DNCKH7CO.js → chunk-D6OXI2NV.js} +17 -17
  42. package/dist/bundle/{chunk-LPUFOWL3.js → chunk-D72URWJE.js} +1 -39
  43. package/dist/bundle/{chunk-GMTXCFI7.js → chunk-DFUPETW7.js} +449 -308
  44. package/dist/bundle/{chunk-VW2SW7ME.js → chunk-DG4DWAU7.js} +3 -3
  45. package/dist/bundle/{chunk-U5ASRBBF.js → chunk-EPDRF66S.js} +4 -4
  46. package/dist/bundle/{chunk-BNXH73OU.js → chunk-EQ7XRRKV.js} +14 -12
  47. package/dist/bundle/{chunk-5NGOP4EZ.js → chunk-ESFMHBHH.js} +38 -35
  48. package/dist/bundle/{chunk-GEX4V5TM.js → chunk-EUPZSR2G.js} +4 -4
  49. package/dist/bundle/{chunk-KZE3G4ZT.js → chunk-FGTPREAZ.js} +58 -54
  50. package/dist/bundle/{chunk-MH7AWCB4.js → chunk-FWU3ZYHE.js} +68 -64
  51. package/dist/bundle/{chunk-MPKKIL3U.js → chunk-FXQPK742.js} +63 -21
  52. package/dist/bundle/{chunk-PV3UDPCI.js → chunk-GP4NSYDU.js} +20 -14
  53. package/dist/bundle/{chunk-ZFNM3FNI.js → chunk-I7SOXH64.js} +75 -38
  54. package/dist/bundle/{chunk-S4GDDO5S.js → chunk-IFDO3YPJ.js} +1 -1
  55. package/dist/bundle/{chunk-LOL6JYYN.js → chunk-J3ZBEWQY.js} +375 -9
  56. package/dist/bundle/chunk-JVCHGI7W.js +37 -0
  57. package/dist/bundle/{chunk-MZ6U6HNJ.js → chunk-KANH7GBB.js} +2 -2
  58. package/dist/bundle/{chunk-3CZIWGZ6.js → chunk-KIJLM5UL.js} +1 -1
  59. package/dist/bundle/chunk-KV4267S4.js +23 -0
  60. package/dist/bundle/{chunk-266WOOB3.js → chunk-KWRSC6O6.js} +6 -6
  61. package/dist/bundle/{chunk-C6BG57FA.js → chunk-L643D4RJ.js} +14 -12
  62. package/dist/bundle/{chunk-IPTI3Y2E.js → chunk-L6CAUVMU.js} +7 -5
  63. package/dist/bundle/{chunk-MIB5X2XW.js → chunk-L6WUAGPN.js} +5 -5
  64. package/dist/bundle/{chunk-BWRBALXG.js → chunk-LFQ73UFK.js} +3 -3
  65. package/dist/bundle/{chunk-GBZF4IIP.js → chunk-LKJXTACE.js} +10 -89
  66. package/dist/bundle/{chunk-T3KICUOK.js → chunk-LM26DJOK.js} +8 -8
  67. package/dist/bundle/{chunk-GXCNCMUY.js → chunk-M43MBWJX.js} +3260 -1263
  68. package/dist/bundle/{chunk-TC7PD3LH.js → chunk-MWEOVTIF.js} +4 -4
  69. package/dist/bundle/chunk-NTZDM5SJ.js +2462 -0
  70. package/dist/bundle/{chunk-ERPRAYA7.js → chunk-OTMGAKUM.js} +11 -7
  71. package/dist/bundle/chunk-OZEYFJX2.js +93 -0
  72. package/dist/bundle/{chunk-NJSIHMAE.js → chunk-Q65SDEFN.js} +4 -4
  73. package/dist/bundle/{chunk-UMHJZWZU.js → chunk-QEI55M2F.js} +12 -10
  74. package/dist/bundle/{chunk-SQWRZZOQ.js → chunk-QX2MAT6I.js} +3 -3
  75. package/dist/bundle/{chunk-ZXGRK44F.js → chunk-RAMPYIO2.js} +17 -12
  76. package/dist/bundle/{chunk-BLT3LR3U.js → chunk-RYKG6AEH.js} +1 -1
  77. package/dist/bundle/{chunk-WLSF3GCC.js → chunk-SCFFCIIP.js} +4 -2
  78. package/dist/bundle/{chunk-2H5SXK7K.js → chunk-SMVO5R3T.js} +21 -19
  79. package/dist/bundle/{chunk-Y3EIK4XW.js → chunk-SOZVC3SV.js} +1 -1
  80. package/dist/bundle/{chunk-6CS7ETBK.js → chunk-SSXCOUP3.js} +1114 -282
  81. package/dist/bundle/{chunk-R5BAF5XE.js → chunk-SXFODCYK.js} +1 -1
  82. package/dist/bundle/{chunk-JF7ZEUXU.js → chunk-T6CZWSHF.js} +136 -2540
  83. package/dist/bundle/{chunk-KYLS5QGC.js → chunk-TBRG2DPE.js} +2 -2
  84. package/dist/bundle/{chunk-K6ATTKQR.js → chunk-V33VGWT3.js} +5 -5
  85. package/dist/bundle/{chunk-RZLNHNSS.js → chunk-VFIEYRYD.js} +8 -8
  86. package/dist/bundle/{chunk-OXUHTKO2.js → chunk-VNIBTNV4.js} +3 -2
  87. package/dist/bundle/{chunk-ZREFYKUB.js → chunk-VQTAU4DV.js} +13 -11
  88. package/dist/bundle/{chunk-NNNEVWFF.js → chunk-WHQ4ZCJI.js} +57 -34
  89. package/dist/bundle/chunk-WZ5XK74U.js +46 -0
  90. package/dist/bundle/{chunk-XJQB47IL.js → chunk-X67YD3QI.js} +6 -6
  91. package/dist/bundle/chunk-YPF6OS37.js +46 -0
  92. package/dist/bundle/{chunk-AMMD6YCJ.js → chunk-YRNZT4GQ.js} +7 -7
  93. package/dist/bundle/{chunk-TUIEDVI6.js → chunk-Z3WXI4DK.js} +5 -3
  94. package/dist/bundle/{chunk-U4RVOSX3.js → chunk-ZMPTO2WB.js} +1 -1
  95. package/dist/bundle/{chunk-24F7JBLY.js → chunk-ZRMZBMOF.js} +69 -9
  96. package/dist/bundle/{cli-FDO6CP6R.js → cli-YUATSOLA.js} +113 -81
  97. package/dist/bundle/command-contract-UWHY55UE.js +41 -0
  98. package/dist/bundle/config-TGF6E6ZD.js +89 -0
  99. package/dist/bundle/{decode-7SZI3TGZ.js → decode-IL44LNC3.js} +6 -3
  100. package/dist/bundle/dispatch-3BGIXSJR.js +412 -0
  101. package/dist/bundle/{dist-5GWUXW27.js → dist-3W27UQ2S.js} +48 -16
  102. package/dist/bundle/{echarts-FMACRZQC.js → echarts-CO4D26JF.js} +2 -2
  103. package/dist/bundle/{embed-24YSXHLP.js → embed-XH2X4DFM.js} +7 -4
  104. package/dist/bundle/{embedder-MEXN2TFB.js → embedder-WTFWDXBJ.js} +12 -9
  105. package/dist/bundle/failure-HTIS3NLS.js +25 -0
  106. package/dist/bundle/first-run-5RBH7FDO.js +28 -0
  107. package/dist/bundle/first-screen-PGFIXJAX.js +39 -0
  108. package/dist/bundle/{folders-DBAAMU26.js → folders-F4DNQPIY.js} +5 -2
  109. package/dist/bundle/{instructions-E5FXYCWF.js → instructions-EPPBL6TT.js} +1 -1
  110. package/dist/bundle/{main-EIUCXXDW.js → main-LVQTCDZS.js} +31 -25
  111. package/dist/bundle/{mcp-FUSDPAOL.js → mcp-PPVOM4SE.js} +5 -3
  112. package/dist/bundle/{meetings-JDTRGXZJ.js → meetings-BMELXRTR.js} +31 -4
  113. package/dist/bundle/{node-4SNKUPXT.js → node-CQVMWVIG.js} +2 -2
  114. package/dist/bundle/{node-sqlite-O4BAODFR.js → node-sqlite-QQEX7LZT.js} +7 -4
  115. package/dist/bundle/{oauth-3YLHXGUW.js → oauth-AYGX7CQS.js} +8 -5
  116. package/dist/bundle/{open-QGRMSNM2.js → open-MIL2TOT6.js} +6 -3
  117. package/dist/bundle/openai-7QZZXQW5.js +25 -0
  118. package/dist/bundle/{output-file-J26UQKRA.js → output-file-4XADZPYH.js} +7 -4
  119. package/dist/bundle/{process-HQZOTT6U.js → process-NJVQK6GB.js} +1 -1
  120. package/dist/bundle/{program-47DT7SHE.js → program-WUYRS6H7.js} +191 -135
  121. package/dist/bundle/{prompt-IUD7HCDC.js → prompt-J4QPFLEA.js} +6 -3
  122. package/dist/bundle/{recognize-DMJJHHXF.js → recognize-OLJZVNWW.js} +5 -2
  123. package/dist/bundle/{remote-5WFSOVVB.js → remote-JPUXNYLV.js} +8 -5
  124. package/dist/bundle/{rerank-UKQ65ECH.js → rerank-XVV3X5TT.js} +8 -5
  125. package/dist/bundle/run-log-DJXBEVS5.js +118 -0
  126. package/dist/bundle/{serve-WAOSED3I.js → serve-NYYUO3MR.js} +16 -13
  127. package/dist/bundle/{server-NWZFNXC5.js → server-4Z5E4YTT.js} +48 -42
  128. package/dist/bundle/server-VW5UVCH7.js +72 -0
  129. package/dist/bundle/{services-VPANRE72.js → services-EKWM76HP.js} +50 -28
  130. package/dist/bundle/{speech-O6UNUDRW.js → speech-WFJ44ACJ.js} +14 -11
  131. package/dist/bundle/{state-BNE7I65A.js → state-VIRCT4VW.js} +7 -4
  132. package/dist/bundle/{store-4IIVSCJ4.js → store-2Q4GEZJS.js} +30 -18
  133. package/dist/bundle/{store-QQH4FJXJ.js → store-ZTDZ6UY5.js} +20 -14
  134. package/dist/bundle/store-connection-FKVVQLEF.js +83 -0
  135. package/dist/bundle/store-maintenance-command-AU73UVUQ.js +62 -0
  136. package/dist/bundle/{streaming-S4EZB6P2.js → streaming-7BPKIGAS.js} +7 -4
  137. package/dist/bundle/{tokens-VCXIH7WZ.js → tokens-CQHMMKNX.js} +7 -4
  138. package/dist/bundle/zm.js +150 -1
  139. package/dist/bundle/zoom-app-OEKFMJS6.js +25 -0
  140. package/dist/config.d.ts +9 -0
  141. package/dist/config.d.ts.map +1 -1
  142. package/dist/config.js +46 -7
  143. package/dist/config.js.map +1 -1
  144. package/dist/meeting-source.d.ts.map +1 -1
  145. package/dist/meeting-source.js +2 -1
  146. package/dist/meeting-source.js.map +1 -1
  147. package/dist/meeting-stats-commands.d.ts +4 -2
  148. package/dist/meeting-stats-commands.d.ts.map +1 -1
  149. package/dist/meeting-stats-commands.js +27 -2
  150. package/dist/meeting-stats-commands.js.map +1 -1
  151. package/dist/program-bindings.d.ts.map +1 -1
  152. package/dist/program-bindings.js +3 -2
  153. package/dist/program-bindings.js.map +1 -1
  154. package/dist/recording-schedule-setup.d.ts.map +1 -1
  155. package/dist/recording-schedule-setup.js +5 -5
  156. package/dist/recording-schedule-setup.js.map +1 -1
  157. package/dist/run.d.ts.map +1 -1
  158. package/dist/run.js +2 -6
  159. package/dist/run.js.map +1 -1
  160. package/dist/setup-commands.d.ts +1 -1
  161. package/dist/setup-commands.d.ts.map +1 -1
  162. package/dist/setup-commands.js +30 -8
  163. package/dist/setup-commands.js.map +1 -1
  164. package/dist/store-commands.d.ts.map +1 -1
  165. package/dist/store-commands.js +6 -0
  166. package/dist/store-commands.js.map +1 -1
  167. package/dist/store-connection.d.ts +2 -1
  168. package/dist/store-connection.d.ts.map +1 -1
  169. package/dist/store-connection.js +4 -0
  170. package/dist/store-connection.js.map +1 -1
  171. package/dist/version.d.ts +1 -1
  172. package/dist/version.js +1 -1
  173. package/dist/watch-service.d.ts +1 -1
  174. package/dist/watch-service.d.ts.map +1 -1
  175. package/dist/watch-service.js +5 -3
  176. package/dist/watch-service.js.map +1 -1
  177. package/dist/zoom-app.d.ts +17 -0
  178. package/dist/zoom-app.d.ts.map +1 -0
  179. package/dist/zoom-app.js +22 -0
  180. package/dist/zoom-app.js.map +1 -0
  181. package/package.json +6 -4
  182. package/skills/zoom-cli/SKILL.md +4 -1
  183. package/dist/bundle/answer-policy-BHDNSJWX.js +0 -96
  184. package/dist/bundle/chunk-A6OA2EH2.js +0 -18
  185. package/dist/bundle/command-contract-O4FDXM4U.js +0 -37
  186. package/dist/bundle/config-UBHKZG3J.js +0 -78
  187. package/dist/bundle/first-run-OCVEJH63.js +0 -23
  188. package/dist/bundle/first-screen-KJIU25MH.js +0 -35
  189. package/dist/bundle/openai-7PSCSTH7.js +0 -22
  190. package/dist/bundle/run-log-UGYL6NW2.js +0 -111
  191. package/dist/bundle/server-HAXN772R.js +0 -66
  192. package/dist/bundle/store-connection-PPEQK2K3.js +0 -76
  193. package/dist/bundle/store-maintenance-command-JZXCT6NY.js +0 -56
  194. /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
@@ -1,9 +1,12 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ renderMessages
5
+ } from "./chunk-B5Z4XPVS.js";
3
6
  import {
4
7
  answerOf,
5
8
  messengerContext
6
- } from "./chunk-5NGOP4EZ.js";
9
+ } from "./chunk-ESFMHBHH.js";
7
10
  import {
8
11
  chatEventAnswer,
9
12
  memberAnswer,
@@ -12,14 +15,14 @@ import {
12
15
  serveRelay,
13
16
  typedQuery,
14
17
  withQuery
15
- } from "./chunk-2H5SXK7K.js";
18
+ } from "./chunk-SMVO5R3T.js";
16
19
  import {
17
20
  holdLock,
18
21
  lockPath,
19
22
  releaseLock,
20
23
  servingProfiles,
21
24
  takeLock
22
- } from "./chunk-BWRBALXG.js";
25
+ } from "./chunk-LFQ73UFK.js";
23
26
  import {
24
27
  FETCHING,
25
28
  RULES_VERSION,
@@ -32,7 +35,7 @@ import {
32
35
  senderIsMe,
33
36
  servicesFor,
34
37
  syncsOneChat
35
- } from "./chunk-M6IDHQ7N.js";
38
+ } from "./chunk-7HAIM7GV.js";
36
39
  import {
37
40
  Command,
38
41
  LOCAL_READ,
@@ -56,39 +59,24 @@ import {
56
59
  snakeKeys,
57
60
  storeTable,
58
61
  withoutProviderRefs
59
- } from "./chunk-6CS7ETBK.js";
62
+ } from "./chunk-SSXCOUP3.js";
60
63
  import {
61
64
  envName
62
- } from "./chunk-WLSF3GCC.js";
65
+ } from "./chunk-SCFFCIIP.js";
63
66
  import {
64
67
  holdersOf
65
- } from "./chunk-Y3EIK4XW.js";
68
+ } from "./chunk-SOZVC3SV.js";
66
69
  import {
67
70
  codeOf,
68
71
  currentRun,
69
72
  parseDuration
70
- } from "./chunk-25IDWPEN.js";
73
+ } from "./chunk-4U2555EQ.js";
71
74
  import {
72
75
  failureKey
73
- } from "./chunk-Z5424QL6.js";
74
- import {
75
- renderMessages
76
- } from "./chunk-H7762LDA.js";
76
+ } from "./chunk-3ZIHUSMM.js";
77
77
  import {
78
78
  levelFor
79
- } from "./chunk-OXUHTKO2.js";
80
- import {
81
- readSecret
82
- } from "./chunk-VW2SW7ME.js";
83
- import {
84
- checkedOptions,
85
- range
86
- } from "./chunk-ZOGYTDHG.js";
87
- import {
88
- messagesFor,
89
- systemFor,
90
- validateImages
91
- } from "./chunk-QLCYAQ66.js";
79
+ } from "./chunk-VNIBTNV4.js";
92
80
  import {
93
81
  MIGRATIONS,
94
82
  drainNoteIndex,
@@ -115,23 +103,39 @@ import {
115
103
  storeClients,
116
104
  storeContents,
117
105
  vectorIndexCounts
118
- } from "./chunk-GXCNCMUY.js";
106
+ } from "./chunk-M43MBWJX.js";
119
107
  import {
120
108
  formatLocator,
121
109
  parseLocator
122
- } from "./chunk-LOL6JYYN.js";
110
+ } from "./chunk-J3ZBEWQY.js";
111
+ import {
112
+ readSecret
113
+ } from "./chunk-DG4DWAU7.js";
114
+ import {
115
+ checkedOptions,
116
+ range
117
+ } from "./chunk-4ZR5DJ26.js";
118
+ import {
119
+ messagesFor,
120
+ systemFor,
121
+ validateImages
122
+ } from "./chunk-6UFWFKFH.js";
123
123
  import {
124
124
  storePath
125
- } from "./chunk-A6OA2EH2.js";
125
+ } from "./chunk-6AJDVJVZ.js";
126
126
  import {
127
127
  openCache
128
- } from "./chunk-QI7BZS2G.js";
128
+ } from "./chunk-C6UKW7JO.js";
129
129
  import {
130
130
  queryFieldsOf
131
- } from "./chunk-ZH743WNV.js";
131
+ } from "./chunk-AAZFLJSH.js";
132
132
  import {
133
- CliError,
134
133
  Credentials,
134
+ pathsAreOverridden,
135
+ resolvePaths,
136
+ writeSecurely
137
+ } from "./chunk-T6CZWSHF.js";
138
+ import {
135
139
  array,
136
140
  boolean,
137
141
  check,
@@ -144,20 +148,20 @@ import {
144
148
  object,
145
149
  optional,
146
150
  parse,
147
- pathsAreOverridden,
148
151
  picklist,
149
152
  pipe,
150
153
  record,
151
154
  regex,
152
- resolvePaths,
153
155
  safeParse,
154
156
  strictObject,
155
157
  string,
156
158
  transform,
157
159
  trim,
158
- union,
159
- writeSecurely
160
- } from "./chunk-JF7ZEUXU.js";
160
+ union
161
+ } from "./chunk-NTZDM5SJ.js";
162
+ import {
163
+ CliError
164
+ } from "./chunk-WZ5XK74U.js";
161
165
  import {
162
166
  __commonJS,
163
167
  __name,
@@ -5497,11 +5501,11 @@ var require_liquid_node = __commonJS({
5497
5501
  }
5498
5502
  });
5499
5503
 
5500
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5504
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5501
5505
  import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
5502
5506
  import { dirname, resolve } from "node:path";
5503
5507
 
5504
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sealed.js
5508
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/sealed.js
5505
5509
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5506
5510
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5507
5511
  import { Transform } from "node:stream";
@@ -5608,7 +5612,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5608
5612
  renameSync(pending, to);
5609
5613
  }, "unsealFile");
5610
5614
 
5611
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5615
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5612
5616
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5613
5617
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5614
5618
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5632,7 +5636,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5632
5636
  };
5633
5637
  }, "compatibilityOf");
5634
5638
 
5635
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/store/repair.js
5639
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/store/repair.js
5636
5640
  import { createHash as createHash2 } from "node:crypto";
5637
5641
  var COPY_MARK = "__repair_";
5638
5642
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5886,7 +5890,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5886
5890
  return found;
5887
5891
  }, "deleteCopy");
5888
5892
 
5889
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5893
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5890
5894
  import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
5891
5895
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
5892
5896
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
@@ -5934,7 +5938,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
5934
5938
  }), "storeInfoCommand");
5935
5939
  var sharedStoreCommand = /* @__PURE__ */ __name(() => annotate(new Command("store"), { effects: LOCAL_READ }).description("the shared local store every WireCat tool reads").addCommand(storeInfoCommand()), "sharedStoreCommand");
5936
5940
 
5937
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5941
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5938
5942
  var ENCRYPT_OPTION = [
5939
5943
  "--encrypt",
5940
5944
  "compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
@@ -5953,7 +5957,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
5953
5957
  return password;
5954
5958
  }, "passwordOf");
5955
5959
 
5956
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/replies/rules.js
5960
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/replies/rules.js
5957
5961
  import { existsSync as existsSync3, readFileSync } from "node:fs";
5958
5962
  import { join } from "node:path";
5959
5963
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6124,7 +6128,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6124
6128
  }, "problem");
6125
6129
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6126
6130
 
6127
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/replies/state.js
6131
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/replies/state.js
6128
6132
  import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
6129
6133
  import { join as join2 } from "node:path";
6130
6134
  var ANSWERED_KEPT = 1e3;
@@ -6177,7 +6181,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6177
6181
  }, "recordReply");
6178
6182
  var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
6179
6183
 
6180
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/replies/decide.js
6184
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/replies/decide.js
6181
6185
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6182
6186
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6183
6187
  const { message, chat, owner, sender } = incoming;
@@ -6283,7 +6287,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
6283
6287
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
6284
6288
  }, "filled");
6285
6289
 
6286
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/replies/template.js
6290
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/replies/template.js
6287
6291
  var import_liquidjs = __toESM(require_liquid_node(), 1);
6288
6292
  var TEMPLATE_LIMITS = {
6289
6293
  parse: 32768,
@@ -6443,7 +6447,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
6443
6447
  }
6444
6448
  }, "renderReplyTemplate");
6445
6449
 
6446
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6450
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6447
6451
  var DRY_RUN_DAYS = 7;
6448
6452
  var PAGE = 500;
6449
6453
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -6557,7 +6561,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
6557
6561
  }
6558
6562
  }, "storedSince");
6559
6563
 
6560
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6564
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6561
6565
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
6562
6566
  const host = new URL(baseUrl).host;
6563
6567
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -6588,7 +6592,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
6588
6592
  };
6589
6593
  }, "embeddingKeys");
6590
6594
 
6591
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/models/openai.js
6595
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/models/openai.js
6592
6596
  var options = strictObject({
6593
6597
  temperature: range(0, 2),
6594
6598
  top_p: range(0, 1),
@@ -6637,7 +6641,7 @@ var openai = {
6637
6641
  }, "complete")
6638
6642
  };
6639
6643
 
6640
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/models/index.js
6644
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/models/index.js
6641
6645
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
6642
6646
  complete: /* @__PURE__ */ __name(async (request) => {
6643
6647
  if (deps.signal?.aborted)
@@ -6652,7 +6656,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6652
6656
  if (!adapter && target.provider === "openai")
6653
6657
  adapter = openai;
6654
6658
  if (!adapter && target.provider === "anthropic")
6655
- adapter = (await import("./anthropic-TVHK7CY2.js")).anthropic;
6659
+ adapter = (await import("./anthropic-FSNASJML.js")).anthropic;
6656
6660
  if (!adapter)
6657
6661
  throw new CliError("validation_error", `no model adapter for ${target.provider}`);
6658
6662
  if (request.images !== void 0 && adapter.images !== true)
@@ -6693,7 +6697,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6693
6697
  }, "complete")
6694
6698
  }), "modelGateway");
6695
6699
 
6696
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/replies/consents.js
6700
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/replies/consents.js
6697
6701
  import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
6698
6702
  import { join as join3 } from "node:path";
6699
6703
  var shape = strictObject({
@@ -6718,7 +6722,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
6718
6722
  return consent.provider === provider && !consent.deniedChats.includes(chat);
6719
6723
  }, "mayModelReply");
6720
6724
 
6721
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6725
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6722
6726
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
6723
6727
  ai: true
6724
6728
  }) => async (rule2, message, chat, now) => {
@@ -6765,7 +6769,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
6765
6769
  return result2;
6766
6770
  }, "replyRenderer");
6767
6771
 
6768
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/replies/serve.js
6772
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/replies/serve.js
6769
6773
  var NOT_ALLOWED = "replies.send is not allow";
6770
6774
  var NO_RULES = "no rules";
6771
6775
  var ONLY_TASK = "opened a task, sent nothing";
@@ -6858,7 +6862,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
6858
6862
  return { skip: why };
6859
6863
  }, "replyTo");
6860
6864
 
6861
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
6865
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
6862
6866
  var START_SYNC_DELAY_MS = 3e4;
6863
6867
  var START_SYNC_BUDGET_MS = 5 * 6e4;
6864
6868
  var START_SYNC_WINDOW_MS = 7 * 864e5;
@@ -6935,7 +6939,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch: fetch2, note
6935
6939
  };
6936
6940
  }, "startSync");
6937
6941
 
6938
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6942
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6939
6943
  var FIRST_FETCH_MS = 6e4;
6940
6944
  var DAY_MS = 864e5;
6941
6945
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -6989,7 +6993,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
6989
6993
  };
6990
6994
  }, "memberFetches");
6991
6995
 
6992
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6996
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6993
6997
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
6994
6998
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
6995
6999
  if (context.format === "pretty") {
@@ -7022,7 +7026,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
7022
7026
  return context;
7023
7027
  }, "recordDiagnostics");
7024
7028
 
7025
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7029
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7026
7030
  var STEMS_EVERY_MS = 3e4;
7027
7031
  var STEMS_SLICE_MS = 2e3;
7028
7032
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -7062,7 +7066,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
7062
7066
  };
7063
7067
  }, "stemFills");
7064
7068
 
7065
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
7069
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
7066
7070
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
7067
7071
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
7068
7072
  kind: attachment.kind,
@@ -7157,7 +7161,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
7157
7161
  locale: messenger.app.locale
7158
7162
  }), "viewOf");
7159
7163
 
7160
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7164
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7161
7165
  var observed = /* @__PURE__ */ __name((value) => ({
7162
7166
  value: value.value,
7163
7167
  observed_at: value.observedAt,
@@ -7224,7 +7228,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
7224
7228
  }
7225
7229
  }, "watchEventItem");
7226
7230
 
7227
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7231
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7228
7232
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
7229
7233
  output: { entity: "watch_item" },
7230
7234
  effects: REMOTE_READ,
@@ -7379,7 +7383,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
7379
7383
  }
7380
7384
  }, "describe");
7381
7385
 
7382
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7386
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7383
7387
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
7384
7388
  const command = annotate(new Command("serve"), {
7385
7389
  output: { entity: "serve_summary" },
@@ -7643,7 +7647,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
7643
7647
  };
7644
7648
  }, "tasking");
7645
7649
 
7646
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7650
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7647
7651
  import { existsSync as existsSync6 } from "node:fs";
7648
7652
  var PATH = "store tables list";
7649
7653
  var STORE_TABLES_QUERY = {
@@ -7686,7 +7690,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
7686
7690
  return tables;
7687
7691
  }, "storeTablesCommand");
7688
7692
 
7689
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7693
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7690
7694
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
7691
7695
  var WORD_INDEX = "message_words";
7692
7696
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -1,18 +1,15 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
- import {
4
- ZM
5
- } from "./chunk-VH4F2EK4.js";
6
3
  import {
7
4
  commandsCommand,
8
5
  formatSuggestions,
9
6
  meetingResultItem,
10
7
  runsCommand,
11
8
  suggest
12
- } from "./chunk-UPJXN2CO.js";
9
+ } from "./chunk-BKY4XVB4.js";
13
10
  import {
14
11
  sharedStoreCommand
15
- } from "./chunk-MH7AWCB4.js";
12
+ } from "./chunk-FWU3ZYHE.js";
16
13
  import {
17
14
  NO_EFFECTS,
18
15
  REMOTE_READ,
@@ -35,31 +32,43 @@ import {
35
32
  profileFree,
36
33
  renderAnswer,
37
34
  snakeKeys,
38
- usableProfileName
39
- } from "./chunk-6CS7ETBK.js";
35
+ usableProfileName,
36
+ withSettingDefaults
37
+ } from "./chunk-SSXCOUP3.js";
40
38
  import {
41
39
  readOnlyLockOf,
42
40
  readOnlyRefusal
43
- } from "./chunk-WLSF3GCC.js";
41
+ } from "./chunk-SCFFCIIP.js";
44
42
  import {
45
43
  setupPermissionCeiling
46
- } from "./chunk-GEX4V5TM.js";
44
+ } from "./chunk-EUPZSR2G.js";
45
+ import {
46
+ KEEP_RUNS_FOR_DAYS,
47
+ KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
48
+ RUNS_SIZE_LIMIT_MB
49
+ } from "./chunk-4U2555EQ.js";
47
50
  import {
48
51
  CEILING_KEY,
49
52
  DEFAULT_PERMISSIONS,
50
53
  LEVELS,
51
54
  keyForCommand,
52
55
  levelFor
53
- } from "./chunk-OXUHTKO2.js";
56
+ } from "./chunk-VNIBTNV4.js";
57
+ import {
58
+ ZM
59
+ } from "./chunk-D4KBD63W.js";
54
60
  import {
55
61
  MEETING_RESULT_ENTITIES
56
- } from "./chunk-GMTXCFI7.js";
62
+ } from "./chunk-DFUPETW7.js";
63
+ import {
64
+ createRenderer,
65
+ projectFields,
66
+ saveConfigFile
67
+ } from "./chunk-T6CZWSHF.js";
57
68
  import {
58
- CliError,
59
69
  array,
60
70
  boolean,
61
71
  check,
62
- createRenderer,
63
72
  custom,
64
73
  exitCodeOfAnswer,
65
74
  integer,
@@ -74,15 +83,16 @@ import {
74
83
  parse,
75
84
  picklist,
76
85
  pipe,
77
- projectFields,
78
86
  record,
79
87
  regex,
80
88
  safeParse,
81
- saveConfigFile,
82
89
  strictObject,
83
90
  string,
84
91
  union
85
- } from "./chunk-JF7ZEUXU.js";
92
+ } from "./chunk-NTZDM5SJ.js";
93
+ import {
94
+ CliError
95
+ } from "./chunk-WZ5XK74U.js";
86
96
  import {
87
97
  __name
88
98
  } from "./chunk-ZVVMGPBJ.js";
@@ -756,6 +766,26 @@ var ConfigFile = strictObject({
756
766
  record_input: optional(union([boolean(), literal("failed")]))
757
767
  });
758
768
  var DOCTOR = "zm doctor";
769
+ var ZOOM_SETTINGS = [
770
+ {
771
+ key: "source",
772
+ default: "api",
773
+ description: "api reads recordings from Zoom; files imports transcript files from files.folder"
774
+ },
775
+ { key: "record", default: true, description: "keep every run in zm runs list; false keeps failed runs only" },
776
+ {
777
+ key: "record_input",
778
+ default: true,
779
+ description: `keep what was typed in a run's command line: true, false, or "failed" for failed runs only`
780
+ },
781
+ { key: "keep_runs_for_days", default: KEEP_RUNS_FOR_DAYS, description: "days a run is kept" },
782
+ {
783
+ key: "keep_successful_runs_for_days",
784
+ default: KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
785
+ description: "days a successful run is kept"
786
+ },
787
+ { key: "runs_size_limit_mb", default: RUNS_SIZE_LIMIT_MB, description: "the most megabytes all runs may take" }
788
+ ];
759
789
  var configOf = /* @__PURE__ */ __name((file) => ({
760
790
  clientId: file.client_id ?? null,
761
791
  source: file.source ?? "api",
@@ -799,10 +829,21 @@ var changeFile = /* @__PURE__ */ __name((path, permissionKeys2, change) => {
799
829
  if (!inspection.raw)
800
830
  throw new CliError("configuration_error", issueMessage(inspection.issues.map(publicIssue), DOCTOR));
801
831
  const raw = structuredClone(inspection.raw);
802
- change(raw, inspection);
803
- saveConfigFile(path, raw);
832
+ const removed = change(raw, inspection);
833
+ saveConfigFile(path, withSettingDefaults(raw, ZOOM_SETTINGS.filter(({ key }) => key !== removed)).config);
804
834
  return inspectConfig(path, permissionKeys2).config;
805
835
  }, "changeFile");
836
+ var migrateConfig = /* @__PURE__ */ __name((path) => {
837
+ const inspection = inspectConfig(path);
838
+ if (!inspection.found)
839
+ return [];
840
+ if (!inspection.raw)
841
+ throw new CliError("configuration_error", issueMessage(inspection.issues.map(publicIssue), DOCTOR));
842
+ const { config, added } = withSettingDefaults(inspection.raw, ZOOM_SETTINGS);
843
+ if (added.length > 0)
844
+ saveConfigFile(path, config);
845
+ return added;
846
+ }, "migrateConfig");
806
847
  var profileEntry = /* @__PURE__ */ __name((raw, profile) => {
807
848
  if (!isNode(raw.profiles))
808
849
  raw.profiles = {};
@@ -893,6 +934,7 @@ var unsetConfig = /* @__PURE__ */ __name((path, key, profile, permissionKeys2) =
893
934
  if (Object.keys(entry.permissions).length === 0)
894
935
  delete entry.permissions;
895
936
  }
937
+ return at.join(".");
896
938
  }), "unsetConfig");
897
939
  var profileSettingAt = /* @__PURE__ */ __name((key, profile) => {
898
940
  if (key !== "permissions" && !key.startsWith("permissions."))
@@ -904,9 +946,7 @@ var profileSettingAt = /* @__PURE__ */ __name((key, profile) => {
904
946
  var addProfile = /* @__PURE__ */ __name((path, profile) => {
905
947
  if (readConfig(path).profiles.includes(profile))
906
948
  return;
907
- changeFile(path, void 0, (raw) => {
908
- profileEntry(raw, profile);
909
- });
949
+ changeFile(path, void 0, (raw) => void profileEntry(raw, profile));
910
950
  }, "addProfile");
911
951
  var filesZone = /* @__PURE__ */ __name((config) => config.filesTimezone ?? Intl.DateTimeFormat().resolvedOptions().timeZone, "filesZone");
912
952
 
@@ -930,8 +970,10 @@ export {
930
970
  permissionKeyForPath,
931
971
  permissionKeys,
932
972
  guardCommand,
973
+ ZOOM_SETTINGS,
933
974
  inspectConfig,
934
975
  readConfig,
976
+ migrateConfig,
935
977
  setConfig,
936
978
  unsetConfig,
937
979
  addProfile,