@wirecat/zoom-cli 0.60.0 → 0.61.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 (191) hide show
  1. package/README.md +7 -6
  2. package/dist/answers.d.ts +16 -0
  3. package/dist/answers.d.ts.map +1 -1
  4. package/dist/bin/main.js +1 -0
  5. package/dist/bin/main.js.map +1 -1
  6. package/dist/bin/zm.js +2 -2
  7. package/dist/bundle/{chunk-PUOBYJFI.js → all-profiles-HZLIU6RZ.js} +11 -7
  8. package/dist/bundle/answer-policy-GRODO2DY.js +96 -0
  9. package/dist/bundle/{anthropic-TT2XV74T.js → anthropic-O2YYPCVK.js} +4 -4
  10. package/dist/bundle/{app-server-POMYD6QV.js → app-server-YYCANTUE.js} +50 -50
  11. package/dist/bundle/{bun-JVDJVDHL.js → bun-UEFRULAT.js} +2 -2
  12. package/dist/bundle/{bun-sqlite-BBOPAQVG.js → bun-sqlite-VVYKOY7S.js} +3 -3
  13. package/dist/bundle/{chunk-KVPYI52N.js → chunk-2M2U43IF.js} +2 -2
  14. package/dist/bundle/{chunk-7GVNQOV6.js → chunk-35X6G276.js} +1 -1
  15. package/dist/bundle/{chunk-RH5YXXAB.js → chunk-3TGR4RDD.js} +32 -34
  16. package/dist/bundle/{chunk-YZZ6NBXC.js → chunk-4XI4PDEH.js} +31 -21
  17. package/dist/bundle/{chunk-W5EUHV3J.js → chunk-4XPIOW5L.js} +1 -1
  18. package/dist/bundle/{chunk-PU4FKK5T.js → chunk-5NRBNGR3.js} +2 -2
  19. package/dist/bundle/{chunk-LYZNVNJA.js → chunk-67WW33JB.js} +49 -24
  20. package/dist/bundle/{chunk-3P4LUGXI.js → chunk-6LHTWR3X.js} +2 -2
  21. package/dist/bundle/{chunk-SG3WSP7Y.js → chunk-6RV7KXDF.js} +7 -7
  22. package/dist/bundle/{chunk-VYUSEJE4.js → chunk-6SLGIPLT.js} +2 -2
  23. package/dist/bundle/{chunk-EOZWDEJL.js → chunk-77GJITSU.js} +2 -2
  24. package/dist/bundle/{chunk-72A7CIPL.js → chunk-7ATLKYBN.js} +17 -17
  25. package/dist/bundle/{chunk-YSZQ5SZK.js → chunk-7DMMNCY2.js} +3 -3
  26. package/dist/bundle/chunk-ABCHE4YP.js +217 -0
  27. package/dist/bundle/{chunk-G3MXAGF2.js → chunk-AOSIU5T6.js} +51 -38
  28. package/dist/bundle/{chunk-TAQKNWCD.js → chunk-B3PTSX5D.js} +2 -2
  29. package/dist/bundle/{chunk-J3N2LL37.js → chunk-B45MFBBF.js} +6 -6
  30. package/dist/bundle/{chunk-GNRYFESK.js → chunk-BNUNZTOU.js} +25 -25
  31. package/dist/bundle/{chunk-SK3K2VHF.js → chunk-BPQNTYLN.js} +388 -299
  32. package/dist/bundle/{chunk-LKV3NRCJ.js → chunk-CMG54Q4X.js} +120 -32
  33. package/dist/bundle/{chunk-DP5DX45H.js → chunk-COU66X3X.js} +7 -5
  34. package/dist/bundle/{chunk-NKFRV2LB.js → chunk-CUSGSXSR.js} +2 -2
  35. package/dist/bundle/{chunk-MFS52LTZ.js → chunk-DLAFGSTN.js} +1 -1
  36. package/dist/bundle/{chunk-DKIIKMSE.js → chunk-E4QPLXZT.js} +47 -47
  37. package/dist/bundle/{chunk-MGYFSXI5.js → chunk-E4T7IJJO.js} +26 -26
  38. package/dist/bundle/{chunk-AJA5ZAV6.js → chunk-F32GKBMF.js} +22 -5
  39. package/dist/bundle/{chunk-DN7VHENQ.js → chunk-FAOVUALC.js} +13 -13
  40. package/dist/bundle/{chunk-EF2RCQ3L.js → chunk-FBJC7OCI.js} +1 -1
  41. package/dist/bundle/{chunk-HIAO4MPA.js → chunk-FQ54A7GI.js} +1 -1
  42. package/dist/bundle/{chunk-EXFAA4N3.js → chunk-FXY45HU7.js} +6 -6
  43. package/dist/bundle/{chunk-2EVRKK75.js → chunk-GNHPYQMM.js} +2 -2
  44. package/dist/bundle/{chunk-M5WLBRL7.js → chunk-H5EAHMQN.js} +11 -11
  45. package/dist/bundle/chunk-HF233RN4.js +335 -0
  46. package/dist/bundle/{chunk-24DLFGES.js → chunk-HTGBUE2U.js} +2 -2
  47. package/dist/bundle/{chunk-RSLXLUTS.js → chunk-IKZFR645.js} +10 -10
  48. package/dist/bundle/chunk-JKWYXBGK.js +380 -0
  49. package/dist/bundle/{chunk-DAQXO6SM.js → chunk-KGZHRJ7H.js} +4 -4
  50. package/dist/bundle/{chunk-ZK7Y5K63.js → chunk-KPZIQKOF.js} +1 -1
  51. package/dist/bundle/{chunk-7T3BUWJK.js → chunk-KXYURHVE.js} +118 -95
  52. package/dist/bundle/{chunk-4HZRZDMC.js → chunk-KZGHGU2M.js} +4 -4
  53. package/dist/bundle/{chunk-2TV7UTHK.js → chunk-KZV5GU7G.js} +8 -8
  54. package/dist/bundle/{chunk-YIMI6O7R.js → chunk-L7VIPVHL.js} +263 -199
  55. package/dist/bundle/{chunk-XLJV3ZOH.js → chunk-LPJ3S6GE.js} +1 -1
  56. package/dist/bundle/{chunk-HBYE4EP2.js → chunk-LX6DO44O.js} +1 -1
  57. package/dist/bundle/{chunk-3UMXCNDI.js → chunk-LXOSBFWW.js} +7 -7
  58. package/dist/bundle/{chunk-KUBCUE6T.js → chunk-M3EVVGR6.js} +2 -2
  59. package/dist/bundle/{chunk-WVXAQVLG.js → chunk-MBMDF5EL.js} +6 -6
  60. package/dist/bundle/{chunk-KUBWRI5E.js → chunk-MTAVA2LS.js} +2 -2
  61. package/dist/bundle/{chunk-AQDWGJZT.js → chunk-MVRCLMQL.js} +39 -2
  62. package/dist/bundle/{chunk-UOFOMU3T.js → chunk-NVN4O5IC.js} +14 -10
  63. package/dist/bundle/{chunk-SKENSSY2.js → chunk-O3WVOAT7.js} +408 -420
  64. package/dist/bundle/{chunk-EROQ5SC7.js → chunk-OLZE27RS.js} +2 -2
  65. package/dist/bundle/{chunk-22UBF6U6.js → chunk-OMUX4LSS.js} +4 -4
  66. package/dist/bundle/{chunk-QJCVOVNR.js → chunk-OU46OTTE.js} +3 -3
  67. package/dist/bundle/{chunk-JBGYI5BY.js → chunk-OVVDOVLN.js} +2 -2
  68. package/dist/bundle/{chunk-I45V6AFG.js → chunk-P2NRA7E5.js} +2 -2
  69. package/dist/bundle/{chunk-7PQY4ISY.js → chunk-PCUPOGKR.js} +6 -4
  70. package/dist/bundle/{chunk-4MC4Z45G.js → chunk-QHT2LZRW.js} +6 -6
  71. package/dist/bundle/{decode-UBPIHVNG.js → chunk-RGOBGHWE.js} +21 -18
  72. package/dist/bundle/{chunk-UOL4ILXT.js → chunk-RSXLI5GP.js} +79 -59
  73. package/dist/bundle/{chunk-RNX73QCL.js → chunk-S726LZCH.js} +6 -6
  74. package/dist/bundle/{chunk-TB72GE55.js → chunk-SVBM6F4Z.js} +1 -1
  75. package/dist/bundle/{chunk-GXACHTB2.js → chunk-T7IQMYPW.js} +15 -3
  76. package/dist/bundle/{chunk-Q4NDCDFG.js → chunk-TD4Y5LXG.js} +25 -22
  77. package/dist/bundle/{chunk-V2QOLHPM.js → chunk-U4Y2QQ2D.js} +3 -3
  78. package/dist/bundle/{chunk-ODFIV4OS.js → chunk-UPWHCUVA.js} +617 -380
  79. package/dist/bundle/{chunk-E3AMUYNB.js → chunk-UYAKSUT5.js} +5 -5
  80. package/dist/bundle/{chunk-J5ZVGKSZ.js → chunk-VARX3SBT.js} +1 -1
  81. package/dist/bundle/{chunk-IFXPNXAH.js → chunk-WVYSOV3C.js} +16 -4
  82. package/dist/bundle/{chunk-LZBWU2IA.js → chunk-XOJGXWTK.js} +8 -8
  83. package/dist/bundle/{chunk-4FTPE5SB.js → chunk-XX2PDQ54.js} +31 -211
  84. package/dist/bundle/{chunk-D6L35XQS.js → chunk-XZ4OVTA5.js} +9 -9
  85. package/dist/bundle/{chunk-XAF2LHZG.js → chunk-YESOQEOB.js} +735 -826
  86. package/dist/bundle/{cli-WIMAOCXF.js → cli-O4LAGYXI.js} +60 -54
  87. package/dist/bundle/command-contract-67QKBY6M.js +38 -0
  88. package/dist/bundle/config-ABURZDD2.js +78 -0
  89. package/dist/bundle/decode-WRMZJJCR.js +20 -0
  90. package/dist/bundle/{dist-YYDTME5J.js → dist-SQK4GIJT.js} +14 -14
  91. package/dist/bundle/{echarts-4OQHS575.js → echarts-3DOOJSQR.js} +2 -2
  92. package/dist/bundle/{embed-7JHEPBFD.js → embed-OYRHTMFI.js} +4 -4
  93. package/dist/bundle/{embedder-HTRPWR6T.js → embedder-ZAYCL22W.js} +7 -7
  94. package/dist/bundle/{first-run-I52ADRJ2.js → first-run-QXSPIXOQ.js} +8 -8
  95. package/dist/bundle/first-screen-MD6HWIJW.js +36 -0
  96. package/dist/bundle/{folders-5ZBUQHAM.js → folders-EXQLKXVK.js} +2 -2
  97. package/dist/bundle/{instructions-3QZBKKPF.js → instructions-GFEOB7XJ.js} +1 -1
  98. package/dist/bundle/{main-64VVZ5QG.js → main-RADF3CRI.js} +17 -16
  99. package/dist/bundle/{mcp-OQBZXELQ.js → mcp-WSGVVZWI.js} +2 -2
  100. package/dist/bundle/{meetings-RD3NU6NN.js → meetings-6BIIT42H.js} +4 -4
  101. package/dist/bundle/{node-R2BLYUSB.js → node-A3B2YRQI.js} +2 -2
  102. package/dist/bundle/{node-sqlite-DGEEDBXV.js → node-sqlite-XRP5FUDY.js} +3 -3
  103. package/dist/bundle/{oauth-NRZMCFH3.js → oauth-YICY4AN4.js} +5 -5
  104. package/dist/bundle/{open-SUGCOCAU.js → open-4CNKSQRB.js} +2 -2
  105. package/dist/bundle/openai-YYRO3X7I.js +22 -0
  106. package/dist/bundle/{output-file-SXV2ANW7.js → output-file-7BXYV6OL.js} +3 -3
  107. package/dist/bundle/{process-IX5YWGDP.js → process-A45QXKID.js} +1 -1
  108. package/dist/bundle/{program-WGNTV7NS.js → program-DTP7BRTW.js} +422 -431
  109. package/dist/bundle/{prompt-NICXDWN3.js → prompt-5LMKO7SE.js} +3 -3
  110. package/dist/bundle/{recognize-6DAHO6X6.js → recognize-MB6WRGUD.js} +4 -2
  111. package/dist/bundle/{remote-JZ3TXP6I.js → remote-PD7WMTTS.js} +5 -5
  112. package/dist/bundle/{rerank-YSXWCAGZ.js → rerank-7E6GQ5Y6.js} +5 -5
  113. package/dist/bundle/{run-log-APHZZWC7.js → run-log-TCFK4LEC.js} +53 -53
  114. package/dist/bundle/{chunk-HWZXQLR5.js → serve-JBT2BWHK.js} +8 -6
  115. package/dist/bundle/server-CFIKEPLG.js +66 -0
  116. package/dist/bundle/{chunk-EH6G2LEU.js → server-H2UPGGBI.js} +43 -10
  117. package/dist/bundle/{services-D64U72OE.js → services-SJOTKL5V.js} +33 -26
  118. package/dist/bundle/{speech-QLCQAT4O.js → speech-4SL25GSC.js} +28 -5
  119. package/dist/bundle/{state-KAD3R27T.js → state-FVMTDZ6B.js} +4 -4
  120. package/dist/bundle/{store-7UNPRLZ3.js → store-DNPKBUVO.js} +13 -13
  121. package/dist/bundle/{store-2BHHS77S.js → store-TI77SCNL.js} +15 -15
  122. package/dist/bundle/store-connection-GIFWWMNO.js +76 -0
  123. package/dist/bundle/store-maintenance-command-WBKGF2CZ.js +55 -0
  124. package/dist/bundle/{streaming-AK6Q2ZGQ.js → streaming-UHAHGPH5.js} +4 -4
  125. package/dist/bundle/{tokens-CCM3D4ZT.js → tokens-Y2MX6JBL.js} +4 -4
  126. package/dist/bundle/zm.js +1 -1
  127. package/dist/commands.d.ts +1 -2
  128. package/dist/commands.d.ts.map +1 -1
  129. package/dist/commands.js +3 -16
  130. package/dist/commands.js.map +1 -1
  131. package/dist/contract-overrides.d.ts +0 -2
  132. package/dist/contract-overrides.d.ts.map +1 -1
  133. package/dist/contract-overrides.js +0 -158
  134. package/dist/contract-overrides.js.map +1 -1
  135. package/dist/login.d.ts +1 -0
  136. package/dist/login.d.ts.map +1 -1
  137. package/dist/login.js +1 -1
  138. package/dist/login.js.map +1 -1
  139. package/dist/program-bindings.d.ts +1 -1
  140. package/dist/program-bindings.d.ts.map +1 -1
  141. package/dist/program-bindings.js +16 -18
  142. package/dist/program-bindings.js.map +1 -1
  143. package/dist/program.d.ts +2 -4
  144. package/dist/program.d.ts.map +1 -1
  145. package/dist/program.js.map +1 -1
  146. package/dist/read-only.d.ts.map +1 -1
  147. package/dist/read-only.js +3 -0
  148. package/dist/read-only.js.map +1 -1
  149. package/dist/recording-schedule-setup.d.ts.map +1 -1
  150. package/dist/recording-schedule-setup.js +1 -0
  151. package/dist/recording-schedule-setup.js.map +1 -1
  152. package/dist/run.d.ts.map +1 -1
  153. package/dist/run.js +82 -32
  154. package/dist/run.js.map +1 -1
  155. package/dist/setup-commands.d.ts.map +1 -1
  156. package/dist/setup-commands.js +14 -47
  157. package/dist/setup-commands.js.map +1 -1
  158. package/dist/store-commands.d.ts.map +1 -1
  159. package/dist/store-commands.js +4 -1
  160. package/dist/store-commands.js.map +1 -1
  161. package/dist/tokens.d.ts +15 -0
  162. package/dist/tokens.d.ts.map +1 -1
  163. package/dist/tokens.js +40 -1
  164. package/dist/tokens.js.map +1 -1
  165. package/dist/version.d.ts +1 -1
  166. package/dist/version.js +1 -1
  167. package/package.json +3 -3
  168. package/dist/bundle/all-profiles-7OZPJY76.js +0 -25
  169. package/dist/bundle/answer-policy-PVWMA2QC.js +0 -96
  170. package/dist/bundle/chunk-57LT4A2E.js +0 -48
  171. package/dist/bundle/chunk-XMCVB4Q4.js +0 -390
  172. package/dist/bundle/chunk-YLBNPI7H.js +0 -2
  173. package/dist/bundle/command-contract-J7PDZQMC.js +0 -38
  174. package/dist/bundle/config-G62PBNZF.js +0 -79
  175. package/dist/bundle/first-screen-XNCFWOLC.js +0 -36
  176. package/dist/bundle/mcp-5SJXWEJW.js +0 -92
  177. package/dist/bundle/mcp-ZMIPDB4R.js +0 -189
  178. package/dist/bundle/serve-7VWL475U.js +0 -19
  179. package/dist/bundle/server-7LABFAA5.js +0 -53
  180. package/dist/bundle/server-VFXB5WRG.js +0 -66
  181. package/dist/bundle/store-connection-QTMLZ7LR.js +0 -76
  182. package/dist/bundle/store-maintenance-command-ND6PQCVZ.js +0 -54
  183. package/dist/mcp-command.d.ts +0 -33
  184. package/dist/mcp-command.d.ts.map +0 -1
  185. package/dist/mcp-command.js +0 -143
  186. package/dist/mcp-command.js.map +0 -1
  187. package/dist/mcp.d.ts +0 -30
  188. package/dist/mcp.d.ts.map +0 -1
  189. package/dist/mcp.js +0 -110
  190. package/dist/mcp.js.map +0 -1
  191. /package/dist/bundle/{chunk-O5EHUB2V.js → chunk-62EDJKGP.js} +0 -0
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answerOf,
5
5
  messengerContext
