@wirecat/zoom-cli 0.61.0 → 0.62.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 (136) hide show
  1. package/dist/bin/zm.js +2 -2
  2. package/dist/bundle/{all-profiles-HZLIU6RZ.js → all-profiles-CGGNBINU.js} +8 -8
  3. package/dist/bundle/answer-policy-D46SGQ35.js +96 -0
  4. package/dist/bundle/{anthropic-O2YYPCVK.js → anthropic-KVWPIHFG.js} +4 -4
  5. package/dist/bundle/{app-server-YYCANTUE.js → app-server-NKKFBTQN.js} +50 -50
  6. package/dist/bundle/{bun-UEFRULAT.js → bun-XRO6XJHQ.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-VVYKOY7S.js → bun-sqlite-FWNCLOAR.js} +3 -3
  8. package/dist/bundle/{chunk-IKZFR645.js → chunk-2DPMYUWQ.js} +10 -10
  9. package/dist/bundle/{chunk-LX6DO44O.js → chunk-2LLNPNMB.js} +1 -1
  10. package/dist/bundle/{chunk-P2NRA7E5.js → chunk-2NAM2XQG.js} +2 -2
  11. package/dist/bundle/{chunk-KXYURHVE.js → chunk-2T7MUSDB.js} +95 -95
  12. package/dist/bundle/{chunk-S726LZCH.js → chunk-3YBDRVOG.js} +6 -6
  13. package/dist/bundle/{chunk-4XI4PDEH.js → chunk-4OQVRDTG.js} +20 -20
  14. package/dist/bundle/{chunk-RSXLI5GP.js → chunk-4OTXE6CF.js} +52 -52
  15. package/dist/bundle/{chunk-VARX3SBT.js → chunk-4UUQEQ5D.js} +1 -1
  16. package/dist/bundle/{chunk-UYAKSUT5.js → chunk-5LMQTEU5.js} +5 -5
  17. package/dist/bundle/{chunk-BNUNZTOU.js → chunk-5MYLM6SU.js} +44 -26
  18. package/dist/bundle/{chunk-YESOQEOB.js → chunk-5NLFQ644.js} +543 -288
  19. package/dist/bundle/{chunk-5NRBNGR3.js → chunk-6R3GMSLR.js} +2 -2
  20. package/dist/bundle/{chunk-MTAVA2LS.js → chunk-6SK5SHCR.js} +2 -2
  21. package/dist/bundle/{chunk-H5EAHMQN.js → chunk-6SPWQCJF.js} +11 -11
  22. package/dist/bundle/{chunk-E4T7IJJO.js → chunk-6URISMGR.js} +26 -26
  23. package/dist/bundle/{chunk-XZ4OVTA5.js → chunk-72S5TXFN.js} +9 -9
  24. package/dist/bundle/{chunk-XX2PDQ54.js → chunk-73BAQ7PH.js} +24 -24
  25. package/dist/bundle/{chunk-F32GKBMF.js → chunk-7AY3ADNV.js} +5 -5
  26. package/dist/bundle/{chunk-COU66X3X.js → chunk-7CNRZSAV.js} +4 -4
  27. package/dist/bundle/{chunk-77GJITSU.js → chunk-7LQLJ7LW.js} +2 -2
  28. package/dist/bundle/{chunk-KGZHRJ7H.js → chunk-AMIIU3UZ.js} +4 -4
  29. package/dist/bundle/{chunk-HTGBUE2U.js → chunk-BJPFWPKH.js} +2 -2
  30. package/dist/bundle/{chunk-2M2U43IF.js → chunk-BNTAQADF.js} +2 -2
  31. package/dist/bundle/{chunk-PCUPOGKR.js → chunk-BPMKLWHV.js} +4 -4
  32. package/dist/bundle/{chunk-JKWYXBGK.js → chunk-CXPHUOJR.js} +12 -12
  33. package/dist/bundle/{chunk-NVN4O5IC.js → chunk-D6FTCPXA.js} +9 -9
  34. package/dist/bundle/{chunk-KZGHGU2M.js → chunk-DIXC56OU.js} +4 -4
  35. package/dist/bundle/{chunk-TD4Y5LXG.js → chunk-ECXRRW7J.js} +18 -18
  36. package/dist/bundle/{chunk-M3EVVGR6.js → chunk-EG7HC4EC.js} +2 -2
  37. package/dist/bundle/{chunk-B45MFBBF.js → chunk-EJFSS65P.js} +6 -6
  38. package/dist/bundle/{chunk-FQ54A7GI.js → chunk-EOEDICIE.js} +1 -1
  39. package/dist/bundle/{chunk-7ATLKYBN.js → chunk-FAOLCUKV.js} +17 -17
  40. package/dist/bundle/{chunk-KPZIQKOF.js → chunk-FDCGTODC.js} +1 -1
  41. package/dist/bundle/{chunk-OU46OTTE.js → chunk-GOESXUJQ.js} +3 -3
  42. package/dist/bundle/{chunk-CUSGSXSR.js → chunk-HIZQYFY3.js} +3 -3
  43. package/dist/bundle/{chunk-MBMDF5EL.js → chunk-IK2OSV5C.js} +6 -6
  44. package/dist/bundle/{chunk-6SLGIPLT.js → chunk-IOCS5FXW.js} +2 -2
  45. package/dist/bundle/{chunk-AOSIU5T6.js → chunk-IOUPXUFH.js} +37 -36
  46. package/dist/bundle/{chunk-KZV5GU7G.js → chunk-IR73ZZY6.js} +8 -8
  47. package/dist/bundle/{chunk-FBJC7OCI.js → chunk-JBBZCTTF.js} +1 -1
  48. package/dist/bundle/{chunk-QHT2LZRW.js → chunk-JDJDVYGS.js} +6 -6
  49. package/dist/bundle/{chunk-SVBM6F4Z.js → chunk-JYVFFUIX.js} +1 -1
  50. package/dist/bundle/{chunk-4XPIOW5L.js → chunk-KM7Q67Z3.js} +1 -1
  51. package/dist/bundle/{chunk-U4Y2QQ2D.js → chunk-KMQUZ4YM.js} +3 -3
  52. package/dist/bundle/{chunk-CMG54Q4X.js → chunk-LXYC75D3.js} +25 -25
  53. package/dist/bundle/{chunk-E4QPLXZT.js → chunk-M2WQWF3I.js} +47 -47
  54. package/dist/bundle/{chunk-T7IQMYPW.js → chunk-M6FCCVYZ.js} +4 -3
  55. package/dist/bundle/{chunk-O3WVOAT7.js → chunk-M7YNOK4D.js} +10 -10
  56. package/dist/bundle/{chunk-HF233RN4.js → chunk-MI3JK6MW.js} +10 -10
  57. package/dist/bundle/{chunk-FXY45HU7.js → chunk-MIUPH3WA.js} +6 -6
  58. package/dist/bundle/{chunk-7DMMNCY2.js → chunk-MLNC5N7H.js} +3 -3
  59. package/dist/bundle/{chunk-OLZE27RS.js → chunk-N3KQ7XND.js} +2 -2
  60. package/dist/bundle/{chunk-XOJGXWTK.js → chunk-NQCFUYC2.js} +8 -8
  61. package/dist/bundle/{chunk-6LHTWR3X.js → chunk-Q4ZE2LXE.js} +2 -2
  62. package/dist/bundle/{chunk-67WW33JB.js → chunk-QLQ7VVLK.js} +4 -4
  63. package/dist/bundle/{chunk-6RV7KXDF.js → chunk-QUWMFBMS.js} +6 -6
  64. package/dist/bundle/{chunk-WVYSOV3C.js → chunk-RWG44LQD.js} +4 -4
  65. package/dist/bundle/{chunk-L7VIPVHL.js → chunk-SB47UAW2.js} +49 -39
  66. package/dist/bundle/{chunk-LXOSBFWW.js → chunk-SEH7DBAM.js} +7 -7
  67. package/dist/bundle/{chunk-FAOVUALC.js → chunk-SPJJCD2A.js} +13 -13
  68. package/dist/bundle/{chunk-UPWHCUVA.js → chunk-TILW3EJY.js} +334 -293
  69. package/dist/bundle/{chunk-LPJ3S6GE.js → chunk-TQFCPUIM.js} +1 -1
  70. package/dist/bundle/{chunk-BPQNTYLN.js → chunk-TZE6WXID.js} +565 -297
  71. package/dist/bundle/{chunk-OMUX4LSS.js → chunk-UD4FKICZ.js} +4 -4
  72. package/dist/bundle/{chunk-DLAFGSTN.js → chunk-UIPT6IAU.js} +1 -1
  73. package/dist/bundle/{chunk-35X6G276.js → chunk-URJZK4GX.js} +1 -1
  74. package/dist/bundle/{chunk-RGOBGHWE.js → chunk-VFJ3MOIR.js} +3 -3
  75. package/dist/bundle/{chunk-GNHPYQMM.js → chunk-XAXXEZZ5.js} +2 -2
  76. package/dist/bundle/{chunk-OVVDOVLN.js → chunk-YBMOFCY5.js} +2 -2
  77. package/dist/bundle/{chunk-3TGR4RDD.js → chunk-YF2PT5KA.js} +31 -31
  78. package/dist/bundle/{chunk-ABCHE4YP.js → chunk-YFIUXE25.js} +3 -3
  79. package/dist/bundle/{chunk-MVRCLMQL.js → chunk-YI6ZNDPC.js} +22 -12
  80. package/dist/bundle/{chunk-B3PTSX5D.js → chunk-YJN4XYNA.js} +2 -2
  81. package/dist/bundle/{cli-O4LAGYXI.js → cli-AHPIESAC.js} +63 -53
  82. package/dist/bundle/command-contract-HVLI3OKU.js +38 -0
  83. package/dist/bundle/config-UW6W34I2.js +78 -0
  84. package/dist/bundle/{decode-WRMZJJCR.js → decode-ZU7WLMMV.js} +3 -3
  85. package/dist/bundle/{dist-SQK4GIJT.js → dist-LTS7VI3S.js} +14 -14
  86. package/dist/bundle/{echarts-3DOOJSQR.js → echarts-YNGCOYHW.js} +2 -2
  87. package/dist/bundle/{embed-OYRHTMFI.js → embed-VWWOW7PP.js} +4 -4
  88. package/dist/bundle/{embedder-ZAYCL22W.js → embedder-T5GJC7M2.js} +7 -7
  89. package/dist/bundle/{first-run-QXSPIXOQ.js → first-run-PX3SHPUU.js} +8 -8
  90. package/dist/bundle/first-screen-RAPEZG57.js +36 -0
  91. package/dist/bundle/{folders-EXQLKXVK.js → folders-VXMDFC2D.js} +2 -2
  92. package/dist/bundle/{instructions-GFEOB7XJ.js → instructions-GJHHFV64.js} +1 -1
  93. package/dist/bundle/{main-RADF3CRI.js → main-IYCD6MBH.js} +16 -16
  94. package/dist/bundle/{mcp-WSGVVZWI.js → mcp-EMNFFY4N.js} +2 -2
  95. package/dist/bundle/{meetings-6BIIT42H.js → meetings-GHYNIOHG.js} +4 -4
  96. package/dist/bundle/{node-A3B2YRQI.js → node-GFOH6FKP.js} +2 -2
  97. package/dist/bundle/{node-sqlite-XRP5FUDY.js → node-sqlite-QXKSPHTP.js} +3 -3
  98. package/dist/bundle/{oauth-YICY4AN4.js → oauth-A6I2OMDD.js} +5 -5
  99. package/dist/bundle/{open-4CNKSQRB.js → open-TQKCU447.js} +2 -2
  100. package/dist/bundle/{openai-YYRO3X7I.js → openai-XE3BJXOI.js} +9 -9
  101. package/dist/bundle/{output-file-7BXYV6OL.js → output-file-FQNFCUKE.js} +3 -3
  102. package/dist/bundle/{process-A45QXKID.js → process-XVDX4SPD.js} +1 -1
  103. package/dist/bundle/{program-DTP7BRTW.js → program-UYK4AD2W.js} +69 -69
  104. package/dist/bundle/{prompt-5LMKO7SE.js → prompt-ISYG5RWM.js} +3 -3
  105. package/dist/bundle/{recognize-MB6WRGUD.js → recognize-KENPECLZ.js} +2 -2
  106. package/dist/bundle/{remote-PD7WMTTS.js → remote-ZP5XTDCC.js} +5 -5
  107. package/dist/bundle/{rerank-7E6GQ5Y6.js → rerank-SG653RHT.js} +5 -5
  108. package/dist/bundle/{run-log-TCFK4LEC.js → run-log-HYKGQ42E.js} +53 -53
  109. package/dist/bundle/{serve-JBT2BWHK.js → serve-6UJCZD7Z.js} +7 -7
  110. package/dist/bundle/server-AXE37E6Q.js +66 -0
  111. package/dist/bundle/{server-H2UPGGBI.js → server-ZAYEDPFR.js} +42 -42
  112. package/dist/bundle/{services-SJOTKL5V.js → services-KMH7XZPY.js} +31 -27
  113. package/dist/bundle/{speech-4SL25GSC.js → speech-LINBLG5E.js} +11 -11
  114. package/dist/bundle/{state-FVMTDZ6B.js → state-4RKZNHE7.js} +4 -4
  115. package/dist/bundle/{store-TI77SCNL.js → store-253N7NUC.js} +15 -15
  116. package/dist/bundle/{store-DNPKBUVO.js → store-JTBHRQZK.js} +13 -13
  117. package/dist/bundle/store-connection-PWLUMCP7.js +76 -0
  118. package/dist/bundle/store-maintenance-command-XRNECVDU.js +55 -0
  119. package/dist/bundle/{streaming-UHAHGPH5.js → streaming-YW64OKKQ.js} +4 -4
  120. package/dist/bundle/{tokens-Y2MX6JBL.js → tokens-DPBC2P3I.js} +4 -4
  121. package/dist/bundle/zm.js +1 -1
  122. package/dist/tokens.d.ts +6 -1
  123. package/dist/tokens.d.ts.map +1 -1
  124. package/dist/tokens.js +21 -10
  125. package/dist/tokens.js.map +1 -1
  126. package/dist/version.d.ts +1 -1
  127. package/dist/version.js +1 -1
  128. package/package.json +3 -3
  129. package/dist/bundle/answer-policy-GRODO2DY.js +0 -96
  130. package/dist/bundle/command-contract-67QKBY6M.js +0 -38
  131. package/dist/bundle/config-ABURZDD2.js +0 -78
  132. package/dist/bundle/first-screen-MD6HWIJW.js +0 -36
  133. package/dist/bundle/server-CFIKEPLG.js +0 -66
  134. package/dist/bundle/store-connection-GIFWWMNO.js +0 -76
  135. package/dist/bundle/store-maintenance-command-WBKGF2CZ.js +0 -55
  136. /package/dist/bundle/{chunk-62EDJKGP.js → chunk-NPGVOZVK.js} +0 -0
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-OU46OTTE.js";
8
+ } from "./chunk-GOESXUJQ.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // 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/mcp/http/state.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/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.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/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.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/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");
@@ -527,7 +527,7 @@ var require_cross_spawn = __commonJS({
527
527
  }
528
528
  });
