@wirecat/mail-cli 0.11.0 → 0.13.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 (110) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/bin/mail.js +6 -2
  3. package/dist/bundle/{all-profiles-OJPRIFKU.js → all-profiles-EEOMFTKE.js} +9 -9
  4. package/dist/bundle/{anthropic-3AXHD4WH.js → anthropic-FPSVNB3F.js} +6 -6
  5. package/dist/bundle/{app-server-V4KHCUGE.js → app-server-3T6UVR7B.js} +47 -45
  6. package/dist/bundle/{bun-ISYNUTQJ.js → bun-MSNAKMDK.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-FH3D4AXL.js → bun-sqlite-GIBBI5DV.js} +5 -5
  8. package/dist/bundle/{chunk-TTKNBUMT.js → chunk-2Y3RKROM.js} +13 -3
  9. package/dist/bundle/{chunk-UDJIC6YL.js → chunk-3BC2XSNX.js} +33 -28
  10. package/dist/bundle/{chunk-OHC4GVWV.js → chunk-3CBK26T2.js} +2 -2
  11. package/dist/bundle/{chunk-QB54TE52.js → chunk-3QEYHTCQ.js} +1 -1
  12. package/dist/bundle/{chunk-T3AGR4TI.js → chunk-5XTJUQZ5.js} +667 -160
  13. package/dist/bundle/{chunk-IG2WXKIT.js → chunk-6KDFUPBT.js} +8 -8
  14. package/dist/bundle/{chunk-GUFWLTOW.js → chunk-6O6CM2ML.js} +2 -2
  15. package/dist/bundle/{chunk-MDIRW3AT.js → chunk-72CGQMAZ.js} +2 -2
  16. package/dist/bundle/{chunk-FYMQPAE5.js → chunk-7CSK47S2.js} +4 -4
  17. package/dist/bundle/{chunk-IWHXM2S7.js → chunk-7D7AKYQ2.js} +625 -298
  18. package/dist/bundle/{chunk-XTIQFMZH.js → chunk-7FCPLSSM.js} +4 -4
  19. package/dist/bundle/{chunk-V6K2GX2Y.js → chunk-7L26RKOS.js} +17 -17
  20. package/dist/bundle/{chunk-G2WDY5XB.js → chunk-AXWTELO4.js} +2 -2
  21. package/dist/bundle/{chunk-N6P55LDU.js → chunk-BZBNBPCR.js} +10 -10
  22. package/dist/bundle/{chunk-4DPICEPQ.js → chunk-CCHHEMPM.js} +2 -2
  23. package/dist/bundle/{chunk-F3QDSQ7V.js → chunk-CJPEL2N5.js} +27 -26
  24. package/dist/bundle/{chunk-IS6KAUSG.js → chunk-CSJYZEFR.js} +2 -2
  25. package/dist/bundle/{chunk-6UT3MXOB.js → chunk-EFA7FRFJ.js} +3 -3
  26. package/dist/bundle/{chunk-JIIEJLAX.js → chunk-EW3XTUPB.js} +4 -4
  27. package/dist/bundle/{chunk-SW5NVASW.js → chunk-FVZST7ZH.js} +9 -9
  28. package/dist/bundle/{chunk-X37KLD23.js → chunk-GIZILLRJ.js} +12 -12
  29. package/dist/bundle/{chunk-GFCNSU3B.js → chunk-GQGJV53E.js} +176 -47
  30. package/dist/bundle/{chunk-KJP2B65C.js → chunk-H3XWM2VA.js} +29 -28
  31. package/dist/bundle/{chunk-VEXXVLBM.js → chunk-H5XCD6OG.js} +3 -3
  32. package/dist/bundle/{chunk-L3PVAY3M.js → chunk-H6Y2A4JA.js} +2 -2
  33. package/dist/bundle/{chunk-K2F7YMMM.js → chunk-HANGU5HI.js} +8 -13
  34. package/dist/bundle/{chunk-HVVLSCFB.js → chunk-IGSHWMWC.js} +1 -1
  35. package/dist/bundle/{chunk-JNUKTAMZ.js → chunk-ILHTNOIV.js} +1 -1
  36. package/dist/bundle/{chunk-6LNRNQHJ.js → chunk-JBLZ5XQG.js} +6 -4
  37. package/dist/bundle/{chunk-IXYKM7OJ.js → chunk-JYZCISN7.js} +13 -13
  38. package/dist/bundle/{chunk-44LVUMS2.js → chunk-LO66SLGD.js} +1 -1
  39. package/dist/bundle/{chunk-NSDOYHIS.js → chunk-M7JREJFC.js} +8 -8
  40. package/dist/bundle/{chunk-2TTCKOQ7.js → chunk-MBWVZINS.js} +2 -2
  41. package/dist/bundle/{chunk-LXHLQ6RK.js → chunk-NHVOJHHD.js} +7 -9
  42. package/dist/bundle/{chunk-QPQSMJBW.js → chunk-OHDDGTCH.js} +10 -10
  43. package/dist/bundle/{chunk-GYNHU56E.js → chunk-OHFSAYZG.js} +4 -4
  44. package/dist/bundle/{chunk-TZGQPTZ2.js → chunk-PQLBPYJR.js} +1 -1
  45. package/dist/bundle/{chunk-PLPSFJO6.js → chunk-SOCALLW5.js} +6 -6
  46. package/dist/bundle/{chunk-LIQ5LICB.js → chunk-TBG3FRS6.js} +3 -3
  47. package/dist/bundle/{chunk-AJ4JS2ZR.js → chunk-UFWCJUGA.js} +8 -7
  48. package/dist/bundle/{chunk-4D52FA34.js → chunk-UGXTDYUY.js} +1 -1
  49. package/dist/bundle/{chunk-YDUES6ET.js → chunk-URC4ATBD.js} +4 -4
  50. package/dist/bundle/{chunk-SYBMOE6F.js → chunk-UUBAWUUI.js} +5526 -4503
  51. package/dist/bundle/chunk-V25TCQ3Z.js +34 -0
  52. package/dist/bundle/{chunk-PSXAC6OO.js → chunk-VD5UJUNR.js} +1 -1
  53. package/dist/bundle/{chunk-KVN4RY7E.js → chunk-VMLGER4M.js} +311 -139
  54. package/dist/bundle/{chunk-6QNPJSRM.js → chunk-VNBQHV5H.js} +6 -6
  55. package/dist/bundle/{chunk-YRZ23RCS.js → chunk-VNXCWZDW.js} +7 -7
  56. package/dist/bundle/{chunk-DN54W657.js → chunk-VSHQITKC.js} +4 -4
  57. package/dist/bundle/{chunk-4GPPRLIG.js → chunk-WBI7J5B7.js} +5 -5
  58. package/dist/bundle/{chunk-NBQQ2ZTF.js → chunk-XLCFCOT4.js} +14 -14
  59. package/dist/bundle/{chunk-WL7CYT7O.js → chunk-XPBRNJ2V.js} +1 -1
  60. package/dist/bundle/{chunk-S64N24ON.js → chunk-XV66LQXV.js} +3 -3
  61. package/dist/bundle/{chunk-JAWJZTFL.js → chunk-Y2O3DACO.js} +18 -18
  62. package/dist/bundle/{chunk-BYQ3Z6UL.js → chunk-YHSXNUFQ.js} +3 -3
  63. package/dist/bundle/{chunk-GAIVTJ3E.js → chunk-YMNF4QLY.js} +24 -23
  64. package/dist/bundle/{chunk-35Y3INBK.js → chunk-ZSS22YHM.js} +2 -2
  65. package/dist/bundle/{chunk-5TACUBRJ.js → chunk-ZXLJ5EKZ.js} +8 -8
  66. package/dist/bundle/command-contract-6QSZ5QHQ.js +33 -0
  67. package/dist/bundle/{decode-FM4C2WWG.js → decode-YRTMNHC6.js} +5 -5
  68. package/dist/bundle/{dispatch-K3HG4RYT.js → dispatch-BCS2RDF4.js} +8 -8
  69. package/dist/bundle/{dist-7LNVI7VB.js → dist-NOBSXRL2.js} +13 -13
  70. package/dist/bundle/{echarts-5C2A72XM.js → echarts-5UKZVIF6.js} +2 -2
  71. package/dist/bundle/{embed-N56P6YVY.js → embed-G62XY6BJ.js} +6 -6
  72. package/dist/bundle/{embedder-QLYKFLOL.js → embedder-SCHGLA74.js} +9 -9
  73. package/dist/bundle/{failure-5ZLVZTRU.js → failure-N5S6ZS62.js} +2 -2
  74. package/dist/bundle/{first-run-VMF4PJ7Q.js → first-run-DPF2BBQN.js} +11 -11
  75. package/dist/bundle/first-screen-4MRKF6RQ.js +31 -0
  76. package/dist/bundle/{instructions-QA5FHDOJ.js → instructions-7RP5OKLE.js} +1 -1
  77. package/dist/bundle/mail.js +12 -12
  78. package/dist/bundle/{mcp-LO2XDBBC.js → mcp-MNI62HHE.js} +2 -2
  79. package/dist/bundle/{node-OXJZWUYZ.js → node-ENCKD6SS.js} +2 -2
  80. package/dist/bundle/{node-sqlite-7GCEI67B.js → node-sqlite-4ICXMPYY.js} +11 -5
  81. package/dist/bundle/{oauth-VTPIYBTP.js → oauth-CX2WYMGN.js} +7 -7
  82. package/dist/bundle/{open-7XX3YF2X.js → open-HQZYHMVE.js} +5 -4
  83. package/dist/bundle/{openai-D3KRCXSY.js → openai-3ONJIA3F.js} +14 -14
  84. package/dist/bundle/{process-KFI7SXQD.js → process-OK3HRPMD.js} +1 -1
  85. package/dist/bundle/{program-INCGQV4G.js → program-FLKUE6LL.js} +2125 -866
  86. package/dist/bundle/{prompt-TBZT3APW.js → prompt-ZWKUQ42Y.js} +5 -5
  87. package/dist/bundle/{recognize-WQSE5ZPL.js → recognize-PHDYO6DC.js} +4 -4
  88. package/dist/bundle/{remote-J5HHRNVQ.js → remote-4CX7GFMU.js} +7 -7
  89. package/dist/bundle/{rerank-DP2Y3WDT.js → rerank-ZCZTGXDQ.js} +7 -7
  90. package/dist/bundle/{serve-VXPOQDQO.js → serve-3LBS7CPR.js} +11 -10
  91. package/dist/bundle/{server-OSBNGA2F.js → server-2BKI2OQP.js} +38 -37
  92. package/dist/bundle/server-X5F7VD2E.js +63 -0
  93. package/dist/bundle/{sqlite-runtime-XY32WOIT.js → sqlite-runtime-J5T7SR5W.js} +6 -5
  94. package/dist/bundle/{state-KPOPMR6O.js → state-TIRNYVEL.js} +6 -6
  95. package/dist/bundle/{store-FWRGNGP3.js → store-F7ZXMIAP.js} +29 -18
  96. package/dist/bundle/{store-UBI2YCRC.js → store-NGE2E7KZ.js} +16 -13
  97. package/dist/bundle/store-maintenance-command-QZV76KAH.js +53 -0
  98. package/dist/commands/session.js +1 -1
  99. package/dist/commands/session.js.map +1 -1
  100. package/dist/commands/status.d.ts.map +1 -1
  101. package/dist/commands/status.js +12 -7
  102. package/dist/commands/status.js.map +1 -1
  103. package/dist/version.d.ts +1 -1
  104. package/dist/version.js +1 -1
  105. package/package.json +3 -3
  106. package/dist/bundle/command-contract-TW44FY47.js +0 -33
  107. package/dist/bundle/first-screen-ZN7ODW5K.js +0 -31
  108. package/dist/bundle/server-XHWSCXVX.js +0 -62
  109. package/dist/bundle/store-maintenance-command-3ZXPEIGF.js +0 -52
  110. /package/dist/bundle/{chunk-MRLSUCHT.js → chunk-NUN6OGOV.js} +0 -0
