@wirecat/drive-cli 0.52.1 → 0.54.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.
- package/dist/bin/drive.js +2 -2
- package/dist/bin/drive.js.map +1 -1
- package/dist/bundle/{chunk-ZWSG7OCA.js → all-profiles-LFIPUPZI.js} +13 -8
- package/dist/bundle/{anthropic-KW6KU36Y.js → anthropic-G5ZRRWG4.js} +5 -5
- package/dist/bundle/{app-server-TCJZ333E.js → app-server-UVWATOQC.js} +48 -56
- package/dist/bundle/{bun-7SYKSCLA.js → bun-DNEFTPTR.js} +2 -2
- package/dist/bundle/{bun-sqlite-RI7DR6RZ.js → bun-sqlite-FWBYHIXB.js} +4 -4
- package/dist/bundle/{chunk-CM7GAXGD.js → chunk-2CQT2WWN.js} +5 -5
- package/dist/bundle/{chunk-HQVJK5E7.js → chunk-2D6AAGBP.js} +246 -383
- package/dist/bundle/{chunk-FG4XXZZE.js → chunk-2FFXRWI2.js} +2 -2
- package/dist/bundle/{chunk-2UIMEMWU.js → chunk-2HQPJ366.js} +3 -3
- package/dist/bundle/{chunk-CB7SBYLO.js → chunk-2HWOGSTA.js} +57 -37
- package/dist/bundle/{chunk-7XKAVMCF.js → chunk-2MSJVFAS.js} +8 -8
- package/dist/bundle/{chunk-NSIFQ5OP.js → chunk-2NWFZ43Q.js} +1 -1
- package/dist/bundle/{chunk-H47W2J6S.js → chunk-2Q3S47BC.js} +1312 -626
- package/dist/bundle/{chunk-O6IOL6RX.js → chunk-47MEPBWG.js} +21 -21
- package/dist/bundle/{chunk-725OHXKR.js → chunk-4RDXCE45.js} +2226 -37
- package/dist/bundle/{chunk-UR32UWTQ.js → chunk-5BPOAHVD.js} +13 -2
- package/dist/bundle/{chunk-5FONRUG6.js → chunk-5D4AEUVA.js} +1 -23
- package/dist/bundle/{chunk-VZ2I62HN.js → chunk-5LNOVPOR.js} +2 -2
- package/dist/bundle/{chunk-EKFEY3KP.js → chunk-5WQN2TUM.js} +1 -1
- package/dist/bundle/{chunk-ALJWBGD5.js → chunk-6MGSFYGL.js} +1 -1
- package/dist/bundle/{chunk-WUX7AUOQ.js → chunk-6RAEXK7Y.js} +26 -26
- package/dist/bundle/{chunk-BSSCTWWK.js → chunk-6SOQJRGI.js} +4 -4
- package/dist/bundle/{chunk-CKBHR7QO.js → chunk-75DSLCPC.js} +1 -1
- package/dist/bundle/{chunk-VSOLLTYT.js → chunk-76JIVDKC.js} +7 -2
- package/dist/bundle/{chunk-33NVQGUY.js → chunk-7WCZ2OZ5.js} +6 -6
- package/dist/bundle/{chunk-IDUNJCFO.js → chunk-7XU3TR7K.js} +2 -2
- package/dist/bundle/{chunk-7SH4JHYW.js → chunk-A4FTLORC.js} +12 -12
- package/dist/bundle/{chunk-CITFEQ6S.js → chunk-AACQA2CO.js} +1 -1
- package/dist/bundle/{chunk-PSNHPFSK.js → chunk-AAHIBA36.js} +1 -1
- package/dist/bundle/{chunk-PEOCBV2Z.js → chunk-BWBVBW5T.js} +8 -8
- package/dist/bundle/{chunk-A4UNTWAX.js → chunk-CVALO727.js} +99 -30
- package/dist/bundle/{chunk-G6QF5KWF.js → chunk-FHW4ENRF.js} +37 -43
- package/dist/bundle/{chunk-LONV6HIK.js → chunk-HAHARAJD.js} +455 -40
- package/dist/bundle/{chunk-2623YE5I.js → chunk-IBRXVPBI.js} +97 -99
- package/dist/bundle/{chunk-IWFBAWZK.js → chunk-IKODUUQG.js} +292 -19
- package/dist/bundle/{chunk-PQJYM5ES.js → chunk-IOMSC4ZG.js} +3 -3
- package/dist/bundle/{chunk-YKZ4IPLB.js → chunk-JKEAZBEZ.js} +7 -7
- package/dist/bundle/{chunk-FCJAHD4R.js → chunk-KIQIF5M7.js} +3 -3
- package/dist/bundle/{chunk-KYVXMEBC.js → chunk-KT5G3KVS.js} +3 -3
- package/dist/bundle/{chunk-W7IK7E4B.js → chunk-L3RV42O3.js} +20 -22
- package/dist/bundle/{chunk-NHBUTCNR.js → chunk-LQXLWHKM.js} +9 -9
- package/dist/bundle/{chunk-WBTVGFXI.js → chunk-MATUQFYL.js} +11 -11
- package/dist/bundle/{chunk-54O62JWP.js → chunk-MULPNGM2.js} +29 -10
- package/dist/bundle/{chunk-FJW3DDCF.js → chunk-N4OO3SPQ.js} +5 -5
- package/dist/bundle/{chunk-6DHQTUB2.js → chunk-NDWWGBSM.js} +1 -1
- package/dist/bundle/{chunk-DLAFGSTN.js → chunk-NHDSJMAR.js} +1 -1
- package/dist/bundle/{chunk-PQYVPCJ2.js → chunk-O6YYFVDD.js} +38 -37
- package/dist/bundle/{chunk-I7UH5CTA.js → chunk-OYGEBFFO.js} +12 -14
- package/dist/bundle/chunk-P7E7K467.js +110 -0
- package/dist/bundle/{chunk-ZNZUZGSV.js → chunk-PKNTBZXN.js} +176 -49
- package/dist/bundle/{chunk-YNFELLNQ.js → chunk-PU4GANCD.js} +3 -3
- package/dist/bundle/{chunk-5PLJKSG4.js → chunk-Q46JLJ5O.js} +7 -9
- package/dist/bundle/{chunk-R276546S.js → chunk-QKHFQHE7.js} +1 -1
- package/dist/bundle/{chunk-RNSP57TC.js → chunk-QUJCD5U7.js} +4 -4
- package/dist/bundle/{chunk-43QVYW3K.js → chunk-RIYXQFKU.js} +262 -88
- package/dist/bundle/{chunk-2AUXBJRX.js → chunk-RWEFKLXJ.js} +104 -29
- package/dist/bundle/{chunk-WQJBAWQP.js → chunk-SBOTSSYV.js} +879 -508
- package/dist/bundle/{chunk-PAXKALHV.js → chunk-U3BOQ63L.js} +118 -7
- package/dist/bundle/{chunk-VJZST5RD.js → chunk-UBJX5D2O.js} +2 -2
- package/dist/bundle/{chunk-HX7Y2ASG.js → chunk-VCGQMTHW.js} +26318 -15143
- package/dist/bundle/{chunk-7YMDL4JQ.js → chunk-VKYCMXEQ.js} +8 -5
- package/dist/bundle/{chunk-ZSXRDF6I.js → chunk-VX4RAT3A.js} +1 -1
- package/dist/bundle/{chunk-NYOPEHEU.js → chunk-W5SYBHRX.js} +8 -3
- package/dist/bundle/{chunk-XOLQSCMF.js → chunk-WGSTTWM5.js} +6 -6
- package/dist/bundle/{chunk-WLFUBNFX.js → chunk-WJRE45Z6.js} +4 -4
- package/dist/bundle/{chunk-IEXPOEEO.js → chunk-WQPTZHHR.js} +17 -26
- package/dist/bundle/{chunk-JEOYFKUK.js → chunk-WSX5UQNT.js} +2 -2
- package/dist/bundle/{chunk-LJAX6YCF.js → chunk-WYDYSQ7T.js} +2 -2
- package/dist/bundle/{chunk-C6Z25IBJ.js → chunk-XCUUYQN7.js} +4 -4
- package/dist/bundle/{chunk-GVCN3GLZ.js → chunk-YOHOQ6ZR.js} +4 -4
- package/dist/bundle/chunk-YZ5VMR2S.js +5305 -0
- package/dist/bundle/{chunk-ZDLIO76S.js → chunk-ZMMOVTUB.js} +2 -2
- package/dist/bundle/command-contract-VZ3ZJLEF.js +35 -0
- package/dist/bundle/{decode-EDN2ARXZ.js → decode-DN2DDFET.js} +4 -4
- package/dist/bundle/drive.js +11 -22
- package/dist/bundle/{echarts-GXY34GHA.js → echarts-VMHZ2UYP.js} +2 -2
- package/dist/bundle/{embed-3GSQIQXE.js → embed-MDN7R7BA.js} +5 -5
- package/dist/bundle/{embedder-6ULWRG3R.js → embedder-KEVEDNDJ.js} +8 -8
- package/dist/bundle/{entry-IPRJLFHO.js → entry-HTNK5TJQ.js} +6 -6
- package/dist/bundle/{first-run-FGHGWHC2.js → first-run-QNMCMP67.js} +9 -9
- package/dist/bundle/first-screen-RQBEHUQC.js +33 -0
- package/dist/bundle/{google-BD3ZNFVJ.js → google-QAKMV57Q.js} +9 -9
- package/dist/bundle/{chunk-GR5GGZKH.js → google-api-UJJS7ECO.js} +62 -6
- package/dist/bundle/grants-VMPKFEC2.js +98 -0
- package/dist/bundle/{identity-U7IHZEMR.js → identity-UODE3QAL.js} +4 -2
- package/dist/bundle/{instructions-K5BEQM4C.js → instructions-IWLHCDC7.js} +1 -1
- package/dist/bundle/{login-7HRYPZMM.js → login-GIZXEN7I.js} +60 -68
- package/dist/bundle/{mcp-WSGVVZWI.js → mcp-RUYPQVYS.js} +2 -2
- package/dist/bundle/{node-ZYWB7IET.js → node-25IJLDBZ.js} +2 -2
- package/dist/bundle/{node-sqlite-J3OODPYK.js → node-sqlite-DYR4FEI4.js} +4 -4
- package/dist/bundle/{oauth-L4VTCBLF.js → oauth-FLHXEDDY.js} +7 -7
- package/dist/bundle/{open-SGUN7ZVF.js → open-FWDZB7KX.js} +3 -3
- package/dist/bundle/{openai-RLVISEDH.js → openai-HB7UGKPW.js} +13 -13
- package/dist/bundle/{process-ZXO2MWRJ.js → process-P6TW37HQ.js} +1 -1
- package/dist/bundle/{program-YVLXSKZV.js → program-DVUNLXXS.js} +730 -919
- package/dist/bundle/{prompt-AUWTBLO7.js → prompt-MKWMYO3B.js} +4 -4
- package/dist/bundle/{reasons-J57GSRWN.js → reasons-25BEO2NE.js} +3 -3
- package/dist/bundle/{recognize-ORX2UBQW.js → recognize-VXGNPROM.js} +3 -3
- package/dist/bundle/{remote-AGIJY73X.js → remote-H5ZWLJHR.js} +6 -6
- package/dist/bundle/{rerank-R6PE44M5.js → rerank-5A3JDK7O.js} +6 -6
- package/dist/bundle/{chunk-G7DCVJ4F.js → serve-QNPNEZVR.js} +10 -7
- package/dist/bundle/{chunk-F7UUZATI.js → server-GWBVIRLY.js} +42 -15
- package/dist/bundle/server-QJU3HEGM.js +63 -0
- package/dist/bundle/{services-HZFTTZSF.js → services-PFXEWHJG.js} +30 -31
- package/dist/bundle/{sqlite-runtime-DTGPR2T2.js → sqlite-runtime-RGFISYXM.js} +4 -4
- package/dist/bundle/{state-WG3JKJM3.js → state-BUSX5BXF.js} +5 -5
- package/dist/bundle/{store-EV72MT5U.js → store-FIEE5HHG.js} +14 -16
- package/dist/bundle/{store-33VHIMEO.js → store-HFF5KQ44.js} +12 -14
- package/dist/bundle/store-maintenance-command-Z4SPEQUM.js +52 -0
- package/dist/bundle/{chunk-GNI7INK6.js → terminal-DHJ4D3BC.js} +2 -3
- package/dist/bundle/tokens-B6MUZRFM.js +96 -0
- package/dist/commands/context.d.ts +14 -13
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +1 -4
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/mirrors.d.ts.map +1 -1
- package/dist/commands/mirrors.js +1 -2
- package/dist/commands/mirrors.js.map +1 -1
- package/dist/commands/upgrade.d.ts +1 -1
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +4 -9
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/config.d.ts +182 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +38 -3
- package/dist/config.js.map +1 -1
- package/dist/contract-overrides.d.ts +0 -3
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +0 -234
- package/dist/contract-overrides.js.map +1 -1
- package/dist/first-screen.d.ts +3 -2
- package/dist/first-screen.d.ts.map +1 -1
- package/dist/first-screen.js +17 -22
- package/dist/first-screen.js.map +1 -1
- package/dist/grants.d.ts +9 -0
- package/dist/grants.d.ts.map +1 -0
- package/dist/grants.js +30 -0
- package/dist/grants.js.map +1 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +2 -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/policy-keys.d.ts +12 -0
- package/dist/policy-keys.d.ts.map +1 -0
- package/dist/policy-keys.js +107 -0
- package/dist/policy-keys.js.map +1 -0
- package/dist/policy.d.ts +1 -8
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +2 -105
- package/dist/policy.js.map +1 -1
- package/dist/program.d.ts +8 -4
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +251 -222
- package/dist/program.js.map +1 -1
- package/dist/testing/mcp.d.ts +28 -0
- package/dist/testing/mcp.d.ts.map +1 -0
- package/dist/testing/mcp.js +56 -0
- package/dist/testing/mcp.js.map +1 -0
- 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 +6 -5
- package/scenarios/agent-access.md +4 -2
- package/dist/bundle/all-profiles-CYW6XBBS.js +0 -26
- package/dist/bundle/chunk-234MHU76.js +0 -384
- package/dist/bundle/chunk-BBYD2FA3.js +0 -9
- package/dist/bundle/chunk-DO4PDQY5.js +0 -48
- package/dist/bundle/chunk-FDWYPONW.js +0 -1988
- package/dist/bundle/chunk-FQRJWVEB.js +0 -2
- package/dist/bundle/chunk-GJN5B5JK.js +0 -522
- package/dist/bundle/chunk-NPSZPUK6.js +0 -193
- package/dist/bundle/chunk-PDGECM5D.js +0 -138
- package/dist/bundle/chunk-Q765VPZY.js +0 -421
- package/dist/bundle/chunk-QYUHS6DE.js +0 -1714
- package/dist/bundle/chunk-WQRGA75U.js +0 -256
- package/dist/bundle/chunk-YVPHJHIL.js +0 -15572
- package/dist/bundle/chunk-Z47LOJUS.js +0 -484
- package/dist/bundle/command-contract-I2YB5IXI.js +0 -38
- package/dist/bundle/failure-IXS2ZHA5.js +0 -37
- package/dist/bundle/first-screen-M62KTPZG.js +0 -36
- package/dist/bundle/google-api-BDUWZMRV.js +0 -83
- package/dist/bundle/mcp-F67RATLF.js +0 -502
- package/dist/bundle/mcp-JZSYPQA4.js +0 -96
- package/dist/bundle/serve-VOBAQHAQ.js +0 -20
- package/dist/bundle/server-24PS4M7U.js +0 -70
- package/dist/bundle/server-G6HFZ2CK.js +0 -57
- package/dist/bundle/store-maintenance-command-ZTUEI4EC.js +0 -58
- package/dist/bundle/terminal-TFCTWLOS.js +0 -11
- package/dist/bundle/tokens-XMOGQFI6.js +0 -102
- package/dist/commands/doctor.d.ts +0 -56
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js +0 -75
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -6
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js +0 -156
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/skill.d.ts +0 -6
- package/dist/commands/skill.d.ts.map +0 -1
- package/dist/commands/skill.js +0 -34
- package/dist/commands/skill.js.map +0 -1
- package/dist/failure.d.ts +0 -88
- package/dist/failure.d.ts.map +0 -1
- package/dist/failure.js +0 -60
- package/dist/failure.js.map +0 -1
- package/dist/mcp.d.ts +0 -175
- package/dist/mcp.d.ts.map +0 -1
- package/dist/mcp.js +0 -412
- package/dist/mcp.js.map +0 -1
- /package/dist/bundle/{chunk-62EDJKGP.js → chunk-HEA3XVAJ.js} +0 -0
|
@@ -7,29 +7,27 @@ import {
|
|
|
7
7
|
commandPathOf,
|
|
8
8
|
findCommand,
|
|
9
9
|
outputOf
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
NO_EFFECTS,
|
|
13
|
-
commandAt,
|
|
14
|
-
environmentOf,
|
|
15
|
-
takesProfile
|
|
16
|
-
} from "./chunk-FDWYPONW.js";
|
|
10
|
+
} from "./chunk-Q46JLJ5O.js";
|
|
17
11
|
import {
|
|
18
12
|
Command,
|
|
19
13
|
Help,
|
|
14
|
+
NO_EFFECTS,
|
|
20
15
|
Option,
|
|
21
16
|
annotate,
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
commandAt,
|
|
18
|
+
environmentOf,
|
|
19
|
+
metaOf,
|
|
20
|
+
takesProfile
|
|
21
|
+
} from "./chunk-4RDXCE45.js";
|
|
24
22
|
import {
|
|
25
23
|
CliError,
|
|
26
24
|
writes
|
|
27
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-JKEAZBEZ.js";
|
|
28
26
|
import {
|
|
29
27
|
__name
|
|
30
28
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
29
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
|
|
33
31
|
var SECTIONS = {
|
|
34
32
|
read: "Read",
|
|
35
33
|
write: "Write",
|
|
@@ -94,7 +92,7 @@ var CORE_SECTIONS = {
|
|
|
94
92
|
upgrade: "setup"
|
|
95
93
|
};
|
|
96
94
|
|
|
97
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
95
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
|
|
98
96
|
var DESCRIPTION = 90;
|
|
99
97
|
var COLUMN = 52;
|
|
100
98
|
var short = /* @__PURE__ */ __name((text) => {
|
|
@@ -133,7 +131,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
|
|
|
133
131
|
`;
|
|
134
132
|
}, "commandsText");
|
|
135
133
|
|
|
136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
137
135
|
var ARGUMENT_KINDS = {
|
|
138
136
|
chat: "chat",
|
|
139
137
|
chats: "chat",
|
|
@@ -325,7 +323,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
325
323
|
command.addHelpText("after", () => commandHelpText(command));
|
|
326
324
|
}, "installCommandHelp");
|
|
327
325
|
|
|
328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
329
327
|
var WIRECAT_TOOLS = [
|
|
330
328
|
{
|
|
331
329
|
command: "tg",
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
VERSION
|
|
5
|
+
} from "./chunk-W5SYBHRX.js";
|
|
6
|
+
import {
|
|
7
|
+
annotate,
|
|
8
|
+
commandsDocument,
|
|
9
|
+
describeProgram,
|
|
10
|
+
flatten,
|
|
11
|
+
profileFree
|
|
12
|
+
} from "./chunk-4RDXCE45.js";
|
|
13
|
+
import {
|
|
14
|
+
CliError
|
|
15
|
+
} from "./chunk-JKEAZBEZ.js";
|
|
16
|
+
import {
|
|
17
|
+
__name
|
|
18
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
19
|
+
|
|
20
|
+
// dist/registry.js
|
|
21
|
+
var ACCOUNT_FREE_COMMANDS = /* @__PURE__ */ new Set([
|
|
22
|
+
"commands",
|
|
23
|
+
"commands info",
|
|
24
|
+
"models list",
|
|
25
|
+
"complete",
|
|
26
|
+
"doctor",
|
|
27
|
+
"upgrade",
|
|
28
|
+
"api show",
|
|
29
|
+
"api list",
|
|
30
|
+
"help",
|
|
31
|
+
"guide",
|
|
32
|
+
"skill show",
|
|
33
|
+
"skill install",
|
|
34
|
+
"skill status",
|
|
35
|
+
"models download",
|
|
36
|
+
"images models download",
|
|
37
|
+
"runs list",
|
|
38
|
+
"runs show",
|
|
39
|
+
"runs path"
|
|
40
|
+
]);
|
|
41
|
+
var PROFILE_SET_COMMANDS = /* @__PURE__ */ new Set([
|
|
42
|
+
"mcp serve",
|
|
43
|
+
"mcp revoke",
|
|
44
|
+
"mcp server start",
|
|
45
|
+
"mcp server stop",
|
|
46
|
+
"mcp server status"
|
|
47
|
+
]);
|
|
48
|
+
var ANY_PROFILE_COMMANDS = /* @__PURE__ */ new Set([
|
|
49
|
+
"commands",
|
|
50
|
+
"commands info",
|
|
51
|
+
"complete",
|
|
52
|
+
"config show",
|
|
53
|
+
"session list",
|
|
54
|
+
"store info"
|
|
55
|
+
]);
|
|
56
|
+
var PROFILE_FREE_COMMANDS = /* @__PURE__ */ new Set([...ACCOUNT_FREE_COMMANDS, ...ANY_PROFILE_COMMANDS]);
|
|
57
|
+
var GOOGLE_READ = { remote: "read", local: "none" };
|
|
58
|
+
var GOOGLE_WRITE = { remote: "write", local: "none" };
|
|
59
|
+
var examples = /* @__PURE__ */ __name((command, lines) => annotate(command, { examples: lines }), "examples");
|
|
60
|
+
var CONTRACT = 4;
|
|
61
|
+
var isProfileFree = /* @__PURE__ */ __name((info) => PROFILE_FREE_COMMANDS.has(info.path.join(" ")) || info.commands.length > 0 && info.commands.every(isProfileFree), "isProfileFree");
|
|
62
|
+
var markProfileFree = /* @__PURE__ */ __name((program) => {
|
|
63
|
+
for (const info of flatten(describeProgram(program))) {
|
|
64
|
+
if (!isProfileFree(info))
|
|
65
|
+
continue;
|
|
66
|
+
let command = program;
|
|
67
|
+
for (const word of info.path)
|
|
68
|
+
command = command.commands.find((one) => one.name() === word) ?? command;
|
|
69
|
+
profileFree(command);
|
|
70
|
+
}
|
|
71
|
+
}, "markProfileFree");
|
|
72
|
+
var describeDriveProgram = /* @__PURE__ */ __name((program) => {
|
|
73
|
+
const scoped = /* @__PURE__ */ __name((info) => ({
|
|
74
|
+
...info,
|
|
75
|
+
usage: isProfileFree(info) ? info.usage : info.usage.replace(/^drive /, "drive <profile> "),
|
|
76
|
+
commands: info.commands.map(scoped)
|
|
77
|
+
}), "scoped");
|
|
78
|
+
return describeProgram(program).map(scoped);
|
|
79
|
+
}, "describeDriveProgram");
|
|
80
|
+
var commandsDocument2 = /* @__PURE__ */ __name((program, path = []) => {
|
|
81
|
+
const all = describeDriveProgram(program);
|
|
82
|
+
const inherited = [];
|
|
83
|
+
let available = all;
|
|
84
|
+
let found;
|
|
85
|
+
for (const word of path) {
|
|
86
|
+
if (found?.options.length)
|
|
87
|
+
inherited.push({ path: [...found.path], options: [...found.options] });
|
|
88
|
+
found = available.find((command) => command.name === word);
|
|
89
|
+
if (!found)
|
|
90
|
+
throw new CliError("not_found", "command path was not found");
|
|
91
|
+
available = [...found.commands];
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
...commandsDocument(program, { cli: "drive", version: VERSION, contract: CONTRACT }),
|
|
95
|
+
...found ? { scope: [...found.path], inherited_options: inherited } : {},
|
|
96
|
+
commands: found ? [found] : all
|
|
97
|
+
};
|
|
98
|
+
}, "commandsDocument");
|
|
99
|
+
|
|
100
|
+
export {
|
|
101
|
+
ACCOUNT_FREE_COMMANDS,
|
|
102
|
+
PROFILE_SET_COMMANDS,
|
|
103
|
+
ANY_PROFILE_COMMANDS,
|
|
104
|
+
GOOGLE_READ,
|
|
105
|
+
GOOGLE_WRITE,
|
|
106
|
+
examples,
|
|
107
|
+
markProfileFree,
|
|
108
|
+
describeDriveProgram,
|
|
109
|
+
commandsDocument2 as commandsDocument
|
|
110
|
+
};
|