529
529
 
530
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
530
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
531
531
  import { existsSync } from "node:fs";
532
532
  import { win32 } from "node:path";
533
533
  var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  resolvePaths
5
- } from "./chunk-L7VIPVHL.js";
5
+ } from "./chunk-SB47UAW2.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
@@ -3,10 +3,10 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  SAMPLE_RATE,
5
5
  decodeOgg
6
- } from "./chunk-67WW33JB.js";
6
+ } from "./chunk-QLQ7VVLK.js";
7
7
  import {
8
8
  CliError
9
- } from "./chunk-L7VIPVHL.js";
9
+ } from "./chunk-SB47UAW2.js";
10
10
  import {
11
11
  importFrom
12
12
  } from "./chunk-Y5E2WNWB.js";
@@ -14,7 +14,7 @@ import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // 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/decode.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/speech/decode.js
18
18
  import { spawn } from "node:child_process";
19
19
  import { mkdtemp, rm, writeFile } from "node:fs/promises";
20
20
  import { createRequire } from "node:module";
@@ -10,12 +10,12 @@ import {
10
10
  optional,
11
11
  pipe,
12
12
  safeParse
13
- } from "./chunk-L7VIPVHL.js";
13
+ } from "./chunk-SB47UAW2.js";
14
14
  import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
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/models/options.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/models/options.js
19
19
  var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
