@wirecat/drive-cli 0.59.0 → 0.60.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/{all-profiles-CVISDGMF.js → all-profiles-537I27Z4.js} +11 -11
- package/dist/bundle/{anthropic-WLNQC23G.js → anthropic-X4NWVHDF.js} +7 -7
- package/dist/bundle/{app-server-P2VOONXF.js → app-server-KSHJKKS7.js} +47 -47
- package/dist/bundle/{bun-CDFBNTKV.js → bun-WTBGGCUC.js} +2 -2
- package/dist/bundle/{bun-sqlite-MNZICITP.js → bun-sqlite-T7Y3JFFD.js} +6 -6
- package/dist/bundle/{chunk-YV4ABH6J.js → chunk-22ATLSNK.js} +3 -3
- package/dist/bundle/{chunk-CBM2XAEZ.js → chunk-246P2DCT.js} +3 -3
- package/dist/bundle/{chunk-H2BKXPBL.js → chunk-3TQHIHZI.js} +2 -2
- package/dist/bundle/{chunk-IGF6EXBR.js → chunk-4CBZEAQ7.js} +32 -32
- package/dist/bundle/{chunk-L5SE2XZP.js → chunk-4VHBDVY2.js} +1 -1
- package/dist/bundle/{chunk-IIP43FQJ.js → chunk-4XZXH2NM.js} +1 -1
- package/dist/bundle/{chunk-UWVNRPT7.js → chunk-57QVQGBE.js} +21 -21
- package/dist/bundle/{chunk-A6SLYOP2.js → chunk-5AMRCBMP.js} +67 -34
- package/dist/bundle/{chunk-ZSMCJKGP.js → chunk-5XHLQZAG.js} +27 -26
- package/dist/bundle/{chunk-YADXWQHV.js → chunk-67QXMO2G.js} +25 -25
- package/dist/bundle/{chunk-36B7AIGP.js → chunk-6HTKB4WC.js} +1 -1
- package/dist/bundle/{chunk-5C7K6XIT.js → chunk-73MNUSP3.js} +1 -1
- package/dist/bundle/{chunk-3KNZADHJ.js → chunk-73TTP6ET.js} +431 -187
- package/dist/bundle/{chunk-IBZ3IBO4.js → chunk-77C5XRH3.js} +5 -5
- package/dist/bundle/{chunk-PGKIOSN3.js → chunk-77YTRBL6.js} +10 -10
- package/dist/bundle/{chunk-TI55J3BA.js → chunk-ALWTUDZF.js} +3 -3
- package/dist/bundle/{chunk-HWLLVLAB.js → chunk-AXWXQNTC.js} +13 -10
- package/dist/bundle/{chunk-P7WPYKSB.js → chunk-CKGHRWVR.js} +2 -2
- package/dist/bundle/{chunk-JW2CVCUH.js → chunk-D6WIWOQC.js} +3 -3
- package/dist/bundle/{chunk-A6EG7ZDS.js → chunk-DMHGWL5D.js} +12 -12
- package/dist/bundle/{chunk-FICVPYE4.js → chunk-DQDKLZAK.js} +47 -47
- package/dist/bundle/{chunk-JSDVK3JA.js → chunk-EHAI773E.js} +1 -1
- package/dist/bundle/{chunk-UQPKAY6I.js → chunk-FO4TCH6P.js} +1 -1
- package/dist/bundle/{chunk-GJ4ZCIOP.js → chunk-FTZNUZO7.js} +3 -3
- package/dist/bundle/{chunk-6C6255U6.js → chunk-FZOCQQ66.js} +11 -11
- package/dist/bundle/{chunk-EHEZSV6I.js → chunk-GD6TQ6U4.js} +8 -8
- package/dist/bundle/{chunk-XCOCPXCM.js → chunk-GVRS5AIH.js} +2 -2
- package/dist/bundle/{chunk-DI5Z4SH5.js → chunk-HCJG7ENG.js} +2 -2
- package/dist/bundle/{chunk-AD62XJKO.js → chunk-HFGR33KD.js} +24 -24
- package/dist/bundle/{chunk-K4LXGZTE.js → chunk-HQVIK6PM.js} +36 -18
- package/dist/bundle/{chunk-YU3PTU3D.js → chunk-IRZ7OF3F.js} +1 -1
- package/dist/bundle/{chunk-LJ7E4HLQ.js → chunk-IXN7Y6JA.js} +1 -1
- package/dist/bundle/{chunk-7QTVIZII.js → chunk-JGUJJNGZ.js} +790 -325
- package/dist/bundle/{chunk-FVQCM7IQ.js → chunk-JQLIM6BH.js} +4 -4
- package/dist/bundle/{chunk-BSGOM3BD.js → chunk-K6XVRA6U.js} +1 -1
- package/dist/bundle/{chunk-3VSUT6BD.js → chunk-KEXTTZJM.js} +2 -2
- package/dist/bundle/{chunk-V36RIXFA.js → chunk-LJ77Y3TK.js} +1 -1
- package/dist/bundle/{chunk-II7LST64.js → chunk-LQSRVQ3V.js} +3 -2
- package/dist/bundle/{chunk-OKXSTWKW.js → chunk-MVNPE5FZ.js} +7 -7
- package/dist/bundle/{chunk-M6I2SQN7.js → chunk-MXP35VPO.js} +2 -2
- package/dist/bundle/{chunk-TJXPJ3A5.js → chunk-N7S2UPF3.js} +135 -60
- package/dist/bundle/{chunk-3KJTJDDT.js → chunk-O37ESNAP.js} +17 -17
- package/dist/bundle/{chunk-EVETU3TF.js → chunk-OMKUBCNN.js} +7 -7
- package/dist/bundle/{chunk-MUUHUHWC.js → chunk-OYNUBWD2.js} +1 -22
- package/dist/bundle/{chunk-PAEVBAM3.js → chunk-PDYHEWKG.js} +4 -4
- package/dist/bundle/{chunk-EORMZCVF.js → chunk-PETFPXLU.js} +2 -2
- package/dist/bundle/{chunk-GI5JBGXH.js → chunk-PPL5ASW2.js} +613 -372
- package/dist/bundle/{chunk-B5GBJ35N.js → chunk-QIJWSKZL.js} +2 -2
- package/dist/bundle/{chunk-OZH4ALTI.js → chunk-S36HRPNS.js} +1 -1
- package/dist/bundle/{chunk-KFZUODXB.js → chunk-SBHSNOU4.js} +34 -18
- package/dist/bundle/{chunk-F3FOL42A.js → chunk-SZXI4OXX.js} +1 -1
- package/dist/bundle/{chunk-3U22QTU6.js → chunk-TKW4QWCY.js} +12 -0
- package/dist/bundle/{chunk-6CQO2FIN.js → chunk-TVQDMP2F.js} +391 -282
- package/dist/bundle/{chunk-GT5KTGCN.js → chunk-TXMTMEHW.js} +4 -4
- package/dist/bundle/{chunk-IADOBOKB.js → chunk-UNJE63JK.js} +1 -1
- package/dist/bundle/{chunk-HIOJRPCT.js → chunk-UTFATA4K.js} +1 -1
- package/dist/bundle/{chunk-LPHMAQJQ.js → chunk-UVLSWLPZ.js} +15 -15
- package/dist/bundle/{chunk-KPRGTTJH.js → chunk-UVYVIHEA.js} +1 -1
- package/dist/bundle/{chunk-MKCNUI72.js → chunk-V2VMBM7O.js} +1 -1
- package/dist/bundle/{chunk-QTM7USFA.js → chunk-V7QMHMR3.js} +5 -5
- package/dist/bundle/{chunk-TFH5X46A.js → chunk-VRW6ZDTH.js} +18 -18
- package/dist/bundle/{chunk-OMMEQJOB.js → chunk-XDIEQ2CE.js} +2 -2
- package/dist/bundle/{chunk-MEAPA4EZ.js → chunk-XFXRGQXJ.js} +2 -2
- package/dist/bundle/{chunk-HMZAMHKN.js → chunk-YDN2RH5S.js} +1 -1
- package/dist/bundle/{chunk-P3ZTW2ZM.js → chunk-YGG7UA3C.js} +4 -4
- package/dist/bundle/{chunk-VT6GZAF4.js → chunk-YYHKVOVK.js} +4 -4
- package/dist/bundle/{chunk-V42KAPU3.js → chunk-ZPQS7XJA.js} +3 -3
- package/dist/bundle/command-contract-NUIWUVYB.js +39 -0
- package/dist/bundle/{decode-XTOMXMGN.js → decode-35N57AFW.js} +6 -6
- package/dist/bundle/{dispatch-T6TW2JJB.js → dispatch-CWXZW3PL.js} +1 -1
- package/dist/bundle/drive.js +10 -10
- package/dist/bundle/{echarts-RKKIOYVV.js → echarts-3P3QZWMU.js} +2 -2
- package/dist/bundle/{embed-STHKKA6G.js → embed-Q6Q5IOJQ.js} +7 -7
- package/dist/bundle/{embedder-3XZEWHRO.js → embedder-D44JDTAA.js} +10 -10
- package/dist/bundle/{entry-CNOYSSSD.js → entry-ZHCNI7XO.js} +9 -9
- package/dist/bundle/{failure-DNQYXP2T.js → failure-GRMMSDCZ.js} +2 -2
- package/dist/bundle/{first-run-F2SI24PK.js → first-run-3DC2SDWM.js} +10 -10
- package/dist/bundle/first-screen-YJF4YODC.js +37 -0
- package/dist/bundle/{google-BYNSAIQI.js → google-6ZZDKFBN.js} +10 -10
- package/dist/bundle/{google-api-4VTZH7OP.js → google-api-E6MOJ4ZD.js} +52 -52
- package/dist/bundle/grants-GWXDH5GM.js +105 -0
- package/dist/bundle/{identity-ARDPFYV5.js → identity-TID7S5NE.js} +4 -4
- package/dist/bundle/{instructions-N3OH5X2Y.js → instructions-ANJN4HV3.js} +1 -1
- package/dist/bundle/{login-4VQEC7VI.js → login-BGMK2ABH.js} +59 -61
- package/dist/bundle/{node-YU5JBNAA.js → node-VOB45ES2.js} +2 -2
- package/dist/bundle/{node-sqlite-3C6PSBIW.js → node-sqlite-TSX6XQY2.js} +7 -7
- package/dist/bundle/{oauth-D6NJFPYU.js → oauth-CEOYXW6C.js} +8 -8
- package/dist/bundle/{open-M2V2VYXO.js → open-3USWHGNR.js} +6 -6
- package/dist/bundle/{openai-ST2IWNUX.js → openai-YZ5VGPIP.js} +14 -14
- package/dist/bundle/{process-PYNNBBTV.js → process-44JS2W7L.js} +1 -1
- package/dist/bundle/{program-Q4VWV2MR.js → program-TZLAFKJV.js} +99 -82
- package/dist/bundle/{prompt-MFIOJMAF.js → prompt-SG7LAOXW.js} +6 -6
- package/dist/bundle/{reasons-LOQ5J73F.js → reasons-ZK3U3CIN.js} +3 -3
- package/dist/bundle/{recognize-FBLMWXNE.js → recognize-OFW7HWTM.js} +5 -5
- package/dist/bundle/{remote-XC3OXE4T.js → remote-YBDRZQZ5.js} +8 -8
- package/dist/bundle/{rerank-2XMKKF4S.js → rerank-TQQNS5FJ.js} +8 -8
- package/dist/bundle/{serve-Q2BQHNZB.js → serve-OPZXMVLH.js} +10 -10
- package/dist/bundle/{server-42HPV3AH.js → server-2D6DDIK5.js} +39 -39
- package/dist/bundle/server-R6G2O772.js +70 -0
- package/dist/bundle/{services-WU22S2MU.js → services-34WKT3NN.js} +29 -27
- package/dist/bundle/{sqlite-runtime-CSO6K6B2.js → sqlite-runtime-WPUMKLUV.js} +7 -7
- package/dist/bundle/{start-TZWKM4AH.js → start-ZXUJZ4JV.js} +1 -1
- package/dist/bundle/{state-FLUT7U7R.js → state-AV2RB3AQ.js} +7 -7
- package/dist/bundle/{store-TG6622NG.js → store-3M7N2Q5T.js} +15 -15
- package/dist/bundle/{store-HDWMJ44E.js → store-YKV4GAMS.js} +25 -19
- package/dist/bundle/store-maintenance-command-WDXNY4ZF.js +60 -0
- package/dist/bundle/tokens-F63RXXEF.js +103 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +14 -5
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts +4 -2
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +5 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/config.d.ts +7 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +22 -3
- package/dist/config.js.map +1 -1
- package/dist/errors.js +4 -4
- package/dist/errors.js.map +1 -1
- package/dist/login.d.ts.map +1 -1
- package/dist/login.js +3 -5
- package/dist/login.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +5 -1
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +1 -22
- package/dist/reasons.js.map +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +2 -1
- package/dist/registry.js.map +1 -1
- package/dist/tokens.js +5 -5
- package/dist/tokens.js.map +1 -1
- package/dist/upload.js +1 -1
- package/dist/upload.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/command-contract-LQDNHZJU.js +0 -39
- package/dist/bundle/first-screen-TYYF6VXY.js +0 -37
- package/dist/bundle/grants-EUQXSICG.js +0 -105
- package/dist/bundle/server-EWZYN323.js +0 -70
- package/dist/bundle/store-maintenance-command-RHWRUREJ.js +0 -60
- package/dist/bundle/tokens-TXYURU4S.js +0 -103
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KEXTTZJM.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-246P2DCT.js";
|
|
9
9
|
import {
|
|
10
10
|
singleLine
|
|
11
11
|
} from "./chunk-HIP43OGZ.js";
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
20
20
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
21
21
|
import { dirname, join, resolve } from "node:path";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
24
24
|
var DEFAULT_TASK_CATEGORIES = [
|
|
25
25
|
{
|
|
26
26
|
name: "taxes",
|
|
@@ -775,7 +775,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
775
775
|
}
|
|
776
776
|
}, "storedTaskCategories");
|
|
777
777
|
|
|
778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
779
779
|
var SECTION = "task_categories";
|
|
780
780
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
781
781
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -6,20 +6,20 @@ import {
|
|
|
6
6
|
driveSessionCodec,
|
|
7
7
|
paths,
|
|
8
8
|
tokenKeeper
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HQVIK6PM.js";
|
|
10
10
|
import {
|
|
11
11
|
READ_SCOPE,
|
|
12
12
|
WRITE_SCOPE,
|
|
13
13
|
providerRequest
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TVQDMP2F.js";
|
|
15
15
|
import {
|
|
16
16
|
googleError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JQLIM6BH.js";
|
|
18
18
|
import {
|
|
19
19
|
Credentials,
|
|
20
20
|
isMovedRun,
|
|
21
21
|
systemKeyring
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-246P2DCT.js";
|
|
23
23
|
import {
|
|
24
24
|
minLength,
|
|
25
25
|
nullable,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
pipe,
|
|
30
30
|
safeParse,
|
|
31
31
|
string
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-TKW4QWCY.js";
|
|
33
33
|
import {
|
|
34
34
|
CliError,
|
|
35
35
|
isCliError
|
|
@@ -62,7 +62,7 @@ var credentialOptions = /* @__PURE__ */ __name((env, storage, keyring) => ({
|
|
|
62
62
|
...keyring ? { keyring } : {}
|
|
63
63
|
}), "credentialOptions");
|
|
64
64
|
var credentials = /* @__PURE__ */ __name((env, storage, keyring) => new Credentials(credentialOptions(env, storage, keyring)), "credentials");
|
|
65
|
-
var notSaved = /* @__PURE__ */ __name(() => new CliError("configuration_error", "could not save Google sign-in: the private credentials file cannot be read; move it aside and sign in again", { reason: "
|
|
65
|
+
var notSaved = /* @__PURE__ */ __name(() => new CliError("configuration_error", "could not save Google sign-in: the private credentials file cannot be read; move it aside and sign in again", { reason: "oauth.not-saved" }), "notSaved");
|
|
66
66
|
var saveSession = /* @__PURE__ */ __name((env, name, session, storage, keyring) => {
|
|
67
67
|
try {
|
|
68
68
|
credentials(env, storage, keyring).write(name, JSON.stringify(session));
|
|
@@ -105,12 +105,12 @@ var authorizedClient = /* @__PURE__ */ __name((env, name, keyring, signal) => {
|
|
|
105
105
|
parsed = safeParse(Session, JSON.parse(secret));
|
|
106
106
|
} catch {
|
|
107
107
|
throw new CliError("authentication_error", `could not load Google sign-in \u2014 run drive ${name} session start again`, {
|
|
108
|
-
reason: "
|
|
108
|
+
reason: "oauth.expired"
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
if (!parsed.success || parsed.output.principal !== profile.principal)
|
|
112
112
|
throw new CliError("authentication_error", "saved sign-in is invalid or belongs to another account", {
|
|
113
|
-
reason: "
|
|
113
|
+
reason: "oauth.expired"
|
|
114
114
|
});
|
|
115
115
|
const session = parsed.output;
|
|
116
116
|
const keeper = sessionKeeper({
|
|
@@ -136,7 +136,7 @@ var authorizedClient = /* @__PURE__ */ __name((env, name, keyring, signal) => {
|
|
|
136
136
|
if (isCliError(error) && error.code !== "authentication_error")
|
|
137
137
|
throw error;
|
|
138
138
|
throw new CliError("authentication_error", `Google sign-in expired \u2014 run drive ${name} session start again`, {
|
|
139
|
-
reason: "
|
|
139
|
+
reason: "oauth.expired"
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
};
|
|
@@ -163,7 +163,7 @@ var checkAuthorization = /* @__PURE__ */ __name(async (client, required = READ_S
|
|
|
163
163
|
throw new CliError("authentication_error", "Google returned no access token");
|
|
164
164
|
const info = await client.getTokenInfo(token);
|
|
165
165
|
if (!covers(info.scopes, required))
|
|
166
|
-
throw new CliError("permission_error", "sign-in lacks the required permission; run drive <profile> session start --grant write, activity or apps when needed", { reason: "
|
|
166
|
+
throw new CliError("permission_error", "sign-in lacks the required permission; run drive <profile> session start --grant write, activity or apps when needed", { reason: "oauth.scope-missing" });
|
|
167
167
|
} catch (error) {
|
|
168
168
|
throw googleError(error);
|
|
169
169
|
}
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KEXTTZJM.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-EBLA7GXY.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
14
14
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
15
15
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
16
16
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
137
137
|
return model;
|
|
138
138
|
}, "speechModel");
|
|
139
139
|
|
|
140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
141
141
|
import { createHash, randomUUID } from "node:crypto";
|
|
142
142
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
143
143
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -3,13 +3,13 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4XZXH2NM.js";
|
|
7
7
|
import {
|
|
8
8
|
ensureSqlite
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3TQHIHZI.js";
|
|
10
10
|
import {
|
|
11
11
|
catchCrashes
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LJ77Y3TK.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError
|
|
15
15
|
} from "./chunk-EBLA7GXY.js";
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
21
21
|
import { spawn } from "node:child_process";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
24
24
|
import { appendFileSync } from "node:fs";
|
|
25
25
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
26
26
|
const words = [];
|
|
@@ -44,7 +44,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
44
44
|
`);
|
|
45
45
|
}, "logVersion");
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
48
48
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
49
49
|
argv: process.argv,
|
|
50
50
|
env: process.env,
|
|
@@ -98,8 +98,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
98
98
|
if (command.optsWithGlobals().dryRun === true)
|
|
99
99
|
return;
|
|
100
100
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
101
|
-
import("./first-run-
|
|
102
|
-
import("./command-contract-
|
|
101
|
+
import("./first-run-3DC2SDWM.js"),
|
|
102
|
+
import("./command-contract-NUIWUVYB.js")
|
|
103
103
|
]);
|
|
104
104
|
await setupAtStart({
|
|
105
105
|
command: entry.app.command,
|
|
@@ -114,7 +114,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
114
114
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
115
115
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
116
116
|
return false;
|
|
117
|
-
const { readSecret } = await import("./prompt-
|
|
117
|
+
const { readSecret } = await import("./prompt-SG7LAOXW.js");
|
|
118
118
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
119
119
|
input: io.stdin,
|
|
120
120
|
output: io.stderr,
|
|
@@ -123,7 +123,10 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
123
123
|
});
|
|
124
124
|
return /^(y|yes)$/i.test(answer.trim());
|
|
125
125
|
}, "ask"),
|
|
126
|
-
openBrowser: /* @__PURE__ */ __name(
|
|
126
|
+
openBrowser: /* @__PURE__ */ __name(async (url, browser, command) => {
|
|
127
|
+
if (!headless(command))
|
|
128
|
+
await openBrowser(url, browser, io);
|
|
129
|
+
}, "openBrowser"),
|
|
127
130
|
outputClosed: /* @__PURE__ */ __name(() => closed, "outputClosed")
|
|
128
131
|
};
|
|
129
132
|
let code;
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
loadConfigFile,
|
|
12
12
|
saveConfigFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-246P2DCT.js";
|
|
14
14
|
import {
|
|
15
15
|
number,
|
|
16
16
|
object,
|
|
17
17
|
optional,
|
|
18
18
|
string
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TKW4QWCY.js";
|
|
20
20
|
import {
|
|
21
21
|
__name,
|
|
22
22
|
__toESM
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
readSharedSection,
|
|
5
5
|
sharedConfigPath,
|
|
6
6
|
writeSharedSection
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-77C5XRH3.js";
|
|
8
8
|
import {
|
|
9
9
|
storePath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KEXTTZJM.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
13
|
} from "./chunk-EBLA7GXY.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
19
19
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
20
20
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
21
21
|
var SECTION = "setup";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import { constants } from "node:fs";
|
|
13
13
|
import { link, open, realpath, rename, unlink } from "node:fs/promises";
|
|
@@ -45,7 +45,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
45
45
|
}
|
|
46
46
|
}, "writeFileAtomic");
|
|
47
47
|
|
|
48
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
48
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
49
49
|
import { constants as constants2 } from "node:fs";
|
|
50
50
|
import { lstat, open as open2 } from "node:fs/promises";
|
|
51
51
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -111,21 +111,21 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
111
111
|
}
|
|
112
112
|
}, "syncDirectory");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
115
115
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
116
116
|
import { basename as basename2, dirname as dirname2 } from "node:path";
|
|
117
117
|
|
|
118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
119
119
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
120
120
|
import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
121
121
|
import { hostname as hostname2 } from "node:os";
|
|
122
122
|
import { join as join3 } from "node:path";
|
|
123
123
|
|
|
124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
125
125
|
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
126
126
|
import { join as join2 } from "node:path";
|
|
127
127
|
|
|
128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
129
129
|
import { hostname } from "node:os";
|
|
130
130
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
131
131
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
@@ -170,7 +170,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
170
170
|
}
|
|
171
171
|
}, "leaseOwnerStatus");
|
|
172
172
|
|
|
173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
174
174
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
175
175
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
176
176
|
options.signal?.throwIfAborted();
|
|
@@ -229,7 +229,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
229
229
|
return { inspect, recover };
|
|
230
230
|
}, "leaseInspection");
|
|
231
231
|
|
|
232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
233
233
|
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
234
234
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
235
235
|
let releasing;
|
|
@@ -254,7 +254,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
254
254
|
};
|
|
255
255
|
}, "ownedNativeLease");
|
|
256
256
|
|
|
257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
258
258
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
259
259
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
260
260
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -325,7 +325,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
325
325
|
};
|
|
326
326
|
}, "nativeWriterLeaseStore");
|
|
327
327
|
|
|
328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
329
329
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
330
330
|
const folder = dirname2(path);
|
|
331
331
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -340,7 +340,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
340
340
|
});
|
|
341
341
|
}, "acquireLock");
|
|
342
342
|
|
|
343
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
343
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
344
344
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
345
345
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
346
346
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -369,7 +369,7 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
369
369
|
}
|
|
370
370
|
}, "readBoundedUtf8File");
|
|
371
371
|
|
|
372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/files/safe-name.js
|
|
373
373
|
import { basename as basename3 } from "node:path";
|
|
374
374
|
var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
|
|
375
375
|
let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}---]/gu, "").replace(/^\.+/, "");
|