@base44-preview/cli 0.0.18-pr.87.0d0145a → 0.0.18-pr.87.0e26e0f
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/index.js +96 -96
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:
|
|
|
3
3
|
import childProcess, { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
|
|
4
4
|
import path, { basename, dirname, join, posix, resolve, win32 } from "node:path";
|
|
5
5
|
import fs, { appendFileSync, createReadStream, createWriteStream, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
6
|
-
import
|
|
6
|
+
import y, { execArgv, execPath, hrtime, platform, stdin, stdout } from "node:process";
|
|
7
7
|
import os, { constants, homedir, tmpdir } from "node:os";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
9
9
|
import fs$1, { access, constants as constants$1, copyFile, mkdir, readFile, unlink, writeFile } from "node:fs/promises";
|
|
@@ -893,7 +893,7 @@ var require_command = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
893
893
|
const childProcess$1 = __require("node:child_process");
|
|
894
894
|
const path$15 = __require("node:path");
|
|
895
895
|
const fs$10 = __require("node:fs");
|
|
896
|
-
const process$
|
|
896
|
+
const process$3 = __require("node:process");
|
|
897
897
|
const { Argument, humanReadableArgName } = require_argument();
|
|
898
898
|
const { CommanderError } = require_error$1();
|
|
899
899
|
const { Help } = require_help();
|
|
@@ -944,10 +944,10 @@ var require_command = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
944
944
|
this._showHelpAfterError = false;
|
|
945
945
|
this._showSuggestionAfterError = true;
|
|
946
946
|
this._outputConfiguration = {
|
|
947
|
-
writeOut: (str) => process$
|
|
948
|
-
writeErr: (str) => process$
|
|
949
|
-
getOutHelpWidth: () => process$
|
|
950
|
-
getErrHelpWidth: () => process$
|
|
947
|
+
writeOut: (str) => process$3.stdout.write(str),
|
|
948
|
+
writeErr: (str) => process$3.stderr.write(str),
|
|
949
|
+
getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
|
|
950
|
+
getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
|
|
951
951
|
outputError: (str, write) => write(str)
|
|
952
952
|
};
|
|
953
953
|
this._hidden = false;
|
|
@@ -1301,7 +1301,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1301
1301
|
*/
|
|
1302
1302
|
_exit(exitCode, code$1, message) {
|
|
1303
1303
|
if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code$1, message));
|
|
1304
|
-
process$
|
|
1304
|
+
process$3.exit(exitCode);
|
|
1305
1305
|
}
|
|
1306
1306
|
/**
|
|
1307
1307
|
* Register callback `fn` for the command.
|
|
@@ -1640,11 +1640,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1640
1640
|
if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
|
|
1641
1641
|
parseOptions = parseOptions || {};
|
|
1642
1642
|
if (argv === void 0 && parseOptions.from === void 0) {
|
|
1643
|
-
if (process$
|
|
1644
|
-
const execArgv$1 = process$
|
|
1643
|
+
if (process$3.versions?.electron) parseOptions.from = "electron";
|
|
1644
|
+
const execArgv$1 = process$3.execArgv ?? [];
|
|
1645
1645
|
if (execArgv$1.includes("-e") || execArgv$1.includes("--eval") || execArgv$1.includes("-p") || execArgv$1.includes("--print")) parseOptions.from = "eval";
|
|
1646
1646
|
}
|
|
1647
|
-
if (argv === void 0) argv = process$
|
|
1647
|
+
if (argv === void 0) argv = process$3.argv;
|
|
1648
1648
|
this.rawArgs = argv.slice();
|
|
1649
1649
|
let userArgs;
|
|
1650
1650
|
switch (parseOptions.from) {
|
|
@@ -1654,7 +1654,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1654
1654
|
userArgs = argv.slice(2);
|
|
1655
1655
|
break;
|
|
1656
1656
|
case "electron":
|
|
1657
|
-
if (process$
|
|
1657
|
+
if (process$3.defaultApp) {
|
|
1658
1658
|
this._scriptPath = argv[1];
|
|
1659
1659
|
userArgs = argv.slice(2);
|
|
1660
1660
|
} else userArgs = argv.slice(1);
|
|
@@ -1768,15 +1768,15 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1768
1768
|
}
|
|
1769
1769
|
launchWithNode = sourceExt.includes(path$15.extname(executableFile));
|
|
1770
1770
|
let proc$1;
|
|
1771
|
-
if (process$
|
|
1771
|
+
if (process$3.platform !== "win32") if (launchWithNode) {
|
|
1772
1772
|
args.unshift(executableFile);
|
|
1773
|
-
args = incrementNodeInspectorPort(process$
|
|
1774
|
-
proc$1 = childProcess$1.spawn(process$
|
|
1773
|
+
args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
|
|
1774
|
+
proc$1 = childProcess$1.spawn(process$3.argv[0], args, { stdio: "inherit" });
|
|
1775
1775
|
} else proc$1 = childProcess$1.spawn(executableFile, args, { stdio: "inherit" });
|
|
1776
1776
|
else {
|
|
1777
1777
|
args.unshift(executableFile);
|
|
1778
|
-
args = incrementNodeInspectorPort(process$
|
|
1779
|
-
proc$1 = childProcess$1.spawn(process$
|
|
1778
|
+
args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
|
|
1779
|
+
proc$1 = childProcess$1.spawn(process$3.execPath, args, { stdio: "inherit" });
|
|
1780
1780
|
}
|
|
1781
1781
|
if (!proc$1.killed) [
|
|
1782
1782
|
"SIGUSR1",
|
|
@@ -1785,14 +1785,14 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1785
1785
|
"SIGINT",
|
|
1786
1786
|
"SIGHUP"
|
|
1787
1787
|
].forEach((signal) => {
|
|
1788
|
-
process$
|
|
1788
|
+
process$3.on(signal, () => {
|
|
1789
1789
|
if (proc$1.killed === false && proc$1.exitCode === null) proc$1.kill(signal);
|
|
1790
1790
|
});
|
|
1791
1791
|
});
|
|
1792
1792
|
const exitCallback = this._exitCallback;
|
|
1793
1793
|
proc$1.on("close", (code$1) => {
|
|
1794
1794
|
code$1 = code$1 ?? 1;
|
|
1795
|
-
if (!exitCallback) process$
|
|
1795
|
+
if (!exitCallback) process$3.exit(code$1);
|
|
1796
1796
|
else exitCallback(new CommanderError(code$1, "commander.executeSubCommandAsync", "(close)"));
|
|
1797
1797
|
});
|
|
1798
1798
|
proc$1.on("error", (err) => {
|
|
@@ -1804,7 +1804,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1804
1804
|
- ${executableDirMessage}`;
|
|
1805
1805
|
throw new Error(executableMissing);
|
|
1806
1806
|
} else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
|
|
1807
|
-
if (!exitCallback) process$
|
|
1807
|
+
if (!exitCallback) process$3.exit(1);
|
|
1808
1808
|
else {
|
|
1809
1809
|
const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
|
|
1810
1810
|
wrappedError.nestedError = err;
|
|
@@ -2210,13 +2210,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2210
2210
|
*/
|
|
2211
2211
|
_parseOptionsEnv() {
|
|
2212
2212
|
this.options.forEach((option) => {
|
|
2213
|
-
if (option.envVar && option.envVar in process$
|
|
2213
|
+
if (option.envVar && option.envVar in process$3.env) {
|
|
2214
2214
|
const optionKey = option.attributeName();
|
|
2215
2215
|
if (this.getOptionValue(optionKey) === void 0 || [
|
|
2216
2216
|
"default",
|
|
2217
2217
|
"config",
|
|
2218
2218
|
"env"
|
|
2219
|
-
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$
|
|
2219
|
+
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
|
|
2220
2220
|
else this.emit(`optionEnv:${option.name()}`);
|
|
2221
2221
|
}
|
|
2222
2222
|
});
|
|
@@ -2595,7 +2595,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2595
2595
|
*/
|
|
2596
2596
|
help(contextOptions) {
|
|
2597
2597
|
this.outputHelp(contextOptions);
|
|
2598
|
-
let exitCode = process$
|
|
2598
|
+
let exitCode = process$3.exitCode || 0;
|
|
2599
2599
|
if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
|
|
2600
2600
|
this._exit(exitCode, "commander.help", "(outputHelp)");
|
|
2601
2601
|
}
|
|
@@ -5467,7 +5467,7 @@ function initializeContext(params) {
|
|
|
5467
5467
|
external: params?.external ?? void 0
|
|
5468
5468
|
};
|
|
5469
5469
|
}
|
|
5470
|
-
function process$
|
|
5470
|
+
function process$2(schema, ctx, _params = {
|
|
5471
5471
|
path: [],
|
|
5472
5472
|
schemaPath: []
|
|
5473
5473
|
}) {
|
|
@@ -5504,7 +5504,7 @@ function process$3(schema, ctx, _params = {
|
|
|
5504
5504
|
const parent = schema._zod.parent;
|
|
5505
5505
|
if (parent) {
|
|
5506
5506
|
if (!result.ref) result.ref = parent;
|
|
5507
|
-
process$
|
|
5507
|
+
process$2(parent, ctx, params);
|
|
5508
5508
|
ctx.seen.get(parent).isParent = true;
|
|
5509
5509
|
}
|
|
5510
5510
|
}
|
|
@@ -5716,7 +5716,7 @@ const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
5716
5716
|
...params,
|
|
5717
5717
|
processors
|
|
5718
5718
|
});
|
|
5719
|
-
process$
|
|
5719
|
+
process$2(schema, ctx);
|
|
5720
5720
|
extractDefs(ctx, schema);
|
|
5721
5721
|
return finalize(ctx, schema);
|
|
5722
5722
|
};
|
|
@@ -5728,7 +5728,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
|
|
|
5728
5728
|
io,
|
|
5729
5729
|
processors
|
|
5730
5730
|
});
|
|
5731
|
-
process$
|
|
5731
|
+
process$2(schema, ctx);
|
|
5732
5732
|
extractDefs(ctx, schema);
|
|
5733
5733
|
return finalize(ctx, schema);
|
|
5734
5734
|
};
|
|
@@ -5815,7 +5815,7 @@ const arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
5815
5815
|
if (typeof minimum === "number") json.minItems = minimum;
|
|
5816
5816
|
if (typeof maximum === "number") json.maxItems = maximum;
|
|
5817
5817
|
json.type = "array";
|
|
5818
|
-
json.items = process$
|
|
5818
|
+
json.items = process$2(def.element, ctx, {
|
|
5819
5819
|
...params,
|
|
5820
5820
|
path: [...params.path, "items"]
|
|
5821
5821
|
});
|
|
@@ -5826,7 +5826,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
|
|
|
5826
5826
|
json.type = "object";
|
|
5827
5827
|
json.properties = {};
|
|
5828
5828
|
const shape = def.shape;
|
|
5829
|
-
for (const key in shape) json.properties[key] = process$
|
|
5829
|
+
for (const key in shape) json.properties[key] = process$2(shape[key], ctx, {
|
|
5830
5830
|
...params,
|
|
5831
5831
|
path: [
|
|
5832
5832
|
...params.path,
|
|
@@ -5844,7 +5844,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
|
|
|
5844
5844
|
if (def.catchall?._zod.def.type === "never") json.additionalProperties = false;
|
|
5845
5845
|
else if (!def.catchall) {
|
|
5846
5846
|
if (ctx.io === "output") json.additionalProperties = false;
|
|
5847
|
-
} else if (def.catchall) json.additionalProperties = process$
|
|
5847
|
+
} else if (def.catchall) json.additionalProperties = process$2(def.catchall, ctx, {
|
|
5848
5848
|
...params,
|
|
5849
5849
|
path: [...params.path, "additionalProperties"]
|
|
5850
5850
|
});
|
|
@@ -5852,7 +5852,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
|
|
|
5852
5852
|
const unionProcessor = (schema, ctx, json, params) => {
|
|
5853
5853
|
const def = schema._zod.def;
|
|
5854
5854
|
const isExclusive = def.inclusive === false;
|
|
5855
|
-
const options = def.options.map((x$2, i$1) => process$
|
|
5855
|
+
const options = def.options.map((x$2, i$1) => process$2(x$2, ctx, {
|
|
5856
5856
|
...params,
|
|
5857
5857
|
path: [
|
|
5858
5858
|
...params.path,
|
|
@@ -5865,7 +5865,7 @@ const unionProcessor = (schema, ctx, json, params) => {
|
|
|
5865
5865
|
};
|
|
5866
5866
|
const intersectionProcessor = (schema, ctx, json, params) => {
|
|
5867
5867
|
const def = schema._zod.def;
|
|
5868
|
-
const a$1 = process$
|
|
5868
|
+
const a$1 = process$2(def.left, ctx, {
|
|
5869
5869
|
...params,
|
|
5870
5870
|
path: [
|
|
5871
5871
|
...params.path,
|
|
@@ -5873,7 +5873,7 @@ const intersectionProcessor = (schema, ctx, json, params) => {
|
|
|
5873
5873
|
0
|
|
5874
5874
|
]
|
|
5875
5875
|
});
|
|
5876
|
-
const b$2 = process$
|
|
5876
|
+
const b$2 = process$2(def.right, ctx, {
|
|
5877
5877
|
...params,
|
|
5878
5878
|
path: [
|
|
5879
5879
|
...params.path,
|
|
@@ -5890,7 +5890,7 @@ const tupleProcessor = (schema, ctx, _json, params) => {
|
|
|
5890
5890
|
json.type = "array";
|
|
5891
5891
|
const prefixPath$1 = ctx.target === "draft-2020-12" ? "prefixItems" : "items";
|
|
5892
5892
|
const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems";
|
|
5893
|
-
const prefixItems = def.items.map((x$2, i$1) => process$
|
|
5893
|
+
const prefixItems = def.items.map((x$2, i$1) => process$2(x$2, ctx, {
|
|
5894
5894
|
...params,
|
|
5895
5895
|
path: [
|
|
5896
5896
|
...params.path,
|
|
@@ -5898,7 +5898,7 @@ const tupleProcessor = (schema, ctx, _json, params) => {
|
|
|
5898
5898
|
i$1
|
|
5899
5899
|
]
|
|
5900
5900
|
}));
|
|
5901
|
-
const rest = def.rest ? process$
|
|
5901
|
+
const rest = def.rest ? process$2(def.rest, ctx, {
|
|
5902
5902
|
...params,
|
|
5903
5903
|
path: [
|
|
5904
5904
|
...params.path,
|
|
@@ -5924,7 +5924,7 @@ const tupleProcessor = (schema, ctx, _json, params) => {
|
|
|
5924
5924
|
};
|
|
5925
5925
|
const nullableProcessor = (schema, ctx, json, params) => {
|
|
5926
5926
|
const def = schema._zod.def;
|
|
5927
|
-
const inner = process$
|
|
5927
|
+
const inner = process$2(def.innerType, ctx, params);
|
|
5928
5928
|
const seen = ctx.seen.get(schema);
|
|
5929
5929
|
if (ctx.target === "openapi-3.0") {
|
|
5930
5930
|
seen.ref = def.innerType;
|
|
@@ -5933,27 +5933,27 @@ const nullableProcessor = (schema, ctx, json, params) => {
|
|
|
5933
5933
|
};
|
|
5934
5934
|
const nonoptionalProcessor = (schema, ctx, _json, params) => {
|
|
5935
5935
|
const def = schema._zod.def;
|
|
5936
|
-
process$
|
|
5936
|
+
process$2(def.innerType, ctx, params);
|
|
5937
5937
|
const seen = ctx.seen.get(schema);
|
|
5938
5938
|
seen.ref = def.innerType;
|
|
5939
5939
|
};
|
|
5940
5940
|
const defaultProcessor = (schema, ctx, json, params) => {
|
|
5941
5941
|
const def = schema._zod.def;
|
|
5942
|
-
process$
|
|
5942
|
+
process$2(def.innerType, ctx, params);
|
|
5943
5943
|
const seen = ctx.seen.get(schema);
|
|
5944
5944
|
seen.ref = def.innerType;
|
|
5945
5945
|
json.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
5946
5946
|
};
|
|
5947
5947
|
const prefaultProcessor = (schema, ctx, json, params) => {
|
|
5948
5948
|
const def = schema._zod.def;
|
|
5949
|
-
process$
|
|
5949
|
+
process$2(def.innerType, ctx, params);
|
|
5950
5950
|
const seen = ctx.seen.get(schema);
|
|
5951
5951
|
seen.ref = def.innerType;
|
|
5952
5952
|
if (ctx.io === "input") json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
|
|
5953
5953
|
};
|
|
5954
5954
|
const catchProcessor = (schema, ctx, json, params) => {
|
|
5955
5955
|
const def = schema._zod.def;
|
|
5956
|
-
process$
|
|
5956
|
+
process$2(def.innerType, ctx, params);
|
|
5957
5957
|
const seen = ctx.seen.get(schema);
|
|
5958
5958
|
seen.ref = def.innerType;
|
|
5959
5959
|
let catchValue;
|
|
@@ -5967,20 +5967,20 @@ const catchProcessor = (schema, ctx, json, params) => {
|
|
|
5967
5967
|
const pipeProcessor = (schema, ctx, _json, params) => {
|
|
5968
5968
|
const def = schema._zod.def;
|
|
5969
5969
|
const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
5970
|
-
process$
|
|
5970
|
+
process$2(innerType, ctx, params);
|
|
5971
5971
|
const seen = ctx.seen.get(schema);
|
|
5972
5972
|
seen.ref = innerType;
|
|
5973
5973
|
};
|
|
5974
5974
|
const readonlyProcessor = (schema, ctx, json, params) => {
|
|
5975
5975
|
const def = schema._zod.def;
|
|
5976
|
-
process$
|
|
5976
|
+
process$2(def.innerType, ctx, params);
|
|
5977
5977
|
const seen = ctx.seen.get(schema);
|
|
5978
5978
|
seen.ref = def.innerType;
|
|
5979
5979
|
json.readOnly = true;
|
|
5980
5980
|
};
|
|
5981
5981
|
const optionalProcessor = (schema, ctx, _json, params) => {
|
|
5982
5982
|
const def = schema._zod.def;
|
|
5983
|
-
process$
|
|
5983
|
+
process$2(def.innerType, ctx, params);
|
|
5984
5984
|
const seen = ctx.seen.get(schema);
|
|
5985
5985
|
seen.ref = def.innerType;
|
|
5986
5986
|
};
|
|
@@ -15006,7 +15006,7 @@ const createIgnorePredicate = (patterns, cwd, baseDir) => {
|
|
|
15006
15006
|
};
|
|
15007
15007
|
const normalizeOptions$2 = (options = {}) => {
|
|
15008
15008
|
const ignoreOption = options.ignore ? Array.isArray(options.ignore) ? options.ignore : [options.ignore] : [];
|
|
15009
|
-
const cwd = toPath$1(options.cwd) ??
|
|
15009
|
+
const cwd = toPath$1(options.cwd) ?? y.cwd();
|
|
15010
15010
|
const deep = typeof options.deep === "number" ? Math.max(0, options.deep) + 1 : Number.POSITIVE_INFINITY;
|
|
15011
15011
|
return {
|
|
15012
15012
|
cwd,
|
|
@@ -15103,7 +15103,7 @@ const getDirectoryGlob = ({ directoryPath, files, extensions }) => {
|
|
|
15103
15103
|
const extensionGlob = extensions?.length > 0 ? `.${extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0]}` : "";
|
|
15104
15104
|
return files ? files.map((file) => path.posix.join(directoryPath, `**/${path.extname(file) ? file : `${file}${extensionGlob}`}`)) : [path.posix.join(directoryPath, `**${extensionGlob ? `/*${extensionGlob}` : ""}`)];
|
|
15105
15105
|
};
|
|
15106
|
-
const directoryToGlob = async (directoryPaths, { cwd =
|
|
15106
|
+
const directoryToGlob = async (directoryPaths, { cwd = y.cwd(), files, extensions, fs: fsImplementation } = {}) => {
|
|
15107
15107
|
return (await Promise.all(directoryPaths.map(async (directoryPath) => {
|
|
15108
15108
|
if (shouldExpandGlobstarDirectory(isNegativePattern(directoryPath) ? directoryPath.slice(1) : directoryPath)) return getDirectoryGlob({
|
|
15109
15109
|
directoryPath,
|
|
@@ -15117,7 +15117,7 @@ const directoryToGlob = async (directoryPaths, { cwd = process$1.cwd(), files, e
|
|
|
15117
15117
|
}) : directoryPath;
|
|
15118
15118
|
}))).flat();
|
|
15119
15119
|
};
|
|
15120
|
-
const directoryToGlobSync = (directoryPaths, { cwd =
|
|
15120
|
+
const directoryToGlobSync = (directoryPaths, { cwd = y.cwd(), files, extensions, fs: fsImplementation } = {}) => directoryPaths.flatMap((directoryPath) => {
|
|
15121
15121
|
if (shouldExpandGlobstarDirectory(isNegativePattern(directoryPath) ? directoryPath.slice(1) : directoryPath)) return getDirectoryGlob({
|
|
15122
15122
|
directoryPath,
|
|
15123
15123
|
files,
|
|
@@ -15213,7 +15213,7 @@ const applyIgnoreFilesAndGetFilterSync = (options) => {
|
|
|
15213
15213
|
};
|
|
15214
15214
|
const createFilterFunction = (isIgnored, cwd) => {
|
|
15215
15215
|
const seen = /* @__PURE__ */ new Set();
|
|
15216
|
-
const basePath = cwd ||
|
|
15216
|
+
const basePath = cwd || y.cwd();
|
|
15217
15217
|
const pathCache = /* @__PURE__ */ new Map();
|
|
15218
15218
|
return (fastGlobResult) => {
|
|
15219
15219
|
const pathKey$1 = path.normalize(fastGlobResult.path ?? fastGlobResult);
|
|
@@ -29406,16 +29406,16 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
29406
29406
|
const CSI = `${ESC}[`;
|
|
29407
29407
|
const beep = "\x07";
|
|
29408
29408
|
const cursor = {
|
|
29409
|
-
to(x$2, y$
|
|
29410
|
-
if (!y$
|
|
29411
|
-
return `${CSI}${y$
|
|
29409
|
+
to(x$2, y$2) {
|
|
29410
|
+
if (!y$2) return `${CSI}${x$2 + 1}G`;
|
|
29411
|
+
return `${CSI}${y$2 + 1};${x$2 + 1}H`;
|
|
29412
29412
|
},
|
|
29413
|
-
move(x$2, y$
|
|
29413
|
+
move(x$2, y$2) {
|
|
29414
29414
|
let ret = "";
|
|
29415
29415
|
if (x$2 < 0) ret += `${CSI}${-x$2}D`;
|
|
29416
29416
|
else if (x$2 > 0) ret += `${CSI}${x$2}C`;
|
|
29417
|
-
if (y$
|
|
29418
|
-
else if (y$
|
|
29417
|
+
if (y$2 < 0) ret += `${CSI}${-y$2}A`;
|
|
29418
|
+
else if (y$2 > 0) ret += `${CSI}${y$2}B`;
|
|
29419
29419
|
return ret;
|
|
29420
29420
|
},
|
|
29421
29421
|
up: (count$1 = 1) => `${CSI}${count$1}A`,
|
|
@@ -29725,13 +29725,13 @@ function rD() {
|
|
|
29725
29725
|
}
|
|
29726
29726
|
}), r;
|
|
29727
29727
|
}
|
|
29728
|
-
const ED = rD(), d$1 = new Set(["\x1B", ""]), oD = 39, y = "\x07", V$1 = "[", nD = "]", G$1 = "m", _$1 = `${nD}8;;`, z = (e$1) => `${d$1.values().next().value}${V$1}${e$1}${G$1}`, K$1 = (e$1) => `${d$1.values().next().value}${_$1}${e$1}${y}`, aD = (e$1) => e$1.split(" ").map((u$2) => p(u$2)), k$1 = (e$1, u$2, t) => {
|
|
29728
|
+
const ED = rD(), d$1 = new Set(["\x1B", ""]), oD = 39, y$1 = "\x07", V$1 = "[", nD = "]", G$1 = "m", _$1 = `${nD}8;;`, z = (e$1) => `${d$1.values().next().value}${V$1}${e$1}${G$1}`, K$1 = (e$1) => `${d$1.values().next().value}${_$1}${e$1}${y$1}`, aD = (e$1) => e$1.split(" ").map((u$2) => p(u$2)), k$1 = (e$1, u$2, t) => {
|
|
29729
29729
|
const F$1 = [...u$2];
|
|
29730
29730
|
let s = !1, i$1 = !1, D$1 = p(P$1(e$1[e$1.length - 1]));
|
|
29731
29731
|
for (const [C$1, n$1] of F$1.entries()) {
|
|
29732
29732
|
const E = p(n$1);
|
|
29733
29733
|
if (D$1 + E <= t ? e$1[e$1.length - 1] += n$1 : (e$1.push(n$1), D$1 = 0), d$1.has(n$1) && (s = !0, i$1 = F$1.slice(C$1 + 1).join("").startsWith(_$1)), s) {
|
|
29734
|
-
i$1 ? n$1 === y && (s = !1, i$1 = !1) : n$1 === G$1 && (s = !1);
|
|
29734
|
+
i$1 ? n$1 === y$1 && (s = !1, i$1 = !1) : n$1 === G$1 && (s = !1);
|
|
29735
29735
|
continue;
|
|
29736
29736
|
}
|
|
29737
29737
|
D$1 += E, D$1 === t && C$1 < F$1.length - 1 && (e$1.push(""), D$1 = 0);
|
|
@@ -29773,7 +29773,7 @@ const ED = rD(), d$1 = new Set(["\x1B", ""]), oD = 39, y = "\x07", V$1 = "[",
|
|
|
29773
29773
|
`)];
|
|
29774
29774
|
for (const [E, a$1] of n$1.entries()) {
|
|
29775
29775
|
if (F$1 += a$1, d$1.has(a$1)) {
|
|
29776
|
-
const { groups: c$1 } = (/* @__PURE__ */ new RegExp(`(?:\\${V$1}(?<code>\\d+)m|\\${_$1}(?<uri>.*)${y})`)).exec(n$1.slice(E).join("")) || { groups: {} };
|
|
29776
|
+
const { groups: c$1 } = (/* @__PURE__ */ new RegExp(`(?:\\${V$1}(?<code>\\d+)m|\\${_$1}(?<uri>.*)${y$1})`)).exec(n$1.slice(E).join("")) || { groups: {} };
|
|
29777
29777
|
if (c$1.code !== void 0) {
|
|
29778
29778
|
const f = Number.parseFloat(c$1.code);
|
|
29779
29779
|
s = f === oD ? void 0 : f;
|
|
@@ -30174,7 +30174,7 @@ var RD = class extends x$1 {
|
|
|
30174
30174
|
//#endregion
|
|
30175
30175
|
//#region node_modules/@clack/prompts/dist/index.mjs
|
|
30176
30176
|
function ce() {
|
|
30177
|
-
return
|
|
30177
|
+
return y.platform !== "win32" ? y.env.TERM !== "linux" : !!y.env.CI || !!y.env.WT_SESSION || !!y.env.TERMINUS_SUBLIME || y.env.ConEmuTask === "{cmd::Cmder}" || y.env.TERM_PROGRAM === "Terminus-Sublime" || y.env.TERM_PROGRAM === "vscode" || y.env.TERM === "xterm-256color" || y.env.TERM === "alacritty" || y.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
30178
30178
|
}
|
|
30179
30179
|
const V = ce(), u$1 = (t, n$1) => V ? t : n$1, le = u$1("◆", "*"), L = u$1("■", "x"), W = u$1("▲", "x"), C = u$1("◇", "o"), ue = u$1("┌", "T"), o$1 = u$1("│", "|"), d = u$1("└", "—"), k = u$1("●", ">"), P = u$1("○", " "), A = u$1("◻", "[•]"), T = u$1("◼", "[+]"), F = u$1("◻", "[ ]"), $e = u$1("▪", "•"), _ = u$1("─", "-"), me = u$1("╮", "+"), de = u$1("├", "+"), pe = u$1("╯", "+"), q = u$1("●", "•"), D = u$1("◆", "*"), U = u$1("▲", "!"), K = u$1("■", "x"), b = (t) => {
|
|
30180
30180
|
switch (t) {
|
|
@@ -30768,13 +30768,13 @@ var ansi_styles_default = ansiStyles;
|
|
|
30768
30768
|
|
|
30769
30769
|
//#endregion
|
|
30770
30770
|
//#region node_modules/chalk/source/vendor/supports-color/index.js
|
|
30771
|
-
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args :
|
|
30771
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : y.argv) {
|
|
30772
30772
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
30773
30773
|
const position = argv.indexOf(prefix + flag);
|
|
30774
30774
|
const terminatorPosition = argv.indexOf("--");
|
|
30775
30775
|
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
30776
30776
|
}
|
|
30777
|
-
const { env } =
|
|
30777
|
+
const { env } = y;
|
|
30778
30778
|
let flagForceColor;
|
|
30779
30779
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
30780
30780
|
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
@@ -30807,7 +30807,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
30807
30807
|
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
30808
30808
|
const min = forceColor || 0;
|
|
30809
30809
|
if (env.TERM === "dumb") return min;
|
|
30810
|
-
if (
|
|
30810
|
+
if (y.platform === "win32") {
|
|
30811
30811
|
const osRelease = os.release().split(".");
|
|
30812
30812
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
30813
30813
|
return 1;
|
|
@@ -31672,9 +31672,9 @@ const getSubprocessResult = ({ stdout: stdout$1 }) => {
|
|
|
31672
31672
|
//#region node_modules/execa/lib/utils/standard-stream.js
|
|
31673
31673
|
const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
|
|
31674
31674
|
const STANDARD_STREAMS = [
|
|
31675
|
-
|
|
31676
|
-
|
|
31677
|
-
|
|
31675
|
+
y.stdin,
|
|
31676
|
+
y.stdout,
|
|
31677
|
+
y.stderr
|
|
31678
31678
|
];
|
|
31679
31679
|
const STANDARD_STREAMS_ALIASES = [
|
|
31680
31680
|
"stdin",
|
|
@@ -31799,9 +31799,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
|
31799
31799
|
//#endregion
|
|
31800
31800
|
//#region node_modules/is-unicode-supported/index.js
|
|
31801
31801
|
function isUnicodeSupported() {
|
|
31802
|
-
const { env: env$1 } =
|
|
31802
|
+
const { env: env$1 } = y;
|
|
31803
31803
|
const { TERM, TERM_PROGRAM } = env$1;
|
|
31804
|
-
if (
|
|
31804
|
+
if (y.platform !== "win32") return TERM !== "linux";
|
|
31805
31805
|
return Boolean(env$1.WT_SESSION) || Boolean(env$1.TERMINUS_SUBLIME) || env$1.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env$1.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
31806
31806
|
}
|
|
31807
31807
|
|
|
@@ -32728,7 +32728,7 @@ const TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
|
|
|
32728
32728
|
|
|
32729
32729
|
//#endregion
|
|
32730
32730
|
//#region node_modules/npm-run-path/index.js
|
|
32731
|
-
const npmRunPath = ({ cwd =
|
|
32731
|
+
const npmRunPath = ({ cwd = y.cwd(), path: pathOption = y.env[pathKey()], preferLocal = true, execPath: execPath$1 = y.execPath, addExecPath = true } = {}) => {
|
|
32732
32732
|
const cwdPath = path.resolve(toPath(cwd));
|
|
32733
32733
|
const result = [];
|
|
32734
32734
|
const pathParts = pathOption.split(path.delimiter);
|
|
@@ -32746,7 +32746,7 @@ const applyExecPath = (result, pathParts, execPath$1, cwdPath) => {
|
|
|
32746
32746
|
const pathPart = path.resolve(cwdPath, toPath(execPath$1), "..");
|
|
32747
32747
|
if (!pathParts.includes(pathPart)) result.push(pathPart);
|
|
32748
32748
|
};
|
|
32749
|
-
const npmRunPathEnv = ({ env: env$1 =
|
|
32749
|
+
const npmRunPathEnv = ({ env: env$1 = y.env, ...options } = {}) => {
|
|
32750
32750
|
env$1 = { ...env$1 };
|
|
32751
32751
|
const pathName = pathKey({ env: env$1 });
|
|
32752
32752
|
options.path = env$1[pathName];
|
|
@@ -33881,7 +33881,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
|
|
|
33881
33881
|
};
|
|
33882
33882
|
const getDefaultCwd = () => {
|
|
33883
33883
|
try {
|
|
33884
|
-
return
|
|
33884
|
+
return y.cwd();
|
|
33885
33885
|
} catch (error) {
|
|
33886
33886
|
error.message = `The current directory does not exist.\n${error.message}`;
|
|
33887
33887
|
throw error;
|
|
@@ -33916,7 +33916,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
|
33916
33916
|
options.killSignal = normalizeKillSignal(options.killSignal);
|
|
33917
33917
|
options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
|
|
33918
33918
|
options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
|
|
33919
|
-
if (
|
|
33919
|
+
if (y.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
|
|
33920
33920
|
return {
|
|
33921
33921
|
file,
|
|
33922
33922
|
commandArguments,
|
|
@@ -33943,7 +33943,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
|
|
|
33943
33943
|
});
|
|
33944
33944
|
const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
|
|
33945
33945
|
const env$1 = extendEnv ? {
|
|
33946
|
-
...
|
|
33946
|
+
...y.env,
|
|
33947
33947
|
...envOption
|
|
33948
33948
|
} : envOption;
|
|
33949
33949
|
if (preferLocal || node) return npmRunPathEnv({
|
|
@@ -34943,12 +34943,12 @@ const guessStreamDirection = {
|
|
|
34943
34943
|
}
|
|
34944
34944
|
};
|
|
34945
34945
|
const getStandardStreamDirection = (value) => {
|
|
34946
|
-
if ([0,
|
|
34946
|
+
if ([0, y.stdin].includes(value)) return "input";
|
|
34947
34947
|
if ([
|
|
34948
34948
|
1,
|
|
34949
34949
|
2,
|
|
34950
|
-
|
|
34951
|
-
|
|
34950
|
+
y.stdout,
|
|
34951
|
+
y.stderr
|
|
34952
34952
|
].includes(value)) return "output";
|
|
34953
34953
|
};
|
|
34954
34954
|
const DEFAULT_DIRECTION = "output";
|
|
@@ -36012,9 +36012,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
|
|
|
36012
36012
|
Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
|
|
36013
36013
|
};
|
|
36014
36014
|
const getIpcExport = () => {
|
|
36015
|
-
const anyProcess =
|
|
36015
|
+
const anyProcess = y;
|
|
36016
36016
|
const isSubprocess = true;
|
|
36017
|
-
const ipc =
|
|
36017
|
+
const ipc = y.channel !== void 0;
|
|
36018
36018
|
return {
|
|
36019
36019
|
...getIpcMethods(anyProcess, isSubprocess, ipc),
|
|
36020
36020
|
getCancelSignal: getCancelSignal$1.bind(void 0, {
|
|
@@ -36256,7 +36256,7 @@ if (process.platform === "linux") signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SI
|
|
|
36256
36256
|
|
|
36257
36257
|
//#endregion
|
|
36258
36258
|
//#region node_modules/signal-exit/dist/mjs/index.js
|
|
36259
|
-
const processOk = (process$
|
|
36259
|
+
const processOk = (process$4) => !!process$4 && typeof process$4 === "object" && typeof process$4.removeListener === "function" && typeof process$4.emit === "function" && typeof process$4.reallyExit === "function" && typeof process$4.listeners === "function" && typeof process$4.kill === "function" && typeof process$4.pid === "number" && typeof process$4.on === "function";
|
|
36260
36260
|
const kExitEmitter = Symbol.for("signal-exit emitter");
|
|
36261
36261
|
const global$1 = globalThis;
|
|
36262
36262
|
const ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
@@ -36324,7 +36324,7 @@ var SignalExitFallback = class extends SignalExitBase {
|
|
|
36324
36324
|
};
|
|
36325
36325
|
var SignalExit = class extends SignalExitBase {
|
|
36326
36326
|
/* c8 ignore start */
|
|
36327
|
-
#hupSig = process$
|
|
36327
|
+
#hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
36328
36328
|
/* c8 ignore stop */
|
|
36329
36329
|
#emitter = new Emitter();
|
|
36330
36330
|
#process;
|
|
@@ -36332,15 +36332,15 @@ var SignalExit = class extends SignalExitBase {
|
|
|
36332
36332
|
#originalProcessReallyExit;
|
|
36333
36333
|
#sigListeners = {};
|
|
36334
36334
|
#loaded = false;
|
|
36335
|
-
constructor(process$
|
|
36335
|
+
constructor(process$4) {
|
|
36336
36336
|
super();
|
|
36337
|
-
this.#process = process$
|
|
36337
|
+
this.#process = process$4;
|
|
36338
36338
|
this.#sigListeners = {};
|
|
36339
36339
|
for (const sig of signals) this.#sigListeners[sig] = () => {
|
|
36340
36340
|
const listeners = this.#process.listeners(sig);
|
|
36341
36341
|
let { count: count$1 } = this.#emitter;
|
|
36342
36342
|
/* c8 ignore start */
|
|
36343
|
-
const p$1 = process$
|
|
36343
|
+
const p$1 = process$4;
|
|
36344
36344
|
if (typeof p$1.__signal_exit_emitter__ === "object" && typeof p$1.__signal_exit_emitter__.count === "number") count$1 += p$1.__signal_exit_emitter__.count;
|
|
36345
36345
|
/* c8 ignore stop */
|
|
36346
36346
|
if (listeners.length === count$1) {
|
|
@@ -36348,11 +36348,11 @@ var SignalExit = class extends SignalExitBase {
|
|
|
36348
36348
|
const ret = this.#emitter.emit("exit", null, sig);
|
|
36349
36349
|
/* c8 ignore start */
|
|
36350
36350
|
const s = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
36351
|
-
if (!ret) process$
|
|
36351
|
+
if (!ret) process$4.kill(process$4.pid, s);
|
|
36352
36352
|
}
|
|
36353
36353
|
};
|
|
36354
|
-
this.#originalProcessReallyExit = process$
|
|
36355
|
-
this.#originalProcessEmit = process$
|
|
36354
|
+
this.#originalProcessReallyExit = process$4.reallyExit;
|
|
36355
|
+
this.#originalProcessEmit = process$4.emit;
|
|
36356
36356
|
}
|
|
36357
36357
|
onExit(cb, opts) {
|
|
36358
36358
|
/* c8 ignore start */
|
|
@@ -36419,8 +36419,8 @@ var SignalExit = class extends SignalExitBase {
|
|
|
36419
36419
|
} else return og.call(this.#process, ev, ...args);
|
|
36420
36420
|
}
|
|
36421
36421
|
};
|
|
36422
|
-
const process$
|
|
36423
|
-
const { onExit, load, unload } = signalExitWrap(processOk(process$
|
|
36422
|
+
const process$1 = globalThis.process;
|
|
36423
|
+
const { onExit, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
|
|
36424
36424
|
|
|
36425
36425
|
//#endregion
|
|
36426
36426
|
//#region node_modules/execa/lib/terminate/cleanup.js
|
|
@@ -38322,7 +38322,7 @@ async function executeCreate({ template, name: rawName, description, projectPath
|
|
|
38322
38322
|
"-y"
|
|
38323
38323
|
], {
|
|
38324
38324
|
cwd: resolvedPath,
|
|
38325
|
-
|
|
38325
|
+
stdio: "inherit"
|
|
38326
38326
|
});
|
|
38327
38327
|
}, {
|
|
38328
38328
|
successMessage: theme.colors.base44Orange("AI agent skills added successfully"),
|
|
@@ -38388,7 +38388,7 @@ function isInsideContainer() {
|
|
|
38388
38388
|
//#endregion
|
|
38389
38389
|
//#region node_modules/is-wsl/index.js
|
|
38390
38390
|
const isWsl = () => {
|
|
38391
|
-
if (
|
|
38391
|
+
if (y.platform !== "linux") return false;
|
|
38392
38392
|
if (os.release().toLowerCase().includes("microsoft")) {
|
|
38393
38393
|
if (isInsideContainer()) return false;
|
|
38394
38394
|
return true;
|
|
@@ -38399,12 +38399,12 @@ const isWsl = () => {
|
|
|
38399
38399
|
return false;
|
|
38400
38400
|
}
|
|
38401
38401
|
};
|
|
38402
|
-
var is_wsl_default =
|
|
38402
|
+
var is_wsl_default = y.env.__IS_WSL_TEST__ ? isWsl : isWsl();
|
|
38403
38403
|
|
|
38404
38404
|
//#endregion
|
|
38405
38405
|
//#region node_modules/powershell-utils/index.js
|
|
38406
38406
|
const execFile$2 = promisify(childProcess.execFile);
|
|
38407
|
-
const powerShellPath$1 = () => `${
|
|
38407
|
+
const powerShellPath$1 = () => `${y.env.SYSTEMROOT || y.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
|
|
38408
38408
|
const executePowerShell = async (command, options = {}) => {
|
|
38409
38409
|
const { powerShellPath: psPath, ...execFileOptions } = options;
|
|
38410
38410
|
const encodedCommand = executePowerShell.encodeCommand(command);
|
|
@@ -38515,7 +38515,7 @@ function defineLazyProperty(object$1, propertyName, valueGetter) {
|
|
|
38515
38515
|
//#region node_modules/default-browser-id/index.js
|
|
38516
38516
|
const execFileAsync$3 = promisify(execFile);
|
|
38517
38517
|
async function defaultBrowserId() {
|
|
38518
|
-
if (
|
|
38518
|
+
if (y.platform !== "darwin") throw new Error("macOS only");
|
|
38519
38519
|
const { stdout: stdout$1 } = await execFileAsync$3("defaults", [
|
|
38520
38520
|
"read",
|
|
38521
38521
|
"com.apple.LaunchServices/com.apple.launchservices.secure",
|
|
@@ -38530,7 +38530,7 @@ async function defaultBrowserId() {
|
|
|
38530
38530
|
//#region node_modules/run-applescript/index.js
|
|
38531
38531
|
const execFileAsync$2 = promisify(execFile);
|
|
38532
38532
|
async function runAppleScript(script, { humanReadableOutput = true, signal } = {}) {
|
|
38533
|
-
if (
|
|
38533
|
+
if (y.platform !== "darwin") throw new Error("macOS only");
|
|
38534
38534
|
const outputArguments = humanReadableOutput ? [] : ["-ss"];
|
|
38535
38535
|
const execOptions = {};
|
|
38536
38536
|
if (signal) execOptions.signal = signal;
|
|
@@ -38639,14 +38639,14 @@ async function defaultBrowser$1(_execFileAsync = execFileAsync$1) {
|
|
|
38639
38639
|
const execFileAsync = promisify(execFile);
|
|
38640
38640
|
const titleize = (string$2) => string$2.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, (x$2) => x$2.toUpperCase());
|
|
38641
38641
|
async function defaultBrowser() {
|
|
38642
|
-
if (
|
|
38642
|
+
if (y.platform === "darwin") {
|
|
38643
38643
|
const id = await defaultBrowserId();
|
|
38644
38644
|
return {
|
|
38645
38645
|
name: await bundleName(id),
|
|
38646
38646
|
id
|
|
38647
38647
|
};
|
|
38648
38648
|
}
|
|
38649
|
-
if (
|
|
38649
|
+
if (y.platform === "linux") {
|
|
38650
38650
|
const { stdout: stdout$1 } = await execFileAsync("xdg-mime", [
|
|
38651
38651
|
"query",
|
|
38652
38652
|
"default",
|
|
@@ -38658,13 +38658,13 @@ async function defaultBrowser() {
|
|
|
38658
38658
|
id
|
|
38659
38659
|
};
|
|
38660
38660
|
}
|
|
38661
|
-
if (
|
|
38661
|
+
if (y.platform === "win32") return defaultBrowser$1();
|
|
38662
38662
|
throw new Error("Only macOS, Linux, and Windows are supported");
|
|
38663
38663
|
}
|
|
38664
38664
|
|
|
38665
38665
|
//#endregion
|
|
38666
38666
|
//#region node_modules/is-in-ssh/index.js
|
|
38667
|
-
const isInSsh = Boolean(
|
|
38667
|
+
const isInSsh = Boolean(y.env.SSH_CONNECTION || y.env.SSH_CLIENT || y.env.SSH_TTY);
|
|
38668
38668
|
var is_in_ssh_default = isInSsh;
|
|
38669
38669
|
|
|
38670
38670
|
//#endregion
|
|
@@ -38672,7 +38672,7 @@ var is_in_ssh_default = isInSsh;
|
|
|
38672
38672
|
const fallbackAttemptSymbol = Symbol("fallbackAttempt");
|
|
38673
38673
|
const __dirname = import.meta.url ? path.dirname(fileURLToPath(import.meta.url)) : "";
|
|
38674
38674
|
const localXdgOpenPath = path.join(__dirname, "xdg-open");
|
|
38675
|
-
const { platform: platform$1, arch } =
|
|
38675
|
+
const { platform: platform$1, arch } = y;
|
|
38676
38676
|
const tryEachApp = async (apps$1, opener) => {
|
|
38677
38677
|
if (apps$1.length === 0) return;
|
|
38678
38678
|
const errors = [];
|
|
@@ -38785,7 +38785,7 @@ const baseOpen = async (options) => {
|
|
|
38785
38785
|
await fs$1.access(localXdgOpenPath, constants$1.X_OK);
|
|
38786
38786
|
exeLocalXdgOpen = true;
|
|
38787
38787
|
} catch {}
|
|
38788
|
-
command =
|
|
38788
|
+
command = y.versions.electron ?? (platform$1 === "android" || isBundled || !exeLocalXdgOpen) ? "xdg-open" : localXdgOpenPath;
|
|
38789
38789
|
}
|
|
38790
38790
|
if (appArguments.length > 0) cliArguments.push(...appArguments);
|
|
38791
38791
|
if (!options.wait) {
|