@wirecat/drive-cli 0.66.0 → 0.68.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 (185) hide show
  1. package/contracts/wirecat.json +29 -1
  2. package/dist/bin/drive.js +2 -2
  3. package/dist/bundle/{all-profiles-WCQLIHUG.js → all-profiles-BU6XUFUP.js} +14 -14
  4. package/dist/bundle/{anthropic-5RJMB6O7.js → anthropic-ZP5B7S2Z.js} +8 -8
  5. package/dist/bundle/{app-server-3RGYXPKG.js → app-server-EB4DH6T7.js} +60 -56
  6. package/dist/bundle/{bun-L34VEKGG.js → bun-PWMM6L45.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-H6IAXQXI.js → bun-sqlite-6VPR2SVC.js} +9 -9
  8. package/dist/bundle/{chunk-HPKE2GDP.js → chunk-2UHQVRH2.js} +18 -18
  9. package/dist/bundle/{chunk-2AF77WMH.js → chunk-2VYEGKQ3.js} +1 -1
  10. package/dist/bundle/{chunk-TAHISPDE.js → chunk-43NEDPXB.js} +39 -35
  11. package/dist/bundle/{chunk-OT7SQQJK.js → chunk-5G2BY4B6.js} +17 -17
  12. package/dist/bundle/{chunk-NYZS2LKF.js → chunk-5TK2YQCO.js} +2 -2
  13. package/dist/bundle/{chunk-5XLU4NN6.js → chunk-5W65QTYS.js} +4 -4
  14. package/dist/bundle/{chunk-YTIPTHEE.js → chunk-6HFZZ2PW.js} +2 -2
  15. package/dist/bundle/{chunk-GY4DAJSK.js → chunk-6QR7NKMG.js} +35 -6
  16. package/dist/bundle/{chunk-BIJW6AYA.js → chunk-6WAC2LOS.js} +3698 -3594
  17. package/dist/bundle/{chunk-VR3YKXHL.js → chunk-74NCZKRW.js} +33 -20
  18. package/dist/bundle/{chunk-5HVJK3ZJ.js → chunk-7A77GYCE.js} +4 -4
  19. package/dist/bundle/{chunk-7ZGJRVBH.js → chunk-7BXVI7XF.js} +4 -4
  20. package/dist/bundle/{chunk-UNTIVT47.js → chunk-7JKECODO.js} +1 -1
  21. package/dist/bundle/{chunk-FKKPVPZR.js → chunk-7TNQZKRD.js} +57 -57
  22. package/dist/bundle/{chunk-3SDJIMZB.js → chunk-AIEMFRBU.js} +1 -1
  23. package/dist/bundle/{chunk-QJ57PV55.js → chunk-AXYG2DDY.js} +136 -90
  24. package/dist/bundle/{chunk-T3ULDA7C.js → chunk-BXHFJTU5.js} +3 -3
  25. package/dist/bundle/{chunk-HPSHQVJU.js → chunk-CK2SQ2CE.js} +28 -22
  26. package/dist/bundle/{chunk-KRG5X5PH.js → chunk-CMWFYZ45.js} +2 -2
  27. package/dist/bundle/{chunk-3QFUDXMQ.js → chunk-CRIEW4FP.js} +3 -2
  28. package/dist/bundle/{chunk-V2WXTILT.js → chunk-CVAJMRRD.js} +6 -6
  29. package/dist/bundle/{chunk-JCHF7LZT.js → chunk-D4MVEOU2.js} +4 -4
  30. package/dist/bundle/{chunk-FHBTQPA3.js → chunk-DIZBJLPM.js} +41 -37
  31. package/dist/bundle/{chunk-VUUPFDRU.js → chunk-DU23ET2O.js} +113 -39
  32. package/dist/bundle/{chunk-IRNDYNQX.js → chunk-DYLYH7VE.js} +4 -4
  33. package/dist/bundle/{chunk-IIHZTV6V.js → chunk-EA2OB75T.js} +1 -1
  34. package/dist/bundle/{chunk-AP4MX247.js → chunk-EEE4H2PA.js} +12 -12
  35. package/dist/bundle/{chunk-UAKX6DP4.js → chunk-EOC7RHJ2.js} +5 -5
  36. package/dist/bundle/{chunk-HHRJPLFO.js → chunk-EXWZCI5G.js} +1 -1
  37. package/dist/bundle/{chunk-KOY5HUBY.js → chunk-F7KAMSXA.js} +4 -4
  38. package/dist/bundle/{chunk-D4MIMH2N.js → chunk-FAMXUI2X.js} +5 -5
  39. package/dist/bundle/{chunk-PJGOQSE5.js → chunk-FIVFP53N.js} +1 -1
  40. package/dist/bundle/{chunk-XVZNFA2P.js → chunk-GTLXBAJV.js} +309 -278
  41. package/dist/bundle/{chunk-JQXK3M5M.js → chunk-HCZYJMBP.js} +1 -1
  42. package/dist/bundle/{chunk-NK4GVFJH.js → chunk-IJCUAKR5.js} +4 -4
  43. package/dist/bundle/{chunk-MZWXTJ4O.js → chunk-IVOG6T6P.js} +3 -3
  44. package/dist/bundle/{chunk-PKM55ZRR.js → chunk-J5LXL435.js} +20 -20
  45. package/dist/bundle/{chunk-G4TNKBDX.js → chunk-JMZQBRRZ.js} +7 -7
  46. package/dist/bundle/{chunk-VQKNKJYL.js → chunk-JRFKCYMW.js} +6 -6
  47. package/dist/bundle/{chunk-XLGDNI4S.js → chunk-JZ3MT7IE.js} +5 -40
  48. package/dist/bundle/{chunk-UG3GHFGY.js → chunk-KPKIHJIT.js} +6 -8
  49. package/dist/bundle/{chunk-OIF4B526.js → chunk-M4OP5ASJ.js} +1 -1
  50. package/dist/bundle/{chunk-5PLINHEY.js → chunk-MLSXHTUB.js} +153 -149
  51. package/dist/bundle/{chunk-Y5U4HIZS.js → chunk-MOKEB656.js} +2 -2
  52. package/dist/bundle/{chunk-6X3KUFRQ.js → chunk-MW46BLWH.js} +20 -20
  53. package/dist/bundle/{chunk-I5R5CMQR.js → chunk-MWCPKUU4.js} +5 -5
  54. package/dist/bundle/{chunk-6UJCCOZC.js → chunk-NV75QPML.js} +4 -4
  55. package/dist/bundle/{chunk-OZOQLAWK.js → chunk-O7T3WGCV.js} +6 -6
  56. package/dist/bundle/{chunk-H7XL6WTW.js → chunk-PGPHEC2X.js} +2 -2
  57. package/dist/bundle/{chunk-UQPW42HF.js → chunk-PJ3FKBXG.js} +1 -1
  58. package/dist/bundle/{chunk-ALE67WRR.js → chunk-PV3AWPHR.js} +5 -5
  59. package/dist/bundle/{chunk-HQBLJLYH.js → chunk-PWIEOATY.js} +8 -8
  60. package/dist/bundle/{chunk-WYTYHUFH.js → chunk-Q6BD6RUH.js} +43 -43
  61. package/dist/bundle/{chunk-BQXSE645.js → chunk-QKY24RWV.js} +12 -12
  62. package/dist/bundle/{chunk-2S3E2HVV.js → chunk-QRSPFCRY.js} +17 -17
  63. package/dist/bundle/{chunk-3NYH756U.js → chunk-QTRYJZL7.js} +11 -6
  64. package/dist/bundle/{chunk-QF7VL4C3.js → chunk-QVJMFZFW.js} +1 -1
  65. package/dist/bundle/{chunk-ULXEW6FT.js → chunk-QWGEOQHA.js} +1 -1
  66. package/dist/bundle/{chunk-JLCR24UM.js → chunk-R5FTCNLJ.js} +1 -1
  67. package/dist/bundle/{chunk-M7543RUJ.js → chunk-RT5NT62B.js} +220 -15
  68. package/dist/bundle/{chunk-SZ6JFOL4.js → chunk-SOS4U2RF.js} +62 -41
  69. package/dist/bundle/{chunk-PUMDOCAF.js → chunk-TI2OANJZ.js} +1 -1
  70. package/dist/bundle/{chunk-COGWKO2T.js → chunk-U52QE4QV.js} +3 -3
  71. package/dist/bundle/{chunk-LVAPSAHF.js → chunk-UFPRP7MG.js} +8 -8
  72. package/dist/bundle/{chunk-5VDVGDOC.js → chunk-UIKVP23D.js} +1 -1
  73. package/dist/bundle/{chunk-7LT2G5BC.js → chunk-ULNN3LCY.js} +29 -27
  74. package/dist/bundle/{chunk-GVA3KTCD.js → chunk-UPCEHSIZ.js} +10 -10
  75. package/dist/bundle/{chunk-4UHBJSMI.js → chunk-UUQJVKPB.js} +516 -458
  76. package/dist/bundle/{chunk-O53WLYX3.js → chunk-UYBLNGZ2.js} +2 -2
  77. package/dist/bundle/{chunk-D7KOAPG6.js → chunk-WCNTDETD.js} +2 -2
  78. package/dist/bundle/{chunk-JHMEETXI.js → chunk-WGX4DZPW.js} +2 -2
  79. package/dist/bundle/{chunk-P7HQFII6.js → chunk-WUFZGPXX.js} +7 -7
  80. package/dist/bundle/{chunk-5K54RZBK.js → chunk-Y2QVNVHK.js} +1 -1
  81. package/dist/bundle/{chunk-7EP4AU6A.js → chunk-YUGTJBV3.js} +3 -3
  82. package/dist/bundle/{chunk-QSELSDWE.js → chunk-YYIWPH53.js} +13 -13
  83. package/dist/bundle/{chunk-E2F2XIX6.js → chunk-Z5BMYI2V.js} +8 -8
  84. package/dist/bundle/{chunk-TYLEICTX.js → chunk-ZAIE3G5I.js} +3 -3
  85. package/dist/bundle/{chunk-SOOU5WO6.js → chunk-ZSVMZH5O.js} +2 -2
  86. package/dist/bundle/{chunk-FA2TNA5X.js → chunk-ZVQDOKDY.js} +1 -1
  87. package/dist/bundle/{cli-KW6QQVS5.js → cli-L7P36YUH.js} +61 -61
  88. package/dist/bundle/command-contract-EYFGMKIG.js +41 -0
  89. package/dist/bundle/{command-server-entry-OC4E4DED.js → command-server-entry-H3VGPOLJ.js} +31 -31
  90. package/dist/bundle/{decode-AH5ZLLDK.js → decode-JEU6JWCV.js} +8 -8
  91. package/dist/bundle/{dispatch-CDWZZ54Q.js → dispatch-WBEOHZDV.js} +9 -9
  92. package/dist/bundle/drive.js +11 -11
  93. package/dist/bundle/{echarts-VC7MTXWY.js → echarts-SDZA2SWG.js} +2 -2
  94. package/dist/bundle/{embed-EPSQY6QG.js → embed-WUKOASQG.js} +9 -9
  95. package/dist/bundle/{embedder-TK4U4TJR.js → embedder-UBRAXRDZ.js} +12 -12
  96. package/dist/bundle/entry-C4NUQFTF.js +25 -0
  97. package/dist/bundle/{failure-WSVZOPFE.js → failure-X6PSLVSO.js} +4 -4
  98. package/dist/bundle/first-run-PKHBS7B4.js +30 -0
  99. package/dist/bundle/first-screen-QOVOM4BF.js +39 -0
  100. package/dist/bundle/google-XXHSMTVK.js +45 -0
  101. package/dist/bundle/{google-api-AV4X2JH3.js → google-api-SQQ4BSNR.js} +63 -63
  102. package/dist/bundle/grants-2U4JVT6O.js +111 -0
  103. package/dist/bundle/{identity-CGHHF7AK.js → identity-SRL6RSU2.js} +6 -6
  104. package/dist/bundle/{instructions-24PHDBBE.js → instructions-7T6JJIFS.js} +1 -1
  105. package/dist/bundle/{login-XHFESAFM.js → login-N243GGEE.js} +69 -69
  106. package/dist/bundle/{mcp-M5YCSWJJ.js → mcp-TDKGDB4V.js} +2 -2
  107. package/dist/bundle/{node-GIDULTV5.js → node-BZDMUFTW.js} +2 -2
  108. package/dist/bundle/{node-sqlite-LINBOAWK.js → node-sqlite-SZQCCMV2.js} +10 -10
  109. package/dist/bundle/oauth-CMAFXX6A.js +22 -0
  110. package/dist/bundle/{open-RYFKPNCJ.js → open-RVTPKDA3.js} +8 -8
  111. package/dist/bundle/{openai-Q7YYUHJF.js → openai-6NN63BMH.js} +19 -19
  112. package/dist/bundle/{process-VPIZTIJR.js → process-756VBE7E.js} +1 -1
  113. package/dist/bundle/{program-IUXFRBZA.js → program-B4QBJYB5.js} +187 -228
  114. package/dist/bundle/{prompt-LF4KX3XL.js → prompt-HGP2DSRW.js} +8 -8
  115. package/dist/bundle/{reasons-JPYOU5GV.js → reasons-KSYP5VDJ.js} +5 -5
  116. package/dist/bundle/{recognize-KEWTJXFH.js → recognize-26SHB7HI.js} +7 -7
  117. package/dist/bundle/{remote-HGGLB76S.js → remote-Z4PWHZ5N.js} +13 -13
  118. package/dist/bundle/{rerank-TDUKETFT.js → rerank-QHJZJK3Q.js} +10 -10
  119. package/dist/bundle/{serve-XFYMKW5W.js → serve-MYJW5IEM.js} +12 -12
  120. package/dist/bundle/server-HBZPIHDX.js +74 -0
  121. package/dist/bundle/{server-PXIPSGFP.js → server-XFW3V7CR.js} +49 -47
  122. package/dist/bundle/{services-2BOCGMJU.js → services-IQG2RVTO.js} +36 -36
  123. package/dist/bundle/{sqlite-runtime-R7M5XUMW.js → sqlite-runtime-X4GB5PBV.js} +9 -9
  124. package/dist/bundle/{start-YRLT4MQZ.js → start-C6EXYXAL.js} +7 -7
  125. package/dist/bundle/{state-NZ7WRJWH.js → state-ATQK2X3W.js} +9 -9
  126. package/dist/bundle/{store-ICDGPSEN.js → store-MEHEUOJH.js} +19 -19
  127. package/dist/bundle/{store-7LCVDO7G.js → store-QUBUPK6F.js} +21 -21
  128. package/dist/bundle/store-maintenance-command-33ULVDWY.js +65 -0
  129. package/dist/bundle/tokens-A2GP4F34.js +111 -0
  130. package/dist/commands/config.d.ts.map +1 -1
  131. package/dist/commands/config.js +5 -3
  132. package/dist/commands/config.js.map +1 -1
  133. package/dist/commands/search.js +4 -4
  134. package/dist/commands/search.js.map +1 -1
  135. package/dist/commands/sync.d.ts.map +1 -1
  136. package/dist/commands/sync.js +2 -1
  137. package/dist/commands/sync.js.map +1 -1
  138. package/dist/commands/transcripts.d.ts +4 -0
  139. package/dist/commands/transcripts.d.ts.map +1 -0
  140. package/dist/commands/transcripts.js +42 -0
  141. package/dist/commands/transcripts.js.map +1 -0
  142. package/dist/config.d.ts +9 -0
  143. package/dist/config.d.ts.map +1 -1
  144. package/dist/config.js +14 -1
  145. package/dist/config.js.map +1 -1
  146. package/dist/google.d.ts.map +1 -1
  147. package/dist/google.js +31 -28
  148. package/dist/google.js.map +1 -1
  149. package/dist/list-queries.d.ts +10 -0
  150. package/dist/list-queries.d.ts.map +1 -1
  151. package/dist/list-queries.js +12 -1
  152. package/dist/list-queries.js.map +1 -1
  153. package/dist/model.d.ts +4 -1
  154. package/dist/model.d.ts.map +1 -1
  155. package/dist/policy.d.ts +2 -0
  156. package/dist/policy.d.ts.map +1 -1
  157. package/dist/policy.js +3 -2
  158. package/dist/policy.js.map +1 -1
  159. package/dist/program.d.ts.map +1 -1
  160. package/dist/program.js +5 -2
  161. package/dist/program.js.map +1 -1
  162. package/dist/state.d.ts.map +1 -1
  163. package/dist/state.js +2 -0
  164. package/dist/state.js.map +1 -1
  165. package/dist/sync.d.ts.map +1 -1
  166. package/dist/sync.js +5 -1
  167. package/dist/sync.js.map +1 -1
  168. package/dist/transcripts.d.ts +21 -0
  169. package/dist/transcripts.d.ts.map +1 -0
  170. package/dist/transcripts.js +48 -0
  171. package/dist/transcripts.js.map +1 -0
  172. package/dist/version.d.ts +1 -1
  173. package/dist/version.js +1 -1
  174. package/package.json +3 -3
  175. package/dist/bundle/command-contract-CE543JBN.js +0 -41
  176. package/dist/bundle/entry-3VN23M7M.js +0 -25
  177. package/dist/bundle/first-run-7ZYJ7EB3.js +0 -30
  178. package/dist/bundle/first-screen-CZDH7QY3.js +0 -39
  179. package/dist/bundle/google-OBZMWA7J.js +0 -45
  180. package/dist/bundle/grants-WTRLN4ZI.js +0 -111
  181. package/dist/bundle/oauth-JHUX3KE3.js +0 -22
  182. package/dist/bundle/server-BDEV3CZJ.js +0 -74
  183. package/dist/bundle/store-maintenance-command-SJPLY6IH.js +0 -65
  184. package/dist/bundle/tokens-FGTBE7VW.js +0 -111
  185. /package/dist/bundle/{chunk-HVJJWJYQ.js → chunk-XWBPP2HX.js} +0 -0
