@botconnector/bccli 0.4.11 → 0.4.12

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.
Files changed (46) hide show
  1. package/dist/{acp-IPHWC6CO.js → acp-JZW3XHE5.js} +3 -3
  2. package/dist/{args-K5AJFDCZ.js → args-XVO7TB4C.js} +4 -4
  3. package/dist/{chunk-IHQGXDSG.js → chunk-3CYQYHPK.js} +1 -1
  4. package/dist/{chunk-OOOS5RCT.js → chunk-6JK4IBGK.js} +2 -2
  5. package/dist/{chunk-X24APPXO.js → chunk-6SDRWEPN.js} +1 -1
  6. package/dist/{chunk-6KZIOICR.js → chunk-7GM6NN5E.js} +1 -1
  7. package/dist/{chunk-XZ2TI5HV.js → chunk-7XD47KN5.js} +1 -1
  8. package/dist/{chunk-Y6AZGGH7.js → chunk-INMSTUB2.js} +4 -4
  9. package/dist/{chunk-WSZF2CTU.js → chunk-ISOKH5WB.js} +4 -4
  10. package/dist/{chunk-NT2G5FSX.js → chunk-JUC3ZOCV.js} +2 -2
  11. package/dist/{chunk-OAXD3X4R.js → chunk-KDVL2NP6.js} +1 -1
  12. package/dist/{chunk-F54FDJBD.js → chunk-KEKDRROL.js} +1 -1
  13. package/dist/{chunk-MBAMDCCV.js → chunk-KJIXA6MP.js} +7 -7
  14. package/dist/{chunk-N6APAYSF.js → chunk-OFMZ6CE6.js} +1 -1
  15. package/dist/{chunk-2DFY43RP.js → chunk-Q42ZGVAQ.js} +2 -2
  16. package/dist/{chunk-G5TG43R4.js → chunk-R754XIBJ.js} +8 -3
  17. package/dist/{chunk-6M5T7N7A.js → chunk-S3QEZDKB.js} +3 -3
  18. package/dist/{chunk-JFYQCPXL.js → chunk-SWNRA3EW.js} +4 -4
  19. package/dist/{chunk-C2FUGQJX.js → chunk-TLCL6DC7.js} +1 -1
  20. package/dist/{chunk-6BXW7DGQ.js → chunk-ZJRZTMJF.js} +11 -11
  21. package/dist/cli.js +38 -38
  22. package/dist/{completion-QVDGAYUY.js → completion-Q7VHOPPV.js} +1 -1
  23. package/dist/{config-RZY3XQZJ.js → config-T7MKGJVG.js} +2 -2
  24. package/dist/{config-7TQ2KVVX.js → config-YYEAEN2C.js} +3 -3
  25. package/dist/{ghBotCli-HHJ4ANTH.js → ghBotCli-7VUGI63S.js} +14 -14
  26. package/dist/{integrationCli-LNNZDGZX.js → integrationCli-TO42MBZB.js} +154 -9
  27. package/dist/{login-MQEZGF2C.js → login-BSMUGW7L.js} +4 -4
  28. package/dist/{mcpCli-CUIOYJ2A.js → mcpCli-ZT7CRYMP.js} +6 -6
  29. package/dist/{modelsCli-AAFHFI4H.js → modelsCli-2ZRW4CC4.js} +6 -6
  30. package/dist/{oauthLogin-YFL2N4QA.js → oauthLogin-THSM6FE7.js} +1 -1
  31. package/dist/{pluginsCli-2QXXFLQA.js → pluginsCli-EKQI4CJW.js} +2 -2
  32. package/dist/{prCli-KSA73RCS.js → prCli-FMQTOBIV.js} +1 -1
  33. package/dist/providerCli-3TFEKV4C.js +15 -0
  34. package/dist/sdk.js +8 -3
  35. package/dist/{serve-QYDBFTHC.js → serve-DC6YICSK.js} +15 -15
  36. package/dist/{serve-EIQHEUYD.js → serve-V6YVZTNR.js} +3 -3
  37. package/dist/session-LX4UNPCD.js +12 -0
  38. package/dist/setup-MFG3BWEU.js +24 -0
  39. package/dist/{statsCli-EHNJIQ2Z.js → statsCli-7MIQHLVW.js} +1 -1
  40. package/dist/{transferCli-IXJ2O74Q.js → transferCli-SRSYQLSJ.js} +4 -4
  41. package/dist/{ui-A2LASWDK.js → ui-IMCUSB6Q.js} +12 -12
  42. package/dist/{update-TR62JV3A.js → update-POT5W6MC.js} +2 -2
  43. package/package.json +1 -1
  44. package/dist/providerCli-TXMVPSW5.js +0 -15
  45. package/dist/session-CQCQ7KAP.js +0 -12
  46. package/dist/setup-DBSGMWHM.js +0 -24
