@botpress/adk 1.13.4 → 1.13.5

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/index.js CHANGED
@@ -666,7 +666,7 @@ var PRETTIER_CONFIG, formatCode = async (code, filepath) => {
666
666
  `));
667
667
  return code;
668
668
  }
669
- }, ADK_VERSION = "1.13.4", relative2 = (from, to) => {
669
+ }, ADK_VERSION = "1.13.5", relative2 = (from, to) => {
670
670
  const fromDir = path10.dirname(from);
671
671
  const relative3 = path10.relative(fromDir, to);
672
672
  return relative3.startsWith(".") ? relative3 : `./${relative3}`;
@@ -809,7 +809,7 @@ var init_integration_action_types = __esm(() => {
809
809
  var require_package = __commonJS((exports, module) => {
810
810
  module.exports = {
811
811
  name: "@botpress/adk",
812
- version: "1.13.4",
812
+ version: "1.13.5",
813
813
  description: "Core ADK library for building AI agents on Botpress",
814
814
  type: "module",
815
815
  main: "dist/index.js",
@@ -856,7 +856,7 @@ var require_package = __commonJS((exports, module) => {
856
856
  "@botpress/cli": "^5.1.1",
857
857
  "@botpress/client": "^1.28.0",
858
858
  "@botpress/cognitive": "^0.3.3",
859
- "@botpress/runtime": "^1.13.4",
859
+ "@botpress/runtime": "^1.13.5",
860
860
  "@botpress/sdk": "^5.0.2",
861
861
  "@bpinternal/jex": "^1.2.4",
862
862
  "@bpinternal/yargs-extra": "^0.0.21",
@@ -1312,15 +1312,18 @@ function rebuildMappings(lines, sourceIndexMap, nameIndexMap) {
1312
1312
  }
1313
1313
  const segments = [];
1314
1314
  for (const segment of line.segments) {
1315
+ if (segment.sourceIndex !== undefined) {
1316
+ const newSourceIndex = sourceIndexMap.get(segment.sourceIndex);
1317
+ if (newSourceIndex === undefined) {
1318
+ continue;
1319
+ }
1320
+ }
1315
1321
  const parts = [];
1316
1322
  const colDelta = segment.column - prevColumn;
1317
1323
  parts.push(encodeVLQ(colDelta));
1318
1324
  prevColumn = segment.column;
1319
1325
  if (segment.sourceIndex !== undefined) {
1320
1326
  const newSourceIndex = sourceIndexMap.get(segment.sourceIndex);
1321
- if (newSourceIndex === undefined) {
1322
- continue;
1323
- }
1324
1327
  const srcDelta = newSourceIndex - prevSourceIndex;
1325
1328
  parts.push(encodeVLQ(srcDelta));
1326
1329
  prevSourceIndex = newSourceIndex;
@@ -6277,7 +6280,7 @@ class AgentProjectGenerator {
6277
6280
  deploy: "adk deploy"
6278
6281
  },
6279
6282
  dependencies: {
6280
- "@botpress/runtime": `^${"1.13.4"}`
6283
+ "@botpress/runtime": `^${"1.13.5"}`
6281
6284
  },
6282
6285
  devDependencies: {
6283
6286
  typescript: "^5.9.3"
@@ -11173,4 +11176,4 @@ export {
11173
11176
  AgentProject
11174
11177
  };
11175
11178
 
11176
- //# debugId=92F21C5622C67F2364756E2164756E21
11179
+ //# debugId=B9CC13B81959760364756E2164756E21