@wirecat/zoom-cli 0.81.0 → 0.82.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 (188) hide show
  1. package/dist/answers.d.ts +56 -0
  2. package/dist/answers.d.ts.map +1 -1
  3. package/dist/bin/zm.js +2 -2
  4. package/dist/bundle/agent-F4TRJWWS.js +46 -0
  5. package/dist/bundle/{all-profiles-3ASMN35R.js → all-profiles-RULEKTDQ.js} +12 -12
  6. package/dist/bundle/answer-policy-6XC57AEZ.js +131 -0
  7. package/dist/bundle/{anthropic-XXI53VNI.js → anthropic-4NAQBZFL.js} +6 -6
  8. package/dist/bundle/{app-server-B7WLNZNQ.js → app-server-VLR42U5L.js} +78 -76
  9. package/dist/bundle/{bun-2FLR4IV4.js → bun-OPDGMZZQ.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-3NNHTOGM.js → bun-sqlite-HC6X4AOX.js} +7 -7
  11. package/dist/bundle/{chunk-JKEMW6E4.js → chunk-274SLQNW.js} +2 -2
  12. package/dist/bundle/{chunk-IFM4G4MT.js → chunk-2CI2OEZQ.js} +4 -4
  13. package/dist/bundle/{chunk-4B335BCJ.js → chunk-2DBF2IIC.js} +5 -5
  14. package/dist/bundle/{chunk-437DLSB3.js → chunk-2GP573Q4.js} +14997 -11784
  15. package/dist/bundle/{chunk-2Z7UOXFC.js → chunk-2JHVQMVC.js} +1 -1
  16. package/dist/bundle/{chunk-D7CDHBDX.js → chunk-2SWKQ7C4.js} +1 -1
  17. package/dist/bundle/{chunk-GCAJW4SR.js → chunk-2XBDILVW.js} +1 -1
  18. package/dist/bundle/{chunk-XYQVVW4R.js → chunk-3HC5F3P7.js} +1 -1
  19. package/dist/bundle/{chunk-YUDVRFXN.js → chunk-3YM4B2GT.js} +1 -1
  20. package/dist/bundle/{chunk-AWJQ6FAX.js → chunk-434YFJAE.js} +2 -2
  21. package/dist/bundle/{chunk-G3DWMG7Y.js → chunk-4HLQ2JGK.js} +4 -4
  22. package/dist/bundle/{chunk-F5ZAN7OC.js → chunk-4N7PP76S.js} +1 -1
  23. package/dist/bundle/{chunk-WKNYNK7W.js → chunk-52Y4ETKU.js} +4 -4
  24. package/dist/bundle/{chunk-VXD65V67.js → chunk-5HAUK3I4.js} +1546 -2006
  25. package/dist/bundle/{chunk-2RFWRJFK.js → chunk-5KYQ53EF.js} +13 -9
  26. package/dist/bundle/{chunk-N62P5FY4.js → chunk-5TU7Y5UW.js} +12 -12
  27. package/dist/bundle/{chunk-2ELGSNX3.js → chunk-66ALX4ZI.js} +168 -168
  28. package/dist/bundle/{chunk-SRUAUMBL.js → chunk-676C2LE6.js} +12 -12
  29. package/dist/bundle/{chunk-N5ROXGY4.js → chunk-6CWL5BKG.js} +21 -21
  30. package/dist/bundle/{chunk-77TJ3AJH.js → chunk-6QYZP4E2.js} +3 -3
  31. package/dist/bundle/{chunk-QFK52FG6.js → chunk-6VK332XS.js} +3 -3
  32. package/dist/bundle/{chunk-BQBC2WIG.js → chunk-73MOMNLL.js} +1 -1
  33. package/dist/bundle/{chunk-EEBSKMEA.js → chunk-7QPIUMUG.js} +12 -12
  34. package/dist/bundle/{chunk-RRYHLP3A.js → chunk-7UVDPRFK.js} +6 -6
  35. package/dist/bundle/{chunk-Y7XJA4EW.js → chunk-A6EZK5RG.js} +4 -4
  36. package/dist/bundle/{chunk-IBYGNUO7.js → chunk-AC6VJNMJ.js} +1 -1
  37. package/dist/bundle/{chunk-NX3BLISW.js → chunk-ACI4YIEH.js} +6 -6
  38. package/dist/bundle/{chunk-YJKXCINQ.js → chunk-AIKFOBDO.js} +254 -60
  39. package/dist/bundle/{chunk-PS7HQ5LQ.js → chunk-ASBDFXLS.js} +3 -3
  40. package/dist/bundle/{chunk-MA4UJNUI.js → chunk-B32KZRQM.js} +12 -12
  41. package/dist/bundle/{chunk-2GNGR265.js → chunk-BBGJQMRI.js} +1 -1
  42. package/dist/bundle/{chunk-IVZACJ6X.js → chunk-BDKVOU3I.js} +4 -4
  43. package/dist/bundle/{chunk-4VOCXLMJ.js → chunk-BP4FYANF.js} +6 -6
  44. package/dist/bundle/{chunk-WHXYPLUE.js → chunk-DCYFT3FR.js} +4 -4
  45. package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-DNCLQPOM.js} +1 -1
  46. package/dist/bundle/{chunk-TI4WJOEX.js → chunk-DSZYABYL.js} +38 -19
  47. package/dist/bundle/{chunk-ZNAX7GUV.js → chunk-E745WZKY.js} +8 -8
  48. package/dist/bundle/{chunk-M7OYEMLI.js → chunk-EGTCQKHV.js} +7 -7
  49. package/dist/bundle/{chunk-GDRFVBCB.js → chunk-EQG3PIH2.js} +2 -2
  50. package/dist/bundle/{chunk-YRDQ54G5.js → chunk-ESN3W2MZ.js} +24 -11
  51. package/dist/bundle/{chunk-NS3JWBDR.js → chunk-G46WJ7YO.js} +6 -6
  52. package/dist/bundle/{chunk-VQTYJ6XH.js → chunk-G6PETRMV.js} +3 -3
  53. package/dist/bundle/{chunk-QNG27PGH.js → chunk-GBHMT2IU.js} +21 -17
  54. package/dist/bundle/{chunk-FMMYBVCH.js → chunk-GGMAIIVE.js} +1 -1
  55. package/dist/bundle/{chunk-ZFRYFDZN.js → chunk-GTKPMYK7.js} +2 -2
  56. package/dist/bundle/{chunk-B2WBWKYN.js → chunk-GWGHH56B.js} +12 -12
  57. package/dist/bundle/{chunk-7JWVPJIP.js → chunk-HC6VN5CO.js} +10 -10
  58. package/dist/bundle/{chunk-F2J2FQUB.js → chunk-HP7A2ZOP.js} +9 -9
  59. package/dist/bundle/{chunk-GW2A2FJH.js → chunk-HZENBDW2.js} +8 -8
  60. package/dist/bundle/{chunk-UHMJSSQO.js → chunk-IANKXHSE.js} +1 -1
  61. package/dist/bundle/{chunk-IDUKCXL7.js → chunk-ICPJT672.js} +13 -9
  62. package/dist/bundle/{chunk-UUVWAVKN.js → chunk-JQ54DYAQ.js} +3 -3
  63. package/dist/bundle/{chunk-337ALCXQ.js → chunk-K5JGJIV2.js} +8 -8
  64. package/dist/bundle/{chunk-V3ZTAAJ6.js → chunk-KJ6USQDZ.js} +8 -8
  65. package/dist/bundle/{chunk-T2BHIC37.js → chunk-KKFY23AK.js} +65 -65
  66. package/dist/bundle/{chunk-J5EHZBO5.js → chunk-KQPUVXKX.js} +19 -3
  67. package/dist/bundle/{chunk-C4BBCSGK.js → chunk-KVJ3I7UL.js} +6 -6
  68. package/dist/bundle/{chunk-BZXHJKKI.js → chunk-KWU46LNK.js} +2 -2
  69. package/dist/bundle/chunk-KXJ3JEDH.js +2 -0
  70. package/dist/bundle/{chunk-R6HP2XKD.js → chunk-L75SMSJR.js} +5 -5
  71. package/dist/bundle/{chunk-KZ3B6HW5.js → chunk-LAYYO4WD.js} +3 -3
  72. package/dist/bundle/{chunk-LGESUPKO.js → chunk-LEKKTJKK.js} +40 -26
  73. package/dist/bundle/{chunk-K7CTCDYX.js → chunk-M7H4MCAX.js} +6 -6
  74. package/dist/bundle/{chunk-L54I45OX.js → chunk-MAJJ4PG3.js} +13 -13
  75. package/dist/bundle/{chunk-ZMAPXIGC.js → chunk-MQLPZBMQ.js} +2 -2
  76. package/dist/bundle/{chunk-HHQROAJQ.js → chunk-N3JLO63O.js} +1 -1
  77. package/dist/bundle/{chunk-XWKUGAG6.js → chunk-N46F72AF.js} +14 -14
  78. package/dist/bundle/{chunk-GPRJXJC7.js → chunk-NB7EOAUZ.js} +22 -1
  79. package/dist/bundle/{chunk-HIFPHARA.js → chunk-NEMX3UNN.js} +4 -4
  80. package/dist/bundle/{chunk-5EWYDHBH.js → chunk-OBXQLFT5.js} +2 -2
  81. package/dist/bundle/{chunk-3M436OO2.js → chunk-OGNO35A2.js} +6 -6
  82. package/dist/bundle/{chunk-VAW7QGJA.js → chunk-OIPYBF43.js} +3 -3
  83. package/dist/bundle/{chunk-DMJLJVD3.js → chunk-OO4TRVPB.js} +7 -7
  84. package/dist/bundle/{chunk-RQFRXUI4.js → chunk-OQFQ77AY.js} +198 -112
  85. package/dist/bundle/{chunk-UPR2S5IE.js → chunk-PMUPN6JW.js} +8 -8
  86. package/dist/bundle/{chunk-4BU3LRTB.js → chunk-PSKTMMCO.js} +17 -17
  87. package/dist/bundle/{chunk-YNWBRDBX.js → chunk-PWVJUIDQ.js} +2 -2
  88. package/dist/bundle/{chunk-LECMHK2F.js → chunk-Q7ICVP25.js} +1 -1
  89. package/dist/bundle/{chunk-4FSH7K6N.js → chunk-QG6PILDO.js} +2 -2
  90. package/dist/bundle/{chunk-NM5XMKWO.js → chunk-QPHBK63S.js} +1 -1
  91. package/dist/bundle/{chunk-MBBR7QHI.js → chunk-QVSL5WJ7.js} +2501 -1062
  92. package/dist/bundle/{chunk-ZLYICF6A.js → chunk-QVYAV7F2.js} +4 -4
  93. package/dist/bundle/{chunk-IYNICUCC.js → chunk-R2B6PUVI.js} +4 -4
  94. package/dist/bundle/{chunk-Q26UFIH4.js → chunk-RQOZBTNI.js} +16 -3
  95. package/dist/bundle/{chunk-T7QPZYRZ.js → chunk-T7IAWEBU.js} +7 -7
  96. package/dist/bundle/{chunk-FXZPAGHT.js → chunk-TKNM22OH.js} +2 -2
  97. package/dist/bundle/{chunk-FXCR4DGU.js → chunk-TKVBFJ5C.js} +1 -1
  98. package/dist/bundle/{chunk-HVXOA4FO.js → chunk-TXDR6YSF.js} +1 -1
  99. package/dist/bundle/{chunk-CFQQTDSA.js → chunk-TY7NDMFY.js} +1 -1
  100. package/dist/bundle/{chunk-YIIGF643.js → chunk-UAWSINMC.js} +10 -10
  101. package/dist/bundle/{chunk-35FVYRH5.js → chunk-UKAAAOPC.js} +28 -179
  102. package/dist/bundle/{chunk-4ZXJ4AZW.js → chunk-UL2PXLKT.js} +26 -26
  103. package/dist/bundle/{chunk-UMPUY77T.js → chunk-UQCTXZEP.js} +10 -10
  104. package/dist/bundle/{chunk-L2ERFXB7.js → chunk-UR5DBODY.js} +35 -30
  105. package/dist/bundle/{chunk-EPASOAEI.js → chunk-V5EJSF2B.js} +230 -165
  106. package/dist/bundle/{chunk-5SEBLX6B.js → chunk-VB72LTSZ.js} +12 -12
  107. package/dist/bundle/{chunk-OEQNP56V.js → chunk-VB7FZOYX.js} +1 -1
  108. package/dist/bundle/{chunk-YISJJNXT.js → chunk-VS6WURLX.js} +3 -3
  109. package/dist/bundle/{chunk-3UX4VJWD.js → chunk-VZ5PPYDG.js} +3 -4
  110. package/dist/bundle/{chunk-R4CXFYQN.js → chunk-W5QHB53X.js} +180 -38
  111. package/dist/bundle/{chunk-D26K6756.js → chunk-WMANRJR5.js} +6 -6
  112. package/dist/bundle/chunk-WOPVBRPV.js +29 -0
  113. package/dist/bundle/{chunk-4BXLHSXY.js → chunk-XQ2WL3HB.js} +2 -2
  114. package/dist/bundle/{chunk-JK24A3RP.js → chunk-XQQVMECZ.js} +3 -3
  115. package/dist/bundle/{chunk-LVCCZI5A.js → chunk-Y6PVS55U.js} +38 -38
  116. package/dist/bundle/{chunk-NQGGTO3B.js → chunk-YJXJJ2XP.js} +8 -8
  117. package/dist/bundle/{chunk-46EF6P2J.js → chunk-YY7XKHDY.js} +10 -3
  118. package/dist/bundle/{chunk-WIX6BFRF.js → chunk-ZED2CJW5.js} +8 -8
  119. package/dist/bundle/chunk-ZOYOXWJB.js +746 -0
  120. package/dist/bundle/{cli-WTGAGSXV.js → cli-U4O5XB7J.js} +118 -116
  121. package/dist/bundle/command-contract-FBTK6GQX.js +45 -0
  122. package/dist/bundle/{command-server-entry-47CAYN3E.js → command-server-entry-KKH6ZWJV.js} +35 -35
  123. package/dist/bundle/config-FRJSIZNN.js +118 -0
  124. package/dist/bundle/{decode-2G7QS5IQ.js → decode-TPCNXEK4.js} +6 -6
  125. package/dist/bundle/{dispatch-ZAP3KBVJ.js → dispatch-FKMIPCPQ.js} +9 -9
  126. package/dist/bundle/{dist-WY6R3WH7.js → dist-7CLBCYZN.js} +23 -21
  127. package/dist/bundle/{echarts-YRRVLEX3.js → echarts-O3TNDAXJ.js} +2 -2
  128. package/dist/bundle/{embed-B5H3OW2O.js → embed-WCJSFVSK.js} +7 -7
  129. package/dist/bundle/{embedder-3O73SP6Y.js → embedder-TBBUPXBX.js} +10 -10
  130. package/dist/bundle/{failure-EYGW7JMC.js → failure-XTWBYI2A.js} +3 -3
  131. package/dist/bundle/first-run-ELEMFW42.js +29 -0
  132. package/dist/bundle/first-screen-DIOBWMKP.js +46 -0
  133. package/dist/bundle/{folders-4CGFWM6H.js → folders-LXOL4N4S.js} +5 -5
  134. package/dist/bundle/{instructions-AG7SRWTR.js → instructions-AMH5RWVJ.js} +1 -1
  135. package/dist/bundle/{main-DOGY6FJP.js → main-YAA7WQ23.js} +24 -24
  136. package/dist/bundle/{mcp-YGOAUNC3.js → mcp-5HFPWC3W.js} +2 -2
  137. package/dist/bundle/meeting-combined-UXCF4SJ3.js +26 -0
  138. package/dist/bundle/meeting-model-3BZJ3EQP.js +26 -0
  139. package/dist/bundle/{meeting-semantic-FOEBWV3P.js → meeting-semantic-3HU7I2SJ.js} +8 -8
  140. package/dist/bundle/{meetings-PVE4C2NF.js → meetings-XWMB6FOH.js} +7 -7
  141. package/dist/bundle/{node-GJQYN4FT.js → node-EGMCBAO7.js} +2 -2
  142. package/dist/bundle/{node-sqlite-MLRYKVCQ.js → node-sqlite-IJBWENFX.js} +8 -8
  143. package/dist/bundle/{oauth-AC55C6SG.js → oauth-SZDDAP7A.js} +8 -8
  144. package/dist/bundle/{open-3LGTYP6M.js → open-NS3TMKZX.js} +6 -6
  145. package/dist/bundle/openai-4DN6WI3B.js +28 -0
  146. package/dist/bundle/{output-file-FXMTTLOI.js → output-file-2UB5JP3R.js} +6 -6
  147. package/dist/bundle/{process-MEKCZMX3.js → process-SGHEN6MQ.js} +1 -1
  148. package/dist/bundle/{program-E5BSSIGY.js → program-GVCGZP27.js} +105 -104
  149. package/dist/bundle/{prompt-AIA6QSZK.js → prompt-HJFMPFVC.js} +6 -6
  150. package/dist/bundle/public-C2ZB2AGQ.js +198 -0
  151. package/dist/bundle/{recognize-M57VNTEV.js → recognize-2SEI5PPM.js} +5 -5
  152. package/dist/bundle/{remote-3OTENZ7Z.js → remote-2DMS74XE.js} +11 -11
  153. package/dist/bundle/{rerank-P5WHDFDU.js → rerank-H6GCYVIA.js} +8 -8
  154. package/dist/bundle/run-log-QU26SUZP.js +145 -0
  155. package/dist/bundle/{serve-BRLC2QVV.js → serve-ODVRPFJO.js} +10 -10
  156. package/dist/bundle/server-NBPF6IDZ.js +95 -0
  157. package/dist/bundle/{server-25NF7DMS.js → server-PCLIO24L.js} +70 -68
  158. package/dist/bundle/{services-MJE43OGD.js → services-4QAPXBLO.js} +60 -56
  159. package/dist/bundle/{speech-4AVCWTQH.js → speech-MA6ZT3WE.js} +25 -25
  160. package/dist/bundle/{sqlite-runtime-U4TQXWMC.js → sqlite-runtime-PVMAUXRN.js} +7 -7
  161. package/dist/bundle/{state-GNUGVMY7.js → state-QFMTYUME.js} +7 -7
  162. package/dist/bundle/{store-KBFZVQWF.js → store-25OTAQC3.js} +25 -25
  163. package/dist/bundle/{store-MHVBFUBB.js → store-F724QIKJ.js} +34 -27
  164. package/dist/bundle/store-connection-OGPXANGB.js +111 -0
  165. package/dist/bundle/store-maintenance-command-2CM7LLNQ.js +83 -0
  166. package/dist/bundle/{streaming-6F7AFEHD.js → streaming-S22C4DG5.js} +7 -7
  167. package/dist/bundle/surface-7PXHWCF6.js +81 -0
  168. package/dist/bundle/{tokens-BB4MQBLH.js → tokens-NLUHA2DW.js} +11 -11
  169. package/dist/bundle/zm.js +9 -9
  170. package/dist/bundle/{zoom-app-YTGOZ2FS.js → zoom-app-YWFB367P.js} +8 -8
  171. package/dist/version.d.ts +1 -1
  172. package/dist/version.js +1 -1
  173. package/package.json +3 -3
  174. package/dist/bundle/agent-VYAJCJLE.js +0 -45
  175. package/dist/bundle/answer-policy-PTH4F2DW.js +0 -129
  176. package/dist/bundle/chunk-EWEQ7AXL.js +0 -719
  177. package/dist/bundle/command-contract-3IKVWPDL.js +0 -45
  178. package/dist/bundle/config-ZOGOKGTU.js +0 -116
  179. package/dist/bundle/first-run-MPKMDEMA.js +0 -29
  180. package/dist/bundle/first-screen-AIAAC3KF.js +0 -45
  181. package/dist/bundle/meeting-combined-YKPKTKGA.js +0 -26
  182. package/dist/bundle/meeting-model-HTXSGHNM.js +0 -26
  183. package/dist/bundle/openai-E2MSLVIX.js +0 -28
  184. package/dist/bundle/run-log-EOQ4EQDS.js +0 -143
  185. package/dist/bundle/server-EW2RL2EL.js +0 -93
  186. package/dist/bundle/store-connection-SKRUAI4L.js +0 -109
  187. package/dist/bundle/store-maintenance-command-G6EXJSHJ.js +0 -81
  188. package/dist/bundle/surface-DWEWB5RG.js +0 -79
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  changesMessenger
5
- } from "./chunk-EPASOAEI.js";
5
+ } from "./chunk-V5EJSF2B.js";
6
6
  import {
7
7
  AUTHORITY_KEY,
8
8
  BOT_API_KEY,
@@ -12,15 +12,15 @@ import {
12
12
  keyForCommand,
13
13
  levelFor,
14
14
  readKeysForCommand
15
- } from "./chunk-V3ZTAAJ6.js";
15
+ } from "./chunk-KJ6USQDZ.js";
16
16
  import {
17
17
  writes
18
- } from "./chunk-YRDQ54G5.js";
18
+ } from "./chunk-ESN3W2MZ.js";
19
19
  import {
20
20
  __name
21
21
  } from "./chunk-ZVVMGPBJ.js";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/command-availability.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/command-availability.js