@@ -1,32 +1,32 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createRuntime
4
- } from "./chunk-6BXW7DGQ.js";
4
+ } from "./chunk-ZJRZTMJF.js";
5
5
  import "./chunk-OK2USAXX.js";
6
- import "./chunk-OAXD3X4R.js";
7
- import "./chunk-6KZIOICR.js";
6
+ import "./chunk-KDVL2NP6.js";
7
+ import "./chunk-7GM6NN5E.js";
8
8
  import "./chunk-PSO7R5AD.js";
9
9
  import {
10
10
  LOOPBACK_BIND,
11
11
  parseCliArgs
12
- } from "./chunk-WSZF2CTU.js";
12
+ } from "./chunk-ISOKH5WB.js";
13
13
  import "./chunk-YYTFJUO2.js";
14
- import "./chunk-JFYQCPXL.js";
15
- import "./chunk-Y6AZGGH7.js";
16
- import "./chunk-X24APPXO.js";
17
- import "./chunk-IHQGXDSG.js";
18
- import "./chunk-F54FDJBD.js";
19
- import "./chunk-OOOS5RCT.js";
20
- import "./chunk-XZ2TI5HV.js";
21
- import "./chunk-2DFY43RP.js";
14
+ import "./chunk-SWNRA3EW.js";
15
+ import "./chunk-INMSTUB2.js";
16
+ import "./chunk-6SDRWEPN.js";
17
+ import "./chunk-3CYQYHPK.js";
18
+ import "./chunk-KEKDRROL.js";
19
+ import "./chunk-6JK4IBGK.js";
20
+ import "./chunk-7XD47KN5.js";
21
+ import "./chunk-Q42ZGVAQ.js";
22
22
  import {
23
23
  ConfigError,
24
24
  globalConfigPath,
25
25
  readJsonConfig
26
- } from "./chunk-C2FUGQJX.js";
26
+ } from "./chunk-TLCL6DC7.js";
27
27
  import {
28
28
  t
29
- } from "./chunk-G5TG43R4.js";
29
+ } from "./chunk-R754XIBJ.js";
30
30
 
31
31
  // src/ghBotWebhook.ts
32
32
  import { createHmac, timingSafeEqual } from "crypto";
@@ -5,10 +5,10 @@ import {
5
5
  loadConfig,
6
6
  readCredentials,
7
7
  resolveModel
8
- } from "./chunk-C2FUGQJX.js";
8
+ } from "./chunk-TLCL6DC7.js";
9
9
  import {
10
10
  t
11
- } from "./chunk-G5TG43R4.js";
11
+ } from "./chunk-R754XIBJ.js";
12
12
 
13
13
  // src/integrationCli.ts
