@wirecat/drive-cli 0.60.0 → 0.62.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 (174) hide show
  1. package/README.md +4 -5
  2. package/dist/bin/drive.js +2 -2
  3. package/dist/browse.d.ts +20 -0
  4. package/dist/browse.d.ts.map +1 -0
  5. package/dist/browse.js +146 -0
  6. package/dist/browse.js.map +1 -0
  7. package/dist/bundle/{all-profiles-537I27Z4.js → all-profiles-CKD2DWUK.js} +14 -14
  8. package/dist/bundle/{anthropic-X4NWVHDF.js → anthropic-E3T4USLA.js} +9 -9
  9. package/dist/bundle/{app-server-KSHJKKS7.js → app-server-JB2AEWWL.js} +58 -55
  10. package/dist/bundle/{bun-WTBGGCUC.js → bun-CC44AAND.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-T7Y3JFFD.js → bun-sqlite-AUMFKYVR.js} +8 -8
  12. package/dist/bundle/{chunk-2AXA5SKP.js → chunk-27YUUGXQ.js} +1 -1
  13. package/dist/bundle/{chunk-HIP43OGZ.js → chunk-2HF2MRXI.js} +1 -1
  14. package/dist/bundle/{chunk-AXWXQNTC.js → chunk-2KN35F32.js} +10 -10
  15. package/dist/bundle/{chunk-EBLA7GXY.js → chunk-4OSSOWDM.js} +2 -1
  16. package/dist/bundle/{chunk-XFXRGQXJ.js → chunk-4SIZEJ3M.js} +2 -2
  17. package/dist/bundle/{chunk-LQSRVQ3V.js → chunk-67ZQCWBV.js} +3 -3
  18. package/dist/bundle/{chunk-FO4TCH6P.js → chunk-6EY46GAN.js} +2 -2
  19. package/dist/bundle/{chunk-4XZXH2NM.js → chunk-7W5HYGVW.js} +4 -2
  20. package/dist/bundle/{chunk-FZOCQQ66.js → chunk-7ZXIWZQ6.js} +12 -12
  21. package/dist/bundle/{chunk-YGG7UA3C.js → chunk-AH5C3D3D.js} +5 -5
  22. package/dist/bundle/{chunk-YDN2RH5S.js → chunk-AQVUEZEP.js} +2 -2
  23. package/dist/bundle/{chunk-N7S2UPF3.js → chunk-CJHY5YIF.js} +494 -227
  24. package/dist/bundle/{chunk-MXP35VPO.js → chunk-CZ2GJHLL.js} +2 -2
  25. package/dist/bundle/{chunk-HQVIK6PM.js → chunk-DJOAMGF4.js} +262 -368
  26. package/dist/bundle/{chunk-HCJG7ENG.js → chunk-DRZZBN3V.js} +3 -3
  27. package/dist/bundle/{chunk-TXMTMEHW.js → chunk-DWJHL6DV.js} +4 -4
  28. package/dist/bundle/{chunk-S36HRPNS.js → chunk-E43ENLJJ.js} +1 -1
  29. package/dist/bundle/{chunk-4VHBDVY2.js → chunk-EOOGWUTP.js} +14 -10
  30. package/dist/bundle/{chunk-5XHLQZAG.js → chunk-EW7PKB4M.js} +58 -49
  31. package/dist/bundle/{chunk-TKW4QWCY.js → chunk-FEZF3TII.js} +12 -6
  32. package/dist/bundle/{chunk-KEXTTZJM.js → chunk-FNWIJ6EJ.js} +2 -2
  33. package/dist/bundle/{chunk-OYNUBWD2.js → chunk-FUITWY7O.js} +1 -1
  34. package/dist/bundle/{chunk-TVQDMP2F.js → chunk-HCNQT3QE.js} +1440 -771
  35. package/dist/bundle/{chunk-FTZNUZO7.js → chunk-HG6CAYJH.js} +3 -3
  36. package/dist/bundle/{chunk-SZXI4OXX.js → chunk-IR4SQLBR.js} +2 -2
  37. package/dist/bundle/{chunk-UTFATA4K.js → chunk-JK3U25QZ.js} +1 -1
  38. package/dist/bundle/{chunk-SBHSNOU4.js → chunk-JN5TVEEL.js} +96 -27
  39. package/dist/bundle/{chunk-IXN7Y6JA.js → chunk-KLFSRKHB.js} +1 -1
  40. package/dist/bundle/{chunk-57QVQGBE.js → chunk-L7K2MOIC.js} +22 -22
  41. package/dist/bundle/{chunk-JGUJJNGZ.js → chunk-LQKD257P.js} +582 -424
  42. package/dist/bundle/{chunk-GVRS5AIH.js → chunk-LWE4JGRN.js} +2 -2
  43. package/dist/bundle/{chunk-D6WIWOQC.js → chunk-MN4VXU3M.js} +4 -4
  44. package/dist/bundle/{chunk-QIJWSKZL.js → chunk-N7OZPKU7.js} +4 -4
  45. package/dist/bundle/{chunk-W62CON5K.js → chunk-O2XOX4HB.js} +34 -10
  46. package/dist/bundle/{chunk-PDYHEWKG.js → chunk-O7ALBI2I.js} +5 -5
  47. package/dist/bundle/{chunk-PETFPXLU.js → chunk-OBH5BA62.js} +3 -3
  48. package/dist/bundle/{chunk-246P2DCT.js → chunk-OD4U7GUY.js} +113 -51
  49. package/dist/bundle/{chunk-67QXMO2G.js → chunk-ONP2IBHY.js} +26 -26
  50. package/dist/bundle/{chunk-JQLIM6BH.js → chunk-OTROVC4E.js} +1 -1
  51. package/dist/bundle/{chunk-73TTP6ET.js → chunk-PEQA6LA5.js} +617 -243
  52. package/dist/bundle/{chunk-ALWTUDZF.js → chunk-Q2LRPOKL.js} +22 -14
  53. package/dist/bundle/{chunk-CKGHRWVR.js → chunk-QCKZ3GAA.js} +4 -4
  54. package/dist/bundle/chunk-QCX6XZLA.js +415 -0
  55. package/dist/bundle/{chunk-UVLSWLPZ.js → chunk-QH7DOVO3.js} +204 -58
  56. package/dist/bundle/{chunk-OMKUBCNN.js → chunk-QTI6IVHZ.js} +8 -8
  57. package/dist/bundle/{chunk-6HTKB4WC.js → chunk-R347FPYU.js} +1 -1
  58. package/dist/bundle/chunk-RIDQNVZM.js +64 -0
  59. package/dist/bundle/{chunk-ZPQS7XJA.js → chunk-RPMKG63Z.js} +18 -4
  60. package/dist/bundle/{chunk-XDIEQ2CE.js → chunk-RWSXVCSG.js} +3 -3
  61. package/dist/bundle/{chunk-3TQHIHZI.js → chunk-SVPCHFKI.js} +2 -2
  62. package/dist/bundle/{chunk-V2VMBM7O.js → chunk-SW4I5BR7.js} +2 -2
  63. package/dist/bundle/{chunk-EHAI773E.js → chunk-T5NWWXS2.js} +2 -2
  64. package/dist/bundle/{chunk-4CBZEAQ7.js → chunk-T7X53FCJ.js} +34 -34
  65. package/dist/bundle/{chunk-77C5XRH3.js → chunk-TDX4GZFO.js} +7 -7
  66. package/dist/bundle/{chunk-PPL5ASW2.js → chunk-U2BFYSQV.js} +14158 -2039
  67. package/dist/bundle/{chunk-DQDKLZAK.js → chunk-UGXN5D7U.js} +719 -128
  68. package/dist/bundle/{chunk-UNJE63JK.js → chunk-UOXOLGNG.js} +2 -2
  69. package/dist/bundle/{chunk-LJ77Y3TK.js → chunk-UQLWMGSD.js} +6 -5
  70. package/dist/bundle/{chunk-HFGR33KD.js → chunk-VAYB52HF.js} +33 -31
  71. package/dist/bundle/{chunk-GD6TQ6U4.js → chunk-VQDD64A4.js} +8 -8
  72. package/dist/bundle/{chunk-22ATLSNK.js → chunk-W4RTIL7S.js} +5 -5
  73. package/dist/bundle/{chunk-UVYVIHEA.js → chunk-WZKEU7WR.js} +4 -2
  74. package/dist/bundle/{chunk-5AMRCBMP.js → chunk-XEW2EN6F.js} +51 -37
  75. package/dist/bundle/{chunk-O37ESNAP.js → chunk-XFRRKZHQ.js} +242 -90
  76. package/dist/bundle/{chunk-K6XVRA6U.js → chunk-XS5POQST.js} +1 -1
  77. package/dist/bundle/{chunk-IRZ7OF3F.js → chunk-XZUS7XRO.js} +1 -1
  78. package/dist/bundle/{chunk-V7QMHMR3.js → chunk-YALI4C7C.js} +6 -6
  79. package/dist/bundle/{chunk-73MNUSP3.js → chunk-YMWENGKH.js} +1 -1
  80. package/dist/bundle/{chunk-MVNPE5FZ.js → chunk-YOJDGAPT.js} +8 -8
  81. package/dist/bundle/{chunk-DMHGWL5D.js → chunk-YPFUYQDP.js} +13 -13
  82. package/dist/bundle/{chunk-VVCZS42A.js → chunk-YUWPNG7B.js} +1 -1
  83. package/dist/bundle/{chunk-VRW6ZDTH.js → chunk-YXYTY4GF.js} +39 -26
  84. package/dist/bundle/{chunk-ZYCLPJ7U.js → chunk-ZMOUUOT2.js} +1 -1
  85. package/dist/bundle/command-contract-OB5BRABN.js +39 -0
  86. package/dist/bundle/{decode-35N57AFW.js → decode-WIIX3Y2X.js} +8 -8
  87. package/dist/bundle/{dispatch-CWXZW3PL.js → dispatch-GEFIXA6X.js} +9 -9
  88. package/dist/bundle/drive.js +11 -11
  89. package/dist/bundle/{echarts-3P3QZWMU.js → echarts-OYINM4C4.js} +2 -2
  90. package/dist/bundle/{embed-Q6Q5IOJQ.js → embed-DWZIYMBX.js} +9 -9
  91. package/dist/bundle/{embedder-D44JDTAA.js → embedder-ILWH7ZRM.js} +12 -12
  92. package/dist/bundle/entry-V5V3TOTY.js +22 -0
  93. package/dist/bundle/{failure-GRMMSDCZ.js → failure-GV77W3CD.js} +4 -4
  94. package/dist/bundle/first-run-V3VVLQF4.js +30 -0
  95. package/dist/bundle/first-screen-Y3RIN7FU.js +37 -0
  96. package/dist/bundle/{google-6ZZDKFBN.js → google-KLZSUAVY.js} +13 -13
  97. package/dist/bundle/{google-api-E6MOJ4ZD.js → google-api-HZQ5R4ZO.js} +83 -64
  98. package/dist/bundle/grants-L7XLHLUT.js +105 -0
  99. package/dist/bundle/{identity-TID7S5NE.js → identity-J2DON4IO.js} +6 -6
  100. package/dist/bundle/{instructions-ANJN4HV3.js → instructions-HGOJ23AJ.js} +1 -1
  101. package/dist/bundle/{login-BGMK2ABH.js → login-BD2TS4GY.js} +64 -64
  102. package/dist/bundle/{mcp-WBHKX5E3.js → mcp-GWDA3HOA.js} +2 -2
  103. package/dist/bundle/{node-VOB45ES2.js → node-CPKTDPH7.js} +2 -2
  104. package/dist/bundle/{node-sqlite-TSX6XQY2.js → node-sqlite-IXDCRLSX.js} +9 -9
  105. package/dist/bundle/oauth-HOGY4YBB.js +22 -0
  106. package/dist/bundle/{open-3USWHGNR.js → open-O7P3ZV3Y.js} +8 -8
  107. package/dist/bundle/{openai-YZ5VGPIP.js → openai-RCFQKCXC.js} +17 -17
  108. package/dist/bundle/{process-44JS2W7L.js → process-KXDRJO22.js} +1 -1
  109. package/dist/bundle/{program-TZLAFKJV.js → program-UCHFC7JQ.js} +266 -104
  110. package/dist/bundle/prompt-EVPPBN5W.js +17 -0
  111. package/dist/bundle/{reasons-ZK3U3CIN.js → reasons-57J2D77K.js} +5 -5
  112. package/dist/bundle/{recognize-OFW7HWTM.js → recognize-MRCYGP2J.js} +7 -7
  113. package/dist/bundle/{remote-YBDRZQZ5.js → remote-L3L4PHKF.js} +10 -10
  114. package/dist/bundle/{rerank-TQQNS5FJ.js → rerank-PSOE6XFT.js} +10 -10
  115. package/dist/bundle/{serve-OPZXMVLH.js → serve-72OGS3BF.js} +12 -12
  116. package/dist/bundle/server-C5TGNFXW.js +70 -0
  117. package/dist/bundle/{server-2D6DDIK5.js → server-SCXKYHBO.js} +44 -44
  118. package/dist/bundle/{services-34WKT3NN.js → services-YAFTELBI.js} +42 -32
  119. package/dist/bundle/{sqlite-runtime-WPUMKLUV.js → sqlite-runtime-DLK4SU33.js} +9 -9
  120. package/dist/bundle/{start-ZXUJZ4JV.js → start-AFFA3LKM.js} +9 -7
  121. package/dist/bundle/{state-AV2RB3AQ.js → state-T5VNAJSZ.js} +9 -9
  122. package/dist/bundle/{store-YKV4GAMS.js → store-4OFK7PKQ.js} +48 -28
  123. package/dist/bundle/{store-3M7N2Q5T.js → store-R6MSY2IM.js} +20 -18
  124. package/dist/bundle/store-maintenance-command-QDMCXGV6.js +60 -0
  125. package/dist/bundle/tokens-HIG36RNS.js +103 -0
  126. package/dist/commands/config.js +1 -1
  127. package/dist/commands/config.js.map +1 -1
  128. package/dist/commands/folders.d.ts +2 -1
  129. package/dist/commands/folders.d.ts.map +1 -1
  130. package/dist/commands/folders.js +16 -3
  131. package/dist/commands/folders.js.map +1 -1
  132. package/dist/commands/session.d.ts.map +1 -1
  133. package/dist/commands/session.js +10 -2
  134. package/dist/commands/session.js.map +1 -1
  135. package/dist/config.d.ts +16 -5
  136. package/dist/config.d.ts.map +1 -1
  137. package/dist/config.js +11 -17
  138. package/dist/config.js.map +1 -1
  139. package/dist/download.d.ts +3 -2
  140. package/dist/download.d.ts.map +1 -1
  141. package/dist/download.js +21 -9
  142. package/dist/download.js.map +1 -1
  143. package/dist/google-api.d.ts +3 -1
  144. package/dist/google-api.d.ts.map +1 -1
  145. package/dist/google-api.js +27 -7
  146. package/dist/google-api.js.map +1 -1
  147. package/dist/login.js +1 -1
  148. package/dist/login.js.map +1 -1
  149. package/dist/program.d.ts.map +1 -1
  150. package/dist/program.js +7 -7
  151. package/dist/program.js.map +1 -1
  152. package/dist/tokens.d.ts.map +1 -1
  153. package/dist/tokens.js +15 -6
  154. package/dist/tokens.js.map +1 -1
  155. package/dist/version.d.ts +1 -1
  156. package/dist/version.js +1 -1
  157. package/package.json +3 -3
  158. package/dist/bundle/chunk-77YTRBL6.js +0 -249
  159. package/dist/bundle/chunk-YYHKVOVK.js +0 -132
  160. package/dist/bundle/command-contract-NUIWUVYB.js +0 -39
  161. package/dist/bundle/entry-ZHCNI7XO.js +0 -22
  162. package/dist/bundle/first-run-3DC2SDWM.js +0 -30
  163. package/dist/bundle/first-screen-YJF4YODC.js +0 -37
  164. package/dist/bundle/grants-GWXDH5GM.js +0 -105
  165. package/dist/bundle/oauth-CEOYXW6C.js +0 -22
  166. package/dist/bundle/prompt-SG7LAOXW.js +0 -17
  167. package/dist/bundle/server-R6G2O772.js +0 -70
  168. package/dist/bundle/store-maintenance-command-WDXNY4ZF.js +0 -60
  169. package/dist/bundle/tokens-F63RXXEF.js +0 -103
  170. package/dist/oauth-application.d.ts +0 -5
  171. package/dist/oauth-application.d.ts.map +0 -1
  172. package/dist/oauth-application.js +0 -9
  173. package/dist/oauth-application.js.map +0 -1
  174. /package/dist/bundle/{chunk-LK2E2ELG.js → chunk-ZQ3GWKDQ.js} +0 -0
