@wirecat/drive-cli 0.49.0 → 0.50.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 (144) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bundle/{all-profiles-WK2XXGPU.js → all-profiles-WQTVOCIS.js} +8 -8
  3. package/dist/bundle/{anthropic-R354D7GT.js → anthropic-YCA2AWIJ.js} +5 -5
  4. package/dist/bundle/{app-server-3YHJ757G.js → app-server-ZQOYUQJH.js} +52 -52
  5. package/dist/bundle/{bun-JVDJVDHL.js → bun-5NFIDHGM.js} +2 -2
  6. package/dist/bundle/{bun-sqlite-KZCZWSRZ.js → bun-sqlite-OAQE4M2E.js} +4 -4
  7. package/dist/bundle/{chunk-2BADVV4A.js → chunk-24TOKSZE.js} +2 -2
  8. package/dist/bundle/{chunk-CCLDCM7J.js → chunk-2M5XEGVE.js} +290 -208
  9. package/dist/bundle/{chunk-HBYE4EP2.js → chunk-3CQNJKJT.js} +1 -1
  10. package/dist/bundle/{chunk-MC77UZVA.js → chunk-3HNUH632.js} +6 -6
  11. package/dist/bundle/{chunk-U77RLMOK.js → chunk-3XX52F42.js} +2 -2
  12. package/dist/bundle/{chunk-5KR7BKDV.js → chunk-4J7UGHPK.js} +5 -5
  13. package/dist/bundle/{chunk-IRDGH7DV.js → chunk-4OLWMHS6.js} +3 -3
  14. package/dist/bundle/{chunk-7WEISHFA.js → chunk-4SSUKRO4.js} +2 -2
  15. package/dist/bundle/{chunk-EF2RCQ3L.js → chunk-4VLUX3V5.js} +1 -1
  16. package/dist/bundle/{chunk-W5EUHV3J.js → chunk-53UWCVSU.js} +1 -1
  17. package/dist/bundle/{chunk-PPXNEHYX.js → chunk-5OMLYNYB.js} +8 -8
  18. package/dist/bundle/{chunk-NXFEZQDL.js → chunk-5WN7JHQE.js} +26 -26
  19. package/dist/bundle/{chunk-FB7I5JWC.js → chunk-5Z63NTC7.js} +6 -6
  20. package/dist/bundle/{chunk-2ZFR67KY.js → chunk-5ZJHQ4TN.js} +2 -2
  21. package/dist/bundle/{chunk-75VCGSNB.js → chunk-652YTDT5.js} +15 -15
  22. package/dist/bundle/{chunk-YYMHFXHK.js → chunk-6DDXB5WB.js} +2 -2
  23. package/dist/bundle/{chunk-XLJV3ZOH.js → chunk-6E4PFCQ4.js} +1 -1
  24. package/dist/bundle/{chunk-P4NOTS3U.js → chunk-7SYSC7KX.js} +2 -2
  25. package/dist/bundle/{chunk-6Z3W7LTD.js → chunk-AO3NCZNT.js} +8 -8
  26. package/dist/bundle/{chunk-LF7ACSTK.js → chunk-BUALWXBT.js} +1 -1
  27. package/dist/bundle/{chunk-FZQSGLHU.js → chunk-C4PNAHI4.js} +11 -11
  28. package/dist/bundle/{chunk-XVXXWNAA.js → chunk-CCEVICWU.js} +4 -4
  29. package/dist/bundle/{chunk-Y2AUB4TJ.js → chunk-CEUEXMIR.js} +80 -33
  30. package/dist/bundle/{chunk-254VYUWN.js → chunk-CTIQ77AB.js} +17 -17
  31. package/dist/bundle/{chunk-JZ3SUK2M.js → chunk-DTHWL5YU.js} +5 -5
  32. package/dist/bundle/{chunk-JMOX454R.js → chunk-E656DAZT.js} +1 -1
  33. package/dist/bundle/{chunk-KKZYZ32J.js → chunk-EXYEDKTX.js} +2 -2
  34. package/dist/bundle/{chunk-BJ3JRO34.js → chunk-EY4CUQW2.js} +7 -7
  35. package/dist/bundle/{chunk-YOF5BC4G.js → chunk-FABKIQ24.js} +2 -2
  36. package/dist/bundle/{chunk-QEM3MOSB.js → chunk-FSAM4Y2S.js} +8 -8
  37. package/dist/bundle/{chunk-R2QRP7EJ.js → chunk-G75FZQAZ.js} +13 -9
  38. package/dist/bundle/{chunk-VHT2WI4I.js → chunk-HGWMX7BM.js} +101 -73
  39. package/dist/bundle/{chunk-45TPBTR3.js → chunk-HURI56SB.js} +21 -21
  40. package/dist/bundle/{chunk-624B6G64.js → chunk-IA6LNKCF.js} +5 -5
  41. package/dist/bundle/{chunk-ITZI7T2X.js → chunk-IFM2APQB.js} +2 -2
  42. package/dist/bundle/{chunk-AN7HENGZ.js → chunk-IGG4RBIZ.js} +108 -96
  43. package/dist/bundle/{chunk-FUJZ5S2Q.js → chunk-INVF3GXW.js} +10 -10
  44. package/dist/bundle/{chunk-R235IRSJ.js → chunk-IUZ4PT2V.js} +2 -2
  45. package/dist/bundle/{chunk-3UHJC6HH.js → chunk-JA2YY7D4.js} +7 -7
  46. package/dist/bundle/{chunk-7BA3HL7N.js → chunk-JHBX53SK.js} +35 -35
  47. package/dist/bundle/{chunk-RAAI3JLI.js → chunk-JSMPSOEM.js} +3 -3
  48. package/dist/bundle/{chunk-HVM5LS5Z.js → chunk-KEQ35HQQ.js} +3 -3
  49. package/dist/bundle/{chunk-HIAO4MPA.js → chunk-KYMGVMOS.js} +1 -1
  50. package/dist/bundle/{chunk-467AQO7E.js → chunk-KZEOWOZV.js} +7 -7
  51. package/dist/bundle/{chunk-KYJYOZYG.js → chunk-LNWRRK2H.js} +6 -6
  52. package/dist/bundle/{chunk-P7INAZIT.js → chunk-M2D4FXKY.js} +5 -5
  53. package/dist/bundle/{chunk-SSD2V4HR.js → chunk-M6FQOGUW.js} +279 -258
  54. package/dist/bundle/{chunk-5ISHP4TK.js → chunk-MMOG7ZVF.js} +2 -2
  55. package/dist/bundle/{chunk-KK3BA4IS.js → chunk-NHRJW3PH.js} +2 -2
  56. package/dist/bundle/{chunk-MFS52LTZ.js → chunk-OKSS7YUN.js} +1 -1
  57. package/dist/bundle/{chunk-E2Y6GJZX.js → chunk-OL22OOIW.js} +4 -4
  58. package/dist/bundle/{chunk-DKJGYYCP.js → chunk-OQEBGY74.js} +46 -46
  59. package/dist/bundle/{chunk-MAXN7COO.js → chunk-P3T2SZW2.js} +1 -1
  60. package/dist/bundle/{chunk-NFU3OBCC.js → chunk-P6VN5UB4.js} +4 -4
  61. package/dist/bundle/{chunk-A3FU4RR6.js → chunk-PNUS224S.js} +4 -4
  62. package/dist/bundle/{chunk-L5RZI2M5.js → chunk-POD2GHQB.js} +19 -19
  63. package/dist/bundle/{chunk-46X7Z4FD.js → chunk-Q27HCATD.js} +324 -278
  64. package/dist/bundle/{chunk-HQ2PGEOK.js → chunk-Q3VG3UYV.js} +11 -11
  65. package/dist/bundle/{chunk-JMRHDZMV.js → chunk-QBECV7NO.js} +33 -32
  66. package/dist/bundle/{chunk-EOZPMJJP.js → chunk-QNLD7Y6Z.js} +7 -7
  67. package/dist/bundle/{chunk-NVHB2MHX.js → chunk-QSDXVUJG.js} +4 -4
  68. package/dist/bundle/{chunk-ABVFH76X.js → chunk-QY3LK3OT.js} +5 -5
  69. package/dist/bundle/{chunk-BQV3WYXW.js → chunk-R7XMCREL.js} +31 -21
  70. package/dist/bundle/{chunk-463NMG57.js → chunk-RTIMGPLN.js} +3 -3
  71. package/dist/bundle/{chunk-CB5NGX6E.js → chunk-T7UZHKAS.js} +2 -2
  72. package/dist/bundle/{chunk-4ORK4UAY.js → chunk-TATRMMOG.js} +3 -3
  73. package/dist/bundle/{chunk-MP2UCK3Z.js → chunk-UVPKSZSC.js} +4 -4
  74. package/dist/bundle/{chunk-IEAZAPC3.js → chunk-VAETCXRI.js} +42 -17
  75. package/dist/bundle/{chunk-P4OU3OVF.js → chunk-VAK2Q2XG.js} +14 -14
  76. package/dist/bundle/{chunk-ZK7Y5K63.js → chunk-XEETGCOC.js} +1 -1
  77. package/dist/bundle/{chunk-IRNX4CO5.js → chunk-XGJUEH5C.js} +27 -27
  78. package/dist/bundle/{chunk-VAGF723Z.js → chunk-Y73IZWRI.js} +1 -1
  79. package/dist/bundle/{chunk-2DLAJGRN.js → chunk-YOABRW2M.js} +1 -1
  80. package/dist/bundle/{chunk-65AW2AEQ.js → chunk-YROVFHPJ.js} +2 -2
  81. package/dist/bundle/{chunk-HD3TFIT4.js → chunk-Z54E5LKF.js} +6 -6
  82. package/dist/bundle/{chunk-W5IDHD6C.js → chunk-ZJBRKR42.js} +27 -27
  83. package/dist/bundle/{chunk-22LTNYO2.js → chunk-ZKGYW63J.js} +9 -9
  84. package/dist/bundle/{chunk-2CKGGIWF.js → chunk-ZP735UUT.js} +3 -3
  85. package/dist/bundle/{chunk-HF2T7E67.js → chunk-ZXD2I5ZQ.js} +49 -49
  86. package/dist/bundle/command-contract-TAWVO2G3.js +38 -0
  87. package/dist/bundle/{decode-BE3VDYTJ.js → decode-YZRTP54O.js} +4 -4
  88. package/dist/bundle/drive.js +7 -7
  89. package/dist/bundle/{echarts-4OQHS575.js → echarts-C6HUK2FL.js} +2 -2
  90. package/dist/bundle/{embed-QR76SJDI.js → embed-QRQ7ITFC.js} +5 -5
  91. package/dist/bundle/{embedder-EMIDKBYV.js → embedder-EZDB3JPA.js} +8 -8
  92. package/dist/bundle/{entry-FE4REJDO.js → entry-4WQQKSYG.js} +6 -6
  93. package/dist/bundle/failure-EEJGMWEP.js +37 -0
  94. package/dist/bundle/{first-run-ALPI62PX.js → first-run-ZAS4OV3T.js} +9 -9
  95. package/dist/bundle/first-screen-6ICWD2N3.js +36 -0
  96. package/dist/bundle/{google-NV75VSCD.js → google-KNILTIDW.js} +9 -9
  97. package/dist/bundle/google-api-CZACYX5T.js +82 -0
  98. package/dist/bundle/{identity-NZ7SP6OL.js → identity-VBCGUXT5.js} +2 -2
  99. package/dist/bundle/{instructions-3QZBKKPF.js → instructions-II4M2WL3.js} +1 -1
  100. package/dist/bundle/{login-KNBM6XUX.js → login-4JACQVMD.js} +62 -62
  101. package/dist/bundle/mcp-2BR2EX7L.js +95 -0
  102. package/dist/bundle/{mcp-XY2FGGUM.js → mcp-6ZIAWU3N.js} +76 -76
  103. package/dist/bundle/{mcp-OQBZXELQ.js → mcp-ZYZ4DFW2.js} +2 -2
  104. package/dist/bundle/{node-R2BLYUSB.js → node-LIN7L4VQ.js} +2 -2
  105. package/dist/bundle/{node-sqlite-PMRVP442.js → node-sqlite-VAH4KZN3.js} +4 -4
  106. package/dist/bundle/{oauth-NM2AKRRT.js → oauth-QUE3VCTU.js} +6 -6
  107. package/dist/bundle/{open-XZH5ZNDA.js → open-DQ3EVYPB.js} +3 -3
  108. package/dist/bundle/{process-IX5YWGDP.js → process-46XDWPVW.js} +1 -1
  109. package/dist/bundle/{program-MDWQHGBY.js → program-X3CZ4XDN.js} +93 -86
  110. package/dist/bundle/{prompt-5K6XGWSK.js → prompt-SAZYCZV3.js} +4 -4
  111. package/dist/bundle/{reasons-GF2TYGX6.js → reasons-366PI7OV.js} +3 -3
  112. package/dist/bundle/{recognize-U7GDD6T2.js → recognize-SSBOHOTW.js} +3 -3
  113. package/dist/bundle/{remote-ZWXOGNQX.js → remote-EL3FWCQE.js} +6 -6
  114. package/dist/bundle/{rerank-YRQBCS63.js → rerank-RPIQRJIW.js} +6 -6
  115. package/dist/bundle/{serve-6PQ7K5RK.js → serve-AX44DIKK.js} +8 -8
  116. package/dist/bundle/server-DCJIGUW2.js +56 -0
  117. package/dist/bundle/server-WWQSQBFT.js +69 -0
  118. package/dist/bundle/{services-QBIQX236.js → services-K4UOEMQD.js} +28 -28
  119. package/dist/bundle/{sqlite-runtime-7Q5UD2VR.js → sqlite-runtime-N7N3EYGH.js} +4 -4
  120. package/dist/bundle/{state-U72TC26L.js → state-C3S5FD7V.js} +5 -5
  121. package/dist/bundle/{store-B4RAJ63G.js → store-4N3NBUGX.js} +14 -14
  122. package/dist/bundle/{store-FYABCSIH.js → store-QV4ZNEQ3.js} +16 -16
  123. package/dist/bundle/store-maintenance-command-QL4AECBD.js +57 -0
  124. package/dist/bundle/tokens-Y7HCOXOA.js +103 -0
  125. package/dist/commands/session.d.ts.map +1 -1
  126. package/dist/commands/session.js +10 -2
  127. package/dist/commands/session.js.map +1 -1
  128. package/dist/tokens.d.ts.map +1 -1
  129. package/dist/tokens.js +2 -2
  130. package/dist/tokens.js.map +1 -1
  131. package/dist/version.d.ts +1 -1
  132. package/dist/version.js +1 -1
  133. package/package.json +3 -3
  134. package/dist/bundle/command-contract-AEA45IX7.js +0 -38
  135. package/dist/bundle/failure-GYOTW6NN.js +0 -37
  136. package/dist/bundle/first-screen-JLS57PIT.js +0 -36
  137. package/dist/bundle/google-api-6623OUF2.js +0 -82
  138. package/dist/bundle/mcp-4NPK6BM3.js +0 -95
  139. package/dist/bundle/server-O7SS6NAY.js +0 -56
  140. package/dist/bundle/server-WT57TF6S.js +0 -69
  141. package/dist/bundle/store-maintenance-command-DAF5NI3T.js +0 -57
  142. package/dist/bundle/tokens-DISQJKDM.js +0 -103
  143. /package/dist/bundle/{chunk-O5EHUB2V.js → chunk-2WNDZFGG.js} +0 -0
  144. /package/dist/bundle/{chunk-YLBNPI7H.js → chunk-VDZZ46RT.js} +0 -0