14
14
  import { chmodSync, copyFileSync, existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "fs";
@@ -31,10 +31,11 @@ var HERMES_ENV_ID = "BOTCONNECTOR_API_KEY";
31
31
  var HERMES_PROVIDER_ID = "botconnector-cloud";
32
32
  var FALLBACK_DEFAULT_MODEL = "glm-5.3-flash";
33
33
  function parseTarget(raw) {
34
- if (raw === "opencode" || raw === "aider" || raw === "cline" || raw === "deepseek-harness" || raw === "cursor" || raw === "openai-cli" || raw === "openai-sdk" || raw === "openai-compatible" || raw === "codex" || raw === "claude-code" || raw === "openclaw" || raw === "hermes") return raw;
34
+ if (raw === "opencode" || raw === "aider" || raw === "cline" || raw === "deepseek-harness" || raw === "cursor" || raw === "openai-cli" || raw === "openai-sdk" || raw === "openai-compatible" || raw === "codex" || raw === "claude-code" || raw === "openclaw" || raw === "hermes" || raw === "crush" || raw === "kilo") return raw;
35
35
  if (raw === "dsh") return "deepseek-harness";
36
+ if (raw === "kilocode" || raw === "kilo-code") return "kilo";
36
37
  throw new ConfigError(
37
- t("Agent must be one of: opencode, aider, cline, deepseek-harness (dsh), cursor, openai-cli, openai-sdk, openai-compatible, codex, claude-code, openclaw, hermes")
38
+ t("Agent must be one of: opencode, aider, cline, deepseek-harness (dsh), cursor, openai-cli, openai-sdk, openai-compatible, codex, claude-code, openclaw, hermes, crush, kilo")
38
39
  );
39
40
  }
40
41
  function homeDir(env) {
@@ -91,7 +92,7 @@ function readState(target, env) {
91
92
  return null;
92
93
  }
93
94
  }
94
- async function botConnectorModels(deps) {
95
+ async function botConnectorCatalog(deps) {
95
96
  const config = loadConfig(deps.cwd, deps.env);
96
97
  const resolved = resolveModel(config, config.model, deps.env);
97
98
  const key = readCredentials(deps.env)["bc-cloud"] || resolved.apiKey;
@@ -101,9 +102,28 @@ async function botConnectorModels(deps) {
101
102
  });
102
103
  if (!response.ok) throw new ConfigError(t("Could not load the BotConnector model catalog (HTTP {status}).", { status: response.status }));
103
104
  const payload = await response.json();
104
- const models = (payload.data ?? []).map((item) => item.id).filter((id) => typeof id === "string" && !!id);
105
- if (!models.length) throw new ConfigError(t("The BotConnector model catalog is empty; cannot configure external agents."));
106
- return models;
105
+ const entries = (payload.data ?? []).flatMap((item) => {
106
+ const id = typeof item.id === "string" ? item.id : "";
107
+ if (!id) return [];
108
+ const strings = (value) => Array.isArray(value) ? value.filter((v) => typeof v === "string") : void 0;
109
+ const num = (value) => typeof value === "number" ? value : void 0;
110
+ return [{
111
+ id,
112
+ name: typeof item.name === "string" ? item.name : void 0,
113
+ context: num(item.context),
114
+ context_window: num(item.context_window),
115
+ contextWindow: num(item.contextWindow),
116
+ max_tokens: num(item.max_tokens),
117
+ maxTokens: num(item.maxTokens),
118
+ capabilities: strings(item.capabilities),
119
+ input: strings(item.input)
120
+ }];
121
+ });
122
+ if (!entries.length) throw new ConfigError(t("The BotConnector model catalog is empty; cannot configure external agents."));
123
+ return entries;
124
+ }
125
+ async function botConnectorModels(deps) {
126
+ return (await botConnectorCatalog(deps)).map((item) => item.id);
107
127
  }
108
128
  async function connectOpenCode(deps) {
109
129
  const home = homeDir(deps.env);
@@ -653,6 +673,129 @@ async function connectHermes(deps) {
653
673
  deps.out(`Config: ${path}`);
654
674
  deps.out(t("API key: env {env} only (via key_env; a plaintext key in config.yaml is never written).", { env: HERMES_ENV_ID }));
655
675
  }
676
+ function shellQuote(value) {
677
+ return `'${value.replace(/'/g, `'"'"'`)}'`;
678
+ }
679
+ function modelCapabilitySet(entry) {
680
+ return new Set([...entry.capabilities ?? [], ...entry.input ?? []].map((value) => value.toLowerCase()));
681
+ }
682
+ function modelContextWindow(entry) {
683
+ return entry.contextWindow ?? entry.context_window ?? entry.context;
684
+ }
685
+ function modelOutputLimit(entry) {
686
+ return entry.maxTokens ?? entry.max_tokens;
687
+ }
688
+ var positiveInt = (value) => typeof value === "number" && Number.isFinite(value) && value > 0 ? Math.floor(value) : void 0;
689
+ async function connectCrush(deps) {
690
+ if (readState("crush", deps.env)) disconnect("crush", deps);
691
+ const home = homeDir(deps.env);
692
+ const configRoot = deps.env.XDG_CONFIG_HOME || join(home, ".config");
693
+ const configPath = join(configRoot, "crush", "crushrc");
694
+ const backup = safeBackup(configPath, deps.env);
695
+ const secret = ensureSecret(deps.env);
696
+ const catalog = await botConnectorCatalog(deps);
697
+ const models = catalog.map((item) => item.id);
698
+ const model = externalAgentDefaultModel(models, deps);
699
+ let existing = existsSync(configPath) ? readFileSync(configPath, "utf8") : "";
700
+ existing = stripManagedBlock(existing);
701
+ if (/(^|\n)\s*provider\s+add\s+botconnector\b/.test(existing)) {
702
+ throw new ConfigError(t("Crush already has a botconnector provider outside the BCCLI block: {path}", { path: configPath }));
703
+ }
704
+ const managed = [
705
+ "# BEGIN BCCLI BOTCONNECTOR",
706
+ "provider add botconnector \\",
707
+ ` --name ${shellQuote("BotConnector")} \\`,
708
+ " --type openai-compat \\",
709
+ ` --base-url ${shellQuote(BASE_URL)} \\`,
710
+ ` --api-key "$(cat ${shellQuote(secret.replace(/\\/g, "/"))})" \\`,
711
+ " --discover-models true"
712
+ ];
713
+ for (const entry of catalog) {
714
+ const caps = modelCapabilitySet(entry);
715
+ const args = [`model add ${shellQuote(`botconnector/${entry.id}`)}`, `--name ${shellQuote(entry.name || entry.id)}`];
716
+ const context = positiveInt(modelContextWindow(entry));
717
+ const output = positiveInt(modelOutputLimit(entry));
718
+ if (context) args.push(`--context-window ${context}`);
719
+ if (output) args.push(`--default-max-tokens ${output}`);
720
+ if (caps.has("reasoning")) args.push("--can-reason true");
721
+ if (caps.has("vision") || caps.has("image")) args.push("--supports-images true");
722
+ managed.push(args.join(" "));
723
+ }
724
+ managed.push(`model large ${shellQuote(`botconnector/${model}`)}`, "# END BCCLI BOTCONNECTOR");
725
+ const merged = existing.trim() ? `${existing.trimEnd()}
726
+
727
+ ${managed.join("\n")}
728
+ ` : `${managed.join("\n")}
729
+ `;
730
+ mkdirSync(dirname(configPath), { recursive: true });
731
+ writeFileSync(configPath, merged);
732
+ writeState("crush", {
733
+ target: "crush",
734
+ files: [{ path: configPath, ...backup }],
735
+ createdAt: (/* @__PURE__ */ new Date()).toISOString()
736
+ }, deps.env);
737
+ deps.out(t("Crush is connected to BotConnector ({n} models available; large model {model}).", { n: catalog.length, model }));
738
+ deps.out(`Config: ${configPath}`);
739
+ deps.out("Provider: botconnector (openai-compat, discover-models=true)");
740
+ }
741
+ function kiloModelRow(entry) {
742
+ const caps = modelCapabilitySet(entry);
743
+ const row = { name: entry.name || entry.id };
744
+ if (caps.has("tools") || caps.has("tool") || caps.has("tool_use")) row.tool_call = true;
745
+ if (caps.has("reasoning")) row.reasoning = true;
746
+ if (caps.has("vision") || caps.has("image")) row.modalities = { input: ["text", "image"], output: ["text"] };
747
+ const context = positiveInt(modelContextWindow(entry));
748
+ const output = positiveInt(modelOutputLimit(entry));
749
+ if (context || output) row.limit = { ...context ? { context } : {}, ...output ? { output } : {} };
750
+ return row;
751
+ }
752
+ async function connectKilo(deps) {
753
+ if (readState("kilo", deps.env)) disconnect("kilo", deps);
754
+ const home = homeDir(deps.env);
755
+ const configRoot = deps.env.XDG_CONFIG_HOME || join(home, ".config");
756
+ const configPath = join(configRoot, "kilo", "kilo.json");
757
+ const backup = safeBackup(configPath, deps.env);
758
+ const secret = ensureSecret(deps.env);
759
+ const catalog = await botConnectorCatalog(deps);
760
+ const model = externalAgentDefaultModel(catalog.map((item) => item.id), deps);
761
+ let doc = {};
762
+ if (existsSync(configPath)) {
763
+ try {
764
+ doc = JSON.parse(readFileSync(configPath, "utf8"));
765
+ } catch {
766
+ throw new ConfigError(t("The Kilo global kilo.json is not valid JSON: {path}", { path: configPath }));
767
+ }
768
+ }
769
+ const providers = doc.provider && typeof doc.provider === "object" && !Array.isArray(doc.provider) ? { ...doc.provider } : {};
770
+ const current = providers[PROVIDER_ID];
771
+ const currentBase = current?.options?.baseURL;
772
+ if (currentBase && currentBase.replace(/\/+$/, "") !== BASE_URL) {
773
+ throw new ConfigError(t('Kilo already has a provider "{id}" with a different endpoint.', { id: PROVIDER_ID }));
774
+ }
775
+ providers[PROVIDER_ID] = {
776
+ name: "BotConnector",
777
+ npm: "@ai-sdk/openai-compatible",
778
+ models: Object.fromEntries(catalog.map((entry) => [entry.id, kiloModelRow(entry)])),
779
+ options: {
780
+ apiKey: `{file:${secret.replace(/\\/g, "/")}}`,
781
+ baseURL: BASE_URL
782
+ }
783
+ };
784
+ if (!doc.$schema) doc.$schema = "https://app.kilo.ai/config.json";
785
+ doc.provider = providers;
786
+ if (!doc.model) doc.model = `botconnector/${model}`;
787
+ mkdirSync(dirname(configPath), { recursive: true });
788
+ writeFileSync(configPath, `${JSON.stringify(doc, null, 2)}
789
+ `);
790
+ writeState("kilo", {
791
+ target: "kilo",
792
+ files: [{ path: configPath, ...backup }],
793
+ createdAt: (/* @__PURE__ */ new Date()).toISOString()
794
+ }, deps.env);
795
+ deps.out(t("Kilo Code is connected to BotConnector ({n} models available; suggested model {model}).", { n: catalog.length, model }));
796
+ deps.out(`Config: ${configPath}`);
797
+ deps.out("Provider: botconnector (@ai-sdk/openai-compatible)");
798
+ }
656
799
  function disconnect(target, deps) {
657
800
  const state = readState(target, deps.env);
658
801
  if (!state) {
@@ -687,7 +830,7 @@ function disconnect(target, deps) {
687
830
  );
688
831
  }
689
832
  function listIntegrations(deps) {
690
- for (const target of ["opencode", "aider", "cline", "deepseek-harness", "cursor", "openai-cli", "openai-sdk", "openai-compatible", "codex", "claude-code", "openclaw", "hermes"]) {
833
+ for (const target of ["opencode", "aider", "cline", "deepseek-harness", "cursor", "openai-cli", "openai-sdk", "openai-compatible", "codex", "claude-code", "openclaw", "hermes", "crush", "kilo"]) {
691
834
  deps.out(`${target} ${readState(target, deps.env) ? "connected" : "not connected"}`);
692
835
  }
693
836
  }
@@ -711,6 +854,8 @@ async function runIntegrationCommand(args, deps) {
711
854
  else if (target === "openai-compatible") await connectOpenAiCompatible(deps);
712
855
  else if (target === "codex") await connectCodex(deps);
713
856
  else if (target === "openclaw") await connectOpenClaw(deps);
857
+ else if (target === "crush") await connectCrush(deps);
858
+ else if (target === "kilo") await connectKilo(deps);
714
859
  else if (target === "hermes") await connectHermes(deps);
715
860
  else await connectClaudeCode(deps);
716
861
  return 0;
@@ -5,10 +5,10 @@ import {
5
5
  readLine,
6
6
  readSecret,
7
7
  runLogin
8
- } from "./chunk-MBAMDCCV.js";
9
- import "./chunk-IHQGXDSG.js";
10
- import "./chunk-C2FUGQJX.js";
11
- import "./chunk-G5TG43R4.js";
8
+ } from "./chunk-KJIXA6MP.js";
9
+ import "./chunk-3CYQYHPK.js";
10
+ import "./chunk-TLCL6DC7.js";
11
+ import "./chunk-R754XIBJ.js";
12
12
  export {
13
13
  defaultLoginDeps,
14
14
  echoFor,
@@ -2,30 +2,30 @@
2
2
  import {
3
3
  CATALOG,
4
4
  fillTemplate
5
- } from "./chunk-NT2G5FSX.js";
5
+ } from "./chunk-JUC3ZOCV.js";
6
6
  import {
7
7
  authorizeMcpServer,
8
8
  clearTokens
9
- } from "./chunk-IHQGXDSG.js";
9
+ } from "./chunk-3CYQYHPK.js";
10
10
  import {
11
11
  addGlobalServer,
12
12
  globalMcpPath,
13
13
  readMcpFile,
14
14
  removeGlobalServer
15
- } from "./chunk-2DFY43RP.js";
15
+ } from "./chunk-Q42ZGVAQ.js";
16
16
  import {
17
17
  bccliHome
18
- } from "./chunk-C2FUGQJX.js";
18
+ } from "./chunk-TLCL6DC7.js";
19
19
  import {
20
20
  t
21
- } from "./chunk-G5TG43R4.js";
21
+ } from "./chunk-R754XIBJ.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
27
  if (action === "serve") {
28
- const { runMcpServe } = await import("./serve-EIQHEUYD.js");
28
+ const { runMcpServe } = await import("./serve-V6YVZTNR.js");
29
29
  return runMcpServe(args, deps);
30
30
  }
