@wirecat/cli-memo 0.131.76 → 0.131.78

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 (163) hide show
  1. package/dist/bin/memo.js +2 -2
  2. package/dist/bin/memo.js.map +1 -1
  3. package/dist/bundle/{all-profiles-CGQTLFDM.js → all-profiles-ZEUEPNFD.js} +10 -8
  4. package/dist/bundle/{anthropic-C744EPRR.js → anthropic-VF75LSDZ.js} +7 -5
  5. package/dist/bundle/{app-server-LOH7WXAB.js → app-server-Z4TY5VP5.js} +42 -40
  6. package/dist/bundle/auto-SA667UAT.js +91 -0
  7. package/dist/bundle/{bun-SQWZDSWT.js → bun-OUR5UZAI.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-YVBFXNWB.js → bun-sqlite-26ZGEVH3.js} +7 -5
  9. package/dist/bundle/{chunk-2KGYREGD.js → chunk-22RYCAAO.js} +1604 -1114
  10. package/dist/bundle/{chunk-W46O6RJ5.js → chunk-2IQWMWMC.js} +42 -130
  11. package/dist/bundle/{chunk-4O2MYFYC.js → chunk-3EPBPSP6.js} +1 -1
  12. package/dist/bundle/{chunk-KEBL3PY4.js → chunk-3QBRLN6T.js} +2 -2
  13. package/dist/bundle/{chunk-Y7YXXWQI.js → chunk-3QV5JWFN.js} +3 -3
  14. package/dist/bundle/{chunk-LLBZDBPT.js → chunk-4LZLU2V3.js} +4 -4
  15. package/dist/bundle/{chunk-6RPLAGAL.js → chunk-5NBQOU5V.js} +22 -22
  16. package/dist/bundle/{chunk-AUCXJVUI.js → chunk-5PCPPT43.js} +34 -32
  17. package/dist/bundle/{chunk-VYCLOFPC.js → chunk-6A37YXAL.js} +6 -184
  18. package/dist/bundle/{chunk-3PLYUZAR.js → chunk-6ABWVQ4T.js} +1 -1
  19. package/dist/bundle/{chunk-NM4QMIOQ.js → chunk-6GHBGGN7.js} +3 -3
  20. package/dist/bundle/{chunk-RTSRESGX.js → chunk-7DKS4GIW.js} +6 -6
  21. package/dist/bundle/{chunk-RLRKBPLJ.js → chunk-7ENXMVT5.js} +25 -13
  22. package/dist/bundle/{chunk-KA5MDFLU.js → chunk-A3QZXQI3.js} +1 -1
  23. package/dist/bundle/{chunk-ZHAHSVQO.js → chunk-AZIXZIXT.js} +7 -7
  24. package/dist/bundle/{chunk-NE3UIK5P.js → chunk-B2ZAEF5Z.js} +2 -2
  25. package/dist/bundle/{chunk-2EZFUIL4.js → chunk-BA6GHX5B.js} +27 -27
  26. package/dist/bundle/{chunk-V6CRCAWN.js → chunk-D67YDJ35.js} +505 -305
  27. package/dist/bundle/{chunk-C7OOLF5J.js → chunk-DAEPTQ6N.js} +6 -6
  28. package/dist/bundle/{chunk-MODHP5VA.js → chunk-DDPZY27T.js} +22 -18
  29. package/dist/bundle/{chunk-YSOTOUHJ.js → chunk-E5JVYVRX.js} +15 -15
  30. package/dist/bundle/{chunk-HAMGOLFU.js → chunk-EF33DKMR.js} +1 -1
  31. package/dist/bundle/{chunk-N2FIIVJV.js → chunk-EI7LYQQA.js} +4 -4
  32. package/dist/bundle/{chunk-4DTJF6E7.js → chunk-EIQ6HCIB.js} +8 -8
  33. package/dist/bundle/{chunk-OEH5JUAL.js → chunk-ELKRFQ5Y.js} +13 -13
  34. package/dist/bundle/chunk-EXFRC4OT.js +106 -0
  35. package/dist/bundle/{chunk-EVLOYNXC.js → chunk-F7MKFYYP.js} +4 -4
  36. package/dist/bundle/{chunk-YRJ2576I.js → chunk-GXHPPHGB.js} +11 -11
  37. package/dist/bundle/{chunk-YNXQAB4X.js → chunk-H2AQV772.js} +11 -11
  38. package/dist/bundle/{chunk-KYLKZKQ7.js → chunk-I6CZU7X7.js} +2 -2
  39. package/dist/bundle/{chunk-TGURQ4YH.js → chunk-IFANDP3T.js} +8 -2
  40. package/dist/bundle/{chunk-MFQTOOHR.js → chunk-JHW2ARPA.js} +35 -35
  41. package/dist/bundle/{chunk-DUON3SRD.js → chunk-KUY35N7Q.js} +8 -8
  42. package/dist/bundle/{chunk-SF2OLWBU.js → chunk-LJRXD44C.js} +7 -7
  43. package/dist/bundle/{chunk-VFJAGY3L.js → chunk-MUFU4LNS.js} +3 -3
  44. package/dist/bundle/{chunk-3NCRQMEN.js → chunk-MW6IAMUI.js} +1 -1
  45. package/dist/bundle/{chunk-PFNEOHCY.js → chunk-N7CHOWDF.js} +3 -3
  46. package/dist/bundle/{chunk-S54Z74G2.js → chunk-NGWKI3E6.js} +2 -2
  47. package/dist/bundle/{chunk-ODCHYVTW.js → chunk-NXQFVHG4.js} +163 -154
  48. package/dist/bundle/{chunk-AI6PMW7L.js → chunk-OHMF7LWW.js} +6 -6
  49. package/dist/bundle/{chunk-XGPSFPLH.js → chunk-OMCET4QP.js} +48 -48
  50. package/dist/bundle/{chunk-YU7KZW5I.js → chunk-OMGNXKSH.js} +5 -5
  51. package/dist/bundle/{chunk-4IWOPJL4.js → chunk-OUATPEPP.js} +7 -7
  52. package/dist/bundle/{chunk-5NY7U6CM.js → chunk-P3UQGKGY.js} +12 -10
  53. package/dist/bundle/{chunk-DDSKTPU7.js → chunk-PTKJIA7M.js} +4 -4
  54. package/dist/bundle/{chunk-TD4HM7XL.js → chunk-Q2CQNT3A.js} +1 -1
  55. package/dist/bundle/{chunk-GB64N6DP.js → chunk-QEJHNTCX.js} +298 -297
  56. package/dist/bundle/{chunk-FUATAPSB.js → chunk-QU7UPCW2.js} +83 -81
  57. package/dist/bundle/{chunk-TPWAXJUQ.js → chunk-T37LLOZR.js} +1 -1
  58. package/dist/bundle/{chunk-OJU774SG.js → chunk-T6LXUBXY.js} +4 -4
  59. package/dist/bundle/{chunk-TXVXEE7L.js → chunk-TT5RMHM6.js} +6 -6
  60. package/dist/bundle/{chunk-Z3NRIW4M.js → chunk-TWWYDJBW.js} +1 -1
  61. package/dist/bundle/{chunk-ZIA7AU7L.js → chunk-UIJBGS6K.js} +2 -2
  62. package/dist/bundle/{chunk-7PSGKP3R.js → chunk-UWF6WXM7.js} +8 -8
  63. package/dist/bundle/{chunk-FH753LZS.js → chunk-VHA3LJQT.js} +2 -2
  64. package/dist/bundle/{chunk-GBU4U55M.js → chunk-VJLJFLKZ.js} +1 -1
  65. package/dist/bundle/{chunk-H3WELZYK.js → chunk-WETWQO6X.js} +3 -3
  66. package/dist/bundle/{chunk-7OZEQIK7.js → chunk-WHMKYJZR.js} +1 -1
  67. package/dist/bundle/{chunk-7XFJRX6F.js → chunk-WHZJHUK6.js} +3 -3
  68. package/dist/bundle/{chunk-W5ARY4U2.js → chunk-WYSFOL74.js} +4 -4
  69. package/dist/bundle/chunk-X2SA73EE.js +200 -0
  70. package/dist/bundle/{chunk-47WS4BML.js → chunk-XC26CUGL.js} +12 -10
  71. package/dist/bundle/{chunk-6YRVBXFH.js → chunk-XTCN3VUP.js} +10 -10
  72. package/dist/bundle/{chunk-O3KNZVDZ.js → chunk-Y2J52Y3A.js} +4 -4
  73. package/dist/bundle/{chunk-42UNPXTC.js → chunk-YOM4PA3A.js} +2 -2
  74. package/dist/bundle/{chunk-YD7XTYEC.js → chunk-Z4TPRASF.js} +6 -6
  75. package/dist/bundle/{chunk-5AQIET5P.js → chunk-ZKCAR2OL.js} +2 -2
  76. package/dist/bundle/command-contract-L5GTW74N.js +34 -0
  77. package/dist/bundle/{command-server-entry-472XWNSN.js → command-server-entry-A7ZCZWHH.js} +22 -20
  78. package/dist/bundle/{decode-SFZ67QJN.js → decode-FO2ELPW6.js} +7 -5
  79. package/dist/bundle/{dispatch-PHB2Y6ZL.js → dispatch-N73TJNYM.js} +3 -3
  80. package/dist/bundle/{echarts-3U34KH7O.js → echarts-HTY3OB2X.js} +2 -2
  81. package/dist/bundle/{embed-ZEZXJ45Q.js → embed-2DTGMR7Z.js} +8 -6
  82. package/dist/bundle/{embedder-AASO2I4Z.js → embedder-N3IGQ2M6.js} +11 -9
  83. package/dist/bundle/entry-Q7CIJ3TU.js +23 -0
  84. package/dist/bundle/entry-YDEKGRCA.js +78 -0
  85. package/dist/bundle/{failure-OBT7CUVW.js → failure-IPHFR3KW.js} +3 -2
  86. package/dist/bundle/failure-QL3RJILP.js +71 -0
  87. package/dist/bundle/{first-run-YL3TIUU3.js → first-run-SAADMYEA.js} +11 -9
  88. package/dist/bundle/first-screen-WXKAIMY6.js +32 -0
  89. package/dist/bundle/{instructions-HG2ZZ7AP.js → instructions-XB5Y5DFA.js} +1 -1
  90. package/dist/bundle/mcp-IRJS472M.js +92 -0
  91. package/dist/bundle/memo.js +9 -56
  92. package/dist/bundle/{node-7AQN6OTR.js → node-4ZOD7X75.js} +2 -2
  93. package/dist/bundle/{node-sqlite-55KMFPGI.js → node-sqlite-DWXKYFW6.js} +8 -6
  94. package/dist/bundle/{oauth-S2GLD4PY.js → oauth-GMIBNJQB.js} +9 -7
  95. package/dist/bundle/{open-6R4UPST5.js → open-3DBI3MHV.js} +7 -5
  96. package/dist/bundle/openai-HFJAR7W5.js +26 -0
  97. package/dist/bundle/{process-C7J3IT7Q.js → process-2H5HNPHH.js} +1 -1
  98. package/dist/bundle/{program-KWI6M5IB.js → program-VXKN6DLP.js} +300 -149
  99. package/dist/bundle/{prompt-EEFKVWSA.js → prompt-WETKFAQS.js} +7 -5
  100. package/dist/bundle/{recognize-STYHVWQ6.js → recognize-5LC3DQ2W.js} +6 -4
  101. package/dist/bundle/{remote-6MXZXHYY.js → remote-FURTWZ25.js} +9 -7
  102. package/dist/bundle/{rerank-IMX2ONZG.js → rerank-CMQWT3WC.js} +9 -7
  103. package/dist/bundle/serve-LEF3PX34.js +24 -0
  104. package/dist/bundle/server-C2EVLJLW.js +64 -0
  105. package/dist/bundle/{server-L6OS2MJ5.js → server-GYLFN6Y7.js} +62 -59
  106. package/dist/bundle/server-L7GHFXJF.js +50 -0
  107. package/dist/bundle/{state-7MP4KKPG.js → state-OVZT24JF.js} +8 -6
  108. package/dist/bundle/{store-EMAKEEYI.js → store-SV46T732.js} +14 -12
  109. package/dist/bundle/store-maintenance-command-TZYC5HVL.js +49 -0
  110. package/dist/bundle/update-PRBIV3RG.js +74 -0
  111. package/dist/people/command.d.ts.map +1 -1
  112. package/dist/people/command.js +3 -2
  113. package/dist/people/command.js.map +1 -1
  114. package/dist/people/identities-command.d.ts.map +1 -1
  115. package/dist/people/identities-command.js +2 -0
  116. package/dist/people/identities-command.js.map +1 -1
  117. package/dist/reasons.d.ts.map +1 -1
  118. package/dist/reasons.js +6 -0
  119. package/dist/reasons.js.map +1 -1
  120. package/dist/run/entry.d.ts +7 -0
  121. package/dist/run/entry.d.ts.map +1 -0
  122. package/dist/run/entry.js +62 -0
  123. package/dist/run/entry.js.map +1 -0
  124. package/dist/sources/command.d.ts.map +1 -1
  125. package/dist/sources/command.js +29 -3
  126. package/dist/sources/command.js.map +1 -1
  127. package/dist/sources/read.d.ts +16 -2
  128. package/dist/sources/read.d.ts.map +1 -1
  129. package/dist/sources/read.js +40 -4
  130. package/dist/sources/read.js.map +1 -1
  131. package/dist/sources/readers/ai-model.d.ts +4 -0
  132. package/dist/sources/readers/ai-model.d.ts.map +1 -0
  133. package/dist/sources/readers/ai-model.js +74 -0
  134. package/dist/sources/readers/ai-model.js.map +1 -0
  135. package/dist/sources/readers/index.d.ts +1 -0
  136. package/dist/sources/readers/index.d.ts.map +1 -1
  137. package/dist/sources/readers/index.js +3 -1
  138. package/dist/sources/readers/index.js.map +1 -1
  139. package/dist/sources/readers/keys.js +1 -1
  140. package/dist/sources/readers/keys.js.map +1 -1
  141. package/dist/sources/readers/types.d.ts +5 -2
  142. package/dist/sources/readers/types.d.ts.map +1 -1
  143. package/dist/sources/readers/types.js +1 -1
  144. package/dist/sources/readers/types.js.map +1 -1
  145. package/dist/sources/suggest-command.d.ts.map +1 -1
  146. package/dist/sources/suggest-command.js +16 -5
  147. package/dist/sources/suggest-command.js.map +1 -1
  148. package/dist/version.d.ts +1 -1
  149. package/dist/version.js +1 -1
  150. package/package.json +2 -2
  151. package/dist/bundle/auto-R3ABUML7.js +0 -89
  152. package/dist/bundle/command-contract-IEUSFI3B.js +0 -32
  153. package/dist/bundle/entry-7VHMR3LD.js +0 -21
  154. package/dist/bundle/failure-DJSK3LGN.js +0 -69
  155. package/dist/bundle/first-screen-OQVOWRYM.js +0 -30
  156. package/dist/bundle/mcp-EUFDOVMI.js +0 -90
  157. package/dist/bundle/openai-JK5GCSDK.js +0 -24
  158. package/dist/bundle/serve-ZNN464BH.js +0 -22
  159. package/dist/bundle/server-4CHUUMVI.js +0 -48
  160. package/dist/bundle/server-VCZCAQOB.js +0 -62
  161. package/dist/bundle/store-maintenance-command-LWN6OUFA.js +0 -47
  162. package/dist/bundle/update-I4X2UO6J.js +0 -72
  163. /package/dist/bundle/{chunk-IKIYW7FW.js → chunk-DK3W4FPW.js} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/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.",
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  wirecatDirectory
5
- } from "./chunk-FH753LZS.js";
5
+ } from "./chunk-VHA3LJQT.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-2EZFUIL4.js";
8
+ } from "./chunk-BA6GHX5B.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/speech/models.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/speech/models.js
14
14
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
15
15
  var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