20
20
  const parsed = safeParse(schema, options);
21
21
  if (!parsed.success) {
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError,
5
5
  singleLine
6
- } from "./chunk-L7VIPVHL.js";
6
+ } from "./chunk-SB47UAW2.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // 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/domain/tags.js
11
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/tags.js
12
12
  var TAG_TYPES = ["chat", "contact", "message", "task"];
13
13
  var TAG = /^[a-z0-9-]{1,32}$/;
14
14
  var tagOf = /* @__PURE__ */ __name((value) => {
@@ -20,7 +20,7 @@ import {
20
20
  tool,
21
21
  toolKey,
22
22
  toolsFromCommands
23
- } from "./chunk-BNUNZTOU.js";
23
+ } from "./chunk-5MYLM6SU.js";
24
24
  import {
25
25
  CHART_KINDS,
26
26
  CHART_SIZE,
@@ -34,25 +34,25 @@ import {
34
34
  registerPrompts,
35
35
  stdinFieldOf,
36
36
  syncsFirst
37
- } from "./chunk-CMG54Q4X.js";
37
+ } from "./chunk-LXYC75D3.js";
38
38
  import {
39
39
  agentJson,
40
40
  skillResource
41
- } from "./chunk-FAOVUALC.js";
41
+ } from "./chunk-SPJJCD2A.js";
42
42
  import {
43
43
  instructions
44
- } from "./chunk-LPJ3S6GE.js";
44
+ } from "./chunk-TQFCPUIM.js";
45
45
  import {
46
46
  mcpHttpMarker
47
- } from "./chunk-OMUX4LSS.js";
47
+ } from "./chunk-UD4FKICZ.js";
48
48
  import {
49
49
  answeredWire
50
- } from "./chunk-FBJC7OCI.js";
50
+ } from "./chunk-JBBZCTTF.js";
51
51
  import {
52
52
  StdioServerTransport,
53
53
  callerOf,
54
54
  serveStdio
55
- } from "./chunk-2M2U43IF.js";
55
+ } from "./chunk-BNTAQADF.js";
56
56
  import {
57
57
  McpServer,
58
58
  ResourceTemplate
@@ -60,21 +60,21 @@ import {
60
60
  import {
61
61
  connectedFor,
62
62
  guardFor
63
- } from "./chunk-E4T7IJJO.js";
63
+ } from "./chunk-6URISMGR.js";
64
64
  import {
65
65
  lackedNeed,
66
66
  wholeList
67
- } from "./chunk-TD4Y5LXG.js";
67
+ } from "./chunk-ECXRRW7J.js";
68
68
  import {
69
69
  capability,
70
70
  dateWindow,
71
71
  imageSize,
72
72
  servicesFor,
73
73
  storedDeps
74
- } from "./chunk-YESOQEOB.js";
74
+ } from "./chunk-5NLFQ644.js";
75
75
  import {
76
76
  findCommand
77
- } from "./chunk-QHT2LZRW.js";
77
+ } from "./chunk-JDJDVYGS.js";
78
78
  import {
79
79
  DEFAULT_OUTPUT_BYTES,
80
80
  changesAuthorityAt,
@@ -87,33 +87,33 @@ import {
87
87
  rootOf2 as rootOf,
88
88
  sealed,
89
89
  snakeKeys
90
- } from "./chunk-AOSIU5T6.js";
90
+ } from "./chunk-IOUPXUFH.js";
91
91
  import {
92
92
  readOnlyLockOf
93
- } from "./chunk-6LHTWR3X.js";
93
+ } from "./chunk-Q4ZE2LXE.js";
94
94
  import {
95
95
  withCaller
96
- } from "./chunk-XOJGXWTK.js";
96
+ } from "./chunk-NQCFUYC2.js";
97
97
  import {
98
98
  typedCommand
99
- } from "./chunk-4XI4PDEH.js";
99
+ } from "./chunk-4OQVRDTG.js";
100
100
  import {
101
101
  isCliFailure
102
- } from "./chunk-77GJITSU.js";
102
+ } from "./chunk-7LQLJ7LW.js";
103
103
  import {
104
104
  levelFor,
105
105
  readKeysForCommand
106
- } from "./chunk-CUSGSXSR.js";
106
+ } from "./chunk-HIZQYFY3.js";
107
107
  import {
108
108
  warmEmbedders
109
- } from "./chunk-B45MFBBF.js";
109
+ } from "./chunk-EJFSS65P.js";
110
110
  import {
111
111
  openStore,
112
112
  pdfPreviewLimits
113
- } from "./chunk-UPWHCUVA.js";
113
+ } from "./chunk-TILW3EJY.js";
114
114
  import {
115
115
  timezoneOf
116
- } from "./chunk-NVN4O5IC.js";
116
+ } from "./chunk-D6FTCPXA.js";
117
117
  import {
118
118
  CliError,
119
119
  description,
@@ -131,15 +131,15 @@ import {
131
131
  strictObject,
132
132
  string,
133
133
  visibleControls
134
- } from "./chunk-L7VIPVHL.js";
134
+ } from "./chunk-SB47UAW2.js";
135
135
  import {
136
136
  __name
137
137
  } from "./chunk-ZVVMGPBJ.js";
