@wirecat/drive-cli 0.60.0 → 0.61.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 (162) hide show
  1. package/README.md +4 -5
  2. package/dist/bin/drive.js +2 -2
  3. package/dist/bundle/{all-profiles-537I27Z4.js → all-profiles-H4L3Z5UM.js} +14 -14
  4. package/dist/bundle/{anthropic-X4NWVHDF.js → anthropic-PPGFISVP.js} +9 -9
  5. package/dist/bundle/{app-server-KSHJKKS7.js → app-server-YXVK2FUZ.js} +52 -52
  6. package/dist/bundle/{bun-WTBGGCUC.js → bun-DKZAL6ML.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-T7Y3JFFD.js → bun-sqlite-MTZY36QK.js} +8 -8
  8. package/dist/bundle/{chunk-VRW6ZDTH.js → chunk-2RJA4BQB.js} +19 -19
  9. package/dist/bundle/{chunk-VVCZS42A.js → chunk-3252WXOL.js} +1 -1
  10. package/dist/bundle/{chunk-3TQHIHZI.js → chunk-36CWGEVX.js} +2 -2
  11. package/dist/bundle/{chunk-AXWXQNTC.js → chunk-3I2D5TK2.js} +10 -10
  12. package/dist/bundle/{chunk-PDYHEWKG.js → chunk-3SJQNS72.js} +5 -5
  13. package/dist/bundle/{chunk-PPL5ASW2.js → chunk-3UPIJ7DW.js} +280 -280
  14. package/dist/bundle/{chunk-PETFPXLU.js → chunk-3WZH3WV3.js} +3 -3
  15. package/dist/bundle/{chunk-5XHLQZAG.js → chunk-5W56YMQS.js} +25 -25
  16. package/dist/bundle/{chunk-IXN7Y6JA.js → chunk-5W7D5H2R.js} +1 -1
  17. package/dist/bundle/{chunk-FZOCQQ66.js → chunk-67HS46KM.js} +12 -12
  18. package/dist/bundle/{chunk-HFGR33KD.js → chunk-6DN4VPA7.js} +25 -25
  19. package/dist/bundle/{chunk-HIP43OGZ.js → chunk-6IBM4Z3V.js} +1 -1
  20. package/dist/bundle/{chunk-V7QMHMR3.js → chunk-6SUGANRJ.js} +6 -6
  21. package/dist/bundle/{chunk-LQSRVQ3V.js → chunk-6Y2FWJZ4.js} +3 -3
  22. package/dist/bundle/{chunk-GVRS5AIH.js → chunk-73WSULMI.js} +2 -2
  23. package/dist/bundle/{chunk-ZPQS7XJA.js → chunk-AM4RIWOZ.js} +4 -4
  24. package/dist/bundle/{chunk-HCJG7ENG.js → chunk-AWN22PJK.js} +3 -3
  25. package/dist/bundle/{chunk-YDN2RH5S.js → chunk-BCWUDTYQ.js} +2 -2
  26. package/dist/bundle/{chunk-GD6TQ6U4.js → chunk-BF6TQMNB.js} +8 -8
  27. package/dist/bundle/chunk-BQMIDYBA.js +415 -0
  28. package/dist/bundle/{chunk-JQLIM6BH.js → chunk-BXR7BKM3.js} +1 -1
  29. package/dist/bundle/{chunk-MVNPE5FZ.js → chunk-CACYL36O.js} +8 -8
  30. package/dist/bundle/{chunk-246P2DCT.js → chunk-DCBFNBEB.js} +113 -51
  31. package/dist/bundle/{chunk-TXMTMEHW.js → chunk-DEPMQHXQ.js} +4 -4
  32. package/dist/bundle/{chunk-O37ESNAP.js → chunk-DXPOVLQC.js} +46 -28
  33. package/dist/bundle/{chunk-CKGHRWVR.js → chunk-E5EXJ2XS.js} +4 -4
  34. package/dist/bundle/{chunk-4CBZEAQ7.js → chunk-E6J5YH2N.js} +34 -34
  35. package/dist/bundle/{chunk-4XZXH2NM.js → chunk-ECEYAQGN.js} +2 -2
  36. package/dist/bundle/{chunk-XDIEQ2CE.js → chunk-EPCJUL6M.js} +3 -3
  37. package/dist/bundle/{chunk-EHAI773E.js → chunk-FE5JJXKA.js} +2 -2
  38. package/dist/bundle/{chunk-DQDKLZAK.js → chunk-HFM653T3.js} +49 -49
  39. package/dist/bundle/{chunk-UVYVIHEA.js → chunk-HGOYQUT7.js} +1 -1
  40. package/dist/bundle/{chunk-KEXTTZJM.js → chunk-I26VL4W7.js} +2 -2
  41. package/dist/bundle/{chunk-LJ77Y3TK.js → chunk-J4HQVHMN.js} +6 -5
  42. package/dist/bundle/{chunk-YGG7UA3C.js → chunk-J5UDQD5S.js} +5 -5
  43. package/dist/bundle/{chunk-73TTP6ET.js → chunk-JVBLXSAA.js} +141 -141
  44. package/dist/bundle/{chunk-N7S2UPF3.js → chunk-K7LS3NGM.js} +55 -55
  45. package/dist/bundle/{chunk-2AXA5SKP.js → chunk-KV4267S4.js} +1 -1
  46. package/dist/bundle/{chunk-IRZ7OF3F.js → chunk-LARQTWIL.js} +1 -1
  47. package/dist/bundle/{chunk-QIJWSKZL.js → chunk-N2RLJTIW.js} +4 -4
  48. package/dist/bundle/{chunk-HQVIK6PM.js → chunk-NIX2MWHZ.js} +242 -362
  49. package/dist/bundle/{chunk-4VHBDVY2.js → chunk-NZ2EIZLX.js} +14 -10
  50. package/dist/bundle/{chunk-SZXI4OXX.js → chunk-O5CUFS7T.js} +2 -2
  51. package/dist/bundle/{chunk-FO4TCH6P.js → chunk-OFFA54TW.js} +2 -2
  52. package/dist/bundle/{chunk-W62CON5K.js → chunk-OGNOQDWB.js} +4 -4
  53. package/dist/bundle/{chunk-OYNUBWD2.js → chunk-OLPJRD4S.js} +1 -1
  54. package/dist/bundle/{chunk-67QXMO2G.js → chunk-PJTX2MOI.js} +26 -26
  55. package/dist/bundle/{chunk-MXP35VPO.js → chunk-PY7LKNOS.js} +2 -2
  56. package/dist/bundle/{chunk-FTZNUZO7.js → chunk-Q4XVBKX4.js} +3 -3
  57. package/dist/bundle/{chunk-5AMRCBMP.js → chunk-QR5VQXQ5.js} +26 -26
  58. package/dist/bundle/{chunk-S36HRPNS.js → chunk-QSGT4ZH4.js} +1 -1
  59. package/dist/bundle/{chunk-57QVQGBE.js → chunk-RFRCOAWS.js} +22 -22
  60. package/dist/bundle/{chunk-DMHGWL5D.js → chunk-S4YK6TTG.js} +13 -13
  61. package/dist/bundle/{chunk-UVLSWLPZ.js → chunk-TKGAYKXW.js} +16 -16
  62. package/dist/bundle/{chunk-SBHSNOU4.js → chunk-UKOYQC5O.js} +19 -18
  63. package/dist/bundle/{chunk-XFXRGQXJ.js → chunk-UO2IUDVK.js} +2 -2
  64. package/dist/bundle/{chunk-UTFATA4K.js → chunk-VPDAH7PJ.js} +1 -1
  65. package/dist/bundle/{chunk-TKW4QWCY.js → chunk-VYXVPYA3.js} +12 -6
  66. package/dist/bundle/{chunk-YYHKVOVK.js → chunk-W767AUNR.js} +4 -4
  67. package/dist/bundle/{chunk-73MNUSP3.js → chunk-WIU733D2.js} +1 -1
  68. package/dist/bundle/{chunk-UNJE63JK.js → chunk-WUP2MJDN.js} +2 -2
  69. package/dist/bundle/{chunk-EBLA7GXY.js → chunk-WZ5XK74U.js} +2 -1
  70. package/dist/bundle/{chunk-77C5XRH3.js → chunk-X2CXW4HM.js} +7 -7
  71. package/dist/bundle/{chunk-D6WIWOQC.js → chunk-XGMDWIUP.js} +4 -4
  72. package/dist/bundle/{chunk-K6XVRA6U.js → chunk-XGNC5OJG.js} +1 -1
  73. package/dist/bundle/{chunk-ALWTUDZF.js → chunk-XLFJLZJL.js} +4 -4
  74. package/dist/bundle/{chunk-JGUJJNGZ.js → chunk-XYCCGGKN.js} +242 -242
  75. package/dist/bundle/{chunk-TVQDMP2F.js → chunk-XZBR2O63.js} +271 -271
  76. package/dist/bundle/{chunk-OMKUBCNN.js → chunk-YMBFZA3H.js} +8 -8
  77. package/dist/bundle/{chunk-ZYCLPJ7U.js → chunk-YPF6OS37.js} +1 -1
  78. package/dist/bundle/{chunk-6HTKB4WC.js → chunk-YWIU4HOT.js} +1 -1
  79. package/dist/bundle/{chunk-V2VMBM7O.js → chunk-ZHYRHERD.js} +2 -2
  80. package/dist/bundle/{chunk-22ATLSNK.js → chunk-ZMNYK3FC.js} +5 -5
  81. package/dist/bundle/command-contract-T3EO5AYD.js +39 -0
  82. package/dist/bundle/{decode-35N57AFW.js → decode-62A3HGPW.js} +8 -8
  83. package/dist/bundle/{dispatch-CWXZW3PL.js → dispatch-IE7PBEQC.js} +9 -9
  84. package/dist/bundle/drive.js +11 -11
  85. package/dist/bundle/{echarts-3P3QZWMU.js → echarts-BGBPRGR5.js} +2 -2
  86. package/dist/bundle/{embed-Q6Q5IOJQ.js → embed-J3IBVV2V.js} +9 -9
  87. package/dist/bundle/{embedder-D44JDTAA.js → embedder-QFPMDRT2.js} +12 -12
  88. package/dist/bundle/entry-YQSYER66.js +22 -0
  89. package/dist/bundle/{failure-GRMMSDCZ.js → failure-BKOGBMIC.js} +4 -4
  90. package/dist/bundle/first-run-ZIFPVZAI.js +30 -0
  91. package/dist/bundle/first-screen-L5U26EY7.js +37 -0
  92. package/dist/bundle/{google-6ZZDKFBN.js → google-RXM2XEPD.js} +13 -13
  93. package/dist/bundle/{google-api-E6MOJ4ZD.js → google-api-NC65BZO4.js} +83 -64
  94. package/dist/bundle/grants-SEWUYYH3.js +105 -0
  95. package/dist/bundle/{identity-TID7S5NE.js → identity-PI6F2GWA.js} +6 -6
  96. package/dist/bundle/{instructions-ANJN4HV3.js → instructions-6LPDSKAD.js} +1 -1
  97. package/dist/bundle/{login-BGMK2ABH.js → login-HTY7GT2S.js} +64 -64
  98. package/dist/bundle/{mcp-WBHKX5E3.js → mcp-PPVOM4SE.js} +2 -2
  99. package/dist/bundle/{node-VOB45ES2.js → node-IB246NCQ.js} +2 -2
  100. package/dist/bundle/{node-sqlite-TSX6XQY2.js → node-sqlite-G2Y5SFJM.js} +9 -9
  101. package/dist/bundle/oauth-MWBKBI4T.js +22 -0
  102. package/dist/bundle/{open-3USWHGNR.js → open-WD4GFSJD.js} +8 -8
  103. package/dist/bundle/{openai-YZ5VGPIP.js → openai-QVM4PMY7.js} +17 -17
  104. package/dist/bundle/{process-44JS2W7L.js → process-SWPJGPQC.js} +1 -1
  105. package/dist/bundle/{program-TZLAFKJV.js → program-WHYFAMXR.js} +117 -98
  106. package/dist/bundle/prompt-OVYCGZB7.js +17 -0
  107. package/dist/bundle/{reasons-ZK3U3CIN.js → reasons-Q34DQWB6.js} +5 -5
  108. package/dist/bundle/{recognize-OFW7HWTM.js → recognize-DM3YWHSE.js} +7 -7
  109. package/dist/bundle/{remote-YBDRZQZ5.js → remote-KXVWRK7J.js} +10 -10
  110. package/dist/bundle/{rerank-TQQNS5FJ.js → rerank-TINXM3MY.js} +10 -10
  111. package/dist/bundle/{serve-OPZXMVLH.js → serve-IY2WL656.js} +12 -12
  112. package/dist/bundle/server-EMWVVT2C.js +70 -0
  113. package/dist/bundle/{server-2D6DDIK5.js → server-VPY3OWPC.js} +44 -44
  114. package/dist/bundle/{services-34WKT3NN.js → services-PXNBOCOC.js} +32 -32
  115. package/dist/bundle/{sqlite-runtime-WPUMKLUV.js → sqlite-runtime-5ZK2CV7Y.js} +9 -9
  116. package/dist/bundle/{start-ZXUJZ4JV.js → start-LDVCN3DK.js} +7 -7
  117. package/dist/bundle/{state-AV2RB3AQ.js → state-3MKTT3VS.js} +9 -9
  118. package/dist/bundle/{store-3M7N2Q5T.js → store-4VQOT5IJ.js} +18 -18
  119. package/dist/bundle/{store-YKV4GAMS.js → store-7M4MSUJV.js} +20 -20
  120. package/dist/bundle/store-maintenance-command-NRATYBWD.js +60 -0
  121. package/dist/bundle/tokens-XUKLM3SL.js +103 -0
  122. package/dist/commands/config.js +1 -1
  123. package/dist/commands/config.js.map +1 -1
  124. package/dist/commands/session.d.ts.map +1 -1
  125. package/dist/commands/session.js +10 -2
  126. package/dist/commands/session.js.map +1 -1
  127. package/dist/config.d.ts +16 -5
  128. package/dist/config.d.ts.map +1 -1
  129. package/dist/config.js +11 -17
  130. package/dist/config.js.map +1 -1
  131. package/dist/download.d.ts +3 -2
  132. package/dist/download.d.ts.map +1 -1
  133. package/dist/download.js +21 -9
  134. package/dist/download.js.map +1 -1
  135. package/dist/google-api.d.ts +3 -1
  136. package/dist/google-api.d.ts.map +1 -1
  137. package/dist/google-api.js +27 -7
  138. package/dist/google-api.js.map +1 -1
  139. package/dist/login.js +1 -1
  140. package/dist/login.js.map +1 -1
  141. package/dist/program.d.ts.map +1 -1
  142. package/dist/program.js +6 -6
  143. package/dist/program.js.map +1 -1
  144. package/dist/version.d.ts +1 -1
  145. package/dist/version.js +1 -1
  146. package/package.json +3 -3
  147. package/dist/bundle/chunk-77YTRBL6.js +0 -249
  148. package/dist/bundle/command-contract-NUIWUVYB.js +0 -39
  149. package/dist/bundle/entry-ZHCNI7XO.js +0 -22
  150. package/dist/bundle/first-run-3DC2SDWM.js +0 -30
  151. package/dist/bundle/first-screen-YJF4YODC.js +0 -37
  152. package/dist/bundle/grants-GWXDH5GM.js +0 -105
  153. package/dist/bundle/oauth-CEOYXW6C.js +0 -22
  154. package/dist/bundle/prompt-SG7LAOXW.js +0 -17
  155. package/dist/bundle/server-R6G2O772.js +0 -70
  156. package/dist/bundle/store-maintenance-command-WDXNY4ZF.js +0 -60
  157. package/dist/bundle/tokens-F63RXXEF.js +0 -103
  158. package/dist/oauth-application.d.ts +0 -5
  159. package/dist/oauth-application.d.ts.map +0 -1
  160. package/dist/oauth-application.js +0 -9
  161. package/dist/oauth-application.js.map +0 -1
  162. /package/dist/bundle/{chunk-LK2E2ELG.js → chunk-LU3WKZBA.js} +0 -0