@@ -3,35 +3,35 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  activeProfile,
5
5
  paths
6
- } from "./chunk-M7543RUJ.js";
6
+ } from "./chunk-RT5NT62B.js";
7
7
  import {
8
8
  READ_SCOPE,
9
9
  WRITE_SCOPE
10
10
  } from "./chunk-NYECVHFH.js";
11
11
  import {
12
12
  googleError
13
- } from "./chunk-5K54RZBK.js";
13
+ } from "./chunk-Y2QVNVHK.js";
14
14
  import {
15
15
  providerRequest
16
- } from "./chunk-4UHBJSMI.js";
16
+ } from "./chunk-UUQJVKPB.js";
17
17
  import {
18
18
  withTimeLimit
19
- } from "./chunk-WYTYHUFH.js";
19
+ } from "./chunk-Q6BD6RUH.js";
20
20
  import {
21
21
  acquireLock
22
- } from "./chunk-QSELSDWE.js";
22
+ } from "./chunk-YYIWPH53.js";
23
23
  import {
24
24
  hostFetch
25
- } from "./chunk-GY4DAJSK.js";
25
+ } from "./chunk-6QR7NKMG.js";
26
26
  import {
27
27
  DESKTOP
28
- } from "./chunk-YTIPTHEE.js";
28
+ } from "./chunk-6HFZZ2PW.js";
29
29
  import {
30
30
  Credentials,
31
31
  isMovedRun,
32
32
  keyringService,
33
33
  systemKeyring
34
- } from "./chunk-6X3KUFRQ.js";
34
+ } from "./chunk-MW46BLWH.js";
35
35
  import {
36
36
  minLength,
37
37
  nullable,
@@ -41,16 +41,16 @@ import {
41
41
  pipe,
42
42
  safeParse,
43
43
  string
44
- } from "./chunk-VQKNKJYL.js";
44
+ } from "./chunk-JRFKCYMW.js";
45
45
  import {
46
46
  CliError,
47
47
  isCliError
48
- } from "./chunk-IIHZTV6V.js";
48
+ } from "./chunk-EA2OB75T.js";
49
49
  import {
50
50
  __name
51
51
  } from "./chunk-ZVVMGPBJ.js";