@@ -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-W5EUHV3J.js";
5
+ } from "./chunk-53UWCVSU.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-VHT2WI4I.js";
9
+ } from "./chunk-HGWMX7BM.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-BJ3JRO34.js";
5
+ } from "./chunk-EY4CUQW2.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/http/public-url.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/http/public-url.js
11
11
  var EXAMPLE = "--public-url https://<name>.ts.net";
12
12
  var publicUrlOf = /* @__PURE__ */ __name((given, { missing, reaches, path = false }) => {
13
13
  if (!given)
@@ -4,15 +4,15 @@ import {
4
4
  MAX_SECRET_INPUT,
5
5
  bufferedInput,
6
6
  inputPolicy
7
- } from "./chunk-KKZYZ32J.js";
7
+ } from "./chunk-EXYEDKTX.js";
8
8
  import {
9
9
  CliError
10
- } from "./chunk-BJ3JRO34.js";
10
+ } from "./chunk-EY4CUQW2.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
16
16
  import { createInterface } from "node:readline";
17
17
  import { Writable } from "node:stream";
18
18
  var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
@@ -2,14 +2,14 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answeredWire
5
- } from "./chunk-EF2RCQ3L.js";
5
+ } from "./chunk-4VLUX3V5.js";
6
6
  import {
7
7
  CALLER_META_KEY,
8
8
  PROXY_CLIENT_NAME,
9
9
  StdioServerTransport,
10
10
  callerOf,
11
11
  serveStdio
12
- } from "./chunk-P4NOTS3U.js";
12
+ } from "./chunk-7SYSC7KX.js";
13
13
  import {
14
14
  McpServer
15
15
  } from "./chunk-5FONRUG6.js";