@@ -3,11 +3,11 @@ import { createRequire as __bundleRequire } from "node:module";
3
3
  const require = __bundleRequire(import.meta.url);
4
4
  import {
5
5
  IDENTITY
6
- } from "./chunk-IS6KAUSG.js";
6
+ } from "./chunk-CSJYZEFR.js";
7
7
  import {
8
8
  installerOf
9
- } from "./chunk-JNUKTAMZ.js";
10
- import "./chunk-MRLSUCHT.js";
9
+ } from "./chunk-ILHTNOIV.js";
10
+ import "./chunk-NUN6OGOV.js";
11
11
  import {
12
12
  DESCRIBE_FLAG,
13
13
  DISPATCH_FLAG,
@@ -18,13 +18,13 @@ import {
18
18
  fileState,
19
19
  shimFiles,
20
20
  writeShim
21
- } from "./chunk-JIIEJLAX.js";
22
- import "./chunk-JAWJZTFL.js";
21
+ } from "./chunk-EW3XTUPB.js";
22
+ import "./chunk-Y2O3DACO.js";
23
23
  import {
24
24
  catchCrashes
25
- } from "./chunk-NSDOYHIS.js";
25
+ } from "./chunk-M7JREJFC.js";
26
26
  import "./chunk-Y5E2WNWB.js";
