@adhdev/daemon-standalone 0.9.76-rc.2 → 0.9.76-rc.4
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
CHANGED
|
@@ -9591,7 +9591,7 @@ var require_dist = __commonJS({
|
|
|
9591
9591
|
};
|
|
9592
9592
|
}
|
|
9593
9593
|
};
|
|
9594
|
-
var
|
|
9594
|
+
var os7 = __toESM2(require("os"));
|
|
9595
9595
|
var path23 = __toESM2(require("path"));
|
|
9596
9596
|
var net3 = __toESM2(require("net"));
|
|
9597
9597
|
var import_crypto22 = require("crypto");
|
|
@@ -9604,7 +9604,7 @@ var require_dist = __commonJS({
|
|
|
9604
9604
|
}
|
|
9605
9605
|
return {
|
|
9606
9606
|
kind: "unix",
|
|
9607
|
-
path: path23.join(
|
|
9607
|
+
path: path23.join(os7.tmpdir(), `${appName}-session-host.sock`)
|
|
9608
9608
|
};
|
|
9609
9609
|
}
|
|
9610
9610
|
function serializeEnvelope3(envelope) {
|
|
@@ -9745,31 +9745,31 @@ var require_dist = __commonJS({
|
|
|
9745
9745
|
var os22 = __toESM2(require("os"));
|
|
9746
9746
|
var path32 = __toESM2(require("path"));
|
|
9747
9747
|
function sanitizeSpawnEnv(baseEnv, overrides) {
|
|
9748
|
-
const
|
|
9748
|
+
const env2 = {};
|
|
9749
9749
|
const source = { ...baseEnv, ...overrides || {} };
|
|
9750
9750
|
for (const [key, value] of Object.entries(source)) {
|
|
9751
9751
|
if (typeof value !== "string") continue;
|
|
9752
|
-
|
|
9752
|
+
env2[key] = value;
|
|
9753
9753
|
}
|
|
9754
|
-
for (const key of Object.keys(
|
|
9754
|
+
for (const key of Object.keys(env2)) {
|
|
9755
9755
|
if (key === "INIT_CWD" || key === "npm_command" || key === "npm_execpath" || key === "npm_node_execpath" || key.startsWith("npm_") || key.startsWith("npm_config_") || key.startsWith("npm_package_") || key.startsWith("npm_lifecycle_") || key.startsWith("PNPM_") || key.startsWith("YARN_") || key.startsWith("BUN_") || key.startsWith("VSCODE_") || key.startsWith("ELECTRON_")) {
|
|
9756
|
-
delete
|
|
9756
|
+
delete env2[key];
|
|
9757
9757
|
}
|
|
9758
9758
|
}
|
|
9759
|
-
delete
|
|
9760
|
-
delete
|
|
9761
|
-
applyTerminalColorEnv(
|
|
9762
|
-
return
|
|
9759
|
+
delete env2.CODEX_THREAD_ID;
|
|
9760
|
+
delete env2.CODEX_INTERNAL_ORIGINATOR_OVERRIDE;
|
|
9761
|
+
applyTerminalColorEnv(env2);
|
|
9762
|
+
return env2;
|
|
9763
9763
|
}
|
|
9764
|
-
function applyTerminalColorEnv(
|
|
9765
|
-
if (
|
|
9766
|
-
if (!
|
|
9767
|
-
|
|
9764
|
+
function applyTerminalColorEnv(env2) {
|
|
9765
|
+
if (env2.NO_COLOR) return;
|
|
9766
|
+
if (!env2.TERM || env2.TERM === "xterm-color") {
|
|
9767
|
+
env2.TERM = "xterm-256color";
|
|
9768
9768
|
}
|
|
9769
|
-
if (!
|
|
9769
|
+
if (!env2.COLORTERM) env2.COLORTERM = "truecolor";
|
|
9770
9770
|
if (process.platform === "win32") {
|
|
9771
|
-
if (!
|
|
9772
|
-
if (!
|
|
9771
|
+
if (!env2.FORCE_COLOR) env2.FORCE_COLOR = "1";
|
|
9772
|
+
if (!env2.CLICOLOR) env2.CLICOLOR = "1";
|
|
9773
9773
|
}
|
|
9774
9774
|
}
|
|
9775
9775
|
function ensureNodePtySpawnHelperPermissions(logFn) {
|
|
@@ -9792,6 +9792,548 @@ var require_dist = __commonJS({
|
|
|
9792
9792
|
}
|
|
9793
9793
|
});
|
|
9794
9794
|
|
|
9795
|
+
// ../../node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
9796
|
+
function assembleStyles() {
|
|
9797
|
+
const codes = /* @__PURE__ */ new Map();
|
|
9798
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
9799
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
9800
|
+
styles[styleName] = {
|
|
9801
|
+
open: `\x1B[${style[0]}m`,
|
|
9802
|
+
close: `\x1B[${style[1]}m`
|
|
9803
|
+
};
|
|
9804
|
+
group[styleName] = styles[styleName];
|
|
9805
|
+
codes.set(style[0], style[1]);
|
|
9806
|
+
}
|
|
9807
|
+
Object.defineProperty(styles, groupName, {
|
|
9808
|
+
value: group,
|
|
9809
|
+
enumerable: false
|
|
9810
|
+
});
|
|
9811
|
+
}
|
|
9812
|
+
Object.defineProperty(styles, "codes", {
|
|
9813
|
+
value: codes,
|
|
9814
|
+
enumerable: false
|
|
9815
|
+
});
|
|
9816
|
+
styles.color.close = "\x1B[39m";
|
|
9817
|
+
styles.bgColor.close = "\x1B[49m";
|
|
9818
|
+
styles.color.ansi = wrapAnsi16();
|
|
9819
|
+
styles.color.ansi256 = wrapAnsi256();
|
|
9820
|
+
styles.color.ansi16m = wrapAnsi16m();
|
|
9821
|
+
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
9822
|
+
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
9823
|
+
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
9824
|
+
Object.defineProperties(styles, {
|
|
9825
|
+
rgbToAnsi256: {
|
|
9826
|
+
value(red, green, blue) {
|
|
9827
|
+
if (red === green && green === blue) {
|
|
9828
|
+
if (red < 8) {
|
|
9829
|
+
return 16;
|
|
9830
|
+
}
|
|
9831
|
+
if (red > 248) {
|
|
9832
|
+
return 231;
|
|
9833
|
+
}
|
|
9834
|
+
return Math.round((red - 8) / 247 * 24) + 232;
|
|
9835
|
+
}
|
|
9836
|
+
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
9837
|
+
},
|
|
9838
|
+
enumerable: false
|
|
9839
|
+
},
|
|
9840
|
+
hexToRgb: {
|
|
9841
|
+
value(hex3) {
|
|
9842
|
+
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex3.toString(16));
|
|
9843
|
+
if (!matches) {
|
|
9844
|
+
return [0, 0, 0];
|
|
9845
|
+
}
|
|
9846
|
+
let [colorString] = matches;
|
|
9847
|
+
if (colorString.length === 3) {
|
|
9848
|
+
colorString = [...colorString].map((character) => character + character).join("");
|
|
9849
|
+
}
|
|
9850
|
+
const integer2 = Number.parseInt(colorString, 16);
|
|
9851
|
+
return [
|
|
9852
|
+
/* eslint-disable no-bitwise */
|
|
9853
|
+
integer2 >> 16 & 255,
|
|
9854
|
+
integer2 >> 8 & 255,
|
|
9855
|
+
integer2 & 255
|
|
9856
|
+
/* eslint-enable no-bitwise */
|
|
9857
|
+
];
|
|
9858
|
+
},
|
|
9859
|
+
enumerable: false
|
|
9860
|
+
},
|
|
9861
|
+
hexToAnsi256: {
|
|
9862
|
+
value: (hex3) => styles.rgbToAnsi256(...styles.hexToRgb(hex3)),
|
|
9863
|
+
enumerable: false
|
|
9864
|
+
},
|
|
9865
|
+
ansi256ToAnsi: {
|
|
9866
|
+
value(code) {
|
|
9867
|
+
if (code < 8) {
|
|
9868
|
+
return 30 + code;
|
|
9869
|
+
}
|
|
9870
|
+
if (code < 16) {
|
|
9871
|
+
return 90 + (code - 8);
|
|
9872
|
+
}
|
|
9873
|
+
let red;
|
|
9874
|
+
let green;
|
|
9875
|
+
let blue;
|
|
9876
|
+
if (code >= 232) {
|
|
9877
|
+
red = ((code - 232) * 10 + 8) / 255;
|
|
9878
|
+
green = red;
|
|
9879
|
+
blue = red;
|
|
9880
|
+
} else {
|
|
9881
|
+
code -= 16;
|
|
9882
|
+
const remainder = code % 36;
|
|
9883
|
+
red = Math.floor(code / 36) / 5;
|
|
9884
|
+
green = Math.floor(remainder / 6) / 5;
|
|
9885
|
+
blue = remainder % 6 / 5;
|
|
9886
|
+
}
|
|
9887
|
+
const value = Math.max(red, green, blue) * 2;
|
|
9888
|
+
if (value === 0) {
|
|
9889
|
+
return 30;
|
|
9890
|
+
}
|
|
9891
|
+
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
9892
|
+
if (value === 2) {
|
|
9893
|
+
result += 60;
|
|
9894
|
+
}
|
|
9895
|
+
return result;
|
|
9896
|
+
},
|
|
9897
|
+
enumerable: false
|
|
9898
|
+
},
|
|
9899
|
+
rgbToAnsi: {
|
|
9900
|
+
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
9901
|
+
enumerable: false
|
|
9902
|
+
},
|
|
9903
|
+
hexToAnsi: {
|
|
9904
|
+
value: (hex3) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex3)),
|
|
9905
|
+
enumerable: false
|
|
9906
|
+
}
|
|
9907
|
+
});
|
|
9908
|
+
return styles;
|
|
9909
|
+
}
|
|
9910
|
+
var ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default;
|
|
9911
|
+
var init_ansi_styles = __esm({
|
|
9912
|
+
"../../node_modules/chalk/source/vendor/ansi-styles/index.js"() {
|
|
9913
|
+
"use strict";
|
|
9914
|
+
ANSI_BACKGROUND_OFFSET = 10;
|
|
9915
|
+
wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
9916
|
+
wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
9917
|
+
wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
9918
|
+
styles = {
|
|
9919
|
+
modifier: {
|
|
9920
|
+
reset: [0, 0],
|
|
9921
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
9922
|
+
bold: [1, 22],
|
|
9923
|
+
dim: [2, 22],
|
|
9924
|
+
italic: [3, 23],
|
|
9925
|
+
underline: [4, 24],
|
|
9926
|
+
overline: [53, 55],
|
|
9927
|
+
inverse: [7, 27],
|
|
9928
|
+
hidden: [8, 28],
|
|
9929
|
+
strikethrough: [9, 29]
|
|
9930
|
+
},
|
|
9931
|
+
color: {
|
|
9932
|
+
black: [30, 39],
|
|
9933
|
+
red: [31, 39],
|
|
9934
|
+
green: [32, 39],
|
|
9935
|
+
yellow: [33, 39],
|
|
9936
|
+
blue: [34, 39],
|
|
9937
|
+
magenta: [35, 39],
|
|
9938
|
+
cyan: [36, 39],
|
|
9939
|
+
white: [37, 39],
|
|
9940
|
+
// Bright color
|
|
9941
|
+
blackBright: [90, 39],
|
|
9942
|
+
gray: [90, 39],
|
|
9943
|
+
// Alias of `blackBright`
|
|
9944
|
+
grey: [90, 39],
|
|
9945
|
+
// Alias of `blackBright`
|
|
9946
|
+
redBright: [91, 39],
|
|
9947
|
+
greenBright: [92, 39],
|
|
9948
|
+
yellowBright: [93, 39],
|
|
9949
|
+
blueBright: [94, 39],
|
|
9950
|
+
magentaBright: [95, 39],
|
|
9951
|
+
cyanBright: [96, 39],
|
|
9952
|
+
whiteBright: [97, 39]
|
|
9953
|
+
},
|
|
9954
|
+
bgColor: {
|
|
9955
|
+
bgBlack: [40, 49],
|
|
9956
|
+
bgRed: [41, 49],
|
|
9957
|
+
bgGreen: [42, 49],
|
|
9958
|
+
bgYellow: [43, 49],
|
|
9959
|
+
bgBlue: [44, 49],
|
|
9960
|
+
bgMagenta: [45, 49],
|
|
9961
|
+
bgCyan: [46, 49],
|
|
9962
|
+
bgWhite: [47, 49],
|
|
9963
|
+
// Bright color
|
|
9964
|
+
bgBlackBright: [100, 49],
|
|
9965
|
+
bgGray: [100, 49],
|
|
9966
|
+
// Alias of `bgBlackBright`
|
|
9967
|
+
bgGrey: [100, 49],
|
|
9968
|
+
// Alias of `bgBlackBright`
|
|
9969
|
+
bgRedBright: [101, 49],
|
|
9970
|
+
bgGreenBright: [102, 49],
|
|
9971
|
+
bgYellowBright: [103, 49],
|
|
9972
|
+
bgBlueBright: [104, 49],
|
|
9973
|
+
bgMagentaBright: [105, 49],
|
|
9974
|
+
bgCyanBright: [106, 49],
|
|
9975
|
+
bgWhiteBright: [107, 49]
|
|
9976
|
+
}
|
|
9977
|
+
};
|
|
9978
|
+
modifierNames = Object.keys(styles.modifier);
|
|
9979
|
+
foregroundColorNames = Object.keys(styles.color);
|
|
9980
|
+
backgroundColorNames = Object.keys(styles.bgColor);
|
|
9981
|
+
colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
9982
|
+
ansiStyles = assembleStyles();
|
|
9983
|
+
ansi_styles_default = ansiStyles;
|
|
9984
|
+
}
|
|
9985
|
+
});
|
|
9986
|
+
|
|
9987
|
+
// ../../node_modules/chalk/source/vendor/supports-color/index.js
|
|
9988
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
|
|
9989
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
9990
|
+
const position = argv.indexOf(prefix + flag);
|
|
9991
|
+
const terminatorPosition = argv.indexOf("--");
|
|
9992
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
9993
|
+
}
|
|
9994
|
+
function envForceColor() {
|
|
9995
|
+
if ("FORCE_COLOR" in env) {
|
|
9996
|
+
if (env.FORCE_COLOR === "true") {
|
|
9997
|
+
return 1;
|
|
9998
|
+
}
|
|
9999
|
+
if (env.FORCE_COLOR === "false") {
|
|
10000
|
+
return 0;
|
|
10001
|
+
}
|
|
10002
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
10003
|
+
}
|
|
10004
|
+
}
|
|
10005
|
+
function translateLevel(level) {
|
|
10006
|
+
if (level === 0) {
|
|
10007
|
+
return false;
|
|
10008
|
+
}
|
|
10009
|
+
return {
|
|
10010
|
+
level,
|
|
10011
|
+
hasBasic: true,
|
|
10012
|
+
has256: level >= 2,
|
|
10013
|
+
has16m: level >= 3
|
|
10014
|
+
};
|
|
10015
|
+
}
|
|
10016
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
10017
|
+
const noFlagForceColor = envForceColor();
|
|
10018
|
+
if (noFlagForceColor !== void 0) {
|
|
10019
|
+
flagForceColor = noFlagForceColor;
|
|
10020
|
+
}
|
|
10021
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
10022
|
+
if (forceColor === 0) {
|
|
10023
|
+
return 0;
|
|
10024
|
+
}
|
|
10025
|
+
if (sniffFlags) {
|
|
10026
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
10027
|
+
return 3;
|
|
10028
|
+
}
|
|
10029
|
+
if (hasFlag("color=256")) {
|
|
10030
|
+
return 2;
|
|
10031
|
+
}
|
|
10032
|
+
}
|
|
10033
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
10034
|
+
return 1;
|
|
10035
|
+
}
|
|
10036
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
10037
|
+
return 0;
|
|
10038
|
+
}
|
|
10039
|
+
const min = forceColor || 0;
|
|
10040
|
+
if (env.TERM === "dumb") {
|
|
10041
|
+
return min;
|
|
10042
|
+
}
|
|
10043
|
+
if (import_node_process.default.platform === "win32") {
|
|
10044
|
+
const osRelease = import_node_os.default.release().split(".");
|
|
10045
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
10046
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
10047
|
+
}
|
|
10048
|
+
return 1;
|
|
10049
|
+
}
|
|
10050
|
+
if ("CI" in env) {
|
|
10051
|
+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
|
|
10052
|
+
return 3;
|
|
10053
|
+
}
|
|
10054
|
+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
10055
|
+
return 1;
|
|
10056
|
+
}
|
|
10057
|
+
return min;
|
|
10058
|
+
}
|
|
10059
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
10060
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
10061
|
+
}
|
|
10062
|
+
if (env.COLORTERM === "truecolor") {
|
|
10063
|
+
return 3;
|
|
10064
|
+
}
|
|
10065
|
+
if (env.TERM === "xterm-kitty") {
|
|
10066
|
+
return 3;
|
|
10067
|
+
}
|
|
10068
|
+
if (env.TERM === "xterm-ghostty") {
|
|
10069
|
+
return 3;
|
|
10070
|
+
}
|
|
10071
|
+
if (env.TERM === "wezterm") {
|
|
10072
|
+
return 3;
|
|
10073
|
+
}
|
|
10074
|
+
if ("TERM_PROGRAM" in env) {
|
|
10075
|
+
const version2 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
10076
|
+
switch (env.TERM_PROGRAM) {
|
|
10077
|
+
case "iTerm.app": {
|
|
10078
|
+
return version2 >= 3 ? 3 : 2;
|
|
10079
|
+
}
|
|
10080
|
+
case "Apple_Terminal": {
|
|
10081
|
+
return 2;
|
|
10082
|
+
}
|
|
10083
|
+
}
|
|
10084
|
+
}
|
|
10085
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
10086
|
+
return 2;
|
|
10087
|
+
}
|
|
10088
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
10089
|
+
return 1;
|
|
10090
|
+
}
|
|
10091
|
+
if ("COLORTERM" in env) {
|
|
10092
|
+
return 1;
|
|
10093
|
+
}
|
|
10094
|
+
return min;
|
|
10095
|
+
}
|
|
10096
|
+
function createSupportsColor(stream, options = {}) {
|
|
10097
|
+
const level = _supportsColor(stream, {
|
|
10098
|
+
streamIsTTY: stream && stream.isTTY,
|
|
10099
|
+
...options
|
|
10100
|
+
});
|
|
10101
|
+
return translateLevel(level);
|
|
10102
|
+
}
|
|
10103
|
+
var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
|
|
10104
|
+
var init_supports_color = __esm({
|
|
10105
|
+
"../../node_modules/chalk/source/vendor/supports-color/index.js"() {
|
|
10106
|
+
"use strict";
|
|
10107
|
+
import_node_process = __toESM(require("process"), 1);
|
|
10108
|
+
import_node_os = __toESM(require("os"), 1);
|
|
10109
|
+
import_node_tty = __toESM(require("tty"), 1);
|
|
10110
|
+
({ env } = import_node_process.default);
|
|
10111
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
10112
|
+
flagForceColor = 0;
|
|
10113
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
10114
|
+
flagForceColor = 1;
|
|
10115
|
+
}
|
|
10116
|
+
supportsColor = {
|
|
10117
|
+
stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
|
|
10118
|
+
stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
|
|
10119
|
+
};
|
|
10120
|
+
supports_color_default = supportsColor;
|
|
10121
|
+
}
|
|
10122
|
+
});
|
|
10123
|
+
|
|
10124
|
+
// ../../node_modules/chalk/source/utilities.js
|
|
10125
|
+
function stringReplaceAll(string4, substring, replacer) {
|
|
10126
|
+
let index = string4.indexOf(substring);
|
|
10127
|
+
if (index === -1) {
|
|
10128
|
+
return string4;
|
|
10129
|
+
}
|
|
10130
|
+
const substringLength = substring.length;
|
|
10131
|
+
let endIndex = 0;
|
|
10132
|
+
let returnValue = "";
|
|
10133
|
+
do {
|
|
10134
|
+
returnValue += string4.slice(endIndex, index) + substring + replacer;
|
|
10135
|
+
endIndex = index + substringLength;
|
|
10136
|
+
index = string4.indexOf(substring, endIndex);
|
|
10137
|
+
} while (index !== -1);
|
|
10138
|
+
returnValue += string4.slice(endIndex);
|
|
10139
|
+
return returnValue;
|
|
10140
|
+
}
|
|
10141
|
+
function stringEncaseCRLFWithFirstIndex(string4, prefix, postfix, index) {
|
|
10142
|
+
let endIndex = 0;
|
|
10143
|
+
let returnValue = "";
|
|
10144
|
+
do {
|
|
10145
|
+
const gotCR = string4[index - 1] === "\r";
|
|
10146
|
+
returnValue += string4.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
10147
|
+
endIndex = index + 1;
|
|
10148
|
+
index = string4.indexOf("\n", endIndex);
|
|
10149
|
+
} while (index !== -1);
|
|
10150
|
+
returnValue += string4.slice(endIndex);
|
|
10151
|
+
return returnValue;
|
|
10152
|
+
}
|
|
10153
|
+
var init_utilities = __esm({
|
|
10154
|
+
"../../node_modules/chalk/source/utilities.js"() {
|
|
10155
|
+
"use strict";
|
|
10156
|
+
}
|
|
10157
|
+
});
|
|
10158
|
+
|
|
10159
|
+
// ../../node_modules/chalk/source/index.js
|
|
10160
|
+
var source_exports = {};
|
|
10161
|
+
__export(source_exports, {
|
|
10162
|
+
Chalk: () => Chalk,
|
|
10163
|
+
backgroundColorNames: () => backgroundColorNames,
|
|
10164
|
+
backgroundColors: () => backgroundColorNames,
|
|
10165
|
+
chalkStderr: () => chalkStderr,
|
|
10166
|
+
colorNames: () => colorNames,
|
|
10167
|
+
colors: () => colorNames,
|
|
10168
|
+
default: () => source_default,
|
|
10169
|
+
foregroundColorNames: () => foregroundColorNames,
|
|
10170
|
+
foregroundColors: () => foregroundColorNames,
|
|
10171
|
+
modifierNames: () => modifierNames,
|
|
10172
|
+
modifiers: () => modifierNames,
|
|
10173
|
+
supportsColor: () => stdoutColor,
|
|
10174
|
+
supportsColorStderr: () => stderrColor
|
|
10175
|
+
});
|
|
10176
|
+
function createChalk(options) {
|
|
10177
|
+
return chalkFactory(options);
|
|
10178
|
+
}
|
|
10179
|
+
var stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles2, applyOptions, Chalk, chalkFactory, getModelAnsi, usedModels, proto, createStyler, createBuilder, applyStyle, chalk, chalkStderr, source_default;
|
|
10180
|
+
var init_source = __esm({
|
|
10181
|
+
"../../node_modules/chalk/source/index.js"() {
|
|
10182
|
+
"use strict";
|
|
10183
|
+
init_ansi_styles();
|
|
10184
|
+
init_supports_color();
|
|
10185
|
+
init_utilities();
|
|
10186
|
+
init_ansi_styles();
|
|
10187
|
+
({ stdout: stdoutColor, stderr: stderrColor } = supports_color_default);
|
|
10188
|
+
GENERATOR = /* @__PURE__ */ Symbol("GENERATOR");
|
|
10189
|
+
STYLER = /* @__PURE__ */ Symbol("STYLER");
|
|
10190
|
+
IS_EMPTY = /* @__PURE__ */ Symbol("IS_EMPTY");
|
|
10191
|
+
levelMapping = [
|
|
10192
|
+
"ansi",
|
|
10193
|
+
"ansi",
|
|
10194
|
+
"ansi256",
|
|
10195
|
+
"ansi16m"
|
|
10196
|
+
];
|
|
10197
|
+
styles2 = /* @__PURE__ */ Object.create(null);
|
|
10198
|
+
applyOptions = (object2, options = {}) => {
|
|
10199
|
+
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
10200
|
+
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
10201
|
+
}
|
|
10202
|
+
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
10203
|
+
object2.level = options.level === void 0 ? colorLevel : options.level;
|
|
10204
|
+
};
|
|
10205
|
+
Chalk = class {
|
|
10206
|
+
constructor(options) {
|
|
10207
|
+
return chalkFactory(options);
|
|
10208
|
+
}
|
|
10209
|
+
};
|
|
10210
|
+
chalkFactory = (options) => {
|
|
10211
|
+
const chalk2 = (...strings) => strings.join(" ");
|
|
10212
|
+
applyOptions(chalk2, options);
|
|
10213
|
+
Object.setPrototypeOf(chalk2, createChalk.prototype);
|
|
10214
|
+
return chalk2;
|
|
10215
|
+
};
|
|
10216
|
+
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
10217
|
+
for (const [styleName, style] of Object.entries(ansi_styles_default)) {
|
|
10218
|
+
styles2[styleName] = {
|
|
10219
|
+
get() {
|
|
10220
|
+
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
10221
|
+
Object.defineProperty(this, styleName, { value: builder });
|
|
10222
|
+
return builder;
|
|
10223
|
+
}
|
|
10224
|
+
};
|
|
10225
|
+
}
|
|
10226
|
+
styles2.visible = {
|
|
10227
|
+
get() {
|
|
10228
|
+
const builder = createBuilder(this, this[STYLER], true);
|
|
10229
|
+
Object.defineProperty(this, "visible", { value: builder });
|
|
10230
|
+
return builder;
|
|
10231
|
+
}
|
|
10232
|
+
};
|
|
10233
|
+
getModelAnsi = (model, level, type, ...arguments_) => {
|
|
10234
|
+
if (model === "rgb") {
|
|
10235
|
+
if (level === "ansi16m") {
|
|
10236
|
+
return ansi_styles_default[type].ansi16m(...arguments_);
|
|
10237
|
+
}
|
|
10238
|
+
if (level === "ansi256") {
|
|
10239
|
+
return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
|
|
10240
|
+
}
|
|
10241
|
+
return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
|
|
10242
|
+
}
|
|
10243
|
+
if (model === "hex") {
|
|
10244
|
+
return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
|
|
10245
|
+
}
|
|
10246
|
+
return ansi_styles_default[type][model](...arguments_);
|
|
10247
|
+
};
|
|
10248
|
+
usedModels = ["rgb", "hex", "ansi256"];
|
|
10249
|
+
for (const model of usedModels) {
|
|
10250
|
+
styles2[model] = {
|
|
10251
|
+
get() {
|
|
10252
|
+
const { level } = this;
|
|
10253
|
+
return function(...arguments_) {
|
|
10254
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
|
|
10255
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
10256
|
+
};
|
|
10257
|
+
}
|
|
10258
|
+
};
|
|
10259
|
+
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
10260
|
+
styles2[bgModel] = {
|
|
10261
|
+
get() {
|
|
10262
|
+
const { level } = this;
|
|
10263
|
+
return function(...arguments_) {
|
|
10264
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
|
|
10265
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
10266
|
+
};
|
|
10267
|
+
}
|
|
10268
|
+
};
|
|
10269
|
+
}
|
|
10270
|
+
proto = Object.defineProperties(() => {
|
|
10271
|
+
}, {
|
|
10272
|
+
...styles2,
|
|
10273
|
+
level: {
|
|
10274
|
+
enumerable: true,
|
|
10275
|
+
get() {
|
|
10276
|
+
return this[GENERATOR].level;
|
|
10277
|
+
},
|
|
10278
|
+
set(level) {
|
|
10279
|
+
this[GENERATOR].level = level;
|
|
10280
|
+
}
|
|
10281
|
+
}
|
|
10282
|
+
});
|
|
10283
|
+
createStyler = (open2, close, parent) => {
|
|
10284
|
+
let openAll;
|
|
10285
|
+
let closeAll;
|
|
10286
|
+
if (parent === void 0) {
|
|
10287
|
+
openAll = open2;
|
|
10288
|
+
closeAll = close;
|
|
10289
|
+
} else {
|
|
10290
|
+
openAll = parent.openAll + open2;
|
|
10291
|
+
closeAll = close + parent.closeAll;
|
|
10292
|
+
}
|
|
10293
|
+
return {
|
|
10294
|
+
open: open2,
|
|
10295
|
+
close,
|
|
10296
|
+
openAll,
|
|
10297
|
+
closeAll,
|
|
10298
|
+
parent
|
|
10299
|
+
};
|
|
10300
|
+
};
|
|
10301
|
+
createBuilder = (self, _styler, _isEmpty) => {
|
|
10302
|
+
const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
10303
|
+
Object.setPrototypeOf(builder, proto);
|
|
10304
|
+
builder[GENERATOR] = self;
|
|
10305
|
+
builder[STYLER] = _styler;
|
|
10306
|
+
builder[IS_EMPTY] = _isEmpty;
|
|
10307
|
+
return builder;
|
|
10308
|
+
};
|
|
10309
|
+
applyStyle = (self, string4) => {
|
|
10310
|
+
if (self.level <= 0 || !string4) {
|
|
10311
|
+
return self[IS_EMPTY] ? "" : string4;
|
|
10312
|
+
}
|
|
10313
|
+
let styler = self[STYLER];
|
|
10314
|
+
if (styler === void 0) {
|
|
10315
|
+
return string4;
|
|
10316
|
+
}
|
|
10317
|
+
const { openAll, closeAll } = styler;
|
|
10318
|
+
if (string4.includes("\x1B")) {
|
|
10319
|
+
while (styler !== void 0) {
|
|
10320
|
+
string4 = stringReplaceAll(string4, styler.close, styler.open);
|
|
10321
|
+
styler = styler.parent;
|
|
10322
|
+
}
|
|
10323
|
+
}
|
|
10324
|
+
const lfIndex = string4.indexOf("\n");
|
|
10325
|
+
if (lfIndex !== -1) {
|
|
10326
|
+
string4 = stringEncaseCRLFWithFirstIndex(string4, closeAll, openAll, lfIndex);
|
|
10327
|
+
}
|
|
10328
|
+
return openAll + string4 + closeAll;
|
|
10329
|
+
};
|
|
10330
|
+
Object.defineProperties(createChalk.prototype, styles2);
|
|
10331
|
+
chalk = createChalk();
|
|
10332
|
+
chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
10333
|
+
source_default = chalk;
|
|
10334
|
+
}
|
|
10335
|
+
});
|
|
10336
|
+
|
|
9795
10337
|
// ../../node_modules/zod/v4/core/core.js
|
|
9796
10338
|
// @__NO_SIDE_EFFECTS__
|
|
9797
10339
|
function $constructor(name, initializer3, params) {
|
|
@@ -9811,12 +10353,12 @@ function $constructor(name, initializer3, params) {
|
|
|
9811
10353
|
}
|
|
9812
10354
|
inst._zod.traits.add(name);
|
|
9813
10355
|
initializer3(inst, def);
|
|
9814
|
-
const
|
|
9815
|
-
const keys = Object.keys(
|
|
10356
|
+
const proto2 = _.prototype;
|
|
10357
|
+
const keys = Object.keys(proto2);
|
|
9816
10358
|
for (let i = 0; i < keys.length; i++) {
|
|
9817
10359
|
const k = keys[i];
|
|
9818
10360
|
if (!(k in inst)) {
|
|
9819
|
-
inst[k] =
|
|
10361
|
+
inst[k] = proto2[k].bind(inst);
|
|
9820
10362
|
}
|
|
9821
10363
|
}
|
|
9822
10364
|
}
|
|
@@ -20658,7 +21200,7 @@ function initializeContext(params) {
|
|
|
20658
21200
|
external: params?.external ?? void 0
|
|
20659
21201
|
};
|
|
20660
21202
|
}
|
|
20661
|
-
function
|
|
21203
|
+
function process3(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
20662
21204
|
var _a2;
|
|
20663
21205
|
const def = schema._zod.def;
|
|
20664
21206
|
const seen = ctx.seen.get(schema);
|
|
@@ -20695,7 +21237,7 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
20695
21237
|
if (parent) {
|
|
20696
21238
|
if (!result.ref)
|
|
20697
21239
|
result.ref = parent;
|
|
20698
|
-
|
|
21240
|
+
process3(parent, ctx, params);
|
|
20699
21241
|
ctx.seen.get(parent).isParent = true;
|
|
20700
21242
|
}
|
|
20701
21243
|
}
|
|
@@ -20981,14 +21523,14 @@ var init_to_json_schema = __esm({
|
|
|
20981
21523
|
init_registries();
|
|
20982
21524
|
createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
20983
21525
|
const ctx = initializeContext({ ...params, processors });
|
|
20984
|
-
|
|
21526
|
+
process3(schema, ctx);
|
|
20985
21527
|
extractDefs(ctx, schema);
|
|
20986
21528
|
return finalize(ctx, schema);
|
|
20987
21529
|
};
|
|
20988
21530
|
createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
20989
21531
|
const { libraryOptions, target } = params ?? {};
|
|
20990
21532
|
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
20991
|
-
|
|
21533
|
+
process3(schema, ctx);
|
|
20992
21534
|
extractDefs(ctx, schema);
|
|
20993
21535
|
return finalize(ctx, schema);
|
|
20994
21536
|
};
|
|
@@ -21003,7 +21545,7 @@ function toJSONSchema(input, params) {
|
|
|
21003
21545
|
const defs = {};
|
|
21004
21546
|
for (const entry of registry2._idmap.entries()) {
|
|
21005
21547
|
const [_, schema] = entry;
|
|
21006
|
-
|
|
21548
|
+
process3(schema, ctx2);
|
|
21007
21549
|
}
|
|
21008
21550
|
const schemas = {};
|
|
21009
21551
|
const external = {
|
|
@@ -21026,7 +21568,7 @@ function toJSONSchema(input, params) {
|
|
|
21026
21568
|
return { schemas };
|
|
21027
21569
|
}
|
|
21028
21570
|
const ctx = initializeContext({ ...params, processors: allProcessors });
|
|
21029
|
-
|
|
21571
|
+
process3(input, ctx);
|
|
21030
21572
|
extractDefs(ctx, input);
|
|
21031
21573
|
return finalize(ctx, input);
|
|
21032
21574
|
}
|
|
@@ -21287,7 +21829,7 @@ var init_json_schema_processors = __esm({
|
|
|
21287
21829
|
if (typeof maximum === "number")
|
|
21288
21830
|
json2.maxItems = maximum;
|
|
21289
21831
|
json2.type = "array";
|
|
21290
|
-
json2.items =
|
|
21832
|
+
json2.items = process3(def.element, ctx, { ...params, path: [...params.path, "items"] });
|
|
21291
21833
|
};
|
|
21292
21834
|
objectProcessor = (schema, ctx, _json, params) => {
|
|
21293
21835
|
const json2 = _json;
|
|
@@ -21296,7 +21838,7 @@ var init_json_schema_processors = __esm({
|
|
|
21296
21838
|
json2.properties = {};
|
|
21297
21839
|
const shape = def.shape;
|
|
21298
21840
|
for (const key in shape) {
|
|
21299
|
-
json2.properties[key] =
|
|
21841
|
+
json2.properties[key] = process3(shape[key], ctx, {
|
|
21300
21842
|
...params,
|
|
21301
21843
|
path: [...params.path, "properties", key]
|
|
21302
21844
|
});
|
|
@@ -21319,7 +21861,7 @@ var init_json_schema_processors = __esm({
|
|
|
21319
21861
|
if (ctx.io === "output")
|
|
21320
21862
|
json2.additionalProperties = false;
|
|
21321
21863
|
} else if (def.catchall) {
|
|
21322
|
-
json2.additionalProperties =
|
|
21864
|
+
json2.additionalProperties = process3(def.catchall, ctx, {
|
|
21323
21865
|
...params,
|
|
21324
21866
|
path: [...params.path, "additionalProperties"]
|
|
21325
21867
|
});
|
|
@@ -21328,7 +21870,7 @@ var init_json_schema_processors = __esm({
|
|
|
21328
21870
|
unionProcessor = (schema, ctx, json2, params) => {
|
|
21329
21871
|
const def = schema._zod.def;
|
|
21330
21872
|
const isExclusive = def.inclusive === false;
|
|
21331
|
-
const options = def.options.map((x, i) =>
|
|
21873
|
+
const options = def.options.map((x, i) => process3(x, ctx, {
|
|
21332
21874
|
...params,
|
|
21333
21875
|
path: [...params.path, isExclusive ? "oneOf" : "anyOf", i]
|
|
21334
21876
|
}));
|
|
@@ -21340,11 +21882,11 @@ var init_json_schema_processors = __esm({
|
|
|
21340
21882
|
};
|
|
21341
21883
|
intersectionProcessor = (schema, ctx, json2, params) => {
|
|
21342
21884
|
const def = schema._zod.def;
|
|
21343
|
-
const a =
|
|
21885
|
+
const a = process3(def.left, ctx, {
|
|
21344
21886
|
...params,
|
|
21345
21887
|
path: [...params.path, "allOf", 0]
|
|
21346
21888
|
});
|
|
21347
|
-
const b2 =
|
|
21889
|
+
const b2 = process3(def.right, ctx, {
|
|
21348
21890
|
...params,
|
|
21349
21891
|
path: [...params.path, "allOf", 1]
|
|
21350
21892
|
});
|
|
@@ -21361,11 +21903,11 @@ var init_json_schema_processors = __esm({
|
|
|
21361
21903
|
json2.type = "array";
|
|
21362
21904
|
const prefixPath = ctx.target === "draft-2020-12" ? "prefixItems" : "items";
|
|
21363
21905
|
const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems";
|
|
21364
|
-
const prefixItems = def.items.map((x, i) =>
|
|
21906
|
+
const prefixItems = def.items.map((x, i) => process3(x, ctx, {
|
|
21365
21907
|
...params,
|
|
21366
21908
|
path: [...params.path, prefixPath, i]
|
|
21367
21909
|
}));
|
|
21368
|
-
const rest = def.rest ?
|
|
21910
|
+
const rest = def.rest ? process3(def.rest, ctx, {
|
|
21369
21911
|
...params,
|
|
21370
21912
|
path: [...params.path, restPath, ...ctx.target === "openapi-3.0" ? [def.items.length] : []]
|
|
21371
21913
|
}) : null;
|
|
@@ -21405,7 +21947,7 @@ var init_json_schema_processors = __esm({
|
|
|
21405
21947
|
const keyBag = keyType._zod.bag;
|
|
21406
21948
|
const patterns = keyBag?.patterns;
|
|
21407
21949
|
if (def.mode === "loose" && patterns && patterns.size > 0) {
|
|
21408
|
-
const valueSchema =
|
|
21950
|
+
const valueSchema = process3(def.valueType, ctx, {
|
|
21409
21951
|
...params,
|
|
21410
21952
|
path: [...params.path, "patternProperties", "*"]
|
|
21411
21953
|
});
|
|
@@ -21415,12 +21957,12 @@ var init_json_schema_processors = __esm({
|
|
|
21415
21957
|
}
|
|
21416
21958
|
} else {
|
|
21417
21959
|
if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") {
|
|
21418
|
-
json2.propertyNames =
|
|
21960
|
+
json2.propertyNames = process3(def.keyType, ctx, {
|
|
21419
21961
|
...params,
|
|
21420
21962
|
path: [...params.path, "propertyNames"]
|
|
21421
21963
|
});
|
|
21422
21964
|
}
|
|
21423
|
-
json2.additionalProperties =
|
|
21965
|
+
json2.additionalProperties = process3(def.valueType, ctx, {
|
|
21424
21966
|
...params,
|
|
21425
21967
|
path: [...params.path, "additionalProperties"]
|
|
21426
21968
|
});
|
|
@@ -21435,7 +21977,7 @@ var init_json_schema_processors = __esm({
|
|
|
21435
21977
|
};
|
|
21436
21978
|
nullableProcessor = (schema, ctx, json2, params) => {
|
|
21437
21979
|
const def = schema._zod.def;
|
|
21438
|
-
const inner =
|
|
21980
|
+
const inner = process3(def.innerType, ctx, params);
|
|
21439
21981
|
const seen = ctx.seen.get(schema);
|
|
21440
21982
|
if (ctx.target === "openapi-3.0") {
|
|
21441
21983
|
seen.ref = def.innerType;
|
|
@@ -21446,20 +21988,20 @@ var init_json_schema_processors = __esm({
|
|
|
21446
21988
|
};
|
|
21447
21989
|
nonoptionalProcessor = (schema, ctx, _json, params) => {
|
|
21448
21990
|
const def = schema._zod.def;
|
|
21449
|
-
|
|
21991
|
+
process3(def.innerType, ctx, params);
|
|
21450
21992
|
const seen = ctx.seen.get(schema);
|
|
21451
21993
|
seen.ref = def.innerType;
|
|
21452
21994
|
};
|
|
21453
21995
|
defaultProcessor = (schema, ctx, json2, params) => {
|
|
21454
21996
|
const def = schema._zod.def;
|
|
21455
|
-
|
|
21997
|
+
process3(def.innerType, ctx, params);
|
|
21456
21998
|
const seen = ctx.seen.get(schema);
|
|
21457
21999
|
seen.ref = def.innerType;
|
|
21458
22000
|
json2.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
21459
22001
|
};
|
|
21460
22002
|
prefaultProcessor = (schema, ctx, json2, params) => {
|
|
21461
22003
|
const def = schema._zod.def;
|
|
21462
|
-
|
|
22004
|
+
process3(def.innerType, ctx, params);
|
|
21463
22005
|
const seen = ctx.seen.get(schema);
|
|
21464
22006
|
seen.ref = def.innerType;
|
|
21465
22007
|
if (ctx.io === "input")
|
|
@@ -21467,7 +22009,7 @@ var init_json_schema_processors = __esm({
|
|
|
21467
22009
|
};
|
|
21468
22010
|
catchProcessor = (schema, ctx, json2, params) => {
|
|
21469
22011
|
const def = schema._zod.def;
|
|
21470
|
-
|
|
22012
|
+
process3(def.innerType, ctx, params);
|
|
21471
22013
|
const seen = ctx.seen.get(schema);
|
|
21472
22014
|
seen.ref = def.innerType;
|
|
21473
22015
|
let catchValue;
|
|
@@ -21481,32 +22023,32 @@ var init_json_schema_processors = __esm({
|
|
|
21481
22023
|
pipeProcessor = (schema, ctx, _json, params) => {
|
|
21482
22024
|
const def = schema._zod.def;
|
|
21483
22025
|
const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
21484
|
-
|
|
22026
|
+
process3(innerType, ctx, params);
|
|
21485
22027
|
const seen = ctx.seen.get(schema);
|
|
21486
22028
|
seen.ref = innerType;
|
|
21487
22029
|
};
|
|
21488
22030
|
readonlyProcessor = (schema, ctx, json2, params) => {
|
|
21489
22031
|
const def = schema._zod.def;
|
|
21490
|
-
|
|
22032
|
+
process3(def.innerType, ctx, params);
|
|
21491
22033
|
const seen = ctx.seen.get(schema);
|
|
21492
22034
|
seen.ref = def.innerType;
|
|
21493
22035
|
json2.readOnly = true;
|
|
21494
22036
|
};
|
|
21495
22037
|
promiseProcessor = (schema, ctx, _json, params) => {
|
|
21496
22038
|
const def = schema._zod.def;
|
|
21497
|
-
|
|
22039
|
+
process3(def.innerType, ctx, params);
|
|
21498
22040
|
const seen = ctx.seen.get(schema);
|
|
21499
22041
|
seen.ref = def.innerType;
|
|
21500
22042
|
};
|
|
21501
22043
|
optionalProcessor = (schema, ctx, _json, params) => {
|
|
21502
22044
|
const def = schema._zod.def;
|
|
21503
|
-
|
|
22045
|
+
process3(def.innerType, ctx, params);
|
|
21504
22046
|
const seen = ctx.seen.get(schema);
|
|
21505
22047
|
seen.ref = def.innerType;
|
|
21506
22048
|
};
|
|
21507
22049
|
lazyProcessor = (schema, ctx, _json, params) => {
|
|
21508
22050
|
const innerType = schema._zod.innerType;
|
|
21509
|
-
|
|
22051
|
+
process3(innerType, ctx, params);
|
|
21510
22052
|
const seen = ctx.seen.get(schema);
|
|
21511
22053
|
seen.ref = innerType;
|
|
21512
22054
|
};
|
|
@@ -21613,7 +22155,7 @@ var init_json_schema_generator = __esm({
|
|
|
21613
22155
|
* This must be called before emit().
|
|
21614
22156
|
*/
|
|
21615
22157
|
process(schema, _params = { path: [], schemaPath: [] }) {
|
|
21616
|
-
return
|
|
22158
|
+
return process3(schema, this.ctx, _params);
|
|
21617
22159
|
}
|
|
21618
22160
|
/**
|
|
21619
22161
|
* Emit the final JSON Schema after processing.
|
|
@@ -21907,7 +22449,7 @@ __export(core_exports2, {
|
|
|
21907
22449
|
parse: () => parse,
|
|
21908
22450
|
parseAsync: () => parseAsync,
|
|
21909
22451
|
prettifyError: () => prettifyError,
|
|
21910
|
-
process: () =>
|
|
22452
|
+
process: () => process3,
|
|
21911
22453
|
regexes: () => regexes_exports,
|
|
21912
22454
|
registry: () => registry,
|
|
21913
22455
|
safeDecode: () => safeDecode,
|
|
@@ -26350,13 +26892,13 @@ function createFsWatchInstance(path5, options, listener, errHandler, emitRaw) {
|
|
|
26350
26892
|
return void 0;
|
|
26351
26893
|
}
|
|
26352
26894
|
}
|
|
26353
|
-
var import_node_fs, import_promises2,
|
|
26895
|
+
var import_node_fs, import_promises2, import_node_os2, sp, STR_DATA, STR_END, STR_CLOSE, EMPTY_FN, pl, isWindows, isMacos, isLinux, isFreeBSD, isIBMi, EVENTS, EV, THROTTLE_MODE_WATCH, statMethods, KEY_LISTENERS, KEY_ERR, KEY_RAW, HANDLER_KEYS, binaryExtensions, isBinaryPath, foreach, addAndConvert, clearItem, delFromSet, isEmptySet, FsWatchInstances, fsWatchBroadcast, setFsWatchListener, FsWatchFileInstances, setFsWatchFileListener, NodeFsHandler;
|
|
26354
26896
|
var init_handler = __esm({
|
|
26355
26897
|
"../daemon-core/node_modules/chokidar/handler.js"() {
|
|
26356
26898
|
"use strict";
|
|
26357
26899
|
import_node_fs = require("fs");
|
|
26358
26900
|
import_promises2 = require("fs/promises");
|
|
26359
|
-
|
|
26901
|
+
import_node_os2 = require("os");
|
|
26360
26902
|
sp = __toESM(require("path"), 1);
|
|
26361
26903
|
STR_DATA = "data";
|
|
26362
26904
|
STR_END = "end";
|
|
@@ -26368,7 +26910,7 @@ var init_handler = __esm({
|
|
|
26368
26910
|
isMacos = pl === "darwin";
|
|
26369
26911
|
isLinux = pl === "linux";
|
|
26370
26912
|
isFreeBSD = pl === "freebsd";
|
|
26371
|
-
isIBMi = (0,
|
|
26913
|
+
isIBMi = (0, import_node_os2.type)() === "OS400";
|
|
26372
26914
|
EVENTS = {
|
|
26373
26915
|
ALL: "all",
|
|
26374
26916
|
READY: "ready",
|
|
@@ -29379,8 +29921,8 @@ ${rules.join("\n")}`;
|
|
|
29379
29921
|
shellCmd = binaryPath;
|
|
29380
29922
|
shellArgs = allArgs;
|
|
29381
29923
|
}
|
|
29382
|
-
const
|
|
29383
|
-
|
|
29924
|
+
const env2 = buildCliSpawnEnv(process.env, spawnConfig.env);
|
|
29925
|
+
env2.TERMINAL_CWD = workingDir;
|
|
29384
29926
|
return {
|
|
29385
29927
|
binaryPath,
|
|
29386
29928
|
allArgs,
|
|
@@ -29392,7 +29934,7 @@ ${rules.join("\n")}`;
|
|
|
29392
29934
|
cols: import_session_host_core22.DEFAULT_SESSION_HOST_COLS,
|
|
29393
29935
|
rows: import_session_host_core22.DEFAULT_SESSION_HOST_ROWS,
|
|
29394
29936
|
cwd: workingDir,
|
|
29395
|
-
env
|
|
29937
|
+
env: env2
|
|
29396
29938
|
}
|
|
29397
29939
|
};
|
|
29398
29940
|
}
|
|
@@ -33027,14 +33569,14 @@ ${lastSnapshot}`;
|
|
|
33027
33569
|
};
|
|
33028
33570
|
init_config();
|
|
33029
33571
|
var fs5 = __toESM2(require("fs"));
|
|
33030
|
-
var
|
|
33572
|
+
var os7 = __toESM2(require("os"));
|
|
33031
33573
|
var path42 = __toESM2(require("path"));
|
|
33032
33574
|
var import_crypto22 = require("crypto");
|
|
33033
33575
|
var MAX_WORKSPACES = 50;
|
|
33034
33576
|
function expandPath(p) {
|
|
33035
33577
|
const t = (p || "").trim();
|
|
33036
33578
|
if (!t) return "";
|
|
33037
|
-
if (t.startsWith("~")) return path42.join(
|
|
33579
|
+
if (t.startsWith("~")) return path42.join(os7.homedir(), t.slice(1).replace(/^\//, ""));
|
|
33038
33580
|
return path42.resolve(t);
|
|
33039
33581
|
}
|
|
33040
33582
|
function validateWorkspacePath(absPath) {
|
|
@@ -33107,7 +33649,7 @@ ${lastSnapshot}`;
|
|
|
33107
33649
|
};
|
|
33108
33650
|
}
|
|
33109
33651
|
if (a.useHome === true) {
|
|
33110
|
-
return { ok: true, path:
|
|
33652
|
+
return { ok: true, path: os7.homedir(), source: "home" };
|
|
33111
33653
|
}
|
|
33112
33654
|
return {
|
|
33113
33655
|
ok: false,
|
|
@@ -40979,7 +41521,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
40979
41521
|
}
|
|
40980
41522
|
var fs52 = __toESM2(require("fs"));
|
|
40981
41523
|
var path12 = __toESM2(require("path"));
|
|
40982
|
-
var
|
|
41524
|
+
var os72 = __toESM2(require("os"));
|
|
40983
41525
|
var KEY_TO_VK = {
|
|
40984
41526
|
Backspace: 8,
|
|
40985
41527
|
Tab: 9,
|
|
@@ -41233,7 +41775,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
41233
41775
|
function resolveSafePath(requestedPath) {
|
|
41234
41776
|
const rawPath = typeof requestedPath === "string" ? requestedPath.trim() : "";
|
|
41235
41777
|
const inputPath = rawPath || ".";
|
|
41236
|
-
const home =
|
|
41778
|
+
const home = os72.homedir();
|
|
41237
41779
|
if (inputPath.startsWith("~")) {
|
|
41238
41780
|
return path12.resolve(path12.join(home, inputPath.slice(1)));
|
|
41239
41781
|
}
|
|
@@ -42416,7 +42958,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
42416
42958
|
var crypto4 = __toESM2(require("crypto"));
|
|
42417
42959
|
var import_fs6 = require("fs");
|
|
42418
42960
|
var import_child_process6 = require("child_process");
|
|
42419
|
-
var import_chalk = __toESM2(
|
|
42961
|
+
var import_chalk = __toESM2((init_source(), __toCommonJS(source_exports)));
|
|
42420
42962
|
init_provider_cli_adapter();
|
|
42421
42963
|
init_config();
|
|
42422
42964
|
var os12 = __toESM2(require("os"));
|
|
@@ -43846,7 +44388,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
43846
44388
|
baseArgs = this.provider.spawnArgBuilder(this.selectedConfig);
|
|
43847
44389
|
}
|
|
43848
44390
|
const args = [...baseArgs, ...this.cliArgs];
|
|
43849
|
-
const
|
|
44391
|
+
const env2 = { ...process.env, ...spawnConfig.env || {} };
|
|
43850
44392
|
this.log.info(`[${this.type}] Spawning: ${command} ${args.join(" ")} in ${this.workingDir}`);
|
|
43851
44393
|
this.spawnedAt = Date.now();
|
|
43852
44394
|
this.errorMessage = null;
|
|
@@ -43854,7 +44396,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
43854
44396
|
this.stderrBuffer = [];
|
|
43855
44397
|
this.process = (0, import_child_process5.spawn)(command, args, {
|
|
43856
44398
|
cwd: this.workingDir,
|
|
43857
|
-
env,
|
|
44399
|
+
env: env2,
|
|
43858
44400
|
stdio: ["pipe", "pipe", "pipe"],
|
|
43859
44401
|
shell: spawnConfig.shell || false,
|
|
43860
44402
|
...process.platform === "win32" ? { windowsHide: true } : {}
|
|
@@ -48412,13 +48954,13 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
48412
48954
|
}
|
|
48413
48955
|
}
|
|
48414
48956
|
function spawnDetachedDaemonUpgradeHelper(payload) {
|
|
48415
|
-
const
|
|
48957
|
+
const env2 = { ...process.env, [UPGRADE_HELPER_ENV]: JSON.stringify(payload) };
|
|
48416
48958
|
const child = (0, import_child_process9.spawn)(process.execPath, process.argv.slice(1), {
|
|
48417
48959
|
detached: true,
|
|
48418
48960
|
stdio: "ignore",
|
|
48419
48961
|
windowsHide: true,
|
|
48420
48962
|
cwd: payload.cwd || process.cwd(),
|
|
48421
|
-
env
|
|
48963
|
+
env: env2
|
|
48422
48964
|
});
|
|
48423
48965
|
child.unref();
|
|
48424
48966
|
}
|
|
@@ -48462,15 +49004,15 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
48462
49004
|
appendUpgradeLog("Post-install staging cleanup complete");
|
|
48463
49005
|
}
|
|
48464
49006
|
if (restartArgv.length > 0) {
|
|
48465
|
-
const
|
|
48466
|
-
delete
|
|
49007
|
+
const env2 = { ...process.env };
|
|
49008
|
+
delete env2[UPGRADE_HELPER_ENV];
|
|
48467
49009
|
appendUpgradeLog(`Restarting daemon with args: ${restartArgv.join(" ")}`);
|
|
48468
49010
|
const child = (0, import_child_process9.spawn)(process.execPath, restartArgv, {
|
|
48469
49011
|
detached: true,
|
|
48470
49012
|
stdio: "ignore",
|
|
48471
49013
|
windowsHide: true,
|
|
48472
49014
|
cwd: payload.cwd || process.cwd(),
|
|
48473
|
-
env
|
|
49015
|
+
env: env2
|
|
48474
49016
|
});
|
|
48475
49017
|
child.unref();
|
|
48476
49018
|
} else {
|
|
@@ -48492,6 +49034,10 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
48492
49034
|
}
|
|
48493
49035
|
var fs10 = __toESM2(require("fs"));
|
|
48494
49036
|
var CHANNEL_NPM_TAG = { stable: "latest", preview: "next" };
|
|
49037
|
+
var CHANNEL_SERVER_URL = {
|
|
49038
|
+
stable: "https://api.adhf.dev",
|
|
49039
|
+
preview: "https://api-preview.adhf.dev"
|
|
49040
|
+
};
|
|
48495
49041
|
function normalizeReleaseChannel(value) {
|
|
48496
49042
|
if (typeof value !== "string") return null;
|
|
48497
49043
|
const normalized = value.trim().toLowerCase();
|
|
@@ -49188,6 +49734,7 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
49188
49734
|
const npmTag = CHANNEL_NPM_TAG[channel];
|
|
49189
49735
|
const latest = String(execNpmCommandSync(["view", `${pkgName}@${npmTag}`, "version"], { encoding: "utf-8", timeout: 1e4 }, npmSurface)).trim();
|
|
49190
49736
|
LOG2.info("Upgrade", `Latest ${pkgName}@${npmTag}: v${latest}`);
|
|
49737
|
+
updateConfig({ updateChannel: channel, serverUrl: CHANNEL_SERVER_URL[channel] });
|
|
49191
49738
|
let currentInstalled = null;
|
|
49192
49739
|
try {
|
|
49193
49740
|
const currentJson = String(execNpmCommandSync(["ls", "-g", pkgName, "--depth=0", "--json"], {
|
|
@@ -56778,8 +57325,8 @@ data: ${JSON.stringify(msg.data)}
|
|
|
56778
57325
|
return `Standalone session-host namespace '${DEFAULT_SESSION_HOST_APP_NAME}' is reserved for the global daemon. Falling back to '${DEFAULT_STANDALONE_SESSION_HOST_APP_NAME}' for this standalone run.`;
|
|
56779
57326
|
}
|
|
56780
57327
|
function resolveSessionHostAppNameResolution2(options = {}) {
|
|
56781
|
-
const
|
|
56782
|
-
const explicit = typeof
|
|
57328
|
+
const env2 = options.env || process.env;
|
|
57329
|
+
const explicit = typeof env2.ADHDEV_SESSION_HOST_NAME === "string" ? env2.ADHDEV_SESSION_HOST_NAME.trim() : "";
|
|
56783
57330
|
if (explicit) {
|
|
56784
57331
|
if (options.standalone && explicit === DEFAULT_SESSION_HOST_APP_NAME) {
|
|
56785
57332
|
return {
|
|
@@ -56857,8 +57404,8 @@ data: ${JSON.stringify(msg.data)}
|
|
|
56857
57404
|
});
|
|
56858
57405
|
}
|
|
56859
57406
|
}
|
|
56860
|
-
function shouldAutoRestoreHostedSessionsOnStartup2(
|
|
56861
|
-
const raw = typeof
|
|
57407
|
+
function shouldAutoRestoreHostedSessionsOnStartup2(env2 = process.env) {
|
|
57408
|
+
const raw = typeof env2.ADHDEV_RESTORE_HOSTED_SESSIONS_ON_STARTUP === "string" ? env2.ADHDEV_RESTORE_HOSTED_SESSIONS_ON_STARTUP.trim().toLowerCase() : "";
|
|
56862
57409
|
if (!raw) return true;
|
|
56863
57410
|
if (raw === "0" || raw === "false" || raw === "no") return false;
|
|
56864
57411
|
return raw === "1" || raw === "true" || raw === "yes";
|
|
@@ -57383,7 +57930,7 @@ var import_http = require("http");
|
|
|
57383
57930
|
var import_ws = require("ws");
|
|
57384
57931
|
var path4 = __toESM(require("path"));
|
|
57385
57932
|
var fs4 = __toESM(require("fs"));
|
|
57386
|
-
var
|
|
57933
|
+
var os6 = __toESM(require("os"));
|
|
57387
57934
|
var import_crypto2 = require("crypto");
|
|
57388
57935
|
|
|
57389
57936
|
// src/standalone-preferences.ts
|
|
@@ -57465,7 +58012,7 @@ var import_daemon_core2 = __toESM(require_dist2());
|
|
|
57465
58012
|
// src/session-host.ts
|
|
57466
58013
|
var childProcess = __toESM(require("child_process"));
|
|
57467
58014
|
var fs3 = __toESM(require("fs"));
|
|
57468
|
-
var
|
|
58015
|
+
var os3 = __toESM(require("os"));
|
|
57469
58016
|
var path2 = __toESM(require("path"));
|
|
57470
58017
|
var import_daemon_core = __toESM(require_dist2());
|
|
57471
58018
|
|
|
@@ -57488,26 +58035,26 @@ function getStandaloneSessionHostAppNameWarning() {
|
|
|
57488
58035
|
return SESSION_HOST_APP_NAME_RESOLUTION.warning;
|
|
57489
58036
|
}
|
|
57490
58037
|
function buildSessionHostEnv(baseEnv) {
|
|
57491
|
-
const
|
|
58038
|
+
const env2 = {};
|
|
57492
58039
|
for (const [key, value] of Object.entries(baseEnv)) {
|
|
57493
58040
|
if (typeof value !== "string") continue;
|
|
57494
|
-
|
|
58041
|
+
env2[key] = value;
|
|
57495
58042
|
}
|
|
57496
|
-
for (const key of Object.keys(
|
|
58043
|
+
for (const key of Object.keys(env2)) {
|
|
57497
58044
|
if (key === "INIT_CWD" || key === "npm_command" || key === "npm_execpath" || key === "npm_node_execpath" || key.startsWith("npm_") || key.startsWith("npm_config_") || key.startsWith("npm_package_") || key.startsWith("npm_lifecycle_") || key.startsWith("PNPM_") || key.startsWith("YARN_") || key.startsWith("BUN_")) {
|
|
57498
|
-
delete
|
|
58045
|
+
delete env2[key];
|
|
57499
58046
|
}
|
|
57500
58047
|
}
|
|
57501
|
-
if (!
|
|
57502
|
-
if (!
|
|
57503
|
-
if (!
|
|
58048
|
+
if (!env2.NO_COLOR) {
|
|
58049
|
+
if (!env2.TERM || env2.TERM === "xterm-color") env2.TERM = "xterm-256color";
|
|
58050
|
+
if (!env2.COLORTERM) env2.COLORTERM = "truecolor";
|
|
57504
58051
|
if (process.platform === "win32") {
|
|
57505
|
-
if (!
|
|
57506
|
-
if (!
|
|
58052
|
+
if (!env2.FORCE_COLOR) env2.FORCE_COLOR = "1";
|
|
58053
|
+
if (!env2.CLICOLOR) env2.CLICOLOR = "1";
|
|
57507
58054
|
}
|
|
57508
58055
|
}
|
|
57509
|
-
|
|
57510
|
-
return
|
|
58056
|
+
env2.ADHDEV_SESSION_HOST_NAME = SESSION_HOST_APP_NAME;
|
|
58057
|
+
return env2;
|
|
57511
58058
|
}
|
|
57512
58059
|
function resolveSessionHostEntry() {
|
|
57513
58060
|
const localCandidates = [
|
|
@@ -57522,7 +58069,7 @@ function resolveSessionHostEntry() {
|
|
|
57522
58069
|
return require.resolve("@adhdev/session-host-daemon");
|
|
57523
58070
|
}
|
|
57524
58071
|
function getSessionHostPidFile() {
|
|
57525
|
-
return path2.join(
|
|
58072
|
+
return path2.join(os3.homedir(), ".adhdev", `${SESSION_HOST_APP_NAME}-session-host.pid`);
|
|
57526
58073
|
}
|
|
57527
58074
|
function killPid(pid) {
|
|
57528
58075
|
try {
|
|
@@ -57615,15 +58162,15 @@ async function proxySessionHostAttach(target, options = {}) {
|
|
|
57615
58162
|
}
|
|
57616
58163
|
|
|
57617
58164
|
// src/startup-restore-policy.ts
|
|
57618
|
-
function shouldAutoRestoreHostedSessionsOnStartup(
|
|
57619
|
-
const raw = typeof
|
|
58165
|
+
function shouldAutoRestoreHostedSessionsOnStartup(env2 = process.env) {
|
|
58166
|
+
const raw = typeof env2.ADHDEV_RESTORE_HOSTED_SESSIONS_ON_STARTUP === "string" ? env2.ADHDEV_RESTORE_HOSTED_SESSIONS_ON_STARTUP.trim().toLowerCase() : "";
|
|
57620
58167
|
if (!raw) return true;
|
|
57621
58168
|
if (raw === "0" || raw === "false" || raw === "no") return false;
|
|
57622
58169
|
return raw === "1" || raw === "true" || raw === "yes";
|
|
57623
58170
|
}
|
|
57624
58171
|
|
|
57625
58172
|
// ../session-host-core/dist/index.mjs
|
|
57626
|
-
var
|
|
58173
|
+
var os4 = __toESM(require("os"), 1);
|
|
57627
58174
|
var path22 = __toESM(require("path"), 1);
|
|
57628
58175
|
var net = __toESM(require("net"), 1);
|
|
57629
58176
|
var import_crypto = require("crypto");
|
|
@@ -57637,7 +58184,7 @@ function getDefaultSessionHostEndpoint(appName = "adhdev") {
|
|
|
57637
58184
|
}
|
|
57638
58185
|
return {
|
|
57639
58186
|
kind: "unix",
|
|
57640
|
-
path: path22.join(
|
|
58187
|
+
path: path22.join(os4.tmpdir(), `${appName}-session-host.sock`)
|
|
57641
58188
|
};
|
|
57642
58189
|
}
|
|
57643
58190
|
function serializeEnvelope(envelope) {
|
|
@@ -57991,14 +58538,14 @@ var STANDALONE_BIND_HOST_DEFAULT = "127.0.0.1";
|
|
|
57991
58538
|
var PASSWORD_KEYLEN = 64;
|
|
57992
58539
|
var DEFAULT_SESSION_TTL_MS = 1e3 * 60 * 60 * 24 * 30;
|
|
57993
58540
|
function getStandalonePasswordConfigPath() {
|
|
57994
|
-
const dir = path4.join(
|
|
58541
|
+
const dir = path4.join(os6.homedir(), ".adhdev");
|
|
57995
58542
|
if (!fs4.existsSync(dir)) {
|
|
57996
58543
|
fs4.mkdirSync(dir, { recursive: true, mode: 448 });
|
|
57997
58544
|
}
|
|
57998
58545
|
return path4.join(dir, STANDALONE_PASSWORD_CONFIG_FILE);
|
|
57999
58546
|
}
|
|
58000
58547
|
function getStandaloneConfigJsonPath() {
|
|
58001
|
-
const dir = path4.join(
|
|
58548
|
+
const dir = path4.join(os6.homedir(), ".adhdev");
|
|
58002
58549
|
if (!fs4.existsSync(dir)) {
|
|
58003
58550
|
fs4.mkdirSync(dir, { recursive: true, mode: 448 });
|
|
58004
58551
|
}
|
|
@@ -59447,7 +59994,7 @@ var StandaloneServer = class {
|
|
|
59447
59994
|
availableMem: snapshot.machine.availableMem ?? machineRuntime.availableMem ?? 0,
|
|
59448
59995
|
loadavg: snapshot.machine.loadavg ?? machineRuntime.loadavg ?? [],
|
|
59449
59996
|
uptime: snapshot.machine.uptime ?? machineRuntime.uptime ?? 0,
|
|
59450
|
-
arch: snapshot.machine.arch ?? machineRuntime.arch ??
|
|
59997
|
+
arch: snapshot.machine.arch ?? machineRuntime.arch ?? os6.arch()
|
|
59451
59998
|
}
|
|
59452
59999
|
};
|
|
59453
60000
|
}
|
|
@@ -59547,7 +60094,7 @@ var StandaloneServer = class {
|
|
|
59547
60094
|
}
|
|
59548
60095
|
// ─── Network ───
|
|
59549
60096
|
getLanIPs() {
|
|
59550
|
-
const interfaces =
|
|
60097
|
+
const interfaces = os6.networkInterfaces();
|
|
59551
60098
|
const ips = [];
|
|
59552
60099
|
for (const iface of Object.values(interfaces)) {
|
|
59553
60100
|
if (!iface) continue;
|