@@ -17,7 +17,7 @@ import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
21
21
  import { spawn } from "node:child_process";
22
22
  import { randomUUID } from "node:crypto";
23
23
  var PROTOCOL = "2025-06-18";
@@ -251,7 +251,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
251
251
  }, "serveAllProfilesOverStdio");
252
252
  var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
253
253
  const { build, close } = allProfilesServer(options);
254
- const { serveOverHttp } = await import("./serve-6PQ7K5RK.js");
254
+ const { serveOverHttp } = await import("./serve-AX44DIKK.js");
255
255
  const listening = await serveOverHttp(build, {
256
256
  ...http,
257
257
  appName: options.command,
@@ -3,24 +3,24 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  activeProfile,
5
5
  paths
6
- } from "./chunk-624B6G64.js";
6
+ } from "./chunk-IA6LNKCF.js";
7
7
  import {
8
8
  READ_SCOPE,
9
9
  WRITE_SCOPE,
10
10
  providerRequest
11
- } from "./chunk-SSD2V4HR.js";
11
+ } from "./chunk-M6FQOGUW.js";
12
12
  import {
13
13
  googleError
14
- } from "./chunk-2DLAJGRN.js";
14
+ } from "./chunk-YOABRW2M.js";
15
15
  import {
16
16
  acquireLock
17
- } from "./chunk-CCLDCM7J.js";
17
+ } from "./chunk-2M5XEGVE.js";
18
18
  import {
19
19
  Credentials,
20
+ isMovedRun,
20
21
  keyringService,
21
- pathsAreOverridden,
22
22
  systemKeyring
23
- } from "./chunk-VHT2WI4I.js";
23
+ } from "./chunk-HGWMX7BM.js";
24
24
  import {
25
25
  CliError,
26
26
  isCliError,
@@ -32,12 +32,12 @@ import {
32
32
  pipe,
33
33
  safeParse,
34
34
  string
35
- } from "./chunk-BJ3JRO34.js";
35
+ } from "./chunk-EY4CUQW2.js";
36
36
  import {
37
37
  __name
38
38
  } from "./chunk-ZVVMGPBJ.js";
