@wirecat/drive-cli 0.68.0 → 0.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bundle/{all-profiles-BU6XUFUP.js → all-profiles-B4A737YW.js} +20 -30
  3. package/dist/bundle/{anthropic-ZP5B7S2Z.js → anthropic-RZGPDESM.js} +3 -3
  4. package/dist/bundle/{app-server-EB4DH6T7.js → app-server-OWEW7DY5.js} +47 -63
  5. package/dist/bundle/{bun-PWMM6L45.js → bun-V5QLYBZU.js} +2 -2
  6. package/dist/bundle/{bun-sqlite-6VPR2SVC.js → bun-sqlite-KHLHXXGH.js} +4 -4
  7. package/dist/bundle/{chunk-7TNQZKRD.js → chunk-22SH77TG.js} +65 -64
  8. package/dist/bundle/{chunk-MLSXHTUB.js → chunk-25FT44S3.js} +1480 -464
  9. package/dist/bundle/{chunk-5G2BY4B6.js → chunk-2DS2TDGW.js} +29 -28
  10. package/dist/bundle/{chunk-PGPHEC2X.js → chunk-2Q4CB4EI.js} +1 -1
  11. package/dist/bundle/{chunk-74NCZKRW.js → chunk-2VFAXC6O.js} +13 -13
  12. package/dist/bundle/{chunk-NV75QPML.js → chunk-376ZGVUZ.js} +4 -4
  13. package/dist/bundle/{chunk-6WAC2LOS.js → chunk-3RLRJHAI.js} +1558 -928
  14. package/dist/bundle/{chunk-QVJMFZFW.js → chunk-3URYKAJP.js} +1 -1
  15. package/dist/bundle/{chunk-UYBLNGZ2.js → chunk-3YKAFLXY.js} +1 -1
  16. package/dist/bundle/{chunk-CMWFYZ45.js → chunk-4J5GJJ2I.js} +1 -1
  17. package/dist/bundle/{chunk-QKY24RWV.js → chunk-4YECZ6CN.js} +11 -11
  18. package/dist/bundle/{chunk-FAMXUI2X.js → chunk-4ZFO2CVH.js} +4 -4
  19. package/dist/bundle/{chunk-IVOG6T6P.js → chunk-533XOW74.js} +2 -2
  20. package/dist/bundle/{chunk-Q6BD6RUH.js → chunk-5B5NOAIA.js} +100 -55
  21. package/dist/bundle/{chunk-MW46BLWH.js → chunk-5SJZDEIO.js} +2 -0
  22. package/dist/bundle/{chunk-CVAJMRRD.js → chunk-6D44YQ5X.js} +5 -5
  23. package/dist/bundle/{chunk-EOC7RHJ2.js → chunk-6EL5AVXX.js} +3 -5
  24. package/dist/bundle/{chunk-TI2OANJZ.js → chunk-6XNTELM5.js} +1 -1
  25. package/dist/bundle/{chunk-WUFZGPXX.js → chunk-AD7VI3XU.js} +6 -6
  26. package/dist/bundle/{chunk-YUGTJBV3.js → chunk-AMQGKMLZ.js} +2 -2
  27. package/dist/bundle/{chunk-SOS4U2RF.js → chunk-BBJVV4E2.js} +24 -25
  28. package/dist/bundle/{chunk-JMZQBRRZ.js → chunk-BVVXYZSU.js} +5 -5
  29. package/dist/bundle/{chunk-AIEMFRBU.js → chunk-CAQ5GW3A.js} +1 -1
  30. package/dist/bundle/{chunk-PWIEOATY.js → chunk-CDSB7WVG.js} +323 -12
  31. package/dist/bundle/{chunk-KPKIHJIT.js → chunk-CU6RATZH.js} +3 -3
  32. package/dist/bundle/{chunk-43NEDPXB.js → chunk-CZ4UEXCE.js} +4 -4
  33. package/dist/bundle/{chunk-UFPRP7MG.js → chunk-E7URRFBB.js} +7 -7
  34. package/dist/bundle/{chunk-YYIWPH53.js → chunk-EL2E3ABX.js} +12 -12
  35. package/dist/bundle/{chunk-MWCPKUU4.js → chunk-EWUQIUTB.js} +4 -4
  36. package/dist/bundle/{chunk-7A77GYCE.js → chunk-F5UUJU6R.js} +2 -2
  37. package/dist/bundle/{chunk-O7T3WGCV.js → chunk-GHFBT2ZM.js} +4 -4
  38. package/dist/bundle/{chunk-7BXVI7XF.js → chunk-GK6KXBL6.js} +1 -1
  39. package/dist/bundle/{chunk-5W65QTYS.js → chunk-GTDCP5OG.js} +3 -3
  40. package/dist/bundle/{chunk-GTLXBAJV.js → chunk-HEBZCKMU.js} +1669 -662
  41. package/dist/bundle/{chunk-AXYG2DDY.js → chunk-I55XYREN.js} +636 -227
  42. package/dist/bundle/{chunk-UUQJVKPB.js → chunk-IQ2QU2X6.js} +1608 -1096
  43. package/dist/bundle/{chunk-ULNN3LCY.js → chunk-KUQDBWPU.js} +40 -32
  44. package/dist/bundle/{chunk-6QR7NKMG.js → chunk-L342KHIZ.js} +105 -1
  45. package/dist/bundle/{chunk-DYLYH7VE.js → chunk-LRCSDAYK.js} +3 -3
  46. package/dist/bundle/{chunk-QTRYJZL7.js → chunk-LUZRVBQR.js} +4 -4
  47. package/dist/bundle/{chunk-PJ3FKBXG.js → chunk-MHXZ62CU.js} +1 -1
  48. package/dist/bundle/{chunk-WGX4DZPW.js → chunk-N4ACIIQB.js} +2 -2
  49. package/dist/bundle/{chunk-DU23ET2O.js → chunk-NVDR72GP.js} +19 -19
  50. package/dist/bundle/{chunk-F7KAMSXA.js → chunk-O6PD7RZY.js} +2 -2
  51. package/dist/bundle/{chunk-JZ3MT7IE.js → chunk-OOIAJRKQ.js} +1 -1
  52. package/dist/bundle/{chunk-ZVQDOKDY.js → chunk-OUM4ZO53.js} +1 -1
  53. package/dist/bundle/{chunk-ZSVMZH5O.js → chunk-PB6NWKH3.js} +2 -2
  54. package/dist/bundle/{chunk-EEE4H2PA.js → chunk-QJGFQRTL.js} +10 -10
  55. package/dist/bundle/chunk-RLGQMMYE.js +707 -0
  56. package/dist/bundle/{chunk-CRIEW4FP.js → chunk-RWQ7T4Y5.js} +2 -2
  57. package/dist/bundle/{chunk-EXWZCI5G.js → chunk-SEJBS7SI.js} +1 -1
  58. package/dist/bundle/{chunk-CK2SQ2CE.js → chunk-SY2HLH5R.js} +32 -19
  59. package/dist/bundle/{chunk-6HFZZ2PW.js → chunk-SYUXKV2E.js} +1 -1
  60. package/dist/bundle/{chunk-ZAIE3G5I.js → chunk-T4FMXDDV.js} +2 -2
  61. package/dist/bundle/{chunk-U52QE4QV.js → chunk-T6X6EZ5N.js} +3 -3
  62. package/dist/bundle/{chunk-Z5BMYI2V.js → chunk-TZ75K6R7.js} +6 -6
  63. package/dist/bundle/{chunk-D4MVEOU2.js → chunk-U3RXH6RY.js} +1 -1
  64. package/dist/bundle/{chunk-QRSPFCRY.js → chunk-V4FMN5A6.js} +16 -16
  65. package/dist/bundle/{chunk-QWGEOQHA.js → chunk-VUPWDCYV.js} +1 -1
  66. package/dist/bundle/{chunk-WCNTDETD.js → chunk-WNMPIRRF.js} +98 -6
  67. package/dist/bundle/{chunk-RT5NT62B.js → chunk-WOUIHZRI.js} +13 -15
  68. package/dist/bundle/{chunk-UIKVP23D.js → chunk-WQOGHND4.js} +1 -1
  69. package/dist/bundle/{chunk-2VYEGKQ3.js → chunk-XUHQ7DVT.js} +1 -1
  70. package/dist/bundle/{chunk-DIZBJLPM.js → chunk-XVH3WZSZ.js} +45 -55
  71. package/dist/bundle/{chunk-MOKEB656.js → chunk-ZBYKCVSV.js} +1 -1
  72. package/dist/bundle/{chunk-BXHFJTU5.js → chunk-ZUG67442.js} +2 -2
  73. package/dist/bundle/{cli-L7P36YUH.js → cli-BS4L3HAP.js} +100 -70
  74. package/dist/bundle/{command-contract-EYFGMKIG.js → command-contract-HYURWSD6.js} +16 -17
  75. package/dist/bundle/{command-server-entry-H3VGPOLJ.js → command-server-entry-CJ2CV7ZV.js} +23 -24
  76. package/dist/bundle/{decode-JEU6JWCV.js → decode-E2NM5SSM.js} +3 -3
  77. package/dist/bundle/drive.js +4 -4
  78. package/dist/bundle/{echarts-SDZA2SWG.js → echarts-QIXLXS3G.js} +2 -2
  79. package/dist/bundle/{embed-WUKOASQG.js → embed-YNZW5X6M.js} +4 -4
  80. package/dist/bundle/{embedder-UBRAXRDZ.js → embedder-LRC2PKTS.js} +7 -7
  81. package/dist/bundle/{entry-C4NUQFTF.js → entry-2IMSWRJU.js} +7 -7
  82. package/dist/bundle/{first-run-PKHBS7B4.js → first-run-7CPHQDM5.js} +7 -7
  83. package/dist/bundle/first-screen-OKZ7GMFR.js +38 -0
  84. package/dist/bundle/{google-XXHSMTVK.js → google-WDKDBDD4.js} +15 -15
  85. package/dist/bundle/{google-api-SQQ4BSNR.js → google-api-7JDZDCWE.js} +52 -53
  86. package/dist/bundle/{grants-2U4JVT6O.js → grants-AU25GWKF.js} +57 -58
  87. package/dist/bundle/{identity-SRL6RSU2.js → identity-E43WKN5F.js} +1 -1
  88. package/dist/bundle/{instructions-7T6JJIFS.js → instructions-MD2RZT5Z.js} +1 -1
  89. package/dist/bundle/{login-N243GGEE.js → login-RBDJPQAG.js} +57 -58
  90. package/dist/bundle/{node-BZDMUFTW.js → node-IEVT2FSJ.js} +2 -2
  91. package/dist/bundle/{node-sqlite-SZQCCMV2.js → node-sqlite-IENH4TRX.js} +5 -5
  92. package/dist/bundle/{oauth-CMAFXX6A.js → oauth-3JGSN47Z.js} +5 -5
  93. package/dist/bundle/{open-RVTPKDA3.js → open-TZ5H7NYM.js} +3 -3
  94. package/dist/bundle/{openai-6NN63BMH.js → openai-XF2KB7W2.js} +14 -14
  95. package/dist/bundle/{process-756VBE7E.js → process-6Q23D3TO.js} +1 -1
  96. package/dist/bundle/{program-B4QBJYB5.js → program-D5XWOHV5.js} +86 -89
  97. package/dist/bundle/{prompt-HGP2DSRW.js → prompt-KUC5D4GX.js} +3 -3
  98. package/dist/bundle/{recognize-26SHB7HI.js → recognize-DPFW7HO3.js} +2 -2
  99. package/dist/bundle/{remote-Z4PWHZ5N.js → remote-MODTSUNH.js} +8 -8
  100. package/dist/bundle/{rerank-QHJZJK3Q.js → rerank-JK7SERLE.js} +5 -5
  101. package/dist/bundle/{serve-MYJW5IEM.js → serve-BV2WHZLW.js} +7 -7
  102. package/dist/bundle/server-6YDI4Y36.js +72 -0
  103. package/dist/bundle/{server-XFW3V7CR.js → server-N3WPEU7Z.js} +45 -44
  104. package/dist/bundle/{services-IQG2RVTO.js → services-SV6CFUCS.js} +42 -27
  105. package/dist/bundle/{sqlite-runtime-X4GB5PBV.js → sqlite-runtime-RZ5PLZVQ.js} +4 -4
  106. package/dist/bundle/{state-ATQK2X3W.js → state-RAZIREVG.js} +4 -4
  107. package/dist/bundle/{store-QUBUPK6F.js → store-2DLGLYS6.js} +18 -14
  108. package/dist/bundle/{store-MEHEUOJH.js → store-DQKJKX2G.js} +12 -12
  109. package/dist/bundle/store-maintenance-command-UJ5F5L4H.js +64 -0
  110. package/dist/bundle/tokens-LY3WML55.js +110 -0
  111. package/dist/policy.d.ts +1 -1
  112. package/dist/policy.d.ts.map +1 -1
  113. package/dist/policy.js +3 -3
  114. package/dist/policy.js.map +1 -1
  115. package/dist/version.d.ts +1 -1
  116. package/dist/version.js +1 -1
  117. package/package.json +2 -2
  118. package/dist/bundle/chunk-2UHQVRH2.js +0 -1235
  119. package/dist/bundle/chunk-J5LXL435.js +0 -1316
  120. package/dist/bundle/chunk-R5FTCNLJ.js +0 -76
  121. package/dist/bundle/first-screen-QOVOM4BF.js +0 -39
  122. package/dist/bundle/server-HBZPIHDX.js +0 -74
  123. package/dist/bundle/store-maintenance-command-33ULVDWY.js +0 -65
  124. package/dist/bundle/tokens-A2GP4F34.js +0 -111
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  refuseLacking
5
- } from "./chunk-2UHQVRH2.js";
5
+ } from "./chunk-RLGQMMYE.js";
6
6
  import {
7
7
  FloodMemory,
8
8
  OFFLINE,
@@ -18,38 +18,37 @@ import {
18
18
  servicesFor,
19
19
  throughWrapper,
20
20
  withFileLockAsync
21
- } from "./chunk-GTLXBAJV.js";
21
+ } from "./chunk-HEBZCKMU.js";
22
22
  import {
23
23
  servingProfiles
24
- } from "./chunk-U52QE4QV.js";
25
- import {
26
- asFirstWord,
27
- baseContext,
28
- environmentOf,
29
- issueMessage,
30
- permissionIssues,
31
- publicIssue,
32
- recalledAccount,
33
- rememberAccount,
34
- rootOf2 as rootOf
35
- } from "./chunk-MLSXHTUB.js";
36
- import {
37
- providerErrorKey
38
- } from "./chunk-WUFZGPXX.js";
24
+ } from "./chunk-T6X6EZ5N.js";
39
25
  import {
40
26
  AUTHORITY_KEY,
41
27
  CEILING_KEY,
42
28
  DEFAULT_PERMISSIONS,
43
29
  KEYED_UNDER_HOUSEKEEPING,
44
30
  WRITE_KEYS,
31
+ asFirstWord,
32
+ baseContext,
45
33
  codeOf,
46
34
  currentOperation,
35
+ environmentOf,
36
+ fetchesUnder,
37
+ issueMessage,
47
38
  keyForCommand,
48
39
  levelFor,
49
40
  limitBatch,
41
+ permissionIssues,
42
+ publicIssue,
50
43
  readKeysForCommand,
44
+ recalledAccount,
45
+ rememberAccount,
46
+ rootOf2 as rootOf,
51
47
  skipFlagFor
52
- } from "./chunk-J5LXL435.js";
48
+ } from "./chunk-25FT44S3.js";
49
+ import {
50
+ providerErrorKey
51
+ } from "./chunk-AD7VI3XU.js";
53
52
  import {
54
53
  chatReferenceOf,
55
54
  ensureAccount,
@@ -57,13 +56,13 @@ import {
57
56
  isId,
58
57
  openStore,
59
58
  pickPerson
60
- } from "./chunk-6WAC2LOS.js";
59
+ } from "./chunk-3RLRJHAI.js";
61
60
  import {
62
61
  isCliFailure
63
- } from "./chunk-UYBLNGZ2.js";
62
+ } from "./chunk-3YKAFLXY.js";
64
63
  import {
65
64
  resolvePaths
66
- } from "./chunk-MW46BLWH.js";
65
+ } from "./chunk-5SJZDEIO.js";
67
66
  import {
68
67
  CliError
69
68
  } from "./chunk-EA2OB75T.js";
