@wirecat/drive-cli 0.53.0 → 0.54.1

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 (137) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bundle/{all-profiles-WRN35CUF.js → all-profiles-I5KJKZPF.js} +9 -9
  3. package/dist/bundle/{anthropic-DZASXWG3.js → anthropic-DPM7BRKX.js} +5 -5
  4. package/dist/bundle/{app-server-4VHT7QZN.js → app-server-FTGLOZ2K.js} +46 -46
  5. package/dist/bundle/{bun-7SYKSCLA.js → bun-XRO6XJHQ.js} +2 -2
  6. package/dist/bundle/{bun-sqlite-2GOM5PM3.js → bun-sqlite-7JJX6OUT.js} +4 -4
  7. package/dist/bundle/{chunk-54BYJQ77.js → chunk-2DZMGPUC.js} +25 -25
  8. package/dist/bundle/{chunk-WJRJBQIM.js → chunk-2KARCTUU.js} +549 -288
  9. package/dist/bundle/{chunk-PSNHPFSK.js → chunk-2LLNPNMB.js} +1 -1
  10. package/dist/bundle/{chunk-EKFEY3KP.js → chunk-2OGANEKA.js} +1 -1
  11. package/dist/bundle/{chunk-VTWADVEQ.js → chunk-3K4H2DTA.js} +2 -2
  12. package/dist/bundle/{chunk-UFWK3L5Z.js → chunk-4I7EBJJV.js} +6 -6
  13. package/dist/bundle/{chunk-2PVDFLJJ.js → chunk-4LZFESHQ.js} +4 -2
  14. package/dist/bundle/{chunk-LJAX6YCF.js → chunk-4XRLPQ3N.js} +2 -2
  15. package/dist/bundle/{chunk-E6XDFMRZ.js → chunk-5DEEBWDI.js} +32 -32
  16. package/dist/bundle/{chunk-RNIHKIQP.js → chunk-67A2YFAT.js} +4 -4
  17. package/dist/bundle/{chunk-DOZOLBXE.js → chunk-7GJBKGRZ.js} +3 -3
  18. package/dist/bundle/{chunk-LSGAJYVN.js → chunk-7MVKSPEG.js} +6 -6
  19. package/dist/bundle/{chunk-ZDLIO76S.js → chunk-ALMQEGYO.js} +2 -2
  20. package/dist/bundle/{chunk-FXWBUTR7.js → chunk-AQNY57J2.js} +7 -7
  21. package/dist/bundle/{chunk-JEOYFKUK.js → chunk-AR2HRFQO.js} +2 -2
  22. package/dist/bundle/{chunk-3RYX7IB6.js → chunk-BO7ZKZCH.js} +39 -38
  23. package/dist/bundle/{chunk-QXYGK6G5.js → chunk-C4QKY33N.js} +2 -2
  24. package/dist/bundle/{chunk-VZ2I62HN.js → chunk-DNJ43DT5.js} +2 -2
  25. package/dist/bundle/{chunk-ZG6X24ON.js → chunk-E7RDXCV2.js} +5 -5
  26. package/dist/bundle/{chunk-ALJWBGD5.js → chunk-EOEDICIE.js} +1 -1
  27. package/dist/bundle/{chunk-6DHQTUB2.js → chunk-FDCGTODC.js} +1 -1
  28. package/dist/bundle/{chunk-HM352LJR.js → chunk-FDM3JMQZ.js} +24 -24
  29. package/dist/bundle/{chunk-IJFZKQC4.js → chunk-FKHWVVMV.js} +3 -3
  30. package/dist/bundle/{chunk-PR3DA7KA.js → chunk-FNDQFFLP.js} +11 -11
  31. package/dist/bundle/{chunk-CKBHR7QO.js → chunk-FUKJQZED.js} +1 -1
  32. package/dist/bundle/{chunk-PC4UA6UN.js → chunk-GB5YM5HK.js} +5 -5
  33. package/dist/bundle/{chunk-CNKILAWA.js → chunk-GC4JNVYF.js} +43 -25
  34. package/dist/bundle/{chunk-BEL4XZ3M.js → chunk-GIRVMZD3.js} +16 -16
  35. package/dist/bundle/{chunk-YQOVVCIA.js → chunk-HNR2BJJU.js} +17 -16
  36. package/dist/bundle/{chunk-T334CFU4.js → chunk-IDK5QUBJ.js} +4 -4
  37. package/dist/bundle/{chunk-WUX7AUOQ.js → chunk-IXXVCKWL.js} +26 -26
  38. package/dist/bundle/{chunk-NHBUTCNR.js → chunk-J6XLM4QW.js} +9 -9
  39. package/dist/bundle/{chunk-CITFEQ6S.js → chunk-JBBZCTTF.js} +1 -1
  40. package/dist/bundle/{chunk-7XKAVMCF.js → chunk-JPFF6MNK.js} +8 -8
  41. package/dist/bundle/{chunk-SQHPJBNO.js → chunk-K2DMCTTF.js} +95 -95
  42. package/dist/bundle/{chunk-NSIFQ5OP.js → chunk-KM7Q67Z3.js} +1 -1
  43. package/dist/bundle/{chunk-6BNALDGA.js → chunk-KWKRTYRL.js} +4 -4
  44. package/dist/bundle/{chunk-TZLO3ZZF.js → chunk-KXWJT72E.js} +17 -26
  45. package/dist/bundle/{chunk-6XYGTRMQ.js → chunk-LAVWTS4P.js} +523 -268
  46. package/dist/bundle/{chunk-DZMK255Y.js → chunk-N4VNUOOD.js} +41 -31
  47. package/dist/bundle/{chunk-IAQ4L6SM.js → chunk-NCCL4QWR.js} +3 -3
  48. package/dist/bundle/{chunk-SIWBUGBU.js → chunk-NDG6LHX7.js} +8 -8
  49. package/dist/bundle/{chunk-GPJEYW2J.js → chunk-NDUYK676.js} +8 -8
  50. package/dist/bundle/{chunk-PIMMF67N.js → chunk-NFOUG7ES.js} +2 -2
  51. package/dist/bundle/{chunk-DT2YCB2V.js → chunk-NPKFXGYG.js} +24 -22
  52. package/dist/bundle/{chunk-CL4GVCXS.js → chunk-NPMVPKBD.js} +46 -46
  53. package/dist/bundle/{chunk-MK3N7WX7.js → chunk-ORRQDSDH.js} +3 -3
  54. package/dist/bundle/{chunk-YLKQSVLI.js → chunk-P4ABC6C4.js} +2 -2
  55. package/dist/bundle/{chunk-GVCN3GLZ.js → chunk-PFTIYWOK.js} +4 -4
  56. package/dist/bundle/{chunk-KXMJE3XC.js → chunk-RMQGFLT2.js} +6 -6
  57. package/dist/bundle/{chunk-YKZ4IPLB.js → chunk-TBD362SJ.js} +7 -7
  58. package/dist/bundle/{chunk-SVTYS36O.js → chunk-TD4RAOMZ.js} +3 -3
  59. package/dist/bundle/{chunk-R276546S.js → chunk-TIEEVT2Z.js} +1 -1
  60. package/dist/bundle/{chunk-OQMK6WXQ.js → chunk-TIVC4DB5.js} +2 -2
  61. package/dist/bundle/{chunk-ZSXRDF6I.js → chunk-TQFCPUIM.js} +1 -1
  62. package/dist/bundle/{chunk-KPBCGUJC.js → chunk-UDWMRZL6.js} +21 -21
  63. package/dist/bundle/{chunk-DLAFGSTN.js → chunk-UIPT6IAU.js} +1 -1
  64. package/dist/bundle/{chunk-C6Z25IBJ.js → chunk-ULPS2OAL.js} +4 -4
  65. package/dist/bundle/{chunk-7SH4JHYW.js → chunk-VGTDXEYD.js} +12 -12
  66. package/dist/bundle/{chunk-R4TE4ZSD.js → chunk-VVMCGF5X.js} +342 -296
  67. package/dist/bundle/{chunk-F3KHUJEE.js → chunk-VXZULAWV.js} +10 -10
  68. package/dist/bundle/{chunk-7IUMHMTP.js → chunk-VY2AUZMJ.js} +2 -2
  69. package/dist/bundle/{chunk-GE4DP24O.js → chunk-VY3TYRCK.js} +51 -51
  70. package/dist/bundle/{chunk-2HHOMN2G.js → chunk-W6DMCGMK.js} +23 -23
  71. package/dist/bundle/{chunk-FJW3DDCF.js → chunk-XTNEYXAQ.js} +5 -5
  72. package/dist/bundle/{chunk-FG4XXZZE.js → chunk-YP5FDMTG.js} +2 -2
  73. package/dist/bundle/command-contract-VXLGE6NV.js +35 -0
  74. package/dist/bundle/{decode-WAPM2VBH.js → decode-3LX3BLZM.js} +4 -4
  75. package/dist/bundle/drive.js +6 -6
  76. package/dist/bundle/{echarts-GXY34GHA.js → echarts-YNGCOYHW.js} +2 -2
  77. package/dist/bundle/{embed-HW3N3KNP.js → embed-FICTRZJL.js} +5 -5
  78. package/dist/bundle/{embedder-7WNFXYYP.js → embedder-DSMRCRSH.js} +8 -8
  79. package/dist/bundle/{entry-J7YIRDPD.js → entry-4ZX3BNXK.js} +6 -6
  80. package/dist/bundle/{first-run-53CL2IYH.js → first-run-GRBQ3SQ5.js} +9 -9
  81. package/dist/bundle/first-screen-JK3MZVCU.js +33 -0
  82. package/dist/bundle/{google-5NNVARNR.js → google-QV2B2KZA.js} +9 -9
  83. package/dist/bundle/{google-api-EQQH53QD.js → google-api-EVO7F3WB.js} +51 -51
  84. package/dist/bundle/grants-VJDGD3BG.js +98 -0
  85. package/dist/bundle/identity-25CTQZS3.js +14 -0
  86. package/dist/bundle/{instructions-K5BEQM4C.js → instructions-GJHHFV64.js} +1 -1
  87. package/dist/bundle/{login-Y6ENYKC3.js → login-54G4F4EP.js} +58 -60
  88. package/dist/bundle/{mcp-WSGVVZWI.js → mcp-EMNFFY4N.js} +2 -2
  89. package/dist/bundle/{node-ZYWB7IET.js → node-GFOH6FKP.js} +2 -2
  90. package/dist/bundle/{node-sqlite-FSQIKGED.js → node-sqlite-NZIBED3C.js} +4 -4
  91. package/dist/bundle/{oauth-HF5USWXY.js → oauth-WUHT2JII.js} +6 -6
  92. package/dist/bundle/{open-NHGJENCX.js → open-INBNHORD.js} +3 -3
  93. package/dist/bundle/{openai-3JCJYKNX.js → openai-BMREUGJP.js} +13 -13
  94. package/dist/bundle/{process-ZXO2MWRJ.js → process-XVDX4SPD.js} +1 -1
  95. package/dist/bundle/{program-QAJ66K3Z.js → program-5OBA53CL.js} +75 -75
  96. package/dist/bundle/{prompt-LQJBCCUF.js → prompt-S7GHCPGR.js} +4 -4
  97. package/dist/bundle/{reasons-J57GSRWN.js → reasons-T24V3AYS.js} +3 -3
  98. package/dist/bundle/{recognize-QM3LN4ZF.js → recognize-T3DABMW5.js} +3 -3
  99. package/dist/bundle/{remote-WREGEZJQ.js → remote-ASYGFT6E.js} +6 -6
  100. package/dist/bundle/{rerank-YFUB6J6M.js → rerank-BQ5U252K.js} +6 -6
  101. package/dist/bundle/{serve-7NFEZ564.js → serve-JMLNKCUZ.js} +8 -8
  102. package/dist/bundle/{server-KBCFZ2AU.js → server-5E6RC7GZ.js} +38 -38
  103. package/dist/bundle/server-QI4C3CQT.js +63 -0
  104. package/dist/bundle/{services-C3XWRA2W.js → services-NFB3XSON.js} +29 -25
  105. package/dist/bundle/{sqlite-runtime-H3TSAMIN.js → sqlite-runtime-TAMYMQFR.js} +4 -4
  106. package/dist/bundle/{state-S2Q53L6L.js → state-DS4G3ZXV.js} +5 -5
  107. package/dist/bundle/{store-I27LAJPU.js → store-HAS2LRFE.js} +14 -14
  108. package/dist/bundle/{store-H345VQHP.js → store-MLMKYJLC.js} +12 -12
  109. package/dist/bundle/store-maintenance-command-LI3JR22B.js +52 -0
  110. package/dist/bundle/tokens-AJF2D5TA.js +96 -0
  111. package/dist/commands/upgrade.d.ts.map +1 -1
  112. package/dist/commands/upgrade.js +1 -1
  113. package/dist/commands/upgrade.js.map +1 -1
  114. package/dist/identity.d.ts +1 -0
  115. package/dist/identity.d.ts.map +1 -1
  116. package/dist/identity.js +1 -0
  117. package/dist/identity.js.map +1 -1
  118. package/dist/login.d.ts.map +1 -1
  119. package/dist/login.js +2 -4
  120. package/dist/login.js.map +1 -1
  121. package/dist/program.d.ts.map +1 -1
  122. package/dist/program.js +2 -1
  123. package/dist/program.js.map +1 -1
  124. package/dist/tokens.d.ts.map +1 -1
  125. package/dist/tokens.js +0 -9
  126. package/dist/tokens.js.map +1 -1
  127. package/dist/version.d.ts +1 -1
  128. package/dist/version.js +1 -1
  129. package/package.json +3 -3
  130. package/dist/bundle/command-contract-D4UG3D33.js +0 -35
  131. package/dist/bundle/first-screen-2KT7HM2K.js +0 -33
  132. package/dist/bundle/grants-4NETZ4MR.js +0 -98
  133. package/dist/bundle/identity-LBTXDMTA.js +0 -12
  134. package/dist/bundle/server-UYVL2CFI.js +0 -63
  135. package/dist/bundle/store-maintenance-command-3XA73XMC.js +0 -52
  136. package/dist/bundle/tokens-7MUGKFEM.js +0 -96
  137. /package/dist/bundle/{chunk-62EDJKGP.js → chunk-NPGVOZVK.js} +0 -0