16
16
  var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
137
137
  return model;
138
138
  }, "speechModel");
139
139
 
140
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/speech/install.js
140
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/speech/install.js
141
141
  import { createHash, randomUUID } from "node:crypto";
142
142
  import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
143
143
  import { rename, rm } from "node:fs/promises";
@@ -2,23 +2,23 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-FH753LZS.js";
5
+ } from "./chunk-VHA3LJQT.js";
6
6
  import {
7
7
  resolvePaths
8
- } from "./chunk-W46O6RJ5.js";
8
+ } from "./chunk-2IQWMWMC.js";
9
9
  import {
10
10
  CliError,
11
11
  singleLine
12
- } from "./chunk-2EZFUIL4.js";
12
+ } from "./chunk-BA6GHX5B.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/shared-config.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/store/shared-config.js
18
18
  import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
19
19
  import { dirname, join, resolve } from "node:path";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
22
22
  var DEFAULT_TASK_CATEGORIES = [
23
23
  {
24
24
  name: "taxes",
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
773
773
  }
774
774
  }, "storedTaskCategories");
775
775
 
776
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/shared-config.js
776
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/store/shared-config.js
777
777
  var SECTION = "task_categories";
778
778
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
779
779
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
8
8
  import { PassThrough, Writable } from "node:stream";