138
138
 
139
- // 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/mcp/server.js
139
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/server.js
140
140
  import { randomUUID } from "node:crypto";
141
141
 
142
- // 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/mcp/agent-log.js
142
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
143
143
  var agentLog = /* @__PURE__ */ __name((open) => {
144
144
  let held;
145
145
  return {
@@ -158,7 +158,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
158
158
  };
159
159
  }, "agentLog");
160
160
 
161
- // 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/mcp/resources.js
161
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/resources.js
162
162
  var LISTED = 100;
163
163
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
164
164
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -196,7 +196,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
196
196
  });
197
197
  }, "registerResources");
198
198
 
199
- // 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/mcp/session.js
199
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/session.js
200
200
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
201
201
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
202
202
  var MessengerSession = class {
@@ -271,7 +271,7 @@ var MessengerSession = class {
271
271
  }
272
272
  };
273
273
 
274
- // 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/mcp/tools/attachments.js
274
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
275
275
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
276
276
  const _command = messenger.app.command;
277
277
  return {
@@ -325,7 +325,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
325
325
  };
326
326
  }, "attachmentsTools");
327
327
 
328
- // 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/mcp/tools/messages-photo.js
328
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
329
329
  var PHOTO_LIMIT = 512 * 1024;
330
330
  var IMAGE_TYPES = [
331
331
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -379,7 +379,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
379
379
  return new Uint8Array(Buffer.concat(chunks));
380
380
  }, "readUpTo");