@@ -14,7 +14,7 @@ import {
14
14
  safeParse,
15
15
  stepOf,
16
16
  writes
17
- } from "./chunk-YKZ4IPLB.js";
17
+ } from "./chunk-TBD362SJ.js";
18
18
  import {
19
19
  __commonJS,
20
20
  __name,
@@ -1887,7 +1887,7 @@ var require_cli_table3 = __commonJS({
1887
1887
  }
1888
1888
  });
1889
1889
 
1890
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
1890
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
1891
1891
  var EXIT_CODES = {
1892
1892
  validation_error: 2,
1893
1893
  configuration_error: 3,
@@ -1907,7 +1907,7 @@ var EXIT_CODES = {
1907
1907
  var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
1908
1908
  var GENERIC_FAILURE = 1;
1909
1909
 
1910
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
1910
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
1911
1911
  var CONTROL = (
1912
1912
  // biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
1913
1913
  /[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
@@ -1931,7 +1931,7 @@ var visibleControls = /* @__PURE__ */ __name((text) => {
1931
1931
  }, "visibleControls");
1932
1932
  var singleLine = /* @__PURE__ */ __name((text) => visibleControls(text).replace(LINE_BREAKS, escaped), "singleLine");
1933
1933
 
1934
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
1934
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
1935
1935
  var recognise = /* @__PURE__ */ __name((failure) => {
1936
1936
  if (isCliError(failure))
1937
1937
  return failure;
@@ -2078,7 +2078,7 @@ var catchCrashes = /* @__PURE__ */ __name((options) => {
2078
2078
  };
2079
2079
  }, "catchCrashes");
2080
2080
 
2081
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
2081
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
2082
2082
  import { createRequire } from "node:module";
2083
2083
  var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
2084
2084
  var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
@@ -2098,7 +2098,7 @@ var systemKeyring = {
2098
2098
  delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
2099
2099
  };
2100
2100
 
2101
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
2101
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
2102
2102
  import { homedir, userInfo } from "node:os";
2103
2103
  import { join, posix, win32 } from "node:path";
2104
2104
  var PATH_KINDS = ["config", "state", "cache"];
@@ -2150,11 +2150,11 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
2150
2150
  var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
2151
2151
  var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
2152
2152
 
2153
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
2153
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
2154
2154
  import { readFileSync as readFileSync2 } from "node:fs";
2155
2155
  import { join as join3, resolve } from "node:path";
2156
2156
 
2157
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
2157
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
2158
2158
  import { randomBytes } from "node:crypto";
2159
2159
  import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
2160
2160
  import { dirname, join as join2 } from "node:path";
@@ -2198,9 +2198,10 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
2198
2198
  `, 384);
2199
2199
  }, "saveConfigFile");
2200
2200
 
2201
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
2201
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
2202
2202
  var keyringService = /* @__PURE__ */ __name((service, _configDir, _isolated) => service, "keyringService");
2203
2203
  var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
2204
+ var warnedRuns = /* @__PURE__ */ new WeakSet();
2204
2205
  var Credentials = class {
2205
2206
  static {
2206
2207
  __name(this, "Credentials");
@@ -2215,7 +2216,6 @@ var Credentials = class {
2215
2216
  #warn;
2216
2217
  /** Set only for a moved run with the system keyring. */
2217
2218
  #temporaryService;
2218
- #warned = false;
2219
2219
  constructor(options) {
2220
2220
  this.#configDir = options.configDir;
2221
2221
  this.#storage = options.storage ?? "auto";
@@ -2233,23 +2233,29 @@ var Credentials = class {
2233
2233
  const fromEnv = this.#envVar ? this.#env[this.#envVar]?.trim() : void 0;
2234
2234
  if (fromEnv)
2235
2235
  return { secret: fromEnv, source: "environment" };
2236
+ const fromFile = this.#storage === "keyring" ? void 0 : this.#readFile()?.[account]?.secret;
2237
+ if (fromFile)
2238
+ return { secret: fromFile, source: "file" };
2236
2239
  if (this.#storage !== "file") {
2237
2240
  const temporary = this.#temporaryService;
2238
2241
  const fromKeyring = this.#tryKeyring(() => temporary && this.#keyring.get(temporary, account) || this.#keyring.get(this.#service, account));
2239
2242
  if (fromKeyring)
2240
2243
  return { secret: fromKeyring, source: "keyring" };
2241
2244
  }
2242
- const secret = this.#readFile()?.[account]?.secret;
2243
- return secret ? { secret, source: "file" } : void 0;
2245
+ return void 0;
2244
2246
  }
2245
- write(account, secret) {
2246
- if (this.#storage !== "file") {
2247
+ write(account, secret, options = {}) {
2248
+ const inFile = this.#storage === "auto" && this.#readFile()?.[account] !== void 0;
2249
+ if (this.#storage === "keyring" || this.#storage === "auto" && (options.signIn || !inFile)) {
2247
2250
  const stored = this.#tryKeyring(() => {
2248
2251
  this.#keyring.set(this.#temporaryService ?? this.#service, account, secret);
2249
2252
  return true;
2250
2253
  });
2251
- if (stored)
2254
+ if (stored) {
2255
+ if (inFile)
2256
+ this.#removeFromFile(account);
2252
2257
  return "keyring";
2258
+ }
2253
2259
  }
2254
2260
  const store = this.#readFile();
2255
2261
  if (!store) {
@@ -2269,14 +2275,18 @@ var Credentials = class {
2269
2275
  this.#warn(removed.includes("keyring") ? `removed this run's own sign-in of ${account} from the OS keyring and kept the owner's: a run with moved folders never removes it` : `kept ${account} in the OS keyring: it is the owner's sign-in, shared with every run, and a run with moved folders never removes it`);
2270
2276
  }
2271
2277
  }
2272
- const store = this.#readFile();
2273
- if (store?.[account] !== void 0) {
2274
- delete store[account];
2275
- this.#writeFile(store);
2278
+ if (this.#storage !== "keyring" && this.#removeFromFile(account))
2276
2279
  removed.push("file");
2277
- }
2278
2280
  return removed;
2279
2281
  }
2282
+ #removeFromFile(account) {
2283
+ const store = this.#readFile();
2284
+ if (store?.[account] === void 0)
2285
+ return false;
2286
+ delete store[account];
2287
+ this.#writeFile(store);
2288
+ return true;
2289
+ }
2280
2290
  /** Only for the warning: a keyring that fails here must not fail a removal that already happened. */
2281
2291
  #ownersEntryExists(account) {
2282
2292
  try {
@@ -2315,8 +2325,8 @@ var Credentials = class {
2315
2325
  try {
2316
2326
  return operation();
2317
2327
  } catch (error) {
2318
- if (!this.#warned) {
2319
- this.#warned = true;
2328
+ if (!warnedRuns.has(this.#env)) {
2329
+ warnedRuns.add(this.#env);
2320
2330
  this.#warn(`could not reach the OS keyring \u2014 it may be locked, or no keyring service is running (${error instanceof Error ? error.message : String(error)}); using ${this.#path()} instead, readable only by you`);
2321
2331
  }
2322
2332
  return void 0;
@@ -2324,7 +2334,7 @@ var Credentials = class {
2324
2334
  }
2325
2335
  };
2326
2336
 
2327
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
2337
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
2328
2338
  var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
2329
2339
  if (signal?.aborted)
2330
2340
  return Promise.reject(signal.reason);
@@ -2352,7 +2362,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
2352
2362
  });
2353
2363
  }, "waitForDrain");
2354
2364
 
2355
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
2365
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
2356
2366
  var processStreams = {
2357
2367
  drain: /* @__PURE__ */ __name(async (signal) => {
2358
2368
  await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
@@ -2381,7 +2391,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
2381
2391
  };
2382
2392
  }, "captureStreams");
2383
2393
 
2384
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
2394
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
2385
2395
  var DEFAULT_RETRY = {
2386
2396
  retries: 1,
2387
2397
  baseDelayMs: 250,
@@ -2393,7 +2403,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
2393
2403
  return Math.round(random() * ceiling);
2394
2404
  }, "backoffMs");
2395
2405
 
2396
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
2406
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
2397
2407
  var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
2398
2408
  var validate = /* @__PURE__ */ __name((paths) => {
2399
2409
  if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
@@ -2458,7 +2468,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
2458
2468
  return project(value, fields);
2459
2469
  }, "projectFields");
2460
2470
 
2461
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
2471
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
2462
2472
  var BATCH_LIMITS = Object.freeze({
2463
2473
  requests: 32,
2464
2474
  input_bytes: 262144,
@@ -2585,7 +2595,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
2585
2595
  };
2586
2596
  }, "runBatch");
2587
2597
 
2588
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
2598
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
2589
2599
  var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
2590
2600
  var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
2591
2601
  if (signal?.aborted) {
@@ -2599,7 +2609,7 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
2599
2609
  }, { once: true });