31
31
  const installed = readMcpFile(globalMcpPath(home));
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  listAllModels
4
- } from "./chunk-Y6AZGGH7.js";
5
- import "./chunk-X24APPXO.js";
6
- import "./chunk-OOOS5RCT.js";
7
- import "./chunk-XZ2TI5HV.js";
4
+ } from "./chunk-INMSTUB2.js";
5
+ import "./chunk-6SDRWEPN.js";
6
+ import "./chunk-6JK4IBGK.js";
7
+ import "./chunk-7XD47KN5.js";
8
8
  import {
9
9
  loadConfig,
10
10
  resolveModel
11
- } from "./chunk-C2FUGQJX.js";
11
+ } from "./chunk-TLCL6DC7.js";
12
12
  import {
13
13
  t
14
- } from "./chunk-G5TG43R4.js";
14
+ } from "./chunk-R754XIBJ.js";
15
15
 
16
16
  // src/modelsCli.ts
17
17
  async function runModelsCommand(args, deps) {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  t
4
- } from "./chunk-G5TG43R4.js";
4
+ } from "./chunk-R754XIBJ.js";
5
5
 
6
6
  // src/oauthLogin.ts
7
7
  import { createHash, randomBytes } from "crypto";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  bccliHome,
4
4
  globalConfigPath
