@botpress/adk 1.12.3 → 1.12.4

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 +1 @@
1
- {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../src/bot-generator/generator.ts"],"names":[],"mappings":"AA6BA,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,YAAY,CAAA;CACpD;AAkBD,qBAAa,YAAY;IACvB,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,UAAU,CAAQ;gBAEd,OAAO,EAAE,mBAAmB;YAK1B,kBAAkB;YAuBlB,sBAAsB;IAsB9B,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;YA+BjB,yBAAyB;YAkEzB,kBAAkB;YAKlB,oBAAoB;YAKpB,gBAAgB;YAKhB,kBAAkB;YAKlB,0BAA0B;YAK1B,kBAAkB;YAKlB,qBAAqB;YAKrB,yBAAyB;YAKzB,mBAAmB;YAMnB,8BAA8B;YAM9B,oBAAoB;YAyEpB,uBAAuB;YA8FvB,8BAA8B;YAiC9B,4BAA4B;YA2B5B,qBAAqB;YA8XrB,gBAAgB;YAoChB,mBAAmB;YAgBnB,gBAAgB;YAiChB,mBAAmB;YAyBnB,UAAU;YAWV,aAAa;IAgBrB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IA6ZnC,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;CAOzC;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8CpF"}
1
+ {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../src/bot-generator/generator.ts"],"names":[],"mappings":"AA6BA,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,YAAY,CAAA;CACpD;AAkBD,qBAAa,YAAY;IACvB,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,UAAU,CAAQ;gBAEd,OAAO,EAAE,mBAAmB;YAK1B,kBAAkB;YAuBlB,sBAAsB;IAsB9B,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;YA+BjB,yBAAyB;YAkEzB,kBAAkB;YAKlB,oBAAoB;YAKpB,gBAAgB;YAKhB,kBAAkB;YAKlB,0BAA0B;YAK1B,kBAAkB;YAKlB,qBAAqB;YAKrB,yBAAyB;YAKzB,mBAAmB;YAMnB,8BAA8B;YAM9B,oBAAoB;YAyEpB,uBAAuB;YA8FvB,8BAA8B;YAiC9B,4BAA4B;YA2B5B,qBAAqB;YA+XrB,gBAAgB;YAoChB,mBAAmB;YAgBnB,gBAAgB;YAiChB,mBAAmB;YAyBnB,UAAU;YAWV,aAAa;IAgBrB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IA6ZnC,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;CAOzC;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8CpF"}
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.12.3", relative2 = (from, to) => {
657
+ }, ADK_VERSION = "1.12.4", 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.12.3",
800
+ version: "1.12.4",
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.28.0",
846
846
  "@botpress/cognitive": "^0.2.0",
847
- "@botpress/runtime": "^1.12.3",
847
+ "@botpress/runtime": "^1.12.4",
848
848
  "@botpress/sdk": "^4.18.1",
849
849
  "@bpinternal/jex": "^1.2.4",
850
850
  "@bpinternal/yargs-extra": "^0.0.21",
@@ -3539,6 +3539,13 @@ class IntegrationChecker {
3539
3539
  }
3540
3540
  // src/integrations/sync-manager.ts
3541
3541
  import { Client as Client9 } from "@botpress/client";
3542
+ function normalizeConfigurationType(configType) {
3543
+ if (configType === "default" || configType === null) {
3544
+ return;
3545
+ }
3546
+ return configType;
3547
+ }
3548
+
3542
3549
  class IntegrationSyncManager {
3543
3550
  projectPath;
3544
3551
  client;
@@ -3597,7 +3604,7 @@ class IntegrationSyncManager {
3597
3604
  integrationId: result.desiredIntegrationId || result.definition.id,
3598
3605
  enabled: result.desiredInstallStatus === "enabled",
3599
3606
  configuration: result.desiredConfiguration || {},
3600
- configurationType: result.desiredConfigurationType
3607
+ configurationType: normalizeConfigurationType(result.desiredConfigurationType)
3601
3608
  }
3602
3609
  }
3603
3610
  });
@@ -3616,7 +3623,7 @@ class IntegrationSyncManager {
3616
3623
  integrationId: result.desiredIntegrationId || result.definition.id,
3617
3624
  enabled: result.desiredInstallStatus === "enabled",
3618
3625
  configuration: result.desiredConfiguration || {},
3619
- configurationType: result.desiredConfigurationType
3626
+ configurationType: normalizeConfigurationType(result.desiredConfigurationType)
3620
3627
  }
3621
3628
  }
3622
3629
  });
@@ -6163,7 +6170,7 @@ class AgentProjectGenerator {
6163
6170
  deploy: "adk deploy"
6164
6171
  },
6165
6172
  dependencies: {
6166
- "@botpress/runtime": `^${"1.12.3"}`
6173
+ "@botpress/runtime": `^${"1.12.4"}`
6167
6174
  },
6168
6175
  devDependencies: {
6169
6176
  typescript: "^5.9.3"
@@ -8270,7 +8277,7 @@ declare module "@botpress/runtime/_types/state" {
8270
8277
  const { alias, configurationType, config } = integration;
8271
8278
  const importName = `integration_${getIntegrationAlias(alias)}`;
8272
8279
  imports.push(`import ${importName} from "./bp_modules/${importName}";`);
8273
- const configType = configurationType ? `, configurationType: "${configurationType}"` : "";
8280
+ const configType = configurationType && configurationType !== "default" ? `, configurationType: "${configurationType}"` : "";
8274
8281
  const configData = config && Object.keys(config).length > 0 ? `, configuration: ${JSON.stringify(config)}` : "";
8275
8282
  addIntegrations.push(`bot.addIntegration(${importName}, { alias: "${alias}", enabled: true${configType}${configData} });`);
8276
8283
  }
@@ -11053,5 +11060,5 @@ export {
11053
11060
  AgentProject
11054
11061
  };
11055
11062
 
11056
- //# debugId=1A3563A12165E75864756E2164756E21
11063
+ //# debugId=04C11AF687D138E464756E2164756E21
11057
11064
  //# sourceMappingURL=index.js.map