@wirecat/zoom-cli 0.72.0 → 0.73.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 (198) hide show
  1. package/contracts/wirecat.json +1478 -0
  2. package/dist/account-removal.d.ts.map +1 -1
  3. package/dist/account-removal.js +0 -2
  4. package/dist/account-removal.js.map +1 -1
  5. package/dist/answers.d.ts +1 -3
  6. package/dist/answers.d.ts.map +1 -1
  7. package/dist/answers.js +0 -3
  8. package/dist/answers.js.map +1 -1
  9. package/dist/bin/main.js +13 -5
  10. package/dist/bin/main.js.map +1 -1
  11. package/dist/bin/zm.js +2 -2
  12. package/dist/bundle/{all-profiles-XFIPF4GF.js → all-profiles-V47CUJFK.js} +12 -12
  13. package/dist/bundle/answer-policy-W6H72X2R.js +112 -0
  14. package/dist/bundle/{anthropic-SSUBR3BC.js → anthropic-SID7Z3QN.js} +7 -7
  15. package/dist/bundle/{app-server-7DJHHF2F.js → app-server-KCMUSY4A.js} +67 -61
  16. package/dist/bundle/{bun-6HBYWQIX.js → bun-PWMM6L45.js} +2 -2
  17. package/dist/bundle/{bun-sqlite-4L3Q55NB.js → bun-sqlite-3TLKUN5A.js} +7 -7
  18. package/dist/bundle/{chunk-OY6N2ABP.js → chunk-2BAZRRJP.js} +19 -19
  19. package/dist/bundle/{chunk-KWURWGGB.js → chunk-2NQPB6MT.js} +28 -9
  20. package/dist/bundle/chunk-2PYZTRRC.js +84 -0
  21. package/dist/bundle/chunk-2VYEGKQ3.js +13 -0
  22. package/dist/bundle/{chunk-X2MP634F.js → chunk-35CYSRGJ.js} +4 -4
  23. package/dist/bundle/{chunk-SXZGCD6E.js → chunk-3ADFJ3UP.js} +3 -3
  24. package/dist/bundle/{chunk-63QXCE5Z.js → chunk-3HTJBGNP.js} +10 -10
  25. package/dist/bundle/{chunk-OHCLQJOV.js → chunk-44YVZIA4.js} +3 -3
  26. package/dist/bundle/{chunk-D24OQAHM.js → chunk-4LFFDUUW.js} +4 -4
  27. package/dist/bundle/{chunk-UVZLK3M4.js → chunk-4RJL32PF.js} +25 -10
  28. package/dist/bundle/{chunk-CANRIRNZ.js → chunk-6AO2RSYH.js} +951 -692
  29. package/dist/bundle/{chunk-37NF5CBJ.js → chunk-6NI4FE5G.js} +6 -8
  30. package/dist/bundle/{chunk-QW7YTRV2.js → chunk-6WUTUCKH.js} +3 -3
  31. package/dist/bundle/{chunk-WOAYHCM2.js → chunk-AIEMFRBU.js} +1 -1
  32. package/dist/bundle/{chunk-B3SILJBU.js → chunk-CIUJEQH4.js} +30 -22
  33. package/dist/bundle/{chunk-MSQHSW4C.js → chunk-CMWFYZ45.js} +2 -2
  34. package/dist/bundle/{chunk-2MIBRVSV.js → chunk-CQBLPBZU.js} +2 -2
  35. package/dist/bundle/{chunk-U3NJBGLA.js → chunk-DPSTOVKC.js} +185 -34
  36. package/dist/bundle/{chunk-OP5PGE2N.js → chunk-DYLYH7VE.js} +4 -4
  37. package/dist/bundle/{chunk-ELJUBPY4.js → chunk-EA2OB75T.js} +1 -1
  38. package/dist/bundle/{chunk-3KRTEX5M.js → chunk-ERQRY6WZ.js} +3 -2
  39. package/dist/bundle/{chunk-H53WFZBN.js → chunk-ETQNHS3A.js} +12 -12
  40. package/dist/bundle/{chunk-JG4MNYG2.js → chunk-EXWZCI5G.js} +1 -1
  41. package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
  42. package/dist/bundle/{chunk-7OD3522V.js → chunk-FJMRDRPN.js} +180 -149
  43. package/dist/bundle/{chunk-RZUJMAMK.js → chunk-FT7X74RT.js} +4 -4
  44. package/dist/bundle/{chunk-ADLS6FVG.js → chunk-FXBHOCJK.js} +1 -1
  45. package/dist/bundle/{chunk-JRCH4YZP.js → chunk-FZLJ2G7A.js} +17 -121
  46. package/dist/bundle/{chunk-ZW5KHKMA.js → chunk-G2TSDMTA.js} +5 -5
  47. package/dist/bundle/{chunk-7S4D5SM2.js → chunk-G3SIY4MQ.js} +29 -28
  48. package/dist/bundle/{chunk-M3DMXDX6.js → chunk-GCZMYDKU.js} +6 -6
  49. package/dist/bundle/{chunk-4XQWF3U2.js → chunk-HAMDPWEZ.js} +6 -6
  50. package/dist/bundle/{chunk-6DCLZLGX.js → chunk-HCZYJMBP.js} +1 -1
  51. package/dist/bundle/{chunk-S7SXSHRC.js → chunk-HNWDEDMU.js} +61 -30
  52. package/dist/bundle/{chunk-24OFZNRC.js → chunk-HO3GBTIT.js} +4038 -3729
  53. package/dist/bundle/chunk-IE7YBRUO.js +25 -0
  54. package/dist/bundle/{chunk-XPWZSW6Y.js → chunk-IJCUAKR5.js} +4 -4
  55. package/dist/bundle/{chunk-RLCVPECY.js → chunk-IKNOTHG2.js} +110 -64
  56. package/dist/bundle/{chunk-QA6KIL7Q.js → chunk-ILDGZBZD.js} +11 -8
  57. package/dist/bundle/{chunk-W3YTVEWV.js → chunk-JIS34MLC.js} +9 -9
  58. package/dist/bundle/{chunk-KFZL67JP.js → chunk-JQF4LM3V.js} +128 -47
  59. package/dist/bundle/{chunk-ZHA56THL.js → chunk-K5JFX5TK.js} +927 -904
  60. package/dist/bundle/{chunk-WXTYYWZI.js → chunk-K7EMVFJ7.js} +115 -113
  61. package/dist/bundle/{chunk-7GLJSJ7M.js → chunk-KHBZ4OEP.js} +1 -1
  62. package/dist/bundle/{chunk-PJWSGXOB.js → chunk-KK2IVZUQ.js} +7 -7
  63. package/dist/bundle/{chunk-YVVJ6Y5C.js → chunk-KQD4ZVNC.js} +7 -7
  64. package/dist/bundle/{chunk-TF2WKPNW.js → chunk-KSNJK4QM.js} +15 -15
  65. package/dist/bundle/{chunk-KPIQXFNB.js → chunk-KUL7S5Y3.js} +16 -15
  66. package/dist/bundle/{chunk-JZ4XNNL7.js → chunk-L6YSKCC3.js} +1 -1
  67. package/dist/bundle/chunk-LQYMN36C.js +73 -0
  68. package/dist/bundle/{chunk-5MGICK47.js → chunk-LSVQCI6V.js} +26 -26
  69. package/dist/bundle/{chunk-CW46FWKW.js → chunk-LVDTSCIN.js} +14 -12
  70. package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
  71. package/dist/bundle/{chunk-FSCPQQS5.js → chunk-MAE5UGRQ.js} +150 -93
  72. package/dist/bundle/{chunk-4YIGXTBP.js → chunk-MG2CCAVG.js} +3 -3
  73. package/dist/bundle/{chunk-N4QNYWWG.js → chunk-MOKEB656.js} +2 -2
  74. package/dist/bundle/{chunk-RN5SU2RN.js → chunk-N3SOTKXC.js} +6 -6
  75. package/dist/bundle/{chunk-7SUWPMZG.js → chunk-NBA2V6LB.js} +8 -8
  76. package/dist/bundle/{chunk-LLUNHAZ7.js → chunk-OFA22L4G.js} +4 -4
  77. package/dist/bundle/{chunk-RJTGENHZ.js → chunk-OKOJEBHK.js} +4 -7
  78. package/dist/bundle/{chunk-LA6QUVGQ.js → chunk-OMLVWOEF.js} +6 -2
  79. package/dist/bundle/{chunk-5X4IY5JH.js → chunk-OU5OXA6Q.js} +531 -416
  80. package/dist/bundle/{chunk-DEPXZJ2V.js → chunk-P4FU6R3Z.js} +17 -13
  81. package/dist/bundle/{chunk-5AELTC52.js → chunk-PACLT6IW.js} +102 -99
  82. package/dist/bundle/{chunk-EFF2XBHP.js → chunk-PGPHEC2X.js} +2 -2
  83. package/dist/bundle/{chunk-NMZQTYKJ.js → chunk-PJ3FKBXG.js} +1 -1
  84. package/dist/bundle/{chunk-7IFO43Q5.js → chunk-PKON63JH.js} +2 -2
  85. package/dist/bundle/{chunk-23J2ANZ7.js → chunk-Q43KX56Z.js} +2 -2
  86. package/dist/bundle/{chunk-VIV64MQM.js → chunk-QS6DWXDB.js} +26 -17
  87. package/dist/bundle/{chunk-IXO4SCKE.js → chunk-QVJMFZFW.js} +1 -1
  88. package/dist/bundle/{chunk-U32VL3MA.js → chunk-QWGEOQHA.js} +3 -2
  89. package/dist/bundle/{chunk-QQUY4MZY.js → chunk-R5FTCNLJ.js} +1 -1
  90. package/dist/bundle/{chunk-IFBIXU6C.js → chunk-SO52EJ2W.js} +2 -2
  91. package/dist/bundle/{chunk-JFPUYQSP.js → chunk-SYIOT45G.js} +5 -5
  92. package/dist/bundle/{chunk-ADKMBXY4.js → chunk-TI2OANJZ.js} +1 -1
  93. package/dist/bundle/{chunk-IACWKZWS.js → chunk-UIKVP23D.js} +1 -1
  94. package/dist/bundle/{chunk-JAEPK457.js → chunk-USIMMGWS.js} +23 -23
  95. package/dist/bundle/{chunk-WZGKHTA4.js → chunk-UYBLNGZ2.js} +8 -2
  96. package/dist/bundle/{chunk-4SY67IUA.js → chunk-V5Q2QKYM.js} +26 -33
  97. package/dist/bundle/{chunk-WLVG4RBZ.js → chunk-VJVYGTPM.js} +15 -2
  98. package/dist/bundle/{chunk-IU4DUUB3.js → chunk-VPPNYUQM.js} +8 -8
  99. package/dist/bundle/{chunk-D5EUMWD5.js → chunk-X2FILY5F.js} +3 -3
  100. package/dist/bundle/{chunk-LTWJM3ED.js → chunk-XLY7V2LB.js} +17 -17
  101. package/dist/bundle/chunk-XWBPP2HX.js +2 -0
  102. package/dist/bundle/{chunk-ZVFYGTGJ.js → chunk-Y3IH7EZC.js} +17 -17
  103. package/dist/bundle/{chunk-7JYMGXLI.js → chunk-Z5XCU4S7.js} +45 -41
  104. package/dist/bundle/{chunk-I7CUMZD6.js → chunk-ZAIE3G5I.js} +3 -3
  105. package/dist/bundle/{chunk-ERJYJ36F.js → chunk-ZMHZ6CQS.js} +2 -2
  106. package/dist/bundle/{chunk-T27IMG6X.js → chunk-ZVQDOKDY.js} +1 -1
  107. package/dist/bundle/{chunk-DOCVEKP2.js → chunk-ZX4QWTMQ.js} +36 -32
  108. package/dist/bundle/{cli-IYYI7GAM.js → cli-4ZYJ6OZE.js} +109 -101
  109. package/dist/bundle/command-contract-FJDDCHYP.js +43 -0
  110. package/dist/bundle/{command-server-entry-FXX4LJWF.js → command-server-entry-CASONRIJ.js} +35 -33
  111. package/dist/bundle/config-4DZHX2WX.js +99 -0
  112. package/dist/bundle/{decode-SRGOOGBW.js → decode-KEFCVGEB.js} +6 -6
  113. package/dist/bundle/{dispatch-OUHRPFUL.js → dispatch-EU67WGME.js} +9 -9
  114. package/dist/bundle/{dist-UZLNLAIO.js → dist-GCQ7KCKN.js} +26 -22
  115. package/dist/bundle/{echarts-7CM2MCMW.js → echarts-SDZA2SWG.js} +2 -2
  116. package/dist/bundle/{embed-VEE56BOB.js → embed-43VJEPM6.js} +7 -7
  117. package/dist/bundle/{embedder-SZFYR543.js → embedder-Q4ZHAGRP.js} +10 -10
  118. package/dist/bundle/{failure-MZBNM7M5.js → failure-CTJLEB2R.js} +3 -3
  119. package/dist/bundle/first-run-CPOLQVNA.js +29 -0
  120. package/dist/bundle/first-screen-XYESRGWW.js +41 -0
  121. package/dist/bundle/folders-MSBTAPAG.js +24 -0
  122. package/dist/bundle/{instructions-R7OHVAWH.js → instructions-7T6JJIFS.js} +1 -1
  123. package/dist/bundle/{main-EFUN2O3K.js → main-NA3QVPXS.js} +39 -26
  124. package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
  125. package/dist/bundle/{meetings-5I2BDNTA.js → meetings-7CVIQJTA.js} +9 -7
  126. package/dist/bundle/{node-3N2JGZ7V.js → node-BZDMUFTW.js} +2 -2
  127. package/dist/bundle/{node-P4E63KXA.js → node-KM3CUABH.js} +9 -9
  128. package/dist/bundle/{node-sqlite-2UVEE2WM.js → node-sqlite-QHGB23B4.js} +10 -10
  129. package/dist/bundle/{oauth-AYGD7UU3.js → oauth-BMEMCM2I.js} +8 -8
  130. package/dist/bundle/{open-3GUVDLGD.js → open-JGU2NRJP.js} +6 -6
  131. package/dist/bundle/openai-VTXXFNCS.js +28 -0
  132. package/dist/bundle/{output-file-72JFXVHQ.js → output-file-VDOCYH2G.js} +6 -6
  133. package/dist/bundle/{process-YAHHUFR5.js → process-756VBE7E.js} +1 -1
  134. package/dist/bundle/{program-OSZROCTK.js → program-XM6CDIJ2.js} +138 -139
  135. package/dist/bundle/{prompt-HMCW4XQJ.js → prompt-2IPFXJ4B.js} +6 -6
  136. package/dist/bundle/{recognize-VF5CA7EM.js → recognize-672E2RIB.js} +5 -5
  137. package/dist/bundle/{remote-5C6VTPR2.js → remote-YLHRVPDS.js} +11 -10
  138. package/dist/bundle/{rerank-ER7NEDOI.js → rerank-NBXQG3OS.js} +8 -8
  139. package/dist/bundle/run-log-3WITBT2F.js +126 -0
  140. package/dist/bundle/{serve-QJWXJOM7.js → serve-FNLOUMYP.js} +10 -10
  141. package/dist/bundle/{server-KCIK3Y2P.js → server-7ZB5AK5H.js} +54 -50
  142. package/dist/bundle/server-GGRGD4SH.js +77 -0
  143. package/dist/bundle/{services-LQMYJQG3.js → services-Z4UWN64R.js} +46 -44
  144. package/dist/bundle/{speech-74GJQNQH.js → speech-XSYVCKR3.js} +20 -20
  145. package/dist/bundle/sqlite-runtime-GAPXJNWU.js +20 -0
  146. package/dist/bundle/{state-4XDGCHDF.js → state-QSA53EF5.js} +7 -7
  147. package/dist/bundle/{store-5Y5HK2L2.js → store-EKI4OAJH.js} +20 -20
  148. package/dist/bundle/{store-Y56AHJ2Y.js → store-NOF5EYUC.js} +30 -28
  149. package/dist/bundle/store-connection-2OZQGEIO.js +92 -0
  150. package/dist/bundle/store-maintenance-command-GNX3SOZ6.js +67 -0
  151. package/dist/bundle/{streaming-E5CR6HSR.js → streaming-PQEXKTE5.js} +7 -7
  152. package/dist/bundle/tokens-WJQYQ3FK.js +24 -0
  153. package/dist/bundle/zm.js +9 -9
  154. package/dist/bundle/{zoom-app-NVL7HEAX.js → zoom-app-Y7RMWLVU.js} +9 -8
  155. package/dist/folders.d.ts +12 -2
  156. package/dist/folders.d.ts.map +1 -1
  157. package/dist/folders.js +81 -3
  158. package/dist/folders.js.map +1 -1
  159. package/dist/identity.d.ts +5 -0
  160. package/dist/identity.d.ts.map +1 -1
  161. package/dist/identity.js +14 -0
  162. package/dist/identity.js.map +1 -1
  163. package/dist/recording-schedule-setup.d.ts.map +1 -1
  164. package/dist/recording-schedule-setup.js +4 -7
  165. package/dist/recording-schedule-setup.js.map +1 -1
  166. package/dist/remote-http.d.ts +1 -1
  167. package/dist/remote-http.d.ts.map +1 -1
  168. package/dist/remote-http.js +21 -23
  169. package/dist/remote-http.js.map +1 -1
  170. package/dist/setup-commands.d.ts.map +1 -1
  171. package/dist/setup-commands.js +2 -4
  172. package/dist/setup-commands.js.map +1 -1
  173. package/dist/tokens.d.ts +17 -2
  174. package/dist/tokens.d.ts.map +1 -1
  175. package/dist/tokens.js +109 -29
  176. package/dist/tokens.js.map +1 -1
  177. package/dist/version.d.ts +1 -1
  178. package/dist/version.js +1 -1
  179. package/dist/wcat.d.ts +3 -0
  180. package/dist/wcat.d.ts.map +1 -0
  181. package/dist/wcat.js +4 -0
  182. package/dist/wcat.js.map +1 -0
  183. package/package.json +15 -14
  184. package/dist/bundle/answer-policy-AT6CDEE5.js +0 -110
  185. package/dist/bundle/chunk-EG25AY4L.js +0 -17
  186. package/dist/bundle/chunk-K6HR6HCO.js +0 -32
  187. package/dist/bundle/command-contract-TX7NSUBM.js +0 -42
  188. package/dist/bundle/config-YKNM33J7.js +0 -96
  189. package/dist/bundle/first-run-KWC7RKF2.js +0 -29
  190. package/dist/bundle/first-screen-DWKMNSEI.js +0 -40
  191. package/dist/bundle/folders-UQXRSDJJ.js +0 -16
  192. package/dist/bundle/openai-NHCDLWWY.js +0 -28
  193. package/dist/bundle/run-log-JKTLKXSK.js +0 -124
  194. package/dist/bundle/server-LLGFDLLJ.js +0 -75
  195. package/dist/bundle/store-connection-4WI32AYU.js +0 -89
  196. package/dist/bundle/store-maintenance-command-PCXO5AH4.js +0 -65
  197. package/dist/bundle/tokens-E2QNVC4F.js +0 -20
  198. /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-7O7XM37N.js} +0 -0