39
39
 
40
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/oauth/authorize.js
40
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/oauth/authorize.js
41
41
  import { createHash, randomBytes } from "node:crypto";
42
42
  import { createServer } from "node:http";
43
43
  var DEFAULT_TIMEOUT_MS = 3e5;
@@ -159,12 +159,12 @@ var authorize = /* @__PURE__ */ __name(async (options) => {
159
159
  }
160
160
  }, "authorize");
161
161
 
162
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/oauth/keeper.js
162
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/oauth/keeper.js
163
163
  import { createHash as createHash2 } from "node:crypto";
164
164
  import { join } from "node:path";
165
165
  import { setTimeout as delay } from "node:timers/promises";
166
166
 
167
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/oauth/requests.js
167
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/oauth/requests.js
168
168
  var REQUEST_LIMIT_MS = 3e4;
169
169
  var TOKEN_LOG_EVENT = "oauth.token";
170
170
  var object2 = /* @__PURE__ */ __name((value) => {
@@ -281,8 +281,9 @@ var revokeToken = /* @__PURE__ */ __name(async (provider, tokens, context) => {
281
281
  });
282
282
  }, "revokeToken");
283
283
 
284
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/oauth/keeper.js
284
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/oauth/keeper.js
285
285
  var inFlight = /* @__PURE__ */ new Map();