24
24
  var commandAvailability = /* @__PURE__ */ __name((info, levels, keyOf, authority, readOnly = false, mcp = true, declared, fetches) => {
25
25
  const declaredKey = declared?.keyOf(info.path);
26
26
  const key = declared ? declaredKey : keyOf?.(info.path) ?? keyForCommand(info.path);
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  filesPresent,
5
5
  sharedModelsDirectory
6
- } from "./chunk-G3DWMG7Y.js";
6
+ } from "./chunk-4HLQ2JGK.js";
7
7
  import {
8
8
  readSharedSection,
9
9
  sharedConfigPath,
10
10
  writeSharedSection
11
- } from "./chunk-ZNAX7GUV.js";
11
+ } from "./chunk-E745WZKY.js";
12
12
  import {
13
13
  storePath
14
- } from "./chunk-JKEMW6E4.js";
14
+ } from "./chunk-274SLQNW.js";
15
15
  import {
16
16
  array,
17
17
  check,
@@ -32,15 +32,15 @@ import {
32
32
  string,
33
33
  trim,
34
34
  url
35
- } from "./chunk-YRDQ54G5.js";
35
+ } from "./chunk-ESN3W2MZ.js";
36
36
  import {
37
37
  CliError
38
- } from "./chunk-UHMJSSQO.js";
38
+ } from "./chunk-IANKXHSE.js";
39
39
  import {
40
40
  __name
41
41
  } from "./chunk-ZVVMGPBJ.js";
