@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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/version.ts
4
- var VERSION = true ? "0.4.12" : "0.0.0-dev";
4
+ var VERSION = true ? "0.4.13" : "0.0.0-dev";
5
5
 
6
6
  export {
7
7
  VERSION
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-OFMZ6CE6.js";
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-TO42MBZB.js");
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-POT5W6MC.js");
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-DC6YICSK.js");
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-POT5W6MC.js");
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
  });
@@ -8,7 +8,7 @@ import "./chunk-7GM6NN5E.js";
8
8
  import "./chunk-PSO7R5AD.js";
9
9
  import {
10
10
  VERSION
11
- } from "./chunk-OFMZ6CE6.js";
11
+ } from "./chunk-F6NNUUF3.js";
12
12
  import {
13
13
  LOOPBACK_BIND,
14
14
  MAX_FRAME_BYTES,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  VERSION
4
- } from "./chunk-OFMZ6CE6.js";
4
+ } from "./chunk-F6NNUUF3.js";
5
5
  import {
6
6
  t
7
7
  } from "./chunk-R754XIBJ.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botconnector/bccli",
3
- "version": "0.4.12",
3
+ "version": "0.4.13",
4
4
  "description": "BCCLI — BotConnector AI coding agent for the terminal",
5
5
  "type": "module",
6
6
  "bin": {