5
- } from "./chunk-C2FUGQJX.js";
5
+ } from "./chunk-TLCL6DC7.js";
6
6
  import {
7
7
  t
8
- } from "./chunk-G5TG43R4.js";
8
+ } from "./chunk-R754XIBJ.js";
9
9
 
10
10
  // src/pluginsCli.ts
11
11
  import { existsSync, mkdirSync, readFileSync, statSync, writeFileSync } from "fs";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  t
4
- } from "./chunk-G5TG43R4.js";
4
+ } from "./chunk-R754XIBJ.js";
5
5
 
6
6
  // src/prCli.ts
7
7
  import { spawn } from "child_process";
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ addProviderKey,
4
+ runProviderCommand
5
+ } from "./chunk-SWNRA3EW.js";
6
+ import "./chunk-INMSTUB2.js";
7
+ import "./chunk-6SDRWEPN.js";
8
+ import "./chunk-6JK4IBGK.js";
9
+ import "./chunk-7XD47KN5.js";
10
+ import "./chunk-TLCL6DC7.js";
11
+ import "./chunk-R754XIBJ.js";
12
+ export {
13
+ addProviderKey,
14
+ runProviderCommand
15
+ };
package/dist/sdk.js CHANGED
@@ -168,7 +168,7 @@ Usage:
168
168
  bccli import <file> import a session JSONL into the current project