27
- import "./chunk-4DPICEPQ.js";
27
+ import "./chunk-CCHHEMPM.js";
28
28
  import {
29
29
  __name
30
30
  } from "./chunk-ZVVMGPBJ.js";
@@ -32,10 +32,10 @@ import {
32
32
  // dist/bin/mail.js
33
33
  import { enableCompileCache } from "node:module";
34
34
 
35
- // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/start.js
35
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/start.js
36
36
  import { fileURLToPath } from "node:url";
37
37
 
38
- // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/launcher.js
38
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/launcher.js
39
39
  import { readFileSync } from "node:fs";
40
40
  import { basename, dirname, join, resolve } from "node:path";
41
41
  var posix = /* @__PURE__ */ __name((path) => path.replaceAll("\\", "/"), "posix");
@@ -119,7 +119,7 @@ var ensureLauncher = /* @__PURE__ */ __name(({ dir, program, platform }) => {
119
119
  }
120
120
  }, "ensureLauncher");
121
121
 
122
- // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/start.js
122
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/start.js
123
123
  var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
124
124
  const argv = io.argv ?? process.argv;
125
125
  const env = io.env ?? process.env;
@@ -132,7 +132,7 @@ var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
132
132
  return { code: 0 };
133
133
  }
134
134
  if (first === DISPATCH_FLAG) {
135
- const { runWcat } = await import("./dispatch-K3HG4RYT.js");
135
+ const { runWcat } = await import("./dispatch-BCS2RDF4.js");
136
136
  const code = await runWcat(rest, { env, platform, stdout, stderr: io.stderr ?? process.stderr, self: tool });
137
137
  return { code };
138
138
  }
