@wirecat/drive-cli 0.57.0 → 0.58.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 (124) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bin/drive.js.map +1 -1
  3. package/dist/bundle/{all-profiles-7LSZ3CC3.js → all-profiles-ANDWOJDL.js} +10 -6
  4. package/dist/bundle/{anthropic-3QRM4QXB.js → anthropic-EZPZUWGS.js} +10 -6
  5. package/dist/bundle/{app-server-WWNMUHID.js → app-server-67WL423B.js} +57 -51
  6. package/dist/bundle/{bun-sqlite-GSLSN3OT.js → bun-sqlite-A5ZKTIYC.js} +7 -3
  7. package/dist/bundle/{chunk-L4BBK7UX.js → chunk-2TASMYGM.js} +4 -2
  8. package/dist/bundle/{chunk-VTJF2L5E.js → chunk-34XHR5FL.js} +5 -5
  9. package/dist/bundle/{chunk-JIGMCW4C.js → chunk-3GXNODTB.js} +3 -3
  10. package/dist/bundle/chunk-3RG27IWA.js +201 -0
  11. package/dist/bundle/{chunk-KHNDZNQA.js → chunk-4EEOJ54H.js} +40 -36
  12. package/dist/bundle/{chunk-Q3TMNETS.js → chunk-4GZLX2ME.js} +27 -21
  13. package/dist/bundle/{chunk-B3TPS7BW.js → chunk-4ICWGMHN.js} +6 -4
  14. package/dist/bundle/{chunk-4F2VRJZE.js → chunk-4UU4ONKY.js} +31 -23
  15. package/dist/bundle/{chunk-IJ2S53WJ.js → chunk-5NPFHWLP.js} +7 -7
  16. package/dist/bundle/{chunk-566W4Q6L.js → chunk-6SARLV3Z.js} +1 -1
  17. package/dist/bundle/{chunk-AKPFH3KC.js → chunk-6THTUYPT.js} +1 -1
  18. package/dist/bundle/{chunk-GKHUHRSL.js → chunk-7AL57FCK.js} +1 -1
  19. package/dist/bundle/{chunk-SRNXTXJN.js → chunk-7VFD3UJQ.js} +1 -1
  20. package/dist/bundle/{chunk-CGCQNYB3.js → chunk-7VUHY5LP.js} +1 -1
  21. package/dist/bundle/{chunk-TZHCS5MG.js → chunk-7YUZAEBG.js} +1 -1
  22. package/dist/bundle/{chunk-JUKVJ7M2.js → chunk-A4DHPOFQ.js} +7 -5
  23. package/dist/bundle/chunk-A7FMNTCK.js +166 -0
  24. package/dist/bundle/{chunk-2QLLKDE5.js → chunk-AFZ33AC7.js} +47 -43
  25. package/dist/bundle/{chunk-XGNADVIA.js → chunk-ALTG7BZQ.js} +14 -215
  26. package/dist/bundle/chunk-ASPIEEXN.js +34 -0
  27. package/dist/bundle/{chunk-WJOKTIOJ.js → chunk-BAEIAQWH.js} +1 -1
  28. package/dist/bundle/{chunk-W6FYYQ2J.js → chunk-BKM2CGG2.js} +2 -2
  29. package/dist/bundle/{chunk-G34Y5RAC.js → chunk-BLJVCJZU.js} +5 -5
  30. package/dist/bundle/{chunk-7SNS443B.js → chunk-D72FL3L3.js} +1 -1
  31. package/dist/bundle/{chunk-OYNSFQ7K.js → chunk-D72URWJE.js} +1 -39
  32. package/dist/bundle/{chunk-B64EY2SC.js → chunk-ED5JNYN5.js} +27 -27
  33. package/dist/bundle/{chunk-64E6QXXQ.js → chunk-ESF2B22R.js} +7 -7
  34. package/dist/bundle/{chunk-5KNIVHP6.js → chunk-FD7A6745.js} +6 -19
  35. package/dist/bundle/{chunk-ADLS6FVG.js → chunk-FXBHOCJK.js} +1 -1
  36. package/dist/bundle/{chunk-TKVSJV5P.js → chunk-GDRO4YMH.js} +5 -3
  37. package/dist/bundle/{chunk-KYNTSA6K.js → chunk-I4VUHZSD.js} +5 -5
  38. package/dist/bundle/{chunk-O5KDIVGE.js → chunk-IBJOO5FG.js} +17 -15
  39. package/dist/bundle/{chunk-J2HGHSLX.js → chunk-IH4UCM5K.js} +3 -3
  40. package/dist/bundle/chunk-ITD7WI23.js +45 -0
  41. package/dist/bundle/{chunk-EN7OZ5JH.js → chunk-IXXQZCNK.js} +13 -11
  42. package/dist/bundle/{chunk-R5GJZPRF.js → chunk-J36Z6BDZ.js} +6 -4
  43. package/dist/bundle/{chunk-6CFSDU56.js → chunk-JEMKSWVI.js} +15 -13
  44. package/dist/bundle/chunk-JZ67M3HR.js +46 -0
  45. package/dist/bundle/{chunk-WJPVGXKA.js → chunk-KCBHOYNZ.js} +3 -3
  46. package/dist/bundle/{chunk-QAT6UXZZ.js → chunk-MBNKNWOG.js} +43 -39
  47. package/dist/bundle/{chunk-AHBUTDS7.js → chunk-NKL5XXOM.js} +1 -1
  48. package/dist/bundle/chunk-NYINLKWT.js +23 -0
  49. package/dist/bundle/{chunk-GIQFBXQN.js → chunk-O3K46QRL.js} +5 -120
  50. package/dist/bundle/{chunk-NLLWLCUZ.js → chunk-OG5ERX4S.js} +2 -2
  51. package/dist/bundle/{chunk-RAEKC6TV.js → chunk-OUQVZTF5.js} +7 -5
  52. package/dist/bundle/{chunk-W5FOPSJZ.js → chunk-OZEJA67C.js} +6 -4
  53. package/dist/bundle/{chunk-4UQLL6RJ.js → chunk-P5MCZ635.js} +2 -2
  54. package/dist/bundle/{chunk-YZ6SYLDC.js → chunk-PYPLD7JO.js} +1 -1
  55. package/dist/bundle/{chunk-6ZA4NR5H.js → chunk-QVIJMV22.js} +2 -2
  56. package/dist/bundle/chunk-RRHC5SBB.js +106 -0
  57. package/dist/bundle/{chunk-WBYCUBYM.js → chunk-SPVPKHBQ.js} +25 -23
  58. package/dist/bundle/{chunk-XJVK7ETL.js → chunk-SWFA36F3.js} +5 -3
  59. package/dist/bundle/{chunk-HNUSPNUQ.js → chunk-TCJRJ3TE.js} +1 -1
  60. package/dist/bundle/{chunk-TR5656OS.js → chunk-TIXIB32T.js} +16 -12
  61. package/dist/bundle/{chunk-KM4Y55ZE.js → chunk-TMW526H3.js} +4 -4
  62. package/dist/bundle/{chunk-WAVJWGUC.js → chunk-TNX77VPM.js} +35 -33
  63. package/dist/bundle/{chunk-EE7R457T.js → chunk-UBZ2LH7N.js} +229 -221
  64. package/dist/bundle/{chunk-2ULJW5BA.js → chunk-UMJLXAJI.js} +1 -1
  65. package/dist/bundle/{chunk-ELIYJXIY.js → chunk-UTDL7MKT.js} +1 -1
  66. package/dist/bundle/{chunk-ISK4K7UE.js → chunk-VXI67T7U.js} +1 -1
  67. package/dist/bundle/{chunk-LBFFI6FE.js → chunk-W6KMNO3C.js} +9 -7
  68. package/dist/bundle/{chunk-RB674T6L.js → chunk-WICYDOVL.js} +15 -11
  69. package/dist/bundle/{chunk-UKMFPBAO.js → chunk-X4F3M6L6.js} +3 -3
  70. package/dist/bundle/{chunk-373WJIHE.js → chunk-X5XWUQNU.js} +1 -1
  71. package/dist/bundle/{chunk-CD736BG3.js → chunk-XQMMB6ST.js} +1 -1
  72. package/dist/bundle/{chunk-3BXSLNWW.js → chunk-Y6M2G7JK.js} +12 -10
  73. package/dist/bundle/{chunk-OZJMZSFB.js → chunk-YHRJUZ3O.js} +2 -2
  74. package/dist/bundle/{chunk-JLKNUFL2.js → chunk-Z5GDNCTJ.js} +1 -1
  75. package/dist/bundle/command-contract-ZCXFT764.js +39 -0
  76. package/dist/bundle/{decode-5MHMPYKE.js → decode-2R6DTGRX.js} +9 -5
  77. package/dist/bundle/dispatch-DEXAEMIN.js +412 -0
  78. package/dist/bundle/drive.js +40 -22
  79. package/dist/bundle/{embed-TF66ODAR.js → embed-RJJWOLKN.js} +9 -5
  80. package/dist/bundle/{embedder-EDWOIAC2.js → embedder-DWYS5JYJ.js} +11 -7
  81. package/dist/bundle/entry-E6H7IUPV.js +21 -0
  82. package/dist/bundle/failure-GBZ4L5QO.js +26 -0
  83. package/dist/bundle/first-run-DI2JIG44.js +30 -0
  84. package/dist/bundle/first-screen-X5N4TCKD.js +37 -0
  85. package/dist/bundle/{google-A4F2WFO4.js → google-L776ETP4.js} +13 -9
  86. package/dist/bundle/{google-api-ZXGQOJUI.js → google-api-AI5ZJJ2M.js} +54 -48
  87. package/dist/bundle/grants-HKGYAWL6.js +104 -0
  88. package/dist/bundle/{identity-4IO7WGG4.js → identity-MDLWK2TX.js} +5 -3
  89. package/dist/bundle/{login-A4QHJ5DA.js → login-6HHQLRHY.js} +60 -54
  90. package/dist/bundle/{mcp-VVMPUDSL.js → mcp-ZZUYI44D.js} +4 -2
  91. package/dist/bundle/{node-P4E63KXA.js → node-KM3CUABH.js} +9 -9
  92. package/dist/bundle/{node-sqlite-AFQTE4XZ.js → node-sqlite-AVNHGMVL.js} +7 -3
  93. package/dist/bundle/{oauth-46XBJBML.js → oauth-UVU52X57.js} +9 -5
  94. package/dist/bundle/{open-WJCRBIP7.js → open-BXPLXJC2.js} +7 -3
  95. package/dist/bundle/{openai-3TIBDWZA.js → openai-CRO5GDBY.js} +14 -10
  96. package/dist/bundle/{program-AHZH65IT.js → program-4DWVWSGQ.js} +135 -127
  97. package/dist/bundle/prompt-AFWVGRDG.js +17 -0
  98. package/dist/bundle/{reasons-VHCVYH54.js → reasons-IHPNUP5W.js} +4 -2
  99. package/dist/bundle/{recognize-4EAKIMON.js → recognize-NAISVA56.js} +7 -3
  100. package/dist/bundle/{remote-HX3JP4EH.js → remote-KCUHG5HV.js} +10 -6
  101. package/dist/bundle/{rerank-BW3A4PUU.js → rerank-Q3POCDSK.js} +9 -5
  102. package/dist/bundle/{serve-YYOOLIBS.js → serve-5CUOYLSG.js} +10 -6
  103. package/dist/bundle/server-FTLPSLRU.js +69 -0
  104. package/dist/bundle/{server-G6XTEEFI.js → server-FXW3GARV.js} +42 -36
  105. package/dist/bundle/{services-OAPILZOW.js → services-PEYBXZ3R.js} +30 -24
  106. package/dist/bundle/{sqlite-runtime-GTXDK4PE.js → sqlite-runtime-YMPWN5PM.js} +8 -4
  107. package/dist/bundle/start-PFWEF44R.js +138 -0
  108. package/dist/bundle/{state-XG335LGZ.js → state-5TQ7IOJH.js} +8 -4
  109. package/dist/bundle/{store-N53SJOPS.js → store-E2VWY4O6.js} +18 -14
  110. package/dist/bundle/{store-7KOXJNQP.js → store-P4OYYFW5.js} +15 -11
  111. package/dist/bundle/store-maintenance-command-MWVERNK7.js +58 -0
  112. package/dist/bundle/tokens-OVG4CJO4.js +102 -0
  113. package/dist/version.d.ts +1 -1
  114. package/dist/version.js +1 -1
  115. package/package.json +3 -2
  116. package/dist/bundle/command-contract-XIACCAZL.js +0 -35
  117. package/dist/bundle/entry-CWYCQ53A.js +0 -17
  118. package/dist/bundle/first-run-YIH7EHJI.js +0 -24
  119. package/dist/bundle/first-screen-THH3XD5Y.js +0 -33
  120. package/dist/bundle/grants-3Z7DG3W3.js +0 -98
  121. package/dist/bundle/prompt-FFGBIT4A.js +0 -13
  122. package/dist/bundle/server-YKYEUIJT.js +0 -63
  123. package/dist/bundle/store-maintenance-command-W3TI52X2.js +0 -52
  124. package/dist/bundle/tokens-P7TEHKDD.js +0 -96