286
+ var refreshedInMemory = /* @__PURE__ */ new Map();
286
287
  var tokenKeeper = /* @__PURE__ */ __name((options) => {
287
288
  const { provider, storage, signal, log } = options;
288
289
  const now = options.now ?? Date.now;
@@ -355,21 +356,35 @@ var tokenKeeper = /* @__PURE__ */ __name((options) => {
355
356
  inFlight.set(lockPath, started);
356
357
  return started;
357
358
  }, "shared");
359
+ const remembered = /* @__PURE__ */ __name((saved) => {
360
+ const kept = refreshedInMemory.get(lockPath);
361
+ return kept && fresh(kept) && kept.refreshToken === saved.refreshToken ? kept : void 0;
362
+ }, "remembered");
363
+ const forget = /* @__PURE__ */ __name(() => refreshedInMemory.delete(lockPath), "forget");
358
364
  const tokens = /* @__PURE__ */ __name(async () => {
359
365
  const seen = storage.read();
360
366
  if (!seen)
361
367
  throw notSignedIn();
362
368
  if (fresh(seen.tokens))
363
369
  return seen.tokens;
370
+ const kept = remembered(seen.tokens);
371
+ if (kept)
372
+ return kept;
364
373
  return shared(async () => {
365
374
  const current = storage.read();
366
375
  if (!current)
367
376
  throw notSignedIn();
368
377
  if (fresh(current.tokens) || current.tokens.refreshToken !== seen.tokens.refreshToken)
369
378
  return current.tokens;
379
+ const keptMeanwhile = remembered(current.tokens);
380
+ if (keptMeanwhile)
381
+ return keptMeanwhile;
370
382
  const client = clientOf(current);
371
383
  const refreshed = await exchange({ grant_type: "refresh_token", refresh_token: current.tokens.refreshToken }, context(client, current.tokens));
372
- storage.write({ tokens: refreshed, client });
384
+ if (storage.moved && refreshed.refreshToken === current.tokens.refreshToken)
385
+ refreshedInMemory.set(lockPath, refreshed);
386
+ else
387
+ storage.write({ tokens: refreshed, client });
373
388
  return refreshed;
374
389
  });
375
390
  }, "tokens");
@@ -392,11 +407,18 @@ var tokenKeeper = /* @__PURE__ */ __name((options) => {
392
407
  code_verifier: authorization.codeVerifier
393
408
  }, context(client));
394
409
  const extra = await accept?.(received) ?? void 0;
395
- await locked(async () => storage.write({ tokens: received, client, ...extra ? { extra } : {} }));
410
+ await locked(async () => {
411
+ forget();
412
+ storage.write({ tokens: received, client, ...extra ? { extra } : {} });
413
+ });
396
414
  return { scopes: received.scopes };
397
415
  }, "signIn"),