169
169
  bccli pr <number> [--repo owner/name] [task] check out a GitHub PR and run a task on it
170
170
  bccli integrations show the status of external agent integrations
171
- bccli connect <agent> opencode, aider, cline, dsh, codex, claude-code, cursor, openai-cli, openai-sdk, openai-compatible, openclaw, hermes
171
+ bccli connect <agent> opencode, aider, cline, dsh, codex, claude-code, openclaw, hermes, crush, kilo, cursor, openai-cli, openai-sdk, openai-compatible
172
172
  bccli disconnect <agent> remove an integration and restore the previous config
173
173
 
174
174
  Options:
@@ -199,7 +199,7 @@ Pemakaian:
199
199
  bccli provider list|add <id>|remove <id> kelola provider (custom: --url <url> [--name N] [--key-env ENV])
200
200
  bccli mcp list|add <nama>|remove <nama>|auth <nama>|logout <nama>|serve [--base-url <url>] kelola server MCP, atau layani tools akun ini lewat stdio
201
201
  bccli integrations lihat status integrasi agent eksternal
202
- bccli connect <agent> opencode, aider, cline, dsh, codex, claude-code, cursor, openai-cli, openai-sdk, openai-compatible, openclaw, hermes
202
+ bccli connect <agent> opencode, aider, cline, dsh, codex, claude-code, openclaw, hermes, crush, kilo, cursor, openai-cli, openai-sdk, openai-compatible
203
203
  bccli disconnect <agent> lepas integrasi dan pulihkan config sebelumnya
204
204
 
205
205
  Opsi:
@@ -377,7 +377,12 @@ Opsi:
377
377
  '-p mode needs a task, e.g. bccli -p "explain this repo"': 'Mode -p butuh tugas, contoh: bccli -p "jelaskan repo ini"',
378
378
  'Project MCP server "{name}" skipped (not approved yet; run interactive bccli once to approve it).': 'Server MCP project "{name}" dilewati (belum diizinkan; jalankan bccli interaktif sekali untuk menyetujuinya).',
379
379
  'Interactive mode needs a terminal. For scripts/CI use: bccli -p "task"': 'Mode interaktif butuh terminal. Untuk skrip/CI pakai: bccli -p "tugas"',
380
- "Agent must be one of: opencode, aider, cline, deepseek-harness (dsh), cursor, openai-cli, openai-sdk, openai-compatible, codex, claude-code, openclaw, hermes": "Agent harus salah satu dari: opencode, aider, cline, deepseek-harness (dsh), cursor, openai-cli, openai-sdk, openai-compatible, codex, claude-code, openclaw, hermes",
380
+ "Agent must be one of: opencode, aider, cline, deepseek-harness (dsh), cursor, openai-cli, openai-sdk, openai-compatible, codex, claude-code, openclaw, hermes, crush, kilo": "Agent harus salah satu dari: opencode, aider, cline, deepseek-harness (dsh), cursor, openai-cli, openai-sdk, openai-compatible, codex, claude-code, openclaw, hermes, crush, kilo",
381
+ "Crush already has a botconnector provider outside the BCCLI block: {path}": "Crush sudah memiliki provider botconnector di luar blok BCCLI: {path}",
382
+ "Crush is connected to BotConnector ({n} models available; large model {model}).": "Crush terhubung ke BotConnector ({n} model tersedia; model large {model}).",
383
+ "The Kilo global kilo.json is not valid JSON: {path}": "kilo.json global Kilo tidak valid JSON: {path}",
384
+ 'Kilo already has a provider "{id}" with a different endpoint.': 'Kilo sudah memiliki provider "{id}" dengan endpoint lain.',
385
+ "Kilo Code is connected to BotConnector ({n} models available; suggested model {model}).": "Kilo Code terhubung ke BotConnector ({n} model tersedia; model yang disarankan {model}).",
381
386
  "Cannot determine the home directory.": "Home directory tidak dapat ditentukan.",
382
387
  "No BotConnector API key yet. Run bccli login bc-cloud first.": "API key BotConnector belum tersedia. Jalankan bccli login bc-cloud terlebih dahulu.",
