@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,22 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  isCliFailure
5
- } from "./chunk-UMJLXAJI.js";
5
+ } from "./chunk-HMZAMHKN.js";
6
+ import {
7
+ secretNamed,
8
+ withoutSecrets
9
+ } from "./chunk-HIOJRPCT.js";
6
10
  import {
7
11
  isContentKey
8
- } from "./chunk-RRHC5SBB.js";
12
+ } from "./chunk-UQPKAY6I.js";
9
13
  import {
10
14
  __name
11
15
  } from "./chunk-ZVVMGPBJ.js";
12
16
 
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/runs/run-context.js
17
+ // 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/run-context.js
14
18
  import { AsyncLocalStorage } from "node:async_hooks";
15
19
  import { createHash } from "node:crypto";
16
20
 
17
- // 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/runs/error-detail.js
21
+ // 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/error-detail.js
18
22
  import { homedir } from "node:os";
19
23
 
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/runs/events.js
24
+ // 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/events.js
21
25
  var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
22
26
  var renderEvent = /* @__PURE__ */ __name((event) => {
23
27
  if (event.event === "warning") {
@@ -65,88 +69,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
65
69
  var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
66
70
  var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
67
71
 
68
- // 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/runs/secrets.js
69
- var SECRET_WORDS = /* @__PURE__ */ new Set([
70
- "authorization",
71
- "cookie",
72
- "credential",
73
- "credentials",
74
- "passphrase",
75
- "password",
76
- "passwd",
77
- "pwd",
78
- "pass",
79
- "passcode",
80
- "pin",
81
- "otp",
82
- "2fa",
83
- "secret",
84
- "token",
85
- "contrase\xF1a",
86
- "contrasena",
87
- "clave",
88
- "\u043F\u0430\u0440\u043E\u043B\u044C",
89
- "\u043F\u0438\u043D",
90
- "\u043A\u043E\u0434",
91
- ...["api", "auth", "service", "account", "db", "database", "priv", "private", "client"].map((word) => `${word}key`),
92
- ...["db", "database", "key"].map((word) => `${word}pass`)
93
- ]);
94
- var secretNamed = /* @__PURE__ */ __name((name) => {
95
- const words = name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[\s_.-]+/).map((word) => word.toLowerCase());
96
- return words.some((word, at) => SECRET_WORDS.has(word) || SECRET_WORDS.has(word + (words[at + 1] ?? "")));
97
- }, "secretNamed");
98
- var START = "(?<![A-Za-z0-9_-])";
99
- var END = "(?![A-Za-z0-9_-])";
100
- var KNOWN_TOKENS = new RegExp(`${[
101
- "gh[pousr]_[A-Za-z0-9]{36,}",
102
- "github_pat_[A-Za-z0-9_]{22,}",
103
- "sk-[A-Za-z0-9_-]{20,}",
104
- "xox[abprs]-[A-Za-z0-9-]{10,}",
105
- "(?:AKIA|ASIA)[A-Z0-9]{16}",
106
- "AIza[A-Za-z0-9_-]{35}",
107
- "(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{10,}",
108
- "npm_[A-Za-z0-9]{36}",
109
- "eyJ[A-Za-z0-9_-]{5,}\\.eyJ[A-Za-z0-9_-]{5,}\\.[A-Za-z0-9_-]*"
110
- ].map((pattern) => `${START}${pattern}${END}`).join("|")}|(?<!\\d)\\d{8,10}:[A-Za-z0-9_-]{35}${END}`, "g");
111
- var PRIVATE_KEY = /-----BEGIN[A-Z ]* PRIVATE KEY-----[\s\S]*?(?:-----END[A-Z ]* PRIVATE KEY-----|$)/g;
112
- var SCHEME = /(?<![A-Za-z])(Bearer|Basic)(\s+)(?![A-Z]?[a-z]+(?![A-Za-z0-9]))[A-Za-z0-9._~+/=-]{8,}/g;
113
- 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;
114
- var looksRandom = /* @__PURE__ */ __name((run) => {
115
- if (run.length < 20)
116
- return false;
117
- const classes = [/[a-z]/, /[A-Z]/, /\d/, /[^A-Za-z0-9]/].filter((kind) => kind.test(run)).length;
118
- if (classes < 3)
119
- return false;
120
- let switches = 0;
121
- for (let at = 1; at < run.length; at++) {
122
- const [before, after] = [run[at - 1], run[at]];
123
- if (/[a-z]/.test(before) && /[A-Z]/.test(after) || /[A-Z]/.test(before) && /[a-z]/.test(after))
124
- switches += 1;
125
- }
126
- if (switches / run.length < 0.15)
127
- return false;
128
- const pieces = run.match(/[A-Z]?[a-z]+|[A-Z]+(?![a-z])|\d+/g) ?? [];
129
- if (pieces.join("").length / Math.max(pieces.length, 1) >= 2.75)
130
- return false;
131
- return entropy(run) >= 3.5;
132
- }, "looksRandom");
133
- var entropy = /* @__PURE__ */ __name((text) => {
134
- const counts = /* @__PURE__ */ new Map();
135
- for (const char of text)
136
- counts.set(char, (counts.get(char) ?? 0) + 1);
137
- let bits = 0;
138
- for (const count of counts.values())
139
- bits -= count / text.length * Math.log2(count / text.length);
140
- return bits;
141
- }, "entropy");
142
- 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) => (
143
- // A URL or a path is somebody's address, not a key; a credential in one is caught by the rules above.
144
- token.includes("://") || /^(?:\/|~\/|\.\.?\/)/.test(token) ? token : token.replace(RUN, (run) => looksRandom(run) ? mark : run.replace(HEX, (hex) => entropy(hex) >= 3 ? mark : hex))
145
- )), "withoutSecrets");
146
- var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
147
- var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
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/runs/error-detail.js
72
+ // 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/error-detail.js
150
73
  var MESSAGE_AT_MOST = 500;
