@wirecat/drive-cli 0.58.0 → 0.60.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 (191) hide show
  1. package/dist/bin/drive.js +6 -2
  2. package/dist/bin/drive.js.map +1 -1
  3. package/dist/bundle/{all-profiles-ANDWOJDL.js → all-profiles-537I27Z4.js} +14 -13
  4. package/dist/bundle/{anthropic-EZPZUWGS.js → anthropic-X4NWVHDF.js} +9 -9
  5. package/dist/bundle/{app-server-67WL423B.js → app-server-KSHJKKS7.js} +53 -51
  6. package/dist/bundle/{bun-NIIYUR5F.js → bun-WTBGGCUC.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-A5ZKTIYC.js → bun-sqlite-T7Y3JFFD.js} +8 -8
  8. package/dist/bundle/{chunk-5NPFHWLP.js → chunk-22ATLSNK.js} +5 -5
  9. package/dist/bundle/{chunk-ALTG7BZQ.js → chunk-246P2DCT.js} +19 -19
  10. package/dist/bundle/{chunk-NYINLKWT.js → chunk-2AXA5SKP.js} +1 -1
  11. package/dist/bundle/{chunk-BAEIAQWH.js → chunk-3TQHIHZI.js} +2 -2
  12. package/dist/bundle/{chunk-MBNKNWOG.js → chunk-4CBZEAQ7.js} +35 -34
  13. package/dist/bundle/{chunk-SWFA36F3.js → chunk-4VHBDVY2.js} +20 -14
  14. package/dist/bundle/{chunk-Z5GDNCTJ.js → chunk-4XZXH2NM.js} +2 -2
  15. package/dist/bundle/{chunk-A4DHPOFQ.js → chunk-57QVQGBE.js} +53 -39
  16. package/dist/bundle/{chunk-SPVPKHBQ.js → chunk-5AMRCBMP.js} +78 -40
  17. package/dist/bundle/{chunk-ED5JNYN5.js → chunk-5XHLQZAG.js} +30 -28
  18. package/dist/bundle/{chunk-BLJVCJZU.js → chunk-67QXMO2G.js} +26 -26
  19. package/dist/bundle/{chunk-EFEI724Z.js → chunk-6HTKB4WC.js} +1 -1
  20. package/dist/bundle/{chunk-U2RSVKR5.js → chunk-73MNUSP3.js} +1 -1
  21. package/dist/bundle/{chunk-4UU4ONKY.js → chunk-73TTP6ET.js} +5326 -636
  22. package/dist/bundle/{chunk-4ICWGMHN.js → chunk-77C5XRH3.js} +7 -7
  23. package/dist/bundle/{chunk-W6KMNO3C.js → chunk-77YTRBL6.js} +11 -11
  24. package/dist/bundle/{chunk-YHRJUZ3O.js → chunk-ALWTUDZF.js} +6 -4
  25. package/dist/bundle/{chunk-ESF2B22R.js → chunk-AXWXQNTC.js} +14 -11
  26. package/dist/bundle/{chunk-FD7A6745.js → chunk-CKGHRWVR.js} +4 -4
  27. package/dist/bundle/{chunk-X4F3M6L6.js → chunk-D6WIWOQC.js} +4 -4
  28. package/dist/bundle/{chunk-TCJRJ3TE.js → chunk-DMHGWL5D.js} +13 -13
  29. package/dist/bundle/{chunk-AFZ33AC7.js → chunk-DQDKLZAK.js} +179 -50
  30. package/dist/bundle/{chunk-ITD7WI23.js → chunk-EBLA7GXY.js} +1 -1
  31. package/dist/bundle/{chunk-UTDL7MKT.js → chunk-EHAI773E.js} +2 -2
  32. package/dist/bundle/{chunk-RRHC5SBB.js → chunk-FO4TCH6P.js} +2 -2
  33. package/dist/bundle/{chunk-7VFD3UJQ.js → chunk-FTZNUZO7.js} +3 -3
  34. package/dist/bundle/{chunk-JEMKSWVI.js → chunk-FZOCQQ66.js} +12 -12
  35. package/dist/bundle/{chunk-P5MCZ635.js → chunk-GD6TQ6U4.js} +11 -88
  36. package/dist/bundle/{chunk-PYPLD7JO.js → chunk-GVRS5AIH.js} +2 -2
  37. package/dist/bundle/{chunk-2TASMYGM.js → chunk-HCJG7ENG.js} +3 -3
  38. package/dist/bundle/{chunk-TIXIB32T.js → chunk-HFGR33KD.js} +153 -101
  39. package/dist/bundle/{chunk-ASPIEEXN.js → chunk-HIP43OGZ.js} +1 -1
  40. package/dist/bundle/{chunk-IBJOO5FG.js → chunk-HQVIK6PM.js} +37 -19
  41. package/dist/bundle/{chunk-AL7MY7MW.js → chunk-IRZ7OF3F.js} +1 -1
  42. package/dist/bundle/{chunk-OOR6PEHV.js → chunk-IXN7Y6JA.js} +1 -1
  43. package/dist/bundle/{chunk-4EEOJ54H.js → chunk-JGUJJNGZ.js} +5930 -3061
  44. package/dist/bundle/{chunk-6THTUYPT.js → chunk-JQLIM6BH.js} +5 -5
  45. package/dist/bundle/{chunk-LSSIVBQI.js → chunk-K6XVRA6U.js} +1 -1
  46. package/dist/bundle/chunk-KEXTTZJM.js +35 -0
  47. package/dist/bundle/{chunk-3RG27IWA.js → chunk-LJ77Y3TK.js} +5 -5
  48. package/dist/bundle/{chunk-I4VUHZSD.js → chunk-LQSRVQ3V.js} +4 -3
  49. package/dist/bundle/{chunk-NKL5XXOM.js → chunk-MVNPE5FZ.js} +8 -8
  50. package/dist/bundle/{chunk-6SARLV3Z.js → chunk-MXP35VPO.js} +4 -4
  51. package/dist/bundle/{chunk-J36Z6BDZ.js → chunk-N7S2UPF3.js} +652 -373
  52. package/dist/bundle/{chunk-4GZLX2ME.js → chunk-O37ESNAP.js} +40 -33
  53. package/dist/bundle/{chunk-OZEJA67C.js → chunk-OMKUBCNN.js} +8 -8
  54. package/dist/bundle/{chunk-XQMMB6ST.js → chunk-OYNUBWD2.js} +2 -22
  55. package/dist/bundle/{chunk-OUQVZTF5.js → chunk-PDYHEWKG.js} +7 -42
  56. package/dist/bundle/{chunk-QVIJMV22.js → chunk-PETFPXLU.js} +3 -3
  57. package/dist/bundle/{chunk-TNX77VPM.js → chunk-PPL5ASW2.js} +4908 -1588
  58. package/dist/bundle/{chunk-GDRO4YMH.js → chunk-QIJWSKZL.js} +4 -4
  59. package/dist/bundle/{chunk-EFX6FIDM.js → chunk-S36HRPNS.js} +1 -1
  60. package/dist/bundle/{chunk-WICYDOVL.js → chunk-SBHSNOU4.js} +91 -23
  61. package/dist/bundle/{chunk-7YUZAEBG.js → chunk-SZXI4OXX.js} +2 -2
  62. package/dist/bundle/{chunk-O3K46QRL.js → chunk-TKW4QWCY.js} +20 -6
  63. package/dist/bundle/{chunk-UBZ2LH7N.js → chunk-TVQDMP2F.js} +1533 -602
  64. package/dist/bundle/{chunk-7AL57FCK.js → chunk-TXMTMEHW.js} +4 -4
  65. package/dist/bundle/{chunk-X5XWUQNU.js → chunk-UNJE63JK.js} +2 -2
  66. package/dist/bundle/chunk-UTFATA4K.js +93 -0
  67. package/dist/bundle/{chunk-34XHR5FL.js → chunk-UVLSWLPZ.js} +16 -16
  68. package/dist/bundle/chunk-UVYVIHEA.js +34 -0
  69. package/dist/bundle/{chunk-IH4UCM5K.js → chunk-V2VMBM7O.js} +2 -2
  70. package/dist/bundle/{chunk-KCBHOYNZ.js → chunk-V7QMHMR3.js} +8 -13
  71. package/dist/bundle/{chunk-IXXQZCNK.js → chunk-VRW6ZDTH.js} +32 -19
  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-BKM2CGG2.js → chunk-XDIEQ2CE.js} +3 -3
  75. package/dist/bundle/{chunk-OG5ERX4S.js → chunk-XFXRGQXJ.js} +2 -2
  76. package/dist/bundle/{chunk-UMJLXAJI.js → chunk-YDN2RH5S.js} +2 -2
  77. package/dist/bundle/{chunk-TMW526H3.js → chunk-YGG7UA3C.js} +5 -5
  78. package/dist/bundle/{chunk-D72FL3L3.js → chunk-YYHKVOVK.js} +35 -35
  79. package/dist/bundle/{chunk-3GXNODTB.js → chunk-ZPQS7XJA.js} +4 -4
  80. package/dist/bundle/{chunk-JZ67M3HR.js → chunk-ZYCLPJ7U.js} +1 -1
  81. package/dist/bundle/command-contract-NUIWUVYB.js +39 -0
  82. package/dist/bundle/{decode-2R6DTGRX.js → decode-35N57AFW.js} +8 -8
  83. package/dist/bundle/{dispatch-DEXAEMIN.js → dispatch-CWXZW3PL.js} +9 -9
  84. package/dist/bundle/drive.js +12 -12
  85. package/dist/bundle/{echarts-CLB22SZS.js → echarts-3P3QZWMU.js} +2 -2
  86. package/dist/bundle/{embed-RJJWOLKN.js → embed-Q6Q5IOJQ.js} +9 -9
  87. package/dist/bundle/{embedder-DWYS5JYJ.js → embedder-D44JDTAA.js} +12 -12
  88. package/dist/bundle/entry-ZHCNI7XO.js +22 -0
  89. package/dist/bundle/{failure-GBZ4L5QO.js → failure-GRMMSDCZ.js} +4 -4
  90. package/dist/bundle/first-run-3DC2SDWM.js +30 -0
  91. package/dist/bundle/first-screen-YJF4YODC.js +37 -0
  92. package/dist/bundle/{google-L776ETP4.js → google-6ZZDKFBN.js} +13 -13
  93. package/dist/bundle/{google-api-AI5ZJJ2M.js → google-api-E6MOJ4ZD.js} +57 -56
  94. package/dist/bundle/grants-GWXDH5GM.js +105 -0
  95. package/dist/bundle/{identity-MDLWK2TX.js → identity-TID7S5NE.js} +6 -6
  96. package/dist/bundle/{instructions-BXZZNAMS.js → instructions-ANJN4HV3.js} +1 -1
  97. package/dist/bundle/{login-6HHQLRHY.js → login-BGMK2ABH.js} +65 -66
  98. package/dist/bundle/{mcp-ZZUYI44D.js → mcp-WBHKX5E3.js} +2 -2
  99. package/dist/bundle/{node-R6ZNQ3NT.js → node-VOB45ES2.js} +2 -2
  100. package/dist/bundle/{node-sqlite-AVNHGMVL.js → node-sqlite-TSX6XQY2.js} +14 -8
  101. package/dist/bundle/oauth-CEOYXW6C.js +22 -0
  102. package/dist/bundle/{open-BXPLXJC2.js → open-3USWHGNR.js} +8 -7
  103. package/dist/bundle/{openai-CRO5GDBY.js → openai-YZ5VGPIP.js} +17 -17
  104. package/dist/bundle/{process-P36JP33R.js → process-44JS2W7L.js} +1 -1
  105. package/dist/bundle/{program-4DWVWSGQ.js → program-TZLAFKJV.js} +158 -103
  106. package/dist/bundle/prompt-SG7LAOXW.js +17 -0
  107. package/dist/bundle/{reasons-IHPNUP5W.js → reasons-ZK3U3CIN.js} +5 -5
  108. package/dist/bundle/{recognize-NAISVA56.js → recognize-OFW7HWTM.js} +7 -7
  109. package/dist/bundle/{remote-KCUHG5HV.js → remote-YBDRZQZ5.js} +10 -10
  110. package/dist/bundle/{rerank-Q3POCDSK.js → rerank-TQQNS5FJ.js} +10 -10
  111. package/dist/bundle/{serve-5CUOYLSG.js → serve-OPZXMVLH.js} +14 -13
  112. package/dist/bundle/{server-FXW3GARV.js → server-2D6DDIK5.js} +44 -43
  113. package/dist/bundle/server-R6G2O772.js +70 -0
  114. package/dist/bundle/{services-PEYBXZ3R.js → services-34WKT3NN.js} +101 -31
  115. package/dist/bundle/{sqlite-runtime-YMPWN5PM.js → sqlite-runtime-WPUMKLUV.js} +9 -8
  116. package/dist/bundle/{start-PFWEF44R.js → start-ZXUJZ4JV.js} +7 -7
  117. package/dist/bundle/{state-5TQ7IOJH.js → state-AV2RB3AQ.js} +9 -9
  118. package/dist/bundle/{store-P4OYYFW5.js → store-3M7N2Q5T.js} +20 -16
  119. package/dist/bundle/{store-E2VWY4O6.js → store-YKV4GAMS.js} +49 -22
  120. package/dist/bundle/store-maintenance-command-WDXNY4ZF.js +60 -0
  121. package/dist/bundle/tokens-F63RXXEF.js +103 -0
  122. package/dist/commands/config.d.ts.map +1 -1
  123. package/dist/commands/config.js +14 -5
  124. package/dist/commands/config.js.map +1 -1
  125. package/dist/commands/context.d.ts +4 -2
  126. package/dist/commands/context.d.ts.map +1 -1
  127. package/dist/commands/context.js.map +1 -1
  128. package/dist/commands/documents.d.ts +1 -0
  129. package/dist/commands/documents.d.ts.map +1 -1
  130. package/dist/commands/documents.js +14 -1
  131. package/dist/commands/documents.js.map +1 -1
  132. package/dist/commands/knowledge.d.ts +4 -0
  133. package/dist/commands/knowledge.d.ts.map +1 -1
  134. package/dist/commands/knowledge.js +8 -7
  135. package/dist/commands/knowledge.js.map +1 -1
  136. package/dist/commands/session.d.ts.map +1 -1
  137. package/dist/commands/session.js +5 -2
  138. package/dist/commands/session.js.map +1 -1
  139. package/dist/config.d.ts +7 -0
  140. package/dist/config.d.ts.map +1 -1
  141. package/dist/config.js +22 -3
  142. package/dist/config.js.map +1 -1
  143. package/dist/contract-overrides.js +5 -5
  144. package/dist/contract-overrides.js.map +1 -1
  145. package/dist/errors.js +4 -4
  146. package/dist/errors.js.map +1 -1
  147. package/dist/knowledge-query.d.ts +2 -0
  148. package/dist/knowledge-query.d.ts.map +1 -1
  149. package/dist/login.d.ts.map +1 -1
  150. package/dist/login.js +3 -5
  151. package/dist/login.js.map +1 -1
  152. package/dist/program.d.ts.map +1 -1
  153. package/dist/program.js +13 -4
  154. package/dist/program.js.map +1 -1
  155. package/dist/provider-json.d.ts +2 -0
  156. package/dist/provider-json.d.ts.map +1 -1
  157. package/dist/provider-json.js +13 -0
  158. package/dist/provider-json.js.map +1 -1
  159. package/dist/reasons.d.ts +1 -1
  160. package/dist/reasons.d.ts.map +1 -1
  161. package/dist/reasons.js +2 -22
  162. package/dist/reasons.js.map +1 -1
  163. package/dist/registry.d.ts +1 -1
  164. package/dist/registry.d.ts.map +1 -1
  165. package/dist/registry.js +2 -1
  166. package/dist/registry.js.map +1 -1
  167. package/dist/store.d.ts +2 -0
  168. package/dist/store.d.ts.map +1 -1
  169. package/dist/store.js +9 -0
  170. package/dist/store.js.map +1 -1
  171. package/dist/tokens.js +5 -5
  172. package/dist/tokens.js.map +1 -1
  173. package/dist/upload.js +1 -1
  174. package/dist/upload.js.map +1 -1
  175. package/dist/version.d.ts +1 -1
  176. package/dist/version.js +1 -1
  177. package/package.json +3 -3
  178. package/skills/drive-cli/SKILL.md +2 -1
  179. package/dist/bundle/chunk-7VUHY5LP.js +0 -18
  180. package/dist/bundle/chunk-Y6M2G7JK.js +0 -3609
  181. package/dist/bundle/command-contract-ZCXFT764.js +0 -39
  182. package/dist/bundle/entry-E6H7IUPV.js +0 -21
  183. package/dist/bundle/first-run-DI2JIG44.js +0 -30
  184. package/dist/bundle/first-screen-X5N4TCKD.js +0 -37
  185. package/dist/bundle/grants-HKGYAWL6.js +0 -104
  186. package/dist/bundle/oauth-UVU52X57.js +0 -22
  187. package/dist/bundle/prompt-AFWVGRDG.js +0 -17
  188. package/dist/bundle/server-FTLPSLRU.js +0 -69
  189. package/dist/bundle/store-maintenance-command-MWVERNK7.js +0 -58
  190. package/dist/bundle/tokens-OVG4CJO4.js +0 -102
  191. /package/dist/bundle/{chunk-HPXYN7F3.js → chunk-LK2E2ELG.js} +0 -0
