@botpress/adk 1.11.3 → 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/bot-generator/generator.d.ts.map +1 -1
- package/dist/index.js +12 -5
- package/dist/index.js.map +3 -3
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../src/bot-generator/generator.ts"],"names":[],"mappings":"AA4BA,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,YAAY,CAAA;CACpD;AAkBD,qBAAa,YAAY;IACvB,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,UAAU,CAAQ;gBAEd,OAAO,EAAE,mBAAmB;YAK1B,kBAAkB;YAuBlB,sBAAsB;IAsB9B,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;YA+BjB,yBAAyB;YAkEzB,kBAAkB;YAKlB,oBAAoB;YAKpB,gBAAgB;YAKhB,kBAAkB;YAKlB,0BAA0B;YAK1B,kBAAkB;YAKlB,qBAAqB;YAKrB,yBAAyB;YAKzB,mBAAmB;YAMnB,8BAA8B;YAM9B,oBAAoB;YAyEpB,uBAAuB;YA8FvB,8BAA8B;YAiC9B,4BAA4B;YA2B5B,qBAAqB;
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../src/bot-generator/generator.ts"],"names":[],"mappings":"AA4BA,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,YAAY,CAAA;CACpD;AAkBD,qBAAa,YAAY;IACvB,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,UAAU,CAAQ;gBAEd,OAAO,EAAE,mBAAmB;YAK1B,kBAAkB;YAuBlB,sBAAsB;IAsB9B,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;YA+BjB,yBAAyB;YAkEzB,kBAAkB;YAKlB,oBAAoB;YAKpB,gBAAgB;YAKhB,kBAAkB;YAKlB,0BAA0B;YAK1B,kBAAkB;YAKlB,qBAAqB;YAKrB,yBAAyB;YAKzB,mBAAmB;YAMnB,8BAA8B;YAM9B,oBAAoB;YAyEpB,uBAAuB;YA8FvB,8BAA8B;YAiC9B,4BAA4B;YA2B5B,qBAAqB;YA+XrB,gBAAgB;YAoChB,mBAAmB;YAqBnB,gBAAgB;YAiChB,mBAAmB;YAyBnB,UAAU;YAWV,aAAa;IAgBrB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IA6ZnC,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;CAOzC;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0CpF"}
|
package/dist/index.js
CHANGED
|
@@ -654,7 +654,7 @@ var PRETTIER_CONFIG, formatCode = async (code, filepath) => {
|
|
|
654
654
|
`));
|
|
655
655
|
return code;
|
|
656
656
|
}
|
|
657
|
-
}, ADK_VERSION = "1.11.
|
|
657
|
+
}, ADK_VERSION = "1.11.4", relative2 = (from, to) => {
|
|
658
658
|
const fromDir = path10.dirname(from);
|
|
659
659
|
const relative3 = path10.relative(fromDir, to);
|
|
660
660
|
return relative3.startsWith(".") ? relative3 : `./${relative3}`;
|
|
@@ -797,7 +797,7 @@ var init_integration_action_types = __esm(() => {
|
|
|
797
797
|
var require_package = __commonJS((exports, module) => {
|
|
798
798
|
module.exports = {
|
|
799
799
|
name: "@botpress/adk",
|
|
800
|
-
version: "1.11.
|
|
800
|
+
version: "1.11.4",
|
|
801
801
|
description: "Core ADK library for building AI agents on Botpress",
|
|
802
802
|
type: "module",
|
|
803
803
|
main: "dist/index.js",
|
|
@@ -844,7 +844,7 @@ var require_package = __commonJS((exports, module) => {
|
|
|
844
844
|
"@botpress/cli": "^4.27.3",
|
|
845
845
|
"@botpress/client": "^1.27.2",
|
|
846
846
|
"@botpress/cognitive": "^0.2.0",
|
|
847
|
-
"@botpress/runtime": "^1.11.
|
|
847
|
+
"@botpress/runtime": "^1.11.4",
|
|
848
848
|
"@botpress/sdk": "^4.18.1",
|
|
849
849
|
"@bpinternal/jex": "^1.2.4",
|
|
850
850
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
@@ -4871,7 +4871,7 @@ class AgentProjectGenerator {
|
|
|
4871
4871
|
deploy: "adk deploy"
|
|
4872
4872
|
},
|
|
4873
4873
|
dependencies: {
|
|
4874
|
-
"@botpress/runtime": `^${"1.11.
|
|
4874
|
+
"@botpress/runtime": `^${"1.11.4"}`
|
|
4875
4875
|
},
|
|
4876
4876
|
devDependencies: {
|
|
4877
4877
|
typescript: "^5.9.3"
|
|
@@ -6906,10 +6906,14 @@ declare module "@botpress/runtime/_types/state" {
|
|
|
6906
6906
|
const configData = config && Object.keys(config).length > 0 ? `, configuration: ${JSON.stringify(config)}` : "";
|
|
6907
6907
|
addIntegrations.push(`bot.addIntegration(${importName}, { alias: "${alias}", enabled: true${configType}${configData} });`);
|
|
6908
6908
|
}
|
|
6909
|
+
const botTags = {};
|
|
6909
6910
|
const userTags = {};
|
|
6910
6911
|
const conversationTags = {};
|
|
6911
6912
|
const messageTags = {};
|
|
6912
6913
|
const workflowTags = {};
|
|
6914
|
+
if (project.config?.bot?.tags) {
|
|
6915
|
+
Object.assign(botTags, project.config.bot.tags);
|
|
6916
|
+
}
|
|
6913
6917
|
if (project.config?.user?.tags) {
|
|
6914
6918
|
Object.assign(userTags, project.config.user.tags);
|
|
6915
6919
|
}
|
|
@@ -7022,6 +7026,9 @@ declare module "@botpress/runtime/_types/state" {
|
|
|
7022
7026
|
attributes: {
|
|
7023
7027
|
runtime: "adk",
|
|
7024
7028
|
runtimeVersion: "${ADK_VERSION}",
|
|
7029
|
+
${Object.keys(botTags).length > 0 ? Object.entries(botTags).map(([tag, meta]) => `${meta.description ? `// ${meta.description}
|
|
7030
|
+
` : ""}"${tag}": ${JSON.stringify(meta.title)}`).join(`,
|
|
7031
|
+
`) : ""}
|
|
7025
7032
|
},
|
|
7026
7033
|
${configSchemaCode ? `
|
|
7027
7034
|
configuration: {
|
|
@@ -9493,5 +9500,5 @@ export {
|
|
|
9493
9500
|
AgentProject
|
|
9494
9501
|
};
|
|
9495
9502
|
|
|
9496
|
-
//# debugId=
|
|
9503
|
+
//# debugId=8A1281D26AD1E19E64756E2164756E21
|
|
9497
9504
|
//# sourceMappingURL=index.js.map
|