6
- } from "./chunk-MGYFSXI5.js";
6
+ } from "./chunk-E4T7IJJO.js";
7
7
  import {
8
8
  chatEventAnswer,
9
9
  memberAnswer,
@@ -12,14 +12,14 @@ import {
12
12
  serveRelay,
13
13
  typedQuery,
14
14
  withQuery
15
- } from "./chunk-Q4NDCDFG.js";
15
+ } from "./chunk-TD4Y5LXG.js";
16
16
  import {
17
17
  holdLock,
18
18
  lockPath,
19
19
  releaseLock,
20
20
  servingProfiles,
21
21
  takeLock
22
- } from "./chunk-QJCVOVNR.js";
22
+ } from "./chunk-OU46OTTE.js";
23
23
  import {
24
24
  RULES_VERSION,
25
25
  applyTaskRulesOnArrival,
@@ -29,7 +29,7 @@ import {
29
29
  senderIsMe,
30
30
  servicesFor,
31
31
  syncsOneChat
32
- } from "./chunk-XAF2LHZG.js";
32
+ } from "./chunk-YESOQEOB.js";
33
33
  import {
34
34
  Command,
35
35
  LOCAL_READ,
@@ -53,38 +53,38 @@ import {
53
53
  snakeKeys,
54
54
  storeTable,
55
55
  withoutProviderRefs
56
- } from "./chunk-G3MXAGF2.js";
56
+ } from "./chunk-AOSIU5T6.js";
57
57
  import {
58
58
  envName
59
- } from "./chunk-3P4LUGXI.js";
59
+ } from "./chunk-6LHTWR3X.js";
60
60
  import {
61
61
  holdersOf
62
- } from "./chunk-W5EUHV3J.js";
62
+ } from "./chunk-4XPIOW5L.js";
63
63
  import {
64
64
  codeOf,
65
65
  currentRun
66
- } from "./chunk-YZZ6NBXC.js";
66
+ } from "./chunk-4XI4PDEH.js";
67
67
  import {
68
68
  failureKey
69
- } from "./chunk-EOZWDEJL.js";
69
+ } from "./chunk-77GJITSU.js";
70
70
  import {
71
71
  renderMessages
72
- } from "./chunk-TAQKNWCD.js";
72
+ } from "./chunk-B3PTSX5D.js";
73
73
  import {
74
74
  levelFor
75
- } from "./chunk-NKFRV2LB.js";
75
+ } from "./chunk-CUSGSXSR.js";
76
76
  import {
77
77
  readSecret
78
- } from "./chunk-YSZQ5SZK.js";
78
+ } from "./chunk-7DMMNCY2.js";
79
79
  import {
80
80
  checkedOptions,
81
81
  range
82
- } from "./chunk-2EVRKK75.js";
82
+ } from "./chunk-GNHPYQMM.js";
83
83
  import {
84
84
  messagesFor,
85
85
  systemFor,
86
86
  validateImages
87
- } from "./chunk-I45V6AFG.js";
87
+ } from "./chunk-P2NRA7E5.js";
88
88
  import {
89
89
  MIGRATIONS,
90
90
  drainNoteIndex,
@@ -111,20 +111,20 @@ import {
111
111
  storeClients,
112
112
  storeContents,
113
113
  vectorIndexCounts
114
- } from "./chunk-ODFIV4OS.js";
114
+ } from "./chunk-UPWHCUVA.js";
115
115
  import {
116
116
  formatLocator,
117
117
  parseLocator
118
- } from "./chunk-EXFAA4N3.js";
118
+ } from "./chunk-FXY45HU7.js";
119
119
  import {
120
120
  storePath
121
- } from "./chunk-KUBCUE6T.js";
121
+ } from "./chunk-M3EVVGR6.js";
122
122
  import {
123
123
  openCache
124
- } from "./chunk-WVXAQVLG.js";
124
+ } from "./chunk-MBMDF5EL.js";
125
125
  import {
126
126
  queryFieldsOf
127
- } from "./chunk-UOFOMU3T.js";
127
+ } from "./chunk-NVN4O5IC.js";
128
128
  import {
129
129
  CliError,
130
130
  Credentials,
@@ -153,7 +153,7 @@ import {
153
153
  trim,
154
154
  union,
155
155
  writeSecurely
156
- } from "./chunk-YIMI6O7R.js";
156
+ } from "./chunk-L7VIPVHL.js";
157
157
  import {
158
158
  __commonJS,
159
159
  __name,
@@ -5493,11 +5493,11 @@ var require_liquid_node = __commonJS({
5493
5493
  }
5494
5494
  });
