@botpress/adk-cli 1.11.0 → 1.11.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 CHANGED
@@ -352010,7 +352010,7 @@ var init_internal = __esm(() => {
352010
352010
  });
352011
352011
  init_define_PACKAGE_VERSIONS = __esm2({
352012
352012
  "<define:__PACKAGE_VERSIONS__>"() {
352013
- define_PACKAGE_VERSIONS_default = { runtime: "1.11.0", adk: "1.11.0", sdk: "4.20.2", llmz: "0.0.33", zai: "2.5.0", cognitive: "0.2.0" };
352013
+ define_PACKAGE_VERSIONS_default = { runtime: "1.11.1", adk: "1.11.1", sdk: "4.20.2", llmz: "0.0.33", zai: "2.5.0", cognitive: "0.2.0" };
352014
352014
  }
352015
352015
  });
352016
352016
  init_asset = __esm2({
@@ -658419,7 +658419,7 @@ var init_library2 = __esm(() => {
658419
658419
  });
658420
658420
  init_define_PACKAGE_VERSIONS2 = __esm4({
658421
658421
  "<define:__PACKAGE_VERSIONS__>"() {
658422
- define_PACKAGE_VERSIONS_default2 = { runtime: "1.11.0", adk: "1.11.0", sdk: "4.20.2", llmz: "0.0.33", zai: "2.5.0", cognitive: "0.2.0" };
658422
+ define_PACKAGE_VERSIONS_default2 = { runtime: "1.11.1", adk: "1.11.1", sdk: "4.20.2", llmz: "0.0.33", zai: "2.5.0", cognitive: "0.2.0" };
658423
658423
  }
658424
658424
  });
658425
658425
  init_assets2 = __esm4({
@@ -703238,7 +703238,7 @@ class AgentProjectGenerator {
703238
703238
  deploy: "adk deploy"
703239
703239
  },
703240
703240
  dependencies: {
703241
- "@botpress/runtime": "^1.11.0"
703241
+ "@botpress/runtime": "^1.11.1"
703242
703242
  },
703243
703243
  devDependencies: {
703244
703244
  typescript: "^5.9.3"
@@ -707439,7 +707439,7 @@ var import_ts_morph, __defProp11, __commonJS7 = (cb4, mod) => () => (mod || cb4(
707439
707439
  `));
707440
707440
  return code;
707441
707441
  }
707442
- }, ADK_VERSION = "1.11.0", relative22 = (from, to3) => {
707442
+ }, ADK_VERSION = "1.11.1", relative22 = (from, to3) => {
707443
707443
  const fromDir = path102.dirname(from);
707444
707444
  const relative32 = path102.relative(fromDir, to3);
707445
707445
  return relative32.startsWith(".") ? relative32 : `./${relative32}`;
@@ -707654,7 +707654,7 @@ var init_dist17 = __esm(() => {
707654
707654
  require_package3 = __commonJS7((exports7, module) => {
707655
707655
  module.exports = {
707656
707656
  name: "@botpress/adk",
707657
- version: "1.11.0",
707657
+ version: "1.11.1",
707658
707658
  description: "Core ADK library for building AI agents on Botpress",
707659
707659
  type: "module",
707660
707660
  main: "dist/index.js",
@@ -707701,7 +707701,7 @@ var init_dist17 = __esm(() => {
707701
707701
  "@botpress/cli": "^4.27.3",
707702
707702
  "@botpress/client": "^1.27.2",
707703
707703
  "@botpress/cognitive": "^0.2.0",
707704
- "@botpress/runtime": "^1.11.0",
707704
+ "@botpress/runtime": "^1.11.1",
707705
707705
  "@botpress/sdk": "^4.18.1",
707706
707706
  "@bpinternal/jex": "^1.2.4",
707707
707707
  "@bpinternal/yargs-extra": "^0.0.21",
@@ -713393,17 +713393,19 @@ async function adkLink(options) {
713393
713393
  console.log(source_default.blue('\uD83D\uDCA1 Run "adk init" to create a new project first.'));
713394
713394
  process.exit(1);
713395
713395
  }
713396
- try {
713397
- const agentRoot = await findAgentRootOrFail(process.cwd());
713398
- const project = await AgentProject.load(agentRoot);
713399
- if (project.agentInfo?.botId) {
713400
- console.log(source_default.yellow("\u26A0\uFE0F agent.json already exists:"));
713401
- console.log(source_default.gray(` Bot ID: ${project.agentInfo.botId}`));
713402
- console.log(source_default.gray(` Workspace ID: ${project.agentInfo.workspaceId}`));
713403
- console.log(source_default.blue("\uD83D\uDCA1 Delete agent.json if you want to link to a different bot."));
713404
- return;
713405
- }
713406
- } catch (_2) {}
713396
+ if (!options.force) {
713397
+ try {
713398
+ const agentRoot = await findAgentRootOrFail(process.cwd());
713399
+ const project = await AgentProject.load(agentRoot);
713400
+ if (project.agentInfo?.botId) {
713401
+ console.log(source_default.yellow("\u26A0\uFE0F agent.json already exists:"));
713402
+ console.log(source_default.gray(` Bot ID: ${project.agentInfo.botId}`));
713403
+ console.log(source_default.gray(` Workspace ID: ${project.agentInfo.workspaceId}`));
713404
+ console.log(source_default.blue("\uD83D\uDCA1 Use --force to overwrite, or delete agent.json manually."));
713405
+ return;
713406
+ }
713407
+ } catch (_2) {}
713408
+ }
713407
713409
  const { waitUntilExit } = render_default(/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(LinkSetup, {
713408
713410
  initialWorkspaceId: options.workspace,
713409
713411
  initialBotId: options.bot,
@@ -714246,7 +714248,7 @@ var init_Separator = __esm(async () => {
714246
714248
  var require_package4 = __commonJS((exports7, module) => {
714247
714249
  module.exports = {
714248
714250
  name: "@botpress/adk",
714249
- version: "1.11.0",
714251
+ version: "1.11.1",
714250
714252
  description: "Core ADK library for building AI agents on Botpress",
714251
714253
  type: "module",
714252
714254
  main: "dist/index.js",
@@ -714293,7 +714295,7 @@ var require_package4 = __commonJS((exports7, module) => {
714293
714295
  "@botpress/cli": "^4.27.3",
714294
714296
  "@botpress/client": "^1.27.2",
714295
714297
  "@botpress/cognitive": "^0.2.0",
714296
- "@botpress/runtime": "^1.11.0",
714298
+ "@botpress/runtime": "^1.11.1",
714297
714299
  "@botpress/sdk": "^4.18.1",
714298
714300
  "@bpinternal/jex": "^1.2.4",
714299
714301
  "@bpinternal/yargs-extra": "^0.0.21",
@@ -716240,7 +716242,7 @@ function checkRuntimeVersion(agentRoot) {
716240
716242
  `));
716241
716243
  }
716242
716244
  }
716243
- var semver2, EXPECTED_RUNTIME_VERSION = "1.11.0";
716245
+ var semver2, EXPECTED_RUNTIME_VERSION = "1.11.1";
716244
716246
  var init_runtime_version_check = __esm(() => {
716245
716247
  init_source();
716246
716248
  semver2 = __toESM(require_semver2(), 1);
@@ -731419,7 +731421,8 @@ async function downloadBinary(version3, target, extension) {
731419
731421
  }
731420
731422
  async function downloadBinaryWindows(version3, target, extension) {
731421
731423
  const fileName = `adk-${target}${extension}`;
731422
- const downloadUrl = `https://github.com/${GITHUB_REPO}/releases/download/v${version3}/${fileName}.zip`;
731424
+ const archiveName = `adk-${target}.zip`;
731425
+ const downloadUrl = `https://github.com/${GITHUB_REPO}/releases/download/v${version3}/${archiveName}`;
731423
731426
  console.log(`\uD83D\uDCE5 Downloading adk v${version3} for ${target}...`);
731424
731427
  console.log(` ${downloadUrl}`);
731425
731428
  const response = await fetch(downloadUrl);
@@ -913366,7 +913369,7 @@ if (!checkNodeVersion(true)) {
913366
913369
  checkNodeVersion(false);
913367
913370
  process.exit(1);
913368
913371
  }
913369
- var CLI_VERSION = "1.11.0";
913372
+ var CLI_VERSION = "1.11.1";
913370
913373
  if (CLI_VERSION.startsWith("<<") && CLI_VERSION.endsWith(">>")) {
913371
913374
  try {
913372
913375
  const __filename2 = fileURLToPath14(import.meta.url);
@@ -913618,7 +913621,7 @@ program.command("mcp:init").description("Generate MCP configuration files for AI
913618
913621
  process.exit(1);
913619
913622
  }
913620
913623
  });
913621
- program.command("link").description("Link local agent to workspace and bot").option("--workspace <workspaceId>", "workspace ID").option("--bot <botId>", "bot ID to link to").option("--dev <devBotId>", "dev bot ID (optional)").option("--api-url <apiUrl>", "Botpress API URL (e.g., https://api.botpress.cloud)").action(async (options) => {
913624
+ program.command("link").description("Link local agent to workspace and bot").option("--workspace <workspaceId>", "workspace ID").option("--bot <botId>", "bot ID to link to").option("--dev <devBotId>", "dev bot ID (optional)").option("--api-url <apiUrl>", "Botpress API URL (e.g., https://api.botpress.cloud)").option("-f, --force", "overwrite existing agent.json if present").action(async (options) => {
913622
913625
  try {
913623
913626
  await trackCmd("link", async () => {
913624
913627
  const { adkLink: adkLink2 } = await init_adk_link().then(() => exports_adk_link);
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "1.11.0",
3
- "generatedAt": "2025-12-10T01:27:33.115Z",
2
+ "version": "1.11.1",
3
+ "generatedAt": "2025-12-10T16:54:05.024Z",
4
4
  "cliName": "adk",
5
5
  "globalOptions": [
6
6
  {
@@ -332,6 +332,10 @@
332
332
  {
333
333
  "flags": "--api-url <apiUrl>",
334
334
  "description": "Botpress API URL (e.g., https://api.botpress.cloud)"
335
+ },
336
+ {
337
+ "flags": "-f, --force",
338
+ "description": "overwrite existing agent.json if present"
335
339
  }
336
340
  ]
337
341
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/adk-cli",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "description": "Command-line interface for the Botpress Agent Development Kit (ADK)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -41,9 +41,9 @@
41
41
  "url": "https://github.com/botpress/adk"
42
42
  },
43
43
  "dependencies": {
44
- "@botpress/adk": "^1.11.0",
44
+ "@botpress/adk": "^1.11.1",
45
45
  "@botpress/cli": "^4.27.3",
46
- "@botpress/runtime": "^1.11.0",
46
+ "@botpress/runtime": "^1.11.1",
47
47
  "@botpress/webchat-client": "^0.4.0",
48
48
  "@modelcontextprotocol/sdk": "^1.24.3",
49
49
  "adm-zip": "^0.5.16",