@@ -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
@@ -3,30 +3,31 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  operations,
5
5
  privateFiles
6
- } from "./chunk-UBZ2LH7N.js";
6
+ } from "./chunk-TVQDMP2F.js";
7
7
  import {
8
8
  commandPathKey,
9
9
  commandPermissions
10
- } from "./chunk-ED5JNYN5.js";
10
+ } from "./chunk-5XHLQZAG.js";
11
11
  import {
12
12
  AI_ENTRIES,
13
13
  checkConfigText,
14
14
  issueMessage,
15
15
  settingsFor,
16
- usableProfileName
17
- } from "./chunk-4UU4ONKY.js";
16
+ usableProfileName,
17
+ withSettingDefaults
18
+ } from "./chunk-73TTP6ET.js";
18
19
  import {
19
20
  acquireLock
20
- } from "./chunk-TCJRJ3TE.js";
21
+ } from "./chunk-DMHGWL5D.js";
21
22
  import {
22
23
  LEVELS
23
- } from "./chunk-TIXIB32T.js";
24
+ } from "./chunk-HFGR33KD.js";
24
25
  import {
25
26
  MAX_TEXT_CHARS
26
- } from "./chunk-X5XWUQNU.js";
27
+ } from "./chunk-UNJE63JK.js";
27
28
  import {
28
29
  DRIVE_APP
29
- } from "./chunk-OG5ERX4S.js";
30
+ } from "./chunk-XFXRGQXJ.js";
30
31
  import {
31
32
  Credentials,
32
33
  isMovedRun,
@@ -34,7 +35,7 @@ import {
34
35
  resolvePaths,
35
36
  saveConfigFile,
36
37
  systemKeyring
37
- } from "./chunk-ALTG7BZQ.js";
38
+ } from "./chunk-246P2DCT.js";
38
39
  import {
39
40
  array,
40
41
  boolean,
@@ -53,21 +54,21 @@ import {
53
54
  strictObject,
54
55
  string,
55
56
  union
56
- } from "./chunk-O3K46QRL.js";
57
+ } from "./chunk-TKW4QWCY.js";
57
58
  import {
58
59
  CliError,
59
60
  isCliError
60
- } from "./chunk-ITD7WI23.js";
61
+ } from "./chunk-EBLA7GXY.js";
61
62
  import {
62
63
  __name
63
64
  } from "./chunk-ZVVMGPBJ.js";