5495
5495
 
5496
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5496
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5497
5497
  import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
5498
5498
  import { dirname, resolve } from "node:path";
5499
5499
 
5500
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sealed.js
5500
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/sealed.js
5501
5501
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5502
5502
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5503
5503
  import { Transform } from "node:stream";
@@ -5604,7 +5604,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5604
5604
  renameSync(pending, to);
5605
5605
  }, "unsealFile");
5606
5606
 
5607
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5607
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5608
5608
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5609
5609
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5610
5610
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5628,7 +5628,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5628
5628
  };
5629
5629
  }, "compatibilityOf");
5630
5630
 
5631
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/repair.js
5631
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/repair.js
5632
5632
  import { createHash as createHash2 } from "node:crypto";
5633
5633
  var COPY_MARK = "__repair_";
5634
5634
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5882,7 +5882,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5882
5882
  return found;
5883
5883
  }, "deleteCopy");
5884
5884
 
5885
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5885
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5886
5886
  import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
5887
5887
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
5888
5888
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
@@ -5930,7 +5930,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
5930
5930
  }), "storeInfoCommand");
5931
5931
  var sharedStoreCommand = /* @__PURE__ */ __name(() => annotate(new Command("store"), { effects: LOCAL_READ }).description("the shared local store every WireCat tool reads").addCommand(storeInfoCommand()), "sharedStoreCommand");
