@botpress/adk-cli 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +38 -34
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -352569,7 +352569,15 @@ var import_const, import_const2, __create4, __defProp8, __getOwnPropDesc3, __get
|
|
|
352569
352569
|
return tracker;
|
|
352570
352570
|
}
|
|
352571
352571
|
throw new Error("PromiseTracker not found in context. Make sure to initialize it in your runtime setup.");
|
|
352572
|
-
}, InterfaceMappings
|
|
352572
|
+
}, InterfaceMappings = class {
|
|
352573
|
+
mappings = {};
|
|
352574
|
+
registerMappings(mappings) {
|
|
352575
|
+
this.mappings = { ...this.mappings, ...mappings };
|
|
352576
|
+
}
|
|
352577
|
+
getIntegrationAction(interfaceName, actionName, integrationName) {
|
|
352578
|
+
return this.mappings[interfaceName]?.actions[`${integrationName}:${actionName}`];
|
|
352579
|
+
}
|
|
352580
|
+
}, interfaceMappings, BOT_ID_HEADER = "x-bot-id", BOT_USER_ID_HEADER = "x-bot-user-id", WEBHOOK_ID_HEADER = "x-webhook-id", CONFIGURATION_TYPE_HEADER = "x-bp-configuration-type", CONFIGURATION_PAYLOAD_HEADER = "x-bp-configuration", OPERATION_TYPE_HEADER = "x-bp-operation", OPERATION_SUBTYPE_HEADER = "x-bp-type", LOG_DELIMITER = `<|MESSAGE_END|>
|
|
352573
352581
|
`, AgentRegistry = class {
|
|
352574
352582
|
_data = null;
|
|
352575
352583
|
initialize(data) {
|
|
@@ -354127,7 +354135,7 @@ var import_const, import_const2, __create4, __defProp8, __getOwnPropDesc3, __get
|
|
|
354127
354135
|
}
|
|
354128
354136
|
}
|
|
354129
354137
|
async startTyping() {
|
|
354130
|
-
const mapping =
|
|
354138
|
+
const mapping = interfaceMappings.getIntegrationAction("typingIndicator", "startTypingIndicator", this.integration);
|
|
354131
354139
|
if (mapping) {
|
|
354132
354140
|
const message3 = context.get("message", { optional: true });
|
|
354133
354141
|
await this.client.callAction({
|
|
@@ -354140,7 +354148,7 @@ var import_const, import_const2, __create4, __defProp8, __getOwnPropDesc3, __get
|
|
|
354140
354148
|
}
|
|
354141
354149
|
}
|
|
354142
354150
|
async stopTyping() {
|
|
354143
|
-
const mapping =
|
|
354151
|
+
const mapping = interfaceMappings.getIntegrationAction("typingIndicator", "stopTypingIndicator", this.integration);
|
|
354144
354152
|
if (mapping) {
|
|
354145
354153
|
const message3 = context.get("message", { optional: true });
|
|
354146
354154
|
await this.client.callAction({
|
|
@@ -355524,7 +355532,7 @@ var init_internal = __esm(() => {
|
|
|
355524
355532
|
});
|
|
355525
355533
|
init_define_PACKAGE_VERSIONS = __esm2({
|
|
355526
355534
|
"<define:__PACKAGE_VERSIONS__>"() {
|
|
355527
|
-
define_PACKAGE_VERSIONS_default = { runtime: "1.8.
|
|
355535
|
+
define_PACKAGE_VERSIONS_default = { runtime: "1.8.1", adk: "1.8.1", sdk: "4.19.0", llmz: "0.0.33", zai: "2.5.0", cognitive: "0.2.0" };
|
|
355528
355536
|
}
|
|
355529
355537
|
});
|
|
355530
355538
|
init_globalThis = __esm2({
|
|
@@ -388308,15 +388316,7 @@ ${issues.join(`
|
|
|
388308
388316
|
init_define_PACKAGE_VERSIONS();
|
|
388309
388317
|
init_define_BUILD();
|
|
388310
388318
|
init_define_PACKAGE_VERSIONS();
|
|
388311
|
-
|
|
388312
|
-
static mappings = {};
|
|
388313
|
-
static registerMappings(mappings) {
|
|
388314
|
-
this.mappings = { ...this.mappings, ...mappings };
|
|
388315
|
-
}
|
|
388316
|
-
static getIntegrationAction(interfaceName, actionName, integrationName) {
|
|
388317
|
-
return this.mappings[interfaceName]?.actions[`${integrationName}:${actionName}`];
|
|
388318
|
-
}
|
|
388319
|
-
};
|
|
388319
|
+
interfaceMappings = getSingleton("__ADK_GLOBAL_INTERFACE_MAPPINGS", () => new InterfaceMappings);
|
|
388320
388320
|
init_define_BUILD();
|
|
388321
388321
|
init_define_PACKAGE_VERSIONS();
|
|
388322
388322
|
init_define_BUILD();
|
|
@@ -390942,6 +390942,7 @@ ${iteration.status.execution_error.stack}`;
|
|
|
390942
390942
|
const client = context.get("client");
|
|
390943
390943
|
const botpressConversation = context.get("conversation");
|
|
390944
390944
|
const conversationInstance = new BaseConversationInstance(botpressConversation, client);
|
|
390945
|
+
const startTypingPromise = conversationInstance.startTyping().catch(() => {});
|
|
390945
390946
|
let type;
|
|
390946
390947
|
let requestObject = undefined;
|
|
390947
390948
|
if (message3) {
|
|
@@ -391049,6 +391050,7 @@ ${iteration.status.execution_error.stack}`;
|
|
|
391049
391050
|
execute: execute2
|
|
391050
391051
|
});
|
|
391051
391052
|
controller.abort();
|
|
391053
|
+
startTypingPromise.then(() => conversationInstance.stopTyping().catch(() => {}));
|
|
391052
391054
|
}
|
|
391053
391055
|
};
|
|
391054
391056
|
init_define_BUILD();
|
|
@@ -640318,7 +640320,15 @@ var import_const3, import_const4, __create5, __defProp9, __getOwnPropDesc4, __ge
|
|
|
640318
640320
|
return tracker;
|
|
640319
640321
|
}
|
|
640320
640322
|
throw new Error("PromiseTracker not found in context. Make sure to initialize it in your runtime setup.");
|
|
640321
|
-
}, InterfaceMappings2
|
|
640323
|
+
}, InterfaceMappings2 = class {
|
|
640324
|
+
mappings = {};
|
|
640325
|
+
registerMappings(mappings) {
|
|
640326
|
+
this.mappings = { ...this.mappings, ...mappings };
|
|
640327
|
+
}
|
|
640328
|
+
getIntegrationAction(interfaceName, actionName, integrationName) {
|
|
640329
|
+
return this.mappings[interfaceName]?.actions[`${integrationName}:${actionName}`];
|
|
640330
|
+
}
|
|
640331
|
+
}, interfaceMappings2, LOG_DELIMITER2 = `<|MESSAGE_END|>
|
|
640322
640332
|
`, AgentRegistry2 = class {
|
|
640323
640333
|
_data = null;
|
|
640324
640334
|
initialize(data) {
|
|
@@ -641899,7 +641909,7 @@ var import_const3, import_const4, __create5, __defProp9, __getOwnPropDesc4, __ge
|
|
|
641899
641909
|
}
|
|
641900
641910
|
}
|
|
641901
641911
|
async startTyping() {
|
|
641902
|
-
const mapping =
|
|
641912
|
+
const mapping = interfaceMappings2.getIntegrationAction("typingIndicator", "startTypingIndicator", this.integration);
|
|
641903
641913
|
if (mapping) {
|
|
641904
641914
|
const message3 = context3.get("message", { optional: true });
|
|
641905
641915
|
await this.client.callAction({
|
|
@@ -641912,7 +641922,7 @@ var import_const3, import_const4, __create5, __defProp9, __getOwnPropDesc4, __ge
|
|
|
641912
641922
|
}
|
|
641913
641923
|
}
|
|
641914
641924
|
async stopTyping() {
|
|
641915
|
-
const mapping =
|
|
641925
|
+
const mapping = interfaceMappings2.getIntegrationAction("typingIndicator", "stopTypingIndicator", this.integration);
|
|
641916
641926
|
if (mapping) {
|
|
641917
641927
|
const message3 = context3.get("message", { optional: true });
|
|
641918
641928
|
await this.client.callAction({
|
|
@@ -642811,7 +642821,7 @@ var init_library = __esm(() => {
|
|
|
642811
642821
|
});
|
|
642812
642822
|
init_define_PACKAGE_VERSIONS2 = __esm3({
|
|
642813
642823
|
"<define:__PACKAGE_VERSIONS__>"() {
|
|
642814
|
-
define_PACKAGE_VERSIONS_default2 = { runtime: "1.8.
|
|
642824
|
+
define_PACKAGE_VERSIONS_default2 = { runtime: "1.8.1", adk: "1.8.1", sdk: "4.19.0", llmz: "0.0.33", zai: "2.5.0", cognitive: "0.2.0" };
|
|
642815
642825
|
}
|
|
642816
642826
|
});
|
|
642817
642827
|
init_globalThis2 = __esm3({
|
|
@@ -675414,15 +675424,7 @@ globstar while`, file, fr5, pattern, pr3, swallowee);
|
|
|
675414
675424
|
init_define_PACKAGE_VERSIONS2();
|
|
675415
675425
|
init_define_BUILD2();
|
|
675416
675426
|
init_define_PACKAGE_VERSIONS2();
|
|
675417
|
-
|
|
675418
|
-
static mappings = {};
|
|
675419
|
-
static registerMappings(mappings) {
|
|
675420
|
-
this.mappings = { ...this.mappings, ...mappings };
|
|
675421
|
-
}
|
|
675422
|
-
static getIntegrationAction(interfaceName, actionName, integrationName) {
|
|
675423
|
-
return this.mappings[interfaceName]?.actions[`${integrationName}:${actionName}`];
|
|
675424
|
-
}
|
|
675425
|
-
};
|
|
675427
|
+
interfaceMappings2 = getSingleton2("__ADK_GLOBAL_INTERFACE_MAPPINGS", () => new InterfaceMappings2);
|
|
675426
675428
|
init_define_BUILD2();
|
|
675427
675429
|
init_define_PACKAGE_VERSIONS2();
|
|
675428
675430
|
init_define_BUILD2();
|
|
@@ -678591,6 +678593,7 @@ ${issues.join(`
|
|
|
678591
678593
|
const client = context3.get("client");
|
|
678592
678594
|
const botpressConversation = context3.get("conversation");
|
|
678593
678595
|
const conversationInstance = new BaseConversationInstance2(botpressConversation, client);
|
|
678596
|
+
const startTypingPromise = conversationInstance.startTyping().catch(() => {});
|
|
678594
678597
|
let type;
|
|
678595
678598
|
let requestObject = undefined;
|
|
678596
678599
|
if (message3) {
|
|
@@ -678698,6 +678701,7 @@ ${issues.join(`
|
|
|
678698
678701
|
execute: execute2
|
|
678699
678702
|
});
|
|
678700
678703
|
controller.abort();
|
|
678704
|
+
startTypingPromise.then(() => conversationInstance.stopTyping().catch(() => {}));
|
|
678701
678705
|
}
|
|
678702
678706
|
};
|
|
678703
678707
|
init_define_BUILD2();
|
|
@@ -682882,7 +682886,7 @@ class AgentProjectGenerator {
|
|
|
682882
682886
|
deploy: "adk deploy"
|
|
682883
682887
|
},
|
|
682884
682888
|
dependencies: {
|
|
682885
|
-
"@botpress/runtime": "^1.8.
|
|
682889
|
+
"@botpress/runtime": "^1.8.1"
|
|
682886
682890
|
},
|
|
682887
682891
|
devDependencies: {
|
|
682888
682892
|
typescript: "^5.9.3"
|
|
@@ -686790,7 +686794,7 @@ var import_ts_morph, __defProp10, __commonJS6 = (cb5, mod) => () => (mod || cb5(
|
|
|
686790
686794
|
`));
|
|
686791
686795
|
return code;
|
|
686792
686796
|
}
|
|
686793
|
-
}, ADK_VERSION = "1.8.
|
|
686797
|
+
}, ADK_VERSION = "1.8.1", relative2 = (from, to3) => {
|
|
686794
686798
|
const fromDir = path102.dirname(from);
|
|
686795
686799
|
const relative32 = path102.relative(fromDir, to3);
|
|
686796
686800
|
return relative32.startsWith(".") ? relative32 : `./${relative32}`;
|
|
@@ -687004,7 +687008,7 @@ var init_dist17 = __esm(() => {
|
|
|
687004
687008
|
require_package3 = __commonJS6((exports2, module) => {
|
|
687005
687009
|
module.exports = {
|
|
687006
687010
|
name: "@botpress/adk",
|
|
687007
|
-
version: "1.8.
|
|
687011
|
+
version: "1.8.1",
|
|
687008
687012
|
description: "Core ADK library for building AI agents on Botpress",
|
|
687009
687013
|
type: "module",
|
|
687010
687014
|
main: "dist/index.js",
|
|
@@ -687051,7 +687055,7 @@ var init_dist17 = __esm(() => {
|
|
|
687051
687055
|
"@botpress/cli": "^4.23",
|
|
687052
687056
|
"@botpress/client": "^1.27.2",
|
|
687053
687057
|
"@botpress/cognitive": "^0.2.0",
|
|
687054
|
-
"@botpress/runtime": "^1.8.
|
|
687058
|
+
"@botpress/runtime": "^1.8.1",
|
|
687055
687059
|
"@botpress/sdk": "^4.18.1",
|
|
687056
687060
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
687057
687061
|
"@parcel/watcher": "^2.5.1",
|
|
@@ -693587,7 +693591,7 @@ var init_Separator = __esm(async () => {
|
|
|
693587
693591
|
var require_package4 = __commonJS((exports2, module) => {
|
|
693588
693592
|
module.exports = {
|
|
693589
693593
|
name: "@botpress/adk",
|
|
693590
|
-
version: "1.8.
|
|
693594
|
+
version: "1.8.1",
|
|
693591
693595
|
description: "Core ADK library for building AI agents on Botpress",
|
|
693592
693596
|
type: "module",
|
|
693593
693597
|
main: "dist/index.js",
|
|
@@ -693634,7 +693638,7 @@ var require_package4 = __commonJS((exports2, module) => {
|
|
|
693634
693638
|
"@botpress/cli": "^4.23",
|
|
693635
693639
|
"@botpress/client": "^1.27.2",
|
|
693636
693640
|
"@botpress/cognitive": "^0.2.0",
|
|
693637
|
-
"@botpress/runtime": "^1.8.
|
|
693641
|
+
"@botpress/runtime": "^1.8.1",
|
|
693638
693642
|
"@botpress/sdk": "^4.18.1",
|
|
693639
693643
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
693640
693644
|
"@parcel/watcher": "^2.5.1",
|
|
@@ -695155,7 +695159,7 @@ function checkRuntimeVersion(agentRoot) {
|
|
|
695155
695159
|
`));
|
|
695156
695160
|
}
|
|
695157
695161
|
}
|
|
695158
|
-
var semver2, EXPECTED_RUNTIME_VERSION = "1.8.
|
|
695162
|
+
var semver2, EXPECTED_RUNTIME_VERSION = "1.8.1";
|
|
695159
695163
|
var init_runtime_version_check = __esm(() => {
|
|
695160
695164
|
init_source();
|
|
695161
695165
|
semver2 = __toESM(require_semver2(), 1);
|
|
@@ -711248,7 +711252,7 @@ if (!checkNodeVersion(true)) {
|
|
|
711248
711252
|
checkNodeVersion(false);
|
|
711249
711253
|
process.exit(1);
|
|
711250
711254
|
}
|
|
711251
|
-
var CLI_VERSION = "1.8.
|
|
711255
|
+
var CLI_VERSION = "1.8.1";
|
|
711252
711256
|
if (CLI_VERSION.startsWith("<<") && CLI_VERSION.endsWith(">>")) {
|
|
711253
711257
|
try {
|
|
711254
711258
|
const __filename2 = fileURLToPath12(import.meta.url);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/adk-cli",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "Command-line interface for the Botpress Agent Development Kit (ADK)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"url": "https://github.com/botpress/adk"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@botpress/adk": "^1.8.
|
|
43
|
+
"@botpress/adk": "^1.8.1",
|
|
44
44
|
"@botpress/cli": "^4.23",
|
|
45
|
-
"@botpress/runtime": "^1.8.
|
|
45
|
+
"@botpress/runtime": "^1.8.1",
|
|
46
46
|
"adm-zip": "^0.5.16",
|
|
47
47
|
"chalk": "^5.4.1",
|
|
48
48
|
"clipboardy": "^4.0.0",
|