42
42
 
43
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/embeddings/models.js
43
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/embeddings/models.js
44
44
  import { existsSync } from "node:fs";
45
45
  import { join } from "node:path";
46
46
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-Q26UFIH4.js";
8
+ } from "./chunk-RQOZBTNI.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
14
14
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
17
17
  import { randomBytes } from "node:crypto";
18
18
  import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
86
86
  };
87
87
  }, "activityRecorder");
88
88
 
89
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
90
90
  var ACCESS_SECONDS = 60 * 60;
91
91
  var REFRESH_SECONDS = 30 * 24 * 60 * 60;
92
92
  var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
 
4
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/monthly.js
4
+ // node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/monthly.js
5
5
  import { dirname, join } from "node:path";
6
6
  import { fileURLToPath } from "node:url";
7
7
  var CI_PAGE = join(dirname(fileURLToPath(new URL("standards/monthly.js", import.meta.resolve("@wirecat/cli-base")).href)), "../../docs/standards/ci.md");
@@ -3,18 +3,18 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  formatMeetingReference,
5
5
  parseMeetingReference
6
- } from "./chunk-T2BHIC37.js";
6
+ } from "./chunk-KKFY23AK.js";
7
7
  import {
8
8
  CliError
9
- } from "./chunk-UHMJSSQO.js";
9
+ } from "./chunk-IANKXHSE.js";
10
10
  import {
11
11
  singleLine
12
- } from "./chunk-2GNGR265.js";
12
+ } from "./chunk-BBGJQMRI.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/money.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/money.js
18
18
  var CURRENCY_SCALES = {
19
19
  AED: 2,
20
20
  AMD: 2,
@@ -108,7 +108,7 @@ var quantityOf = /* @__PURE__ */ __name((text) => {
108
108
  }, "quantityOf");
109
109
  var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
110
110
 
111
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/deals.js
111
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/deals.js
112
112
  var DEAL_KINDS = ["deal", "lead"];
113
113
  var DEAL_STATUSES = ["open", "won", "lost"];
114
114
  var STAGE_OUTCOMES = DEAL_STATUSES;
@@ -118,7 +118,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
118
118
  return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
119
119
  }, "dealLine");