5932
5932
 
5933
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5933
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5934
5934
  var ENCRYPT_OPTION = [
5935
5935
  "--encrypt",
5936
5936
  "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"
@@ -5949,7 +5949,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
5949
5949
  return password;
5950
5950
  }, "passwordOf");
5951
5951
 
5952
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/replies/rules.js
5952
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/replies/rules.js
5953
5953
  import { existsSync as existsSync3, readFileSync } from "node:fs";
5954
5954
  import { join } from "node:path";
5955
5955
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6120,7 +6120,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6120
6120
  }, "problem");
6121
6121
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6122
6122
 
6123
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/replies/state.js
6123
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/replies/state.js
6124
6124
  import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
6125
6125
  import { join as join2 } from "node:path";
6126
6126
  var ANSWERED_KEPT = 1e3;
@@ -6173,7 +6173,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6173
6173
  }, "recordReply");
6174
6174
  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");
6175
6175
 
6176
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/replies/decide.js
6176
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/replies/decide.js
6177
6177
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6178
6178
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6179
6179
  const { message, chat, owner, sender } = incoming;
@@ -6279,7 +6279,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
6279
6279
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
6280
6280
  }, "filled");
6281
6281
 
6282
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/replies/template.js
6282
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/replies/template.js
6283
6283
  var import_liquidjs = __toESM(require_liquid_node(), 1);
