@wirecat/zoom-cli 0.76.0 → 0.77.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 (212) hide show
  1. package/README.md +12 -11
  2. package/contracts/wirecat.json +53 -105
  3. package/dist/answer-entities.d.ts +1 -141
  4. package/dist/answer-entities.d.ts.map +1 -1
  5. package/dist/answer-entities.js +0 -31
  6. package/dist/answer-entities.js.map +1 -1
  7. package/dist/api.d.ts +18 -1
  8. package/dist/api.d.ts.map +1 -1
  9. package/dist/api.js +179 -54
  10. package/dist/api.js.map +1 -1
  11. package/dist/archive-commands.d.ts +0 -3
  12. package/dist/archive-commands.d.ts.map +1 -1
  13. package/dist/archive-commands.js +1 -54
  14. package/dist/archive-commands.js.map +1 -1
  15. package/dist/bin/zm.js +2 -2
  16. package/dist/bundle/{all-profiles-AAMFP7IN.js → all-profiles-PMCFNDMA.js} +11 -11
  17. package/dist/bundle/answer-policy-XU7KEW2V.js +121 -0
  18. package/dist/bundle/{anthropic-6KIS53QB.js → anthropic-TGJOKLUS.js} +6 -6
  19. package/dist/bundle/{app-server-6QYNNYEU.js → app-server-OAODUFM3.js} +73 -63
  20. package/dist/bundle/{bun-QVVCH4MJ.js → bun-HJHVHJJV.js} +2 -2
  21. package/dist/bundle/{bun-sqlite-Y2ZFMNQ3.js → bun-sqlite-PLBOY6FP.js} +7 -7
  22. package/dist/bundle/{chunk-OWZETMRE.js → chunk-2QDD6S2R.js} +8 -8
  23. package/dist/bundle/{chunk-FGRFIXG2.js → chunk-2QRGJSKO.js} +2 -2
  24. package/dist/bundle/{chunk-D2TGXSHQ.js → chunk-36SI35XZ.js} +5 -5
  25. package/dist/bundle/{chunk-4JPOELCT.js → chunk-375BH5OD.js} +4 -4
  26. package/dist/bundle/{chunk-OFODCJ2A.js → chunk-3TLQF3DN.js} +3 -3
  27. package/dist/bundle/{chunk-K3K3WKDB.js → chunk-4QNW4NK6.js} +1 -1
  28. package/dist/bundle/{chunk-YEBWRWE3.js → chunk-4Z4VOQRR.js} +17 -17
  29. package/dist/bundle/{chunk-LGBLYFKI.js → chunk-5A5W322G.js} +6 -2
  30. package/dist/bundle/chunk-5C5UEKUJ.js +170 -0
  31. package/dist/bundle/chunk-5C6CRSEM.js +389 -0
  32. package/dist/bundle/{chunk-VG63EXRC.js → chunk-5KHCFIWI.js} +2 -2
  33. package/dist/bundle/{chunk-LEVOI6Z3.js → chunk-635GRAO5.js} +12 -12
  34. package/dist/bundle/{chunk-Y2BGABXP.js → chunk-6JRBMNRN.js} +3 -3
  35. package/dist/bundle/{chunk-XC4V6YCS.js → chunk-6YCFDDRO.js} +1 -1
  36. package/dist/bundle/{chunk-VRA4RVQU.js → chunk-77JQIY2V.js} +3 -3
  37. package/dist/bundle/{chunk-CPOFLYPU.js → chunk-7AFYZOHU.js} +29 -29
  38. package/dist/bundle/{chunk-IXPBSDKB.js → chunk-7CMYNW3W.js} +4 -4
  39. package/dist/bundle/chunk-7DTU7QZP.js +72 -0
  40. package/dist/bundle/chunk-7ILGYNWX.js +773 -0
  41. package/dist/bundle/{chunk-Y4WEAWU7.js → chunk-7S3N5CTA.js} +1 -1
  42. package/dist/bundle/chunk-7SNU7RFU.js +229 -0
  43. package/dist/bundle/{chunk-TK77DCE5.js → chunk-A6LK2W5J.js} +1 -1
  44. package/dist/bundle/{chunk-UAV74EY4.js → chunk-ADJIYY33.js} +1 -1
  45. package/dist/bundle/{chunk-JWMOHEDL.js → chunk-B7XFDMFV.js} +10 -10
  46. package/dist/bundle/{chunk-GYTAHH5Y.js → chunk-BOJCRTQW.js} +2 -2
  47. package/dist/bundle/{chunk-HUHH25AG.js → chunk-CJL5GHTQ.js} +913 -544
  48. package/dist/bundle/{chunk-T2QVWRJF.js → chunk-CL6QAZGT.js} +39 -67
  49. package/dist/bundle/{chunk-NQ356ERO.js → chunk-CUJJZJ4R.js} +44 -8
  50. package/dist/bundle/{chunk-OINDAHXC.js → chunk-CZ6OO66B.js} +4 -4
  51. package/dist/bundle/chunk-DCEQIKFD.js +259 -0
  52. package/dist/bundle/{chunk-55SWKR6Y.js → chunk-DDUNPLET.js} +256 -588
  53. package/dist/bundle/{chunk-6VCQ4CTK.js → chunk-DYIRJINE.js} +1 -1
  54. package/dist/bundle/{chunk-WKT5RPSY.js → chunk-E3UPMPUV.js} +8 -8
  55. package/dist/bundle/{chunk-5T7TBK5Y.js → chunk-ECRFXQHA.js} +1 -1
  56. package/dist/bundle/{chunk-LOEK6IFQ.js → chunk-F4ROWGLU.js} +57 -35
  57. package/dist/bundle/{chunk-UYZDH5LK.js → chunk-FDQE2CLT.js} +1 -1
  58. package/dist/bundle/{chunk-M7WYBGQT.js → chunk-FRC5QIPQ.js} +8 -8
  59. package/dist/bundle/{chunk-3D5PETD2.js → chunk-FS5HPXQN.js} +9 -9
  60. package/dist/bundle/{chunk-QY6GE7CL.js → chunk-GHBDYYPO.js} +2 -2
  61. package/dist/bundle/{chunk-OOYIPK4F.js → chunk-H2EVYY5Z.js} +1 -1
  62. package/dist/bundle/{chunk-PFLJJQWW.js → chunk-I3QMPQYD.js} +49 -49
  63. package/dist/bundle/{chunk-XWQKRKMT.js → chunk-ICZVSVTW.js} +71 -252
  64. package/dist/bundle/{chunk-R47GYLNN.js → chunk-IJTBB23F.js} +29 -27
  65. package/dist/bundle/{chunk-WZJ7ZYR4.js → chunk-IS6MUPN2.js} +4 -4
  66. package/dist/bundle/{chunk-ORM73DZO.js → chunk-IUOKIZZN.js} +2 -2
  67. package/dist/bundle/{chunk-FMJ4QSSU.js → chunk-IZMRQ3MV.js} +10 -10
  68. package/dist/bundle/{chunk-HWYSJ4SL.js → chunk-JFVZVPRW.js} +3 -3
  69. package/dist/bundle/{chunk-7RORMNKP.js → chunk-JMU3E2WA.js} +2 -2
  70. package/dist/bundle/{chunk-6SXCGS3A.js → chunk-JQUYHPQD.js} +7 -7
  71. package/dist/bundle/{chunk-MDTEAKA5.js → chunk-KHBSQROH.js} +5 -5
  72. package/dist/bundle/{chunk-EPPE6ZTS.js → chunk-KYKW2W6X.js} +1 -1
  73. package/dist/bundle/chunk-LMZUC4CS.js +101 -0
  74. package/dist/bundle/{chunk-X73YEFQE.js → chunk-LUAS73NT.js} +18 -18
  75. package/dist/bundle/{chunk-25GMFXPF.js → chunk-LWMDLXEO.js} +2032 -2657
  76. package/dist/bundle/{chunk-GPIQY4YB.js → chunk-LYVHQ6DJ.js} +14 -14
  77. package/dist/bundle/{chunk-CXHUOPN5.js → chunk-MCLZ74II.js} +7 -7
  78. package/dist/bundle/chunk-MIG4RLDB.js +555 -0
  79. package/dist/bundle/{chunk-JADBHKBP.js → chunk-MMAZUJBO.js} +1 -1
  80. package/dist/bundle/{chunk-VABYJQYE.js → chunk-MTH3JJHF.js} +24 -22
  81. package/dist/bundle/{chunk-EZXW3ZCR.js → chunk-NJJEUG4C.js} +12 -12
  82. package/dist/bundle/{chunk-GZYICXO4.js → chunk-NKKVVPL5.js} +1 -1
  83. package/dist/bundle/{chunk-QLUU3BV2.js → chunk-NOF6LABG.js} +6 -6
  84. package/dist/bundle/{chunk-KEFDP6NL.js → chunk-NPDPD2H3.js} +12 -12
  85. package/dist/bundle/{chunk-5EII5RIL.js → chunk-NPIVV52M.js} +1 -1
  86. package/dist/bundle/{chunk-UG2QDGAH.js → chunk-OOIU36FA.js} +1 -1
  87. package/dist/bundle/{chunk-IUSY4ZJK.js → chunk-OXXJW3A5.js} +806 -1523
  88. package/dist/bundle/chunk-PM3MB3E7.js +295 -0
  89. package/dist/bundle/{chunk-EBIK5Q73.js → chunk-PO4RZ4XZ.js} +1 -1
  90. package/dist/bundle/{chunk-EZJSAYWZ.js → chunk-Q7ZW7XAX.js} +31 -87
  91. package/dist/bundle/{chunk-CS62FET6.js → chunk-QAGECFHL.js} +22 -22
  92. package/dist/bundle/{chunk-WNXC42IU.js → chunk-QE4L2QQZ.js} +9 -9
  93. package/dist/bundle/{chunk-YESHGC3M.js → chunk-QKNO3JTG.js} +2 -2
  94. package/dist/bundle/{chunk-TYAFL66K.js → chunk-QUGESVOE.js} +15 -31
  95. package/dist/bundle/{chunk-DQHS336B.js → chunk-RQS3W4P6.js} +7 -6
  96. package/dist/bundle/{chunk-XHVFX74L.js → chunk-SFPUSEOT.js} +2 -2
  97. package/dist/bundle/{chunk-YGKM2ZWF.js → chunk-SP5OMHOO.js} +3 -3
  98. package/dist/bundle/chunk-STNZQBY4.js +335 -0
  99. package/dist/bundle/{chunk-RJK5ADMH.js → chunk-SVJQRG5N.js} +16 -16
  100. package/dist/bundle/{chunk-B7ZREOBD.js → chunk-SY5NGYKA.js} +12 -12
  101. package/dist/bundle/{chunk-GB5LI5RM.js → chunk-T4CI3YXW.js} +6 -6
  102. package/dist/bundle/{chunk-ELW3LMJZ.js → chunk-T6RSYDFA.js} +342 -154
  103. package/dist/bundle/{chunk-ZETM63M6.js → chunk-TY4FFK2P.js} +6 -6
  104. package/dist/bundle/chunk-UGRGYLEI.js +224 -0
  105. package/dist/bundle/{chunk-4ERYXY4Y.js → chunk-VGERRRDC.js} +1 -1
  106. package/dist/bundle/{chunk-XRH2NKW4.js → chunk-VJ2TLU7R.js} +6 -6
  107. package/dist/bundle/{chunk-2HKUQ7DR.js → chunk-W7UCN7MF.js} +3 -3
  108. package/dist/bundle/{chunk-IVFNHIU4.js → chunk-WD5OL5JB.js} +81 -5
  109. package/dist/bundle/{chunk-CE5Y7PQU.js → chunk-XC3MWABM.js} +4 -4
  110. package/dist/bundle/{chunk-ZFYNJERV.js → chunk-XCA5N63N.js} +6 -6
  111. package/dist/bundle/chunk-XVHDT4CO.js +31 -0
  112. package/dist/bundle/{chunk-65VRWNDP.js → chunk-YFN5A7OP.js} +4 -4
  113. package/dist/bundle/{chunk-VCFSUGPE.js → chunk-YJIGGUPI.js} +4 -4
  114. package/dist/bundle/{chunk-RXUVXAMM.js → chunk-YVI5SQPY.js} +1 -1
  115. package/dist/bundle/{chunk-FBVJGJDM.js → chunk-ZRNNMBPC.js} +27 -574
  116. package/dist/bundle/{chunk-VJANMYEC.js → chunk-ZUMKZOHR.js} +3 -3
  117. package/dist/bundle/{chunk-35AH33VJ.js → chunk-ZZ32DXTH.js} +1 -1
  118. package/dist/bundle/{cli-FHMLYHUZ.js → cli-Y27PHKBV.js} +101 -84
  119. package/dist/bundle/command-contract-GB7YA3KW.js +45 -0
  120. package/dist/bundle/{command-server-entry-YEZM52R5.js → command-server-entry-AXQSW2X6.js} +35 -31
  121. package/dist/bundle/config-2OOABHR7.js +108 -0
  122. package/dist/bundle/{decode-SIYRMJOK.js → decode-ZRNOOTUZ.js} +16 -8
  123. package/dist/bundle/{dispatch-SMER3WDX.js → dispatch-2GHGPAYH.js} +9 -9
  124. package/dist/bundle/{dist-BSJETSFE.js → dist-MUFVAMKB.js} +25 -22
  125. package/dist/bundle/{echarts-UZJ6AREV.js → echarts-F4PHDYET.js} +2 -2
  126. package/dist/bundle/{embed-A7DSHVI7.js → embed-KWHCKPCV.js} +7 -7
  127. package/dist/bundle/{embedder-WQBR4UGS.js → embedder-U3R3RY54.js} +10 -10
  128. package/dist/bundle/{failure-73UQXQTW.js → failure-S2YXEN4A.js} +3 -3
  129. package/dist/bundle/first-run-F4YR2E2C.js +29 -0
  130. package/dist/bundle/first-screen-HPRHD3VK.js +43 -0
  131. package/dist/bundle/{folders-BH4SV6SI.js → folders-DVTRFQKW.js} +5 -5
  132. package/dist/bundle/{instructions-SDDUBGH4.js → instructions-JU4YW6QY.js} +1 -1
  133. package/dist/bundle/{main-KL4FN5F3.js → main-5UCRPACH.js} +24 -24
  134. package/dist/bundle/{mcp-GN4FTJX5.js → mcp-O6ACR2DX.js} +2 -2
  135. package/dist/bundle/meeting-combined-IWU5SPAH.js +26 -0
  136. package/dist/bundle/meeting-model-ILIUJECZ.js +26 -0
  137. package/dist/bundle/meeting-semantic-5DKRGZFS.js +23 -0
  138. package/dist/bundle/{meetings-URPXBHV7.js → meetings-T2UY35DV.js} +25 -7
  139. package/dist/bundle/{node-ELCNUOCE.js → node-MAVRAF4M.js} +2 -2
  140. package/dist/bundle/{node-sqlite-QLSNHZBM.js → node-sqlite-TFBQ5NDI.js} +8 -8
  141. package/dist/bundle/{oauth-LZ64S7Y3.js → oauth-7IG5HWSY.js} +8 -8
  142. package/dist/bundle/{open-WB4HUPQT.js → open-3R3N7L3X.js} +6 -6
  143. package/dist/bundle/openai-DD5I3DWC.js +28 -0
  144. package/dist/bundle/{output-file-AHPQA5LR.js → output-file-KKHHAYWF.js} +6 -6
  145. package/dist/bundle/{process-67DAKAAQ.js → process-OIO254NR.js} +1 -1
  146. package/dist/bundle/{program-CIMACIBE.js → program-IBYRU76H.js} +423 -251
  147. package/dist/bundle/{prompt-GG53UBDJ.js → prompt-LNEOO7PN.js} +6 -6
  148. package/dist/bundle/{recognize-CFJ3CAEH.js → recognize-2WYLT3PC.js} +5 -5
  149. package/dist/bundle/{remote-BLEM7C3Q.js → remote-7EAJEIV7.js} +11 -11
  150. package/dist/bundle/{rerank-ERN6PC66.js → rerank-DZBZ744F.js} +8 -8
  151. package/dist/bundle/run-log-CCIVRSHP.js +135 -0
  152. package/dist/bundle/{serve-FJPPTJXH.js → serve-T3KQV5SS.js} +15 -15
  153. package/dist/bundle/{server-FLUSDUGM.js → server-2QQAQZ2J.js} +59 -49
  154. package/dist/bundle/server-OJQMPF2R.js +84 -0
  155. package/dist/bundle/{services-LXC6DVUQ.js → services-DETAKMC3.js} +78 -54
  156. package/dist/bundle/{speech-WFEZTKXA.js → speech-HD57JNTK.js} +34 -18
  157. package/dist/bundle/{sqlite-runtime-KN33VSP7.js → sqlite-runtime-OCETZSEZ.js} +7 -7
  158. package/dist/bundle/{state-TXS4ZHIT.js → state-ZKVQ4DBI.js} +7 -7
  159. package/dist/bundle/{store-ZUREZYZB.js → store-7IZ2WMHF.js} +24 -20
  160. package/dist/bundle/{store-MUOXLVL4.js → store-GEAQ7V5R.js} +26 -22
  161. package/dist/bundle/store-connection-BALCZW7P.js +101 -0
  162. package/dist/bundle/store-maintenance-command-SBT4LDSI.js +76 -0
  163. package/dist/bundle/{streaming-ZSCHRC5S.js → streaming-CLBAO3MG.js} +7 -7
  164. package/dist/bundle/{tokens-YVDOY4EV.js → tokens-WH73ZWFI.js} +10 -10
  165. package/dist/bundle/zm.js +9 -9
  166. package/dist/bundle/{zoom-app-O6GIMB7Y.js → zoom-app-ZDTYMJET.js} +8 -8
  167. package/dist/commands.d.ts.map +1 -1
  168. package/dist/commands.js +3 -0
  169. package/dist/commands.js.map +1 -1
  170. package/dist/first-screen.d.ts.map +1 -1
  171. package/dist/first-screen.js +3 -5
  172. package/dist/first-screen.js.map +1 -1
  173. package/dist/meeting-integration-commands.d.ts.map +1 -1
  174. package/dist/meeting-integration-commands.js +46 -28
  175. package/dist/meeting-integration-commands.js.map +1 -1
  176. package/dist/meeting-source.d.ts.map +1 -1
  177. package/dist/meeting-source.js +15 -1
  178. package/dist/meeting-source.js.map +1 -1
  179. package/dist/permissions.d.ts +8 -4
  180. package/dist/permissions.d.ts.map +1 -1
  181. package/dist/permissions.js +25 -24
  182. package/dist/permissions.js.map +1 -1
  183. package/dist/program-bindings.d.ts.map +1 -1
  184. package/dist/program-bindings.js +8 -5
  185. package/dist/program-bindings.js.map +1 -1
  186. package/dist/program.d.ts +2 -1
  187. package/dist/program.d.ts.map +1 -1
  188. package/dist/program.js.map +1 -1
  189. package/dist/remote-meetings.d.ts +38 -8
  190. package/dist/remote-meetings.d.ts.map +1 -1
  191. package/dist/remote-meetings.js +52 -29
  192. package/dist/remote-meetings.js.map +1 -1
  193. package/dist/run.js +1 -1
  194. package/dist/version.d.ts +1 -1
  195. package/dist/version.js +1 -1
  196. package/dist/zoom-app.d.ts.map +1 -1
  197. package/dist/zoom-app.js +1 -0
  198. package/dist/zoom-app.js.map +1 -1
  199. package/package.json +3 -3
  200. package/skills/zoom-cli/SKILL.md +2 -2
  201. package/dist/bundle/answer-policy-ETAELI4A.js +0 -110
  202. package/dist/bundle/chunk-64N7MY3I.js +0 -161
  203. package/dist/bundle/command-contract-HUZ4I23S.js +0 -41
  204. package/dist/bundle/config-KVTWN7QZ.js +0 -97
  205. package/dist/bundle/first-run-SY6XSUZ3.js +0 -29
  206. package/dist/bundle/first-screen-ZDMODGWS.js +0 -39
  207. package/dist/bundle/openai-KN6JE4QU.js +0 -28
  208. package/dist/bundle/run-log-S67YPJF6.js +0 -124
  209. package/dist/bundle/server-UNJY3TSJ.js +0 -74
  210. package/dist/bundle/store-connection-NRNEBUPU.js +0 -90
  211. package/dist/bundle/store-maintenance-command-OBOPYFZ5.js +0 -65
  212. /package/dist/bundle/{chunk-BDCC2J2Z.js → chunk-VKE77B3F.js} +0 -0
