@wirecat/amo-cli 0.1.1 → 0.3.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 (182) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +15 -10
  3. package/contracts/wirecat.json +55 -6
  4. package/dist/amo/button.d.ts +53 -0
  5. package/dist/amo/button.d.ts.map +1 -0
  6. package/dist/amo/button.js +234 -0
  7. package/dist/amo/button.js.map +1 -0
  8. package/dist/amo/oauth.d.ts +12 -3
  9. package/dist/amo/oauth.d.ts.map +1 -1
  10. package/dist/amo/oauth.js +19 -6
  11. package/dist/amo/oauth.js.map +1 -1
  12. package/dist/bin/amo.js +2 -2
  13. package/dist/bundle/agent-FDNP27SW.js +40 -0
  14. package/dist/bundle/{all-profiles-3KQVWDV4.js → all-profiles-PPUN52SP.js} +63 -21
  15. package/dist/bundle/amo.js +28 -26
  16. package/dist/bundle/{anthropic-N5NOX7K7.js → anthropic-RDNDT6ZP.js} +5 -5
  17. package/dist/bundle/{app-server-2MST5EZ5.js → app-server-MMALJDBP.js} +79 -68
  18. package/dist/bundle/{bun-4NHWOFX2.js → bun-Y4FRPURU.js} +2 -2
  19. package/dist/bundle/{bun-sqlite-DRSXPWPR.js → bun-sqlite-7NXJGZCO.js} +6 -6
  20. package/dist/bundle/{chunk-GNTJMB6X.js → chunk-2YEDK2XV.js} +4 -4
  21. package/dist/bundle/chunk-3NDMVXGS.js +80 -0
  22. package/dist/bundle/{chunk-Y37A3232.js → chunk-3RP57VDS.js} +114 -7
  23. package/dist/bundle/{chunk-ODNQU7DH.js → chunk-3YOZTGZ6.js} +43 -64
  24. package/dist/bundle/{chunk-ESZSMZKT.js → chunk-4EYPFFTN.js} +2 -2
  25. package/dist/bundle/{chunk-TZSUZGWM.js → chunk-4MVTSMWP.js} +2 -2
  26. package/dist/bundle/{chunk-LJQUYECN.js → chunk-5DPMNYQT.js} +1 -1
  27. package/dist/bundle/{chunk-7PKFYX7V.js → chunk-5POLHHDZ.js} +8 -8
  28. package/dist/bundle/{chunk-A33TIM5D.js → chunk-5RXH35ZA.js} +225 -225
  29. package/dist/bundle/{chunk-BVMNXI53.js → chunk-77FP6AWC.js} +25 -25
  30. package/dist/bundle/{chunk-L6AFE73L.js → chunk-7E6QSIRQ.js} +1 -1
  31. package/dist/bundle/chunk-7SBAHYZW.js +734 -0
  32. package/dist/bundle/{chunk-GQ7VFIYM.js → chunk-7USADF2W.js} +23 -7
  33. package/dist/bundle/{chunk-AHJ4W2IL.js → chunk-7VSYOMEH.js} +2 -2
  34. package/dist/bundle/chunk-7Z6NYSAN.js +52 -0
  35. package/dist/bundle/chunk-AYR6FIXN.js +30 -0
  36. package/dist/bundle/{chunk-ADEWU4P4.js → chunk-B4ITT55D.js} +1 -1
  37. package/dist/bundle/{chunk-AUBB72VF.js → chunk-BKTLAXUK.js} +41 -10
  38. package/dist/bundle/{chunk-63F65DHU.js → chunk-BYVDMPLX.js} +2 -2
  39. package/dist/bundle/{chunk-V77XNPXG.js → chunk-CQ472K6W.js} +11 -11
  40. package/dist/bundle/{chunk-FKR3M62D.js → chunk-CUZISGWH.js} +13 -13
  41. package/dist/bundle/{chunk-LDEBZ3IX.js → chunk-D6UPCAPD.js} +1 -1
  42. package/dist/bundle/{chunk-P3WQRTYZ.js → chunk-E2DLRLJ5.js} +1 -1
  43. package/dist/bundle/{chunk-NJYAL3UW.js → chunk-EHULZEXQ.js} +1 -1
  44. package/dist/bundle/chunk-EKNP326Q.js +108 -0
  45. package/dist/bundle/{chunk-DJD7TBYG.js → chunk-ELJGALVX.js} +76 -74
  46. package/dist/bundle/{chunk-RPWAJYI6.js → chunk-FI2TP6TY.js} +3 -3
  47. package/dist/bundle/{chunk-CDY2NJFE.js → chunk-FPDTIQOK.js} +2 -2
  48. package/dist/bundle/{chunk-NC76INB2.js → chunk-FPIUFSWK.js} +3099 -2266
  49. package/dist/bundle/{chunk-SZ2V62HB.js → chunk-GCUFGDKE.js} +2 -2
  50. package/dist/bundle/{chunk-LRBPT7LQ.js → chunk-GKP7CKW2.js} +6 -6
  51. package/dist/bundle/chunk-H34RBRS3.js +209 -0
  52. package/dist/bundle/{chunk-O2UCU52O.js → chunk-HQH4YPO5.js} +134 -569
  53. package/dist/bundle/{chunk-TNUFLULO.js → chunk-I4QCJZW7.js} +8 -8
  54. package/dist/bundle/{chunk-DXGGCGRP.js → chunk-IDQ7BNCZ.js} +14 -14
  55. package/dist/bundle/{chunk-JMDLPBXK.js → chunk-IEAPNTHT.js} +17 -17
  56. package/dist/bundle/{chunk-XQL7FEF4.js → chunk-ILUREFWJ.js} +9 -9
  57. package/dist/bundle/{chunk-QRQYUHCZ.js → chunk-IYUWVMGP.js} +12 -12
  58. package/dist/bundle/chunk-JTFAG3BX.js +338 -0
  59. package/dist/bundle/{chunk-CHUKWON6.js → chunk-JZ2AITOE.js} +3 -3
  60. package/dist/bundle/{chunk-JR6TSMFX.js → chunk-KEOKH2OZ.js} +103 -70
  61. package/dist/bundle/{chunk-UMVRT7VQ.js → chunk-KKXF6TSS.js} +1 -1
  62. package/dist/bundle/{chunk-5E5R65CA.js → chunk-KTLCQ7GC.js} +2 -2
  63. package/dist/bundle/{chunk-QDMXZZG4.js → chunk-KZDBO2FT.js} +18 -8
  64. package/dist/bundle/{chunk-VX37MPTJ.js → chunk-L2ZQDTDU.js} +1 -1
  65. package/dist/bundle/{chunk-CUZRHF34.js → chunk-L3JDQNBC.js} +4 -4
  66. package/dist/bundle/{chunk-3IRJDH2U.js → chunk-L72UALL5.js} +2 -100
  67. package/dist/bundle/{chunk-XRTD2GCU.js → chunk-LOSOWTAZ.js} +19 -258
  68. package/dist/bundle/{chunk-LGQXGOPJ.js → chunk-LYRICHEK.js} +2 -2
  69. package/dist/bundle/{chunk-UBRREVLJ.js → chunk-MMOEAH5G.js} +2 -2
  70. package/dist/bundle/{chunk-EQ7A6NA6.js → chunk-MPXKBF37.js} +1 -1
  71. package/dist/bundle/{chunk-SMSTGO2G.js → chunk-MYMBPQPQ.js} +4 -4
  72. package/dist/bundle/chunk-N4A6E2LL.js +559 -0
  73. package/dist/bundle/{chunk-5HGGG3QO.js → chunk-NJ2LJKNH.js} +16 -3
  74. package/dist/bundle/{chunk-TGEQNS6G.js → chunk-OMH3WP7F.js} +1 -1
  75. package/dist/bundle/{chunk-ULXQ5MJM.js → chunk-ORFLQGWH.js} +4 -4
  76. package/dist/bundle/{chunk-DQV2IKCF.js → chunk-PFZ7WG2B.js} +10 -3
  77. package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
  78. package/dist/bundle/{chunk-6RS7OYTD.js → chunk-Q2YVY7IR.js} +3 -3
  79. package/dist/bundle/{chunk-DOSJONCX.js → chunk-QHA33ZS6.js} +7 -7
  80. package/dist/bundle/{chunk-JH3UOHRE.js → chunk-QQT7WUR4.js} +4 -4
  81. package/dist/bundle/{chunk-EROSAUNP.js → chunk-R23DRW2T.js} +5 -5
  82. package/dist/bundle/{chunk-WCYCUTSK.js → chunk-SBQ5MFHM.js} +7 -7
  83. package/dist/bundle/{chunk-DAY6TSPF.js → chunk-SJYVKR54.js} +62 -50
  84. package/dist/bundle/{chunk-T2UDLX76.js → chunk-SJZ52MZE.js} +6 -6
  85. package/dist/bundle/{chunk-ZM7I52EP.js → chunk-T6D34X5S.js} +3 -4
  86. package/dist/bundle/{chunk-P5LYZRKW.js → chunk-TCDER3G7.js} +1586 -749
  87. package/dist/bundle/{chunk-2I5UVMLW.js → chunk-TWZF7VO6.js} +1726 -1159
  88. package/dist/bundle/{chunk-VVHRQ46X.js → chunk-UA7C57IB.js} +2 -2
  89. package/dist/bundle/{chunk-5SBLU7D7.js → chunk-UM6SDFB6.js} +1 -1
  90. package/dist/bundle/{chunk-7U5HJEPZ.js → chunk-UOPP6ORQ.js} +21 -19
  91. package/dist/bundle/{chunk-U7RLVJ34.js → chunk-UT3ODJMI.js} +4 -4
  92. package/dist/bundle/{chunk-7GTUZY7M.js → chunk-UZLT6VSP.js} +3 -3
  93. package/dist/bundle/{chunk-5RLUHTK6.js → chunk-V3ZWYMXT.js} +1 -1
  94. package/dist/bundle/{chunk-LSND5QYI.js → chunk-VD7HD25M.js} +9 -9
  95. package/dist/bundle/{chunk-PFO76YFP.js → chunk-VEGNZPQU.js} +18 -18
  96. package/dist/bundle/{chunk-5Z5PEEKP.js → chunk-VFU25P57.js} +4 -4
  97. package/dist/bundle/{chunk-4ZAK773N.js → chunk-VJHOBOJR.js} +3 -3
  98. package/dist/bundle/{chunk-PM77PRB6.js → chunk-VPBSZ4HQ.js} +185 -162
  99. package/dist/bundle/{chunk-Q2VNBY4Y.js → chunk-VY27K2SH.js} +746 -1205
  100. package/dist/bundle/{chunk-XEFAMLSD.js → chunk-W4KY5JF5.js} +3 -3
  101. package/dist/bundle/{chunk-73CXFE36.js → chunk-WBWVBEHH.js} +29 -1
  102. package/dist/bundle/{chunk-NHXJYS4R.js → chunk-XDT74W5P.js} +32 -28
  103. package/dist/bundle/{chunk-EPOV5UIO.js → chunk-XI75EKLG.js} +11 -11
  104. package/dist/bundle/{chunk-2B24PDH7.js → chunk-XM2G62YF.js} +8 -6
  105. package/dist/bundle/{chunk-5D4Z2B5B.js → chunk-YSOGGUK3.js} +9 -9
  106. package/dist/bundle/chunk-YVO2YGML.js +353 -0
  107. package/dist/bundle/{chunk-EQUKVVHX.js → chunk-ZIFEIJRK.js} +7 -7
  108. package/dist/bundle/{cli-QVWTXADI.js → cli-GAO7LDDA.js} +150 -103
  109. package/dist/bundle/command-contract-RLIBGIDT.js +39 -0
  110. package/dist/bundle/{command-server-entry-5VL5U5EE.js → command-server-entry-BCDJP7XE.js} +28 -28
  111. package/dist/bundle/{decode-SQ5WGNDX.js → decode-OY2GR442.js} +5 -5
  112. package/dist/bundle/{dispatch-LA4DFXJD.js → dispatch-JWEJCBTF.js} +8 -8
  113. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  114. package/dist/bundle/{echarts-25Z3RINX.js → echarts-AHEPEA5P.js} +2 -2
  115. package/dist/bundle/{embed-BNOTNXMA.js → embed-RVSUV54Z.js} +6 -6
  116. package/dist/bundle/{embedder-BCUT7KKV.js → embedder-GRZXZUXR.js} +9 -9
  117. package/dist/bundle/{failure-PKAC6XCT.js → failure-DDCSR54L.js} +2 -2
  118. package/dist/bundle/{first-run-EO5K5GME.js → first-run-G3WI4DH4.js} +12 -12
  119. package/dist/bundle/first-screen-6MLCMW2U.js +39 -0
  120. package/dist/bundle/{instructions-VLM3QAYB.js → instructions-NWQC5IP4.js} +1 -1
  121. package/dist/bundle/{mcp-7ILNMJH5.js → mcp-KGWT6TGO.js} +2 -2
  122. package/dist/bundle/meeting-combined-SVTFVZNJ.js +24 -0
  123. package/dist/bundle/{meeting-model-GHMMUQ34.js → meeting-model-I6T5HIZ5.js} +11 -11
  124. package/dist/bundle/{meeting-semantic-BMP6323L.js → meeting-semantic-47UA5JBF.js} +6 -6
  125. package/dist/bundle/{node-CT3N3TNL.js → node-7VXN7F4B.js} +2 -2
  126. package/dist/bundle/{node-sqlite-MELD2SBX.js → node-sqlite-BSEON57L.js} +7 -7
  127. package/dist/bundle/{oauth-YBH5OKC2.js → oauth-V6UAT4YD.js} +8 -8
  128. package/dist/bundle/{open-WNSBWTAG.js → open-7LVAY7ZU.js} +5 -5
  129. package/dist/bundle/{openai-XSNMNLW6.js → openai-OIEH342H.js} +15 -15
  130. package/dist/bundle/{process-I2QKOMM7.js → process-PTUCNLZ7.js} +1 -1
  131. package/dist/bundle/{program-DV73CIGP.js → program-S5WY5IZP.js} +643 -852
  132. package/dist/bundle/{prompt-SOG4AKPM.js → prompt-7XWTEQ62.js} +5 -5
  133. package/dist/bundle/{recognize-WMQLWMXH.js → recognize-HGIAJXDR.js} +4 -4
  134. package/dist/bundle/{remote-4BTFOLFY.js → remote-X4SVEMHS.js} +9 -9
  135. package/dist/bundle/{rerank-LJ3TWRNV.js → rerank-QWM3DQMU.js} +7 -7
  136. package/dist/bundle/{serve-B6UANKXN.js → serve-VVG3TXYT.js} +10 -10
  137. package/dist/bundle/{server-YRH6GJ5Z.js → server-EHYK62BJ.js} +73 -61
  138. package/dist/bundle/server-WRPTBVNW.js +86 -0
  139. package/dist/bundle/source-YISMYLBQ.js +44 -0
  140. package/dist/bundle/{sqlite-runtime-R7QFWFE7.js → sqlite-runtime-MCKXDNYC.js} +6 -6
  141. package/dist/bundle/{state-DIJ5YUOE.js → state-MYNYQJCT.js} +6 -6
  142. package/dist/bundle/store-A7R2SZVD.js +34 -0
  143. package/dist/bundle/{store-MYTYDV6A.js → store-B7O3F3QB.js} +28 -21
  144. package/dist/bundle/{store-6WFWW7EC.js → store-FPIU2546.js} +24 -23
  145. package/dist/bundle/store-maintenance-command-D55FRTIK.js +73 -0
  146. package/dist/bundle/surface-3EX6IGHW.js +72 -0
  147. package/dist/bundle/writer-XDHZ54JD.js +46 -0
  148. package/dist/commands/session.d.ts +23 -0
  149. package/dist/commands/session.d.ts.map +1 -1
  150. package/dist/commands/session.js +115 -45
  151. package/dist/commands/session.js.map +1 -1
  152. package/dist/identity.js +1 -1
  153. package/dist/identity.js.map +1 -1
  154. package/dist/program.d.ts.map +1 -1
  155. package/dist/program.js +3 -1
  156. package/dist/program.js.map +1 -1
  157. package/dist/reasons.d.ts.map +1 -1
  158. package/dist/reasons.js +2 -0
  159. package/dist/reasons.js.map +1 -1
  160. package/dist/setup/flow.d.ts.map +1 -1
  161. package/dist/setup/flow.js +74 -4
  162. package/dist/setup/flow.js.map +1 -1
  163. package/dist/setup/texts.en.json +22 -1
  164. package/dist/setup/texts.es.json +22 -1
  165. package/dist/setup/texts.ru.json +22 -1
  166. package/dist/version.d.ts +1 -1
  167. package/dist/version.js +1 -1
  168. package/package.json +5 -3
  169. package/scenarios/first-sync.md +23 -0
  170. package/scenarios/keep-in-sync.md +18 -0
  171. package/scenarios/safe-agent-writes.md +21 -0
  172. package/skills/amo-cli/SKILL.md +1 -1
  173. package/skills/amo-cli/references/mcp.md +1 -1
  174. package/skills/amo-cli/references/setup.md +9 -3
  175. package/dist/bundle/command-contract-QBUQBXH7.js +0 -39
  176. package/dist/bundle/first-screen-GMN3T6RW.js +0 -39
  177. package/dist/bundle/meeting-combined-LAMF7S2B.js +0 -24
  178. package/dist/bundle/server-S6XD6V6E.js +0 -77
  179. package/dist/bundle/source-DGFTA2TN.js +0 -42
  180. package/dist/bundle/store-FJCNZULV.js +0 -32
  181. package/dist/bundle/store-maintenance-command-B5TMKFMG.js +0 -68
  182. package/dist/bundle/writer-GP7VIMAU.js +0 -44