6284
6284
  var TEMPLATE_LIMITS = {
6285
6285
  parse: 32768,
@@ -6439,7 +6439,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
6439
6439
  }
6440
6440
  }, "renderReplyTemplate");
6441
6441
 
6442
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6442
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6443
6443
  var DRY_RUN_DAYS = 7;
6444
6444
  var PAGE = 500;
6445
6445
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -6553,7 +6553,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
6553
6553
  }
6554
6554
  }, "storedSince");
6555
6555
 
6556
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6556
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6557
6557
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
6558
6558
  const host = new URL(baseUrl).host;
6559
6559
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -6584,7 +6584,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
6584
6584
  };
6585
6585
  }, "embeddingKeys");
6586
6586
 
6587
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/models/openai.js
6587
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/models/openai.js
6588
6588
  var options = strictObject({
6589
6589
  temperature: range(0, 2),
6590
6590
  top_p: range(0, 1),
@@ -6633,7 +6633,7 @@ var openai = {
6633
6633
  }, "complete")
6634
6634
  };
6635
6635
 
6636
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/models/index.js
6636
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/models/index.js
6637
6637
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
6638
6638
  complete: /* @__PURE__ */ __name(async (request) => {
6639
6639
  if (deps.signal?.aborted)
@@ -6648,7 +6648,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6648
6648
  if (!adapter && target.provider === "openai")
6649
6649
  adapter = openai;
6650
6650
  if (!adapter && target.provider === "anthropic")
6651
- adapter = (await import("./anthropic-TT2XV74T.js")).anthropic;
6651
+ adapter = (await import("./anthropic-O2YYPCVK.js")).anthropic;
6652
6652
  if (!adapter)
6653
6653
  throw new CliError("validation_error", `no model adapter for ${target.provider}`);
6654
6654
  if (request.images !== void 0 && adapter.images !== true)
@@ -6689,7 +6689,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6689
6689
  }, "complete")