@@ -71,7 +70,7 @@ import {
71
70
  __name
72
71
  } from "./chunk-ZVVMGPBJ.js";
73
72
 
74
- // 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/cli/messenger/ask.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
75
74
  import { openSync } from "node:fs";
76
75
  import { createInterface } from "node:readline";
77
76
  import { ReadStream } from "node:tty";
@@ -126,7 +125,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
126
125
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
127
126
  }, "terminalAsker");
128
127
 
129
- // 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/cli/permission-keys.js
128
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
130
129
  var HOUSEKEEPING = /* @__PURE__ */ new Set([
131
130
  "help",
132
131
  "guide",
@@ -206,7 +205,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
206
205
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
207
206
  }, "refuseUnknownPermissionKeys");
208
207
 
209
- // 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/cli/messenger/stored.js
208
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
210
209
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
211
210
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
212
211
  let warned = false;
@@ -782,7 +781,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
782
781
  }
783
782
  }, "keep");
784
783
 
785
- // 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/sends/pace.js
784
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/pace.js
786
785
  import { readFileSync, renameSync, writeFileSync } from "node:fs";
787
786
  import { join } from "node:path";
788
787
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -877,7 +876,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
877
876
  await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
878
877
  }, "waitForTurn");
879
878
 
880
- // 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/cli/messenger/flooded.js
879
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
881
880
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
882
881
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
883
882
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -974,7 +973,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
974
973
  });