52
52
 
53
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/oauth/authorize.js
53
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/oauth/authorize.js
54
54
  import { createHash, randomBytes } from "node:crypto";
55
55
  import { createServer } from "node:http";
56
56
  var DEFAULT_TIMEOUT_MS = 3e5;
@@ -186,12 +186,12 @@ var authorize = /* @__PURE__ */ __name(async (options) => {
186
186
  }
187
187
  }, "authorize");
188
188
 
189
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/oauth/keeper.js
189
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/oauth/keeper.js
190
190
  import { createHash as createHash2 } from "node:crypto";
191
191
  import { join } from "node:path";
192
192
  import { setTimeout as delay } from "node:timers/promises";
193
193
 
194
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/oauth/requests.js
194
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/oauth/requests.js
195
195
  var REQUEST_LIMIT_MS = 3e4;
196
196
  var TOKEN_LOG_EVENT = "oauth.token";
197
197
  var object2 = /* @__PURE__ */ __name((value) => {
@@ -288,6 +288,15 @@ var exchangeTokens = /* @__PURE__ */ __name(async (provider, params, context, de
288
288
  ...tokenType ? { tokenType } : {}
289
289
  };
290
290
  }, "exchangeTokens");
291
+ var alreadyRevoked = /* @__PURE__ */ __name(async (response) => {
292
+ if (response.status !== 400)
293
+ return false;
294
+ try {
295
+ return object2(JSON.parse(await response.text())).error === "invalid_token";
296
+ } catch {
297
+ return false;
298
+ }
299
+ }, "alreadyRevoked");
291
300
  var revokeToken = /* @__PURE__ */ __name(async (provider, tokens, context) => {
292
301
  if (provider.revoke)
293
302
  return provider.revoke(tokens, context);
@@ -295,23 +304,27 @@ var revokeToken = /* @__PURE__ */ __name(async (provider, tokens, context) => {
295
304
  throw new CliError("validation_error", `${provider.name} declares no way to revoke a sign-in`);
296
305
  const { revokeUrl } = provider;
297
306
  const form = new URLSearchParams({ token: tokens.refreshToken, ...clientFields(context) });
298
- const response = await withTimeLimit(REQUEST_LIMIT_MS, (deadline) => post(revokeUrl, form, context, deadline));
299
- context.log?.[response?.ok ? "info" : "warn"]({
307
+ const { response, gone } = await withTimeLimit(REQUEST_LIMIT_MS, async (deadline) => {
308
+ const response2 = await post(revokeUrl, form, context, deadline);
309
+ return { response: response2, gone: response2 ? await alreadyRevoked(response2) : false };
310
+ });
311
+ const done = response?.ok || gone;
312
+ context.log?.[done ? "info" : "warn"]({
300
313
  event: TOKEN_LOG_EVENT,
301
314
  provider: provider.id,
302
315
  operation: "revoke",
303
316
  pid: process.pid,
304
- outcome: response?.ok ? "revoked" : response ? "rejected" : "no_response",
317
+ outcome: response?.ok ? "revoked" : gone ? "already_revoked" : response ? "rejected" : "no_response",
305
318
  ...response ? { status: response.status } : {}
306
319
  });
307
- if (!response?.ok)
320
+ if (!done)
308
321
  throw new CliError("outcome_unknown", `${provider.name} did not confirm the revoke`, {
309
322
  reason: "oauth.revoke-failed",
310
323
  ...response ? { status: response.status } : {}
311
324
  });
312
325
  }, "revokeToken");
313
326
 
314
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/oauth/keeper.js
327
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/oauth/keeper.js
315
328
  var inFlight = /* @__PURE__ */ new Map();
316
329
  var refreshedInMemory = /* @__PURE__ */ new Map();
317
330
  var tokenKeeper = /* @__PURE__ */ __name((options) => {
@@ -473,7 +486,7 @@ var tokenKeeper = /* @__PURE__ */ __name((options) => {
473
486
  };
474
487
  }, "tokenKeeper");
475
488
 
476
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/oauth/provider.js
489
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/oauth/provider.js
477
490
  var googleProvider = /* @__PURE__ */ __name((client, { loginHint } = {}) => ({
478
491
  id: "google",
479
492
  name: "Google",
@@ -490,7 +503,7 @@ var googleProvider = /* @__PURE__ */ __name((client, { loginHint } = {}) => ({
490
503
  }
491
504
  }), "googleProvider");
492
505
 
493
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/oauth/storage.js
506
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/oauth/storage.js
494
507
  var invalid = /* @__PURE__ */ __name(() => new CliError("authentication_error", "the saved sign-in cannot be read; sign in again", { reason: "oauth.invalid" }), "invalid");
495
508
  var parse = /* @__PURE__ */ __name((raw) => {
496
509
  let value;
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  endpoint
5
- } from "./chunk-GY4DAJSK.js";
5
+ } from "./chunk-6QR7NKMG.js";
6
6
  import {
7
7
  check,
8
8
  getDotPath,
@@ -17,15 +17,15 @@ import {
17
17
  strictObject,
18
18
  string,
19
19
  trim
20
- } from "./chunk-VQKNKJYL.js";
20
+ } from "./chunk-JRFKCYMW.js";
21
21
  import {
22
22
  CliError
23
- } from "./chunk-IIHZTV6V.js";
23
+ } from "./chunk-EA2OB75T.js";
24
24
  import {
25
25
  __name
26
26
  } from "./chunk-ZVVMGPBJ.js";
27
27
 
28
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/models/settings.js
28
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/models/settings.js
29
29
  var MODEL_FIELDS = ["provider", "model", "base_url"];
30
30
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
31
31
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -13,7 +13,7 @@ import {
13
13
  checkApiBody,
14
14
  checkApiParameter,
15
15
  parseApiJson
16
- } from "./chunk-4UHBJSMI.js";
16
+ } from "./chunk-UUQJVKPB.js";
17
17
  import {
18
18
  array,
19
19
  boolean,
@@ -29,15 +29,15 @@ import {
29
29
  string,
30
30
  transform,
31
31
  unknown
32
- } from "./chunk-VQKNKJYL.js";
32
+ } from "./chunk-JRFKCYMW.js";
33
33
  import {
34
34
  CliError
35
- } from "./chunk-IIHZTV6V.js";
35
+ } from "./chunk-EA2OB75T.js";
36
36
  import {
37
37
  __name
38
38
  } from "./chunk-ZVVMGPBJ.js";
39
39
 
40
- // node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
40
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
41
41
  var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
42
42
  var INTEGER = /^-?\d+$/;
43
43
  var INT64_MIN = -(2n ** 63n);
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  defineReasons
5
- } from "./chunk-VQKNKJYL.js";
5
+ } from "./chunk-JRFKCYMW.js";
6
6
 
7
7
  // dist/reasons.js
8
8
  var ENTRIES = [