@@ -527,44 +527,6 @@ var require_cross_spawn = __commonJS({
527
527
  }
528
528
  });
529
529
 
530
- // 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/executable.js
531
- import { existsSync } from "node:fs";
532
- import { win32 } from "node:path";
533
- var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
534
- var executableOnPath = /* @__PURE__ */ __name((command, env, platform = process.platform, exists = existsSync) => {
535
- if (platform !== "win32" || win32.isAbsolute(command))
536
- return command;
537
- if (/[\\/]/.test(command))
538
- return command;
539
- const extensions = win32.extname(command) ? [""] : (variable(env, "PATHEXT") ?? ".EXE;.COM;.CMD;.BAT").split(";").filter((ext) => /^\.[a-z0-9]+$/i.test(ext));
540
- for (const entry of (variable(env, "PATH") ?? "").split(";")) {
541
- const directory = entry.replace(/^"(.*)"$/, "$1");
542
- for (const extension of extensions) {
543
- const candidate = win32.join(directory, command + extension);
544
- if (exists(candidate))
545
- return candidate;
546
- }
547
- }
548
- return command;
549
- }, "executableOnPath");
550
- var executableEnvironment = /* @__PURE__ */ __name((env, platform = process.platform) => {
551
- if (platform !== "win32")
552
- return env;
553
- const configured = variable(env, "COMSPEC");
554
- const system = variable(env, "SYSTEMROOT");
555
- const shell = configured ? configured : system && win32.isAbsolute(system) ? win32.join(system, "System32", "cmd.exe") : void 0;
556
- if (!shell)
557
- return env;
558
- const result = { ...env };
559
- for (const key of Object.keys(result))
560
- if (key.toUpperCase() === "COMSPEC")
561
- delete result[key];
562
- result.comspec = shell;
563
- return result;
564
- }, "executableEnvironment");
565
-
566
530
  export {
567
- require_cross_spawn,
568
- executableOnPath,
569
- executableEnvironment
531
+ require_cross_spawn
570
532
  };