383
388
  "Could not load the BotConnector model catalog (HTTP {status}).": "Katalog model BotConnector gagal dimuat (HTTP {status}).",
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createRuntime
4
- } from "./chunk-6BXW7DGQ.js";
4
+ } from "./chunk-ZJRZTMJF.js";
5
5
  import "./chunk-OK2USAXX.js";
6
- import "./chunk-OAXD3X4R.js";
7
- import "./chunk-6KZIOICR.js";
6
+ import "./chunk-KDVL2NP6.js";
7
+ import "./chunk-7GM6NN5E.js";
8
8
  import "./chunk-PSO7R5AD.js";
9
9
  import {
10
10
  VERSION
11
- } from "./chunk-N6APAYSF.js";
11
+ } from "./chunk-OFMZ6CE6.js";
12
12
  import {
13
13
  LOOPBACK_BIND,
14
14
  MAX_FRAME_BYTES,
@@ -17,25 +17,25 @@ import {
17
17
  parseClientFrame,
18
18
  randomToken,
19
19
  trustFence
20
- } from "./chunk-WSZF2CTU.js";
20
+ } from "./chunk-ISOKH5WB.js";
21
21
  import "./chunk-YYTFJUO2.js";
22
- import "./chunk-JFYQCPXL.js";
22
+ import "./chunk-SWNRA3EW.js";
23
23
  import {
24
24
  listAllModels
25
- } from "./chunk-Y6AZGGH7.js";
26
- import "./chunk-X24APPXO.js";
27
- import "./chunk-IHQGXDSG.js";
25
+ } from "./chunk-INMSTUB2.js";
26
+ import "./chunk-6SDRWEPN.js";
27
+ import "./chunk-3CYQYHPK.js";
28
28
  import {
29
29
  Session
30
- } from "./chunk-F54FDJBD.js";
31
- import "./chunk-OOOS5RCT.js";
32
- import "./chunk-XZ2TI5HV.js";
33
- import "./chunk-2DFY43RP.js";
30
+ } from "./chunk-KEKDRROL.js";
31
+ import "./chunk-6JK4IBGK.js";
32
+ import "./chunk-7XD47KN5.js";
33
+ import "./chunk-Q42ZGVAQ.js";
34
34
  import {
35
35
  bccliHome,
36
36
  loadConfig
37
- } from "./chunk-C2FUGQJX.js";
38
- import "./chunk-G5TG43R4.js";
37
+ } from "./chunk-TLCL6DC7.js";
38
+ import "./chunk-R754XIBJ.js";
39
39
 
40
40
  // src/serve.ts
41
41
  import { randomBytes } from "crypto";
@@ -3,15 +3,15 @@ import {
3
3
  createFetchTool,
4
4
  createWebSearchTool,
5
5
  isPrivateHost
6
- } from "./chunk-6KZIOICR.js";
6
+ } from "./chunk-7GM6NN5E.js";
7
7
  import "./chunk-PSO7R5AD.js";
8
8
  import {
9
9
  loadConfig,
10
10
  readCredentials
11
- } from "./chunk-C2FUGQJX.js";
11
+ } from "./chunk-TLCL6DC7.js";
12
12
  import {
13
13
  t
14
- } from "./chunk-G5TG43R4.js";
14
+ } from "./chunk-R754XIBJ.js";
15
15
 
16
16
  // src/mcpServer/serve.ts
17
17
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ Session,
4
+ pruneSessions
5
+ } from "./chunk-KEKDRROL.js";
6
+ import "./chunk-6JK4IBGK.js";
7
+ import "./chunk-7XD47KN5.js";
8
+ import "./chunk-R754XIBJ.js";
9
+ export {
10
+ Session,
11
+ pruneSessions
12
+ };
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ createRuntime,
4
+ lunaPtcAutoEnabled
5
+ } from "./chunk-ZJRZTMJF.js";
6
+ import "./chunk-OK2USAXX.js";
7
+ import "./chunk-KDVL2NP6.js";
8
+ import "./chunk-7GM6NN5E.js";
9
+ import "./chunk-PSO7R5AD.js";
10
+ import "./chunk-YYTFJUO2.js";
11
+ import "./chunk-SWNRA3EW.js";
12
+ import "./chunk-INMSTUB2.js";
13
+ import "./chunk-6SDRWEPN.js";
14
+ import "./chunk-3CYQYHPK.js";
15
+ import "./chunk-KEKDRROL.js";
16
+ import "./chunk-6JK4IBGK.js";
17
+ import "./chunk-7XD47KN5.js";
18
+ import "./chunk-Q42ZGVAQ.js";
19
+ import "./chunk-TLCL6DC7.js";
20
+ import "./chunk-R754XIBJ.js";
21
+ export {
22
+ createRuntime,
23
+ lunaPtcAutoEnabled
24
+ };
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-OK2USAXX.js";
5
5
  import {
6
6
  t
7
- } from "./chunk-G5TG43R4.js";
7
+ } from "./chunk-R754XIBJ.js";
8
8
 
