@botpress/adk 1.16.1 → 1.16.2
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/eval/client.d.ts.map +1 -1
- package/dist/index.js +10 -6
- package/dist/index.js.map +3 -3
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/eval/client.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/eval/client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,SAAS,CAAA;AAStD;;GAEG;AACH,qBAAa,WAAW;IAIV,OAAO,CAAC,SAAS;IAH7B,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,cAAc,CAAsB;gBAExB,SAAS,EAAE,MAAM;IAE/B,OAAO;IAKb,IAAI,MAAM,IAAI,MAAM,CAKnB;IAEK,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAO,GAAG,OAAO,CAAC,UAAU,CAAC;CA+ElH;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAarG"}
|
package/dist/index.js
CHANGED
|
@@ -718,7 +718,7 @@ var PRETTIER_CONFIG, formatCode = async (code, filepath) => {
|
|
|
718
718
|
`));
|
|
719
719
|
return code;
|
|
720
720
|
}
|
|
721
|
-
}, ADK_VERSION = "1.16.
|
|
721
|
+
}, ADK_VERSION = "1.16.2", relative2 = (from, to) => {
|
|
722
722
|
const fromDir = path10.dirname(from);
|
|
723
723
|
const relative3 = path10.relative(fromDir, to);
|
|
724
724
|
return relative3.startsWith(".") ? relative3 : `./${relative3}`;
|
|
@@ -861,7 +861,7 @@ var init_integration_action_types = __esm(() => {
|
|
|
861
861
|
var require_package = __commonJS((exports, module) => {
|
|
862
862
|
module.exports = {
|
|
863
863
|
name: "@botpress/adk",
|
|
864
|
-
version: "1.16.
|
|
864
|
+
version: "1.16.2",
|
|
865
865
|
description: "Core ADK library for building AI agents on Botpress",
|
|
866
866
|
type: "module",
|
|
867
867
|
main: "dist/index.js",
|
|
@@ -909,7 +909,7 @@ var require_package = __commonJS((exports, module) => {
|
|
|
909
909
|
"@botpress/cli": "^5.2.0",
|
|
910
910
|
"@botpress/client": "^1.35.0",
|
|
911
911
|
"@botpress/cognitive": "^0.3.14",
|
|
912
|
-
"@botpress/runtime": "^1.16.
|
|
912
|
+
"@botpress/runtime": "^1.16.2",
|
|
913
913
|
"@botpress/sdk": "^5.4.3",
|
|
914
914
|
"@bpinternal/jex": "^1.2.4",
|
|
915
915
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
@@ -5452,7 +5452,7 @@ class AgentProjectGenerator {
|
|
|
5452
5452
|
deploy: "adk deploy"
|
|
5453
5453
|
},
|
|
5454
5454
|
dependencies: {
|
|
5455
|
-
"@botpress/runtime": `^${"1.16.
|
|
5455
|
+
"@botpress/runtime": `^${"1.16.2"}`
|
|
5456
5456
|
},
|
|
5457
5457
|
devDependencies: {
|
|
5458
5458
|
typescript: "^5.9.3"
|
|
@@ -11516,7 +11516,10 @@ import { Client as BpClient2 } from "@botpress/client";
|
|
|
11516
11516
|
|
|
11517
11517
|
// src/eval/client.ts
|
|
11518
11518
|
import { Client as BpClient } from "@botpress/client";
|
|
11519
|
-
|
|
11519
|
+
async function getChatClient() {
|
|
11520
|
+
const { Client: Client18 } = await import("@botpress/chat");
|
|
11521
|
+
return Client18;
|
|
11522
|
+
}
|
|
11520
11523
|
|
|
11521
11524
|
class ChatSession {
|
|
11522
11525
|
webhookId;
|
|
@@ -11526,6 +11529,7 @@ class ChatSession {
|
|
|
11526
11529
|
this.webhookId = webhookId;
|
|
11527
11530
|
}
|
|
11528
11531
|
async connect() {
|
|
11532
|
+
const ChatClient = await getChatClient();
|
|
11529
11533
|
this.client = await ChatClient.connect({ webhookId: this.webhookId });
|
|
11530
11534
|
}
|
|
11531
11535
|
get userId() {
|
|
@@ -12595,4 +12599,4 @@ export {
|
|
|
12595
12599
|
AgentProject
|
|
12596
12600
|
};
|
|
12597
12601
|
|
|
12598
|
-
//# debugId=
|
|
12602
|
+
//# debugId=49955459296A332464756E2164756E21
|