381
381
 
382
- // 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/mcp/tools/stats.js
382
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
383
383
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
384
384
  stats_charts: tool({
385
385
  title: "A chart from a chat's statistics",
@@ -416,14 +416,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
416
416
  })
417
417
  }), "statsTools");
418
418
 
419
- // 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/mcp/tools.js
419
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/tools.js
420
420
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
421
421
  ...messagesPhotoTools(messenger),
422
422
  ...attachmentsTools(messenger),
423
423
  ...statsTools(messenger)
424
424
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
425
425
 
426
- // 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/mcp/server.js
426
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/server.js
427
427
  var PER_RUN = /* @__PURE__ */ new Set([
428
428
  "streams",
429
429
  "stdin",
@@ -747,7 +747,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
747
747
  }, "serveOverStdio");
748
748
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
749
749
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
750
- const { serveOverHttp } = await import("./serve-JBT2BWHK.js");
750
+ const { serveOverHttp } = await import("./serve-6UJCZD7Z.js");
751
751
  const appName = messenger.app.command;
752
752
  const appEnvPrefix = messenger.app.envPrefix;
753
753
  const listening = await serveOverHttp(build, {
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  openOrdinaryFile
5
- } from "./chunk-JKWYXBGK.js";
5
+ } from "./chunk-CXPHUOJR.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-L7VIPVHL.js";
8
+ } from "./chunk-SB47UAW2.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // 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/wav.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/speech/wav.js
14
14
  import { createHash } from "node:crypto";