@@ -2,24 +2,24 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-5E5R65CA.js";
5
+ } from "./chunk-KTLCQ7GC.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-DJD7TBYG.js";
9
+ } from "./chunk-ELJGALVX.js";
10
10
  import {
11
11
  CliError,
12
12
  singleLine
13
- } from "./chunk-SZ2V62HB.js";
13
+ } from "./chunk-GCUFGDKE.js";
14
14
  import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/store/shared-config.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/store/shared-config.js
19
19
  import { existsSync, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
20
20
  import { dirname, join, resolve } from "node:path";
21
21
 
22
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
23
23
  var REPAIR_WORDS = {
24
24
  byte_order_mark: "an invisible byte-order mark at the start",
25
25
  comment: "a comment, which JSON does not allow",
@@ -303,7 +303,7 @@ var explainBrokenJson = /* @__PURE__ */ __name((text, result) => {
303
303
  return `line ${line}, column ${column}: ${why}${around(line)}; likely fix: ${fix ?? "correct that part by hand"}`;
304
304
  }, "explainBrokenJson");
305
305
 
306
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
306
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
307
307
  var DEFAULT_TASK_CATEGORIES = [
308
308
  {
309
309
  name: "taxes",
@@ -1058,7 +1058,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
1058
1058
  }
1059
1059
  }, "storedTaskCategories");
1060
1060
 
1061
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/store/shared-config.js
1061
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/store/shared-config.js
1062
1062
  var SECTION = "task_categories";
1063
1063
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
1064
1064
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-5HGGG3QO.js";
8
+ } from "./chunk-NJ2LJKNH.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
14
14
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
17
17
  import { randomBytes } from "node:crypto";