@@ -19,14 +19,14 @@ import {
19
19
  string,
20
20
  text,
21
21
  unknown
22
- } from "./chunk-UVZLK3M4.js";
22
+ } from "./chunk-4RJL32PF.js";
23
23
  import {
24
24
  CliError,
25
25
  isCliError
26
- } from "./chunk-ELJUBPY4.js";
26
+ } from "./chunk-EA2OB75T.js";
27
27
  import {
28
28
  visibleControls
29
- } from "./chunk-6DCLZLGX.js";
29
+ } from "./chunk-HCZYJMBP.js";
30
30
  import {
31
31
  __commonJS,
32
32
  __name,
@@ -1899,7 +1899,7 @@ var require_cli_table3 = __commonJS({
1899
1899
  }
1900
1900
  });
1901
1901
 
1902
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
1902
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
1903
1903
  var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
1904
1904
  var validate = /* @__PURE__ */ __name((paths) => {
1905
1905
  if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
@@ -1964,7 +1964,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
1964
1964
  return project(value, fields);
1965
1965
  }, "projectFields");
1966
1966
 
1967
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
1967
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
1968
1968
  var BATCH_LIMITS = Object.freeze({
1969
1969
  requests: 32,
1970
1970
  input_bytes: 262144,
@@ -2111,7 +2111,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
2111
2111
  };
2112
2112
  }, "runBatch");
