@wirecat/drive-cli 0.68.0 → 0.70.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/contracts/wirecat.json +14 -13
- package/dist/age.d.ts +0 -36
- package/dist/age.d.ts.map +1 -1
- package/dist/age.js +0 -22
- package/dist/age.js.map +1 -1
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-BU6XUFUP.js → all-profiles-FW3GK3QO.js} +24 -34
- package/dist/bundle/{anthropic-ZP5B7S2Z.js → anthropic-QVKJT3II.js} +8 -8
- package/dist/bundle/{app-server-EB4DH6T7.js → app-server-QU73RD5R.js} +68 -76
- package/dist/bundle/{bun-PWMM6L45.js → bun-5XCD5CBB.js} +2 -2
- package/dist/bundle/{bun-sqlite-6VPR2SVC.js → bun-sqlite-TIGSVNSV.js} +9 -9
- package/dist/bundle/{chunk-7BXVI7XF.js → chunk-2SBC4DVV.js} +4 -4
- package/dist/bundle/{chunk-UFPRP7MG.js → chunk-3AHBZP33.js} +10 -15
- package/dist/bundle/{chunk-QRSPFCRY.js → chunk-3CHW7JGR.js} +17 -17
- package/dist/bundle/chunk-3TCMANIM.js +387 -0
- package/dist/bundle/{chunk-EOC7RHJ2.js → chunk-3UWRAIWA.js} +5 -7
- package/dist/bundle/{chunk-5G2BY4B6.js → chunk-3UZ4OH22.js} +32 -31
- package/dist/bundle/{chunk-UIKVP23D.js → chunk-4WK26MPY.js} +1 -1
- package/dist/bundle/{chunk-WUFZGPXX.js → chunk-54BQWRJL.js} +7 -7
- package/dist/bundle/{chunk-EA2OB75T.js → chunk-54NDYVZA.js} +1 -1
- package/dist/bundle/{chunk-QKY24RWV.js → chunk-5JTB4URG.js} +12 -12
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-66PL7P4C.js} +1 -1
- package/dist/bundle/{chunk-JMZQBRRZ.js → chunk-6BMTW5A6.js} +9 -9
- package/dist/bundle/{chunk-CVAJMRRD.js → chunk-6DPOWBKA.js} +6 -6
- package/dist/bundle/{chunk-YUGTJBV3.js → chunk-7C5KENNU.js} +3 -3
- package/dist/bundle/chunk-7DJNURKV.js +823 -0
- package/dist/bundle/{chunk-5TK2YQCO.js → chunk-7IBENBCK.js} +2 -2
- package/dist/bundle/chunk-7QSRODXM.js +259 -0
- package/dist/bundle/{chunk-HCZYJMBP.js → chunk-ABZ2NYDT.js} +1 -1
- package/dist/bundle/chunk-AV5UKJZM.js +729 -0
- package/dist/bundle/{chunk-IVOG6T6P.js → chunk-BBFXQPKD.js} +3 -3
- package/dist/bundle/{chunk-BXHFJTU5.js → chunk-BBRMDMIR.js} +3 -3
- package/dist/bundle/{chunk-DYLYH7VE.js → chunk-BD2K2ONK.js} +4 -4
- package/dist/bundle/{chunk-AIEMFRBU.js → chunk-BFKFKDPC.js} +1 -1
- package/dist/bundle/{chunk-JZ3MT7IE.js → chunk-BXPC5TFG.js} +2 -2
- package/dist/bundle/chunk-DHX27E5M.js +31 -0
- package/dist/bundle/{chunk-6QR7NKMG.js → chunk-DR57KDAY.js} +109 -5
- package/dist/bundle/{chunk-2VYEGKQ3.js → chunk-DVI72ZQG.js} +1 -1
- package/dist/bundle/{chunk-WGX4DZPW.js → chunk-DVVUJ254.js} +2 -2
- package/dist/bundle/{chunk-PJ3FKBXG.js → chunk-EDO5LZVF.js} +1 -1
- package/dist/bundle/{chunk-QTRYJZL7.js → chunk-EG62WVR2.js} +6 -6
- package/dist/bundle/{chunk-WCNTDETD.js → chunk-F5KJWRF5.js} +98 -6
- package/dist/bundle/{chunk-D4MVEOU2.js → chunk-FADAOLGB.js} +4 -4
- package/dist/bundle/{chunk-FAMXUI2X.js → chunk-FCSHWUMW.js} +5 -5
- package/dist/bundle/{chunk-O7T3WGCV.js → chunk-FN3RXBO7.js} +6 -6
- package/dist/bundle/{chunk-5W65QTYS.js → chunk-FONIFRYI.js} +4 -4
- package/dist/bundle/{chunk-UUQJVKPB.js → chunk-FVTKFIQH.js} +2340 -1436
- package/dist/bundle/{chunk-7A77GYCE.js → chunk-FYPW7NMH.js} +4 -4
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-GA3URWIF.js} +1 -1
- package/dist/bundle/{chunk-GTLXBAJV.js → chunk-GAHIHE4K.js} +3035 -2482
- package/dist/bundle/{chunk-CMWFYZ45.js → chunk-GJZSVSV3.js} +2 -2
- package/dist/bundle/{chunk-QWGEOQHA.js → chunk-GK3BJMGK.js} +1 -1
- package/dist/bundle/{chunk-TI2OANJZ.js → chunk-GPDPEHYX.js} +1 -1
- package/dist/bundle/{chunk-KPKIHJIT.js → chunk-GV5DGHSA.js} +4 -4
- package/dist/bundle/{chunk-JRFKCYMW.js → chunk-HHAZ6DCY.js} +23 -6
- package/dist/bundle/{chunk-ZVQDOKDY.js → chunk-HK225DAG.js} +1 -1
- package/dist/bundle/{chunk-MW46BLWH.js → chunk-HRATXUFH.js} +22 -20
- package/dist/bundle/{chunk-Z5BMYI2V.js → chunk-HWUPU6WX.js} +8 -8
- package/dist/bundle/{chunk-6WAC2LOS.js → chunk-HYXXMSVD.js} +8614 -8597
- package/dist/bundle/{chunk-YYIWPH53.js → chunk-I7YSHUPW.js} +13 -13
- package/dist/bundle/{chunk-MWCPKUU4.js → chunk-IFTX7AQU.js} +5 -5
- package/dist/bundle/{chunk-SOS4U2RF.js → chunk-IGNIUDI3.js} +71 -49
- package/dist/bundle/{chunk-7JKECODO.js → chunk-ILAQIBEO.js} +1 -11
- package/dist/bundle/{chunk-CK2SQ2CE.js → chunk-KSJAFMU5.js} +78 -31
- package/dist/bundle/{chunk-ZSVMZH5O.js → chunk-LINBDWJK.js} +2 -2
- package/dist/bundle/{chunk-43NEDPXB.js → chunk-LMJBQFW6.js} +6 -6
- package/dist/bundle/{chunk-IJCUAKR5.js → chunk-ML3R2UHV.js} +4 -4
- package/dist/bundle/{chunk-PGPHEC2X.js → chunk-MXNQZAJQ.js} +2 -2
- package/dist/bundle/{chunk-RT5NT62B.js → chunk-NP7LJATI.js} +16 -70
- package/dist/bundle/chunk-OY7TNUEC.js +16 -0
- package/dist/bundle/{chunk-74NCZKRW.js → chunk-P77FL6RY.js} +18 -18
- package/dist/bundle/chunk-P7PLKNPX.js +3611 -0
- package/dist/bundle/{chunk-QVJMFZFW.js → chunk-PAPY6Q6H.js} +1 -1
- package/dist/bundle/{chunk-Q6BD6RUH.js → chunk-PN4JYURZ.js} +102 -57
- package/dist/bundle/{chunk-MOKEB656.js → chunk-PR7XD2DI.js} +2 -2
- package/dist/bundle/{chunk-UPCEHSIZ.js → chunk-Q5C6YKAY.js} +21 -16
- package/dist/bundle/{chunk-EXWZCI5G.js → chunk-QBAOIMVB.js} +1 -1
- package/dist/bundle/{chunk-ULNN3LCY.js → chunk-RCTOWLCD.js} +44 -37
- package/dist/bundle/{chunk-7TNQZKRD.js → chunk-REM5WHHQ.js} +77 -76
- package/dist/bundle/{chunk-Y2QVNVHK.js → chunk-RHSBXOQM.js} +1 -1
- package/dist/bundle/{chunk-UYBLNGZ2.js → chunk-RLNZ7NX5.js} +2 -2
- package/dist/bundle/chunk-RQNRYF6D.js +170 -0
- package/dist/bundle/{chunk-PV3AWPHR.js → chunk-SONPLYV7.js} +5 -5
- package/dist/bundle/{chunk-CRIEW4FP.js → chunk-T5D4OGDC.js} +2 -2
- package/dist/bundle/{chunk-MLSXHTUB.js → chunk-TGS5VPJD.js} +1228 -455
- package/dist/bundle/chunk-TNKQDS5A.js +335 -0
- package/dist/bundle/{chunk-DU23ET2O.js → chunk-VVN6GHAZ.js} +60 -81
- package/dist/bundle/{chunk-PWIEOATY.js → chunk-WJK6KTCS.js} +325 -14
- package/dist/bundle/{chunk-U52QE4QV.js → chunk-WWE5GO6G.js} +3 -3
- package/dist/bundle/{chunk-6HFZZ2PW.js → chunk-XOL346TJ.js} +2 -2
- package/dist/bundle/{chunk-ZAIE3G5I.js → chunk-XZBA6FVH.js} +3 -3
- package/dist/bundle/chunk-YCL3SK4T.js +1978 -0
- package/dist/bundle/{chunk-DIZBJLPM.js → chunk-YRUR3E3E.js} +68 -78
- package/dist/bundle/{chunk-EEE4H2PA.js → chunk-YZPE72GE.js} +12 -12
- package/dist/bundle/{chunk-F7KAMSXA.js → chunk-ZCXWV4XO.js} +4 -4
- package/dist/bundle/{chunk-NV75QPML.js → chunk-ZHZYGY5R.js} +4 -4
- package/dist/bundle/{cli-L7P36YUH.js → cli-K4D4DIGQ.js} +137 -88
- package/dist/bundle/command-contract-V3F452QI.js +43 -0
- package/dist/bundle/{command-server-entry-H3VGPOLJ.js → command-server-entry-WREK3QBB.js} +33 -31
- package/dist/bundle/decode-SEETPKBH.js +299 -0
- package/dist/bundle/{dispatch-WBEOHZDV.js → dispatch-SQCEURVK.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-SDZA2SWG.js → echarts-WZ5RKFCX.js} +2 -2
- package/dist/bundle/{embed-WUKOASQG.js → embed-B2UCRZZR.js} +9 -9
- package/dist/bundle/{embedder-UBRAXRDZ.js → embedder-4R6Z7G7L.js} +12 -12
- package/dist/bundle/entry-ORZYRJ5N.js +25 -0
- package/dist/bundle/{failure-X6PSLVSO.js → failure-CYNXH3RQ.js} +4 -4
- package/dist/bundle/first-run-KAKA6KBY.js +31 -0
- package/dist/bundle/first-screen-R645UHRH.js +41 -0
- package/dist/bundle/google-BSO3YB7N.js +45 -0
- package/dist/bundle/{google-api-SQQ4BSNR.js → google-api-SAND2F7L.js} +70 -63
- package/dist/bundle/grants-PLNFYARD.js +118 -0
- package/dist/bundle/{identity-SRL6RSU2.js → identity-JVVGS4U6.js} +6 -6
- package/dist/bundle/{instructions-7T6JJIFS.js → instructions-JSMTSB22.js} +1 -1
- package/dist/bundle/{login-N243GGEE.js → login-6WG3YBDU.js} +78 -71
- package/dist/bundle/{mcp-TDKGDB4V.js → mcp-VFIOZDVY.js} +2 -2
- package/dist/bundle/meeting-combined-SUKMFK3F.js +27 -0
- package/dist/bundle/meeting-model-S4YGKIFI.js +29 -0
- package/dist/bundle/meeting-semantic-5U7JQCFF.js +25 -0
- package/dist/bundle/{node-BZDMUFTW.js → node-VJMVHOWD.js} +2 -2
- package/dist/bundle/{node-sqlite-SZQCCMV2.js → node-sqlite-DCNT3HVE.js} +10 -10
- package/dist/bundle/oauth-KCMNQ3ZP.js +22 -0
- package/dist/bundle/{open-RVTPKDA3.js → open-NFOEHVW7.js} +8 -8
- package/dist/bundle/{openai-6NN63BMH.js → openai-D47WY7EC.js} +32 -30
- package/dist/bundle/{process-756VBE7E.js → process-Q2FRU5VA.js} +1 -1
- package/dist/bundle/{program-B4QBJYB5.js → program-T2AJJQEM.js} +1327 -1329
- package/dist/bundle/{prompt-HGP2DSRW.js → prompt-YJSDABXN.js} +8 -8
- package/dist/bundle/{reasons-KSYP5VDJ.js → reasons-WEHPCSJX.js} +5 -5
- package/dist/bundle/{recognize-26SHB7HI.js → recognize-6OBEIEB3.js} +7 -7
- package/dist/bundle/{remote-Z4PWHZ5N.js → remote-3SL2QJ7T.js} +13 -13
- package/dist/bundle/{rerank-QHJZJK3Q.js → rerank-L6F5SLIB.js} +10 -10
- package/dist/bundle/{serve-MYJW5IEM.js → serve-GYSWIWH4.js} +12 -12
- package/dist/bundle/server-BI46BSRE.js +80 -0
- package/dist/bundle/{server-XFW3V7CR.js → server-GWWP3RIT.js} +62 -53
- package/dist/bundle/{services-IQG2RVTO.js → services-BDQBRXT5.js} +91 -51
- package/dist/bundle/{sqlite-runtime-X4GB5PBV.js → sqlite-runtime-ZSZGAUYB.js} +9 -9
- package/dist/bundle/{start-C6EXYXAL.js → start-BJ275RUK.js} +7 -7
- package/dist/bundle/{state-ATQK2X3W.js → state-HLNGFI2T.js} +9 -9
- package/dist/bundle/{store-QUBUPK6F.js → store-I43KZNJW.js} +35 -26
- package/dist/bundle/{store-MEHEUOJH.js → store-OSRTGYGI.js} +23 -19
- package/dist/bundle/store-maintenance-command-FO7LEVSL.js +72 -0
- package/dist/bundle/tokens-DB7O7QNB.js +118 -0
- package/dist/catalog.d.ts +0 -28
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +0 -82
- package/dist/catalog.js.map +1 -1
- package/dist/commands/catalog.d.ts +3 -8
- package/dist/commands/catalog.d.ts.map +1 -1
- package/dist/commands/catalog.js +36 -109
- package/dist/commands/catalog.js.map +1 -1
- package/dist/commands/context.d.ts +3 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +20 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +30 -72
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/folders.d.ts +1 -1
- package/dist/commands/folders.d.ts.map +1 -1
- package/dist/commands/folders.js +45 -48
- package/dist/commands/folders.js.map +1 -1
- package/dist/commands/knowledge.d.ts +4 -21
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +3 -241
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/commands/mirrors.d.ts +2 -2
- package/dist/commands/mirrors.d.ts.map +1 -1
- package/dist/commands/mirrors.js +46 -202
- package/dist/commands/mirrors.js.map +1 -1
- package/dist/commands/search.d.ts +1 -3
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +20 -42
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +36 -53
- package/dist/commands/sync.js.map +1 -1
- package/dist/contract-overrides.d.ts +0 -2
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +0 -317
- package/dist/contract-overrides.js.map +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.d.ts.map +1 -1
- package/dist/knowledge.js +4 -3
- package/dist/knowledge.js.map +1 -1
- package/dist/list-queries.d.ts +0 -31
- package/dist/list-queries.d.ts.map +1 -1
- package/dist/list-queries.js +0 -36
- package/dist/list-queries.js.map +1 -1
- package/dist/policy.d.ts +1 -1
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +3 -3
- package/dist/policy.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -3
- package/dist/program.js.map +1 -1
- package/dist/provider-json.d.ts.map +1 -1
- package/dist/provider-json.js +5 -5
- package/dist/provider-json.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -10
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-2UHQVRH2.js +0 -1235
- package/dist/bundle/chunk-AXYG2DDY.js +0 -4721
- package/dist/bundle/chunk-J5LXL435.js +0 -1316
- package/dist/bundle/chunk-R5FTCNLJ.js +0 -76
- package/dist/bundle/command-contract-EYFGMKIG.js +0 -41
- package/dist/bundle/decode-JEU6JWCV.js +0 -165
- package/dist/bundle/entry-C4NUQFTF.js +0 -25
- package/dist/bundle/first-run-PKHBS7B4.js +0 -30
- package/dist/bundle/first-screen-QOVOM4BF.js +0 -39
- package/dist/bundle/google-XXHSMTVK.js +0 -45
- package/dist/bundle/grants-2U4JVT6O.js +0 -111
- package/dist/bundle/oauth-CMAFXX6A.js +0 -22
- package/dist/bundle/server-HBZPIHDX.js +0 -74
- package/dist/bundle/store-maintenance-command-33ULVDWY.js +0 -65
- package/dist/bundle/tokens-A2GP4F34.js +0 -111
- package/dist/knowledge-query.d.ts +0 -77
- package/dist/knowledge-query.d.ts.map +0 -1
- package/dist/knowledge-query.js +0 -104
- package/dist/knowledge-query.js.map +0 -1
- package/dist/bundle/{chunk-XWBPP2HX.js → chunk-ZI3YTXSF.js} +0 -0
- package/dist/bundle/{mdast-util-from-markdown-CE73EWJ2.js → mdast-util-from-markdown-FXEPSNER.js} +3 -3
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
__name
|
|
5
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
-
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
8
|
-
import { PassThrough, Writable } from "node:stream";
|
|
9
|
-
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
10
|
-
let rest = "";
|
|
11
|
-
return (chunk) => {
|
|
12
|
-
const lines = (rest + chunk.toString()).split("\n");
|
|
13
|
-
rest = lines.pop() ?? "";
|
|
14
|
-
for (const line of lines) {
|
|
15
|
-
try {
|
|
16
|
-
const message = JSON.parse(line);
|
|
17
|
-
if (message !== null && typeof message === "object")
|
|
18
|
-
onMessage(message);
|
|
19
|
-
} catch {
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}, "lineReader");
|
|
24
|
-
var answeredWire = /* @__PURE__ */ __name((source, sink) => {
|
|
25
|
-
const asked = /* @__PURE__ */ new Set();
|
|
26
|
-
let settle;
|
|
27
|
-
const input = new PassThrough();
|
|
28
|
-
const onData = lineReader(({ id, method }) => {
|
|
29
|
-
if (id !== void 0 && typeof method === "string")
|
|
30
|
-
asked.add(JSON.stringify(id));
|
|
31
|
-
});
|
|
32
|
-
const output = new Writable({
|
|
33
|
-
write: /* @__PURE__ */ __name((chunk, _encoding, done) => {
|
|
34
|
-
noteAnswer(chunk);
|
|
35
|
-
sink.write(chunk, done);
|
|
36
|
-
}, "write")
|
|
37
|
-
});
|
|
38
|
-
const noteAnswer = lineReader(({ id, method }) => {
|
|
39
|
-
if (id === void 0 || method !== void 0)
|
|
40
|
-
return;
|
|
41
|
-
asked.delete(JSON.stringify(id));
|
|
42
|
-
if (asked.size === 0)
|
|
43
|
-
settle?.();
|
|
44
|
-
});
|
|
45
|
-
const forward = /* @__PURE__ */ __name((chunk) => {
|
|
46
|
-
onData(chunk);
|
|
47
|
-
input.write(chunk);
|
|
48
|
-
}, "forward");
|
|
49
|
-
source.on("data", forward);
|
|
50
|
-
const ended = new Promise((resolve) => {
|
|
51
|
-
source.once("end", resolve);
|
|
52
|
-
source.once("close", resolve);
|
|
53
|
-
});
|
|
54
|
-
return {
|
|
55
|
-
input,
|
|
56
|
-
output,
|
|
57
|
-
ended,
|
|
58
|
-
answered: /* @__PURE__ */ __name(() => new Promise((resolve) => {
|
|
59
|
-
if (asked.size === 0)
|
|
60
|
-
resolve();
|
|
61
|
-
else
|
|
62
|
-
settle = resolve;
|
|
63
|
-
}), "answered"),
|
|
64
|
-
/** Lets go of the real stdin, so it no longer holds the process open. */
|
|
65
|
-
release: /* @__PURE__ */ __name(() => {
|
|
66
|
-
source.off("data", forward);
|
|
67
|
-
if (source.listenerCount("data") === 0)
|
|
68
|
-
source.pause();
|
|
69
|
-
input.end();
|
|
70
|
-
}, "release")
|
|
71
|
-
};
|
|
72
|
-
}, "answeredWire");
|
|
73
|
-
|
|
74
|
-
export {
|
|
75
|
-
answeredWire
|
|
76
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
SCHEMA_DIALECT,
|
|
5
|
-
commandContract,
|
|
6
|
-
commandPathOf,
|
|
7
|
-
findCommand,
|
|
8
|
-
outputOf
|
|
9
|
-
} from "./chunk-EOC7RHJ2.js";
|
|
10
|
-
import "./chunk-MLSXHTUB.js";
|
|
11
|
-
import "./chunk-WUFZGPXX.js";
|
|
12
|
-
import "./chunk-J5LXL435.js";
|
|
13
|
-
import "./chunk-7A77GYCE.js";
|
|
14
|
-
import "./chunk-KPKIHJIT.js";
|
|
15
|
-
import "./chunk-MOKEB656.js";
|
|
16
|
-
import "./chunk-UIKVP23D.js";
|
|
17
|
-
import "./chunk-6QR7NKMG.js";
|
|
18
|
-
import "./chunk-IVOG6T6P.js";
|
|
19
|
-
import "./chunk-5W65QTYS.js";
|
|
20
|
-
import "./chunk-AXYG2DDY.js";
|
|
21
|
-
import "./chunk-UPCEHSIZ.js";
|
|
22
|
-
import "./chunk-QWGEOQHA.js";
|
|
23
|
-
import "./chunk-UYBLNGZ2.js";
|
|
24
|
-
import "./chunk-PWIEOATY.js";
|
|
25
|
-
import "./chunk-XWBPP2HX.js";
|
|
26
|
-
import "./chunk-CRIEW4FP.js";
|
|
27
|
-
import "./chunk-MW46BLWH.js";
|
|
28
|
-
import "./chunk-PV3AWPHR.js";
|
|
29
|
-
import "./chunk-Y5E2WNWB.js";
|
|
30
|
-
import "./chunk-HCZYJMBP.js";
|
|
31
|
-
import "./chunk-5TK2YQCO.js";
|
|
32
|
-
import "./chunk-JRFKCYMW.js";
|
|
33
|
-
import "./chunk-EA2OB75T.js";
|
|
34
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
35
|
-
export {
|
|
36
|
-
SCHEMA_DIALECT,
|
|
37
|
-
commandContract,
|
|
38
|
-
commandPathOf,
|
|
39
|
-
findCommand,
|
|
40
|
-
outputOf
|
|
41
|
-
};
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
SAMPLE_RATE,
|
|
5
|
-
decodeOgg
|
|
6
|
-
} from "./chunk-DYLYH7VE.js";
|
|
7
|
-
import "./chunk-MW46BLWH.js";
|
|
8
|
-
import "./chunk-PV3AWPHR.js";
|
|
9
|
-
import {
|
|
10
|
-
importFrom
|
|
11
|
-
} from "./chunk-Y5E2WNWB.js";
|
|
12
|
-
import "./chunk-HCZYJMBP.js";
|
|
13
|
-
import "./chunk-5TK2YQCO.js";
|
|
14
|
-
import "./chunk-JRFKCYMW.js";
|
|
15
|
-
import {
|
|
16
|
-
CliError
|
|
17
|
-
} from "./chunk-EA2OB75T.js";
|
|
18
|
-
import {
|
|
19
|
-
__name
|
|
20
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
21
|
-
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
23
|
-
import { spawn } from "node:child_process";
|
|
24
|
-
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
25
|
-
import { createRequire } from "node:module";
|
|
26
|
-
import { tmpdir } from "node:os";
|
|
27
|
-
import { join } from "node:path";
|
|
28
|
-
import { pathToFileURL } from "node:url";
|
|
29
|
-
var LONGEST_AUDIO_SECONDS = 3600;
|
|
30
|
-
var FFMPEG_TIMEOUT_MS = 12e4;
|
|
31
|
-
var FFMPEG_FORMATS = "mov,mp4,m4a,3gp,3g2,mj2,aac,mp3,wav,amr,caf,aiff,flac,ogg,matroska,webm,asf";
|
|
32
|
-
var text = /* @__PURE__ */ __name((bytes, from, length) => String.fromCharCode(...bytes.subarray(from, from + length)), "text");
|
|
33
|
-
var contains = /* @__PURE__ */ __name((bytes, needle, within) => Buffer.from(bytes.buffer, bytes.byteOffset, Math.min(bytes.length, within)).includes(needle, 0, "latin1"), "contains");
|
|
34
|
-
var formatOf = /* @__PURE__ */ __name((bytes) => {
|
|
35
|
-
if (text(bytes, 0, 4) === "OggS") {
|
|
36
|
-
if (contains(bytes, "OpusHead", 128))
|
|
37
|
-
return "opus";
|
|
38
|
-
if (contains(bytes, "vorbis", 128))
|
|
39
|
-
return "vorbis";
|
|
40
|
-
return "other";
|
|
41
|
-
}
|
|
42
|
-
if (text(bytes, 0, 4) === "fLaC")
|
|
43
|
-
return "flac";
|
|
44
|
-
const frame = bytes[0] === 255 && ((bytes[1] ?? 0) & 224) === 224 && ((bytes[1] ?? 0) >> 1 & 3) !== 0;
|
|
45
|
-
if (text(bytes, 0, 3) === "ID3" || frame)
|
|
46
|
-
return "mp3";
|
|
47
|
-
return "other";
|
|
48
|
-
}, "formatOf");
|
|
49
|
-
var everyChannel = /* @__PURE__ */ __name((decoded) => {
|
|
50
|
-
if (!decoded.channelData[0] || decoded.samplesDecoded === 0)
|
|
51
|
-
throw new CliError("validation_error", "no audio in that file");
|
|
52
|
-
return decoded.channelData.map((samples) => ({ samples, rate: decoded.sampleRate }));
|
|
53
|
-
}, "everyChannel");
|
|
54
|
-
var load = /* @__PURE__ */ __name((name) => importFrom(new URL("speech/decode.js", import.meta.resolve("@wirecat/cli-core")).href, pathToFileURL(createRequire(new URL("speech/decode.js", import.meta.resolve("@wirecat/cli-core")).href).resolve(name)).href), "load");
|
|
55
|
-
var decodeVorbis = /* @__PURE__ */ __name(async (bytes) => {
|
|
56
|
-
const { OggVorbisDecoder } = await load("@wasm-audio-decoders/ogg-vorbis");
|
|
57
|
-
const decoder = new OggVorbisDecoder();
|
|
58
|
-
await decoder.ready;
|
|
59
|
-
try {
|
|
60
|
-
return everyChannel(await decoder.decodeFile(bytes));
|
|
61
|
-
} finally {
|
|
62
|
-
decoder.free();
|
|
63
|
-
}
|
|
64
|
-
}, "decodeVorbis");
|
|
65
|
-
var decodeFlac = /* @__PURE__ */ __name(async (bytes) => {
|
|
66
|
-
const { FLACDecoder } = await load("@wasm-audio-decoders/flac");
|
|
67
|
-
const decoder = new FLACDecoder();
|
|
68
|
-
await decoder.ready;
|
|
69
|
-
try {
|
|
70
|
-
return everyChannel(await decoder.decodeFile(bytes));
|
|
71
|
-
} finally {
|
|
72
|
-
decoder.free();
|
|
73
|
-
}
|
|
74
|
-
}, "decodeFlac");
|
|
75
|
-
var decodeMp3 = /* @__PURE__ */ __name(async (bytes) => {
|
|
76
|
-
const { MPEGDecoder } = await load("mpg123-decoder");
|
|
77
|
-
const decoder = new MPEGDecoder();
|
|
78
|
-
await decoder.ready;
|
|
79
|
-
try {
|
|
80
|
-
return everyChannel(decoder.decode(bytes));
|
|
81
|
-
} finally {
|
|
82
|
-
decoder.free();
|
|
83
|
-
}
|
|
84
|
-
}, "decodeMp3");
|
|
85
|
-
var runFfmpeg = /* @__PURE__ */ __name(async (bytes) => {
|
|
86
|
-
const directory = await mkdtemp(join(tmpdir(), "wirecat-audio-"));
|
|
87
|
-
try {
|
|
88
|
-
const input = join(directory, "audio");
|
|
89
|
-
await writeFile(input, bytes, { mode: 384 });
|
|
90
|
-
const largest = LONGEST_AUDIO_SECONDS * SAMPLE_RATE * 4;
|
|
91
|
-
const output = await new Promise((resolve, reject) => {
|
|
92
|
-
const child = spawn("ffmpeg", [
|
|
93
|
-
"-nostdin",
|
|
94
|
-
"-hide_banner",
|
|
95
|
-
"-loglevel",
|
|
96
|
-
"error",
|
|
97
|
-
"-protocol_whitelist",
|
|
98
|
-
"file",
|
|
99
|
-
"-format_whitelist",
|
|
100
|
-
FFMPEG_FORMATS,
|
|
101
|
-
"-i",
|
|
102
|
-
input,
|
|
103
|
-
"-vn",
|
|
104
|
-
"-ac",
|
|
105
|
-
"1",
|
|
106
|
-
"-ar",
|
|
107
|
-
String(SAMPLE_RATE),
|
|
108
|
-
"-f",
|
|
109
|
-
"f32le",
|
|
110
|
-
"pipe:1"
|
|
111
|
-
], { stdio: ["ignore", "pipe", "pipe"], timeout: FFMPEG_TIMEOUT_MS });
|
|
112
|
-
const chunks = [];
|
|
113
|
-
let size = 0;
|
|
114
|
-
let errors = "";
|
|
115
|
-
child.stdout.on("data", (chunk) => {
|
|
116
|
-
size += chunk.length;
|
|
117
|
-
if (size > largest)
|
|
118
|
-
child.kill();
|
|
119
|
-
else
|
|
120
|
-
chunks.push(chunk);
|
|
121
|
-
});
|
|
122
|
-
child.stderr.on("data", (chunk) => {
|
|
123
|
-
errors = (errors + chunk.toString()).slice(-500);
|
|
124
|
-
});
|
|
125
|
-
child.on("error", (error) => reject(error.code === "ENOENT" ? new CliError("validation_error", "only ffmpeg reads this audio format, and ffmpeg is not installed") : error));
|
|
126
|
-
child.on("close", (code) => {
|
|
127
|
-
if (size > largest)
|
|
128
|
-
reject(new CliError("validation_error", `the audio is longer than ${LONGEST_AUDIO_SECONDS / 60} minutes`));
|
|
129
|
-
else if (code === 0)
|
|
130
|
-
resolve(Buffer.concat(chunks));
|
|
131
|
-
else
|
|
132
|
-
reject(new CliError("validation_error", `ffmpeg could not read the audio: ${errors.trim() || code}`));
|
|
133
|
-
});
|
|
134
|
-
});
|
|
135
|
-
const samples = new Float32Array(Math.floor(output.length / 4));
|
|
136
|
-
Buffer.from(samples.buffer).set(output.subarray(0, samples.length * 4));
|
|
137
|
-
return { samples, rate: SAMPLE_RATE };
|
|
138
|
-
} finally {
|
|
139
|
-
await rm(directory, { recursive: true, force: true });
|
|
140
|
-
}
|
|
141
|
-
}, "runFfmpeg");
|
|
142
|
-
var BUNDLED = {
|
|
143
|
-
opus: decodeOgg,
|
|
144
|
-
vorbis: decodeVorbis,
|
|
145
|
-
flac: decodeFlac,
|
|
146
|
-
mp3: decodeMp3
|
|
147
|
-
};
|
|
148
|
-
var tooLong = /* @__PURE__ */ __name((pcm) => pcm.samples.length / pcm.rate > LONGEST_AUDIO_SECONDS, "tooLong");
|
|
149
|
-
var decodeChannels = /* @__PURE__ */ __name(async (bytes, ffmpeg = runFfmpeg) => {
|
|
150
|
-
const format = formatOf(bytes);
|
|
151
|
-
const decoded = format === "other" ? { channels: [await ffmpeg(bytes)], mixed: true } : await BUNDLED[format](bytes).then((channels) => ({ channels, mixed: false }), (error) => ffmpeg(bytes).then((pcm) => ({ channels: [pcm], mixed: true }), () => {
|
|
152
|
-
throw error;
|
|
153
|
-
}));
|
|
154
|
-
if (decoded.channels.some(tooLong))
|
|
155
|
-
throw new CliError("validation_error", `the audio is longer than ${LONGEST_AUDIO_SECONDS / 60} minutes`);
|
|
156
|
-
return decoded;
|
|
157
|
-
}, "decodeChannels");
|
|
158
|
-
var decodeAudio = /* @__PURE__ */ __name(async (bytes, ffmpeg = runFfmpeg) => (await decodeChannels(bytes, ffmpeg)).channels[0], "decodeAudio");
|
|
159
|
-
export {
|
|
160
|
-
LONGEST_AUDIO_SECONDS,
|
|
161
|
-
decodeAudio,
|
|
162
|
-
decodeChannels,
|
|
163
|
-
formatOf,
|
|
164
|
-
runFfmpeg
|
|
165
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
firstRunAt,
|
|
5
|
-
openBrowser,
|
|
6
|
-
startCli
|
|
7
|
-
} from "./chunk-EEE4H2PA.js";
|
|
8
|
-
import "./chunk-2VYEGKQ3.js";
|
|
9
|
-
import "./chunk-ZSVMZH5O.js";
|
|
10
|
-
import "./chunk-MOKEB656.js";
|
|
11
|
-
import "./chunk-CVAJMRRD.js";
|
|
12
|
-
import "./chunk-ZVQDOKDY.js";
|
|
13
|
-
import "./chunk-MW46BLWH.js";
|
|
14
|
-
import "./chunk-PV3AWPHR.js";
|
|
15
|
-
import "./chunk-Y5E2WNWB.js";
|
|
16
|
-
import "./chunk-HCZYJMBP.js";
|
|
17
|
-
import "./chunk-5TK2YQCO.js";
|
|
18
|
-
import "./chunk-JRFKCYMW.js";
|
|
19
|
-
import "./chunk-EA2OB75T.js";
|
|
20
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
21
|
-
export {
|
|
22
|
-
firstRunAt,
|
|
23
|
-
openBrowser,
|
|
24
|
-
startCli
|
|
25
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
askSetupQuestions,
|
|
5
|
-
asksAtStart,
|
|
6
|
-
setupAtStart,
|
|
7
|
-
systemLanguage
|
|
8
|
-
} from "./chunk-QKY24RWV.js";
|
|
9
|
-
import "./chunk-D4MVEOU2.js";
|
|
10
|
-
import "./chunk-FIVFP53N.js";
|
|
11
|
-
import "./chunk-KPKIHJIT.js";
|
|
12
|
-
import "./chunk-UFPRP7MG.js";
|
|
13
|
-
import "./chunk-PWIEOATY.js";
|
|
14
|
-
import "./chunk-D72URWJE.js";
|
|
15
|
-
import "./chunk-M4OP5ASJ.js";
|
|
16
|
-
import "./chunk-CRIEW4FP.js";
|
|
17
|
-
import "./chunk-MW46BLWH.js";
|
|
18
|
-
import "./chunk-PV3AWPHR.js";
|
|
19
|
-
import "./chunk-Y5E2WNWB.js";
|
|
20
|
-
import "./chunk-HCZYJMBP.js";
|
|
21
|
-
import "./chunk-5TK2YQCO.js";
|
|
22
|
-
import "./chunk-JRFKCYMW.js";
|
|
23
|
-
import "./chunk-EA2OB75T.js";
|
|
24
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
25
|
-
export {
|
|
26
|
-
askSetupQuestions,
|
|
27
|
-
asksAtStart,
|
|
28
|
-
setupAtStart,
|
|
29
|
-
systemLanguage
|
|
30
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
WIRECAT_TOOLS,
|
|
5
|
-
firstScreen,
|
|
6
|
-
installHelp
|
|
7
|
-
} from "./chunk-QTRYJZL7.js";
|
|
8
|
-
import "./chunk-HTQTIKWP.js";
|
|
9
|
-
import "./chunk-EOC7RHJ2.js";
|
|
10
|
-
import "./chunk-MLSXHTUB.js";
|
|
11
|
-
import "./chunk-WUFZGPXX.js";
|
|
12
|
-
import "./chunk-J5LXL435.js";
|
|
13
|
-
import "./chunk-7A77GYCE.js";
|
|
14
|
-
import "./chunk-KPKIHJIT.js";
|
|
15
|
-
import "./chunk-MOKEB656.js";
|
|
16
|
-
import "./chunk-UIKVP23D.js";
|
|
17
|
-
import "./chunk-6QR7NKMG.js";
|
|
18
|
-
import "./chunk-IVOG6T6P.js";
|
|
19
|
-
import "./chunk-5W65QTYS.js";
|
|
20
|
-
import "./chunk-AXYG2DDY.js";
|
|
21
|
-
import "./chunk-UPCEHSIZ.js";
|
|
22
|
-
import "./chunk-QWGEOQHA.js";
|
|
23
|
-
import "./chunk-UYBLNGZ2.js";
|
|
24
|
-
import "./chunk-PWIEOATY.js";
|
|
25
|
-
import "./chunk-XWBPP2HX.js";
|
|
26
|
-
import "./chunk-CRIEW4FP.js";
|
|
27
|
-
import "./chunk-MW46BLWH.js";
|
|
28
|
-
import "./chunk-PV3AWPHR.js";
|
|
29
|
-
import "./chunk-Y5E2WNWB.js";
|
|
30
|
-
import "./chunk-HCZYJMBP.js";
|
|
31
|
-
import "./chunk-5TK2YQCO.js";
|
|
32
|
-
import "./chunk-JRFKCYMW.js";
|
|
33
|
-
import "./chunk-EA2OB75T.js";
|
|
34
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
35
|
-
export {
|
|
36
|
-
WIRECAT_TOOLS,
|
|
37
|
-
firstScreen,
|
|
38
|
-
installHelp
|
|
39
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
googleSource,
|
|
5
|
-
metadataOf,
|
|
6
|
-
readFile,
|
|
7
|
-
userOf
|
|
8
|
-
} from "./chunk-43NEDPXB.js";
|
|
9
|
-
import {
|
|
10
|
-
MAX_ENTRIES,
|
|
11
|
-
supported,
|
|
12
|
-
tooManyEntries
|
|
13
|
-
} from "./chunk-JZ3MT7IE.js";
|
|
14
|
-
import "./chunk-DU23ET2O.js";
|
|
15
|
-
import "./chunk-Y2QVNVHK.js";
|
|
16
|
-
import "./chunk-Z5BMYI2V.js";
|
|
17
|
-
import "./chunk-Q6BD6RUH.js";
|
|
18
|
-
import "./chunk-F7KAMSXA.js";
|
|
19
|
-
import "./chunk-O7T3WGCV.js";
|
|
20
|
-
import "./chunk-5DPV7X27.js";
|
|
21
|
-
import "./chunk-7A77GYCE.js";
|
|
22
|
-
import "./chunk-MOKEB656.js";
|
|
23
|
-
import "./chunk-6QR7NKMG.js";
|
|
24
|
-
import "./chunk-BXHFJTU5.js";
|
|
25
|
-
import "./chunk-UPCEHSIZ.js";
|
|
26
|
-
import "./chunk-UYBLNGZ2.js";
|
|
27
|
-
import "./chunk-PWIEOATY.js";
|
|
28
|
-
import "./chunk-CRIEW4FP.js";
|
|
29
|
-
import "./chunk-MW46BLWH.js";
|
|
30
|
-
import "./chunk-PV3AWPHR.js";
|
|
31
|
-
import "./chunk-Y5E2WNWB.js";
|
|
32
|
-
import "./chunk-HCZYJMBP.js";
|
|
33
|
-
import "./chunk-5TK2YQCO.js";
|
|
34
|
-
import "./chunk-JRFKCYMW.js";
|
|
35
|
-
import "./chunk-EA2OB75T.js";
|
|
36
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
37
|
-
export {
|
|
38
|
-
MAX_ENTRIES,
|
|
39
|
-
googleSource,
|
|
40
|
-
metadataOf,
|
|
41
|
-
readFile,
|
|
42
|
-
supported,
|
|
43
|
-
tooManyEntries,
|
|
44
|
-
userOf
|
|
45
|
-
};
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
covers,
|
|
5
|
-
grantedScopes
|
|
6
|
-
} from "./chunk-74NCZKRW.js";
|
|
7
|
-
import {
|
|
8
|
-
GOOGLE_WRITE
|
|
9
|
-
} from "./chunk-YUGTJBV3.js";
|
|
10
|
-
import "./chunk-RT5NT62B.js";
|
|
11
|
-
import "./chunk-DU23ET2O.js";
|
|
12
|
-
import {
|
|
13
|
-
apiMethod
|
|
14
|
-
} from "./chunk-7BXVI7XF.js";
|
|
15
|
-
import {
|
|
16
|
-
READ_SCOPE,
|
|
17
|
-
WRITE_SCOPE
|
|
18
|
-
} from "./chunk-NYECVHFH.js";
|
|
19
|
-
import "./chunk-Y2QVNVHK.js";
|
|
20
|
-
import "./chunk-UUQJVKPB.js";
|
|
21
|
-
import "./chunk-EXWZCI5G.js";
|
|
22
|
-
import "./chunk-TI2OANJZ.js";
|
|
23
|
-
import "./chunk-ULNN3LCY.js";
|
|
24
|
-
import "./chunk-CK2SQ2CE.js";
|
|
25
|
-
import "./chunk-7TNQZKRD.js";
|
|
26
|
-
import "./chunk-Z5BMYI2V.js";
|
|
27
|
-
import "./chunk-5G2BY4B6.js";
|
|
28
|
-
import "./chunk-2UHQVRH2.js";
|
|
29
|
-
import "./chunk-GTLXBAJV.js";
|
|
30
|
-
import "./chunk-Q6BD6RUH.js";
|
|
31
|
-
import "./chunk-YYIWPH53.js";
|
|
32
|
-
import "./chunk-QTRYJZL7.js";
|
|
33
|
-
import "./chunk-HTQTIKWP.js";
|
|
34
|
-
import "./chunk-QKY24RWV.js";
|
|
35
|
-
import "./chunk-D4MVEOU2.js";
|
|
36
|
-
import "./chunk-FIVFP53N.js";
|
|
37
|
-
import "./chunk-EEE4H2PA.js";
|
|
38
|
-
import "./chunk-NV75QPML.js";
|
|
39
|
-
import "./chunk-U52QE4QV.js";
|
|
40
|
-
import "./chunk-F7KAMSXA.js";
|
|
41
|
-
import "./chunk-FAMXUI2X.js";
|
|
42
|
-
import "./chunk-O7T3WGCV.js";
|
|
43
|
-
import "./chunk-QRSPFCRY.js";
|
|
44
|
-
import "./chunk-MWCPKUU4.js";
|
|
45
|
-
import "./chunk-5DPV7X27.js";
|
|
46
|
-
import "./chunk-JMZQBRRZ.js";
|
|
47
|
-
import "./chunk-PJ3FKBXG.js";
|
|
48
|
-
import "./chunk-2VYEGKQ3.js";
|
|
49
|
-
import "./chunk-ZSVMZH5O.js";
|
|
50
|
-
import "./chunk-EOC7RHJ2.js";
|
|
51
|
-
import {
|
|
52
|
-
describeProgram,
|
|
53
|
-
flatten
|
|
54
|
-
} from "./chunk-MLSXHTUB.js";
|
|
55
|
-
import "./chunk-WUFZGPXX.js";
|
|
56
|
-
import "./chunk-J5LXL435.js";
|
|
57
|
-
import "./chunk-7A77GYCE.js";
|
|
58
|
-
import "./chunk-KPKIHJIT.js";
|
|
59
|
-
import "./chunk-MOKEB656.js";
|
|
60
|
-
import "./chunk-UIKVP23D.js";
|
|
61
|
-
import "./chunk-6QR7NKMG.js";
|
|
62
|
-
import "./chunk-IVOG6T6P.js";
|
|
63
|
-
import "./chunk-5W65QTYS.js";
|
|
64
|
-
import "./chunk-ZAIE3G5I.js";
|
|
65
|
-
import "./chunk-PGPHEC2X.js";
|
|
66
|
-
import "./chunk-6WAC2LOS.js";
|
|
67
|
-
import "./chunk-BXHFJTU5.js";
|
|
68
|
-
import "./chunk-UFPRP7MG.js";
|
|
69
|
-
import "./chunk-CVAJMRRD.js";
|
|
70
|
-
import "./chunk-AXYG2DDY.js";
|
|
71
|
-
import "./chunk-UPCEHSIZ.js";
|
|
72
|
-
import "./chunk-QWGEOQHA.js";
|
|
73
|
-
import "./chunk-UYBLNGZ2.js";
|
|
74
|
-
import "./chunk-PWIEOATY.js";
|
|
75
|
-
import "./chunk-QVJMFZFW.js";
|
|
76
|
-
import "./chunk-D72URWJE.js";
|
|
77
|
-
import "./chunk-M4OP5ASJ.js";
|
|
78
|
-
import "./chunk-6HFZZ2PW.js";
|
|
79
|
-
import "./chunk-7JKECODO.js";
|
|
80
|
-
import "./chunk-XWBPP2HX.js";
|
|
81
|
-
import "./chunk-ZVQDOKDY.js";
|
|
82
|
-
import "./chunk-CRIEW4FP.js";
|
|
83
|
-
import "./chunk-MW46BLWH.js";
|
|
84
|
-
import "./chunk-PV3AWPHR.js";
|
|
85
|
-
import "./chunk-Y5E2WNWB.js";
|
|
86
|
-
import "./chunk-HCZYJMBP.js";
|
|
87
|
-
import "./chunk-5TK2YQCO.js";
|
|
88
|
-
import "./chunk-JRFKCYMW.js";
|
|
89
|
-
import "./chunk-EA2OB75T.js";
|
|
90
|
-
import {
|
|
91
|
-
__name
|
|
92
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
93
|
-
|
|
94
|
-
// dist/grants.js
|
|
95
|
-
var requiredScope = /* @__PURE__ */ __name((command) => command.api_operation ? apiMethod(command.api_operation).scope : command.effects?.remote === GOOGLE_WRITE.remote && command.effects.local === GOOGLE_WRITE.local ? WRITE_SCOPE : void 0, "requiredScope");
|
|
96
|
-
var grantAvailability = /* @__PURE__ */ __name((program, env, keyring) => {
|
|
97
|
-
const commands = new Map(flatten(describeProgram(program)).map((info) => [info.path.join(" "), info]));
|
|
98
|
-
return (path, profile) => {
|
|
99
|
-
const command = commands.get(path.join(" "));
|
|
100
|
-
const required = command && requiredScope(command);
|
|
101
|
-
if (!required || required === READ_SCOPE)
|
|
102
|
-
return void 0;
|
|
103
|
-
const granted = grantedScopes(env, profile, keyring);
|
|
104
|
-
if (!granted || covers(granted, required))
|
|
105
|
-
return void 0;
|
|
106
|
-
return { available: false, reason: `the OAuth grant needs ${required}`, permission: "oauth.scope" };
|
|
107
|
-
};
|
|
108
|
-
}, "grantAvailability");
|
|
109
|
-
export {
|
|
110
|
-
grantAvailability
|
|
111
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
ownerLogin,
|
|
5
|
-
revokeAll
|
|
6
|
-
} from "./chunk-WGX4DZPW.js";
|
|
7
|
-
import "./chunk-5D4AEUVA.js";
|
|
8
|
-
import "./chunk-NV75QPML.js";
|
|
9
|
-
import "./chunk-U52QE4QV.js";
|
|
10
|
-
import "./chunk-UIKVP23D.js";
|
|
11
|
-
import "./chunk-MW46BLWH.js";
|
|
12
|
-
import "./chunk-PV3AWPHR.js";
|
|
13
|
-
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-HCZYJMBP.js";
|
|
15
|
-
import "./chunk-5TK2YQCO.js";
|
|
16
|
-
import "./chunk-JRFKCYMW.js";
|
|
17
|
-
import "./chunk-EA2OB75T.js";
|
|
18
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
19
|
-
export {
|
|
20
|
-
ownerLogin,
|
|
21
|
-
revokeAll
|
|
22
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
PER_RUN,
|
|
5
|
-
createServer,
|
|
6
|
-
envelope,
|
|
7
|
-
serveOverHttpUntilStopped,
|
|
8
|
-
serveOverStdio
|
|
9
|
-
} from "./chunk-DIZBJLPM.js";
|
|
10
|
-
import "./chunk-SOS4U2RF.js";
|
|
11
|
-
import "./chunk-ULNN3LCY.js";
|
|
12
|
-
import "./chunk-CK2SQ2CE.js";
|
|
13
|
-
import "./chunk-AIEMFRBU.js";
|
|
14
|
-
import "./chunk-R5FTCNLJ.js";
|
|
15
|
-
import "./chunk-WCNTDETD.js";
|
|
16
|
-
import "./chunk-5D4AEUVA.js";
|
|
17
|
-
import "./chunk-5G2BY4B6.js";
|
|
18
|
-
import "./chunk-2UHQVRH2.js";
|
|
19
|
-
import "./chunk-GTLXBAJV.js";
|
|
20
|
-
import "./chunk-Q6BD6RUH.js";
|
|
21
|
-
import "./chunk-YYIWPH53.js";
|
|
22
|
-
import "./chunk-D4MVEOU2.js";
|
|
23
|
-
import "./chunk-FIVFP53N.js";
|
|
24
|
-
import "./chunk-NV75QPML.js";
|
|
25
|
-
import "./chunk-U52QE4QV.js";
|
|
26
|
-
import "./chunk-F7KAMSXA.js";
|
|
27
|
-
import "./chunk-FAMXUI2X.js";
|
|
28
|
-
import "./chunk-O7T3WGCV.js";
|
|
29
|
-
import "./chunk-QRSPFCRY.js";
|
|
30
|
-
import "./chunk-MWCPKUU4.js";
|
|
31
|
-
import "./chunk-5DPV7X27.js";
|
|
32
|
-
import "./chunk-PJ3FKBXG.js";
|
|
33
|
-
import "./chunk-EOC7RHJ2.js";
|
|
34
|
-
import "./chunk-MLSXHTUB.js";
|
|
35
|
-
import "./chunk-WUFZGPXX.js";
|
|
36
|
-
import "./chunk-J5LXL435.js";
|
|
37
|
-
import "./chunk-7A77GYCE.js";
|
|
38
|
-
import "./chunk-KPKIHJIT.js";
|
|
39
|
-
import "./chunk-MOKEB656.js";
|
|
40
|
-
import "./chunk-UIKVP23D.js";
|
|
41
|
-
import "./chunk-6QR7NKMG.js";
|
|
42
|
-
import "./chunk-IVOG6T6P.js";
|
|
43
|
-
import "./chunk-5W65QTYS.js";
|
|
44
|
-
import "./chunk-PGPHEC2X.js";
|
|
45
|
-
import "./chunk-6WAC2LOS.js";
|
|
46
|
-
import "./chunk-BXHFJTU5.js";
|
|
47
|
-
import "./chunk-UFPRP7MG.js";
|
|
48
|
-
import "./chunk-CVAJMRRD.js";
|
|
49
|
-
import "./chunk-AXYG2DDY.js";
|
|
50
|
-
import "./chunk-UPCEHSIZ.js";
|
|
51
|
-
import "./chunk-QWGEOQHA.js";
|
|
52
|
-
import "./chunk-UYBLNGZ2.js";
|
|
53
|
-
import "./chunk-PWIEOATY.js";
|
|
54
|
-
import "./chunk-QVJMFZFW.js";
|
|
55
|
-
import "./chunk-D72URWJE.js";
|
|
56
|
-
import "./chunk-M4OP5ASJ.js";
|
|
57
|
-
import "./chunk-XWBPP2HX.js";
|
|
58
|
-
import "./chunk-ZVQDOKDY.js";
|
|
59
|
-
import "./chunk-CRIEW4FP.js";
|
|
60
|
-
import "./chunk-MW46BLWH.js";
|
|
61
|
-
import "./chunk-PV3AWPHR.js";
|
|
62
|
-
import "./chunk-Y5E2WNWB.js";
|
|
63
|
-
import "./chunk-HCZYJMBP.js";
|
|
64
|
-
import "./chunk-5TK2YQCO.js";
|
|
65
|
-
import "./chunk-JRFKCYMW.js";
|
|
66
|
-
import "./chunk-EA2OB75T.js";
|
|
67
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
68
|
-
export {
|
|
69
|
-
PER_RUN,
|
|
70
|
-
createServer,
|
|
71
|
-
envelope,
|
|
72
|
-
serveOverHttpUntilStopped,
|
|
73
|
-
serveOverStdio
|
|
74
|
-
};
|