@@ -2,21 +2,25 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  errorObjectOf
5
- } from "./chunk-LJ77Y3TK.js";
5
+ } from "./chunk-J4HQVHMN.js";
6
6
  import {
7
7
  visibleControls
8
- } from "./chunk-HIP43OGZ.js";
8
+ } from "./chunk-6IBM4Z3V.js";
9
9
  import {
10
10
  LOG_ATTRIBUTE_KEYS,
11
11
  isContentKey
12
- } from "./chunk-FO4TCH6P.js";
12
+ } from "./chunk-OFFA54TW.js";
13
13
  import {
14
14
  getDotPath,
15
- safeParse
16
- } from "./chunk-TKW4QWCY.js";
15
+ object,
16
+ record,
17
+ safeParse,
18
+ string,
19
+ unknown
20
+ } from "./chunk-VYXVPYA3.js";
17
21
  import {
18
22
  CliError
19
- } from "./chunk-EBLA7GXY.js";
23
+ } from "./chunk-WZ5XK74U.js";
20
24
  import {
21
25
  __commonJS,
22
26
  __name,
@@ -70,7 +74,7 @@ var require_strip_ansi = __commonJS({
70
74
  "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports, module) {
71
75
  "use strict";
72
76
  var ansiRegex = require_ansi_regex();
73
- module.exports = (string) => typeof string === "string" ? string.replace(ansiRegex(), "") : string;
77
+ module.exports = (string2) => typeof string2 === "string" ? string2.replace(ansiRegex(), "") : string2;
74
78
  }
75
79
  });