9
9
  var lineReader = /* @__PURE__ */ __name((onMessage) => {
10
10
  let rest = "";
@@ -4,7 +4,7 @@ import {
4
4
  ACCESS_SECONDS,
5
5
  REFRESH_SECONDS,
6
6
  readStored
7
- } from "./chunk-N2FIIVJV.js";
7
+ } from "./chunk-EI7LYQQA.js";
8
8
  import {
9
9
  OAuthError,
10
10
  OAuthErrorCode
@@ -13,7 +13,7 @@ import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/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";
@@ -7,7 +7,7 @@ import {
7
7
  commandPathOf,
8
8
  findCommand,
9
9
  outputOf
10
- } from "./chunk-O3KNZVDZ.js";
10
+ } from "./chunk-Y2J52Y3A.js";
11
11
  import {
12
12
  Command,
13
13
  Help,
@@ -18,18 +18,18 @@ import {
18
18
  environmentOf,
19
19
  metaOf,
20
20
  takesProfile
21
- } from "./chunk-ODCHYVTW.js";
21
+ } from "./chunk-NXQFVHG4.js";
22
22
  import {
23
23
  writes
24
- } from "./chunk-VYCLOFPC.js";
24
+ } from "./chunk-6A37YXAL.js";
25
25
  import {
26
26
  CliError
27
- } from "./chunk-2EZFUIL4.js";
27
+ } from "./chunk-BA6GHX5B.js";
28
28
  import {
29
29
  __name
30
30
  } from "./chunk-ZVVMGPBJ.js";