2113
2113
 
2114
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
2114
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
2115
2115
  import { randomBytes } from "node:crypto";
2116
2116
  import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
2117
2117
  import { dirname, join } from "node:path";
@@ -2155,7 +2155,7 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
2155
2155
  `, 384);
2156
2156
  }, "saveConfigFile");
2157
2157
 
2158
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
2158
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
2159
2159
  import { createRequire } from "node:module";
2160
2160
  var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
2161
2161
  var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
@@ -2164,7 +2164,13 @@ var entryClass = /* @__PURE__ */ __name(() => {
2164
2164
  cached ??= require2("@napi-rs/keyring").Entry;
2165
2165
  return cached;
2166
2166
  }, "entryClass");
2167
- var entry = /* @__PURE__ */ __name((service, account) => new (entryClass())(service, account, ENTRY_OPTIONS), "entry");
2167
+ var STAND_IN = /* @__PURE__ */ Symbol.for("@wirecat/cli-base/testing/keyring-stand-in");
2168
+ var entry = /* @__PURE__ */ __name((service, account) => {
2169
+ const Entry = entryClass();
2170
+ if (!(STAND_IN in Entry) && process.env.VITEST !== void 0)
2171
+ throw new Error("a test reached the real OS keyring without the test setup; pass memoryKeyring()");
2172
+ return new Entry(service, account, ENTRY_OPTIONS);
2173
+ }, "entry");
2168
2174
  var systemKeyring = {
2169
2175
  // Returns null for an absent entry rather than throwing — measured against @napi-rs/keyring
2170
2176
  // on 2026-09-13, and the difference matters: a throw here means the keychain is unusable.
@@ -2175,7 +2181,8 @@ var systemKeyring = {
2175
2181
  delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
2176
2182
  };
2177
2183
 
2178
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
2184
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
2185
+ import { realpathSync } from "node:fs";
2179
2186
  import { homedir, userInfo } from "node:os";
2180
2187
  import { join as join2, posix, win32 } from "node:path";
2181
2188
  var PATH_KINDS = ["config", "state", "cache"];
@@ -2199,8 +2206,36 @@ var defaultPaths = /* @__PURE__ */ __name(({ appName, env = process.env, platfor
2199
2206
  cache: posix.join(env.XDG_CACHE_HOME || posix.join(home, ".cache"), appName)
2200
2207
  };
2201
2208
  }, "defaultPaths");
2209
+ var accountHome = /* @__PURE__ */ __name(() => {
2210
+ try {
2211
+ return userInfo().homedir;
2212
+ } catch {
2213
+ return void 0;
2214
+ }
2215
+ }, "accountHome");
2216
+ var sameFolder = /* @__PURE__ */ __name((a, b, platform) => {
2217
+ if ((platform === "win32" ? win32 : posix).relative(a, b) === "")
2218
+ return true;
2219
+ try {
2220
+ return realpathSync.native(a) === realpathSync.native(b);
2221
+ } catch {
2222
+ return false;
2223
+ }
2224
+ }, "sameFolder");
2225
+ var refuseOwnerHomeInTests = /* @__PURE__ */ __name((env = process.env, platform = process.platform, account = accountHome) => {
2226
+ const named = [env.HOME, env.USERPROFILE].filter((home) => Boolean(home));
2227
+ if ((named.length > 0 ? env.VITEST : env.VITEST ?? process.env.VITEST) === void 0)
2228
+ return;
2229
+ const owner = account();
2230
+ if (owner === void 0)
2231
+ return;
2232
+ for (const home of named.length > 0 ? named : [homedir()])
2233
+ if (sameFolder(owner, home, platform))
2234
+ throw new Error(`a test is running with the owner's real home (${home}); load @wirecat/cli-base/testing/setup (\`vitest --root\` outside the repository skips it) or give the test a HOME of its own`);
2235
+ }, "refuseOwnerHomeInTests");
2202
2236
  var resolvePaths = /* @__PURE__ */ __name((options) => {
2203
- const { appName, prefix, env = process.env } = options;
2237
+ const { appName, prefix, env = process.env, platform = process.platform } = options;
2238
+ refuseOwnerHomeInTests(env, platform);
2204
2239
  const base = defaultPaths(options);
2205
2240
  return {
2206
2241
  config: env[overrideName(appName, prefix, "config")] ?? base.config,
@@ -2209,13 +2244,6 @@ var resolvePaths = /* @__PURE__ */ __name((options) => {
2209
2244
  };
2210
2245
  }, "resolvePaths");
2211
2246
  var pathsAreOverridden = /* @__PURE__ */ __name(({ appName, prefix, env = process.env }) => PATH_KINDS.some((kind) => env[overrideName(appName, prefix, kind)] !== void 0), "pathsAreOverridden");
2212
- var accountHome = /* @__PURE__ */ __name(() => {
2213
- try {
2214
- return userInfo().homedir;
2215
- } catch {
2216
- return void 0;
2217
- }
2218
- }, "accountHome");
2219
2247
  var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = process.platform, home = accountHome() } = {}) => {
2220
2248
  if (home === void 0)
2221
2249
  return true;
@@ -2227,7 +2255,7 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
2227
2255
  var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
2228
2256
  var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join2(configDir, fileName), "configFilePath");