6690
6690
  }), "modelGateway");
6691
6691
 
6692
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/replies/consents.js
6692
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/replies/consents.js
6693
6693
  import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
6694
6694
  import { join as join3 } from "node:path";
6695
6695
  var shape = strictObject({
@@ -6714,7 +6714,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
6714
6714
  return consent.provider === provider && !consent.deniedChats.includes(chat);
6715
6715
  }, "mayModelReply");
6716
6716
 
6717
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6717
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6718
6718
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
6719
6719
  ai: true
6720
6720
  }) => async (rule2, message, chat, now) => {
@@ -6761,7 +6761,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
6761
6761
  return result2;
6762
6762
  }, "replyRenderer");
6763
6763
 
6764
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/replies/serve.js
6764
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/replies/serve.js
6765
6765
  var NOT_ALLOWED = "replies.send is not allow";
6766
6766
  var NO_RULES = "no rules";
6767
6767
  var ONLY_TASK = "opened a task, sent nothing";
@@ -6854,7 +6854,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
6854
6854
  return { skip: why };
6855
6855
  }, "replyTo");
6856
6856
 
6857
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6857
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6858
6858
  var FIRST_FETCH_MS = 6e4;
6859
6859
  var DAY_MS = 864e5;
6860
6860
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -6908,7 +6908,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
6908
6908
  };
6909
6909
  }, "memberFetches");
6910
6910
 
6911
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6911
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6912
6912
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
6913
6913
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
6914
6914
  if (context.format === "pretty") {
@@ -6941,7 +6941,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
6941
6941
  return context;
6942
6942
  }, "recordDiagnostics");
6943
6943
 
6944
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
6944
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
6945
6945
  var STEMS_EVERY_MS = 3e4;
6946
6946
  var STEMS_SLICE_MS = 2e3;
6947
6947
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -6981,7 +6981,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
6981
6981
  };
6982
6982
  }, "stemFills");
6983
6983
 
6984
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
6984
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
6985
6985
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
6986
6986
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
6987
6987
  kind: attachment.kind,
@@ -7076,7 +7076,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
7076
7076
  locale: messenger.app.locale
7077
7077
  }), "viewOf");
7078
7078
 
7079
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7079
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7080
7080
  var observed = /* @__PURE__ */ __name((value) => ({
7081
7081
  value: value.value,
7082
7082
  observed_at: value.observedAt,
@@ -7143,7 +7143,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
7143
7143
  }
7144
7144
  }, "watchEventItem");
7145
7145
 
7146
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7146
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7147
7147
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
7148
7148
  output: { entity: "watch_item" },
7149
7149
  effects: REMOTE_READ,
@@ -7298,7 +7298,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
7298
7298
  }
7299
7299
  }, "describe");
7300
7300
 
7301
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7301
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7302
7302
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
7303
7303
  const command = annotate(new Command("serve"), {
7304
7304
  output: { entity: "serve_summary" },
@@ -7514,7 +7514,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
7514
7514
  };
7515
7515
  }, "tasking");
7516
7516
 
7517
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7517
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7518
7518
  import { existsSync as existsSync6 } from "node:fs";