2600
2610
  }), "realSleep");
2601
2611
 
2602
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
2612
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
2603
2613
  import { appendFileSync } from "node:fs";
2604
2614
  var REDACTED_FIELDS = [
2605
2615
  "authorization",
@@ -2694,7 +2704,7 @@ var silent = {
2694
2704
  }, "error")
2695
2705
  };
2696
2706
 
2697
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
2707
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
2698
2708
  var import_cli_table3 = __toESM(require_cli_table3(), 1);
2699
2709
  import { styleText } from "node:util";
2700
2710
  var renderPretty = /* @__PURE__ */ __name((value, options) => {
@@ -2768,7 +2778,7 @@ var BORDERLESS = {
2768
2778
  middle: ""
2769
2779
  };
2770
2780
 
2771
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
2781
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
2772
2782
  var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
2773
2783
  const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
2774
2784
  const say = /* @__PURE__ */ __name((symbol) => (message) => {
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  alive
5
- } from "./chunk-NSIFQ5OP.js";
5
+ } from "./chunk-KM7Q67Z3.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-DZMK255Y.js";
9
+ } from "./chunk-N4VNUOOD.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/background/lock.js
15
15
  import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
16
16
  import { dirname, join } from "node:path";
17
17
  var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  operations
5
- } from "./chunk-WJRJBQIM.js";
5
+ } from "./chunk-2KARCTUU.js";
6
6
  import {
7
7
  DRIVE_APP
8
- } from "./chunk-2PVDFLJJ.js";
8
+ } from "./chunk-4LZFESHQ.js";
9
9
  import {
10
10
  commandPathKey,
11
11
  commandPermissions
12
- } from "./chunk-54BYJQ77.js";
12
+ } from "./chunk-2DZMGPUC.js";
13
13
  import {
14
14
  AI_ENTRIES,
15
15
  checkConfigText,
16
16
  issueMessage,
17
17
  settingsFor,
18
18
  usableProfileName
19
- } from "./chunk-3RYX7IB6.js";
19
+ } from "./chunk-BO7ZKZCH.js";
20
20
  import {
21
21
  LEVELS
22
- } from "./chunk-2HHOMN2G.js";
22
+ } from "./chunk-W6DMCGMK.js";
23
23
  import {
24
24
  MAX_TEXT_CHARS
25
- } from "./chunk-JEOYFKUK.js";
25
+ } from "./chunk-AR2HRFQO.js";
26
26
  import {
27
27
  resolvePaths,
28
28
  saveConfigFile
29
- } from "./chunk-DZMK255Y.js";
29
+ } from "./chunk-N4VNUOOD.js";
30
30
  import {
31
31
  CliError,
32
32
  array,
@@ -47,7 +47,7 @@ import {
47
47
  strictObject,
48
48
  string,
49
49
  union
50
- } from "./chunk-YKZ4IPLB.js";
50
+ } from "./chunk-TBD362SJ.js";
51
51
  import {
52
52
  __name
53
53
  } from "./chunk-ZVVMGPBJ.js";