@@ -2,40 +2,41 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  encodeWav
5
- } from "./chunk-VJANMYEC.js";
5
+ } from "./chunk-ZUMKZOHR.js";
6
6
  import {
7
7
  SAMPLE_RATE,
8
8
  toModelRate
9
- } from "./chunk-CE5Y7PQU.js";
9
+ } from "./chunk-XC3MWABM.js";
10
10
  import {
11
11
  OPENAI_URL,
12
12
  refuseModelAddress
13
- } from "./chunk-WNXC42IU.js";
13
+ } from "./chunk-QE4L2QQZ.js";
14
14
  import {
15
- endpointFetch
16
- } from "./chunk-YGKM2ZWF.js";
15
+ endpointFetch,
16
+ onThisComputer
17
+ } from "./chunk-SP5OMHOO.js";
17
18
  import {
18
19
  providerWaitMs
19
- } from "./chunk-ZFYNJERV.js";
20
+ } from "./chunk-XCA5N63N.js";
20
21
  import {
21
22
  OPENAI_TRANSCRIBE_MODEL,
22
23
  VAD,
23
24
  filesPresent,
24
25
  modelsDirectory,
25
26
  vadPath
26
- } from "./chunk-OINDAHXC.js";
27
+ } from "./chunk-CZ6OO66B.js";
27
28
  import {
28
29
  DEFAULT_RETRY,
29
30
  backoffMs
30
- } from "./chunk-CS62FET6.js";
31
+ } from "./chunk-QAGECFHL.js";
31
32
  import {
32
33
  CliError
33
- } from "./chunk-K3K3WKDB.js";
34
+ } from "./chunk-4QNW4NK6.js";
34
35
  import {
35
36
  __name
36
37
  } from "./chunk-ZVVMGPBJ.js";