18
18
  import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
86
86
  };
87
87
  }, "activityRecorder");
88
88
 
89
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
90
90
  var ACCESS_SECONDS = 60 * 60;
91
91
  var REFRESH_SECONDS = 30 * 24 * 60 * 60;
92
92
  var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
@@ -6,21 +6,21 @@ import {
6
6
  answerSchema,
7
7
  describeOptions,
8
8
  metaOf
9
- } from "./chunk-PM77PRB6.js";
9
+ } from "./chunk-VPBSZ4HQ.js";
10
10
  import {
11
11
  keyForCommand
12
- } from "./chunk-QDMXZZG4.js";
12
+ } from "./chunk-KZDBO2FT.js";
13
13
  import {
14
14
  jsonSchemaOf
15
- } from "./chunk-AUBB72VF.js";
15
+ } from "./chunk-BKTLAXUK.js";
16
16
  import {
17
17
  CliError
18
- } from "./chunk-SZ2V62HB.js";
18
+ } from "./chunk-GCUFGDKE.js";
19
19
  import {
20
20
  __name
21
21
  } from "./chunk-ZVVMGPBJ.js";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
24
24
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
25
25
  var outputOf = /* @__PURE__ */ __name((command) => {
26
26
  const entity = answerEntitySchema(command);
@@ -2,19 +2,19 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  isCliFailure
5
- } from "./chunk-UBRREVLJ.js";
5
+ } from "./chunk-MMOEAH5G.js";
6
6
  import {
7
7
  secretNamed,
8
8
  withoutSecrets
9
- } from "./chunk-NJYAL3UW.js";
9
+ } from "./chunk-EHULZEXQ.js";
10
10
  import {
11
11
  isContentKey
12
- } from "./chunk-DJD7TBYG.js";
12
+ } from "./chunk-ELJGALVX.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/runs/events.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/runs/events.js
18
18
  var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
