@botpress/adk 1.11.6 → 1.11.7

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.
@@ -13,6 +13,7 @@ export declare class AgentProjectGenerator {
13
13
  private createAgentJson;
14
14
  private createGitIgnore;
15
15
  private createReadme;
16
+ private createClaudeMd;
16
17
  private createSourceStructure;
17
18
  private writeFile;
18
19
  private writeFormattedFile;
@@ -1 +1 @@
1
- {"version":3,"file":"agent-project-generator.d.ts","sourceRoot":"","sources":["../../src/agent-init/agent-project-generator.ts"],"names":[],"mappings":"AAQA,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;IAW/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;YA+CZ,qBAAqB;IAwCnC,OAAO,CAAC,SAAS;YAKH,kBAAkB;IAKhC,OAAO,CAAC,aAAa;CAGtB"}
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"}
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.6", relative2 = (from, to) => {
657
+ }, ADK_VERSION = "1.11.7", 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.6",
800
+ version: "1.11.7",
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.6",
847
+ "@botpress/runtime": "^1.11.7",
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.6"}`
4878
+ "@botpress/runtime": `^${"1.11.7"}`
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);
@@ -8836,7 +8845,7 @@ class KnowledgeManager {
8836
8845
  }
8837
8846
  }
8838
8847
  // src/knowledge/sync-formatter.ts
8839
- import { readFileSync } from "fs";
8848
+ import { readFileSync as readFileSync2 } from "fs";
8840
8849
  import { join as join7 } from "path";
8841
8850
  var getAdkVersion = () => {
8842
8851
  try {
@@ -8845,7 +8854,7 @@ var getAdkVersion = () => {
8845
8854
  } catch {
8846
8855
  try {
8847
8856
  const adkPackagePath = join7(process.cwd(), "node_modules/@botpress/adk/package.json");
8848
- const pkg = JSON.parse(readFileSync(adkPackagePath, "utf-8"));
8857
+ const pkg = JSON.parse(readFileSync2(adkPackagePath, "utf-8"));
8849
8858
  return pkg.version;
8850
8859
  } catch {
8851
8860
  return "unknown";
@@ -9133,7 +9142,7 @@ class AgentConfigSyncManager {
9133
9142
  }
9134
9143
 
9135
9144
  // src/preflight/formatter.ts
9136
- import { readFileSync as readFileSync2 } from "fs";
9145
+ import { readFileSync as readFileSync3 } from "fs";
9137
9146
  import { join as join9 } from "path";
9138
9147
  var getAdkVersion2 = () => {
9139
9148
  try {
@@ -9142,7 +9151,7 @@ var getAdkVersion2 = () => {
9142
9151
  } catch {
9143
9152
  try {
9144
9153
  const adkPackagePath = join9(process.cwd(), "node_modules/@botpress/adk/package.json");
9145
- const pkg = JSON.parse(readFileSync2(adkPackagePath, "utf-8"));
9154
+ const pkg = JSON.parse(readFileSync3(adkPackagePath, "utf-8"));
9146
9155
  return pkg.version;
9147
9156
  } catch {
9148
9157
  return "unknown";
@@ -9500,5 +9509,5 @@ export {
9500
9509
  AgentProject
9501
9510
  };
9502
9511
 
9503
- //# debugId=000FA342BD9690C964756E2164756E21
9512
+ //# debugId=F87E3D73DEC3C59F64756E2164756E21
9504
9513
  //# sourceMappingURL=index.js.map