@wirecat/drive-cli 0.65.0 → 0.66.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 (204) hide show
  1. package/contracts/wirecat.json +2871 -0
  2. package/dist/bin/drive.js +2 -2
  3. package/dist/bin/drive.js.map +1 -1
  4. package/dist/browse.d.ts +1 -1
  5. package/dist/browse.d.ts.map +1 -1
  6. package/dist/browse.js +1 -1
  7. package/dist/bundle/{all-profiles-PD7GJHFA.js → all-profiles-WCQLIHUG.js} +14 -14
  8. package/dist/bundle/{anthropic-PJKFON5H.js → anthropic-5RJMB6O7.js} +20 -13
  9. package/dist/bundle/{app-server-6ELQA6FJ.js → app-server-3RGYXPKG.js} +67 -56
  10. package/dist/bundle/{bun-P54TGES2.js → bun-L34VEKGG.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-TND5ZRJH.js → bun-sqlite-H6IAXQXI.js} +9 -9
  12. package/dist/bundle/{chunk-VHQYWFWV.js → chunk-2AF77WMH.js} +1 -1
  13. package/dist/bundle/{chunk-CWLL63JD.js → chunk-2S3E2HVV.js} +17 -17
  14. package/dist/bundle/{chunk-I272E6UR.js → chunk-3NYH756U.js} +49 -117
  15. package/dist/bundle/{chunk-UTNRBOEN.js → chunk-3QFUDXMQ.js} +2 -2
  16. package/dist/bundle/{chunk-RNHGQ35R.js → chunk-3SDJIMZB.js} +1 -1
  17. package/dist/bundle/{chunk-NQ5XMSLA.js → chunk-4UHBJSMI.js} +22086 -29123
  18. package/dist/bundle/{chunk-OWMZUWCM.js → chunk-5HVJK3ZJ.js} +6 -14
  19. package/dist/bundle/chunk-5K54RZBK.js +70 -0
  20. package/dist/bundle/{chunk-SIWXYB4E.js → chunk-5PLINHEY.js} +2987 -2717
  21. package/dist/bundle/{chunk-O7ZDCOZE.js → chunk-5VDVGDOC.js} +1 -1
  22. package/dist/bundle/{chunk-B2LPCHQN.js → chunk-5XLU4NN6.js} +4 -4
  23. package/dist/bundle/{chunk-5XSBCMAF.js → chunk-6UJCCOZC.js} +4 -4
  24. package/dist/bundle/{chunk-7AQGVX5O.js → chunk-6X3KUFRQ.js} +60 -29
  25. package/dist/bundle/{chunk-WRMJN6UQ.js → chunk-7EP4AU6A.js} +3 -3
  26. package/dist/bundle/{chunk-GW3LBY3T.js → chunk-7LT2G5BC.js} +146 -133
  27. package/dist/bundle/{chunk-ZILALBYQ.js → chunk-7ZGJRVBH.js} +7 -5
  28. package/dist/bundle/{chunk-PLP5527C.js → chunk-ALE67WRR.js} +5 -5
  29. package/dist/bundle/{chunk-EHU6EYGO.js → chunk-AP4MX247.js} +12 -12
  30. package/dist/bundle/{chunk-NI5PD5KM.js → chunk-BIJW6AYA.js} +14124 -12049
  31. package/dist/bundle/{chunk-54V4H6PM.js → chunk-BQXSE645.js} +12 -12
  32. package/dist/bundle/{chunk-EM7NL5ES.js → chunk-COGWKO2T.js} +3 -3
  33. package/dist/bundle/{chunk-II4S2DBJ.js → chunk-D4MIMH2N.js} +12 -6
  34. package/dist/bundle/{chunk-42G2XNPN.js → chunk-D7KOAPG6.js} +2 -2
  35. package/dist/bundle/{chunk-NQRTKYJB.js → chunk-E2F2XIX6.js} +47 -80
  36. package/dist/bundle/{chunk-VDZY3L7U.js → chunk-FA2TNA5X.js} +1 -1
  37. package/dist/bundle/{chunk-A4QNADEX.js → chunk-FHBTQPA3.js} +49 -49
  38. package/dist/bundle/{chunk-7TAP7Y2E.js → chunk-FKKPVPZR.js} +196 -112
  39. package/dist/bundle/{chunk-2AFI4KGI.js → chunk-G4TNKBDX.js} +7 -7
  40. package/dist/bundle/{chunk-ECEP4SO3.js → chunk-GVA3KTCD.js} +10 -10
  41. package/dist/bundle/{chunk-PHOL2DZM.js → chunk-GY4DAJSK.js} +34 -5
  42. package/dist/bundle/{chunk-Z2ADO6UA.js → chunk-H7XL6WTW.js} +2 -2
  43. package/dist/bundle/{chunk-SE352DBY.js → chunk-HHRJPLFO.js} +1 -1
  44. package/dist/bundle/{chunk-WRAUO5EJ.js → chunk-HPKE2GDP.js} +45 -22
  45. package/dist/bundle/{chunk-D7WB54P7.js → chunk-HPSHQVJU.js} +540 -456
  46. package/dist/bundle/{chunk-4Y5YBFMS.js → chunk-HQBLJLYH.js} +7 -7
  47. package/dist/bundle/{chunk-IMHW7VIV.js → chunk-I5R5CMQR.js} +5 -5
  48. package/dist/bundle/{chunk-ELJUBPY4.js → chunk-IIHZTV6V.js} +1 -1
  49. package/dist/bundle/{chunk-M7ELUGU6.js → chunk-IRNDYNQX.js} +4 -4
  50. package/dist/bundle/{chunk-TTP4NOP3.js → chunk-JCHF7LZT.js} +4 -4
  51. package/dist/bundle/{chunk-3HXNDF6Q.js → chunk-JHMEETXI.js} +2 -2
  52. package/dist/bundle/{chunk-4EDWLR22.js → chunk-JLCR24UM.js} +1 -1
  53. package/dist/bundle/{chunk-6DCLZLGX.js → chunk-JQXK3M5M.js} +1 -1
  54. package/dist/bundle/{chunk-EZ2OLYEK.js → chunk-KOY5HUBY.js} +14 -5
  55. package/dist/bundle/{chunk-IBO23OID.js → chunk-KRG5X5PH.js} +2 -2
  56. package/dist/bundle/{chunk-FA6JNXCC.js → chunk-LVAPSAHF.js} +8 -8
  57. package/dist/bundle/{chunk-ZR2EJPMQ.js → chunk-M7543RUJ.js} +18 -15
  58. package/dist/bundle/{chunk-A27UVLPK.js → chunk-MZWXTJ4O.js} +3 -3
  59. package/dist/bundle/{chunk-XPWZSW6Y.js → chunk-NK4GVFJH.js} +4 -4
  60. package/dist/bundle/chunk-NYECVHFH.js +10283 -0
  61. package/dist/bundle/{chunk-W2XY6C5S.js → chunk-NYZS2LKF.js} +2 -2
  62. package/dist/bundle/{chunk-4AOINPN2.js → chunk-O53WLYX3.js} +8 -2
  63. package/dist/bundle/{chunk-RX5CJ55S.js → chunk-OIF4B526.js} +1 -1
  64. package/dist/bundle/{chunk-SS4LKLD7.js → chunk-OT7SQQJK.js} +371 -362
  65. package/dist/bundle/chunk-OZOQLAWK.js +72 -0
  66. package/dist/bundle/{chunk-DA63E2UM.js → chunk-P7HQFII6.js} +18 -15
  67. package/dist/bundle/{chunk-MCPOZNWG.js → chunk-PJGOQSE5.js} +1 -1
  68. package/dist/bundle/{chunk-F56DRBGY.js → chunk-PKM55ZRR.js} +75 -20
  69. package/dist/bundle/{chunk-SNLSEYJO.js → chunk-PUMDOCAF.js} +1 -1
  70. package/dist/bundle/{chunk-LMKPP2JP.js → chunk-QF7VL4C3.js} +1 -1
  71. package/dist/bundle/{chunk-D6Z43SOG.js → chunk-QJ57PV55.js} +383 -361
  72. package/dist/bundle/{chunk-EU5MD24W.js → chunk-QSELSDWE.js} +13 -13
  73. package/dist/bundle/{chunk-TMHF4BCL.js → chunk-SOOU5WO6.js} +2 -2
  74. package/dist/bundle/{chunk-3ONWN3IA.js → chunk-SZ6JFOL4.js} +137 -45
  75. package/dist/bundle/{chunk-WVJHZIDH.js → chunk-T3ULDA7C.js} +3 -3
  76. package/dist/bundle/{chunk-XYE7XZPB.js → chunk-TAHISPDE.js} +5 -5
  77. package/dist/bundle/{chunk-HP3NT6JJ.js → chunk-TYLEICTX.js} +3 -3
  78. package/dist/bundle/{chunk-Y5PKRITX.js → chunk-UAKX6DP4.js} +5 -5
  79. package/dist/bundle/{chunk-VLXWAH5E.js → chunk-UG3GHFGY.js} +4 -4
  80. package/dist/bundle/{chunk-X7YGGWXI.js → chunk-ULXEW6FT.js} +3 -2
  81. package/dist/bundle/{chunk-JPPPLKAO.js → chunk-UNTIVT47.js} +1 -2
  82. package/dist/bundle/{chunk-SEQWBZYH.js → chunk-UQPW42HF.js} +1 -1
  83. package/dist/bundle/{chunk-JMJIH6JH.js → chunk-V2WXTILT.js} +6 -6
  84. package/dist/bundle/{chunk-TOVWMURV.js → chunk-VQKNKJYL.js} +22 -7
  85. package/dist/bundle/{chunk-OFJXHEFT.js → chunk-VR3YKXHL.js} +93 -31
  86. package/dist/bundle/{chunk-VMAMRFFC.js → chunk-VUUPFDRU.js} +26 -27
  87. package/dist/bundle/{chunk-FBHSWQU7.js → chunk-WYTYHUFH.js} +319 -102
  88. package/dist/bundle/{chunk-ZD4MB7NH.js → chunk-XLGDNI4S.js} +1 -1
  89. package/dist/bundle/{chunk-O6K2E7OA.js → chunk-XVZNFA2P.js} +1507 -1107
  90. package/dist/bundle/chunk-Y5U4HIZS.js +71 -0
  91. package/dist/bundle/chunk-YTIPTHEE.js +47 -0
  92. package/dist/bundle/cli-KW6QQVS5.js +1101 -0
  93. package/dist/bundle/command-contract-CE543JBN.js +41 -0
  94. package/dist/bundle/{command-server-entry-36JXYIJB.js → command-server-entry-OC4E4DED.js} +31 -30
  95. package/dist/bundle/{decode-T5ZW57WZ.js → decode-AH5ZLLDK.js} +8 -8
  96. package/dist/bundle/{dispatch-RMA2XFYA.js → dispatch-CDWZZ54Q.js} +9 -9
  97. package/dist/bundle/drive.js +13 -13
  98. package/dist/bundle/{echarts-KQ44LPSF.js → echarts-VC7MTXWY.js} +2 -2
  99. package/dist/bundle/{embed-Q7XST53J.js → embed-EPSQY6QG.js} +9 -9
  100. package/dist/bundle/{embedder-RWZSBVW2.js → embedder-TK4U4TJR.js} +12 -12
  101. package/dist/bundle/entry-3VN23M7M.js +25 -0
  102. package/dist/bundle/{failure-7NP4QPIN.js → failure-WSVZOPFE.js} +4 -4
  103. package/dist/bundle/first-run-7ZYJ7EB3.js +30 -0
  104. package/dist/bundle/first-screen-CZDH7QY3.js +39 -0
  105. package/dist/bundle/google-OBZMWA7J.js +45 -0
  106. package/dist/bundle/{google-api-P5DRHD7L.js → google-api-AV4X2JH3.js} +68 -63
  107. package/dist/bundle/grants-WTRLN4ZI.js +111 -0
  108. package/dist/bundle/{identity-VDV6CHRW.js → identity-CGHHF7AK.js} +8 -6
  109. package/dist/bundle/{instructions-Q45FVY6H.js → instructions-24PHDBBE.js} +1 -1
  110. package/dist/bundle/{login-XKN3NI6X.js → login-XHFESAFM.js} +73 -70
  111. package/dist/bundle/{mcp-7KQUJNFN.js → mcp-M5YCSWJJ.js} +2 -2
  112. package/dist/bundle/{node-MSW565D3.js → node-GIDULTV5.js} +2 -2
  113. package/dist/bundle/{node-sqlite-S74XVVHL.js → node-sqlite-LINBOAWK.js} +10 -10
  114. package/dist/bundle/oauth-JHUX3KE3.js +22 -0
  115. package/dist/bundle/{open-P7UQG7XJ.js → open-RYFKPNCJ.js} +8 -8
  116. package/dist/bundle/{openai-DDHJ57KZ.js → openai-Q7YYUHJF.js} +28 -21
  117. package/dist/bundle/{process-NMUB5SHK.js → process-VPIZTIJR.js} +1 -1
  118. package/dist/bundle/{program-PJNWP6JW.js → program-IUXFRBZA.js} +213 -555
  119. package/dist/bundle/{prompt-VOSMK4C2.js → prompt-LF4KX3XL.js} +8 -8
  120. package/dist/bundle/{reasons-KDAXOC5S.js → reasons-JPYOU5GV.js} +5 -5
  121. package/dist/bundle/{recognize-GZIY63HS.js → recognize-KEWTJXFH.js} +7 -7
  122. package/dist/bundle/{remote-V3YGN7LN.js → remote-HGGLB76S.js} +13 -10
  123. package/dist/bundle/{rerank-XRU6AVN7.js → rerank-TDUKETFT.js} +10 -10
  124. package/dist/bundle/{serve-NDOAFA57.js → serve-XFYMKW5W.js} +12 -12
  125. package/dist/bundle/server-BDEV3CZJ.js +74 -0
  126. package/dist/bundle/{server-BKGWJYMC.js → server-PXIPSGFP.js} +47 -45
  127. package/dist/bundle/{services-TYDMFQCA.js → services-2BOCGMJU.js} +44 -34
  128. package/dist/bundle/{sqlite-runtime-UAFJKSJR.js → sqlite-runtime-R7M5XUMW.js} +9 -9
  129. package/dist/bundle/{start-2ZLDP2OE.js → start-YRLT4MQZ.js} +7 -7
  130. package/dist/bundle/{state-6SP27J2K.js → state-NZ7WRJWH.js} +9 -9
  131. package/dist/bundle/{store-EJN27MXI.js → store-7LCVDO7G.js} +23 -21
  132. package/dist/bundle/{store-4UUY545Q.js → store-ICDGPSEN.js} +21 -19
  133. package/dist/bundle/store-maintenance-command-SJPLY6IH.js +65 -0
  134. package/dist/bundle/tokens-FGTBE7VW.js +111 -0
  135. package/dist/commands/discovery.d.ts +0 -1
  136. package/dist/commands/discovery.d.ts.map +1 -1
  137. package/dist/commands/discovery.js +6 -26
  138. package/dist/commands/discovery.js.map +1 -1
  139. package/dist/commands/knowledge.d.ts.map +1 -1
  140. package/dist/commands/knowledge.js +7 -6
  141. package/dist/commands/knowledge.js.map +1 -1
  142. package/dist/commands/search.d.ts.map +1 -1
  143. package/dist/commands/search.js +11 -8
  144. package/dist/commands/search.js.map +1 -1
  145. package/dist/config.d.ts +1 -0
  146. package/dist/config.d.ts.map +1 -1
  147. package/dist/config.js +3 -2
  148. package/dist/config.js.map +1 -1
  149. package/dist/contract-overrides.d.ts +16 -4
  150. package/dist/contract-overrides.d.ts.map +1 -1
  151. package/dist/contract-overrides.js +86 -410
  152. package/dist/contract-overrides.js.map +1 -1
  153. package/dist/errors.d.ts.map +1 -1
  154. package/dist/errors.js +4 -0
  155. package/dist/errors.js.map +1 -1
  156. package/dist/google-api.d.ts.map +1 -1
  157. package/dist/google-api.js +4 -1
  158. package/dist/google-api.js.map +1 -1
  159. package/dist/identity.d.ts +4 -0
  160. package/dist/identity.d.ts.map +1 -1
  161. package/dist/identity.js +22 -0
  162. package/dist/identity.js.map +1 -1
  163. package/dist/knowledge.js +2 -2
  164. package/dist/knowledge.js.map +1 -1
  165. package/dist/login.d.ts.map +1 -1
  166. package/dist/login.js +2 -2
  167. package/dist/login.js.map +1 -1
  168. package/dist/program.d.ts.map +1 -1
  169. package/dist/program.js +8 -6
  170. package/dist/program.js.map +1 -1
  171. package/dist/reasons.d.ts.map +1 -1
  172. package/dist/reasons.js +0 -1
  173. package/dist/reasons.js.map +1 -1
  174. package/dist/store-transition.js +2 -2
  175. package/dist/store-transition.js.map +1 -1
  176. package/dist/store.d.ts.map +1 -1
  177. package/dist/store.js +7 -7
  178. package/dist/store.js.map +1 -1
  179. package/dist/tokens.d.ts +9 -2
  180. package/dist/tokens.d.ts.map +1 -1
  181. package/dist/tokens.js +18 -15
  182. package/dist/tokens.js.map +1 -1
  183. package/dist/version.d.ts +1 -1
  184. package/dist/version.js +1 -1
  185. package/dist/wcat.d.ts +3 -0
  186. package/dist/wcat.d.ts.map +1 -0
  187. package/dist/wcat.js +4 -0
  188. package/dist/wcat.js.map +1 -0
  189. package/package.json +7 -7
  190. package/dist/bundle/chunk-CGQRZRTH.js +0 -26
  191. package/dist/bundle/chunk-IKHOIXJR.js +0 -27
  192. package/dist/bundle/chunk-SBZB7HMU.js +0 -1055
  193. package/dist/bundle/command-contract-25E4PYMD.js +0 -40
  194. package/dist/bundle/dist-PY3MVR3G.js +0 -21
  195. package/dist/bundle/entry-HPLW4QL2.js +0 -25
  196. package/dist/bundle/first-run-RL3RKYZW.js +0 -30
  197. package/dist/bundle/first-screen-NX3TM2VJ.js +0 -38
  198. package/dist/bundle/google-DPD5N6AQ.js +0 -42
  199. package/dist/bundle/grants-TX4MHLI4.js +0 -109
  200. package/dist/bundle/oauth-6R7AWAES.js +0 -22
  201. package/dist/bundle/server-QD2MUJJZ.js +0 -72
  202. package/dist/bundle/store-maintenance-command-LETURZDC.js +0 -60
  203. package/dist/bundle/tokens-MTFJPTYT.js +0 -107
  204. /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-HVJJWJYQ.js} +0 -0
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  updateCommand
5
- } from "./chunk-TTP4NOP3.js";
5
+ } from "./chunk-JCHF7LZT.js";
6
6
  import {
7
7
  QUESTIONS,
8
8
  readSetupAnswers,
9
9
  unanswered,
10
10
  writeSetupAnswers
11
- } from "./chunk-VLXWAH5E.js";
11
+ } from "./chunk-UG3GHFGY.js";
12
12
  import {
13
13
  DEFAULT_STEMMERS,
14
14
  LANGUAGES
15
- } from "./chunk-FA6JNXCC.js";
15
+ } from "./chunk-LVAPSAHF.js";
16
16
  import {
17
17
  sharedConfigPath
18
- } from "./chunk-4Y5YBFMS.js";
18
+ } from "./chunk-HQBLJLYH.js";
19
19
  import {
20
20
  installerOf
21
- } from "./chunk-RX5CJ55S.js";
21
+ } from "./chunk-OIF4B526.js";
22
22
  import {
23
23
  storePath
24
- } from "./chunk-UTNRBOEN.js";
24
+ } from "./chunk-3QFUDXMQ.js";
25
25
  import {
26
26
  __name
27
27
  } from "./chunk-ZVVMGPBJ.js";