19
19
  var renderEvent = /* @__PURE__ */ __name((event) => {
20
20
  if (event.event === "store")
@@ -66,11 +66,11 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
66
66
  var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
67
67
  var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
68
68
 
69
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/runs/run-context.js
69
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/runs/run-context.js
70
70
  import { AsyncLocalStorage } from "node:async_hooks";
71
71
  import { createHash } from "node:crypto";
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
74
74
  import { homedir } from "node:os";
75
75
  var MESSAGE_AT_MOST = 500;
76
76
  var CAUSES_AT_MOST = 5;
@@ -183,7 +183,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
183
183
  return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
184
184
  }, "redactText");
185
185
 
186
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/runs/run-context.js
186
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/runs/run-context.js
187
187
  var REDACTED = "[redacted]";
188
188
  var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
189
189
  if (!record)
@@ -12,10 +12,31 @@ import {
12
12
  refuseWriteBeforeConnecting,
13
13
  registerPrompts,
14
14
  syncsFirst
15
- } from "./chunk-NHXJYS4R.js";
15
+ } from "./chunk-XDT74W5P.js";
16
+ import {
17
+ skillResources
18
+ } from "./chunk-LOSOWTAZ.js";
19
+ import {
20
+ StdioServerTransport,
21
+ answeredWire,
22
+ serveStdio
23
+ } from "./chunk-L72UALL5.js";
16
24
  import {
17
25
  stdinFieldOf
18
- } from "./chunk-L6AFE73L.js";
26
+ } from "./chunk-7E6QSIRQ.js";
27
+ import {
28
+ connectedFor
29
+ } from "./chunk-UOPP6ORQ.js";
30
+ import {
31
+ wholeList
32
+ } from "./chunk-YVO2YGML.js";
33
+ import {
34
+ runCommandForAgent,
35
+ toolsFromCommands
36
+ } from "./chunk-HQH4YPO5.js";
37
+ import {
38
+ instructions
39
+ } from "./chunk-MPXKBF37.js";
19
40
  import {
20
41
  BinaryResource,
21
42
  Picture,
@@ -30,52 +51,43 @@ import {
30
51
  outcomeOf,
31
52
  outputOf,
32
53
  registerCommands,
33
- runCommandForAgent,
34
54
  surfaceCommands,
35
55
  tierOf,
36
56
  tool,
37
- toolKey,
38
- toolsFromCommands
39
- } from "./chunk-O2UCU52O.js";
40
- import {
41
- agentJson,
42
- skillResources
43
- } from "./chunk-XRTD2GCU.js";
57
+ toolKey
58
+ } from "./chunk-N4A6E2LL.js";
44
59
  import {
45
- StdioServerTransport,
46
- answeredWire,
47
- callerOf,
48
- callingAgent,
49
- serveStdio
50
- } from "./chunk-3IRJDH2U.js";
60
+ agentJson
61
+ } from "./chunk-H34RBRS3.js";
51
62
  import {
52
- connectedFor
53
- } from "./chunk-7U5HJEPZ.js";
54
- import {
55
- capability,
56
63
  imageSize,
57
64
  lackedNeed,
58
65
  servicesFor,
59
- storedDeps,
60
- wholeList
61
- } from "./chunk-Q2VNBY4Y.js";
66
+ storedDeps
67
+ } from "./chunk-VY27K2SH.js";
62
68
  import {
63
- dateWindow,
64
69
  guardFor
65
- } from "./chunk-2I5UVMLW.js";
70
+ } from "./chunk-TWZF7VO6.js";
66
71
  import {
67
- instructions
68
- } from "./chunk-EQ7A6NA6.js";
72
+ callerOf,
73
+ callingAgent
74
+ } from "./chunk-EKNP326Q.js";
75
+ import {
76
+ capability
77
+ } from "./chunk-AYR6FIXN.js";
78
+ import {
79
+ dateWindow
80
+ } from "./chunk-7SBAHYZW.js";
69
81
  import {
70
82
  McpServer,
71
83
  ResourceTemplate
72
- } from "./chunk-5D4AEUVA.js";
84
+ } from "./chunk-PL5P7UKW.js";
73
85
  import {
74
86
  mcpHttpMarker
75
- } from "./chunk-JH3UOHRE.js";
87
+ } from "./chunk-QQT7WUR4.js";
76
88
  import {
77
89
  findCommand
78
- } from "./chunk-EROSAUNP.js";
90
+ } from "./chunk-R23DRW2T.js";
79
91
  import {
80
92
  DEFAULT_OUTPUT_BYTES,
81
93
  changesAuthorityAt,
@@ -90,31 +102,31 @@ import {
90
102
  rootOf2 as rootOf,
91
103
  sealed,
92
104
  snakeKeys
93
- } from "./chunk-PM77PRB6.js";
105
+ } from "./chunk-VPBSZ4HQ.js";
94
106
  import {
95
107
  withCaller
96
- } from "./chunk-WCYCUTSK.js";
108
+ } from "./chunk-SBQ5MFHM.js";
97
109
  import {
98
110
  openStore,
99
111
  pdfPreviewLimits
100
- } from "./chunk-P5LYZRKW.js";
112
+ } from "./chunk-TCDER3G7.js";
101
113
  import {
102
114
  typedCommand
103
- } from "./chunk-BVMNXI53.js";
115
+ } from "./chunk-77FP6AWC.js";
104
116
  import {
105
117
  isCliFailure
106
- } from "./chunk-UBRREVLJ.js";
118
+ } from "./chunk-MMOEAH5G.js";
107
119
  import {
108
120
  warmEmbedders
109
- } from "./chunk-ODNQU7DH.js";
121
+ } from "./chunk-3YOZTGZ6.js";
110
122
  import {
111
123
  fetchesAt,
112
124
  levelFor,
113
125
  readKeysForCommand
114
- } from "./chunk-QDMXZZG4.js";
126
+ } from "./chunk-KZDBO2FT.js";
115
127
  import {
116
128
  timezoneOf
117
- } from "./chunk-A33TIM5D.js";
129
+ } from "./chunk-5RXH35ZA.js";
118
130
  import {
119
131
  description,
120
132
  errorObjectOf,
@@ -131,19 +143,19 @@ import {
131
143
  regex,
132
144
  strictObject,
133
145
  string
134
- } from "./chunk-AUBB72VF.js";
146
+ } from "./chunk-BKTLAXUK.js";
135
147
  import {
136
148
  CliError,
137
149
  visibleControls
138
- } from "./chunk-SZ2V62HB.js";
150
+ } from "./chunk-GCUFGDKE.js";
139
151
  import {
140
152
  __name
141
153
  } from "./chunk-ZVVMGPBJ.js";