@@ -3,24 +3,24 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  envName,
5
5
  readOnlyLockOf
6
- } from "./chunk-4XZXH2NM.js";
6
+ } from "./chunk-7W5HYGVW.js";
7
7
  import {
8
8
  ensureSqlite
9
- } from "./chunk-3TQHIHZI.js";
9
+ } from "./chunk-SVPCHFKI.js";
10
10
  import {
11
11
  catchCrashes
12
- } from "./chunk-LJ77Y3TK.js";
12
+ } from "./chunk-UQLWMGSD.js";
13
13
  import {
14
14
  CliError
15
- } from "./chunk-EBLA7GXY.js";
15
+ } from "./chunk-4OSSOWDM.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // 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/cli/entry.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/cli/entry.js
21
21
  import { spawn } from "node:child_process";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
24
24
  import { appendFileSync } from "node:fs";
25
25
  var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
26
26
  const words = [];
@@ -44,7 +44,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
44
44
  `);
45
45
  }, "logVersion");
46
46
 
47
- // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/entry.js
47
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/cli/entry.js
48
48
  var processIo = /* @__PURE__ */ __name(() => ({
49
49
  argv: process.argv,
50
50
  env: process.env,
@@ -98,8 +98,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
98
98
  if (command.optsWithGlobals().dryRun === true)
99
99
  return;
100
100
  const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
101
- import("./first-run-3DC2SDWM.js"),
102
- import("./command-contract-NUIWUVYB.js")
101
+ import("./first-run-V3VVLQF4.js"),
102
+ import("./command-contract-OB5BRABN.js")
103
103
  ]);
104
104
  await setupAtStart({
105
105
  command: entry.app.command,
@@ -114,7 +114,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
114
114
  ask: /* @__PURE__ */ __name(async (question, command) => {
115
115
  if (headless(command) || io.stdin.isTTY !== true)
116
116
  return false;
117
- const { readSecret } = await import("./prompt-SG7LAOXW.js");
117
+ const { readSecret } = await import("./prompt-EVPPBN5W.js");
118
118
  const answer = await readSecret(`${question} [y/N] `, {
119
119
  input: io.stdin,
120
120
  output: io.stderr,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
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/errors.js
7
+ // 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/errors.js
8
8
  var errorCodes = [
9
9
  "validation_error",
10
10
  "configuration_error",
@@ -19,6 +19,7 @@ var errorCodes = [
19
19
  "provider_unavailable",
20
20
  "invalid_response",
21
21
  "outcome_unknown",
22
+ "conflict",
22
23
  "cancelled"
23
24
  ];
24
25
  var BRAND = /* @__PURE__ */ Symbol.for("@wirecat/cli-base/CliError");
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  REASONS
5
- } from "./chunk-OYNUBWD2.js";
5
+ } from "./chunk-FUITWY7O.js";
6
6
 
7
7
  // dist/version.js
8
- var VERSION = "0.60.0";
8
+ var VERSION = "0.62.0";
9
9
 
10
10
  // dist/identity.js
11
11
  var PACKAGE = "@wirecat/drive-cli";
@@ -6,13 +6,13 @@ import {
6
6
  describeProgram,
7
7
  flatten,
8
8
  profileFree
9
- } from "./chunk-73TTP6ET.js";
9
+ } from "./chunk-PEQA6LA5.js";
10
10
  import {
11
11
  VERSION
12
- } from "./chunk-XFXRGQXJ.js";
12
+ } from "./chunk-4SIZEJ3M.js";
13
13
  import {
14
14
  CliError
15
- } from "./chunk-EBLA7GXY.js";
15
+ } from "./chunk-4OSSOWDM.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
@@ -15,12 +15,12 @@ import {
15
15
  string,
16
16
  text,
17
17
  unknown
18
- } from "./chunk-TKW4QWCY.js";
18
+ } from "./chunk-FEZF3TII.js";
19
19
  import {
20
20
  __name
21
21
  } from "./chunk-ZVVMGPBJ.js";
22
22
 
23
- // 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/standards/log.js
23
+ // 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/standards/log.js
24
24
  var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
25
25
  var logRecordSchema = strictObject({
26
26
  time: isoTime,
@@ -2,24 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-EBLA7GXY.js";
5
+ } from "./chunk-4OSSOWDM.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // 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/ports/app.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/ports/app.js
11
11
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
12
12
  var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
13
13
  const name = envName(app, "READ_ONLY");
14
14
  const value = env[name];
15
15
  return value === void 0 || value.trim() === "" || value === "0" ? void 0 : name;
16
16
  }, "readOnlyLockOf");
17
+ var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLDER"), "mailHolderVariable");
17
18
  var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
18
19
  var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
19
20
 
20
21
  export {
21
22
  envName,
22
23
  readOnlyLockOf,
24
+ mailHolderVariable,
23
25
  MESSENGER_CHANGE_REFUSAL,
24
26
  readOnlyRefusal
25
27
  };
@@ -5,28 +5,28 @@ import {
5
5
  readSetupAnswers,
6
6
  unanswered,
7
7
  writeSetupAnswers
8
- } from "./chunk-D6WIWOQC.js";
8
+ } from "./chunk-MN4VXU3M.js";
9
9
  import {
10
10
  updateCommand
11
- } from "./chunk-CKGHRWVR.js";
11
+ } from "./chunk-QCKZ3GAA.js";
12
12
  import {
13
13
  DEFAULT_STEMMERS,
14
14
  LANGUAGES
15
- } from "./chunk-MVNPE5FZ.js";
15
+ } from "./chunk-YOJDGAPT.js";
16
16
  import {
17
17
  sharedConfigPath
18
- } from "./chunk-77C5XRH3.js";
18
+ } from "./chunk-TDX4GZFO.js";
19
19
  import {
20
20
  storePath
21
- } from "./chunk-KEXTTZJM.js";
21
+ } from "./chunk-FNWIJ6EJ.js";
22
22
  import {
23
23
  installerOf
24
- } from "./chunk-2AXA5SKP.js";
24
+ } from "./chunk-27YUUGXQ.js";
25
25
  import {
26
26
  __name
27
27
  } from "./chunk-ZVVMGPBJ.js";
28
28
 
29
- // 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/cli/first-run.js
29
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/cli/first-run.js
30
30
  import { spawnSync } from "node:child_process";
31
31
  import { accessSync, constants, realpathSync } from "node:fs";
32
32
  import { delimiter, join } from "node:path";
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
84
84
  return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
85
85
  }, "suggested");
86
86
  var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
87
- const { openStore } = await import("./store-3M7N2Q5T.js");
87
+ const { openStore } = await import("./store-R6MSY2IM.js");
88
88
  const store = await openStore({ env });
89
89
  let rebuild = false;
90
90
  try {
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
113
113
  if (!rebuild)
114
114
  return;
115
115
  const [{ openCache }, { buildStems }] = await Promise.all([
116
- import("./open-3USWHGNR.js"),
117
- import("./store-maintenance-command-WDXNY4ZF.js")
116
+ import("./open-O7P3ZV3Y.js"),
117
+ import("./store-maintenance-command-QDMCXGV6.js")
118
118
  ]);
119
119
  const database = await openCache(storePath(env));
120
120
  try {
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
126
126
  var askTools = /* @__PURE__ */ __name(async (run) => {
127
127
  const { command, env, io } = run;
128
128
  const installed = run.installed ?? ((name) => onPath(name, env));
129
- const { WIRECAT_TOOLS } = await import("./first-screen-YJF4YODC.js");
129
+ const { WIRECAT_TOOLS } = await import("./first-screen-Y3RIN7FU.js");
130
130
  const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
131
131
  const missing = others.filter((tool) => !installed(tool.command));
132
132
  io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
199
199
  contentLanguages: start.contentLanguages,
200
200
  all: start.path[0] === "setup",
201
201
  io: {
202
- ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-SG7LAOXW.js")).readSecret(prompt, { input, echo: true }), "ask"),
202
+ ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-EVPPBN5W.js")).readSecret(prompt, { input, echo: true }), "ask"),
203
203
  say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
204
204
  `), "say")