2229
2257
 
2230
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
2258
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
2231
2259
  import { readFileSync as readFileSync2 } from "node:fs";
2232
2260
  import { join as join3, resolve } from "node:path";
2233
2261
  var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
@@ -2364,10 +2392,10 @@ var Credentials = class {
2364
2392
  }
2365
2393
  };
2366
2394
 
2367
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
2395
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
2368
2396
  import { appendFileSync } from "node:fs";
2369
2397
 
2370
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
2398
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
2371
2399
  var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
2372
2400
  var logRecordSchema = strictObject({
2373
2401
  time: isoTime,
@@ -2445,7 +2473,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
2445
2473
  return traceId;
2446
2474
  }, "traceIdOf");
2447
2475
 
2448
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
2476
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
2449
2477
  var REDACTED_FIELDS = [
2450
2478
  "authorization",
2451
2479
  "Authorization",
@@ -2539,7 +2567,7 @@ var silent = {
2539
2567
  }, "error")
2540
2568
  };
2541
2569
 
2542
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/output-buffer.js
2570
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/output-buffer.js
2543
2571
  var createOutputBuffer = /* @__PURE__ */ __name(({ maxOutputBytes = 4 * 1024 * 1024, fields, format } = {}) => {
2544
2572
  if (!Number.isSafeInteger(maxOutputBytes) || maxOutputBytes < 0)
2545
2573
  throw new CliError("validation_error", "maxOutputBytes must be a nonnegative whole byte count");
@@ -2600,7 +2628,7 @@ var createOutputBuffer = /* @__PURE__ */ __name(({ maxOutputBytes = 4 * 1024 * 1
2600
2628
  };
2601
2629
  }, "createOutputBuffer");
2602
2630
 
2603
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
2631
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
2604
2632
  var DEFAULT_RETRY = {
2605
2633
  retries: 1,
2606
2634
  baseDelayMs: 250,
@@ -2612,7 +2640,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
2612
2640
  return Math.round(random() * ceiling);
2613
2641
  }, "backoffMs");
2614
2642
 
2615
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
2643
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
2616
2644
  import { fileURLToPath } from "node:url";
2617
2645
  var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
2618
2646
  var baseConstantsSchema = object({});
@@ -2667,7 +2695,7 @@ var loadConstants = /* @__PURE__ */ __name((layers, schema) => {
2667
2695
  return deepFreeze(result.output);
2668
2696
  }, "loadConstants");
2669
2697
 
2670
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
2698
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
2671
2699
  var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
2672
2700
  var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
2673
2701
  if (signal?.aborted) {
@@ -2680,8 +2708,9 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
2680
2708
  reject(abortError());
2681
2709
  }, { once: true });
