@ariestools/aries-witness-cli 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/witness.mjs +170 -129
- package/package.json +7 -7
package/dist/bin/witness.mjs
CHANGED
|
@@ -22,7 +22,24 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
22
22
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
23
23
|
var __getProtoOf = Object.getPrototypeOf;
|
|
24
24
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
25
|
+
var __esmMin = (fn, res, err) => () => {
|
|
26
|
+
if (err) throw err[0];
|
|
27
|
+
try {
|
|
28
|
+
return fn && (res = fn(fn = 0)), res;
|
|
29
|
+
} catch (e) {
|
|
30
|
+
throw err = [e], e;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
25
33
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
34
|
+
var __exportAll = (all, no_symbols) => {
|
|
35
|
+
let target = {};
|
|
36
|
+
for (var name in all) __defProp(target, name, {
|
|
37
|
+
get: all[name],
|
|
38
|
+
enumerable: true
|
|
39
|
+
});
|
|
40
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
41
|
+
return target;
|
|
42
|
+
};
|
|
26
43
|
var __copyProps = (to, from, except, desc) => {
|
|
27
44
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
28
45
|
key = keys[i];
|
|
@@ -37,6 +54,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
54
|
value: mod,
|
|
38
55
|
enumerable: true
|
|
39
56
|
}) : target, mod));
|
|
57
|
+
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
40
58
|
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
41
59
|
//#endregion
|
|
42
60
|
//#region ../../node_modules/.pnpm/cliui@9.0.1/node_modules/cliui/build/lib/index.js
|
|
@@ -2053,12 +2071,12 @@ const nodeVersion = (_b = (_a = process === null || process === void 0 ? void 0
|
|
|
2053
2071
|
if (nodeVersion) {
|
|
2054
2072
|
if (Number(nodeVersion.match(/^([^.]+)/)[1]) < minNodeVersion) throw Error(`yargs parser supports a minimum Node.js version of ${minNodeVersion}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);
|
|
2055
2073
|
}
|
|
2056
|
-
const env$
|
|
2074
|
+
const env$2 = process ? process.env : {};
|
|
2057
2075
|
const require$2 = createRequire ? createRequire(import.meta.url) : void 0;
|
|
2058
2076
|
const parser = new YargsParser({
|
|
2059
2077
|
cwd: process.cwd,
|
|
2060
2078
|
env: () => {
|
|
2061
|
-
return env$
|
|
2079
|
+
return env$2;
|
|
2062
2080
|
},
|
|
2063
2081
|
format,
|
|
2064
2082
|
normalize,
|
|
@@ -5424,24 +5442,24 @@ function assembleStyles() {
|
|
|
5424
5442
|
const ansiStyles = assembleStyles();
|
|
5425
5443
|
//#endregion
|
|
5426
5444
|
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
|
|
5427
|
-
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
|
|
5445
|
+
function hasFlag$1(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
|
|
5428
5446
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
5429
5447
|
const position = argv.indexOf(prefix + flag);
|
|
5430
5448
|
const terminatorPosition = argv.indexOf("--");
|
|
5431
5449
|
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
5432
5450
|
}
|
|
5433
|
-
const { env } = process$1;
|
|
5434
|
-
let flagForceColor;
|
|
5435
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
5436
|
-
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
5437
|
-
function envForceColor() {
|
|
5438
|
-
if ("FORCE_COLOR" in env) {
|
|
5439
|
-
if (env.FORCE_COLOR === "true") return 1;
|
|
5440
|
-
if (env.FORCE_COLOR === "false") return 0;
|
|
5441
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
5451
|
+
const { env: env$1 } = process$1;
|
|
5452
|
+
let flagForceColor$1;
|
|
5453
|
+
if (hasFlag$1("no-color") || hasFlag$1("no-colors") || hasFlag$1("color=false") || hasFlag$1("color=never")) flagForceColor$1 = 0;
|
|
5454
|
+
else if (hasFlag$1("color") || hasFlag$1("colors") || hasFlag$1("color=true") || hasFlag$1("color=always")) flagForceColor$1 = 1;
|
|
5455
|
+
function envForceColor$1() {
|
|
5456
|
+
if ("FORCE_COLOR" in env$1) {
|
|
5457
|
+
if (env$1.FORCE_COLOR === "true") return 1;
|
|
5458
|
+
if (env$1.FORCE_COLOR === "false") return 0;
|
|
5459
|
+
return env$1.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env$1.FORCE_COLOR, 10), 3);
|
|
5442
5460
|
}
|
|
5443
5461
|
}
|
|
5444
|
-
function translateLevel(level) {
|
|
5462
|
+
function translateLevel$1(level) {
|
|
5445
5463
|
if (level === 0) return false;
|
|
5446
5464
|
return {
|
|
5447
5465
|
level,
|
|
@@ -5450,65 +5468,65 @@ function translateLevel(level) {
|
|
|
5450
5468
|
has16m: level >= 3
|
|
5451
5469
|
};
|
|
5452
5470
|
}
|
|
5453
|
-
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
5454
|
-
const noFlagForceColor = envForceColor();
|
|
5455
|
-
if (noFlagForceColor !== void 0) flagForceColor = noFlagForceColor;
|
|
5456
|
-
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
5471
|
+
function _supportsColor$1(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
5472
|
+
const noFlagForceColor = envForceColor$1();
|
|
5473
|
+
if (noFlagForceColor !== void 0) flagForceColor$1 = noFlagForceColor;
|
|
5474
|
+
const forceColor = sniffFlags ? flagForceColor$1 : noFlagForceColor;
|
|
5457
5475
|
if (forceColor === 0) return 0;
|
|
5458
5476
|
if (sniffFlags) {
|
|
5459
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
5460
|
-
if (hasFlag("color=256")) return 2;
|
|
5477
|
+
if (hasFlag$1("color=16m") || hasFlag$1("color=full") || hasFlag$1("color=truecolor")) return 3;
|
|
5478
|
+
if (hasFlag$1("color=256")) return 2;
|
|
5461
5479
|
}
|
|
5462
|
-
if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
|
|
5480
|
+
if ("TF_BUILD" in env$1 && "AGENT_NAME" in env$1) return 1;
|
|
5463
5481
|
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
5464
5482
|
const min = forceColor || 0;
|
|
5465
|
-
if (env.TERM === "dumb") return min;
|
|
5483
|
+
if (env$1.TERM === "dumb") return min;
|
|
5466
5484
|
if (process$1.platform === "win32") {
|
|
5467
5485
|
const osRelease = os.release().split(".");
|
|
5468
5486
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
5469
5487
|
return 1;
|
|
5470
5488
|
}
|
|
5471
|
-
if ("CI" in env) {
|
|
5489
|
+
if ("CI" in env$1) {
|
|
5472
5490
|
if ([
|
|
5473
5491
|
"GITHUB_ACTIONS",
|
|
5474
5492
|
"GITEA_ACTIONS",
|
|
5475
5493
|
"CIRCLECI"
|
|
5476
|
-
].some((key) => key in env)) return 3;
|
|
5494
|
+
].some((key) => key in env$1)) return 3;
|
|
5477
5495
|
if ([
|
|
5478
5496
|
"TRAVIS",
|
|
5479
5497
|
"APPVEYOR",
|
|
5480
5498
|
"GITLAB_CI",
|
|
5481
5499
|
"BUILDKITE",
|
|
5482
5500
|
"DRONE"
|
|
5483
|
-
].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
|
|
5501
|
+
].some((sign) => sign in env$1) || env$1.CI_NAME === "codeship") return 1;
|
|
5484
5502
|
return min;
|
|
5485
5503
|
}
|
|
5486
|
-
if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
5487
|
-
if (env.COLORTERM === "truecolor") return 3;
|
|
5488
|
-
if (env.TERM === "xterm-kitty") return 3;
|
|
5489
|
-
if (env.TERM === "xterm-ghostty") return 3;
|
|
5490
|
-
if (env.TERM === "wezterm") return 3;
|
|
5491
|
-
if ("TERM_PROGRAM" in env) {
|
|
5492
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
5493
|
-
switch (env.TERM_PROGRAM) {
|
|
5504
|
+
if ("TEAMCITY_VERSION" in env$1) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env$1.TEAMCITY_VERSION) ? 1 : 0;
|
|
5505
|
+
if (env$1.COLORTERM === "truecolor") return 3;
|
|
5506
|
+
if (env$1.TERM === "xterm-kitty") return 3;
|
|
5507
|
+
if (env$1.TERM === "xterm-ghostty") return 3;
|
|
5508
|
+
if (env$1.TERM === "wezterm") return 3;
|
|
5509
|
+
if ("TERM_PROGRAM" in env$1) {
|
|
5510
|
+
const version = Number.parseInt((env$1.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
5511
|
+
switch (env$1.TERM_PROGRAM) {
|
|
5494
5512
|
case "iTerm.app": return version >= 3 ? 3 : 2;
|
|
5495
5513
|
case "Apple_Terminal": return 2;
|
|
5496
5514
|
}
|
|
5497
5515
|
}
|
|
5498
|
-
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
5499
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
5500
|
-
if ("COLORTERM" in env) return 1;
|
|
5516
|
+
if (/-256(color)?$/i.test(env$1.TERM)) return 2;
|
|
5517
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env$1.TERM)) return 1;
|
|
5518
|
+
if ("COLORTERM" in env$1) return 1;
|
|
5501
5519
|
return min;
|
|
5502
5520
|
}
|
|
5503
|
-
function createSupportsColor(stream, options = {}) {
|
|
5504
|
-
return translateLevel(_supportsColor(stream, {
|
|
5521
|
+
function createSupportsColor$1(stream, options = {}) {
|
|
5522
|
+
return translateLevel$1(_supportsColor$1(stream, {
|
|
5505
5523
|
streamIsTTY: stream && stream.isTTY,
|
|
5506
5524
|
...options
|
|
5507
5525
|
}));
|
|
5508
5526
|
}
|
|
5509
|
-
const supportsColor = {
|
|
5510
|
-
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
5511
|
-
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
5527
|
+
const supportsColor$1 = {
|
|
5528
|
+
stdout: createSupportsColor$1({ isTTY: tty.isatty(1) }),
|
|
5529
|
+
stderr: createSupportsColor$1({ isTTY: tty.isatty(2) })
|
|
5512
5530
|
};
|
|
5513
5531
|
//#endregion
|
|
5514
5532
|
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
@@ -5540,7 +5558,7 @@ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
|
5540
5558
|
}
|
|
5541
5559
|
//#endregion
|
|
5542
5560
|
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
|
|
5543
|
-
const { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
|
|
5561
|
+
const { stdout: stdoutColor, stderr: stderrColor } = supportsColor$1;
|
|
5544
5562
|
const GENERATOR = Symbol("GENERATOR");
|
|
5545
5563
|
const STYLER = Symbol("STYLER");
|
|
5546
5564
|
const IS_EMPTY = Symbol("IS_EMPTY");
|
|
@@ -10754,7 +10772,7 @@ var require_ms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10754
10772
|
}
|
|
10755
10773
|
}));
|
|
10756
10774
|
//#endregion
|
|
10757
|
-
//#region ../../node_modules/.pnpm/debug@4.4.
|
|
10775
|
+
//#region ../../node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/common.js
|
|
10758
10776
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10759
10777
|
/**
|
|
10760
10778
|
* This is the common logic for both the Node.js and web browser
|
|
@@ -10956,7 +10974,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10956
10974
|
module.exports = setup;
|
|
10957
10975
|
}));
|
|
10958
10976
|
//#endregion
|
|
10959
|
-
//#region ../../node_modules/.pnpm/debug@4.4.
|
|
10977
|
+
//#region ../../node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/browser.js
|
|
10960
10978
|
var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10961
10979
|
/**
|
|
10962
10980
|
* This is the web browser implementation of `debug()`.
|
|
@@ -11152,85 +11170,108 @@ var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11152
11170
|
};
|
|
11153
11171
|
}));
|
|
11154
11172
|
//#endregion
|
|
11155
|
-
//#region ../../node_modules/.pnpm/
|
|
11156
|
-
var
|
|
11157
|
-
|
|
11158
|
-
|
|
11159
|
-
|
|
11160
|
-
|
|
11161
|
-
|
|
11173
|
+
//#region ../../node_modules/.pnpm/supports-color@10.2.2/node_modules/supports-color/index.js
|
|
11174
|
+
var supports_color_exports = /* @__PURE__ */ __exportAll({
|
|
11175
|
+
createSupportsColor: () => createSupportsColor,
|
|
11176
|
+
default: () => supportsColor
|
|
11177
|
+
});
|
|
11178
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
|
|
11179
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
11180
|
+
const position = argv.indexOf(prefix + flag);
|
|
11181
|
+
const terminatorPosition = argv.indexOf("--");
|
|
11182
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
11183
|
+
}
|
|
11184
|
+
function envForceColor() {
|
|
11185
|
+
if (!("FORCE_COLOR" in env)) return;
|
|
11186
|
+
if (env.FORCE_COLOR === "true") return 1;
|
|
11187
|
+
if (env.FORCE_COLOR === "false") return 0;
|
|
11188
|
+
if (env.FORCE_COLOR.length === 0) return 1;
|
|
11189
|
+
const level = Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
11190
|
+
if (![
|
|
11191
|
+
0,
|
|
11192
|
+
1,
|
|
11193
|
+
2,
|
|
11194
|
+
3
|
|
11195
|
+
].includes(level)) return;
|
|
11196
|
+
return level;
|
|
11197
|
+
}
|
|
11198
|
+
function translateLevel(level) {
|
|
11199
|
+
if (level === 0) return false;
|
|
11200
|
+
return {
|
|
11201
|
+
level,
|
|
11202
|
+
hasBasic: true,
|
|
11203
|
+
has256: level >= 2,
|
|
11204
|
+
has16m: level >= 3
|
|
11162
11205
|
};
|
|
11163
|
-
}
|
|
11164
|
-
|
|
11165
|
-
|
|
11166
|
-
|
|
11167
|
-
const
|
|
11168
|
-
|
|
11169
|
-
|
|
11170
|
-
const { env } = process;
|
|
11171
|
-
let forceColor;
|
|
11172
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) forceColor = 0;
|
|
11173
|
-
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) forceColor = 1;
|
|
11174
|
-
if ("FORCE_COLOR" in env) if (env.FORCE_COLOR === "true") forceColor = 1;
|
|
11175
|
-
else if (env.FORCE_COLOR === "false") forceColor = 0;
|
|
11176
|
-
else forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
11177
|
-
function translateLevel(level) {
|
|
11178
|
-
if (level === 0) return false;
|
|
11179
|
-
return {
|
|
11180
|
-
level,
|
|
11181
|
-
hasBasic: true,
|
|
11182
|
-
has256: level >= 2,
|
|
11183
|
-
has16m: level >= 3
|
|
11184
|
-
};
|
|
11185
|
-
}
|
|
11186
|
-
function supportsColor(haveStream, streamIsTTY) {
|
|
11187
|
-
if (forceColor === 0) return 0;
|
|
11206
|
+
}
|
|
11207
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
11208
|
+
const noFlagForceColor = envForceColor();
|
|
11209
|
+
if (noFlagForceColor !== void 0) flagForceColor = noFlagForceColor;
|
|
11210
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
11211
|
+
if (forceColor === 0) return 0;
|
|
11212
|
+
if (sniffFlags) {
|
|
11188
11213
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
11189
11214
|
if (hasFlag("color=256")) return 2;
|
|
11190
|
-
|
|
11191
|
-
|
|
11192
|
-
|
|
11193
|
-
|
|
11194
|
-
|
|
11195
|
-
|
|
11196
|
-
|
|
11197
|
-
|
|
11198
|
-
|
|
11199
|
-
|
|
11200
|
-
|
|
11201
|
-
|
|
11202
|
-
|
|
11203
|
-
|
|
11204
|
-
|
|
11205
|
-
|
|
11206
|
-
|
|
11207
|
-
|
|
11208
|
-
|
|
11209
|
-
|
|
11210
|
-
|
|
11211
|
-
|
|
11212
|
-
|
|
11213
|
-
switch (env.TERM_PROGRAM) {
|
|
11214
|
-
case "iTerm.app": return version >= 3 ? 3 : 2;
|
|
11215
|
-
case "Apple_Terminal": return 2;
|
|
11216
|
-
}
|
|
11217
|
-
}
|
|
11218
|
-
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
11219
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
11220
|
-
if ("COLORTERM" in env) return 1;
|
|
11215
|
+
}
|
|
11216
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
|
|
11217
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
11218
|
+
const min = forceColor || 0;
|
|
11219
|
+
if (env.TERM === "dumb") return min;
|
|
11220
|
+
if (process$1.platform === "win32") {
|
|
11221
|
+
const osRelease = os.release().split(".");
|
|
11222
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
11223
|
+
return 1;
|
|
11224
|
+
}
|
|
11225
|
+
if ("CI" in env) {
|
|
11226
|
+
if ([
|
|
11227
|
+
"GITHUB_ACTIONS",
|
|
11228
|
+
"GITEA_ACTIONS",
|
|
11229
|
+
"CIRCLECI"
|
|
11230
|
+
].some((key) => key in env)) return 3;
|
|
11231
|
+
if ([
|
|
11232
|
+
"TRAVIS",
|
|
11233
|
+
"APPVEYOR",
|
|
11234
|
+
"GITLAB_CI",
|
|
11235
|
+
"BUILDKITE",
|
|
11236
|
+
"DRONE"
|
|
11237
|
+
].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
|
|
11221
11238
|
return min;
|
|
11222
11239
|
}
|
|
11223
|
-
|
|
11224
|
-
|
|
11240
|
+
if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
11241
|
+
if (env.COLORTERM === "truecolor") return 3;
|
|
11242
|
+
if (env.TERM === "xterm-kitty") return 3;
|
|
11243
|
+
if (env.TERM === "xterm-ghostty") return 3;
|
|
11244
|
+
if (env.TERM === "wezterm") return 3;
|
|
11245
|
+
if ("TERM_PROGRAM" in env) {
|
|
11246
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
11247
|
+
switch (env.TERM_PROGRAM) {
|
|
11248
|
+
case "iTerm.app": return version >= 3 ? 3 : 2;
|
|
11249
|
+
case "Apple_Terminal": return 2;
|
|
11250
|
+
}
|
|
11225
11251
|
}
|
|
11226
|
-
|
|
11227
|
-
|
|
11228
|
-
|
|
11229
|
-
|
|
11252
|
+
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
11253
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
11254
|
+
if ("COLORTERM" in env) return 1;
|
|
11255
|
+
return min;
|
|
11256
|
+
}
|
|
11257
|
+
function createSupportsColor(stream, options = {}) {
|
|
11258
|
+
return translateLevel(_supportsColor(stream, {
|
|
11259
|
+
streamIsTTY: stream && stream.isTTY,
|
|
11260
|
+
...options
|
|
11261
|
+
}));
|
|
11262
|
+
}
|
|
11263
|
+
var env, flagForceColor, supportsColor;
|
|
11264
|
+
var init_supports_color = __esmMin((() => {
|
|
11265
|
+
({env} = process$1);
|
|
11266
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
11267
|
+
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
11268
|
+
supportsColor = {
|
|
11269
|
+
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
11270
|
+
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
11230
11271
|
};
|
|
11231
11272
|
}));
|
|
11232
11273
|
//#endregion
|
|
11233
|
-
//#region ../../node_modules/.pnpm/debug@4.4.
|
|
11274
|
+
//#region ../../node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/node.js
|
|
11234
11275
|
var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11235
11276
|
/**
|
|
11236
11277
|
* Module dependencies.
|
|
@@ -11259,7 +11300,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11259
11300
|
1
|
|
11260
11301
|
];
|
|
11261
11302
|
try {
|
|
11262
|
-
const supportsColor =
|
|
11303
|
+
const supportsColor = (init_supports_color(), __toCommonJS(supports_color_exports));
|
|
11263
11304
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports.colors = [
|
|
11264
11305
|
20,
|
|
11265
11306
|
21,
|
|
@@ -11437,7 +11478,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11437
11478
|
};
|
|
11438
11479
|
}));
|
|
11439
11480
|
//#endregion
|
|
11440
|
-
//#region ../../node_modules/.pnpm/debug@4.4.
|
|
11481
|
+
//#region ../../node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/index.js
|
|
11441
11482
|
var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11442
11483
|
/**
|
|
11443
11484
|
* Detect Electron renderer / nwjs process, which is node, but we should
|
|
@@ -12631,7 +12672,7 @@ var require_smartbuffer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12631
12672
|
};
|
|
12632
12673
|
}));
|
|
12633
12674
|
//#endregion
|
|
12634
|
-
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.
|
|
12675
|
+
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.1_supports-color@10.2.2/node_modules/node-screenlogic/dist/messages/SLMessage.js
|
|
12635
12676
|
var require_SLMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12636
12677
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12637
12678
|
exports.Outbound = exports.Inbound = exports.SLMessage = void 0;
|
|
@@ -12818,7 +12859,7 @@ var require_SLMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12818
12859
|
exports.Outbound = Outbound;
|
|
12819
12860
|
}));
|
|
12820
12861
|
//#endregion
|
|
12821
|
-
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.
|
|
12862
|
+
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.1_supports-color@10.2.2/node_modules/node-screenlogic/dist/messages/SLGatewayDataMessage.js
|
|
12822
12863
|
var require_SLGatewayDataMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12823
12864
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12824
12865
|
exports.SLReceiveGatewayDataMessage = void 0;
|
|
@@ -12853,7 +12894,7 @@ var require_SLGatewayDataMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12853
12894
|
exports.SLReceiveGatewayDataMessage = SLReceiveGatewayDataMessage;
|
|
12854
12895
|
}));
|
|
12855
12896
|
//#endregion
|
|
12856
|
-
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.
|
|
12897
|
+
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.1_supports-color@10.2.2/node_modules/node-screenlogic/dist/messages/config/EquipmentConfig.js
|
|
12857
12898
|
var require_EquipmentConfig = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12858
12899
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12859
12900
|
exports.EquipmentConfigurationMessage = void 0;
|
|
@@ -13499,7 +13540,7 @@ var require_EquipmentConfig = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13499
13540
|
})(EquipmentConfigurationMessage = exports.EquipmentConfigurationMessage || (exports.EquipmentConfigurationMessage = {}));
|
|
13500
13541
|
}));
|
|
13501
13542
|
//#endregion
|
|
13502
|
-
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.
|
|
13543
|
+
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.1_supports-color@10.2.2/node_modules/node-screenlogic/dist/messages/OutgoingMessages.js
|
|
13503
13544
|
var require_OutgoingMessages = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13504
13545
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13505
13546
|
exports.OutboundGateway = exports.PumpCommands = exports.ScheduleCommands = exports.BodyCommands = exports.ChemCommands = exports.ChlorCommands = exports.CircuitCommands = exports.EquipmentCommands = exports.ConnectionCommands = exports.Commands = void 0;
|
|
@@ -13879,7 +13920,7 @@ var require_OutgoingMessages = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13879
13920
|
exports.OutboundGateway = OutboundGateway;
|
|
13880
13921
|
}));
|
|
13881
13922
|
//#endregion
|
|
13882
|
-
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.
|
|
13923
|
+
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.1_supports-color@10.2.2/node_modules/node-screenlogic/dist/messages/ConnectionMessage.js
|
|
13883
13924
|
var require_ConnectionMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13884
13925
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13885
13926
|
exports.ConnectionMessage = void 0;
|
|
@@ -13930,7 +13971,7 @@ var require_ConnectionMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13930
13971
|
})(ConnectionMessage = exports.ConnectionMessage || (exports.ConnectionMessage = {}));
|
|
13931
13972
|
}));
|
|
13932
13973
|
//#endregion
|
|
13933
|
-
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.
|
|
13974
|
+
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.1_supports-color@10.2.2/node_modules/node-screenlogic/dist/messages/state/ChlorMessage.js
|
|
13934
13975
|
var require_ChlorMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13935
13976
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13936
13977
|
exports.ChlorMessage = void 0;
|
|
@@ -13970,7 +14011,7 @@ var require_ChlorMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13970
14011
|
})(ChlorMessage = exports.ChlorMessage || (exports.ChlorMessage = {}));
|
|
13971
14012
|
}));
|
|
13972
14013
|
//#endregion
|
|
13973
|
-
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.
|
|
14014
|
+
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.1_supports-color@10.2.2/node_modules/node-screenlogic/dist/messages/state/ChemMessage.js
|
|
13974
14015
|
var require_ChemMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13975
14016
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13976
14017
|
exports.ChemMessage = void 0;
|
|
@@ -14088,7 +14129,7 @@ var require_ChemMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14088
14129
|
})(ChemMessage = exports.ChemMessage || (exports.ChemMessage = {}));
|
|
14089
14130
|
}));
|
|
14090
14131
|
//#endregion
|
|
14091
|
-
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.
|
|
14132
|
+
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.1_supports-color@10.2.2/node_modules/node-screenlogic/dist/messages/config/ScheduleMessage.js
|
|
14092
14133
|
var require_ScheduleMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14093
14134
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14094
14135
|
exports.ScheduleMessage = void 0;
|
|
@@ -14151,7 +14192,7 @@ var require_ScheduleMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14151
14192
|
})(ScheduleMessage = exports.ScheduleMessage || (exports.ScheduleMessage = {}));
|
|
14152
14193
|
}));
|
|
14153
14194
|
//#endregion
|
|
14154
|
-
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.
|
|
14195
|
+
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.1_supports-color@10.2.2/node_modules/node-screenlogic/dist/messages/state/PumpMessage.js
|
|
14155
14196
|
var require_PumpMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14156
14197
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14157
14198
|
exports.PumpMessage = void 0;
|
|
@@ -14203,7 +14244,7 @@ var require_PumpMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14203
14244
|
})(PumpMessage = exports.PumpMessage || (exports.PumpMessage = {}));
|
|
14204
14245
|
}));
|
|
14205
14246
|
//#endregion
|
|
14206
|
-
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.
|
|
14247
|
+
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.1_supports-color@10.2.2/node_modules/node-screenlogic/dist/messages/config/CircuitMessage.js
|
|
14207
14248
|
var require_CircuitMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14208
14249
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14209
14250
|
exports.CircuitMessage = void 0;
|
|
@@ -14245,7 +14286,7 @@ var require_CircuitMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14245
14286
|
})(CircuitMessage = exports.CircuitMessage || (exports.CircuitMessage = {}));
|
|
14246
14287
|
}));
|
|
14247
14288
|
//#endregion
|
|
14248
|
-
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.
|
|
14289
|
+
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.1_supports-color@10.2.2/node_modules/node-screenlogic/dist/messages/config/HeaterMessage.js
|
|
14249
14290
|
var require_HeaterMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14250
14291
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14251
14292
|
exports.HeaterMessage = void 0;
|
|
@@ -14279,7 +14320,7 @@ var require_HeaterMessage = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14279
14320
|
})(HeaterMessage = exports.HeaterMessage || (exports.HeaterMessage = {}));
|
|
14280
14321
|
}));
|
|
14281
14322
|
//#endregion
|
|
14282
|
-
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.
|
|
14323
|
+
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.1_supports-color@10.2.2/node_modules/node-screenlogic/dist/messages/state/EquipmentState.js
|
|
14283
14324
|
var require_EquipmentState = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14284
14325
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14285
14326
|
exports.EquipmentStateMessage = void 0;
|
|
@@ -14679,7 +14720,7 @@ var require_EquipmentState = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14679
14720
|
})(EquipmentStateMessage = exports.EquipmentStateMessage || (exports.EquipmentStateMessage = {}));
|
|
14680
14721
|
}));
|
|
14681
14722
|
//#endregion
|
|
14682
|
-
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.
|
|
14723
|
+
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.1_supports-color@10.2.2/node_modules/node-screenlogic/dist/utils/PasswordEncoder.js
|
|
14683
14724
|
var require_PasswordEncoder = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14684
14725
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14685
14726
|
exports.HLEncoder = void 0;
|
|
@@ -17183,7 +17224,7 @@ var require_PasswordEncoder = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
17183
17224
|
exports.HLEncoder = HLEncoder;
|
|
17184
17225
|
}));
|
|
17185
17226
|
//#endregion
|
|
17186
|
-
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.
|
|
17227
|
+
//#region ../../node_modules/.pnpm/node-screenlogic@2.1.1_supports-color@10.2.2/node_modules/node-screenlogic/dist/index.js
|
|
17187
17228
|
var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
17188
17229
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
17189
17230
|
if (k2 === void 0) k2 = k;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ariestools/aries-witness-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Standalone witness CLI for Aries Tools",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xylabs",
|
|
@@ -45,18 +45,18 @@
|
|
|
45
45
|
"chalk": "~5.6.2",
|
|
46
46
|
"node-screenlogic": "~2.1.1",
|
|
47
47
|
"yargs": "~18.0.0",
|
|
48
|
-
"@ariestools/aries-cli-core": "~0.1.
|
|
49
|
-
"@ariestools/aries-streaming-catalog-core": "~0.1.
|
|
50
|
-
"@ariestools/aries-witness-core": "~0.1.
|
|
48
|
+
"@ariestools/aries-cli-core": "~0.1.8",
|
|
49
|
+
"@ariestools/aries-streaming-catalog-core": "~0.1.8",
|
|
50
|
+
"@ariestools/aries-witness-core": "~0.1.8"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@ariestools/toolchain": "~8.7.
|
|
54
|
-
"@ariestools/tsconfig": "~8.7.
|
|
53
|
+
"@ariestools/toolchain": "~8.7.18",
|
|
54
|
+
"@ariestools/tsconfig": "~8.7.18",
|
|
55
55
|
"@types/node": "~26.1.1",
|
|
56
56
|
"eslint": "~10.7.0",
|
|
57
57
|
"rolldown": "~1.2.0",
|
|
58
58
|
"typescript": "~6.0.3",
|
|
59
|
-
"vite": "~8.1.
|
|
59
|
+
"vite": "~8.1.5",
|
|
60
60
|
"vitest": "~4.1.10"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|