@wirecat/drive-cli 0.63.0 → 0.65.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 (193) hide show
  1. package/README.md +2 -1
  2. package/dist/bin/drive.js +2 -2
  3. package/dist/bundle/{all-profiles-GZJS3UKC.js → all-profiles-PD7GJHFA.js} +14 -13
  4. package/dist/bundle/{anthropic-RGV3WXX5.js → anthropic-PJKFON5H.js} +25 -14
  5. package/dist/bundle/{app-server-AA2PJ7PV.js → app-server-6ELQA6FJ.js} +59 -56
  6. package/dist/bundle/{bun-OXZYIA3R.js → bun-P54TGES2.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-D45NSDM3.js → bun-sqlite-TND5ZRJH.js} +12 -8
  8. package/dist/bundle/chunk-2AFI4KGI.js +185 -0
  9. package/dist/bundle/{chunk-Q5DJTRKV.js → chunk-3HXNDF6Q.js} +2 -2
  10. package/dist/bundle/{chunk-DJHLVUL6.js → chunk-3ONWN3IA.js} +278 -49
  11. package/dist/bundle/{chunk-WYGWWHZP.js → chunk-42G2XNPN.js} +2 -2
  12. package/dist/bundle/chunk-4AOINPN2.js +66 -0
  13. package/dist/bundle/{chunk-J4DIHPZ6.js → chunk-4EDWLR22.js} +1 -1
  14. package/dist/bundle/{chunk-ABYGSJZ4.js → chunk-4Y5YBFMS.js} +7 -7
  15. package/dist/bundle/{chunk-YGU6ULU5.js → chunk-54V4H6PM.js} +16 -16
  16. package/dist/bundle/{chunk-2TFXK3R4.js → chunk-5XSBCMAF.js} +4 -4
  17. package/dist/bundle/{chunk-2HF2MRXI.js → chunk-6DCLZLGX.js} +1 -1
  18. package/dist/bundle/{chunk-OD4U7GUY.js → chunk-7AQGVX5O.js} +20 -20
  19. package/dist/bundle/{chunk-YIP7ELON.js → chunk-7TAP7Y2E.js} +727 -518
  20. package/dist/bundle/{chunk-TF23BZW5.js → chunk-A27UVLPK.js} +3 -3
  21. package/dist/bundle/{chunk-LZEOQW7S.js → chunk-A4QNADEX.js} +58 -52
  22. package/dist/bundle/{chunk-FXBHOCJK.js → chunk-ADLS6FVG.js} +1 -1
  23. package/dist/bundle/{chunk-LMAVCYLQ.js → chunk-B2LPCHQN.js} +4 -4
  24. package/dist/bundle/{chunk-5PPL7JDM.js → chunk-CGQRZRTH.js} +2 -2
  25. package/dist/bundle/{chunk-VAUMOZU5.js → chunk-CWLL63JD.js} +107 -48
  26. package/dist/bundle/{chunk-V3NVXIQR.js → chunk-D6Z43SOG.js} +1563 -266
  27. package/dist/bundle/{chunk-OXY6SSZG.js → chunk-D7WB54P7.js} +127 -28
  28. package/dist/bundle/{chunk-VJEOGKAN.js → chunk-DA63E2UM.js} +13 -9
  29. package/dist/bundle/{chunk-EOOGWUTP.js → chunk-ECEP4SO3.js} +20 -20
  30. package/dist/bundle/{chunk-NEFSGCVA.js → chunk-EHU6EYGO.js} +38 -28
  31. package/dist/bundle/{chunk-4OSSOWDM.js → chunk-ELJUBPY4.js} +1 -1
  32. package/dist/bundle/{chunk-FRIJUILO.js → chunk-EM7NL5ES.js} +3 -3
  33. package/dist/bundle/{chunk-3BZRKLJ6.js → chunk-EU5MD24W.js} +13 -13
  34. package/dist/bundle/{chunk-MOTRI3SY.js → chunk-EZ2OLYEK.js} +24 -2
  35. package/dist/bundle/{chunk-6MQSQ4LX.js → chunk-F56DRBGY.js} +370 -717
  36. package/dist/bundle/{chunk-ZOJU7ZFI.js → chunk-FA6JNXCC.js} +8 -8
  37. package/dist/bundle/{chunk-ND6LLYGF.js → chunk-FBHSWQU7.js} +1531 -136
  38. package/dist/bundle/{chunk-Z42YYLTS.js → chunk-GW3LBY3T.js} +74 -72
  39. package/dist/bundle/{chunk-Y6GNA7HE.js → chunk-HP3NT6JJ.js} +23 -5
  40. package/dist/bundle/{chunk-DJ3SDJZY.js → chunk-I272E6UR.js} +9 -8
  41. package/dist/bundle/{chunk-L37LMMRJ.js → chunk-IBO23OID.js} +2 -2
  42. package/dist/bundle/{chunk-CE2TJBLP.js → chunk-II4S2DBJ.js} +3 -3
  43. package/dist/bundle/{chunk-ZM5J6ZMB.js → chunk-IKHOIXJR.js} +2 -2
  44. package/dist/bundle/{chunk-PO5RQQIG.js → chunk-IMHW7VIV.js} +5 -5
  45. package/dist/bundle/{chunk-3HK5WMI5.js → chunk-JMJIH6JH.js} +6 -6
  46. package/dist/bundle/{chunk-FUITWY7O.js → chunk-JPPPLKAO.js} +26 -1
  47. package/dist/bundle/{chunk-4S4JMW6I.js → chunk-LMKPP2JP.js} +1 -1
  48. package/dist/bundle/{chunk-HZZCEQTH.js → chunk-M7ELUGU6.js} +4 -4
  49. package/dist/bundle/{chunk-ZMOUUOT2.js → chunk-MCPOZNWG.js} +1 -1
  50. package/dist/bundle/{chunk-XNVFKMVR.js → chunk-NI5PD5KM.js} +39485 -35729
  51. package/dist/bundle/{chunk-2TDUGC5D.js → chunk-NQ5XMSLA.js} +4927 -1978
  52. package/dist/bundle/chunk-NQRTKYJB.js +257 -0
  53. package/dist/bundle/{chunk-44SBK6KB.js → chunk-O6K2E7OA.js} +4201 -2565
  54. package/dist/bundle/{chunk-534OBX5Y.js → chunk-O7ZDCOZE.js} +1 -1
  55. package/dist/bundle/{chunk-7EMQ26BA.js → chunk-OFJXHEFT.js} +13 -13
  56. package/dist/bundle/chunk-OWMZUWCM.js +109 -0
  57. package/dist/bundle/chunk-PHOL2DZM.js +138 -0
  58. package/dist/bundle/{chunk-UQLWMGSD.js → chunk-PLP5527C.js} +5 -5
  59. package/dist/bundle/{chunk-3QINVLZI.js → chunk-RNHGQ35R.js} +1 -1
  60. package/dist/bundle/{chunk-27YUUGXQ.js → chunk-RX5CJ55S.js} +1 -1
  61. package/dist/bundle/{chunk-XIUDS3OK.js → chunk-SE352DBY.js} +1 -1
  62. package/dist/bundle/chunk-SEQWBZYH.js +18 -0
  63. package/dist/bundle/{chunk-33MGFUED.js → chunk-SIWXYB4E.js} +3789 -3538
  64. package/dist/bundle/{chunk-4CIZWCXV.js → chunk-SNLSEYJO.js} +1 -1
  65. package/dist/bundle/{chunk-XDC3TWTL.js → chunk-SS4LKLD7.js} +52 -605
  66. package/dist/bundle/{chunk-BKYMKVHT.js → chunk-TMHF4BCL.js} +2 -2
  67. package/dist/bundle/{chunk-FEZF3TII.js → chunk-TOVWMURV.js} +74 -6
  68. package/dist/bundle/{chunk-QCKZ3GAA.js → chunk-TTP4NOP3.js} +4 -4
  69. package/dist/bundle/chunk-UTNRBOEN.js +53 -0
  70. package/dist/bundle/{chunk-2NIC72HH.js → chunk-VDZY3L7U.js} +3 -1
  71. package/dist/bundle/chunk-VHQYWFWV.js +13 -0
  72. package/dist/bundle/{chunk-VKPCONDQ.js → chunk-VLXWAH5E.js} +4 -4
  73. package/dist/bundle/{chunk-6KQJSFYF.js → chunk-VMAMRFFC.js} +23 -23
  74. package/dist/bundle/{chunk-6EY46GAN.js → chunk-W2XY6C5S.js} +2 -2
  75. package/dist/bundle/{chunk-J24ZFCWM.js → chunk-WRAUO5EJ.js} +22 -24
  76. package/dist/bundle/{chunk-S4RXABDR.js → chunk-WRMJN6UQ.js} +3 -3
  77. package/dist/bundle/{chunk-UPOSDTPT.js → chunk-WVJHZIDH.js} +3 -3
  78. package/dist/bundle/{chunk-E4SDKMBJ.js → chunk-X7YGGWXI.js} +1 -59
  79. package/dist/bundle/{chunk-O2XOX4HB.js → chunk-XPWZSW6Y.js} +50 -34
  80. package/dist/bundle/{chunk-PDCCYHCH.js → chunk-XYE7XZPB.js} +5 -5
  81. package/dist/bundle/{chunk-RKELRWH7.js → chunk-Y5PKRITX.js} +5 -5
  82. package/dist/bundle/{chunk-XR6ESRU6.js → chunk-Z2ADO6UA.js} +2 -2
  83. package/dist/bundle/{chunk-YUWPNG7B.js → chunk-ZD4MB7NH.js} +1 -1
  84. package/dist/bundle/{chunk-TWUH22Z5.js → chunk-ZILALBYQ.js} +4 -4
  85. package/dist/bundle/{chunk-SXM6MHRR.js → chunk-ZR2EJPMQ.js} +44 -15
  86. package/dist/bundle/command-contract-25E4PYMD.js +40 -0
  87. package/dist/bundle/command-server-entry-36JXYIJB.js +170 -0
  88. package/dist/bundle/{decode-G5YEIPNC.js → decode-T5ZW57WZ.js} +8 -8
  89. package/dist/bundle/{dispatch-GEFIXA6X.js → dispatch-RMA2XFYA.js} +11 -11
  90. package/dist/bundle/drive.js +11 -11
  91. package/dist/bundle/{echarts-W2CWHNXR.js → echarts-KQ44LPSF.js} +2 -2
  92. package/dist/bundle/{embed-OBFFPVF4.js → embed-Q7XST53J.js} +9 -9
  93. package/dist/bundle/{embedder-NGCBQHIG.js → embedder-RWZSBVW2.js} +12 -12
  94. package/dist/bundle/entry-HPLW4QL2.js +25 -0
  95. package/dist/bundle/{failure-GV77W3CD.js → failure-7NP4QPIN.js} +4 -4
  96. package/dist/bundle/first-run-RL3RKYZW.js +30 -0
  97. package/dist/bundle/first-screen-NX3TM2VJ.js +38 -0
  98. package/dist/bundle/google-DPD5N6AQ.js +42 -0
  99. package/dist/bundle/{google-api-Z3NSTBBR.js → google-api-P5DRHD7L.js} +61 -56
  100. package/dist/bundle/grants-TX4MHLI4.js +109 -0
  101. package/dist/bundle/{identity-OM6GFZ7T.js → identity-VDV6CHRW.js} +6 -6
  102. package/dist/bundle/{instructions-YQBQSYSS.js → instructions-Q45FVY6H.js} +1 -1
  103. package/dist/bundle/{login-7RYSDVN3.js → login-XKN3NI6X.js} +67 -62
  104. package/dist/bundle/{mcp-GWDA3HOA.js → mcp-7KQUJNFN.js} +2 -2
  105. package/dist/bundle/{node-IVU33RL7.js → node-MSW565D3.js} +2 -2
  106. package/dist/bundle/{node-KM3CUABH.js → node-P4E63KXA.js} +9 -9
  107. package/dist/bundle/{node-sqlite-SIH5BEW2.js → node-sqlite-S74XVVHL.js} +13 -9
  108. package/dist/bundle/oauth-6R7AWAES.js +22 -0
  109. package/dist/bundle/{open-IAO2SNII.js → open-P7UQG7XJ.js} +8 -8
  110. package/dist/bundle/{openai-SGOUBHXP.js → openai-DDHJ57KZ.js} +19 -40
  111. package/dist/bundle/{process-BPBMV3AT.js → process-NMUB5SHK.js} +1 -1
  112. package/dist/bundle/{program-MYKKJ4F6.js → program-PJNWP6JW.js} +517 -330
  113. package/dist/bundle/prompt-VOSMK4C2.js +19 -0
  114. package/dist/bundle/{reasons-57J2D77K.js → reasons-KDAXOC5S.js} +5 -5
  115. package/dist/bundle/{recognize-A5C5RPB3.js → recognize-GZIY63HS.js} +7 -7
  116. package/dist/bundle/{remote-VWYFLRGO.js → remote-V3YGN7LN.js} +10 -10
  117. package/dist/bundle/{rerank-4NGQWREA.js → rerank-XRU6AVN7.js} +10 -10
  118. package/dist/bundle/{serve-Y6LQTFH5.js → serve-NDOAFA57.js} +12 -12
  119. package/dist/bundle/{server-6AUHIIUA.js → server-BKGWJYMC.js} +46 -44
  120. package/dist/bundle/server-QD2MUJJZ.js +72 -0
  121. package/dist/bundle/{services-2W4J7EMW.js → services-TYDMFQCA.js} +129 -39
  122. package/dist/bundle/{sqlite-runtime-P6BBDX2H.js → sqlite-runtime-UAFJKSJR.js} +9 -9
  123. package/dist/bundle/{start-AFFA3LKM.js → start-2ZLDP2OE.js} +30 -8
  124. package/dist/bundle/{state-PXKKXR3R.js → state-6SP27J2K.js} +9 -9
  125. package/dist/bundle/{store-CN6JEUC4.js → store-4UUY545Q.js} +42 -18
  126. package/dist/bundle/{store-IVV2BAGZ.js → store-EJN27MXI.js} +69 -28
  127. package/dist/bundle/store-maintenance-command-LETURZDC.js +60 -0
  128. package/dist/bundle/tokens-MTFJPTYT.js +107 -0
  129. package/dist/commands/account.d.ts +4 -0
  130. package/dist/commands/account.d.ts.map +1 -0
  131. package/dist/commands/account.js +33 -0
  132. package/dist/commands/account.js.map +1 -0
  133. package/dist/commands/config.d.ts.map +1 -1
  134. package/dist/commands/config.js +6 -5
  135. package/dist/commands/config.js.map +1 -1
  136. package/dist/commands/context.d.ts +4 -2
  137. package/dist/commands/context.d.ts.map +1 -1
  138. package/dist/commands/context.js.map +1 -1
  139. package/dist/commands/documents.d.ts +2 -0
  140. package/dist/commands/documents.d.ts.map +1 -1
  141. package/dist/commands/documents.js +39 -3
  142. package/dist/commands/documents.js.map +1 -1
  143. package/dist/config.d.ts +13 -0
  144. package/dist/config.d.ts.map +1 -1
  145. package/dist/config.js +32 -2
  146. package/dist/config.js.map +1 -1
  147. package/dist/documents-add.d.ts +49 -0
  148. package/dist/documents-add.d.ts.map +1 -0
  149. package/dist/documents-add.js +122 -0
  150. package/dist/documents-add.js.map +1 -0
  151. package/dist/errors.d.ts +1 -0
  152. package/dist/errors.d.ts.map +1 -1
  153. package/dist/errors.js +9 -1
  154. package/dist/errors.js.map +1 -1
  155. package/dist/knowledge.d.ts +1 -1
  156. package/dist/knowledge.d.ts.map +1 -1
  157. package/dist/knowledge.js +15 -17
  158. package/dist/knowledge.js.map +1 -1
  159. package/dist/model.d.ts +3 -0
  160. package/dist/model.d.ts.map +1 -1
  161. package/dist/model.js.map +1 -1
  162. package/dist/profile-lock.d.ts +1 -0
  163. package/dist/profile-lock.d.ts.map +1 -1
  164. package/dist/profile-lock.js +1 -0
  165. package/dist/profile-lock.js.map +1 -1
  166. package/dist/program.d.ts.map +1 -1
  167. package/dist/program.js +24 -15
  168. package/dist/program.js.map +1 -1
  169. package/dist/reasons.d.ts.map +1 -1
  170. package/dist/reasons.js +25 -0
  171. package/dist/reasons.js.map +1 -1
  172. package/dist/store.d.ts.map +1 -1
  173. package/dist/store.js +20 -0
  174. package/dist/store.js.map +1 -1
  175. package/dist/version.d.ts +1 -1
  176. package/dist/version.js +1 -1
  177. package/package.json +4 -4
  178. package/dist/bundle/chunk-AEX37ETW.js +0 -35
  179. package/dist/bundle/chunk-OTROVC4E.js +0 -62
  180. package/dist/bundle/chunk-Z5KC7XBR.js +0 -33
  181. package/dist/bundle/command-contract-BRW3AP44.js +0 -38
  182. package/dist/bundle/entry-ET6HGM7A.js +0 -22
  183. package/dist/bundle/first-run-JG52UZVO.js +0 -30
  184. package/dist/bundle/first-screen-CIL3GFAA.js +0 -36
  185. package/dist/bundle/google-CIWUVJ5C.js +0 -36
  186. package/dist/bundle/grants-3S4RL3WB.js +0 -104
  187. package/dist/bundle/oauth-PT4JEHLL.js +0 -22
  188. package/dist/bundle/prompt-3ZM64DCB.js +0 -17
  189. package/dist/bundle/server-PFHI35HA.js +0 -69
  190. package/dist/bundle/store-maintenance-command-MSY2QNEH.js +0 -59
  191. package/dist/bundle/tokens-P4LPNUFW.js +0 -102
  192. package/dist/bundle/{chunk-ZQ3GWKDQ.js → chunk-YVNHQFLC.js} +0 -0
  193. package/dist/bundle/{mdast-util-from-markdown-FXEPSNER.js → mdast-util-from-markdown-CE73EWJ2.js} +3 -3
