@wirecat/drive-cli 0.52.1 → 0.53.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-WRN35CUF.js} +11 -6
- package/dist/bundle/{anthropic-KW6KU36Y.js → anthropic-DZASXWG3.js} +1 -1
- package/dist/bundle/{app-server-TCJZ333E.js → app-server-4VHT7QZN.js} +33 -41
- package/dist/bundle/{bun-sqlite-RI7DR6RZ.js → bun-sqlite-2GOM5PM3.js} +1 -1
- package/dist/bundle/{chunk-LONV6HIK.js → chunk-2HHOMN2G.js} +440 -25
- package/dist/bundle/{chunk-NYOPEHEU.js → chunk-2PVDFLJJ.js} +8 -3
- package/dist/bundle/{chunk-725OHXKR.js → chunk-3RYX7IB6.js} +2218 -30
- package/dist/bundle/{chunk-CB7SBYLO.js → chunk-54BYJQ77.js} +41 -21
- package/dist/bundle/{chunk-5FONRUG6.js → chunk-5D4AEUVA.js} +1 -23
- package/dist/bundle/{chunk-RNSP57TC.js → chunk-6BNALDGA.js} +1 -1
- package/dist/bundle/{chunk-H47W2J6S.js → chunk-6XYGTRMQ.js} +812 -381
- package/dist/bundle/{chunk-UR32UWTQ.js → chunk-7IUMHMTP.js} +11 -0
- package/dist/bundle/{chunk-W7IK7E4B.js → chunk-BEL4XZ3M.js} +5 -7
- package/dist/bundle/{chunk-43QVYW3K.js → chunk-CL4GVCXS.js} +230 -56
- package/dist/bundle/{chunk-PQYVPCJ2.js → chunk-CNKILAWA.js} +18 -24
- package/dist/bundle/chunk-DOZOLBXE.js +110 -0
- package/dist/bundle/{chunk-2AUXBJRX.js → chunk-DT2YCB2V.js} +84 -11
- package/dist/bundle/{chunk-HQVJK5E7.js → chunk-DZMK255Y.js} +210 -357
- package/dist/bundle/{chunk-G6QF5KWF.js → chunk-E6XDFMRZ.js} +22 -28
- package/dist/bundle/{chunk-54O62JWP.js → chunk-F3KHUJEE.js} +24 -5
- package/dist/bundle/{chunk-I7UH5CTA.js → chunk-FXWBUTR7.js} +7 -9
- package/dist/bundle/{chunk-ZNZUZGSV.js → chunk-GE4DP24O.js} +131 -4
- package/dist/bundle/{chunk-PEOCBV2Z.js → chunk-GPJEYW2J.js} +1 -1
- package/dist/bundle/{chunk-A4UNTWAX.js → chunk-HM352LJR.js} +84 -15
- package/dist/bundle/{chunk-KYVXMEBC.js → chunk-IAQ4L6SM.js} +1 -1
- package/dist/bundle/{chunk-PQJYM5ES.js → chunk-IJFZKQC4.js} +1 -1
- package/dist/bundle/{chunk-O6IOL6RX.js → chunk-KPBCGUJC.js} +1 -1
- package/dist/bundle/{chunk-XOLQSCMF.js → chunk-KXMJE3XC.js} +2 -2
- package/dist/bundle/{chunk-33NVQGUY.js → chunk-LSGAJYVN.js} +2 -2
- package/dist/bundle/{chunk-2UIMEMWU.js → chunk-MK3N7WX7.js} +1 -1
- package/dist/bundle/{chunk-IDUNJCFO.js → chunk-OQMK6WXQ.js} +1 -1
- package/dist/bundle/{chunk-CM7GAXGD.js → chunk-PC4UA6UN.js} +1 -1
- package/dist/bundle/{chunk-YNFELLNQ.js → chunk-PIMMF67N.js} +2 -2
- package/dist/bundle/{chunk-WBTVGFXI.js → chunk-PR3DA7KA.js} +9 -9
- package/dist/bundle/{chunk-VJZST5RD.js → chunk-QXYGK6G5.js} +1 -1
- package/dist/bundle/{chunk-WQJBAWQP.js → chunk-R4TE4ZSD.js} +549 -224
- package/dist/bundle/{chunk-BSSCTWWK.js → chunk-RNIHKIQP.js} +1 -1
- package/dist/bundle/{chunk-PAXKALHV.js → chunk-SIWBUGBU.js} +116 -5
- package/dist/bundle/{chunk-2623YE5I.js → chunk-SQHPJBNO.js} +6 -8
- package/dist/bundle/chunk-SVTYS36O.js +5305 -0
- package/dist/bundle/{chunk-WLFUBNFX.js → chunk-T334CFU4.js} +2 -2
- package/dist/bundle/{chunk-IEXPOEEO.js → chunk-TZLO3ZZF.js} +3 -3
- package/dist/bundle/{chunk-5PLJKSG4.js → chunk-UFWK3L5Z.js} +4 -6
- package/dist/bundle/{chunk-FCJAHD4R.js → chunk-VTWADVEQ.js} +2 -2
- package/dist/bundle/{chunk-HX7Y2ASG.js → chunk-WJRJBQIM.js} +26040 -15126
- package/dist/bundle/{chunk-VSOLLTYT.js → chunk-YLKQSVLI.js} +5 -0
- package/dist/bundle/{chunk-IWFBAWZK.js → chunk-YQOVVCIA.js} +282 -10
- package/dist/bundle/{chunk-7YMDL4JQ.js → chunk-ZG6X24ON.js} +4 -1
- package/dist/bundle/{command-contract-I2YB5IXI.js → command-contract-D4UG3D33.js} +12 -15
- package/dist/bundle/{decode-EDN2ARXZ.js → decode-WAPM2VBH.js} +1 -1
- package/dist/bundle/drive.js +9 -20
- package/dist/bundle/{embed-3GSQIQXE.js → embed-HW3N3KNP.js} +4 -4
- package/dist/bundle/{embedder-6ULWRG3R.js → embedder-7WNFXYYP.js} +4 -4
- package/dist/bundle/{entry-IPRJLFHO.js → entry-J7YIRDPD.js} +4 -4
- package/dist/bundle/{first-run-FGHGWHC2.js → first-run-53CL2IYH.js} +6 -6
- package/dist/bundle/{first-screen-M62KTPZG.js → first-screen-2KT7HM2K.js} +13 -16
- package/dist/bundle/{google-BD3ZNFVJ.js → google-5NNVARNR.js} +2 -2
- package/dist/bundle/{chunk-GR5GGZKH.js → google-api-EQQH53QD.js} +60 -4
- package/dist/bundle/grants-4NETZ4MR.js +98 -0
- package/dist/bundle/{identity-U7IHZEMR.js → identity-LBTXDMTA.js} +4 -2
- package/dist/bundle/{login-7HRYPZMM.js → login-Y6ENYKC3.js} +44 -50
- package/dist/bundle/{node-sqlite-J3OODPYK.js → node-sqlite-FSQIKGED.js} +1 -1
- package/dist/bundle/{oauth-L4VTCBLF.js → oauth-HF5USWXY.js} +5 -5
- package/dist/bundle/{open-SGUN7ZVF.js → open-NHGJENCX.js} +2 -2
- package/dist/bundle/{openai-RLVISEDH.js → openai-3JCJYKNX.js} +6 -6
- package/dist/bundle/{program-YVLXSKZV.js → program-QAJ66K3Z.js} +713 -902
- package/dist/bundle/{prompt-AUWTBLO7.js → prompt-LQJBCCUF.js} +3 -3
- package/dist/bundle/{recognize-ORX2UBQW.js → recognize-QM3LN4ZF.js} +1 -1
- package/dist/bundle/{remote-AGIJY73X.js → remote-WREGEZJQ.js} +5 -5
- package/dist/bundle/{rerank-R6PE44M5.js → rerank-YFUB6J6M.js} +4 -4
- package/dist/bundle/{chunk-G7DCVJ4F.js → serve-7NFEZ564.js} +7 -4
- package/dist/bundle/{chunk-F7UUZATI.js → server-KBCFZ2AU.js} +38 -11
- package/dist/bundle/server-UYVL2CFI.js +63 -0
- package/dist/bundle/{services-HZFTTZSF.js → services-C3XWRA2W.js} +16 -21
- package/dist/bundle/{sqlite-runtime-DTGPR2T2.js → sqlite-runtime-H3TSAMIN.js} +3 -3
- package/dist/bundle/{state-WG3JKJM3.js → state-S2Q53L6L.js} +3 -3
- package/dist/bundle/{store-33VHIMEO.js → store-H345VQHP.js} +6 -8
- package/dist/bundle/{store-EV72MT5U.js → store-I27LAJPU.js} +7 -9
- package/dist/bundle/store-maintenance-command-3XA73XMC.js +52 -0
- package/dist/bundle/{chunk-GNI7INK6.js → terminal-DHJ4D3BC.js} +2 -3
- package/dist/bundle/tokens-7MUGKFEM.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/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/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -3
- 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/failure-IXS2ZHA5.js +0 -37
- 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
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
operations
|
|
5
|
+
} from "./chunk-WJRJBQIM.js";
|
|
6
|
+
import {
|
|
7
|
+
DRIVE_APP
|
|
8
|
+
} from "./chunk-2PVDFLJJ.js";
|
|
9
|
+
import {
|
|
10
|
+
commandPathKey,
|
|
11
|
+
commandPermissions
|
|
12
|
+
} from "./chunk-54BYJQ77.js";
|
|
3
13
|
import {
|
|
4
14
|
AI_ENTRIES,
|
|
5
15
|
checkConfigText,
|
|
6
16
|
issueMessage,
|
|
17
|
+
settingsFor,
|
|
7
18
|
usableProfileName
|
|
8
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3RYX7IB6.js";
|
|
9
20
|
import {
|
|
10
21
|
LEVELS
|
|
11
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2HHOMN2G.js";
|
|
12
23
|
import {
|
|
13
24
|
MAX_TEXT_CHARS
|
|
14
25
|
} from "./chunk-JEOYFKUK.js";
|
|
15
26
|
import {
|
|
16
27
|
resolvePaths,
|
|
17
28
|
saveConfigFile
|
|
18
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-DZMK255Y.js";
|
|
19
30
|
import {
|
|
20
31
|
CliError,
|
|
21
32
|
array,
|
|
@@ -41,6 +52,75 @@ import {
|
|
|
41
52
|
__name
|
|
42
53
|
} from "./chunk-ZVVMGPBJ.js";
|
|
43
54
|
|
|
55
|
+
// dist/policy-keys.js
|
|
56
|
+
var permissionKeys = /* @__PURE__ */ __name((paths2) => {
|
|
57
|
+
const keys = /* @__PURE__ */ new Set([
|
|
58
|
+
"mcp.authority",
|
|
59
|
+
"mcp",
|
|
60
|
+
"sheets.create",
|
|
61
|
+
"sheets.rename",
|
|
62
|
+
"sheets.insert",
|
|
63
|
+
"sheets.format",
|
|
64
|
+
"sheets.update"
|
|
65
|
+
]);
|
|
66
|
+
for (const path of paths2)
|
|
67
|
+
keys.add(path.join("."));
|
|
68
|
+
for (const operation of operations)
|
|
69
|
+
for (const key of methodPolicyKeys(operation.id))
|
|
70
|
+
keys.add(key);
|
|
71
|
+
return keys;
|
|
72
|
+
}, "permissionKeys");
|
|
73
|
+
var permissionNames = /* @__PURE__ */ __name((keys) => {
|
|
74
|
+
const names = /* @__PURE__ */ new Set();
|
|
75
|
+
for (const key of keys) {
|
|
76
|
+
const parts = key.split(".");
|
|
77
|
+
for (let end = 1; end <= parts.length; end++)
|
|
78
|
+
names.add(parts.slice(0, end).join("."));
|
|
79
|
+
}
|
|
80
|
+
return names;
|
|
81
|
+
}, "permissionNames");
|
|
82
|
+
var DEFAULT_LEVELS = {
|
|
83
|
+
"mcp.authority": "deny",
|
|
84
|
+
...Object.fromEntries(operations.filter((op) => op.effect === "destructive").map((op) => [`api.${op.id}`, "ask"]))
|
|
85
|
+
};
|
|
86
|
+
var methodPolicyKeys = /* @__PURE__ */ __name((method, body) => {
|
|
87
|
+
const parts = method.split(".");
|
|
88
|
+
const verb = parts.at(-1);
|
|
89
|
+
const alias = method.startsWith("drive.files.") ? `files.${verb}` : method.startsWith("docs.documents.") ? `documents.${verb === "batchUpdate" ? "update" : verb}` : method.startsWith("sheets.spreadsheets.") ? `sheets.${method === "sheets.spreadsheets.get" ? "info" : method === "sheets.spreadsheets.values.get" ? "show" : verb === "append" ? "add" : verb}` : method === "driveactivity.activity.query" ? "documents.history" : method.startsWith("drive.") ? `${parts[1]}.${verb}` : void 0;
|
|
90
|
+
const keys = [`api.${method}`, ...alias ? [alias] : []];
|
|
91
|
+
if (method === "drive.replies.create" && body)
|
|
92
|
+
keys.push(body.action === "resolve" ? "comments.resolve" : body.action === "reopen" ? "comments.reopen" : "comments.reply");
|
|
93
|
+
if (method === "drive.replies.create" && body?.content !== void 0)
|
|
94
|
+
keys.push("comments.reply");
|
|
95
|
+
if (method === "sheets.spreadsheets.batchUpdate" && Array.isArray(body?.requests)) {
|
|
96
|
+
const object2 = /* @__PURE__ */ __name((value) => !!value && typeof value === "object" && !Array.isArray(value), "object");
|
|
97
|
+
for (const request of body.requests) {
|
|
98
|
+
if (!object2(request))
|
|
99
|
+
continue;
|
|
100
|
+
if (request.addSheet || request.duplicateSheet)
|
|
101
|
+
keys.push("sheets.create");
|
|
102
|
+
if (object2(request.updateSheetProperties)) {
|
|
103
|
+
const update = request.updateSheetProperties;
|
|
104
|
+
if (object2(update.properties) && update.properties.title !== void 0 || String(update.fields).split(",").some((field) => field.trim() === "title" || field.trim() === "*"))
|
|
105
|
+
keys.push("sheets.rename");
|
|
106
|
+
if (object2(update.properties) && update.properties.gridProperties)
|
|
107
|
+
keys.push("sheets.insert");
|
|
108
|
+
}
|
|
109
|
+
if (request.insertDimension || request.appendDimension || request.insertRange)
|
|
110
|
+
keys.push("sheets.insert");
|
|
111
|
+
if (request.repeatCell || request.updateCells || request.appendCells || request.updateBorders || request.addConditionalFormatRule || request.updateConditionalFormatRule || request.deleteConditionalFormatRule || request.addBanding || request.updateBanding || request.deleteBanding)
|
|
112
|
+
keys.push("sheets.format");
|
|
113
|
+
if (request.updateCells || request.appendCells || request.findReplace || request.pasteData || request.copyPaste || request.cutPaste || request.autoFill)
|
|
114
|
+
keys.push("sheets.update");
|
|
115
|
+
if (request.pasteData || request.copyPaste || request.cutPaste || request.autoFill)
|
|
116
|
+
keys.push("sheets.format");
|
|
117
|
+
if (object2(request.repeatCell) && (String(request.repeatCell.fields).split(",").some((field) => field.trim() === "*" || field.includes("userEnteredValue")) || object2(request.repeatCell.cell) && request.repeatCell.cell.userEnteredValue !== void 0))
|
|
118
|
+
keys.push("sheets.update");
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return [...new Set(keys)];
|
|
122
|
+
}, "methodPolicyKeys");
|
|
123
|
+
|
|
44
124
|
// dist/config.js
|
|
45
125
|
import { readFileSync } from "node:fs";
|
|
46
126
|
import { join } from "node:path";
|
|
@@ -66,7 +146,13 @@ var RunSettings = {
|
|
|
66
146
|
runs_size_limit_mb: optional(pipe(number(), integer(), minValue(1))),
|
|
67
147
|
record_input: optional(union([boolean(), literal("failed")]))
|
|
68
148
|
};
|
|
69
|
-
var
|
|
149
|
+
var SharedDefaults = {
|
|
150
|
+
limit: optional(pipe(number(), integer(), minValue(1))),
|
|
151
|
+
sends_per_hour: optional(pipe(number(), integer(), minValue(0))),
|
|
152
|
+
update_check: optional(boolean()),
|
|
153
|
+
skill_hint: optional(boolean())
|
|
154
|
+
};
|
|
155
|
+
var DEFAULTS_ONLY = /* @__PURE__ */ new Set([...Object.keys(RunSettings), "update_check", "skill_hint"]);
|
|
70
156
|
var SETTING_NAMES = /* @__PURE__ */ new Set([...Object.keys(Common), "picture_search", ...DEFAULTS_ONLY]);
|
|
71
157
|
var Mirror = strictObject({
|
|
72
158
|
id: pipe(string(), regex(/^[a-z0-9-]{1,40}$/)),
|
|
@@ -83,7 +169,27 @@ var Profile = strictObject({
|
|
|
83
169
|
});
|
|
84
170
|
var ConfigSchema = strictObject({
|
|
85
171
|
profiles: optional(record(string(), Profile), {}),
|
|
86
|
-
defaults: optional(strictObject({ ...Common, ...RunSettings }))
|
|
172
|
+
defaults: optional(strictObject({ ...Common, ...RunSettings, ...SharedDefaults }))
|
|
173
|
+
});
|
|
174
|
+
var keyOf = /* @__PURE__ */ __name((path) => {
|
|
175
|
+
if (path[0] !== "api" || path[1] === void 0)
|
|
176
|
+
return commandPathKey(path);
|
|
177
|
+
if (["call", "list", "show"].includes(path[1]))
|
|
178
|
+
return null;
|
|
179
|
+
const operation = operations.find((one) => one.command === path[1]);
|
|
180
|
+
return operation ? `api.${operation.id}` : commandPathKey(path);
|
|
181
|
+
}, "keyOf");
|
|
182
|
+
var configuration = settingsFor(DRIVE_APP, {
|
|
183
|
+
// drive's own schema decides what the file may hold, so `doctor` names a profile that lacks its principal.
|
|
184
|
+
schema: ConfigSchema,
|
|
185
|
+
profile: {
|
|
186
|
+
principal: optional(string()),
|
|
187
|
+
roots: optional(array(pipe(string(), regex(/^[A-Za-z0-9_-]{1,200}$/)))),
|
|
188
|
+
mirrors: optional(array(Mirror)),
|
|
189
|
+
storage: optional(picklist(["keyring", "file"])),
|
|
190
|
+
max_text_chars: Common.max_text_chars
|
|
191
|
+
},
|
|
192
|
+
permissions: commandPermissions({ keyOf, extra: [...permissionKeys([])], defaults: DEFAULT_LEVELS })
|
|
87
193
|
});
|
|
88
194
|
var paths = /* @__PURE__ */ __name((env) => resolvePaths({ appName: "drive-cli", prefix: "DRIVE", env }), "paths");
|
|
89
195
|
var configPath = /* @__PURE__ */ __name((env) => join(paths(env).config, "config.json"), "configPath");
|
|
@@ -198,8 +304,13 @@ var configuredMirrors = /* @__PURE__ */ __name((env, profile, filter = {}) => (a
|
|
|
198
304
|
var configuredSessions = /* @__PURE__ */ __name((env, filter, knownPermissions) => Object.entries(readConfig(env, knownPermissions).profiles).flatMap(([name, row]) => (filter.profile === void 0 || filter.profile === name) && (filter.storage === void 0 || filter.storage === row.storage) ? [{ profile: name, selected_folders: row.roots.length, storage: row.storage }] : []), "configuredSessions");
|
|
199
305
|
|
|
200
306
|
export {
|
|
307
|
+
permissionKeys,
|
|
308
|
+
permissionNames,
|
|
309
|
+
DEFAULT_LEVELS,
|
|
310
|
+
methodPolicyKeys,
|
|
201
311
|
DEFAULTS_ONLY,
|
|
202
312
|
SETTING_NAMES,
|
|
313
|
+
configuration,
|
|
203
314
|
paths,
|
|
204
315
|
inspectConfig,
|
|
205
316
|
configIssues,
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
recordLogFor,
|
|
5
5
|
storeTable
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3RYX7IB6.js";
|
|
7
7
|
import {
|
|
8
8
|
carries
|
|
9
9
|
} from "./chunk-NSIFQ5OP.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
conversation,
|
|
17
17
|
tagging,
|
|
18
18
|
task
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2HHOMN2G.js";
|
|
20
20
|
import {
|
|
21
21
|
author,
|
|
22
22
|
count,
|
|
@@ -39,6 +39,7 @@ import {
|
|
|
39
39
|
FACT_TYPES,
|
|
40
40
|
LINK_KINDS,
|
|
41
41
|
LINK_SOURCES,
|
|
42
|
+
MEETING_RESULT_ENTITIES,
|
|
42
43
|
MEMORY_KINDS,
|
|
43
44
|
MEMORY_SCOPES,
|
|
44
45
|
MEMORY_STATUSES,
|
|
@@ -48,10 +49,7 @@ import {
|
|
|
48
49
|
TASK_STATES,
|
|
49
50
|
TASK_TYPES,
|
|
50
51
|
TASK_VERDICTS,
|
|
51
|
-
WORK_TASK_TYPES
|
|
52
|
-
} from "./chunk-PDGECM5D.js";
|
|
53
|
-
import {
|
|
54
|
-
MEETING_RESULT_ENTITIES,
|
|
52
|
+
WORK_TASK_TYPES,
|
|
55
53
|
event,
|
|
56
54
|
meeting,
|
|
57
55
|
meetingDetails,
|
|
@@ -65,11 +63,11 @@ import {
|
|
|
65
63
|
meetingStats,
|
|
66
64
|
meetingSummary,
|
|
67
65
|
meetingTranscript
|
|
68
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-GE4DP24O.js";
|
|
69
67
|
import {
|
|
70
68
|
resolvePaths,
|
|
71
69
|
writeSecurely
|
|
72
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-DZMK255Y.js";
|
|
73
71
|
import {
|
|
74
72
|
CliError,
|
|
75
73
|
array,
|