@wirecat/drive-cli 0.44.0 → 0.45.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 +35 -40
- package/dist/bundle/all-profiles-LTHNCWQW.js +26 -0
- package/dist/bundle/anthropic-NOJEF3V2.js +71 -0
- package/dist/bundle/bun-ADJVI4HY.js +169 -0
- package/dist/bundle/bun-sqlite-GNXLBF2A.js +70 -0
- package/dist/bundle/chunk-2FTZBZOB.js +2315 -0
- package/dist/bundle/chunk-2YU3CXFD.js +3391 -0
- package/dist/bundle/chunk-35GRI4DI.js +375 -0
- package/dist/bundle/chunk-37MAA6F2.js +5624 -0
- package/dist/bundle/chunk-3V6NPZY7.js +2352 -0
- package/dist/bundle/chunk-4TIC23D2.js +9 -0
- package/dist/bundle/chunk-4TQSNQVV.js +1071 -0
- package/dist/bundle/chunk-4UE7AVHZ.js +150 -0
- package/dist/bundle/chunk-5DPV7X27.js +663 -0
- package/dist/bundle/chunk-5FONRUG6.js +24805 -0
- package/dist/bundle/chunk-5ZVLM6YR.js +19 -0
- package/dist/bundle/chunk-64WJYT2F.js +3954 -0
- package/dist/bundle/chunk-65GGKAQ7.js +82 -0
- package/dist/bundle/chunk-66N2DGGC.js +515 -0
- package/dist/bundle/chunk-6KFA6HOM.js +2941 -0
- package/dist/bundle/chunk-6Y2BYFXQ.js +65 -0
- package/dist/bundle/chunk-7NCG2SHR.js +74 -0
- package/dist/bundle/chunk-7PVNJAQ2.js +73 -0
- package/dist/bundle/chunk-7XWUOCGW.js +190 -0
- package/dist/bundle/chunk-A6ZKTNTZ.js +168 -0
- package/dist/bundle/chunk-ADLS6FVG.js +24600 -0
- package/dist/bundle/chunk-AH3SNVCV.js +498 -0
- package/dist/bundle/chunk-AN3GVZTU.js +76 -0
- package/dist/bundle/chunk-BPBIBVFH.js +166 -0
- package/dist/bundle/chunk-C4XP5T73.js +264 -0
- package/dist/bundle/chunk-C6SMAEED.js +18102 -0
- package/dist/bundle/chunk-CDI67JSB.js +1092 -0
- package/dist/bundle/chunk-CEO5HPRL.js +25 -0
- package/dist/bundle/chunk-CFT7UHF6.js +15572 -0
- package/dist/bundle/chunk-DC4T3FNP.js +1913 -0
- package/dist/bundle/chunk-DCTXOMOR.js +35 -0
- package/dist/bundle/chunk-DFDN6AUB.js +21 -0
- package/dist/bundle/chunk-EVWXODYV.js +754 -0
- package/dist/bundle/chunk-GKHM6I64.js +2356 -0
- package/dist/bundle/chunk-GNI7INK6.js +18 -0
- package/dist/bundle/chunk-GTYY6BIE.js +58 -0
- package/dist/bundle/chunk-GX4WEMAG.js +164 -0
- package/dist/bundle/chunk-HA3WCVGY.js +8179 -0
- package/dist/bundle/chunk-HLONHTSG.js +281 -0
- package/dist/bundle/chunk-HOIUIKWS.js +236 -0
- package/dist/bundle/chunk-HTQTIKWP.js +928 -0
- package/dist/bundle/chunk-I5EJHKNC.js +111 -0
- package/dist/bundle/chunk-ICKNJIGE.js +31 -0
- package/dist/bundle/chunk-IGB5CJCA.js +62 -0
- package/dist/bundle/chunk-IP4OK7RQ.js +24 -0
- package/dist/bundle/chunk-IVQ6342B.js +2 -0
- package/dist/bundle/chunk-K4N2DKE5.js +17 -0
- package/dist/bundle/chunk-LNB7BIZL.js +844 -0
- package/dist/bundle/chunk-LVDHWNJF.js +193 -0
- package/dist/bundle/chunk-LW2G4U6W.js +570 -0
- package/dist/bundle/chunk-LWT55XC5.js +60 -0
- package/dist/bundle/chunk-LY26NW3I.js +6848 -0
- package/dist/bundle/chunk-MJR2OTO4.js +1714 -0
- package/dist/bundle/chunk-MWUITL6N.js +42 -0
- package/dist/bundle/chunk-N47CYWEM.js +454 -0
- package/dist/bundle/chunk-NKZ6V4JW.js +263 -0
- package/dist/bundle/chunk-NQ6LLDDC.js +161 -0
- package/dist/bundle/chunk-NZIHPYY5.js +215 -0
- package/dist/bundle/chunk-OECPFZLP.js +3541 -0
- package/dist/bundle/chunk-P5KGFT7U.js +18 -0
- package/dist/bundle/chunk-PDH2QQQV.js +484 -0
- package/dist/bundle/chunk-PIN5RZ3D.js +63 -0
- package/dist/bundle/chunk-PJDO7AFZ.js +421 -0
- package/dist/bundle/chunk-PWKXHDBQ.js +18078 -0
- package/dist/bundle/chunk-QLZGLPJL.js +100 -0
- package/dist/bundle/chunk-SBZB7HMU.js +1055 -0
- package/dist/bundle/chunk-SGOPYPVW.js +835 -0
- package/dist/bundle/chunk-TDC6JGDA.js +630 -0
- package/dist/bundle/chunk-TOYPN2XX.js +288 -0
- package/dist/bundle/chunk-UC44ZMQV.js +78 -0
- package/dist/bundle/chunk-V7GN5BI7.js +99 -0
- package/dist/bundle/chunk-VO4KOLQZ.js +119 -0
- package/dist/bundle/chunk-WPGCDWPU.js +1855 -0
- package/dist/bundle/chunk-WQMVSQPP.js +886 -0
- package/dist/bundle/chunk-WZUJKUBK.js +384 -0
- package/dist/bundle/chunk-X5DFDGWS.js +2 -0
- package/dist/bundle/chunk-XFLCVHSQ.js +50 -0
- package/dist/bundle/chunk-XPEWOPJR.js +431 -0
- package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
- package/dist/bundle/chunk-Y5EJSZXV.js +220 -0
- package/dist/bundle/chunk-YE3J6DLY.js +106 -0
- package/dist/bundle/chunk-YFLKH3NZ.js +48 -0
- package/dist/bundle/chunk-YJX4X564.js +138 -0
- package/dist/bundle/chunk-YJZBJ2TM.js +71 -0
- package/dist/bundle/chunk-Z4O6C7WR.js +1973 -0
- package/dist/bundle/chunk-ZIHLE7LG.js +15992 -0
- package/dist/bundle/chunk-ZPMLLONT.js +1054 -0
- package/dist/bundle/chunk-ZQNXKWUY.js +35584 -0
- package/dist/bundle/chunk-ZS635F4O.js +45 -0
- package/dist/bundle/chunk-ZU732VCC.js +122 -0
- package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
- package/dist/bundle/command-contract-HX35D7KV.js +38 -0
- package/dist/bundle/dist-MWTMOYWT.js +7577 -0
- package/dist/bundle/dist-PY3MVR3G.js +21 -0
- package/dist/bundle/drive.js +50 -0
- package/dist/bundle/echarts-RFTK737T.js +42501 -0
- package/dist/bundle/embed-5NAGJUMD.js +37 -0
- package/dist/bundle/embedder-EWXLIGBY.js +110 -0
- package/dist/bundle/entry-YCPJ6H6U.js +15 -0
- package/dist/bundle/failure-XBWHHBEW.js +37 -0
- package/dist/bundle/first-run-LNAZDBB4.js +24 -0
- package/dist/bundle/first-screen-P5NNFJD7.js +36 -0
- package/dist/bundle/google-5FFKRHHC.js +32 -0
- package/dist/bundle/google-api-TJCFOOAP.js +82 -0
- package/dist/bundle/identity-53ZMPL2O.js +10 -0
- package/dist/bundle/instructions-FHNL7CMW.js +9 -0
- package/dist/bundle/login-VXXZZR6G.js +158 -0
- package/dist/bundle/mcp-2CJCJXSW.js +95 -0
- package/dist/bundle/mcp-F4XZO76F.js +507 -0
- package/dist/bundle/mcp-IXFC2VVR.js +165 -0
- package/dist/bundle/mdast-util-from-markdown-FXEPSNER.js +1958 -0
- package/dist/bundle/mdast-util-gfm-SZM5GBDF.js +2103 -0
- package/dist/bundle/micromark-extension-gfm-GRL24TU6.js +1838 -0
- package/dist/bundle/node-P4E63KXA.js +2340 -0
- package/dist/bundle/node-TLZSIHIJ.js +21 -0
- package/dist/bundle/node-ZMCACJVS.js +176 -0
- package/dist/bundle/node-sqlite-QJQ5S7KS.js +46 -0
- package/dist/bundle/oauth-TZFDPAFE.js +18 -0
- package/dist/bundle/open-IYM25QTL.js +20 -0
- package/dist/bundle/process-ZPTLNVQS.js +91 -0
- package/dist/bundle/program-YX7DZMPR.js +24100 -0
- package/dist/bundle/prompt-TGWTVIEK.js +13 -0
- package/dist/bundle/reasons-Q5LOQESQ.js +11 -0
- package/dist/bundle/recognize-AGPMWKIY.js +191 -0
- package/dist/bundle/remote-QV7QSLAK.js +28 -0
- package/dist/bundle/rerank-HZKJJCS4.js +51 -0
- package/dist/bundle/serve-NRJQOVT4.js +20 -0
- package/dist/bundle/server-2UQDEWTS.js +818 -0
- package/dist/bundle/server-R4JUHFSW.js +56 -0
- package/dist/bundle/services-NZQWVMOE.js +333 -0
- package/dist/bundle/sqlite-runtime-6MXHTYYU.js +17 -0
- package/dist/bundle/state-IF2FLTSY.js +34 -0
- package/dist/bundle/store-HBD54IRL.js +142 -0
- package/dist/bundle/store-HVIBXOXS.js +125 -0
- package/dist/bundle/store-maintenance-command-U3F4RGJB.js +57 -0
- package/dist/bundle/terminal-TFCTWLOS.js +11 -0
- package/dist/bundle/tokens-5D5YUA2Q.js +103 -0
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +87 -37
- package/dist/commands/mcp.js.map +1 -1
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +78 -53
- package/dist/contract-overrides.js.map +1 -1
- package/dist/mcp.d.ts +13 -5
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +20 -10
- package/dist/mcp.js.map +1 -1
- package/dist/program.js +4 -4
- package/dist/program.js.map +1 -1
- package/dist/registry.d.ts +2 -2
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +3 -3
- package/dist/registry.js.map +1 -1
- package/dist/state.d.ts +5 -2
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +5 -2
- package/dist/state.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +7 -5
- package/skills/drive-cli/SKILL.md +1 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
buildStems,
|
|
5
|
+
storeMaintenanceCommands,
|
|
6
|
+
storeSummary
|
|
7
|
+
} from "./chunk-HA3WCVGY.js";
|
|
8
|
+
import "./chunk-DC4T3FNP.js";
|
|
9
|
+
import "./chunk-ZPMLLONT.js";
|
|
10
|
+
import "./chunk-7XWUOCGW.js";
|
|
11
|
+
import "./chunk-7PVNJAQ2.js";
|
|
12
|
+
import "./chunk-C6SMAEED.js";
|
|
13
|
+
import "./chunk-PWKXHDBQ.js";
|
|
14
|
+
import "./chunk-PDH2QQQV.js";
|
|
15
|
+
import "./chunk-LNB7BIZL.js";
|
|
16
|
+
import "./chunk-HTQTIKWP.js";
|
|
17
|
+
import "./chunk-Z4O6C7WR.js";
|
|
18
|
+
import "./chunk-XPEWOPJR.js";
|
|
19
|
+
import "./chunk-64WJYT2F.js";
|
|
20
|
+
import "./chunk-PIN5RZ3D.js";
|
|
21
|
+
import "./chunk-CDI67JSB.js";
|
|
22
|
+
import "./chunk-K4N2DKE5.js";
|
|
23
|
+
import "./chunk-PJDO7AFZ.js";
|
|
24
|
+
import "./chunk-VO4KOLQZ.js";
|
|
25
|
+
import "./chunk-4UE7AVHZ.js";
|
|
26
|
+
import "./chunk-LW2G4U6W.js";
|
|
27
|
+
import "./chunk-LWT55XC5.js";
|
|
28
|
+
import "./chunk-CEO5HPRL.js";
|
|
29
|
+
import "./chunk-65GGKAQ7.js";
|
|
30
|
+
import "./chunk-YJZBJ2TM.js";
|
|
31
|
+
import "./chunk-ICKNJIGE.js";
|
|
32
|
+
import "./chunk-ZS635F4O.js";
|
|
33
|
+
import "./chunk-ZU732VCC.js";
|
|
34
|
+
import "./chunk-35GRI4DI.js";
|
|
35
|
+
import "./chunk-5DPV7X27.js";
|
|
36
|
+
import "./chunk-C4XP5T73.js";
|
|
37
|
+
import "./chunk-ZQNXKWUY.js";
|
|
38
|
+
import "./chunk-MWUITL6N.js";
|
|
39
|
+
import "./chunk-WZUJKUBK.js";
|
|
40
|
+
import "./chunk-YJX4X564.js";
|
|
41
|
+
import "./chunk-3V6NPZY7.js";
|
|
42
|
+
import "./chunk-SGOPYPVW.js";
|
|
43
|
+
import "./chunk-IVQ6342B.js";
|
|
44
|
+
import "./chunk-2FTZBZOB.js";
|
|
45
|
+
import "./chunk-WQMVSQPP.js";
|
|
46
|
+
import "./chunk-P5KGFT7U.js";
|
|
47
|
+
import "./chunk-QLZGLPJL.js";
|
|
48
|
+
import "./chunk-6KFA6HOM.js";
|
|
49
|
+
import "./chunk-GKHM6I64.js";
|
|
50
|
+
import "./chunk-Y5E2WNWB.js";
|
|
51
|
+
import "./chunk-LY26NW3I.js";
|
|
52
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
53
|
+
export {
|
|
54
|
+
buildStems,
|
|
55
|
+
storeMaintenanceCommands,
|
|
56
|
+
storeSummary
|
|
57
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
interactiveOf,
|
|
5
|
+
optionsOf
|
|
6
|
+
} from "./chunk-GNI7INK6.js";
|
|
7
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
8
|
+
export {
|
|
9
|
+
interactiveOf,
|
|
10
|
+
optionsOf
|
|
11
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
authorizedClient,
|
|
5
|
+
checkAuthorization,
|
|
6
|
+
checkSessionStorage,
|
|
7
|
+
covers,
|
|
8
|
+
credentials,
|
|
9
|
+
googleProvider,
|
|
10
|
+
grantedScopes,
|
|
11
|
+
notSaved,
|
|
12
|
+
observeRequests,
|
|
13
|
+
operationOf,
|
|
14
|
+
saveSession,
|
|
15
|
+
sessionKeeper
|
|
16
|
+
} from "./chunk-EVWXODYV.js";
|
|
17
|
+
import "./chunk-Y5EJSZXV.js";
|
|
18
|
+
import {
|
|
19
|
+
ACTIVITY_SCOPE,
|
|
20
|
+
APPS_SCOPE,
|
|
21
|
+
READ_SCOPE,
|
|
22
|
+
WRITE_SCOPE
|
|
23
|
+
} from "./chunk-ZIHLE7LG.js";
|
|
24
|
+
import "./chunk-WPGCDWPU.js";
|
|
25
|
+
import "./chunk-IGB5CJCA.js";
|
|
26
|
+
import "./chunk-UC44ZMQV.js";
|
|
27
|
+
import "./chunk-4TQSNQVV.js";
|
|
28
|
+
import "./chunk-YFLKH3NZ.js";
|
|
29
|
+
import "./chunk-IP4OK7RQ.js";
|
|
30
|
+
import "./chunk-AH3SNVCV.js";
|
|
31
|
+
import "./chunk-SBZB7HMU.js";
|
|
32
|
+
import "./chunk-HOIUIKWS.js";
|
|
33
|
+
import "./chunk-NQ6LLDDC.js";
|
|
34
|
+
import "./chunk-HA3WCVGY.js";
|
|
35
|
+
import "./chunk-DC4T3FNP.js";
|
|
36
|
+
import "./chunk-ZPMLLONT.js";
|
|
37
|
+
import "./chunk-7XWUOCGW.js";
|
|
38
|
+
import "./chunk-7PVNJAQ2.js";
|
|
39
|
+
import "./chunk-C6SMAEED.js";
|
|
40
|
+
import "./chunk-PWKXHDBQ.js";
|
|
41
|
+
import "./chunk-PDH2QQQV.js";
|
|
42
|
+
import "./chunk-LNB7BIZL.js";
|
|
43
|
+
import "./chunk-N47CYWEM.js";
|
|
44
|
+
import "./chunk-HTQTIKWP.js";
|
|
45
|
+
import "./chunk-A6ZKTNTZ.js";
|
|
46
|
+
import "./chunk-OECPFZLP.js";
|
|
47
|
+
import "./chunk-Z4O6C7WR.js";
|
|
48
|
+
import "./chunk-XPEWOPJR.js";
|
|
49
|
+
import "./chunk-64WJYT2F.js";
|
|
50
|
+
import "./chunk-PIN5RZ3D.js";
|
|
51
|
+
import "./chunk-CDI67JSB.js";
|
|
52
|
+
import "./chunk-K4N2DKE5.js";
|
|
53
|
+
import "./chunk-PJDO7AFZ.js";
|
|
54
|
+
import "./chunk-VO4KOLQZ.js";
|
|
55
|
+
import "./chunk-NZIHPYY5.js";
|
|
56
|
+
import "./chunk-4UE7AVHZ.js";
|
|
57
|
+
import "./chunk-LW2G4U6W.js";
|
|
58
|
+
import "./chunk-LWT55XC5.js";
|
|
59
|
+
import "./chunk-BPBIBVFH.js";
|
|
60
|
+
import "./chunk-CEO5HPRL.js";
|
|
61
|
+
import "./chunk-65GGKAQ7.js";
|
|
62
|
+
import "./chunk-YJZBJ2TM.js";
|
|
63
|
+
import "./chunk-ICKNJIGE.js";
|
|
64
|
+
import "./chunk-ZS635F4O.js";
|
|
65
|
+
import "./chunk-ZU732VCC.js";
|
|
66
|
+
import "./chunk-35GRI4DI.js";
|
|
67
|
+
import "./chunk-5DPV7X27.js";
|
|
68
|
+
import "./chunk-C4XP5T73.js";
|
|
69
|
+
import "./chunk-YE3J6DLY.js";
|
|
70
|
+
import "./chunk-ZQNXKWUY.js";
|
|
71
|
+
import "./chunk-MWUITL6N.js";
|
|
72
|
+
import "./chunk-WZUJKUBK.js";
|
|
73
|
+
import "./chunk-YJX4X564.js";
|
|
74
|
+
import "./chunk-3V6NPZY7.js";
|
|
75
|
+
import "./chunk-SGOPYPVW.js";
|
|
76
|
+
import "./chunk-IVQ6342B.js";
|
|
77
|
+
import "./chunk-2FTZBZOB.js";
|
|
78
|
+
import "./chunk-WQMVSQPP.js";
|
|
79
|
+
import "./chunk-P5KGFT7U.js";
|
|
80
|
+
import "./chunk-QLZGLPJL.js";
|
|
81
|
+
import "./chunk-6KFA6HOM.js";
|
|
82
|
+
import "./chunk-GKHM6I64.js";
|
|
83
|
+
import "./chunk-Y5E2WNWB.js";
|
|
84
|
+
import "./chunk-LY26NW3I.js";
|
|
85
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
86
|
+
export {
|
|
87
|
+
ACTIVITY_SCOPE,
|
|
88
|
+
APPS_SCOPE,
|
|
89
|
+
READ_SCOPE,
|
|
90
|
+
WRITE_SCOPE,
|
|
91
|
+
authorizedClient,
|
|
92
|
+
checkAuthorization,
|
|
93
|
+
checkSessionStorage,
|
|
94
|
+
covers,
|
|
95
|
+
credentials,
|
|
96
|
+
googleProvider,
|
|
97
|
+
grantedScopes,
|
|
98
|
+
notSaved,
|
|
99
|
+
observeRequests,
|
|
100
|
+
operationOf,
|
|
101
|
+
saveSession,
|
|
102
|
+
sessionKeeper
|
|
103
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/commands/mcp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/commands/mcp.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAQxC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAIlE,QAAA,MAAM,2BAA2B,YACtB,OAAO,iFAC+D,cAAc,iBAC9E,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,SAwMpD,CAAA;AAED,eAAO,MAAM,iBAAiB,YAAa,UAAU,CAAC,OAAO,2BAA2B,CAAC,YAWtF,CAAA"}
|
package/dist/commands/mcp.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CliError } from "@wirecat/cli-base";
|
|
1
2
|
import { annotate, customizeSharedCommand } from "@wirecat/cli-base/commands";
|
|
2
3
|
import { writes } from "@wirecat/cli-base/standards";
|
|
3
4
|
import { itemOf, LOCAL_READ, LOCAL_WRITE, mcpServerCommand, REMOTE_WRITE, readOnlyRefusal, sharedCommandTemplate, } from "@wirecat/cli-core/cli";
|
|
@@ -6,18 +7,47 @@ import { SHELL_OVERRIDES } from "../contract-overrides.js";
|
|
|
6
7
|
import { allOf } from "../output.js";
|
|
7
8
|
import { DRIVE_APP, permissionNames, refuseUnderReadOnly } from "../policy.js";
|
|
8
9
|
import { examples } from "../registry.js";
|
|
9
|
-
import {
|
|
10
|
+
import { httpTokenFile, profileSetTokenFile } from "../state.js";
|
|
10
11
|
const DEFAULT_PORT = 8765;
|
|
11
12
|
const installMcpCommandDefinition = (program, { env, streams, options, selected, output, policyFlags, signal, profileWord }, createProgram) => {
|
|
12
|
-
// No profile named anywhere: `drive mcp serve` serves every profile, and each tool takes one.
|
|
13
|
-
const every = () => !(profileWord() ?? env.DRIVE_PROFILE ?? env.DRIVE_PROFILE_LOCK);
|
|
14
13
|
const profiles = () => Object.keys(readConfig(env, permissionNames(policyFlags().permissionKeys ?? new Set())).profiles).sort();
|
|
14
|
+
// The handbook rule WC-MCP-9: the profiles a server serves are always named, as cli-core's `servedProfiles` does.
|
|
15
|
+
const served = (given, words) => {
|
|
16
|
+
const word = profileWord();
|
|
17
|
+
const listed = () => `profiles here: ${profiles().join(", ") || "none"}`;
|
|
18
|
+
if (given === undefined && (word ?? env.DRIVE_PROFILE ?? env.DRIVE_PROFILE_LOCK))
|
|
19
|
+
return { profile: selected() };
|
|
20
|
+
if (given !== undefined && word !== undefined)
|
|
21
|
+
throw new CliError("validation_error", `name one profile or --profiles, not both: \`drive ${word} ${words}\` or \`drive ${words} --profiles ${given}\``, { profiles: profiles() });
|
|
22
|
+
if (given === undefined) {
|
|
23
|
+
if (profiles().length === 0)
|
|
24
|
+
throw new CliError("configuration_error", "no drive profile here yet; create one with drive personal session start (any name in place of personal)");
|
|
25
|
+
throw new CliError("validation_error", `name the profiles to serve: \`drive <profile> ${words}\`, or \`drive ${words} --profiles <a,b>\` or ` +
|
|
26
|
+
`\`--profiles all\` — ${listed()}`, { profiles: profiles() });
|
|
27
|
+
}
|
|
28
|
+
const names = [...new Set(given.split(",").map((one) => one.trim()))].filter(Boolean).sort();
|
|
29
|
+
const lock = env.DRIVE_PROFILE_LOCK?.trim();
|
|
30
|
+
if (lock && names.some((one) => one !== lock))
|
|
31
|
+
throw new CliError("permission_error", `this process is locked to profile ${lock} (DRIVE_PROFILE_LOCK) — --profiles may name only ${lock}`, { reason: "profile.lock-refused" });
|
|
32
|
+
if (lock)
|
|
33
|
+
return { set: { option: lock, profiles: () => [lock] } };
|
|
34
|
+
if (names.length === 1 && names[0] === "all")
|
|
35
|
+
return { set: { option: "all", profiles } };
|
|
36
|
+
if (names.length === 0 || names.includes("all"))
|
|
37
|
+
throw new CliError("validation_error", "--profiles takes profile names, comma-separated, or `all` alone for every profile — a profile named all " +
|
|
38
|
+
`is served as \`drive all ${words}\`; ${listed()}`, { profiles: profiles() });
|
|
39
|
+
const unknown = names.filter((one) => !profiles().includes(one));
|
|
40
|
+
if (unknown.length > 0)
|
|
41
|
+
throw new CliError("validation_error", `no profile named ${unknown.map((one) => `"${one}"`).join(", ")} — ${listed()}`, { profiles: profiles() });
|
|
42
|
+
return { set: { option: names.join(","), profiles: () => names } };
|
|
43
|
+
};
|
|
44
|
+
const withProfiles = (command) => command.option("--profiles <names|all>", "serve several profiles from one server instead of one: names, comma-separated, or all for every profile");
|
|
15
45
|
const group = annotate(program.command("mcp"), { effects: LOCAL_READ, mcp: false })
|
|
16
46
|
.summary("serve this profile's commands to an AI agent, and set that up")
|
|
17
47
|
.description("serve this profile to an agent over MCP and set it up — `claude mcp add drive -- drive <profile> mcp serve`");
|
|
18
|
-
examples(annotate(group.command("serve"), { effects: REMOTE_WRITE, lifetime: "persistent", mcp: false })
|
|
48
|
+
const serve = examples(annotate(group.command("serve"), { effects: REMOTE_WRITE, lifetime: "persistent", mcp: false })
|
|
19
49
|
.summary("serve this profile's commands to an AI agent")
|
|
20
|
-
.description("serve this profile to an agent over MCP, on stdin and stdout — `claude mcp add drive -- drive <profile> mcp serve`;
|
|
50
|
+
.description("serve this profile to an agent over MCP, on stdin and stdout — `claude mcp add drive -- drive <profile> mcp serve`; `drive mcp serve --profiles a,b` or `--profiles all` serves those profiles from one server and each tool asks which"), [
|
|
21
51
|
"drive personal mcp serve --tools",
|
|
22
52
|
"drive personal mcp serve",
|
|
23
53
|
"drive personal mcp serve --http --public-url https://laptop.example.ts.net",
|
|
@@ -25,16 +55,19 @@ const installMcpCommandDefinition = (program, { env, streams, options, selected,
|
|
|
25
55
|
.option("--tools", "list the commands the server offers instead of starting it")
|
|
26
56
|
.option("--http", "serve over HTTP on 127.0.0.1 for ChatGPT and Claude in the browser, behind your tunnel; the profile's permissions decide")
|
|
27
57
|
.option("--port <port>", `the local port for --http (default ${DEFAULT_PORT})`)
|
|
28
|
-
.option("--public-url <url>", "the tunnel's https address the browser apps use, e.g. https://<name>.ts.net or https://<name>.ts.net/drive")
|
|
29
|
-
|
|
30
|
-
const { mcpTools, serveMcp, serveMcpOverHttp,
|
|
58
|
+
.option("--public-url <url>", "the tunnel's https address the browser apps use, e.g. https://<name>.ts.net or https://<name>.ts.net/drive");
|
|
59
|
+
withProfiles(serve).action(async (args) => {
|
|
60
|
+
const { mcpTools, serveMcp, serveMcpOverHttp, serveProfiles } = await import("../mcp.js");
|
|
31
61
|
const { portOf, publicUrlOf } = await import("@wirecat/cli-core/mcp");
|
|
32
62
|
const tunnel = () => publicUrlOf(args.publicUrl, { missing: "--http", reaches: "the browser apps reach drive", path: true });
|
|
33
|
-
|
|
63
|
+
const one = served(args.profiles, "mcp serve");
|
|
64
|
+
if ("set" in one) {
|
|
65
|
+
if (args.tools)
|
|
66
|
+
throw new CliError("validation_error", "--tools lists one profile's commands: `drive <profile> mcp serve --tools`");
|
|
34
67
|
const active = signal();
|
|
35
|
-
await
|
|
68
|
+
await serveProfiles({
|
|
36
69
|
env,
|
|
37
|
-
|
|
70
|
+
set: one.set,
|
|
38
71
|
permissions: policyFlags().permission ?? [],
|
|
39
72
|
note: (text) => streams.diagnostic(text),
|
|
40
73
|
...(active ? { signal: active } : {}),
|
|
@@ -43,14 +76,14 @@ const installMcpCommandDefinition = (program, { env, streams, options, selected,
|
|
|
43
76
|
}
|
|
44
77
|
else if (args.http) {
|
|
45
78
|
const active = signal();
|
|
46
|
-
await serveMcpOverHttp(createProgram, { ...options, env, ...(active ? { signal: active } : {}) },
|
|
79
|
+
await serveMcpOverHttp(createProgram, { ...options, env, ...(active ? { signal: active } : {}) }, one.profile, policyFlags(), {
|
|
47
80
|
publicUrl: tunnel(),
|
|
48
81
|
port: portOf(args.port, DEFAULT_PORT),
|
|
49
82
|
note: (text) => streams.diagnostic(text),
|
|
50
83
|
});
|
|
51
84
|
}
|
|
52
85
|
else if (args.tools)
|
|
53
|
-
output(allOf(mcpTools(createProgram, { ...options, env },
|
|
86
|
+
output(allOf(mcpTools(createProgram, { ...options, env }, one.profile, policyFlags()).map(({ schema, command, availability }) => ({
|
|
54
87
|
command: command.path.join(" "),
|
|
55
88
|
writes: writes(command.effects),
|
|
56
89
|
input_schema: schema,
|
|
@@ -59,42 +92,59 @@ const installMcpCommandDefinition = (program, { env, streams, options, selected,
|
|
|
59
92
|
}))));
|
|
60
93
|
else {
|
|
61
94
|
const active = signal();
|
|
62
|
-
await serveMcp(createProgram, { ...options, env, ...(active ? { signal: active } : {}) },
|
|
95
|
+
await serveMcp(createProgram, { ...options, env, ...(active ? { signal: active } : {}) }, one.profile, policyFlags());
|
|
63
96
|
}
|
|
64
97
|
});
|
|
65
|
-
examples(annotate(group.command("revoke"), { effects: LOCAL_WRITE, mcp: false })
|
|
98
|
+
withProfiles(examples(annotate(group.command("revoke"), { effects: LOCAL_WRITE, mcp: false })
|
|
66
99
|
.summary("forget every login given to a browser app")
|
|
67
|
-
.description("forget every login `mcp serve --http` gave a browser app, of this profile or
|
|
100
|
+
.description("forget every login `mcp serve --http` gave a browser app, of this profile or of the server `--profiles` names; each app must log in again"), ["drive personal mcp revoke"])).action(async (args) => {
|
|
68
101
|
refuseUnderReadOnly(env, "forget the browser logins");
|
|
69
102
|
if (policyFlags().readOnly)
|
|
70
103
|
throw readOnlyRefusal("--read-only", "forget the browser logins");
|
|
71
104
|
const { revokeAll } = await import("@wirecat/cli-core/mcp");
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
105
|
+
const one = served(args.profiles, "mcp revoke");
|
|
106
|
+
if ("set" in one) {
|
|
107
|
+
revokeAll(profileSetTokenFile(env, one.set.option));
|
|
108
|
+
output(itemOf({ revoked: true, profile: null, profiles: one.set.option }));
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
revokeAll(httpTokenFile(env, one.profile));
|
|
112
|
+
output(itemOf({ revoked: true, profile: one.profile }));
|
|
113
|
+
}
|
|
75
114
|
});
|
|
76
|
-
|
|
115
|
+
const server = mcpServerCommand({
|
|
77
116
|
example: "drive personal",
|
|
78
|
-
target: () =>
|
|
79
|
-
|
|
80
|
-
|
|
117
|
+
target: (self) => {
|
|
118
|
+
const one = served(self.opts().profiles, `mcp server ${self.name()}`);
|
|
119
|
+
if ("set" in one)
|
|
120
|
+
return {
|
|
121
|
+
invocation: "drive",
|
|
122
|
+
envPrefix: DRIVE_APP.envPrefix,
|
|
123
|
+
env,
|
|
124
|
+
tokenFile: profileSetTokenFile(env, one.set.option),
|
|
125
|
+
argv: ["mcp", "serve", "--http", "--profiles", one.set.option],
|
|
126
|
+
version: DRIVE_APP.version,
|
|
127
|
+
};
|
|
128
|
+
return {
|
|
129
|
+
invocation: `drive ${one.profile}`,
|
|
130
|
+
profile: one.profile,
|
|
81
131
|
envPrefix: DRIVE_APP.envPrefix,
|
|
82
132
|
env,
|
|
83
|
-
tokenFile:
|
|
84
|
-
argv: ["mcp", "serve", "--http"],
|
|
133
|
+
tokenFile: httpTokenFile(env, one.profile),
|
|
134
|
+
argv: [one.profile, "mcp", "serve", "--http"],
|
|
85
135
|
version: DRIVE_APP.version,
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
136
|
+
};
|
|
137
|
+
},
|
|
138
|
+
// cli-core 0.469.0 answers `profile: null` for a set; name the set as `--profiles` takes it.
|
|
139
|
+
answer: (self, item) => {
|
|
140
|
+
const given = self.opts().profiles;
|
|
141
|
+
const one = given === undefined ? undefined : served(given, `mcp server ${self.name()}`);
|
|
142
|
+
output(itemOf(one && "set" in one ? { ...item, profiles: one.set.option } : item));
|
|
143
|
+
},
|
|
144
|
+
});
|
|
145
|
+
for (const leaf of server.commands)
|
|
146
|
+
withProfiles(leaf);
|
|
147
|
+
group.addCommand(server);
|
|
98
148
|
};
|
|
99
149
|
export const installMcpCommand = (...args) => customizeSharedCommand(sharedCommandTemplate(DRIVE_APP, "mcp"), "Drive exposes Google document tools over stdio and HTTP using OAuth grants and its document permission adapter; its tool listing and command catalogue replace the messenger setup commands.", () => {
|
|
100
150
|
installMcpCommandDefinition(...args);
|
package/dist/commands/mcp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../src/commands/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AACpD,OAAO,EACL,MAAM,EACN,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,qBAAqB,GACtB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../src/commands/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AACpD,OAAO,EACL,MAAM,EACN,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,qBAAqB,GACtB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE1D,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,mB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,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAA;IACxE,OAAO,OAAO,CAAA;AAChB,CAAC,EACD,eAAe,CAAC,GAAG,CACpB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-overrides.d.ts","sourceRoot":"","sources":["../src/contract-overrides.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"contract-overrides.d.ts","sourceRoot":"","sources":["../src/contract-overrides.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAoBxE,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC;IACrC,KAAK,EAAE,SAAS,sBAAsB,EAAE,CAAA;IACxC,MAAM,EAAE,SAAS,sBAAsB,EAAE,CAAA;IACzC,GAAG,EAAE,SAAS,sBAAsB,EAAE,CAAA;IACtC,KAAK,EAAE,SAAS,sBAAsB,EAAE,CAAA;IACxC,QAAQ,EAAE,SAAS,sBAAsB,EAAE,CAAA;IAC3C,MAAM,EAAE,SAAS,sBAAsB,EAAE,CAAA;CAC1C,CAy8BA,CAAA"}
|