142
154
 
143
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/mcp/server.js
155
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/mcp/server.js
144
156
  import { randomUUID } from "node:crypto";
145
157
 
146
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
158
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
147
159
  var agentLog = /* @__PURE__ */ __name((open) => {
148
160
  let held;
149
161
  return {
@@ -162,7 +174,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
162
174
  };
163
175
  }, "agentLog");
164
176
 
165
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/mcp/resources.js
177
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/mcp/resources.js
166
178
  var LISTED = 100;
167
179
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
168
180
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -200,7 +212,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
200
212
  });
201
213
  }, "registerResources");
202
214
 
203
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/mcp/session.js
215
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/mcp/session.js
204
216
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
205
217
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
206
218
  var MessengerSession = class {
@@ -275,7 +287,7 @@ var MessengerSession = class {
275
287
  }
276
288
  };
277
289
 
278
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
290
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
279
291
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
280
292
  const _command = messenger.app.command;
281
293
  return {
@@ -329,7 +341,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
329
341
  };
330
342
  }, "attachmentsTools");
331
343
 
332
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
344
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
333
345
  var PHOTO_LIMIT = 512 * 1024;
334
346
  var IMAGE_TYPES = [
335
347
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -385,7 +397,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
385
397
  return new Uint8Array(Buffer.concat(chunks));
386
398
  }, "readUpTo");
