@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.
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-WRN35CUF.js → all-profiles-I5KJKZPF.js} +9 -9
- package/dist/bundle/{anthropic-DZASXWG3.js → anthropic-DPM7BRKX.js} +5 -5
- package/dist/bundle/{app-server-4VHT7QZN.js → app-server-FTGLOZ2K.js} +46 -46
- package/dist/bundle/{bun-7SYKSCLA.js → bun-XRO6XJHQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-2GOM5PM3.js → bun-sqlite-7JJX6OUT.js} +4 -4
- package/dist/bundle/{chunk-54BYJQ77.js → chunk-2DZMGPUC.js} +25 -25
- package/dist/bundle/{chunk-WJRJBQIM.js → chunk-2KARCTUU.js} +549 -288
- package/dist/bundle/{chunk-PSNHPFSK.js → chunk-2LLNPNMB.js} +1 -1
- package/dist/bundle/{chunk-EKFEY3KP.js → chunk-2OGANEKA.js} +1 -1
- package/dist/bundle/{chunk-VTWADVEQ.js → chunk-3K4H2DTA.js} +2 -2
- package/dist/bundle/{chunk-UFWK3L5Z.js → chunk-4I7EBJJV.js} +6 -6
- package/dist/bundle/{chunk-2PVDFLJJ.js → chunk-4LZFESHQ.js} +4 -2
- package/dist/bundle/{chunk-LJAX6YCF.js → chunk-4XRLPQ3N.js} +2 -2
- package/dist/bundle/{chunk-E6XDFMRZ.js → chunk-5DEEBWDI.js} +32 -32
- package/dist/bundle/{chunk-RNIHKIQP.js → chunk-67A2YFAT.js} +4 -4
- package/dist/bundle/{chunk-DOZOLBXE.js → chunk-7GJBKGRZ.js} +3 -3
- package/dist/bundle/{chunk-LSGAJYVN.js → chunk-7MVKSPEG.js} +6 -6
- package/dist/bundle/{chunk-ZDLIO76S.js → chunk-ALMQEGYO.js} +2 -2
- package/dist/bundle/{chunk-FXWBUTR7.js → chunk-AQNY57J2.js} +7 -7
- package/dist/bundle/{chunk-JEOYFKUK.js → chunk-AR2HRFQO.js} +2 -2
- package/dist/bundle/{chunk-3RYX7IB6.js → chunk-BO7ZKZCH.js} +39 -38
- package/dist/bundle/{chunk-QXYGK6G5.js → chunk-C4QKY33N.js} +2 -2
- package/dist/bundle/{chunk-VZ2I62HN.js → chunk-DNJ43DT5.js} +2 -2
- package/dist/bundle/{chunk-ZG6X24ON.js → chunk-E7RDXCV2.js} +5 -5
- package/dist/bundle/{chunk-ALJWBGD5.js → chunk-EOEDICIE.js} +1 -1
- package/dist/bundle/{chunk-6DHQTUB2.js → chunk-FDCGTODC.js} +1 -1
- package/dist/bundle/{chunk-HM352LJR.js → chunk-FDM3JMQZ.js} +24 -24
- package/dist/bundle/{chunk-IJFZKQC4.js → chunk-FKHWVVMV.js} +3 -3
- package/dist/bundle/{chunk-PR3DA7KA.js → chunk-FNDQFFLP.js} +11 -11
- package/dist/bundle/{chunk-CKBHR7QO.js → chunk-FUKJQZED.js} +1 -1
- package/dist/bundle/{chunk-PC4UA6UN.js → chunk-GB5YM5HK.js} +5 -5
- package/dist/bundle/{chunk-CNKILAWA.js → chunk-GC4JNVYF.js} +43 -25
- package/dist/bundle/{chunk-BEL4XZ3M.js → chunk-GIRVMZD3.js} +16 -16
- package/dist/bundle/{chunk-YQOVVCIA.js → chunk-HNR2BJJU.js} +17 -16
- package/dist/bundle/{chunk-T334CFU4.js → chunk-IDK5QUBJ.js} +4 -4
- package/dist/bundle/{chunk-WUX7AUOQ.js → chunk-IXXVCKWL.js} +26 -26
- package/dist/bundle/{chunk-NHBUTCNR.js → chunk-J6XLM4QW.js} +9 -9
- package/dist/bundle/{chunk-CITFEQ6S.js → chunk-JBBZCTTF.js} +1 -1
- package/dist/bundle/{chunk-7XKAVMCF.js → chunk-JPFF6MNK.js} +8 -8
- package/dist/bundle/{chunk-SQHPJBNO.js → chunk-K2DMCTTF.js} +95 -95
- package/dist/bundle/{chunk-NSIFQ5OP.js → chunk-KM7Q67Z3.js} +1 -1
- package/dist/bundle/{chunk-6BNALDGA.js → chunk-KWKRTYRL.js} +4 -4
- package/dist/bundle/{chunk-TZLO3ZZF.js → chunk-KXWJT72E.js} +17 -26
- package/dist/bundle/{chunk-6XYGTRMQ.js → chunk-LAVWTS4P.js} +523 -268
- package/dist/bundle/{chunk-DZMK255Y.js → chunk-N4VNUOOD.js} +41 -31
- package/dist/bundle/{chunk-IAQ4L6SM.js → chunk-NCCL4QWR.js} +3 -3
- package/dist/bundle/{chunk-SIWBUGBU.js → chunk-NDG6LHX7.js} +8 -8
- package/dist/bundle/{chunk-GPJEYW2J.js → chunk-NDUYK676.js} +8 -8
- package/dist/bundle/{chunk-PIMMF67N.js → chunk-NFOUG7ES.js} +2 -2
- package/dist/bundle/{chunk-DT2YCB2V.js → chunk-NPKFXGYG.js} +24 -22
- package/dist/bundle/{chunk-CL4GVCXS.js → chunk-NPMVPKBD.js} +46 -46
- package/dist/bundle/{chunk-MK3N7WX7.js → chunk-ORRQDSDH.js} +3 -3
- package/dist/bundle/{chunk-YLKQSVLI.js → chunk-P4ABC6C4.js} +2 -2
- package/dist/bundle/{chunk-GVCN3GLZ.js → chunk-PFTIYWOK.js} +4 -4
- package/dist/bundle/{chunk-KXMJE3XC.js → chunk-RMQGFLT2.js} +6 -6
- package/dist/bundle/{chunk-YKZ4IPLB.js → chunk-TBD362SJ.js} +7 -7
- package/dist/bundle/{chunk-SVTYS36O.js → chunk-TD4RAOMZ.js} +3 -3
- package/dist/bundle/{chunk-R276546S.js → chunk-TIEEVT2Z.js} +1 -1
- package/dist/bundle/{chunk-OQMK6WXQ.js → chunk-TIVC4DB5.js} +2 -2
- package/dist/bundle/{chunk-ZSXRDF6I.js → chunk-TQFCPUIM.js} +1 -1
- package/dist/bundle/{chunk-KPBCGUJC.js → chunk-UDWMRZL6.js} +21 -21
- package/dist/bundle/{chunk-DLAFGSTN.js → chunk-UIPT6IAU.js} +1 -1
- package/dist/bundle/{chunk-C6Z25IBJ.js → chunk-ULPS2OAL.js} +4 -4
- package/dist/bundle/{chunk-7SH4JHYW.js → chunk-VGTDXEYD.js} +12 -12
- package/dist/bundle/{chunk-R4TE4ZSD.js → chunk-VVMCGF5X.js} +342 -296
- package/dist/bundle/{chunk-F3KHUJEE.js → chunk-VXZULAWV.js} +10 -10
- package/dist/bundle/{chunk-7IUMHMTP.js → chunk-VY2AUZMJ.js} +2 -2
- package/dist/bundle/{chunk-GE4DP24O.js → chunk-VY3TYRCK.js} +51 -51
- package/dist/bundle/{chunk-2HHOMN2G.js → chunk-W6DMCGMK.js} +23 -23
- package/dist/bundle/{chunk-FJW3DDCF.js → chunk-XTNEYXAQ.js} +5 -5
- package/dist/bundle/{chunk-FG4XXZZE.js → chunk-YP5FDMTG.js} +2 -2
- package/dist/bundle/command-contract-VXLGE6NV.js +35 -0
- package/dist/bundle/{decode-WAPM2VBH.js → decode-3LX3BLZM.js} +4 -4
- package/dist/bundle/drive.js +6 -6
- package/dist/bundle/{echarts-GXY34GHA.js → echarts-YNGCOYHW.js} +2 -2
- package/dist/bundle/{embed-HW3N3KNP.js → embed-FICTRZJL.js} +5 -5
- package/dist/bundle/{embedder-7WNFXYYP.js → embedder-DSMRCRSH.js} +8 -8
- package/dist/bundle/{entry-J7YIRDPD.js → entry-4ZX3BNXK.js} +6 -6
- package/dist/bundle/{first-run-53CL2IYH.js → first-run-GRBQ3SQ5.js} +9 -9
- package/dist/bundle/first-screen-JK3MZVCU.js +33 -0
- package/dist/bundle/{google-5NNVARNR.js → google-QV2B2KZA.js} +9 -9
- package/dist/bundle/{google-api-EQQH53QD.js → google-api-EVO7F3WB.js} +51 -51
- package/dist/bundle/grants-VJDGD3BG.js +98 -0
- package/dist/bundle/identity-25CTQZS3.js +14 -0
- package/dist/bundle/{instructions-K5BEQM4C.js → instructions-GJHHFV64.js} +1 -1
- package/dist/bundle/{login-Y6ENYKC3.js → login-54G4F4EP.js} +58 -60
- package/dist/bundle/{mcp-WSGVVZWI.js → mcp-EMNFFY4N.js} +2 -2
- package/dist/bundle/{node-ZYWB7IET.js → node-GFOH6FKP.js} +2 -2
- package/dist/bundle/{node-sqlite-FSQIKGED.js → node-sqlite-NZIBED3C.js} +4 -4
- package/dist/bundle/{oauth-HF5USWXY.js → oauth-WUHT2JII.js} +6 -6
- package/dist/bundle/{open-NHGJENCX.js → open-INBNHORD.js} +3 -3
- package/dist/bundle/{openai-3JCJYKNX.js → openai-BMREUGJP.js} +13 -13
- package/dist/bundle/{process-ZXO2MWRJ.js → process-XVDX4SPD.js} +1 -1
- package/dist/bundle/{program-QAJ66K3Z.js → program-5OBA53CL.js} +75 -75
- package/dist/bundle/{prompt-LQJBCCUF.js → prompt-S7GHCPGR.js} +4 -4
- package/dist/bundle/{reasons-J57GSRWN.js → reasons-T24V3AYS.js} +3 -3
- package/dist/bundle/{recognize-QM3LN4ZF.js → recognize-T3DABMW5.js} +3 -3
- package/dist/bundle/{remote-WREGEZJQ.js → remote-ASYGFT6E.js} +6 -6
- package/dist/bundle/{rerank-YFUB6J6M.js → rerank-BQ5U252K.js} +6 -6
- package/dist/bundle/{serve-7NFEZ564.js → serve-JMLNKCUZ.js} +8 -8
- package/dist/bundle/{server-KBCFZ2AU.js → server-5E6RC7GZ.js} +38 -38
- package/dist/bundle/server-QI4C3CQT.js +63 -0
- package/dist/bundle/{services-C3XWRA2W.js → services-NFB3XSON.js} +29 -25
- package/dist/bundle/{sqlite-runtime-H3TSAMIN.js → sqlite-runtime-TAMYMQFR.js} +4 -4
- package/dist/bundle/{state-S2Q53L6L.js → state-DS4G3ZXV.js} +5 -5
- package/dist/bundle/{store-I27LAJPU.js → store-HAS2LRFE.js} +14 -14
- package/dist/bundle/{store-H345VQHP.js → store-MLMKYJLC.js} +12 -12
- package/dist/bundle/store-maintenance-command-LI3JR22B.js +52 -0
- package/dist/bundle/tokens-AJF2D5TA.js +96 -0
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +1 -1
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/identity.d.ts +1 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +1 -0
- package/dist/identity.js.map +1 -1
- package/dist/login.d.ts.map +1 -1
- package/dist/login.js +2 -4
- package/dist/login.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -1
- package/dist/program.js.map +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +0 -9
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-D4UG3D33.js +0 -35
- package/dist/bundle/first-screen-2KT7HM2K.js +0 -33
- package/dist/bundle/grants-4NETZ4MR.js +0 -98
- package/dist/bundle/identity-LBTXDMTA.js +0 -12
- package/dist/bundle/server-UYVL2CFI.js +0 -63
- package/dist/bundle/store-maintenance-command-3XA73XMC.js +0 -52
- package/dist/bundle/tokens-7MUGKFEM.js +0 -96
- /package/dist/bundle/{chunk-62EDJKGP.js → chunk-NPGVOZVK.js} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// 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/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NCCL4QWR.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
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/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.
|
|
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/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.
|
|
89
|
+
// 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/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");
|
|
@@ -3,24 +3,24 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
activeProfile,
|
|
5
5
|
paths
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NDG6LHX7.js";
|
|
7
7
|
import {
|
|
8
8
|
READ_SCOPE,
|
|
9
9
|
WRITE_SCOPE,
|
|
10
10
|
providerRequest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2KARCTUU.js";
|
|
12
12
|
import {
|
|
13
13
|
googleError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TIEEVT2Z.js";
|
|
15
15
|
import {
|
|
16
16
|
acquireLock
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VGTDXEYD.js";
|
|
18
18
|
import {
|
|
19
19
|
Credentials,
|
|
20
20
|
isMovedRun,
|
|
21
21
|
keyringService,
|
|
22
22
|
systemKeyring
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-N4VNUOOD.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-
|
|
35
|
+
} from "./chunk-TBD362SJ.js";
|
|
36
36
|
import {
|
|
37
37
|
__name
|
|
38
38
|
} from "./chunk-ZVVMGPBJ.js";
|
|
39
39
|
|
|
40
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40
|
+
// 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/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.
|
|
162
|
+
// 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/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.
|
|
167
|
+
// 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/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,7 +281,7 @@ var revokeToken = /* @__PURE__ */ __name(async (provider, tokens, context) => {
|
|
|
281
281
|
});
|
|
282
282
|
}, "revokeToken");
|
|
283
283
|
|
|
284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
284
|
+
// 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/oauth/keeper.js
|
|
285
285
|
var inFlight = /* @__PURE__ */ new Map();
|
|
286
286
|
var refreshedInMemory = /* @__PURE__ */ new Map();
|
|
287
287
|
var tokenKeeper = /* @__PURE__ */ __name((options) => {
|
|
@@ -409,13 +409,13 @@ var tokenKeeper = /* @__PURE__ */ __name((options) => {
|
|
|
409
409
|
const extra = await accept?.(received) ?? void 0;
|
|
410
410
|
await locked(async () => {
|
|
411
411
|
forget();
|
|
412
|
-
storage.write({ tokens: received, client, ...extra ? { extra } : {} });
|
|
412
|
+
storage.write({ tokens: received, client, ...extra ? { extra } : {} }, { signIn: true });
|
|
413
413
|
});
|
|
414
414
|
return { scopes: received.scopes };
|
|
415
415
|
}, "signIn"),
|
|
416
416
|
save: /* @__PURE__ */ __name((saved, extra) => locked(async () => {
|
|
417
417
|
forget();
|
|
418
|
-
storage.write({ tokens: saved, client: clientOf(storage.read()), ...extra ? { extra } : {} });
|
|
418
|
+
storage.write({ tokens: saved, client: clientOf(storage.read()), ...extra ? { extra } : {} }, { signIn: true });
|
|
419
419
|
}), "save"),
|
|
420
420
|
signOut: /* @__PURE__ */ __name(({ revoke = false } = {}) => locked(async () => {
|
|
421
421
|
forget();
|
|
@@ -430,7 +430,7 @@ var tokenKeeper = /* @__PURE__ */ __name((options) => {
|
|
|
430
430
|
};
|
|
431
431
|
}, "tokenKeeper");
|
|
432
432
|
|
|
433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
433
|
+
// 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/oauth/storage.js
|
|
434
434
|
var invalid = /* @__PURE__ */ __name(() => new CliError("authentication_error", "the saved sign-in cannot be read; sign in again", { reason: "oauth.invalid" }), "invalid");
|
|
435
435
|
var parse = /* @__PURE__ */ __name((raw) => {
|
|
436
436
|
let value;
|
|
@@ -519,9 +519,9 @@ var credentialStorage = /* @__PURE__ */ __name((options) => {
|
|
|
519
519
|
throw keyringFailure(error);
|
|
520
520
|
}
|
|
521
521
|
}, "raw");
|
|
522
|
-
const save = /* @__PURE__ */ __name((value) => {
|
|
522
|
+
const save = /* @__PURE__ */ __name((value, writeOptions) => {
|
|
523
523
|
try {
|
|
524
|
-
credentials2.write(account, value);
|
|
524
|
+
credentials2.write(account, value, writeOptions);
|
|
525
525
|
} catch (error) {
|
|
526
526
|
throw keyringFailure(error, value);
|
|
527
527
|
}
|
|
@@ -551,7 +551,7 @@ var credentialStorage = /* @__PURE__ */ __name((options) => {
|
|
|
551
551
|
const value = current();
|
|
552
552
|
return value === void 0 ? void 0 : codec.decode(value);
|
|
553
553
|
}, "read"),
|
|
554
|
-
write: /* @__PURE__ */ __name((input) => save(codec.encode({ ...input, previous: raw(account) })), "write"),
|
|
554
|
+
write: /* @__PURE__ */ __name((input, writeOptions) => save(codec.encode({ ...input, previous: raw(account) }), writeOptions), "write"),
|
|
555
555
|
remove: /* @__PURE__ */ __name(() => {
|
|
556
556
|
try {
|
|
557
557
|
return credentials2.remove(account);
|
|
@@ -576,14 +576,6 @@ var Session = object({
|
|
|
576
576
|
token_type: optional(nullable(string()))
|
|
577
577
|
})
|
|
578
578
|
});
|
|
579
|
-
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
580
|
-
var warnOnce = /* @__PURE__ */ __name((env) => (message) => {
|
|
581
|
-
if (warnedRuns.has(env))
|
|
582
|
-
return;
|
|
583
|
-
warnedRuns.add(env);
|
|
584
|
-
process.stderr.write(`${message}
|
|
585
|
-
`);
|
|
586
|
-
}, "warnOnce");
|
|
587
579
|
var credentialOptions = /* @__PURE__ */ __name((env, storage, keyring) => ({
|
|
588
580
|
configDir: paths(env).config,
|
|
589
581
|
service: "drive-cli",
|
|
@@ -591,8 +583,7 @@ var credentialOptions = /* @__PURE__ */ __name((env, storage, keyring) => ({
|
|
|
591
583
|
storage: storage === "keyring" ? "auto" : storage,
|
|
592
584
|
env,
|
|
593
585
|
isolated: isMovedRun({ appName: "drive-cli", prefix: "DRIVE", env }),
|
|
594
|
-
...keyring ? { keyring } : {}
|
|
595
|
-
warn: warnOnce(env)
|
|
586
|
+
...keyring ? { keyring } : {}
|
|
596
587
|
}), "credentialOptions");
|
|
597
588
|
var credentials = /* @__PURE__ */ __name((env, storage, keyring) => new Credentials(credentialOptions(env, storage, keyring)), "credentials");
|
|
598
589
|
var notSaved = /* @__PURE__ */ __name(() => new CliError("configuration_error", "could not save Google sign-in: the private credentials file cannot be read; move it aside and sign in again", { reason: "sign-in.not-saved" }), "notSaved");
|