28
28
 
29
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/cli/first-run.js
29
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/cli/first-run.js
30
30
  import { spawnSync } from "node:child_process";
31
31
  import { accessSync, constants, realpathSync } from "node:fs";
32
32
  import { delimiter, join } from "node:path";
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
84
84
  return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
85
85
  }, "suggested");
86
86
  var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
87
- const { openStore } = await import("./store-4UUY545Q.js");
87
+ const { openStore } = await import("./store-ICDGPSEN.js");
88
88
  const store = await openStore({ env });
89
89
  let rebuild = false;
90
90
  try {
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
113
113
  if (!rebuild)
114
114
  return;
115
115
  const [{ openCache }, { buildStems }] = await Promise.all([
116
- import("./open-P7UQG7XJ.js"),
117
- import("./store-maintenance-command-LETURZDC.js")
116
+ import("./open-RYFKPNCJ.js"),
117
+ import("./store-maintenance-command-SJPLY6IH.js")
118
118
  ]);
119
119
  const database = await openCache(storePath(env));
120
120
  try {
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
126
126
  var askTools = /* @__PURE__ */ __name(async (run) => {
127
127
  const { command, env, io } = run;
128
128
  const installed = run.installed ?? ((name) => onPath(name, env));
129
- const { WIRECAT_TOOLS } = await import("./first-screen-NX3TM2VJ.js");
129
+ const { WIRECAT_TOOLS } = await import("./first-screen-CZDH7QY3.js");
130
130
  const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
131
131
  const missing = others.filter((tool) => !installed(tool.command));
132
132
  io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
199
199
  contentLanguages: start.contentLanguages,
200
200
  all: start.path[0] === "setup",
201
201
  io: {
202
- ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-VOSMK4C2.js")).readSecret(prompt, { input, echo: true }), "ask"),
202
+ ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-LF4KX3XL.js")).readSecret(prompt, { input, echo: true }), "ask"),
203
203
  say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
204
204
  `), "say")
205
205
  }
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  alive
5
- } from "./chunk-O7ZDCOZE.js";
5
+ } from "./chunk-5VDVGDOC.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-7AQGVX5O.js";
9
+ } from "./chunk-6X3KUFRQ.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/background/lock.js
15
15
  import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
16
16
  import { dirname, join } from "node:path";
17
17
  var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
@@ -1,16 +1,22 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ refuseModelAddress
5
+ } from "./chunk-OZOQLAWK.js";
3
6
  import {
4
7
  unit
5
- } from "./chunk-IMHW7VIV.js";
8
+ } from "./chunk-I5R5CMQR.js";
9
+ import {
10
+ onThisComputer
11
+ } from "./chunk-GY4DAJSK.js";
6
12
  import {
7
13
  CliError
8
- } from "./chunk-ELJUBPY4.js";
14
+ } from "./chunk-IIHZTV6V.js";
9
15
  import {
10
16
  __name
11
17
  } from "./chunk-ZVVMGPBJ.js";
12
18
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
14
20
  import { setTimeout } from "node:timers/promises";
15
21
  var OPENAI_URL = "https://api.openai.com/v1";
16
22
  var OPENAI_MODELS = {
@@ -19,8 +25,7 @@ var OPENAI_MODELS = {
19
25
  };
20
26
  var DEFAULT_OPENAI_MODEL = "text-embedding-3-small";
21
27
  var PER_REQUEST = 256;
22
- var LOCAL = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "[::1]", "::1"]);
23
- var isLocal = /* @__PURE__ */ __name((baseUrl) => LOCAL.has(new URL(baseUrl).hostname), "isLocal");
28
+ var isLocal = /* @__PURE__ */ __name((baseUrl) => onThisComputer(baseUrl), "isLocal");
24
29
  var remoteModel = /* @__PURE__ */ __name(({ model = DEFAULT_OPENAI_MODEL, baseUrl, dims }) => {
25
30
  const known = baseUrl === void 0 ? OPENAI_MODELS[model] : void 0;
26
31
  if (baseUrl === void 0 && !known) {
@@ -39,7 +44,8 @@ var remoteModel = /* @__PURE__ */ __name(({ model = DEFAULT_OPENAI_MODEL, baseUr
39
44
  };
40
45
  }, "remoteModel");
41
46
  var remoteKey = /* @__PURE__ */ __name(({ provider, model, dims }) => `${provider}:${model}:${dims}`, "remoteKey");
42
- var openRemote = /* @__PURE__ */ __name((remote, apiKey, { concurrency = 4, fetch: post = fetch, tries = 5 } = {}) => {
47
+ var openRemote = /* @__PURE__ */ __name((remote, apiKey, { concurrency = 4, fetch: post = fetch, tries = 5, env }) => {
48
+ refuseModelAddress(env ?? process.env, remote.baseUrl, "text to embed");
43
49
  const request = /* @__PURE__ */ __name(async (input) => {
44
50
  for (let attempt = 1; ; attempt++) {
45
51
  let response;
@@ -29,7 +29,7 @@ import {
29
29
  agentOf,
30
30
  clientHash,
31
31
  currentCaller
32
- } from "./chunk-DA63E2UM.js";
32
+ } from "./chunk-P7HQFII6.js";
33
33
  import {
34
34
  __name
35
35
  } from "./chunk-ZVVMGPBJ.js";
@@ -541,7 +541,7 @@ function toError(value) {
541
541
  }
542
542
  __name(toError, "toError");
543
543
 
544
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/caller.js
544
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/mcp/caller.js
545
545
  var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
546
546
  const client = caller?.agent?.client?.name;
547
547
  if (client && client !== "unknown")
@@ -4,23 +4,24 @@ import {
4
4
  embeddingKeys,
5
5
  endpointKeyName,
6
6
  modelGateway
7
- } from "./chunk-FBHSWQU7.js";
7
+ } from "./chunk-WYTYHUFH.js";
8
8
  import {
9
- endpoint
10
- } from "./chunk-OWMZUWCM.js";
9
+ modelAddressAllowed,
10
+ onThisComputer
11
+ } from "./chunk-GY4DAJSK.js";
11
12
  import {
12
13
  readSharedSection,
13
14
  sharedConfigPath,
14
15
  writeSharedSection
15
- } from "./chunk-4Y5YBFMS.js";
16
+ } from "./chunk-HQBLJLYH.js";
16
17
  import {
17
18
  storePath
18
- } from "./chunk-UTNRBOEN.js";
19
+ } from "./chunk-3QFUDXMQ.js";
19
20
  import {
20
21
  Credentials,
21
22
  isMovedRun,
22
23
  resolvePaths
23
- } from "./chunk-7AQGVX5O.js";
24
+ } from "./chunk-6X3KUFRQ.js";
24
25
  import {
25
26
  check,
26
27
  getDotPath,
@@ -33,69 +34,15 @@ import {
33
34
  strictObject,
34
35
  string,
35
36
  trim
36
- } from "./chunk-TOVWMURV.js";
37
+ } from "./chunk-VQKNKJYL.js";
37
38
  import {
38
- CliError,
39
- isCliError
40
- } from "./chunk-ELJUBPY4.js";
39
+ CliError
40
+ } from "./chunk-IIHZTV6V.js";
41
41
  import {
42
42
  __name
43
43
  } from "./chunk-ZVVMGPBJ.js";
44
44
 
45
- // dist/errors.js
46
- var googleError = /* @__PURE__ */ __name((error) => {
47
- if (isCliError(error))
48
- return error;
49
- const value = error;
50
- if (value?.name === "AbortError" || value?.code === "ERR_CANCELED")
51
- return new CliError("cancelled", "Google operation was cancelled", { reason: "command.cancelled" });
52
- const status = value?.status ?? value?.response?.status;
53
- const payload = value?.response?.data?.error;
54
- const reason = typeof payload === "string" ? payload : payload?.errors?.[0]?.reason;
55
- const told = status === 403 && typeof reason === "string" && /^[A-Za-z]{1,64}$/.test(reason) ? { google_reason: reason } : {};
56
- const disabled = typeof payload === "object" && payload !== null && Array.isArray(payload.details) && payload.details.some((detail) => detail !== null && typeof detail === "object" && "@type" in detail && detail["@type"] === "type.googleapis.com/google.rpc.ErrorInfo" && "domain" in detail && detail.domain === "googleapis.com" && "reason" in detail && detail.reason === "SERVICE_DISABLED");
57
- if (reason === "invalid_grant" || reason === "invalid_token")
58
- return new CliError("authentication_error", "Google sign-in is no longer valid \u2014 run drive <profile> session start again", {
59
- reason: "oauth.expired"
60
- });
61
- if (reason === "invalid_client")
62
- return new CliError("configuration_error", "Google rejected the OAuth application; check its Desktop client setup", {
63
- reason: "sign-in.client-rejected"
64
- });
65
- if (status === 403 && (reason === "accessNotConfigured" || disabled))
66
- return new CliError("configuration_error", "Google API is disabled for this OAuth project; its owner must enable it in Google Cloud API Library", { reason: "api.disabled", status });
67
- if (reason === "rateLimitExceeded" || reason === "userRateLimitExceeded" || reason === "dailyLimitExceeded" || reason === "quotaExceeded")
68
- return new CliError("rate_limited", "Google rate limit reached; retry the command", {
69
- retryable: true,
70
- ...status ? { status } : {},
71
- ...told
72
- });
73
- if (reason === "exportSizeLimitExceeded")
74
- return new CliError("validation_error", "Google exports at most 10 MB of a native file; this one is larger", {
75
- reason: "export.too-large"
76
- });
77
- if (status === 401)
78
- return new CliError("authentication_error", "Google sign-in expired \u2014 run drive <profile> session start again", {
79
- reason: "oauth.expired"
80
- });
81
- if (status === 403)
82
- return new CliError("permission_error", "Google denied this operation; check access and OAuth permissions", {
83
- status,
84
- ...told
85
- });
86
- if (status === 404)
87
- return new CliError("not_found", "Google source is unavailable or no longer accessible", { status });
88
- if (status === 429)
89
- return new CliError("rate_limited", "Google rate limit reached; retry the command", { retryable: true, status });
90
- if (status !== void 0)
91
- return new CliError("provider_error", `Google request failed (HTTP ${status})`, { status });
92
- return new CliError("provider_unavailable", "Google request failed; no request or credential details were logged", {
93
- retryable: true
94
- });
95
- }, "googleError");
96
- var offlineRefused = /* @__PURE__ */ __name((what = "this command may require network access") => new CliError("permission_error", `${what}; --offline was requested`, { reason: "offline.refused" }), "offlineRefused");
97
-
98
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/models/ai.js
45
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/models/ai.js
99
46
  var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
100
47
  var DEFAULT_BASE_URL = {
101
48
  anthropic: "https://api.anthropic.com",
@@ -107,13 +54,7 @@ var OFFICIAL = {
107
54
  "https://api.anthropic.com": "anthropic"
108
55
  };
109
56
  var SECTION = "ai";
110
- var loopback = /* @__PURE__ */ __name((hostname) => hostname === "localhost" || hostname === "[::1]" || /^127(\.\d{1,3}){3}$/.test(hostname), "loopback");
111
- var aiAddressAllowed = /* @__PURE__ */ __name((value) => {
112
- if (!endpoint(value))
113
- return false;
114
- const url = new URL(value);
115
- return url.protocol === "https:" || loopback(url.hostname);
116
- }, "aiAddressAllowed");
57
+ var aiAddressAllowed = modelAddressAllowed;
117
58
  var consentShape = strictObject({
118
59
  origin: string(),
119
60
  model: string(),
@@ -147,10 +88,10 @@ var aiSettingOf = /* @__PURE__ */ __name((given) => {
147
88
  const checked = safeParse(settingShape, draft);
148
89
  if (!checked.success) {
149
90
  const field = getDotPath(checked.issues[0]);
150
- throw new CliError("validation_error", field === "provider" ? `the provider is one of ${AI_PROVIDERS.join(", ")}` : field === "base_url" ? "this address is not allowed: use https, or http only on this computer" : "name the model, 1 to 200 characters", { reason: field === "base_url" ? "ai.address-refused" : "ai.setting-invalid" });
91
+ throw new CliError("validation_error", field === "provider" ? `the provider is one of ${AI_PROVIDERS.join(", ")}` : field === "base_url" ? "this address is not allowed: use https, or http only on this computer" : "name the model, 1 to 200 characters", { reason: field === "base_url" ? "model.address-refused" : "ai.setting-invalid" });
151
92
  }
152
- if (checked.output.provider === "ollama" && !loopback(new URL(aiBaseUrl(checked.output)).hostname))
153
- throw new CliError("validation_error", "Ollama is read only on this computer", { reason: "ai.address-refused" });
93
+ if (checked.output.provider === "ollama" && !onThisComputer(aiBaseUrl(checked.output)))
94
+ throw new CliError("validation_error", "Ollama is read only on this computer", { reason: "model.address-refused" });
154
95
  return given.allowImages ? {
155
96
  ...checked.output,
156
97
  images: { origin: aiOrigin(checked.output), model: checked.output.model, at: (/* @__PURE__ */ new Date()).toISOString() }
@@ -191,15 +132,38 @@ var aiKeys = /* @__PURE__ */ __name((app, env, keyring) => {
191
132
  remove: /* @__PURE__ */ __name((origin) => credentials.remove(account(origin)), "remove")
192
133
  };
193
134
  }, "aiKeys");
194
- var aiNeedsKey = /* @__PURE__ */ __name((setting) => setting.provider !== "ollama", "aiNeedsKey");
195
- var keyFor = /* @__PURE__ */ __name((setting, deps) => aiNeedsKey(setting) ? aiKeys(deps.app, deps.env, deps.keyring).read(aiOrigin(setting))?.key : void 0, "keyFor");
135
+ var aiNeedsKey = /* @__PURE__ */ __name((setting) => aiLeavesComputer(setting), "aiNeedsKey");
136
+ var aiTakesKey = /* @__PURE__ */ __name((setting) => setting.provider !== "ollama", "aiTakesKey");
137
+ var keyFor = /* @__PURE__ */ __name((setting, deps) => aiTakesKey(setting) ? aiKeys(deps.app, deps.env, deps.keyring).read(aiOrigin(setting))?.key : void 0, "keyFor");
196
138
  var gatewayFor = /* @__PURE__ */ __name((setting, deps, key) => modelGateway({
197
139
  resolve: /* @__PURE__ */ __name(() => aiTarget(setting), "resolve"),
198
140
  consent: /* @__PURE__ */ __name(() => true, "consent"),
199
141
  key: /* @__PURE__ */ __name(() => key, "key"),
142
+ env: deps.env,
200
143
  ...deps.fetch ? { fetch: deps.fetch } : {},
201
144
  ...deps.signal ? { signal: deps.signal } : {}
202
145
  }), "gatewayFor");
146
+ var aiLeavesComputer = /* @__PURE__ */ __name((setting) => !onThisComputer(aiBaseUrl(setting)), "aiLeavesComputer");
147
+ var sharedModel = /* @__PURE__ */ __name((deps) => {
148
+ const setting = readAiSetting(aiSettingPath(deps.env));
149
+ if (!setting)
150
+ return void 0;
151
+ return { target: { ...aiTarget(setting), baseUrl: aiBaseUrl(setting) }, key: keyFor(setting, deps), setting };
152
+ }, "sharedModel");
153
+ var aiTextReader = /* @__PURE__ */ __name((deps) => {
154
+ const setting = readAiSetting(aiSettingPath(deps.env));
155
+ if (!setting)
156
+ return { refused: "ai.not-set" };
157
+ const key = keyFor(setting, deps);
158
+ if (aiNeedsKey(setting) && !key)
159
+ return { refused: "ai.key-missing" };
160
+ const gateway = gatewayFor(setting, deps, key);
161
+ return {
162
+ by: `${setting.provider}/${setting.model}`,
163
+ leavesComputer: aiLeavesComputer(setting),
164
+ complete: /* @__PURE__ */ __name(async (request) => (await gateway.complete(request)).text, "complete")
165
+ };
166
+ }, "aiTextReader");
203
167
  var reasonOf = /* @__PURE__ */ __name((error) => {
204
168
  if (!(error instanceof CliError))
205
169
  return "ai.failed";
@@ -210,6 +174,8 @@ var reasonOf = /* @__PURE__ */ __name((error) => {
210
174
  return "ai.key-rejected";
211
175
  if (reason === "model.unreachable")
212
176
  return "ai.unreachable";
177
+ if (reason === "model.empty-answer")
178
+ return "ai.empty-answer";
213
179
  if (status === 402)
214
180
  return "ai.no-credit";
215
181
  if (status === 404)
@@ -250,8 +216,9 @@ export {
250
216
  aiOrigin,
251
217
  aiImagesAllowed,
252
218
  aiKeys,
253
- aiNeedsKey,
254
- checkAi,
255
- googleError,
256
- offlineRefused
219
+ aiTakesKey,
220
+ aiLeavesComputer,
221
+ sharedModel,
222
+ aiTextReader,
223
+ checkAi
257
224
  };
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/driver.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/store/driver.js
8
8
  var TIME_LIMIT_FUNCTION = "wc_time_limit";
9
9
  var TimeLimitReached = class extends Error {
10
10
  static {
@@ -1,18 +1,5 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
- import {
4
- CHART_KINDS,
5
- CHART_SIZE,
6
- chartAnswer,
7
- chartPng,
8
- chartRenderer,
9
- chatChart,
10
- keepRefreshedRefs,
11
- mcpUrlOf,
12
- refuseWriteBeforeConnecting,
13
- registerPrompts,
14
- syncsFirst
15
- } from "./chunk-GW3LBY3T.js";
16
3
  import {
17
4
  BinaryResource,
18
5
  Picture,
@@ -33,56 +20,69 @@ import {
33
20
  tool,
34
21
  toolKey,
35
22
  toolsFromCommands
36
- } from "./chunk-3ONWN3IA.js";
23
+ } from "./chunk-SZ6JFOL4.js";
24
+ import {
25
+ CHART_KINDS,
26
+ CHART_SIZE,
27
+ chartAnswer,
28
+ chartPng,
29
+ chartRenderer,
30
+ chatChart,
31
+ keepRefreshedRefs,
32
+ mcpUrlOf,
33
+ refuseWriteBeforeConnecting,
34
+ registerPrompts,
35
+ syncsFirst
36
+ } from "./chunk-7LT2G5BC.js";
37
37
  import {
38
38
  agentJson,
39
39
  skillResource
40
- } from "./chunk-D7WB54P7.js";
40
+ } from "./chunk-HPSHQVJU.js";
41
41
  import {
42
42
  instructions
43
- } from "./chunk-RNHGQ35R.js";
43
+ } from "./chunk-3SDJIMZB.js";
44
44
  import {
45
45
  answeredWire
46
- } from "./chunk-4EDWLR22.js";
46
+ } from "./chunk-JLCR24UM.js";
47
47
  import {
48
48
  StdioServerTransport,
49
49
  callerOf,
50
50
  callingAgent,
51
51
  serveStdio
52
- } from "./chunk-42G2XNPN.js";
52
+ } from "./chunk-D7KOAPG6.js";
53
53
  import {
54
54
  McpServer,
55
55
  ResourceTemplate
56
56
  } from "./chunk-5D4AEUVA.js";
57
57
  import {
58
58
  connectedFor
59
- } from "./chunk-SS4LKLD7.js";
59
+ } from "./chunk-OT7SQQJK.js";
60
60
  import {
61
61
  lackedNeed,
62
62
  wholeList
63
- } from "./chunk-WRAUO5EJ.js";
63
+ } from "./chunk-HPKE2GDP.js";
64
64
  import {
65
65
  capability,
66
66
  dateWindow,
67
67
  guardFor,
68
68
  servicesFor,
69
69
  storedDeps
70
- } from "./chunk-O6K2E7OA.js";
70
+ } from "./chunk-XVZNFA2P.js";
71
71
  import {
72
72
  imageSize
73
- } from "./chunk-FBHSWQU7.js";
73
+ } from "./chunk-WYTYHUFH.js";
74
74
  import {
75
75
  mcpHttpMarker
76
- } from "./chunk-5XSBCMAF.js";
76
+ } from "./chunk-6UJCCOZC.js";
77
77
  import {
78
78
  warmEmbedders
79
- } from "./chunk-IMHW7VIV.js";
79
+ } from "./chunk-I5R5CMQR.js";
80
80
  import {
81
81
  stdinFieldOf
82
- } from "./chunk-SEQWBZYH.js";
82
+ } from "./chunk-UQPW42HF.js";
83
83
  import {
84
84
  findCommand
85
- } from "./chunk-Y5PKRITX.js";
85
+ } from "./chunk-UAKX6DP4.js";
86
86
  import {
87
87
  DEFAULT_OUTPUT_BYTES,
88
88
  changesAuthorityAt,
@@ -95,38 +95,38 @@ import {
95
95
  rootOf2 as rootOf,
96
96
  sealed,
97
97
  snakeKeys
98
- } from "./chunk-SIWXYB4E.js";
98
+ } from "./chunk-5PLINHEY.js";
99
99
  import {
100
100
  withCaller
101
- } from "./chunk-DA63E2UM.js";
101
+ } from "./chunk-P7HQFII6.js";
102
102
  import {
103
103
  levelFor,
104
104
  readKeysForCommand
105
- } from "./chunk-F56DRBGY.js";
105
+ } from "./chunk-PKM55ZRR.js";
106
106
  import {
107
107
  readOnlyLockOf
108
- } from "./chunk-IKHOIXJR.js";
108
+ } from "./chunk-Y5U4HIZS.js";
109
109
  import {
110
110
  openStore
111
- } from "./chunk-NI5PD5KM.js";
111
+ } from "./chunk-BIJW6AYA.js";
112
112
  import {
113
113
  pdfPreviewLimits
114
- } from "./chunk-WVJHZIDH.js";
114
+ } from "./chunk-T3ULDA7C.js";
115
115
  import {
116
116
  typedCommand
117
- } from "./chunk-D6Z43SOG.js";
117
+ } from "./chunk-QJ57PV55.js";
118
118
  import {
119
119
  timezoneOf
120
- } from "./chunk-ECEP4SO3.js";
120
+ } from "./chunk-GVA3KTCD.js";
121
121
  import {
122
122
  isCliFailure
123
- } from "./chunk-4AOINPN2.js";
123
+ } from "./chunk-O53WLYX3.js";
124
124
  import {
125
125
  mcpErrorResult
126
- } from "./chunk-PLP5527C.js";
126
+ } from "./chunk-ALE67WRR.js";
127
127
  import {
128
128
  visibleControls
129
- } from "./chunk-6DCLZLGX.js";
129
+ } from "./chunk-JQXK3M5M.js";
130
130
  import {
131
131
  description,
132
132
  integer,
@@ -141,18 +141,18 @@ import {
141
141
  regex,
142
142
  strictObject,
143
143
  string
144
- } from "./chunk-TOVWMURV.js";
144
+ } from "./chunk-VQKNKJYL.js";
145
145
  import {
146
146
  CliError
147
- } from "./chunk-ELJUBPY4.js";
147
+ } from "./chunk-IIHZTV6V.js";
148
148
  import {
149
149
  __name
150
150
  } from "./chunk-ZVVMGPBJ.js";
151
151
 
152
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/server.js
152
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/mcp/server.js
153
153
  import { randomUUID } from "node:crypto";
154
154
 
155
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
155
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
156
156
  var agentLog = /* @__PURE__ */ __name((open) => {
157
157
  let held;
158
158
  return {
@@ -171,7 +171,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
171
171
  };
172
172
  }, "agentLog");
173
173
 
174
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/resources.js
174
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/mcp/resources.js
175
175
  var LISTED = 100;
176
176
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
177
177
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -209,7 +209,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
209
209
  });
210
210
  }, "registerResources");
211
211
 
212
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/session.js
212
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/mcp/session.js
213
213
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
214
214
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
215
215
  var MessengerSession = class {
@@ -284,7 +284,7 @@ var MessengerSession = class {
284
284
  }
285
285
  };
286
286
 
287
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
287
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
288
288
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
289
289
  const _command = messenger.app.command;
290
290
  return {
@@ -338,7 +338,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
338
338
  };
339
339
  }, "attachmentsTools");
340
340
 
341
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
341
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
342
342
  var PHOTO_LIMIT = 512 * 1024;
343
343
  var IMAGE_TYPES = [
344
344
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -392,7 +392,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
392
392
  return new Uint8Array(Buffer.concat(chunks));
393
393
  }, "readUpTo");
394
394
 
395
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
395
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
396
396
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
397
397
  stats_charts: tool({
398
398
  title: "A chart from a chat's statistics",
@@ -429,14 +429,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
429
429
  })
430
430
  }), "statsTools");
431
431
 
432
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/tools.js
432
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/mcp/tools.js
433
433
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
434
434
  ...messagesPhotoTools(messenger),
435
435
  ...attachmentsTools(messenger),
436
436
  ...statsTools(messenger)
437
437
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
438
438
 
439
- // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/server.js
439
+ // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/mcp/server.js
440
440
  var PER_RUN = /* @__PURE__ */ new Set([
441
441
  "streams",
442
442
  "stdin",
@@ -760,7 +760,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
760
760
  }, "serveOverStdio");
761
761
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
762
762
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
763
- const { serveOverHttp } = await import("./serve-NDOAFA57.js");
763
+ const { serveOverHttp } = await import("./serve-XFYMKW5W.js");
764
764
  const appName = messenger.app.command;
765
765
  const appEnvPrefix = messenger.app.envPrefix;
766
766
  const listening = await serveOverHttp(build, {