@botpress/adk-cli 1.11.6 → 1.11.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CLAUDE.template.md +1260 -0
- package/dist/cli.js +136 -139
- package/dist/commands.json +2 -2
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -348574,7 +348574,7 @@ var init_internal = __esm(() => {
|
|
|
348574
348574
|
});
|
|
348575
348575
|
init_define_PACKAGE_VERSIONS = __esm2({
|
|
348576
348576
|
"<define:__PACKAGE_VERSIONS__>"() {
|
|
348577
|
-
define_PACKAGE_VERSIONS_default = { runtime: "1.11.
|
|
348577
|
+
define_PACKAGE_VERSIONS_default = { runtime: "1.11.8", adk: "1.11.8", sdk: "4.20.2", llmz: "0.0.33", zai: "2.5.0", cognitive: "0.2.0" };
|
|
348578
348578
|
}
|
|
348579
348579
|
});
|
|
348580
348580
|
init_asset = __esm2({
|
|
@@ -654980,7 +654980,7 @@ var init_library2 = __esm(() => {
|
|
|
654980
654980
|
});
|
|
654981
654981
|
init_define_PACKAGE_VERSIONS2 = __esm4({
|
|
654982
654982
|
"<define:__PACKAGE_VERSIONS__>"() {
|
|
654983
|
-
define_PACKAGE_VERSIONS_default2 = { runtime: "1.11.
|
|
654983
|
+
define_PACKAGE_VERSIONS_default2 = { runtime: "1.11.8", adk: "1.11.8", sdk: "4.20.2", llmz: "0.0.33", zai: "2.5.0", cognitive: "0.2.0" };
|
|
654984
654984
|
}
|
|
654985
654985
|
});
|
|
654986
654986
|
init_assets2 = __esm4({
|
|
@@ -696621,6 +696621,7 @@ import { EventEmitter as EventEmitter24 } from "events";
|
|
|
696621
696621
|
import path14 from "path";
|
|
696622
696622
|
import * as fs11 from "fs";
|
|
696623
696623
|
import * as path15 from "path";
|
|
696624
|
+
import { fileURLToPath as fileURLToPath7 } from "url";
|
|
696624
696625
|
import path16 from "path";
|
|
696625
696626
|
import crypto24 from "crypto";
|
|
696626
696627
|
import path17 from "path";
|
|
@@ -696649,14 +696650,14 @@ import { existsSync as existsSync52 } from "fs";
|
|
|
696649
696650
|
import crypto42 from "crypto";
|
|
696650
696651
|
import path332 from "path";
|
|
696651
696652
|
import fs16 from "fs/promises";
|
|
696652
|
-
import { readFileSync as
|
|
696653
|
+
import { readFileSync as readFileSync22 } from "fs";
|
|
696653
696654
|
import { join as join72 } from "path";
|
|
696654
696655
|
import { watch as watch2, readdirSync as readdirSync22 } from "fs";
|
|
696655
696656
|
import { EventEmitter as EventEmitter32 } from "events";
|
|
696656
696657
|
import { join as join82, relative as relative3 } from "path";
|
|
696657
696658
|
import { existsSync as existsSync7 } from "fs";
|
|
696658
696659
|
import path342 from "path";
|
|
696659
|
-
import { readFileSync as
|
|
696660
|
+
import { readFileSync as readFileSync32 } from "fs";
|
|
696660
696661
|
import { join as join9 } from "path";
|
|
696661
696662
|
|
|
696662
696663
|
class ValidationErrors {
|
|
@@ -699776,6 +699777,7 @@ class AgentProjectGenerator {
|
|
|
699776
699777
|
this.createAgentJson();
|
|
699777
699778
|
this.createGitIgnore();
|
|
699778
699779
|
await this.createReadme();
|
|
699780
|
+
this.createClaudeMd();
|
|
699779
699781
|
await this.createSourceStructure();
|
|
699780
699782
|
}
|
|
699781
699783
|
ensureEmptyDirectory() {
|
|
@@ -699800,7 +699802,7 @@ class AgentProjectGenerator {
|
|
|
699800
699802
|
deploy: "adk deploy"
|
|
699801
699803
|
},
|
|
699802
699804
|
dependencies: {
|
|
699803
|
-
"@botpress/runtime": "^1.11.
|
|
699805
|
+
"@botpress/runtime": "^1.11.8"
|
|
699804
699806
|
},
|
|
699805
699807
|
devDependencies: {
|
|
699806
699808
|
typescript: "^5.9.3"
|
|
@@ -699963,6 +699965,11 @@ A Botpress Agent built with the ADK.
|
|
|
699963
699965
|
`;
|
|
699964
699966
|
await this.writeFormattedFile("README.md", readme);
|
|
699965
699967
|
}
|
|
699968
|
+
createClaudeMd() {
|
|
699969
|
+
const templatePath = path15.join(__dirname2, "CLAUDE.template.md");
|
|
699970
|
+
const claudeMd = fs11.readFileSync(templatePath, "utf-8");
|
|
699971
|
+
this.writeFile("CLAUDE.md", claudeMd);
|
|
699972
|
+
}
|
|
699966
699973
|
async createSourceStructure() {
|
|
699967
699974
|
const srcPath = path15.join(this.projectPath, "src");
|
|
699968
699975
|
fs11.mkdirSync(srcPath);
|
|
@@ -702021,13 +702028,8 @@ configuration: {
|
|
|
702021
702028
|
"check:type": "tsc --noEmit"
|
|
702022
702029
|
},
|
|
702023
702030
|
private: true,
|
|
702024
|
-
dependencies: {
|
|
702025
|
-
"@botpress/client": "1.24.2",
|
|
702026
|
-
"@botpress/sdk": "4.15.7",
|
|
702027
|
-
"@botpress/runtime": "workspace:*"
|
|
702028
|
-
},
|
|
702031
|
+
dependencies: {},
|
|
702029
702032
|
devDependencies: {
|
|
702030
|
-
"@types/node": "^22.16.4",
|
|
702031
702033
|
typescript: "^5.9.3"
|
|
702032
702034
|
}
|
|
702033
702035
|
};
|
|
@@ -704055,11 +704057,11 @@ var import_ts_morph, __defProp11, __commonJS7 = (cb4, mod) => () => (mod || cb4(
|
|
|
704055
704057
|
`));
|
|
704056
704058
|
return code;
|
|
704057
704059
|
}
|
|
704058
|
-
}, ADK_VERSION = "1.11.
|
|
704060
|
+
}, ADK_VERSION = "1.11.8", relative22 = (from, to3) => {
|
|
704059
704061
|
const fromDir = path102.dirname(from);
|
|
704060
704062
|
const relative32 = path102.relative(fromDir, to3);
|
|
704061
704063
|
return relative32.startsWith(".") ? relative32 : `./${relative32}`;
|
|
704062
|
-
}, init_utils8, exports_action_types, init_action_types, exports_integration_action_types, init_integration_action_types, require_package3, bpCliImporter, auth, BP_CLI_VERSION = "4.27.3", BP_CLI_INSTALL_ALL, BP_CLI_INSTALL_DIR, BP_CLI_BIN_PATH, BpAddCommand, BpBuildCommand, BpDeployCommand, BpDevCommand, BpChatCommand, workspaceCache, agentInfoKeyOrder, dependenciesKeyOrder, integrationKeyOrder, defaultAdkFolder = ".adk", integrationRefSchema, versionSchema, HubCache, AgentProject, FileWatcher, getIntegrationHash = (integration) => {
|
|
704064
|
+
}, init_utils8, exports_action_types, init_action_types, exports_integration_action_types, init_integration_action_types, require_package3, bpCliImporter, auth, BP_CLI_VERSION = "4.27.3", BP_CLI_INSTALL_ALL, BP_CLI_INSTALL_DIR, BP_CLI_BIN_PATH, BpAddCommand, BpBuildCommand, BpDeployCommand, BpDevCommand, BpChatCommand, workspaceCache, agentInfoKeyOrder, dependenciesKeyOrder, integrationKeyOrder, defaultAdkFolder = ".adk", integrationRefSchema, versionSchema, HubCache, AgentProject, FileWatcher, __filename2, __dirname2, getIntegrationHash = (integration) => {
|
|
704063
704065
|
return crypto24.createHash("sha256").update(`${integration.alias}|${integration.definition?.id}|${integration.definition?.version}|${integration.definition?.updatedAt}`).digest("hex");
|
|
704064
704066
|
}, getPascalAlias = (integration) => pascalCase(getIntegrationAlias(integration.alias)), getIntegrationNames = (integration) => ({
|
|
704065
704067
|
typings: {
|
|
@@ -704104,7 +704106,7 @@ var import_ts_morph, __defProp11, __commonJS7 = (cb4, mod) => () => (mod || cb4(
|
|
|
704104
704106
|
} catch {
|
|
704105
704107
|
try {
|
|
704106
704108
|
const adkPackagePath = join72(process.cwd(), "node_modules/@botpress/adk/package.json");
|
|
704107
|
-
const pkg = JSON.parse(
|
|
704109
|
+
const pkg = JSON.parse(readFileSync22(adkPackagePath, "utf-8"));
|
|
704108
704110
|
return pkg.version;
|
|
704109
704111
|
} catch {
|
|
704110
704112
|
return "unknown";
|
|
@@ -704117,7 +704119,7 @@ var import_ts_morph, __defProp11, __commonJS7 = (cb4, mod) => () => (mod || cb4(
|
|
|
704117
704119
|
} catch {
|
|
704118
704120
|
try {
|
|
704119
704121
|
const adkPackagePath = join9(process.cwd(), "node_modules/@botpress/adk/package.json");
|
|
704120
|
-
const pkg = JSON.parse(
|
|
704122
|
+
const pkg = JSON.parse(readFileSync32(adkPackagePath, "utf-8"));
|
|
704121
704123
|
return pkg.version;
|
|
704122
704124
|
} catch {
|
|
704123
704125
|
return "unknown";
|
|
@@ -704271,7 +704273,7 @@ var init_dist17 = __esm(() => {
|
|
|
704271
704273
|
require_package3 = __commonJS7((exports7, module) => {
|
|
704272
704274
|
module.exports = {
|
|
704273
704275
|
name: "@botpress/adk",
|
|
704274
|
-
version: "1.11.
|
|
704276
|
+
version: "1.11.8",
|
|
704275
704277
|
description: "Core ADK library for building AI agents on Botpress",
|
|
704276
704278
|
type: "module",
|
|
704277
704279
|
main: "dist/index.js",
|
|
@@ -704318,7 +704320,7 @@ var init_dist17 = __esm(() => {
|
|
|
704318
704320
|
"@botpress/cli": "^4.27.3",
|
|
704319
704321
|
"@botpress/client": "^1.27.2",
|
|
704320
704322
|
"@botpress/cognitive": "^0.2.0",
|
|
704321
|
-
"@botpress/runtime": "^1.11.
|
|
704323
|
+
"@botpress/runtime": "^1.11.8",
|
|
704322
704324
|
"@botpress/sdk": "^4.18.1",
|
|
704323
704325
|
"@bpinternal/jex": "^1.2.4",
|
|
704324
704326
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
@@ -705677,6 +705679,8 @@ ${this.stderrLines.join(`
|
|
|
705677
705679
|
init_agent_resolver();
|
|
705678
705680
|
init_types6();
|
|
705679
705681
|
init_utils8();
|
|
705682
|
+
__filename2 = fileURLToPath7(import.meta.url);
|
|
705683
|
+
__dirname2 = path15.dirname(__filename2);
|
|
705680
705684
|
init_fs();
|
|
705681
705685
|
init_utils8();
|
|
705682
705686
|
init_utils8();
|
|
@@ -706082,7 +706086,7 @@ function pathKey2(options = {}) {
|
|
|
706082
706086
|
// ../../node_modules/clipboardy/node_modules/execa/node_modules/npm-run-path/index.js
|
|
706083
706087
|
import process26 from "process";
|
|
706084
706088
|
import path35 from "path";
|
|
706085
|
-
import { fileURLToPath as
|
|
706089
|
+
import { fileURLToPath as fileURLToPath8 } from "url";
|
|
706086
706090
|
var npmRunPath2 = ({
|
|
706087
706091
|
cwd: cwd4 = process26.cwd(),
|
|
706088
706092
|
path: pathOption = process26.env[pathKey2()],
|
|
@@ -706090,7 +706094,7 @@ var npmRunPath2 = ({
|
|
|
706090
706094
|
execPath: execPath3 = process26.execPath,
|
|
706091
706095
|
addExecPath = true
|
|
706092
706096
|
} = {}) => {
|
|
706093
|
-
const cwdString = cwd4 instanceof URL ?
|
|
706097
|
+
const cwdString = cwd4 instanceof URL ? fileURLToPath8(cwd4) : cwd4;
|
|
706094
706098
|
const cwdPath = path35.resolve(cwdString);
|
|
706095
706099
|
const result = [];
|
|
706096
706100
|
if (preferLocal) {
|
|
@@ -706108,7 +706112,7 @@ var npmRunPath2 = ({
|
|
|
706108
706112
|
cwdPath = path35.resolve(cwdPath, "..");
|
|
706109
706113
|
}
|
|
706110
706114
|
}, applyExecPath2 = (result, execPath3, cwdPath) => {
|
|
706111
|
-
const execPathString = execPath3 instanceof URL ?
|
|
706115
|
+
const execPathString = execPath3 instanceof URL ? fileURLToPath8(execPath3) : execPath3;
|
|
706112
706116
|
result.push(path35.resolve(cwdPath, execPathString, ".."));
|
|
706113
706117
|
}, npmRunPathEnv2 = ({ env: env6 = process26.env, ...options } = {}) => {
|
|
706114
706118
|
env6 = { ...env6 };
|
|
@@ -707443,8 +707447,8 @@ var init_termux = __esm(() => {
|
|
|
707443
707447
|
|
|
707444
707448
|
// ../../node_modules/clipboardy/lib/linux.js
|
|
707445
707449
|
import path38 from "path";
|
|
707446
|
-
import { fileURLToPath as
|
|
707447
|
-
var
|
|
707450
|
+
import { fileURLToPath as fileURLToPath9 } from "url";
|
|
707451
|
+
var __dirname3, xsel = "xsel", xselFallback, copyArguments, pasteArguments, makeError3 = (xselError, fallbackError) => {
|
|
707448
707452
|
let error;
|
|
707449
707453
|
if (xselError.code === "ENOENT") {
|
|
707450
707454
|
error = new Error("Couldn't find the `xsel` binary and fallback didn't work. On Debian/Ubuntu you can install xsel with: sudo apt install xsel");
|
|
@@ -707479,8 +707483,8 @@ var __dirname2, xsel = "xsel", xselFallback, copyArguments, pasteArguments, make
|
|
|
707479
707483
|
}, clipboard2, linux_default;
|
|
707480
707484
|
var init_linux = __esm(() => {
|
|
707481
707485
|
init_execa2();
|
|
707482
|
-
|
|
707483
|
-
xselFallback = path38.join(
|
|
707486
|
+
__dirname3 = path38.dirname(fileURLToPath9(import.meta.url));
|
|
707487
|
+
xselFallback = path38.join(__dirname3, "../fallbacks/linux/xsel");
|
|
707484
707488
|
copyArguments = ["--clipboard", "--input"];
|
|
707485
707489
|
pasteArguments = ["--clipboard", "--output"];
|
|
707486
707490
|
clipboard2 = {
|
|
@@ -707561,14 +707565,14 @@ var init_is64bit = __esm(() => {
|
|
|
707561
707565
|
|
|
707562
707566
|
// ../../node_modules/clipboardy/lib/windows.js
|
|
707563
707567
|
import path39 from "path";
|
|
707564
|
-
import { fileURLToPath as
|
|
707565
|
-
var
|
|
707568
|
+
import { fileURLToPath as fileURLToPath10 } from "url";
|
|
707569
|
+
var __dirname5, binarySuffix, windowBinaryPath, clipboard4, windows_default;
|
|
707566
707570
|
var init_windows = __esm(() => {
|
|
707567
707571
|
init_execa2();
|
|
707568
707572
|
init_is64bit();
|
|
707569
|
-
|
|
707573
|
+
__dirname5 = path39.dirname(fileURLToPath10(import.meta.url));
|
|
707570
707574
|
binarySuffix = is64bitSync() ? "x86_64" : "i686";
|
|
707571
|
-
windowBinaryPath = path39.join(
|
|
707575
|
+
windowBinaryPath = path39.join(__dirname5, `../fallbacks/windows/clipboard_${binarySuffix}.exe`);
|
|
707572
707576
|
clipboard4 = {
|
|
707573
707577
|
copy: async (options) => execa2(windowBinaryPath, ["--copy"], options),
|
|
707574
707578
|
async paste(options) {
|
|
@@ -709280,7 +709284,7 @@ var init_default_browser = __esm(() => {
|
|
|
709280
709284
|
import process36 from "process";
|
|
709281
709285
|
import { Buffer as Buffer8 } from "buffer";
|
|
709282
709286
|
import path40 from "path";
|
|
709283
|
-
import { fileURLToPath as
|
|
709287
|
+
import { fileURLToPath as fileURLToPath11 } from "url";
|
|
709284
709288
|
import { promisify as promisify9 } from "util";
|
|
709285
709289
|
import childProcess3 from "child_process";
|
|
709286
709290
|
import fs25, { constants as fsConstants2 } from "fs/promises";
|
|
@@ -709324,7 +709328,7 @@ function detectPlatformBinary({ [platform4]: platformBinary }, { wsl }) {
|
|
|
709324
709328
|
}
|
|
709325
709329
|
return detectArchBinary(platformBinary);
|
|
709326
709330
|
}
|
|
709327
|
-
var execFile5,
|
|
709331
|
+
var execFile5, __dirname6, localXdgOpenPath, platform4, arch3, pTryEach = async (array, mapper) => {
|
|
709328
709332
|
let latestError;
|
|
709329
709333
|
for (const item of array) {
|
|
709330
709334
|
try {
|
|
@@ -709437,7 +709441,7 @@ var execFile5, __dirname4, localXdgOpenPath, platform4, arch3, pTryEach = async
|
|
|
709437
709441
|
if (app) {
|
|
709438
709442
|
command = app;
|
|
709439
709443
|
} else {
|
|
709440
|
-
const isBundled = !
|
|
709444
|
+
const isBundled = !__dirname6 || __dirname6 === "/";
|
|
709441
709445
|
let exeLocalXdgOpen = false;
|
|
709442
709446
|
try {
|
|
709443
709447
|
await fs25.access(localXdgOpenPath, fsConstants2.X_OK);
|
|
@@ -709489,8 +709493,8 @@ var init_open = __esm(() => {
|
|
|
709489
709493
|
init_default_browser();
|
|
709490
709494
|
init_is_inside_container();
|
|
709491
709495
|
execFile5 = promisify9(childProcess3.execFile);
|
|
709492
|
-
|
|
709493
|
-
localXdgOpenPath = path40.join(
|
|
709496
|
+
__dirname6 = path40.dirname(fileURLToPath11(import.meta.url));
|
|
709497
|
+
localXdgOpenPath = path40.join(__dirname6, "xdg-open");
|
|
709494
709498
|
({ platform: platform4, arch: arch3 } = process36);
|
|
709495
709499
|
apps = {};
|
|
709496
709500
|
defineLazyProperty(apps, "chrome", () => detectPlatformBinary({
|
|
@@ -710865,7 +710869,7 @@ var init_Separator = __esm(async () => {
|
|
|
710865
710869
|
var require_package4 = __commonJS((exports7, module) => {
|
|
710866
710870
|
module.exports = {
|
|
710867
710871
|
name: "@botpress/adk",
|
|
710868
|
-
version: "1.11.
|
|
710872
|
+
version: "1.11.8",
|
|
710869
710873
|
description: "Core ADK library for building AI agents on Botpress",
|
|
710870
710874
|
type: "module",
|
|
710871
710875
|
main: "dist/index.js",
|
|
@@ -710912,7 +710916,7 @@ var require_package4 = __commonJS((exports7, module) => {
|
|
|
710912
710916
|
"@botpress/cli": "^4.27.3",
|
|
710913
710917
|
"@botpress/client": "^1.27.2",
|
|
710914
710918
|
"@botpress/cognitive": "^0.2.0",
|
|
710915
|
-
"@botpress/runtime": "^1.11.
|
|
710919
|
+
"@botpress/runtime": "^1.11.8",
|
|
710916
710920
|
"@botpress/sdk": "^4.18.1",
|
|
710917
710921
|
"@bpinternal/jex": "^1.2.4",
|
|
710918
710922
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
@@ -712823,19 +712827,16 @@ function getInstalledRuntimeVersion(agentRoot) {
|
|
|
712823
712827
|
function checkRuntimeVersion(agentRoot) {
|
|
712824
712828
|
const expectedVersion = EXPECTED_RUNTIME_VERSION;
|
|
712825
712829
|
const installedVersion = getInstalledRuntimeVersion(agentRoot);
|
|
712826
|
-
if (expectedVersion === "BUILD_TIME_REPLACEMENT" || installedVersion === null) {
|
|
712827
|
-
return;
|
|
712828
|
-
}
|
|
712829
712830
|
const expected = semver2.parse(expectedVersion);
|
|
712830
712831
|
const installed = semver2.parse(installedVersion);
|
|
712831
712832
|
if (!expected || !installed) {
|
|
712832
712833
|
return;
|
|
712833
712834
|
}
|
|
712834
|
-
if (semver2.
|
|
712835
|
+
if (!semver2.satisfies(installed, SUPPORTED_RUNTIME_RANGE)) {
|
|
712835
712836
|
console.error(source_default.red.bold(`
|
|
712836
|
-
\u2717 Runtime Version
|
|
712837
|
+
\u2717 Runtime Version Incompatible`));
|
|
712837
712838
|
console.error(source_default.red(` Your project is using @botpress/runtime v${installedVersion}`));
|
|
712838
|
-
console.error(source_default.red(` This CLI requires @botpress/runtime
|
|
712839
|
+
console.error(source_default.red(` This CLI requires @botpress/runtime ${SUPPORTED_RUNTIME_RANGE}
|
|
712839
712840
|
`));
|
|
712840
712841
|
console.error(source_default.yellow(" To fix this, update your package.json:"));
|
|
712841
712842
|
console.error(source_default.white(` "@botpress/runtime": "^${expectedVersion}"
|
|
@@ -712845,21 +712846,17 @@ function checkRuntimeVersion(agentRoot) {
|
|
|
712845
712846
|
`));
|
|
712846
712847
|
process.exit(1);
|
|
712847
712848
|
}
|
|
712848
|
-
if (semver2.
|
|
712849
|
-
console.warn(source_default.yellow
|
|
712850
|
-
\u26A0
|
|
712851
|
-
console.warn(source_default.
|
|
712852
|
-
console.warn(source_default.yellow(` This CLI was built for @botpress/runtime v${expectedVersion}
|
|
712853
|
-
`));
|
|
712854
|
-
console.warn(source_default.dim(" Consider upgrading your CLI to the latest version:"));
|
|
712855
|
-
console.warn(source_default.dim(` adk self-upgrade
|
|
712849
|
+
if (semver2.lt(installed, expected)) {
|
|
712850
|
+
console.warn(source_default.yellow(`
|
|
712851
|
+
\u26A0 A newer version of @botpress/runtime is available (v${expectedVersion})`));
|
|
712852
|
+
console.warn(source_default.dim(` You are using v${installedVersion}
|
|
712856
712853
|
`));
|
|
712857
|
-
console.warn(source_default.dim("
|
|
712854
|
+
console.warn(source_default.dim(" To upgrade, update your package.json:"));
|
|
712858
712855
|
console.warn(source_default.dim(` "@botpress/runtime": "^${expectedVersion}"
|
|
712859
712856
|
`));
|
|
712860
712857
|
}
|
|
712861
712858
|
}
|
|
712862
|
-
var semver2, EXPECTED_RUNTIME_VERSION = "1.11.
|
|
712859
|
+
var semver2, EXPECTED_RUNTIME_VERSION = "1.11.8", SUPPORTED_RUNTIME_RANGE = ">=1.11.0";
|
|
712863
712860
|
var init_runtime_version_check = __esm(() => {
|
|
712864
712861
|
init_source();
|
|
712865
712862
|
semver2 = __toESM(require_semver2(), 1);
|
|
@@ -716637,17 +716634,17 @@ function getContentType(pathname) {
|
|
|
716637
716634
|
import { readFileSync as readFileSync14, existsSync as existsSync15 } from "fs";
|
|
716638
716635
|
import { join as join16, resolve as resolve5 } from "path";
|
|
716639
716636
|
import path41 from "path";
|
|
716640
|
-
import { fileURLToPath as
|
|
716637
|
+
import { fileURLToPath as fileURLToPath12 } from "url";
|
|
716641
716638
|
function getUIDistPath() {
|
|
716642
|
-
const
|
|
716643
|
-
const
|
|
716644
|
-
const isBinary = !
|
|
716639
|
+
const __filename3 = fileURLToPath12(import.meta.url);
|
|
716640
|
+
const __dirname4 = path41.dirname(__filename3);
|
|
716641
|
+
const isBinary = !__filename3.endsWith(".js") && !__filename3.endsWith(".ts");
|
|
716645
716642
|
if (isBinary) {
|
|
716646
716643
|
const execDir = path41.dirname(process.execPath);
|
|
716647
716644
|
return resolve5(execDir, "assets/ui-dist");
|
|
716648
716645
|
} else {
|
|
716649
|
-
const isCompiledDist =
|
|
716650
|
-
return isCompiledDist ? resolve5(
|
|
716646
|
+
const isCompiledDist = __filename3.includes("/dist/");
|
|
716647
|
+
return isCompiledDist ? resolve5(__dirname4, "../assets/ui-dist") : resolve5(__dirname4, "../../assets/ui-dist");
|
|
716651
716648
|
}
|
|
716652
716649
|
}
|
|
716653
716650
|
function serveStaticFile(pathname, uiDistPath) {
|
|
@@ -722739,7 +722736,7 @@ var stripTrailingSlashes = (str) => {
|
|
|
722739
722736
|
|
|
722740
722737
|
// ../../node_modules/tar/dist/esm/list.js
|
|
722741
722738
|
import fs28 from "fs";
|
|
722742
|
-
import { dirname as
|
|
722739
|
+
import { dirname as dirname5, parse as parse9 } from "path";
|
|
722743
722740
|
var onReadEntryFunction = (opt) => {
|
|
722744
722741
|
const onReadEntry = opt.onReadEntry;
|
|
722745
722742
|
opt.onReadEntry = onReadEntry ? (e6) => {
|
|
@@ -722759,7 +722756,7 @@ var onReadEntryFunction = (opt) => {
|
|
|
722759
722756
|
if (m2 !== undefined) {
|
|
722760
722757
|
ret = m2;
|
|
722761
722758
|
} else {
|
|
722762
|
-
ret = mapHas(
|
|
722759
|
+
ret = mapHas(dirname5(file), root5);
|
|
722763
722760
|
}
|
|
722764
722761
|
}
|
|
722765
722762
|
map.set(file, ret);
|
|
@@ -727972,7 +727969,7 @@ __export(exports_upgrade, {
|
|
|
727972
727969
|
adkSelfUpgrade: () => adkSelfUpgrade
|
|
727973
727970
|
});
|
|
727974
727971
|
import { existsSync as existsSync17, writeFileSync as writeFileSync6, chmodSync, renameSync, unlinkSync, readFileSync as readFileSync16, mkdirSync as mkdirSync5, rmdirSync, accessSync, constants as constants8 } from "fs";
|
|
727975
|
-
import { join as join19, dirname as
|
|
727972
|
+
import { join as join19, dirname as dirname6 } from "path";
|
|
727976
727973
|
import { tmpdir } from "os";
|
|
727977
727974
|
import { execSync as execSync4 } from "child_process";
|
|
727978
727975
|
function getPlatformInfo() {
|
|
@@ -728060,7 +728057,7 @@ function getCurrentBinaryPath() {
|
|
|
728060
728057
|
}
|
|
728061
728058
|
function checkWritePermissions(path36) {
|
|
728062
728059
|
try {
|
|
728063
|
-
const dir =
|
|
728060
|
+
const dir = dirname6(path36);
|
|
728064
728061
|
accessSync(dir, constants8.W_OK);
|
|
728065
728062
|
if (existsSync17(path36)) {
|
|
728066
728063
|
accessSync(path36, constants8.W_OK);
|
|
@@ -744034,8 +744031,8 @@ var init_dist18 = __esm(() => {
|
|
|
744034
744031
|
n3 && E && (a2 = E(n3.prototype));
|
|
744035
744032
|
}
|
|
744036
744033
|
return ye3[t9] = a2, a2;
|
|
744037
|
-
}, Io3 = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, Ke3 = ge2(), lt5 = Ys4(), Tk3 = Ke3.call(Ve, Array.prototype.concat), Ck3 = Ke3.call(Ao3, Array.prototype.splice), ko3 = Ke3.call(Ve, String.prototype.replace),
|
|
744038
|
-
var a2 =
|
|
744034
|
+
}, Io3 = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, Ke3 = ge2(), lt5 = Ys4(), Tk3 = Ke3.call(Ve, Array.prototype.concat), Ck3 = Ke3.call(Ao3, Array.prototype.splice), ko3 = Ke3.call(Ve, String.prototype.replace), gt3 = Ke3.call(Ve, String.prototype.slice), wk3 = Ke3.call(Ve, RegExp.prototype.exec), Uk3 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Gk3 = /\\(\\)?/g, Ek3 = function(t9) {
|
|
744035
|
+
var a2 = gt3(t9, 0, 1), r = gt3(t9, -1);
|
|
744039
744036
|
if (a2 === "%" && r !== "%")
|
|
744040
744037
|
throw new Ce3("invalid intrinsic syntax, expected closing `%`");
|
|
744041
744038
|
if (r === "%" && a2 !== "%")
|
|
@@ -744064,7 +744061,7 @@ var init_dist18 = __esm(() => {
|
|
|
744064
744061
|
var r = Ek3(t9), n3 = r.length > 0 ? r[0] : "", o2 = Lk3("%" + n3 + "%", a2), i2 = o2.name, p = o2.value, u2 = false, s2 = o2.alias;
|
|
744065
744062
|
s2 && (n3 = s2[0], Ck3(r, Tk3([0, 1], s2)));
|
|
744066
744063
|
for (var y = 1, P = true;y < r.length; y += 1) {
|
|
744067
|
-
var q3 = r[y], x =
|
|
744064
|
+
var q3 = r[y], x = gt3(q3, 0, 1), f = gt3(q3, -1);
|
|
744068
744065
|
if ((x === '"' || x === "'" || x === "`" || f === '"' || f === "'" || f === "`") && x !== f)
|
|
744069
744066
|
throw new Ce3("property names with quotes must have matching quotes");
|
|
744070
744067
|
if ((q3 === "constructor" || !P) && (u2 = true), n3 += "." + q3, i2 = "%" + n3 + "%", lt5(ye3, i2))
|
|
@@ -745980,7 +745977,7 @@ __export(exports_dist9, {
|
|
|
745980
745977
|
Plugin: () => ql3,
|
|
745981
745978
|
ParseStatus: () => Tt5,
|
|
745982
745979
|
ParseInputLazyPath: () => Ot5,
|
|
745983
|
-
OK: () =>
|
|
745980
|
+
OK: () => gt3,
|
|
745984
745981
|
NEVER: () => UP3,
|
|
745985
745982
|
InterfaceDefinition: () => Kl5,
|
|
745986
745983
|
IntegrationSpecificClient: () => ni3,
|
|
@@ -752527,7 +752524,7 @@ var import_browser_or_node9, Xa3, $v3, jv3, Kv3, ot5 = (t9, e11) => () => (t9 &&
|
|
|
752527
752524
|
}
|
|
752528
752525
|
return { status: e11.value, value: r };
|
|
752529
752526
|
}
|
|
752530
|
-
}, Tt5, pe3, Vn3,
|
|
752527
|
+
}, Tt5, pe3, Vn3, gt3, _o3, bo3, jr5, Si3, ue3, ki3, Kr5, Ii3, Lr5, Nx4, lg5, Dx5, Hx5, ug3 = class {
|
|
752531
752528
|
constructor(e11 = [], n3 = {}) {
|
|
752532
752529
|
this._options = b6(b6({}, Hx5), n3), this._items = [];
|
|
752533
752530
|
for (let r of e11)
|
|
@@ -754554,7 +754551,7 @@ var init_dist19 = __esm(() => {
|
|
|
754554
754551
|
Jv3 = {};
|
|
754555
754552
|
aa5(Jv3, { errors: () => sf5, fromJSONSchema: () => Xg3, fromJSONSchemaLegacy: () => lB3, fromObject: () => xo3, toJSONSchema: () => st5, toJSONSchemaLegacy: () => MB3, toTypescriptSchema: () => Ho5, toTypescriptType: () => Eo3 });
|
|
754556
754553
|
X3 = {};
|
|
754557
|
-
aa5(X3, { BRAND: () => Ux5, DIRTY: () => Vn3, EMPTY_PATH: () => Mx3, INVALID: () => pe3, NEVER: () => UP3, OK: () =>
|
|
754554
|
+
aa5(X3, { BRAND: () => Ux5, DIRTY: () => Vn3, EMPTY_PATH: () => Mx3, INVALID: () => pe3, NEVER: () => UP3, OK: () => gt3, ParseInputLazyPath: () => Ot5, ParseStatus: () => Tt5, Schema: () => he5, ZodAny: () => Kr5, ZodArray: () => Lr5, ZodBigInt: () => jo3, ZodBoolean: () => Ko5, ZodBranded: () => Lo3, ZodCatch: () => Fo3, ZodDate: () => Wo3, ZodDefault: () => ma5, ZodDiscriminatedUnion: () => gg3, ZodEffects: () => Sn3, ZodEnum: () => ir3, ZodError: () => Wt5, ZodFirstPartyTypeKind: () => tg3, ZodFunction: () => mg5, ZodIntersection: () => qo3, ZodIssueCode: () => G, ZodLazy: () => Go5, ZodLiteral: () => Vo3, ZodMap: () => vg5, ZodNaN: () => _g5, ZodNativeEnum: () => Jo3, ZodNever: () => zr5, ZodNull: () => Yo5, ZodNullable: () => Qn3, ZodNumber: () => Xo3, ZodObject: () => er3, ZodOptional: () => ln5, ZodParsedType: () => ne5, ZodPipeline: () => Qo3, ZodPromise: () => va5, ZodReadonly: () => Ta5, ZodRecord: () => Sg3, ZodRef: () => Ig5, ZodSchema: () => he5, ZodSet: () => Ag3, ZodString: () => yt5, ZodSymbol: () => jg3, ZodTransformer: () => Sn3, ZodTuple: () => nr3, ZodType: () => he5, ZodUndefined: () => _a5, ZodUnion: () => es5, ZodUnknown: () => Dr5, ZodVoid: () => Wg5, addIssueToContext: () => te3, agent: () => Wx3, aimodel: () => Jx5, any: () => sP3, array: () => fP3, bigint: () => nP3, boolean: () => Gg5, coerce: () => HP3, conversation: () => Kx3, createZodEnum: () => ha5, cuid2Regex: () => Og3, cuidRegex: () => Cg3, custom: () => dg3, datasource: () => Yx5, date: () => rP3, default: () => CP3, discriminatedUnion: () => yP3, effect: () => Jc5, emailRegex: () => Ng4, enum: () => EP3, errorUtil: () => ue3, event: () => zx5, function: () => xP3, getErrorMap: () => $r5, getParsedType: () => sn5, instanceof: () => eP3, intent: () => Vx4, intersection: () => mP3, ipv4Regex: () => Hg3, ipv6Regex: () => Ug3, isAborted: () => _o3, isAsync: () => Si3, isDirty: () => bo3, isEmojiRegex: () => Zx5, isValid: () => jr5, knowledgebase: () => Xx5, late: () => Qx3, lazy: () => PP3, literal: () => BP3, makeIssue: () => Ei3, map: () => bP3, message: () => Fx5, nan: () => tP3, nativeEnum: () => SP3, never: () => uP3, null: () => oP3, nullable: () => AP3, number: () => qg3, object: () => dP3, objectUtil: () => To5, oboolean: () => DP3, onumber: () => NP3, optional: () => IP3, ostring: () => MP3, pipeline: () => RP3, preprocess: () => OP3, processCreateParams: () => me3, promise: () => kP3, quotelessJson: () => Rx5, readonly: () => _P3, record: () => vP3, ref: () => TP3, set: () => wP3, setErrorMap: () => ig3, strictObject: () => pP3, string: () => zg5, symbol: () => iP3, table: () => qx5, tablerow: () => Gx3, transformer: () => Jc5, tuple: () => hP3, ulidRegex: () => Rg3, undefined: () => aP3, union: () => gP3, unknown: () => lP3, user: () => Lx3, util: () => be5, uuidRegex: () => Mg5, variable: () => jx5, void: () => cP3 });
|
|
754558
754555
|
d5(nf3, "primitiveToTypscriptLiteralType");
|
|
754559
754556
|
d5(se3, "primitiveToTypescriptValue");
|
|
754560
754557
|
d5(Jn3, "unknownToTypescriptValue");
|
|
@@ -755652,7 +755649,7 @@ declare function ${r}${i2};${l4}`);
|
|
|
755652
755649
|
Tt5 = ag5;
|
|
755653
755650
|
pe3 = Object.freeze({ status: "aborted" });
|
|
755654
755651
|
Vn3 = d5((t9) => ({ status: "dirty", value: t9 }), "DIRTY");
|
|
755655
|
-
|
|
755652
|
+
gt3 = d5((t9) => ({ status: "valid", value: t9 }), "OK");
|
|
755656
755653
|
_o3 = d5((t9) => t9.status === "aborted", "isAborted");
|
|
755657
755654
|
bo3 = d5((t9) => t9.status === "dirty", "isDirty");
|
|
755658
755655
|
jr5 = d5((t9) => t9.status === "valid", "isValid");
|
|
@@ -755665,7 +755662,7 @@ declare function ${r}${i2};${l4}`);
|
|
|
755665
755662
|
super(...arguments), this._any = true;
|
|
755666
755663
|
}
|
|
755667
755664
|
_parse(e11) {
|
|
755668
|
-
return
|
|
755665
|
+
return gt3(e11.data);
|
|
755669
755666
|
}
|
|
755670
755667
|
isEqual(e11) {
|
|
755671
755668
|
return e11 instanceof sg5;
|
|
@@ -755809,7 +755806,7 @@ declare function ${r}${i2};${l4}`);
|
|
|
755809
755806
|
let r = this._getOrReturnCtx(e11);
|
|
755810
755807
|
return te3(r, { code: G.invalid_type, expected: ne5.boolean, received: r.parsedType }), pe3;
|
|
755811
755808
|
}
|
|
755812
|
-
return
|
|
755809
|
+
return gt3(e11.data);
|
|
755813
755810
|
}
|
|
755814
755811
|
isEqual(e11) {
|
|
755815
755812
|
return e11 instanceof cg5 ? this._def.coerce === e11._def.coerce : false;
|
|
@@ -756036,7 +756033,7 @@ declare function ${r}${i2};${l4}`);
|
|
|
756036
756033
|
let n3 = this._getOrReturnCtx(e11), r = this._def.values;
|
|
756037
756034
|
return te3(n3, { received: n3.data, code: G.invalid_enum_value, options: r }), pe3;
|
|
756038
756035
|
}
|
|
756039
|
-
return
|
|
756036
|
+
return gt3(e11.data);
|
|
756040
756037
|
}
|
|
756041
756038
|
get options() {
|
|
756042
756039
|
return this._def.values;
|
|
@@ -756104,7 +756101,7 @@ declare function ${r}${i2};${l4}`);
|
|
|
756104
756101
|
let o2 = { errorMap: n3.common.contextualErrorMap }, i2 = n3.data;
|
|
756105
756102
|
if (this._def.returns instanceof va5) {
|
|
756106
756103
|
let s2 = this;
|
|
756107
|
-
return
|
|
756104
|
+
return gt3(async function(...l4) {
|
|
756108
756105
|
let f = new Wt5([]), p = await s2._def.args.parseAsync(l4, o2).catch((h4) => {
|
|
756109
756106
|
throw f.addIssue(r(l4, h4)), f;
|
|
756110
756107
|
}), y = await Reflect.apply(i2, this, p);
|
|
@@ -756114,7 +756111,7 @@ declare function ${r}${i2};${l4}`);
|
|
|
756114
756111
|
});
|
|
756115
756112
|
} else {
|
|
756116
756113
|
let s2 = this;
|
|
756117
|
-
return
|
|
756114
|
+
return gt3(function(...l4) {
|
|
756118
756115
|
let f = s2._def.args.safeParse(l4, o2);
|
|
756119
756116
|
if (!f.success)
|
|
756120
756117
|
throw new Wt5([r(l4, f.error)]);
|
|
@@ -756307,7 +756304,7 @@ declare function ${r}${i2};${l4}`);
|
|
|
756307
756304
|
let a2 = be5.objectValues(n3);
|
|
756308
756305
|
return te3(r, { received: r.data, code: G.invalid_enum_value, options: a2 }), pe3;
|
|
756309
756306
|
}
|
|
756310
|
-
return
|
|
756307
|
+
return gt3(e11.data);
|
|
756311
756308
|
}
|
|
756312
756309
|
get enum() {
|
|
756313
756310
|
return this._def.values;
|
|
@@ -756337,7 +756334,7 @@ declare function ${r}${i2};${l4}`);
|
|
|
756337
756334
|
let r = this._getOrReturnCtx(e11);
|
|
756338
756335
|
return te3(r, { code: G.invalid_type, expected: ne5.null, received: r.parsedType }), pe3;
|
|
756339
756336
|
}
|
|
756340
|
-
return
|
|
756337
|
+
return gt3(e11.data);
|
|
756341
756338
|
}
|
|
756342
756339
|
isEqual(e11) {
|
|
756343
756340
|
return e11 instanceof xg3;
|
|
@@ -756357,7 +756354,7 @@ declare function ${r}${i2};${l4}`);
|
|
|
756357
756354
|
return new Br5(N5(b6({}, this._def), { innerType: this._def.innerType.clone() }));
|
|
756358
756355
|
}
|
|
756359
756356
|
_parse(e11) {
|
|
756360
|
-
return this._getType(e11) === ne5.null ?
|
|
756357
|
+
return this._getType(e11) === ne5.null ? gt3(null) : this._def.innerType._parse(e11);
|
|
756361
756358
|
}
|
|
756362
756359
|
unwrap() {
|
|
756363
756360
|
return this._def.innerType;
|
|
@@ -756630,7 +756627,7 @@ declare function ${r}${i2};${l4}`);
|
|
|
756630
756627
|
return new wi3(N5(b6({}, this._def), { innerType: this._def.innerType.clone() }));
|
|
756631
756628
|
}
|
|
756632
756629
|
_parse(e11) {
|
|
756633
|
-
return this._getType(e11) === ne5.undefined ?
|
|
756630
|
+
return this._getType(e11) === ne5.undefined ? gt3(undefined) : this._def.innerType._parse(e11);
|
|
756634
756631
|
}
|
|
756635
756632
|
unwrap() {
|
|
756636
756633
|
return this._def.innerType;
|
|
@@ -756697,7 +756694,7 @@ declare function ${r}${i2};${l4}`);
|
|
|
756697
756694
|
if (n3.parsedType !== ne5.promise && n3.common.async === false)
|
|
756698
756695
|
return te3(n3, { code: G.invalid_type, expected: ne5.promise, received: n3.parsedType }), pe3;
|
|
756699
756696
|
let r = n3.parsedType === ne5.promise ? n3.data : Promise.resolve(n3.data);
|
|
756700
|
-
return
|
|
756697
|
+
return gt3(r.then((a2) => this._def.type.parseAsync(a2, { path: n3.path, errorMap: n3.common.contextualErrorMap })));
|
|
756701
756698
|
}
|
|
756702
756699
|
isEqual(e11) {
|
|
756703
756700
|
return e11 instanceof xi3 ? this._def.type.isEqual(e11._def.type) : false;
|
|
@@ -757032,7 +757029,7 @@ declare function ${r}${i2};${l4}`);
|
|
|
757032
757029
|
let r = this._getOrReturnCtx(e11);
|
|
757033
757030
|
return te3(r, { code: G.invalid_type, expected: ne5.symbol, received: r.parsedType }), pe3;
|
|
757034
757031
|
}
|
|
757035
|
-
return
|
|
757032
|
+
return gt3(e11.data);
|
|
757036
757033
|
}
|
|
757037
757034
|
isEqual(e11) {
|
|
757038
757035
|
return e11 instanceof $g3;
|
|
@@ -757175,7 +757172,7 @@ declare function ${r}${i2};${l4}`);
|
|
|
757175
757172
|
let r = this._getOrReturnCtx(e11);
|
|
757176
757173
|
return te3(r, { code: G.invalid_type, expected: ne5.undefined, received: r.parsedType }), pe3;
|
|
757177
757174
|
}
|
|
757178
|
-
return
|
|
757175
|
+
return gt3(e11.data);
|
|
757179
757176
|
}
|
|
757180
757177
|
isEqual(e11) {
|
|
757181
757178
|
return e11 instanceof Kg5;
|
|
@@ -757252,7 +757249,7 @@ declare function ${r}${i2};${l4}`);
|
|
|
757252
757249
|
super(...arguments), this._unknown = true;
|
|
757253
757250
|
}
|
|
757254
757251
|
_parse(e11) {
|
|
757255
|
-
return
|
|
757252
|
+
return gt3(e11.data);
|
|
757256
757253
|
}
|
|
757257
757254
|
isEqual(e11) {
|
|
757258
757255
|
return e11 instanceof Lg5;
|
|
@@ -757267,7 +757264,7 @@ declare function ${r}${i2};${l4}`);
|
|
|
757267
757264
|
let r = this._getOrReturnCtx(e11);
|
|
757268
757265
|
return te3(r, { code: G.invalid_type, expected: ne5.void, received: r.parsedType }), pe3;
|
|
757269
757266
|
}
|
|
757270
|
-
return
|
|
757267
|
+
return gt3(e11.data);
|
|
757271
757268
|
}
|
|
757272
757269
|
isEqual(e11) {
|
|
757273
757270
|
return e11 instanceof Fg3;
|
|
@@ -872048,7 +872045,7 @@ function dew18() {
|
|
|
872048
872045
|
exports$114.Url = Url2;
|
|
872049
872046
|
return exports$114;
|
|
872050
872047
|
}
|
|
872051
|
-
function
|
|
872048
|
+
function fileURLToPath13(path210) {
|
|
872052
872049
|
if (typeof path210 === "string")
|
|
872053
872050
|
path210 = new URL(path210);
|
|
872054
872051
|
else if (!(path210 instanceof URL)) {
|
|
@@ -885759,8 +885756,8 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
885759
885756
|
r7.negative = t62.negative ^ i6.negative, r7.length = 19;
|
|
885760
885757
|
var vt6 = (a7 + (h7 = Math.imul(m6, F42)) | 0) + ((8191 & (n7 = (n7 = Math.imul(m6, C42)) + Math.imul(f8, F42) | 0)) << 13) | 0;
|
|
885761
885758
|
a7 = ((e92 = Math.imul(f8, C42)) + (n7 >>> 13) | 0) + (vt6 >>> 26) | 0, vt6 &= 67108863, h7 = Math.imul(p7, F42), n7 = (n7 = Math.imul(p7, C42)) + Math.imul(M52, F42) | 0, e92 = Math.imul(M52, C42);
|
|
885762
|
-
var
|
|
885763
|
-
a7 = ((e92 = e92 + Math.imul(f8, J32) | 0) + (n7 >>> 13) | 0) + (
|
|
885759
|
+
var gt4 = (a7 + (h7 = h7 + Math.imul(m6, H32) | 0) | 0) + ((8191 & (n7 = (n7 = n7 + Math.imul(m6, J32) | 0) + Math.imul(f8, H32) | 0)) << 13) | 0;
|
|
885760
|
+
a7 = ((e92 = e92 + Math.imul(f8, J32) | 0) + (n7 >>> 13) | 0) + (gt4 >>> 26) | 0, gt4 &= 67108863, h7 = Math.imul(g62, F42), n7 = (n7 = Math.imul(g62, C42)) + Math.imul(c72, F42) | 0, e92 = Math.imul(c72, C42), h7 = h7 + Math.imul(p7, H32) | 0, n7 = (n7 = n7 + Math.imul(p7, J32) | 0) + Math.imul(M52, H32) | 0, e92 = e92 + Math.imul(M52, J32) | 0;
|
|
885764
885761
|
var ct6 = (a7 + (h7 = h7 + Math.imul(m6, G32) | 0) | 0) + ((8191 & (n7 = (n7 = n7 + Math.imul(m6, Q32) | 0) + Math.imul(f8, G32) | 0)) << 13) | 0;
|
|
885765
885762
|
a7 = ((e92 = e92 + Math.imul(f8, Q32) | 0) + (n7 >>> 13) | 0) + (ct6 >>> 26) | 0, ct6 &= 67108863, h7 = Math.imul(y7, F42), n7 = (n7 = Math.imul(y7, C42)) + Math.imul(b62, F42) | 0, e92 = Math.imul(b62, C42), h7 = h7 + Math.imul(g62, H32) | 0, n7 = (n7 = n7 + Math.imul(g62, J32) | 0) + Math.imul(c72, H32) | 0, e92 = e92 + Math.imul(c72, J32) | 0, h7 = h7 + Math.imul(p7, G32) | 0, n7 = (n7 = n7 + Math.imul(p7, Q32) | 0) + Math.imul(M52, G32) | 0, e92 = e92 + Math.imul(M52, Q32) | 0;
|
|
885766
885763
|
var wt6 = (a7 + (h7 = h7 + Math.imul(m6, W32) | 0) | 0) + ((8191 & (n7 = (n7 = n7 + Math.imul(m6, X32) | 0) + Math.imul(f8, W32) | 0)) << 13) | 0;
|
|
@@ -885794,7 +885791,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
885794
885791
|
var It4 = (a7 + (h7 = h7 + Math.imul(z5, pt4) | 0) | 0) + ((8191 & (n7 = (n7 = n7 + Math.imul(z5, Mt6) | 0) + Math.imul(E42, pt4) | 0)) << 13) | 0;
|
|
885795
885792
|
a7 = ((e92 = e92 + Math.imul(E42, Mt6) | 0) + (n7 >>> 13) | 0) + (It4 >>> 26) | 0, It4 &= 67108863;
|
|
885796
885793
|
var Tt6 = (a7 + (h7 = Math.imul(j4, pt4)) | 0) + ((8191 & (n7 = (n7 = Math.imul(j4, Mt6)) + Math.imul(K3, pt4) | 0)) << 13) | 0;
|
|
885797
|
-
return a7 = ((e92 = Math.imul(K3, Mt6)) + (n7 >>> 13) | 0) + (Tt6 >>> 26) | 0, Tt6 &= 67108863, u7[0] = vt6, u7[1] =
|
|
885794
|
+
return a7 = ((e92 = Math.imul(K3, Mt6)) + (n7 >>> 13) | 0) + (Tt6 >>> 26) | 0, Tt6 &= 67108863, u7[0] = vt6, u7[1] = gt4, u7[2] = ct6, u7[3] = wt6, u7[4] = yt6, u7[5] = bt4, u7[6] = _t22, u7[7] = kt4, u7[8] = At6, u7[9] = xt, u7[10] = St4, u7[11] = Zt6, u7[12] = Rt4, u7[13] = qt4, u7[14] = Bt6, u7[15] = Nt3, u7[16] = Lt6, u7[17] = It4, u7[18] = Tt6, a7 !== 0 && (u7[19] = a7, r7.length++), r7;
|
|
885798
885795
|
};
|
|
885799
885796
|
function M42(t62, i6, r7) {
|
|
885800
885797
|
return new v62().mulp(t62, i6, r7);
|
|
@@ -893602,8 +893599,8 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
893602
893599
|
init_buffer22();
|
|
893603
893600
|
init_process22();
|
|
893604
893601
|
var compare = require_compare2();
|
|
893605
|
-
var
|
|
893606
|
-
module2.exports =
|
|
893602
|
+
var gt4 = (a6, b52, loose) => compare(a6, b52, loose) > 0;
|
|
893603
|
+
module2.exports = gt4;
|
|
893607
893604
|
}
|
|
893608
893605
|
});
|
|
893609
893606
|
require_lt2 = __commonJS8({
|
|
@@ -893663,7 +893660,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
893663
893660
|
init_process22();
|
|
893664
893661
|
var eq7 = require_eq2();
|
|
893665
893662
|
var neq = require_neq2();
|
|
893666
|
-
var
|
|
893663
|
+
var gt4 = require_gt2();
|
|
893667
893664
|
var gte5 = require_gte2();
|
|
893668
893665
|
var lt6 = require_lt2();
|
|
893669
893666
|
var lte4 = require_lte2();
|
|
@@ -893692,7 +893689,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
893692
893689
|
case "!=":
|
|
893693
893690
|
return neq(a6, b52, loose);
|
|
893694
893691
|
case ">":
|
|
893695
|
-
return
|
|
893692
|
+
return gt4(a6, b52, loose);
|
|
893696
893693
|
case ">=":
|
|
893697
893694
|
return gte5(a6, b52, loose);
|
|
893698
893695
|
case "<":
|
|
@@ -894284,7 +894281,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894284
894281
|
init_buffer22();
|
|
894285
894282
|
init_process22();
|
|
894286
894283
|
var Range = require_range22();
|
|
894287
|
-
var
|
|
894284
|
+
var satisfies2 = (version42, range4, options) => {
|
|
894288
894285
|
try {
|
|
894289
894286
|
range4 = new Range(range4, options);
|
|
894290
894287
|
} catch (er4) {
|
|
@@ -894292,7 +894289,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894292
894289
|
}
|
|
894293
894290
|
return range4.test(version42);
|
|
894294
894291
|
};
|
|
894295
|
-
module2.exports =
|
|
894292
|
+
module2.exports = satisfies2;
|
|
894296
894293
|
}
|
|
894297
894294
|
});
|
|
894298
894295
|
require_to_comparators2 = __commonJS8({
|
|
@@ -894370,7 +894367,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894370
894367
|
init_process22();
|
|
894371
894368
|
var SemVer = require_semver6();
|
|
894372
894369
|
var Range = require_range22();
|
|
894373
|
-
var
|
|
894370
|
+
var gt4 = require_gt2();
|
|
894374
894371
|
var minVersion = (range4, loose) => {
|
|
894375
894372
|
range4 = new Range(range4, loose);
|
|
894376
894373
|
let minver = new SemVer("0.0.0");
|
|
@@ -894397,7 +894394,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894397
894394
|
compver.raw = compver.format();
|
|
894398
894395
|
case "":
|
|
894399
894396
|
case ">=":
|
|
894400
|
-
if (!setMin ||
|
|
894397
|
+
if (!setMin || gt4(compver, setMin)) {
|
|
894401
894398
|
setMin = compver;
|
|
894402
894399
|
}
|
|
894403
894400
|
break;
|
|
@@ -894408,7 +894405,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894408
894405
|
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
894409
894406
|
}
|
|
894410
894407
|
});
|
|
894411
|
-
if (setMin && (!minver ||
|
|
894408
|
+
if (setMin && (!minver || gt4(minver, setMin))) {
|
|
894412
894409
|
minver = setMin;
|
|
894413
894410
|
}
|
|
894414
894411
|
}
|
|
@@ -894445,8 +894442,8 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894445
894442
|
var Comparator = require_comparator2();
|
|
894446
894443
|
var { ANY } = Comparator;
|
|
894447
894444
|
var Range = require_range22();
|
|
894448
|
-
var
|
|
894449
|
-
var
|
|
894445
|
+
var satisfies2 = require_satisfies2();
|
|
894446
|
+
var gt4 = require_gt2();
|
|
894450
894447
|
var lt6 = require_lt2();
|
|
894451
894448
|
var lte4 = require_lte2();
|
|
894452
894449
|
var gte5 = require_gte2();
|
|
@@ -894456,7 +894453,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894456
894453
|
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
894457
894454
|
switch (hilo) {
|
|
894458
894455
|
case ">":
|
|
894459
|
-
gtfn =
|
|
894456
|
+
gtfn = gt4;
|
|
894460
894457
|
ltefn = lte4;
|
|
894461
894458
|
ltfn = lt6;
|
|
894462
894459
|
comp = ">";
|
|
@@ -894465,14 +894462,14 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894465
894462
|
case "<":
|
|
894466
894463
|
gtfn = lt6;
|
|
894467
894464
|
ltefn = gte5;
|
|
894468
|
-
ltfn =
|
|
894465
|
+
ltfn = gt4;
|
|
894469
894466
|
comp = "<";
|
|
894470
894467
|
ecomp = "<=";
|
|
894471
894468
|
break;
|
|
894472
894469
|
default:
|
|
894473
894470
|
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
894474
894471
|
}
|
|
894475
|
-
if (
|
|
894472
|
+
if (satisfies2(version42, range4, options)) {
|
|
894476
894473
|
return false;
|
|
894477
894474
|
}
|
|
894478
894475
|
for (let i6 = 0;i6 < range4.set.length; ++i6) {
|
|
@@ -894544,7 +894541,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894544
894541
|
init_dirname2();
|
|
894545
894542
|
init_buffer22();
|
|
894546
894543
|
init_process22();
|
|
894547
|
-
var
|
|
894544
|
+
var satisfies2 = require_satisfies2();
|
|
894548
894545
|
var compare = require_compare2();
|
|
894549
894546
|
module2.exports = (versions32, range4, options) => {
|
|
894550
894547
|
const set2 = [];
|
|
@@ -894552,7 +894549,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894552
894549
|
let prev = null;
|
|
894553
894550
|
const v62 = versions32.sort((a6, b52) => compare(a6, b52, options));
|
|
894554
894551
|
for (const version42 of v62) {
|
|
894555
|
-
const included =
|
|
894552
|
+
const included = satisfies2(version42, range4, options);
|
|
894556
894553
|
if (included) {
|
|
894557
894554
|
prev = version42;
|
|
894558
894555
|
if (!first) {
|
|
@@ -894597,7 +894594,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894597
894594
|
var Range = require_range22();
|
|
894598
894595
|
var Comparator = require_comparator2();
|
|
894599
894596
|
var { ANY } = Comparator;
|
|
894600
|
-
var
|
|
894597
|
+
var satisfies2 = require_satisfies2();
|
|
894601
894598
|
var compare = require_compare2();
|
|
894602
894599
|
var subset = (sub, dom, options = {}) => {
|
|
894603
894600
|
if (sub === dom) {
|
|
@@ -894644,10 +894641,10 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894644
894641
|
}
|
|
894645
894642
|
}
|
|
894646
894643
|
const eqSet = /* @__PURE__ */ new Set;
|
|
894647
|
-
let
|
|
894644
|
+
let gt4, lt6;
|
|
894648
894645
|
for (const c62 of sub) {
|
|
894649
894646
|
if (c62.operator === ">" || c62.operator === ">=") {
|
|
894650
|
-
|
|
894647
|
+
gt4 = higherGT(gt4, c62, options);
|
|
894651
894648
|
} else if (c62.operator === "<" || c62.operator === "<=") {
|
|
894652
894649
|
lt6 = lowerLT(lt6, c62, options);
|
|
894653
894650
|
} else {
|
|
@@ -894658,23 +894655,23 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894658
894655
|
return null;
|
|
894659
894656
|
}
|
|
894660
894657
|
let gtltComp;
|
|
894661
|
-
if (
|
|
894662
|
-
gtltComp = compare(
|
|
894658
|
+
if (gt4 && lt6) {
|
|
894659
|
+
gtltComp = compare(gt4.semver, lt6.semver, options);
|
|
894663
894660
|
if (gtltComp > 0) {
|
|
894664
894661
|
return null;
|
|
894665
|
-
} else if (gtltComp === 0 && (
|
|
894662
|
+
} else if (gtltComp === 0 && (gt4.operator !== ">=" || lt6.operator !== "<=")) {
|
|
894666
894663
|
return null;
|
|
894667
894664
|
}
|
|
894668
894665
|
}
|
|
894669
894666
|
for (const eq7 of eqSet) {
|
|
894670
|
-
if (
|
|
894667
|
+
if (gt4 && !satisfies2(eq7, String(gt4), options)) {
|
|
894671
894668
|
return null;
|
|
894672
894669
|
}
|
|
894673
|
-
if (lt6 && !
|
|
894670
|
+
if (lt6 && !satisfies2(eq7, String(lt6), options)) {
|
|
894674
894671
|
return null;
|
|
894675
894672
|
}
|
|
894676
894673
|
for (const c62 of dom) {
|
|
894677
|
-
if (!
|
|
894674
|
+
if (!satisfies2(eq7, String(c62), options)) {
|
|
894678
894675
|
return false;
|
|
894679
894676
|
}
|
|
894680
894677
|
}
|
|
@@ -894683,25 +894680,25 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894683
894680
|
let higher, lower;
|
|
894684
894681
|
let hasDomLT, hasDomGT;
|
|
894685
894682
|
let needDomLTPre = lt6 && !options.includePrerelease && lt6.semver.prerelease.length ? lt6.semver : false;
|
|
894686
|
-
let needDomGTPre =
|
|
894683
|
+
let needDomGTPre = gt4 && !options.includePrerelease && gt4.semver.prerelease.length ? gt4.semver : false;
|
|
894687
894684
|
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt6.operator === "<" && needDomLTPre.prerelease[0] === 0) {
|
|
894688
894685
|
needDomLTPre = false;
|
|
894689
894686
|
}
|
|
894690
894687
|
for (const c62 of dom) {
|
|
894691
894688
|
hasDomGT = hasDomGT || c62.operator === ">" || c62.operator === ">=";
|
|
894692
894689
|
hasDomLT = hasDomLT || c62.operator === "<" || c62.operator === "<=";
|
|
894693
|
-
if (
|
|
894690
|
+
if (gt4) {
|
|
894694
894691
|
if (needDomGTPre) {
|
|
894695
894692
|
if (c62.semver.prerelease && c62.semver.prerelease.length && c62.semver.major === needDomGTPre.major && c62.semver.minor === needDomGTPre.minor && c62.semver.patch === needDomGTPre.patch) {
|
|
894696
894693
|
needDomGTPre = false;
|
|
894697
894694
|
}
|
|
894698
894695
|
}
|
|
894699
894696
|
if (c62.operator === ">" || c62.operator === ">=") {
|
|
894700
|
-
higher = higherGT(
|
|
894701
|
-
if (higher === c62 && higher !==
|
|
894697
|
+
higher = higherGT(gt4, c62, options);
|
|
894698
|
+
if (higher === c62 && higher !== gt4) {
|
|
894702
894699
|
return false;
|
|
894703
894700
|
}
|
|
894704
|
-
} else if (
|
|
894701
|
+
} else if (gt4.operator === ">=" && !satisfies2(gt4.semver, String(c62), options)) {
|
|
894705
894702
|
return false;
|
|
894706
894703
|
}
|
|
894707
894704
|
}
|
|
@@ -894716,18 +894713,18 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894716
894713
|
if (lower === c62 && lower !== lt6) {
|
|
894717
894714
|
return false;
|
|
894718
894715
|
}
|
|
894719
|
-
} else if (lt6.operator === "<=" && !
|
|
894716
|
+
} else if (lt6.operator === "<=" && !satisfies2(lt6.semver, String(c62), options)) {
|
|
894720
894717
|
return false;
|
|
894721
894718
|
}
|
|
894722
894719
|
}
|
|
894723
|
-
if (!c62.operator && (lt6 ||
|
|
894720
|
+
if (!c62.operator && (lt6 || gt4) && gtltComp !== 0) {
|
|
894724
894721
|
return false;
|
|
894725
894722
|
}
|
|
894726
894723
|
}
|
|
894727
|
-
if (
|
|
894724
|
+
if (gt4 && hasDomLT && !lt6 && gtltComp !== 0) {
|
|
894728
894725
|
return false;
|
|
894729
894726
|
}
|
|
894730
|
-
if (lt6 && hasDomGT && !
|
|
894727
|
+
if (lt6 && hasDomGT && !gt4 && gtltComp !== 0) {
|
|
894731
894728
|
return false;
|
|
894732
894729
|
}
|
|
894733
894730
|
if (needDomGTPre || needDomLTPre) {
|
|
@@ -894776,7 +894773,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894776
894773
|
var compareBuild = require_compare_build2();
|
|
894777
894774
|
var sort2 = require_sort2();
|
|
894778
894775
|
var rsort = require_rsort2();
|
|
894779
|
-
var
|
|
894776
|
+
var gt4 = require_gt2();
|
|
894780
894777
|
var lt6 = require_lt2();
|
|
894781
894778
|
var eq7 = require_eq2();
|
|
894782
894779
|
var neq = require_neq2();
|
|
@@ -894786,7 +894783,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894786
894783
|
var coerce22 = require_coerce2();
|
|
894787
894784
|
var Comparator = require_comparator2();
|
|
894788
894785
|
var Range = require_range22();
|
|
894789
|
-
var
|
|
894786
|
+
var satisfies2 = require_satisfies2();
|
|
894790
894787
|
var toComparators = require_to_comparators2();
|
|
894791
894788
|
var maxSatisfying = require_max_satisfying2();
|
|
894792
894789
|
var minSatisfying = require_min_satisfying2();
|
|
@@ -894814,7 +894811,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894814
894811
|
compareBuild,
|
|
894815
894812
|
sort: sort2,
|
|
894816
894813
|
rsort,
|
|
894817
|
-
gt:
|
|
894814
|
+
gt: gt4,
|
|
894818
894815
|
lt: lt6,
|
|
894819
894816
|
eq: eq7,
|
|
894820
894817
|
neq,
|
|
@@ -894824,7 +894821,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
894824
894821
|
coerce: coerce22,
|
|
894825
894822
|
Comparator,
|
|
894826
894823
|
Range,
|
|
894827
|
-
satisfies,
|
|
894824
|
+
satisfies: satisfies2,
|
|
894828
894825
|
toComparators,
|
|
894829
894826
|
maxSatisfying,
|
|
894830
894827
|
minSatisfying,
|
|
@@ -896756,7 +896753,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
896756
896753
|
URL: () => _URL,
|
|
896757
896754
|
Url: () => Url,
|
|
896758
896755
|
default: () => exports19,
|
|
896759
|
-
fileURLToPath: () =>
|
|
896756
|
+
fileURLToPath: () => fileURLToPath13,
|
|
896760
896757
|
format: () => format23,
|
|
896761
896758
|
parse: () => parse17,
|
|
896762
896759
|
pathToFileURL: () => pathToFileURL,
|
|
@@ -896799,7 +896796,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
896799
896796
|
processPlatform = typeof Deno !== "undefined" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : undefined;
|
|
896800
896797
|
exports19.URL = typeof URL !== "undefined" ? URL : null;
|
|
896801
896798
|
exports19.pathToFileURL = pathToFileURL;
|
|
896802
|
-
exports19.fileURLToPath =
|
|
896799
|
+
exports19.fileURLToPath = fileURLToPath13;
|
|
896803
896800
|
Url = exports19.Url;
|
|
896804
896801
|
format23 = exports19.format;
|
|
896805
896802
|
resolve7 = exports19.resolve;
|
|
@@ -905196,14 +905193,14 @@ var init_tools = __esm(() => {
|
|
|
905196
905193
|
});
|
|
905197
905194
|
|
|
905198
905195
|
// src/mcp/server.ts
|
|
905199
|
-
import { fileURLToPath as
|
|
905200
|
-
import { dirname as
|
|
905196
|
+
import { fileURLToPath as fileURLToPath14 } from "url";
|
|
905197
|
+
import { dirname as dirname7, join as join25 } from "path";
|
|
905201
905198
|
import { readFileSync as readFileSync18 } from "fs";
|
|
905202
905199
|
function getMcpServerVersion() {
|
|
905203
905200
|
try {
|
|
905204
|
-
const
|
|
905205
|
-
const
|
|
905206
|
-
const packageJsonPath = join25(
|
|
905201
|
+
const __filename3 = fileURLToPath14(import.meta.url);
|
|
905202
|
+
const __dirname4 = dirname7(__filename3);
|
|
905203
|
+
const packageJsonPath = join25(__dirname4, "../../package.json");
|
|
905207
905204
|
const packageJson = JSON.parse(readFileSync18(packageJsonPath, "utf-8"));
|
|
905208
905205
|
return packageJson.version ?? "0.0.0";
|
|
905209
905206
|
} catch {
|
|
@@ -905270,7 +905267,7 @@ var init_adk_mcp = __esm(() => {
|
|
|
905270
905267
|
|
|
905271
905268
|
// src/mcp/config-generator.ts
|
|
905272
905269
|
import { existsSync as existsSync22, mkdirSync as mkdirSync6, writeFileSync as writeFileSync7, readFileSync as readFileSync19 } from "fs";
|
|
905273
|
-
import { dirname as
|
|
905270
|
+
import { dirname as dirname8, resolve as resolve9 } from "path";
|
|
905274
905271
|
function validatePath(basePath, relativePath) {
|
|
905275
905272
|
const resolvedBase = resolve9(basePath);
|
|
905276
905273
|
const resolvedPath = resolve9(basePath, relativePath);
|
|
@@ -905363,7 +905360,7 @@ function generateConfig(tool, cwd5, options = {}) {
|
|
|
905363
905360
|
};
|
|
905364
905361
|
}
|
|
905365
905362
|
try {
|
|
905366
|
-
const dir =
|
|
905363
|
+
const dir = dirname8(configPath);
|
|
905367
905364
|
if (!existsSync22(dir)) {
|
|
905368
905365
|
mkdirSync6(dir, { recursive: true });
|
|
905369
905366
|
}
|
|
@@ -906119,8 +906116,8 @@ var {
|
|
|
906119
906116
|
|
|
906120
906117
|
// src/cli.ts
|
|
906121
906118
|
import { readFileSync as readFileSync20 } from "fs";
|
|
906122
|
-
import { join as join28, dirname as
|
|
906123
|
-
import { fileURLToPath as
|
|
906119
|
+
import { join as join28, dirname as dirname9 } from "path";
|
|
906120
|
+
import { fileURLToPath as fileURLToPath15 } from "url";
|
|
906124
906121
|
|
|
906125
906122
|
// src/utils/version-check.tsx
|
|
906126
906123
|
await init_build2();
|
|
@@ -906550,12 +906547,12 @@ if (!checkNodeVersion(true)) {
|
|
|
906550
906547
|
checkNodeVersion(false);
|
|
906551
906548
|
process.exit(1);
|
|
906552
906549
|
}
|
|
906553
|
-
var CLI_VERSION = "1.11.
|
|
906550
|
+
var CLI_VERSION = "1.11.8";
|
|
906554
906551
|
if (CLI_VERSION.startsWith("<<") && CLI_VERSION.endsWith(">>")) {
|
|
906555
906552
|
try {
|
|
906556
|
-
const
|
|
906557
|
-
const
|
|
906558
|
-
const packageJson = JSON.parse(readFileSync20(join28(
|
|
906553
|
+
const __filename3 = fileURLToPath15(import.meta.url);
|
|
906554
|
+
const __dirname4 = dirname9(__filename3);
|
|
906555
|
+
const packageJson = JSON.parse(readFileSync20(join28(__dirname4, "../package.json"), "utf-8"));
|
|
906559
906556
|
CLI_VERSION = packageJson.version;
|
|
906560
906557
|
} catch {}
|
|
906561
906558
|
}
|