@botpress/adk-cli 1.6.10 → 1.7.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "bundled-bp-cli",
3
- "version": "4.22.0",
3
+ "version": "4.23.1",
4
4
  "private": true,
5
5
  "dependencies": {
6
6
  "@botpress/cli": "^4.20.2"
package/dist/cli.js CHANGED
@@ -313776,6 +313776,7 @@ __export(exports_internal, {
313776
313776
  CONFIGURATION_TYPE_HEADER: () => CONFIGURATION_TYPE_HEADER,
313777
313777
  CONFIGURATION_PAYLOAD_HEADER: () => CONFIGURATION_PAYLOAD_HEADER,
313778
313778
  BuiltInWorkflows: () => BuiltInWorkflows,
313779
+ BuiltInActions: () => BuiltInActions,
313779
313780
  BaseWorkflowInstance: () => BaseWorkflowInstance,
313780
313781
  BaseConversationInstance: () => BaseConversationInstance,
313781
313782
  BUILT_IN_STATES: () => BUILT_IN_STATES,
@@ -314157,11 +314158,11 @@ function expand_(str, isTop) {
314157
314158
  if (pad) {
314158
314159
  const need = width - c4.length;
314159
314160
  if (need > 0) {
314160
- const z25 = new Array(need + 1).join("0");
314161
+ const z26 = new Array(need + 1).join("0");
314161
314162
  if (i2 < 0) {
314162
- c4 = "-" + z25 + c4.slice(1);
314163
+ c4 = "-" + z26 + c4.slice(1);
314163
314164
  } else {
314164
- c4 = z25 + c4;
314165
+ c4 = z26 + c4;
314165
314166
  }
314166
314167
  }
314167
314168
  }
@@ -316993,8 +316994,9 @@ function initializeParentWorker(bot2) {
316993
316994
  const workerStats = pool.getWorkerStats();
316994
316995
  debugLog2(`[Main] Pool stats - Total: ${workerStats.total}, Idle: ${workerStats.idle}, Busy: ${workerStats.busy}`);
316995
316996
  try {
316996
- await pool.executeTask(event2);
316997
- debugLog2("[Main] Event processed successfully by worker");
316997
+ const result = await pool.executeTask(event2);
316998
+ debugLog2("[Main] Event processed successfully by worker, result:", result);
316999
+ return result;
316998
317000
  } catch (error) {
316999
317001
  console.error("[Main] Error processing event:", error);
317000
317002
  throw error;
@@ -317047,11 +317049,12 @@ function runWorker(bot2) {
317047
317049
  taskId
317048
317050
  });
317049
317051
  debugLog3(`[Worker] Processing event for task ${taskId}...`);
317050
- await bot2.handler(event2);
317052
+ const result = await bot2.handler(event2);
317051
317053
  debugLog3(`[Worker] Task ${taskId} completed successfully`);
317052
317054
  parentPort.postMessage({
317053
317055
  type: "complete",
317054
- taskId
317056
+ taskId,
317057
+ result
317055
317058
  });
317056
317059
  } catch (error) {
317057
317060
  console.error(`Error processing task ${taskId}:`, error);
@@ -318432,6 +318435,25 @@ var import_const, import_const2, __create4, __defProp6, __getOwnPropDesc3, __get
318432
318435
  workflow: res.workflow
318433
318436
  });
318434
318437
  }
318438
+ asTool(options) {
318439
+ const description = options?.description || this.description || `Starts the ${this.name} workflow`;
318440
+ return new Autonomous.Tool({
318441
+ name: this.name,
318442
+ description,
318443
+ input: this._inputSchema,
318444
+ output: X.object({
318445
+ workflowId: X.string().describe("The ID of the started workflow"),
318446
+ status: X.string().describe("The initial status of the workflow")
318447
+ }),
318448
+ handler: async (input) => {
318449
+ const instance = await this.start(input);
318450
+ return {
318451
+ workflowId: instance.id,
318452
+ status: instance.status
318453
+ };
318454
+ }
318455
+ });
318456
+ }
318435
318457
  }, Item, SyncInput, SyncOutput, createSyncWorkflow = (props) => new BaseWorkflow({
318436
318458
  name: `data_source_sync_${props.type}`,
318437
318459
  input: SyncInput,
@@ -318458,7 +318480,63 @@ var import_const, import_const2, __create4, __defProp6, __getOwnPropDesc3, __get
318458
318480
  this.id = id3;
318459
318481
  this.type = type;
318460
318482
  }
318461
- }, KnowledgeIndexingWorkflow, BuiltInWorkflows, getState = () => getSingleton("__ADK_GLOBAL_PROJECT", () => {
318483
+ }, KnowledgeIndexingWorkflow, BuiltInWorkflows, Typings3, BaseAction = class {
318484
+ name;
318485
+ title;
318486
+ description;
318487
+ attributes;
318488
+ input;
318489
+ output;
318490
+ cached;
318491
+ handler;
318492
+ constructor(props) {
318493
+ if (!/^[a-zA-Z][a-zA-Z0-9]*$/.test(props.name)) {
318494
+ throw new Error(`Action name "${props.name}" must be alphanumeric with no special characters or spaces`);
318495
+ }
318496
+ this.name = props.name;
318497
+ if (props.title !== undefined) {
318498
+ this.title = props.title;
318499
+ }
318500
+ if (props.description !== undefined) {
318501
+ this.description = props.description;
318502
+ }
318503
+ if (props.attributes !== undefined) {
318504
+ this.attributes = props.attributes;
318505
+ }
318506
+ this.input = props.input;
318507
+ this.output = props.output;
318508
+ this.cached = props.cached ?? false;
318509
+ this.handler = props.handler;
318510
+ }
318511
+ getDefinition() {
318512
+ const def = {
318513
+ type: "action",
318514
+ name: this.name
318515
+ };
318516
+ if (this.title !== undefined) {
318517
+ def.title = this.title;
318518
+ }
318519
+ if (this.description !== undefined) {
318520
+ def.description = this.description;
318521
+ }
318522
+ if (this.input) {
318523
+ def.input = Jv.toJSONSchema(this.input);
318524
+ }
318525
+ if (this.output) {
318526
+ def.output = Jv.toJSONSchema(this.output);
318527
+ }
318528
+ if (this.cached !== undefined) {
318529
+ def.cached = this.cached;
318530
+ }
318531
+ if (this.attributes !== undefined) {
318532
+ def.attributes = this.attributes;
318533
+ }
318534
+ return def;
318535
+ }
318536
+ async execute({ input, client }) {
318537
+ return await this.handler({ input, client });
318538
+ }
318539
+ }, tablesRecomputeRows, BuiltInActions, getState = () => getSingleton("__ADK_GLOBAL_PROJECT", () => {
318462
318540
  const state = {
318463
318541
  initialized: false,
318464
318542
  primitives: {
@@ -318857,7 +318935,7 @@ var import_const, import_const2, __create4, __defProp6, __getOwnPropDesc3, __get
318857
318935
  }
318858
318936
  });
318859
318937
  }
318860
- }, ConversationHandler, Typings3, BaseConversation, updateWorkflow = async (props) => {
318938
+ }, ConversationHandler, Typings4, BaseConversation, updateWorkflow = async (props) => {
318861
318939
  const client = context.get("client");
318862
318940
  const workflowId = props.id;
318863
318941
  const workflowsToUpdate = [];
@@ -319430,7 +319508,7 @@ var import_const, import_const2, __create4, __defProp6, __getOwnPropDesc3, __get
319430
319508
  static getMetaDataSymbol() {
319431
319509
  return XmlNode.getMetaDataSymbol();
319432
319510
  }
319433
- }, State, WebsiteSource, DirectorySource, Typings4, BaseKnowledge = class {
319511
+ }, State, WebsiteSource, DirectorySource, Typings5, BaseKnowledge = class {
319434
319512
  name;
319435
319513
  sources;
319436
319514
  description;
@@ -319470,62 +319548,6 @@ var import_const, import_const2, __create4, __defProp6, __getOwnPropDesc3, __get
319470
319548
  }
319471
319549
  });