37
38
 
38
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/speech/openai.js
39
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/speech/openai.js
39
40
  import { setTimeout as wait } from "node:timers/promises";
40
41
  var LONGEST_REQUEST_SECONDS = 600;
41
42
  var JOINED_SECONDS = 0.2;
@@ -91,27 +92,28 @@ var send = /* @__PURE__ */ __name(async (wav, options) => {
91
92
  const retry = options.retry ?? RETRY;
92
93
  const sleep = options.sleep ?? sleeping;
93
94
  const random = options.random ?? Math.random;
95
+ const who = options.label ?? "OpenAI";
94
96
  for (let attempt = 1; ; attempt++) {
95
97
  interrupted(options.signal);
96
98
  let response;
97
99
  try {
98
100
  response = await post(url, {
99
101
  method: "POST",
100
- headers: { authorization: `Bearer ${options.apiKey}` },
102
+ headers: options.apiKey ? { authorization: `Bearer ${options.apiKey}` } : {},
101
103
  body: formOf(wav, options),
102
104
  ...options.signal ? { signal: options.signal } : {}
103
105
  });
104
106
  } catch {
105
107
  interrupted(options.signal);
106
108
  if (attempt > retry.retries)
107
- throw new CliError("network_error", "OpenAI could not be reached", { reason: "network.failed" });
109
+ throw new CliError("network_error", `${who} could not be reached`, { reason: "network.failed" });
108
110
  await sleep(backoffMs(attempt, retry, random), options.signal);
109
111
  continue;
110
112
  }
111
113
  if (response.ok) {
112
114
  const body = await response.json().catch(() => interrupted(options.signal));
113
115
  if (typeof body?.text !== "string")
114
- throw new CliError("invalid_response", "OpenAI answered without a transcript", {
116
+ throw new CliError("invalid_response", `${who} answered without a transcript`, {
115
117
  reason: "provider.invalid-response"
116
118
  });
117
119
  return body.text.trim();
@@ -120,15 +122,15 @@ var send = /* @__PURE__ */ __name(async (wav, options) => {
120
122
  const status = response.status;
121
123
  const said = `HTTP ${status}${code ? `, ${code}` : type ? `, ${type}` : ""}`;
122
124
  if (status === 401)
123
- throw new CliError("authentication_error", `OpenAI refused the key (${said}) \u2014 set it again with \`models keys set openai\``, { reason: "auth.failed" });
125
+ throw new CliError("authentication_error", `${who} refused the key (${said}) \u2014 set it again with \`${options.keyHint ?? "models keys set openai"}\``, { reason: "auth.failed" });
124
126
  if (status === 403)
125
- throw new CliError("permission_error", `OpenAI refused the request (${said}) \u2014 it answers this when the country or region is not supported, or the key's project may not use the model`, { reason: "access.denied" });
127
+ throw new CliError("permission_error", `${who} refused the request (${said}) \u2014 OpenAI answers this when the country or region is not supported, or the key's project may not use the model`, { reason: "access.denied" });
126
128
  if (status === 413)
127
- throw new CliError("validation_error", `OpenAI refused the audio as too large (${said})`, {
129
+ throw new CliError("validation_error", `${who} refused the audio as too large (${said})`, {
128
130
  reason: "transcription.too-large"
129
131
  });
130
132
  if (EXHAUSTED.has(code ?? "") || EXHAUSTED.has(type ?? ""))
131
- throw new CliError("permission_error", `OpenAI refused: the account's credit, spend limit or usage limit is used up (${said}) \u2014 see the billing page`, { reason: "transcription.quota-exhausted" });
133
+ throw new CliError("permission_error", `${who} refused: the account's credit, spend limit or usage limit is used up (${said}) \u2014 see the billing page`, { reason: "transcription.quota-exhausted" });
132
134
  const again = status === 408 || status === 429 || status >= 500;
133
135
  const asked = providerWaitMs(response.headers, () => /* @__PURE__ */ new Date());
134
136
  if (again && attempt <= retry.retries && (asked === void 0 || asked <= retry.maxRetryAfterMs)) {
@@ -136,13 +138,13 @@ var send = /* @__PURE__ */ __name(async (wav, options) => {
136
138
  continue;
137
139
  }
138
140
  if (status === 429)
139
- throw new CliError("rate_limited", `OpenAI answered ${said}`, {
141
+ throw new CliError("rate_limited", `${who} answered ${said}`, {
140
142
  reason: "provider.rate-limited",
141
143
  ...asked === void 0 ? {} : { retry_after_ms: asked }
142
144
  });
143
145
  if (status >= 500)
144
- throw new CliError([502, 503, 504].includes(status) ? "provider_unavailable" : "provider_error", `OpenAI answered ${said}`, { reason: [502, 503, 504].includes(status) ? "provider.unavailable" : "provider.refused" });
145
- throw new CliError("provider_error", `OpenAI answered ${said}`, { reason: "provider.refused" });
146
+ throw new CliError([502, 503, 504].includes(status) ? "provider_unavailable" : "provider_error", `${who} answered ${said}`, { reason: [502, 503, 504].includes(status) ? "provider.unavailable" : "provider.refused" });
147
+ throw new CliError("provider_error", `${who} answered ${said}`, { reason: "provider.refused" });
146
148
  }
147
149
  }, "send");
148
150
  var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
@@ -159,7 +161,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
159
161
  return pieces;
160
162
  }, "piecesOf");
161
163
  var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
162
- const { openSpeechCutter } = await import("./recognize-CFJ3CAEH.js");
164
+ const { openSpeechCutter } = await import("./recognize-2WYLT3PC.js");
163
165
  return openSpeechCutter(vadModel);
164
166
  }, "openCutter");
165
167
  var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
@@ -169,7 +171,7 @@ var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
169
171
  }, "checkKeywords");
170
172
  var transcribeOpenAI = /* @__PURE__ */ __name(async (audio, options) => {
171
173
  refuseModelAddress(options.env ?? process.env, options.baseUrl ?? OPENAI_URL, "audio");
172
- if (!options.apiKey)
174
+ if (!options.apiKey && !onThisComputer(options.baseUrl ?? OPENAI_URL))
173
175
  throw new CliError("authentication_error", "no OpenAI key \u2014 `models keys set openai`, or OPENAI_API_KEY", {
174
176
  reason: "transcription.no-key"
175
177
  });
@@ -5,7 +5,7 @@ import {
5
5
  LIST_QUERY_GUIDE,
6
6
  nativeTerms,
7
7
  throughWrapper
8
- } from "./chunk-25GMFXPF.js";
8
+ } from "./chunk-LWMDLXEO.js";
9
9
  import {
10
10
  DEFAULT_CONFIG,
11
11
  environmentOf,
@@ -15,16 +15,16 @@ import {
15
15
  renderAnswer,
16
16
  snakeKeys,
17
17
  withAgentLevels
18
- } from "./chunk-55SWKR6Y.js";
18
+ } from "./chunk-DDUNPLET.js";
19
19
  import {
20
20
  readOnlyLockOf
21
- } from "./chunk-QY6GE7CL.js";
21
+ } from "./chunk-GHBDYYPO.js";
22
22
  import {
23
23
  formatReference
24
- } from "./chunk-TYAFL66K.js";
24
+ } from "./chunk-QUGESVOE.js";
25
25
  import {
26
26
  queryError
27
- } from "./chunk-FMJ4QSSU.js";
27
+ } from "./chunk-IZMRQ3MV.js";
28
28
  import {
29
29
  array,
30
30
  boolean,
@@ -34,15 +34,15 @@ import {
34
34
  safeParse,
35
35
  strictObject,
36
36
  string
37
- } from "./chunk-3D5PETD2.js";
37
+ } from "./chunk-FS5HPXQN.js";
38
38
  import {
39
39
  CliError
40
- } from "./chunk-K3K3WKDB.js";
40
+ } from "./chunk-4QNW4NK6.js";
41
41
  import {
42
42
  __name
43
43
  } from "./chunk-ZVVMGPBJ.js";
44
44
 
45
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
45
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
46
46
  var COMMAND_NEEDS = {
47
47
  "account update": ["updateProfile", "change the profile"],
48
48
  "account sessions list": ["sessions", "list the account's sessions"],
@@ -92,7 +92,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
92
92
  return group;
93
93
  }, "hideNever");
94
94
 
95
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/paging.js
95
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/paging.js
96
96
  var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
97
97
  if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
98
98
  throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
@@ -119,7 +119,7 @@ var pagingOf = /* @__PURE__ */ __name((command) => {
119
119
  return { limit: limit ?? DEFAULT_CONFIG.defaults.limit, page: page ?? 1 };
120
120
  }, "pagingOf");
121
121
 
122
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
122
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
123
123
  var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
124
124
  var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
125
125
  var settingsOf = /* @__PURE__ */ __name((settings) => defined({
@@ -381,7 +381,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
381
381
  ...createdAt === void 0 ? {} : { created_at: createdAt }
382
382
  }), "sessionAnswer");
383
383
 
384
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/background/relay.js
384
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/background/relay.js
385
385
  import { createHash } from "node:crypto";
386
386
  import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
387
387
  import { createConnection, createServer } from "node:net";
@@ -602,7 +602,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
602
602
  }, () => finish({ error: stopped() }));