151
74
  var CAUSES_AT_MOST = 5;
152
75
  var FRAMES_AT_MOST = 15;
@@ -255,7 +178,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
255
178
  return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
256
179
  }, "redactText");
257
180
 
258
- // 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/runs/run-context.js
181
+ // 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/run-context.js
259
182
  var REDACTED = "[redacted]";
260
183
  var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
261
184
  if (!record)
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  unit
5
- } from "./chunk-TMW526H3.js";
5
+ } from "./chunk-P3ZTW2ZM.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-ITD7WI23.js";
8
+ } from "./chunk-EBLA7GXY.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/embeddings/remote.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/embeddings/remote.js
14
14
  import { setTimeout } from "node:timers/promises";
15
15
  var OPENAI_URL = "https://api.openai.com/v1";
16
16
  var OPENAI_MODELS = {
@@ -7,7 +7,7 @@ import {
7
7
  commandPathOf,
8
8
  findCommand,
9
9
  outputOf
10
- } from "./chunk-OUQVZTF5.js";
10
+ } from "./chunk-PAEVBAM3.js";
11
11
  import {
12
12
  Command,
13
13
  Help,
@@ -18,18 +18,18 @@ import {
18
18
  environmentOf,
19
19
  metaOf,
20
20
  takesProfile
21
- } from "./chunk-4UU4ONKY.js";
21
+ } from "./chunk-3KNZADHJ.js";
22
22
  import {
23
23
  writes
24
- } from "./chunk-O3K46QRL.js";
24
+ } from "./chunk-3U22QTU6.js";
25
25
  import {
26
26
  CliError
27
- } from "./chunk-ITD7WI23.js";
27
+ } from "./chunk-EBLA7GXY.js";
28
28
  import {
29
29
  __name
30
30
  } from "./chunk-ZVVMGPBJ.js";
31
31
 
32
- // 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/help/sections.js
32
+ // 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/help/sections.js
33
33
  var SECTIONS = {
34
34
  read: "Read",
35
35
  write: "Write",
@@ -94,7 +94,7 @@ var CORE_SECTIONS = {
94
94
  upgrade: "setup"
95
95
  };
96
96
 
97
- // 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/help/commands-text.js
97
+ // 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/help/commands-text.js
98
98
  var DESCRIPTION = 90;
99
99
  var COLUMN = 52;
100
100
  var short = /* @__PURE__ */ __name((text) => {
@@ -133,7 +133,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
133
133
  `;
134
134
  }, "commandsText");
135
135
 
136
- // 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/help/command-help.js
136
+ // 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/help/command-help.js
137
137
  var ARGUMENT_KINDS = {
138
138
  chat: "chat",
139
139
  chats: "chat",
@@ -325,7 +325,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
325
325
  command.addHelpText("after", () => commandHelpText(command));
326
326
  }, "installCommandHelp");
327
327
 
328
- // 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/help/first-screen.js
328
+ // 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/help/first-screen.js
329
329
  var WIRECAT_TOOLS = [
330
330
  {
331
331
  command: "tg",
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  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/cli/input-policy.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/cli/input-policy.js
11
11
  var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
12
12
  var MAX_SECRET_INPUT = 64 * 1024;
13
13
  var policies = /* @__PURE__ */ new WeakMap();