319472
319550
  }
319473
- }, Typings5, BaseAction = class {
319474
- name;
319475
- title;
319476
- description;
319477
- attributes;
319478
- input;
319479
- output;
319480
- cached;
319481
- handler;
319482
- constructor(props) {
319483
- if (!/^[a-zA-Z][a-zA-Z0-9]*$/.test(props.name)) {
319484
- throw new Error(`Action name "${props.name}" must be alphanumeric with no special characters or spaces`);
319485
- }
319486
- this.name = props.name;
319487
- if (props.title !== undefined) {
319488
- this.title = props.title;
319489
- }
319490
- if (props.description !== undefined) {
319491
- this.description = props.description;
319492
- }
319493
- if (props.attributes !== undefined) {
319494
- this.attributes = props.attributes;
319495
- }
319496
- this.input = props.input;
319497
- this.output = props.output;
319498
- this.cached = props.cached ?? false;
319499
- this.handler = props.handler;
319500
- }
319501
- getDefinition() {
319502
- const def = {
319503
- type: "action",
319504
- name: this.name
319505
- };
319506
- if (this.title !== undefined) {
319507
- def.title = this.title;
319508
- }
319509
- if (this.description !== undefined) {
319510
- def.description = this.description;
319511
- }
319512
- if (this.input) {
319513
- def.input = Jv.toJSONSchema(this.input);
319514
- }
319515
- if (this.output) {
319516
- def.output = Jv.toJSONSchema(this.output);
319517
- }
319518
- if (this.cached !== undefined) {
319519
- def.cached = this.cached;
319520
- }
319521
- if (this.attributes !== undefined) {
319522
- def.attributes = this.attributes;
319523
- }
319524
- return def;
319525
- }
319526
- async execute({ input }) {
319527
- return this.handler(input);
319528
- }
319529
319551
  }, Typings6, BaseTable = class {
319530
319552
  name;
319531
319553
  description;
@@ -319539,6 +319561,11 @@ var import_const, import_const2, __create4, __defProp6, __getOwnPropDesc3, __get
319539
319561
  return context.get("client");
319540
319562
  }