64
65
 
65
- // 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/oauth/keeper.js
66
+ // 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/oauth/keeper.js
66
67
  import { createHash as createHash2 } from "node:crypto";
67
68
  import { join } from "node:path";
68
69
  import { setTimeout as delay } from "node:timers/promises";
69
70
 
70
- // 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/oauth/authorize.js
71
+ // 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/oauth/authorize.js
71
72
  import { createHash, randomBytes } from "node:crypto";
72
73
  import { createServer } from "node:http";
73
74
  var DEFAULT_TIMEOUT_MS = 3e5;
@@ -203,7 +204,7 @@ var authorize = /* @__PURE__ */ __name(async (options) => {
203
204
  }
204
205
  }, "authorize");
205
206
 
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/oauth/requests.js
207
+ // 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/oauth/requests.js
207
208
  var REQUEST_LIMIT_MS = 3e4;
208
209
  var TOKEN_LOG_EVENT = "oauth.token";
209
210
  var object = /* @__PURE__ */ __name((value) => {
@@ -320,7 +321,7 @@ var revokeToken = /* @__PURE__ */ __name(async (provider, tokens, context) => {
320
321
  });
321
322
  }, "revokeToken");
322
323
 
323
- // 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/oauth/keeper.js
324
+ // 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/oauth/keeper.js
324
325
  var inFlight = /* @__PURE__ */ new Map();