@@ -2,10 +2,29 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  refuseLacking
5
- } from "./chunk-EN7OZ5JH.js";
5
+ } from "./chunk-IXXQZCNK.js";
6
+ import {
7
+ asFirstWord,
8
+ baseContext,
9
+ environmentOf,
10
+ issueMessage,
11
+ limitBatch,
12
+ permissionIssues,
13
+ publicIssue,
14
+ recalledAccount,
15
+ rememberAccount,
16
+ rootOf2 as rootOf
17
+ } from "./chunk-4UU4ONKY.js";
18
+ import {
19
+ providerErrorKey
20
+ } from "./chunk-P5MCZ635.js";
21
+ import {
22
+ MESSENGER_CHANGE_REFUSAL,
23
+ readOnlyRefusal
24
+ } from "./chunk-Z5GDNCTJ.js";
6
25
  import {
7
26
  servingProfiles
8
- } from "./chunk-SRNXTXJN.js";
27
+ } from "./chunk-7VFD3UJQ.js";
9
28
  import {
10
29
  OFFLINE,
11
30
  capability,
@@ -18,22 +37,7 @@ import {
18
37
  profilesOnAccount,
19
38
  servicesFor,
20
39
  throughWrapper
21
- } from "./chunk-KHNDZNQA.js";
22
- import {
23
- asFirstWord,
24
- baseContext,
25
- environmentOf,
26
- issueMessage,
27
- limitBatch,
28
- permissionIssues,
29
- publicIssue,
30
- recalledAccount,
31
- rememberAccount,
32
- rootOf2 as rootOf
33
- } from "./chunk-4F2VRJZE.js";
34
- import {
35
- providerErrorKey
36
- } from "./chunk-4UQLL6RJ.js";
40
+ } from "./chunk-4EEOJ54H.js";
37
41
  import {
38
42
  AUTHORITY_KEY,
39
43
  CEILING_KEY,
@@ -50,26 +54,22 @@ import {
50
54
  logAttributes,
51
55
  readKeysForCommand,
52
56
  skipFlagFor
53
- } from "./chunk-TR5656OS.js";
57
+ } from "./chunk-TIXIB32T.js";
54
58
  import {
55
59
  isCliFailure
56
- } from "./chunk-2ULJW5BA.js";
57
- import {
58
- MESSENGER_CHANGE_REFUSAL,
59
- readOnlyRefusal
60
- } from "./chunk-JLKNUFL2.js";
60
+ } from "./chunk-UMJLXAJI.js";
61
61
  import {
62
62
  openStore
63
- } from "./chunk-WAVJWGUC.js";
63
+ } from "./chunk-TNX77VPM.js";
64
64
  import {
65
65
  logRecordOf,
66
66
  realSleep,
67
67
  resolvePaths,
68
68
  writeSecurely
69
- } from "./chunk-XGNADVIA.js";
69
+ } from "./chunk-ALTG7BZQ.js";
70
70
  import {
71
71
  CliError
72
- } from "./chunk-GIQFBXQN.js";
72
+ } from "./chunk-ITD7WI23.js";
73
73
  import {
74
74
  __name
75
75
  } from "./chunk-ZVVMGPBJ.js";
