@botpress/adk-cli 1.8.2 → 1.8.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.
- package/dist/cli.js +37 -56
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -355533,7 +355533,7 @@ var init_internal = __esm(() => {
|
|
|
355533
355533
|
});
|
|
355534
355534
|
init_define_PACKAGE_VERSIONS = __esm2({
|
|
355535
355535
|
"<define:__PACKAGE_VERSIONS__>"() {
|
|
355536
|
-
define_PACKAGE_VERSIONS_default = { runtime: "1.8.
|
|
355536
|
+
define_PACKAGE_VERSIONS_default = { runtime: "1.8.4", adk: "1.8.4", sdk: "4.19.0", llmz: "0.0.33", zai: "2.5.0", cognitive: "0.2.0" };
|
|
355537
355537
|
}
|
|
355538
355538
|
});
|
|
355539
355539
|
init_globalThis = __esm2({
|
|
@@ -391597,6 +391597,7 @@ yield <Message>
|
|
|
391597
391597
|
},
|
|
391598
391598
|
abort: () => {
|
|
391599
391599
|
workflowControlContext.aborted = true;
|
|
391600
|
+
workflowControlContext.acked = true;
|
|
391600
391601
|
},
|
|
391601
391602
|
fail: (reason) => {
|
|
391602
391603
|
workflowControlContext.failed = true;
|
|
@@ -643074,7 +643075,7 @@ var init_library = __esm(() => {
|
|
|
643074
643075
|
});
|
|
643075
643076
|
init_define_PACKAGE_VERSIONS2 = __esm3({
|
|
643076
643077
|
"<define:__PACKAGE_VERSIONS__>"() {
|
|
643077
|
-
define_PACKAGE_VERSIONS_default2 = { runtime: "1.8.
|
|
643078
|
+
define_PACKAGE_VERSIONS_default2 = { runtime: "1.8.4", adk: "1.8.4", sdk: "4.19.0", llmz: "0.0.33", zai: "2.5.0", cognitive: "0.2.0" };
|
|
643078
643079
|
}
|
|
643079
643080
|
});
|
|
643080
643081
|
init_globalThis2 = __esm3({
|
|
@@ -678292,6 +678293,7 @@ ${issues.join(`
|
|
|
678292
678293
|
},
|
|
678293
678294
|
abort: () => {
|
|
678294
678295
|
workflowControlContext.aborted = true;
|
|
678296
|
+
workflowControlContext.acked = true;
|
|
678295
678297
|
},
|
|
678296
678298
|
fail: (reason) => {
|
|
678297
678299
|
workflowControlContext.failed = true;
|
|
@@ -680270,7 +680272,6 @@ import { existsSync as existsSync32 } from "fs";
|
|
|
680270
680272
|
import path27 from "path";
|
|
680271
680273
|
import fs14 from "fs/promises";
|
|
680272
680274
|
import { existsSync as existsSync42 } from "fs";
|
|
680273
|
-
import { spawn as spawn2 } from "child_process";
|
|
680274
680275
|
import crypto42 from "crypto";
|
|
680275
680276
|
import path31 from "path";
|
|
680276
680277
|
import fs16 from "fs/promises";
|
|
@@ -683390,7 +683391,7 @@ class AgentProjectGenerator {
|
|
|
683390
683391
|
deploy: "adk deploy"
|
|
683391
683392
|
},
|
|
683392
683393
|
dependencies: {
|
|
683393
|
-
"@botpress/runtime": "^1.8.
|
|
683394
|
+
"@botpress/runtime": "^1.8.4"
|
|
683394
683395
|
},
|
|
683395
683396
|
devDependencies: {
|
|
683396
683397
|
typescript: "^5.9.3"
|
|
@@ -684517,7 +684518,7 @@ class IntegrationSync {
|
|
|
684517
684518
|
throw new Error('No workspace ID found. Please login with "adk login"');
|
|
684518
684519
|
}
|
|
684519
684520
|
const command = new BpAddCommand({
|
|
684520
|
-
|
|
684521
|
+
resource: `integration:${integration.fullVersion}`,
|
|
684521
684522
|
botPath: this.botProjectPath,
|
|
684522
684523
|
workspaceId,
|
|
684523
684524
|
credentials
|
|
@@ -684623,47 +684624,27 @@ class InterfaceSync {
|
|
|
684623
684624
|
if (!workspaceId) {
|
|
684624
684625
|
throw new Error('No workspace ID found. Please login with "adk login"');
|
|
684625
684626
|
}
|
|
684626
|
-
const bpCli = await getBpCli(this.projectPath);
|
|
684627
|
-
const bpPath = bpCli.path;
|
|
684628
684627
|
return new Promise((resolve3, reject) => {
|
|
684629
|
-
const
|
|
684630
|
-
|
|
684631
|
-
|
|
684632
|
-
"-y",
|
|
684633
|
-
"--installPath",
|
|
684634
|
-
this.botProjectPath,
|
|
684635
|
-
"--token",
|
|
684636
|
-
credentials.token,
|
|
684637
|
-
"--workspaceId",
|
|
684628
|
+
const command = new BpAddCommand({
|
|
684629
|
+
resource: `interface:${interfaceInfo.fullVersion}`,
|
|
684630
|
+
botPath: this.botProjectPath,
|
|
684638
684631
|
workspaceId,
|
|
684639
|
-
|
|
684640
|
-
|
|
684641
|
-
|
|
684642
|
-
|
|
684643
|
-
const command = isJsFile ? "node" : bpPath;
|
|
684644
|
-
const commandArgs = isJsFile ? [bpPath, ...args] : args;
|
|
684645
|
-
const child = spawn2(command, commandArgs, {
|
|
684646
|
-
cwd: this.projectPath,
|
|
684647
|
-
stdio: "pipe"
|
|
684648
|
-
});
|
|
684649
|
-
let stdout = "";
|
|
684650
|
-
let stderr = "";
|
|
684651
|
-
child.stdout?.on("data", (data) => {
|
|
684652
|
-
stdout += data.toString();
|
|
684632
|
+
credentials: {
|
|
684633
|
+
token: credentials.token,
|
|
684634
|
+
apiUrl: credentials.apiUrl
|
|
684635
|
+
}
|
|
684653
684636
|
});
|
|
684654
|
-
|
|
684655
|
-
|
|
684637
|
+
let stderr = "";
|
|
684638
|
+
command.on("stderr", (data) => {
|
|
684639
|
+
stderr += data;
|
|
684656
684640
|
});
|
|
684657
|
-
|
|
684658
|
-
|
|
684659
|
-
resolve3();
|
|
684660
|
-
} else {
|
|
684661
|
-
reject(new Error(`Failed to install interface ${interfaceInfo.fullVersion}: ${stderr || stdout}`));
|
|
684662
|
-
}
|
|
684641
|
+
command.on("error", (error) => {
|
|
684642
|
+
reject(new Error(`Failed to install interface ${interfaceInfo.fullVersion}: ${error.stderr || error.message}`));
|
|
684663
684643
|
});
|
|
684664
|
-
|
|
684665
|
-
|
|
684644
|
+
command.on("done", () => {
|
|
684645
|
+
resolve3();
|
|
684666
684646
|
});
|
|
684647
|
+
command.run().catch(reject);
|
|
684667
684648
|
});
|
|
684668
684649
|
}
|
|
684669
684650
|
async renameInterfaceFolder(interfaceInfo) {
|
|
@@ -687298,7 +687279,7 @@ var import_ts_morph, __defProp10, __commonJS6 = (cb5, mod) => () => (mod || cb5(
|
|
|
687298
687279
|
`));
|
|
687299
687280
|
return code;
|
|
687300
687281
|
}
|
|
687301
|
-
}, ADK_VERSION = "1.8.
|
|
687282
|
+
}, ADK_VERSION = "1.8.4", relative2 = (from, to3) => {
|
|
687302
687283
|
const fromDir = path102.dirname(from);
|
|
687303
687284
|
const relative32 = path102.relative(fromDir, to3);
|
|
687304
687285
|
return relative32.startsWith(".") ? relative32 : `./${relative32}`;
|
|
@@ -687512,7 +687493,7 @@ var init_dist17 = __esm(() => {
|
|
|
687512
687493
|
require_package3 = __commonJS6((exports2, module) => {
|
|
687513
687494
|
module.exports = {
|
|
687514
687495
|
name: "@botpress/adk",
|
|
687515
|
-
version: "1.8.
|
|
687496
|
+
version: "1.8.4",
|
|
687516
687497
|
description: "Core ADK library for building AI agents on Botpress",
|
|
687517
687498
|
type: "module",
|
|
687518
687499
|
main: "dist/index.js",
|
|
@@ -687556,10 +687537,10 @@ var init_dist17 = __esm(() => {
|
|
|
687556
687537
|
url: "https://github.com/botpress/adk"
|
|
687557
687538
|
},
|
|
687558
687539
|
dependencies: {
|
|
687559
|
-
"@botpress/cli": "^4.
|
|
687540
|
+
"@botpress/cli": "^4.27.3",
|
|
687560
687541
|
"@botpress/client": "^1.27.2",
|
|
687561
687542
|
"@botpress/cognitive": "^0.2.0",
|
|
687562
|
-
"@botpress/runtime": "^1.8.
|
|
687543
|
+
"@botpress/runtime": "^1.8.4",
|
|
687563
687544
|
"@botpress/sdk": "^4.18.1",
|
|
687564
687545
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
687565
687546
|
"@parcel/watcher": "^2.5.1",
|
|
@@ -687600,11 +687581,11 @@ var init_dist17 = __esm(() => {
|
|
|
687600
687581
|
this.options = options;
|
|
687601
687582
|
}
|
|
687602
687583
|
async run() {
|
|
687603
|
-
const {
|
|
687584
|
+
const { resource: resource3, botPath, workspaceId, credentials } = this.options;
|
|
687604
687585
|
const { path: bpCommand } = await getBpCli(botPath);
|
|
687605
687586
|
const args = [
|
|
687606
687587
|
"add",
|
|
687607
|
-
|
|
687588
|
+
resource3,
|
|
687608
687589
|
"-y",
|
|
687609
687590
|
"--installPath",
|
|
687610
687591
|
botPath,
|
|
@@ -694095,7 +694076,7 @@ var init_Separator = __esm(async () => {
|
|
|
694095
694076
|
var require_package4 = __commonJS((exports2, module) => {
|
|
694096
694077
|
module.exports = {
|
|
694097
694078
|
name: "@botpress/adk",
|
|
694098
|
-
version: "1.8.
|
|
694079
|
+
version: "1.8.4",
|
|
694099
694080
|
description: "Core ADK library for building AI agents on Botpress",
|
|
694100
694081
|
type: "module",
|
|
694101
694082
|
main: "dist/index.js",
|
|
@@ -694139,10 +694120,10 @@ var require_package4 = __commonJS((exports2, module) => {
|
|
|
694139
694120
|
url: "https://github.com/botpress/adk"
|
|
694140
694121
|
},
|
|
694141
694122
|
dependencies: {
|
|
694142
|
-
"@botpress/cli": "^4.
|
|
694123
|
+
"@botpress/cli": "^4.27.3",
|
|
694143
694124
|
"@botpress/client": "^1.27.2",
|
|
694144
694125
|
"@botpress/cognitive": "^0.2.0",
|
|
694145
|
-
"@botpress/runtime": "^1.8.
|
|
694126
|
+
"@botpress/runtime": "^1.8.4",
|
|
694146
694127
|
"@botpress/sdk": "^4.18.1",
|
|
694147
694128
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
694148
694129
|
"@parcel/watcher": "^2.5.1",
|
|
@@ -695663,7 +695644,7 @@ function checkRuntimeVersion(agentRoot) {
|
|
|
695663
695644
|
`));
|
|
695664
695645
|
}
|
|
695665
695646
|
}
|
|
695666
|
-
var semver2, EXPECTED_RUNTIME_VERSION = "1.8.
|
|
695647
|
+
var semver2, EXPECTED_RUNTIME_VERSION = "1.8.4";
|
|
695667
695648
|
var init_runtime_version_check = __esm(() => {
|
|
695668
695649
|
init_source();
|
|
695669
695650
|
semver2 = __toESM(require_semver2(), 1);
|
|
@@ -699585,13 +699566,13 @@ var init_server = __esm(() => {
|
|
|
699585
699566
|
});
|
|
699586
699567
|
|
|
699587
699568
|
// src/utils/node-inspector.ts
|
|
699588
|
-
import { spawn as
|
|
699569
|
+
import { spawn as spawn2 } from "child_process";
|
|
699589
699570
|
import os9 from "os";
|
|
699590
699571
|
import path44 from "path";
|
|
699591
699572
|
function openDevtools(url4) {
|
|
699592
699573
|
const platform4 = os9.platform();
|
|
699593
699574
|
if (platform4 === "darwin") {
|
|
699594
|
-
return
|
|
699575
|
+
return spawn2("open", ["-a", "Google Chrome", url4], {
|
|
699595
699576
|
detached: true,
|
|
699596
699577
|
stdio: "ignore"
|
|
699597
699578
|
}).unref();
|
|
@@ -699599,8 +699580,8 @@ function openDevtools(url4) {
|
|
|
699599
699580
|
if (platform4 === "win32") {
|
|
699600
699581
|
const tryStart = (exe) => {
|
|
699601
699582
|
if (exe)
|
|
699602
|
-
return
|
|
699603
|
-
return
|
|
699583
|
+
return spawn2(exe, [url4], { detached: true, stdio: "ignore" }).unref();
|
|
699584
|
+
return spawn2("cmd", ["/c", 'start "" chrome', `"${url4}"`], {
|
|
699604
699585
|
detached: true,
|
|
699605
699586
|
stdio: "ignore"
|
|
699606
699587
|
}).unref();
|
|
@@ -699625,7 +699606,7 @@ function openDevtools(url4) {
|
|
|
699625
699606
|
"_",
|
|
699626
699607
|
url4
|
|
699627
699608
|
];
|
|
699628
|
-
return
|
|
699609
|
+
return spawn2(cmd, args, { detached: true, stdio: "ignore" }).unref();
|
|
699629
699610
|
}
|
|
699630
699611
|
var init_node_inspector = () => {};
|
|
699631
699612
|
|
|
@@ -711756,7 +711737,7 @@ if (!checkNodeVersion(true)) {
|
|
|
711756
711737
|
checkNodeVersion(false);
|
|
711757
711738
|
process.exit(1);
|
|
711758
711739
|
}
|
|
711759
|
-
var CLI_VERSION = "1.8.
|
|
711740
|
+
var CLI_VERSION = "1.8.4";
|
|
711760
711741
|
if (CLI_VERSION.startsWith("<<") && CLI_VERSION.endsWith(">>")) {
|
|
711761
711742
|
try {
|
|
711762
711743
|
const __filename2 = fileURLToPath12(import.meta.url);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/adk-cli",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.4",
|
|
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.8.
|
|
44
|
-
"@botpress/cli": "^4.
|
|
45
|
-
"@botpress/runtime": "^1.8.
|
|
43
|
+
"@botpress/adk": "^1.8.4",
|
|
44
|
+
"@botpress/cli": "^4.27.3",
|
|
45
|
+
"@botpress/runtime": "^1.8.4",
|
|
46
46
|
"adm-zip": "^0.5.16",
|
|
47
47
|
"chalk": "^5.4.1",
|
|
48
48
|
"clipboardy": "^4.0.0",
|