120
120
 
121
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/finance.js
121
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/finance.js
122
122
  var INVOICE_DIRECTIONS = ["receivable", "payable"];
123
123
  var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
124
124
  var MONEY_DIRECTIONS = ["in", "out"];
@@ -147,7 +147,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
147
147
  var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
148
148
  var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
149
149
 
150
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/orders.js
150
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/orders.js
151
151
  var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
152
152
  var ORDER_PURPOSES = ["personal", "business", "client", "other"];
153
153
  var orderLine = /* @__PURE__ */ __name((order) => {
@@ -158,7 +158,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
158
158
  }, "orderLine");
159
159
  var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
160
160
 
161
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/relations.js
161
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/relations.js
162
162
  var ORGANIZATION_ROLES = [
163
163
  "employee",
164
164
  "contractor",
@@ -265,7 +265,7 @@ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'p
265
265
  var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE ${KEYED} AND override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
266
266
  var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
267
267
 
268
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/crm.js
268
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/crm.js
269
269
  var CRM_KINDS = ["organization", "person", "deal", "lead"];
270
270
  var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
271
271
  var isCrmUserId = /* @__PURE__ */ __name((id) => /^\d{1,20}$/.test(id), "isCrmUserId");
@@ -275,7 +275,7 @@ var normalCrmUserId = /* @__PURE__ */ __name((id) => {
275
275
  }, "normalCrmUserId");
276
276
  var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
277
277
 
278
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/business.js
278
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/business.js
279
279
  var CATALOG_KINDS = ["product", "service"];
280
280
  var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
281
281
  var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
@@ -304,7 +304,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
304
304
  var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
305
305
  var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
306
306
 
307
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/locator.js
307
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/locator.js
308
308
  var SCHEME = "msg:";
309
309
  var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
310
310
  var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
@@ -325,7 +325,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
325
325
  return { provider, account, chat, message };
326
326
  }, "parseLocator");
