@botconnector/bccli 0.4.0-beta.6 → 0.4.0-beta.7
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/{chunk-GW36UMHZ.js → chunk-BRTSYM5O.js} +1 -1
- package/dist/{chunk-C5AFWX7H.js → chunk-FMM53YSU.js} +4 -0
- package/dist/cli.js +6 -6
- package/dist/{login-F4G5QXOU.js → login-4277DGKX.js} +1 -1
- package/dist/{providerCli-MXV6PD6F.js → providerCli-6ON7QEVN.js} +1 -1
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@ function readSecret(prompt) {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
async function runLogin(providerId, cwd) {
|
|
38
|
-
const { runProviderCommand } = await import("./providerCli-
|
|
38
|
+
const { runProviderCommand } = await import("./providerCli-6ON7QEVN.js");
|
|
39
39
|
const { parseCliArgs } = await import("./args-FCLPQ7TO.js");
|
|
40
40
|
return runProviderCommand(parseCliArgs(["provider", "add", providerId]), {
|
|
41
41
|
env: process.env,
|
|
@@ -191,6 +191,10 @@ async function readJson(res) {
|
|
|
191
191
|
function createProvider({ baseURL, apiKey, model, fetch: doFetch = fetch, retryDelayMs = 1e3 }) {
|
|
192
192
|
const headers = { "content-type": "application/json" };
|
|
193
193
|
if (apiKey) headers.authorization = `Bearer ${apiKey}`;
|
|
194
|
+
if (/^https:\/\/api\.botconnector\.id\/v1\/?$/.test(baseURL) && apiKey?.startsWith("bc_live_")) {
|
|
195
|
+
headers["x-botconnector-client"] = "bccli";
|
|
196
|
+
headers["x-botconnector-client-version"] = "0.4.0";
|
|
197
|
+
}
|
|
194
198
|
async function post(path, body, signal) {
|
|
195
199
|
let lastError;
|
|
196
200
|
for (let attempt = 0; attempt < 4; attempt++) {
|
package/dist/cli.js
CHANGED
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
addProviderKey,
|
|
8
8
|
createProvider,
|
|
9
9
|
listAllModels
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FMM53YSU.js";
|
|
11
11
|
import {
|
|
12
12
|
runLogin
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BRTSYM5O.js";
|
|
14
14
|
import {
|
|
15
15
|
BUILTIN_AGENTS,
|
|
16
16
|
buildSystemPrompt,
|
|
@@ -1358,7 +1358,7 @@ function createRuntime(opts) {
|
|
|
1358
1358
|
}
|
|
1359
1359
|
|
|
1360
1360
|
// src/version.ts
|
|
1361
|
-
var VERSION = true ? "0.4.0-beta.
|
|
1361
|
+
var VERSION = true ? "0.4.0-beta.7" : "0.0.0-dev";
|
|
1362
1362
|
|
|
1363
1363
|
// src/cli.ts
|
|
1364
1364
|
async function main() {
|
|
@@ -1375,12 +1375,12 @@ async function main() {
|
|
|
1375
1375
|
if (args.command === "login") return runLogin(args.loginProvider ?? "bc-cloud", cwd);
|
|
1376
1376
|
if (args.command === "mcp") {
|
|
1377
1377
|
const { runMcpCommand } = await import("./mcpCli-Q2H63ISP.js");
|
|
1378
|
-
const { readSecret } = await import("./login-
|
|
1378
|
+
const { readSecret } = await import("./login-4277DGKX.js");
|
|
1379
1379
|
return runMcpCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), readSecret });
|
|
1380
1380
|
}
|
|
1381
1381
|
if (args.command === "provider") {
|
|
1382
|
-
const { runProviderCommand } = await import("./providerCli-
|
|
1383
|
-
const { readSecret } = await import("./login-
|
|
1382
|
+
const { runProviderCommand } = await import("./providerCli-6ON7QEVN.js");
|
|
1383
|
+
const { readSecret } = await import("./login-4277DGKX.js");
|
|
1384
1384
|
return runProviderCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), readSecret });
|
|
1385
1385
|
}
|
|
1386
1386
|
if (args.command === "models") {
|