398
- save: /* @__PURE__ */ __name((saved, extra) => locked(async () => storage.write({ tokens: saved, client: clientOf(storage.read()), ...extra ? { extra } : {} })), "save"),
416
+ save: /* @__PURE__ */ __name((saved, extra) => locked(async () => {
417
+ forget();
418
+ storage.write({ tokens: saved, client: clientOf(storage.read()), ...extra ? { extra } : {} });
419
+ }), "save"),
399
420
  signOut: /* @__PURE__ */ __name(({ revoke = false } = {}) => locked(async () => {
421
+ forget();
400
422
  const current = storage.read();
401
423
  let revoked = false;
402
424
  if (revoke && current) {
@@ -408,7 +430,7 @@ var tokenKeeper = /* @__PURE__ */ __name((options) => {
408
430
  };
409
431
  }, "tokenKeeper");
410
432
 
411
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/oauth/storage.js
433
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/oauth/storage.js
412
434
  var invalid = /* @__PURE__ */ __name(() => new CliError("authentication_error", "the saved sign-in cannot be read; sign in again", { reason: "oauth.invalid" }), "invalid");
413
435
  var parse = /* @__PURE__ */ __name((raw) => {
414
436
  let value;
@@ -488,6 +510,7 @@ var credentialStorage = /* @__PURE__ */ __name((options) => {
488
510
  throw new CliError("configuration_error", "a sign-in store needs its keyring passed in, never a default");
489
511
  const credentials2 = new Credentials(options.credentials);
490
512
  const { account, codec } = options;
513
+ const moved = options.credentials.isolated === true || options.credentials.keyring === systemKeyring && isMovedRun({ appName: options.credentials.service, env: options.credentials.env ?? process.env });
491
514
  const service = keyringService(options.credentials.service, options.credentials.configDir, options.credentials.isolated);
492
515
  const raw = /* @__PURE__ */ __name((name) => {
493
516
  try {
@@ -512,13 +535,15 @@ var credentialStorage = /* @__PURE__ */ __name((options) => {
512
535
  if (found === void 0)
513
536
  continue;
514
537
  codec.decode(found);
515
- save(found);
538
+ if (!moved)
539
+ save(found);
516
540
  return found;
517
541
  }
518
542
  return void 0;
519
543
  }, "current");
520
544
  return {
521
545
  key: `${service}\0${account}`,
546
+ moved,
522
547
  probe: /* @__PURE__ */ __name(() => {
523
548
  raw(account);
524
549
  }, "probe"),
@@ -556,7 +581,7 @@ var credentialOptions = /* @__PURE__ */ __name((env, storage, keyring) => ({
556
581
  service: "drive-cli",
557
582
  storage,
558
583
  env,
559
- isolated: pathsAreOverridden({ appName: "drive-cli", prefix: "DRIVE", env }),
584
+ isolated: isMovedRun({ appName: "drive-cli", prefix: "DRIVE", env }),
560
585
  ...keyring ? { keyring } : {}
561
586
  }), "credentialOptions");
562
587
  var credentials = /* @__PURE__ */ __name((env, storage, keyring) => new Credentials(credentialOptions(env, storage, keyring)), "credentials");
@@ -2,56 +2,56 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  operations
5
- } from "./chunk-RAAI3JLI.js";
5
+ } from "./chunk-JSMPSOEM.js";
6
6
  import {
7
7
  fileId,
8
8
  inspectConfig,
9
9
  paths,
10
10
  profileName,
11
11
  refusal
12
- } from "./chunk-624B6G64.js";
12
+ } from "./chunk-IA6LNKCF.js";
13
13
  import {
14
14
  DRIVE_APP
15
- } from "./chunk-LF7ACSTK.js";
15
+ } from "./chunk-BUALWXBT.js";
16
16
  import {
17
17
  VERSION
18
- } from "./chunk-JMOX454R.js";
18
+ } from "./chunk-E656DAZT.js";
19
19
  import {
20
20
  RecipientList,
21
21
  SendJournal,
22
22
  sendGuard
23
- } from "./chunk-W5IDHD6C.js";
23
+ } from "./chunk-ZJBRKR42.js";
24
24
  import {
25
25
  newOperationId
26
- } from "./chunk-CCLDCM7J.js";
26
+ } from "./chunk-2M5XEGVE.js";
27
27
  import {
28
28
  profileFree
29
- } from "./chunk-JMRHDZMV.js";
29
+ } from "./chunk-QBECV7NO.js";
30
30
  import {
31
31
  annotate,
32
32
  commandsDocument,
33
33
  describeProgram,
34
34
  flatten
35
- } from "./chunk-22LTNYO2.js";
35
+ } from "./chunk-ZKGYW63J.js";
36
36
  import {
37
37
  guardedWrite
38
- } from "./chunk-BQV3WYXW.js";
38
+ } from "./chunk-R7XMCREL.js";
39
39
  import {
40
40
  CEILING_KEY,
41
41
  LEVELS,
42
42
  layerPermissions,
43
43
  levelFor
44
- } from "./chunk-YYMHFXHK.js";
44
+ } from "./chunk-6DDXB5WB.js";
45
45
  import {
46
46
  setupPermissionCeiling
47
- } from "./chunk-NFU3OBCC.js";
47
+ } from "./chunk-P6VN5UB4.js";
48
48
  import {
49
49
  readOnlyLockOf,
50
50
  readOnlyRefusal
51
- } from "./chunk-KK3BA4IS.js";
51
+ } from "./chunk-NHRJW3PH.js";
52
52
  import {
53
53
  writeSecurely
54
- } from "./chunk-VHT2WI4I.js";
54
+ } from "./chunk-HGWMX7BM.js";
55
55
  import {
56
56
  CliError,
57
57
  array,
@@ -70,7 +70,7 @@ import {
70
70
  string,
71
71
  unknown,
72
72
  writes
73
- } from "./chunk-BJ3JRO34.js";
73
+ } from "./chunk-EY4CUQW2.js";
74
74
  import {
75
75
  __name
76
76
  } from "./chunk-ZVVMGPBJ.js";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/http/listen.js