7519
7519
  var PATH = "store tables list";
7520
7520
  var STORE_TABLES_QUERY = {
@@ -7557,7 +7557,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
7557
7557
  return tables;
7558
7558
  }, "storeTablesCommand");
7559
7559
 
7560
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7560
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7561
7561
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
7562
7562
  var WORD_INDEX = "message_words";
7563
7563
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -2,17 +2,17 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  refuseLacking
5
- } from "./chunk-Q4NDCDFG.js";
5
+ } from "./chunk-TD4Y5LXG.js";
6
6
  import {
7
7
  servingProfiles
8
- } from "./chunk-QJCVOVNR.js";
8
+ } from "./chunk-OU46OTTE.js";
9
9
  import {
10
10
  OFFLINE,
11
11
  capability,
12
12
  chatIdIn,
13
13
  servicesFor,
14
14
  throughWrapper
15
- } from "./chunk-XAF2LHZG.js";
15
+ } from "./chunk-YESOQEOB.js";
16
16
  import {
17
17
  asFirstWord,
18
18
  baseContext,
@@ -23,14 +23,14 @@ import {
23
23
  recalledAccount,
24
24
  rememberAccount,
25
25
  rootOf2 as rootOf
26
- } from "./chunk-G3MXAGF2.js";
26
+ } from "./chunk-AOSIU5T6.js";
27
27
  import {
28
28
  MESSENGER_CHANGE_REFUSAL,
29
29
  readOnlyRefusal
30
- } from "./chunk-3P4LUGXI.js";
30
+ } from "./chunk-6LHTWR3X.js";
31
31
  import {
32
32
  providerErrorKey
33
- } from "./chunk-LZBWU2IA.js";
33
+ } from "./chunk-XOJGXWTK.js";
34
34
  import {
35
35
  LOG_ATTRIBUTES,
36
36
  codeOf,
@@ -38,15 +38,15 @@ import {
38
38
  currentRun,
39
39
  fromLogAttributes,
40
40
  logAttributes
41
- } from "./chunk-YZZ6NBXC.js";
41
+ } from "./chunk-4XI4PDEH.js";
42
42
  import {
43
43
  isCliFailure
44
- } from "./chunk-EOZWDEJL.js";
44
+ } from "./chunk-77GJITSU.js";
45
45
  import {
46
46
  foldName,
47
47
  isId,
48
48
  pickPerson
49
- } from "./chunk-RNX73QCL.js";
49
+ } from "./chunk-S726LZCH.js";
50
50
  import {
51
51
  AUTHORITY_KEY,
52
52
  CEILING_KEY,
@@ -57,22 +57,22 @@ import {
57
57
  levelFor,
58
58
  readKeysForCommand,
59
59
  skipFlagFor
60
- } from "./chunk-NKFRV2LB.js";
60
+ } from "./chunk-CUSGSXSR.js";
61
61
  import {
62
62
  openStore
63
- } from "./chunk-ODFIV4OS.js";
63
+ } from "./chunk-UPWHCUVA.js";
64
64
  import {
65
65
  CliError,
66
66
  logRecordOf,
67
67
  realSleep,
68
68
  resolvePaths,
69
69
  writeSecurely
70
- } from "./chunk-YIMI6O7R.js";
70
+ } from "./chunk-L7VIPVHL.js";
71
71
  import {
72
72
  __name
73
73
  } from "./chunk-ZVVMGPBJ.js";
74
74
 
75
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
75
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
76
76
  import { openSync } from "node:fs";
77
77
  import { createInterface } from "node:readline";
78
78
  import { ReadStream } from "node:tty";
@@ -127,10 +127,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
127
127
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
128
128
  }, "terminalAsker");
129
129
 
130
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/guard.js
130
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/sends/guard.js
131
131
  import { randomUUID } from "node:crypto";
132
132
 
133
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/flood.js
133
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/sends/flood.js
134
134
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
135
135
  import { dirname, join } from "node:path";
136
136
  var MOST_DEADLINES = 50;
@@ -214,11 +214,11 @@ var FloodMemory = class {
214
214
  }
215
215
  };
216
216
 
217
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/journal.js
217
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/sends/journal.js
218
218
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
219
219
  import { dirname as dirname3, join as join2 } from "node:path";
220
220
 
221
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
221
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
222
222
  import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
223
223
  import { dirname as dirname2 } from "node:path";
224
224
  var LOCK_WAIT_MS = 5e3;
@@ -285,7 +285,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
285
285
  }
286
286
  }, "lockTime");
287
287
 
288
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/journal.js
288
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/sends/journal.js
289
289
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
290
290
  var SendJournal = class {
291
291
  static {
@@ -362,7 +362,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
362
362
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
363
363
  }, "withSendId");
364
364
 
365
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/recipients.js
365
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/sends/recipients.js
366
366
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
367
367
  import { join as join3 } from "node:path";
368
368
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -474,7 +474,7 @@ var RecipientList = class {
474
474
  }
475
475
  };
476
476
 
477
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/guard.js
477
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/sends/guard.js
478
478
  var HOUR_MS = 60 * 60 * 1e3;
