vercel 59.11.2 → 59.11.7
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/chunks/{add-BKSHWTPX.js → add-KSJQYR5C.js} +23 -18
- package/dist/chunks/{add-RBW7QITR.js → add-PERLOALD.js} +37 -23
- package/dist/chunks/{add-HPLJZFM2.js → add-WU2QYHYL.js} +23 -18
- package/dist/chunks/{build-V4ZLAJWB.js → build-F3J6FLPD.js} +23 -18
- package/dist/chunks/{chunk-NGGLYKNU.js → chunk-26CU4Q3C.js} +3 -115
- package/dist/chunks/{chunk-QFAS4OVW.js → chunk-2JIX6UMI.js} +3 -84
- package/dist/chunks/chunk-2TSBB22D.js +14059 -0
- package/dist/chunks/chunk-332LMJLZ.js +16014 -0
- package/dist/chunks/{chunk-AYLY3ZVL.js → chunk-3VM7HWF6.js} +2 -2
- package/dist/chunks/chunk-4IALDGB7.js +22 -0
- package/dist/chunks/chunk-4IVSM24H.js +522 -0
- package/dist/chunks/{chunk-5XECIWME.js → chunk-5NF5HOBJ.js} +5 -3
- package/dist/chunks/chunk-6E6KPBXY.js +43 -0
- package/dist/chunks/chunk-7KROIXQM.js +59 -0
- package/dist/chunks/{chunk-ASBP32T6.js → chunk-7MRDIPJY.js} +1 -1
- package/dist/chunks/chunk-A5JZS6ZN.js +92 -0
- package/dist/chunks/{chunk-7ST552E3.js → chunk-AKLTIZCU.js} +1 -1
- package/dist/chunks/{chunk-26XDDLXM.js → chunk-ARU7VBKR.js} +2 -2
- package/dist/chunks/chunk-B5XLQKHI.js +849 -0
- package/dist/chunks/chunk-C762AAVU.js +137 -0
- package/dist/chunks/{chunk-WA2SJE5S.js → chunk-CEDN47PH.js} +4 -4
- package/dist/chunks/{chunk-ONRLTUP2.js → chunk-CNDPIHY5.js} +24 -22
- package/dist/chunks/{chunk-BMKU5KEL.js → chunk-CV5YC2EN.js} +1 -1
- package/dist/chunks/chunk-DBYHS3CK.js +257 -0
- package/dist/chunks/{chunk-HDBQPBL6.js → chunk-DSTNNQVV.js} +12 -8
- package/dist/chunks/{chunk-QAT3CW4G.js → chunk-EFYMIIER.js} +2 -2
- package/dist/chunks/{chunk-NBW3BWOJ.js → chunk-EPOLDWRA.js} +2 -2
- package/dist/chunks/{chunk-B4TXCKXE.js → chunk-EZQDYIVB.js} +10 -8
- package/dist/chunks/{chunk-2EAIC3SH.js → chunk-FL4JLNT2.js} +8 -8
- package/dist/chunks/chunk-FRVG4OW3.js +7438 -0
- package/dist/chunks/{chunk-FKDO3CM4.js → chunk-FVNJTRCE.js} +17 -13
- package/dist/chunks/chunk-FVT74RZ5.js +1536 -0
- package/dist/chunks/chunk-G3PXSXIB.js +18188 -0
- package/dist/chunks/chunk-G5FBSUL4.js +822 -0
- package/dist/chunks/{chunk-FRAXI2WT.js → chunk-GCVXKRR5.js} +3 -3
- package/dist/chunks/chunk-GHKJAK5V.js +1288 -0
- package/dist/chunks/{chunk-Q5K5DEOK.js → chunk-GUU4Z2AQ.js} +42 -28
- package/dist/chunks/{chunk-OQ3C5VXZ.js → chunk-GVNCVKCI.js} +4 -2
- package/dist/chunks/chunk-HB4UKFDO.js +1295 -0
- package/dist/chunks/chunk-HRXRELD3.js +338 -0
- package/dist/chunks/{chunk-IJ4X426J.js → chunk-IIMSID24.js} +1 -1
- package/dist/chunks/{chunk-O75LSD3C.js → chunk-JSD4EZL3.js} +1 -1
- package/dist/chunks/{chunk-7AEEQOD4.js → chunk-K3RED3VO.js} +1 -1
- package/dist/chunks/{chunk-RSEAADCE.js → chunk-KEKR7OCB.js} +6 -4
- package/dist/chunks/{chunk-3T7WSWZH.js → chunk-KFWQ3EFH.js} +1 -1
- package/dist/chunks/{chunk-L3UXB2CW.js → chunk-KW7BS25T.js} +1 -1
- package/dist/chunks/{chunk-RO44KX6Y.js → chunk-N4QHMXOO.js} +11 -7
- package/dist/chunks/{chunk-XRWOTCDO.js → chunk-ND5CF2H3.js} +1 -1
- package/dist/chunks/{chunk-RSJBU3ON.js → chunk-NSOYO6JQ.js} +35 -27
- package/dist/chunks/{chunk-RKDCNQ4S.js → chunk-NW34PW6V.js} +3 -105
- package/dist/chunks/{chunk-C5HKWXRR.js → chunk-OAMU5QO6.js} +1 -1
- package/dist/chunks/{chunk-MTWHQEXI.js → chunk-OIH6FP5Y.js} +5 -3
- package/dist/chunks/chunk-P7VSBDR4.js +827 -0
- package/dist/chunks/chunk-PEC3CQSK.js +90 -0
- package/dist/chunks/{chunk-QDV5LZ4Q.js → chunk-PFM75KY3.js} +12 -8
- package/dist/chunks/chunk-PJXMXMCO.js +81 -0
- package/dist/chunks/chunk-PNGVSHR3.js +40 -0
- package/dist/chunks/{chunk-TPATD2MM.js → chunk-QHS645AZ.js} +14 -6
- package/dist/chunks/{chunk-OTXE7MHI.js → chunk-QKX7WKIN.js} +8 -6
- package/dist/chunks/chunk-QOPTXV4G.js +417 -0
- package/dist/chunks/chunk-RN6V5ODW.js +114 -0
- package/dist/chunks/chunk-RVBZ64EQ.js +52 -0
- package/dist/chunks/chunk-SHFNEZVI.js +49 -0
- package/dist/chunks/{chunk-OO3OF6MK.js → chunk-TGNEG57M.js} +44 -15
- package/dist/chunks/{chunk-WNAKOXGK.js → chunk-TO7QZGYK.js} +1 -1
- package/dist/chunks/chunk-UARGTFCT.js +875 -0
- package/dist/chunks/{chunk-FWKSJYDV.js → chunk-UG2WOB5L.js} +1 -1
- package/dist/chunks/chunk-V4RMJKQP.js +36 -0
- package/dist/chunks/chunk-VT3Z7HF6.js +233 -0
- package/dist/chunks/chunk-VUS2JQB2.js +121 -0
- package/dist/chunks/{chunk-6CZZ3SH3.js → chunk-VYC45Q4Z.js} +2 -2
- package/dist/chunks/{chunk-4KVJ2M4J.js → chunk-WL6QYSGD.js} +78 -17
- package/dist/chunks/{chunk-FZRBF25Y.js → chunk-X7DBBZQD.js} +4 -4
- package/dist/chunks/{chunk-2NJJ2K5S.js → chunk-XD4DCYMX.js} +6 -6
- package/dist/chunks/{chunk-ZSFEACZU.js → chunk-XFF5TGRA.js} +1 -1
- package/dist/chunks/{chunk-6TBDHUXK.js → chunk-XIFATBH5.js} +21 -15
- package/dist/chunks/chunk-XNIZGCN5.js +58 -0
- package/dist/chunks/chunk-XPJLPUKO.js +117 -0
- package/dist/chunks/{chunk-FXD67VN5.js → chunk-XUAWTW4W.js} +1 -1
- package/dist/chunks/{chunk-I526H4AS.js → chunk-YS76T533.js} +2 -2
- package/dist/chunks/chunk-Z7JWYFOY.js +58 -0
- package/dist/chunks/{chunk-6JPVTPTU.js → chunk-ZBEECGFD.js} +3 -3
- package/dist/chunks/{chunk-52QYYTM5.js → chunk-ZDU2NODC.js} +3 -127
- package/dist/chunks/chunk-ZW6HETRE.js +97 -0
- package/dist/chunks/{clear-IYGWCNXT.js → clear-XUQO4ZTK.js} +23 -18
- package/dist/chunks/{compile-vercel-config-NEEBZRUJ.js → compile-vercel-config-D3ARNHTN.js} +8 -11
- package/dist/chunks/{config-6DS6BBR2.js → config-37OAE7QJ.js} +22 -17
- package/dist/chunks/{config-NTB5EMV4.js → config-MEDLXUVM.js} +23 -18
- package/dist/chunks/{delete-LLC2OGHA.js → delete-3N3YZZOF.js} +16 -12
- package/dist/chunks/{delete-LSGID5FV.js → delete-VSWDZ2SW.js} +19 -14
- package/dist/chunks/detect-projects-ODNU4PK2.js +18 -0
- package/dist/chunks/detect-services-TESZCQWG.js +40 -0
- package/dist/chunks/{disable-H4EXEQK7.js → disable-A4FLFMC7.js} +17 -13
- package/dist/chunks/{discard-FG6VKHWN.js → discard-CHGFULBZ.js} +17 -13
- package/dist/chunks/{edit-YE7D3CPJ.js → edit-JZ63AJYQ.js} +17 -13
- package/dist/chunks/{edit-BZJSGUHT.js → edit-MHSYAPDR.js} +19 -15
- package/dist/chunks/{enable-6ESD4QTE.js → enable-KD46SEC5.js} +17 -13
- package/dist/chunks/{exec-XH4K34JM.js → exec-4IPHZ55G.js} +9 -5
- package/dist/chunks/{export-QWSJROLG.js → export-42QZLBSN.js} +16 -13
- package/dist/chunks/{image-LTHQMKFG.js → image-GP4H73A2.js} +11 -8
- package/dist/chunks/{import-builders-6O7ILGQJ.js → import-builders-6TBLMPL2.js} +18 -13
- package/dist/chunks/{inspect-2C4ZSNYC.js → inspect-5FMWMY3C.js} +22 -18
- package/dist/chunks/{inspect-N6SMHV3Z.js → inspect-MUVK6MMT.js} +18 -14
- package/dist/chunks/{inspect-F7KCTHIL.js → inspect-Q3DWW7MC.js} +22 -18
- package/dist/chunks/{inspect-TWDPMXZ5.js → inspect-QFXAOUL4.js} +18 -14
- package/dist/chunks/{inspect-ICKNCDMT.js → inspect-RNTSYM6O.js} +18 -14
- package/dist/chunks/{list-NWTIJF3L.js → list-IHHIPXEC.js} +20 -16
- package/dist/chunks/{list-IPGQVBJO.js → list-JRNWLSO5.js} +16 -14
- package/dist/chunks/{list-DS7ZOUXA.js → list-XHD5DLEX.js} +23 -19
- package/dist/chunks/{login-F7A7ONKC.js → login-PCT6KFWY.js} +23 -18
- package/dist/chunks/{ls-NBDX3MKN.js → ls-GPEHEFCF.js} +24 -18
- package/dist/chunks/{ls-RNGO257R.js → ls-PF7F4PP4.js} +27 -23
- package/dist/chunks/{ls-XINES6PL.js → ls-PQZ2RIDX.js} +24 -18
- package/dist/chunks/{ls-D4TUDBIH.js → ls-SVOHC3XW.js} +24 -18
- package/dist/chunks/{ls-2QW3ZSM6.js → ls-TGHCCARZ.js} +24 -18
- package/dist/chunks/{ls-LSJEUPFX.js → ls-VRIH5WA3.js} +22 -15
- package/dist/chunks/{open-VRQDWZAW.js → open-E7DEKYDU.js} +18 -13
- package/dist/chunks/{permissions-6C5C7TEV.js → permissions-JKOONWVL.js} +14 -11
- package/dist/chunks/{publish-GVIZPNLN.js → publish-EDDELDE5.js} +17 -13
- package/dist/chunks/pull-646WEVDE.js +45 -0
- package/dist/chunks/{push-EFZ5P5Z6.js → push-LTNW5OVD.js} +23 -18
- package/dist/chunks/{query-GBS2PIT4.js → query-LU4N6KPO.js} +22 -19
- package/dist/chunks/{reorder-TN65IFRL.js → reorder-22PKJMZP.js} +17 -13
- package/dist/chunks/{reply-DYVEV3PY.js → reply-SF2EZMVZ.js} +17 -13
- package/dist/chunks/{resolve-JAWFBPUM.js → resolve-ZCZGXTOT.js} +16 -12
- package/dist/chunks/resolve-deployment-framework-preset-NPE6RLV3.js +36 -0
- package/dist/chunks/{restore-TJVMHUBQ.js → restore-VJAWZXB4.js} +17 -13
- package/dist/chunks/{rm-7XACNZ2U.js → rm-KN2QFCKO.js} +23 -18
- package/dist/chunks/{rm-REJVXALW.js → rm-KVEAJPRE.js} +23 -18
- package/dist/chunks/{rm-CBPNMSRP.js → rm-OSZ5FZUM.js} +23 -16
- package/dist/chunks/{rm-5B5VHWWN.js → rm-W722Q2AO.js} +21 -18
- package/dist/chunks/{rm-HQ5CYNJA.js → rm-WNPGTUBH.js} +23 -18
- package/dist/chunks/{routes-2OLIBRYX.js → routes-QVMBXOSX.js} +7 -3
- package/dist/chunks/{rule-inspect-ZSTDDFID.js → rule-inspect-25Z6SNX3.js} +28 -24
- package/dist/chunks/{rules-VGV4M4KY.js → rules-65LKAQ35.js} +15 -12
- package/dist/chunks/{schema-45SJNY5L.js → schema-7D6IGJEJ.js} +9 -7
- package/dist/chunks/{schema-GMTQOQCV.js → schema-NXCW4M75.js} +19 -17
- package/dist/chunks/{set-Z5FO2FCC.js → set-FYJVKMPV.js} +20 -13
- package/dist/chunks/setup-and-link-KXPZE32P.js +65 -0
- package/dist/chunks/{tags-SDRXWJ63.js → tags-ANIRP5E3.js} +10 -7
- package/dist/chunks/{types-JGANJ5EQ.js → types-4GAJ7XQQ.js} +9 -7
- package/dist/chunks/{update-JBQBC3IV.js → update-UT6CTKVG.js} +32 -19
- package/dist/commands/build/index.js +86 -49
- package/dist/commands/deploy/index.js +75 -66
- package/dist/commands/dev/index.js +98 -52
- package/dist/commands/env/index.js +67 -43
- package/dist/commands/link/index.js +48 -27
- package/dist/commands/list/index.js +33 -22
- package/dist/commands-bulk.js +1659 -1287
- package/dist/index.js +62 -40
- package/dist/version.mjs +1 -1
- package/package.json +46 -46
- package/dist/chunks/chunk-WYU64FLP.js +0 -62123
- package/dist/chunks/chunk-XNFHNTS2.js +0 -2939
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __dirname_(__filename);
|
|
7
|
+
import {
|
|
8
|
+
__commonJS,
|
|
9
|
+
__require
|
|
10
|
+
} from "./chunk-TZ2YI2VH.js";
|
|
11
|
+
|
|
12
|
+
// ../../node_modules/.pnpm/is-docker@2.2.1/node_modules/is-docker/index.js
|
|
13
|
+
var require_is_docker = __commonJS({
|
|
14
|
+
"../../node_modules/.pnpm/is-docker@2.2.1/node_modules/is-docker/index.js"(exports, module) {
|
|
15
|
+
"use strict";
|
|
16
|
+
var fs = __require("fs");
|
|
17
|
+
var isDocker;
|
|
18
|
+
function hasDockerEnv() {
|
|
19
|
+
try {
|
|
20
|
+
fs.statSync("/.dockerenv");
|
|
21
|
+
return true;
|
|
22
|
+
} catch (_) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function hasDockerCGroup() {
|
|
27
|
+
try {
|
|
28
|
+
return fs.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
|
|
29
|
+
} catch (_) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
module.exports = () => {
|
|
34
|
+
if (isDocker === void 0) {
|
|
35
|
+
isDocker = hasDockerEnv() || hasDockerCGroup();
|
|
36
|
+
}
|
|
37
|
+
return isDocker;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// ../../node_modules/.pnpm/is-wsl@2.2.0/node_modules/is-wsl/index.js
|
|
43
|
+
var require_is_wsl = __commonJS({
|
|
44
|
+
"../../node_modules/.pnpm/is-wsl@2.2.0/node_modules/is-wsl/index.js"(exports, module) {
|
|
45
|
+
"use strict";
|
|
46
|
+
var os = __require("os");
|
|
47
|
+
var fs = __require("fs");
|
|
48
|
+
var isDocker = require_is_docker();
|
|
49
|
+
var isWsl = () => {
|
|
50
|
+
if (process.platform !== "linux") {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
if (os.release().toLowerCase().includes("microsoft")) {
|
|
54
|
+
if (isDocker()) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
try {
|
|
60
|
+
return fs.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isDocker() : false;
|
|
61
|
+
} catch (_) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
if (process.env.__IS_WSL_TEST__) {
|
|
66
|
+
module.exports = isWsl;
|
|
67
|
+
} else {
|
|
68
|
+
module.exports = isWsl();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
// ../../node_modules/.pnpm/define-lazy-prop@2.0.0/node_modules/define-lazy-prop/index.js
|
|
74
|
+
var require_define_lazy_prop = __commonJS({
|
|
75
|
+
"../../node_modules/.pnpm/define-lazy-prop@2.0.0/node_modules/define-lazy-prop/index.js"(exports, module) {
|
|
76
|
+
"use strict";
|
|
77
|
+
module.exports = (object, propertyName, fn) => {
|
|
78
|
+
const define = (value) => Object.defineProperty(object, propertyName, { value, enumerable: true, writable: true });
|
|
79
|
+
Object.defineProperty(object, propertyName, {
|
|
80
|
+
configurable: true,
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get() {
|
|
83
|
+
const result = fn();
|
|
84
|
+
define(result);
|
|
85
|
+
return result;
|
|
86
|
+
},
|
|
87
|
+
set(value) {
|
|
88
|
+
define(value);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
return object;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
// ../../node_modules/.pnpm/open@8.4.0/node_modules/open/index.js
|
|
97
|
+
var require_open = __commonJS({
|
|
98
|
+
"../../node_modules/.pnpm/open@8.4.0/node_modules/open/index.js"(exports, module) {
|
|
99
|
+
var path = __require("path");
|
|
100
|
+
var childProcess = __require("child_process");
|
|
101
|
+
var { promises: fs, constants: fsConstants } = __require("fs");
|
|
102
|
+
var isWsl = require_is_wsl();
|
|
103
|
+
var isDocker = require_is_docker();
|
|
104
|
+
var defineLazyProperty = require_define_lazy_prop();
|
|
105
|
+
var localXdgOpenPath = path.join(__dirname, "xdg-open");
|
|
106
|
+
var { platform, arch } = process;
|
|
107
|
+
var getWslDrivesMountPoint = (() => {
|
|
108
|
+
const defaultMountPoint = "/mnt/";
|
|
109
|
+
let mountPoint;
|
|
110
|
+
return async function() {
|
|
111
|
+
if (mountPoint) {
|
|
112
|
+
return mountPoint;
|
|
113
|
+
}
|
|
114
|
+
const configFilePath = "/etc/wsl.conf";
|
|
115
|
+
let isConfigFileExists = false;
|
|
116
|
+
try {
|
|
117
|
+
await fs.access(configFilePath, fsConstants.F_OK);
|
|
118
|
+
isConfigFileExists = true;
|
|
119
|
+
} catch {
|
|
120
|
+
}
|
|
121
|
+
if (!isConfigFileExists) {
|
|
122
|
+
return defaultMountPoint;
|
|
123
|
+
}
|
|
124
|
+
const configContent = await fs.readFile(configFilePath, { encoding: "utf8" });
|
|
125
|
+
const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
|
|
126
|
+
if (!configMountPoint) {
|
|
127
|
+
return defaultMountPoint;
|
|
128
|
+
}
|
|
129
|
+
mountPoint = configMountPoint.groups.mountPoint.trim();
|
|
130
|
+
mountPoint = mountPoint.endsWith("/") ? mountPoint : `${mountPoint}/`;
|
|
131
|
+
return mountPoint;
|
|
132
|
+
};
|
|
133
|
+
})();
|
|
134
|
+
var pTryEach = async (array, mapper) => {
|
|
135
|
+
let latestError;
|
|
136
|
+
for (const item of array) {
|
|
137
|
+
try {
|
|
138
|
+
return await mapper(item);
|
|
139
|
+
} catch (error) {
|
|
140
|
+
latestError = error;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
throw latestError;
|
|
144
|
+
};
|
|
145
|
+
var baseOpen = async (options) => {
|
|
146
|
+
options = {
|
|
147
|
+
wait: false,
|
|
148
|
+
background: false,
|
|
149
|
+
newInstance: false,
|
|
150
|
+
allowNonzeroExitCode: false,
|
|
151
|
+
...options
|
|
152
|
+
};
|
|
153
|
+
if (Array.isArray(options.app)) {
|
|
154
|
+
return pTryEach(options.app, (singleApp) => baseOpen({
|
|
155
|
+
...options,
|
|
156
|
+
app: singleApp
|
|
157
|
+
}));
|
|
158
|
+
}
|
|
159
|
+
let { name: app, arguments: appArguments = [] } = options.app || {};
|
|
160
|
+
appArguments = [...appArguments];
|
|
161
|
+
if (Array.isArray(app)) {
|
|
162
|
+
return pTryEach(app, (appName) => baseOpen({
|
|
163
|
+
...options,
|
|
164
|
+
app: {
|
|
165
|
+
name: appName,
|
|
166
|
+
arguments: appArguments
|
|
167
|
+
}
|
|
168
|
+
}));
|
|
169
|
+
}
|
|
170
|
+
let command;
|
|
171
|
+
const cliArguments = [];
|
|
172
|
+
const childProcessOptions = {};
|
|
173
|
+
if (platform === "darwin") {
|
|
174
|
+
command = "open";
|
|
175
|
+
if (options.wait) {
|
|
176
|
+
cliArguments.push("--wait-apps");
|
|
177
|
+
}
|
|
178
|
+
if (options.background) {
|
|
179
|
+
cliArguments.push("--background");
|
|
180
|
+
}
|
|
181
|
+
if (options.newInstance) {
|
|
182
|
+
cliArguments.push("--new");
|
|
183
|
+
}
|
|
184
|
+
if (app) {
|
|
185
|
+
cliArguments.push("-a", app);
|
|
186
|
+
}
|
|
187
|
+
} else if (platform === "win32" || isWsl && !isDocker()) {
|
|
188
|
+
const mountPoint = await getWslDrivesMountPoint();
|
|
189
|
+
command = isWsl ? `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` : `${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
|
|
190
|
+
cliArguments.push(
|
|
191
|
+
"-NoProfile",
|
|
192
|
+
"-NonInteractive",
|
|
193
|
+
"\u2013ExecutionPolicy",
|
|
194
|
+
"Bypass",
|
|
195
|
+
"-EncodedCommand"
|
|
196
|
+
);
|
|
197
|
+
if (!isWsl) {
|
|
198
|
+
childProcessOptions.windowsVerbatimArguments = true;
|
|
199
|
+
}
|
|
200
|
+
const encodedArguments = ["Start"];
|
|
201
|
+
if (options.wait) {
|
|
202
|
+
encodedArguments.push("-Wait");
|
|
203
|
+
}
|
|
204
|
+
if (app) {
|
|
205
|
+
encodedArguments.push(`"\`"${app}\`""`, "-ArgumentList");
|
|
206
|
+
if (options.target) {
|
|
207
|
+
appArguments.unshift(options.target);
|
|
208
|
+
}
|
|
209
|
+
} else if (options.target) {
|
|
210
|
+
encodedArguments.push(`"${options.target}"`);
|
|
211
|
+
}
|
|
212
|
+
if (appArguments.length > 0) {
|
|
213
|
+
appArguments = appArguments.map((arg) => `"\`"${arg}\`""`);
|
|
214
|
+
encodedArguments.push(appArguments.join(","));
|
|
215
|
+
}
|
|
216
|
+
options.target = Buffer.from(encodedArguments.join(" "), "utf16le").toString("base64");
|
|
217
|
+
} else {
|
|
218
|
+
if (app) {
|
|
219
|
+
command = app;
|
|
220
|
+
} else {
|
|
221
|
+
const isBundled = !__dirname || __dirname === "/";
|
|
222
|
+
let exeLocalXdgOpen = false;
|
|
223
|
+
try {
|
|
224
|
+
await fs.access(localXdgOpenPath, fsConstants.X_OK);
|
|
225
|
+
exeLocalXdgOpen = true;
|
|
226
|
+
} catch {
|
|
227
|
+
}
|
|
228
|
+
const useSystemXdgOpen = process.versions.electron || platform === "android" || isBundled || !exeLocalXdgOpen;
|
|
229
|
+
command = useSystemXdgOpen ? "xdg-open" : localXdgOpenPath;
|
|
230
|
+
}
|
|
231
|
+
if (appArguments.length > 0) {
|
|
232
|
+
cliArguments.push(...appArguments);
|
|
233
|
+
}
|
|
234
|
+
if (!options.wait) {
|
|
235
|
+
childProcessOptions.stdio = "ignore";
|
|
236
|
+
childProcessOptions.detached = true;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
if (options.target) {
|
|
240
|
+
cliArguments.push(options.target);
|
|
241
|
+
}
|
|
242
|
+
if (platform === "darwin" && appArguments.length > 0) {
|
|
243
|
+
cliArguments.push("--args", ...appArguments);
|
|
244
|
+
}
|
|
245
|
+
const subprocess = childProcess.spawn(command, cliArguments, childProcessOptions);
|
|
246
|
+
if (options.wait) {
|
|
247
|
+
return new Promise((resolve, reject) => {
|
|
248
|
+
subprocess.once("error", reject);
|
|
249
|
+
subprocess.once("close", (exitCode) => {
|
|
250
|
+
if (options.allowNonzeroExitCode && exitCode > 0) {
|
|
251
|
+
reject(new Error(`Exited with code ${exitCode}`));
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
resolve(subprocess);
|
|
255
|
+
});
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
subprocess.unref();
|
|
259
|
+
return subprocess;
|
|
260
|
+
};
|
|
261
|
+
var open = (target, options) => {
|
|
262
|
+
if (typeof target !== "string") {
|
|
263
|
+
throw new TypeError("Expected a `target`");
|
|
264
|
+
}
|
|
265
|
+
return baseOpen({
|
|
266
|
+
...options,
|
|
267
|
+
target
|
|
268
|
+
});
|
|
269
|
+
};
|
|
270
|
+
var openApp = (name, options) => {
|
|
271
|
+
if (typeof name !== "string") {
|
|
272
|
+
throw new TypeError("Expected a `name`");
|
|
273
|
+
}
|
|
274
|
+
const { arguments: appArguments = [] } = options || {};
|
|
275
|
+
if (appArguments !== void 0 && appArguments !== null && !Array.isArray(appArguments)) {
|
|
276
|
+
throw new TypeError("Expected `appArguments` as Array type");
|
|
277
|
+
}
|
|
278
|
+
return baseOpen({
|
|
279
|
+
...options,
|
|
280
|
+
app: {
|
|
281
|
+
name,
|
|
282
|
+
arguments: appArguments
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
};
|
|
286
|
+
function detectArchBinary(binary) {
|
|
287
|
+
if (typeof binary === "string" || Array.isArray(binary)) {
|
|
288
|
+
return binary;
|
|
289
|
+
}
|
|
290
|
+
const { [arch]: archBinary } = binary;
|
|
291
|
+
if (!archBinary) {
|
|
292
|
+
throw new Error(`${arch} is not supported`);
|
|
293
|
+
}
|
|
294
|
+
return archBinary;
|
|
295
|
+
}
|
|
296
|
+
function detectPlatformBinary({ [platform]: platformBinary }, { wsl }) {
|
|
297
|
+
if (wsl && isWsl) {
|
|
298
|
+
return detectArchBinary(wsl);
|
|
299
|
+
}
|
|
300
|
+
if (!platformBinary) {
|
|
301
|
+
throw new Error(`${platform} is not supported`);
|
|
302
|
+
}
|
|
303
|
+
return detectArchBinary(platformBinary);
|
|
304
|
+
}
|
|
305
|
+
var apps = {};
|
|
306
|
+
defineLazyProperty(apps, "chrome", () => detectPlatformBinary({
|
|
307
|
+
darwin: "google chrome",
|
|
308
|
+
win32: "chrome",
|
|
309
|
+
linux: ["google-chrome", "google-chrome-stable", "chromium"]
|
|
310
|
+
}, {
|
|
311
|
+
wsl: {
|
|
312
|
+
ia32: "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",
|
|
313
|
+
x64: ["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe", "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]
|
|
314
|
+
}
|
|
315
|
+
}));
|
|
316
|
+
defineLazyProperty(apps, "firefox", () => detectPlatformBinary({
|
|
317
|
+
darwin: "firefox",
|
|
318
|
+
win32: "C:\\Program Files\\Mozilla Firefox\\firefox.exe",
|
|
319
|
+
linux: "firefox"
|
|
320
|
+
}, {
|
|
321
|
+
wsl: "/mnt/c/Program Files/Mozilla Firefox/firefox.exe"
|
|
322
|
+
}));
|
|
323
|
+
defineLazyProperty(apps, "edge", () => detectPlatformBinary({
|
|
324
|
+
darwin: "microsoft edge",
|
|
325
|
+
win32: "msedge",
|
|
326
|
+
linux: ["microsoft-edge", "microsoft-edge-dev"]
|
|
327
|
+
}, {
|
|
328
|
+
wsl: "/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
|
|
329
|
+
}));
|
|
330
|
+
open.apps = apps;
|
|
331
|
+
open.openApp = openApp;
|
|
332
|
+
module.exports = open;
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
export {
|
|
337
|
+
require_open
|
|
338
|
+
};
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
output_manager_default
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2JIX6UMI.js";
|
|
10
10
|
|
|
11
11
|
// src/util/agent/auto-install-agentic.ts
|
|
12
12
|
import { readFile, writeFile } from "fs/promises";
|
|
@@ -6,17 +6,19 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveAlertsScope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-N4QHMXOO.js";
|
|
10
10
|
import {
|
|
11
11
|
handleValidationError,
|
|
12
12
|
outputError,
|
|
13
13
|
validateAllProjectMutualExclusivity
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KFWQ3EFH.js";
|
|
15
|
+
import {
|
|
16
|
+
AGENT_REASON
|
|
17
|
+
} from "./chunk-VUS2JQB2.js";
|
|
15
18
|
import {
|
|
16
|
-
AGENT_REASON,
|
|
17
19
|
buildCommandWithGlobalFlags,
|
|
18
20
|
outputAgentError
|
|
19
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-26CU4Q3C.js";
|
|
20
22
|
|
|
21
23
|
// src/commands/alerts/rules/parse-scope.ts
|
|
22
24
|
async function parseRulesFlagsAndScope(client, flags, jsonOutput, command = "alerts rules ls") {
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
TelemetryClient
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HB4UKFDO.js";
|
|
10
10
|
|
|
11
11
|
// src/util/telemetry/commands/routes/index.ts
|
|
12
12
|
var RoutesTelemetryClient = class extends TelemetryClient {
|
|
@@ -6,21 +6,25 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
outputError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KFWQ3EFH.js";
|
|
10
|
+
import {
|
|
11
|
+
AGENT_REASON
|
|
12
|
+
} from "./chunk-VUS2JQB2.js";
|
|
10
13
|
import {
|
|
11
|
-
getLinkedProject,
|
|
12
|
-
getProjectByNameOrId,
|
|
13
14
|
getScope
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4IVSM24H.js";
|
|
16
|
+
import {
|
|
17
|
+
getLinkedProject,
|
|
18
|
+
getProjectByNameOrId
|
|
19
|
+
} from "./chunk-2TSBB22D.js";
|
|
15
20
|
import {
|
|
16
|
-
AGENT_REASON,
|
|
17
21
|
buildCommandWithGlobalFlags,
|
|
18
22
|
outputAgentError
|
|
19
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-26CU4Q3C.js";
|
|
20
24
|
import {
|
|
21
25
|
ProjectNotFound,
|
|
22
26
|
isAPIError
|
|
23
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CV5YC2EN.js";
|
|
24
28
|
|
|
25
29
|
// src/commands/alerts/resolve-alerts-scope.ts
|
|
26
30
|
function emitAlertsScopeError(client, jsonOutput, code, message, agent) {
|
|
@@ -9,45 +9,57 @@ import {
|
|
|
9
9
|
} from "./chunk-PRWJUY5U.js";
|
|
10
10
|
import {
|
|
11
11
|
progress
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FL4JLNT2.js";
|
|
13
13
|
import {
|
|
14
14
|
isJSONObject,
|
|
15
15
|
printIndications,
|
|
16
16
|
require_dist as require_dist2,
|
|
17
17
|
sleep
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GUU4Z2AQ.js";
|
|
19
19
|
import {
|
|
20
20
|
suggestNextCommands
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-AKLTIZCU.js";
|
|
22
22
|
import {
|
|
23
23
|
CommandTimeout
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-WL6QYSGD.js";
|
|
25
|
+
import {
|
|
26
|
+
require_dist as require_dist3
|
|
27
|
+
} from "./chunk-G3PXSXIB.js";
|
|
25
28
|
import {
|
|
26
29
|
stamp_default
|
|
27
30
|
} from "./chunk-64IF634X.js";
|
|
31
|
+
import {
|
|
32
|
+
require_ms
|
|
33
|
+
} from "./chunk-GGP5R3FU.js";
|
|
28
34
|
import {
|
|
29
35
|
getDeployment,
|
|
30
|
-
|
|
36
|
+
mapCertError
|
|
37
|
+
} from "./chunk-RN6V5ODW.js";
|
|
38
|
+
import {
|
|
31
39
|
getScope,
|
|
32
|
-
mapCertError,
|
|
33
|
-
param,
|
|
34
|
-
printAlignedLabel,
|
|
35
|
-
require_dist as require_dist3,
|
|
36
|
-
require_pluralize,
|
|
37
40
|
ua_default
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import {
|
|
40
|
-
withGlobalFlags
|
|
41
|
-
} from "./chunk-NGGLYKNU.js";
|
|
41
|
+
} from "./chunk-4IVSM24H.js";
|
|
42
42
|
import {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
Headers,
|
|
44
|
+
fetch,
|
|
45
|
+
getFetchDispatcher,
|
|
46
|
+
toNodeReadable
|
|
47
|
+
} from "./chunk-XNIZGCN5.js";
|
|
45
48
|
import {
|
|
46
49
|
responseError
|
|
47
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-3VM7HWF6.js";
|
|
51
|
+
import {
|
|
52
|
+
getProjectByNameOrId,
|
|
53
|
+
param,
|
|
54
|
+
printAlignedLabel,
|
|
55
|
+
require_pluralize
|
|
56
|
+
} from "./chunk-2TSBB22D.js";
|
|
57
|
+
import {
|
|
58
|
+
withGlobalFlags
|
|
59
|
+
} from "./chunk-26CU4Q3C.js";
|
|
48
60
|
import {
|
|
49
61
|
require_strip_ansi
|
|
50
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-XPJLPUKO.js";
|
|
51
63
|
import {
|
|
52
64
|
APIError,
|
|
53
65
|
BuildError,
|
|
@@ -64,22 +76,18 @@ import {
|
|
|
64
76
|
UserAborted,
|
|
65
77
|
isAPIError,
|
|
66
78
|
require_bytes
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import {
|
|
69
|
-
Headers,
|
|
70
|
-
fetch,
|
|
71
|
-
getFetchDispatcher,
|
|
72
|
-
toNodeReadable
|
|
73
|
-
} from "./chunk-52QYYTM5.js";
|
|
79
|
+
} from "./chunk-CV5YC2EN.js";
|
|
74
80
|
import {
|
|
75
81
|
emoji,
|
|
76
82
|
eraseLines,
|
|
77
83
|
link_default,
|
|
78
84
|
output_manager_default,
|
|
79
85
|
prependEmoji,
|
|
80
|
-
require_ansi_escapes
|
|
86
|
+
require_ansi_escapes
|
|
87
|
+
} from "./chunk-2JIX6UMI.js";
|
|
88
|
+
import {
|
|
81
89
|
require_dist
|
|
82
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-ZW6HETRE.js";
|
|
83
91
|
import {
|
|
84
92
|
require_source
|
|
85
93
|
} from "./chunk-S7KYDPEM.js";
|