31
31
 
32
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
32
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
33
33
  var SECTIONS = {
34
34
  read: "Read",
35
35
  write: "Write",
@@ -95,7 +95,7 @@ var CORE_SECTIONS = {
95
95
  upgrade: "setup"
96
96
  };
97
97
 
98
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
98
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
99
99
  var DESCRIPTION = 90;
100
100
  var COLUMN = 52;
101
101
  var short = /* @__PURE__ */ __name((text) => {
@@ -134,7 +134,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
134
134
  `;
135
135
  }, "commandsText");
136
136
 
137
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
137
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
138
138
  var ARGUMENT_KINDS = {
139
139
  chat: "chat",
140
140
  chats: "chat",
@@ -326,7 +326,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
326
326
  command.addHelpText("after", () => commandHelpText(command));
327
327
  }, "installCommandHelp");
328
328
 
329
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
329
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
330
330
  var WIRECAT_TOOLS = [
331
331
  {
332
332
  command: "tg",
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  resolvePaths
5
- } from "./chunk-W46O6RJ5.js";
5
+ } from "./chunk-2IQWMWMC.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/path.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/store/path.js
11
11
  import { userInfo } from "node:os";
12
12
  import { isAbsolute, join, relative, resolve } from "node:path";
13
13
  var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {
@@ -4,15 +4,15 @@ import {
4
4
  MAX_SECRET_INPUT,
5
5
  bufferedInput,
6
6
  inputPolicy
7
- } from "./chunk-5AQIET5P.js";
7
+ } from "./chunk-ZKCAR2OL.js";
8
8
  import {
9
9
  CliError
10
- } from "./chunk-2EZFUIL4.js";
10
+ } from "./chunk-BA6GHX5B.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
16
16
  import { createInterface } from "node:readline";
17
17
  import { Writable } from "node:stream";
18
18
  var EMPTY_TRIES = 3;
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
8
8
  var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
9
9
  const all = typeof profile !== "string";
10
10
  const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError,
5
5
  errorCodes
6
- } from "./chunk-2EZFUIL4.js";
6
+ } from "./chunk-BA6GHX5B.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/errors/failures.js
11
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/errors/failures.js
12
12
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
13
13
  var isCommanderFailure = /* @__PURE__ */ __name((value) => {
14
14
  const { code, exitCode } = value ?? {};
@@ -55,7 +55,7 @@ var damagedFile = /* @__PURE__ */ __name(async (files, work) => {
55
55
  }, "damagedFile");
56
56
  var isStoreDamage = /* @__PURE__ */ __name((error) => damageIn(error) !== void 0, "isStoreDamage");
57
57
 
58
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/runs/secrets.js
58
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/runs/secrets.js
59
59
  var SECRET_WORDS = /* @__PURE__ */ new Set([
60
60
  "authorization",
61
61
  "cookie",
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answeredWire
5
- } from "./chunk-Z3NRIW4M.js";
5
+ } from "./chunk-TWWYDJBW.js";
6
6
  import {
7
7
  CALLER_META_KEY,
8
8
  PROXY_CLIENT_NAME,
9
9
  callerOf
10
- } from "./chunk-NE3UIK5P.js";
10
+ } from "./chunk-B2ZAEF5Z.js";
11
11
  import {
12
12
  StdioServerTransport,
13
13
  serveStdio
@@ -19,7 +19,7 @@ import {
19
19
  __name
20
20
  } from "./chunk-ZVVMGPBJ.js";
21
21
 
22
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
23
23
  import { spawn } from "node:child_process";
24
24
  import { randomUUID } from "node:crypto";
25
25
  var PROTOCOL = "2025-06-18";
@@ -253,7 +253,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
253
253
  }, "serveAllProfilesOverStdio");
254
254
  var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
255
255
  const { build, close } = allProfilesServer(options);
256
- const { serveOverHttp } = await import("./serve-ZNN464BH.js");
256
+ const { serveOverHttp } = await import("./serve-LEF3PX34.js");
257
257
  const listening = await serveOverHttp(build, {
258
258
  ...http,
259
259
  appName: options.command,
@@ -0,0 +1,200 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ BASE_REASONS,
5
+ COMMON_DETAILS,
6
+ CRASH_CODE,
7
+ CRASH_REASON,
8
+ stepOf,
9
+ writes
10
+ } from "./chunk-6A37YXAL.js";
11
+ import {
12
+ errorCodes,
13
+ isCliError,
14
+ visibleControls
15
+ } from "./chunk-BA6GHX5B.js";
16
+ import {
17
+ __name
18
+ } from "./chunk-ZVVMGPBJ.js";
19
+
20
+ // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
21
+ var EXIT_CODES = {
22
+ validation_error: 2,
23
+ configuration_error: 3,
24
+ authentication_error: 4,
25
+ permission_error: 5,
26
+ not_found: 6,
27
+ confirmation_required: 7,
28
+ rate_limited: 8,
29
+ timeout: 9,
30
+ network_error: 10,
31
+ provider_error: 11,
32
+ provider_unavailable: 12,
33
+ invalid_response: 13,
34
+ outcome_unknown: 14,
35
+ conflict: 15,
36
+ cancelled: 130
37
+ };
38
+ var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
39
+ var GENERIC_FAILURE = 1;
40
+
41
+ // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
42
+ var recognise = /* @__PURE__ */ __name((failure) => {
43
+ if (isCliError(failure))
44
+ return failure;
45
+ if (!(failure instanceof Error) || failure.name !== "CliError")
46
+ return void 0;
47
+ const { code, details } = failure;
48
+ if (!errorCodes.includes(code))
49
+ return void 0;
50
+ return {
51
+ code,
52
+ message: failure.message,
53
+ details: typeof details === "object" && details !== null ? details : {}
54
+ };
55
+ }, "recognise");
56
+ var reasonFor = /* @__PURE__ */ __name((code, named, reasons) => reasons.find((entry) => entry.reason === named && entry.code === code) ?? BASE_REASONS.find((entry) => entry.reason === named && entry.code === code) ?? // The first base reason for each code is its fallback.
57
+ BASE_REASONS.find((entry) => entry.code === code), "reasonFor");
58
+ var nextFor = /* @__PURE__ */ __name((reason, details, context) => {
59
+ const definition = reason.step ? context.steps?.find((step) => step.id === reason.step) : void 0;
60
+ if (!definition)
61
+ return [];
62
+ const known = new Set(definition.kind === "command" ? definition.args.map((arg) => arg.name) : []);
63
+ const args = Object.fromEntries(Object.entries(details).filter(([key, value]) => known.has(key) && value !== void 0));
64
+ try {
65
+ return [stepOf(definition, { args, ...context.targets ? { targets: context.targets } : {} })];
66
+ } catch {
67
+ return [];
68
+ }
69
+ }, "nextFor");
70
+ var TRANSIENT = [
71
+ "rate_limited",
72
+ "timeout",
73
+ "network_error",
74
+ "provider_unavailable"
75
+ ];
76
+ var retryOf = /* @__PURE__ */ __name((code, details, effects) => {
77
+ const transient = details.retryable !== false && (TRANSIENT.includes(code) || code === "provider_error" && details.retryable === true);
78
+ const safe = code !== "outcome_unknown" && transient && (!writes(effects) || details.sent === false);
79
+ const after = details.retry_after_ms;
80
+ return safe && typeof after === "number" && Number.isInteger(after) && after >= 0 ? { safe, after_ms: after } : { safe };
81
+ }, "retryOf");
82
+ var errorObjectOf = /* @__PURE__ */ __name((failure, context = {}) => {
83
+ const reasons = context.reasons ?? [];
84
+ const recognised = recognise(failure);
85
+ if (!recognised) {
86
+ const reason2 = reasonFor(CRASH_CODE, CRASH_REASON, reasons);
87
+ return {
88
+ error: {
89
+ code: CRASH_CODE,
90
+ reason: reason2.reason,
91
+ message: reason2.message,
92
+ retry: { safe: false },
93
+ ...context.runId ? { run_id: context.runId } : {}
94
+ }
95
+ };
96
+ }
97
+ const { code, message, details } = recognised;
98
+ const reason = reasonFor(code, details.reason, reasons);
99
+ const allowed = /* @__PURE__ */ new Set([...COMMON_DETAILS, ...context.details ?? [], ...reason.details]);
100
+ allowed.delete("cause");
101
+ const kept = Object.fromEntries(Object.entries(details).filter(([key, value]) => allowed.has(key) && value !== void 0));
102
+ const next = nextFor(reason, details, context);
103
+ const runId = context.runId ?? (typeof details.run_id === "string" ? details.run_id : void 0);
104
+ return {
105
+ error: {
106
+ code,
107
+ reason: reason.reason,
108
+ message,
109
+ ...typeof details.param === "string" ? { param: details.param } : {},
110
+ ...Object.keys(kept).length > 0 ? { details: kept } : {},
111
+ ...next.length > 0 ? { next } : {},
112
+ retry: retryOf(code, details, context.effects),
113
+ ...runId ? { run_id: runId } : {}
114
+ }
115
+ };
116
+ }, "errorObjectOf");
117
+ var exitCodeOfError = /* @__PURE__ */ __name(({ error }) => error.code === CRASH_CODE ? GENERIC_FAILURE : EXIT_CODES[error.code], "exitCodeOfError");
118
+ var exitCodeOfAnswer = /* @__PURE__ */ __name((meta, partial = false) => {
119
+ if (meta.complete || partial)
120
+ return 0;
121
+ const code = meta.issues?.[0]?.code;
122
+ return code === void 0 ? GENERIC_FAILURE : EXIT_CODES[code];
123
+ }, "exitCodeOfAnswer");
124
+ var kebab = /* @__PURE__ */ __name((name) => name.replaceAll("_", "-"), "kebab");
125
+ var commandLine = /* @__PURE__ */ __name((cli, step) => [
126
+ cli,
127
+ step.command,
128
+ ...Object.entries(step.args).map(([name, value]) => value === true ? `--${kebab(name)}` : `--${kebab(name)} ${JSON.stringify(value)}`)
129
+ ].join(" "), "commandLine");
130
+ var STACK_FRAMES = 10;
131
+ var errorRecordOf = /* @__PURE__ */ __name((failure, object, options) => {
132
+ const thrown = failure instanceof Error ? failure : void 0;
133
+ const { cause, ...details } = recognise(failure)?.details ?? {};
134
+ const stack = thrown?.stack?.split("\n").slice(1, STACK_FRAMES + 1).map((line) => visibleControls(line.trim()));
135
+ const reason = thrown?.cause ?? cause;
136
+ return {
137
+ time: (options.time ?? /* @__PURE__ */ new Date()).toISOString(),
138
+ severity: "error",
139
+ body: "command.failed",
140
+ ...object.error.run_id ? { run_id: object.error.run_id } : {},
141
+ command: options.command,
142
+ attributes: {
143
+ code: object.error.code,
144
+ reason: object.error.reason,
145
+ message: object.error.message,
146
+ ...Object.keys(details).length > 0 ? { details } : {},
147
+ ...thrown ? { name: thrown.name, thrown_message: visibleControls(thrown.message) } : { thrown: String(failure) },
148
+ ...reason === void 0 ? {} : { cause: visibleControls(reason instanceof Error ? reason.message : String(reason)) },
149
+ ...stack && stack.length > 0 ? { stack } : {}
150
+ },
151
+ resource: { service: options.service, version: options.version }
152
+ };
153
+ }, "errorRecordOf");
154
+ var renderError = /* @__PURE__ */ __name((object, options) => {
155
+ if (!options.interactive)
156
+ return [JSON.stringify(object), ...options.record ? [JSON.stringify(options.record)] : []].join("\n");
157
+ const { message, next, run_id: runId } = object.error;
158
+ const step = next?.[0];
159
+ return [
160
+ `\u2717 ${visibleControls(message)}`,
161
+ ...step?.kind === "command" ? [`\u2192 ${visibleControls(step.why)}: ${visibleControls(step.line ?? commandLine(options.cli, step))}`] : step ? [`\u2192 ${visibleControls(step.why)}`] : [],
162
+ ...options.record ? [JSON.stringify(options.record, null, 2)] : runId ? [`details: ${options.cli} runs show ${runId}`] : []
163
+ ].join("\n");
164
+ }, "renderError");
165
+ var mcpErrorResult = /* @__PURE__ */ __name((object) => ({
166
+ content: [{ type: "text", text: JSON.stringify(object) }],
167
+ structuredContent: object,
168
+ isError: true
169
+ }), "mcpErrorResult");
170
+ var catchCrashes = /* @__PURE__ */ __name((options) => {
171
+ const target = options.target ?? process;
172
+ const write = options.write ?? ((text) => process.stderr.write(`${text}
173
+ `));
174
+ const exit = options.exit ?? ((code) => process.exit(code));
175
+ const crashed = /* @__PURE__ */ __name((failure) => {
176
+ const object = errorObjectOf(failure, options);
177
+ write(renderError(object, { cli: options.cli, interactive: options.interactive }));
178
+ exit(exitCodeOfError(object));
179
+ }, "crashed");
180
+ target.on("uncaughtException", crashed);
181
+ target.on("unhandledRejection", crashed);
182
+ return () => {
183
+ target.off("uncaughtException", crashed);
184
+ target.off("unhandledRejection", crashed);
185
+ };
186
+ }, "catchCrashes");
187
+
188
+ export {
189
+ EXIT_CODES,
190
+ exitCodeFor,
191
+ GENERIC_FAILURE,
192
+ retryOf,
193
+ errorObjectOf,
194
+ exitCodeOfError,
195
+ exitCodeOfAnswer,
196
+ errorRecordOf,
197
+ renderError,
198
+ mcpErrorResult,
199
+ catchCrashes
200
+ };
@@ -1,35 +1,37 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
- import {
4
- agentResult,
5
- failureContext
6
- } from "./chunk-RLRKBPLJ.js";
7
3
  import {
8
4
  interactiveOf,
9
5
  optionsOf
10
6
  } from "./chunk-BPGYTJNB.js";
7
+ import {
8
+ agentResult,
9
+ failureContext
10
+ } from "./chunk-7ENXMVT5.js";
11
11
  import {
12
12
  APP
13
- } from "./chunk-TGURQ4YH.js";
13
+ } from "./chunk-IFANDP3T.js";
14
14
  import {
15
15
  CommanderError,
16
16
  judgedEffects,
17
17
  metaOf
18
- } from "./chunk-ODCHYVTW.js";
18
+ } from "./chunk-NXQFVHG4.js";
19
19
  import {
20
20
  storeDamaged
21
- } from "./chunk-7XFJRX6F.js";
21
+ } from "./chunk-WHZJHUK6.js";
22
22
  import {
23
- ValiError,
24
23
  errorObjectOf,
25
24
  errorRecordOf,
26
25
  exitCodeOfError,
27
26
  mcpErrorResult,
28
27
  renderError
29
- } from "./chunk-VYCLOFPC.js";
28
+ } from "./chunk-X2SA73EE.js";
29
+ import {
30
+ ValiError
31
+ } from "./chunk-6A37YXAL.js";
30
32
  import {
31
33
  CliError
32
- } from "./chunk-2EZFUIL4.js";
34
+ } from "./chunk-BA6GHX5B.js";
33
35
  import {
34
36
  __name
35
37
  } from "./chunk-ZVVMGPBJ.js";
@@ -3,35 +3,35 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  SAMPLE_RATE,
5
5
  toModelRate
6
- } from "./chunk-DDSKTPU7.js";
6
+ } from "./chunk-PTKJIA7M.js";
7
7
  import {
8
8
  providerWaitMs
9
- } from "./chunk-KA5MDFLU.js";
9
+ } from "./chunk-A3QZXQI3.js";
10
10
  import {
11
11
  OPENAI_URL
12
- } from "./chunk-NM4QMIOQ.js";
12
+ } from "./chunk-6GHBGGN7.js";
13
13
  import {
14
14
  OPENAI_TRANSCRIBE_MODEL,
15
15
  VAD,
16
16
  filesPresent,
17
17
  modelsDirectory,
18
18
  vadPath
19
- } from "./chunk-OJU774SG.js";
19
+ } from "./chunk-T6LXUBXY.js";
20
20
  import {
21
21
  DEFAULT_RETRY,
22
22
  backoffMs
23
- } from "./chunk-W46O6RJ5.js";
23
+ } from "./chunk-2IQWMWMC.js";
24
24
  import {
25
25
  CliError
26
- } from "./chunk-2EZFUIL4.js";
26
+ } from "./chunk-BA6GHX5B.js";
27
27
  import {
28
28
  __name
29
29
  } from "./chunk-ZVVMGPBJ.js";
30
30
 
31
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/speech/openai.js
31
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/speech/openai.js
32
32
  import { setTimeout as wait } from "node:timers/promises";
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/speech/wav.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/speech/wav.js
35
35
  var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
36
36
  const bytes = Buffer.alloc(44 + samples.length * 2);
37
37
  bytes.write("RIFF", 0, "ascii");
@@ -52,7 +52,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
52
52
  return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
53
53
  }, "encodeWav");
54
54
 
55
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/speech/openai.js
55
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/speech/openai.js
56
56
  var LONGEST_REQUEST_SECONDS = 600;
57
57
  var JOINED_SECONDS = 0.2;
58
58
  var PAD_SECONDS = 0.2;
@@ -174,7 +174,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
174
174
  return pieces;
175
175
  }, "piecesOf");
176
176
  var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
177
- const { openSpeechCutter } = await import("./recognize-STYHVWQ6.js");
177
+ const { openSpeechCutter } = await import("./recognize-5LC3DQ2W.js");
178
178
  return openSpeechCutter(vadModel);
179
179
  }, "openCutter");
180
180
  var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
@@ -7,18 +7,18 @@ import {
7
7
  describeOptions,
8
8
  keyForCommand,
9
9
  metaOf
10
- } from "./chunk-ODCHYVTW.js";
10
+ } from "./chunk-NXQFVHG4.js";
11
11
  import {
12
12
  jsonSchemaOf
13
- } from "./chunk-VYCLOFPC.js";
13
+ } from "./chunk-6A37YXAL.js";
14
14
  import {
15
15
  CliError
16
- } from "./chunk-2EZFUIL4.js";
16
+ } from "./chunk-BA6GHX5B.js";
17
17
  import {
18
18
  __name
19
19
  } from "./chunk-ZVVMGPBJ.js";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
22
22
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
23
23
  var outputOf = /* @__PURE__ */ __name((command) => {
24
24
  const entity = answerEntitySchema(command);
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-2EZFUIL4.js";
5
+ } from "./chunk-BA6GHX5B.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/http/public-url.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_1b546a322b3713cdbc9690b4e675a304/node_modules/@wirecat/cli-core/dist/http/public-url.js
11
11
  var EXAMPLE = "--public-url https://<name>.ts.net";
12
12
  var publicUrlOf = /* @__PURE__ */ __name((given, { missing, reaches, path = false }) => {
13
13
  if (!given)