@wirecat/drive-cli 0.58.0 → 0.59.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 (163) hide show
  1. package/dist/bin/drive.js +6 -2
  2. package/dist/bundle/{all-profiles-ANDWOJDL.js → all-profiles-CVISDGMF.js} +14 -13
  3. package/dist/bundle/{anthropic-EZPZUWGS.js → anthropic-WLNQC23G.js} +9 -9
  4. package/dist/bundle/{app-server-67WL423B.js → app-server-P2VOONXF.js} +53 -51
  5. package/dist/bundle/{bun-NIIYUR5F.js → bun-CDFBNTKV.js} +2 -2
  6. package/dist/bundle/{bun-sqlite-A5ZKTIYC.js → bun-sqlite-MNZICITP.js} +8 -8
  7. package/dist/bundle/{chunk-NYINLKWT.js → chunk-2AXA5SKP.js} +1 -1
  8. package/dist/bundle/{chunk-EFEI724Z.js → chunk-36B7AIGP.js} +1 -1
  9. package/dist/bundle/{chunk-4GZLX2ME.js → chunk-3KJTJDDT.js} +40 -33
  10. package/dist/bundle/{chunk-4UU4ONKY.js → chunk-3KNZADHJ.js} +5086 -640
  11. package/dist/bundle/{chunk-O3K46QRL.js → chunk-3U22QTU6.js} +8 -6
  12. package/dist/bundle/chunk-3VSUT6BD.js +35 -0
  13. package/dist/bundle/{chunk-U2RSVKR5.js → chunk-5C7K6XIT.js} +1 -1
  14. package/dist/bundle/{chunk-JEMKSWVI.js → chunk-6C6255U6.js} +12 -12
  15. package/dist/bundle/{chunk-UBZ2LH7N.js → chunk-6CQO2FIN.js} +1403 -581
  16. package/dist/bundle/{chunk-4EEOJ54H.js → chunk-7QTVIZII.js} +5400 -2996
  17. package/dist/bundle/{chunk-TCJRJ3TE.js → chunk-A6EG7ZDS.js} +13 -13
  18. package/dist/bundle/{chunk-SPVPKHBQ.js → chunk-A6SLYOP2.js} +35 -30
  19. package/dist/bundle/{chunk-TIXIB32T.js → chunk-AD62XJKO.js} +153 -101
  20. package/dist/bundle/{chunk-GDRO4YMH.js → chunk-B5GBJ35N.js} +4 -4
  21. package/dist/bundle/{chunk-LSSIVBQI.js → chunk-BSGOM3BD.js} +1 -1
  22. package/dist/bundle/{chunk-ALTG7BZQ.js → chunk-CBM2XAEZ.js} +19 -19
  23. package/dist/bundle/{chunk-2TASMYGM.js → chunk-DI5Z4SH5.js} +3 -3
  24. package/dist/bundle/{chunk-ITD7WI23.js → chunk-EBLA7GXY.js} +1 -1
  25. package/dist/bundle/{chunk-P5MCZ635.js → chunk-EHEZSV6I.js} +11 -88
  26. package/dist/bundle/{chunk-QVIJMV22.js → chunk-EORMZCVF.js} +3 -3
  27. package/dist/bundle/{chunk-OZEJA67C.js → chunk-EVETU3TF.js} +8 -8
  28. package/dist/bundle/{chunk-7YUZAEBG.js → chunk-F3FOL42A.js} +2 -2
  29. package/dist/bundle/{chunk-AFZ33AC7.js → chunk-FICVPYE4.js} +179 -50
  30. package/dist/bundle/{chunk-6THTUYPT.js → chunk-FVQCM7IQ.js} +1 -1
  31. package/dist/bundle/{chunk-TNX77VPM.js → chunk-GI5JBGXH.js} +4589 -1510
  32. package/dist/bundle/{chunk-7VFD3UJQ.js → chunk-GJ4ZCIOP.js} +3 -3
  33. package/dist/bundle/{chunk-7AL57FCK.js → chunk-GT5KTGCN.js} +4 -4
  34. package/dist/bundle/{chunk-BAEIAQWH.js → chunk-H2BKXPBL.js} +2 -2
  35. package/dist/bundle/chunk-HIOJRPCT.js +93 -0
  36. package/dist/bundle/{chunk-ASPIEEXN.js → chunk-HIP43OGZ.js} +1 -1
  37. package/dist/bundle/{chunk-UMJLXAJI.js → chunk-HMZAMHKN.js} +2 -2
  38. package/dist/bundle/{chunk-ESF2B22R.js → chunk-HWLLVLAB.js} +10 -10
  39. package/dist/bundle/{chunk-X5XWUQNU.js → chunk-IADOBOKB.js} +2 -2
  40. package/dist/bundle/{chunk-4ICWGMHN.js → chunk-IBZ3IBO4.js} +7 -7
  41. package/dist/bundle/{chunk-MBNKNWOG.js → chunk-IGF6EXBR.js} +35 -34
  42. package/dist/bundle/{chunk-I4VUHZSD.js → chunk-II7LST64.js} +3 -3
  43. package/dist/bundle/{chunk-Z5GDNCTJ.js → chunk-IIP43FQJ.js} +2 -2
  44. package/dist/bundle/{chunk-UTDL7MKT.js → chunk-JSDVK3JA.js} +2 -2
  45. package/dist/bundle/{chunk-X4F3M6L6.js → chunk-JW2CVCUH.js} +4 -4
  46. package/dist/bundle/{chunk-IBJOO5FG.js → chunk-K4LXGZTE.js} +16 -16
  47. package/dist/bundle/{chunk-WICYDOVL.js → chunk-KFZUODXB.js} +70 -18
  48. package/dist/bundle/chunk-KPRGTTJH.js +34 -0
  49. package/dist/bundle/{chunk-SWFA36F3.js → chunk-L5SE2XZP.js} +20 -14
  50. package/dist/bundle/{chunk-OOR6PEHV.js → chunk-LJ7E4HLQ.js} +1 -1
  51. package/dist/bundle/{chunk-34XHR5FL.js → chunk-LPHMAQJQ.js} +16 -16
  52. package/dist/bundle/{chunk-6SARLV3Z.js → chunk-M6I2SQN7.js} +4 -4
  53. package/dist/bundle/{chunk-OG5ERX4S.js → chunk-MEAPA4EZ.js} +2 -2
  54. package/dist/bundle/{chunk-IH4UCM5K.js → chunk-MKCNUI72.js} +2 -2
  55. package/dist/bundle/{chunk-XQMMB6ST.js → chunk-MUUHUHWC.js} +2 -1
  56. package/dist/bundle/{chunk-NKL5XXOM.js → chunk-OKXSTWKW.js} +8 -8
  57. package/dist/bundle/{chunk-BKM2CGG2.js → chunk-OMMEQJOB.js} +3 -3
  58. package/dist/bundle/{chunk-EFX6FIDM.js → chunk-OZH4ALTI.js} +1 -1
  59. package/dist/bundle/{chunk-TMW526H3.js → chunk-P3ZTW2ZM.js} +5 -5
  60. package/dist/bundle/{chunk-FD7A6745.js → chunk-P7WPYKSB.js} +4 -4
  61. package/dist/bundle/{chunk-OUQVZTF5.js → chunk-PAEVBAM3.js} +7 -42
  62. package/dist/bundle/{chunk-W6KMNO3C.js → chunk-PGKIOSN3.js} +6 -6
  63. package/dist/bundle/{chunk-KCBHOYNZ.js → chunk-QTM7USFA.js} +8 -13
  64. package/dist/bundle/{chunk-IXXQZCNK.js → chunk-TFH5X46A.js} +32 -19
  65. package/dist/bundle/{chunk-YHRJUZ3O.js → chunk-TI55J3BA.js} +6 -4
  66. package/dist/bundle/{chunk-J36Z6BDZ.js → chunk-TJXPJ3A5.js} +570 -366
  67. package/dist/bundle/{chunk-RRHC5SBB.js → chunk-UQPKAY6I.js} +2 -2
  68. package/dist/bundle/{chunk-A4DHPOFQ.js → chunk-UWVNRPT7.js} +53 -39
  69. package/dist/bundle/{chunk-3RG27IWA.js → chunk-V36RIXFA.js} +5 -5
  70. package/dist/bundle/{chunk-3GXNODTB.js → chunk-V42KAPU3.js} +4 -4
  71. package/dist/bundle/{chunk-D72FL3L3.js → chunk-VT6GZAF4.js} +35 -35
  72. package/dist/bundle/{chunk-VXI67T7U.js → chunk-VVCZS42A.js} +1 -1
  73. package/dist/bundle/{chunk-A7FMNTCK.js → chunk-W62CON5K.js} +4 -4
  74. package/dist/bundle/{chunk-PYPLD7JO.js → chunk-XCOCPXCM.js} +2 -2
  75. package/dist/bundle/{chunk-BLJVCJZU.js → chunk-YADXWQHV.js} +26 -26
  76. package/dist/bundle/{chunk-AL7MY7MW.js → chunk-YU3PTU3D.js} +1 -1
  77. package/dist/bundle/{chunk-5NPFHWLP.js → chunk-YV4ABH6J.js} +5 -5
  78. package/dist/bundle/{chunk-ED5JNYN5.js → chunk-ZSMCJKGP.js} +27 -26
  79. package/dist/bundle/{chunk-JZ67M3HR.js → chunk-ZYCLPJ7U.js} +1 -1
  80. package/dist/bundle/command-contract-LQDNHZJU.js +39 -0
  81. package/dist/bundle/{decode-2R6DTGRX.js → decode-XTOMXMGN.js} +8 -8
  82. package/dist/bundle/{dispatch-DEXAEMIN.js → dispatch-T6TW2JJB.js} +9 -9
  83. package/dist/bundle/drive.js +11 -11
  84. package/dist/bundle/{echarts-CLB22SZS.js → echarts-RKKIOYVV.js} +2 -2
  85. package/dist/bundle/{embed-RJJWOLKN.js → embed-STHKKA6G.js} +9 -9
  86. package/dist/bundle/{embedder-DWYS5JYJ.js → embedder-3XZEWHRO.js} +12 -12
  87. package/dist/bundle/entry-CNOYSSSD.js +22 -0
  88. package/dist/bundle/{failure-GBZ4L5QO.js → failure-DNQYXP2T.js} +4 -4
  89. package/dist/bundle/first-run-F2SI24PK.js +30 -0
  90. package/dist/bundle/first-screen-TYYF6VXY.js +37 -0
  91. package/dist/bundle/{google-L776ETP4.js → google-BYNSAIQI.js} +13 -13
  92. package/dist/bundle/{google-api-AI5ZJJ2M.js → google-api-4VTZH7OP.js} +57 -56
  93. package/dist/bundle/grants-EUQXSICG.js +105 -0
  94. package/dist/bundle/{identity-MDLWK2TX.js → identity-ARDPFYV5.js} +6 -6
  95. package/dist/bundle/{instructions-BXZZNAMS.js → instructions-N3OH5X2Y.js} +1 -1
  96. package/dist/bundle/{login-6HHQLRHY.js → login-4VQEC7VI.js} +63 -62
  97. package/dist/bundle/{mcp-ZZUYI44D.js → mcp-WBHKX5E3.js} +2 -2
  98. package/dist/bundle/{node-R6ZNQ3NT.js → node-YU5JBNAA.js} +2 -2
  99. package/dist/bundle/{node-sqlite-AVNHGMVL.js → node-sqlite-3C6PSBIW.js} +14 -8
  100. package/dist/bundle/oauth-D6NJFPYU.js +22 -0
  101. package/dist/bundle/{open-BXPLXJC2.js → open-M2V2VYXO.js} +8 -7
  102. package/dist/bundle/{openai-CRO5GDBY.js → openai-ST2IWNUX.js} +17 -17
  103. package/dist/bundle/{process-P36JP33R.js → process-PYNNBBTV.js} +1 -1
  104. package/dist/bundle/{program-4DWVWSGQ.js → program-Q4VWV2MR.js} +132 -94
  105. package/dist/bundle/prompt-MFIOJMAF.js +17 -0
  106. package/dist/bundle/{reasons-IHPNUP5W.js → reasons-LOQ5J73F.js} +5 -5
  107. package/dist/bundle/{recognize-NAISVA56.js → recognize-FBLMWXNE.js} +7 -7
  108. package/dist/bundle/{remote-KCUHG5HV.js → remote-XC3OXE4T.js} +10 -10
  109. package/dist/bundle/{rerank-Q3POCDSK.js → rerank-2XMKKF4S.js} +10 -10
  110. package/dist/bundle/{serve-5CUOYLSG.js → serve-Q2BQHNZB.js} +14 -13
  111. package/dist/bundle/{server-FXW3GARV.js → server-42HPV3AH.js} +44 -43
  112. package/dist/bundle/server-EWZYN323.js +70 -0
  113. package/dist/bundle/{services-PEYBXZ3R.js → services-WU22S2MU.js} +99 -31
  114. package/dist/bundle/{sqlite-runtime-YMPWN5PM.js → sqlite-runtime-CSO6K6B2.js} +9 -8
  115. package/dist/bundle/{start-PFWEF44R.js → start-TZWKM4AH.js} +7 -7
  116. package/dist/bundle/{state-5TQ7IOJH.js → state-FLUT7U7R.js} +9 -9
  117. package/dist/bundle/{store-E2VWY4O6.js → store-HDWMJ44E.js} +42 -21
  118. package/dist/bundle/{store-P4OYYFW5.js → store-TG6622NG.js} +20 -16
  119. package/dist/bundle/store-maintenance-command-RHWRUREJ.js +60 -0
  120. package/dist/bundle/tokens-TXYURU4S.js +103 -0
  121. package/dist/commands/documents.d.ts +1 -0
  122. package/dist/commands/documents.d.ts.map +1 -1
  123. package/dist/commands/documents.js +14 -1
  124. package/dist/commands/documents.js.map +1 -1
  125. package/dist/commands/knowledge.d.ts +4 -0
  126. package/dist/commands/knowledge.d.ts.map +1 -1
  127. package/dist/commands/knowledge.js +8 -7
  128. package/dist/commands/knowledge.js.map +1 -1
  129. package/dist/contract-overrides.js +5 -5
  130. package/dist/contract-overrides.js.map +1 -1
  131. package/dist/knowledge-query.d.ts +2 -0
  132. package/dist/knowledge-query.d.ts.map +1 -1
  133. package/dist/program.d.ts.map +1 -1
  134. package/dist/program.js +8 -3
  135. package/dist/program.js.map +1 -1
  136. package/dist/provider-json.d.ts +2 -0
  137. package/dist/provider-json.d.ts.map +1 -1
  138. package/dist/provider-json.js +13 -0
  139. package/dist/provider-json.js.map +1 -1
  140. package/dist/reasons.d.ts.map +1 -1
  141. package/dist/reasons.js +1 -0
  142. package/dist/reasons.js.map +1 -1
  143. package/dist/store.d.ts +2 -0
  144. package/dist/store.d.ts.map +1 -1
  145. package/dist/store.js +9 -0
  146. package/dist/store.js.map +1 -1
  147. package/dist/version.d.ts +1 -1
  148. package/dist/version.js +1 -1
  149. package/package.json +3 -3
  150. package/skills/drive-cli/SKILL.md +2 -1
  151. package/dist/bundle/chunk-7VUHY5LP.js +0 -18
  152. package/dist/bundle/chunk-Y6M2G7JK.js +0 -3609
  153. package/dist/bundle/command-contract-ZCXFT764.js +0 -39
  154. package/dist/bundle/entry-E6H7IUPV.js +0 -21
  155. package/dist/bundle/first-run-DI2JIG44.js +0 -30
  156. package/dist/bundle/first-screen-X5N4TCKD.js +0 -37
  157. package/dist/bundle/grants-HKGYAWL6.js +0 -104
  158. package/dist/bundle/oauth-UVU52X57.js +0 -22
  159. package/dist/bundle/prompt-AFWVGRDG.js +0 -17
  160. package/dist/bundle/server-FTLPSLRU.js +0 -69
  161. package/dist/bundle/store-maintenance-command-MWVERNK7.js +0 -58
  162. package/dist/bundle/tokens-OVG4CJO4.js +0 -102
  163. /package/dist/bundle/{chunk-HPXYN7F3.js → chunk-LK2E2ELG.js} +0 -0