327
327
 
328
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/references.js
328
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/references.js
329
329
  var SIMPLE_REFERENCES = [
330
330
  "note",
331
331
  "document",
@@ -488,8 +488,8 @@ var looksLikeReference = /* @__PURE__ */ __name((text) => {
488
488
  return match !== null && byPrefix.has(match[1]);
489
489
  }, "looksLikeReference");
490
490
 
491
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/providers.js
492
- var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
491
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/providers.js
492
+ var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm", "tracker"];
493
493
  var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
494
494
  var CRM_OPENS = { deal: "deals show", lead: "leads show", pipeline: "pipelines show" };
495
495
  var PROVIDERS = [
@@ -508,6 +508,16 @@ var PROVIDERS = [
508
508
  // Google Meet has no tool of its own: its meetings are gcal's, since every meeting is on the calendar.
509
509
  { name: "google-meet", kind: "meetings", aliases: [], command: "gcal" },
510
510
  { name: "google-drive", kind: "documents", aliases: [] },
511
+ // Seeded: linear-cli registers no entry, and without one its accounts would count as a messenger's. One sign-in holds
512
+ // the issues and the documents, so the account is a tracker's and a documents account at once.
513
+ {
514
+ name: "linear",
515
+ kind: "tracker",
516
+ kinds: ["tracker", "documents"],
517
+ aliases: [],
518
+ command: "linear",
519
+ globalItemIds: true
520
+ },
511
521
  // Its meetings come from the notes Telemost mails (`keeper@telemost.yandex.ru`), read by a mail rule.
512
522
  { name: "telemost", kind: "meetings", aliases: [] },
513
523
  // A phone export's records: its SMS and its calls in the one account the import names.
@@ -526,14 +536,15 @@ var LABELS = {
526
536
  "google-meet": "Google Meet",
527
537
  added: "added by hand",
528
538
  email: "mail",
529
- telemost: "Telemost"
539
+ telemost: "Telemost",
540
+ linear: "Linear"
530
541
  };
531
542
  var providerLabel = /* @__PURE__ */ __name((provider) => LABELS[provider] ?? provider, "providerLabel");
532
543
  var FOLDER_PROVIDERS = ["local", "obsidian", "folder"];
533
544
  var isFolderProvider = /* @__PURE__ */ __name((provider) => FOLDER_PROVIDERS.includes(provider), "isFolderProvider");
534
545
  var folderProviderSql = /* @__PURE__ */ __name((column = "provider") => `${column} IN (${FOLDER_PROVIDERS.map((name) => `'${name}'`).join(", ")})`, "folderProviderSql");
535
546
  var folderProviderOf = /* @__PURE__ */ __name((format) => format === "markdown" ? "local" : "obsidian", "folderProviderOf");
536
- var documentAccountProviders = /* @__PURE__ */ __name(() => registry.filter((entry) => entry.kind === "documents" && entry.imported !== true).map(({ name }) => name), "documentAccountProviders");
547
+ var documentAccountProviders = /* @__PURE__ */ __name(() => registry.filter((entry) => kindsOfEntry(entry).includes("documents") && entry.imported !== true).map(({ name }) => name), "documentAccountProviders");
537
548
  var isDocumentAccountProvider = /* @__PURE__ */ __name((provider) => typeof provider === "string" && documentAccountProviders().includes(provider), "isDocumentAccountProvider");
538
549
  var documentAccountProvidersSql = /* @__PURE__ */ __name(() => documentAccountProviders().map((name) => `'${name}'`).join(", ") || "NULL", "documentAccountProvidersSql");
539
550
  var ADDED_PROVIDER = "added";
@@ -561,7 +572,7 @@ var opensOf = /* @__PURE__ */ __name((value, named) => {
561
572
  var providerEntryOf = /* @__PURE__ */ __name((value) => {
562
573
  if (typeof value !== "object" || value === null || Array.isArray(value))
563
574
  return invalid("a provider entry is an object");
564
- const { name, kind: kind2, kinds, aliases = [], command, opens, imported } = value;
575
+ const { name, kind: kind2, kinds, aliases = [], command, opens, imported, globalItemIds } = value;
565
576
  const named = wordOf(name, "a provider's name");
566
577
  const isKindWord = /* @__PURE__ */ __name((one) => typeof one === "string" && KINDS.includes(one), "isKindWord");
567
578
  const given = kinds === void 0 ? [kind2] : Array.isArray(kinds) && kinds.length > 0 ? kinds : [void 0];
@@ -575,6 +586,8 @@ var providerEntryOf = /* @__PURE__ */ __name((value) => {
575
586
  invalid(`provider ${named}'s aliases are a list`);
576
587
  if (imported !== void 0 && typeof imported !== "boolean")
577
588
  invalid(`provider ${named}'s imported is true or false`);
589
+ if (globalItemIds !== void 0 && typeof globalItemIds !== "boolean")
590
+ invalid(`provider ${named}'s globalItemIds is true or false`);
578
591
  return {
579
592
  name: named,
580
593
  kind: list[0],
@@ -582,7 +595,8 @@ var providerEntryOf = /* @__PURE__ */ __name((value) => {
582
595
  ...imported === true ? { imported: true } : {},
583
596
  aliases: [...new Set(aliases.map((alias) => wordOf(alias, `an alias of ${named}`)))],
584
597
  ...command === void 0 ? {} : { command: wordOf(command, `the command of ${named}`) },
585
- ...opens === void 0 ? {} : { opens: opensOf(opens, named) }
598
+ ...opens === void 0 ? {} : { opens: opensOf(opens, named) },
599
+ ...globalItemIds === true ? { globalItemIds: true } : {}
586
600
  };
587
601
  }, "providerEntryOf");
588
602
  var kindsOfEntry = /* @__PURE__ */ __name((entry) => entry.kinds ?? [entry.kind], "kindsOfEntry");
@@ -603,7 +617,8 @@ var joined = /* @__PURE__ */ __name((known, entry) => {
603
617
  ...kinds.length > 1 ? { kinds } : {},
604
618
  aliases: [.../* @__PURE__ */ new Set([...same.aliases, ...entry.aliases])],
605
619
  ...entry.command ? { command: entry.command } : {},
606
- ...entry.opens ? { opens: { ...same.opens, ...entry.opens } } : {}
620
+ ...entry.opens ? { opens: { ...same.opens, ...entry.opens } } : {},
621
+ ...entry.globalItemIds ? { globalItemIds: true } : {}
607
622
  } : entry;
608
623
  const others = known.filter((one) => one !== same);
609
624
  for (const word of wordsOf(merged)) {
@@ -662,7 +677,9 @@ var importedOf = /* @__PURE__ */ __name((entry, held) => {
662
677
  invalid(`provider ${entry.name} was registered without imported: an entry cannot make it import-only later`);
663
678
  return held.imported === true;
664
679
  }, "importedOf");
680
+ var hasGlobalItemIds = /* @__PURE__ */ __name((provider) => registry.find(({ name }) => name === provider)?.globalItemIds === true, "hasGlobalItemIds");
665
681
  var isImportedProvider = /* @__PURE__ */ __name((provider) => registry.find(({ name }) => name === provider)?.imported === true, "isImportedProvider");
682
+ var alsoListedByKey = /* @__PURE__ */ __name((provider) => isDocumentAccountProvider(provider) && kindsIn(provider).some((kind2) => kind2 !== "documents"), "alsoListedByKey");
666
683
  var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).includes(kind2), "holdsKind");
667
684
  var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
668
685
  var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
@@ -782,7 +799,9 @@ export {
782
799
  kindIn,
783
800
  kindsIn,
784
801
  importedOf,
802
+ hasGlobalItemIds,
785
803
  isImportedProvider,
804
+ alsoListedByKey,
786
805
  holdsKind,
787
806
  holdsKindOf,
788
807
  kindOf
@@ -2,26 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-JKEMW6E4.js";
5
+ } from "./chunk-274SLQNW.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-N5ROXGY4.js";
9
+ } from "./chunk-6CWL5BKG.js";
10
10
  import {
11
11
  CliError
12
- } from "./chunk-UHMJSSQO.js";
12
+ } from "./chunk-IANKXHSE.js";
13
13
  import {
14
14
  singleLine
15
- } from "./chunk-2GNGR265.js";
15
+ } from "./chunk-BBGJQMRI.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/store/shared-config.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/shared-config.js
21
21
  import { existsSync, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
22
22
  import { dirname, join, resolve } from "node:path";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
25
25
  var REPAIR_WORDS = {
26
26
  byte_order_mark: "an invisible byte-order mark at the start",
27
27
  comment: "a comment, which JSON does not allow",
@@ -305,7 +305,7 @@ var explainBrokenJson = /* @__PURE__ */ __name((text, result) => {
305
305
  return `line ${line}, column ${column}: ${why}${around(line)}; likely fix: ${fix ?? "correct that part by hand"}`;
306
306
  }, "explainBrokenJson");
307
307
 
308
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
308
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
309
309
  var DEFAULT_TASK_CATEGORIES = [
310
310
  {
311
311
  name: "taxes",
@@ -1060,7 +1060,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
1060
1060
  }
1061
1061
  }, "storedTaskCategories");
1062
1062
 
1063
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/store/shared-config.js
1063
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/shared-config.js
1064
1064
  var SECTION = "task_categories";
1065
1065
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
1066
1066
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
@@ -2,13 +2,13 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  throughWrapper
5
- } from "./chunk-QNG27PGH.js";
5
+ } from "./chunk-GBHMT2IU.js";
6
6
  import {
7
7
  environmentOf
8
- } from "./chunk-EPASOAEI.js";
8
+ } from "./chunk-V5EJSF2B.js";
9
9
  import {
10
10
  readOnlyLockOf
11
- } from "./chunk-FXZPAGHT.js";
11
+ } from "./chunk-TKNM22OH.js";
12
12
  import {
13
13
  array,
14
14
  boolean,
@@ -18,15 +18,15 @@ import {
18
18
  safeParse,
19
19
  strictObject,
20
20
  string
21
- } from "./chunk-YRDQ54G5.js";
21
+ } from "./chunk-ESN3W2MZ.js";
22
22
  import {
23
23
  CliError
24
- } from "./chunk-UHMJSSQO.js";
24
+ } from "./chunk-IANKXHSE.js";
25
25
  import {
26
26
  __name
27
27
  } from "./chunk-ZVVMGPBJ.js";
28
28
 
29
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/background/relay.js
29
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/background/relay.js
30
30
  import { createHash } from "node:crypto";
31
31
  import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
32
32
  import { createConnection, createServer } from "node:net";
@@ -247,7 +247,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
247
247
  }, () => finish({ error: stopped() }));