319541
319563
  constructor(props) {
319564
+ const tableNameSchema = z_exports.string().min(1).refine((name2) => !z_exports.string().uuid().safeParse(name2).success, "Table name cannot be a UUID").refine((name2) => /^[a-zA-Z_$][a-zA-Z0-9_]{0,29}Table$/.test(name2), "Table name must start with a letter/underscore, be 35 chars or less, contain only letters/numbers/underscores, and end with 'Table'");
319565
+ const validation = tableNameSchema.safeParse(props.name);
319566
+ if (!validation.success) {
319567
+ throw new Errors.InvalidPrimitiveError(`Invalid table name '${props.name}'`, validation.error);
319568
+ }
319542
319569
  this.name = props.name;
319543
319570
  if (props.description !== undefined) {
319544
319571
  this.description = props.description;
@@ -319880,7 +319907,7 @@ var import_const, import_const2, __create4, __defProp6, __getOwnPropDesc3, __get
319880
319907
  clearTimeout(pendingComplete.taskTimer);
319881
319908
  if (pendingComplete.ackTimer)
319882
319909
  clearTimeout(pendingComplete.ackTimer);
319883
- pendingComplete.resolve(message2);
319910
+ pendingComplete.resolve(message2.result);
319884
319911
  this.pendingTasks.delete(message2.taskId);
319885
319912
  }
319886
319913
  const completeTiming = this.taskTimings.get(message2.taskId);
@@ -319905,7 +319932,8 @@ var import_const, import_const2, __create4, __defProp6, __getOwnPropDesc3, __get
319905
319932
  clearTimeout(pendingError.taskTimer);
319906
319933
  if (pendingError.ackTimer)
319907
319934
  clearTimeout(pendingError.ackTimer);
319908
- pendingError.reject(new Error(message2.error || "Worker task failed"));
319935
+ const rejectionError = new Error(message2.error || "Worker task failed");
319936
+ pendingError.reject(rejectionError);
319909
319937
  this.pendingTasks.delete(message2.taskId);
319910
319938
  }
