@botpress/adk-cli 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/cli.js CHANGED
@@ -335070,7 +335070,7 @@ var init_internal = __esm(() => {
335070
335070
  });
335071
335071
  init_define_PACKAGE_VERSIONS = __esm2({
335072
335072
  "<define:__PACKAGE_VERSIONS__>"() {
335073
- define_PACKAGE_VERSIONS_default = { runtime: "1.16.1", adk: "not-installed", sdk: "5.4.3", llmz: "0.0.54", zai: "2.6.0", cognitive: "0.3.14" };
335073
+ define_PACKAGE_VERSIONS_default = { runtime: "1.16.2", adk: "not-installed", sdk: "5.4.3", llmz: "0.0.54", zai: "2.6.0", cognitive: "0.3.14" };
335074
335074
  }
335075
335075
  });
335076
335076
  init_asset = __esm2({
@@ -638169,7 +638169,7 @@ var init_definition2 = __esm(() => {
638169
638169
  });
638170
638170
  init_define_PACKAGE_VERSIONS2 = __esm4({
638171
638171
  "<define:__PACKAGE_VERSIONS__>"() {
638172
- define_PACKAGE_VERSIONS_default2 = { runtime: "1.16.1", adk: "not-installed", sdk: "5.4.3", llmz: "0.0.54", zai: "2.6.0", cognitive: "0.3.14" };
638172
+ define_PACKAGE_VERSIONS_default2 = { runtime: "1.16.2", adk: "not-installed", sdk: "5.4.3", llmz: "0.0.54", zai: "2.6.0", cognitive: "0.3.14" };
638173
638173
  }
638174
638174
  });
638175
638175
  init_transcript2 = __esm4({
@@ -688304,7 +688304,7 @@ var init_library3 = __esm(() => {
688304
688304
  });
688305
688305
  init_define_PACKAGE_VERSIONS3 = __esm5({
688306
688306
  "<define:__PACKAGE_VERSIONS__>"() {
688307
- define_PACKAGE_VERSIONS_default3 = { runtime: "1.16.1", adk: "not-installed", sdk: "5.4.3", llmz: "0.0.54", zai: "2.6.0", cognitive: "0.3.14" };
688307
+ define_PACKAGE_VERSIONS_default3 = { runtime: "1.16.2", adk: "not-installed", sdk: "5.4.3", llmz: "0.0.54", zai: "2.6.0", cognitive: "0.3.14" };
688308
688308
  }
688309
688309
  });
688310
688310
  init_assets3 = __esm5({
@@ -734634,7 +734634,7 @@ var init_runtime6 = __esm(() => {
734634
734634
  });
734635
734635
  init_define_PACKAGE_VERSIONS4 = __esm6({
734636
734636
  "<define:__PACKAGE_VERSIONS__>"() {
734637
- define_PACKAGE_VERSIONS_default4 = { runtime: "1.16.1", adk: "not-installed", sdk: "5.4.3", llmz: "0.0.54", zai: "2.6.0", cognitive: "0.3.14" };
734637
+ define_PACKAGE_VERSIONS_default4 = { runtime: "1.16.2", adk: "not-installed", sdk: "5.4.3", llmz: "0.0.54", zai: "2.6.0", cognitive: "0.3.14" };
734638
734638
  }
734639
734639
  });
734640
734640
  init_globals4 = __esm6({
@@ -777391,7 +777391,6 @@ import path41 from "path";
777391
777391
  import { spawn as spawn2 } from "child_process";
777392
777392
  import { readdirSync as readdirSync32, existsSync as existsSync11 } from "fs";
777393
777393
  import { resolve as resolve32 } from "path";
777394
- import { Client as ChatClient } from "@botpress/chat";
777395
777394
  import { randomUUID } from "crypto";
777396
777395
  import { existsSync as existsSync12, mkdirSync as mkdirSync22, writeFileSync as writeFileSync22, readFileSync as readFileSync32, readdirSync as readdirSync42 } from "fs";
777397
777396
  import { join as join10 } from "path";
@@ -780963,7 +780962,7 @@ class AgentProjectGenerator {
780963
780962
  deploy: "adk deploy"
780964
780963
  },
780965
780964
  dependencies: {
780966
- "@botpress/runtime": "^1.16.1"
780965
+ "@botpress/runtime": "^1.16.2"
780967
780966
  },
780968
780967
  devDependencies: {
780969
780968
  typescript: "^5.9.3"
@@ -786614,6 +786613,10 @@ function filterEvals(evals, filter5) {
786614
786613
  return true;
786615
786614
  });
786616
786615
  }
786616
+ async function getChatClient() {
786617
+ const { Client: Client18 } = await import("@botpress/chat");
786618
+ return Client18;
786619
+ }
786617
786620
 
786618
786621
  class ChatSession {
786619
786622
  webhookId;
@@ -786623,6 +786626,7 @@ class ChatSession {
786623
786626
  this.webhookId = webhookId;
786624
786627
  }
786625
786628
  async connect() {
786629
+ const ChatClient = await getChatClient();
786626
786630
  this.client = await ChatClient.connect({ webhookId: this.webhookId });
786627
786631
  }
786628
786632
  get userId() {
@@ -787596,7 +787600,7 @@ var import_debug, import_debug2, import_ts_morph, __defProp12, __commonJS9 = (cb
787596
787600
  `));
787597
787601
  return code;
787598
787602
  }
787599
- }, ADK_VERSION = "1.16.1", relative22 = (from, to3) => {
787603
+ }, ADK_VERSION = "1.16.2", relative22 = (from, to3) => {
787600
787604
  const fromDir = path102.dirname(from);
787601
787605
  const relative32 = path102.relative(fromDir, to3);
787602
787606
  return relative32.startsWith(".") ? relative32 : `./${relative32}`;
@@ -787922,7 +787926,7 @@ var init_dist15 = __esm(() => {
787922
787926
  require_package3 = __commonJS9((exports7, module) => {
787923
787927
  module.exports = {
787924
787928
  name: "@botpress/adk",
787925
- version: "1.16.1",
787929
+ version: "1.16.2",
787926
787930
  description: "Core ADK library for building AI agents on Botpress",
787927
787931
  type: "module",
787928
787932
  main: "dist/index.js",
@@ -787970,7 +787974,7 @@ var init_dist15 = __esm(() => {
787970
787974
  "@botpress/cli": "^5.2.0",
787971
787975
  "@botpress/client": "^1.35.0",
787972
787976
  "@botpress/cognitive": "^0.3.14",
787973
- "@botpress/runtime": "^1.16.1",
787977
+ "@botpress/runtime": "^1.16.2",
787974
787978
  "@botpress/sdk": "^5.4.3",
787975
787979
  "@bpinternal/jex": "^1.2.4",
787976
787980
  "@bpinternal/yargs-extra": "^0.0.21",
@@ -794903,7 +794907,7 @@ var init_Separator = __esm(async () => {
794903
794907
  var require_package4 = __commonJS((exports7, module) => {
794904
794908
  module.exports = {
794905
794909
  name: "@botpress/adk",
794906
- version: "1.16.1",
794910
+ version: "1.16.2",
794907
794911
  description: "Core ADK library for building AI agents on Botpress",
794908
794912
  type: "module",
794909
794913
  main: "dist/index.js",
@@ -794951,7 +794955,7 @@ var require_package4 = __commonJS((exports7, module) => {
794951
794955
  "@botpress/cli": "^5.2.0",
794952
794956
  "@botpress/client": "^1.35.0",
794953
794957
  "@botpress/cognitive": "^0.3.14",
794954
- "@botpress/runtime": "^1.16.1",
794958
+ "@botpress/runtime": "^1.16.2",
794955
794959
  "@botpress/sdk": "^5.4.3",
794956
794960
  "@bpinternal/jex": "^1.2.4",
794957
794961
  "@bpinternal/yargs-extra": "^0.0.21",
@@ -796923,7 +796927,7 @@ async function checkRuntimeVersion(agentRoot) {
796923
796927
  `));
796924
796928
  process.exit(1);
796925
796929
  }
796926
- var semver2, EXPECTED_RUNTIME_VERSION = "1.16.1";
796930
+ var semver2, EXPECTED_RUNTIME_VERSION = "1.16.2";
796927
796931
  var init_runtime_version_check = __esm(() => {
796928
796932
  init_source();
796929
796933
  init_package_manager();
@@ -826576,17 +826580,17 @@ async function sendViaWebchatIntegration(message2, webhookId, options) {
826576
826580
  }
826577
826581
  }
826578
826582
  async function sendViaChatIntegration(message2, webhookId, options) {
826579
- let ChatClient2;
826583
+ let ChatClient;
826580
826584
  try {
826581
826585
  const chatModule = await import("@botpress/chat");
826582
- ChatClient2 = chatModule.Client;
826586
+ ChatClient = chatModule.Client;
826583
826587
  } catch {
826584
826588
  return {
826585
826589
  success: false,
826586
826590
  error: "Chat client not available. Install @botpress/chat to use this feature."
826587
826591
  };
826588
826592
  }
826589
- const client5 = await ChatClient2.connect({ webhookId });
826593
+ const client5 = await ChatClient.connect({ webhookId });
826590
826594
  let conversationId = options.conversationId;
826591
826595
  if (!conversationId) {
826592
826596
  const { conversation: conversation2 } = await client5.createConversation({});
@@ -831252,7 +831256,7 @@ if (!checkNodeVersion(true)) {
831252
831256
  checkNodeVersion(false);
831253
831257
  process.exit(1);
831254
831258
  }
831255
- var CLI_VERSION = "1.16.1";
831259
+ var CLI_VERSION = "1.16.2";
831256
831260
  if (CLI_VERSION.startsWith("<<") && CLI_VERSION.endsWith(">>")) {
831257
831261
  try {
831258
831262
  const __filename2 = fileURLToPath15(import.meta.url);
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "1.16.1",
3
- "generatedAt": "2026-03-05T22:05:01.378Z",
2
+ "version": "1.16.2",
3
+ "generatedAt": "2026-03-05T22:15:34.992Z",
4
4
  "cliName": "adk",
5
5
  "globalOptions": [
6
6
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/adk-cli",
3
- "version": "1.16.1",
3
+ "version": "1.16.2",
4
4
  "description": "Command-line interface for the Botpress Agent Development Kit (ADK)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -41,11 +41,11 @@
41
41
  "url": "https://github.com/botpress/adk"
42
42
  },
43
43
  "dependencies": {
44
- "@botpress/adk": "^1.16.1",
44
+ "@botpress/adk": "^1.16.2",
45
45
  "@botpress/chat": "^0.5.5",
46
46
  "@botpress/cli": "^5.2.0",
47
47
  "@botpress/client": "^1.35.0",
48
- "@botpress/runtime": "^1.16.1",
48
+ "@botpress/runtime": "^1.16.2",
49
49
  "@botpress/sdk": "^5.4.3",
50
50
  "@botpress/webchat-client": "^0.4.0",
51
51
  "@modelcontextprotocol/sdk": "^1.25.1",