@@ -3,16 +3,16 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  envName,
5
5
  readOnlyLockOf
6
- } from "./chunk-JLKNUFL2.js";
6
+ } from "./chunk-Z5GDNCTJ.js";
7
7
  import {
8
8
  ensureSqlite
9
- } from "./chunk-WJOKTIOJ.js";
9
+ } from "./chunk-BAEIAQWH.js";
10
10
  import {
11
11
  catchCrashes
12
- } from "./chunk-XGNADVIA.js";
12
+ } from "./chunk-3RG27IWA.js";
13
13
  import {
14
14
  CliError
15
- } from "./chunk-GIQFBXQN.js";
15
+ } from "./chunk-ITD7WI23.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
@@ -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-YIH7EHJI.js"),
102
- import("./command-contract-XIACCAZL.js")
101
+ import("./first-run-DI2JIG44.js"),
102
+ import("./command-contract-ZCXFT764.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-FFGBIT4A.js");
117
+ const { readSecret } = await import("./prompt-AFWVGRDG.js");
118
118
  const answer = await readSecret(`${question} [y/N] `, {
119
119
  input: io.stdin,
120
120
  output: io.stderr,
@@ -2,38 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  executableEnvironment,
5
- executableOnPath,
5
+ executableOnPath
6
+ } from "./chunk-JZ67M3HR.js";
7
+ import {
6
8
  require_cross_spawn
7
- } from "./chunk-OYNSFQ7K.js";
9
+ } from "./chunk-D72URWJE.js";
8
10
  import {
9
11
  loadConfigFile,
10
12
  saveConfigFile
11
- } from "./chunk-XGNADVIA.js";
13
+ } from "./chunk-ALTG7BZQ.js";
12
14
  import {
13
15
  number,
14
16
  object,
15
17
  optional,
16
18
  string
17
- } from "./chunk-GIQFBXQN.js";
19
+ } from "./chunk-O3K46QRL.js";
18
20
  import {
19
21
  __name,
20
22
  __toESM
21
23
  } from "./chunk-ZVVMGPBJ.js";