319911
319939
  this.taskTimings.delete(message2.taskId);
@@ -320218,6 +320246,8 @@ var init_internal = __esm(() => {
320218
320246
  init_dist9();
320219
320247
  init_dist5();
320220
320248
  init_dist5();
320249
+ init_dist5();
320250
+ init_dist5();
320221
320251
  init_dist8();
320222
320252
  init_dist7();
320223
320253
  init_dist8();
@@ -320229,7 +320259,6 @@ var init_internal = __esm(() => {
320229
320259
  init_dist5();
320230
320260
  init_dist5();
320231
320261
  init_dist5();
320232
- init_dist5();
320233
320262
  init_dist7();
320234
320263
  init_dist5();
320235
320264
  import_const = __toESM(require_dist2(), 1);
@@ -320250,7 +320279,7 @@ var init_internal = __esm(() => {
320250
320279
  });
320251
320280
  init_define_PACKAGE_VERSIONS = __esm2({
320252
320281
  "<define:__PACKAGE_VERSIONS__>"() {
320253
- define_PACKAGE_VERSIONS_default = { runtime: "1.6.10", adk: "not-installed", sdk: "4.17.3", llmz: "0.0.27", zai: "2.5.0", cognitive: "0.2.0" };
320282
+ define_PACKAGE_VERSIONS_default = { runtime: "1.7.0", adk: "not-installed", sdk: "4.17.3", llmz: "0.0.27", zai: "2.5.0", cognitive: "0.2.0" };
320254
320283
  }
320255
320284
  });
320256
320285
  init_globalThis = __esm2({
@@ -352667,8 +352696,7 @@ ${issues.join(`
352667
352696
  name: "handler.action",
352668
352697
  importance: "high",
352669
352698
  attributes: {
352670
- ...required("botId", "workflowId", "eventId", "event.type"),
352671
- ...optional("messageId", "userId", "integration", "channel", "conversationId", "parentWorkflowId"),
352699
+ ...required("botId"),
352672
352700
  "action.name": { type: "string", required: true },
352673
352701
  "action.input": { type: "json", required: true }
352674
352702
  }
@@ -354998,7 +355026,7 @@ ${iteration.status.execution_error.stack}`;
354998
355026
  const botAction = adk.project.actions.find((a2) => a2.name === propertyName);
354999
355027
  if (botAction) {
355000
355028
  const handler = async (input) => {
355001
- return botAction.handler(input);
355029
+ return await botAction.handler(input);
355002
355030
  };
355003
355031
  handler.asTool = () => new Autonomous.Tool({
355004
355032
  name: botAction.name,
@@ -355255,6 +355283,59 @@ ${iteration.status.execution_error.stack}`;
355255
355283
  BuiltInWorkflows = {
355256
355284
  KnowledgeIndexingWorkflow
355257
355285
  };
355286
+ init_define_BUILD();
355287
+ init_define_PACKAGE_VERSIONS();
355288
+ init_define_BUILD();
355289
+ init_define_PACKAGE_VERSIONS();
355290
+ init_define_BUILD();
355291
+ init_define_PACKAGE_VERSIONS();
355292
+ ((Typings8) => {
355293
+ Typings8.Primitive = "action";
355294
+ })(Typings3 || (Typings3 = {}));
355295
+ tablesRecomputeRows = new BaseAction({
355296
+ name: "tablesRecomputeRows",
355297
+ input: X.object({
355298
+ tableId: X.string(),
355299
+ botId: X.string(),
355300
+ schema: X.any(),
355301
+ requests: X.array(X.object({
355302
+ row: X.record(X.any()),
355303
+ columnsToRecompute: X.array(X.string())
355304
+ }))
355305
+ }),
355306
+ output: X.object({
355307
+ isFinished: X.boolean(),
355308
+ rows: X.array(X.any())
355309
+ }),
355310
+ handler: async ({ input, client }) => {
355311
+ const { tableId, requests } = input;
355312
+ const { table: remoteTable } = await client._inner.getTable({ table: tableId });
355313
+ const table2 = adk.project.tables.find((x) => x.name === remoteTable.name);
355314
+ async function computeRow(row, columnsToRecompute) {
355315
+ const newRow = { id: row.id };
355316
+ for (const colName of columnsToRecompute) {
355317
+ const col = table2?.columns[colName];
355318
+ if (!col || !col.computed) {
355319
+ newRow[colName] = { status: "error", error: "Column not found or not computed" };
355320
+ continue;
355321
+ }
355322
+ newRow[colName] = {
355323
+ status: "computed",
355324
+ value: await col.value(row)
355325
+ };
355326
+ }
355327
+ return newRow;
355328
+ }
355329
+ const computedRows = await Promise.all(requests.map(async (r) => {
355330
+ const computedRow = await computeRow(r.row, r.columnsToRecompute);
355331
+ return computedRow;
355332
+ }));
355333
+ return { isFinished: true, rows: computedRows };
355334
+ }
355335
+ });
355336
+ BuiltInActions = {
355337
+ tablesRecomputeRows
355338
+ };
355258
355339
  adk = {
355259
355340
  get environment() {
355260
355341
  return Environment;
@@ -355545,7 +355626,7 @@ ${iteration.status.execution_error.stack}`;
355545
355626
  ConversationHandler = Symbol.for("conversation.handler");
355546
355627
  ((Typings8) => {
355547
355628
  Typings8.Primitive = "conversation";
355548
- })(Typings3 || (Typings3 = {}));
355629
+ })(Typings4 || (Typings4 = {}));
355549
355630
  BaseConversation = class {
355550
355631
  channel;
355551
355632
  schema;
@@ -355709,6 +355790,8 @@ ${iteration.status.execution_error.stack}`;
355709
355790
  init_define_PACKAGE_VERSIONS();
355710
355791
  init_define_BUILD();
355711
355792
  init_define_PACKAGE_VERSIONS();
355793
+ init_define_BUILD();
355794
+ init_define_PACKAGE_VERSIONS();
355712
355795
  storage2 = getSingleton("__ADK_GLOBAL_CTX_WORKFLOW_STEP", () => new AsyncLocalStorage3);
355713
355796
  step.listen = async (name2) => {
355714
355797
  await _step(name2, async () => {
@@ -356859,11 +356942,6 @@ ${iteration.status.execution_error.stack}`;
356859
356942
  init_define_PACKAGE_VERSIONS();
356860
356943
  ((Typings8) => {
356861
356944
  Typings8.Primitive = "knowledge";
356862
- })(Typings4 || (Typings4 = {}));
356863
- init_define_BUILD();
356864
- init_define_PACKAGE_VERSIONS();
356865
- ((Typings8) => {
356866
- Typings8.Primitive = "action";
356867
356945
  })(Typings5 || (Typings5 = {}));
356868
356946
  init_define_BUILD();
356869
356947
  init_define_PACKAGE_VERSIONS();
@@ -356885,13 +356963,13 @@ ${iteration.status.execution_error.stack}`;
356885
356963
  Primitives22.Definitions = Definitions;
356886
356964
  Primitives22.BaseConversation = BaseConversation;
356887
356965
  Primitives22.BaseConversationInstance = BaseConversationInstance;
356888
- Primitives22.Conversation = Typings3;
356966
+ Primitives22.Conversation = Typings4;
356889
356967
  Primitives22.BaseKnowledge = BaseKnowledge;
356890
- Primitives22.Knowledge = Typings4;
356968
+ Primitives22.Knowledge = Typings5;
356891
356969
  Primitives22.BaseWorkflow = BaseWorkflow;
356892
356970
  Primitives22.Workflow = Typings;
356893
356971
  Primitives22.BaseAction = BaseAction;
356894
- Primitives22.Action = Typings5;
356972
+ Primitives22.Action = Typings3;
356895
356973
  Primitives22.BaseTable = BaseTable;
356896
356974
  Primitives22.Table = Typings6;
356897
356975
  Primitives22.BaseTrigger = Trigger;
@@ -372427,7 +372505,7 @@ class AgentProjectGenerator {
372427
372505
  deploy: "adk deploy"
372428
372506
  },
372429
372507
  dependencies: {
372430
- "@botpress/runtime": "^1.6.10"
372508
+ "@botpress/runtime": "^1.7.0"
372431
372509
  },
372432
372510
  devDependencies: {
372433
372511
  typescript: "^5.9.3"
@@ -373716,6 +373794,9 @@ class InterfaceSync {
373716
373794
  function isBuiltinWorkflow2(name2) {
373717
373795
  return !!Object.values(BuiltInWorkflows).find((x) => x.name === name2);
373718
373796
  }
373797
+ function isBuiltinAction(name2) {
373798
+ return !!Object.values(BuiltInActions).find((x) => x.name === name2);
373799
+ }
373719
373800
  function getImportPath(from, to3) {
373720
373801
  return path29.relative(path29.dirname(from), to3).replace(/\.ts$/, "").replace(/\\/g, "/");
373721
373802
  }
@@ -374283,23 +374364,14 @@ declare module "@botpress/runtime/_types/state" {
374283
374364
  await createFile(path29.join(this.outputPath, "bot.definition.ts"), await formatCode(content));
374284
374365
  }
374285
374366
  async generateBotIndex() {
374286
- const project = await AgentProject.load(this.projectPath);
374287
- const actionHandlers = [];
374288
- for (const action of project.actions) {
374289
- const def = action.definition;
374290
- actionHandlers.push(`"${def.name}": Actions["${def.name}"].execute.bind(Actions["${def.name}"])`);
374291
- }
374292
374367
  const content = dedent_default`
374293
374368
  import * as bp from '.botpress'
374294
374369
  import { setupAdkRuntime } from './adk-runtime'
374295
374370
  import { Actions } from './actions'
374296
- import {isMainThread, isWorkerMode, initializeParentWorker, runWorker} from '@botpress/runtime/internal'
374371
+ import {isMainThread, isWorkerMode, initializeParentWorker, runWorker, BuiltInActions} from '@botpress/runtime/internal'
374297
374372
 
374298
374373
  const bot = new bp.Bot({
374299
- actions: {
374300
- ${actionHandlers.join(`,
374301
- `)}
374302
- },
374374
+ actions: {}
374303
374375
  })
374304
374376
 
374305
374377
  // ============================================================================
@@ -374601,6 +374673,9 @@ declare module "@botpress/runtime/_types/state" {
374601
374673
  const exports = new Set;
374602
374674
  let index = 1;
374603
374675
  for (const action of project.actions) {
374676
+ if (isBuiltinAction(action.definition.name)) {
374677
+ continue;
374678
+ }
374604
374679
  if (!imports.has(action.path)) {
374605
374680
  const name2 = `actions_${index++}`;
374606
374681
  const importPath = getImportPath(dest, path29.join(project.path, action.path));
@@ -374726,6 +374801,7 @@ declare module "@botpress/runtime/_types/state" {
374726
374801
  handlers.event.setup(bot);
374727
374802
  handlers.trigger.setup(bot);
374728
374803
  handlers.workflow.setup(bot);
374804
+ handlers.actions.setup(bot);
374729
374805
  }
374730
374806
  `;
374731
374807
  await createFile(path29.join(this.outputPath, "src", "adk-runtime.ts"), await formatCode(content));
@@ -375918,6 +375994,7 @@ ${this.stderrLines.join(`
375918
375994
  });
375919
375995
  await this.loadDependencies();
375920
375996
  await this.loadBuiltInWorkflows();
375997
+ await this.loadBuiltInActions();
375921
375998
  await this.loadAgentPrimitives();
375922
375999
  if (this._agentInfo) {
375923
376000
  this._assetsManager = new AssetsManager({
@@ -376206,6 +376283,18 @@ ${this.stderrLines.join(`
376206
376283
  }
376207
376284
  }
376208
376285
  }
376286
+ async loadBuiltInActions() {
376287
+ for (const action of Object.values(BuiltInActions)) {
376288
+ const definition = Primitives3.Definitions.getDefinition(action);
376289
+ if (Primitives3.Definitions.isActionDefinition(definition)) {
376290
+ this._actions.push({
376291
+ definition,
376292
+ export: "default",
376293
+ path: "<adk:builtin>"
376294
+ });
376295
+ }
376296
+ }
376297
+ }
376209
376298
  async registerDataSourceWorkflows(knowledgeBase, kbPath, kbExport) {
376210
376299
  try {
376211
376300
  if (!knowledgeBase.sources || !Array.isArray(knowledgeBase.sources)) {
@@ -381634,7 +381723,7 @@ var init_Separator = __esm(async () => {
381634
381723
  var require_package3 = __commonJS((exports, module) => {
381635
381724
  module.exports = {
381636
381725
  name: "@botpress/adk",
381637
- version: "1.6.10",
381726
+ version: "1.7.0",
381638
381727
  description: "Core ADK library for building AI agents on Botpress",
381639
381728
  type: "module",
381640
381729
  main: "dist/index.js",
@@ -381681,7 +381770,7 @@ var require_package3 = __commonJS((exports, module) => {
381681
381770
  "@botpress/cli": "^4.20",
381682
381771
  "@botpress/client": "^1.27.0",
381683
381772
  "@botpress/cognitive": "^0.2.0",
381684
- "@botpress/runtime": "^1.6.10",
381773
+ "@botpress/runtime": "^1.7.0",
381685
381774
  "@botpress/sdk": "^4.17.3",
381686
381775
  "@bpinternal/yargs-extra": "^0.0.21",
381687
381776
  "@parcel/watcher": "^2.5.1",
@@ -383069,7 +383158,7 @@ function checkRuntimeVersion(agentRoot) {
383069
383158
  `));
383070
383159
  }
383071
383160
  }
383072
- var semver2, EXPECTED_RUNTIME_VERSION = "1.6.10";
383161
+ var semver2, EXPECTED_RUNTIME_VERSION = "1.7.0";
383073
383162
  var init_runtime_version_check = __esm(() => {
383074
383163
  init_source();
383075
383164
  semver2 = __toESM(require_semver2(), 1);
@@ -398668,7 +398757,7 @@ if (!checkNodeVersion(true)) {
398668
398757
  }
398669
398758
  var __filename2 = fileURLToPath9(import.meta.url);
398670
398759
  var __dirname5 = dirname3(__filename2);
398671
- var CLI_VERSION = "1.6.10";
398760
+ var CLI_VERSION = "1.7.0";
398672
398761
  program.name("adk").description("Botpress Agent Development Kit (ADK) - CLI for building AI agents").version(CLI_VERSION).option("--no-cache", "Disable caching for integration lookups").configureHelp({
398673
398762
  formatHelp: () => formatHelp(program, CLI_VERSION)
398674
398763
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/adk-cli",
3
- "version": "1.6.10",
3
+ "version": "1.7.0",
4
4
  "description": "Command-line interface for the Botpress Agent Development Kit (ADK)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -40,9 +40,9 @@
40
40
  "url": "https://github.com/botpress/adk"
41
41
  },
42
42
  "dependencies": {
43
- "@botpress/adk": "^1.6.10",
43
+ "@botpress/adk": "^1.7.0",
44
44
  "@botpress/cli": "^4.20",
45
- "@botpress/runtime": "^1.6.10",
45
+ "@botpress/runtime": "^1.7.0",
46
46
  "adm-zip": "^0.5.16",
47
47
  "chalk": "^5.4.1",
48
48
  "clipboardy": "^4.0.0",