@@ -3,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  operations,
5
5
  privateFiles
6
- } from "./chunk-2TDUGC5D.js";
6
+ } from "./chunk-NQ5XMSLA.js";
7
7
  import {
8
8
  commandPathKey,
9
9
  commandPermissions
10
- } from "./chunk-XDC3TWTL.js";
10
+ } from "./chunk-SS4LKLD7.js";
11
11
  import {
12
12
  AI_ENTRIES,
13
13
  checkConfigText,
@@ -15,23 +15,23 @@ import {
15
15
  settingsFor,
16
16
  usableProfileName,
17
17
  withSettingDefaults
18
- } from "./chunk-33MGFUED.js";
18
+ } from "./chunk-SIWXYB4E.js";
19
19
  import {
20
20
  LEVELS
21
- } from "./chunk-6MQSQ4LX.js";
21
+ } from "./chunk-F56DRBGY.js";
22
22
  import {
23
23
  MAX_TEXT_CHARS
24
- } from "./chunk-UPOSDTPT.js";
24
+ } from "./chunk-WVJHZIDH.js";
25
25
  import {
26
26
  DRIVE_APP
27
- } from "./chunk-5PPL7JDM.js";
27
+ } from "./chunk-CGQRZRTH.js";
28
28
  import {
29
29
  BASE_CONSTANTS,
30
30
  baseConstantsSchema,
31
31
  loadConstants,
32
32
  resolvePaths,
33
33
  saveConfigFile
34
- } from "./chunk-OD4U7GUY.js";
34
+ } from "./chunk-7AQGVX5O.js";
35
35
  import {
36
36
  array,
37
37
  boolean,
@@ -54,15 +54,15 @@ import {
54
54
  transform,
55
55
  trim,
56
56
  union
57
- } from "./chunk-FEZF3TII.js";
57
+ } from "./chunk-TOVWMURV.js";
58
58
  import {
59
59
  CliError
60
- } from "./chunk-4OSSOWDM.js";
60
+ } from "./chunk-ELJUBPY4.js";
61
61
  import {
62
62
  __name
63
63
  } from "./chunk-ZVVMGPBJ.js";