22
24
 
23
- // 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/installer.js
24
- var installerOf = /* @__PURE__ */ __name((scriptPath) => {
25
- const path = scriptPath.replaceAll("\\", "/");
26
- if (path.includes("/_npx/"))
27
- return "npx";
28
- if (path.includes("/install/global/node_modules/"))
29
- return "bun";
30
- if (/\/\.?pnpm\//.test(path))
31
- return "pnpm";
32
- if (path.includes("/node_modules/"))
33
- return "npm";
34
- return path.includes("/dist/") ? "checkout" : "unknown";
35
- }, "installerOf");
36
-
37
25
  // 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/update/index.js
38
26
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
39
27
  import { existsSync } from "node:fs";
@@ -143,7 +131,6 @@ var commandWords = /* @__PURE__ */ __name((argv) => {
143
131
  }, "commandWords");
144
132
 
145
133
  export {
146
- installerOf,
147
134
  updateCommand,
148
135
  isNewer,
149
136
  latestVersion,
@@ -9424,7 +9424,7 @@ var EnvironmentWorker = /* @__PURE__ */ (() => {
9424
9424
  const ctrl = new AbortController();
9425
9425
  const detachExternal = linkAbort(externalSignal, ctrl);
9426
9426
  const lease = new Lease(ctrl);
9427
- const agentToolset = await import("./node-P4E63KXA.js");
9427
+ const agentToolset = await import("./node-KM3CUABH.js");
9428
9428
  let leaseTtlMs;
9429
9429
  let runner;
9430
9430
  const heartbeatPromise = heartbeatLoop(sessionClient, work, lease, log, this.requestOptions, (ttlMs) => {
@@ -11,9 +11,8 @@ import {
11
11
  checkApiParameter,
12
12
  operations,
13
13
  parseApiJson
14
- } from "./chunk-EE7R457T.js";
14
+ } from "./chunk-UBZ2LH7N.js";
15
15
  import {
16
- CliError,
17
16
  array,
18
17
  boolean,
19
18
  check,
@@ -28,7 +27,10 @@ import {
28
27
  string,
29
28
  transform,
30
29
  unknown
31
- } from "./chunk-GIQFBXQN.js";
30
+ } from "./chunk-O3K46QRL.js";
31
+ import {
32
+ CliError
33
+ } from "./chunk-ITD7WI23.js";
32
34
  import {
33
35
  __name
34
36
  } from "./chunk-ZVVMGPBJ.js";
@@ -1,18 +1,18 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
- import {
4
- VERSION
5
- } from "./chunk-NLLWLCUZ.js";
6
3
  import {
7
4
  annotate,
8
5
  commandsDocument,
9
6
  describeProgram,
10
7
  flatten,
11
8
  profileFree
12
- } from "./chunk-4F2VRJZE.js";
9
+ } from "./chunk-4UU4ONKY.js";
10
+ import {
11
+ VERSION
12
+ } from "./chunk-OG5ERX4S.js";
13
13
  import {
14
14
  CliError
15
- } from "./chunk-GIQFBXQN.js";
15
+ } from "./chunk-ITD7WI23.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
@@ -3,30 +3,30 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  operations,
5
5
  privateFiles
6
- } from "./chunk-EE7R457T.js";
7
- import {
8
- DRIVE_APP
9
- } from "./chunk-NLLWLCUZ.js";
6
+ } from "./chunk-UBZ2LH7N.js";
10
7
  import {
11
8
  commandPathKey,
12
9
  commandPermissions
13
- } from "./chunk-B64EY2SC.js";
14
- import {
15
- acquireLock
16
- } from "./chunk-HNUSPNUQ.js";
10
+ } from "./chunk-ED5JNYN5.js";
17
11
  import {
18
12
  AI_ENTRIES,
19
13
  checkConfigText,
20
14
  issueMessage,
21
15
  settingsFor,
22
16
  usableProfileName
23
- } from "./chunk-4F2VRJZE.js";
17
+ } from "./chunk-4UU4ONKY.js";
18
+ import {
19
+ acquireLock
20
+ } from "./chunk-TCJRJ3TE.js";
24
21
  import {
25
22
  LEVELS
26
- } from "./chunk-TR5656OS.js";
23
+ } from "./chunk-TIXIB32T.js";
27
24
  import {
28
25
  MAX_TEXT_CHARS
29
- } from "./chunk-373WJIHE.js";
26
+ } from "./chunk-X5XWUQNU.js";
27
+ import {
28
+ DRIVE_APP
29
+ } from "./chunk-OG5ERX4S.js";
30
30
  import {
31
31
  Credentials,
32
32
  isMovedRun,
@@ -34,13 +34,11 @@ import {
34
34
  resolvePaths,
35
35
  saveConfigFile,
36
36
  systemKeyring
37
- } from "./chunk-XGNADVIA.js";
37
+ } from "./chunk-ALTG7BZQ.js";
38
38
  import {
39
- CliError,
40
39
  array,
41
40
  boolean,
42
41
  integer,
43
- isCliError,
44
42
  literal,
45
43
  maxValue,
46
44
  minLength,
@@ -55,7 +53,11 @@ import {
55
53
  strictObject,
56
54
  string,
57
55
  union
58
- } from "./chunk-GIQFBXQN.js";
56
+ } from "./chunk-O3K46QRL.js";
57
+ import {
58
+ CliError,
59
+ isCliError
60
+ } from "./chunk-ITD7WI23.js";
59
61
  import {
60
62
  __name
61
63
  } from "./chunk-ZVVMGPBJ.js";