76
80
 
@@ -124,18 +128,18 @@ var require_string_width = __commonJS({
124
128
  var stripAnsi = require_strip_ansi();
125
129
  var isFullwidthCodePoint = require_is_fullwidth_code_point();
126
130
  var emojiRegex = require_emoji_regex();
127
- var stringWidth = /* @__PURE__ */ __name((string) => {
128
- if (typeof string !== "string" || string.length === 0) {
131
+ var stringWidth = /* @__PURE__ */ __name((string2) => {
132
+ if (typeof string2 !== "string" || string2.length === 0) {
129
133
  return 0;
130
134
  }
131
- string = stripAnsi(string);
132
- if (string.length === 0) {
135
+ string2 = stripAnsi(string2);
136
+ if (string2.length === 0) {
133
137
  return 0;
134
138
  }
135
- string = string.replace(emojiRegex(), " ");
139
+ string2 = string2.replace(emojiRegex(), " ");
136
140
  let width = 0;
137
- for (let i = 0; i < string.length; i++) {
138
- const code = string.codePointAt(i);
141
+ for (let i = 0; i < string2.length; i++) {
142
+ const code = string2.codePointAt(i);
139
143
  if (code <= 31 || code >= 127 && code <= 159) {
140
144
  continue;
141
145
  }
@@ -1889,7 +1893,7 @@ var require_cli_table3 = __commonJS({
1889
1893
  }
1890
1894
  });
1891
1895
 
1892
- // 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/keyring.js
1896
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
1893
1897
  import { createRequire } from "node:module";
1894
1898
  var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
1895
1899
  var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
@@ -1909,7 +1913,7 @@ var systemKeyring = {
1909
1913
  delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
1910
1914
  };
1911
1915
 
1912
- // 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/paths.js
1916
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
1913
1917
  import { homedir, userInfo } from "node:os";
1914
1918
  import { join, posix, win32 } from "node:path";
1915
1919
  var PATH_KINDS = ["config", "state", "cache"];
@@ -1961,11 +1965,11 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
1961
1965
  var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
1962
1966
  var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
1963
1967
 
1964
- // 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/credentials.js
1968
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
1965
1969
  import { readFileSync as readFileSync2 } from "node:fs";
1966
1970
  import { join as join3, resolve } from "node:path";
1967
1971
 
1968
- // 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/config.js
1972
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
1969
1973
  import { randomBytes } from "node:crypto";
1970
1974
  import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
1971
1975
  import { dirname, join as join2 } from "node:path";
@@ -2009,7 +2013,7 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
2009
2013
  `, 384);
2010
2014
  }, "saveConfigFile");
2011
2015
 
2012
- // 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/credentials.js
2016
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
2013
2017
  var keyringService = /* @__PURE__ */ __name((service, _configDir, _isolated) => service, "keyringService");
2014
2018
  var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
2015
2019
  var warnedRuns = /* @__PURE__ */ new WeakSet();
@@ -2145,7 +2149,7 @@ var Credentials = class {
2145
2149
  }
2146
2150
  };
2147
2151
 
2148
- // 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/drain.js
2152
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
2149
2153
  var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
2150
2154
  if (signal?.aborted)
2151
2155
  return Promise.reject(signal.reason);
@@ -2173,7 +2177,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
2173
2177
  });
2174
2178
  }, "waitForDrain");
2175
2179
 
2176
- // 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/streams.js
2180
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
2177
2181
  var processStreams = {
2178
2182
  drain: /* @__PURE__ */ __name(async (signal) => {
2179
2183
  await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
@@ -2202,7 +2206,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
2202
2206
  };
2203
2207
  }, "captureStreams");
2204
2208
 
2205
- // 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/retry.js
2209
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
2206
2210
  var DEFAULT_RETRY = {
2207
2211
  retries: 1,
2208
2212
  baseDelayMs: 250,
@@ -2214,7 +2218,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
2214
2218
  return Math.round(random() * ceiling);
2215
2219
  }, "backoffMs");
2216
2220
 
2217
- // 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/result-fields.js
2221
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
2218
2222
  var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
2219
2223
  var validate = /* @__PURE__ */ __name((paths) => {
2220
2224
  if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
@@ -2225,14 +2229,14 @@ var fieldsOf = /* @__PURE__ */ __name((value) => {
2225
2229
  validate(paths);
2226
2230
  return [...new Set(paths)];
2227
2231
  }, "fieldsOf");
2228
- var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "object");
2232
+ var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "object");
2229
2233
  var retained = /* @__PURE__ */ new Set(["operation_id", "page", "next", "missing", "meta", "coverage"]);
2230
2234
  var itemPaths = /* @__PURE__ */ __name((paths) => paths.map((path) => path.startsWith("items.") ? path.slice(6) : path), "itemPaths");
2231
2235
  var onePaths = /* @__PURE__ */ __name((paths) => paths.map((path) => path.startsWith("item.") ? path.slice(5) : path), "onePaths");
2232
2236
  var select = /* @__PURE__ */ __name((value, paths) => {
2233
2237
  if (Array.isArray(value))
2234
2238
  return value.map((item) => select(item, paths));
2235
- if (!object(value))
2239
+ if (!object2(value))
2236
2240
  return value;
2237
2241
  const result = {};
2238
2242
  const groups = /* @__PURE__ */ new Map();
@@ -2250,9 +2254,9 @@ var select = /* @__PURE__ */ __name((value, paths) => {
2250
2254
  const found = value[key];
2251
2255
  if (children.includes(""))
2252
2256
  result[key] = found;
2253
- else if (object(found) || Array.isArray(found)) {
2257
+ else if (object2(found) || Array.isArray(found)) {
2254
2258
  const selected = select(found, children);
2255
- if (Array.isArray(selected) || object(selected) && Object.keys(selected).length > 0)
2259
+ if (Array.isArray(selected) || object2(selected) && Object.keys(selected).length > 0)
2256
2260
  result[key] = selected;
2257
2261
  }
2258
2262
  }
@@ -2264,29 +2268,29 @@ var select = /* @__PURE__ */ __name((value, paths) => {
2264
2268
  var project = /* @__PURE__ */ __name((value, fields) => {
2265
2269
  if (Array.isArray(value))
2266
2270
  return value.map((item) => select(item, itemPaths(fields)));
2267
- if (object(value) && Object.hasOwn(value, "type") && value.type === "item" && Object.hasOwn(value, "data") && Object.keys(value).every((key) => ["type", "data"].includes(key)))
2271
+ if (object2(value) && Object.hasOwn(value, "type") && value.type === "item" && Object.hasOwn(value, "data") && Object.keys(value).every((key) => ["type", "data"].includes(key)))
2268
2272
  return { ...value, data: project(value.data, fields) };
2269
- if (object(value) && Object.hasOwn(value, "type") && value.type === "end" && Object.hasOwn(value, "complete") && typeof value.complete === "boolean")
2273
+ if (object2(value) && Object.hasOwn(value, "type") && value.type === "end" && Object.hasOwn(value, "complete") && typeof value.complete === "boolean")
2270
2274
  return value;
2271
- if (object(value) && Object.hasOwn(value, "item") && (Object.hasOwn(value, "meta") || Object.keys(value).every((key) => ["item", "next", "missing"].includes(key))))
2275
+ if (object2(value) && Object.hasOwn(value, "item") && (Object.hasOwn(value, "meta") || Object.keys(value).every((key) => ["item", "next", "missing"].includes(key))))
2272
2276
  return { ...value, item: project(value.item, onePaths(fields)) };
2273
- if (object(value) && Array.isArray(value.items))
2277
+ if (object2(value) && Array.isArray(value.items))
2274
2278
  return { ...value, items: value.items.map((item) => select(item, itemPaths(fields))) };
2275
- return select(value, object(value) && !Object.hasOwn(value, "items") ? itemPaths(fields) : fields);
2279
+ return select(value, object2(value) && !Object.hasOwn(value, "items") ? itemPaths(fields) : fields);
2276
2280
  }, "project");
2277
2281
  var projectFields = /* @__PURE__ */ __name((value, fields) => {
2278
2282
  validate(fields);
2279
2283
  return project(value, fields);
2280
2284
  }, "projectFields");
2281
2285
 
2282
- // 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/batch.js
2286
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
2283
2287
  var BATCH_LIMITS = Object.freeze({
2284
2288
  requests: 32,
2285
2289
  input_bytes: 262144,
2286
2290
  read_bytes: 67108864,
2287
2291
  output_bytes: 4194304
2288
2292
  });
2289
- var record = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "record");
2293
+ var record2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "record");
2290
2294
  function invalid(message) {
2291
2295
  throw new CliError("validation_error", message);
2292
2296
  }
@@ -2308,14 +2312,14 @@ var prepareBatch = /* @__PURE__ */ __name((input, handlers) => {
2308
2312
  } catch {
2309
2313
  invalid("batch input must be a JSON object with requests");
2310
2314
  }
2311
- if (!record(value) || Object.keys(value).some((key) => key !== "requests") || !Array.isArray(value.requests))
2315
+ if (!record2(value) || Object.keys(value).some((key) => key !== "requests") || !Array.isArray(value.requests))
2312
2316
  invalid("batch input must contain only a requests array");
2313
2317
  const requests = value.requests;
2314
2318
  if (requests.length < 1 || requests.length > BATCH_LIMITS.requests)
2315
2319
  invalid("batch takes 1\u201332 requests");
2316
2320
  const ids = /* @__PURE__ */ new Set();
2317
2321
  return requests.map((request) => {
2318
- if (!record(request) || Object.keys(request).some((key) => !["id", "command", "args"].includes(key)) || typeof request.id !== "string" || !/^[A-Za-z0-9][A-Za-z0-9_.:-]{0,63}$/.test(request.id) || ids.has(request.id) || !Array.isArray(request.command) || request.command.length < 1 || request.command.length > 8 || request.command.some((word) => typeof word !== "string" || !/^[a-z][a-z0-9-]{0,63}$/.test(word)) || !Array.isArray(request.args) || request.args.length > 128 || request.args.some((arg) => typeof arg !== "string" || arg.includes("\0")))
2322
+ if (!record2(request) || Object.keys(request).some((key) => !["id", "command", "args"].includes(key)) || typeof request.id !== "string" || !/^[A-Za-z0-9][A-Za-z0-9_.:-]{0,63}$/.test(request.id) || ids.has(request.id) || !Array.isArray(request.command) || request.command.length < 1 || request.command.length > 8 || request.command.some((word) => typeof word !== "string" || !/^[a-z][a-z0-9-]{0,63}$/.test(word)) || !Array.isArray(request.args) || request.args.length > 128 || request.args.some((arg) => typeof arg !== "string" || arg.includes("\0")))
2319
2323
  invalid("each batch request needs a unique id, registered command path and string args array");
2320
2324
  const id = request.id;
2321
2325
  const command = [...request.command];
@@ -2337,10 +2341,10 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
2337
2341
  if (maxOutputBytes < 8192 + requests.length * 2048)
2338
2342
  invalid("batch output budget cannot hold its result framing");
2339
2343
  const errorOf = /* @__PURE__ */ __name((error) => {
2340
- const object2 = errorObjectOf(error, options.failureContext).error;
2344
+ const object3 = errorObjectOf(error, options.failureContext).error;
2341
2345
  try {
2342
- if (Buffer.byteLength(JSON.stringify(object2), "utf8") <= 512)
2343
- return object2;
2346
+ if (Buffer.byteLength(JSON.stringify(object3), "utf8") <= 512)
2347
+ return object3;
2344
2348
  } catch {
2345
2349
  }
2346
2350
  const fallback = errorObjectOf(error).error;
@@ -2385,11 +2389,11 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
2385
2389
  }
2386
2390
  } catch (error) {
2387
2391
  options.signal?.throwIfAborted();
2388
- const object2 = errorOf(error);
2392
+ const object3 = errorOf(error);
2389
2393
  result = {
2390
2394
  ...framing,
2391
- status: object2.reason === "batch.read-budget" ? "not_run" : "error",
2392
- error: object2,
2395
+ status: object3.reason === "batch.read-budget" ? "not_run" : "error",
2396
+ error: object3,
2393
2397
  complete: false
2394
2398
  };
2395
2399
  }
@@ -2406,7 +2410,62 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
2406
2410
  };
2407
2411
  }, "runBatch");
2408
2412
 
2409
- // 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/time.js
2413
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
2414
+ import { fileURLToPath } from "node:url";
2415
+ var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
2416
+ var baseConstantsSchema = object({});
2417
+ var LayerSchema = record(string(), unknown());
2418
+ var isPlainObject = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isPlainObject");
2419
+ var merge = /* @__PURE__ */ __name((into, from, file, setBy, prefix = "") => {
2420
+ const out = { ...into };
2421
+ for (const [key, value] of Object.entries(from)) {
2422
+ const path = prefix ? `${prefix}.${key}` : key;
2423
+ const current = out[key];
2424
+ if (isPlainObject(current) && isPlainObject(value)) {
2425
+ out[key] = merge(current, value, file, setBy, path);
2426
+ } else {
2427
+ out[key] = value;
2428
+ setBy.set(path, file);
2429
+ }
2430
+ }
2431
+ return out;
2432
+ }, "merge");
2433
+ var deepFreeze = /* @__PURE__ */ __name((value) => {
2434
+ if (typeof value === "object" && value !== null && !Object.isFrozen(value)) {
2435
+ for (const child of Object.values(value))
2436
+ deepFreeze(child);
2437
+ Object.freeze(value);
2438
+ }
2439
+ return value;
2440
+ }, "deepFreeze");
2441
+ var fileOf = /* @__PURE__ */ __name((path, setBy, files) => {
2442
+ for (let at = path.split("."); at.length > 0; at = at.slice(0, -1)) {
2443
+ const file = setBy.get(at.join("."));
2444
+ if (file)
2445
+ return `set in ${file}`;
2446
+ }
2447
+ return `not set in ${files.join(", ")}`;
2448
+ }, "fileOf");
2449
+ var loadConstants = /* @__PURE__ */ __name((layers, schema) => {
2450
+ const files = layers.map((layer) => fileURLToPath(layer));
2451
+ const setBy = /* @__PURE__ */ new Map();
2452
+ let merged = {};
2453
+ for (const file of files) {
2454
+ merged = merge(merged, loadConfigFile(file, LayerSchema, () => ({})), file, setBy);
2455
+ }
2456
+ const result = safeParse(schema, merged);
2457
+ if (!result.success) {
2458
+ const problems = result.issues.map((issue) => {
2459
+ const path = getDotPath(issue) ?? "(root)";
2460
+ return `${path}: ${issue.message} (${fileOf(path, setBy, files)})`;
2461
+ });
2462
+ throw new Error(`the packaged constants are not valid:
2463
+ ${problems.join("\n ")}`);
2464
+ }
2465
+ return deepFreeze(result.output);
2466
+ }, "loadConstants");
2467
+
2468
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
2410
2469
  var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
2411
2470
  var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
2412
2471
  if (signal?.aborted) {
@@ -2420,7 +2479,7 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
2420
2479
  }, { once: true });
2421
2480
  }), "realSleep");
2422
2481
 
2423
- // 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/logging.js
2482
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
2424
2483
  import { appendFileSync } from "node:fs";
2425
2484
  var REDACTED_FIELDS = [
2426
2485
  "authorization",
@@ -2476,7 +2535,7 @@ var createRecordLog = /* @__PURE__ */ __name(({ to, runId, command, resource, tr
2476
2535
  const at = /* @__PURE__ */ __name((severity) => (
2477
2536
  // A message is a sentence, and a sentence can quote content; the record names its event instead.
2478
2537
  (event, _message) => {
2479
- const record2 = logRecordOf({
2538
+ const record3 = logRecordOf({
2480
2539
  severity,
2481
2540
  event,
2482
2541
  time: now().toISOString(),
@@ -2487,7 +2546,7 @@ var createRecordLog = /* @__PURE__ */ __name(({ to, runId, command, resource, tr
2487
2546
  allow,
2488
2547
  redact
2489
2548
  });
2490
- write(`${JSON.stringify(record2)}
2549
+ write(`${JSON.stringify(record3)}
2491
2550
  `);
2492
2551
  }
2493
2552
  ), "at");
@@ -2515,7 +2574,7 @@ var silent = {
2515
2574
  }, "error")
2516
2575
  };
2517
2576
 
2518
- // 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/pretty.js
2577
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
2519
2578
  var import_cli_table3 = __toESM(require_cli_table3(), 1);
2520
2579
  import { styleText } from "node:util";
2521
2580
  var renderPretty = /* @__PURE__ */ __name((value, options) => {
@@ -2525,7 +2584,7 @@ var renderPretty = /* @__PURE__ */ __name((value, options) => {
2525
2584
  return paint2.dim("(nothing)");
2526
2585
  return isRowLike(value) ? renderTable(value, paint2) : renderJson(value);
2527
2586
  }
2528
- if (isPlainObject(value)) {
2587
+ if (isPlainObject2(value)) {
2529
2588
  const listKey = Object.keys(value).find((key) => Array.isArray(value[key]) && isRowLike(value[key]));
2530
2589
  if (listKey) {
2531
2590
  const rest = Object.fromEntries(Object.entries(value).filter(([key]) => key !== listKey));
@@ -2544,8 +2603,8 @@ var palette = /* @__PURE__ */ __name((color) => ({
2544
2603
  bold: paint("bold", color),
2545
2604
  label: paint("cyan", color)
2546
2605
  }), "palette");
2547
- var isPlainObject = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isPlainObject");
2548
- var isRowLike = /* @__PURE__ */ __name((value) => value.length > 0 && value.every((item) => isPlainObject(item)) && value.length <= 500, "isRowLike");
2606
+ var isPlainObject2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isPlainObject");
2607
+ var isRowLike = /* @__PURE__ */ __name((value) => value.length > 0 && value.every((item) => isPlainObject2(item)) && value.length <= 500, "isRowLike");
2549
2608
  var renderTable = /* @__PURE__ */ __name((rows, paint2) => {
2550
2609
  const columns = [...new Set(rows.flatMap((row) => Object.keys(row)))];
2551
2610
  const table = new import_cli_table3.default({
@@ -2589,7 +2648,7 @@ var BORDERLESS = {
2589
2648
  middle: ""
2590
2649
  };
2591
2650
 
2592
- // 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/renderer.js
2651
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
2593
2652
  var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
2594
2653
  const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
2595
2654
  const say = /* @__PURE__ */ __name((symbol) => (message) => {
@@ -2635,6 +2694,9 @@ export {
2635
2694
  writeSecurely,
2636
2695
  loadConfigFile,
2637
2696
  saveConfigFile,
2697
+ BASE_CONSTANTS,
2698
+ baseConstantsSchema,
2699
+ loadConstants,
2638
2700
  systemKeyring,
2639
2701
  resolvePaths,
2640
2702
  pathsAreOverridden,
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-FTZNUZO7.js";
8
+ } from "./chunk-Q4XVBKX4.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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");