479
479
  var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
480
480
  "attachments.extract",
@@ -667,7 +667,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
667
667
  }), "guardFor");
668
668
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
669
669
 
670
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
670
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
671
671
  var HOUSEKEEPING = /* @__PURE__ */ new Set([
672
672
  "help",
673
673
  "guide",
@@ -746,7 +746,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
746
746
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
747
747
  }, "refuseUnknownPermissionKeys");
748
748
 
749
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
749
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
750
750
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
751
751
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false }) => {
752
752
  let warned = false;
@@ -1238,7 +1238,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1238
1238
  }
1239
1239
  }, "keep");
1240
1240
 
1241
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/sends/pace.js
1241
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/sends/pace.js
1242
1242
  import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
1243
1243
  import { join as join4 } from "node:path";
1244
1244
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -1297,7 +1297,7 @@ var Pacer = class {
1297
1297
  }
1298
1298
  };
1299
1299
 
1300
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
1300
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
1301
1301
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
1302
1302
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
1303
1303
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -1416,7 +1416,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
1416
1416
  });
1417
1417
  }, "flooded");
1418
1418
 
1419
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
1419
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
1420
1420
  var observed = /* @__PURE__ */ __name((messenger, events) => {
1421
1421
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
1422
1422
  const write = currentOperation();
@@ -1515,7 +1515,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
1515
1515
  counts[part] = (counts[part] ?? 0) + items.length;
1516
1516
  }, "byPart");
1517
1517
 
1518
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1518
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1519
1519
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1520
1520
  let opened;
1521
1521
  return {
@@ -7,15 +7,15 @@ import {
7
7
  modelsDirectory,
8
8
  speechModel,
9
9
  vadPath
10
- } from "./chunk-7PQY4ISY.js";
10
+ } from "./chunk-PCUPOGKR.js";
11
11
  import {
12
12
  CliError
13
- } from "./chunk-YIMI6O7R.js";
13
+ } from "./chunk-L7VIPVHL.js";
14
14
  import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/speech/local.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/speech/local.js
19
19
  import { createHash } from "node:crypto";
20
20
  import { isAbsolute } from "node:path";
21
21
  import { setImmediate } from "node:timers/promises";
@@ -37,6 +37,22 @@ var localSpeechRecognitionModel = /* @__PURE__ */ __name((id) => {
37
37
  })).digest("hex");
38
38
  return Object.freeze({ engine: "sherpa-onnx", model: model.id, version, sampleRate: 16e3, maxChunkSamples: 48e4 });
39
39
  }, "localSpeechRecognitionModel");
40
+ var notInstalled = /* @__PURE__ */ __name((id) => new CliError("not_found", `speech model ${id} is not installed; download it explicitly with a WireCat messenger's models download command`, { reason: "model.not-downloaded", model: id }), "notInstalled");
41
+ var recognizeLocalPieces = /* @__PURE__ */ __name(async (id, audio, options = {}) => {
42
+ const model = speechModel(id);
43
+ const directory = options.directory ?? modelsDirectory(options.env);
44
+ if (!isInstalled(model, directory))
45
+ throw notInstalled(model.id);
46
+ const { openRecognizer, toModelRate } = await import("./recognize-MB6WRGUD.js");
47
+ const engine = (options.open ?? openRecognizer)(model, modelPath(directory, model), vadPath(directory));
48
+ try {
49
+ if (!engine.pieces)
50
+ throw new CliError("configuration_error", "this speech backend gives no timed pieces");
51
+ return engine.pieces(toModelRate(audio.samples, audio.rate));
52
+ } finally {
53
+ engine.free();
54
+ }
55
+ }, "recognizeLocalPieces");
40
56
  var openLocalSpeechRecognizer = /* @__PURE__ */ __name(async (id, input = {}) => {
41
57
  const options = { ...input };
42
58
  const description = localSpeechRecognitionModel(id);
@@ -47,8 +63,8 @@ var openLocalSpeechRecognizer = /* @__PURE__ */ __name(async (id, input = {}) =>
47
63
  throw new CliError("validation_error", "local speech requires an absolute model directory and bounded output bytes");
48
64
  cancelled(options.signal);
49
65
  if (!isInstalled(model, directory))
50
- throw new CliError("not_found", `speech model ${description.model} is not installed; download it explicitly with a WireCat messenger's models download command`, { reason: "model.not-downloaded", model: description.model });
51
- const { openRecognizer, toModelRate } = await import("./recognize-6DAHO6X6.js");
66
+ throw notInstalled(description.model);
67
+ const { openRecognizer, toModelRate } = await import("./recognize-MB6WRGUD.js");
52
68
  cancelled(options.signal);
53
69
  const engine = (options.open ?? openRecognizer)(model, modelPath(directory, model), vadPath(directory));
54
70
  let closing = false;
@@ -96,5 +112,6 @@ var openLocalSpeechRecognizer = /* @__PURE__ */ __name(async (id, input = {}) =>
96
112
 
97
113
  export {
98
114
  localSpeechRecognitionModel,
115
+ recognizeLocalPieces,
99
116
  openLocalSpeechRecognizer
100
117
  };