@@ -1,11 +1,11 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
- import {
4
- CliError
5
- } from "./chunk-GIQFBXQN.js";
6
3
  import {
7
4
  importFrom
8
5
  } from "./chunk-Y5E2WNWB.js";
6
+ import {
7
+ CliError
8
+ } from "./chunk-ITD7WI23.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
@@ -0,0 +1,45 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ __name
5
+ } from "./chunk-ZVVMGPBJ.js";
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/errors.js
8
+ var errorCodes = [
9
+ "validation_error",
10
+ "configuration_error",
11
+ "authentication_error",
12
+ "permission_error",
13
+ "not_found",
14
+ "confirmation_required",
15
+ "rate_limited",
16
+ "timeout",
17
+ "network_error",
18
+ "provider_error",
19
+ "provider_unavailable",
20
+ "invalid_response",
21
+ "outcome_unknown",
22
+ "cancelled"
23
+ ];
24
+ var BRAND = /* @__PURE__ */ Symbol.for("@wirecat/cli-base/CliError");
25
+ var CliError = class extends Error {
26
+ static {
27
+ __name(this, "CliError");
28
+ }
29
+ code;
30
+ details;
31
+ constructor(code, message, details = {}) {
32
+ super(message);
33
+ this.name = "CliError";
34
+ this.code = code;
35
+ this.details = details;
36
+ Object.defineProperty(this, BRAND, { value: true });
37
+ }
38
+ };
39
+ var isCliError = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && value[BRAND] === true, "isCliError");
40
+
41
+ export {
42
+ errorCodes,
43
+ CliError,
44
+ isCliError
45
+ };
@@ -1,9 +1,5 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
- import {
4
- AUDIT_MIN_SCORE,
5
- throughWrapper
6
- } from "./chunk-KHNDZNQA.js";
7
3
  import {
8
4
  Command,
9
5
  InvalidArgumentError,
@@ -16,13 +12,17 @@ import {
16
12
  renderAnswer,
17
13
  sharedCommand,
18
14
  snakeKeys
19
- } from "./chunk-4F2VRJZE.js";
15
+ } from "./chunk-4UU4ONKY.js";
20
16
  import {
21
17
  readOnlyLockOf
22
- } from "./chunk-JLKNUFL2.js";
18
+ } from "./chunk-Z5GDNCTJ.js";
19
+ import {
20
+ AUDIT_MIN_SCORE,
21
+ throughWrapper
22
+ } from "./chunk-4EEOJ54H.js";
23
23
  import {
24
24
  formatReference
25
- } from "./chunk-WAVJWGUC.js";
25
+ } from "./chunk-TNX77VPM.js";
26
26
  import {
27
27
  EVENT_QUERY,
28
28
  MEETING_PROJECT_EVIDENCE_QUERY,
@@ -45,7 +45,7 @@ import {
45
45
  readMeetingProjectEvidence,
46
46
  validateMeetingHitSearch,
47
47
  validateMeetingPassage
48
- } from "./chunk-R5GJZPRF.js";
48
+ } from "./chunk-J36Z6BDZ.js";
49
49
  import {
50
50
  OPERATORS_BY_TYPE,
51
51
  dateRange,
@@ -58,9 +58,8 @@ import {
58
58
  timezoneOf,
59
59
  validateQuery,
60
60
  zonedMoment
61
- } from "./chunk-XJVK7ETL.js";
61
+ } from "./chunk-SWFA36F3.js";
62
62
  import {
63
- CliError,
64
63
  array,
65
64
  boolean,
66
65
  check,
@@ -69,7 +68,10 @@ import {
69
68
  safeParse,
70
69
  strictObject,
71
70
  string
72
- } from "./chunk-GIQFBXQN.js";
71
+ } from "./chunk-O3K46QRL.js";
72
+ import {
73
+ CliError
74
+ } from "./chunk-ITD7WI23.js";
73
75
  import {
74
76
  __name
75
77
  } from "./chunk-ZVVMGPBJ.js";
