@botpress/adk 1.11.6 → 1.11.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-project-generator.d.ts","sourceRoot":"","sources":["../../src/agent-init/agent-project-generator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent-project-generator.d.ts","sourceRoot":"","sources":["../../src/agent-init/agent-project-generator.ts"],"names":[],"mappings":"AAYA,qBAAa,qBAAqB;IAChC,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,QAAQ,CAAQ;gBAEZ,WAAW,EAAE,MAAM,EAAE,cAAc,GAAE,MAAc,EAAE,QAAQ,GAAE,MAAgB;IAOrF,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAY/B,OAAO,CAAC,oBAAoB;IAa5B,OAAO,CAAC,iBAAiB;IA4BzB,OAAO,CAAC,sBAAsB;YAsBhB,iBAAiB;IAmC/B,OAAO,CAAC,cAAc;IA2BtB,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,eAAe;YAqCT,YAAY;IA+C1B,OAAO,CAAC,cAAc;YAMR,qBAAqB;IAwCnC,OAAO,CAAC,SAAS;YAKH,kBAAkB;IAKhC,OAAO,CAAC,aAAa;CAGtB"}
|
|
@@ -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,CA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AAI,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.8", 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.8",
|
|
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.8",
|
|
848
848
|
"@botpress/sdk": "^4.18.1",
|
|
849
849
|
"@bpinternal/jex": "^1.2.4",
|
|
850
850
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
@@ -4827,6 +4827,9 @@ class ConfigManager {
|
|
|
4827
4827
|
init_utils();
|
|
4828
4828
|
import * as fs11 from "fs";
|
|
4829
4829
|
import * as path15 from "path";
|
|
4830
|
+
import { fileURLToPath } from "url";
|
|
4831
|
+
var __filename2 = fileURLToPath(import.meta.url);
|
|
4832
|
+
var __dirname2 = path15.dirname(__filename2);
|
|
4830
4833
|
|
|
4831
4834
|
class AgentProjectGenerator {
|
|
4832
4835
|
projectPath;
|
|
@@ -4847,6 +4850,7 @@ class AgentProjectGenerator {
|
|
|
4847
4850
|
this.createAgentJson();
|
|
4848
4851
|
this.createGitIgnore();
|
|
4849
4852
|
await this.createReadme();
|
|
4853
|
+
this.createClaudeMd();
|
|
4850
4854
|
await this.createSourceStructure();
|
|
4851
4855
|
}
|
|
4852
4856
|
ensureEmptyDirectory() {
|
|
@@ -4871,7 +4875,7 @@ class AgentProjectGenerator {
|
|
|
4871
4875
|
deploy: "adk deploy"
|
|
4872
4876
|
},
|
|
4873
4877
|
dependencies: {
|
|
4874
|
-
"@botpress/runtime": `^${"1.11.
|
|
4878
|
+
"@botpress/runtime": `^${"1.11.8"}`
|
|
4875
4879
|
},
|
|
4876
4880
|
devDependencies: {
|
|
4877
4881
|
typescript: "^5.9.3"
|
|
@@ -5034,6 +5038,11 @@ A Botpress Agent built with the ADK.
|
|
|
5034
5038
|
`;
|
|
5035
5039
|
await this.writeFormattedFile("README.md", readme);
|
|
5036
5040
|
}
|
|
5041
|
+
createClaudeMd() {
|
|
5042
|
+
const templatePath = path15.join(__dirname2, "CLAUDE.template.md");
|
|
5043
|
+
const claudeMd = fs11.readFileSync(templatePath, "utf-8");
|
|
5044
|
+
this.writeFile("CLAUDE.md", claudeMd);
|
|
5045
|
+
}
|
|
5037
5046
|
async createSourceStructure() {
|
|
5038
5047
|
const srcPath = path15.join(this.projectPath, "src");
|
|
5039
5048
|
fs11.mkdirSync(srcPath);
|
|
@@ -7228,13 +7237,8 @@ configuration: {
|
|
|
7228
7237
|
"check:type": "tsc --noEmit"
|
|
7229
7238
|
},
|
|
7230
7239
|
private: true,
|
|
7231
|
-
dependencies: {
|
|
7232
|
-
"@botpress/client": "1.24.2",
|
|
7233
|
-
"@botpress/sdk": "4.15.7",
|
|
7234
|
-
"@botpress/runtime": "workspace:*"
|
|
7235
|
-
},
|
|
7240
|
+
dependencies: {},
|
|
7236
7241
|
devDependencies: {
|
|
7237
|
-
"@types/node": "^22.16.4",
|
|
7238
7242
|
typescript: "^5.9.3"
|
|
7239
7243
|
}
|
|
7240
7244
|
};
|
|
@@ -8836,7 +8840,7 @@ class KnowledgeManager {
|
|
|
8836
8840
|
}
|
|
8837
8841
|
}
|
|
8838
8842
|
// src/knowledge/sync-formatter.ts
|
|
8839
|
-
import { readFileSync } from "fs";
|
|
8843
|
+
import { readFileSync as readFileSync2 } from "fs";
|
|
8840
8844
|
import { join as join7 } from "path";
|
|
8841
8845
|
var getAdkVersion = () => {
|
|
8842
8846
|
try {
|
|
@@ -8845,7 +8849,7 @@ var getAdkVersion = () => {
|
|
|
8845
8849
|
} catch {
|
|
8846
8850
|
try {
|
|
8847
8851
|
const adkPackagePath = join7(process.cwd(), "node_modules/@botpress/adk/package.json");
|
|
8848
|
-
const pkg = JSON.parse(
|
|
8852
|
+
const pkg = JSON.parse(readFileSync2(adkPackagePath, "utf-8"));
|
|
8849
8853
|
return pkg.version;
|
|
8850
8854
|
} catch {
|
|
8851
8855
|
return "unknown";
|
|
@@ -9133,7 +9137,7 @@ class AgentConfigSyncManager {
|
|
|
9133
9137
|
}
|
|
9134
9138
|
|
|
9135
9139
|
// src/preflight/formatter.ts
|
|
9136
|
-
import { readFileSync as
|
|
9140
|
+
import { readFileSync as readFileSync3 } from "fs";
|
|
9137
9141
|
import { join as join9 } from "path";
|
|
9138
9142
|
var getAdkVersion2 = () => {
|
|
9139
9143
|
try {
|
|
@@ -9142,7 +9146,7 @@ var getAdkVersion2 = () => {
|
|
|
9142
9146
|
} catch {
|
|
9143
9147
|
try {
|
|
9144
9148
|
const adkPackagePath = join9(process.cwd(), "node_modules/@botpress/adk/package.json");
|
|
9145
|
-
const pkg = JSON.parse(
|
|
9149
|
+
const pkg = JSON.parse(readFileSync3(adkPackagePath, "utf-8"));
|
|
9146
9150
|
return pkg.version;
|
|
9147
9151
|
} catch {
|
|
9148
9152
|
return "unknown";
|
|
@@ -9500,5 +9504,5 @@ export {
|
|
|
9500
9504
|
AgentProject
|
|
9501
9505
|
};
|
|
9502
9506
|
|
|
9503
|
-
//# debugId=
|
|
9507
|
+
//# debugId=E3C3F451B27CF2ED64756E2164756E21
|
|
9504
9508
|
//# sourceMappingURL=index.js.map
|