@@ -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-U2RSVKR5.js";
5
+ } from "./chunk-5C7K6XIT.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-ALTG7BZQ.js";
9
+ } from "./chunk-CBM2XAEZ.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/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");
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-7VFD3UJQ.js";
8
+ } from "./chunk-GJ4ZCIOP.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/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.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/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.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/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");
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CAPABILITY_STATEMENTS,
5
5
  storeCapable
6
- } from "./chunk-KCBHOYNZ.js";
6
+ } from "./chunk-QTM7USFA.js";
7
7
  import {
8
8
  importFrom
9
9
  } from "./chunk-Y5E2WNWB.js";
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
15
15
  import { spawn, spawnSync } from "node:child_process";
16
16
  import { readFileSync } from "node:fs";
17
17
  import { dirname } from "node:path";
@@ -0,0 +1,93 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ __name
5
+ } from "./chunk-ZVVMGPBJ.js";
6
+
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/runs/secrets.js
8
+ var SECRET_WORDS = /* @__PURE__ */ new Set([
9
+ "authorization",
10
+ "cookie",
11
+ "credential",
12
+ "credentials",
13
+ "passphrase",
14
+ "password",
15
+ "passwd",
16
+ "pwd",
17
+ "pass",
18
+ "passcode",
19
+ "pin",
20
+ "otp",
21
+ "2fa",
22
+ "secret",
23
+ "token",
24
+ "contrase\xF1a",
25
+ "contrasena",
26
+ "clave",
27
+ "\u043F\u0430\u0440\u043E\u043B\u044C",
28
+ "\u043F\u0438\u043D",
29
+ "\u043A\u043E\u0434",
30
+ ...["api", "auth", "service", "account", "db", "database", "priv", "private", "client"].map((word) => `${word}key`),
31
+ ...["db", "database", "key"].map((word) => `${word}pass`)
32
+ ]);
33
+ var secretNamed = /* @__PURE__ */ __name((name) => {
34
+ const words = name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[\s_.-]+/).map((word) => word.toLowerCase());
35
+ return words.some((word, at) => SECRET_WORDS.has(word) || SECRET_WORDS.has(word + (words[at + 1] ?? "")));
36
+ }, "secretNamed");
37
+ var START = "(?<![A-Za-z0-9_-])";
38
+ var END = "(?![A-Za-z0-9_-])";
39
+ var KNOWN_TOKENS = new RegExp(`${[
40
+ "gh[pousr]_[A-Za-z0-9]{36,}",
41
+ "github_pat_[A-Za-z0-9_]{22,}",
42
+ "sk-[A-Za-z0-9_-]{20,}",
43
+ "xox[abprs]-[A-Za-z0-9-]{10,}",
44
+ "(?:AKIA|ASIA)[A-Z0-9]{16}",
45
+ "AIza[A-Za-z0-9_-]{35}",
46
+ "(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{10,}",
47
+ "npm_[A-Za-z0-9]{36}",
48
+ "eyJ[A-Za-z0-9_-]{5,}\\.eyJ[A-Za-z0-9_-]{5,}\\.[A-Za-z0-9_-]*"
49
+ ].map((pattern) => `${START}${pattern}${END}`).join("|")}|(?<!\\d)\\d{8,10}:[A-Za-z0-9_-]{35}${END}`, "g");
50
+ var PRIVATE_KEY = /-----BEGIN[A-Z ]* PRIVATE KEY-----[\s\S]*?(?:-----END[A-Z ]* PRIVATE KEY-----|$)/g;
51
+ var SCHEME = /(?<![A-Za-z])(Bearer|Basic)(\s+)(?![A-Z]?[a-z]+(?![A-Za-z0-9]))[A-Za-z0-9._~+/=-]{8,}/g;
52
+ var NAMED_PAIR = /(?<![\p{L}\p{N}])([\p{L}\p{N}_.-]*(?:token|pass|pwd|pin|otp|2fa|secret|credential|cookie|authorization|key|contrase|clave|пароль|пин|код)[\p{L}\p{N}_.-]*)(["']?\s*(?:=>|[:=])\s*["']?|\s+(?![\p{L}]+(?![\p{L}\p{N}])))((?:Bearer\s+|Basic\s+)?)([^\s"'&,;]+)/giu;
53
+ var holdsCredential = /* @__PURE__ */ __name((text) => text.search(PRIVATE_KEY) >= 0 || text.search(KNOWN_TOKENS) >= 0 || text.search(SCHEME) >= 0, "holdsCredential");
54
+ var looksRandom = /* @__PURE__ */ __name((run) => {
55
+ if (run.length < 20)
56
+ return false;
57
+ const classes = [/[a-z]/, /[A-Z]/, /\d/, /[^A-Za-z0-9]/].filter((kind) => kind.test(run)).length;
58
+ if (classes < 3)
59
+ return false;
60
+ let switches = 0;
61
+ for (let at = 1; at < run.length; at++) {
62
+ const [before, after] = [run[at - 1], run[at]];
63
+ if (/[a-z]/.test(before) && /[A-Z]/.test(after) || /[A-Z]/.test(before) && /[a-z]/.test(after))
64
+ switches += 1;
65
+ }
66
+ if (switches / run.length < 0.15)
67
+ return false;
68
+ const pieces = run.match(/[A-Z]?[a-z]+|[A-Z]+(?![a-z])|\d+/g) ?? [];
69
+ if (pieces.join("").length / Math.max(pieces.length, 1) >= 2.75)
70
+ return false;
71
+ return entropy(run) >= 3.5;
72
+ }, "looksRandom");
73
+ var entropy = /* @__PURE__ */ __name((text) => {
74
+ const counts = /* @__PURE__ */ new Map();
75
+ for (const char of text)
76
+ counts.set(char, (counts.get(char) ?? 0) + 1);
77
+ let bits = 0;
78
+ for (const count of counts.values())
79
+ bits -= count / text.length * Math.log2(count / text.length);
80
+ return bits;
81
+ }, "entropy");
82
+ var withoutSecrets = /* @__PURE__ */ __name((text, mark = "[redacted]") => text.replace(PRIVATE_KEY, mark).replace(KNOWN_TOKENS, mark).replace(SCHEME, `$1$2${mark}`).replace(NAMED_PAIR, (whole, name, separator, scheme) => secretNamed(name) ? `${name}${separator}${scheme}${mark}` : whole).replace(/[!-~]{20,}/g, (token) => (
83
+ // A URL or a path is somebody's address, not a key; a credential in one is caught by the rules above.
84
+ token.includes("://") || /^(?:\/|~\/|\.\.?\/)/.test(token) ? token : token.replace(RUN, (run) => looksRandom(run) ? mark : run.replace(HEX, (hex) => entropy(hex) >= 3 ? mark : hex))
85
+ )), "withoutSecrets");
86
+ var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
87
+ var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
88
+
89
+ export {
90
+ secretNamed,
91
+ holdsCredential,
92
+ withoutSecrets
93
+ };
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
7
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
8
8
  var CONTROL = (
9
9
  // biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
10
10
  /[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  errorCodes
5
- } from "./chunk-ITD7WI23.js";
5
+ } from "./chunk-EBLA7GXY.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/errors/failures.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/errors/failures.js
11
11
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
12
12
  var isCommanderFailure = /* @__PURE__ */ __name((value) => {
13
13
  const { code, exitCode } = value ?? {};
@@ -3,24 +3,24 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  envName,
5
5
  readOnlyLockOf
6
- } from "./chunk-Z5GDNCTJ.js";
6
+ } from "./chunk-IIP43FQJ.js";
7
7
  import {
8
8
  ensureSqlite
9
- } from "./chunk-BAEIAQWH.js";
9
+ } from "./chunk-H2BKXPBL.js";
10
10
  import {
11
11
  catchCrashes
12
- } from "./chunk-3RG27IWA.js";
12
+ } from "./chunk-V36RIXFA.js";
13
13
  import {
14
14
  CliError
15
- } from "./chunk-ITD7WI23.js";
15
+ } from "./chunk-EBLA7GXY.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/entry.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/entry.js
21
21
  import { spawn } from "node:child_process";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