@@ -158,7 +158,7 @@ if (wcat.code !== void 0) {
158
158
  process.exitCode = wcat.code;
159
159
  } else {
160
160
  const stopCatching = catchCrashes({ cli: IDENTITY.command, interactive: process.stdout.isTTY === true });
161
- const { run } = await import("./program-INCGQV4G.js");
161
+ const { run } = await import("./program-FLKUE6LL.js");
162
162
  try {
163
163
  process.exitCode = await run(process.argv.slice(2));
164
164
  } finally {
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  executableEnvironment,
5
5
  executableOnPath
6
- } from "./chunk-TZGQPTZ2.js";
6
+ } from "./chunk-PQLBPYJR.js";
7
7
  import {
8
8
  require_cross_spawn
9
9
  } from "./chunk-D72URWJE.js";
@@ -12,7 +12,7 @@ import {
12
12
  __toESM
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/mcp/index.js
15
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/mcp/index.js
16
16
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
17
17
  var realRun = /* @__PURE__ */ __name((file, args) => {
18
18
  const result = import_cross_spawn.default.sync(executableOnPath(file, process.env), args, {
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-PSXAC6OO.js";
21
+ } from "./chunk-VD5UJUNR.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
27
27
  import { DatabaseSync } from "node:sqlite";
28
28
  var nodeSQLiteCodecs = refineSqliteCodecs({
29
29
  "integer:boolean": { normalize: booleanFromInteger },
@@ -3,16 +3,20 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-35Y3INBK.js";
7
- import "./chunk-JAWJZTFL.js";
8
- import "./chunk-NSDOYHIS.js";
6
+ } from "./chunk-ZSS22YHM.js";
7
+ import {
8
+ TIME_LIMIT_FUNCTION,
9
+ beforeTimeLimit
10
+ } from "./chunk-V25TCQ3Z.js";
11
+ import "./chunk-Y2O3DACO.js";
12
+ import "./chunk-M7JREJFC.js";
9
13
  import "./chunk-Y5E2WNWB.js";
10
- import "./chunk-4DPICEPQ.js";
14
+ import "./chunk-CCHHEMPM.js";
11
15
  import {
12
16
  __name
13
17
  } from "./chunk-ZVVMGPBJ.js";
14
18
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
16
20
  import { DatabaseSync } from "node:sqlite";
17
21
  var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
18
22
  var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
@@ -29,6 +33,7 @@ var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
29
33
  var STATEMENT_CACHE_SIZE = 1e3;
30
34
  var cacheOverNodeSqlite = /* @__PURE__ */ __name((database, cacheSize = STATEMENT_CACHE_SIZE) => {
31
35
  const statements = /* @__PURE__ */ new Map();
36
+ database.function(TIME_LIMIT_FUNCTION, { deterministic: false, directOnly: true }, beforeTimeLimit);
32
37
  const prepare = /* @__PURE__ */ __name((sql) => {
33
38
  const statement = database.prepare(sql);
34
39
  return {
@@ -38,6 +43,7 @@ var cacheOverNodeSqlite = /* @__PURE__ */ __name((database, cacheSize = STATEMEN
38
43
  };
39
44
  }, "prepare");
40
45
  return {
46
+ timeLimit: true,
41
47
  exec: /* @__PURE__ */ __name((sql) => database.exec(sql), "exec"),
42
48
  prepare: /* @__PURE__ */ __name((sql) => {
43
49
  const cached = statements.get(sql);
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  ownerLogin,
5
5
  revokeAll
6
- } from "./chunk-DN54W657.js";
6
+ } from "./chunk-VSHQITKC.js";
7
7
  import "./chunk-5D4AEUVA.js";
8
- import "./chunk-GYNHU56E.js";
9
- import "./chunk-BYQ3Z6UL.js";
10
- import "./chunk-44LVUMS2.js";
11
- import "./chunk-JAWJZTFL.js";
12
- import "./chunk-NSDOYHIS.js";
8
+ import "./chunk-OHFSAYZG.js";
9
+ import "./chunk-YHSXNUFQ.js";
10
+ import "./chunk-LO66SLGD.js";
11
+ import "./chunk-Y2O3DACO.js";
12
+ import "./chunk-M7JREJFC.js";
13
13
  import "./chunk-Y5E2WNWB.js";
14
- import "./chunk-4DPICEPQ.js";
14
+ import "./chunk-CCHHEMPM.js";
15
15
  import "./chunk-ZVVMGPBJ.js";
16
16
  export {
17
17
  ownerLogin,
@@ -6,11 +6,12 @@ import {
6
6
  openCache,
7
7
  openFile,
8
8
  storeCapable
9
- } from "./chunk-K2F7YMMM.js";
10
- import "./chunk-JAWJZTFL.js";
11
- import "./chunk-NSDOYHIS.js";
9
+ } from "./chunk-HANGU5HI.js";
10
+ import "./chunk-V25TCQ3Z.js";
11
+ import "./chunk-Y2O3DACO.js";
12
+ import "./chunk-M7JREJFC.js";
12
13
  import "./chunk-Y5E2WNWB.js";
13
- import "./chunk-4DPICEPQ.js";
14
+ import "./chunk-CCHHEMPM.js";
14
15
  import "./chunk-ZVVMGPBJ.js";
15
16
  export {
16
17
  CAPABILITY_STATEMENTS,
@@ -3,37 +3,37 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  SAMPLE_RATE,
5
5
  toModelRate
6
- } from "./chunk-FYMQPAE5.js";
7
- import "./chunk-IXYKM7OJ.js";
6
+ } from "./chunk-7CSK47S2.js";
7
+ import "./chunk-JYZCISN7.js";
8
8
  import {
9
9
  OPENAI_URL
10
- } from "./chunk-6UT3MXOB.js";
11
- import "./chunk-6QNPJSRM.js";
10
+ } from "./chunk-EFA7FRFJ.js";
11
+ import "./chunk-VNBQHV5H.js";
12
12
  import {
13
13
  OPENAI_TRANSCRIBE_MODEL,
14
14
  VAD,
15
15
  filesPresent,
16
16
  modelsDirectory,
17
17
  vadPath
18
- } from "./chunk-6LNRNQHJ.js";
19
- import "./chunk-MDIRW3AT.js";
18
+ } from "./chunk-JBLZ5XQG.js";
19
+ import "./chunk-72CGQMAZ.js";
20
20
  import {
21
21
  DEFAULT_RETRY,
22
22
  backoffMs
23
- } from "./chunk-JAWJZTFL.js";
24
- import "./chunk-NSDOYHIS.js";
23
+ } from "./chunk-Y2O3DACO.js";
24
+ import "./chunk-M7JREJFC.js";
25
25
  import "./chunk-Y5E2WNWB.js";
26
26
  import {
27
27
  CliError
28
- } from "./chunk-4DPICEPQ.js";
28
+ } from "./chunk-CCHHEMPM.js";
29
29
  import {
30
30
  __name
31
31
  } from "./chunk-ZVVMGPBJ.js";
32
32
 
33
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/speech/openai.js
33
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/speech/openai.js
34
34
  import { setTimeout as wait } from "node:timers/promises";
35
35
 
36
- // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
36
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
37
37
  var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
38
38
  if (!header)
39
39
  return void 0;
@@ -57,7 +57,7 @@ var parseRateLimitReset = /* @__PURE__ */ __name((header, now) => {
57
57
  }, "parseRateLimitReset");
58
58
  var providerWaitMs = /* @__PURE__ */ __name((headers, now) => parseRetryAfter(headers.get("retry-after"), now) ?? parseRateLimitReset(headers.get("x-ratelimit-reset"), now), "providerWaitMs");
59
59
 
60
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/speech/wav.js
60
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/speech/wav.js
61
61
  var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
62
62
  const bytes = Buffer.alloc(44 + samples.length * 2);
63
63
  bytes.write("RIFF", 0, "ascii");
@@ -78,7 +78,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
78
78
  return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
79
79
  }, "encodeWav");
80
80
 
81
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/speech/openai.js
81
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/speech/openai.js
82
82
  var LONGEST_REQUEST_SECONDS = 600;
83
83
  var JOINED_SECONDS = 0.2;
84
84
  var PAD_SECONDS = 0.2;
@@ -200,7 +200,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
200
200
  return pieces;
201
201
  }, "piecesOf");
202
202
  var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
203
- const { openSpeechCutter } = await import("./recognize-WQSE5ZPL.js");
203
+ const { openSpeechCutter } = await import("./recognize-PHDYO6DC.js");
204
204
  return openSpeechCutter(vadModel);
205
205
  }, "openCutter");
206
206
  var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
@@ -5,7 +5,7 @@ import {
5
5
  __name
6
6
  } from "./chunk-ZVVMGPBJ.js";
7
7
 
8
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/embeddings/process.js
8
+ // node_modules/.pnpm/@wirecat+cli-core@0.556.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5fb5e28714725a9ac5c32d6d19d5eccc/node_modules/@wirecat/cli-core/dist/embeddings/process.js
9
9
  import { spawn } from "node:child_process";
10
10
  import { createInterface } from "node:readline";
11
11
  import { fileURLToPath } from "node:url";