387
399
 
388
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
400
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
389
401
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
390
402
  stats_charts: tool({
391
403
  title: "A chart from a chat's statistics",
@@ -422,14 +434,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
422
434
  })
423
435
  }), "statsTools");
424
436
 
425
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/mcp/tools.js
437
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/mcp/tools.js
426
438
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
427
439
  ...messagesPhotoTools(messenger),
428
440
  ...attachmentsTools(messenger),
429
441
  ...statsTools(messenger)
430
442
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
431
443
 
432
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/mcp/server.js
444
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/mcp/server.js
433
445
  var PER_RUN = /* @__PURE__ */ new Set([
434
446
  "streams",
435
447
  "stdin",
@@ -745,7 +757,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
745
757
  }, "serveOverStdio");
746
758
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
747
759
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
748
- const { serveOverHttp } = await import("./serve-B6UANKXN.js");
760
+ const { serveOverHttp } = await import("./serve-VVG3TXYT.js");
749
761
  const appName = messenger.app.command;
750
762
  const appEnvPrefix = messenger.app.envPrefix;
751
763
  const listening = await serveOverHttp(build, {
@@ -3,29 +3,29 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  textModel,
5
5
  vectorModelKey
6
- } from "./chunk-5D4Z2B5B.js";
6
+ } from "./chunk-YSOGGUK3.js";
7
7
  import {
8
8
  OPENAI_URL,
9
9
  openRemote,
10
10
  remoteKey,
11
11
  remoteModel
12
- } from "./chunk-EPOV5UIO.js";
12
+ } from "./chunk-XI75EKLG.js";
13
13
  import {
14
14
  endpointFetch
15
- } from "./chunk-GQ7VFIYM.js";
15
+ } from "./chunk-7USADF2W.js";
16
16
  import {
17
17
  isTextModelInstalled,
18
18
  openEmbedder,
19
19
  textModelsDirectory
20
- } from "./chunk-ODNQU7DH.js";
20
+ } from "./chunk-3YOZTGZ6.js";
21
21
  import {
22
22
  CliError
23
- } from "./chunk-SZ2V62HB.js";
23
+ } from "./chunk-GCUFGDKE.js";
24
24
  import {
25
25
  __name
26
26
  } from "./chunk-ZVVMGPBJ.js";
