@botconnector/bccli 0.4.0-beta.37 → 0.4.0-beta.38

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.
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-U66JJ6RN.js";
8
8
  import {
9
9
  createProvider
10
- } from "./chunk-7TABTC32.js";
10
+ } from "./chunk-H66PC2EB.js";
11
11
  import {
12
12
  PRESETS,
13
13
  loadConfig,
@@ -869,7 +869,8 @@ function createProvider(options) {
869
869
  const res = await doFetch(`${baseURL}/models`, { headers });
870
870
  if (!res.ok) throw new ProviderError(t("{status} while fetching the model list", { status: res.status }), res.status);
871
871
  const body = await res.json();
872
- return (body.data ?? []).map((m) => m.id).sort();
872
+ const ids = (body.data ?? []).map((m) => m?.id).filter((id) => typeof id === "string" && id.length > 0);
873
+ return [...new Set(ids)].sort();
873
874
  }
874
875
  };
875
876
  }
@@ -35,7 +35,7 @@ function readSecret(prompt) {
35
35
  });
36
36
  }
37
37
  async function runLogin(providerId, cwd) {
38
- const { runProviderCommand } = await import("./providerCli-Z3TZ5XSZ.js");
38
+ const { runProviderCommand } = await import("./providerCli-TGDE3633.js");
39
39
  const { parseCliArgs } = await import("./args-MNVI2OJI.js");
40
40
  return runProviderCommand(parseCliArgs(["provider", "add", providerId]), {
41
41
  env: process.env,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  contentText
4
- } from "./chunk-7TABTC32.js";
4
+ } from "./chunk-H66PC2EB.js";
5
5
 
6
6
  // src/session.ts
7
7
  import { randomBytes } from "crypto";
package/dist/cli.js CHANGED
@@ -27,24 +27,24 @@ import {
27
27
  import {
28
28
  addProviderKey,
29
29
  listAllModels
30
- } from "./chunk-BB4CVWHS.js";
30
+ } from "./chunk-C6PKRYUX.js";
31
31
  import {
32
32
  providerName,
33
33
  readGlobalConfigFile
34
34
  } from "./chunk-U66JJ6RN.js";
35
35
  import {
36
36
  runLogin
37
- } from "./chunk-FCQCZCKO.js";
37
+ } from "./chunk-OB7FN66F.js";
38
38
  import {
39
39
  Session,
40
40
  pruneSessions
41
- } from "./chunk-3JRBXJVB.js";
41
+ } from "./chunk-XFTBML3H.js";
42
42
  import {
43
43
  completionAssistantMessage,
44
44
  createProvider,
45
45
  hasPendingProgrammaticReplay,
46
46
  imageUserMessage
47
- } from "./chunk-7TABTC32.js";
47
+ } from "./chunk-H66PC2EB.js";
48
48
  import "./chunk-YURAIW7A.js";
49
49
  import {
50
50
  FileOAuthProvider,
@@ -2101,7 +2101,7 @@ function createRuntime(opts) {
2101
2101
  }
2102
2102
 
2103
2103
  // src/version.ts
2104
- var VERSION = true ? "0.4.0-beta.37" : "0.0.0-dev";
2104
+ var VERSION = true ? "0.4.0-beta.38" : "0.0.0-dev";
2105
2105
 
2106
2106
  // src/cli.ts
2107
2107
  function chooseLanguage(argv) {
@@ -2128,12 +2128,12 @@ async function main() {
2128
2128
  if (args.command === "login") return runLogin(args.loginProvider ?? "bc-cloud", cwd);
2129
2129
  if (args.command === "mcp") {
2130
2130
  const { runMcpCommand } = await import("./mcpCli-5ZSAMBJS.js");
2131
- const { readSecret } = await import("./login-MHVCON5R.js");
2131
+ const { readSecret } = await import("./login-THRU4U4L.js");
2132
2132
  return runMcpCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), readSecret });
2133
2133
  }
2134
2134
  if (args.command === "provider") {
2135
- const { runProviderCommand } = await import("./providerCli-Z3TZ5XSZ.js");
2136
- const { readSecret } = await import("./login-MHVCON5R.js");
2135
+ const { runProviderCommand } = await import("./providerCli-TGDE3633.js");
2136
+ const { readSecret } = await import("./login-THRU4U4L.js");
2137
2137
  return runProviderCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), readSecret });
2138
2138
  }
2139
2139
  if (args.command === "connect" || args.command === "disconnect" || args.command === "integrations") {
@@ -2173,7 +2173,7 @@ async function main() {
2173
2173
  }
2174
2174
  }
2175
2175
  if (!process.stdin.isTTY) throw new ConfigError(t('Interactive mode needs a terminal. For scripts/CI use: bccli -p "task"'));
2176
- const { startInteractive } = await import("./ui-YLIKFLGN.js");
2176
+ const { startInteractive } = await import("./ui-W4C6SRHA.js");
2177
2177
  return startInteractive(rt, { initialPrompt: args.prompt, resume: args.resume, version: VERSION });
2178
2178
  }
2179
2179
  main().then(
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  readSecret,
4
4
  runLogin
5
- } from "./chunk-FCQCZCKO.js";
5
+ } from "./chunk-OB7FN66F.js";
6
6
  export {
7
7
  readSecret,
8
8
  runLogin
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  addProviderKey,
4
4
  runProviderCommand
5
- } from "./chunk-BB4CVWHS.js";
5
+ } from "./chunk-C6PKRYUX.js";
6
6
  import "./chunk-U66JJ6RN.js";
7
- import "./chunk-7TABTC32.js";
7
+ import "./chunk-H66PC2EB.js";
8
8
  import "./chunk-YURAIW7A.js";
9
9
  import "./chunk-H5N4ST6B.js";
10
10
  import "./chunk-4RMP4CNT.js";
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  Session,
4
4
  pruneSessions
5
- } from "./chunk-3JRBXJVB.js";
6
- import "./chunk-7TABTC32.js";
5
+ } from "./chunk-XFTBML3H.js";
6
+ import "./chunk-H66PC2EB.js";
7
7
  import "./chunk-YURAIW7A.js";
8
8
  import "./chunk-4RMP4CNT.js";
9
9
  export {
@@ -23,10 +23,10 @@ import {
23
23
  } from "./chunk-U66JJ6RN.js";
24
24
  import {
25
25
  Session
26
- } from "./chunk-3JRBXJVB.js";
26
+ } from "./chunk-XFTBML3H.js";
27
27
  import {
28
28
  contentText
29
- } from "./chunk-7TABTC32.js";
29
+ } from "./chunk-H66PC2EB.js";
30
30
  import {
31
31
  REASONING_LEVELS,
32
32
  assertReasoningSupported,
@@ -2001,7 +2001,7 @@ ${t2.output}`);
2001
2001
  import { jsx as jsx17 } from "react/jsx-runtime";
2002
2002
  async function startInteractive(rt, opts) {
2003
2003
  if (opts.resume) {
2004
- const { Session: Session2 } = await import("./session-IYVTCUBC.js");
2004
+ const { Session: Session2 } = await import("./session-TVOWVP6Y.js");
2005
2005
  const list = Session2.list(rt.home, rt.cwd).slice(0, 20);
2006
2006
  if (!list.length) console.log(t("No sessions in this folder yet; starting a new one."));
2007
2007
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botconnector/bccli",
3
- "version": "0.4.0-beta.37",
3
+ "version": "0.4.0-beta.38",
4
4
  "description": "BCCLI — BotConnector AI coding agent for the terminal",
5
5
  "type": "module",
6
6
  "bin": {