@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,484 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
LEVELS
|
|
5
|
-
} from "./chunk-Q765VPZY.js";
|
|
6
|
-
import {
|
|
7
|
-
resolvePaths,
|
|
8
|
-
singleLine,
|
|
9
|
-
visibleControls,
|
|
10
|
-
writeSecurely
|
|
11
|
-
} from "./chunk-HQVJK5E7.js";
|
|
12
|
-
import {
|
|
13
|
-
CliError,
|
|
14
|
-
array,
|
|
15
|
-
getDotPath,
|
|
16
|
-
integer,
|
|
17
|
-
minLength,
|
|
18
|
-
minValue,
|
|
19
|
-
nullable,
|
|
20
|
-
number,
|
|
21
|
-
optional,
|
|
22
|
-
picklist,
|
|
23
|
-
pipe,
|
|
24
|
-
record,
|
|
25
|
-
regex,
|
|
26
|
-
safeParse,
|
|
27
|
-
strictObject,
|
|
28
|
-
string,
|
|
29
|
-
transform,
|
|
30
|
-
unknown
|
|
31
|
-
} from "./chunk-YKZ4IPLB.js";
|
|
32
|
-
import {
|
|
33
|
-
__name
|
|
34
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
35
|
-
|
|
36
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
37
|
-
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
38
|
-
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
39
|
-
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
40
|
-
const wanted = foldName(reference.trim());
|
|
41
|
-
const matches = chats.filter((chat) => chat.title !== null && foldName(chat.title).includes(wanted));
|
|
42
|
-
if (matches.length === 1 && matches[0])
|
|
43
|
-
return matches[0];
|
|
44
|
-
if (matches.length === 0)
|
|
45
|
-
throw new CliError("not_found", `no chat matches "${reference}"`);
|
|
46
|
-
throw ambiguous(reference, "chats", matches.map((chat) => ({ id: chat.id, title: chat.title })), ({ title }) => singleLine(String(title)));
|
|
47
|
-
}, "pickChat");
|
|
48
|
-
var pickPerson = /* @__PURE__ */ __name((reference, people) => {
|
|
49
|
-
const trimmed = reference.trim();
|
|
50
|
-
const known = people.get(trimmed);
|
|
51
|
-
if (known)
|
|
52
|
-
return known;
|
|
53
|
-
if (isId(trimmed))
|
|
54
|
-
throw new CliError("not_found", `no person ${trimmed} in what this account has seen`);
|
|
55
|
-
const wanted = foldName(trimmed.replace(/^@/, ""));
|
|
56
|
-
const everyone = people.all().toSorted((a, b) => (a.name ?? "").localeCompare(b.name ?? ""));
|
|
57
|
-
const fields = /* @__PURE__ */ __name((person) => [person.alias, person.name, person.username].filter(isPresent).map(foldName), "fields");
|
|
58
|
-
const exact = everyone.filter((person) => fields(person).includes(wanted));
|
|
59
|
-
const matches = exact.length > 0 ? exact : everyone.filter((person) => fields(person).some((one) => one.includes(wanted)));
|
|
60
|
-
if (matches.length === 1 && matches[0])
|
|
61
|
-
return matches[0];
|
|
62
|
-
if (matches.length === 0)
|
|
63
|
-
throw new CliError("not_found", `nobody matches "${reference}"`);
|
|
64
|
-
throw ambiguous(reference, "people", matches.map(({ id, name, username }) => ({ id, name, username })), ({ name, username }) => singleLine([name, username && `@${username}`].filter(isPresent).join(" ")));
|
|
65
|
-
}, "pickPerson");
|
|
66
|
-
var ambiguous = /* @__PURE__ */ __name((reference, what, candidates, label) => {
|
|
67
|
-
const width = Math.max(...candidates.map(({ id }) => id.length));
|
|
68
|
-
const lines = candidates.map((candidate) => ` ${candidate.id.padEnd(width)} ${label(candidate)}`).join("\n");
|
|
69
|
-
return new CliError("validation_error", `"${singleLine(reference)}" matches ${candidates.length} ${what} \u2014 name one by its id:
|
|
70
|
-
${lines}`, { candidates });
|
|
71
|
-
}, "ambiguous");
|
|
72
|
-
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
73
|
-
|
|
74
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
75
|
-
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
76
|
-
var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
77
|
-
const { text, spans } = formatted;
|
|
78
|
-
if (typeof text !== "string" || !Array.isArray(spans) || spans.length > 100)
|
|
79
|
-
throw invalid();
|
|
80
|
-
const boundary = /* @__PURE__ */ __name((at) => !(at > 0 && at < text.length && /[\uD800-\uDBFF]/u.test(text[at - 1] ?? "") && /[\uDC00-\uDFFF]/u.test(text[at] ?? "")), "boundary");
|
|
81
|
-
for (const span of spans) {
|
|
82
|
-
if (![
|
|
83
|
-
"bold",
|
|
84
|
-
"italic",
|
|
85
|
-
"strike",
|
|
86
|
-
"underline",
|
|
87
|
-
"code",
|
|
88
|
-
"pre",
|
|
89
|
-
"link",
|
|
90
|
-
"blockquote",
|
|
91
|
-
"spoiler",
|
|
92
|
-
"highlight",
|
|
93
|
-
"heading"
|
|
94
|
-
].includes(span.type) || !Number.isInteger(span.from) || !Number.isInteger(span.length) || span.from < 0 || span.length <= 0 || span.from + span.length > text.length || !boundary(span.from) || !boundary(span.from + span.length))
|
|
95
|
-
throw invalid();
|
|
96
|
-
if (span.type === "link") {
|
|
97
|
-
if (!span.url || Array.from(span.url).some((char) => char.charCodeAt(0) <= 32 || char.charCodeAt(0) === 127))
|
|
98
|
-
throw new CliError("validation_error", "a Markdown link needs an absolute http, https or mailto URL");
|
|
99
|
-
let url;
|
|
100
|
-
try {
|
|
101
|
-
url = new URL(span.url);
|
|
102
|
-
} catch {
|
|
103
|
-
throw new CliError("validation_error", "a Markdown link needs an absolute http, https or mailto URL");
|
|
104
|
-
}
|
|
105
|
-
if (!["http:", "https:", "mailto:"].includes(url.protocol))
|
|
106
|
-
throw new CliError("validation_error", "Markdown links support http, https and mailto URLs");
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
return formatted;
|
|
110
|
-
}, "validateFormattedText");
|
|
111
|
-
var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
112
|
-
validateFormattedText(formatted);
|
|
113
|
-
const text = visibleControls(formatted.text);
|
|
114
|
-
const positions = /* @__PURE__ */ new Map([[0, 0]]);
|
|
115
|
-
let original = 0;
|
|
116
|
-
let visible = 0;
|
|
117
|
-
for (const character of formatted.text) {
|
|
118
|
-
const rendered = text.startsWith(character, visible) ? character : visibleControls(character);
|
|
119
|
-
original += character.length;
|
|
120
|
-
visible += rendered.length;
|
|
121
|
-
positions.set(original, visible);
|
|
122
|
-
}
|
|
123
|
-
return {
|
|
124
|
-
text,
|
|
125
|
-
spans: formatted.spans.map((span) => ({
|
|
126
|
-
...span,
|
|
127
|
-
from: positions.get(span.from),
|
|
128
|
-
length: positions.get(span.from + span.length) - positions.get(span.from),
|
|
129
|
-
...span.url === void 0 ? {} : { url: visibleControls(span.url) }
|
|
130
|
-
}))
|
|
131
|
-
};
|
|
132
|
-
}, "visibleFormattedText");
|
|
133
|
-
|
|
134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
135
|
-
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
136
|
-
var LINK = /https?:\/\/\S+/i;
|
|
137
|
-
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
138
|
-
var judge = /* @__PURE__ */ __name(({ rules, messages, joined, answerers, service, now, invites }) => {
|
|
139
|
-
const invite = invites ? new RegExp(`${INVITE.source}|${invites.source}`, "i") : INVITE;
|
|
140
|
-
const trusted = new Set(rules.trusted);
|
|
141
|
-
const blocked = /* @__PURE__ */ __name((id, name) => id !== null && rules.blocked.includes(id) || name !== null && rules.blockedNames.some((part) => name.toLocaleLowerCase().includes(part.toLocaleLowerCase())), "blocked");
|
|
142
|
-
const young = /* @__PURE__ */ __name((member) => rules.newAccount.days > 0 && typeof member.registeredAt === "string" && now - Date.parse(member.registeredAt) < rules.newAccount.days * 864e5, "young");
|
|
143
|
-
const found = [];
|
|
144
|
-
const add = /* @__PURE__ */ __name((finding) => {
|
|
145
|
-
if (finding.action === "remove" && found.some((f) => f.action === "remove" && f.personId === finding.personId)) {
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
found.push(finding);
|
|
149
|
-
}, "add");
|
|
150
|
-
for (const member of joined) {
|
|
151
|
-
if (trusted.has(member.id) || answerers.has(member.id))
|
|
152
|
-
continue;
|
|
153
|
-
const person = { kind: "member", personId: member.id, personName: member.name };
|
|
154
|
-
if (blocked(member.id, member.name)) {
|
|
155
|
-
add({ ...person, rule: "blocked", action: rules.blockedPeople === "remove" ? "remove" : "report" });
|
|
156
|
-
} else if (young(member)) {
|
|
157
|
-
add({ ...person, rule: "newAccount", action: rules.newAccount.action });
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
const flooding = floodOf(messages, rules.flood);
|
|
161
|
-
for (const message of messages) {
|
|
162
|
-
const id = message.senderId;
|
|
163
|
-
if (id === null || message.outgoing === true || answerers.has(id) || trusted.has(id))
|
|
164
|
-
continue;
|
|
165
|
-
if (service.has(message.id) || message.attachments.some((attachment) => attachment.kind === "control"))
|
|
166
|
-
continue;
|
|
167
|
-
const base = { kind: "message", personId: id, personName: message.senderName, messageId: message.id };
|
|
168
|
-
const text = message.text;
|
|
169
|
-
const broken2 = [];
|
|
170
|
-
if (blocked(id, message.senderName))
|
|
171
|
-
broken2.push(["blocked", rules.blockedPeople]);
|
|
172
|
-
if (invite.test(text))
|
|
173
|
-
broken2.push(["invites", rules.invites]);
|
|
174
|
-
if (LINK.test(text) || message.attachments.some((attachment) => attachment.kind === "share")) {
|
|
175
|
-
broken2.push(["links", rules.links]);
|
|
176
|
-
}
|
|
177
|
-
if (message.forwardedFrom !== null)
|
|
178
|
-
broken2.push(["forwards", rules.forwards]);
|
|
179
|
-
if (flooding.has(message.id))
|
|
180
|
-
broken2.push(["flood", rules.flood.action]);
|
|
181
|
-
const strongest = broken2.reduce((best, rule) => best === void 0 || STRENGTH[rule[1]] > STRENGTH[best[1]] ? rule : best, void 0);
|
|
182
|
-
if (strongest)
|
|
183
|
-
add({ ...base, rule: strongest[0], action: strongest[1] });
|
|
184
|
-
}
|
|
185
|
-
return found;
|
|
186
|
-
}, "judge");
|
|
187
|
-
var floodOf = /* @__PURE__ */ __name((messages, flood) => {
|
|
188
|
-
const window = flood.minutes * 6e4;
|
|
189
|
-
const over = /* @__PURE__ */ new Set();
|
|
190
|
-
const bySender = /* @__PURE__ */ new Map();
|
|
191
|
-
for (const message of messages) {
|
|
192
|
-
if (message.senderId === null)
|
|
193
|
-
continue;
|
|
194
|
-
const times = bySender.get(message.senderId) ?? [];
|
|
195
|
-
const at = Date.parse(message.timestamp);
|
|
196
|
-
times.push(at);
|
|
197
|
-
bySender.set(message.senderId, times);
|
|
198
|
-
if (times.filter((time) => at - time < window).length > flood.messages)
|
|
199
|
-
over.add(message.id);
|
|
200
|
-
}
|
|
201
|
-
return over;
|
|
202
|
-
}, "floodOf");
|
|
203
|
-
var act = /* @__PURE__ */ __name(async (moderator, findings, options) => {
|
|
204
|
-
const { chatId, rules, allowDangerous, dryRun, maxActions, confirm, command } = options;
|
|
205
|
-
const typed = options.commandFor ?? ((chat, finding) => commandFor(command, chat, finding));
|
|
206
|
-
const rows = [];
|
|
207
|
-
let acted = 0;
|
|
208
|
-
let stopped;
|
|
209
|
-
for (const finding of findings) {
|
|
210
|
-
if (finding.action === "report") {
|
|
211
|
-
rows.push({ ...finding, outcome: "reported" });
|
|
212
|
-
continue;
|
|
213
|
-
}
|
|
214
|
-
const consent = finding.action;
|
|
215
|
-
const level2 = rules.consent[consent];
|
|
216
|
-
const row = /* @__PURE__ */ __name((outcome, reason) => ({
|
|
217
|
-
...finding,
|
|
218
|
-
outcome,
|
|
219
|
-
...reason ? { reason } : {},
|
|
220
|
-
...outcome === "done" || outcome === "reported" ? {} : { command: typed(chatId, finding) }
|
|
221
|
-
}), "row");
|
|
222
|
-
if (level2 === "deny") {
|
|
223
|
-
rows.push(row("forbidden", `consent.${consent} is deny`));
|
|
224
|
-
continue;
|
|
225
|
-
}
|
|
226
|
-
if (level2 === "readonly") {
|
|
227
|
-
rows.push(row("reported", `consent.${consent} is readonly`));
|
|
228
|
-
continue;
|
|
229
|
-
}
|
|
230
|
-
if (dryRun) {
|
|
231
|
-
rows.push(row("planned", "--dry-run"));
|
|
232
|
-
continue;
|
|
233
|
-
}
|
|
234
|
-
if (stopped || acted >= maxActions) {
|
|
235
|
-
rows.push(row("skipped", stopped ?? `over the limit of ${maxActions} actions per check`));
|
|
236
|
-
continue;
|
|
237
|
-
}
|
|
238
|
-
if (level2 === "ask" && !allowDangerous) {
|
|
239
|
-
const yes = confirm ? await confirm(finding) : void 0;
|
|
240
|
-
if (yes === void 0) {
|
|
241
|
-
rows.push(row("planned", `consent.${consent} is ask, and nobody is there to answer \u2014 run with --allow-dangerous`));
|
|
242
|
-
continue;
|
|
243
|
-
}
|
|
244
|
-
if (!yes) {
|
|
245
|
-
rows.push(row("declined", "the answer was no"));
|
|
246
|
-
continue;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
acted += 1;
|
|
250
|
-
try {
|
|
251
|
-
if (finding.action === "delete" && finding.messageId) {
|
|
252
|
-
await moderator.deleteMessage(chatId, finding.messageId);
|
|
253
|
-
} else {
|
|
254
|
-
await moderator.removePerson(chatId, finding.personId);
|
|
255
|
-
}
|
|
256
|
-
rows.push(row("done"));
|
|
257
|
-
} catch (error) {
|
|
258
|
-
const failure = asCliError(error);
|
|
259
|
-
if (failure.code === "rate_limited")
|
|
260
|
-
stopped = failure.message;
|
|
261
|
-
const refused = ["rate_limited", "permission_error", "confirmation_required"].includes(failure.code);
|
|
262
|
-
rows.push(row(refused ? "refused" : "failed", failure.message));
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
return rows;
|
|
266
|
-
}, "act");
|
|
267
|
-
var asCliError = /* @__PURE__ */ __name((error) => error instanceof CliError ? error : new CliError("provider_error", error instanceof Error ? error.message : String(error)), "asCliError");
|
|
268
|
-
var who = /* @__PURE__ */ __name((finding) => finding.personName ?? finding.personId, "who");
|
|
269
|
-
var describe = /* @__PURE__ */ __name((finding) => finding.action === "delete" ? `delete message ${finding.messageId} from ${who(finding)} for everyone (${finding.rule})` : `remove ${who(finding)} from the group (${finding.rule})`, "describe");
|
|
270
|
-
var commandFor = /* @__PURE__ */ __name((command, chatId, finding) => finding.action === "delete" ? `${command} messages delete ${chatId} ${finding.messageId} --for-everyone --allow-dangerous` : finding.action === "remove" ? `${command} chats members remove ${chatId} ${finding.personId}` : "", "commandFor");
|
|
271
|
-
var CHECK_READS = 1e3;
|
|
272
|
-
var PAGE = 100;
|
|
273
|
-
var gather = /* @__PURE__ */ __name(async (adapter, chatId, since) => {
|
|
274
|
-
const notes = [];
|
|
275
|
-
const historyAfter = adapter.historyAfter;
|
|
276
|
-
if (!historyAfter)
|
|
277
|
-
throw new CliError("validation_error", "this messenger cannot read a chat forward from a time");
|
|
278
|
-
const messages = [];
|
|
279
|
-
let more = true;
|
|
280
|
-
while (more && messages.length < CHECK_READS) {
|
|
281
|
-
const last = messages.at(-1);
|
|
282
|
-
const page = await historyAfter.call(adapter, chatId, {
|
|
283
|
-
limit: PAGE,
|
|
284
|
-
after: last ? { id: last.id } : { time: since }
|
|
285
|
-
});
|
|
286
|
-
messages.push(...page.items);
|
|
287
|
-
more = page.hasMore && page.items.length > 0;
|
|
288
|
-
}
|
|
289
|
-
const scanned = adapter.chatEvents ? (await adapter.chatEvents(chatId, { since })).events : [];
|
|
290
|
-
const until = messages.at(-1)?.timestamp ?? null;
|
|
291
|
-
const events = more && until !== null ? scanned.filter((event) => Date.parse(event.timestamp) <= Date.parse(until)) : scanned;
|
|
292
|
-
if (!adapter.chatEvents)
|
|
293
|
-
notes.push("this messenger does not say who joined, so only messages are judged");
|
|
294
|
-
const joinedIds = new Set(events.filter((one) => one.event === "join" || one.event === "add").flatMap((one) => one.people.length > 0 ? one.people.map((person) => person.id) : one.by.id ? [one.by.id] : []));
|
|
295
|
-
const joined = joinedIds.size === 0 || !adapter.members ? [] : (await adapter.members(chatId, { offset: 0 })).items.filter((member) => joinedIds.has(member.id));
|
|
296
|
-
const admins = adapter.admins ? await adapter.admins(chatId) : null;
|
|
297
|
-
if (admins === null)
|
|
298
|
-
notes.push("the group's admins are not known, so only your own messages are exempt");
|
|
299
|
-
return {
|
|
300
|
-
messages,
|
|
301
|
-
joined,
|
|
302
|
-
answerers: new Set(admins ?? []),
|
|
303
|
-
service: new Set(events.map((one) => one.messageId)),
|
|
304
|
-
until,
|
|
305
|
-
more,
|
|
306
|
-
notes
|
|
307
|
-
};
|
|
308
|
-
}, "gather");
|
|
309
|
-
var MAX_ACTIONS = 10;
|
|
310
|
-
var undone = /* @__PURE__ */ __name((row) => ["planned", "skipped", "failed"].includes(row.outcome), "undone");
|
|
311
|
-
var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
312
|
-
const waiting = rows.filter(undone);
|
|
313
|
-
if (waiting.some((row) => row.messageId === void 0))
|
|
314
|
-
return null;
|
|
315
|
-
const times = waiting.map((row) => found.messages.find((message) => message.id === row.messageId)?.timestamp).filter((time) => time !== void 0).map(Date.parse);
|
|
316
|
-
if (times.length === 0)
|
|
317
|
-
return found.until;
|
|
318
|
-
return new Date(Math.min(...times) - 1).toISOString();
|
|
319
|
-
}, "nextPoint");
|
|
320
|
-
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
321
|
-
|
|
322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
323
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
324
|
-
import { join } from "node:path";
|
|
325
|
-
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
326
|
-
var OLD_LEVELS = { forbid: "deny", flag: "ask", confirm: "ask", allow: "allow" };
|
|
327
|
-
var level = pipe(picklist([...LEVELS, ...Object.keys(OLD_LEVELS)]), transform((typed) => OLD_LEVELS[typed] ?? typed));
|
|
328
|
-
var action = picklist(RULE_ACTIONS);
|
|
329
|
-
var personIds = array(pipe(string(), regex(/^-?\d+$/, "a person id is digits")));
|
|
330
|
-
var atLeast = /* @__PURE__ */ __name((min) => pipe(number(), integer(), minValue(min)), "atLeast");
|
|
331
|
-
var groupRules = pipe(strictObject({
|
|
332
|
-
title: nullable(string()),
|
|
333
|
-
trusted: personIds,
|
|
334
|
-
blocked: personIds,
|
|
335
|
-
blockedNames: array(pipe(string(), minLength(1))),
|
|
336
|
-
links: action,
|
|
337
|
-
invites: action,
|
|
338
|
-
forwards: action,
|
|
339
|
-
blockedPeople: action,
|
|
340
|
-
flood: strictObject({ messages: atLeast(1), minutes: atLeast(1), action }),
|
|
341
|
-
/** 0 days turns the rule off. */
|
|
342
|
-
newAccount: strictObject({ days: atLeast(0), action: picklist(["report", "remove"]) }),
|
|
343
|
-
requests: optional(unknown()),
|
|
344
|
-
consent: strictObject({
|
|
345
|
-
delete: level,
|
|
346
|
-
remove: level,
|
|
347
|
-
accept: optional(unknown()),
|
|
348
|
-
decline: optional(unknown())
|
|
349
|
-
})
|
|
350
|
-
}), transform(({ requests: _, consent: { accept: _accept, decline: _decline, ...consent }, ...rules }) => ({
|
|
351
|
-
...rules,
|
|
352
|
-
consent
|
|
353
|
-
})));
|
|
354
|
-
var file = strictObject({
|
|
355
|
-
groups: record(string(), groupRules),
|
|
356
|
-
/** Where each group's next `chats moderate` starts, ISO 8601. */
|
|
357
|
-
checkedUntil: optional(record(string(), string()))
|
|
358
|
-
});
|
|
359
|
-
var defaultRules = /* @__PURE__ */ __name((title) => ({
|
|
360
|
-
title,
|
|
361
|
-
trusted: [],
|
|
362
|
-
blocked: [],
|
|
363
|
-
blockedNames: [],
|
|
364
|
-
links: "report",
|
|
365
|
-
invites: "report",
|
|
366
|
-
forwards: "report",
|
|
367
|
-
blockedPeople: "report",
|
|
368
|
-
flood: { messages: 5, minutes: 1, action: "report" },
|
|
369
|
-
newAccount: { days: 7, action: "report" },
|
|
370
|
-
consent: { delete: "ask", remove: "ask" }
|
|
371
|
-
}), "defaultRules");
|
|
372
|
-
var list = /* @__PURE__ */ __name((value) => value.split(",").map((item) => item.trim()).filter(Boolean), "list");
|
|
373
|
-
var whole = /* @__PURE__ */ __name((value) => /^\d+$/.test(value.trim()) ? Number(value) : Number.NaN, "whole");
|
|
374
|
-
var KEYS = {
|
|
375
|
-
trusted: { help: "person ids, comma-separated; never acted on", parse: list },
|
|
376
|
-
blocked: { help: "person ids, comma-separated", parse: list },
|
|
377
|
-
blockedNames: { help: "parts of a name, comma-separated, any case", parse: list },
|
|
378
|
-
links: { help: RULE_ACTIONS.join("|"), parse: String },
|
|
379
|
-
invites: { help: RULE_ACTIONS.join("|"), parse: String },
|
|
380
|
-
forwards: { help: RULE_ACTIONS.join("|"), parse: String },
|
|
381
|
-
blockedPeople: { help: RULE_ACTIONS.join("|"), parse: String },
|
|
382
|
-
"flood.messages": { help: "a whole number, 1 or more", parse: whole },
|
|
383
|
-
"flood.minutes": { help: "a whole number, 1 or more", parse: whole },
|
|
384
|
-
"flood.action": { help: RULE_ACTIONS.join("|"), parse: String },
|
|
385
|
-
"newAccount.days": { help: "a whole number; 0 turns it off", parse: whole },
|
|
386
|
-
"newAccount.action": { help: "report|remove", parse: String },
|
|
387
|
-
"consent.delete": { help: LEVELS.join("|"), parse: String },
|
|
388
|
-
"consent.remove": { help: LEVELS.join("|"), parse: String }
|
|
389
|
-
};
|
|
390
|
-
var RULE_KEYS = Object.keys(KEYS);
|
|
391
|
-
var moderationPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.moderation.json`), "moderationPathFor");
|
|
392
|
-
var ModerationRules = class {
|
|
393
|
-
static {
|
|
394
|
-
__name(this, "ModerationRules");
|
|
395
|
-
}
|
|
396
|
-
path;
|
|
397
|
-
constructor(path) {
|
|
398
|
-
this.path = path;
|
|
399
|
-
}
|
|
400
|
-
/** `undefined` when this group has no section yet. */
|
|
401
|
-
read(chatId) {
|
|
402
|
-
return this.#file().groups[chatId];
|
|
403
|
-
}
|
|
404
|
-
/** Writes the group's whole section — the defaults first, if it had none — with one key changed. */
|
|
405
|
-
set(chatId, title, key, value) {
|
|
406
|
-
const known = KEYS[key];
|
|
407
|
-
if (!known)
|
|
408
|
-
throw invalid2(`no rule ${key} \u2014 one of: ${RULE_KEYS.join(", ")}`);
|
|
409
|
-
const current = this.read(chatId) ?? defaultRules(title);
|
|
410
|
-
const checked = safeParse(groupRules, assign(current, key, known.parse(value)));
|
|
411
|
-
if (!checked.success)
|
|
412
|
-
throw invalid2(`${key} ${JSON.stringify(value)} is not valid \u2014 ${known.help}`);
|
|
413
|
-
const saved = this.#file();
|
|
414
|
-
this.#write({ ...saved, groups: { ...saved.groups, [chatId]: checked.output } });
|
|
415
|
-
return checked.output;
|
|
416
|
-
}
|
|
417
|
-
/** Puts one key back to its default. */
|
|
418
|
-
unset(chatId, title, key) {
|
|
419
|
-
if (!KEYS[key])
|
|
420
|
-
throw invalid2(`no rule ${key} \u2014 one of: ${RULE_KEYS.join(", ")}`);
|
|
421
|
-
const current = this.read(chatId) ?? defaultRules(title);
|
|
422
|
-
const changed = assign(current, key, lookup(defaultRules(title), key));
|
|
423
|
-
const saved = this.#file();
|
|
424
|
-
this.#write({ ...saved, groups: { ...saved.groups, [chatId]: changed } });
|
|
425
|
-
return changed;
|
|
426
|
-
}
|
|
427
|
-
checkedUntil(chatId) {
|
|
428
|
-
return this.#file().checkedUntil?.[chatId];
|
|
429
|
-
}
|
|
430
|
-
markChecked(chatId, at) {
|
|
431
|
-
const saved = this.#file();
|
|
432
|
-
this.#write({ ...saved, checkedUntil: { ...saved.checkedUntil, [chatId]: at } });
|
|
433
|
-
}
|
|
434
|
-
#file() {
|
|
435
|
-
if (!existsSync(this.path))
|
|
436
|
-
return { groups: {} };
|
|
437
|
-
let parsed;
|
|
438
|
-
try {
|
|
439
|
-
parsed = JSON.parse(readFileSync(this.path, "utf8"));
|
|
440
|
-
} catch (error) {
|
|
441
|
-
throw broken(this.path, error instanceof Error ? error.message : String(error));
|
|
442
|
-
}
|
|
443
|
-
const checked = safeParse(file, parsed);
|
|
444
|
-
if (!checked.success) {
|
|
445
|
-
const problems = checked.issues.map((issue) => `${getDotPath(issue) ?? "file"}: ${issue.message}`);
|
|
446
|
-
throw broken(this.path, problems.join("; "));
|
|
447
|
-
}
|
|
448
|
-
return checked.output;
|
|
449
|
-
}
|
|
450
|
-
#write(content) {
|
|
451
|
-
writeSecurely(this.path, `${JSON.stringify(content, null, 2)}
|
|
452
|
-
`, 384);
|
|
453
|
-
}
|
|
454
|
-
};
|
|
455
|
-
var invalid2 = /* @__PURE__ */ __name((message) => new CliError("validation_error", message), "invalid");
|
|
456
|
-
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the moderation rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
457
|
-
var lookup = /* @__PURE__ */ __name((rules, key) => key.split(".").reduce((value, part) => value[part], rules), "lookup");
|
|
458
|
-
var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
459
|
-
const [head, tail] = key.split(".");
|
|
460
|
-
if (tail === void 0)
|
|
461
|
-
return { ...rules, [head]: value };
|
|
462
|
-
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
463
|
-
}, "assign");
|
|
464
|
-
|
|
465
|
-
export {
|
|
466
|
-
isId,
|
|
467
|
-
foldName,
|
|
468
|
-
pickChat,
|
|
469
|
-
pickPerson,
|
|
470
|
-
validateFormattedText,
|
|
471
|
-
visibleFormattedText,
|
|
472
|
-
judge,
|
|
473
|
-
act,
|
|
474
|
-
describe,
|
|
475
|
-
CHECK_READS,
|
|
476
|
-
gather,
|
|
477
|
-
MAX_ACTIONS,
|
|
478
|
-
nextPoint,
|
|
479
|
-
someUndone,
|
|
480
|
-
defaultRules,
|
|
481
|
-
RULE_KEYS,
|
|
482
|
-
moderationPathFor,
|
|
483
|
-
ModerationRules
|
|
484
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
errorObject,
|
|
5
|
-
mcpFailure,
|
|
6
|
-
reportFailure
|
|
7
|
-
} from "./chunk-QYUHS6DE.js";
|
|
8
|
-
import "./chunk-WQRGA75U.js";
|
|
9
|
-
import "./chunk-BBYD2FA3.js";
|
|
10
|
-
import {
|
|
11
|
-
REASONS
|
|
12
|
-
} from "./chunk-EKFEY3KP.js";
|
|
13
|
-
import {
|
|
14
|
-
interactiveOf
|
|
15
|
-
} from "./chunk-GNI7INK6.js";
|
|
16
|
-
import "./chunk-NPSZPUK6.js";
|
|
17
|
-
import "./chunk-Z47LOJUS.js";
|
|
18
|
-
import "./chunk-HTQTIKWP.js";
|
|
19
|
-
import "./chunk-725OHXKR.js";
|
|
20
|
-
import "./chunk-Q765VPZY.js";
|
|
21
|
-
import "./chunk-PQJYM5ES.js";
|
|
22
|
-
import "./chunk-UR32UWTQ.js";
|
|
23
|
-
import "./chunk-234MHU76.js";
|
|
24
|
-
import "./chunk-ZNZUZGSV.js";
|
|
25
|
-
import "./chunk-NHBUTCNR.js";
|
|
26
|
-
import "./chunk-62EDJKGP.js";
|
|
27
|
-
import "./chunk-HQVJK5E7.js";
|
|
28
|
-
import "./chunk-YKZ4IPLB.js";
|
|
29
|
-
import "./chunk-Y5E2WNWB.js";
|
|
30
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
31
|
-
export {
|
|
32
|
-
REASONS,
|
|
33
|
-
errorObject,
|
|
34
|
-
interactiveOf,
|
|
35
|
-
mcpFailure,
|
|
36
|
-
reportFailure
|
|
37
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
googleApi,
|
|
5
|
-
googleDownload,
|
|
6
|
-
googleUploadRequest
|
|
7
|
-
} from "./chunk-GR5GGZKH.js";
|
|
8
|
-
import {
|
|
9
|
-
apiMethod,
|
|
10
|
-
apiMethods,
|
|
11
|
-
validateApiParams
|
|
12
|
-
} from "./chunk-YVPHJHIL.js";
|
|
13
|
-
import "./chunk-HX7Y2ASG.js";
|
|
14
|
-
import "./chunk-R276546S.js";
|
|
15
|
-
import "./chunk-6DHQTUB2.js";
|
|
16
|
-
import "./chunk-A4UNTWAX.js";
|
|
17
|
-
import "./chunk-DO4PDQY5.js";
|
|
18
|
-
import "./chunk-PSNHPFSK.js";
|
|
19
|
-
import "./chunk-IWFBAWZK.js";
|
|
20
|
-
import "./chunk-SBZB7HMU.js";
|
|
21
|
-
import "./chunk-WQRGA75U.js";
|
|
22
|
-
import "./chunk-RNSP57TC.js";
|
|
23
|
-
import "./chunk-43QVYW3K.js";
|
|
24
|
-
import "./chunk-CB7SBYLO.js";
|
|
25
|
-
import "./chunk-2AUXBJRX.js";
|
|
26
|
-
import "./chunk-NPSZPUK6.js";
|
|
27
|
-
import "./chunk-KYVXMEBC.js";
|
|
28
|
-
import "./chunk-H47W2J6S.js";
|
|
29
|
-
import "./chunk-WUX7AUOQ.js";
|
|
30
|
-
import "./chunk-7SH4JHYW.js";
|
|
31
|
-
import "./chunk-Z47LOJUS.js";
|
|
32
|
-
import "./chunk-W7IK7E4B.js";
|
|
33
|
-
import "./chunk-I7UH5CTA.js";
|
|
34
|
-
import "./chunk-HTQTIKWP.js";
|
|
35
|
-
import "./chunk-5PLJKSG4.js";
|
|
36
|
-
import "./chunk-2623YE5I.js";
|
|
37
|
-
import "./chunk-FDWYPONW.js";
|
|
38
|
-
import "./chunk-PEOCBV2Z.js";
|
|
39
|
-
import "./chunk-725OHXKR.js";
|
|
40
|
-
import "./chunk-NSIFQ5OP.js";
|
|
41
|
-
import "./chunk-LONV6HIK.js";
|
|
42
|
-
import "./chunk-VSOLLTYT.js";
|
|
43
|
-
import "./chunk-Q765VPZY.js";
|
|
44
|
-
import "./chunk-GVCN3GLZ.js";
|
|
45
|
-
import "./chunk-WBTVGFXI.js";
|
|
46
|
-
import "./chunk-7YMDL4JQ.js";
|
|
47
|
-
import "./chunk-DLAFGSTN.js";
|
|
48
|
-
import "./chunk-WLFUBNFX.js";
|
|
49
|
-
import "./chunk-54O62JWP.js";
|
|
50
|
-
import "./chunk-ZDLIO76S.js";
|
|
51
|
-
import "./chunk-PQJYM5ES.js";
|
|
52
|
-
import "./chunk-UR32UWTQ.js";
|
|
53
|
-
import "./chunk-LJAX6YCF.js";
|
|
54
|
-
import "./chunk-VZ2I62HN.js";
|
|
55
|
-
import "./chunk-2UIMEMWU.js";
|
|
56
|
-
import "./chunk-CM7GAXGD.js";
|
|
57
|
-
import "./chunk-5DPV7X27.js";
|
|
58
|
-
import "./chunk-BSSCTWWK.js";
|
|
59
|
-
import "./chunk-IDUNJCFO.js";
|
|
60
|
-
import "./chunk-WQJBAWQP.js";
|
|
61
|
-
import "./chunk-JEOYFKUK.js";
|
|
62
|
-
import "./chunk-234MHU76.js";
|
|
63
|
-
import "./chunk-PDGECM5D.js";
|
|
64
|
-
import "./chunk-ZNZUZGSV.js";
|
|
65
|
-
import "./chunk-NHBUTCNR.js";
|
|
66
|
-
import "./chunk-62EDJKGP.js";
|
|
67
|
-
import "./chunk-7XKAVMCF.js";
|
|
68
|
-
import "./chunk-XOLQSCMF.js";
|
|
69
|
-
import "./chunk-VJZST5RD.js";
|
|
70
|
-
import "./chunk-33NVQGUY.js";
|
|
71
|
-
import "./chunk-HQVJK5E7.js";
|
|
72
|
-
import "./chunk-YKZ4IPLB.js";
|
|
73
|
-
import "./chunk-Y5E2WNWB.js";
|
|
74
|
-
import "./chunk-ALJWBGD5.js";
|
|
75
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
76
|
-
export {
|
|
77
|
-
apiMethod,
|
|
78
|
-
apiMethods,
|
|
79
|
-
googleApi,
|
|
80
|
-
googleDownload,
|
|
81
|
-
googleUploadRequest,
|
|
82
|
-
validateApiParams
|
|
83
|
-
};
|