27
27
 
28
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/services/meeting-model.js
28
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/services/meeting-model.js
29
29
  var integer = /* @__PURE__ */ __name((value, name, max) => {
30
30
  if (!Number.isSafeInteger(value) || value < 1 || value > max)
31
31
  throw new CliError("validation_error", `Invalid ${name}`);
@@ -4,9 +4,9 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.720.0_@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typ_891204b7e0cfbcc49dd71e2850e8663f/node_modules/@wirecat/cli-core/dist/http/listen.js
8
8
  import { createServer } from "node:http";
9
- import { Readable } from "node:stream";
9
+ import { pipeline, Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
11
11
  var TooLarge = class extends Error {
12
12
  static {
@@ -49,8 +49,7 @@ var send = /* @__PURE__ */ __name(async (response, outgoing) => {
49
49
  if (!response.body)
50
50
  return void outgoing.end();
51
51
  const body = Readable.fromWeb(response.body);
52
- outgoing.once("close", () => body.destroy());
53
- body.pipe(outgoing);
52
+ pipeline(body, outgoing, () => void 0);
54
53
  }, "send");
55
54
  var listen = /* @__PURE__ */ __name((handle, { host, port, maxBody = MAX_BODY }) => new Promise((resolve, reject) => {
56
55
  const server = createServer((incoming, outgoing) => {