325
326
  var refreshedInMemory = /* @__PURE__ */ new Map();
326
327
  var tokenKeeper = /* @__PURE__ */ __name((options) => {
@@ -482,7 +483,7 @@ var tokenKeeper = /* @__PURE__ */ __name((options) => {
482
483
  };
483
484
  }, "tokenKeeper");
484
485
 
485
- // 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/oauth/storage.js
486
+ // 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/oauth/storage.js
486
487
  var invalid = /* @__PURE__ */ __name(() => new CliError("authentication_error", "the saved sign-in cannot be read; sign in again", { reason: "oauth.invalid" }), "invalid");
487
488
  var parse2 = /* @__PURE__ */ __name((raw) => {
488
489
  let value;
@@ -614,7 +615,7 @@ var credentialStorage = /* @__PURE__ */ __name((options) => {
614
615
  };
615
616
  }, "credentialStorage");
616
617
 
617
- // 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/oauth/client-file.js
618
+ // 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/oauth/client-file.js
618
619
  import { readFileSync } from "node:fs";
619
620
  var readClientFile = /* @__PURE__ */ __name((location, options = {}) => {
620
621
  if (!options.shipped && typeof location === "string") {
@@ -763,6 +764,7 @@ var keyOf = /* @__PURE__ */ __name((path) => {
763
764
  return operation ? `api.${operation.id}` : commandPathKey(path);
764
765
  }, "keyOf");
765
766
  var configuration = settingsFor(DRIVE_APP, {
767
+ configRepair: false,
766
768
  // drive's own schema decides what the file may hold, so `doctor` names a profile that lacks its principal.
767
769
  schema: ConfigSchema,
768
770
  profile: {
@@ -772,6 +774,13 @@ var configuration = settingsFor(DRIVE_APP, {
772
774
  storage: optional(picklist(["keyring", "file"])),
773
775
  max_text_chars: Common.max_text_chars
774
776
  },
777
+ settings: [
778
+ {
779
+ key: "max_text_chars",
780
+ default: MAX_TEXT_CHARS,
781
+ description: "the most characters of text one file may have to be imported"
782
+ }
783
+ ],
775
784
  permissions: commandPermissions({ keyOf, extra: [...permissionKeys([])], defaults: DEFAULT_LEVELS })
776
785
  });
777
786
  var paths = /* @__PURE__ */ __name((env) => resolvePaths({ appName: "drive-cli", prefix: "DRIVE", env }), "paths");
@@ -788,7 +797,13 @@ var withoutIncomplete = /* @__PURE__ */ __name((raw, issues) => {
788
797
  };
789
798
  }, "withoutIncomplete");
790
799
  var examine = /* @__PURE__ */ __name((text2, file, knownPermissions) => {
791
- const check = /* @__PURE__ */ __name((body) => checkConfigText(body, { file, tool: TOOL, schema: ConfigSchema, ...knownPermissions ? { knownPermissions } : {} }), "check");
800
+ const check = /* @__PURE__ */ __name((body) => checkConfigText(body, {
801
+ file,
802
+ tool: TOOL,
803
+ schema: ConfigSchema,
804
+ repair: false,
805
+ ...knownPermissions ? { knownPermissions } : {}
806
+ }), "check");
792
807
  const first = check(text2);
793
808
  if (first.issues.some((issue) => issue.kind === "invalid_json"))
794
809
  return { raw: {}, config: { profiles: {} }, issues: first.issues };
@@ -826,8 +841,9 @@ var writeConfig = /* @__PURE__ */ __name((env, config) => {
826
841
  const [issue] = configIssues(config, "drive settings");
827
842
  if (issue)
828
843
  throw new CliError("configuration_error", `drive settings: ${issue.profile === void 0 ? "" : `profile ${issue.profile}: `}${issue.what}`);
829
- saveConfigFile(configPath(env), parse(ConfigSchema, config));
844
+ saveConfigFile(configPath(env), withDefaults(parse(ConfigSchema, config)));
830
845
  }, "writeConfig");
846
+ var withDefaults = /* @__PURE__ */ __name((raw, except = []) => withSettingDefaults(isNode(raw) && !Object.hasOwn(raw, "defaults") ? { ...raw, defaults: {} } : raw, configuration.declaredSettings.filter(({ key }) => !except.includes(key))).config, "withDefaults");
831
847
  var profileName = usableProfileName;
832
848
  var fileId = /* @__PURE__ */ __name((input) => {
833
849
  let id = input;
@@ -890,11 +906,13 @@ export {
890
906
  SETTING_NAMES,
891
907
  configuration,
892
908
  paths,
909
+ configPath,
893
910
  inspectConfig,
894
911
  configIssues,
895
912
  refusal,
896
913
  readConfig,
897
914
  writeConfig,
915
+ withDefaults,
898
916
  profileName,
899
917
  fileId,
900
918
  unknownProfile,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // 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/http/listen.js
7
+ // 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/http/listen.js
8
8
  import { createServer } from "node:http";
9
9
  import { Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // 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/bot/instructions.js
7
+ // 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/bot/instructions.js
8
8
  var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
9
9
  `The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
10
10
  "Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",