15
15
  import { basename, resolve } from "node:path";
16
16
  var prepared = /* @__PURE__ */ new WeakMap();
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  checkCancelled,
5
5
  object
6
- } from "./chunk-6SLGIPLT.js";
6
+ } from "./chunk-IOCS5FXW.js";
7
7
  import {
8
8
  CliError,
9
9
  Credentials,
10
10
  isCliError
11
- } from "./chunk-L7VIPVHL.js";
11
+ } from "./chunk-SB47UAW2.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
@@ -19,7 +19,8 @@ var TOKEN_LOG_EVENT = "zoom.token.exchange";
19
19
  var abortReason = /* @__PURE__ */ __name((parent) => !parent?.aborted ? "timeout" : isCliError(parent.reason) ? parent.reason.code : "cancelled", "abortReason");
20
20
  var storesOf = /* @__PURE__ */ __name(({ configDir, service, keyring }) => configDir === void 0 ? void 0 : {
21
21
  auto: new Credentials({ configDir, service, keyring }),
22
- file: new Credentials({ configDir, service, keyring, storage: "file" })
22
+ file: new Credentials({ configDir, service, keyring, storage: "file" }),
23
+ keyring: new Credentials({ configDir, service, keyring, storage: "keyring" })
23
24
  }, "storesOf");