9
9
  // src/statsCli.ts
10
10
  import { existsSync, readdirSync, readFileSync, statSync } from "fs";
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  Session
4
- } from "./chunk-F54FDJBD.js";
5
- import "./chunk-OOOS5RCT.js";
6
- import "./chunk-XZ2TI5HV.js";
4
+ } from "./chunk-KEKDRROL.js";
5
+ import "./chunk-6JK4IBGK.js";
6
+ import "./chunk-7XD47KN5.js";
7
7
  import {
8
8
  t
9
- } from "./chunk-G5TG43R4.js";
9
+ } from "./chunk-R754XIBJ.js";
10
10
 
11
11
  // src/transferCli.ts
12
12
  import { copyFileSync, existsSync, mkdirSync, readdirSync, readFileSync, statSync, writeFileSync } from "fs";
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  CATALOG,
4
4
  fillTemplate
5
- } from "./chunk-NT2G5FSX.js";
5
+ } from "./chunk-JUC3ZOCV.js";
6
6
  import {
7
7
  MAX_VERIFY_ROUNDS,
8
8
  runVerify,
9
9
  toolLabel,
10
10
  verifyFollowup,
11
11
  worktreeListText
12
- } from "./chunk-6M5T7N7A.js";
12
+ } from "./chunk-S3QEZDKB.js";
13
13
  import {
14
14
  BUILTIN_AGENTS,
15
15
  appendMemory,
@@ -24,7 +24,7 @@ import {
24
24
  runCommand,
25
25
  runHooks,
26
26
  validateGlobPattern
27
- } from "./chunk-OAXD3X4R.js";
27
+ } from "./chunk-KDVL2NP6.js";
28
28
  import "./chunk-PSO7R5AD.js";
29
29
  import {
30
30
  nextMode,
@@ -34,39 +34,39 @@ import {
34
34
  hasKey,
35
35
  providerName,
36
36
  writeGlobalConfig
37
- } from "./chunk-X24APPXO.js";
37
+ } from "./chunk-6SDRWEPN.js";
38
38
  import {
39
39
  Session
40
- } from "./chunk-F54FDJBD.js";
40
+ } from "./chunk-KEKDRROL.js";
41
41
  import {
42
42
  contentText
43
- } from "./chunk-OOOS5RCT.js";
43
+ } from "./chunk-6JK4IBGK.js";
44
44
  import {
45
45
  REASONING_LEVELS,
46
46
  assertReasoningSupported,
47
47
  parseReasoningLevel,
48
48
  supportedReasoningLevels
49
- } from "./chunk-XZ2TI5HV.js";
49
+ } from "./chunk-7XD47KN5.js";
50
50
  import {
51
51
  addGlobalServer,
52
52
  globalMcpPath,
53
53
  readMcpFile,
54
54
  removeGlobalServer
55
- } from "./chunk-2DFY43RP.js";
55
+ } from "./chunk-Q42ZGVAQ.js";
56
56
  import {
57
57
  ACCENT,
58
58
  PRESETS,
59
59
  color,
60
60
  matchKeybind,
61
61
  removeCredential
62
- } from "./chunk-C2FUGQJX.js";
62
+ } from "./chunk-TLCL6DC7.js";
63
63
  import {
64
64
  getLanguage,
65
65
  locale,
66
66
  parseLang,
67
67
  setLanguage,
68
68
  t
69
- } from "./chunk-G5TG43R4.js";
69
+ } from "./chunk-R754XIBJ.js";
70
70
 
71
71
  // src/ui/index.tsx
72
72
  import { render } from "ink";
@@ -2887,7 +2887,7 @@ ${allLines.slice(-maxLiveLines).join("\n")}` : text;
2887
2887
  import { jsx as jsx17 } from "react/jsx-runtime";
2888
2888
  async function startInteractive(rt, opts) {
2889
2889
  if (opts.resume) {
2890
- const { Session: Session2 } = await import("./session-CQCQ7KAP.js");
2890
+ const { Session: Session2 } = await import("./session-LX4UNPCD.js");
2891
2891
  const list = Session2.list(rt.home, rt.cwd).slice(0, 20);
2892
2892
  if (!list.length) console.log(t("No sessions in this folder yet; starting a new one."));
2893
2893
  else {
@@ -2903,7 +2903,7 @@ async function startInteractive(rt, opts) {
2903
2903
  if (chosen) rt.resume(chosen.session);
2904
2904
  }
2905
2905
  }
2906
- const { serversToStart, setProjectTrust } = await import("./config-7TQ2KVVX.js");
2906
+ const { serversToStart, setProjectTrust } = await import("./config-YYEAEN2C.js");
2907
2907
  const plan = serversToStart(rt.home, rt.cwd);
2908
2908
  if (plan.needTrust.length) {
2909
2909
  const { createInterface } = await import("readline/promises");