603
603
  }), "relayCommand");
604
604
 
605
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
605
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
606
606
  var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
607
607
  close: /* @__PURE__ */ __name(async () => {
608
608
  }, "close"),
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
8
8
  var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
9
9
  `The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
10
10
  "Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
@@ -1,19 +1,19 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
- import {
4
- OAuthError,
5
- OAuthErrorCode
6
- } from "./chunk-5D4AEUVA.js";
7
3
  import {
8
4
  ACCESS_SECONDS,
9
5
  REFRESH_SECONDS,
10
6
  readStored
11
- } from "./chunk-IXPBSDKB.js";
7
+ } from "./chunk-7CMYNW3W.js";
8
+ import {
9
+ OAuthError,
10
+ OAuthErrorCode
11
+ } from "./chunk-5D4AEUVA.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -2,28 +2,28 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  isCommandServer
5
- } from "./chunk-Y4WEAWU7.js";
5
+ } from "./chunk-7S3N5CTA.js";
6
6
  import {
7
7
  envName,
8
8
  readOnlyLockOf
9
- } from "./chunk-QY6GE7CL.js";
9
+ } from "./chunk-GHBDYYPO.js";
10
10
  import {
11
11
  ensureSqlite
12
- } from "./chunk-7RORMNKP.js";
12
+ } from "./chunk-JMU3E2WA.js";
13
13
  import {
14
14
  catchCrashes
15
- } from "./chunk-3D5PETD2.js";
15
+ } from "./chunk-FS5HPXQN.js";
16
16
  import {
17
17
  CliError
18
- } from "./chunk-K3K3WKDB.js";
18
+ } from "./chunk-4QNW4NK6.js";
19
19
  import {
20
20
  __name
21
21
  } from "./chunk-ZVVMGPBJ.js";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/entry.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/entry.js
24
24
  import { spawn } from "node:child_process";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
27
27
  import { appendFileSync } from "node:fs";
28
28
  var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
29
29
  const words = [];
@@ -47,7 +47,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
47
47
  `);