@@ -8,13 +8,12 @@ import {
8
8
  queryFieldsOf,
9
9
  timezoneOf,
10
10
  validateQuery
11
- } from "./chunk-XJVK7ETL.js";
11
+ } from "./chunk-SWFA36F3.js";
12
12
  import {
13
13
  singleLine,
14
14
  visibleControls
15
- } from "./chunk-XGNADVIA.js";
15
+ } from "./chunk-ASPIEEXN.js";
16
16
  import {
17
- CliError,
18
17
  STEPS,
19
18
  array,
20
19
  boolean,
@@ -37,7 +36,10 @@ import {
37
36
  strictObject,
38
37
  string,
39
38
  union
40
- } from "./chunk-GIQFBXQN.js";
39
+ } from "./chunk-O3K46QRL.js";
40
+ import {
41
+ CliError
42
+ } from "./chunk-ITD7WI23.js";
41
43
  import {
42
44
  __name
43
45
  } from "./chunk-ZVVMGPBJ.js";
@@ -1,25 +1,27 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
- import {
4
- installerOf,
5
- updateCommand
6
- } from "./chunk-5KNIVHP6.js";
7
3
  import {
8
4
  QUESTIONS,
9
5
  readSetupAnswers,
10
6
  unanswered,
11
7
  writeSetupAnswers
12
- } from "./chunk-UKMFPBAO.js";
8
+ } from "./chunk-X4F3M6L6.js";
9
+ import {
10
+ updateCommand
11
+ } from "./chunk-FD7A6745.js";
13
12
  import {
14
13
  DEFAULT_STEMMERS,
15
14
  LANGUAGES
16
- } from "./chunk-AHBUTDS7.js";
15
+ } from "./chunk-NKL5XXOM.js";
17
16
  import {
18
17
  sharedConfigPath
19
- } from "./chunk-B3TPS7BW.js";
18
+ } from "./chunk-4ICWGMHN.js";
20
19
  import {
21
20
  storePath
22
- } from "./chunk-CGCQNYB3.js";
21
+ } from "./chunk-7VUHY5LP.js";
22
+ import {
23
+ installerOf
24
+ } from "./chunk-NYINLKWT.js";
23
25
  import {
24
26
  __name
25
27
  } from "./chunk-ZVVMGPBJ.js";
@@ -82,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
82
84
  return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
83
85
  }, "suggested");
84
86
  var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
