@botconnector/bccli 0.4.12 → 0.4.13
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-OFMZ6CE6.js → chunk-F6NNUUF3.js} +1 -1
- package/dist/cli.js +5 -5
- package/dist/{integrationCli-TO42MBZB.js → integrationCli-FBRSTF5F.js} +12 -1
- package/dist/{serve-DC6YICSK.js → serve-6NK2IR6R.js} +1 -1
- package/dist/{update-POT5W6MC.js → update-PXXUITFS.js} +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ import "./chunk-7GM6NN5E.js";
|
|
|
13
13
|
import "./chunk-PSO7R5AD.js";
|
|
14
14
|
import {
|
|
15
15
|
VERSION
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-F6NNUUF3.js";
|
|
17
17
|
import {
|
|
18
18
|
helpText,
|
|
19
19
|
parseCliArgs
|
|
@@ -95,7 +95,7 @@ async function main() {
|
|
|
95
95
|
return runProviderCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), readSecret });
|
|
96
96
|
}
|
|
97
97
|
if (args.command === "connect" || args.command === "disconnect" || args.command === "integrations") {
|
|
98
|
-
const { runIntegrationCommand } = await import("./integrationCli-
|
|
98
|
+
const { runIntegrationCommand } = await import("./integrationCli-FBRSTF5F.js");
|
|
99
99
|
return runIntegrationCommand(args, {
|
|
100
100
|
env: process.env,
|
|
101
101
|
cwd,
|
|
@@ -109,7 +109,7 @@ async function main() {
|
|
|
109
109
|
return runModelsCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), fetch: globalThis.fetch });
|
|
110
110
|
}
|
|
111
111
|
if (args.command === "update") {
|
|
112
|
-
const { runUpdateCommand } = await import("./update-
|
|
112
|
+
const { runUpdateCommand } = await import("./update-PXXUITFS.js");
|
|
113
113
|
return runUpdateCommand({ env: process.env });
|
|
114
114
|
}
|
|
115
115
|
if (args.command === "acp") {
|
|
@@ -118,7 +118,7 @@ async function main() {
|
|
|
118
118
|
return 0;
|
|
119
119
|
}
|
|
120
120
|
if (args.command === "serve") {
|
|
121
|
-
const { serveBanner, startServe } = await import("./serve-
|
|
121
|
+
const { serveBanner, startServe } = await import("./serve-6NK2IR6R.js");
|
|
122
122
|
const handle = await startServe({ port: args.port, host: args.host, token: args.token, cwd, env: process.env });
|
|
123
123
|
process.stderr.write(serveBanner(handle, { token: args.token }));
|
|
124
124
|
await new Promise((resolve) => {
|
|
@@ -215,7 +215,7 @@ async function main() {
|
|
|
215
215
|
let updateMessage;
|
|
216
216
|
if (rt.config.updateCheck !== "off" && !process.env.BCCLI_NO_UPDATE_CHECK) {
|
|
217
217
|
try {
|
|
218
|
-
const { checkForUpdate } = await import("./update-
|
|
218
|
+
const { checkForUpdate } = await import("./update-PXXUITFS.js");
|
|
219
219
|
const update = await checkForUpdate({ home: rt.home, fetch: globalThis.fetch, now: /* @__PURE__ */ new Date() });
|
|
220
220
|
updateMessage = update;
|
|
221
221
|
} catch {
|
|
@@ -92,6 +92,17 @@ function readState(target, env) {
|
|
|
92
92
|
return null;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
+
function capabilityFlags(item) {
|
|
96
|
+
const names = [];
|
|
97
|
+
const isRecord = (value) => !!value && typeof value === "object" && !Array.isArray(value);
|
|
98
|
+
const flags = item.botconnector_capabilities;
|
|
99
|
+
if (isRecord(flags)) {
|
|
100
|
+
for (const [name, enabled] of Object.entries(flags)) if (enabled === true) names.push(name);
|
|
101
|
+
}
|
|
102
|
+
const reasoning = item.botconnector_reasoning;
|
|
103
|
+
if (isRecord(reasoning) && reasoning.supported === true && !names.includes("reasoning")) names.push("reasoning");
|
|
104
|
+
return names;
|
|
105
|
+
}
|
|
95
106
|
async function botConnectorCatalog(deps) {
|
|
96
107
|
const config = loadConfig(deps.cwd, deps.env);
|
|
97
108
|
const resolved = resolveModel(config, config.model, deps.env);
|
|
@@ -115,7 +126,7 @@ async function botConnectorCatalog(deps) {
|
|
|
115
126
|
contextWindow: num(item.contextWindow),
|
|
116
127
|
max_tokens: num(item.max_tokens),
|
|
117
128
|
maxTokens: num(item.maxTokens),
|
|
118
|
-
capabilities: strings(item.capabilities),
|
|
129
|
+
capabilities: [...strings(item.capabilities) ?? [], ...capabilityFlags(item)],
|
|
119
130
|
input: strings(item.input)
|
|
120
131
|
}];
|
|
121
132
|
});
|