@botpress/adk-cli 1.11.2 → 1.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +22 -10
- 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.4", adk: "1.11.4", 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.4", adk: "1.11.4", 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({
|
|
@@ -697371,6 +697371,10 @@ class Auth {
|
|
|
697371
697371
|
const { profile = "default", apiUrl = "https://api.botpress.cloud" } = options;
|
|
697372
697372
|
const authService = new AuthService(apiUrl);
|
|
697373
697373
|
const authResult = await authService.validateToken(token);
|
|
697374
|
+
try {
|
|
697375
|
+
const client = new Nx({ apiUrl, token });
|
|
697376
|
+
await client.setAccountPreference({ key: "adkCliConnected", value: true });
|
|
697377
|
+
} catch {}
|
|
697374
697378
|
await this.credentialsManager.saveCredentials(profile, {
|
|
697375
697379
|
token,
|
|
697376
697380
|
apiUrl,
|
|
@@ -699796,7 +699800,7 @@ class AgentProjectGenerator {
|
|
|
699796
699800
|
deploy: "adk deploy"
|
|
699797
699801
|
},
|
|
699798
699802
|
dependencies: {
|
|
699799
|
-
"@botpress/runtime": "^1.11.
|
|
699803
|
+
"@botpress/runtime": "^1.11.4"
|
|
699800
699804
|
},
|
|
699801
699805
|
devDependencies: {
|
|
699802
699806
|
typescript: "^5.9.3"
|
|
@@ -701695,10 +701699,14 @@ declare module "@botpress/runtime/_types/state" {
|
|
|
701695
701699
|
const configData = config3 && Object.keys(config3).length > 0 ? `, configuration: ${JSON.stringify(config3)}` : "";
|
|
701696
701700
|
addIntegrations.push(`bot.addIntegration(${importName}, { alias: "${alias}", enabled: true${configType}${configData} });`);
|
|
701697
701701
|
}
|
|
701702
|
+
const botTags = {};
|
|
701698
701703
|
const userTags = {};
|
|
701699
701704
|
const conversationTags = {};
|
|
701700
701705
|
const messageTags = {};
|
|
701701
701706
|
const workflowTags = {};
|
|
701707
|
+
if (project.config?.bot?.tags) {
|
|
701708
|
+
Object.assign(botTags, project.config.bot.tags);
|
|
701709
|
+
}
|
|
701702
701710
|
if (project.config?.user?.tags) {
|
|
701703
701711
|
Object.assign(userTags, project.config.user.tags);
|
|
701704
701712
|
}
|
|
@@ -701811,6 +701819,9 @@ declare module "@botpress/runtime/_types/state" {
|
|
|
701811
701819
|
attributes: {
|
|
701812
701820
|
runtime: "adk",
|
|
701813
701821
|
runtimeVersion: "${ADK_VERSION}",
|
|
701822
|
+
${Object.keys(botTags).length > 0 ? Object.entries(botTags).map(([tag, meta]) => `${meta.description ? `// ${meta.description}
|
|
701823
|
+
` : ""}"${tag}": ${JSON.stringify(meta.title)}`).join(`,
|
|
701824
|
+
`) : ""}
|
|
701814
701825
|
},
|
|
701815
701826
|
${configSchemaCode ? `
|
|
701816
701827
|
configuration: {
|
|
@@ -704044,7 +704055,7 @@ var import_ts_morph, __defProp11, __commonJS7 = (cb4, mod) => () => (mod || cb4(
|
|
|
704044
704055
|
`));
|
|
704045
704056
|
return code;
|
|
704046
704057
|
}
|
|
704047
|
-
}, ADK_VERSION = "1.11.
|
|
704058
|
+
}, ADK_VERSION = "1.11.4", relative22 = (from, to3) => {
|
|
704048
704059
|
const fromDir = path102.dirname(from);
|
|
704049
704060
|
const relative32 = path102.relative(fromDir, to3);
|
|
704050
704061
|
return relative32.startsWith(".") ? relative32 : `./${relative32}`;
|
|
@@ -704116,6 +704127,7 @@ var import_ts_morph, __defProp11, __commonJS7 = (cb4, mod) => () => (mod || cb4(
|
|
|
704116
704127
|
var init_dist17 = __esm(() => {
|
|
704117
704128
|
init_dist6();
|
|
704118
704129
|
init_dist5();
|
|
704130
|
+
init_dist5();
|
|
704119
704131
|
init_execa();
|
|
704120
704132
|
init_execa();
|
|
704121
704133
|
init_execa();
|
|
@@ -704259,7 +704271,7 @@ var init_dist17 = __esm(() => {
|
|
|
704259
704271
|
require_package3 = __commonJS7((exports7, module) => {
|
|
704260
704272
|
module.exports = {
|
|
704261
704273
|
name: "@botpress/adk",
|
|
704262
|
-
version: "1.11.
|
|
704274
|
+
version: "1.11.4",
|
|
704263
704275
|
description: "Core ADK library for building AI agents on Botpress",
|
|
704264
704276
|
type: "module",
|
|
704265
704277
|
main: "dist/index.js",
|
|
@@ -704306,7 +704318,7 @@ var init_dist17 = __esm(() => {
|
|
|
704306
704318
|
"@botpress/cli": "^4.27.3",
|
|
704307
704319
|
"@botpress/client": "^1.27.2",
|
|
704308
704320
|
"@botpress/cognitive": "^0.2.0",
|
|
704309
|
-
"@botpress/runtime": "^1.11.
|
|
704321
|
+
"@botpress/runtime": "^1.11.4",
|
|
704310
704322
|
"@botpress/sdk": "^4.18.1",
|
|
704311
704323
|
"@bpinternal/jex": "^1.2.4",
|
|
704312
704324
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
@@ -710853,7 +710865,7 @@ var init_Separator = __esm(async () => {
|
|
|
710853
710865
|
var require_package4 = __commonJS((exports7, module) => {
|
|
710854
710866
|
module.exports = {
|
|
710855
710867
|
name: "@botpress/adk",
|
|
710856
|
-
version: "1.11.
|
|
710868
|
+
version: "1.11.4",
|
|
710857
710869
|
description: "Core ADK library for building AI agents on Botpress",
|
|
710858
710870
|
type: "module",
|
|
710859
710871
|
main: "dist/index.js",
|
|
@@ -710900,7 +710912,7 @@ var require_package4 = __commonJS((exports7, module) => {
|
|
|
710900
710912
|
"@botpress/cli": "^4.27.3",
|
|
710901
710913
|
"@botpress/client": "^1.27.2",
|
|
710902
710914
|
"@botpress/cognitive": "^0.2.0",
|
|
710903
|
-
"@botpress/runtime": "^1.11.
|
|
710915
|
+
"@botpress/runtime": "^1.11.4",
|
|
710904
710916
|
"@botpress/sdk": "^4.18.1",
|
|
710905
710917
|
"@bpinternal/jex": "^1.2.4",
|
|
710906
710918
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
@@ -712847,7 +712859,7 @@ function checkRuntimeVersion(agentRoot) {
|
|
|
712847
712859
|
`));
|
|
712848
712860
|
}
|
|
712849
712861
|
}
|
|
712850
|
-
var semver2, EXPECTED_RUNTIME_VERSION = "1.11.
|
|
712862
|
+
var semver2, EXPECTED_RUNTIME_VERSION = "1.11.4";
|
|
712851
712863
|
var init_runtime_version_check = __esm(() => {
|
|
712852
712864
|
init_source();
|
|
712853
712865
|
semver2 = __toESM(require_semver2(), 1);
|
|
@@ -906538,7 +906550,7 @@ if (!checkNodeVersion(true)) {
|
|
|
906538
906550
|
checkNodeVersion(false);
|
|
906539
906551
|
process.exit(1);
|
|
906540
906552
|
}
|
|
906541
|
-
var CLI_VERSION = "1.11.
|
|
906553
|
+
var CLI_VERSION = "1.11.4";
|
|
906542
906554
|
if (CLI_VERSION.startsWith("<<") && CLI_VERSION.endsWith(">>")) {
|
|
906543
906555
|
try {
|
|
906544
906556
|
const __filename2 = fileURLToPath14(import.meta.url);
|
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.4",
|
|
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.4",
|
|
45
45
|
"@botpress/cli": "^4.27.3",
|
|
46
|
-
"@botpress/runtime": "^1.11.
|
|
46
|
+
"@botpress/runtime": "^1.11.4",
|
|
47
47
|
"@botpress/webchat-client": "^0.4.0",
|
|
48
48
|
"@modelcontextprotocol/sdk": "^1.24.3",
|
|
49
49
|
"adm-zip": "^0.5.16",
|