8
8
  import { createServer } from "node:http";
9
9
  import { Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
@@ -6,25 +6,25 @@ import {
6
6
  agentArguments,
7
7
  agentJson,
8
8
  commandAvailability
9
- } from "./chunk-75VCGSNB.js";
9
+ } from "./chunk-652YTDT5.js";
10
10
  import {
11
11
  callerOf
12
- } from "./chunk-P4NOTS3U.js";
12
+ } from "./chunk-7SYSC7KX.js";
13
13
  import {
14
14
  failureContext
15
- } from "./chunk-IRDGH7DV.js";
15
+ } from "./chunk-4OLWMHS6.js";
16
16
  import {
17
17
  lentConnection,
18
18
  refuseLacking
19
- } from "./chunk-L5RZI2M5.js";
19
+ } from "./chunk-POD2GHQB.js";
20
20
  import {
21
21
  onlineDeps,
22
22
  servicesFor,
23
23
  storeModeDeps
24
- } from "./chunk-CCLDCM7J.js";
24
+ } from "./chunk-2M5XEGVE.js";
25
25
  import {
26
26
  ENTITIES
27
- } from "./chunk-AN7HENGZ.js";
27
+ } from "./chunk-IGG4RBIZ.js";
28
28
  import {
29
29
  DEFAULT_OUTPUT_BYTES,
30
30
  LOCAL_WRITE,
@@ -37,37 +37,37 @@ import {
37
37
  refuseStoreChange,
38
38
  sealed,
39
39
  startRecording
40
- } from "./chunk-JMRHDZMV.js";
40
+ } from "./chunk-QBECV7NO.js";
41
41
  import {
42
42
  currentCaller,
43
43
  keepsSuccess,
44
44
  runContextOf,
45
45
  withCaller
46
- } from "./chunk-PPXNEHYX.js";
46
+ } from "./chunk-5OMLYNYB.js";
47
47
  import {
48
48
  flatten
49
- } from "./chunk-22LTNYO2.js";
49
+ } from "./chunk-ZKGYW63J.js";
50
50
  import {
51
51
  enclosingTraceId,
52
52
  inRun,
53
53
  newRunId,
54
54
  traceOf
55
- } from "./chunk-BQV3WYXW.js";
55
+ } from "./chunk-R7XMCREL.js";
56
56
  import {
57
57
  authorityAllowed,
58
58
  botApiAllowed,
59
59
  keyForCommand,
60
60
  levelFor,
61
61
  readKeysForCommand
62
- } from "./chunk-YYMHFXHK.js";
62
+ } from "./chunk-6DDXB5WB.js";
63
63
  import {
64
64
  MAX_BUFFERED_INPUT
65
- } from "./chunk-KKZYZ32J.js";
65
+ } from "./chunk-EXYEDKTX.js";
66
66
  import {
67
67
  captureStreams,
68
68
  errorObjectOf,
69
69
  mcpErrorResult
70
- } from "./chunk-VHT2WI4I.js";
70
+ } from "./chunk-HGWMX7BM.js";
71
71
  import {
72
72
  CliError,
73
73
  SNAKE_CASE,
@@ -106,15 +106,15 @@ import {
106
106
  unknown,
107
107
  word,
108
108
  writes
109
- } from "./chunk-BJ3JRO34.js";
109
+ } from "./chunk-EY4CUQW2.js";
110
110
  import {
111
111
  __name
112
112
  } from "./chunk-ZVVMGPBJ.js";
113
113
 
114
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/agent.js
114
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/agent.js
115
115
  import { Readable } from "node:stream";
116
116
 
117
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
117
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
118
118
  var LINT_SEVERITIES = ["high", "medium", "low"];