24
24
  import { appendFileSync } from "node:fs";
25
25
  var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
26
26
  const words = [];
@@ -44,7 +44,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
44
44
  `);
45
45
  }, "logVersion");
46
46
 
47
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/entry.js
47
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/entry.js
48
48
  var processIo = /* @__PURE__ */ __name(() => ({
49
49
  argv: process.argv,
50
50
  env: process.env,
@@ -98,8 +98,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
98
98
  if (command.optsWithGlobals().dryRun === true)
99
99
  return;
100
100
  const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
101
- import("./first-run-DI2JIG44.js"),
102
- import("./command-contract-ZCXFT764.js")
101
+ import("./first-run-F2SI24PK.js"),
102
+ import("./command-contract-LQDNHZJU.js")
103
103
  ]);
104
104
  await setupAtStart({
105
105
  command: entry.app.command,
@@ -114,7 +114,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
114
114
  ask: /* @__PURE__ */ __name(async (question, command) => {
115
115
  if (headless(command) || io.stdin.isTTY !== true)
116
116
  return false;
117
- const { readSecret } = await import("./prompt-AFWVGRDG.js");
117
+ const { readSecret } = await import("./prompt-MFIOJMAF.js");
118
118
  const answer = await readSecret(`${question} [y/N] `, {
119
119
  input: io.stdin,
120
120
  output: io.stderr,
@@ -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-ITD7WI23.js";
5
+ } from "./chunk-EBLA7GXY.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/attachments/limits.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/attachments/limits.js
11
11
  var MAX_FILE_BYTES = 50 * 1024 * 1024;
12
12
  var MAX_TEXT_CHARS = 2e6;
13
13
  var ATTACHMENT_LIMIT_ENV = [
@@ -2,25 +2,25 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-7VUHY5LP.js";
5
+ } from "./chunk-3VSUT6BD.js";
6
6
  import {
7
7
  resolvePaths
8
- } from "./chunk-ALTG7BZQ.js";
8
+ } from "./chunk-CBM2XAEZ.js";
9
9
  import {
10
10
  singleLine
11
- } from "./chunk-ASPIEEXN.js";
11
+ } from "./chunk-HIP43OGZ.js";
12
12
  import {
13
13
  CliError
14
- } from "./chunk-ITD7WI23.js";
14
+ } from "./chunk-EBLA7GXY.js";
15
15
  import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/store/shared-config.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/store/shared-config.js
20
20
  import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
21
21
  import { dirname, join, resolve } from "node:path";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
24
24
  var DEFAULT_TASK_CATEGORIES = [
25
25
  {
26
26
  name: "taxes",
@@ -775,7 +775,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
775
775
  }
776
776
  }, "storedTaskCategories");
777
777
 
778
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/store/shared-config.js
778
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/store/shared-config.js
779
779
  var SECTION = "task_categories";
780
780
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
781
781
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
@@ -13,7 +13,7 @@ import {
13
13
  registerPrompts,
14
14
  stdinFieldOf,
15
15
  syncsFirst
16
- } from "./chunk-SPVPKHBQ.js";
16
+ } from "./chunk-A6SLYOP2.js";
17
17
  import {
18
18
  BinaryResource,
19
19
  Picture,
@@ -34,20 +34,20 @@ import {
34
34
  tool,
35
35
  toolKey,
36
36
  toolsFromCommands
37
- } from "./chunk-4GZLX2ME.js";
37
+ } from "./chunk-3KJTJDDT.js";
38
38
  import {
39
39
  agentJson,
40
40
  skillResource
41
- } from "./chunk-WICYDOVL.js";
41
+ } from "./chunk-KFZUODXB.js";
42
42
  import {
43
43
  answeredWire
44
- } from "./chunk-EFX6FIDM.js";
44
+ } from "./chunk-OZH4ALTI.js";
45
45
  import {
46
46
  StdioServerTransport,
47
47
  callerOf,
48
48
  callingAgent,
49
49
  serveStdio
50
- } from "./chunk-PYPLD7JO.js";
50
+ } from "./chunk-XCOCPXCM.js";
51
51
  import {
52
52
  McpServer,
53
53
  ResourceTemplate
@@ -55,14 +55,14 @@ import {
55
55
  import {
56
56
  connectedFor,
57
57
  guardFor
58
- } from "./chunk-ED5JNYN5.js";
58
+ } from "./chunk-ZSMCJKGP.js";
59
59
  import {
60
60
  lackedNeed,
61
61
  wholeList
62
- } from "./chunk-IXXQZCNK.js";
62
+ } from "./chunk-TFH5X46A.js";
63
63
  import {
64
64
  findCommand
65
- } from "./chunk-OUQVZTF5.js";
65
+ } from "./chunk-PAEVBAM3.js";
66
66
  import {
67
67
  DEFAULT_OUTPUT_BYTES,
68
68
  changesAuthorityAt,
@@ -75,52 +75,52 @@ import {
75
75
  rootOf2 as rootOf,
76
76
  sealed,
77
77
  snakeKeys
78
- } from "./chunk-4UU4ONKY.js";
78
+ } from "./chunk-3KNZADHJ.js";
79
79
  import {
80
80
  withCaller
81
- } from "./chunk-P5MCZ635.js";
81
+ } from "./chunk-EHEZSV6I.js";
82
82
  import {
83
83
  readOnlyLockOf
84
- } from "./chunk-Z5GDNCTJ.js";
84
+ } from "./chunk-IIP43FQJ.js";
85
85
  import {
86
86
  mcpHttpMarker
87
- } from "./chunk-7AL57FCK.js";
87
+ } from "./chunk-GT5KTGCN.js";
88
88
  import {
89
89
  instructions
90
- } from "./chunk-EFEI724Z.js";
90
+ } from "./chunk-36B7AIGP.js";
91
91
  import {
92
92
  capability,
93
93
  dateWindow,
94
94
  imageSize,
95
95
  servicesFor,
96
96
  storedDeps
97
- } from "./chunk-4EEOJ54H.js";
97
+ } from "./chunk-7QTVIZII.js";
98
98
  import {
99
99
  levelFor,
100
100
  readKeysForCommand,
101
101
  typedCommand
102
- } from "./chunk-TIXIB32T.js";
102
+ } from "./chunk-AD62XJKO.js";
103
103
  import {
104
104
  isCliFailure
105
- } from "./chunk-UMJLXAJI.js";
105
+ } from "./chunk-HMZAMHKN.js";
106
106
  import {
107
107
  warmEmbedders
108
- } from "./chunk-TMW526H3.js";
108
+ } from "./chunk-P3ZTW2ZM.js";
109
109
  import {
110
110
  openStore
111
- } from "./chunk-TNX77VPM.js";
111
+ } from "./chunk-GI5JBGXH.js";
112
112
  import {
113
113
  pdfPreviewLimits
114
- } from "./chunk-X5XWUQNU.js";
114
+ } from "./chunk-IADOBOKB.js";
115
115
  import {
116
116
  timezoneOf
117
- } from "./chunk-SWFA36F3.js";
117
+ } from "./chunk-L5SE2XZP.js";
118
118
  import {
119
119
  mcpErrorResult
120
- } from "./chunk-3RG27IWA.js";
120
+ } from "./chunk-V36RIXFA.js";
121
121
  import {
122
122
  visibleControls
123
- } from "./chunk-ASPIEEXN.js";
123
+ } from "./chunk-HIP43OGZ.js";
124
124
  import {
125
125
  description,
126
126
  integer,
@@ -135,18 +135,18 @@ import {
135
135
  regex,
136
136
  strictObject,
137
137
  string
138
- } from "./chunk-O3K46QRL.js";
138
+ } from "./chunk-3U22QTU6.js";
139
139
  import {
140
140
  CliError
141
- } from "./chunk-ITD7WI23.js";
141
+ } from "./chunk-EBLA7GXY.js";
142
142
  import {
143
143
  __name
144
144
  } from "./chunk-ZVVMGPBJ.js";
145
145
 
146
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/server.js
146
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/server.js
147
147
  import { randomUUID } from "node:crypto";
148
148
 
149
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
149
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
150
150
  var agentLog = /* @__PURE__ */ __name((open) => {
151
151
  let held;
152
152
  return {
@@ -165,7 +165,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
165
165
  };
166
166
  }, "agentLog");
167
167
 
168
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/resources.js
168
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/resources.js
169
169
  var LISTED = 100;
170
170
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
171
171
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -203,7 +203,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
203
203
  });
204
204
  }, "registerResources");
205
205
 
206
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/session.js
206
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/session.js
207
207
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
208
208
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
209
209
  var MessengerSession = class {
@@ -278,7 +278,7 @@ var MessengerSession = class {
278
278
  }
279
279
  };
280
280
 
281
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
281
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
282
282
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
283
283
  const _command = messenger.app.command;
284
284
  return {
@@ -332,7 +332,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
332
332
  };
333
333
  }, "attachmentsTools");
334
334
 
335
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
335
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
336
336
  var PHOTO_LIMIT = 512 * 1024;
337
337
  var IMAGE_TYPES = [
338
338
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -386,7 +386,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
386
386
  return new Uint8Array(Buffer.concat(chunks));
387
387
  }, "readUpTo");
388
388
 
389
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
389
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
390
390
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
391
391
  stats_charts: tool({
392
392
  title: "A chart from a chat's statistics",
@@ -423,14 +423,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
423
423
  })
424
424
  }), "statsTools");
425
425
 
426
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/tools.js
426
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/tools.js
427
427
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
428
428
  ...messagesPhotoTools(messenger),
429
429
  ...attachmentsTools(messenger),
430
430
  ...statsTools(messenger)
431
431
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
432
432
 
433
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/mcp/server.js
433
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/server.js
434
434
  var PER_RUN = /* @__PURE__ */ new Set([
435
435
  "streams",
436
436
  "stdin",
@@ -754,12 +754,13 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
754
754
  }, "serveOverStdio");
755
755
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
756
756
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
757
- const { serveOverHttp } = await import("./serve-5CUOYLSG.js");
757
+ const { serveOverHttp } = await import("./serve-Q2BQHNZB.js");
758
758
  const appName = messenger.app.command;
759
759
  const appEnvPrefix = messenger.app.envPrefix;
760
760
  const listening = await serveOverHttp(build, {
761
761
  ...http,
762
762
  appName,
763
+ reaches: "your messages",
763
764
  // In the background its log is a file; the code goes only to the lock that `mcp server status` reads.
764
765
  onCode: /* @__PURE__ */ __name((code, expires) => context.renderer.note(context.env[mcpHttpMarker(appEnvPrefix)] === void 0 ? `login code for a new browser app: ${code} (until ${expires.toTimeString().slice(0, 5)}; a new one after each login)` : `a new login code for a browser app: \`${appName} ${context.settings.profile} mcp server status\``), "onCode"),
