@botpress/adk 1.13.2 → 1.13.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.
|
@@ -11,6 +11,8 @@ export interface BpDevCommandOptions {
|
|
|
11
11
|
/** The dev bot ID if already known (from agent.json) */
|
|
12
12
|
devBotId?: string;
|
|
13
13
|
sourceMap?: boolean;
|
|
14
|
+
/** Bot configuration to inject as environment variable */
|
|
15
|
+
configuration?: Record<string, unknown>;
|
|
14
16
|
}
|
|
15
17
|
export type BpDevProgressEvent = {
|
|
16
18
|
type: 'generating';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bp-dev-command.d.ts","sourceRoot":"","sources":["../../src/commands/bp-dev-command.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAG/C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE;QACX,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;IACD,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"bp-dev-command.d.ts","sourceRoot":"","sources":["../../src/commands/bp-dev-command.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAG/C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE;QACX,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;IAC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I;IAOxC,OAAO,IAAI,OAAO,CAAC,YAAY,CAAC;IAUtC,gBAAgB,CAAC,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAAG,kBAAkB,GAAG,SAAS;IAIlF,oBAAoB,IAAI,kBAAkB,EAAE;CAG7C"}
|
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.
|
|
669
|
+
}, ADK_VERSION = "1.13.4", 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.
|
|
812
|
+
version: "1.13.4",
|
|
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.
|
|
859
|
+
"@botpress/runtime": "^1.13.4",
|
|
860
860
|
"@botpress/sdk": "^5.0.2",
|
|
861
861
|
"@bpinternal/jex": "^1.2.4",
|
|
862
862
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
@@ -866,7 +866,7 @@ var require_package = __commonJS((exports, module) => {
|
|
|
866
866
|
execa: "9.6.1",
|
|
867
867
|
glob: "^11.1.0",
|
|
868
868
|
luxon: "^3.7.2",
|
|
869
|
-
prettier: "^3.
|
|
869
|
+
prettier: "^3.7.4",
|
|
870
870
|
semver: "^7.7.2",
|
|
871
871
|
"ts-morph": "^27.0.2"
|
|
872
872
|
},
|
|
@@ -1600,6 +1600,9 @@ class BpDevCommand extends BaseCommand {
|
|
|
1600
1600
|
ADK_TOKEN: credentials.token,
|
|
1601
1601
|
ADK_API_URL: credentials.apiUrl,
|
|
1602
1602
|
ADK_BOT_ID: this.options.devBotId || "",
|
|
1603
|
+
...this.options.configuration && {
|
|
1604
|
+
ADK_CONFIGURATION: JSON.stringify(this.options.configuration)
|
|
1605
|
+
},
|
|
1603
1606
|
WORKER_MODE: "true",
|
|
1604
1607
|
WORKER_LIFETIME_MS: process.env.WORKER_LIFETIME_MS || "120000",
|
|
1605
1608
|
ADK_DIRECTORY: join2(botPath, ".."),
|
|
@@ -6274,7 +6277,7 @@ class AgentProjectGenerator {
|
|
|
6274
6277
|
deploy: "adk deploy"
|
|
6275
6278
|
},
|
|
6276
6279
|
dependencies: {
|
|
6277
|
-
"@botpress/runtime": `^${"1.13.
|
|
6280
|
+
"@botpress/runtime": `^${"1.13.4"}`
|
|
6278
6281
|
},
|
|
6279
6282
|
devDependencies: {
|
|
6280
6283
|
typescript: "^5.9.3"
|
|
@@ -11063,6 +11066,11 @@ class ScriptRunner {
|
|
|
11063
11066
|
throw new Error(`No ${idType} found in agent.json. ` + (this.prod ? 'Please deploy your agent first with "adk deploy".' : 'Please run "adk dev" first to create a development bot, or use --prod to use the production bot.'));
|
|
11064
11067
|
}
|
|
11065
11068
|
const args = ["run", runnerPath, absoluteScriptPath, ...options.args || []];
|
|
11069
|
+
let configuration;
|
|
11070
|
+
try {
|
|
11071
|
+
const manager3 = new ConfigManager(botId);
|
|
11072
|
+
configuration = await manager3.getAll();
|
|
11073
|
+
} catch {}
|
|
11066
11074
|
const env = {
|
|
11067
11075
|
...process.env,
|
|
11068
11076
|
ADK_PROJECT_PATH: this.projectPath,
|
|
@@ -11075,7 +11083,8 @@ class ScriptRunner {
|
|
|
11075
11083
|
ADK_SCRIPT_MODE: "true",
|
|
11076
11084
|
ADK_SCRIPT_PATH: absoluteScriptPath,
|
|
11077
11085
|
ADK_TOKEN: this.credentials.token,
|
|
11078
|
-
ADK_API_URL: this.credentials.apiUrl
|
|
11086
|
+
ADK_API_URL: this.credentials.apiUrl,
|
|
11087
|
+
...configuration && { ADK_CONFIGURATION: JSON.stringify(configuration) }
|
|
11079
11088
|
};
|
|
11080
11089
|
return new Promise((resolve3, reject) => {
|
|
11081
11090
|
const child = spawn("bun", args, {
|
|
@@ -11164,4 +11173,4 @@ export {
|
|
|
11164
11173
|
AgentProject
|
|
11165
11174
|
};
|
|
11166
11175
|
|
|
11167
|
-
//# debugId=
|
|
11176
|
+
//# debugId=92F21C5622C67F2364756E2164756E21
|