24
25
  var TokenManager = class _TokenManager {
25
26
  static {
@@ -96,7 +97,7 @@ var TokenManager = class _TokenManager {
96
97
  }
97
98
  read(account) {
98
99
  if (this.stores)
99
- return this.stores.file.read(account)?.secret ?? this.stores.auto.read(account)?.secret ?? null;
100
+ return this.stores.auto.read(account)?.secret ?? null;
100
101
  try {
101
102
  return this.options.keyring.get(this.options.service, account);
102
103
  } catch {
@@ -123,15 +124,17 @@ var TokenManager = class _TokenManager {
123
124
  throw new CliError("authentication_error", "saved login is invalid; run zm <profile> session start again, or sign in from WireCat Desktop (Tools \u2192 Zoom \u2192 Manage)");
124
125
  }
125
126
  }
126
- save(tokens, account = this.accountOf()) {
127
+ /** `signIn` moves a login kept in the file back to the keyring; a refresh stays where the login is. */
128
+ save(tokens, account = this.accountOf(), { signIn = false } = {}) {
127
129
  if (this.stores) {
128
- const { auto, file } = this.stores;
129
- const storage = this.options.storage ?? this.storageOf(account);
130
130
  const value = JSON.stringify(tokens);
131
- if (storage === "file")
132
- file.write(account, value);
133
- else if (auto.write(account, value) === "keyring" && this.options.storage === "keyring")
134
- file.remove(account);
131
+ if (this.options.storage !== "file") {
132
+ this.stores.auto.write(account, value, { signIn });
133
+ return;
134
+ }
135
+ this.stores.file.write(account, value);
136
+ if (signIn)
137
+ this.forgetKeyringCopy(account);
135
138
  return;
136
139
  }
137
140
  try {
@@ -140,6 +143,13 @@ var TokenManager = class _TokenManager {
140
143
  throw new CliError("configuration_error", "could not save login to the system keyring");
141
144
  }
142
145
  }
146
+ /** After `--credential-storage file`: an older keyring copy must not outlive the file the owner chose. */
147
+ forgetKeyringCopy(account) {
148
+ try {
149
+ this.stores?.keyring.remove(account);
150
+ } catch {
151
+ }
152
+ }
143
153
  async exchange(params, previous, clientId = this.options.clientId, account = this.options.account ?? clientId) {
144
154
  checkCancelled(this.options.signal);
145
155
  const signal = this.options.signal ? AbortSignal.any([this.options.signal, AbortSignal.timeout(3e4)]) : AbortSignal.timeout(3e4);
@@ -188,7 +198,7 @@ var TokenManager = class _TokenManager {
188
198
  scopes: typeof body.scope === "string" ? body.scope.split(/\s+/).filter(Boolean) : previous?.scopes ?? []
189
199
  };
190
200
  try {
191
- this.save(tokens, account);
201
+ this.save(tokens, account, { signIn: params.grant_type !== "refresh_token" });
192
202
  } catch (error) {
193
203
  record("error", { outcome: "save_failed", status: response.status, ...rotated, saved: false });
194
204
  throw error;
@@ -7,12 +7,12 @@ import {
7
7
  import {
8
8
  singleLine,
9
9
  visibleControls
10
- } from "./chunk-L7VIPVHL.js";
10
+ } from "./chunk-SB47UAW2.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // 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/render/messages.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/render/messages.js
16
16
  import { styleText } from "node:util";
17
17
  var TIME_WIDTH = 8;
18
18
  var INDENT = " ".repeat(TIME_WIDTH + 2);