@wirecat/drive-cli 0.53.0 → 0.54.1
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/bundle/{all-profiles-WRN35CUF.js → all-profiles-I5KJKZPF.js} +9 -9
- package/dist/bundle/{anthropic-DZASXWG3.js → anthropic-DPM7BRKX.js} +5 -5
- package/dist/bundle/{app-server-4VHT7QZN.js → app-server-FTGLOZ2K.js} +46 -46
- package/dist/bundle/{bun-7SYKSCLA.js → bun-XRO6XJHQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-2GOM5PM3.js → bun-sqlite-7JJX6OUT.js} +4 -4
- package/dist/bundle/{chunk-54BYJQ77.js → chunk-2DZMGPUC.js} +25 -25
- package/dist/bundle/{chunk-WJRJBQIM.js → chunk-2KARCTUU.js} +549 -288
- package/dist/bundle/{chunk-PSNHPFSK.js → chunk-2LLNPNMB.js} +1 -1
- package/dist/bundle/{chunk-EKFEY3KP.js → chunk-2OGANEKA.js} +1 -1
- package/dist/bundle/{chunk-VTWADVEQ.js → chunk-3K4H2DTA.js} +2 -2
- package/dist/bundle/{chunk-UFWK3L5Z.js → chunk-4I7EBJJV.js} +6 -6
- package/dist/bundle/{chunk-2PVDFLJJ.js → chunk-4LZFESHQ.js} +4 -2
- package/dist/bundle/{chunk-LJAX6YCF.js → chunk-4XRLPQ3N.js} +2 -2
- package/dist/bundle/{chunk-E6XDFMRZ.js → chunk-5DEEBWDI.js} +32 -32
- package/dist/bundle/{chunk-RNIHKIQP.js → chunk-67A2YFAT.js} +4 -4
- package/dist/bundle/{chunk-DOZOLBXE.js → chunk-7GJBKGRZ.js} +3 -3
- package/dist/bundle/{chunk-LSGAJYVN.js → chunk-7MVKSPEG.js} +6 -6
- package/dist/bundle/{chunk-ZDLIO76S.js → chunk-ALMQEGYO.js} +2 -2
- package/dist/bundle/{chunk-FXWBUTR7.js → chunk-AQNY57J2.js} +7 -7
- package/dist/bundle/{chunk-JEOYFKUK.js → chunk-AR2HRFQO.js} +2 -2
- package/dist/bundle/{chunk-3RYX7IB6.js → chunk-BO7ZKZCH.js} +39 -38
- package/dist/bundle/{chunk-QXYGK6G5.js → chunk-C4QKY33N.js} +2 -2
- package/dist/bundle/{chunk-VZ2I62HN.js → chunk-DNJ43DT5.js} +2 -2
- package/dist/bundle/{chunk-ZG6X24ON.js → chunk-E7RDXCV2.js} +5 -5
- package/dist/bundle/{chunk-ALJWBGD5.js → chunk-EOEDICIE.js} +1 -1
- package/dist/bundle/{chunk-6DHQTUB2.js → chunk-FDCGTODC.js} +1 -1
- package/dist/bundle/{chunk-HM352LJR.js → chunk-FDM3JMQZ.js} +24 -24
- package/dist/bundle/{chunk-IJFZKQC4.js → chunk-FKHWVVMV.js} +3 -3
- package/dist/bundle/{chunk-PR3DA7KA.js → chunk-FNDQFFLP.js} +11 -11
- package/dist/bundle/{chunk-CKBHR7QO.js → chunk-FUKJQZED.js} +1 -1
- package/dist/bundle/{chunk-PC4UA6UN.js → chunk-GB5YM5HK.js} +5 -5
- package/dist/bundle/{chunk-CNKILAWA.js → chunk-GC4JNVYF.js} +43 -25
- package/dist/bundle/{chunk-BEL4XZ3M.js → chunk-GIRVMZD3.js} +16 -16
- package/dist/bundle/{chunk-YQOVVCIA.js → chunk-HNR2BJJU.js} +17 -16
- package/dist/bundle/{chunk-T334CFU4.js → chunk-IDK5QUBJ.js} +4 -4
- package/dist/bundle/{chunk-WUX7AUOQ.js → chunk-IXXVCKWL.js} +26 -26
- package/dist/bundle/{chunk-NHBUTCNR.js → chunk-J6XLM4QW.js} +9 -9
- package/dist/bundle/{chunk-CITFEQ6S.js → chunk-JBBZCTTF.js} +1 -1
- package/dist/bundle/{chunk-7XKAVMCF.js → chunk-JPFF6MNK.js} +8 -8
- package/dist/bundle/{chunk-SQHPJBNO.js → chunk-K2DMCTTF.js} +95 -95
- package/dist/bundle/{chunk-NSIFQ5OP.js → chunk-KM7Q67Z3.js} +1 -1
- package/dist/bundle/{chunk-6BNALDGA.js → chunk-KWKRTYRL.js} +4 -4
- package/dist/bundle/{chunk-TZLO3ZZF.js → chunk-KXWJT72E.js} +17 -26
- package/dist/bundle/{chunk-6XYGTRMQ.js → chunk-LAVWTS4P.js} +523 -268
- package/dist/bundle/{chunk-DZMK255Y.js → chunk-N4VNUOOD.js} +41 -31
- package/dist/bundle/{chunk-IAQ4L6SM.js → chunk-NCCL4QWR.js} +3 -3
- package/dist/bundle/{chunk-SIWBUGBU.js → chunk-NDG6LHX7.js} +8 -8
- package/dist/bundle/{chunk-GPJEYW2J.js → chunk-NDUYK676.js} +8 -8
- package/dist/bundle/{chunk-PIMMF67N.js → chunk-NFOUG7ES.js} +2 -2
- package/dist/bundle/{chunk-DT2YCB2V.js → chunk-NPKFXGYG.js} +24 -22
- package/dist/bundle/{chunk-CL4GVCXS.js → chunk-NPMVPKBD.js} +46 -46
- package/dist/bundle/{chunk-MK3N7WX7.js → chunk-ORRQDSDH.js} +3 -3
- package/dist/bundle/{chunk-YLKQSVLI.js → chunk-P4ABC6C4.js} +2 -2
- package/dist/bundle/{chunk-GVCN3GLZ.js → chunk-PFTIYWOK.js} +4 -4
- package/dist/bundle/{chunk-KXMJE3XC.js → chunk-RMQGFLT2.js} +6 -6
- package/dist/bundle/{chunk-YKZ4IPLB.js → chunk-TBD362SJ.js} +7 -7
- package/dist/bundle/{chunk-SVTYS36O.js → chunk-TD4RAOMZ.js} +3 -3
- package/dist/bundle/{chunk-R276546S.js → chunk-TIEEVT2Z.js} +1 -1
- package/dist/bundle/{chunk-OQMK6WXQ.js → chunk-TIVC4DB5.js} +2 -2
- package/dist/bundle/{chunk-ZSXRDF6I.js → chunk-TQFCPUIM.js} +1 -1
- package/dist/bundle/{chunk-KPBCGUJC.js → chunk-UDWMRZL6.js} +21 -21
- package/dist/bundle/{chunk-DLAFGSTN.js → chunk-UIPT6IAU.js} +1 -1
- package/dist/bundle/{chunk-C6Z25IBJ.js → chunk-ULPS2OAL.js} +4 -4
- package/dist/bundle/{chunk-7SH4JHYW.js → chunk-VGTDXEYD.js} +12 -12
- package/dist/bundle/{chunk-R4TE4ZSD.js → chunk-VVMCGF5X.js} +342 -296
- package/dist/bundle/{chunk-F3KHUJEE.js → chunk-VXZULAWV.js} +10 -10
- package/dist/bundle/{chunk-7IUMHMTP.js → chunk-VY2AUZMJ.js} +2 -2
- package/dist/bundle/{chunk-GE4DP24O.js → chunk-VY3TYRCK.js} +51 -51
- package/dist/bundle/{chunk-2HHOMN2G.js → chunk-W6DMCGMK.js} +23 -23
- package/dist/bundle/{chunk-FJW3DDCF.js → chunk-XTNEYXAQ.js} +5 -5
- package/dist/bundle/{chunk-FG4XXZZE.js → chunk-YP5FDMTG.js} +2 -2
- package/dist/bundle/command-contract-VXLGE6NV.js +35 -0
- package/dist/bundle/{decode-WAPM2VBH.js → decode-3LX3BLZM.js} +4 -4
- package/dist/bundle/drive.js +6 -6
- package/dist/bundle/{echarts-GXY34GHA.js → echarts-YNGCOYHW.js} +2 -2
- package/dist/bundle/{embed-HW3N3KNP.js → embed-FICTRZJL.js} +5 -5
- package/dist/bundle/{embedder-7WNFXYYP.js → embedder-DSMRCRSH.js} +8 -8
- package/dist/bundle/{entry-J7YIRDPD.js → entry-4ZX3BNXK.js} +6 -6
- package/dist/bundle/{first-run-53CL2IYH.js → first-run-GRBQ3SQ5.js} +9 -9
- package/dist/bundle/first-screen-JK3MZVCU.js +33 -0
- package/dist/bundle/{google-5NNVARNR.js → google-QV2B2KZA.js} +9 -9
- package/dist/bundle/{google-api-EQQH53QD.js → google-api-EVO7F3WB.js} +51 -51
- package/dist/bundle/grants-VJDGD3BG.js +98 -0
- package/dist/bundle/identity-25CTQZS3.js +14 -0
- package/dist/bundle/{instructions-K5BEQM4C.js → instructions-GJHHFV64.js} +1 -1
- package/dist/bundle/{login-Y6ENYKC3.js → login-54G4F4EP.js} +58 -60
- package/dist/bundle/{mcp-WSGVVZWI.js → mcp-EMNFFY4N.js} +2 -2
- package/dist/bundle/{node-ZYWB7IET.js → node-GFOH6FKP.js} +2 -2
- package/dist/bundle/{node-sqlite-FSQIKGED.js → node-sqlite-NZIBED3C.js} +4 -4
- package/dist/bundle/{oauth-HF5USWXY.js → oauth-WUHT2JII.js} +6 -6
- package/dist/bundle/{open-NHGJENCX.js → open-INBNHORD.js} +3 -3
- package/dist/bundle/{openai-3JCJYKNX.js → openai-BMREUGJP.js} +13 -13
- package/dist/bundle/{process-ZXO2MWRJ.js → process-XVDX4SPD.js} +1 -1
- package/dist/bundle/{program-QAJ66K3Z.js → program-5OBA53CL.js} +75 -75
- package/dist/bundle/{prompt-LQJBCCUF.js → prompt-S7GHCPGR.js} +4 -4
- package/dist/bundle/{reasons-J57GSRWN.js → reasons-T24V3AYS.js} +3 -3
- package/dist/bundle/{recognize-QM3LN4ZF.js → recognize-T3DABMW5.js} +3 -3
- package/dist/bundle/{remote-WREGEZJQ.js → remote-ASYGFT6E.js} +6 -6
- package/dist/bundle/{rerank-YFUB6J6M.js → rerank-BQ5U252K.js} +6 -6
- package/dist/bundle/{serve-7NFEZ564.js → serve-JMLNKCUZ.js} +8 -8
- package/dist/bundle/{server-KBCFZ2AU.js → server-5E6RC7GZ.js} +38 -38
- package/dist/bundle/server-QI4C3CQT.js +63 -0
- package/dist/bundle/{services-C3XWRA2W.js → services-NFB3XSON.js} +29 -25
- package/dist/bundle/{sqlite-runtime-H3TSAMIN.js → sqlite-runtime-TAMYMQFR.js} +4 -4
- package/dist/bundle/{state-S2Q53L6L.js → state-DS4G3ZXV.js} +5 -5
- package/dist/bundle/{store-I27LAJPU.js → store-HAS2LRFE.js} +14 -14
- package/dist/bundle/{store-H345VQHP.js → store-MLMKYJLC.js} +12 -12
- package/dist/bundle/store-maintenance-command-LI3JR22B.js +52 -0
- package/dist/bundle/tokens-AJF2D5TA.js +96 -0
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +1 -1
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/identity.d.ts +1 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +1 -0
- package/dist/identity.js.map +1 -1
- package/dist/login.d.ts.map +1 -1
- package/dist/login.js +2 -4
- package/dist/login.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -1
- package/dist/program.js.map +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +0 -9
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-D4UG3D33.js +0 -35
- package/dist/bundle/first-screen-2KT7HM2K.js +0 -33
- package/dist/bundle/grants-4NETZ4MR.js +0 -98
- package/dist/bundle/identity-LBTXDMTA.js +0 -12
- package/dist/bundle/server-UYVL2CFI.js +0 -63
- package/dist/bundle/store-maintenance-command-3XA73XMC.js +0 -52
- package/dist/bundle/tokens-7MUGKFEM.js +0 -96
- /package/dist/bundle/{chunk-62EDJKGP.js → chunk-NPGVOZVK.js} +0 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
GOOGLE_WRITE
|
|
5
|
+
} from "./chunk-7GJBKGRZ.js";
|
|
6
|
+
import {
|
|
7
|
+
apiMethod
|
|
8
|
+
} from "./chunk-TD4RAOMZ.js";
|
|
9
|
+
import {
|
|
10
|
+
covers,
|
|
11
|
+
grantedScopes
|
|
12
|
+
} from "./chunk-KXWJT72E.js";
|
|
13
|
+
import "./chunk-NDG6LHX7.js";
|
|
14
|
+
import {
|
|
15
|
+
READ_SCOPE,
|
|
16
|
+
WRITE_SCOPE
|
|
17
|
+
} from "./chunk-2KARCTUU.js";
|
|
18
|
+
import "./chunk-UDWMRZL6.js";
|
|
19
|
+
import "./chunk-TIEEVT2Z.js";
|
|
20
|
+
import "./chunk-FDM3JMQZ.js";
|
|
21
|
+
import "./chunk-2LLNPNMB.js";
|
|
22
|
+
import "./chunk-HNR2BJJU.js";
|
|
23
|
+
import "./chunk-SBZB7HMU.js";
|
|
24
|
+
import "./chunk-4LZFESHQ.js";
|
|
25
|
+
import "./chunk-2OGANEKA.js";
|
|
26
|
+
import "./chunk-FDCGTODC.js";
|
|
27
|
+
import "./chunk-KWKRTYRL.js";
|
|
28
|
+
import "./chunk-NPMVPKBD.js";
|
|
29
|
+
import "./chunk-2DZMGPUC.js";
|
|
30
|
+
import "./chunk-NPKFXGYG.js";
|
|
31
|
+
import "./chunk-NCCL4QWR.js";
|
|
32
|
+
import "./chunk-LAVWTS4P.js";
|
|
33
|
+
import "./chunk-VGTDXEYD.js";
|
|
34
|
+
import "./chunk-IXXVCKWL.js";
|
|
35
|
+
import "./chunk-GIRVMZD3.js";
|
|
36
|
+
import "./chunk-AQNY57J2.js";
|
|
37
|
+
import "./chunk-HTQTIKWP.js";
|
|
38
|
+
import "./chunk-4I7EBJJV.js";
|
|
39
|
+
import "./chunk-K2DMCTTF.js";
|
|
40
|
+
import {
|
|
41
|
+
describeProgram,
|
|
42
|
+
flatten
|
|
43
|
+
} from "./chunk-BO7ZKZCH.js";
|
|
44
|
+
import "./chunk-NDUYK676.js";
|
|
45
|
+
import "./chunk-KM7Q67Z3.js";
|
|
46
|
+
import "./chunk-W6DMCGMK.js";
|
|
47
|
+
import "./chunk-P4ABC6C4.js";
|
|
48
|
+
import "./chunk-PFTIYWOK.js";
|
|
49
|
+
import "./chunk-FNDQFFLP.js";
|
|
50
|
+
import "./chunk-E7RDXCV2.js";
|
|
51
|
+
import "./chunk-UIPT6IAU.js";
|
|
52
|
+
import "./chunk-IDK5QUBJ.js";
|
|
53
|
+
import "./chunk-VXZULAWV.js";
|
|
54
|
+
import "./chunk-ALMQEGYO.js";
|
|
55
|
+
import "./chunk-FKHWVVMV.js";
|
|
56
|
+
import "./chunk-VY2AUZMJ.js";
|
|
57
|
+
import "./chunk-4XRLPQ3N.js";
|
|
58
|
+
import "./chunk-DNJ43DT5.js";
|
|
59
|
+
import "./chunk-ORRQDSDH.js";
|
|
60
|
+
import "./chunk-GB5YM5HK.js";
|
|
61
|
+
import "./chunk-5DPV7X27.js";
|
|
62
|
+
import "./chunk-67A2YFAT.js";
|
|
63
|
+
import "./chunk-TIVC4DB5.js";
|
|
64
|
+
import "./chunk-VVMCGF5X.js";
|
|
65
|
+
import "./chunk-AR2HRFQO.js";
|
|
66
|
+
import "./chunk-VY3TYRCK.js";
|
|
67
|
+
import "./chunk-J6XLM4QW.js";
|
|
68
|
+
import "./chunk-NPGVOZVK.js";
|
|
69
|
+
import "./chunk-JPFF6MNK.js";
|
|
70
|
+
import "./chunk-RMQGFLT2.js";
|
|
71
|
+
import "./chunk-C4QKY33N.js";
|
|
72
|
+
import "./chunk-7MVKSPEG.js";
|
|
73
|
+
import "./chunk-N4VNUOOD.js";
|
|
74
|
+
import "./chunk-TBD362SJ.js";
|
|
75
|
+
import "./chunk-Y5E2WNWB.js";
|
|
76
|
+
import "./chunk-EOEDICIE.js";
|
|
77
|
+
import {
|
|
78
|
+
__name
|
|
79
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
80
|
+
|
|
81
|
+
// dist/grants.js
|
|
82
|
+
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");
|
|
83
|
+
var grantAvailability = /* @__PURE__ */ __name((program, env, keyring) => {
|
|
84
|
+
const commands = new Map(flatten(describeProgram(program)).map((info) => [info.path.join(" "), info]));
|
|
85
|
+
return (path, profile) => {
|
|
86
|
+
const command = commands.get(path.join(" "));
|
|
87
|
+
const required = command && requiredScope(command);
|
|
88
|
+
if (!required || required === READ_SCOPE)
|
|
89
|
+
return void 0;
|
|
90
|
+
const granted = grantedScopes(env, profile, keyring);
|
|
91
|
+
if (!granted || covers(granted, required))
|
|
92
|
+
return void 0;
|
|
93
|
+
return { available: false, reason: `the OAuth grant needs ${required}`, permission: "oauth.scope" };
|
|
94
|
+
};
|
|
95
|
+
}, "grantAvailability");
|
|
96
|
+
export {
|
|
97
|
+
grantAvailability
|
|
98
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
DRIVE_APP,
|
|
5
|
+
PACKAGE
|
|
6
|
+
} from "./chunk-4LZFESHQ.js";
|
|
7
|
+
import "./chunk-2OGANEKA.js";
|
|
8
|
+
import "./chunk-NPGVOZVK.js";
|
|
9
|
+
import "./chunk-TBD362SJ.js";
|
|
10
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
11
|
+
export {
|
|
12
|
+
DRIVE_APP,
|
|
13
|
+
PACKAGE
|
|
14
|
+
};
|
|
@@ -2,83 +2,83 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
googleSource
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-XTNEYXAQ.js";
|
|
6
|
+
import "./chunk-FUKJQZED.js";
|
|
7
7
|
import {
|
|
8
8
|
credentials,
|
|
9
9
|
notSaved,
|
|
10
10
|
sessionKeeper
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KXWJT72E.js";
|
|
12
12
|
import {
|
|
13
13
|
profileName,
|
|
14
14
|
readConfig,
|
|
15
15
|
writeConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NDG6LHX7.js";
|
|
17
17
|
import {
|
|
18
18
|
ACTIVITY_SCOPE,
|
|
19
19
|
APPS_SCOPE,
|
|
20
20
|
READ_SCOPE,
|
|
21
21
|
WRITE_SCOPE
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-2KARCTUU.js";
|
|
23
|
+
import "./chunk-UDWMRZL6.js";
|
|
24
|
+
import "./chunk-TIEEVT2Z.js";
|
|
25
|
+
import "./chunk-FDM3JMQZ.js";
|
|
26
|
+
import "./chunk-2LLNPNMB.js";
|
|
27
|
+
import "./chunk-HNR2BJJU.js";
|
|
28
28
|
import "./chunk-SBZB7HMU.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-4LZFESHQ.js";
|
|
30
|
+
import "./chunk-2OGANEKA.js";
|
|
31
|
+
import "./chunk-FDCGTODC.js";
|
|
32
|
+
import "./chunk-KWKRTYRL.js";
|
|
33
|
+
import "./chunk-NPMVPKBD.js";
|
|
34
|
+
import "./chunk-2DZMGPUC.js";
|
|
35
|
+
import "./chunk-NPKFXGYG.js";
|
|
36
|
+
import "./chunk-NCCL4QWR.js";
|
|
37
|
+
import "./chunk-LAVWTS4P.js";
|
|
38
|
+
import "./chunk-VGTDXEYD.js";
|
|
39
|
+
import "./chunk-IXXVCKWL.js";
|
|
40
|
+
import "./chunk-GIRVMZD3.js";
|
|
41
|
+
import "./chunk-AQNY57J2.js";
|
|
42
42
|
import "./chunk-HTQTIKWP.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-4I7EBJJV.js";
|
|
44
|
+
import "./chunk-K2DMCTTF.js";
|
|
45
|
+
import "./chunk-BO7ZKZCH.js";
|
|
46
|
+
import "./chunk-NDUYK676.js";
|
|
47
|
+
import "./chunk-KM7Q67Z3.js";
|
|
48
|
+
import "./chunk-W6DMCGMK.js";
|
|
49
|
+
import "./chunk-P4ABC6C4.js";
|
|
50
|
+
import "./chunk-PFTIYWOK.js";
|
|
51
|
+
import "./chunk-FNDQFFLP.js";
|
|
52
|
+
import "./chunk-E7RDXCV2.js";
|
|
53
|
+
import "./chunk-UIPT6IAU.js";
|
|
54
|
+
import "./chunk-IDK5QUBJ.js";
|
|
55
|
+
import "./chunk-VXZULAWV.js";
|
|
56
|
+
import "./chunk-ALMQEGYO.js";
|
|
57
|
+
import "./chunk-FKHWVVMV.js";
|
|
58
|
+
import "./chunk-VY2AUZMJ.js";
|
|
59
|
+
import "./chunk-4XRLPQ3N.js";
|
|
60
|
+
import "./chunk-DNJ43DT5.js";
|
|
61
|
+
import "./chunk-ORRQDSDH.js";
|
|
62
|
+
import "./chunk-GB5YM5HK.js";
|
|
63
63
|
import "./chunk-5DPV7X27.js";
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-67A2YFAT.js";
|
|
65
|
+
import "./chunk-TIVC4DB5.js";
|
|
66
|
+
import "./chunk-VVMCGF5X.js";
|
|
67
|
+
import "./chunk-AR2HRFQO.js";
|
|
68
|
+
import "./chunk-VY3TYRCK.js";
|
|
69
|
+
import "./chunk-J6XLM4QW.js";
|
|
70
|
+
import "./chunk-NPGVOZVK.js";
|
|
71
|
+
import "./chunk-JPFF6MNK.js";
|
|
72
|
+
import "./chunk-RMQGFLT2.js";
|
|
73
|
+
import "./chunk-C4QKY33N.js";
|
|
74
|
+
import "./chunk-7MVKSPEG.js";
|
|
75
|
+
import "./chunk-N4VNUOOD.js";
|
|
76
76
|
import {
|
|
77
77
|
CliError,
|
|
78
78
|
isCliError
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-TBD362SJ.js";
|
|
80
80
|
import "./chunk-Y5E2WNWB.js";
|
|
81
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-EOEDICIE.js";
|
|
82
82
|
import {
|
|
83
83
|
__name
|
|
84
84
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -110,8 +110,6 @@ var login = /* @__PURE__ */ __name(async (options) => {
|
|
|
110
110
|
...options.signal ? { signal: options.signal } : {},
|
|
111
111
|
...options.fetch ? { fetch: options.fetch } : {}
|
|
112
112
|
});
|
|
113
|
-
const fileEntry = /* @__PURE__ */ __name(() => credentials(options.env, "file").read(name)?.secret, "fileEntry");
|
|
114
|
-
const fileBefore = fileEntry();
|
|
115
113
|
let principal = "";
|
|
116
114
|
try {
|
|
117
115
|
await keeper.signIn({
|
|
@@ -146,7 +144,7 @@ var login = /* @__PURE__ */ __name(async (options) => {
|
|
|
146
144
|
} catch (error) {
|
|
147
145
|
throw signInError(error);
|
|
148
146
|
}
|
|
149
|
-
const storage = options.
|
|
147
|
+
const storage = credentials(options.env, "file").read(name) ? "file" : "keyring";
|
|
150
148
|
const config = readConfig(options.env);
|
|
151
149
|
config.profiles[name] = { principal, roots: config.profiles[name]?.roots ?? [], storage };
|
|
152
150
|
writeConfig(options.env, config);
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath,
|
|
6
6
|
require_cross_spawn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UIPT6IAU.js";
|
|
8
8
|
import {
|
|
9
9
|
__name,
|
|
10
10
|
__toESM
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/mcp/index.js
|
|
14
14
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
15
15
|
var realRun = /* @__PURE__ */ __name((file, args) => {
|
|
16
16
|
const result = import_cross_spawn.default.sync(executableOnPath(file, process.env), args, {
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-EOEDICIE.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
|
|
27
27
|
import { DatabaseSync } from "node:sqlite";
|
|
28
28
|
var nodeSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-YP5FDMTG.js";
|
|
7
|
+
import "./chunk-N4VNUOOD.js";
|
|
8
|
+
import "./chunk-TBD362SJ.js";
|
|
9
9
|
import "./chunk-Y5E2WNWB.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
|
|
15
15
|
import { DatabaseSync } from "node:sqlite";
|
|
16
16
|
var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
|
|
17
17
|
var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
@@ -3,13 +3,13 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
ownerLogin,
|
|
5
5
|
revokeAll
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NFOUG7ES.js";
|
|
7
7
|
import "./chunk-5D4AEUVA.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-KWKRTYRL.js";
|
|
9
|
+
import "./chunk-NCCL4QWR.js";
|
|
10
|
+
import "./chunk-KM7Q67Z3.js";
|
|
11
|
+
import "./chunk-N4VNUOOD.js";
|
|
12
|
+
import "./chunk-TBD362SJ.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
14
|
import "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
export {
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
openCache,
|
|
7
7
|
openFile,
|
|
8
8
|
storeCapable
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-7MVKSPEG.js";
|
|
10
|
+
import "./chunk-N4VNUOOD.js";
|
|
11
|
+
import "./chunk-TBD362SJ.js";
|
|
12
12
|
import "./chunk-Y5E2WNWB.js";
|
|
13
13
|
import "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
export {
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
toModelRate
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-ULPS2OAL.js";
|
|
7
|
+
import "./chunk-VGTDXEYD.js";
|
|
8
8
|
import {
|
|
9
9
|
OPENAI_URL
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-ORRQDSDH.js";
|
|
11
|
+
import "./chunk-GB5YM5HK.js";
|
|
12
12
|
import "./chunk-5DPV7X27.js";
|
|
13
13
|
import {
|
|
14
14
|
OPENAI_TRANSCRIBE_MODEL,
|
|
@@ -16,24 +16,24 @@ import {
|
|
|
16
16
|
filesPresent,
|
|
17
17
|
modelsDirectory,
|
|
18
18
|
vadPath
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-67A2YFAT.js";
|
|
20
|
+
import "./chunk-C4QKY33N.js";
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_RETRY,
|
|
23
23
|
backoffMs
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-N4VNUOOD.js";
|
|
25
25
|
import {
|
|
26
26
|
CliError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-TBD362SJ.js";
|
|
28
28
|
import "./chunk-Y5E2WNWB.js";
|
|
29
29
|
import {
|
|
30
30
|
__name
|
|
31
31
|
} from "./chunk-ZVVMGPBJ.js";
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
34
34
|
import { setTimeout as wait } from "node:timers/promises";
|
|
35
35
|
|
|
36
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
36
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
|
|
37
37
|
var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
|
|
38
38
|
if (!header)
|
|
39
39
|
return void 0;
|
|
@@ -57,7 +57,7 @@ var parseRateLimitReset = /* @__PURE__ */ __name((header, now) => {
|
|
|
57
57
|
}, "parseRateLimitReset");
|
|
58
58
|
var providerWaitMs = /* @__PURE__ */ __name((headers, now) => parseRetryAfter(headers.get("retry-after"), now) ?? parseRateLimitReset(headers.get("x-ratelimit-reset"), now), "providerWaitMs");
|
|
59
59
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/speech/wav.js
|
|
61
61
|
var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
62
62
|
const bytes = Buffer.alloc(44 + samples.length * 2);
|
|
63
63
|
bytes.write("RIFF", 0, "ascii");
|
|
@@ -78,7 +78,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
|
78
78
|
return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
|
|
79
79
|
}, "encodeWav");
|
|
80
80
|
|
|
81
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
81
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
82
82
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
83
83
|
var JOINED_SECONDS = 0.2;
|
|
84
84
|
var PAD_SECONDS = 0.2;
|
|
@@ -200,7 +200,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
200
200
|
return pieces;
|
|
201
201
|
}, "piecesOf");
|
|
202
202
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
203
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
203
|
+
const { openSpeechCutter } = await import("./recognize-T3DABMW5.js");
|
|
204
204
|
return openSpeechCutter(vadModel);
|
|
205
205
|
}, "openCutter");
|
|
206
206
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-ZVVMGPBJ.js";
|
|
7
7
|
|
|
8
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/embeddings/process.js
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
10
10
|
import { createInterface } from "node:readline";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|