64
64
 
65
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/oauth/client-file.js
65
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/oauth/client-file.js
66
66
  import { readFileSync } from "node:fs";
67
67
  var readClientFile = /* @__PURE__ */ __name((location, options = {}) => {
68
68
  if (!options.shipped && typeof location === "string") {
@@ -83,7 +83,7 @@ var readClientFile = /* @__PURE__ */ __name((location, options = {}) => {
83
83
  }
84
84
  }, "readClientFile");
85
85
 
86
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/constants/obscure.js
86
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/constants/obscure.js
87
87
  import { createDecipheriv } from "node:crypto";
88
88
  var KEY = Buffer.from("d43012779aa2dded3e98092a3dbcf5d8980c564172f5ce0a5fd0574e5f740339", "hex");
89
89
  var reveal = /* @__PURE__ */ __name((obscured) => {
@@ -92,7 +92,7 @@ var reveal = /* @__PURE__ */ __name((obscured) => {
92
92
  return Buffer.concat([decipher.update(bytes.subarray(16)), decipher.final()]).toString("utf8");
93
93
  }, "reveal");
94
94
 
95
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/constants/index.js
95
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/constants/index.js
96
96
  var CORE_CONSTANTS = new URL("../../constants.json", new URL("constants/index.js", import.meta.resolve("@wirecat/cli-core")).href);
97
97
  var constantsSchema = object({
98
98
  ...baseConstantsSchema.entries,
@@ -227,13 +227,23 @@ var RunSettings = {
227
227
  runs_size_limit_mb: optional(pipe(number(), integer(), minValue(1))),
228
228
  record_input: optional(union([boolean(), literal("failed")]))
229
229
  };
230
+ var DEFAULT_ADD_PROFILES = 5;
231
+ var MOST_ADD_PROFILES = 50;
232
+ var AcrossProfiles = {
233
+ max_add_profiles: optional(pipe(number(), integer(), minValue(1), maxValue(MOST_ADD_PROFILES)))
234
+ };
230
235
  var SharedDefaults = {
231
236
  limit: optional(pipe(number(), integer(), minValue(1))),
232
237
  sends_per_hour: optional(pipe(number(), integer(), minValue(0))),
233
238
  update_check: optional(boolean()),
234
239
  skill_hint: optional(boolean())
235
240
  };
236
- var DEFAULTS_ONLY = /* @__PURE__ */ new Set([...Object.keys(RunSettings), "update_check", "skill_hint"]);
241
+ var DEFAULTS_ONLY = /* @__PURE__ */ new Set([
242
+ ...Object.keys(RunSettings),
243
+ ...Object.keys(AcrossProfiles),
244
+ "update_check",
245
+ "skill_hint"
246
+ ]);
237
247
  var SETTING_NAMES = /* @__PURE__ */ new Set([...Object.keys(Common), "picture_search", ...DEFAULTS_ONLY]);
238
248
  var Mirror = strictObject({
239
249
  id: pipe(string(), regex(/^[a-z0-9-]{1,40}$/)),
@@ -250,7 +260,7 @@ var Profile = strictObject({
250
260
  });
251
261
  var ConfigSchema = strictObject({
252
262
  profiles: optional(record(string(), Profile), {}),
253
- defaults: optional(strictObject({ ...Common, ...RunSettings, ...SharedDefaults }))
263
+ defaults: optional(strictObject({ ...Common, ...RunSettings, ...AcrossProfiles, ...SharedDefaults }))
254
264
  });
255
265
  var keyOf = /* @__PURE__ */ __name((path) => {
256
266
  if (path[0] !== "api" || path[1] === void 0)
@@ -277,6 +287,11 @@ var configuration = settingsFor(DRIVE_APP, {
277
287
  key: "max_text_chars",
278
288
  default: MAX_TEXT_CHARS,
279
289
  description: "the most characters of text one file may have to be imported"
290
+ },
291
+ {
292
+ key: "max_add_profiles",
293
+ default: DEFAULT_ADD_PROFILES,
294
+ description: "the most profiles documents add may try for one document"
280
295
  }
281
296
  ],
282
297
  permissions: commandPermissions({ keyOf, extra: [...permissionKeys([])], defaults: DEFAULT_LEVELS })
@@ -382,6 +397,16 @@ var application = /* @__PURE__ */ __name((env, choice = {}) => googleAppOf(env,
382
397
  var selectedFolders = /* @__PURE__ */ __name((env, profile, filter = {}) => activeProfile(env, profile).roots.flatMap((id) => filter.id === void 0 || id === filter.id ? [{ id }] : []), "selectedFolders");
383
398
  var configuredMirrors = /* @__PURE__ */ __name((env, profile, filter = {}) => (activeProfile(env, profile).mirrors ?? []).filter((row) => Object.entries(filter).every(([key, value]) => row[key] === value)), "configuredMirrors");
384
399
  var configuredSessions = /* @__PURE__ */ __name((env, filter, knownPermissions) => Object.entries(readConfig(env, knownPermissions).profiles).flatMap(([name, row]) => (filter.profile === void 0 || filter.profile === name) && (filter.storage === void 0 || filter.storage === row.storage) ? [{ profile: name, selected_folders: row.roots.length, storage: row.storage }] : []), "configuredSessions");
400
+ var maxAddProfiles = /* @__PURE__ */ __name((env) => readConfig(env).defaults?.max_add_profiles ?? DEFAULT_ADD_PROFILES, "maxAddProfiles");
401
+ var checkAddProfiles = /* @__PURE__ */ __name((value) => {
402
+ if (typeof value !== "number" || !Number.isInteger(value) || value < 1 || value > MOST_ADD_PROFILES)
403
+ throw new CliError("validation_error", `max_add_profiles is a whole number from 1 to ${MOST_ADD_PROFILES}`);
404
+ return value;
405
+ }, "checkAddProfiles");
406
+ var profileLocked = /* @__PURE__ */ __name((lock, named) => new CliError("permission_error", `this process is locked to profile ${lock} (DRIVE_PROFILE_LOCK) \u2014 ${named} is refused`, {
407
+ reason: "profile.locked"
408
+ }), "profileLocked");
409
+ var profileRequired = /* @__PURE__ */ __name((choices, how = "drive <profile> \u2026") => new CliError("validation_error", choices.length ? `name a profile: ${how} \u2014 profiles here: ${choices.join(", ")} (or set DRIVE_PROFILE)` : "no profiles here yet; create one with drive personal session start (any name in place of personal)", { reason: "profile.required", profiles: [...choices] }), "profileRequired");
385
410
 
386
411
  export {
387
412
  oauthClientReport,
@@ -411,5 +436,9 @@ export {
411
436
  application,
412
437
  selectedFolders,
413
438
  configuredMirrors,
414
- configuredSessions
439
+ configuredSessions,
440
+ maxAddProfiles,
441
+ checkAddProfiles,
442
+ profileLocked,
443
+ profileRequired
415
444
  };
@@ -0,0 +1,40 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ SCHEMA_DIALECT,
5
+ commandContract,
6
+ commandPathOf,
7
+ findCommand,
8
+ outputOf
9
+ } from "./chunk-Y5PKRITX.js";
10
+ import "./chunk-SIWXYB4E.js";
11
+ import "./chunk-DA63E2UM.js";
12
+ import "./chunk-F56DRBGY.js";
13
+ import "./chunk-OWMZUWCM.js";
14
+ import "./chunk-VLXWAH5E.js";
15
+ import "./chunk-IKHOIXJR.js";
16
+ import "./chunk-O7ZDCOZE.js";
17
+ import "./chunk-A27UVLPK.js";
18
+ import "./chunk-B2LPCHQN.js";
19
+ import "./chunk-D6Z43SOG.js";
20
+ import "./chunk-ECEP4SO3.js";
21
+ import "./chunk-X7YGGWXI.js";
22
+ import "./chunk-4AOINPN2.js";
23
+ import "./chunk-4Y5YBFMS.js";
24
+ import "./chunk-YVNHQFLC.js";
25
+ import "./chunk-UTNRBOEN.js";
26
+ import "./chunk-7AQGVX5O.js";
27
+ import "./chunk-PLP5527C.js";
28
+ import "./chunk-Y5E2WNWB.js";
29
+ import "./chunk-6DCLZLGX.js";
30
+ import "./chunk-W2XY6C5S.js";
31
+ import "./chunk-TOVWMURV.js";
32
+ import "./chunk-ELJUBPY4.js";
33
+ import "./chunk-ZVVMGPBJ.js";
34
+ export {
35
+ SCHEMA_DIALECT,
36
+ commandContract,
37
+ commandPathOf,
38
+ findCommand,
39
+ outputOf
40
+ };
@@ -0,0 +1,170 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ COMMAND_SERVER_CONCURRENT,
5
+ enterCommandServer,
6
+ serveCommands
7
+ } from "./chunk-2AFI4KGI.js";
8
+ import "./chunk-SEQWBZYH.js";
9
+ import "./chunk-VHQYWFWV.js";
10
+ import {
11
+ ensureSqlite
12
+ } from "./chunk-TMHF4BCL.js";
13
+ import "./chunk-Y5PKRITX.js";
14
+ import {
15
+ commandServerRequest,
16
+ exitCodeSet,
17
+ inCommandServerRequest
18
+ } from "./chunk-SIWXYB4E.js";
19
+ import "./chunk-DA63E2UM.js";
20
+ import "./chunk-F56DRBGY.js";
21
+ import "./chunk-OWMZUWCM.js";
22
+ import "./chunk-VLXWAH5E.js";
23
+ import "./chunk-IKHOIXJR.js";
24
+ import "./chunk-O7ZDCOZE.js";
25
+ import "./chunk-A27UVLPK.js";
26
+ import "./chunk-B2LPCHQN.js";
27
+ import "./chunk-JMJIH6JH.js";
28
+ import {
29
+ asOwnProcess
30
+ } from "./chunk-D6Z43SOG.js";
31
+ import "./chunk-ECEP4SO3.js";
32
+ import "./chunk-X7YGGWXI.js";
33
+ import "./chunk-4AOINPN2.js";
34
+ import "./chunk-4Y5YBFMS.js";
35
+ import "./chunk-YVNHQFLC.js";
36
+ import "./chunk-VDZY3L7U.js";
37
+ import "./chunk-UTNRBOEN.js";
38
+ import "./chunk-7AQGVX5O.js";
39
+ import {
40
+ catchCrashes
41
+ } from "./chunk-PLP5527C.js";
42
+ import "./chunk-Y5E2WNWB.js";
43
+ import "./chunk-6DCLZLGX.js";
44
+ import "./chunk-W2XY6C5S.js";
45
+ import "./chunk-TOVWMURV.js";
46
+ import {
47
+ CliError
48
+ } from "./chunk-ELJUBPY4.js";
49
+ import {
50
+ __name
51
+ } from "./chunk-ZVVMGPBJ.js";
52
+
53
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/cli/command-server-entry.js
54
+ import { PassThrough } from "node:stream";
55
+ var route = /* @__PURE__ */ __name((stream, sink) => {
56
+ const original = stream.write;
57
+ stream.write = ((chunk, encoding, callback) => {
58
+ sink()(typeof chunk === "string" ? Buffer.from(chunk, typeof encoding === "string" ? encoding : "utf8") : Buffer.from(chunk));
59
+ const done = typeof encoding === "function" ? encoding : callback;
60
+ if (done)
61
+ process.nextTick(done);
62
+ return true;
63
+ });
64
+ return () => {
65
+ stream.write = original;
66
+ };
67
+ }, "route");
68
+ var closedStdin = /* @__PURE__ */ __name(() => {
69
+ const stdin = new PassThrough();
70
+ stdin.end();
71
+ return stdin;
72
+ }, "closedStdin");
73
+ var useStdin = /* @__PURE__ */ __name((outside) => Object.defineProperty(process, "stdin", {
74
+ get: /* @__PURE__ */ __name(() => commandServerRequest()?.stdin ?? outside, "get"),
75
+ configurable: true,
76
+ enumerable: true
77
+ }), "useStdin");
78
+ var roomFor = /* @__PURE__ */ __name((runs) => {
79
+ const emitters = [process, process.stdout, process.stderr];
80
+ const before = emitters.map((emitter) => emitter.getMaxListeners());
81
+ for (const emitter of emitters)
82
+ emitter.setMaxListeners(emitter.getMaxListeners() + 2 * runs);
83
+ return () => {
84
+ for (const [at, emitter] of emitters.entries())
85
+ emitter.setMaxListeners(before[at]);
86
+ };
87
+ }, "roomFor");
88
+ var serveEntry = /* @__PURE__ */ __name(async (entry, io, { firstRunAt, commanderExit }) => {
89
+ const release = catchCrashes({
90
+ cli: entry.app.command,
91
+ interactive: false,
92
+ ...entry.reasons ? { reasons: entry.reasons } : {},
93
+ target: io.signals
94
+ });
95
+ const stopper = new AbortController();
96
+ const stop = /* @__PURE__ */ __name(() => stopper.abort(new CliError("cancelled", "the command server was stopped", { retryable: false })), "stop");
97
+ const protocol = io.stdout.write.bind(io.stdout);
98
+ const ownStderr = io.stderr.write.bind(io.stderr);
99
+ const toStderr = /* @__PURE__ */ __name((chunk) => {
100
+ ownStderr(chunk);
101
+ }, "toStderr");
102
+ const sink = /* @__PURE__ */ __name((pick) => () => {
103
+ const request = commandServerRequest();
104
+ return request ? (chunk) => pick(request).push(chunk) : toStderr;
105
+ }, "sink");
106
+ const unrouteOut = route(process.stdout, sink((request) => request.stdout));
107
+ const unrouteErr = route(process.stderr, sink((request) => request.stderr));
108
+ const stdin = Object.getOwnPropertyDescriptor(process, "stdin");
109
+ const requests = io.stdin;
110
+ useStdin(closedStdin());
111
+ const unroom = roomFor(COMMAND_SERVER_CONCURRENT);
112
+ io.signals.on("SIGINT", stop).on("SIGTERM", stop);
113
+ io.stdout.on("error", stop);
114
+ const run = /* @__PURE__ */ __name(async (argv, alone) => {
115
+ const request = { stdout: [], stderr: [], stdin: closedStdin(), alone };
116
+ const requestIo = { ...io, argv: [...io.argv.slice(0, 2), ...argv], stdin: request.stdin };
117
+ const context = {
118
+ args: argv,
119
+ env: io.env,
120
+ tty: false,
121
+ signal: stopper.signal,
122
+ atStart: /* @__PURE__ */ __name(async (command) => {
123
+ await enterCommandServer(command, entry.app.command);
124
+ await firstRunAt(entry, requestIo, () => true)(command);
125
+ }, "atStart"),
126
+ ask: /* @__PURE__ */ __name(async () => false, "ask"),
127
+ openBrowser: /* @__PURE__ */ __name(async () => void 0, "openBrowser"),
128
+ outputClosed: /* @__PURE__ */ __name(() => false, "outputClosed"),
129
+ setExitCode: /* @__PURE__ */ __name((code2) => {
130
+ request.exitCode = code2;
131
+ }, "setExitCode")
132
+ };
133
+ const code = await inCommandServerRequest(request, () => asOwnProcess(async () => {
134
+ try {
135
+ const returned = await entry.run(context);
136
+ return typeof returned === "number" ? returned : exitCodeSet() ?? 0;
137
+ } catch (error) {
138
+ return commanderExit(error) ?? entry.fail(error, context);
139
+ }
140
+ }));
141
+ const text = /* @__PURE__ */ __name((chunks) => Buffer.concat(chunks).toString("utf8"), "text");
142
+ return { code, stdout: text(request.stdout), stderr: text(request.stderr) };
143
+ }, "run");
144
+ try {
145
+ if (entry.sqlite)
146
+ await ensureSqlite();
147
+ await serveCommands({
148
+ input: requests,
149
+ write: /* @__PURE__ */ __name((line) => new Promise((resolve) => protocol(line) ? resolve() : io.stdout.once("drain", resolve)), "write"),
150
+ run,
151
+ cli: entry.app.command,
152
+ concurrent: COMMAND_SERVER_CONCURRENT,
153
+ version: entry.app.version,
154
+ signal: stopper.signal
155
+ });
156
+ io.setExitCode(0);
157
+ } finally {
158
+ io.signals.off("SIGINT", stop).off("SIGTERM", stop);
159
+ unroom();
160
+ unrouteOut();
161
+ unrouteErr();
162
+ if (stdin)
163
+ Object.defineProperty(process, "stdin", stdin);
164
+ requests.destroy?.();
165
+ release();
166
+ }
167
+ }, "serveEntry");
168
+ export {
169
+ serveEntry
170
+ };
@@ -3,23 +3,23 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  SAMPLE_RATE,
5
5
  decodeOgg
6
- } from "./chunk-HZZCEQTH.js";
7
- import "./chunk-OD4U7GUY.js";
8
- import "./chunk-UQLWMGSD.js";
6
+ } from "./chunk-M7ELUGU6.js";
7
+ import "./chunk-7AQGVX5O.js";
8
+ import "./chunk-PLP5527C.js";
9
9
  import {
10
10
  importFrom
11
11
  } from "./chunk-Y5E2WNWB.js";
12
- import "./chunk-2HF2MRXI.js";
13
- import "./chunk-6EY46GAN.js";
14
- import "./chunk-FEZF3TII.js";
12
+ import "./chunk-6DCLZLGX.js";
13
+ import "./chunk-W2XY6C5S.js";
14
+ import "./chunk-TOVWMURV.js";
15
15
  import {
16
16
  CliError
17
- } from "./chunk-4OSSOWDM.js";
17
+ } from "./chunk-ELJUBPY4.js";
18
18
  import {
19
19
  __name
20
20
  } from "./chunk-ZVVMGPBJ.js";
21
21
 
22
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/speech/decode.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/speech/decode.js
23
23
  import { spawn } from "node:child_process";
24
24
  import { mkdtemp, rm, writeFile } from "node:fs/promises";
25
25
  import { createRequire } from "node:module";
@@ -6,6 +6,7 @@ import {
6
6
  import {
7
7
  BUILT_IN_COMMANDS,
8
8
  DESCRIBE_FLAG,
9
+ DESCRIBE_MAX_BYTES,
9
10
  FIRST_PARTY_TOOLS,
10
11
  PROGRAM_PREFIX,
11
12
  TOOL_NAME,
@@ -13,23 +14,23 @@ import {
13
14
  parseDescribe,
14
15
  shimFiles,
15
16
  writeShim
16
- } from "./chunk-O2XOX4HB.js";
17
+ } from "./chunk-XPWZSW6Y.js";
17
18
  import "./chunk-Y5E2WNWB.js";
18
- import "./chunk-2HF2MRXI.js";
19
+ import "./chunk-6DCLZLGX.js";
19
20
  import {
20
21
  CliError
21
- } from "./chunk-4OSSOWDM.js";
22
+ } from "./chunk-ELJUBPY4.js";
22
23
  import {
23
24
  __name,
24
25
  __toESM
25
26
  } from "./chunk-ZVVMGPBJ.js";
26
27
 
27
- // node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/dispatch.js
28
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/dispatch.js
28
29
  var import_cross_spawn2 = __toESM(require_cross_spawn(), 1);
29
30
  import { randomUUID } from "node:crypto";
30
31
  import { constants } from "node:os";
31
32
 
32
- // node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/path.js
33
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/path.js
33
34
  import { readdirSync, statSync } from "node:fs";
34
35
  import { join } from "node:path";
35
36
  var variable = /* @__PURE__ */ __name((env, name, platform) => platform === "win32" ? Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1] : env[name], "variable");
@@ -101,10 +102,9 @@ var findTools = /* @__PURE__ */ __name((search) => {
101
102
  }, "findTools");
102
103
  var isBuiltIn = /* @__PURE__ */ __name((name) => name === "wcat" || BUILT_IN_COMMANDS.includes(name), "isBuiltIn");
103
104
 
104
- // node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/probe.js
105
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/probe.js
105
106
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
106
107
  import { readFileSync } from "node:fs";
107
- var MAX_ANSWER_BYTES = 64 * 1024;
108
108
  var probeDescribe = /* @__PURE__ */ __name((path, { env, timeoutMs }) => new Promise((resolve) => {
109
109
  let child;
110
110
  try {
@@ -132,7 +132,7 @@ var probeDescribe = /* @__PURE__ */ __name((path, { env, timeoutMs }) => new Pro
132
132
  const timer = setTimeout(giveUp, timeoutMs);
133
133
  child.stdout?.on("data", (chunk) => {
134
134
  size += chunk.length;
135
- if (size > MAX_ANSWER_BYTES)
135
+ if (size > DESCRIBE_MAX_BYTES)
136
136
  giveUp();
137
137
  else
138
138
  chunks.push(chunk);
@@ -150,7 +150,7 @@ var baseVersion = /* @__PURE__ */ __name(() => {
150
150
  }
151
151
  }, "baseVersion");
152
152
 
153
- // node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shortcuts.js
153
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shortcuts.js
154
154
  import { closeSync, openSync, readSync, realpathSync, rmSync } from "node:fs";
155
155
  import { basename, dirname } from "node:path";
156
156
  var WIRECAT_PACKAGE = /node_modules[\\/]+@wirecat[\\/]/;
@@ -242,7 +242,7 @@ var removeShortcuts = /* @__PURE__ */ __name((search, names) => listShortcuts(se
242
242
  return { ...statusOf(shortcut.name, shortcut.program, search), changed: true };
243
243
  }), "removeShortcuts");
244
244
 
245
- // node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/dispatch.js
245
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/dispatch.js
246
246
  var DEFAULT_DESCRIBE_TIMEOUT_MS = 2e3;
247
247
  var listTools = /* @__PURE__ */ __name(async (context) => {
248
248
  const installed = installedPrograms(context);
@@ -339,7 +339,7 @@ var runTool = /* @__PURE__ */ __name((path, args, context) => new Promise((resol
339
339
  });
340
340
  }), "runTool");
341
341
  var fail = /* @__PURE__ */ __name(async (error, json, context) => {
342
- const { errorObjectOf, exitCodeOfError, renderError } = await import("./failure-GV77W3CD.js");
342
+ const { errorObjectOf, exitCodeOfError, renderError } = await import("./failure-7NP4QPIN.js");
343
343
  const object = errorObjectOf(error);
344
344
  context.stderr.write(`${renderError(object, { cli: "wcat", interactive: !json })}
345
345
  `);
@@ -3,17 +3,17 @@ import { createRequire as __bundleRequire } from "node:module";
3
3
  const require = __bundleRequire(import.meta.url);
4
4
  import {
5
5
  processStreams
6
- } from "./chunk-OD4U7GUY.js";
6
+ } from "./chunk-7AQGVX5O.js";
7
7
  import {
8
8
  errorObjectOf,
9
9
  exitCodeOfError,
10
10
  renderError
11
- } from "./chunk-UQLWMGSD.js";
11
+ } from "./chunk-PLP5527C.js";
12
12
  import "./chunk-Y5E2WNWB.js";
13
- import "./chunk-2HF2MRXI.js";
14
- import "./chunk-6EY46GAN.js";
15
- import "./chunk-FEZF3TII.js";
16
- import "./chunk-4OSSOWDM.js";
13
+ import "./chunk-6DCLZLGX.js";
14
+ import "./chunk-W2XY6C5S.js";
15
+ import "./chunk-TOVWMURV.js";
16
+ import "./chunk-ELJUBPY4.js";
17
17
  import {
18
18
  __name
19
19
  } from "./chunk-ZVVMGPBJ.js";
@@ -22,8 +22,8 @@ import {
22
22
  import { enableCompileCache } from "node:module";
23
23
  enableCompileCache();
24
24
  var [{ wcatStart }, { DRIVE_APP }] = await Promise.all([
25
- import("./start-AFFA3LKM.js"),
26
- import("./identity-OM6GFZ7T.js")
25
+ import("./start-2ZLDP2OE.js"),
26
+ import("./identity-VDV6CHRW.js")
27
27
  ]);
28
28
  var wcat = await wcatStart({
29
29
  command: DRIVE_APP.command,
@@ -35,15 +35,15 @@ if (wcat.code !== void 0) {
35
35
  process.exitCode = wcat.code;
36
36
  } else {
37
37
  const [{ startCli }, { REASONS }, { interactiveOf }] = await Promise.all([
38
- import("./entry-ET6HGM7A.js"),
39
- import("./reasons-57J2D77K.js"),
38
+ import("./entry-HPLW4QL2.js"),
39
+ import("./reasons-KDAXOC5S.js"),
40
40
  import("./terminal-DHJ4D3BC.js")
41
41
  ]);
42
42
  await startCli({
43
43
  app: DRIVE_APP,
44
44
  interactive: interactiveOf,
45
45
  reasons: REASONS,
46
- run: /* @__PURE__ */ __name(async (entry) => (await import("./program-MYKKJ4F6.js")).run(entry.args, {
46
+ run: /* @__PURE__ */ __name(async (entry) => (await import("./program-PJNWP6JW.js")).run(entry.args, {
47
47
  signal: entry.signal,
48
48
  ask: /* @__PURE__ */ __name((key) => entry.ask(`Allow ${key}?`), "ask"),
49
49
  openBrowser: /* @__PURE__ */ __name((url, command) => entry.openBrowser(url, void 0, command), "openBrowser")
@@ -42399,7 +42399,7 @@ function install11(registers) {
42399
42399
  }
42400
42400
  __name(install11, "install");
42401
42401
 
42402
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
42402
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
42403
42403
  var echartsOption = /* @__PURE__ */ __name((chart) => ({
42404
42404
  animation: false,
42405
42405
  backgroundColor: "#111827",
@@ -42447,7 +42447,7 @@ var echartsOption = /* @__PURE__ */ __name((chart) => ({
42447
42447
  } : {}
42448
42448
  }), "echartsOption");
42449
42449
 
42450
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/charts/echarts.js
42450
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/charts/echarts.js
42451
42451
  use([install2, install, install6, install5, install10, install7, install11]);
42452
42452
  var echartsRenderer = {
42453
42453
  render: /* @__PURE__ */ __name(async (chart, size) => {
@@ -13,17 +13,17 @@ import {
13
13
  truncated,
14
14
  unit,
15
15
  warmEmbedders
16
- } from "./chunk-PO5RQQIG.js";
16
+ } from "./chunk-IMHW7VIV.js";
17
17
  import "./chunk-5DPV7X27.js";
18
- import "./chunk-LMAVCYLQ.js";
19
- import "./chunk-AEX37ETW.js";
20
- import "./chunk-OD4U7GUY.js";
21
- import "./chunk-UQLWMGSD.js";
18
+ import "./chunk-B2LPCHQN.js";
19
+ import "./chunk-UTNRBOEN.js";
20
+ import "./chunk-7AQGVX5O.js";
21
+ import "./chunk-PLP5527C.js";
22
22
  import "./chunk-Y5E2WNWB.js";
23
- import "./chunk-2HF2MRXI.js";
24
- import "./chunk-6EY46GAN.js";
25
- import "./chunk-FEZF3TII.js";
26
- import "./chunk-4OSSOWDM.js";
23
+ import "./chunk-6DCLZLGX.js";
24
+ import "./chunk-W2XY6C5S.js";
25
+ import "./chunk-TOVWMURV.js";
26
+ import "./chunk-ELJUBPY4.js";
27
27
  import "./chunk-ZVVMGPBJ.js";
28
28
  export {
29
29
  WARM_IDLE_MS,
@@ -4,30 +4,30 @@ import {
4
4
  openSession,
5
5
  truncated,
6
6
  unit
7
- } from "./chunk-PO5RQQIG.js";
7
+ } from "./chunk-IMHW7VIV.js";
8
8
  import "./chunk-5DPV7X27.js";
9
- import "./chunk-LMAVCYLQ.js";
10
- import "./chunk-AEX37ETW.js";
11
- import "./chunk-OD4U7GUY.js";
12
- import "./chunk-UQLWMGSD.js";
9
+ import "./chunk-B2LPCHQN.js";
10
+ import "./chunk-UTNRBOEN.js";
11
+ import "./chunk-7AQGVX5O.js";
12
+ import "./chunk-PLP5527C.js";
13
13
  import {
14
14
  importFrom
15
15
  } from "./chunk-Y5E2WNWB.js";
16
- import "./chunk-2HF2MRXI.js";
17
- import "./chunk-6EY46GAN.js";
18
- import "./chunk-FEZF3TII.js";
16
+ import "./chunk-6DCLZLGX.js";
17
+ import "./chunk-W2XY6C5S.js";
18
+ import "./chunk-TOVWMURV.js";
19
19
  import {
20
20
  CliError
21
- } from "./chunk-4OSSOWDM.js";
21
+ } from "./chunk-ELJUBPY4.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
27
27
  import { readFileSync } from "node:fs";
28
28
  import { join } from "node:path";
29
29
 
30
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
30
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
31
31
  var SIZE = 224;
32
32
  var MEAN = [0.48145466, 0.4578275, 0.40821073];
33
33
  var STD = [0.26862954, 0.26130258, 0.27577711];
@@ -66,7 +66,7 @@ var preprocess = /* @__PURE__ */ __name(async (bytes, load = importCanvas) => {
66
66
  return pixels;
67
67
  }, "preprocess");
68
68
 
69
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
69
+ // node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
70
70
  var openPictureEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = 4, canvas } = {}) => {
71
71
  const { Tokenizer } = await importFrom(new URL("images/picture/embedder.js", import.meta.resolve("@wirecat/cli-core")).href, "@huggingface/tokenizers");
72
72
  const path = /* @__PURE__ */ __name((name) => join(directory, model.id, name), "path");
@@ -0,0 +1,25 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ firstRunAt,
5
+ openBrowser,
6
+ startCli
7
+ } from "./chunk-EHU6EYGO.js";
8
+ import "./chunk-VHQYWFWV.js";
9
+ import "./chunk-TMHF4BCL.js";
10
+ import "./chunk-IKHOIXJR.js";
11
+ import "./chunk-JMJIH6JH.js";
12
+ import "./chunk-VDZY3L7U.js";
13
+ import "./chunk-7AQGVX5O.js";
14
+ import "./chunk-PLP5527C.js";
15
+ import "./chunk-Y5E2WNWB.js";
16
+ import "./chunk-6DCLZLGX.js";
17
+ import "./chunk-W2XY6C5S.js";
18
+ import "./chunk-TOVWMURV.js";
19
+ import "./chunk-ELJUBPY4.js";
20
+ import "./chunk-ZVVMGPBJ.js";
21
+ export {
22
+ firstRunAt,
23
+ openBrowser,
24
+ startCli
25
+ };