248
248
  }), "relayCommand");
249
249
 
250
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
250
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
251
251
  var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
252
252
  close: /* @__PURE__ */ __name(async () => {
253
253
  }, "close"),
@@ -7,12 +7,12 @@ import {
7
7
  agentOf,
8
8
  clientHash,
9
9
  currentCaller
10
- } from "./chunk-T7QPZYRZ.js";
10
+ } from "./chunk-T7IAWEBU.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/mcp/caller.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/mcp/caller.js
16
16
  var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
17
17
  const client = caller?.agent?.client?.name;
18
18
  if (client && client !== "unknown")
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  errorCodes,
5
5
  isCliError
6
- } from "./chunk-UHMJSSQO.js";
6
+ } from "./chunk-IANKXHSE.js";
7
7
  import {
8
8
  visibleControls
9
- } from "./chunk-2GNGR265.js";
9
+ } from "./chunk-BBGJQMRI.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
14
+ // node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
15
15
  var EXIT_CODES = {
16
16
  validation_error: 2,
17
17
  configuration_error: 3,
@@ -284,8 +284,8 @@ function maxEntries(requirement, message$1) {
284
284
  message: message$1,
285
285
  "~run"(dataset, config$1) {
286
286
  if (!dataset.typed) return dataset;
287
- const count = Object.keys(dataset.value).length;
288
- if (dataset.typed && count > this.requirement) _addIssue(this, "entries", dataset, config$1, { received: `${count}` });
287
+ const count2 = Object.keys(dataset.value).length;
288
+ if (dataset.typed && count2 > this.requirement) _addIssue(this, "entries", dataset, config$1, { received: `${count2}` });
289
289
  return dataset;
290
290
  }
291
291
  };
@@ -1383,7 +1383,7 @@ function unwrap(schema) {
1383
1383
  }
1384
1384
  __name(unwrap, "unwrap");
1385
1385
 
1386
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
1386
+ // node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
1387
1387
  var EFFECT_LEVELS = ["none", "read", "write"];
1388
1388
  var effectsSchema = strictObject({
1389
1389
  remote: picklist(EFFECT_LEVELS),
@@ -2020,7 +2020,7 @@ function toStandardJsonSchema(schema) {
2020
2020
  }
2021
2021
  __name(toStandardJsonSchema, "toStandardJsonSchema");
2022
2022
 
2023
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
2023
+ // node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
2024
2024
  var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
2025
2025
  var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
2026
2026
  var text = pipe(string(), regex(/\S/, "must not be empty"));
@@ -2062,7 +2062,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
2062
2062
  return String(value);
2063
2063
  }), "fill");