975
974
  }, "flooded");
976
975
 
977
- // 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/cli/messenger/observed.js
976
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
978
977
  var observed = /* @__PURE__ */ __name((messenger, events) => {
979
978
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
980
979
  const write = currentOperation();
@@ -1073,7 +1072,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
1073
1072
  counts[part] = (counts[part] ?? 0) + items.length;
1074
1073
  }, "byPart");
1075
1074
 
1076
- // 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/cli/messenger/context.js
1075
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1077
1076
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1078
1077
  let opened;
1079
1078
  return {
@@ -1351,6 +1350,8 @@ var refuseLocalWrite = /* @__PURE__ */ __name((context, command, permission) =>
1351
1350
  const { level, key } = levelFor(settings.permissions, permission);
1352
1351
  if (level === "allow" || level === "ask" && context.agent)
1353
1352
  return;
1353
+ if (fetchesUnder(level, permission))
1354
+ return;
1354
1355
  if (key === CEILING_KEY)
1355
1356
  throw ceilingRefusal(permission, command);
1356
1357
  throw new CliError(level === "ask" ? "confirmation_required" : "permission_error", `profile ${settings.profile} does not let ${permission} write (permissions.${key} is ${level}, from the ${settings.permissionSources[key ?? ""] ?? "default"}); to allow it: ${command} ${settings.profile} config set permissions.${permission} allow`, { permission });
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // 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/cli/input-policy.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
11
11
  var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
12
12
  var MAX_SECRET_INPUT = 64 * 1024;
13
13
  var policies = /* @__PURE__ */ new WeakMap();
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  activeProfile,
5
5
  paths
6
- } from "./chunk-RT5NT62B.js";
6
+ } from "./chunk-WOUIHZRI.js";
7
7
  import {
8
8
  READ_SCOPE,
9
9
  WRITE_SCOPE
@@ -13,25 +13,25 @@ import {
13
13
  } from "./chunk-Y2QVNVHK.js";
14
14
  import {
15
15
  providerRequest
16
- } from "./chunk-UUQJVKPB.js";
16
+ } from "./chunk-IQ2QU2X6.js";
17
17
  import {
18
18
  withTimeLimit
19
- } from "./chunk-Q6BD6RUH.js";
19
+ } from "./chunk-5B5NOAIA.js";
20
20
  import {
21
21
  acquireLock
22
- } from "./chunk-YYIWPH53.js";
22
+ } from "./chunk-EL2E3ABX.js";
23
23
  import {
24
24
  hostFetch
25
- } from "./chunk-6QR7NKMG.js";
25
+ } from "./chunk-L342KHIZ.js";
26
26
  import {
27
27
  DESKTOP
28
- } from "./chunk-6HFZZ2PW.js";
28
+ } from "./chunk-SYUXKV2E.js";
29
29
  import {
30
30
  Credentials,
31
31
  isMovedRun,
32
32
  keyringService,
33
33
  systemKeyring
34
- } from "./chunk-MW46BLWH.js";
34
+ } from "./chunk-5SJZDEIO.js";
35
35
  import {
36
36
  minLength,
37
37
  nullable,
@@ -50,7 +50,7 @@ import {
50
50
  __name
51
51
  } from "./chunk-ZVVMGPBJ.js";
52
52
 
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
53
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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.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
189
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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.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
194
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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) => {
@@ -324,7 +324,7 @@ var revokeToken = /* @__PURE__ */ __name(async (provider, tokens, context) => {
324
324
  });
325
325
  }, "revokeToken");