765
766
  onError: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onError")
@@ -6,13 +6,13 @@ import {
6
6
  describeProgram,
7
7
  flatten,
8
8
  profileFree
9
- } from "./chunk-4UU4ONKY.js";
9
+ } from "./chunk-3KNZADHJ.js";
10
10
  import {
11
11
  VERSION
12
- } from "./chunk-OG5ERX4S.js";
12
+ } from "./chunk-MEAPA4EZ.js";
13
13
  import {
14
14
  CliError
15
- } from "./chunk-ITD7WI23.js";
15
+ } from "./chunk-EBLA7GXY.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
@@ -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-ITD7WI23.js";
5
+ } from "./chunk-EBLA7GXY.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/ports/app.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/ports/app.js
11
11
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
12
12
  var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
13
13
  const name = envName(app, "READ_ONLY");
@@ -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-ITD7WI23.js";
5
+ } from "./chunk-EBLA7GXY.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/models/types.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/models/types.js
11
11
  var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
12
12
  var validateImages = /* @__PURE__ */ __name((images) => {
13
13
  if (images === void 0)
@@ -4,18 +4,18 @@ import {
4
4
  readSharedSection,
5
5
  sharedConfigPath,
6
6
  writeSharedSection
7
- } from "./chunk-4ICWGMHN.js";
7
+ } from "./chunk-IBZ3IBO4.js";
8
8
  import {
9
9
  storePath
10
- } from "./chunk-7VUHY5LP.js";
10
+ } from "./chunk-3VSUT6BD.js";
11
11
  import {
12
12
  CliError
13
- } from "./chunk-ITD7WI23.js";
13
+ } from "./chunk-EBLA7GXY.js";
14
14
  import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
19
19
  var PERMISSION_ANSWERS = ["readonly", "allow"];
20
20
  var QUESTIONS = ["languages", "tools", "permissions"];
21
21
  var SECTION = "setup";