@@ -2,22 +2,22 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  isCliFailure
5
- } from "./chunk-YLKQSVLI.js";
5
+ } from "./chunk-P4ABC6C4.js";
6
6
  import {
7
7
  isContentKey
8
- } from "./chunk-YKZ4IPLB.js";
8
+ } from "./chunk-TBD362SJ.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/run-context.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/runs/run-context.js
14
14
  import { AsyncLocalStorage } from "node:async_hooks";
15
15
  import { createHash } from "node:crypto";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
18
18
  import { homedir } from "node:os";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/events.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/runs/events.js
21
21
  var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
22
22
  var renderEvent = /* @__PURE__ */ __name((event) => {
23
23
  if (event.event === "warning") {
@@ -65,7 +65,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
65
65
  var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
66
66
  var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
67
67
 
68
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/secrets.js
68
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/runs/secrets.js
69
69
  var SECRET_WORDS = /* @__PURE__ */ new Set([
70
70
  "authorization",
71
71
  "cookie",
@@ -146,7 +146,7 @@ var withoutSecrets = /* @__PURE__ */ __name((text, mark = "[redacted]") => text.
146
146
  var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
147
147
  var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
148
148
 
149
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
149
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
150
150
  var MESSAGE_AT_MOST = 500;
151
151
  var CAUSES_AT_MOST = 5;
152
152
  var FRAMES_AT_MOST = 15;
@@ -254,7 +254,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
254
254
  return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
255
255
  }, "redactText");
256
256
 
257
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/runs/run-context.js
257
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/runs/run-context.js
258
258
  var REDACTED = "[redacted]";
259
259
  var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
260
260
  if (!record)
@@ -8,12 +8,12 @@ import {
8
8
  ACCESS_SECONDS,
9
9
  REFRESH_SECONDS,
10
10
  readStored
11
- } from "./chunk-6BNALDGA.js";
11
+ } from "./chunk-KWKRTYRL.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  AUDIT_MIN_SCORE,
5
5
  throughWrapper
6
- } from "./chunk-6XYGTRMQ.js";
6
+ } from "./chunk-LAVWTS4P.js";
7
7
  import {
8
8
  Command,
9
9
  InvalidArgumentError,
@@ -16,13 +16,13 @@ import {
16
16
  renderAnswer,
17
17
  sharedCommand,
18
18
  snakeKeys
19
- } from "./chunk-3RYX7IB6.js";
19
+ } from "./chunk-BO7ZKZCH.js";
20
20
  import {
21
21
  readOnlyLockOf
22
- } from "./chunk-ZDLIO76S.js";
22
+ } from "./chunk-ALMQEGYO.js";
23
23
  import {
24
24
  formatReference
25
- } from "./chunk-R4TE4ZSD.js";
25
+ } from "./chunk-VVMCGF5X.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-GE4DP24O.js";
48
+ } from "./chunk-VY3TYRCK.js";
49
49
  import {
50
50
  OPERATORS_BY_TYPE,
51
51
  dateRange,
@@ -58,7 +58,7 @@ import {
58
58
  timezoneOf,
59
59
  validateQuery,
60
60
  zonedMoment
61
- } from "./chunk-NHBUTCNR.js";
61
+ } from "./chunk-J6XLM4QW.js";
62
62
  import {
63
63
  CliError,
64
64
  array,
@@ -69,12 +69,12 @@ import {
69
69
  safeParse,
70
70
  strictObject,
71
71
  string
72
- } from "./chunk-YKZ4IPLB.js";
72
+ } from "./chunk-TBD362SJ.js";
73
73
  import {
74
74
  __name
75
75
  } from "./chunk-ZVVMGPBJ.js";