48
48
  }, "logVersion");
49
49
 
50
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/entry.js
50
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/cli/entry.js
51
51
  var processIo = /* @__PURE__ */ __name(() => ({
52
52
  argv: process.argv,
53
53
  env: process.env,
@@ -67,7 +67,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
67
67
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-V"))
68
68
  return printVersion(entry.app, io);
69
69
  if (isCommandServer(args)) {
70
- const { serveEntry } = await import("./command-server-entry-YEZM52R5.js");
70
+ const { serveEntry } = await import("./command-server-entry-AXQSW2X6.js");
71
71
  return serveEntry(entry, io, { firstRunAt, commanderExit });
72
72
  }
73
73
  const tty = io.stdout.isTTY === true;
@@ -105,7 +105,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
105
105
  ask: /* @__PURE__ */ __name(async (question, command) => {
106
106
  if (headless(command) || io.stdin.isTTY !== true)
107
107
  return false;
108
- const { readSecret } = await import("./prompt-GG53UBDJ.js");
108
+ const { readSecret } = await import("./prompt-LNEOO7PN.js");
109
109
  const answer = await readSecret(`${question} [y/N] `, {
110
110
  input: io.stdin,
111
111
  output: io.stderr,
@@ -148,8 +148,8 @@ var firstRunAt = /* @__PURE__ */ __name((entry, io, headless) => async (command)
148
148
  if (command.optsWithGlobals().dryRun === true)
149
149
  return;
150
150
  const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
151
- import("./first-run-SY6XSUZ3.js"),
152
- import("./command-contract-HUZ4I23S.js")
151
+ import("./first-run-F4YR2E2C.js"),
152
+ import("./command-contract-GB7YA3KW.js")
153
153
  ]);
154
154
  await setupAtStart({
155
155
  command: entry.app.command,
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  isMovedRun,
5
5
  resolvePaths
6
- } from "./chunk-CS62FET6.js";
6
+ } from "./chunk-QAGECFHL.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/background/processes.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/background/processes.js
8
8
  import { execFileSync } from "node:child_process";
9
9
  import { readdirSync, readFileSync, readlinkSync } from "node:fs";
10
10
  var alive = /* @__PURE__ */ __name((pid) => {