@base44-preview/cli 0.0.15-pr.102.d2fdfed → 0.0.15-pr.102.ec2ad29
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/cli/index.js +101 -101
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:
|
|
|
4
4
|
import childProcess, { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
|
|
5
5
|
import path, { basename, dirname, join, posix, relative, resolve, win32 } from "node:path";
|
|
6
6
|
import fs, { appendFileSync, createReadStream, createWriteStream, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
7
|
-
import
|
|
7
|
+
import y, { execArgv, execPath, hrtime, platform, stdin, stdout } from "node:process";
|
|
8
8
|
import { aborted, callbackify, debuglog, inspect, promisify, stripVTControlCharacters } from "node:util";
|
|
9
9
|
import * as g from "node:readline";
|
|
10
10
|
import O from "node:readline";
|
|
@@ -894,7 +894,7 @@ var require_command = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
894
894
|
const childProcess$1 = __require("node:child_process");
|
|
895
895
|
const path$15 = __require("node:path");
|
|
896
896
|
const fs$10 = __require("node:fs");
|
|
897
|
-
const process$
|
|
897
|
+
const process$3 = __require("node:process");
|
|
898
898
|
const { Argument, humanReadableArgName } = require_argument();
|
|
899
899
|
const { CommanderError } = require_error$1();
|
|
900
900
|
const { Help } = require_help();
|
|
@@ -945,10 +945,10 @@ var require_command = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
945
945
|
this._showHelpAfterError = false;
|
|
946
946
|
this._showSuggestionAfterError = true;
|
|
947
947
|
this._outputConfiguration = {
|
|
948
|
-
writeOut: (str) => process$
|
|
949
|
-
writeErr: (str) => process$
|
|
950
|
-
getOutHelpWidth: () => process$
|
|
951
|
-
getErrHelpWidth: () => process$
|
|
948
|
+
writeOut: (str) => process$3.stdout.write(str),
|
|
949
|
+
writeErr: (str) => process$3.stderr.write(str),
|
|
950
|
+
getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
|
|
951
|
+
getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
|
|
952
952
|
outputError: (str, write) => write(str)
|
|
953
953
|
};
|
|
954
954
|
this._hidden = false;
|
|
@@ -1302,7 +1302,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1302
1302
|
*/
|
|
1303
1303
|
_exit(exitCode, code$1, message) {
|
|
1304
1304
|
if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code$1, message));
|
|
1305
|
-
process$
|
|
1305
|
+
process$3.exit(exitCode);
|
|
1306
1306
|
}
|
|
1307
1307
|
/**
|
|
1308
1308
|
* Register callback `fn` for the command.
|
|
@@ -1641,11 +1641,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1641
1641
|
if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
|
|
1642
1642
|
parseOptions = parseOptions || {};
|
|
1643
1643
|
if (argv === void 0 && parseOptions.from === void 0) {
|
|
1644
|
-
if (process$
|
|
1645
|
-
const execArgv$1 = process$
|
|
1644
|
+
if (process$3.versions?.electron) parseOptions.from = "electron";
|
|
1645
|
+
const execArgv$1 = process$3.execArgv ?? [];
|
|
1646
1646
|
if (execArgv$1.includes("-e") || execArgv$1.includes("--eval") || execArgv$1.includes("-p") || execArgv$1.includes("--print")) parseOptions.from = "eval";
|
|
1647
1647
|
}
|
|
1648
|
-
if (argv === void 0) argv = process$
|
|
1648
|
+
if (argv === void 0) argv = process$3.argv;
|
|
1649
1649
|
this.rawArgs = argv.slice();
|
|
1650
1650
|
let userArgs;
|
|
1651
1651
|
switch (parseOptions.from) {
|
|
@@ -1655,7 +1655,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1655
1655
|
userArgs = argv.slice(2);
|
|
1656
1656
|
break;
|
|
1657
1657
|
case "electron":
|
|
1658
|
-
if (process$
|
|
1658
|
+
if (process$3.defaultApp) {
|
|
1659
1659
|
this._scriptPath = argv[1];
|
|
1660
1660
|
userArgs = argv.slice(2);
|
|
1661
1661
|
} else userArgs = argv.slice(1);
|
|
@@ -1769,15 +1769,15 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1769
1769
|
}
|
|
1770
1770
|
launchWithNode = sourceExt.includes(path$15.extname(executableFile));
|
|
1771
1771
|
let proc$1;
|
|
1772
|
-
if (process$
|
|
1772
|
+
if (process$3.platform !== "win32") if (launchWithNode) {
|
|
1773
1773
|
args.unshift(executableFile);
|
|
1774
|
-
args = incrementNodeInspectorPort(process$
|
|
1775
|
-
proc$1 = childProcess$1.spawn(process$
|
|
1774
|
+
args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
|
|
1775
|
+
proc$1 = childProcess$1.spawn(process$3.argv[0], args, { stdio: "inherit" });
|
|
1776
1776
|
} else proc$1 = childProcess$1.spawn(executableFile, args, { stdio: "inherit" });
|
|
1777
1777
|
else {
|
|
1778
1778
|
args.unshift(executableFile);
|
|
1779
|
-
args = incrementNodeInspectorPort(process$
|
|
1780
|
-
proc$1 = childProcess$1.spawn(process$
|
|
1779
|
+
args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
|
|
1780
|
+
proc$1 = childProcess$1.spawn(process$3.execPath, args, { stdio: "inherit" });
|
|
1781
1781
|
}
|
|
1782
1782
|
if (!proc$1.killed) [
|
|
1783
1783
|
"SIGUSR1",
|
|
@@ -1786,14 +1786,14 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1786
1786
|
"SIGINT",
|
|
1787
1787
|
"SIGHUP"
|
|
1788
1788
|
].forEach((signal) => {
|
|
1789
|
-
process$
|
|
1789
|
+
process$3.on(signal, () => {
|
|
1790
1790
|
if (proc$1.killed === false && proc$1.exitCode === null) proc$1.kill(signal);
|
|
1791
1791
|
});
|
|
1792
1792
|
});
|
|
1793
1793
|
const exitCallback = this._exitCallback;
|
|
1794
1794
|
proc$1.on("close", (code$1) => {
|
|
1795
1795
|
code$1 = code$1 ?? 1;
|
|
1796
|
-
if (!exitCallback) process$
|
|
1796
|
+
if (!exitCallback) process$3.exit(code$1);
|
|
1797
1797
|
else exitCallback(new CommanderError(code$1, "commander.executeSubCommandAsync", "(close)"));
|
|
1798
1798
|
});
|
|
1799
1799
|
proc$1.on("error", (err) => {
|
|
@@ -1805,7 +1805,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1805
1805
|
- ${executableDirMessage}`;
|
|
1806
1806
|
throw new Error(executableMissing);
|
|
1807
1807
|
} else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
|
|
1808
|
-
if (!exitCallback) process$
|
|
1808
|
+
if (!exitCallback) process$3.exit(1);
|
|
1809
1809
|
else {
|
|
1810
1810
|
const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
|
|
1811
1811
|
wrappedError.nestedError = err;
|
|
@@ -2211,13 +2211,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2211
2211
|
*/
|
|
2212
2212
|
_parseOptionsEnv() {
|
|
2213
2213
|
this.options.forEach((option) => {
|
|
2214
|
-
if (option.envVar && option.envVar in process$
|
|
2214
|
+
if (option.envVar && option.envVar in process$3.env) {
|
|
2215
2215
|
const optionKey = option.attributeName();
|
|
2216
2216
|
if (this.getOptionValue(optionKey) === void 0 || [
|
|
2217
2217
|
"default",
|
|
2218
2218
|
"config",
|
|
2219
2219
|
"env"
|
|
2220
|
-
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$
|
|
2220
|
+
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
|
|
2221
2221
|
else this.emit(`optionEnv:${option.name()}`);
|
|
2222
2222
|
}
|
|
2223
2223
|
});
|
|
@@ -2596,7 +2596,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2596
2596
|
*/
|
|
2597
2597
|
help(contextOptions) {
|
|
2598
2598
|
this.outputHelp(contextOptions);
|
|
2599
|
-
let exitCode = process$
|
|
2599
|
+
let exitCode = process$3.exitCode || 0;
|
|
2600
2600
|
if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
|
|
2601
2601
|
this._exit(exitCode, "commander.help", "(outputHelp)");
|
|
2602
2602
|
}
|
|
@@ -2712,16 +2712,16 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2712
2712
|
const CSI = `${ESC}[`;
|
|
2713
2713
|
const beep = "\x07";
|
|
2714
2714
|
const cursor = {
|
|
2715
|
-
to(x$2, y$
|
|
2716
|
-
if (!y$
|
|
2717
|
-
return `${CSI}${y$
|
|
2715
|
+
to(x$2, y$2) {
|
|
2716
|
+
if (!y$2) return `${CSI}${x$2 + 1}G`;
|
|
2717
|
+
return `${CSI}${y$2 + 1};${x$2 + 1}H`;
|
|
2718
2718
|
},
|
|
2719
|
-
move(x$2, y$
|
|
2719
|
+
move(x$2, y$2) {
|
|
2720
2720
|
let ret = "";
|
|
2721
2721
|
if (x$2 < 0) ret += `${CSI}${-x$2}D`;
|
|
2722
2722
|
else if (x$2 > 0) ret += `${CSI}${x$2}C`;
|
|
2723
|
-
if (y$
|
|
2724
|
-
else if (y$
|
|
2723
|
+
if (y$2 < 0) ret += `${CSI}${-y$2}A`;
|
|
2724
|
+
else if (y$2 > 0) ret += `${CSI}${y$2}B`;
|
|
2725
2725
|
return ret;
|
|
2726
2726
|
},
|
|
2727
2727
|
up: (count$1 = 1) => `${CSI}${count$1}A`,
|
|
@@ -3031,13 +3031,13 @@ function rD() {
|
|
|
3031
3031
|
}
|
|
3032
3032
|
}), r;
|
|
3033
3033
|
}
|
|
3034
|
-
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) => {
|
|
3034
|
+
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) => {
|
|
3035
3035
|
const F$1 = [...u$2];
|
|
3036
3036
|
let s = !1, i$1 = !1, D$1 = p(P$1(e$1[e$1.length - 1]));
|
|
3037
3037
|
for (const [C$1, n$1] of F$1.entries()) {
|
|
3038
3038
|
const E = p(n$1);
|
|
3039
3039
|
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) {
|
|
3040
|
-
i$1 ? n$1 === y && (s = !1, i$1 = !1) : n$1 === G$1 && (s = !1);
|
|
3040
|
+
i$1 ? n$1 === y$1 && (s = !1, i$1 = !1) : n$1 === G$1 && (s = !1);
|
|
3041
3041
|
continue;
|
|
3042
3042
|
}
|
|
3043
3043
|
D$1 += E, D$1 === t && C$1 < F$1.length - 1 && (e$1.push(""), D$1 = 0);
|
|
@@ -3079,7 +3079,7 @@ const ED = rD(), d$1 = new Set(["\x1B", ""]), oD = 39, y = "\x07", V$1 = "[",
|
|
|
3079
3079
|
`)];
|
|
3080
3080
|
for (const [E, a$1] of n$1.entries()) {
|
|
3081
3081
|
if (F$1 += a$1, d$1.has(a$1)) {
|
|
3082
|
-
const { groups: c$1 } = (/* @__PURE__ */ new RegExp(`(?:\\${V$1}(?<code>\\d+)m|\\${_$1}(?<uri>.*)${y})`)).exec(n$1.slice(E).join("")) || { groups: {} };
|
|
3082
|
+
const { groups: c$1 } = (/* @__PURE__ */ new RegExp(`(?:\\${V$1}(?<code>\\d+)m|\\${_$1}(?<uri>.*)${y$1})`)).exec(n$1.slice(E).join("")) || { groups: {} };
|
|
3083
3083
|
if (c$1.code !== void 0) {
|
|
3084
3084
|
const f = Number.parseFloat(c$1.code);
|
|
3085
3085
|
s = f === oD ? void 0 : f;
|
|
@@ -3480,7 +3480,7 @@ var RD = class extends x$1 {
|
|
|
3480
3480
|
//#endregion
|
|
3481
3481
|
//#region node_modules/@clack/prompts/dist/index.mjs
|
|
3482
3482
|
function ce() {
|
|
3483
|
-
return
|
|
3483
|
+
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";
|
|
3484
3484
|
}
|
|
3485
3485
|
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) => {
|
|
3486
3486
|
switch (t) {
|
|
@@ -6737,7 +6737,7 @@ function initializeContext(params) {
|
|
|
6737
6737
|
external: params?.external ?? void 0
|
|
6738
6738
|
};
|
|
6739
6739
|
}
|
|
6740
|
-
function process$
|
|
6740
|
+
function process$2(schema, ctx, _params = {
|
|
6741
6741
|
path: [],
|
|
6742
6742
|
schemaPath: []
|
|
6743
6743
|
}) {
|
|
@@ -6774,7 +6774,7 @@ function process$3(schema, ctx, _params = {
|
|
|
6774
6774
|
const parent = schema._zod.parent;
|
|
6775
6775
|
if (parent) {
|
|
6776
6776
|
if (!result.ref) result.ref = parent;
|
|
6777
|
-
process$
|
|
6777
|
+
process$2(parent, ctx, params);
|
|
6778
6778
|
ctx.seen.get(parent).isParent = true;
|
|
6779
6779
|
}
|
|
6780
6780
|
}
|
|
@@ -6986,7 +6986,7 @@ const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
6986
6986
|
...params,
|
|
6987
6987
|
processors
|
|
6988
6988
|
});
|
|
6989
|
-
process$
|
|
6989
|
+
process$2(schema, ctx);
|
|
6990
6990
|
extractDefs(ctx, schema);
|
|
6991
6991
|
return finalize(ctx, schema);
|
|
6992
6992
|
};
|
|
@@ -6998,7 +6998,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
|
|
|
6998
6998
|
io,
|
|
6999
6999
|
processors
|
|
7000
7000
|
});
|
|
7001
|
-
process$
|
|
7001
|
+
process$2(schema, ctx);
|
|
7002
7002
|
extractDefs(ctx, schema);
|
|
7003
7003
|
return finalize(ctx, schema);
|
|
7004
7004
|
};
|
|
@@ -7103,7 +7103,7 @@ const arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
7103
7103
|
if (typeof minimum === "number") json.minItems = minimum;
|
|
7104
7104
|
if (typeof maximum === "number") json.maxItems = maximum;
|
|
7105
7105
|
json.type = "array";
|
|
7106
|
-
json.items = process$
|
|
7106
|
+
json.items = process$2(def.element, ctx, {
|
|
7107
7107
|
...params,
|
|
7108
7108
|
path: [...params.path, "items"]
|
|
7109
7109
|
});
|
|
@@ -7114,7 +7114,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
|
|
|
7114
7114
|
json.type = "object";
|
|
7115
7115
|
json.properties = {};
|
|
7116
7116
|
const shape = def.shape;
|
|
7117
|
-
for (const key in shape) json.properties[key] = process$
|
|
7117
|
+
for (const key in shape) json.properties[key] = process$2(shape[key], ctx, {
|
|
7118
7118
|
...params,
|
|
7119
7119
|
path: [
|
|
7120
7120
|
...params.path,
|
|
@@ -7132,7 +7132,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
|
|
|
7132
7132
|
if (def.catchall?._zod.def.type === "never") json.additionalProperties = false;
|
|
7133
7133
|
else if (!def.catchall) {
|
|
7134
7134
|
if (ctx.io === "output") json.additionalProperties = false;
|
|
7135
|
-
} else if (def.catchall) json.additionalProperties = process$
|
|
7135
|
+
} else if (def.catchall) json.additionalProperties = process$2(def.catchall, ctx, {
|
|
7136
7136
|
...params,
|
|
7137
7137
|
path: [...params.path, "additionalProperties"]
|
|
7138
7138
|
});
|
|
@@ -7140,7 +7140,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
|
|
|
7140
7140
|
const unionProcessor = (schema, ctx, json, params) => {
|
|
7141
7141
|
const def = schema._zod.def;
|
|
7142
7142
|
const isExclusive = def.inclusive === false;
|
|
7143
|
-
const options = def.options.map((x$2, i$1) => process$
|
|
7143
|
+
const options = def.options.map((x$2, i$1) => process$2(x$2, ctx, {
|
|
7144
7144
|
...params,
|
|
7145
7145
|
path: [
|
|
7146
7146
|
...params.path,
|
|
@@ -7153,7 +7153,7 @@ const unionProcessor = (schema, ctx, json, params) => {
|
|
|
7153
7153
|
};
|
|
7154
7154
|
const intersectionProcessor = (schema, ctx, json, params) => {
|
|
7155
7155
|
const def = schema._zod.def;
|
|
7156
|
-
const a$1 = process$
|
|
7156
|
+
const a$1 = process$2(def.left, ctx, {
|
|
7157
7157
|
...params,
|
|
7158
7158
|
path: [
|
|
7159
7159
|
...params.path,
|
|
@@ -7161,7 +7161,7 @@ const intersectionProcessor = (schema, ctx, json, params) => {
|
|
|
7161
7161
|
0
|
|
7162
7162
|
]
|
|
7163
7163
|
});
|
|
7164
|
-
const b$2 = process$
|
|
7164
|
+
const b$2 = process$2(def.right, ctx, {
|
|
7165
7165
|
...params,
|
|
7166
7166
|
path: [
|
|
7167
7167
|
...params.path,
|
|
@@ -7178,7 +7178,7 @@ const tupleProcessor = (schema, ctx, _json, params) => {
|
|
|
7178
7178
|
json.type = "array";
|
|
7179
7179
|
const prefixPath$1 = ctx.target === "draft-2020-12" ? "prefixItems" : "items";
|
|
7180
7180
|
const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems";
|
|
7181
|
-
const prefixItems = def.items.map((x$2, i$1) => process$
|
|
7181
|
+
const prefixItems = def.items.map((x$2, i$1) => process$2(x$2, ctx, {
|
|
7182
7182
|
...params,
|
|
7183
7183
|
path: [
|
|
7184
7184
|
...params.path,
|
|
@@ -7186,7 +7186,7 @@ const tupleProcessor = (schema, ctx, _json, params) => {
|
|
|
7186
7186
|
i$1
|
|
7187
7187
|
]
|
|
7188
7188
|
}));
|
|
7189
|
-
const rest = def.rest ? process$
|
|
7189
|
+
const rest = def.rest ? process$2(def.rest, ctx, {
|
|
7190
7190
|
...params,
|
|
7191
7191
|
path: [
|
|
7192
7192
|
...params.path,
|
|
@@ -7217,7 +7217,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
|
|
|
7217
7217
|
const keyType = def.keyType;
|
|
7218
7218
|
const patterns = keyType._zod.bag?.patterns;
|
|
7219
7219
|
if (def.mode === "loose" && patterns && patterns.size > 0) {
|
|
7220
|
-
const valueSchema = process$
|
|
7220
|
+
const valueSchema = process$2(def.valueType, ctx, {
|
|
7221
7221
|
...params,
|
|
7222
7222
|
path: [
|
|
7223
7223
|
...params.path,
|
|
@@ -7228,11 +7228,11 @@ const recordProcessor = (schema, ctx, _json, params) => {
|
|
|
7228
7228
|
json.patternProperties = {};
|
|
7229
7229
|
for (const pattern of patterns) json.patternProperties[pattern.source] = valueSchema;
|
|
7230
7230
|
} else {
|
|
7231
|
-
if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") json.propertyNames = process$
|
|
7231
|
+
if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") json.propertyNames = process$2(def.keyType, ctx, {
|
|
7232
7232
|
...params,
|
|
7233
7233
|
path: [...params.path, "propertyNames"]
|
|
7234
7234
|
});
|
|
7235
|
-
json.additionalProperties = process$
|
|
7235
|
+
json.additionalProperties = process$2(def.valueType, ctx, {
|
|
7236
7236
|
...params,
|
|
7237
7237
|
path: [...params.path, "additionalProperties"]
|
|
7238
7238
|
});
|
|
@@ -7245,7 +7245,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
|
|
|
7245
7245
|
};
|
|
7246
7246
|
const nullableProcessor = (schema, ctx, json, params) => {
|
|
7247
7247
|
const def = schema._zod.def;
|
|
7248
|
-
const inner = process$
|
|
7248
|
+
const inner = process$2(def.innerType, ctx, params);
|
|
7249
7249
|
const seen = ctx.seen.get(schema);
|
|
7250
7250
|
if (ctx.target === "openapi-3.0") {
|
|
7251
7251
|
seen.ref = def.innerType;
|
|
@@ -7254,27 +7254,27 @@ const nullableProcessor = (schema, ctx, json, params) => {
|
|
|
7254
7254
|
};
|
|
7255
7255
|
const nonoptionalProcessor = (schema, ctx, _json, params) => {
|
|
7256
7256
|
const def = schema._zod.def;
|
|
7257
|
-
process$
|
|
7257
|
+
process$2(def.innerType, ctx, params);
|
|
7258
7258
|
const seen = ctx.seen.get(schema);
|
|
7259
7259
|
seen.ref = def.innerType;
|
|
7260
7260
|
};
|
|
7261
7261
|
const defaultProcessor = (schema, ctx, json, params) => {
|
|
7262
7262
|
const def = schema._zod.def;
|
|
7263
|
-
process$
|
|
7263
|
+
process$2(def.innerType, ctx, params);
|
|
7264
7264
|
const seen = ctx.seen.get(schema);
|
|
7265
7265
|
seen.ref = def.innerType;
|
|
7266
7266
|
json.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
7267
7267
|
};
|
|
7268
7268
|
const prefaultProcessor = (schema, ctx, json, params) => {
|
|
7269
7269
|
const def = schema._zod.def;
|
|
7270
|
-
process$
|
|
7270
|
+
process$2(def.innerType, ctx, params);
|
|
7271
7271
|
const seen = ctx.seen.get(schema);
|
|
7272
7272
|
seen.ref = def.innerType;
|
|
7273
7273
|
if (ctx.io === "input") json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
|
|
7274
7274
|
};
|
|
7275
7275
|
const catchProcessor = (schema, ctx, json, params) => {
|
|
7276
7276
|
const def = schema._zod.def;
|
|
7277
|
-
process$
|
|
7277
|
+
process$2(def.innerType, ctx, params);
|
|
7278
7278
|
const seen = ctx.seen.get(schema);
|
|
7279
7279
|
seen.ref = def.innerType;
|
|
7280
7280
|
let catchValue;
|
|
@@ -7288,20 +7288,20 @@ const catchProcessor = (schema, ctx, json, params) => {
|
|
|
7288
7288
|
const pipeProcessor = (schema, ctx, _json, params) => {
|
|
7289
7289
|
const def = schema._zod.def;
|
|
7290
7290
|
const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
7291
|
-
process$
|
|
7291
|
+
process$2(innerType, ctx, params);
|
|
7292
7292
|
const seen = ctx.seen.get(schema);
|
|
7293
7293
|
seen.ref = innerType;
|
|
7294
7294
|
};
|
|
7295
7295
|
const readonlyProcessor = (schema, ctx, json, params) => {
|
|
7296
7296
|
const def = schema._zod.def;
|
|
7297
|
-
process$
|
|
7297
|
+
process$2(def.innerType, ctx, params);
|
|
7298
7298
|
const seen = ctx.seen.get(schema);
|
|
7299
7299
|
seen.ref = def.innerType;
|
|
7300
7300
|
json.readOnly = true;
|
|
7301
7301
|
};
|
|
7302
7302
|
const optionalProcessor = (schema, ctx, _json, params) => {
|
|
7303
7303
|
const def = schema._zod.def;
|
|
7304
|
-
process$
|
|
7304
|
+
process$2(def.innerType, ctx, params);
|
|
7305
7305
|
const seen = ctx.seen.get(schema);
|
|
7306
7306
|
seen.ref = def.innerType;
|
|
7307
7307
|
};
|
|
@@ -16351,7 +16351,7 @@ const createIgnorePredicate = (patterns, cwd, baseDir) => {
|
|
|
16351
16351
|
};
|
|
16352
16352
|
const normalizeOptions$2 = (options = {}) => {
|
|
16353
16353
|
const ignoreOption = options.ignore ? Array.isArray(options.ignore) ? options.ignore : [options.ignore] : [];
|
|
16354
|
-
const cwd = toPath$1(options.cwd) ??
|
|
16354
|
+
const cwd = toPath$1(options.cwd) ?? y.cwd();
|
|
16355
16355
|
const deep = typeof options.deep === "number" ? Math.max(0, options.deep) + 1 : Number.POSITIVE_INFINITY;
|
|
16356
16356
|
return {
|
|
16357
16357
|
cwd,
|
|
@@ -16448,7 +16448,7 @@ const getDirectoryGlob = ({ directoryPath, files, extensions }) => {
|
|
|
16448
16448
|
const extensionGlob = extensions?.length > 0 ? `.${extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0]}` : "";
|
|
16449
16449
|
return files ? files.map((file) => path.posix.join(directoryPath, `**/${path.extname(file) ? file : `${file}${extensionGlob}`}`)) : [path.posix.join(directoryPath, `**${extensionGlob ? `/*${extensionGlob}` : ""}`)];
|
|
16450
16450
|
};
|
|
16451
|
-
const directoryToGlob = async (directoryPaths, { cwd =
|
|
16451
|
+
const directoryToGlob = async (directoryPaths, { cwd = y.cwd(), files, extensions, fs: fsImplementation } = {}) => {
|
|
16452
16452
|
return (await Promise.all(directoryPaths.map(async (directoryPath) => {
|
|
16453
16453
|
if (shouldExpandGlobstarDirectory(isNegativePattern(directoryPath) ? directoryPath.slice(1) : directoryPath)) return getDirectoryGlob({
|
|
16454
16454
|
directoryPath,
|
|
@@ -16462,7 +16462,7 @@ const directoryToGlob = async (directoryPaths, { cwd = process$1.cwd(), files, e
|
|
|
16462
16462
|
}) : directoryPath;
|
|
16463
16463
|
}))).flat();
|
|
16464
16464
|
};
|
|
16465
|
-
const directoryToGlobSync = (directoryPaths, { cwd =
|
|
16465
|
+
const directoryToGlobSync = (directoryPaths, { cwd = y.cwd(), files, extensions, fs: fsImplementation } = {}) => directoryPaths.flatMap((directoryPath) => {
|
|
16466
16466
|
if (shouldExpandGlobstarDirectory(isNegativePattern(directoryPath) ? directoryPath.slice(1) : directoryPath)) return getDirectoryGlob({
|
|
16467
16467
|
directoryPath,
|
|
16468
16468
|
files,
|
|
@@ -16558,7 +16558,7 @@ const applyIgnoreFilesAndGetFilterSync = (options) => {
|
|
|
16558
16558
|
};
|
|
16559
16559
|
const createFilterFunction = (isIgnored, cwd) => {
|
|
16560
16560
|
const seen = /* @__PURE__ */ new Set();
|
|
16561
|
-
const basePath = cwd ||
|
|
16561
|
+
const basePath = cwd || y.cwd();
|
|
16562
16562
|
const pathCache = /* @__PURE__ */ new Map();
|
|
16563
16563
|
return (fastGlobResult) => {
|
|
16564
16564
|
const pathKey$1 = path.normalize(fastGlobResult.path ?? fastGlobResult);
|
|
@@ -30898,13 +30898,13 @@ var ansi_styles_default = ansiStyles;
|
|
|
30898
30898
|
|
|
30899
30899
|
//#endregion
|
|
30900
30900
|
//#region node_modules/chalk/source/vendor/supports-color/index.js
|
|
30901
|
-
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args :
|
|
30901
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : y.argv) {
|
|
30902
30902
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
30903
30903
|
const position = argv.indexOf(prefix + flag);
|
|
30904
30904
|
const terminatorPosition = argv.indexOf("--");
|
|
30905
30905
|
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
30906
30906
|
}
|
|
30907
|
-
const { env } =
|
|
30907
|
+
const { env } = y;
|
|
30908
30908
|
let flagForceColor;
|
|
30909
30909
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
30910
30910
|
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
@@ -30937,7 +30937,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
30937
30937
|
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
30938
30938
|
const min = forceColor || 0;
|
|
30939
30939
|
if (env.TERM === "dumb") return min;
|
|
30940
|
-
if (
|
|
30940
|
+
if (y.platform === "win32") {
|
|
30941
30941
|
const osRelease = os.release().split(".");
|
|
30942
30942
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
30943
30943
|
return 1;
|
|
@@ -31462,7 +31462,7 @@ const logoutCommand = new Command("logout").description("Logout from current dev
|
|
|
31462
31462
|
});
|
|
31463
31463
|
|
|
31464
31464
|
//#endregion
|
|
31465
|
-
//#region src/core/
|
|
31465
|
+
//#region src/core/types/schema.ts
|
|
31466
31466
|
/**
|
|
31467
31467
|
* Schema for a full entity definition
|
|
31468
31468
|
* Uses loose validation to allow JSON Schema flexibility
|
|
@@ -31475,7 +31475,7 @@ const EntityDefinitionSchema = object({
|
|
|
31475
31475
|
}).passthrough();
|
|
31476
31476
|
|
|
31477
31477
|
//#endregion
|
|
31478
|
-
//#region src/core/
|
|
31478
|
+
//#region src/core/types/generator.ts
|
|
31479
31479
|
const HEADER = `// Auto-generated by Base44 CLI - DO NOT EDIT
|
|
31480
31480
|
// Regenerate with: base44 types
|
|
31481
31481
|
`;
|
|
@@ -31646,7 +31646,7 @@ export * from './client.js';
|
|
|
31646
31646
|
}
|
|
31647
31647
|
|
|
31648
31648
|
//#endregion
|
|
31649
|
-
//#region src/core/
|
|
31649
|
+
//#region src/core/types/types.ts
|
|
31650
31650
|
/**
|
|
31651
31651
|
* Parse entities into EntityDefinition format for type generation
|
|
31652
31652
|
*/
|
|
@@ -31936,9 +31936,9 @@ const getSubprocessResult = ({ stdout: stdout$1 }) => {
|
|
|
31936
31936
|
//#region node_modules/execa/lib/utils/standard-stream.js
|
|
31937
31937
|
const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
|
|
31938
31938
|
const STANDARD_STREAMS = [
|
|
31939
|
-
|
|
31940
|
-
|
|
31941
|
-
|
|
31939
|
+
y.stdin,
|
|
31940
|
+
y.stdout,
|
|
31941
|
+
y.stderr
|
|
31942
31942
|
];
|
|
31943
31943
|
const STANDARD_STREAMS_ALIASES = [
|
|
31944
31944
|
"stdin",
|
|
@@ -32063,9 +32063,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
|
32063
32063
|
//#endregion
|
|
32064
32064
|
//#region node_modules/is-unicode-supported/index.js
|
|
32065
32065
|
function isUnicodeSupported() {
|
|
32066
|
-
const { env: env$1 } =
|
|
32066
|
+
const { env: env$1 } = y;
|
|
32067
32067
|
const { TERM, TERM_PROGRAM } = env$1;
|
|
32068
|
-
if (
|
|
32068
|
+
if (y.platform !== "win32") return TERM !== "linux";
|
|
32069
32069
|
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";
|
|
32070
32070
|
}
|
|
32071
32071
|
|
|
@@ -32992,7 +32992,7 @@ const TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
|
|
|
32992
32992
|
|
|
32993
32993
|
//#endregion
|
|
32994
32994
|
//#region node_modules/npm-run-path/index.js
|
|
32995
|
-
const npmRunPath = ({ cwd =
|
|
32995
|
+
const npmRunPath = ({ cwd = y.cwd(), path: pathOption = y.env[pathKey()], preferLocal = true, execPath: execPath$1 = y.execPath, addExecPath = true } = {}) => {
|
|
32996
32996
|
const cwdPath = path.resolve(toPath(cwd));
|
|
32997
32997
|
const result = [];
|
|
32998
32998
|
const pathParts = pathOption.split(path.delimiter);
|
|
@@ -33010,7 +33010,7 @@ const applyExecPath = (result, pathParts, execPath$1, cwdPath) => {
|
|
|
33010
33010
|
const pathPart = path.resolve(cwdPath, toPath(execPath$1), "..");
|
|
33011
33011
|
if (!pathParts.includes(pathPart)) result.push(pathPart);
|
|
33012
33012
|
};
|
|
33013
|
-
const npmRunPathEnv = ({ env: env$1 =
|
|
33013
|
+
const npmRunPathEnv = ({ env: env$1 = y.env, ...options } = {}) => {
|
|
33014
33014
|
env$1 = { ...env$1 };
|
|
33015
33015
|
const pathName = pathKey({ env: env$1 });
|
|
33016
33016
|
options.path = env$1[pathName];
|
|
@@ -34145,7 +34145,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
|
|
|
34145
34145
|
};
|
|
34146
34146
|
const getDefaultCwd = () => {
|
|
34147
34147
|
try {
|
|
34148
|
-
return
|
|
34148
|
+
return y.cwd();
|
|
34149
34149
|
} catch (error) {
|
|
34150
34150
|
error.message = `The current directory does not exist.\n${error.message}`;
|
|
34151
34151
|
throw error;
|
|
@@ -34180,7 +34180,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
|
34180
34180
|
options.killSignal = normalizeKillSignal(options.killSignal);
|
|
34181
34181
|
options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
|
|
34182
34182
|
options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
|
|
34183
|
-
if (
|
|
34183
|
+
if (y.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
|
|
34184
34184
|
return {
|
|
34185
34185
|
file,
|
|
34186
34186
|
commandArguments,
|
|
@@ -34207,7 +34207,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
|
|
|
34207
34207
|
});
|
|
34208
34208
|
const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
|
|
34209
34209
|
const env$1 = extendEnv ? {
|
|
34210
|
-
...
|
|
34210
|
+
...y.env,
|
|
34211
34211
|
...envOption
|
|
34212
34212
|
} : envOption;
|
|
34213
34213
|
if (preferLocal || node) return npmRunPathEnv({
|
|
@@ -35207,12 +35207,12 @@ const guessStreamDirection = {
|
|
|
35207
35207
|
}
|
|
35208
35208
|
};
|
|
35209
35209
|
const getStandardStreamDirection = (value) => {
|
|
35210
|
-
if ([0,
|
|
35210
|
+
if ([0, y.stdin].includes(value)) return "input";
|
|
35211
35211
|
if ([
|
|
35212
35212
|
1,
|
|
35213
35213
|
2,
|
|
35214
|
-
|
|
35215
|
-
|
|
35214
|
+
y.stdout,
|
|
35215
|
+
y.stderr
|
|
35216
35216
|
].includes(value)) return "output";
|
|
35217
35217
|
};
|
|
35218
35218
|
const DEFAULT_DIRECTION = "output";
|
|
@@ -36276,9 +36276,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
|
|
|
36276
36276
|
Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
|
|
36277
36277
|
};
|
|
36278
36278
|
const getIpcExport = () => {
|
|
36279
|
-
const anyProcess =
|
|
36279
|
+
const anyProcess = y;
|
|
36280
36280
|
const isSubprocess = true;
|
|
36281
|
-
const ipc =
|
|
36281
|
+
const ipc = y.channel !== void 0;
|
|
36282
36282
|
return {
|
|
36283
36283
|
...getIpcMethods(anyProcess, isSubprocess, ipc),
|
|
36284
36284
|
getCancelSignal: getCancelSignal$1.bind(void 0, {
|
|
@@ -36520,7 +36520,7 @@ if (process.platform === "linux") signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SI
|
|
|
36520
36520
|
|
|
36521
36521
|
//#endregion
|
|
36522
36522
|
//#region node_modules/signal-exit/dist/mjs/index.js
|
|
36523
|
-
const processOk = (process$
|
|
36523
|
+
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";
|
|
36524
36524
|
const kExitEmitter = Symbol.for("signal-exit emitter");
|
|
36525
36525
|
const global$1 = globalThis;
|
|
36526
36526
|
const ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
@@ -36588,7 +36588,7 @@ var SignalExitFallback = class extends SignalExitBase {
|
|
|
36588
36588
|
};
|
|
36589
36589
|
var SignalExit = class extends SignalExitBase {
|
|
36590
36590
|
/* c8 ignore start */
|
|
36591
|
-
#hupSig = process$
|
|
36591
|
+
#hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
36592
36592
|
/* c8 ignore stop */
|
|
36593
36593
|
#emitter = new Emitter();
|
|
36594
36594
|
#process;
|
|
@@ -36596,15 +36596,15 @@ var SignalExit = class extends SignalExitBase {
|
|
|
36596
36596
|
#originalProcessReallyExit;
|
|
36597
36597
|
#sigListeners = {};
|
|
36598
36598
|
#loaded = false;
|
|
36599
|
-
constructor(process$
|
|
36599
|
+
constructor(process$4) {
|
|
36600
36600
|
super();
|
|
36601
|
-
this.#process = process$
|
|
36601
|
+
this.#process = process$4;
|
|
36602
36602
|
this.#sigListeners = {};
|
|
36603
36603
|
for (const sig of signals) this.#sigListeners[sig] = () => {
|
|
36604
36604
|
const listeners = this.#process.listeners(sig);
|
|
36605
36605
|
let { count: count$1 } = this.#emitter;
|
|
36606
36606
|
/* c8 ignore start */
|
|
36607
|
-
const p$1 = process$
|
|
36607
|
+
const p$1 = process$4;
|
|
36608
36608
|
if (typeof p$1.__signal_exit_emitter__ === "object" && typeof p$1.__signal_exit_emitter__.count === "number") count$1 += p$1.__signal_exit_emitter__.count;
|
|
36609
36609
|
/* c8 ignore stop */
|
|
36610
36610
|
if (listeners.length === count$1) {
|
|
@@ -36612,11 +36612,11 @@ var SignalExit = class extends SignalExitBase {
|
|
|
36612
36612
|
const ret = this.#emitter.emit("exit", null, sig);
|
|
36613
36613
|
/* c8 ignore start */
|
|
36614
36614
|
const s = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
36615
|
-
if (!ret) process$
|
|
36615
|
+
if (!ret) process$4.kill(process$4.pid, s);
|
|
36616
36616
|
}
|
|
36617
36617
|
};
|
|
36618
|
-
this.#originalProcessReallyExit = process$
|
|
36619
|
-
this.#originalProcessEmit = process$
|
|
36618
|
+
this.#originalProcessReallyExit = process$4.reallyExit;
|
|
36619
|
+
this.#originalProcessEmit = process$4.emit;
|
|
36620
36620
|
}
|
|
36621
36621
|
onExit(cb, opts) {
|
|
36622
36622
|
/* c8 ignore start */
|
|
@@ -36683,8 +36683,8 @@ var SignalExit = class extends SignalExitBase {
|
|
|
36683
36683
|
} else return og.call(this.#process, ev, ...args);
|
|
36684
36684
|
}
|
|
36685
36685
|
};
|
|
36686
|
-
const process$
|
|
36687
|
-
const { onExit, load, unload } = signalExitWrap(processOk(process$
|
|
36686
|
+
const process$1 = globalThis.process;
|
|
36687
|
+
const { onExit, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
|
|
36688
36688
|
|
|
36689
36689
|
//#endregion
|
|
36690
36690
|
//#region node_modules/execa/lib/terminate/cleanup.js
|
|
@@ -38621,7 +38621,7 @@ function isInsideContainer() {
|
|
|
38621
38621
|
//#endregion
|
|
38622
38622
|
//#region node_modules/is-wsl/index.js
|
|
38623
38623
|
const isWsl = () => {
|
|
38624
|
-
if (
|
|
38624
|
+
if (y.platform !== "linux") return false;
|
|
38625
38625
|
if (os.release().toLowerCase().includes("microsoft")) {
|
|
38626
38626
|
if (isInsideContainer()) return false;
|
|
38627
38627
|
return true;
|
|
@@ -38632,12 +38632,12 @@ const isWsl = () => {
|
|
|
38632
38632
|
return false;
|
|
38633
38633
|
}
|
|
38634
38634
|
};
|
|
38635
|
-
var is_wsl_default =
|
|
38635
|
+
var is_wsl_default = y.env.__IS_WSL_TEST__ ? isWsl : isWsl();
|
|
38636
38636
|
|
|
38637
38637
|
//#endregion
|
|
38638
38638
|
//#region node_modules/powershell-utils/index.js
|
|
38639
38639
|
const execFile$2 = promisify(childProcess.execFile);
|
|
38640
|
-
const powerShellPath$1 = () => `${
|
|
38640
|
+
const powerShellPath$1 = () => `${y.env.SYSTEMROOT || y.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
|
|
38641
38641
|
const executePowerShell = async (command, options = {}) => {
|
|
38642
38642
|
const { powerShellPath: psPath, ...execFileOptions } = options;
|
|
38643
38643
|
const encodedCommand = executePowerShell.encodeCommand(command);
|
|
@@ -38748,7 +38748,7 @@ function defineLazyProperty(object$1, propertyName, valueGetter) {
|
|
|
38748
38748
|
//#region node_modules/default-browser-id/index.js
|
|
38749
38749
|
const execFileAsync$3 = promisify(execFile);
|
|
38750
38750
|
async function defaultBrowserId() {
|
|
38751
|
-
if (
|
|
38751
|
+
if (y.platform !== "darwin") throw new Error("macOS only");
|
|
38752
38752
|
const { stdout: stdout$1 } = await execFileAsync$3("defaults", [
|
|
38753
38753
|
"read",
|
|
38754
38754
|
"com.apple.LaunchServices/com.apple.launchservices.secure",
|
|
@@ -38763,7 +38763,7 @@ async function defaultBrowserId() {
|
|
|
38763
38763
|
//#region node_modules/run-applescript/index.js
|
|
38764
38764
|
const execFileAsync$2 = promisify(execFile);
|
|
38765
38765
|
async function runAppleScript(script, { humanReadableOutput = true, signal } = {}) {
|
|
38766
|
-
if (
|
|
38766
|
+
if (y.platform !== "darwin") throw new Error("macOS only");
|
|
38767
38767
|
const outputArguments = humanReadableOutput ? [] : ["-ss"];
|
|
38768
38768
|
const execOptions = {};
|
|
38769
38769
|
if (signal) execOptions.signal = signal;
|
|
@@ -38872,14 +38872,14 @@ async function defaultBrowser$1(_execFileAsync = execFileAsync$1) {
|
|
|
38872
38872
|
const execFileAsync = promisify(execFile);
|
|
38873
38873
|
const titleize = (string$2) => string$2.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, (x$2) => x$2.toUpperCase());
|
|
38874
38874
|
async function defaultBrowser() {
|
|
38875
|
-
if (
|
|
38875
|
+
if (y.platform === "darwin") {
|
|
38876
38876
|
const id = await defaultBrowserId();
|
|
38877
38877
|
return {
|
|
38878
38878
|
name: await bundleName(id),
|
|
38879
38879
|
id
|
|
38880
38880
|
};
|
|
38881
38881
|
}
|
|
38882
|
-
if (
|
|
38882
|
+
if (y.platform === "linux") {
|
|
38883
38883
|
const { stdout: stdout$1 } = await execFileAsync("xdg-mime", [
|
|
38884
38884
|
"query",
|
|
38885
38885
|
"default",
|
|
@@ -38891,13 +38891,13 @@ async function defaultBrowser() {
|
|
|
38891
38891
|
id
|
|
38892
38892
|
};
|
|
38893
38893
|
}
|
|
38894
|
-
if (
|
|
38894
|
+
if (y.platform === "win32") return defaultBrowser$1();
|
|
38895
38895
|
throw new Error("Only macOS, Linux, and Windows are supported");
|
|
38896
38896
|
}
|
|
38897
38897
|
|
|
38898
38898
|
//#endregion
|
|
38899
38899
|
//#region node_modules/is-in-ssh/index.js
|
|
38900
|
-
const isInSsh = Boolean(
|
|
38900
|
+
const isInSsh = Boolean(y.env.SSH_CONNECTION || y.env.SSH_CLIENT || y.env.SSH_TTY);
|
|
38901
38901
|
var is_in_ssh_default = isInSsh;
|
|
38902
38902
|
|
|
38903
38903
|
//#endregion
|
|
@@ -38905,7 +38905,7 @@ var is_in_ssh_default = isInSsh;
|
|
|
38905
38905
|
const fallbackAttemptSymbol = Symbol("fallbackAttempt");
|
|
38906
38906
|
const __dirname = import.meta.url ? path.dirname(fileURLToPath(import.meta.url)) : "";
|
|
38907
38907
|
const localXdgOpenPath = path.join(__dirname, "xdg-open");
|
|
38908
|
-
const { platform: platform$1, arch } =
|
|
38908
|
+
const { platform: platform$1, arch } = y;
|
|
38909
38909
|
const tryEachApp = async (apps$1, opener) => {
|
|
38910
38910
|
if (apps$1.length === 0) return;
|
|
38911
38911
|
const errors = [];
|
|
@@ -39018,7 +39018,7 @@ const baseOpen = async (options) => {
|
|
|
39018
39018
|
await fs$1.access(localXdgOpenPath, constants$1.X_OK);
|
|
39019
39019
|
exeLocalXdgOpen = true;
|
|
39020
39020
|
} catch {}
|
|
39021
|
-
command =
|
|
39021
|
+
command = y.versions.electron ?? (platform$1 === "android" || isBundled || !exeLocalXdgOpen) ? "xdg-open" : localXdgOpenPath;
|
|
39022
39022
|
}
|
|
39023
39023
|
if (appArguments.length > 0) cliArguments.push(...appArguments);
|
|
39024
39024
|
if (!options.wait) {
|
package/package.json
CHANGED