76
76
 
77
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
77
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
78
78
  var COMMAND_NEEDS = {
79
79
  "account update": ["updateProfile", "change the profile"],
80
80
  "account sessions list": ["sessions", "list the account's sessions"],
@@ -124,7 +124,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
124
124
  return group;
125
125
  }, "hideNever");
126
126
 
127
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
127
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
128
128
  var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
129
129
  command.allowUnknownOption();
130
130
  const parse = command.parseOptions.bind(command);
@@ -144,7 +144,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
144
144
  return command;
145
145
  }, "queryWordsAfterOptions");
146
146
 
147
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
147
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
148
148
  var count = /* @__PURE__ */ __name((value) => {
149
149
  if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
150
150
  throw new CliError("validation_error", "expected a nonnegative safe integer");
@@ -186,7 +186,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
186
186
  var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
187
187
  var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
188
188
 
189
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
189
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
190
190
  var integer = /* @__PURE__ */ __name((value) => {
191
191
  if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
192
192
  throw new CliError("validation_error", "expected a positive safe integer");
@@ -209,7 +209,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
209
209
  }, "addMeetingProjectEvidenceCommandDefinition");
210
210
  var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
211
211
 
212
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
212
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
213
213
  var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
214
214
  var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
215
215
  const zone = timezoneOf();
@@ -295,7 +295,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
295
295
  var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
296
296
  var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
297
297
 
298
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
298
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
299
299
  var integer3 = /* @__PURE__ */ __name((text) => {
300
300
  if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
301
301
  throw new InvalidArgumentError("expected a positive integer");
@@ -415,7 +415,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
415
415
  }, "addMeetingCommandsDefinition");
416
416
  var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
417
417
 
418
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/list-query.js
418
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/cli/list-query.js
419
419
  var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
420
420
  var withQuery = /* @__PURE__ */ __name((command, registry) => {
421
421
  const query = defineQuery(registry);
@@ -465,7 +465,8 @@ var pagedList = /* @__PURE__ */ __name((command, { limit, page, all }, { items,
465
465
  page
466
466
  }), "pagedList");
467
467
  var askable = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "askable");
468
- var nativeTerms = /* @__PURE__ */ __name((ast, command) => {
468
+ var nativeTerms = /* @__PURE__ */ __name((ast, command) => new Map([...nativeTermLists(ast, command)].map(([field, [node]]) => [field, node])), "nativeTerms");
469
+ var nativeTermLists = /* @__PURE__ */ __name((ast, command, repeatable = []) => {
469
470
  const terms = /* @__PURE__ */ new Map();
470
471
  if (!ast)
471
472
  return terms;
@@ -479,13 +480,14 @@ var nativeTerms = /* @__PURE__ */ __name((ast, command) => {
479
480
  }
480
481
  return;
481
482
  }
482
- if (terms.has(node.field))
483
+ const held = terms.get(node.field);
484
+ if (held && !repeatable.includes(node.field))
483
485
  queryError("query.unsupported-placement", node.span, `${node.field} only once here`, context);
484
- terms.set(node.field, node);
486
+ terms.set(node.field, [...held ?? [], node]);
485
487
  }, "add");
486
488
  add(ast.root);
487
489
  return terms;
488
- }, "nativeTerms");
490
+ }, "nativeTermLists");
489
491
  var queryTerms = /* @__PURE__ */ __name((words, registry, command) => {
490
492
  const terms = /* @__PURE__ */ new Map();
491
493
  for (const [field, node] of nativeTerms(listQuery(typedQuery(words), registry, command), command)) {
@@ -529,7 +531,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
529
531
  var queryHelp = /* @__PURE__ */ __name((registry) => `
530
532
  ${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
531
533
 
532
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/paging.js
534
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/cli/paging.js
533
535
  var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
534
536
  if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
535
537
  throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
@@ -538,7 +540,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
538
540
  var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
539
541
  var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
540
542
 
541
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
543
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
542
544
  var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
543
545
  var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
544
546
  var settingsOf = /* @__PURE__ */ __name((settings) => defined({
@@ -800,7 +802,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
800
802
  ...createdAt === void 0 ? {} : { created_at: createdAt }
801
803
  }), "sessionAnswer");
802
804
 
803
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/background/relay.js
805
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/background/relay.js
804
806
  import { createHash } from "node:crypto";
805
807
  import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
806
808
  import { createConnection, createServer } from "node:net";
@@ -1021,7 +1023,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
1021
1023
  }, () => finish({ error: stopped() }));
1022
1024
  }), "relayCommand");
1023
1025
 
1024
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
1026
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
1025
1027
  var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
1026
1028
  close: /* @__PURE__ */ __name(async () => {
1027
1029
  }, "close"),