85
- const { openStore } = await import("./store-7KOXJNQP.js");
87
+ const { openStore } = await import("./store-P4OYYFW5.js");
86
88
  const store = await openStore({ env });
87
89
  let rebuild = false;
88
90
  try {
@@ -111,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
111
113
  if (!rebuild)
112
114
  return;
113
115
  const [{ openCache }, { buildStems }] = await Promise.all([
114
- import("./open-WJCRBIP7.js"),
115
- import("./store-maintenance-command-W3TI52X2.js")
116
+ import("./open-BXPLXJC2.js"),
117
+ import("./store-maintenance-command-MWVERNK7.js")
116
118
  ]);
117
119
  const database = await openCache(storePath(env));
118
120
  try {
@@ -124,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
124
126
  var askTools = /* @__PURE__ */ __name(async (run) => {
125
127
  const { command, env, io } = run;
126
128
  const installed = run.installed ?? ((name) => onPath(name, env));
127
- const { WIRECAT_TOOLS } = await import("./first-screen-THH3XD5Y.js");
129
+ const { WIRECAT_TOOLS } = await import("./first-screen-X5N4TCKD.js");
128
130
  const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
129
131
  const missing = others.filter((tool) => !installed(tool.command));
130
132
  io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
@@ -197,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
197
199
  contentLanguages: start.contentLanguages,
198
200
  all: start.path[0] === "setup",
199
201
  io: {
200
- ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-FFGBIT4A.js")).readSecret(prompt, { input, echo: true }), "ask"),
202
+ ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-AFWVGRDG.js")).readSecret(prompt, { input, echo: true }), "ask"),
201
203
  say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
202
204
  `), "say")
203
205
  }
@@ -0,0 +1,46 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ __name
5
+ } from "./chunk-ZVVMGPBJ.js";
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/executable.js
8
+ import { existsSync } from "node:fs";
9
+ import { win32 } from "node:path";
10
+ var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
11
+ var executableOnPath = /* @__PURE__ */ __name((command, env, platform = process.platform, exists = existsSync) => {
12
+ if (platform !== "win32" || win32.isAbsolute(command))
13
+ return command;
14
+ if (/[\\/]/.test(command))
15
+ return command;
16
+ const extensions = win32.extname(command) ? [""] : (variable(env, "PATHEXT") ?? ".EXE;.COM;.CMD;.BAT").split(";").filter((ext) => /^\.[a-z0-9]+$/i.test(ext));
17
+ for (const entry of (variable(env, "PATH") ?? "").split(";")) {
18
+ const directory = entry.replace(/^"(.*)"$/, "$1");
19
+ for (const extension of extensions) {
20
+ const candidate = win32.join(directory, command + extension);
21
+ if (exists(candidate))
22
+ return candidate;
23
+ }
24
+ }
25
+ return command;
26
+ }, "executableOnPath");
27
+ var executableEnvironment = /* @__PURE__ */ __name((env, platform = process.platform) => {
28
+ if (platform !== "win32")
29
+ return env;
30
+ const configured = variable(env, "COMSPEC");
31
+ const system = variable(env, "SYSTEMROOT");
32
+ const shell = configured ? configured : system && win32.isAbsolute(system) ? win32.join(system, "System32", "cmd.exe") : void 0;
33
+ if (!shell)
34
+ return env;
35
+ const result = { ...env };
36
+ for (const key of Object.keys(result))
37
+ if (key.toUpperCase() === "COMSPEC")
38
+ delete result[key];
39
+ result.comspec = shell;
40
+ return result;
41
+ }, "executableEnvironment");
42
+
43
+ export {
44
+ executableOnPath,
45
+ executableEnvironment
46
+ };
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-GIQFBXQN.js";
5
+ } from "./chunk-ITD7WI23.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
@@ -48,12 +48,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
48
48
  }, "openCache");
49
49
  var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
50
50
  var openUnderBun = /* @__PURE__ */ __name(async (path) => {
51
- const { openWithBunSqlite } = await import("./bun-sqlite-GSLSN3OT.js");
51
+ const { openWithBunSqlite } = await import("./bun-sqlite-A5ZKTIYC.js");
52
52
  return await openWithBunSqlite(path);
53
53
  }, "openUnderBun");
54
54
  var openUnderNode = /* @__PURE__ */ __name(async (path) => {
55
55
  quietSqliteWarning();
56
- const { openWithNodeSqlite } = await import("./node-sqlite-AFQTE4XZ.js");
56
+ const { openWithNodeSqlite } = await import("./node-sqlite-AVNHGMVL.js");
57
57
  return openWithNodeSqlite(path);
58
58
  }, "openUnderNode");
59
59
  var runtime = /* @__PURE__ */ __name(() => {