@wirecat/drive-cli 0.61.0 → 0.63.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/browse.d.ts +20 -0
- package/dist/browse.d.ts.map +1 -0
- package/dist/browse.js +146 -0
- package/dist/browse.js.map +1 -0
- package/dist/bundle/{all-profiles-H4L3Z5UM.js → all-profiles-GZJS3UKC.js} +13 -14
- package/dist/bundle/{anthropic-PPGFISVP.js → anthropic-RGV3WXX5.js} +9 -9
- package/dist/bundle/{app-server-YXVK2FUZ.js → app-server-AA2PJ7PV.js} +57 -55
- package/dist/bundle/{bun-DKZAL6ML.js → bun-OXZYIA3R.js} +2 -2
- package/dist/bundle/{bun-sqlite-MTZY36QK.js → bun-sqlite-D45NSDM3.js} +8 -8
- package/dist/bundle/{chunk-KV4267S4.js → chunk-27YUUGXQ.js} +1 -1
- package/dist/bundle/{chunk-6IBM4Z3V.js → chunk-2HF2MRXI.js} +1 -1
- package/dist/bundle/{chunk-HGOYQUT7.js → chunk-2NIC72HH.js} +4 -2
- package/dist/bundle/{chunk-XZBR2O63.js → chunk-2TDUGC5D.js} +1501 -781
- package/dist/bundle/{chunk-DEPMQHXQ.js → chunk-2TFXK3R4.js} +4 -4
- package/dist/bundle/{chunk-JVBLXSAA.js → chunk-33MGFUED.js} +652 -249
- package/dist/bundle/{chunk-S4YK6TTG.js → chunk-3BZRKLJ6.js} +13 -13
- package/dist/bundle/{chunk-6SUGANRJ.js → chunk-3HK5WMI5.js} +6 -6
- package/dist/bundle/{chunk-YWIU4HOT.js → chunk-3QINVLZI.js} +1 -1
- package/dist/bundle/{chunk-XYCCGGKN.js → chunk-44SBK6KB.js} +1207 -643
- package/dist/bundle/{chunk-LARQTWIL.js → chunk-4CIZWCXV.js} +1 -1
- package/dist/bundle/{chunk-WZ5XK74U.js → chunk-4OSSOWDM.js} +1 -1
- package/dist/bundle/{chunk-XGNC5OJG.js → chunk-4S4JMW6I.js} +1 -1
- package/dist/bundle/{chunk-WIU733D2.js → chunk-534OBX5Y.js} +1 -1
- package/dist/bundle/{chunk-UO2IUDVK.js → chunk-5PPL7JDM.js} +2 -2
- package/dist/bundle/{chunk-OFFA54TW.js → chunk-6EY46GAN.js} +2 -2
- package/dist/bundle/{chunk-RFRCOAWS.js → chunk-6KQJSFYF.js} +22 -22
- package/dist/bundle/{chunk-6DN4VPA7.js → chunk-6MQSQ4LX.js} +33 -31
- package/dist/bundle/{chunk-NIX2MWHZ.js → chunk-7EMQ26BA.js} +39 -25
- package/dist/bundle/{chunk-X2CXW4HM.js → chunk-ABYGSJZ4.js} +7 -7
- package/dist/bundle/{chunk-I26VL4W7.js → chunk-AEX37ETW.js} +2 -2
- package/dist/bundle/{chunk-36CWGEVX.js → chunk-BKYMKVHT.js} +2 -2
- package/dist/bundle/{chunk-3WZH3WV3.js → chunk-CE2TJBLP.js} +3 -3
- package/dist/bundle/{chunk-YMBFZA3H.js → chunk-DJ3SDJZY.js} +8 -8
- package/dist/bundle/{chunk-DXPOVLQC.js → chunk-DJHLVUL6.js} +227 -90
- package/dist/bundle/{chunk-VPDAH7PJ.js → chunk-E4SDKMBJ.js} +59 -1
- package/dist/bundle/{chunk-NZ2EIZLX.js → chunk-EOOGWUTP.js} +10 -10
- package/dist/bundle/{chunk-VYXVPYA3.js → chunk-FEZF3TII.js} +6 -6
- package/dist/bundle/{chunk-Q4XVBKX4.js → chunk-FRIJUILO.js} +3 -3
- package/dist/bundle/{chunk-OLPJRD4S.js → chunk-FUITWY7O.js} +1 -1
- package/dist/bundle/{chunk-AM4RIWOZ.js → chunk-HZZCEQTH.js} +18 -4
- package/dist/bundle/{chunk-2RJA4BQB.js → chunk-J24ZFCWM.js} +39 -26
- package/dist/bundle/{chunk-QSGT4ZH4.js → chunk-J4DIHPZ6.js} +1 -1
- package/dist/bundle/{chunk-ZHYRHERD.js → chunk-L37LMMRJ.js} +2 -2
- package/dist/bundle/{chunk-XLFJLZJL.js → chunk-LMAVCYLQ.js} +22 -14
- package/dist/bundle/{chunk-E6J5YH2N.js → chunk-LZEOQW7S.js} +36 -36
- package/dist/bundle/{chunk-FE5JJXKA.js → chunk-MOTRI3SY.js} +2 -2
- package/dist/bundle/{chunk-PJTX2MOI.js → chunk-ND6LLYGF.js} +98 -81
- package/dist/bundle/{chunk-3I2D5TK2.js → chunk-NEFSGCVA.js} +10 -10
- package/dist/bundle/{chunk-OGNOQDWB.js → chunk-O2XOX4HB.js} +34 -10
- package/dist/bundle/{chunk-DCBFNBEB.js → chunk-OD4U7GUY.js} +20 -20
- package/dist/bundle/{chunk-BXR7BKM3.js → chunk-OTROVC4E.js} +1 -1
- package/dist/bundle/{chunk-UKOYQC5O.js → chunk-OXY6SSZG.js} +184 -29
- package/dist/bundle/{chunk-ZMNYK3FC.js → chunk-PDCCYHCH.js} +5 -5
- package/dist/bundle/{chunk-J5UDQD5S.js → chunk-PO5RQQIG.js} +5 -5
- package/dist/bundle/{chunk-PY7LKNOS.js → chunk-Q5DJTRKV.js} +2 -2
- package/dist/bundle/{chunk-E5EXJ2XS.js → chunk-QCKZ3GAA.js} +4 -4
- package/dist/bundle/{chunk-3SJQNS72.js → chunk-RKELRWH7.js} +5 -5
- package/dist/bundle/{chunk-6Y2FWJZ4.js → chunk-S4RXABDR.js} +3 -3
- package/dist/bundle/{chunk-BQMIDYBA.js → chunk-SXM6MHRR.js} +12 -12
- package/dist/bundle/chunk-TF23BZW5.js +64 -0
- package/dist/bundle/{chunk-N2RLJTIW.js → chunk-TWUH22Z5.js} +4 -4
- package/dist/bundle/chunk-UPOSDTPT.js +87 -0
- package/dist/bundle/{chunk-J4HQVHMN.js → chunk-UQLWMGSD.js} +5 -5
- package/dist/bundle/{chunk-K7LS3NGM.js → chunk-V3NVXIQR.js} +736 -230
- package/dist/bundle/{chunk-TKGAYKXW.js → chunk-VAUMOZU5.js} +228 -66
- package/dist/bundle/{chunk-BF6TQMNB.js → chunk-VJEOGKAN.js} +8 -10
- package/dist/bundle/{chunk-XGMDWIUP.js → chunk-VKPCONDQ.js} +4 -4
- package/dist/bundle/{chunk-73WSULMI.js → chunk-WYGWWHZP.js} +2 -2
- package/dist/bundle/{chunk-5W56YMQS.js → chunk-XDC3TWTL.js} +60 -51
- package/dist/bundle/{chunk-5W7D5H2R.js → chunk-XIUDS3OK.js} +1 -1
- package/dist/bundle/{chunk-3UPIJ7DW.js → chunk-XNVFKMVR.js} +21868 -4533
- package/dist/bundle/{chunk-O5CUFS7T.js → chunk-XR6ESRU6.js} +2 -2
- package/dist/bundle/{chunk-EPCJUL6M.js → chunk-Y6GNA7HE.js} +3 -3
- package/dist/bundle/{chunk-67HS46KM.js → chunk-YGU6ULU5.js} +12 -12
- package/dist/bundle/{chunk-HFM653T3.js → chunk-YIP7ELON.js} +768 -131
- package/dist/bundle/{chunk-3252WXOL.js → chunk-YUWPNG7B.js} +1 -1
- package/dist/bundle/{chunk-QR5VQXQ5.js → chunk-Z42YYLTS.js} +59 -37
- package/dist/bundle/{chunk-AWN22PJK.js → chunk-Z5KC7XBR.js} +3 -3
- package/dist/bundle/{chunk-ECEYAQGN.js → chunk-ZM5J6ZMB.js} +4 -2
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-ZMOUUOT2.js} +1 -1
- package/dist/bundle/{chunk-CACYL36O.js → chunk-ZOJU7ZFI.js} +8 -8
- package/dist/bundle/command-contract-BRW3AP44.js +38 -0
- package/dist/bundle/{decode-62A3HGPW.js → decode-G5YEIPNC.js} +8 -8
- package/dist/bundle/{dispatch-IE7PBEQC.js → dispatch-GEFIXA6X.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-BGBPRGR5.js → echarts-W2CWHNXR.js} +2 -2
- package/dist/bundle/{embed-J3IBVV2V.js → embed-OBFFPVF4.js} +9 -9
- package/dist/bundle/{embedder-QFPMDRT2.js → embedder-NGCBQHIG.js} +12 -12
- package/dist/bundle/entry-ET6HGM7A.js +22 -0
- package/dist/bundle/{failure-BKOGBMIC.js → failure-GV77W3CD.js} +4 -4
- package/dist/bundle/first-run-JG52UZVO.js +30 -0
- package/dist/bundle/first-screen-CIL3GFAA.js +36 -0
- package/dist/bundle/{google-RXM2XEPD.js → google-CIWUVJ5C.js} +13 -13
- package/dist/bundle/{google-api-NC65BZO4.js → google-api-Z3NSTBBR.js} +56 -57
- package/dist/bundle/grants-3S4RL3WB.js +104 -0
- package/dist/bundle/{identity-PI6F2GWA.js → identity-OM6GFZ7T.js} +6 -6
- package/dist/bundle/{instructions-6LPDSKAD.js → instructions-YQBQSYSS.js} +1 -1
- package/dist/bundle/{login-HTY7GT2S.js → login-7RYSDVN3.js} +62 -63
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-GWDA3HOA.js} +2 -2
- package/dist/bundle/{node-IB246NCQ.js → node-IVU33RL7.js} +2 -2
- package/dist/bundle/{node-sqlite-G2Y5SFJM.js → node-sqlite-SIH5BEW2.js} +9 -9
- package/dist/bundle/oauth-PT4JEHLL.js +22 -0
- package/dist/bundle/{open-WD4GFSJD.js → open-IAO2SNII.js} +8 -8
- package/dist/bundle/{openai-QVM4PMY7.js → openai-SGOUBHXP.js} +17 -17
- package/dist/bundle/{process-SWPJGPQC.js → process-BPBMV3AT.js} +1 -1
- package/dist/bundle/{program-WHYFAMXR.js → program-MYKKJ4F6.js} +231 -87
- package/dist/bundle/prompt-3ZM64DCB.js +17 -0
- package/dist/bundle/{reasons-Q34DQWB6.js → reasons-57J2D77K.js} +5 -5
- package/dist/bundle/{recognize-DM3YWHSE.js → recognize-A5C5RPB3.js} +7 -7
- package/dist/bundle/{remote-KXVWRK7J.js → remote-VWYFLRGO.js} +10 -10
- package/dist/bundle/{rerank-TINXM3MY.js → rerank-4NGQWREA.js} +10 -10
- package/dist/bundle/{serve-IY2WL656.js → serve-Y6LQTFH5.js} +12 -12
- package/dist/bundle/{server-VPY3OWPC.js → server-6AUHIIUA.js} +43 -44
- package/dist/bundle/server-PFHI35HA.js +69 -0
- package/dist/bundle/{services-PXNBOCOC.js → services-2W4J7EMW.js} +47 -32
- package/dist/bundle/{sqlite-runtime-5ZK2CV7Y.js → sqlite-runtime-P6BBDX2H.js} +9 -9
- package/dist/bundle/{start-LDVCN3DK.js → start-AFFA3LKM.js} +9 -7
- package/dist/bundle/{state-3MKTT3VS.js → state-PXKKXR3R.js} +9 -9
- package/dist/bundle/{store-4VQOT5IJ.js → store-CN6JEUC4.js} +28 -18
- package/dist/bundle/{store-7M4MSUJV.js → store-IVV2BAGZ.js} +78 -28
- package/dist/bundle/store-maintenance-command-MSY2QNEH.js +59 -0
- package/dist/bundle/tokens-P4LPNUFW.js +102 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +5 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/folders.d.ts +2 -1
- package/dist/commands/folders.d.ts.map +1 -1
- package/dist/commands/folders.js +16 -3
- package/dist/commands/folders.js.map +1 -1
- package/dist/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +15 -6
- 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/chunk-BCWUDTYQ.js +0 -22
- package/dist/bundle/chunk-W767AUNR.js +0 -132
- package/dist/bundle/chunk-WUP2MJDN.js +0 -42
- package/dist/bundle/command-contract-T3EO5AYD.js +0 -39
- package/dist/bundle/entry-YQSYER66.js +0 -22
- package/dist/bundle/first-run-ZIFPVZAI.js +0 -30
- package/dist/bundle/first-screen-L5U26EY7.js +0 -37
- package/dist/bundle/grants-SEWUYYH3.js +0 -105
- package/dist/bundle/oauth-MWBKBI4T.js +0 -22
- package/dist/bundle/prompt-OVYCGZB7.js +0 -17
- package/dist/bundle/server-EMWVVT2C.js +0 -70
- package/dist/bundle/store-maintenance-command-NRATYBWD.js +0 -60
- package/dist/bundle/tokens-XUKLM3SL.js +0 -103
- /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-ZQ3GWKDQ.js} +0 -0
|
@@ -3,24 +3,24 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZM5J6ZMB.js";
|
|
7
7
|
import {
|
|
8
8
|
ensureSqlite
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BKYMKVHT.js";
|
|
10
10
|
import {
|
|
11
11
|
catchCrashes
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UQLWMGSD.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4OSSOWDM.js";
|
|
16
16
|
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.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/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.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/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.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/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-JG52UZVO.js"),
|
|
102
|
+
import("./command-contract-BRW3AP44.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-3ZM64DCB.js");
|
|
118
118
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
119
119
|
input: io.stdin,
|
|
120
120
|
output: io.stderr,
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2HF2MRXI.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
|
|
11
11
|
var DESCRIBE_FORMAT = 1;
|
|
12
12
|
var describeAnswer = /* @__PURE__ */ __name((tool) => ({
|
|
13
13
|
wcat_describe: DESCRIBE_FORMAT,
|
|
@@ -36,7 +36,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
|
|
|
36
36
|
};
|
|
37
37
|
}, "parseDescribe");
|
|
38
38
|
|
|
39
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
39
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
|
|
40
40
|
var FIRST_PARTY_TOOLS = [
|
|
41
41
|
{ name: "tg", package: "@wirecat/tg-cli" },
|
|
42
42
|
{ name: "max", package: "@wirecat/max-cli" },
|
|
@@ -59,16 +59,38 @@ var PROGRAM_PREFIX = "wcat-";
|
|
|
59
59
|
var DESCRIBE_FLAG = "--wcat-describe";
|
|
60
60
|
var DISPATCH_FLAG = "--wcat-dispatch";
|
|
61
61
|
|
|
62
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
62
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
|
|
63
63
|
import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
64
64
|
import { join } from "node:path";
|
|
65
|
-
var SHIM_FORMAT =
|
|
65
|
+
var SHIM_FORMAT = 2;
|
|
66
66
|
var MARK = /^(?:#|REM) wirecat-shim (\d+) (launcher|shortcut) (\S+)\r?$/m;
|
|
67
67
|
var NOTE = {
|
|
68
68
|
launcher: "Written by @wirecat/cli-base. Any WireCat tool rewrites it when it breaks; it is safe to delete.",
|
|
69
69
|
shortcut: "Made by `wcat shortcuts add`; `wcat shortcuts remove` takes it out."
|
|
70
70
|
};
|
|
71
71
|
var shellQuote = /* @__PURE__ */ __name((text) => `'${text.replaceAll("'", `'\\''`)}'`, "shellQuote");
|
|
72
|
+
var launcherBody = /* @__PURE__ */ __name((dir, target, name) => [
|
|
73
|
+
'ok() { [ -f "$1" ] && [ -x "$1" ]; }',
|
|
74
|
+
`dir=${shellQuote(dir)}`,
|
|
75
|
+
`target=${shellQuote(join(dir, target))}`,
|
|
76
|
+
'if ! ok "$target"; then',
|
|
77
|
+
' for t in "$dir"/wcat-*; do',
|
|
78
|
+
' if ok "$t"; then target=$t; break; fi',
|
|
79
|
+
" done",
|
|
80
|
+
"fi",
|
|
81
|
+
`if ok "$target"; then exec "$target" ${DISPATCH_FLAG} "$@"; fi`,
|
|
82
|
+
'if [ -z "$WIRECAT_LAUNCHER_SKIP" ]; then',
|
|
83
|
+
" WIRECAT_LAUNCHER_SKIP=1; export WIRECAT_LAUNCHER_SKIP",
|
|
84
|
+
" set -f; oldifs=$IFS; IFS=:",
|
|
85
|
+
" for d in $PATH; do",
|
|
86
|
+
` if [ -n "$d" ] && [ "$d" != "$dir" ] && ok "$d/${name}"; then IFS=$oldifs; exec "$d/${name}" "$@"; fi`,
|
|
87
|
+
" done",
|
|
88
|
+
" IFS=$oldifs; set +f",
|
|
89
|
+
"fi",
|
|
90
|
+
`printf '%s\\n' "${name}: $target is missing and no other ${name}-* program was found in $dir or on PATH." \\`,
|
|
91
|
+
` "This launcher is safe to delete: $dir/${name}" >&2`,
|
|
92
|
+
"exit 127"
|
|
93
|
+
], "launcherBody");
|
|
72
94
|
var shimFiles = /* @__PURE__ */ __name((kind, { dir, name, target, platform }) => {
|
|
73
95
|
const mark = `wirecat-shim ${SHIM_FORMAT} ${kind} ${target}`;
|
|
74
96
|
const extra = kind === "launcher" ? ` ${DISPATCH_FLAG}` : "";
|
|
@@ -76,11 +98,13 @@ var shimFiles = /* @__PURE__ */ __name((kind, { dir, name, target, platform }) =
|
|
|
76
98
|
return [
|
|
77
99
|
{
|
|
78
100
|
path: join(dir, name),
|
|
79
|
-
text:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
`
|
|
101
|
+
text: [
|
|
102
|
+
"#!/bin/sh",
|
|
103
|
+
`# ${mark}`,
|
|
104
|
+
`# ${NOTE[kind]}`,
|
|
105
|
+
...kind === "launcher" ? launcherBody(dir, target, name) : [`exec ${shellQuote(join(dir, target))} "$@"`],
|
|
106
|
+
""
|
|
107
|
+
].join("\n")
|
|
84
108
|
}
|
|
85
109
|
];
|
|
86
110
|
return [
|
|
@@ -2,14 +2,14 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
errorObjectOf
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UQLWMGSD.js";
|
|
6
6
|
import {
|
|
7
7
|
visibleControls
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2HF2MRXI.js";
|
|
9
9
|
import {
|
|
10
10
|
LOG_ATTRIBUTE_KEYS,
|
|
11
11
|
isContentKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6EY46GAN.js";
|
|
13
13
|
import {
|
|
14
14
|
getDotPath,
|
|
15
15
|
object,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
safeParse,
|
|
18
18
|
string,
|
|
19
19
|
unknown
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FEZF3TII.js";
|
|
21
21
|
import {
|
|
22
22
|
CliError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4OSSOWDM.js";
|
|
24
24
|
import {
|
|
25
25
|
__commonJS,
|
|
26
26
|
__name,
|
|
@@ -1893,7 +1893,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1893
1893
|
}
|
|
1894
1894
|
});
|
|
1895
1895
|
|
|
1896
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1896
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
1897
1897
|
import { createRequire } from "node:module";
|
|
1898
1898
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
1899
1899
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -1913,7 +1913,7 @@ var systemKeyring = {
|
|
|
1913
1913
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
1914
1914
|
};
|
|
1915
1915
|
|
|
1916
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1916
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
1917
1917
|
import { homedir, userInfo } from "node:os";
|
|
1918
1918
|
import { join, posix, win32 } from "node:path";
|
|
1919
1919
|
var PATH_KINDS = ["config", "state", "cache"];
|
|
@@ -1965,11 +1965,11 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
1965
1965
|
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
1966
1966
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
|
|
1967
1967
|
|
|
1968
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1968
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
1969
1969
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
1970
1970
|
import { join as join3, resolve } from "node:path";
|
|
1971
1971
|
|
|
1972
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1972
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
1973
1973
|
import { randomBytes } from "node:crypto";
|
|
1974
1974
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
1975
1975
|
import { dirname, join as join2 } from "node:path";
|
|
@@ -2013,7 +2013,7 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2013
2013
|
`, 384);
|
|
2014
2014
|
}, "saveConfigFile");
|
|
2015
2015
|
|
|
2016
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2016
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2017
2017
|
var keyringService = /* @__PURE__ */ __name((service, _configDir, _isolated) => service, "keyringService");
|
|
2018
2018
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2019
2019
|
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
@@ -2149,7 +2149,7 @@ var Credentials = class {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
};
|
|
2151
2151
|
|
|
2152
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2152
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
2153
2153
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
2154
2154
|
if (signal?.aborted)
|
|
2155
2155
|
return Promise.reject(signal.reason);
|
|
@@ -2177,7 +2177,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
2177
2177
|
});
|
|
2178
2178
|
}, "waitForDrain");
|
|
2179
2179
|
|
|
2180
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2180
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
2181
2181
|
var processStreams = {
|
|
2182
2182
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2183
2183
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -2206,7 +2206,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
2206
2206
|
};
|
|
2207
2207
|
}, "captureStreams");
|
|
2208
2208
|
|
|
2209
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2209
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
2210
2210
|
var DEFAULT_RETRY = {
|
|
2211
2211
|
retries: 1,
|
|
2212
2212
|
baseDelayMs: 250,
|
|
@@ -2218,7 +2218,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
2218
2218
|
return Math.round(random() * ceiling);
|
|
2219
2219
|
}, "backoffMs");
|
|
2220
2220
|
|
|
2221
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2221
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
|
|
2222
2222
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
2223
2223
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
2224
2224
|
if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
|
|
@@ -2283,7 +2283,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
2283
2283
|
return project(value, fields);
|
|
2284
2284
|
}, "projectFields");
|
|
2285
2285
|
|
|
2286
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2286
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
2287
2287
|
var BATCH_LIMITS = Object.freeze({
|
|
2288
2288
|
requests: 32,
|
|
2289
2289
|
input_bytes: 262144,
|
|
@@ -2410,7 +2410,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2410
2410
|
};
|
|
2411
2411
|
}, "runBatch");
|
|
2412
2412
|
|
|
2413
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2413
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
|
|
2414
2414
|
import { fileURLToPath } from "node:url";
|
|
2415
2415
|
var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
2416
2416
|
var baseConstantsSchema = object({});
|
|
@@ -2465,7 +2465,7 @@ var loadConstants = /* @__PURE__ */ __name((layers, schema) => {
|
|
|
2465
2465
|
return deepFreeze(result.output);
|
|
2466
2466
|
}, "loadConstants");
|
|
2467
2467
|
|
|
2468
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2468
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
2469
2469
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2470
2470
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2471
2471
|
if (signal?.aborted) {
|
|
@@ -2479,7 +2479,7 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2479
2479
|
}, { once: true });
|
|
2480
2480
|
}), "realSleep");
|
|
2481
2481
|
|
|
2482
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2482
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2483
2483
|
import { appendFileSync } from "node:fs";
|
|
2484
2484
|
var REDACTED_FIELDS = [
|
|
2485
2485
|
"authorization",
|
|
@@ -2574,7 +2574,7 @@ var silent = {
|
|
|
2574
2574
|
}, "error")
|
|
2575
2575
|
};
|
|
2576
2576
|
|
|
2577
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2577
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
2578
2578
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2579
2579
|
import { styleText } from "node:util";
|
|
2580
2580
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2648,7 +2648,7 @@ var BORDERLESS = {
|
|
|
2648
2648
|
middle: ""
|
|
2649
2649
|
};
|
|
2650
2650
|
|
|
2651
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2651
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2652
2652
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2653
2653
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2654
2654
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|