2682
2710
  }), "realSleep");
2711
+ var wallClock = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "wallClock");
2683
2712
 
2684
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/deadline.js
2713
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/deadline.js
2685
2714
  var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSleep } = {}) => {
2686
2715
  if (timeoutMs !== void 0 && (!Number.isSafeInteger(timeoutMs) || timeoutMs < 0 || timeoutMs > 2147483647))
2687
2716
  throw new CliError("validation_error", "timeoutMs must be an integer from zero through 2147483647");
@@ -2765,7 +2794,7 @@ var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSl
2765
2794
  };
2766
2795
  }, "createDeadline");
2767
2796
 
2768
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
2797
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
2769
2798
  var import_cli_table3 = __toESM(require_cli_table3(), 1);
2770
2799
  import { styleText } from "node:util";
2771
2800
  var renderPretty = /* @__PURE__ */ __name((value, options) => {
@@ -2840,7 +2869,7 @@ var BORDERLESS = {
2840
2869
  middle: ""
2841
2870
  };
2842
2871
 
2843
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
2872
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
2844
2873
  var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
2845
2874
  if (signal?.aborted)
2846
2875
  return Promise.reject(signal.reason);
@@ -2868,7 +2897,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
2868
2897
  });
2869
2898
  }, "waitForDrain");
2870
2899
 
2871
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
2900
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
2872
2901
  var processStreams = {
2873
2902
  drain: /* @__PURE__ */ __name(async (signal) => {
2874
2903
  await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
@@ -2897,7 +2926,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
2897
2926
  };
2898
2927
  }, "captureStreams");
2899
2928
 
2900
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
2929
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
2901
2930
  var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
2902
2931
  const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
2903
2932
  const say = /* @__PURE__ */ __name((symbol) => (message) => {
@@ -2948,12 +2977,14 @@ export {
2948
2977
  baseConstantsSchema,
2949
2978
  loadConstants,
2950
2979
  systemKeyring,
2980
+ refuseOwnerHomeInTests,
2951
2981
  resolvePaths,
2952
2982
  pathsAreOverridden,
2953
2983
  isMovedRun,
2954
2984
  configFilePath,
2955
2985
  Credentials,
2956
2986
  realSleep,
2987
+ wallClock,
2957
2988
  createDeadline,
2958
2989
  defineLogEvents,
2959
2990
  isContentKey,