119
119
  var lintRuleSchema = strictObject({
120
120
  id: word,
@@ -241,7 +241,7 @@ var overridesSchema = array(strictObject({
241
241
  review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
242
242
  }));
243
243
 
244
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
244
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
245
245
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
246
246
  var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
247
247
  var AUDIT_RULES = defineAuditRules([
@@ -299,7 +299,7 @@ var PARITY_GROUPS = defineParityGroups([
299
299
  { name: "messengers", members: ["tg", "max"], covers: "tree", differences: [] },
300
300
  {
301
301
  name: "all",
302
- members: ["tg", "max", "memo", "drive", "zm", "wa"],
302
+ members: ["tg", "max", "memo", "drive", "zm", "wa", "mail"],
303
303
  covers: ["commands", "doctor", "skill", "mcp", "upgrade", "search", "notes", "meetings"],
304
304
  differences: []
305
305
  },
@@ -323,7 +323,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
323
323
  { path: ["upgrade"], meaning: "updates the CLI" }
324
324
  ]);
325
325
 
326
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
326
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
327
327
  var fieldRuleSchema = strictObject({ id: word, rule: text });
328
328
  var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
329
329
  var FIELD_RULES = defineFieldRules([
@@ -339,7 +339,7 @@ var FIELD_RULES = defineFieldRules([
339
339
  }
340
340
  ]);
341
341
 
342
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
342
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
343
343
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
344
344
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
345
345
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -361,7 +361,7 @@ var IDENTIFIERS = defineIdentifiers([
361
361
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
362
362
  ]);
363
363
 
364
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
364
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
365
365
  var CALENDAR_FLAGS = [
366
366
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
367
367
  {
@@ -435,7 +435,7 @@ var CALENDAR_FLAGS = [
435
435
  }
436
436
  ];
437
437
 
438
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
438
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
439
439
  var HOW_FLAGS = [
440
440
  {
441
441
  name: "--limit",
@@ -1415,7 +1415,7 @@ var HOW_FLAGS = [
1415
1415
  }
1416
1416
  ];
1417
1417
 
1418
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1418
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1419
1419
  var WHAT_FLAGS = [
1420
1420
  {
1421
1421
  name: "--analysis-provider",
@@ -2405,7 +2405,7 @@ var WHAT_FLAGS = [
2405
2405
  }
2406
2406
  ];
2407
2407
 
2408
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2408
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2409
2409
  var FLAG_TYPES = [
2410
2410
  "switch",
2411
2411
  "count",
@@ -2759,7 +2759,7 @@ var VOCABULARY = defineVocabulary({
2759
2759
  flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
2760
2760
  });
2761
2761
 
2762
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2762
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2763
2763
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2764
2764
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2765
2765
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -2980,7 +2980,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
2980
2980
  }
2981
2981
  }, "runCommandForAgent");
2982
2982
 
2983
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/tool.js
2983
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/tool.js
2984
2984
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
2985
2985
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
2986
2986
  var message = pipe(
@@ -3239,7 +3239,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3239
3239
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3240
3240
  }, "failed");
3241
3241
 
3242
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3242
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3243
3243
  import { randomUUID } from "node:crypto";
3244
3244
  var MATCHES = 8;
3245
3245
  var ANSWER = answerSchema();
@@ -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-BJ3JRO34.js";
5
+ } from "./chunk-EY4CUQW2.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError,
5
5
  isCliError
6
- } from "./chunk-BJ3JRO34.js";
6
+ } from "./chunk-EY4CUQW2.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  resolvePaths
5
- } from "./chunk-VHT2WI4I.js";
5
+ } from "./chunk-HGWMX7BM.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/path.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/store/path.js
11
11
  import { join } from "node:path";
12
12
  var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
13
13
  var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-BJ3JRO34.js";
5
+ } from "./chunk-EY4CUQW2.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/tasks/model.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/tasks/model.js
11
11
  var TASK_KINDS = ["question", "request", "mention", "promise"];
12
12
  var TASK_STATES = ["open", "done", "dismissed"];
13
13
  var TASK_ORIGINS = ["rule", "agent", "owner"];
@@ -20,7 +20,7 @@ function closeTask(task, state, by, at, reason) {
20
20
  }
21
21
  __name(closeTask, "closeTask");
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/tasks/service.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/tasks/service.js
24
24
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
25
25
  async function find(id) {
26
26
  const task = await store.get(id);
@@ -80,13 +80,13 @@ function median(values) {
80
80
  }
81
81
  __name(median, "median");
82
82
 
83
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/tasks/store.js
83
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/tasks/store.js
84
84
  function matches(task, filter) {
85
85
  return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
86
86
  }
87
87
  __name(matches, "matches");
88
88
 
89
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
90
90
  var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
91
91
  var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed"];
92
92
  var MEMORY_KINDS = ["summary", "digest", "preference"];
@@ -95,7 +95,7 @@ var MEMORY_SCOPES = ["personal", "work"];
95
95
  var WORK_TASK_TYPES = ["bug", "feature", "chore"];
96
96
  var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
97
97
 
98
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
98
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
99
99
  var LINK_KINDS = [
100
100
  "links-to",
101
101
  "blocked-by",