205
205
  }
@@ -8,23 +8,23 @@ import {
8
8
  installFiles,
9
9
  megabytes,
10
10
  sharedModelsDirectory
11
- } from "./chunk-ALWTUDZF.js";
11
+ } from "./chunk-Q2LRPOKL.js";
12
12
  import {
13
13
  importFrom
14
14
  } from "./chunk-Y5E2WNWB.js";
15
15
  import {
16
16
  CliError
17
- } from "./chunk-EBLA7GXY.js";
17
+ } from "./chunk-4OSSOWDM.js";
18
18
  import {
19
19
  __name
20
20
  } from "./chunk-ZVVMGPBJ.js";
21
21
 
22
- // 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/embeddings/embed.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
23
23
  import { readFileSync as readFileSync2 } from "node:fs";
24
24
  import { availableParallelism } from "node:os";
25
25
  import { basename, join as join2 } from "node:path";
26
26
 
27
- // 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/embeddings/onnx-runtime.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
28
28
  import { createHash } from "node:crypto";
29
29
  import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
30
30
  import { join } from "node:path";
@@ -207,7 +207,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
207
207
  return { ort, session: await ort.InferenceSession.create(bytes, options) };
208
208
  }, "openSession");
209
209
 
210
- // 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/embeddings/embed.js
210
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
211
211
  var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
212
212
  var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
213
213
  var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  errorCodes
5
- } from "./chunk-EBLA7GXY.js";
5
+ } from "./chunk-4OSSOWDM.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // 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/errors/failures.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/errors/failures.js
11
11
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
12
12
  var isCommanderFailure = /* @__PURE__ */ __name((value) => {
13
13
  const { code, exitCode } = value ?? {};