@botconnector/bccli 0.4.0-beta.38 → 0.4.0-beta.39
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/README.md +8 -0
- package/dist/acp-4XE2KOIJ.js +114 -0
- package/dist/{args-MNVI2OJI.js → args-BD2PHEKG.js} +4 -4
- package/dist/{chunk-TASYQW7B.js → chunk-AVB6M4JE.js} +2 -2
- package/dist/{chunk-OB7FN66F.js → chunk-EONFDWBE.js} +2 -2
- package/dist/{chunk-H66PC2EB.js → chunk-GGNXHJL6.js} +2 -2
- package/dist/chunk-HE33XAPZ.js +341 -0
- package/dist/{chunk-HPZSXX4W.js → chunk-ISCT3PN3.js} +2 -2
- package/dist/{chunk-C6PKRYUX.js → chunk-JROUQ5YS.js} +6 -45
- package/dist/chunk-LN32JIZR.js +56 -0
- package/dist/{chunk-4RMP4CNT.js → chunk-M23QBX3V.js} +52 -12
- package/dist/chunk-M7LLJQ7M.js +310 -0
- package/dist/{chunk-YURAIW7A.js → chunk-NI5JZUZ3.js} +1 -1
- package/dist/chunk-PDZPPSLU.js +8 -0
- package/dist/chunk-PSO7R5AD.js +10 -0
- package/dist/chunk-QETGQXPL.js +2125 -0
- package/dist/chunk-RV74TCEP.js +231 -0
- package/dist/{chunk-U66JJ6RN.js → chunk-SESBH44L.js} +1 -1
- package/dist/{chunk-XFTBML3H.js → chunk-VM7HYAJS.js} +1 -1
- package/dist/{chunk-ASTNW3X2.js → chunk-ZG7HCXYA.js} +89 -9
- package/dist/{chunk-HXSREA7S.js → chunk-ZMU7MXCH.js} +184 -295
- package/dist/cli.js +65 -2097
- package/dist/{config-JRO5EOKZ.js → config-C4KLLDC6.js} +3 -3
- package/dist/{integrationCli-ZTZTQD2I.js → integrationCli-HR7CDUSI.js} +2 -2
- package/dist/{login-THRU4U4L.js → login-IWBRUNT4.js} +1 -1
- package/dist/{mcpCli-5ZSAMBJS.js → mcpCli-5QTXH7XJ.js} +9 -5
- package/dist/modelsCli-DKTT3UZD.js +36 -0
- package/dist/providerCli-DDH4ZZUY.js +15 -0
- package/dist/sdk.js +5114 -0
- package/dist/serve-7BP5BVX3.js +514 -0
- package/dist/serve-I2VQUTHR.js +178 -0
- package/dist/session-H2YL5RSB.js +12 -0
- package/dist/setup-FGCFKC7Z.js +23 -0
- package/dist/{ui-W4C6SRHA.js → ui-MLOXPAHT.js} +292 -54
- package/dist/update-73WI27VM.js +109 -0
- package/package.json +5 -2
- package/dist/chunk-H5N4ST6B.js +0 -149
- package/dist/providerCli-TGDE3633.js +0 -14
- package/dist/session-TVOWVP6Y.js +0 -12
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
removeGlobalServer,
|
|
10
10
|
serversToStart,
|
|
11
11
|
setProjectTrust
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-AVB6M4JE.js";
|
|
13
|
+
import "./chunk-M7LLJQ7M.js";
|
|
14
|
+
import "./chunk-M23QBX3V.js";
|
|
15
15
|
export {
|
|
16
16
|
addGlobalServer,
|
|
17
17
|
expandEnvVars,
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
loadConfig,
|
|
6
6
|
readCredentials,
|
|
7
7
|
resolveModel
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-M7LLJQ7M.js";
|
|
9
9
|
import {
|
|
10
10
|
t
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-M23QBX3V.js";
|
|
12
12
|
|
|
13
13
|
// src/integrationCli.ts
|
|
14
14
|
import { chmodSync, copyFileSync, existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CATALOG,
|
|
4
4
|
fillTemplate
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ISCT3PN3.js";
|
|
6
6
|
import {
|
|
7
7
|
authorizeMcpServer,
|
|
8
8
|
clearTokens
|
|
@@ -12,18 +12,22 @@ import {
|
|
|
12
12
|
globalMcpPath,
|
|
13
13
|
readMcpFile,
|
|
14
14
|
removeGlobalServer
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AVB6M4JE.js";
|
|
16
16
|
import {
|
|
17
17
|
bccliHome
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-M7LLJQ7M.js";
|
|
19
19
|
import {
|
|
20
20
|
t
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-M23QBX3V.js";
|
|
22
22
|
|
|
23
23
|
// src/mcpCli.ts
|
|
24
24
|
async function runMcpCommand(args, deps) {
|
|
25
25
|
const home = bccliHome(deps.env);
|
|
26
26
|
const [action = "list", name] = args.subArgs;
|
|
27
|
+
if (action === "serve") {
|
|
28
|
+
const { runMcpServe } = await import("./serve-I2VQUTHR.js");
|
|
29
|
+
return runMcpServe(args, deps);
|
|
30
|
+
}
|
|
27
31
|
const installed = readMcpFile(globalMcpPath(home));
|
|
28
32
|
if (action === "list") {
|
|
29
33
|
for (const entry2 of CATALOG) deps.out(`${installed[entry2.name] ? "\u2713" : "\u25CB"} ${entry2.name.padEnd(12)} ${entry2.description}`);
|
|
@@ -62,7 +66,7 @@ async function runMcpCommand(args, deps) {
|
|
|
62
66
|
}
|
|
63
67
|
}
|
|
64
68
|
if (action !== "add") {
|
|
65
|
-
deps.err(t("Unknown action: {action}. Use list, add, remove, auth, or
|
|
69
|
+
deps.err(t("Unknown action: {action}. Use list, add, remove, auth, logout, or serve.", { action }));
|
|
66
70
|
return 1;
|
|
67
71
|
}
|
|
68
72
|
if (args.url) {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
listAllModels
|
|
4
|
+
} from "./chunk-LN32JIZR.js";
|
|
5
|
+
import "./chunk-SESBH44L.js";
|
|
6
|
+
import "./chunk-GGNXHJL6.js";
|
|
7
|
+
import "./chunk-NI5JZUZ3.js";
|
|
8
|
+
import {
|
|
9
|
+
loadConfig,
|
|
10
|
+
resolveModel
|
|
11
|
+
} from "./chunk-M7LLJQ7M.js";
|
|
12
|
+
import {
|
|
13
|
+
t
|
|
14
|
+
} from "./chunk-M23QBX3V.js";
|
|
15
|
+
|
|
16
|
+
// src/modelsCli.ts
|
|
17
|
+
async function runModelsCommand(args, deps) {
|
|
18
|
+
const config = loadConfig(deps.cwd, deps.env);
|
|
19
|
+
const arg = (args.subArgs[0] ?? "").trim();
|
|
20
|
+
const providerId = arg ? arg.split("/")[0] : resolveModel(config, args.model ?? config.model, deps.env).providerId;
|
|
21
|
+
if (!Object.hasOwn(config.providers, providerId)) {
|
|
22
|
+
deps.err(t('Provider "{id}" is not in the config. Available: {list}', { id: providerId, list: Object.keys(config.providers).join(", ") }));
|
|
23
|
+
return 1;
|
|
24
|
+
}
|
|
25
|
+
const groups = await listAllModels(config, deps.env, { fetch: deps.fetch, only: providerId });
|
|
26
|
+
const group = groups.find((g) => g.providerId === providerId);
|
|
27
|
+
if (!group || group.error) {
|
|
28
|
+
deps.err(`${providerId}: ${group?.error ?? t("could not be reached")}`);
|
|
29
|
+
return 1;
|
|
30
|
+
}
|
|
31
|
+
deps.out(group.models.map((m) => `${providerId}/${m}`).join("\n"));
|
|
32
|
+
return 0;
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
runModelsCommand
|
|
36
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
addProviderKey,
|
|
4
|
+
runProviderCommand
|
|
5
|
+
} from "./chunk-JROUQ5YS.js";
|
|
6
|
+
import "./chunk-LN32JIZR.js";
|
|
7
|
+
import "./chunk-SESBH44L.js";
|
|
8
|
+
import "./chunk-GGNXHJL6.js";
|
|
9
|
+
import "./chunk-NI5JZUZ3.js";
|
|
10
|
+
import "./chunk-M7LLJQ7M.js";
|
|
11
|
+
import "./chunk-M23QBX3V.js";
|
|
12
|
+
export {
|
|
13
|
+
addProviderKey,
|
|
14
|
+
runProviderCommand
|
|
15
|
+
};
|