@botpress/adk-cli 1.5.0 → 1.5.1
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.js +1938 -90
- package/package.json +5 -3
package/dist/cli.js
CHANGED
|
@@ -315684,7 +315684,7 @@ var init_internal = __esm(() => {
|
|
|
315684
315684
|
});
|
|
315685
315685
|
init_define_PACKAGE_VERSIONS = __esm2({
|
|
315686
315686
|
"<define:__PACKAGE_VERSIONS__>"() {
|
|
315687
|
-
define_PACKAGE_VERSIONS_default = { runtime: "1.3.
|
|
315687
|
+
define_PACKAGE_VERSIONS_default = { runtime: "1.3.1", adk: "not-installed", sdk: "4.17.0", llmz: "0.0.26", zai: "2.1.16", cognitive: "0.1.47" };
|
|
315688
315688
|
}
|
|
315689
315689
|
});
|
|
315690
315690
|
init_globalThis = __esm2({
|
|
@@ -368488,7 +368488,6 @@ ${typeDefinitions || " // No workflows defined yet"}
|
|
|
368488
368488
|
async function generateConversationTypes(project) {
|
|
368489
368489
|
const conversationTypes = {};
|
|
368490
368490
|
for (const conversationRef of project.conversations) {
|
|
368491
|
-
console.log(`[ConversationTypes] Processing conversation: ${conversationRef.export}`);
|
|
368492
368491
|
try {
|
|
368493
368492
|
const conversationPath = path222.join(project.path, conversationRef.path);
|
|
368494
368493
|
const conversationModule = await import(`${conversationPath}?t=${Date.now()}`);
|
|
@@ -375582,7 +375581,7 @@ var init_Separator = __esm(async () => {
|
|
|
375582
375581
|
var require_package3 = __commonJS((exports, module) => {
|
|
375583
375582
|
module.exports = {
|
|
375584
375583
|
name: "@botpress/adk",
|
|
375585
|
-
version: "1.3.
|
|
375584
|
+
version: "1.3.1",
|
|
375586
375585
|
description: "Core ADK library for building AI agents on Botpress",
|
|
375587
375586
|
type: "module",
|
|
375588
375587
|
main: "dist/index.js",
|
|
@@ -375629,7 +375628,7 @@ var require_package3 = __commonJS((exports, module) => {
|
|
|
375629
375628
|
"@botpress/cli": "^4.20",
|
|
375630
375629
|
"@botpress/client": "1.26.0",
|
|
375631
375630
|
"@botpress/cognitive": "0.1.47",
|
|
375632
|
-
"@botpress/runtime": "^1.3.
|
|
375631
|
+
"@botpress/runtime": "^1.3.1",
|
|
375633
375632
|
"@botpress/sdk": "4.17.0",
|
|
375634
375633
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
375635
375634
|
"@parcel/watcher": "^2.5.1",
|
|
@@ -376997,9 +376996,1852 @@ var init_CriticalError = __esm(() => {
|
|
|
376997
376996
|
};
|
|
376998
376997
|
});
|
|
376999
376998
|
|
|
377000
|
-
//
|
|
377001
|
-
|
|
376999
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/internal/constants.js
|
|
377000
|
+
var require_constants4 = __commonJS((exports, module) => {
|
|
377001
|
+
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
377002
|
+
var MAX_LENGTH = 256;
|
|
377003
|
+
var MAX_SAFE_INTEGER4 = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
377004
|
+
var MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
377005
|
+
var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
377006
|
+
var RELEASE_TYPES = [
|
|
377007
|
+
"major",
|
|
377008
|
+
"premajor",
|
|
377009
|
+
"minor",
|
|
377010
|
+
"preminor",
|
|
377011
|
+
"patch",
|
|
377012
|
+
"prepatch",
|
|
377013
|
+
"prerelease"
|
|
377014
|
+
];
|
|
377015
|
+
module.exports = {
|
|
377016
|
+
MAX_LENGTH,
|
|
377017
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
377018
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
377019
|
+
MAX_SAFE_INTEGER: MAX_SAFE_INTEGER4,
|
|
377020
|
+
RELEASE_TYPES,
|
|
377021
|
+
SEMVER_SPEC_VERSION,
|
|
377022
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
377023
|
+
FLAG_LOOSE: 2
|
|
377024
|
+
};
|
|
377025
|
+
});
|
|
377026
|
+
|
|
377027
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/internal/debug.js
|
|
377028
|
+
var require_debug4 = __commonJS((exports, module) => {
|
|
377029
|
+
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
377030
|
+
module.exports = debug;
|
|
377031
|
+
});
|
|
377032
|
+
|
|
377033
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/internal/re.js
|
|
377034
|
+
var require_re = __commonJS((exports, module) => {
|
|
377035
|
+
var {
|
|
377036
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
377037
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
377038
|
+
MAX_LENGTH
|
|
377039
|
+
} = require_constants4();
|
|
377040
|
+
var debug = require_debug4();
|
|
377041
|
+
exports = module.exports = {};
|
|
377042
|
+
var re3 = exports.re = [];
|
|
377043
|
+
var safeRe = exports.safeRe = [];
|
|
377044
|
+
var src = exports.src = [];
|
|
377045
|
+
var safeSrc = exports.safeSrc = [];
|
|
377046
|
+
var t8 = exports.t = {};
|
|
377047
|
+
var R4 = 0;
|
|
377048
|
+
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
377049
|
+
var safeRegexReplacements = [
|
|
377050
|
+
["\\s", 1],
|
|
377051
|
+
["\\d", MAX_LENGTH],
|
|
377052
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
377053
|
+
];
|
|
377054
|
+
var makeSafeRegex = (value2) => {
|
|
377055
|
+
for (const [token, max] of safeRegexReplacements) {
|
|
377056
|
+
value2 = value2.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
377057
|
+
}
|
|
377058
|
+
return value2;
|
|
377059
|
+
};
|
|
377060
|
+
var createToken = (name2, value2, isGlobal) => {
|
|
377061
|
+
const safe = makeSafeRegex(value2);
|
|
377062
|
+
const index = R4++;
|
|
377063
|
+
debug(name2, index, value2);
|
|
377064
|
+
t8[name2] = index;
|
|
377065
|
+
src[index] = value2;
|
|
377066
|
+
safeSrc[index] = safe;
|
|
377067
|
+
re3[index] = new RegExp(value2, isGlobal ? "g" : undefined);
|
|
377068
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : undefined);
|
|
377069
|
+
};
|
|
377070
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
377071
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
377072
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
377073
|
+
createToken("MAINVERSION", `(${src[t8.NUMERICIDENTIFIER]})\\.` + `(${src[t8.NUMERICIDENTIFIER]})\\.` + `(${src[t8.NUMERICIDENTIFIER]})`);
|
|
377074
|
+
createToken("MAINVERSIONLOOSE", `(${src[t8.NUMERICIDENTIFIERLOOSE]})\\.` + `(${src[t8.NUMERICIDENTIFIERLOOSE]})\\.` + `(${src[t8.NUMERICIDENTIFIERLOOSE]})`);
|
|
377075
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t8.NONNUMERICIDENTIFIER]}|${src[t8.NUMERICIDENTIFIER]})`);
|
|
377076
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t8.NONNUMERICIDENTIFIER]}|${src[t8.NUMERICIDENTIFIERLOOSE]})`);
|
|
377077
|
+
createToken("PRERELEASE", `(?:-(${src[t8.PRERELEASEIDENTIFIER]}(?:\\.${src[t8.PRERELEASEIDENTIFIER]})*))`);
|
|
377078
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t8.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t8.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
377079
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
377080
|
+
createToken("BUILD", `(?:\\+(${src[t8.BUILDIDENTIFIER]}(?:\\.${src[t8.BUILDIDENTIFIER]})*))`);
|
|
377081
|
+
createToken("FULLPLAIN", `v?${src[t8.MAINVERSION]}${src[t8.PRERELEASE]}?${src[t8.BUILD]}?`);
|
|
377082
|
+
createToken("FULL", `^${src[t8.FULLPLAIN]}$`);
|
|
377083
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t8.MAINVERSIONLOOSE]}${src[t8.PRERELEASELOOSE]}?${src[t8.BUILD]}?`);
|
|
377084
|
+
createToken("LOOSE", `^${src[t8.LOOSEPLAIN]}$`);
|
|
377085
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
377086
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t8.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
377087
|
+
createToken("XRANGEIDENTIFIER", `${src[t8.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
377088
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t8.XRANGEIDENTIFIER]})` + `(?:\\.(${src[t8.XRANGEIDENTIFIER]})` + `(?:\\.(${src[t8.XRANGEIDENTIFIER]})` + `(?:${src[t8.PRERELEASE]})?${src[t8.BUILD]}?` + `)?)?`);
|
|
377089
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t8.XRANGEIDENTIFIERLOOSE]})` + `(?:\\.(${src[t8.XRANGEIDENTIFIERLOOSE]})` + `(?:\\.(${src[t8.XRANGEIDENTIFIERLOOSE]})` + `(?:${src[t8.PRERELEASELOOSE]})?${src[t8.BUILD]}?` + `)?)?`);
|
|
377090
|
+
createToken("XRANGE", `^${src[t8.GTLT]}\\s*${src[t8.XRANGEPLAIN]}$`);
|
|
377091
|
+
createToken("XRANGELOOSE", `^${src[t8.GTLT]}\\s*${src[t8.XRANGEPLAINLOOSE]}$`);
|
|
377092
|
+
createToken("COERCEPLAIN", `${"(^|[^\\d])" + "(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})` + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
377093
|
+
createToken("COERCE", `${src[t8.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
377094
|
+
createToken("COERCEFULL", src[t8.COERCEPLAIN] + `(?:${src[t8.PRERELEASE]})?` + `(?:${src[t8.BUILD]})?` + `(?:$|[^\\d])`);
|
|
377095
|
+
createToken("COERCERTL", src[t8.COERCE], true);
|
|
377096
|
+
createToken("COERCERTLFULL", src[t8.COERCEFULL], true);
|
|
377097
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
377098
|
+
createToken("TILDETRIM", `(\\s*)${src[t8.LONETILDE]}\\s+`, true);
|
|
377099
|
+
exports.tildeTrimReplace = "$1~";
|
|
377100
|
+
createToken("TILDE", `^${src[t8.LONETILDE]}${src[t8.XRANGEPLAIN]}$`);
|
|
377101
|
+
createToken("TILDELOOSE", `^${src[t8.LONETILDE]}${src[t8.XRANGEPLAINLOOSE]}$`);
|
|
377102
|
+
createToken("LONECARET", "(?:\\^)");
|
|
377103
|
+
createToken("CARETTRIM", `(\\s*)${src[t8.LONECARET]}\\s+`, true);
|
|
377104
|
+
exports.caretTrimReplace = "$1^";
|
|
377105
|
+
createToken("CARET", `^${src[t8.LONECARET]}${src[t8.XRANGEPLAIN]}$`);
|
|
377106
|
+
createToken("CARETLOOSE", `^${src[t8.LONECARET]}${src[t8.XRANGEPLAINLOOSE]}$`);
|
|
377107
|
+
createToken("COMPARATORLOOSE", `^${src[t8.GTLT]}\\s*(${src[t8.LOOSEPLAIN]})$|^$`);
|
|
377108
|
+
createToken("COMPARATOR", `^${src[t8.GTLT]}\\s*(${src[t8.FULLPLAIN]})$|^$`);
|
|
377109
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t8.GTLT]}\\s*(${src[t8.LOOSEPLAIN]}|${src[t8.XRANGEPLAIN]})`, true);
|
|
377110
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
377111
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t8.XRANGEPLAIN]})` + `\\s+-\\s+` + `(${src[t8.XRANGEPLAIN]})` + `\\s*$`);
|
|
377112
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t8.XRANGEPLAINLOOSE]})` + `\\s+-\\s+` + `(${src[t8.XRANGEPLAINLOOSE]})` + `\\s*$`);
|
|
377113
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
377114
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
377115
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
377116
|
+
});
|
|
377117
|
+
|
|
377118
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/internal/parse-options.js
|
|
377119
|
+
var require_parse_options = __commonJS((exports, module) => {
|
|
377120
|
+
var looseOption = Object.freeze({ loose: true });
|
|
377121
|
+
var emptyOpts = Object.freeze({});
|
|
377122
|
+
var parseOptions = (options) => {
|
|
377123
|
+
if (!options) {
|
|
377124
|
+
return emptyOpts;
|
|
377125
|
+
}
|
|
377126
|
+
if (typeof options !== "object") {
|
|
377127
|
+
return looseOption;
|
|
377128
|
+
}
|
|
377129
|
+
return options;
|
|
377130
|
+
};
|
|
377131
|
+
module.exports = parseOptions;
|
|
377132
|
+
});
|
|
377133
|
+
|
|
377134
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/internal/identifiers.js
|
|
377135
|
+
var require_identifiers = __commonJS((exports, module) => {
|
|
377136
|
+
var numeric2 = /^[0-9]+$/;
|
|
377137
|
+
var compareIdentifiers = (a2, b2) => {
|
|
377138
|
+
if (typeof a2 === "number" && typeof b2 === "number") {
|
|
377139
|
+
return a2 === b2 ? 0 : a2 < b2 ? -1 : 1;
|
|
377140
|
+
}
|
|
377141
|
+
const anum = numeric2.test(a2);
|
|
377142
|
+
const bnum = numeric2.test(b2);
|
|
377143
|
+
if (anum && bnum) {
|
|
377144
|
+
a2 = +a2;
|
|
377145
|
+
b2 = +b2;
|
|
377146
|
+
}
|
|
377147
|
+
return a2 === b2 ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a2 < b2 ? -1 : 1;
|
|
377148
|
+
};
|
|
377149
|
+
var rcompareIdentifiers = (a2, b2) => compareIdentifiers(b2, a2);
|
|
377150
|
+
module.exports = {
|
|
377151
|
+
compareIdentifiers,
|
|
377152
|
+
rcompareIdentifiers
|
|
377153
|
+
};
|
|
377154
|
+
});
|
|
377155
|
+
|
|
377156
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/classes/semver.js
|
|
377157
|
+
var require_semver2 = __commonJS((exports, module) => {
|
|
377158
|
+
var debug = require_debug4();
|
|
377159
|
+
var { MAX_LENGTH, MAX_SAFE_INTEGER: MAX_SAFE_INTEGER4 } = require_constants4();
|
|
377160
|
+
var { safeRe: re3, t: t8 } = require_re();
|
|
377161
|
+
var parseOptions = require_parse_options();
|
|
377162
|
+
var { compareIdentifiers } = require_identifiers();
|
|
377163
|
+
|
|
377164
|
+
class SemVer {
|
|
377165
|
+
constructor(version, options) {
|
|
377166
|
+
options = parseOptions(options);
|
|
377167
|
+
if (version instanceof SemVer) {
|
|
377168
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
377169
|
+
return version;
|
|
377170
|
+
} else {
|
|
377171
|
+
version = version.version;
|
|
377172
|
+
}
|
|
377173
|
+
} else if (typeof version !== "string") {
|
|
377174
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
377175
|
+
}
|
|
377176
|
+
if (version.length > MAX_LENGTH) {
|
|
377177
|
+
throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
377178
|
+
}
|
|
377179
|
+
debug("SemVer", version, options);
|
|
377180
|
+
this.options = options;
|
|
377181
|
+
this.loose = !!options.loose;
|
|
377182
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
377183
|
+
const m2 = version.trim().match(options.loose ? re3[t8.LOOSE] : re3[t8.FULL]);
|
|
377184
|
+
if (!m2) {
|
|
377185
|
+
throw new TypeError(`Invalid Version: ${version}`);
|
|
377186
|
+
}
|
|
377187
|
+
this.raw = version;
|
|
377188
|
+
this.major = +m2[1];
|
|
377189
|
+
this.minor = +m2[2];
|
|
377190
|
+
this.patch = +m2[3];
|
|
377191
|
+
if (this.major > MAX_SAFE_INTEGER4 || this.major < 0) {
|
|
377192
|
+
throw new TypeError("Invalid major version");
|
|
377193
|
+
}
|
|
377194
|
+
if (this.minor > MAX_SAFE_INTEGER4 || this.minor < 0) {
|
|
377195
|
+
throw new TypeError("Invalid minor version");
|
|
377196
|
+
}
|
|
377197
|
+
if (this.patch > MAX_SAFE_INTEGER4 || this.patch < 0) {
|
|
377198
|
+
throw new TypeError("Invalid patch version");
|
|
377199
|
+
}
|
|
377200
|
+
if (!m2[4]) {
|
|
377201
|
+
this.prerelease = [];
|
|
377202
|
+
} else {
|
|
377203
|
+
this.prerelease = m2[4].split(".").map((id5) => {
|
|
377204
|
+
if (/^[0-9]+$/.test(id5)) {
|
|
377205
|
+
const num = +id5;
|
|
377206
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER4) {
|
|
377207
|
+
return num;
|
|
377208
|
+
}
|
|
377209
|
+
}
|
|
377210
|
+
return id5;
|
|
377211
|
+
});
|
|
377212
|
+
}
|
|
377213
|
+
this.build = m2[5] ? m2[5].split(".") : [];
|
|
377214
|
+
this.format();
|
|
377215
|
+
}
|
|
377216
|
+
format() {
|
|
377217
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
377218
|
+
if (this.prerelease.length) {
|
|
377219
|
+
this.version += `-${this.prerelease.join(".")}`;
|
|
377220
|
+
}
|
|
377221
|
+
return this.version;
|
|
377222
|
+
}
|
|
377223
|
+
toString() {
|
|
377224
|
+
return this.version;
|
|
377225
|
+
}
|
|
377226
|
+
compare(other) {
|
|
377227
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
377228
|
+
if (!(other instanceof SemVer)) {
|
|
377229
|
+
if (typeof other === "string" && other === this.version) {
|
|
377230
|
+
return 0;
|
|
377231
|
+
}
|
|
377232
|
+
other = new SemVer(other, this.options);
|
|
377233
|
+
}
|
|
377234
|
+
if (other.version === this.version) {
|
|
377235
|
+
return 0;
|
|
377236
|
+
}
|
|
377237
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
377238
|
+
}
|
|
377239
|
+
compareMain(other) {
|
|
377240
|
+
if (!(other instanceof SemVer)) {
|
|
377241
|
+
other = new SemVer(other, this.options);
|
|
377242
|
+
}
|
|
377243
|
+
if (this.major < other.major) {
|
|
377244
|
+
return -1;
|
|
377245
|
+
}
|
|
377246
|
+
if (this.major > other.major) {
|
|
377247
|
+
return 1;
|
|
377248
|
+
}
|
|
377249
|
+
if (this.minor < other.minor) {
|
|
377250
|
+
return -1;
|
|
377251
|
+
}
|
|
377252
|
+
if (this.minor > other.minor) {
|
|
377253
|
+
return 1;
|
|
377254
|
+
}
|
|
377255
|
+
if (this.patch < other.patch) {
|
|
377256
|
+
return -1;
|
|
377257
|
+
}
|
|
377258
|
+
if (this.patch > other.patch) {
|
|
377259
|
+
return 1;
|
|
377260
|
+
}
|
|
377261
|
+
return 0;
|
|
377262
|
+
}
|
|
377263
|
+
comparePre(other) {
|
|
377264
|
+
if (!(other instanceof SemVer)) {
|
|
377265
|
+
other = new SemVer(other, this.options);
|
|
377266
|
+
}
|
|
377267
|
+
if (this.prerelease.length && !other.prerelease.length) {
|
|
377268
|
+
return -1;
|
|
377269
|
+
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
377270
|
+
return 1;
|
|
377271
|
+
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
377272
|
+
return 0;
|
|
377273
|
+
}
|
|
377274
|
+
let i2 = 0;
|
|
377275
|
+
do {
|
|
377276
|
+
const a2 = this.prerelease[i2];
|
|
377277
|
+
const b2 = other.prerelease[i2];
|
|
377278
|
+
debug("prerelease compare", i2, a2, b2);
|
|
377279
|
+
if (a2 === undefined && b2 === undefined) {
|
|
377280
|
+
return 0;
|
|
377281
|
+
} else if (b2 === undefined) {
|
|
377282
|
+
return 1;
|
|
377283
|
+
} else if (a2 === undefined) {
|
|
377284
|
+
return -1;
|
|
377285
|
+
} else if (a2 === b2) {
|
|
377286
|
+
continue;
|
|
377287
|
+
} else {
|
|
377288
|
+
return compareIdentifiers(a2, b2);
|
|
377289
|
+
}
|
|
377290
|
+
} while (++i2);
|
|
377291
|
+
}
|
|
377292
|
+
compareBuild(other) {
|
|
377293
|
+
if (!(other instanceof SemVer)) {
|
|
377294
|
+
other = new SemVer(other, this.options);
|
|
377295
|
+
}
|
|
377296
|
+
let i2 = 0;
|
|
377297
|
+
do {
|
|
377298
|
+
const a2 = this.build[i2];
|
|
377299
|
+
const b2 = other.build[i2];
|
|
377300
|
+
debug("build compare", i2, a2, b2);
|
|
377301
|
+
if (a2 === undefined && b2 === undefined) {
|
|
377302
|
+
return 0;
|
|
377303
|
+
} else if (b2 === undefined) {
|
|
377304
|
+
return 1;
|
|
377305
|
+
} else if (a2 === undefined) {
|
|
377306
|
+
return -1;
|
|
377307
|
+
} else if (a2 === b2) {
|
|
377308
|
+
continue;
|
|
377309
|
+
} else {
|
|
377310
|
+
return compareIdentifiers(a2, b2);
|
|
377311
|
+
}
|
|
377312
|
+
} while (++i2);
|
|
377313
|
+
}
|
|
377314
|
+
inc(release, identifier5, identifierBase) {
|
|
377315
|
+
if (release.startsWith("pre")) {
|
|
377316
|
+
if (!identifier5 && identifierBase === false) {
|
|
377317
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
377318
|
+
}
|
|
377319
|
+
if (identifier5) {
|
|
377320
|
+
const match3 = `-${identifier5}`.match(this.options.loose ? re3[t8.PRERELEASELOOSE] : re3[t8.PRERELEASE]);
|
|
377321
|
+
if (!match3 || match3[1] !== identifier5) {
|
|
377322
|
+
throw new Error(`invalid identifier: ${identifier5}`);
|
|
377323
|
+
}
|
|
377324
|
+
}
|
|
377325
|
+
}
|
|
377326
|
+
switch (release) {
|
|
377327
|
+
case "premajor":
|
|
377328
|
+
this.prerelease.length = 0;
|
|
377329
|
+
this.patch = 0;
|
|
377330
|
+
this.minor = 0;
|
|
377331
|
+
this.major++;
|
|
377332
|
+
this.inc("pre", identifier5, identifierBase);
|
|
377333
|
+
break;
|
|
377334
|
+
case "preminor":
|
|
377335
|
+
this.prerelease.length = 0;
|
|
377336
|
+
this.patch = 0;
|
|
377337
|
+
this.minor++;
|
|
377338
|
+
this.inc("pre", identifier5, identifierBase);
|
|
377339
|
+
break;
|
|
377340
|
+
case "prepatch":
|
|
377341
|
+
this.prerelease.length = 0;
|
|
377342
|
+
this.inc("patch", identifier5, identifierBase);
|
|
377343
|
+
this.inc("pre", identifier5, identifierBase);
|
|
377344
|
+
break;
|
|
377345
|
+
case "prerelease":
|
|
377346
|
+
if (this.prerelease.length === 0) {
|
|
377347
|
+
this.inc("patch", identifier5, identifierBase);
|
|
377348
|
+
}
|
|
377349
|
+
this.inc("pre", identifier5, identifierBase);
|
|
377350
|
+
break;
|
|
377351
|
+
case "release":
|
|
377352
|
+
if (this.prerelease.length === 0) {
|
|
377353
|
+
throw new Error(`version ${this.raw} is not a prerelease`);
|
|
377354
|
+
}
|
|
377355
|
+
this.prerelease.length = 0;
|
|
377356
|
+
break;
|
|
377357
|
+
case "major":
|
|
377358
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
377359
|
+
this.major++;
|
|
377360
|
+
}
|
|
377361
|
+
this.minor = 0;
|
|
377362
|
+
this.patch = 0;
|
|
377363
|
+
this.prerelease = [];
|
|
377364
|
+
break;
|
|
377365
|
+
case "minor":
|
|
377366
|
+
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
377367
|
+
this.minor++;
|
|
377368
|
+
}
|
|
377369
|
+
this.patch = 0;
|
|
377370
|
+
this.prerelease = [];
|
|
377371
|
+
break;
|
|
377372
|
+
case "patch":
|
|
377373
|
+
if (this.prerelease.length === 0) {
|
|
377374
|
+
this.patch++;
|
|
377375
|
+
}
|
|
377376
|
+
this.prerelease = [];
|
|
377377
|
+
break;
|
|
377378
|
+
case "pre": {
|
|
377379
|
+
const base3 = Number(identifierBase) ? 1 : 0;
|
|
377380
|
+
if (this.prerelease.length === 0) {
|
|
377381
|
+
this.prerelease = [base3];
|
|
377382
|
+
} else {
|
|
377383
|
+
let i2 = this.prerelease.length;
|
|
377384
|
+
while (--i2 >= 0) {
|
|
377385
|
+
if (typeof this.prerelease[i2] === "number") {
|
|
377386
|
+
this.prerelease[i2]++;
|
|
377387
|
+
i2 = -2;
|
|
377388
|
+
}
|
|
377389
|
+
}
|
|
377390
|
+
if (i2 === -1) {
|
|
377391
|
+
if (identifier5 === this.prerelease.join(".") && identifierBase === false) {
|
|
377392
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
377393
|
+
}
|
|
377394
|
+
this.prerelease.push(base3);
|
|
377395
|
+
}
|
|
377396
|
+
}
|
|
377397
|
+
if (identifier5) {
|
|
377398
|
+
let prerelease = [identifier5, base3];
|
|
377399
|
+
if (identifierBase === false) {
|
|
377400
|
+
prerelease = [identifier5];
|
|
377401
|
+
}
|
|
377402
|
+
if (compareIdentifiers(this.prerelease[0], identifier5) === 0) {
|
|
377403
|
+
if (isNaN(this.prerelease[1])) {
|
|
377404
|
+
this.prerelease = prerelease;
|
|
377405
|
+
}
|
|
377406
|
+
} else {
|
|
377407
|
+
this.prerelease = prerelease;
|
|
377408
|
+
}
|
|
377409
|
+
}
|
|
377410
|
+
break;
|
|
377411
|
+
}
|
|
377412
|
+
default:
|
|
377413
|
+
throw new Error(`invalid increment argument: ${release}`);
|
|
377414
|
+
}
|
|
377415
|
+
this.raw = this.format();
|
|
377416
|
+
if (this.build.length) {
|
|
377417
|
+
this.raw += `+${this.build.join(".")}`;
|
|
377418
|
+
}
|
|
377419
|
+
return this;
|
|
377420
|
+
}
|
|
377421
|
+
}
|
|
377422
|
+
module.exports = SemVer;
|
|
377423
|
+
});
|
|
377424
|
+
|
|
377425
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/parse.js
|
|
377426
|
+
var require_parse6 = __commonJS((exports, module) => {
|
|
377427
|
+
var SemVer = require_semver2();
|
|
377428
|
+
var parse5 = (version, options, throwErrors = false) => {
|
|
377429
|
+
if (version instanceof SemVer) {
|
|
377430
|
+
return version;
|
|
377431
|
+
}
|
|
377432
|
+
try {
|
|
377433
|
+
return new SemVer(version, options);
|
|
377434
|
+
} catch (er3) {
|
|
377435
|
+
if (!throwErrors) {
|
|
377436
|
+
return null;
|
|
377437
|
+
}
|
|
377438
|
+
throw er3;
|
|
377439
|
+
}
|
|
377440
|
+
};
|
|
377441
|
+
module.exports = parse5;
|
|
377442
|
+
});
|
|
377443
|
+
|
|
377444
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/valid.js
|
|
377445
|
+
var require_valid = __commonJS((exports, module) => {
|
|
377446
|
+
var parse5 = require_parse6();
|
|
377447
|
+
var valid = (version, options) => {
|
|
377448
|
+
const v2 = parse5(version, options);
|
|
377449
|
+
return v2 ? v2.version : null;
|
|
377450
|
+
};
|
|
377451
|
+
module.exports = valid;
|
|
377452
|
+
});
|
|
377453
|
+
|
|
377454
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/clean.js
|
|
377455
|
+
var require_clean = __commonJS((exports, module) => {
|
|
377456
|
+
var parse5 = require_parse6();
|
|
377457
|
+
var clean = (version, options) => {
|
|
377458
|
+
const s2 = parse5(version.trim().replace(/^[=v]+/, ""), options);
|
|
377459
|
+
return s2 ? s2.version : null;
|
|
377460
|
+
};
|
|
377461
|
+
module.exports = clean;
|
|
377462
|
+
});
|
|
377463
|
+
|
|
377464
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/inc.js
|
|
377465
|
+
var require_inc = __commonJS((exports, module) => {
|
|
377466
|
+
var SemVer = require_semver2();
|
|
377467
|
+
var inc = (version, release, options, identifier5, identifierBase) => {
|
|
377468
|
+
if (typeof options === "string") {
|
|
377469
|
+
identifierBase = identifier5;
|
|
377470
|
+
identifier5 = options;
|
|
377471
|
+
options = undefined;
|
|
377472
|
+
}
|
|
377473
|
+
try {
|
|
377474
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier5, identifierBase).version;
|
|
377475
|
+
} catch (er3) {
|
|
377476
|
+
return null;
|
|
377477
|
+
}
|
|
377478
|
+
};
|
|
377479
|
+
module.exports = inc;
|
|
377480
|
+
});
|
|
377481
|
+
|
|
377482
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/diff.js
|
|
377483
|
+
var require_diff = __commonJS((exports, module) => {
|
|
377484
|
+
var parse5 = require_parse6();
|
|
377485
|
+
var diff3 = (version1, version2) => {
|
|
377486
|
+
const v1 = parse5(version1, null, true);
|
|
377487
|
+
const v2 = parse5(version2, null, true);
|
|
377488
|
+
const comparison = v1.compare(v2);
|
|
377489
|
+
if (comparison === 0) {
|
|
377490
|
+
return null;
|
|
377491
|
+
}
|
|
377492
|
+
const v1Higher = comparison > 0;
|
|
377493
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
377494
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
377495
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
377496
|
+
const lowHasPre = !!lowVersion.prerelease.length;
|
|
377497
|
+
if (lowHasPre && !highHasPre) {
|
|
377498
|
+
if (!lowVersion.patch && !lowVersion.minor) {
|
|
377499
|
+
return "major";
|
|
377500
|
+
}
|
|
377501
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
377502
|
+
if (lowVersion.minor && !lowVersion.patch) {
|
|
377503
|
+
return "minor";
|
|
377504
|
+
}
|
|
377505
|
+
return "patch";
|
|
377506
|
+
}
|
|
377507
|
+
}
|
|
377508
|
+
const prefix = highHasPre ? "pre" : "";
|
|
377509
|
+
if (v1.major !== v2.major) {
|
|
377510
|
+
return prefix + "major";
|
|
377511
|
+
}
|
|
377512
|
+
if (v1.minor !== v2.minor) {
|
|
377513
|
+
return prefix + "minor";
|
|
377514
|
+
}
|
|
377515
|
+
if (v1.patch !== v2.patch) {
|
|
377516
|
+
return prefix + "patch";
|
|
377517
|
+
}
|
|
377518
|
+
return "prerelease";
|
|
377519
|
+
};
|
|
377520
|
+
module.exports = diff3;
|
|
377521
|
+
});
|
|
377522
|
+
|
|
377523
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/major.js
|
|
377524
|
+
var require_major = __commonJS((exports, module) => {
|
|
377525
|
+
var SemVer = require_semver2();
|
|
377526
|
+
var major2 = (a2, loose) => new SemVer(a2, loose).major;
|
|
377527
|
+
module.exports = major2;
|
|
377528
|
+
});
|
|
377529
|
+
|
|
377530
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/minor.js
|
|
377531
|
+
var require_minor = __commonJS((exports, module) => {
|
|
377532
|
+
var SemVer = require_semver2();
|
|
377533
|
+
var minor = (a2, loose) => new SemVer(a2, loose).minor;
|
|
377534
|
+
module.exports = minor;
|
|
377535
|
+
});
|
|
377536
|
+
|
|
377537
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/patch.js
|
|
377538
|
+
var require_patch = __commonJS((exports, module) => {
|
|
377539
|
+
var SemVer = require_semver2();
|
|
377540
|
+
var patch = (a2, loose) => new SemVer(a2, loose).patch;
|
|
377541
|
+
module.exports = patch;
|
|
377542
|
+
});
|
|
377543
|
+
|
|
377544
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/prerelease.js
|
|
377545
|
+
var require_prerelease = __commonJS((exports, module) => {
|
|
377546
|
+
var parse5 = require_parse6();
|
|
377547
|
+
var prerelease = (version, options) => {
|
|
377548
|
+
const parsed = parse5(version, options);
|
|
377549
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
377550
|
+
};
|
|
377551
|
+
module.exports = prerelease;
|
|
377552
|
+
});
|
|
377553
|
+
|
|
377554
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/compare.js
|
|
377555
|
+
var require_compare = __commonJS((exports, module) => {
|
|
377556
|
+
var SemVer = require_semver2();
|
|
377557
|
+
var compare = (a2, b2, loose) => new SemVer(a2, loose).compare(new SemVer(b2, loose));
|
|
377558
|
+
module.exports = compare;
|
|
377559
|
+
});
|
|
377560
|
+
|
|
377561
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/rcompare.js
|
|
377562
|
+
var require_rcompare = __commonJS((exports, module) => {
|
|
377563
|
+
var compare = require_compare();
|
|
377564
|
+
var rcompare = (a2, b2, loose) => compare(b2, a2, loose);
|
|
377565
|
+
module.exports = rcompare;
|
|
377566
|
+
});
|
|
377567
|
+
|
|
377568
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/compare-loose.js
|
|
377569
|
+
var require_compare_loose = __commonJS((exports, module) => {
|
|
377570
|
+
var compare = require_compare();
|
|
377571
|
+
var compareLoose = (a2, b2) => compare(a2, b2, true);
|
|
377572
|
+
module.exports = compareLoose;
|
|
377573
|
+
});
|
|
377574
|
+
|
|
377575
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/compare-build.js
|
|
377576
|
+
var require_compare_build = __commonJS((exports, module) => {
|
|
377577
|
+
var SemVer = require_semver2();
|
|
377578
|
+
var compareBuild = (a2, b2, loose) => {
|
|
377579
|
+
const versionA = new SemVer(a2, loose);
|
|
377580
|
+
const versionB = new SemVer(b2, loose);
|
|
377581
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
377582
|
+
};
|
|
377583
|
+
module.exports = compareBuild;
|
|
377584
|
+
});
|
|
377585
|
+
|
|
377586
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/sort.js
|
|
377587
|
+
var require_sort = __commonJS((exports, module) => {
|
|
377588
|
+
var compareBuild = require_compare_build();
|
|
377589
|
+
var sort = (list, loose) => list.sort((a2, b2) => compareBuild(a2, b2, loose));
|
|
377590
|
+
module.exports = sort;
|
|
377591
|
+
});
|
|
377592
|
+
|
|
377593
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/rsort.js
|
|
377594
|
+
var require_rsort = __commonJS((exports, module) => {
|
|
377595
|
+
var compareBuild = require_compare_build();
|
|
377596
|
+
var rsort = (list, loose) => list.sort((a2, b2) => compareBuild(b2, a2, loose));
|
|
377597
|
+
module.exports = rsort;
|
|
377598
|
+
});
|
|
377599
|
+
|
|
377600
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/gt.js
|
|
377601
|
+
var require_gt = __commonJS((exports, module) => {
|
|
377602
|
+
var compare = require_compare();
|
|
377603
|
+
var gt3 = (a2, b2, loose) => compare(a2, b2, loose) > 0;
|
|
377604
|
+
module.exports = gt3;
|
|
377605
|
+
});
|
|
377606
|
+
|
|
377607
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/lt.js
|
|
377608
|
+
var require_lt = __commonJS((exports, module) => {
|
|
377609
|
+
var compare = require_compare();
|
|
377610
|
+
var lt3 = (a2, b2, loose) => compare(a2, b2, loose) < 0;
|
|
377611
|
+
module.exports = lt3;
|
|
377612
|
+
});
|
|
377613
|
+
|
|
377614
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/eq.js
|
|
377615
|
+
var require_eq = __commonJS((exports, module) => {
|
|
377616
|
+
var compare = require_compare();
|
|
377617
|
+
var eq4 = (a2, b2, loose) => compare(a2, b2, loose) === 0;
|
|
377618
|
+
module.exports = eq4;
|
|
377619
|
+
});
|
|
377620
|
+
|
|
377621
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/neq.js
|
|
377622
|
+
var require_neq = __commonJS((exports, module) => {
|
|
377623
|
+
var compare = require_compare();
|
|
377624
|
+
var neq = (a2, b2, loose) => compare(a2, b2, loose) !== 0;
|
|
377625
|
+
module.exports = neq;
|
|
377626
|
+
});
|
|
377627
|
+
|
|
377628
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/gte.js
|
|
377629
|
+
var require_gte = __commonJS((exports, module) => {
|
|
377630
|
+
var compare = require_compare();
|
|
377631
|
+
var gte2 = (a2, b2, loose) => compare(a2, b2, loose) >= 0;
|
|
377632
|
+
module.exports = gte2;
|
|
377633
|
+
});
|
|
377634
|
+
|
|
377635
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/lte.js
|
|
377636
|
+
var require_lte = __commonJS((exports, module) => {
|
|
377637
|
+
var compare = require_compare();
|
|
377638
|
+
var lte2 = (a2, b2, loose) => compare(a2, b2, loose) <= 0;
|
|
377639
|
+
module.exports = lte2;
|
|
377640
|
+
});
|
|
377641
|
+
|
|
377642
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/cmp.js
|
|
377643
|
+
var require_cmp = __commonJS((exports, module) => {
|
|
377644
|
+
var eq4 = require_eq();
|
|
377645
|
+
var neq = require_neq();
|
|
377646
|
+
var gt3 = require_gt();
|
|
377647
|
+
var gte2 = require_gte();
|
|
377648
|
+
var lt3 = require_lt();
|
|
377649
|
+
var lte2 = require_lte();
|
|
377650
|
+
var cmp = (a2, op3, b2, loose) => {
|
|
377651
|
+
switch (op3) {
|
|
377652
|
+
case "===":
|
|
377653
|
+
if (typeof a2 === "object") {
|
|
377654
|
+
a2 = a2.version;
|
|
377655
|
+
}
|
|
377656
|
+
if (typeof b2 === "object") {
|
|
377657
|
+
b2 = b2.version;
|
|
377658
|
+
}
|
|
377659
|
+
return a2 === b2;
|
|
377660
|
+
case "!==":
|
|
377661
|
+
if (typeof a2 === "object") {
|
|
377662
|
+
a2 = a2.version;
|
|
377663
|
+
}
|
|
377664
|
+
if (typeof b2 === "object") {
|
|
377665
|
+
b2 = b2.version;
|
|
377666
|
+
}
|
|
377667
|
+
return a2 !== b2;
|
|
377668
|
+
case "":
|
|
377669
|
+
case "=":
|
|
377670
|
+
case "==":
|
|
377671
|
+
return eq4(a2, b2, loose);
|
|
377672
|
+
case "!=":
|
|
377673
|
+
return neq(a2, b2, loose);
|
|
377674
|
+
case ">":
|
|
377675
|
+
return gt3(a2, b2, loose);
|
|
377676
|
+
case ">=":
|
|
377677
|
+
return gte2(a2, b2, loose);
|
|
377678
|
+
case "<":
|
|
377679
|
+
return lt3(a2, b2, loose);
|
|
377680
|
+
case "<=":
|
|
377681
|
+
return lte2(a2, b2, loose);
|
|
377682
|
+
default:
|
|
377683
|
+
throw new TypeError(`Invalid operator: ${op3}`);
|
|
377684
|
+
}
|
|
377685
|
+
};
|
|
377686
|
+
module.exports = cmp;
|
|
377687
|
+
});
|
|
377688
|
+
|
|
377689
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/coerce.js
|
|
377690
|
+
var require_coerce = __commonJS((exports, module) => {
|
|
377691
|
+
var SemVer = require_semver2();
|
|
377692
|
+
var parse5 = require_parse6();
|
|
377693
|
+
var { safeRe: re3, t: t8 } = require_re();
|
|
377694
|
+
var coerce2 = (version, options) => {
|
|
377695
|
+
if (version instanceof SemVer) {
|
|
377696
|
+
return version;
|
|
377697
|
+
}
|
|
377698
|
+
if (typeof version === "number") {
|
|
377699
|
+
version = String(version);
|
|
377700
|
+
}
|
|
377701
|
+
if (typeof version !== "string") {
|
|
377702
|
+
return null;
|
|
377703
|
+
}
|
|
377704
|
+
options = options || {};
|
|
377705
|
+
let match3 = null;
|
|
377706
|
+
if (!options.rtl) {
|
|
377707
|
+
match3 = version.match(options.includePrerelease ? re3[t8.COERCEFULL] : re3[t8.COERCE]);
|
|
377708
|
+
} else {
|
|
377709
|
+
const coerceRtlRegex = options.includePrerelease ? re3[t8.COERCERTLFULL] : re3[t8.COERCERTL];
|
|
377710
|
+
let next;
|
|
377711
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match3 || match3.index + match3[0].length !== version.length)) {
|
|
377712
|
+
if (!match3 || next.index + next[0].length !== match3.index + match3[0].length) {
|
|
377713
|
+
match3 = next;
|
|
377714
|
+
}
|
|
377715
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
377716
|
+
}
|
|
377717
|
+
coerceRtlRegex.lastIndex = -1;
|
|
377718
|
+
}
|
|
377719
|
+
if (match3 === null) {
|
|
377720
|
+
return null;
|
|
377721
|
+
}
|
|
377722
|
+
const major2 = match3[2];
|
|
377723
|
+
const minor = match3[3] || "0";
|
|
377724
|
+
const patch = match3[4] || "0";
|
|
377725
|
+
const prerelease = options.includePrerelease && match3[5] ? `-${match3[5]}` : "";
|
|
377726
|
+
const build = options.includePrerelease && match3[6] ? `+${match3[6]}` : "";
|
|
377727
|
+
return parse5(`${major2}.${minor}.${patch}${prerelease}${build}`, options);
|
|
377728
|
+
};
|
|
377729
|
+
module.exports = coerce2;
|
|
377730
|
+
});
|
|
377731
|
+
|
|
377732
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/internal/lrucache.js
|
|
377733
|
+
var require_lrucache = __commonJS((exports, module) => {
|
|
377734
|
+
class LRUCache3 {
|
|
377735
|
+
constructor() {
|
|
377736
|
+
this.max = 1000;
|
|
377737
|
+
this.map = new Map;
|
|
377738
|
+
}
|
|
377739
|
+
get(key) {
|
|
377740
|
+
const value2 = this.map.get(key);
|
|
377741
|
+
if (value2 === undefined) {
|
|
377742
|
+
return;
|
|
377743
|
+
} else {
|
|
377744
|
+
this.map.delete(key);
|
|
377745
|
+
this.map.set(key, value2);
|
|
377746
|
+
return value2;
|
|
377747
|
+
}
|
|
377748
|
+
}
|
|
377749
|
+
delete(key) {
|
|
377750
|
+
return this.map.delete(key);
|
|
377751
|
+
}
|
|
377752
|
+
set(key, value2) {
|
|
377753
|
+
const deleted = this.delete(key);
|
|
377754
|
+
if (!deleted && value2 !== undefined) {
|
|
377755
|
+
if (this.map.size >= this.max) {
|
|
377756
|
+
const firstKey = this.map.keys().next().value;
|
|
377757
|
+
this.delete(firstKey);
|
|
377758
|
+
}
|
|
377759
|
+
this.map.set(key, value2);
|
|
377760
|
+
}
|
|
377761
|
+
return this;
|
|
377762
|
+
}
|
|
377763
|
+
}
|
|
377764
|
+
module.exports = LRUCache3;
|
|
377765
|
+
});
|
|
377766
|
+
|
|
377767
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/classes/range.js
|
|
377768
|
+
var require_range3 = __commonJS((exports, module) => {
|
|
377769
|
+
var SPACE_CHARACTERS = /\s+/g;
|
|
377770
|
+
|
|
377771
|
+
class Range {
|
|
377772
|
+
constructor(range2, options) {
|
|
377773
|
+
options = parseOptions(options);
|
|
377774
|
+
if (range2 instanceof Range) {
|
|
377775
|
+
if (range2.loose === !!options.loose && range2.includePrerelease === !!options.includePrerelease) {
|
|
377776
|
+
return range2;
|
|
377777
|
+
} else {
|
|
377778
|
+
return new Range(range2.raw, options);
|
|
377779
|
+
}
|
|
377780
|
+
}
|
|
377781
|
+
if (range2 instanceof Comparator) {
|
|
377782
|
+
this.raw = range2.value;
|
|
377783
|
+
this.set = [[range2]];
|
|
377784
|
+
this.formatted = undefined;
|
|
377785
|
+
return this;
|
|
377786
|
+
}
|
|
377787
|
+
this.options = options;
|
|
377788
|
+
this.loose = !!options.loose;
|
|
377789
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
377790
|
+
this.raw = range2.trim().replace(SPACE_CHARACTERS, " ");
|
|
377791
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c4) => c4.length);
|
|
377792
|
+
if (!this.set.length) {
|
|
377793
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
377794
|
+
}
|
|
377795
|
+
if (this.set.length > 1) {
|
|
377796
|
+
const first = this.set[0];
|
|
377797
|
+
this.set = this.set.filter((c4) => !isNullSet(c4[0]));
|
|
377798
|
+
if (this.set.length === 0) {
|
|
377799
|
+
this.set = [first];
|
|
377800
|
+
} else if (this.set.length > 1) {
|
|
377801
|
+
for (const c4 of this.set) {
|
|
377802
|
+
if (c4.length === 1 && isAny(c4[0])) {
|
|
377803
|
+
this.set = [c4];
|
|
377804
|
+
break;
|
|
377805
|
+
}
|
|
377806
|
+
}
|
|
377807
|
+
}
|
|
377808
|
+
}
|
|
377809
|
+
this.formatted = undefined;
|
|
377810
|
+
}
|
|
377811
|
+
get range() {
|
|
377812
|
+
if (this.formatted === undefined) {
|
|
377813
|
+
this.formatted = "";
|
|
377814
|
+
for (let i2 = 0;i2 < this.set.length; i2++) {
|
|
377815
|
+
if (i2 > 0) {
|
|
377816
|
+
this.formatted += "||";
|
|
377817
|
+
}
|
|
377818
|
+
const comps = this.set[i2];
|
|
377819
|
+
for (let k = 0;k < comps.length; k++) {
|
|
377820
|
+
if (k > 0) {
|
|
377821
|
+
this.formatted += " ";
|
|
377822
|
+
}
|
|
377823
|
+
this.formatted += comps[k].toString().trim();
|
|
377824
|
+
}
|
|
377825
|
+
}
|
|
377826
|
+
}
|
|
377827
|
+
return this.formatted;
|
|
377828
|
+
}
|
|
377829
|
+
format() {
|
|
377830
|
+
return this.range;
|
|
377831
|
+
}
|
|
377832
|
+
toString() {
|
|
377833
|
+
return this.range;
|
|
377834
|
+
}
|
|
377835
|
+
parseRange(range2) {
|
|
377836
|
+
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
377837
|
+
const memoKey = memoOpts + ":" + range2;
|
|
377838
|
+
const cached = cache4.get(memoKey);
|
|
377839
|
+
if (cached) {
|
|
377840
|
+
return cached;
|
|
377841
|
+
}
|
|
377842
|
+
const loose = this.options.loose;
|
|
377843
|
+
const hr2 = loose ? re3[t8.HYPHENRANGELOOSE] : re3[t8.HYPHENRANGE];
|
|
377844
|
+
range2 = range2.replace(hr2, hyphenReplace(this.options.includePrerelease));
|
|
377845
|
+
debug("hyphen replace", range2);
|
|
377846
|
+
range2 = range2.replace(re3[t8.COMPARATORTRIM], comparatorTrimReplace);
|
|
377847
|
+
debug("comparator trim", range2);
|
|
377848
|
+
range2 = range2.replace(re3[t8.TILDETRIM], tildeTrimReplace);
|
|
377849
|
+
debug("tilde trim", range2);
|
|
377850
|
+
range2 = range2.replace(re3[t8.CARETTRIM], caretTrimReplace);
|
|
377851
|
+
debug("caret trim", range2);
|
|
377852
|
+
let rangeList = range2.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
377853
|
+
if (loose) {
|
|
377854
|
+
rangeList = rangeList.filter((comp) => {
|
|
377855
|
+
debug("loose invalid filter", comp, this.options);
|
|
377856
|
+
return !!comp.match(re3[t8.COMPARATORLOOSE]);
|
|
377857
|
+
});
|
|
377858
|
+
}
|
|
377859
|
+
debug("range list", rangeList);
|
|
377860
|
+
const rangeMap = new Map;
|
|
377861
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
377862
|
+
for (const comp of comparators) {
|
|
377863
|
+
if (isNullSet(comp)) {
|
|
377864
|
+
return [comp];
|
|
377865
|
+
}
|
|
377866
|
+
rangeMap.set(comp.value, comp);
|
|
377867
|
+
}
|
|
377868
|
+
if (rangeMap.size > 1 && rangeMap.has("")) {
|
|
377869
|
+
rangeMap.delete("");
|
|
377870
|
+
}
|
|
377871
|
+
const result = [...rangeMap.values()];
|
|
377872
|
+
cache4.set(memoKey, result);
|
|
377873
|
+
return result;
|
|
377874
|
+
}
|
|
377875
|
+
intersects(range2, options) {
|
|
377876
|
+
if (!(range2 instanceof Range)) {
|
|
377877
|
+
throw new TypeError("a Range is required");
|
|
377878
|
+
}
|
|
377879
|
+
return this.set.some((thisComparators) => {
|
|
377880
|
+
return isSatisfiable(thisComparators, options) && range2.set.some((rangeComparators) => {
|
|
377881
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
377882
|
+
return rangeComparators.every((rangeComparator) => {
|
|
377883
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
377884
|
+
});
|
|
377885
|
+
});
|
|
377886
|
+
});
|
|
377887
|
+
});
|
|
377888
|
+
}
|
|
377889
|
+
test(version) {
|
|
377890
|
+
if (!version) {
|
|
377891
|
+
return false;
|
|
377892
|
+
}
|
|
377893
|
+
if (typeof version === "string") {
|
|
377894
|
+
try {
|
|
377895
|
+
version = new SemVer(version, this.options);
|
|
377896
|
+
} catch (er3) {
|
|
377897
|
+
return false;
|
|
377898
|
+
}
|
|
377899
|
+
}
|
|
377900
|
+
for (let i2 = 0;i2 < this.set.length; i2++) {
|
|
377901
|
+
if (testSet(this.set[i2], version, this.options)) {
|
|
377902
|
+
return true;
|
|
377903
|
+
}
|
|
377904
|
+
}
|
|
377905
|
+
return false;
|
|
377906
|
+
}
|
|
377907
|
+
}
|
|
377908
|
+
module.exports = Range;
|
|
377909
|
+
var LRU = require_lrucache();
|
|
377910
|
+
var cache4 = new LRU;
|
|
377911
|
+
var parseOptions = require_parse_options();
|
|
377912
|
+
var Comparator = require_comparator();
|
|
377913
|
+
var debug = require_debug4();
|
|
377914
|
+
var SemVer = require_semver2();
|
|
377915
|
+
var {
|
|
377916
|
+
safeRe: re3,
|
|
377917
|
+
t: t8,
|
|
377918
|
+
comparatorTrimReplace,
|
|
377919
|
+
tildeTrimReplace,
|
|
377920
|
+
caretTrimReplace
|
|
377921
|
+
} = require_re();
|
|
377922
|
+
var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants4();
|
|
377923
|
+
var isNullSet = (c4) => c4.value === "<0.0.0-0";
|
|
377924
|
+
var isAny = (c4) => c4.value === "";
|
|
377925
|
+
var isSatisfiable = (comparators, options) => {
|
|
377926
|
+
let result = true;
|
|
377927
|
+
const remainingComparators = comparators.slice();
|
|
377928
|
+
let testComparator = remainingComparators.pop();
|
|
377929
|
+
while (result && remainingComparators.length) {
|
|
377930
|
+
result = remainingComparators.every((otherComparator) => {
|
|
377931
|
+
return testComparator.intersects(otherComparator, options);
|
|
377932
|
+
});
|
|
377933
|
+
testComparator = remainingComparators.pop();
|
|
377934
|
+
}
|
|
377935
|
+
return result;
|
|
377936
|
+
};
|
|
377937
|
+
var parseComparator = (comp, options) => {
|
|
377938
|
+
comp = comp.replace(re3[t8.BUILD], "");
|
|
377939
|
+
debug("comp", comp, options);
|
|
377940
|
+
comp = replaceCarets(comp, options);
|
|
377941
|
+
debug("caret", comp);
|
|
377942
|
+
comp = replaceTildes(comp, options);
|
|
377943
|
+
debug("tildes", comp);
|
|
377944
|
+
comp = replaceXRanges(comp, options);
|
|
377945
|
+
debug("xrange", comp);
|
|
377946
|
+
comp = replaceStars(comp, options);
|
|
377947
|
+
debug("stars", comp);
|
|
377948
|
+
return comp;
|
|
377949
|
+
};
|
|
377950
|
+
var isX = (id5) => !id5 || id5.toLowerCase() === "x" || id5 === "*";
|
|
377951
|
+
var replaceTildes = (comp, options) => {
|
|
377952
|
+
return comp.trim().split(/\s+/).map((c4) => replaceTilde(c4, options)).join(" ");
|
|
377953
|
+
};
|
|
377954
|
+
var replaceTilde = (comp, options) => {
|
|
377955
|
+
const r = options.loose ? re3[t8.TILDELOOSE] : re3[t8.TILDE];
|
|
377956
|
+
return comp.replace(r, (_4, M4, m2, p, pr3) => {
|
|
377957
|
+
debug("tilde", comp, _4, M4, m2, p, pr3);
|
|
377958
|
+
let ret;
|
|
377959
|
+
if (isX(M4)) {
|
|
377960
|
+
ret = "";
|
|
377961
|
+
} else if (isX(m2)) {
|
|
377962
|
+
ret = `>=${M4}.0.0 <${+M4 + 1}.0.0-0`;
|
|
377963
|
+
} else if (isX(p)) {
|
|
377964
|
+
ret = `>=${M4}.${m2}.0 <${M4}.${+m2 + 1}.0-0`;
|
|
377965
|
+
} else if (pr3) {
|
|
377966
|
+
debug("replaceTilde pr", pr3);
|
|
377967
|
+
ret = `>=${M4}.${m2}.${p}-${pr3} <${M4}.${+m2 + 1}.0-0`;
|
|
377968
|
+
} else {
|
|
377969
|
+
ret = `>=${M4}.${m2}.${p} <${M4}.${+m2 + 1}.0-0`;
|
|
377970
|
+
}
|
|
377971
|
+
debug("tilde return", ret);
|
|
377972
|
+
return ret;
|
|
377973
|
+
});
|
|
377974
|
+
};
|
|
377975
|
+
var replaceCarets = (comp, options) => {
|
|
377976
|
+
return comp.trim().split(/\s+/).map((c4) => replaceCaret(c4, options)).join(" ");
|
|
377977
|
+
};
|
|
377978
|
+
var replaceCaret = (comp, options) => {
|
|
377979
|
+
debug("caret", comp, options);
|
|
377980
|
+
const r = options.loose ? re3[t8.CARETLOOSE] : re3[t8.CARET];
|
|
377981
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
377982
|
+
return comp.replace(r, (_4, M4, m2, p, pr3) => {
|
|
377983
|
+
debug("caret", comp, _4, M4, m2, p, pr3);
|
|
377984
|
+
let ret;
|
|
377985
|
+
if (isX(M4)) {
|
|
377986
|
+
ret = "";
|
|
377987
|
+
} else if (isX(m2)) {
|
|
377988
|
+
ret = `>=${M4}.0.0${z} <${+M4 + 1}.0.0-0`;
|
|
377989
|
+
} else if (isX(p)) {
|
|
377990
|
+
if (M4 === "0") {
|
|
377991
|
+
ret = `>=${M4}.${m2}.0${z} <${M4}.${+m2 + 1}.0-0`;
|
|
377992
|
+
} else {
|
|
377993
|
+
ret = `>=${M4}.${m2}.0${z} <${+M4 + 1}.0.0-0`;
|
|
377994
|
+
}
|
|
377995
|
+
} else if (pr3) {
|
|
377996
|
+
debug("replaceCaret pr", pr3);
|
|
377997
|
+
if (M4 === "0") {
|
|
377998
|
+
if (m2 === "0") {
|
|
377999
|
+
ret = `>=${M4}.${m2}.${p}-${pr3} <${M4}.${m2}.${+p + 1}-0`;
|
|
378000
|
+
} else {
|
|
378001
|
+
ret = `>=${M4}.${m2}.${p}-${pr3} <${M4}.${+m2 + 1}.0-0`;
|
|
378002
|
+
}
|
|
378003
|
+
} else {
|
|
378004
|
+
ret = `>=${M4}.${m2}.${p}-${pr3} <${+M4 + 1}.0.0-0`;
|
|
378005
|
+
}
|
|
378006
|
+
} else {
|
|
378007
|
+
debug("no pr");
|
|
378008
|
+
if (M4 === "0") {
|
|
378009
|
+
if (m2 === "0") {
|
|
378010
|
+
ret = `>=${M4}.${m2}.${p}${z} <${M4}.${m2}.${+p + 1}-0`;
|
|
378011
|
+
} else {
|
|
378012
|
+
ret = `>=${M4}.${m2}.${p}${z} <${M4}.${+m2 + 1}.0-0`;
|
|
378013
|
+
}
|
|
378014
|
+
} else {
|
|
378015
|
+
ret = `>=${M4}.${m2}.${p} <${+M4 + 1}.0.0-0`;
|
|
378016
|
+
}
|
|
378017
|
+
}
|
|
378018
|
+
debug("caret return", ret);
|
|
378019
|
+
return ret;
|
|
378020
|
+
});
|
|
378021
|
+
};
|
|
378022
|
+
var replaceXRanges = (comp, options) => {
|
|
378023
|
+
debug("replaceXRanges", comp, options);
|
|
378024
|
+
return comp.split(/\s+/).map((c4) => replaceXRange(c4, options)).join(" ");
|
|
378025
|
+
};
|
|
378026
|
+
var replaceXRange = (comp, options) => {
|
|
378027
|
+
comp = comp.trim();
|
|
378028
|
+
const r = options.loose ? re3[t8.XRANGELOOSE] : re3[t8.XRANGE];
|
|
378029
|
+
return comp.replace(r, (ret, gtlt, M4, m2, p, pr3) => {
|
|
378030
|
+
debug("xRange", comp, ret, gtlt, M4, m2, p, pr3);
|
|
378031
|
+
const xM = isX(M4);
|
|
378032
|
+
const xm4 = xM || isX(m2);
|
|
378033
|
+
const xp4 = xm4 || isX(p);
|
|
378034
|
+
const anyX = xp4;
|
|
378035
|
+
if (gtlt === "=" && anyX) {
|
|
378036
|
+
gtlt = "";
|
|
378037
|
+
}
|
|
378038
|
+
pr3 = options.includePrerelease ? "-0" : "";
|
|
378039
|
+
if (xM) {
|
|
378040
|
+
if (gtlt === ">" || gtlt === "<") {
|
|
378041
|
+
ret = "<0.0.0-0";
|
|
378042
|
+
} else {
|
|
378043
|
+
ret = "*";
|
|
378044
|
+
}
|
|
378045
|
+
} else if (gtlt && anyX) {
|
|
378046
|
+
if (xm4) {
|
|
378047
|
+
m2 = 0;
|
|
378048
|
+
}
|
|
378049
|
+
p = 0;
|
|
378050
|
+
if (gtlt === ">") {
|
|
378051
|
+
gtlt = ">=";
|
|
378052
|
+
if (xm4) {
|
|
378053
|
+
M4 = +M4 + 1;
|
|
378054
|
+
m2 = 0;
|
|
378055
|
+
p = 0;
|
|
378056
|
+
} else {
|
|
378057
|
+
m2 = +m2 + 1;
|
|
378058
|
+
p = 0;
|
|
378059
|
+
}
|
|
378060
|
+
} else if (gtlt === "<=") {
|
|
378061
|
+
gtlt = "<";
|
|
378062
|
+
if (xm4) {
|
|
378063
|
+
M4 = +M4 + 1;
|
|
378064
|
+
} else {
|
|
378065
|
+
m2 = +m2 + 1;
|
|
378066
|
+
}
|
|
378067
|
+
}
|
|
378068
|
+
if (gtlt === "<") {
|
|
378069
|
+
pr3 = "-0";
|
|
378070
|
+
}
|
|
378071
|
+
ret = `${gtlt + M4}.${m2}.${p}${pr3}`;
|
|
378072
|
+
} else if (xm4) {
|
|
378073
|
+
ret = `>=${M4}.0.0${pr3} <${+M4 + 1}.0.0-0`;
|
|
378074
|
+
} else if (xp4) {
|
|
378075
|
+
ret = `>=${M4}.${m2}.0${pr3} <${M4}.${+m2 + 1}.0-0`;
|
|
378076
|
+
}
|
|
378077
|
+
debug("xRange return", ret);
|
|
378078
|
+
return ret;
|
|
378079
|
+
});
|
|
378080
|
+
};
|
|
378081
|
+
var replaceStars = (comp, options) => {
|
|
378082
|
+
debug("replaceStars", comp, options);
|
|
378083
|
+
return comp.trim().replace(re3[t8.STAR], "");
|
|
378084
|
+
};
|
|
378085
|
+
var replaceGTE0 = (comp, options) => {
|
|
378086
|
+
debug("replaceGTE0", comp, options);
|
|
378087
|
+
return comp.trim().replace(re3[options.includePrerelease ? t8.GTE0PRE : t8.GTE0], "");
|
|
378088
|
+
};
|
|
378089
|
+
var hyphenReplace = (incPr) => ($0, from, fM, fm3, fp3, fpr, fb3, to4, tM, tm4, tp4, tpr) => {
|
|
378090
|
+
if (isX(fM)) {
|
|
378091
|
+
from = "";
|
|
378092
|
+
} else if (isX(fm3)) {
|
|
378093
|
+
from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
378094
|
+
} else if (isX(fp3)) {
|
|
378095
|
+
from = `>=${fM}.${fm3}.0${incPr ? "-0" : ""}`;
|
|
378096
|
+
} else if (fpr) {
|
|
378097
|
+
from = `>=${from}`;
|
|
378098
|
+
} else {
|
|
378099
|
+
from = `>=${from}${incPr ? "-0" : ""}`;
|
|
378100
|
+
}
|
|
378101
|
+
if (isX(tM)) {
|
|
378102
|
+
to4 = "";
|
|
378103
|
+
} else if (isX(tm4)) {
|
|
378104
|
+
to4 = `<${+tM + 1}.0.0-0`;
|
|
378105
|
+
} else if (isX(tp4)) {
|
|
378106
|
+
to4 = `<${tM}.${+tm4 + 1}.0-0`;
|
|
378107
|
+
} else if (tpr) {
|
|
378108
|
+
to4 = `<=${tM}.${tm4}.${tp4}-${tpr}`;
|
|
378109
|
+
} else if (incPr) {
|
|
378110
|
+
to4 = `<${tM}.${tm4}.${+tp4 + 1}-0`;
|
|
378111
|
+
} else {
|
|
378112
|
+
to4 = `<=${to4}`;
|
|
378113
|
+
}
|
|
378114
|
+
return `${from} ${to4}`.trim();
|
|
378115
|
+
};
|
|
378116
|
+
var testSet = (set, version, options) => {
|
|
378117
|
+
for (let i2 = 0;i2 < set.length; i2++) {
|
|
378118
|
+
if (!set[i2].test(version)) {
|
|
378119
|
+
return false;
|
|
378120
|
+
}
|
|
378121
|
+
}
|
|
378122
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
378123
|
+
for (let i2 = 0;i2 < set.length; i2++) {
|
|
378124
|
+
debug(set[i2].semver);
|
|
378125
|
+
if (set[i2].semver === Comparator.ANY) {
|
|
378126
|
+
continue;
|
|
378127
|
+
}
|
|
378128
|
+
if (set[i2].semver.prerelease.length > 0) {
|
|
378129
|
+
const allowed = set[i2].semver;
|
|
378130
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) {
|
|
378131
|
+
return true;
|
|
378132
|
+
}
|
|
378133
|
+
}
|
|
378134
|
+
}
|
|
378135
|
+
return false;
|
|
378136
|
+
}
|
|
378137
|
+
return true;
|
|
378138
|
+
};
|
|
378139
|
+
});
|
|
378140
|
+
|
|
378141
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/classes/comparator.js
|
|
378142
|
+
var require_comparator = __commonJS((exports, module) => {
|
|
378143
|
+
var ANY = Symbol("SemVer ANY");
|
|
378144
|
+
|
|
378145
|
+
class Comparator {
|
|
378146
|
+
static get ANY() {
|
|
378147
|
+
return ANY;
|
|
378148
|
+
}
|
|
378149
|
+
constructor(comp, options) {
|
|
378150
|
+
options = parseOptions(options);
|
|
378151
|
+
if (comp instanceof Comparator) {
|
|
378152
|
+
if (comp.loose === !!options.loose) {
|
|
378153
|
+
return comp;
|
|
378154
|
+
} else {
|
|
378155
|
+
comp = comp.value;
|
|
378156
|
+
}
|
|
378157
|
+
}
|
|
378158
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
378159
|
+
debug("comparator", comp, options);
|
|
378160
|
+
this.options = options;
|
|
378161
|
+
this.loose = !!options.loose;
|
|
378162
|
+
this.parse(comp);
|
|
378163
|
+
if (this.semver === ANY) {
|
|
378164
|
+
this.value = "";
|
|
378165
|
+
} else {
|
|
378166
|
+
this.value = this.operator + this.semver.version;
|
|
378167
|
+
}
|
|
378168
|
+
debug("comp", this);
|
|
378169
|
+
}
|
|
378170
|
+
parse(comp) {
|
|
378171
|
+
const r = this.options.loose ? re3[t8.COMPARATORLOOSE] : re3[t8.COMPARATOR];
|
|
378172
|
+
const m2 = comp.match(r);
|
|
378173
|
+
if (!m2) {
|
|
378174
|
+
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
378175
|
+
}
|
|
378176
|
+
this.operator = m2[1] !== undefined ? m2[1] : "";
|
|
378177
|
+
if (this.operator === "=") {
|
|
378178
|
+
this.operator = "";
|
|
378179
|
+
}
|
|
378180
|
+
if (!m2[2]) {
|
|
378181
|
+
this.semver = ANY;
|
|
378182
|
+
} else {
|
|
378183
|
+
this.semver = new SemVer(m2[2], this.options.loose);
|
|
378184
|
+
}
|
|
378185
|
+
}
|
|
378186
|
+
toString() {
|
|
378187
|
+
return this.value;
|
|
378188
|
+
}
|
|
378189
|
+
test(version) {
|
|
378190
|
+
debug("Comparator.test", version, this.options.loose);
|
|
378191
|
+
if (this.semver === ANY || version === ANY) {
|
|
378192
|
+
return true;
|
|
378193
|
+
}
|
|
378194
|
+
if (typeof version === "string") {
|
|
378195
|
+
try {
|
|
378196
|
+
version = new SemVer(version, this.options);
|
|
378197
|
+
} catch (er3) {
|
|
378198
|
+
return false;
|
|
378199
|
+
}
|
|
378200
|
+
}
|
|
378201
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
378202
|
+
}
|
|
378203
|
+
intersects(comp, options) {
|
|
378204
|
+
if (!(comp instanceof Comparator)) {
|
|
378205
|
+
throw new TypeError("a Comparator is required");
|
|
378206
|
+
}
|
|
378207
|
+
if (this.operator === "") {
|
|
378208
|
+
if (this.value === "") {
|
|
378209
|
+
return true;
|
|
378210
|
+
}
|
|
378211
|
+
return new Range(comp.value, options).test(this.value);
|
|
378212
|
+
} else if (comp.operator === "") {
|
|
378213
|
+
if (comp.value === "") {
|
|
378214
|
+
return true;
|
|
378215
|
+
}
|
|
378216
|
+
return new Range(this.value, options).test(comp.semver);
|
|
378217
|
+
}
|
|
378218
|
+
options = parseOptions(options);
|
|
378219
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
|
|
378220
|
+
return false;
|
|
378221
|
+
}
|
|
378222
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
|
|
378223
|
+
return false;
|
|
378224
|
+
}
|
|
378225
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
|
|
378226
|
+
return true;
|
|
378227
|
+
}
|
|
378228
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
|
|
378229
|
+
return true;
|
|
378230
|
+
}
|
|
378231
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
|
|
378232
|
+
return true;
|
|
378233
|
+
}
|
|
378234
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
|
|
378235
|
+
return true;
|
|
378236
|
+
}
|
|
378237
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
|
|
378238
|
+
return true;
|
|
378239
|
+
}
|
|
378240
|
+
return false;
|
|
378241
|
+
}
|
|
378242
|
+
}
|
|
378243
|
+
module.exports = Comparator;
|
|
378244
|
+
var parseOptions = require_parse_options();
|
|
378245
|
+
var { safeRe: re3, t: t8 } = require_re();
|
|
378246
|
+
var cmp = require_cmp();
|
|
378247
|
+
var debug = require_debug4();
|
|
378248
|
+
var SemVer = require_semver2();
|
|
378249
|
+
var Range = require_range3();
|
|
378250
|
+
});
|
|
378251
|
+
|
|
378252
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/satisfies.js
|
|
378253
|
+
var require_satisfies = __commonJS((exports, module) => {
|
|
378254
|
+
var Range = require_range3();
|
|
378255
|
+
var satisfies = (version, range2, options) => {
|
|
378256
|
+
try {
|
|
378257
|
+
range2 = new Range(range2, options);
|
|
378258
|
+
} catch (er3) {
|
|
378259
|
+
return false;
|
|
378260
|
+
}
|
|
378261
|
+
return range2.test(version);
|
|
378262
|
+
};
|
|
378263
|
+
module.exports = satisfies;
|
|
378264
|
+
});
|
|
378265
|
+
|
|
378266
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/to-comparators.js
|
|
378267
|
+
var require_to_comparators = __commonJS((exports, module) => {
|
|
378268
|
+
var Range = require_range3();
|
|
378269
|
+
var toComparators = (range2, options) => new Range(range2, options).set.map((comp) => comp.map((c4) => c4.value).join(" ").trim().split(" "));
|
|
378270
|
+
module.exports = toComparators;
|
|
378271
|
+
});
|
|
378272
|
+
|
|
378273
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/max-satisfying.js
|
|
378274
|
+
var require_max_satisfying = __commonJS((exports, module) => {
|
|
378275
|
+
var SemVer = require_semver2();
|
|
378276
|
+
var Range = require_range3();
|
|
378277
|
+
var maxSatisfying = (versions, range2, options) => {
|
|
378278
|
+
let max = null;
|
|
378279
|
+
let maxSV = null;
|
|
378280
|
+
let rangeObj = null;
|
|
378281
|
+
try {
|
|
378282
|
+
rangeObj = new Range(range2, options);
|
|
378283
|
+
} catch (er3) {
|
|
378284
|
+
return null;
|
|
378285
|
+
}
|
|
378286
|
+
versions.forEach((v2) => {
|
|
378287
|
+
if (rangeObj.test(v2)) {
|
|
378288
|
+
if (!max || maxSV.compare(v2) === -1) {
|
|
378289
|
+
max = v2;
|
|
378290
|
+
maxSV = new SemVer(max, options);
|
|
378291
|
+
}
|
|
378292
|
+
}
|
|
378293
|
+
});
|
|
378294
|
+
return max;
|
|
378295
|
+
};
|
|
378296
|
+
module.exports = maxSatisfying;
|
|
378297
|
+
});
|
|
378298
|
+
|
|
378299
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/min-satisfying.js
|
|
378300
|
+
var require_min_satisfying = __commonJS((exports, module) => {
|
|
378301
|
+
var SemVer = require_semver2();
|
|
378302
|
+
var Range = require_range3();
|
|
378303
|
+
var minSatisfying = (versions, range2, options) => {
|
|
378304
|
+
let min = null;
|
|
378305
|
+
let minSV = null;
|
|
378306
|
+
let rangeObj = null;
|
|
378307
|
+
try {
|
|
378308
|
+
rangeObj = new Range(range2, options);
|
|
378309
|
+
} catch (er3) {
|
|
378310
|
+
return null;
|
|
378311
|
+
}
|
|
378312
|
+
versions.forEach((v2) => {
|
|
378313
|
+
if (rangeObj.test(v2)) {
|
|
378314
|
+
if (!min || minSV.compare(v2) === 1) {
|
|
378315
|
+
min = v2;
|
|
378316
|
+
minSV = new SemVer(min, options);
|
|
378317
|
+
}
|
|
378318
|
+
}
|
|
378319
|
+
});
|
|
378320
|
+
return min;
|
|
378321
|
+
};
|
|
378322
|
+
module.exports = minSatisfying;
|
|
378323
|
+
});
|
|
378324
|
+
|
|
378325
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/min-version.js
|
|
378326
|
+
var require_min_version = __commonJS((exports, module) => {
|
|
378327
|
+
var SemVer = require_semver2();
|
|
378328
|
+
var Range = require_range3();
|
|
378329
|
+
var gt3 = require_gt();
|
|
378330
|
+
var minVersion = (range2, loose) => {
|
|
378331
|
+
range2 = new Range(range2, loose);
|
|
378332
|
+
let minver = new SemVer("0.0.0");
|
|
378333
|
+
if (range2.test(minver)) {
|
|
378334
|
+
return minver;
|
|
378335
|
+
}
|
|
378336
|
+
minver = new SemVer("0.0.0-0");
|
|
378337
|
+
if (range2.test(minver)) {
|
|
378338
|
+
return minver;
|
|
378339
|
+
}
|
|
378340
|
+
minver = null;
|
|
378341
|
+
for (let i2 = 0;i2 < range2.set.length; ++i2) {
|
|
378342
|
+
const comparators = range2.set[i2];
|
|
378343
|
+
let setMin = null;
|
|
378344
|
+
comparators.forEach((comparator) => {
|
|
378345
|
+
const compver = new SemVer(comparator.semver.version);
|
|
378346
|
+
switch (comparator.operator) {
|
|
378347
|
+
case ">":
|
|
378348
|
+
if (compver.prerelease.length === 0) {
|
|
378349
|
+
compver.patch++;
|
|
378350
|
+
} else {
|
|
378351
|
+
compver.prerelease.push(0);
|
|
378352
|
+
}
|
|
378353
|
+
compver.raw = compver.format();
|
|
378354
|
+
case "":
|
|
378355
|
+
case ">=":
|
|
378356
|
+
if (!setMin || gt3(compver, setMin)) {
|
|
378357
|
+
setMin = compver;
|
|
378358
|
+
}
|
|
378359
|
+
break;
|
|
378360
|
+
case "<":
|
|
378361
|
+
case "<=":
|
|
378362
|
+
break;
|
|
378363
|
+
default:
|
|
378364
|
+
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
378365
|
+
}
|
|
378366
|
+
});
|
|
378367
|
+
if (setMin && (!minver || gt3(minver, setMin))) {
|
|
378368
|
+
minver = setMin;
|
|
378369
|
+
}
|
|
378370
|
+
}
|
|
378371
|
+
if (minver && range2.test(minver)) {
|
|
378372
|
+
return minver;
|
|
378373
|
+
}
|
|
378374
|
+
return null;
|
|
378375
|
+
};
|
|
378376
|
+
module.exports = minVersion;
|
|
378377
|
+
});
|
|
378378
|
+
|
|
378379
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/valid.js
|
|
378380
|
+
var require_valid2 = __commonJS((exports, module) => {
|
|
378381
|
+
var Range = require_range3();
|
|
378382
|
+
var validRange = (range2, options) => {
|
|
378383
|
+
try {
|
|
378384
|
+
return new Range(range2, options).range || "*";
|
|
378385
|
+
} catch (er3) {
|
|
378386
|
+
return null;
|
|
378387
|
+
}
|
|
378388
|
+
};
|
|
378389
|
+
module.exports = validRange;
|
|
378390
|
+
});
|
|
378391
|
+
|
|
378392
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/outside.js
|
|
378393
|
+
var require_outside = __commonJS((exports, module) => {
|
|
378394
|
+
var SemVer = require_semver2();
|
|
378395
|
+
var Comparator = require_comparator();
|
|
378396
|
+
var { ANY } = Comparator;
|
|
378397
|
+
var Range = require_range3();
|
|
378398
|
+
var satisfies = require_satisfies();
|
|
378399
|
+
var gt3 = require_gt();
|
|
378400
|
+
var lt3 = require_lt();
|
|
378401
|
+
var lte2 = require_lte();
|
|
378402
|
+
var gte2 = require_gte();
|
|
378403
|
+
var outside = (version, range2, hilo, options) => {
|
|
378404
|
+
version = new SemVer(version, options);
|
|
378405
|
+
range2 = new Range(range2, options);
|
|
378406
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
378407
|
+
switch (hilo) {
|
|
378408
|
+
case ">":
|
|
378409
|
+
gtfn = gt3;
|
|
378410
|
+
ltefn = lte2;
|
|
378411
|
+
ltfn = lt3;
|
|
378412
|
+
comp = ">";
|
|
378413
|
+
ecomp = ">=";
|
|
378414
|
+
break;
|
|
378415
|
+
case "<":
|
|
378416
|
+
gtfn = lt3;
|
|
378417
|
+
ltefn = gte2;
|
|
378418
|
+
ltfn = gt3;
|
|
378419
|
+
comp = "<";
|
|
378420
|
+
ecomp = "<=";
|
|
378421
|
+
break;
|
|
378422
|
+
default:
|
|
378423
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
378424
|
+
}
|
|
378425
|
+
if (satisfies(version, range2, options)) {
|
|
378426
|
+
return false;
|
|
378427
|
+
}
|
|
378428
|
+
for (let i2 = 0;i2 < range2.set.length; ++i2) {
|
|
378429
|
+
const comparators = range2.set[i2];
|
|
378430
|
+
let high = null;
|
|
378431
|
+
let low = null;
|
|
378432
|
+
comparators.forEach((comparator) => {
|
|
378433
|
+
if (comparator.semver === ANY) {
|
|
378434
|
+
comparator = new Comparator(">=0.0.0");
|
|
378435
|
+
}
|
|
378436
|
+
high = high || comparator;
|
|
378437
|
+
low = low || comparator;
|
|
378438
|
+
if (gtfn(comparator.semver, high.semver, options)) {
|
|
378439
|
+
high = comparator;
|
|
378440
|
+
} else if (ltfn(comparator.semver, low.semver, options)) {
|
|
378441
|
+
low = comparator;
|
|
378442
|
+
}
|
|
378443
|
+
});
|
|
378444
|
+
if (high.operator === comp || high.operator === ecomp) {
|
|
378445
|
+
return false;
|
|
378446
|
+
}
|
|
378447
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) {
|
|
378448
|
+
return false;
|
|
378449
|
+
} else if (low.operator === ecomp && ltfn(version, low.semver)) {
|
|
378450
|
+
return false;
|
|
378451
|
+
}
|
|
378452
|
+
}
|
|
378453
|
+
return true;
|
|
378454
|
+
};
|
|
378455
|
+
module.exports = outside;
|
|
378456
|
+
});
|
|
378457
|
+
|
|
378458
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/gtr.js
|
|
378459
|
+
var require_gtr = __commonJS((exports, module) => {
|
|
378460
|
+
var outside = require_outside();
|
|
378461
|
+
var gtr = (version, range2, options) => outside(version, range2, ">", options);
|
|
378462
|
+
module.exports = gtr;
|
|
378463
|
+
});
|
|
378464
|
+
|
|
378465
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/ltr.js
|
|
378466
|
+
var require_ltr = __commonJS((exports, module) => {
|
|
378467
|
+
var outside = require_outside();
|
|
378468
|
+
var ltr = (version, range2, options) => outside(version, range2, "<", options);
|
|
378469
|
+
module.exports = ltr;
|
|
378470
|
+
});
|
|
378471
|
+
|
|
378472
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/intersects.js
|
|
378473
|
+
var require_intersects = __commonJS((exports, module) => {
|
|
378474
|
+
var Range = require_range3();
|
|
378475
|
+
var intersects = (r1, r2, options) => {
|
|
378476
|
+
r1 = new Range(r1, options);
|
|
378477
|
+
r2 = new Range(r2, options);
|
|
378478
|
+
return r1.intersects(r2, options);
|
|
378479
|
+
};
|
|
378480
|
+
module.exports = intersects;
|
|
378481
|
+
});
|
|
378482
|
+
|
|
378483
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/simplify.js
|
|
378484
|
+
var require_simplify = __commonJS((exports, module) => {
|
|
378485
|
+
var satisfies = require_satisfies();
|
|
378486
|
+
var compare = require_compare();
|
|
378487
|
+
module.exports = (versions, range2, options) => {
|
|
378488
|
+
const set = [];
|
|
378489
|
+
let first = null;
|
|
378490
|
+
let prev = null;
|
|
378491
|
+
const v2 = versions.sort((a2, b2) => compare(a2, b2, options));
|
|
378492
|
+
for (const version of v2) {
|
|
378493
|
+
const included = satisfies(version, range2, options);
|
|
378494
|
+
if (included) {
|
|
378495
|
+
prev = version;
|
|
378496
|
+
if (!first) {
|
|
378497
|
+
first = version;
|
|
378498
|
+
}
|
|
378499
|
+
} else {
|
|
378500
|
+
if (prev) {
|
|
378501
|
+
set.push([first, prev]);
|
|
378502
|
+
}
|
|
378503
|
+
prev = null;
|
|
378504
|
+
first = null;
|
|
378505
|
+
}
|
|
378506
|
+
}
|
|
378507
|
+
if (first) {
|
|
378508
|
+
set.push([first, null]);
|
|
378509
|
+
}
|
|
378510
|
+
const ranges = [];
|
|
378511
|
+
for (const [min, max] of set) {
|
|
378512
|
+
if (min === max) {
|
|
378513
|
+
ranges.push(min);
|
|
378514
|
+
} else if (!max && min === v2[0]) {
|
|
378515
|
+
ranges.push("*");
|
|
378516
|
+
} else if (!max) {
|
|
378517
|
+
ranges.push(`>=${min}`);
|
|
378518
|
+
} else if (min === v2[0]) {
|
|
378519
|
+
ranges.push(`<=${max}`);
|
|
378520
|
+
} else {
|
|
378521
|
+
ranges.push(`${min} - ${max}`);
|
|
378522
|
+
}
|
|
378523
|
+
}
|
|
378524
|
+
const simplified = ranges.join(" || ");
|
|
378525
|
+
const original = typeof range2.raw === "string" ? range2.raw : String(range2);
|
|
378526
|
+
return simplified.length < original.length ? simplified : range2;
|
|
378527
|
+
};
|
|
378528
|
+
});
|
|
378529
|
+
|
|
378530
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/subset.js
|
|
378531
|
+
var require_subset = __commonJS((exports, module) => {
|
|
378532
|
+
var Range = require_range3();
|
|
378533
|
+
var Comparator = require_comparator();
|
|
378534
|
+
var { ANY } = Comparator;
|
|
378535
|
+
var satisfies = require_satisfies();
|
|
378536
|
+
var compare = require_compare();
|
|
378537
|
+
var subset = (sub, dom, options = {}) => {
|
|
378538
|
+
if (sub === dom) {
|
|
378539
|
+
return true;
|
|
378540
|
+
}
|
|
378541
|
+
sub = new Range(sub, options);
|
|
378542
|
+
dom = new Range(dom, options);
|
|
378543
|
+
let sawNonNull = false;
|
|
378544
|
+
OUTER:
|
|
378545
|
+
for (const simpleSub of sub.set) {
|
|
378546
|
+
for (const simpleDom of dom.set) {
|
|
378547
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
378548
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
378549
|
+
if (isSub) {
|
|
378550
|
+
continue OUTER;
|
|
378551
|
+
}
|
|
378552
|
+
}
|
|
378553
|
+
if (sawNonNull) {
|
|
378554
|
+
return false;
|
|
378555
|
+
}
|
|
378556
|
+
}
|
|
378557
|
+
return true;
|
|
378558
|
+
};
|
|
378559
|
+
var minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
378560
|
+
var minimumVersion = [new Comparator(">=0.0.0")];
|
|
378561
|
+
var simpleSubset = (sub, dom, options) => {
|
|
378562
|
+
if (sub === dom) {
|
|
378563
|
+
return true;
|
|
378564
|
+
}
|
|
378565
|
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
378566
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
378567
|
+
return true;
|
|
378568
|
+
} else if (options.includePrerelease) {
|
|
378569
|
+
sub = minimumVersionWithPreRelease;
|
|
378570
|
+
} else {
|
|
378571
|
+
sub = minimumVersion;
|
|
378572
|
+
}
|
|
378573
|
+
}
|
|
378574
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
378575
|
+
if (options.includePrerelease) {
|
|
378576
|
+
return true;
|
|
378577
|
+
} else {
|
|
378578
|
+
dom = minimumVersion;
|
|
378579
|
+
}
|
|
378580
|
+
}
|
|
378581
|
+
const eqSet = new Set;
|
|
378582
|
+
let gt3, lt3;
|
|
378583
|
+
for (const c4 of sub) {
|
|
378584
|
+
if (c4.operator === ">" || c4.operator === ">=") {
|
|
378585
|
+
gt3 = higherGT(gt3, c4, options);
|
|
378586
|
+
} else if (c4.operator === "<" || c4.operator === "<=") {
|
|
378587
|
+
lt3 = lowerLT(lt3, c4, options);
|
|
378588
|
+
} else {
|
|
378589
|
+
eqSet.add(c4.semver);
|
|
378590
|
+
}
|
|
378591
|
+
}
|
|
378592
|
+
if (eqSet.size > 1) {
|
|
378593
|
+
return null;
|
|
378594
|
+
}
|
|
378595
|
+
let gtltComp;
|
|
378596
|
+
if (gt3 && lt3) {
|
|
378597
|
+
gtltComp = compare(gt3.semver, lt3.semver, options);
|
|
378598
|
+
if (gtltComp > 0) {
|
|
378599
|
+
return null;
|
|
378600
|
+
} else if (gtltComp === 0 && (gt3.operator !== ">=" || lt3.operator !== "<=")) {
|
|
378601
|
+
return null;
|
|
378602
|
+
}
|
|
378603
|
+
}
|
|
378604
|
+
for (const eq4 of eqSet) {
|
|
378605
|
+
if (gt3 && !satisfies(eq4, String(gt3), options)) {
|
|
378606
|
+
return null;
|
|
378607
|
+
}
|
|
378608
|
+
if (lt3 && !satisfies(eq4, String(lt3), options)) {
|
|
378609
|
+
return null;
|
|
378610
|
+
}
|
|
378611
|
+
for (const c4 of dom) {
|
|
378612
|
+
if (!satisfies(eq4, String(c4), options)) {
|
|
378613
|
+
return false;
|
|
378614
|
+
}
|
|
378615
|
+
}
|
|
378616
|
+
return true;
|
|
378617
|
+
}
|
|
378618
|
+
let higher, lower;
|
|
378619
|
+
let hasDomLT, hasDomGT;
|
|
378620
|
+
let needDomLTPre = lt3 && !options.includePrerelease && lt3.semver.prerelease.length ? lt3.semver : false;
|
|
378621
|
+
let needDomGTPre = gt3 && !options.includePrerelease && gt3.semver.prerelease.length ? gt3.semver : false;
|
|
378622
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt3.operator === "<" && needDomLTPre.prerelease[0] === 0) {
|
|
378623
|
+
needDomLTPre = false;
|
|
378624
|
+
}
|
|
378625
|
+
for (const c4 of dom) {
|
|
378626
|
+
hasDomGT = hasDomGT || c4.operator === ">" || c4.operator === ">=";
|
|
378627
|
+
hasDomLT = hasDomLT || c4.operator === "<" || c4.operator === "<=";
|
|
378628
|
+
if (gt3) {
|
|
378629
|
+
if (needDomGTPre) {
|
|
378630
|
+
if (c4.semver.prerelease && c4.semver.prerelease.length && c4.semver.major === needDomGTPre.major && c4.semver.minor === needDomGTPre.minor && c4.semver.patch === needDomGTPre.patch) {
|
|
378631
|
+
needDomGTPre = false;
|
|
378632
|
+
}
|
|
378633
|
+
}
|
|
378634
|
+
if (c4.operator === ">" || c4.operator === ">=") {
|
|
378635
|
+
higher = higherGT(gt3, c4, options);
|
|
378636
|
+
if (higher === c4 && higher !== gt3) {
|
|
378637
|
+
return false;
|
|
378638
|
+
}
|
|
378639
|
+
} else if (gt3.operator === ">=" && !satisfies(gt3.semver, String(c4), options)) {
|
|
378640
|
+
return false;
|
|
378641
|
+
}
|
|
378642
|
+
}
|
|
378643
|
+
if (lt3) {
|
|
378644
|
+
if (needDomLTPre) {
|
|
378645
|
+
if (c4.semver.prerelease && c4.semver.prerelease.length && c4.semver.major === needDomLTPre.major && c4.semver.minor === needDomLTPre.minor && c4.semver.patch === needDomLTPre.patch) {
|
|
378646
|
+
needDomLTPre = false;
|
|
378647
|
+
}
|
|
378648
|
+
}
|
|
378649
|
+
if (c4.operator === "<" || c4.operator === "<=") {
|
|
378650
|
+
lower = lowerLT(lt3, c4, options);
|
|
378651
|
+
if (lower === c4 && lower !== lt3) {
|
|
378652
|
+
return false;
|
|
378653
|
+
}
|
|
378654
|
+
} else if (lt3.operator === "<=" && !satisfies(lt3.semver, String(c4), options)) {
|
|
378655
|
+
return false;
|
|
378656
|
+
}
|
|
378657
|
+
}
|
|
378658
|
+
if (!c4.operator && (lt3 || gt3) && gtltComp !== 0) {
|
|
378659
|
+
return false;
|
|
378660
|
+
}
|
|
378661
|
+
}
|
|
378662
|
+
if (gt3 && hasDomLT && !lt3 && gtltComp !== 0) {
|
|
378663
|
+
return false;
|
|
378664
|
+
}
|
|
378665
|
+
if (lt3 && hasDomGT && !gt3 && gtltComp !== 0) {
|
|
378666
|
+
return false;
|
|
378667
|
+
}
|
|
378668
|
+
if (needDomGTPre || needDomLTPre) {
|
|
378669
|
+
return false;
|
|
378670
|
+
}
|
|
378671
|
+
return true;
|
|
378672
|
+
};
|
|
378673
|
+
var higherGT = (a2, b2, options) => {
|
|
378674
|
+
if (!a2) {
|
|
378675
|
+
return b2;
|
|
378676
|
+
}
|
|
378677
|
+
const comp = compare(a2.semver, b2.semver, options);
|
|
378678
|
+
return comp > 0 ? a2 : comp < 0 ? b2 : b2.operator === ">" && a2.operator === ">=" ? b2 : a2;
|
|
378679
|
+
};
|
|
378680
|
+
var lowerLT = (a2, b2, options) => {
|
|
378681
|
+
if (!a2) {
|
|
378682
|
+
return b2;
|
|
378683
|
+
}
|
|
378684
|
+
const comp = compare(a2.semver, b2.semver, options);
|
|
378685
|
+
return comp < 0 ? a2 : comp > 0 ? b2 : b2.operator === "<" && a2.operator === "<=" ? b2 : a2;
|
|
378686
|
+
};
|
|
378687
|
+
module.exports = subset;
|
|
378688
|
+
});
|
|
378689
|
+
|
|
378690
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/index.js
|
|
378691
|
+
var require_semver3 = __commonJS((exports, module) => {
|
|
378692
|
+
var internalRe = require_re();
|
|
378693
|
+
var constants7 = require_constants4();
|
|
378694
|
+
var SemVer = require_semver2();
|
|
378695
|
+
var identifiers = require_identifiers();
|
|
378696
|
+
var parse5 = require_parse6();
|
|
378697
|
+
var valid = require_valid();
|
|
378698
|
+
var clean = require_clean();
|
|
378699
|
+
var inc = require_inc();
|
|
378700
|
+
var diff3 = require_diff();
|
|
378701
|
+
var major2 = require_major();
|
|
378702
|
+
var minor = require_minor();
|
|
378703
|
+
var patch = require_patch();
|
|
378704
|
+
var prerelease = require_prerelease();
|
|
378705
|
+
var compare = require_compare();
|
|
378706
|
+
var rcompare = require_rcompare();
|
|
378707
|
+
var compareLoose = require_compare_loose();
|
|
378708
|
+
var compareBuild = require_compare_build();
|
|
378709
|
+
var sort = require_sort();
|
|
378710
|
+
var rsort = require_rsort();
|
|
378711
|
+
var gt3 = require_gt();
|
|
378712
|
+
var lt3 = require_lt();
|
|
378713
|
+
var eq4 = require_eq();
|
|
378714
|
+
var neq = require_neq();
|
|
378715
|
+
var gte2 = require_gte();
|
|
378716
|
+
var lte2 = require_lte();
|
|
378717
|
+
var cmp = require_cmp();
|
|
378718
|
+
var coerce2 = require_coerce();
|
|
378719
|
+
var Comparator = require_comparator();
|
|
378720
|
+
var Range = require_range3();
|
|
378721
|
+
var satisfies = require_satisfies();
|
|
378722
|
+
var toComparators = require_to_comparators();
|
|
378723
|
+
var maxSatisfying = require_max_satisfying();
|
|
378724
|
+
var minSatisfying = require_min_satisfying();
|
|
378725
|
+
var minVersion = require_min_version();
|
|
378726
|
+
var validRange = require_valid2();
|
|
378727
|
+
var outside = require_outside();
|
|
378728
|
+
var gtr = require_gtr();
|
|
378729
|
+
var ltr = require_ltr();
|
|
378730
|
+
var intersects = require_intersects();
|
|
378731
|
+
var simplifyRange = require_simplify();
|
|
378732
|
+
var subset = require_subset();
|
|
378733
|
+
module.exports = {
|
|
378734
|
+
parse: parse5,
|
|
378735
|
+
valid,
|
|
378736
|
+
clean,
|
|
378737
|
+
inc,
|
|
378738
|
+
diff: diff3,
|
|
378739
|
+
major: major2,
|
|
378740
|
+
minor,
|
|
378741
|
+
patch,
|
|
378742
|
+
prerelease,
|
|
378743
|
+
compare,
|
|
378744
|
+
rcompare,
|
|
378745
|
+
compareLoose,
|
|
378746
|
+
compareBuild,
|
|
378747
|
+
sort,
|
|
378748
|
+
rsort,
|
|
378749
|
+
gt: gt3,
|
|
378750
|
+
lt: lt3,
|
|
378751
|
+
eq: eq4,
|
|
378752
|
+
neq,
|
|
378753
|
+
gte: gte2,
|
|
378754
|
+
lte: lte2,
|
|
378755
|
+
cmp,
|
|
378756
|
+
coerce: coerce2,
|
|
378757
|
+
Comparator,
|
|
378758
|
+
Range,
|
|
378759
|
+
satisfies,
|
|
378760
|
+
toComparators,
|
|
378761
|
+
maxSatisfying,
|
|
378762
|
+
minSatisfying,
|
|
378763
|
+
minVersion,
|
|
378764
|
+
validRange,
|
|
378765
|
+
outside,
|
|
378766
|
+
gtr,
|
|
378767
|
+
ltr,
|
|
378768
|
+
intersects,
|
|
378769
|
+
simplifyRange,
|
|
378770
|
+
subset,
|
|
378771
|
+
SemVer,
|
|
378772
|
+
re: internalRe.re,
|
|
378773
|
+
src: internalRe.src,
|
|
378774
|
+
tokens: internalRe.t,
|
|
378775
|
+
SEMVER_SPEC_VERSION: constants7.SEMVER_SPEC_VERSION,
|
|
378776
|
+
RELEASE_TYPES: constants7.RELEASE_TYPES,
|
|
378777
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
378778
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
378779
|
+
};
|
|
378780
|
+
});
|
|
378781
|
+
|
|
378782
|
+
// src/utils/runtime-version-check.ts
|
|
378783
|
+
import { readFileSync as readFileSync9, existsSync as existsSync9 } from "fs";
|
|
377002
378784
|
import { join as join10 } from "path";
|
|
378785
|
+
function getInstalledRuntimeVersion(agentRoot) {
|
|
378786
|
+
try {
|
|
378787
|
+
const runtimePackagePath = join10(agentRoot, "node_modules", "@botpress", "runtime", "package.json");
|
|
378788
|
+
if (!existsSync9(runtimePackagePath)) {
|
|
378789
|
+
return null;
|
|
378790
|
+
}
|
|
378791
|
+
const packageJson = JSON.parse(readFileSync9(runtimePackagePath, "utf-8"));
|
|
378792
|
+
return packageJson.version;
|
|
378793
|
+
} catch {
|
|
378794
|
+
return null;
|
|
378795
|
+
}
|
|
378796
|
+
}
|
|
378797
|
+
function checkRuntimeVersion(agentRoot) {
|
|
378798
|
+
const expectedVersion = EXPECTED_RUNTIME_VERSION;
|
|
378799
|
+
const installedVersion = getInstalledRuntimeVersion(agentRoot);
|
|
378800
|
+
if (expectedVersion === "BUILD_TIME_REPLACEMENT" || installedVersion === null) {
|
|
378801
|
+
return;
|
|
378802
|
+
}
|
|
378803
|
+
const expected = semver.parse(expectedVersion);
|
|
378804
|
+
const installed = semver.parse(installedVersion);
|
|
378805
|
+
if (!expected || !installed) {
|
|
378806
|
+
return;
|
|
378807
|
+
}
|
|
378808
|
+
if (semver.lt(installed, expected)) {
|
|
378809
|
+
console.error(source_default.red.bold(`
|
|
378810
|
+
\u2717 Runtime Version Mismatch - UPGRADE REQUIRED`));
|
|
378811
|
+
console.error(source_default.red(` Your project is using @botpress/runtime v${installedVersion}`));
|
|
378812
|
+
console.error(source_default.red(` This CLI requires @botpress/runtime v${expectedVersion} or higher
|
|
378813
|
+
`));
|
|
378814
|
+
console.error(source_default.yellow(" To fix this, update your package.json:"));
|
|
378815
|
+
console.error(source_default.white(` "@botpress/runtime": "^${expectedVersion}"
|
|
378816
|
+
`));
|
|
378817
|
+
console.error(source_default.yellow(" Then run:"));
|
|
378818
|
+
console.error(source_default.white(` bun install
|
|
378819
|
+
`));
|
|
378820
|
+
process.exit(1);
|
|
378821
|
+
}
|
|
378822
|
+
if (semver.gt(installed, expected)) {
|
|
378823
|
+
console.warn(source_default.yellow.bold(`
|
|
378824
|
+
\u26A0 Runtime Version Mismatch - UPDATE RECOMMENDED`));
|
|
378825
|
+
console.warn(source_default.yellow(` Your project is using @botpress/runtime v${installedVersion}`));
|
|
378826
|
+
console.warn(source_default.yellow(` This CLI was built for @botpress/runtime v${expectedVersion}
|
|
378827
|
+
`));
|
|
378828
|
+
console.warn(source_default.dim(" Consider upgrading your CLI to the latest version:"));
|
|
378829
|
+
console.warn(source_default.dim(` adk self-upgrade
|
|
378830
|
+
`));
|
|
378831
|
+
console.warn(source_default.dim(" Or downgrade your runtime to match the CLI:"));
|
|
378832
|
+
console.warn(source_default.dim(` "@botpress/runtime": "^${expectedVersion}"
|
|
378833
|
+
`));
|
|
378834
|
+
}
|
|
378835
|
+
}
|
|
378836
|
+
var semver, EXPECTED_RUNTIME_VERSION = "1.3.1";
|
|
378837
|
+
var init_runtime_version_check = __esm(() => {
|
|
378838
|
+
init_source();
|
|
378839
|
+
semver = __toESM(require_semver3(), 1);
|
|
378840
|
+
});
|
|
378841
|
+
|
|
378842
|
+
// src/utils/trace-reader.ts
|
|
378843
|
+
import { existsSync as existsSync10, readFileSync as readFileSync10 } from "fs";
|
|
378844
|
+
import { join as join11 } from "path";
|
|
377003
378845
|
import { Transform as Transform3 } from "stream";
|
|
377004
378846
|
|
|
377005
378847
|
class TraceReader {
|
|
@@ -377008,10 +378850,10 @@ class TraceReader {
|
|
|
377008
378850
|
indexDir;
|
|
377009
378851
|
liveFile;
|
|
377010
378852
|
constructor(agentPath) {
|
|
377011
|
-
this.traceDir = agentPath ?
|
|
377012
|
-
this.byTraceDir =
|
|
377013
|
-
this.indexDir =
|
|
377014
|
-
this.liveFile =
|
|
378853
|
+
this.traceDir = agentPath ? join11(agentPath, ".adk", "bot", "traces") : process.env.TRACE_DIR ?? "traces";
|
|
378854
|
+
this.byTraceDir = join11(this.traceDir, "by-trace");
|
|
378855
|
+
this.indexDir = join11(this.traceDir, "index");
|
|
378856
|
+
this.liveFile = join11(this.traceDir, "live.ndjson");
|
|
377015
378857
|
}
|
|
377016
378858
|
async getTraceByWorkflowId(workflowId) {
|
|
377017
378859
|
return this.getTraceByAttribute("workflowId", workflowId);
|
|
@@ -377028,8 +378870,8 @@ class TraceReader {
|
|
|
377028
378870
|
];
|
|
377029
378871
|
if (indexedAttributes.includes(attributeName)) {
|
|
377030
378872
|
const indexFile2 = this.getIndexFile();
|
|
377031
|
-
if (
|
|
377032
|
-
const lines =
|
|
378873
|
+
if (existsSync10(indexFile2)) {
|
|
378874
|
+
const lines = readFileSync10(indexFile2, "utf-8").split(`
|
|
377033
378875
|
`).filter(Boolean);
|
|
377034
378876
|
for (let i2 = lines.length - 1;i2 >= 0; i2--) {
|
|
377035
378877
|
try {
|
|
@@ -377048,8 +378890,8 @@ class TraceReader {
|
|
|
377048
378890
|
}
|
|
377049
378891
|
} else {
|
|
377050
378892
|
const dayFile2 = this.getDayFile();
|
|
377051
|
-
if (
|
|
377052
|
-
const lines =
|
|
378893
|
+
if (existsSync10(dayFile2)) {
|
|
378894
|
+
const lines = readFileSync10(dayFile2, "utf-8").split(`
|
|
377053
378895
|
`).filter(Boolean);
|
|
377054
378896
|
for (let i2 = lines.length - 1;i2 >= 0; i2--) {
|
|
377055
378897
|
try {
|
|
@@ -377068,9 +378910,9 @@ class TraceReader {
|
|
|
377068
378910
|
}
|
|
377069
378911
|
}
|
|
377070
378912
|
for (const traceId of relatedTraceIds) {
|
|
377071
|
-
const traceFile =
|
|
377072
|
-
if (
|
|
377073
|
-
const traceLines =
|
|
378913
|
+
const traceFile = join11(this.byTraceDir, `${traceId}.ndjson`);
|
|
378914
|
+
if (existsSync10(traceFile)) {
|
|
378915
|
+
const traceLines = readFileSync10(traceFile, "utf-8").split(`
|
|
377074
378916
|
`).filter(Boolean);
|
|
377075
378917
|
for (const line of traceLines) {
|
|
377076
378918
|
try {
|
|
@@ -377083,9 +378925,9 @@ class TraceReader {
|
|
|
377083
378925
|
}
|
|
377084
378926
|
async getTraceById(traceId) {
|
|
377085
378927
|
const spans = [];
|
|
377086
|
-
const traceFile =
|
|
377087
|
-
if (
|
|
377088
|
-
const lines =
|
|
378928
|
+
const traceFile = join11(this.byTraceDir, `${traceId}.ndjson`);
|
|
378929
|
+
if (existsSync10(traceFile)) {
|
|
378930
|
+
const lines = readFileSync10(traceFile, "utf-8").split(`
|
|
377089
378931
|
`).filter(Boolean);
|
|
377090
378932
|
for (const line of lines) {
|
|
377091
378933
|
try {
|
|
@@ -377098,8 +378940,8 @@ class TraceReader {
|
|
|
377098
378940
|
async getRecentTraces(limit = 100) {
|
|
377099
378941
|
const spans = [];
|
|
377100
378942
|
const dayFile2 = this.getDayFile();
|
|
377101
|
-
if (
|
|
377102
|
-
const lines =
|
|
378943
|
+
if (existsSync10(dayFile2)) {
|
|
378944
|
+
const lines = readFileSync10(dayFile2, "utf-8").split(`
|
|
377103
378945
|
`).filter(Boolean);
|
|
377104
378946
|
const recentLines = lines.slice(-limit);
|
|
377105
378947
|
for (const line of recentLines) {
|
|
@@ -377113,8 +378955,8 @@ class TraceReader {
|
|
|
377113
378955
|
async getAllTodayTraces() {
|
|
377114
378956
|
const spans = [];
|
|
377115
378957
|
const dayFile2 = this.getDayFile();
|
|
377116
|
-
if (
|
|
377117
|
-
const lines =
|
|
378958
|
+
if (existsSync10(dayFile2)) {
|
|
378959
|
+
const lines = readFileSync10(dayFile2, "utf-8").split(`
|
|
377118
378960
|
`).filter(Boolean);
|
|
377119
378961
|
for (const line of lines) {
|
|
377120
378962
|
try {
|
|
@@ -377132,13 +378974,13 @@ class TraceReader {
|
|
|
377132
378974
|
callback();
|
|
377133
378975
|
}
|
|
377134
378976
|
});
|
|
377135
|
-
if (
|
|
378977
|
+
if (existsSync10(this.liveFile)) {
|
|
377136
378978
|
let lastSize = 0;
|
|
377137
378979
|
const watcher = setInterval(() => {
|
|
377138
378980
|
try {
|
|
377139
|
-
const stats =
|
|
378981
|
+
const stats = existsSync10(this.liveFile) ? __require("fs").statSync(this.liveFile) : null;
|
|
377140
378982
|
if (stats && stats.size > lastSize) {
|
|
377141
|
-
const newContent =
|
|
378983
|
+
const newContent = readFileSync10(this.liveFile, "utf-8");
|
|
377142
378984
|
const lines = newContent.split(`
|
|
377143
378985
|
`);
|
|
377144
378986
|
const newLines = lines.slice(Math.max(0, lines.length - 10));
|
|
@@ -377181,12 +379023,12 @@ class TraceReader {
|
|
|
377181
379023
|
|
|
377182
379024
|
`));
|
|
377183
379025
|
let id5 = 0;
|
|
377184
|
-
if (
|
|
379026
|
+
if (existsSync10(this.liveFile)) {
|
|
377185
379027
|
const stats = __require("fs").statSync(this.liveFile);
|
|
377186
379028
|
filePosition = stats.size;
|
|
377187
379029
|
}
|
|
377188
379030
|
watchTimer = setInterval(async () => {
|
|
377189
|
-
if (!
|
|
379031
|
+
if (!existsSync10(this.liveFile))
|
|
377190
379032
|
return;
|
|
377191
379033
|
try {
|
|
377192
379034
|
const stats = __require("fs").statSync(this.liveFile);
|
|
@@ -377259,11 +379101,11 @@ data: ${JSON.stringify({ type: "update", span: span2 })}
|
|
|
377259
379101
|
}
|
|
377260
379102
|
getDayFile(date = new Date) {
|
|
377261
379103
|
const dateStr = date.toISOString().slice(0, 10);
|
|
377262
|
-
return
|
|
379104
|
+
return join11(this.traceDir, `${dateStr}.ndjson`);
|
|
377263
379105
|
}
|
|
377264
379106
|
getIndexFile(date = new Date) {
|
|
377265
379107
|
const dateStr = date.toISOString().slice(0, 10);
|
|
377266
|
-
return
|
|
379108
|
+
return join11(this.indexDir, `${dateStr}.ndjson`);
|
|
377267
379109
|
}
|
|
377268
379110
|
}
|
|
377269
379111
|
var init_trace_reader = () => {};
|
|
@@ -380148,8 +381990,8 @@ var init_embedded_assets = __esm(() => {
|
|
|
380148
381990
|
|
|
380149
381991
|
// src/utils/ui-server.ts
|
|
380150
381992
|
var {serve } = globalThis.Bun;
|
|
380151
|
-
import { readFileSync as
|
|
380152
|
-
import { join as
|
|
381993
|
+
import { readFileSync as readFileSync11, existsSync as existsSync11, createReadStream as createReadStream3, statSync as statSync3, watch as watch3 } from "fs";
|
|
381994
|
+
import { join as join12, resolve as resolve4 } from "path";
|
|
380153
381995
|
import path39 from "path";
|
|
380154
381996
|
import { fileURLToPath as fileURLToPath7 } from "url";
|
|
380155
381997
|
import { createInterface } from "readline";
|
|
@@ -380209,9 +382051,9 @@ async function startUIServer(config) {
|
|
|
380209
382051
|
});
|
|
380210
382052
|
}
|
|
380211
382053
|
}
|
|
380212
|
-
const indexPath2 =
|
|
380213
|
-
if (
|
|
380214
|
-
return new Response(
|
|
382054
|
+
const indexPath2 = join12(uiDistPath, "index.html");
|
|
382055
|
+
if (existsSync11(indexPath2)) {
|
|
382056
|
+
return new Response(readFileSync11(indexPath2), {
|
|
380215
382057
|
headers: {
|
|
380216
382058
|
"Content-Type": "text/html",
|
|
380217
382059
|
...corsHeaders
|
|
@@ -380234,12 +382076,12 @@ async function startUIServer(config) {
|
|
|
380234
382076
|
});
|
|
380235
382077
|
}
|
|
380236
382078
|
}
|
|
380237
|
-
let filePath =
|
|
382079
|
+
let filePath = join12(uiDistPath, url3.pathname);
|
|
380238
382080
|
if (url3.pathname.startsWith("/assets/")) {
|
|
380239
|
-
filePath =
|
|
382081
|
+
filePath = join12(uiDistPath, url3.pathname);
|
|
380240
382082
|
}
|
|
380241
|
-
if (
|
|
380242
|
-
const file =
|
|
382083
|
+
if (existsSync11(filePath)) {
|
|
382084
|
+
const file = readFileSync11(filePath);
|
|
380243
382085
|
return new Response(file, {
|
|
380244
382086
|
headers: {
|
|
380245
382087
|
"Content-Type": getContentType(url3.pathname),
|
|
@@ -380258,9 +382100,9 @@ async function startUIServer(config) {
|
|
|
380258
382100
|
});
|
|
380259
382101
|
}
|
|
380260
382102
|
}
|
|
380261
|
-
const indexPath =
|
|
380262
|
-
if (
|
|
380263
|
-
return new Response(
|
|
382103
|
+
const indexPath = join12(uiDistPath, "index.html");
|
|
382104
|
+
if (existsSync11(indexPath)) {
|
|
382105
|
+
return new Response(readFileSync11(indexPath), {
|
|
380264
382106
|
headers: {
|
|
380265
382107
|
"Content-Type": "text/html",
|
|
380266
382108
|
...corsHeaders
|
|
@@ -380326,9 +382168,9 @@ async function handleApiRequest(pathname, req) {
|
|
|
380326
382168
|
adkVersion = packageJson.version;
|
|
380327
382169
|
} catch {
|
|
380328
382170
|
try {
|
|
380329
|
-
const adkPackagePath =
|
|
380330
|
-
if (
|
|
380331
|
-
const pkg = JSON.parse(
|
|
382171
|
+
const adkPackagePath = join12(process.cwd(), "node_modules/@botpress/adk/package.json");
|
|
382172
|
+
if (existsSync11(adkPackagePath)) {
|
|
382173
|
+
const pkg = JSON.parse(readFileSync11(adkPackagePath, "utf-8"));
|
|
380332
382174
|
adkVersion = pkg.version;
|
|
380333
382175
|
}
|
|
380334
382176
|
} catch {}
|
|
@@ -380415,21 +382257,21 @@ async function handleApiRequest(pathname, req) {
|
|
|
380415
382257
|
return new Response(JSON.stringify(todayTraces), { headers });
|
|
380416
382258
|
case "/api/agent":
|
|
380417
382259
|
if (!serverConfig.project) {
|
|
380418
|
-
const agentConfigPath =
|
|
380419
|
-
const agentJsonPath =
|
|
382260
|
+
const agentConfigPath = join12(serverConfig.agentPath, "agent.config.ts");
|
|
382261
|
+
const agentJsonPath = join12(serverConfig.agentPath, "agent.json");
|
|
380420
382262
|
let agentInfo = {
|
|
380421
382263
|
path: serverConfig.agentPath
|
|
380422
382264
|
};
|
|
380423
|
-
if (
|
|
380424
|
-
const configContent =
|
|
382265
|
+
if (existsSync11(agentConfigPath)) {
|
|
382266
|
+
const configContent = readFileSync11(agentConfigPath, "utf-8");
|
|
380425
382267
|
const nameMatch = configContent.match(/name:\s*['"`]([^'"`]+)['"`]/);
|
|
380426
382268
|
const versionMatch = configContent.match(/version:\s*['"`]([^'"`]+)['"`]/);
|
|
380427
382269
|
agentInfo.name = nameMatch?.[1] || "unknown";
|
|
380428
382270
|
agentInfo.version = versionMatch?.[1] || "0.0.0";
|
|
380429
382271
|
}
|
|
380430
|
-
if (
|
|
382272
|
+
if (existsSync11(agentJsonPath)) {
|
|
380431
382273
|
try {
|
|
380432
|
-
const agentJson = JSON.parse(
|
|
382274
|
+
const agentJson = JSON.parse(readFileSync11(agentJsonPath, "utf-8"));
|
|
380433
382275
|
agentInfo = { ...agentInfo, ...agentJson };
|
|
380434
382276
|
} catch {}
|
|
380435
382277
|
}
|
|
@@ -380515,7 +382357,7 @@ function streamLogs(logFilePath) {
|
|
|
380515
382357
|
`));
|
|
380516
382358
|
};
|
|
380517
382359
|
try {
|
|
380518
|
-
if (
|
|
382360
|
+
if (existsSync11(logFilePath)) {
|
|
380519
382361
|
const fileStream = createReadStream3(logFilePath, { encoding: "utf-8" });
|
|
380520
382362
|
const rl4 = createInterface({
|
|
380521
382363
|
input: fileStream,
|
|
@@ -380530,9 +382372,9 @@ function streamLogs(logFilePath) {
|
|
|
380530
382372
|
}
|
|
380531
382373
|
}
|
|
380532
382374
|
}
|
|
380533
|
-
let lastSize =
|
|
382375
|
+
let lastSize = existsSync11(logFilePath) ? statSync3(logFilePath).size : 0;
|
|
380534
382376
|
const watcher = watch3(logFilePath, async (eventType) => {
|
|
380535
|
-
if (eventType === "change" &&
|
|
382377
|
+
if (eventType === "change" && existsSync11(logFilePath)) {
|
|
380536
382378
|
const currentSize = statSync3(logFilePath).size;
|
|
380537
382379
|
if (currentSize > lastSize) {
|
|
380538
382380
|
const fileStream = createReadStream3(logFilePath, {
|
|
@@ -380730,20 +382572,20 @@ var init_debugger = __esm(() => {
|
|
|
380730
382572
|
});
|
|
380731
382573
|
|
|
380732
382574
|
// src/utils/inspector-pid-cache.ts
|
|
380733
|
-
import { existsSync as
|
|
380734
|
-
import { join as
|
|
382575
|
+
import { existsSync as existsSync12, readFileSync as readFileSync12, writeFileSync as writeFileSync5, mkdirSync as mkdirSync2 } from "fs";
|
|
382576
|
+
import { join as join13 } from "path";
|
|
380735
382577
|
function getCachePath(agentRoot) {
|
|
380736
|
-
const adkDir =
|
|
382578
|
+
const adkDir = join13(agentRoot, ".adk");
|
|
380737
382579
|
mkdirSync2(adkDir, { recursive: true });
|
|
380738
|
-
return
|
|
382580
|
+
return join13(adkDir, "inspector-pids.json");
|
|
380739
382581
|
}
|
|
380740
382582
|
function readCache2(agentRoot) {
|
|
380741
382583
|
const cachePath = getCachePath(agentRoot);
|
|
380742
|
-
if (!
|
|
382584
|
+
if (!existsSync12(cachePath)) {
|
|
380743
382585
|
return { pids: [] };
|
|
380744
382586
|
}
|
|
380745
382587
|
try {
|
|
380746
|
-
const content =
|
|
382588
|
+
const content = readFileSync12(cachePath, "utf-8");
|
|
380747
382589
|
return JSON.parse(content);
|
|
380748
382590
|
} catch {
|
|
380749
382591
|
return { pids: [] };
|
|
@@ -380798,6 +382640,7 @@ async function adkDev(port = "3000", options = {
|
|
|
380798
382640
|
}) {
|
|
380799
382641
|
await assertLoggedIn();
|
|
380800
382642
|
const agentRoot = await findAgentRootOrFail(process.cwd());
|
|
382643
|
+
checkRuntimeVersion(agentRoot);
|
|
380801
382644
|
const agentProject = await AgentProject.load(agentRoot, {
|
|
380802
382645
|
adkCommand: "adk-dev"
|
|
380803
382646
|
});
|
|
@@ -381440,6 +383283,7 @@ var init_adk_dev = __esm(async () => {
|
|
|
381440
383283
|
init_agent_root();
|
|
381441
383284
|
init_assert_logged_in();
|
|
381442
383285
|
init_CriticalError();
|
|
383286
|
+
init_runtime_version_check();
|
|
381443
383287
|
init_ui_server();
|
|
381444
383288
|
init_debugger();
|
|
381445
383289
|
init_inspector_pid_cache();
|
|
@@ -381469,6 +383313,7 @@ async function adkBuild(options = {}) {
|
|
|
381469
383313
|
try {
|
|
381470
383314
|
await assertLoggedIn();
|
|
381471
383315
|
const agentRoot = await findAgentRootOrFail(process.cwd());
|
|
383316
|
+
checkRuntimeVersion(agentRoot);
|
|
381472
383317
|
const project = await AgentProject.load(agentRoot, {
|
|
381473
383318
|
adkCommand: "adk-build"
|
|
381474
383319
|
});
|
|
@@ -381510,6 +383355,7 @@ var init_adk_build = __esm(async () => {
|
|
|
381510
383355
|
init_source();
|
|
381511
383356
|
init_agent_root();
|
|
381512
383357
|
init_assert_logged_in();
|
|
383358
|
+
init_runtime_version_check();
|
|
381513
383359
|
await init_assert_valid_project();
|
|
381514
383360
|
});
|
|
381515
383361
|
|
|
@@ -385393,7 +387239,7 @@ var encode4 = (num, buf) => {
|
|
|
385393
387239
|
buf[i2 - 1] = twosComp(byte);
|
|
385394
387240
|
}
|
|
385395
387241
|
}
|
|
385396
|
-
},
|
|
387242
|
+
}, parse6 = (buf) => {
|
|
385397
387243
|
const pre = buf[0];
|
|
385398
387244
|
const value2 = pre === 128 ? pos(buf.subarray(1, buf.length)) : pre === 255 ? twos(buf) : null;
|
|
385399
387245
|
if (value2 === null) {
|
|
@@ -385650,7 +387496,7 @@ var splitPrefix = (p, prefixSize) => {
|
|
|
385650
387496
|
}
|
|
385651
387497
|
}
|
|
385652
387498
|
return ret;
|
|
385653
|
-
}, decString = (buf, off, size) => buf.subarray(off, off + size).toString("utf8").replace(/\0.*/, ""), decDate = (buf, off, size) => numToDate(decNumber(buf, off, size)), numToDate = (num) => num === undefined ? undefined : new Date(num * 1000), decNumber = (buf, off, size) => Number(buf[off]) & 128 ?
|
|
387499
|
+
}, decString = (buf, off, size) => buf.subarray(off, off + size).toString("utf8").replace(/\0.*/, ""), decDate = (buf, off, size) => numToDate(decNumber(buf, off, size)), numToDate = (num) => num === undefined ? undefined : new Date(num * 1000), decNumber = (buf, off, size) => Number(buf[off]) & 128 ? parse6(buf.subarray(off, off + size)) : decSmallNumber(buf, off, size), nanUndef = (value2) => isNaN(value2) ? undefined : value2, decSmallNumber = (buf, off, size) => nanUndef(parseInt(buf.subarray(off, off + size).toString("utf8").replace(/\0.*$/, "").trim(), 8)), MAXNUM, encNumber = (buf, off, size, num) => num === undefined ? false : num > MAXNUM[size] || num < 0 ? (encode4(num, buf.subarray(off, off + size)), true) : (encSmallNumber(buf, off, size, num), false), encSmallNumber = (buf, off, size, num) => buf.write(octalString(num, size), off, size, "ascii"), octalString = (num, size) => padOctal(Math.floor(num).toString(8), size), padOctal = (str, size) => (str.length === size - 1 ? str : new Array(size - str.length - 1).join("0") + str + " ") + "\x00", encDate = (buf, off, size, date) => date === undefined ? false : encNumber(buf, off, size, date.getTime() / 1000), NULLS, encString = (buf, off, size, str) => str === undefined ? false : (buf.write(str + NULLS, off, size, "utf8"), str.length !== Buffer.byteLength(str) || str.length > size);
|
|
385654
387500
|
var init_header = __esm(() => {
|
|
385655
387501
|
init_types2();
|
|
385656
387502
|
MAXNUM = {
|
|
@@ -386427,7 +388273,7 @@ var stripTrailingSlashes = (str) => {
|
|
|
386427
388273
|
|
|
386428
388274
|
// ../../node_modules/.bun/tar@7.5.1/node_modules/tar/dist/esm/list.js
|
|
386429
388275
|
import fs28 from "fs";
|
|
386430
|
-
import { dirname as dirname2, parse as
|
|
388276
|
+
import { dirname as dirname2, parse as parse7 } from "path";
|
|
386431
388277
|
var onReadEntryFunction = (opt) => {
|
|
386432
388278
|
const onReadEntry = opt.onReadEntry;
|
|
386433
388279
|
opt.onReadEntry = onReadEntry ? (e6) => {
|
|
@@ -386438,7 +388284,7 @@ var onReadEntryFunction = (opt) => {
|
|
|
386438
388284
|
const map = new Map(files.map((f) => [stripTrailingSlashes(f), true]));
|
|
386439
388285
|
const filter5 = opt.filter;
|
|
386440
388286
|
const mapHas = (file, r = "") => {
|
|
386441
|
-
const root4 = r ||
|
|
388287
|
+
const root4 = r || parse7(file).root || ".";
|
|
386442
388288
|
let ret;
|
|
386443
388289
|
if (file === root4)
|
|
386444
388290
|
ret = false;
|
|
@@ -386484,12 +388330,12 @@ var onReadEntryFunction = (opt) => {
|
|
|
386484
388330
|
}
|
|
386485
388331
|
}
|
|
386486
388332
|
}, listFile = (opt, _files) => {
|
|
386487
|
-
const
|
|
388333
|
+
const parse8 = new Parser(opt);
|
|
386488
388334
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
386489
388335
|
const file = opt.file;
|
|
386490
388336
|
const p = new Promise((resolve5, reject) => {
|
|
386491
|
-
|
|
386492
|
-
|
|
388337
|
+
parse8.on("error", reject);
|
|
388338
|
+
parse8.on("end", resolve5);
|
|
386493
388339
|
fs28.stat(file, (er3, stat2) => {
|
|
386494
388340
|
if (er3) {
|
|
386495
388341
|
reject(er3);
|
|
@@ -386499,7 +388345,7 @@ var onReadEntryFunction = (opt) => {
|
|
|
386499
388345
|
size: stat2.size
|
|
386500
388346
|
});
|
|
386501
388347
|
stream5.on("error", reject);
|
|
386502
|
-
stream5.pipe(
|
|
388348
|
+
stream5.pipe(parse8);
|
|
386503
388349
|
}
|
|
386504
388350
|
});
|
|
386505
388351
|
});
|
|
@@ -386539,19 +388385,19 @@ var modeFix = (mode, isDir, portable) => {
|
|
|
386539
388385
|
|
|
386540
388386
|
// ../../node_modules/.bun/tar@7.5.1/node_modules/tar/dist/esm/strip-absolute-path.js
|
|
386541
388387
|
import { win32 as win322 } from "path";
|
|
386542
|
-
var isAbsolute2,
|
|
388388
|
+
var isAbsolute2, parse8, stripAbsolutePath = (path31) => {
|
|
386543
388389
|
let r = "";
|
|
386544
|
-
let parsed =
|
|
388390
|
+
let parsed = parse8(path31);
|
|
386545
388391
|
while (isAbsolute2(path31) || parsed.root) {
|
|
386546
388392
|
const root4 = path31.charAt(0) === "/" && path31.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
386547
388393
|
path31 = path31.slice(root4.length);
|
|
386548
388394
|
r += root4;
|
|
386549
|
-
parsed =
|
|
388395
|
+
parsed = parse8(path31);
|
|
386550
388396
|
}
|
|
386551
388397
|
return [r, path31];
|
|
386552
388398
|
};
|
|
386553
388399
|
var init_strip_absolute_path = __esm(() => {
|
|
386554
|
-
({ isAbsolute: isAbsolute2, parse:
|
|
388400
|
+
({ isAbsolute: isAbsolute2, parse: parse8 } = win322);
|
|
386555
388401
|
});
|
|
386556
388402
|
|
|
386557
388403
|
// ../../node_modules/.bun/tar@7.5.1/node_modules/tar/dist/esm/winchars.js
|
|
@@ -388295,7 +390141,7 @@ var init_normalize_unicode = __esm(() => {
|
|
|
388295
390141
|
});
|
|
388296
390142
|
|
|
388297
390143
|
// ../../node_modules/.bun/tar@7.5.1/node_modules/tar/dist/esm/path-reservations.js
|
|
388298
|
-
import { join as
|
|
390144
|
+
import { join as join15 } from "path";
|
|
388299
390145
|
|
|
388300
390146
|
class PathReservations {
|
|
388301
390147
|
#queues = new Map;
|
|
@@ -388303,7 +390149,7 @@ class PathReservations {
|
|
|
388303
390149
|
#running = new Set;
|
|
388304
390150
|
reserve(paths, fn3) {
|
|
388305
390151
|
paths = isWindows4 ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
388306
|
-
return stripTrailingSlashes(
|
|
390152
|
+
return stripTrailingSlashes(join15(normalizeUnicode(p))).toLowerCase();
|
|
388307
390153
|
});
|
|
388308
390154
|
const dirs = new Set(paths.map((path31) => getDirs(path31)).reduce((a2, b2) => a2.concat(b2)));
|
|
388309
390155
|
this.#reservations.set(fn3, { dirs, paths });
|
|
@@ -388408,7 +390254,7 @@ var platform6, isWindows4, getDirs = (path31) => {
|
|
|
388408
390254
|
const dirs = path31.split("/").slice(0, -1).reduce((set, path35) => {
|
|
388409
390255
|
const s2 = set[set.length - 1];
|
|
388410
390256
|
if (s2 !== undefined) {
|
|
388411
|
-
path35 =
|
|
390257
|
+
path35 = join15(s2, path35);
|
|
388412
390258
|
}
|
|
388413
390259
|
set.push(path35 || "/");
|
|
388414
390260
|
return set;
|
|
@@ -389363,7 +391209,7 @@ var init_esm16 = __esm(() => {
|
|
|
389363
391209
|
});
|
|
389364
391210
|
|
|
389365
391211
|
// ../../node_modules/.bun/adm-zip@0.5.16/node_modules/adm-zip/util/constants.js
|
|
389366
|
-
var
|
|
391212
|
+
var require_constants5 = __commonJS((exports, module) => {
|
|
389367
391213
|
module.exports = {
|
|
389368
391214
|
LOCHDR: 30,
|
|
389369
391215
|
LOCSIG: 67324752,
|
|
@@ -389534,7 +391380,7 @@ var require_errors = __commonJS((exports) => {
|
|
|
389534
391380
|
var require_utils6 = __commonJS((exports, module) => {
|
|
389535
391381
|
var fsystem = __require("fs");
|
|
389536
391382
|
var pth = __require("path");
|
|
389537
|
-
var Constants =
|
|
391383
|
+
var Constants = require_constants5();
|
|
389538
391384
|
var Errors2 = require_errors();
|
|
389539
391385
|
var isWin = typeof process === "object" && process.platform === "win32";
|
|
389540
391386
|
var is_Obj = (obj) => typeof obj === "object" && obj !== null;
|
|
@@ -389877,7 +391723,7 @@ var require_decoder = __commonJS((exports, module) => {
|
|
|
389877
391723
|
// ../../node_modules/.bun/adm-zip@0.5.16/node_modules/adm-zip/util/index.js
|
|
389878
391724
|
var require_util6 = __commonJS((exports, module) => {
|
|
389879
391725
|
module.exports = require_utils6();
|
|
389880
|
-
module.exports.Constants =
|
|
391726
|
+
module.exports.Constants = require_constants5();
|
|
389881
391727
|
module.exports.Errors = require_errors();
|
|
389882
391728
|
module.exports.FileAttr = require_fattr();
|
|
389883
391729
|
module.exports.decoder = require_decoder();
|
|
@@ -391659,8 +393505,8 @@ var exports_upgrade = {};
|
|
|
391659
393505
|
__export(exports_upgrade, {
|
|
391660
393506
|
adkSelfUpgrade: () => adkSelfUpgrade
|
|
391661
393507
|
});
|
|
391662
|
-
import { existsSync as
|
|
391663
|
-
import { join as
|
|
393508
|
+
import { existsSync as existsSync13, writeFileSync as writeFileSync7, chmodSync, renameSync, unlinkSync, readFileSync as readFileSync14, mkdirSync as mkdirSync5, rmdirSync } from "fs";
|
|
393509
|
+
import { join as join16 } from "path";
|
|
391664
393510
|
import { tmpdir } from "os";
|
|
391665
393511
|
import { execSync as execSync3 } from "child_process";
|
|
391666
393512
|
function getPlatformInfo() {
|
|
@@ -391706,17 +393552,17 @@ async function downloadBinary(version, target, extension) {
|
|
|
391706
393552
|
throw new Error(`Failed to download: ${response.status} ${response.statusText}`);
|
|
391707
393553
|
}
|
|
391708
393554
|
const buffer = Buffer.from(await response.arrayBuffer());
|
|
391709
|
-
const tmpDir =
|
|
393555
|
+
const tmpDir = join16(tmpdir(), `adk-upgrade-${Date.now()}`);
|
|
391710
393556
|
mkdirSync5(tmpDir, { recursive: true });
|
|
391711
|
-
const tarPath =
|
|
393557
|
+
const tarPath = join16(tmpDir, "adk.tar.gz");
|
|
391712
393558
|
writeFileSync7(tarPath, buffer);
|
|
391713
393559
|
extract2({
|
|
391714
393560
|
file: tarPath,
|
|
391715
393561
|
cwd: tmpDir,
|
|
391716
393562
|
sync: true
|
|
391717
393563
|
});
|
|
391718
|
-
const binaryPath =
|
|
391719
|
-
const binaryBuffer =
|
|
393564
|
+
const binaryPath = join16(tmpDir, fileName);
|
|
393565
|
+
const binaryBuffer = readFileSync14(binaryPath);
|
|
391720
393566
|
try {
|
|
391721
393567
|
unlinkSync(tarPath);
|
|
391722
393568
|
unlinkSync(binaryPath);
|
|
@@ -391754,7 +393600,7 @@ timeout /t 1 /nobreak >nul
|
|
|
391754
393600
|
move /y "${currentPath}.new" "${currentPath}"
|
|
391755
393601
|
del "%~f0"
|
|
391756
393602
|
`.trim();
|
|
391757
|
-
const batchPath =
|
|
393603
|
+
const batchPath = join16(tmpdir(), "adk-upgrade.bat");
|
|
391758
393604
|
writeFileSync7(batchPath, batchScript);
|
|
391759
393605
|
writeFileSync7(currentPath + ".new", newBinaryBuffer);
|
|
391760
393606
|
console.log("\u2705 Update downloaded!");
|
|
@@ -391769,7 +393615,7 @@ del "%~f0"
|
|
|
391769
393615
|
unlinkSync(backupPath);
|
|
391770
393616
|
console.log("\u2705 Successfully upgraded!");
|
|
391771
393617
|
} catch (error) {
|
|
391772
|
-
if (
|
|
393618
|
+
if (existsSync13(backupPath)) {
|
|
391773
393619
|
try {
|
|
391774
393620
|
renameSync(backupPath, currentPath);
|
|
391775
393621
|
} catch {}
|
|
@@ -392239,6 +394085,7 @@ async function adkChat() {
|
|
|
392239
394085
|
await assertLoggedIn();
|
|
392240
394086
|
await displayWorkspaceInfo(process.cwd());
|
|
392241
394087
|
const project = await AgentProject.load(process.cwd());
|
|
394088
|
+
checkRuntimeVersion(project.path);
|
|
392242
394089
|
const agentInfo = project.agentInfo;
|
|
392243
394090
|
if (!agentInfo?.devId) {
|
|
392244
394091
|
console.error(source_default.red("\u274C No devId found in agent.json"));
|
|
@@ -392267,6 +394114,7 @@ var init_adk_chat = __esm(() => {
|
|
|
392267
394114
|
init_dist11();
|
|
392268
394115
|
init_workspace_display();
|
|
392269
394116
|
init_assert_logged_in();
|
|
394117
|
+
init_runtime_version_check();
|
|
392270
394118
|
});
|
|
392271
394119
|
|
|
392272
394120
|
// src/commands/adk-assets.ts
|
|
@@ -392666,8 +394514,8 @@ var {
|
|
|
392666
394514
|
} = import__.default;
|
|
392667
394515
|
|
|
392668
394516
|
// src/cli.ts
|
|
392669
|
-
import { readFileSync as
|
|
392670
|
-
import { join as
|
|
394517
|
+
import { readFileSync as readFileSync15 } from "fs";
|
|
394518
|
+
import { join as join17, dirname as dirname3 } from "path";
|
|
392671
394519
|
import { fileURLToPath as fileURLToPath9 } from "url";
|
|
392672
394520
|
|
|
392673
394521
|
// src/utils/version-check.tsx
|
|
@@ -392858,7 +394706,7 @@ function formatHelp(cmd, version) {
|
|
|
392858
394706
|
// src/cli.ts
|
|
392859
394707
|
var __filename2 = fileURLToPath9(import.meta.url);
|
|
392860
394708
|
var __dirname5 = dirname3(__filename2);
|
|
392861
|
-
var CLI_VERSION = "1.5.
|
|
394709
|
+
var CLI_VERSION = "1.5.1";
|
|
392862
394710
|
program.name("adk").description("Botpress Agent Development Kit (ADK) - CLI for building AI agents").version(CLI_VERSION).option("--no-cache", "Disable caching for integration lookups").configureHelp({
|
|
392863
394711
|
formatHelp: () => formatHelp(program, CLI_VERSION)
|
|
392864
394712
|
});
|