326
326
 
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
327
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/oauth/keeper.js
328
328
  var inFlight = /* @__PURE__ */ new Map();
329
329
  var refreshedInMemory = /* @__PURE__ */ new Map();
330
330
  var tokenKeeper = /* @__PURE__ */ __name((options) => {
@@ -486,7 +486,7 @@ var tokenKeeper = /* @__PURE__ */ __name((options) => {
486
486
  };
487
487
  }, "tokenKeeper");
488
488
 
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
489
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/oauth/provider.js
490
490
  var googleProvider = /* @__PURE__ */ __name((client, { loginHint } = {}) => ({
491
491
  id: "google",
492
492
  name: "Google",
@@ -503,7 +503,7 @@ var googleProvider = /* @__PURE__ */ __name((client, { loginHint } = {}) => ({
503
503
  }
504
504
  }), "googleProvider");
505
505
 
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
506
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/oauth/storage.js
507
507
  var invalid = /* @__PURE__ */ __name(() => new CliError("authentication_error", "the saved sign-in cannot be read; sign in again", { reason: "oauth.invalid" }), "invalid");
508
508
  var parse = /* @__PURE__ */ __name((raw) => {
509
509
  let value;
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-U52QE4QV.js";
8
+ } from "./chunk-T6X6EZ5N.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // 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/mcp/http/state.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
14
14
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
15
15
 
16
- // 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/mcp/http/activity.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
17
17
  import { randomBytes } from "node:crypto";
18
18
  import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
86
86
  };
87
87
  }, "activityRecorder");
88
88
 
89
- // 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/mcp/http/state.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
90
90
  var ACCESS_SECONDS = 60 * 60;
91
91
  var REFRESH_SECONDS = 30 * 24 * 60 * 60;
92
92
  var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");