@botpress/adk-cli 1.11.6 → 1.11.7
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 +65 -56
- 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.7", adk: "1.11.7", 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.7", adk: "1.11.7", 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.7"
|
|
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);
|
|
@@ -704055,11 +704062,11 @@ var import_ts_morph, __defProp11, __commonJS7 = (cb4, mod) => () => (mod || cb4(
|
|
|
704055
704062
|
`));
|
|
704056
704063
|
return code;
|
|
704057
704064
|
}
|
|
704058
|
-
}, ADK_VERSION = "1.11.
|
|
704065
|
+
}, ADK_VERSION = "1.11.7", relative22 = (from, to3) => {
|
|
704059
704066
|
const fromDir = path102.dirname(from);
|
|
704060
704067
|
const relative32 = path102.relative(fromDir, to3);
|
|
704061
704068
|
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) => {
|
|
704069
|
+
}, 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
704070
|
return crypto24.createHash("sha256").update(`${integration.alias}|${integration.definition?.id}|${integration.definition?.version}|${integration.definition?.updatedAt}`).digest("hex");
|
|
704064
704071
|
}, getPascalAlias = (integration) => pascalCase(getIntegrationAlias(integration.alias)), getIntegrationNames = (integration) => ({
|
|
704065
704072
|
typings: {
|
|
@@ -704104,7 +704111,7 @@ var import_ts_morph, __defProp11, __commonJS7 = (cb4, mod) => () => (mod || cb4(
|
|
|
704104
704111
|
} catch {
|
|
704105
704112
|
try {
|
|
704106
704113
|
const adkPackagePath = join72(process.cwd(), "node_modules/@botpress/adk/package.json");
|
|
704107
|
-
const pkg = JSON.parse(
|
|
704114
|
+
const pkg = JSON.parse(readFileSync22(adkPackagePath, "utf-8"));
|
|
704108
704115
|
return pkg.version;
|
|
704109
704116
|
} catch {
|
|
704110
704117
|
return "unknown";
|
|
@@ -704117,7 +704124,7 @@ var import_ts_morph, __defProp11, __commonJS7 = (cb4, mod) => () => (mod || cb4(
|
|
|
704117
704124
|
} catch {
|
|
704118
704125
|
try {
|
|
704119
704126
|
const adkPackagePath = join9(process.cwd(), "node_modules/@botpress/adk/package.json");
|
|
704120
|
-
const pkg = JSON.parse(
|
|
704127
|
+
const pkg = JSON.parse(readFileSync32(adkPackagePath, "utf-8"));
|
|
704121
704128
|
return pkg.version;
|
|
704122
704129
|
} catch {
|
|
704123
704130
|
return "unknown";
|
|
@@ -704271,7 +704278,7 @@ var init_dist17 = __esm(() => {
|
|
|
704271
704278
|
require_package3 = __commonJS7((exports7, module) => {
|
|
704272
704279
|
module.exports = {
|
|
704273
704280
|
name: "@botpress/adk",
|
|
704274
|
-
version: "1.11.
|
|
704281
|
+
version: "1.11.7",
|
|
704275
704282
|
description: "Core ADK library for building AI agents on Botpress",
|
|
704276
704283
|
type: "module",
|
|
704277
704284
|
main: "dist/index.js",
|
|
@@ -704318,7 +704325,7 @@ var init_dist17 = __esm(() => {
|
|
|
704318
704325
|
"@botpress/cli": "^4.27.3",
|
|
704319
704326
|
"@botpress/client": "^1.27.2",
|
|
704320
704327
|
"@botpress/cognitive": "^0.2.0",
|
|
704321
|
-
"@botpress/runtime": "^1.11.
|
|
704328
|
+
"@botpress/runtime": "^1.11.7",
|
|
704322
704329
|
"@botpress/sdk": "^4.18.1",
|
|
704323
704330
|
"@bpinternal/jex": "^1.2.4",
|
|
704324
704331
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
@@ -705677,6 +705684,8 @@ ${this.stderrLines.join(`
|
|
|
705677
705684
|
init_agent_resolver();
|
|
705678
705685
|
init_types6();
|
|
705679
705686
|
init_utils8();
|
|
705687
|
+
__filename2 = fileURLToPath7(import.meta.url);
|
|
705688
|
+
__dirname2 = path15.dirname(__filename2);
|
|
705680
705689
|
init_fs();
|
|
705681
705690
|
init_utils8();
|
|
705682
705691
|
init_utils8();
|
|
@@ -706082,7 +706091,7 @@ function pathKey2(options = {}) {
|
|
|
706082
706091
|
// ../../node_modules/clipboardy/node_modules/execa/node_modules/npm-run-path/index.js
|
|
706083
706092
|
import process26 from "process";
|
|
706084
706093
|
import path35 from "path";
|
|
706085
|
-
import { fileURLToPath as
|
|
706094
|
+
import { fileURLToPath as fileURLToPath8 } from "url";
|
|
706086
706095
|
var npmRunPath2 = ({
|
|
706087
706096
|
cwd: cwd4 = process26.cwd(),
|
|
706088
706097
|
path: pathOption = process26.env[pathKey2()],
|
|
@@ -706090,7 +706099,7 @@ var npmRunPath2 = ({
|
|
|
706090
706099
|
execPath: execPath3 = process26.execPath,
|
|
706091
706100
|
addExecPath = true
|
|
706092
706101
|
} = {}) => {
|
|
706093
|
-
const cwdString = cwd4 instanceof URL ?
|
|
706102
|
+
const cwdString = cwd4 instanceof URL ? fileURLToPath8(cwd4) : cwd4;
|
|
706094
706103
|
const cwdPath = path35.resolve(cwdString);
|
|
706095
706104
|
const result = [];
|
|
706096
706105
|
if (preferLocal) {
|
|
@@ -706108,7 +706117,7 @@ var npmRunPath2 = ({
|
|
|
706108
706117
|
cwdPath = path35.resolve(cwdPath, "..");
|
|
706109
706118
|
}
|
|
706110
706119
|
}, applyExecPath2 = (result, execPath3, cwdPath) => {
|
|
706111
|
-
const execPathString = execPath3 instanceof URL ?
|
|
706120
|
+
const execPathString = execPath3 instanceof URL ? fileURLToPath8(execPath3) : execPath3;
|
|
706112
706121
|
result.push(path35.resolve(cwdPath, execPathString, ".."));
|
|
706113
706122
|
}, npmRunPathEnv2 = ({ env: env6 = process26.env, ...options } = {}) => {
|
|
706114
706123
|
env6 = { ...env6 };
|
|
@@ -707443,8 +707452,8 @@ var init_termux = __esm(() => {
|
|
|
707443
707452
|
|
|
707444
707453
|
// ../../node_modules/clipboardy/lib/linux.js
|
|
707445
707454
|
import path38 from "path";
|
|
707446
|
-
import { fileURLToPath as
|
|
707447
|
-
var
|
|
707455
|
+
import { fileURLToPath as fileURLToPath9 } from "url";
|
|
707456
|
+
var __dirname3, xsel = "xsel", xselFallback, copyArguments, pasteArguments, makeError3 = (xselError, fallbackError) => {
|
|
707448
707457
|
let error;
|
|
707449
707458
|
if (xselError.code === "ENOENT") {
|
|
707450
707459
|
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 +707488,8 @@ var __dirname2, xsel = "xsel", xselFallback, copyArguments, pasteArguments, make
|
|
|
707479
707488
|
}, clipboard2, linux_default;
|
|
707480
707489
|
var init_linux = __esm(() => {
|
|
707481
707490
|
init_execa2();
|
|
707482
|
-
|
|
707483
|
-
xselFallback = path38.join(
|
|
707491
|
+
__dirname3 = path38.dirname(fileURLToPath9(import.meta.url));
|
|
707492
|
+
xselFallback = path38.join(__dirname3, "../fallbacks/linux/xsel");
|
|
707484
707493
|
copyArguments = ["--clipboard", "--input"];
|
|
707485
707494
|
pasteArguments = ["--clipboard", "--output"];
|
|
707486
707495
|
clipboard2 = {
|
|
@@ -707561,14 +707570,14 @@ var init_is64bit = __esm(() => {
|
|
|
707561
707570
|
|
|
707562
707571
|
// ../../node_modules/clipboardy/lib/windows.js
|
|
707563
707572
|
import path39 from "path";
|
|
707564
|
-
import { fileURLToPath as
|
|
707565
|
-
var
|
|
707573
|
+
import { fileURLToPath as fileURLToPath10 } from "url";
|
|
707574
|
+
var __dirname5, binarySuffix, windowBinaryPath, clipboard4, windows_default;
|
|
707566
707575
|
var init_windows = __esm(() => {
|
|
707567
707576
|
init_execa2();
|
|
707568
707577
|
init_is64bit();
|
|
707569
|
-
|
|
707578
|
+
__dirname5 = path39.dirname(fileURLToPath10(import.meta.url));
|
|
707570
707579
|
binarySuffix = is64bitSync() ? "x86_64" : "i686";
|
|
707571
|
-
windowBinaryPath = path39.join(
|
|
707580
|
+
windowBinaryPath = path39.join(__dirname5, `../fallbacks/windows/clipboard_${binarySuffix}.exe`);
|
|
707572
707581
|
clipboard4 = {
|
|
707573
707582
|
copy: async (options) => execa2(windowBinaryPath, ["--copy"], options),
|
|
707574
707583
|
async paste(options) {
|
|
@@ -709280,7 +709289,7 @@ var init_default_browser = __esm(() => {
|
|
|
709280
709289
|
import process36 from "process";
|
|
709281
709290
|
import { Buffer as Buffer8 } from "buffer";
|
|
709282
709291
|
import path40 from "path";
|
|
709283
|
-
import { fileURLToPath as
|
|
709292
|
+
import { fileURLToPath as fileURLToPath11 } from "url";
|
|
709284
709293
|
import { promisify as promisify9 } from "util";
|
|
709285
709294
|
import childProcess3 from "child_process";
|
|
709286
709295
|
import fs25, { constants as fsConstants2 } from "fs/promises";
|
|
@@ -709324,7 +709333,7 @@ function detectPlatformBinary({ [platform4]: platformBinary }, { wsl }) {
|
|
|
709324
709333
|
}
|
|
709325
709334
|
return detectArchBinary(platformBinary);
|
|
709326
709335
|
}
|
|
709327
|
-
var execFile5,
|
|
709336
|
+
var execFile5, __dirname6, localXdgOpenPath, platform4, arch3, pTryEach = async (array, mapper) => {
|
|
709328
709337
|
let latestError;
|
|
709329
709338
|
for (const item of array) {
|
|
709330
709339
|
try {
|
|
@@ -709437,7 +709446,7 @@ var execFile5, __dirname4, localXdgOpenPath, platform4, arch3, pTryEach = async
|
|
|
709437
709446
|
if (app) {
|
|
709438
709447
|
command = app;
|
|
709439
709448
|
} else {
|
|
709440
|
-
const isBundled = !
|
|
709449
|
+
const isBundled = !__dirname6 || __dirname6 === "/";
|
|
709441
709450
|
let exeLocalXdgOpen = false;
|
|
709442
709451
|
try {
|
|
709443
709452
|
await fs25.access(localXdgOpenPath, fsConstants2.X_OK);
|
|
@@ -709489,8 +709498,8 @@ var init_open = __esm(() => {
|
|
|
709489
709498
|
init_default_browser();
|
|
709490
709499
|
init_is_inside_container();
|
|
709491
709500
|
execFile5 = promisify9(childProcess3.execFile);
|
|
709492
|
-
|
|
709493
|
-
localXdgOpenPath = path40.join(
|
|
709501
|
+
__dirname6 = path40.dirname(fileURLToPath11(import.meta.url));
|
|
709502
|
+
localXdgOpenPath = path40.join(__dirname6, "xdg-open");
|
|
709494
709503
|
({ platform: platform4, arch: arch3 } = process36);
|
|
709495
709504
|
apps = {};
|
|
709496
709505
|
defineLazyProperty(apps, "chrome", () => detectPlatformBinary({
|
|
@@ -710865,7 +710874,7 @@ var init_Separator = __esm(async () => {
|
|
|
710865
710874
|
var require_package4 = __commonJS((exports7, module) => {
|
|
710866
710875
|
module.exports = {
|
|
710867
710876
|
name: "@botpress/adk",
|
|
710868
|
-
version: "1.11.
|
|
710877
|
+
version: "1.11.7",
|
|
710869
710878
|
description: "Core ADK library for building AI agents on Botpress",
|
|
710870
710879
|
type: "module",
|
|
710871
710880
|
main: "dist/index.js",
|
|
@@ -710912,7 +710921,7 @@ var require_package4 = __commonJS((exports7, module) => {
|
|
|
710912
710921
|
"@botpress/cli": "^4.27.3",
|
|
710913
710922
|
"@botpress/client": "^1.27.2",
|
|
710914
710923
|
"@botpress/cognitive": "^0.2.0",
|
|
710915
|
-
"@botpress/runtime": "^1.11.
|
|
710924
|
+
"@botpress/runtime": "^1.11.7",
|
|
710916
710925
|
"@botpress/sdk": "^4.18.1",
|
|
710917
710926
|
"@bpinternal/jex": "^1.2.4",
|
|
710918
710927
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
@@ -712859,7 +712868,7 @@ function checkRuntimeVersion(agentRoot) {
|
|
|
712859
712868
|
`));
|
|
712860
712869
|
}
|
|
712861
712870
|
}
|
|
712862
|
-
var semver2, EXPECTED_RUNTIME_VERSION = "1.11.
|
|
712871
|
+
var semver2, EXPECTED_RUNTIME_VERSION = "1.11.7";
|
|
712863
712872
|
var init_runtime_version_check = __esm(() => {
|
|
712864
712873
|
init_source();
|
|
712865
712874
|
semver2 = __toESM(require_semver2(), 1);
|
|
@@ -716637,17 +716646,17 @@ function getContentType(pathname) {
|
|
|
716637
716646
|
import { readFileSync as readFileSync14, existsSync as existsSync15 } from "fs";
|
|
716638
716647
|
import { join as join16, resolve as resolve5 } from "path";
|
|
716639
716648
|
import path41 from "path";
|
|
716640
|
-
import { fileURLToPath as
|
|
716649
|
+
import { fileURLToPath as fileURLToPath12 } from "url";
|
|
716641
716650
|
function getUIDistPath() {
|
|
716642
|
-
const
|
|
716643
|
-
const
|
|
716644
|
-
const isBinary = !
|
|
716651
|
+
const __filename3 = fileURLToPath12(import.meta.url);
|
|
716652
|
+
const __dirname4 = path41.dirname(__filename3);
|
|
716653
|
+
const isBinary = !__filename3.endsWith(".js") && !__filename3.endsWith(".ts");
|
|
716645
716654
|
if (isBinary) {
|
|
716646
716655
|
const execDir = path41.dirname(process.execPath);
|
|
716647
716656
|
return resolve5(execDir, "assets/ui-dist");
|
|
716648
716657
|
} else {
|
|
716649
|
-
const isCompiledDist =
|
|
716650
|
-
return isCompiledDist ? resolve5(
|
|
716658
|
+
const isCompiledDist = __filename3.includes("/dist/");
|
|
716659
|
+
return isCompiledDist ? resolve5(__dirname4, "../assets/ui-dist") : resolve5(__dirname4, "../../assets/ui-dist");
|
|
716651
716660
|
}
|
|
716652
716661
|
}
|
|
716653
716662
|
function serveStaticFile(pathname, uiDistPath) {
|
|
@@ -722739,7 +722748,7 @@ var stripTrailingSlashes = (str) => {
|
|
|
722739
722748
|
|
|
722740
722749
|
// ../../node_modules/tar/dist/esm/list.js
|
|
722741
722750
|
import fs28 from "fs";
|
|
722742
|
-
import { dirname as
|
|
722751
|
+
import { dirname as dirname5, parse as parse9 } from "path";
|
|
722743
722752
|
var onReadEntryFunction = (opt) => {
|
|
722744
722753
|
const onReadEntry = opt.onReadEntry;
|
|
722745
722754
|
opt.onReadEntry = onReadEntry ? (e6) => {
|
|
@@ -722759,7 +722768,7 @@ var onReadEntryFunction = (opt) => {
|
|
|
722759
722768
|
if (m2 !== undefined) {
|
|
722760
722769
|
ret = m2;
|
|
722761
722770
|
} else {
|
|
722762
|
-
ret = mapHas(
|
|
722771
|
+
ret = mapHas(dirname5(file), root5);
|
|
722763
722772
|
}
|
|
722764
722773
|
}
|
|
722765
722774
|
map.set(file, ret);
|
|
@@ -727972,7 +727981,7 @@ __export(exports_upgrade, {
|
|
|
727972
727981
|
adkSelfUpgrade: () => adkSelfUpgrade
|
|
727973
727982
|
});
|
|
727974
727983
|
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
|
|
727984
|
+
import { join as join19, dirname as dirname6 } from "path";
|
|
727976
727985
|
import { tmpdir } from "os";
|
|
727977
727986
|
import { execSync as execSync4 } from "child_process";
|
|
727978
727987
|
function getPlatformInfo() {
|
|
@@ -728060,7 +728069,7 @@ function getCurrentBinaryPath() {
|
|
|
728060
728069
|
}
|
|
728061
728070
|
function checkWritePermissions(path36) {
|
|
728062
728071
|
try {
|
|
728063
|
-
const dir =
|
|
728072
|
+
const dir = dirname6(path36);
|
|
728064
728073
|
accessSync(dir, constants8.W_OK);
|
|
728065
728074
|
if (existsSync17(path36)) {
|
|
728066
728075
|
accessSync(path36, constants8.W_OK);
|
|
@@ -872048,7 +872057,7 @@ function dew18() {
|
|
|
872048
872057
|
exports$114.Url = Url2;
|
|
872049
872058
|
return exports$114;
|
|
872050
872059
|
}
|
|
872051
|
-
function
|
|
872060
|
+
function fileURLToPath13(path210) {
|
|
872052
872061
|
if (typeof path210 === "string")
|
|
872053
872062
|
path210 = new URL(path210);
|
|
872054
872063
|
else if (!(path210 instanceof URL)) {
|
|
@@ -896756,7 +896765,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
896756
896765
|
URL: () => _URL,
|
|
896757
896766
|
Url: () => Url,
|
|
896758
896767
|
default: () => exports19,
|
|
896759
|
-
fileURLToPath: () =>
|
|
896768
|
+
fileURLToPath: () => fileURLToPath13,
|
|
896760
896769
|
format: () => format23,
|
|
896761
896770
|
parse: () => parse17,
|
|
896762
896771
|
pathToFileURL: () => pathToFileURL,
|
|
@@ -896799,7 +896808,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
|
896799
896808
|
processPlatform = typeof Deno !== "undefined" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : undefined;
|
|
896800
896809
|
exports19.URL = typeof URL !== "undefined" ? URL : null;
|
|
896801
896810
|
exports19.pathToFileURL = pathToFileURL;
|
|
896802
|
-
exports19.fileURLToPath =
|
|
896811
|
+
exports19.fileURLToPath = fileURLToPath13;
|
|
896803
896812
|
Url = exports19.Url;
|
|
896804
896813
|
format23 = exports19.format;
|
|
896805
896814
|
resolve7 = exports19.resolve;
|
|
@@ -905196,14 +905205,14 @@ var init_tools = __esm(() => {
|
|
|
905196
905205
|
});
|
|
905197
905206
|
|
|
905198
905207
|
// src/mcp/server.ts
|
|
905199
|
-
import { fileURLToPath as
|
|
905200
|
-
import { dirname as
|
|
905208
|
+
import { fileURLToPath as fileURLToPath14 } from "url";
|
|
905209
|
+
import { dirname as dirname7, join as join25 } from "path";
|
|
905201
905210
|
import { readFileSync as readFileSync18 } from "fs";
|
|
905202
905211
|
function getMcpServerVersion() {
|
|
905203
905212
|
try {
|
|
905204
|
-
const
|
|
905205
|
-
const
|
|
905206
|
-
const packageJsonPath = join25(
|
|
905213
|
+
const __filename3 = fileURLToPath14(import.meta.url);
|
|
905214
|
+
const __dirname4 = dirname7(__filename3);
|
|
905215
|
+
const packageJsonPath = join25(__dirname4, "../../package.json");
|
|
905207
905216
|
const packageJson = JSON.parse(readFileSync18(packageJsonPath, "utf-8"));
|
|
905208
905217
|
return packageJson.version ?? "0.0.0";
|
|
905209
905218
|
} catch {
|
|
@@ -905270,7 +905279,7 @@ var init_adk_mcp = __esm(() => {
|
|
|
905270
905279
|
|
|
905271
905280
|
// src/mcp/config-generator.ts
|
|
905272
905281
|
import { existsSync as existsSync22, mkdirSync as mkdirSync6, writeFileSync as writeFileSync7, readFileSync as readFileSync19 } from "fs";
|
|
905273
|
-
import { dirname as
|
|
905282
|
+
import { dirname as dirname8, resolve as resolve9 } from "path";
|
|
905274
905283
|
function validatePath(basePath, relativePath) {
|
|
905275
905284
|
const resolvedBase = resolve9(basePath);
|
|
905276
905285
|
const resolvedPath = resolve9(basePath, relativePath);
|
|
@@ -905363,7 +905372,7 @@ function generateConfig(tool, cwd5, options = {}) {
|
|
|
905363
905372
|
};
|
|
905364
905373
|
}
|
|
905365
905374
|
try {
|
|
905366
|
-
const dir =
|
|
905375
|
+
const dir = dirname8(configPath);
|
|
905367
905376
|
if (!existsSync22(dir)) {
|
|
905368
905377
|
mkdirSync6(dir, { recursive: true });
|
|
905369
905378
|
}
|
|
@@ -906119,8 +906128,8 @@ var {
|
|
|
906119
906128
|
|
|
906120
906129
|
// src/cli.ts
|
|
906121
906130
|
import { readFileSync as readFileSync20 } from "fs";
|
|
906122
|
-
import { join as join28, dirname as
|
|
906123
|
-
import { fileURLToPath as
|
|
906131
|
+
import { join as join28, dirname as dirname9 } from "path";
|
|
906132
|
+
import { fileURLToPath as fileURLToPath15 } from "url";
|
|
906124
906133
|
|
|
906125
906134
|
// src/utils/version-check.tsx
|
|
906126
906135
|
await init_build2();
|
|
@@ -906550,12 +906559,12 @@ if (!checkNodeVersion(true)) {
|
|
|
906550
906559
|
checkNodeVersion(false);
|
|
906551
906560
|
process.exit(1);
|
|
906552
906561
|
}
|
|
906553
|
-
var CLI_VERSION = "1.11.
|
|
906562
|
+
var CLI_VERSION = "1.11.7";
|
|
906554
906563
|
if (CLI_VERSION.startsWith("<<") && CLI_VERSION.endsWith(">>")) {
|
|
906555
906564
|
try {
|
|
906556
|
-
const
|
|
906557
|
-
const
|
|
906558
|
-
const packageJson = JSON.parse(readFileSync20(join28(
|
|
906565
|
+
const __filename3 = fileURLToPath15(import.meta.url);
|
|
906566
|
+
const __dirname4 = dirname9(__filename3);
|
|
906567
|
+
const packageJson = JSON.parse(readFileSync20(join28(__dirname4, "../package.json"), "utf-8"));
|
|
906559
906568
|
CLI_VERSION = packageJson.version;
|
|
906560
906569
|
} catch {}
|
|
906561
906570
|
}
|
package/dist/commands.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/adk-cli",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.7",
|
|
4
4
|
"description": "Command-line interface for the Botpress Agent Development Kit (ADK)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"url": "https://github.com/botpress/adk"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@botpress/adk": "^1.11.
|
|
44
|
+
"@botpress/adk": "^1.11.7",
|
|
45
45
|
"@botpress/cli": "^4.27.3",
|
|
46
|
-
"@botpress/runtime": "^1.11.
|
|
46
|
+
"@botpress/runtime": "^1.11.7",
|
|
47
47
|
"@botpress/webchat-client": "^0.4.0",
|
|
48
48
|
"@modelcontextprotocol/sdk": "^1.24.3",
|
|
49
49
|
"adm-zip": "^0.5.16",
|