2064
2064
 
2065
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
2065
+ // node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
2066
2066
  var MAX_NEXT_STEPS = 2;
2067
2067
  var COMPACT_FLAG = "--compact";
2068
2068
  var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
@@ -2139,6 +2139,18 @@ var rankingSchema = strictObject({
2139
2139
  })),
2140
2140
  ms: pipe(number(), integer(), minValue(0))
2141
2141
  });
2142
+ var count = pipe(number(), integer(), minValue(0));
2143
+ var modelRunSchema = strictObject({
2144
+ provider: text,
2145
+ model: text,
2146
+ endpoint: text,
2147
+ sent: count,
2148
+ done: count,
2149
+ left: count,
2150
+ usage: optional(strictObject({ input: count, output: count })),
2151
+ cost_usd: nullable(pipe(number(), minValue(0))),
2152
+ ms: count
2153
+ });
2142
2154
  var querySchema = strictObject({
2143
2155
  chat: optional(strictObject({ word: text, chat_id: text, title: nullable(text) })),
2144
2156
  respelled: optional(array(strictObject({ word: text, tried: pipe(array(text), minLength(1)) })))
@@ -2156,6 +2168,7 @@ var metaSchema = strictObject({
2156
2168
  now_local: optional(localTime),
2157
2169
  window: optional(strictObject({ since: optional(isoTime), until: optional(isoTime) })),
2158
2170
  ranking: optional(rankingSchema),
2171
+ model_run: optional(modelRunSchema),
2159
2172
  query: optional(querySchema)
2160
2173
  });
2161
2174
  var offsetOf = /* @__PURE__ */ __name((at, zone) => {
@@ -2194,7 +2207,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
2194
2207
  JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
2195
2208
  ].join("\n"), "jsonlOf");
2196
2209
 
2197
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
2210
+ // node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
2198
2211
  var CRASH_CODE = "internal_error";
2199
2212
  var CRASH_REASON = "command.crashed";
2200
2213
  var errorObjectSchema = strictObject({
@@ -2293,7 +2306,7 @@ var BASE_REASONS = defineReasons([
2293
2306
  { reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
2294
2307
  ]);
2295
2308
 
2296
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
2309
+ // node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
2297
2310
  var SAME_COMMAND = "*";
2298
2311
  var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
2299
2312
  var stepSchema = union([
@@ -2372,7 +2385,7 @@ var STEPS = defineSteps([
2372
2385
  }
2373
2386
  ]);
2374
2387
 
2375
- // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
2388
+ // node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
2376
2389
  var recognise = /* @__PURE__ */ __name((failure) => {
2377
2390
  if (isCliError(failure))
2378
2391
  return failure;
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PRAGMAS
5
- } from "./chunk-FMMYBVCH.js";
5
+ } from "./chunk-GGMAIIVE.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-UHMJSSQO.js";
8
+ } from "./chunk-IANKXHSE.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
14
14
  var SQLITE_WARNING = "SQLite is an experimental feature";
15
15
  var quieted = /* @__PURE__ */ new WeakSet();
16
16
  var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
31
31
  return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
32
32
  }, "isSqliteWarning");
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/store/open.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/open.js
35
35
  var openCache = /* @__PURE__ */ __name(async (path) => {
36
36
  const database = await openFile(path);
37
37
  try {
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
44
44
  }, "openCache");
45
45
  var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
46
46
  var openUnderBun = /* @__PURE__ */ __name(async (path) => {
47
- const { openWithBunSqlite } = await import("./bun-sqlite-3NNHTOGM.js");
47
+ const { openWithBunSqlite } = await import("./bun-sqlite-HC6X4AOX.js");
48
48
  return await openWithBunSqlite(path);
49
49
  }, "openUnderBun");
50
50
  var openUnderNode = /* @__PURE__ */ __name(async (path) => {
51
51
  quietSqliteWarning();
52
- const { openWithNodeSqlite } = await import("./node-sqlite-MLRYKVCQ.js");
52
+ const { openWithNodeSqlite } = await import("./node-sqlite-IJBWENFX.js");
53
53
  return openWithNodeSqlite(path);
54
54
  }, "openUnderNode");
55
55
  var runtime = /* @__PURE__ */ __name(() => {
@@ -5,7 +5,7 @@ import {
5
5
  id,
6
6
  text,
7
7
  time
8
- } from "./chunk-EWEQ7AXL.js";
8
+ } from "./chunk-ZOYOXWJB.js";
9
9
  import {
10
10
  array,
11
11
  nullable,
@@ -16,9 +16,9 @@ import {
16
16
  strictObject,
17
17
  string,
18
18
  unknown
19
- } from "./chunk-YRDQ54G5.js";
19
+ } from "./chunk-ESN3W2MZ.js";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/note.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/entities/note.js
22
22
  var link = {
23
23
  target_text: nullable(text),
24
24
  kind: text,