@botconnector/bccli 0.4.0-beta.41 → 0.4.0-beta.42

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 (45) hide show
  1. package/dist/{acp-SZWZ5EE4.js → acp-PP7ZONVQ.js} +2 -2
  2. package/dist/{args-4SMOHFN5.js → args-3DGIMRTG.js} +4 -4
  3. package/dist/{chunk-ISCT3PN3.js → chunk-3P5N6UPF.js} +2 -2
  4. package/dist/{chunk-3HCOAJEQ.js → chunk-7F3IWBPQ.js} +1 -0
  5. package/dist/{chunk-JROUQ5YS.js → chunk-A2XKKKKU.js} +4 -4
  6. package/dist/{chunk-AS7VV7D3.js → chunk-ADS5FDWL.js} +12 -6
  7. package/dist/{chunk-M7LLJQ7M.js → chunk-AGIZBZ64.js} +64 -24
  8. package/dist/{chunk-NI5JZUZ3.js → chunk-AWNQDAOY.js} +1 -1
  9. package/dist/{chunk-DBHDZ5EP.js → chunk-DRK3XTVZ.js} +13 -3
  10. package/dist/{chunk-M4IYXI3V.js → chunk-HQB227LD.js} +23 -21
  11. package/dist/{chunk-VM7HYAJS.js → chunk-HVGXCPDG.js} +1 -1
  12. package/dist/{chunk-SESBH44L.js → chunk-I422TPGX.js} +1 -1
  13. package/dist/chunk-I4THUZRD.js +145 -0
  14. package/dist/{chunk-LN32JIZR.js → chunk-LYFN6AEV.js} +4 -4
  15. package/dist/{chunk-GGNXHJL6.js → chunk-LYQHLA43.js} +2 -2
  16. package/dist/{chunk-AVB6M4JE.js → chunk-NFJPKNHL.js} +2 -2
  17. package/dist/{chunk-BUHWQU3V.js → chunk-O74EQFYI.js} +3 -3
  18. package/dist/{chunk-EQQTTE2K.js → chunk-Q2ZBR4OU.js} +1 -1
  19. package/dist/{chunk-HE33XAPZ.js → chunk-QZM66F3A.js} +1 -1
  20. package/dist/{chunk-M23QBX3V.js → chunk-VBEX5YHF.js} +58 -2
  21. package/dist/cli.js +57 -37
  22. package/dist/{config-C4KLLDC6.js → config-LFT2FNSE.js} +3 -3
  23. package/dist/config-UKEKWMCG.js +30 -0
  24. package/dist/ghBotCli-DWQXAIKE.js +676 -0
  25. package/dist/{integrationCli-HR7CDUSI.js → integrationCli-RSJCJ3NW.js} +2 -2
  26. package/dist/login-L3SUO4H4.js +16 -0
  27. package/dist/{mcpCli-5QTXH7XJ.js → mcpCli-RSLEDQQ7.js} +6 -6
  28. package/dist/{modelsCli-DKTT3UZD.js → modelsCli-IKZLORLH.js} +6 -6
  29. package/dist/npmRunner-LU43GM3W.js +46 -0
  30. package/dist/oauthLogin-XHEMYL6L.js +210 -0
  31. package/dist/pluginsCli-MRS547WG.js +284 -0
  32. package/dist/providerCli-7GRUL3BS.js +15 -0
  33. package/dist/sdk.js +128 -54
  34. package/dist/{serve-I2VQUTHR.js → serve-A4E67R5E.js} +3 -3
  35. package/dist/{serve-KQ35P4W3.js → serve-GFNJ5PSL.js} +18 -18
  36. package/dist/session-VKVBMGCC.js +12 -0
  37. package/dist/setup-XWX64X5Q.js +23 -0
  38. package/dist/{ui-S4QFJJIB.js → ui-STI6HSOR.js} +13 -13
  39. package/dist/{update-VBDEHHMR.js → update-KMWE2P2I.js} +2 -2
  40. package/package.json +1 -1
  41. package/dist/chunk-DSFHN5CH.js +0 -52
  42. package/dist/login-T5S6SPZA.js +0 -9
  43. package/dist/providerCli-DDH4ZZUY.js +0 -15
  44. package/dist/session-H2YL5RSB.js +0 -12
  45. package/dist/setup-45WQXUBK.js +0 -23
@@ -103,11 +103,13 @@ var ID = {
103
103
  Usage:
104
104
  bccli [task] interactive mode (optionally start with a task)
105
105
  bccli -p "task" run one task without interaction (scripts/CI)
106
- bccli login [provider] save an API key (default: bc-cloud)
106
+ bccli login [provider] OAuth login (or --key paste API key, --logout remove)
107
107
  bccli models [provider] list models (default: the active provider)
108
108
  bccli update install the newest bccli from npm
109
109
  bccli acp run as an ACP agent for editors (Zed, ...)
110
110
  bccli serve [--port N] serve sessions over HTTP+WS for IDEs/bots
111
+ bccli plugins list, install, remove, or update plugins
112
+ bccli gh-bot [serve] GitHub comment bot (off-by-default; needs config)
111
113
  bccli provider list|add <id>|remove <id> manage providers (custom: --url <url> [--name N] [--key-env ENV])
112
114
  bccli mcp list|add <name>|remove <name>|auth <name>|logout <name>|serve [--base-url <url>] manage MCP servers, or serve this account's tools over stdio
113
115
  bccli integrations show the status of external agent integrations
@@ -131,11 +133,13 @@ Options:
131
133
  Pemakaian:
132
134
  bccli [tugas] mode interaktif (opsional langsung dengan tugas)
133
135
  bccli -p "tugas" jalankan satu tugas tanpa interaksi (skrip/CI)
134
- bccli login [provider] simpan API key (default: bc-cloud)
136
+ bccli login [provider] login OAuth (atau --key tempel API key, --logout hapus)
135
137
  bccli models [provider] daftar model (default: provider aktif)
136
138
  bccli update pasang bccli terbaru dari npm
137
139
  bccli acp jalankan sebagai agen ACP untuk editor (Zed, ...)
138
140
  bccli serve [--port N] sajikan sesi lewat HTTP+WS untuk IDE/bot
141
+ bccli plugins daftar, install, remove, atau perbarui plugin
142
+ bccli gh-bot [serve] bot komentar GitHub (nonaktif default; butuh config)
139
143
  bccli provider list|add <id>|remove <id> kelola provider (custom: --url <url> [--name N] [--key-env ENV])
140
144
  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
141
145
  bccli integrations lihat status integrasi agent eksternal
@@ -179,6 +183,58 @@ Opsi:
179
183
  "A new bccli is available: {latest} (you have {current}). Run: bccli update": "bccli versi baru tersedia: {latest} (kamu punya {current}). Jalankan: bccli update",
180
184
  "Clipboard image saved to {path} \u2014 the path is inserted in the input; the model sees it when you send.": "Gambar clipboard disimpan ke {path} \u2014 path disisipkan ke input; model melihatnya saat kamu kirim.",
181
185
  "No image on the clipboard.": "Tidak ada gambar di clipboard.",
186
+ "githubBot secret env {env} is empty \u2014 set it before enabling the bot.": "secret env githubBot {env} kosong \u2014 setel sebelum mengaktifkan bot.",
187
+ "githubBot.{name} must be an array of strings.": "githubBot.{name} harus berupa array of string.",
188
+ "githubBot.{name} must be a positive integer.": "githubBot.{name} harus bilangan bulat positif.",
189
+ "githubBot.enabled must be a boolean.": "githubBot.enabled harus boolean.",
190
+ "githubBot.path must be an absolute path like /github.": "githubBot.path harus path absolut seperti /github.",
191
+ "githubBot.secretEnv must be a non-empty string.": "githubBot.secretEnv harus string tidak kosong.",
192
+ "Ignored empty command in delivery {id}.": "Mengabaikan perintah kosong di delivery {id}.",
193
+ "Unknown action: {action}. Use serve.": "Aksi tidak dikenal: {action}. Gunakan serve.",
194
+ "gh CLI not found (exit {code}) \u2014 install GitHub CLI before enabling gh-bot.": "gh CLI tidak ditemukan (exit {code}) \u2014 pasang GitHub CLI sebelum mengaktifkan gh-bot.",
195
+ "Unknown action: {action}. Use list, install <spec>, remove <name>, or update [name].": "Aksi tidak dikenal: {action}. Gunakan list, install <spec>, remove <nama>, atau update [nama].",
196
+ "Cannot read the plugin config while running {action}: {reason} at {path} \u2014 no changes were made; fix the config, then retry.": "Tidak bisa membaca config plugin saat menjalankan {action}: {reason} di {path} \u2014 tidak ada perubahan; perbaiki config, lalu coba lagi.",
197
+ "npm install failed ({code}): {stderr}": "npm install gagal ({code}): {stderr}",
198
+ "install requires a package spec: bccli plugins install <spec>": "install butuh spesifikasi paket: bccli plugins install <spec>",
199
+ "Invalid npm package spec: {spec}. Use a name, @scope/name, name@version, or name@tag \u2014 URLs, git, paths, and flags are not accepted.": "Spesifikasi paket npm tidak valid: {spec}. Pakai nama, @scope/nama, nama@versi, atau nama@tag \u2014 URL, git, path, dan flag tidak diterima.",
200
+ "npm finished but the config could not be read: {reason} \u2014 the entry list is unchanged; fix {path}, then rerun the same command (safe to repeat).": "npm selesai tetapi config gagal dibaca: {reason} \u2014 daftar entry tidak berubah; perbaiki {path}, lalu jalankan ulang perintah yang sama (aman diulang).",
201
+ "npm finished but the config update failed: {reason}. {name} stays enabled through its existing entry {entry}; the package files may already be new. Fix the config error at {path} \u2014 no entry change was required.": "npm selesai tetapi pembaruan config gagal: {reason}. {name} tetap aktif lewat entry lama {entry}; file paket mungkin sudah baru. Perbaiki error config di {path} \u2014 tidak ada perubahan entry yang diperlukan.",
202
+ 'npm finished but the config update failed: {reason}. {name} is installed but NOT enabled \u2014 fix the config error, then run "bccli plugins install {name}" again (safe to repeat), or add {entry} to {path} manually.': 'npm selesai tetapi pembaruan config gagal: {reason}. {name} terpasang tetapi TIDAK aktif \u2014 perbaiki error config, lalu jalankan lagi "bccli plugins install {name}" (aman diulang), atau tambahkan {entry} ke {path} secara manual.',
203
+ "{name} is already enabled.": "{name} sudah aktif.",
204
+ "{name} installed and enabled.": "{name} terpasang dan aktif.",
205
+ "Malformed managed entry: {entry} \u2014 fix it manually in {path}; bccli will not pass it to npm.": "Entry terelola rusak: {entry} \u2014 perbaiki manual di {path}; bccli tidak akan meneruskannya ke npm.",
206
+ "{entry} is a manual plugin entry \u2014 edit the global config.json directly to remove it.": "{entry} adalah entry plugin manual \u2014 edit config.json global langsung untuk menghapusnya.",
207
+ "{name} is not an installed managed plugin.": "{name} bukan plugin terelola yang terpasang.",
208
+ "Unknown plugin: {arg}.": "Plugin tidak dikenal: {arg}.",
209
+ "remove requires a plugin name: bccli plugins remove <name>": "remove butuh nama plugin: bccli plugins remove <nama>",
210
+ 'npm removed the files of {name} but the plugin config could not be read: {reason} \u2014 the entry list is unchanged; fix {path}, then run "bccli plugins remove {name}" again (safe to repeat).': 'npm sudah menghapus file {name} tetapi config plugin gagal dibaca: {reason} \u2014 daftar entry tidak berubah; perbaiki {path}, lalu jalankan lagi "bccli plugins remove {name}" (aman diulang).',
211
+ 'npm removed the files of {name} but the config entry {entry} remains: {reason}. bccli will refuse to start while that entry is listed \u2014 fix the config error at {path}, then run "bccli plugins remove {name}" again (safe to repeat), or delete the entry manually.': 'npm sudah menghapus file {name} tetapi entry config {entry} tertinggal: {reason}. bccli menolak start selama entry itu terdaftar \u2014 perbaiki error config di {path}, lalu jalankan lagi "bccli plugins remove {name}" (aman diulang), atau hapus entry secara manual.',
212
+ "Skipping malformed entry: {entry} \u2014 fix it manually in {path}.": "Melewatkan entry rusak: {entry} \u2014 perbaiki manual di {path}.",
213
+ "No managed plugins to update.": "Tidak ada plugin terelola untuk diperbarui.",
214
+ "update requires a plugin name or no argument: bccli plugins update [name]": "update butuh nama plugin atau tanpa argumen: bccli plugins update [nama]",
215
+ "{name} updated to latest.": "{name} diperbarui ke versi terbaru.",
216
+ "Use either --key or --logout, not both.": "Pakai --key atau --logout, jangan keduanya.",
217
+ "Logout is not supported for {id}; use bccli provider remove {id} to delete its stored key and config.": "Logout tidak didukung untuk {id}; pakai bccli provider remove {id} untuk menghapus key dan config tersimpan.",
218
+ "bccli login openrouter needs a terminal. Use --key to paste an API key instead.": "bccli login openrouter butuh terminal. Pakai --key untuk menempel API key.",
219
+ "Could not open the browser automatically \u2014 open this URL manually: {url}": "Tidak bisa membuka browser otomatis \u2014 buka URL ini manual: {url}",
220
+ "Paste the authorization code from the browser: ": "Tempel kode otorisasi dari browser: ",
221
+ "Failed to read the authorization code: {reason}. Your stored credential was not changed.": "Gagal membaca kode otorisasi: {reason}. Credential tersimpan tidak berubah.",
222
+ "Authorization code is empty. Run bccli login openrouter again.": "Kode otorisasi kosong. Jalankan bccli login openrouter lagi.",
223
+ "Login cancelled.": "Login dibatalkan.",
224
+ "The exchange with OpenRouter timed out after {seconds}s. Your stored credential was not changed.": "Pertukaran dengan OpenRouter habis waktu setelah {seconds} dtk. Credential tersimpan tidak berubah.",
225
+ "Could not reach OpenRouter: {reason}. Your stored credential was not changed.": "Tidak bisa menghubungi OpenRouter: {reason}. Credential tersimpan tidak berubah.",
226
+ "Authorization code expired \u2014 codes are valid for 10 minutes. Run bccli login openrouter again.": "Kode otorisasi kedaluwarsa \u2014 kode berlaku 10 menit. Jalankan bccli login openrouter lagi.",
227
+ "OpenRouter rejected the authorization code (403): {detail}. Run bccli login openrouter again.": "OpenRouter menolak kode otorisasi (403): {detail}. Jalankan bccli login openrouter lagi.",
228
+ "OpenRouter did not return an API key in the expected format. Your stored credential was not changed.": "OpenRouter tidak mengembalikan API key dengan format yang diharapkan. Credential tersimpan tidak berubah.",
229
+ "OpenRouter exchange failed ({status}): {detail}. Your stored credential was not changed.": "Pertukaran OpenRouter gagal ({status}): {detail}. Credential tersimpan tidak berubah.",
230
+ "The key was created on your OpenRouter account but could not be saved locally ({reason}). Manage it (copy or revoke) at {dashboard}, then run bccli login openrouter again.": "Key sudah dibuat di akun OpenRouter kamu tetapi gagal disimpan lokal ({reason}). Kelola (salin atau cabut) di {dashboard}, lalu jalankan bccli login openrouter lagi.",
231
+ "Logged in: openrouter credential saved.": "Login berhasil: credential openrouter tersimpan.",
232
+ "Note: {env} is set in the environment and takes priority over the stored credential.": "Catatan: {env} ter-set di environment dan lebih diutamakan daripada credential tersimpan.",
233
+ "Verify with: bccli models openrouter (your key is never printed).": "Verifikasi dengan: bccli models openrouter (key kamu tidak pernah dicetak).",
234
+ "openrouter credential removed.": "credential openrouter dihapus.",
235
+ "openrouter credential was not stored.": "credential openrouter tidak tersimpan.",
236
+ "Note: {env} is still set in the environment and will keep being used.": "Catatan: {env} masih ter-set di environment dan akan terus dipakai.",
237
+ "To revoke keys on your account, open {dashboard}.": "Untuk mencabut key akun kamu, buka {dashboard}.",
182
238
  "Budget exceeded ({kind}): {used} of {limit}. Further model calls are blocked; raise usageCap in ~/.bccli/config.json.": "Anggaran terlampaui ({kind}): {used} dari {limit}. Panggilan model selanjutnya diblokir; naikkan usageCap di ~/.bccli/config.json.",
183
239
  "Verifying edits: {cmds}": "Memverifikasi edit: {cmds}",
184
240
  "Verification passed.": "Verifikasi lulus.",
package/dist/cli.js CHANGED
@@ -1,46 +1,47 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- VERSION
4
- } from "./chunk-EQQTTE2K.js";
5
2
  import {
6
3
  resolveWorktree,
7
4
  runPrint
8
- } from "./chunk-BUHWQU3V.js";
5
+ } from "./chunk-O74EQFYI.js";
9
6
  import {
10
- helpText,
11
- parseCliArgs
12
- } from "./chunk-AS7VV7D3.js";
7
+ createRuntime
8
+ } from "./chunk-HQB227LD.js";
9
+ import "./chunk-DRK3XTVZ.js";
10
+ import "./chunk-QZM66F3A.js";
11
+ import "./chunk-PSO7R5AD.js";
13
12
  import {
14
- runLogin
15
- } from "./chunk-DSFHN5CH.js";
13
+ VERSION
14
+ } from "./chunk-Q2ZBR4OU.js";
16
15
  import {
17
- createRuntime
18
- } from "./chunk-M4IYXI3V.js";
19
- import "./chunk-3HCOAJEQ.js";
20
- import "./chunk-DBHDZ5EP.js";
16
+ helpText,
17
+ parseCliArgs
18
+ } from "./chunk-ADS5FDWL.js";
21
19
  import "./chunk-GAFJEQTJ.js";
22
- import "./chunk-JROUQ5YS.js";
23
- import "./chunk-LN32JIZR.js";
20
+ import "./chunk-A2XKKKKU.js";
21
+ import "./chunk-LYFN6AEV.js";
24
22
  import {
25
23
  readGlobalConfigFile
26
- } from "./chunk-SESBH44L.js";
24
+ } from "./chunk-I422TPGX.js";
25
+ import {
26
+ defaultLoginDeps,
27
+ runLogin
28
+ } from "./chunk-I4THUZRD.js";
29
+ import "./chunk-7F3IWBPQ.js";
27
30
  import {
28
31
  pruneSessions
29
- } from "./chunk-VM7HYAJS.js";
30
- import "./chunk-GGNXHJL6.js";
31
- import "./chunk-NI5JZUZ3.js";
32
- import "./chunk-AVB6M4JE.js";
33
- import "./chunk-HE33XAPZ.js";
34
- import "./chunk-PSO7R5AD.js";
32
+ } from "./chunk-HVGXCPDG.js";
33
+ import "./chunk-LYQHLA43.js";
34
+ import "./chunk-AWNQDAOY.js";
35
+ import "./chunk-NFJPKNHL.js";
35
36
  import {
36
37
  ConfigError,
37
38
  setTheme
38
- } from "./chunk-M7LLJQ7M.js";
39
+ } from "./chunk-AGIZBZ64.js";
39
40
  import {
40
41
  resolveLanguage,
41
42
  setLanguage,
42
43
  t
43
- } from "./chunk-M23QBX3V.js";
44
+ } from "./chunk-VBEX5YHF.js";
44
45
 
45
46
  // src/cli.ts
46
47
  function chooseLanguage(argv) {
@@ -64,19 +65,19 @@ async function main() {
64
65
  }
65
66
  let cwd = process.cwd();
66
67
  if (args.worktree) cwd = (await resolveWorktree(cwd, args.worktree)).path;
67
- if (args.command === "login") return runLogin(args.loginProvider ?? "bc-cloud", cwd);
68
+ if (args.command === "login") return runLogin(args.loginProvider ?? "bc-cloud", cwd, args, defaultLoginDeps());
68
69
  if (args.command === "mcp") {
69
- const { runMcpCommand } = await import("./mcpCli-5QTXH7XJ.js");
70
- const { readSecret } = await import("./login-T5S6SPZA.js");
70
+ const { runMcpCommand } = await import("./mcpCli-RSLEDQQ7.js");
71
+ const { readSecret } = await import("./login-L3SUO4H4.js");
71
72
  return runMcpCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), readSecret });
72
73
  }
73
74
  if (args.command === "provider") {
74
- const { runProviderCommand } = await import("./providerCli-DDH4ZZUY.js");
75
- const { readSecret } = await import("./login-T5S6SPZA.js");
75
+ const { runProviderCommand } = await import("./providerCli-7GRUL3BS.js");
76
+ const { readSecret } = await import("./login-L3SUO4H4.js");
76
77
  return runProviderCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), readSecret });
77
78
  }
78
79
  if (args.command === "connect" || args.command === "disconnect" || args.command === "integrations") {
79
- const { runIntegrationCommand } = await import("./integrationCli-HR7CDUSI.js");
80
+ const { runIntegrationCommand } = await import("./integrationCli-RSJCJ3NW.js");
80
81
  return runIntegrationCommand(args, {
81
82
  env: process.env,
82
83
  cwd,
@@ -86,20 +87,20 @@ async function main() {
86
87
  });
87
88
  }
88
89
  if (args.command === "models") {
89
- const { runModelsCommand } = await import("./modelsCli-DKTT3UZD.js");
90
+ const { runModelsCommand } = await import("./modelsCli-IKZLORLH.js");
90
91
  return runModelsCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), fetch: globalThis.fetch });
91
92
  }
92
93
  if (args.command === "update") {
93
- const { runUpdateCommand } = await import("./update-VBDEHHMR.js");
94
+ const { runUpdateCommand } = await import("./update-KMWE2P2I.js");
94
95
  return runUpdateCommand({ env: process.env });
95
96
  }
96
97
  if (args.command === "acp") {
97
- const { runtimeAgent, runAcp } = await import("./acp-SZWZ5EE4.js");
98
+ const { runtimeAgent, runAcp } = await import("./acp-PP7ZONVQ.js");
98
99
  await runAcp(process.stdin, process.stdout, { cwd, newAgent: (c) => runtimeAgent(c) });
99
100
  return 0;
100
101
  }
101
102
  if (args.command === "serve") {
102
- const { startServe } = await import("./serve-KQ35P4W3.js");
103
+ const { startServe } = await import("./serve-GFNJ5PSL.js");
103
104
  const handle = await startServe({ port: args.port, host: args.host, token: args.token, cwd, env: process.env });
104
105
  process.stderr.write(`bccli serve ${handle.url} \u2014 Authorization: Bearer ${handle.token}
105
106
  `);
@@ -112,6 +113,25 @@ async function main() {
112
113
  });
113
114
  return 0;
114
115
  }
116
+ if (args.command === "plugins") {
117
+ const { runPluginsCommand } = await import("./pluginsCli-MRS547WG.js");
118
+ const { readGlobalPlugins, updateGlobalConfig } = await import("./config-UKEKWMCG.js");
119
+ const { runNpmSync } = await import("./npmRunner-LU43GM3W.js");
120
+ return runPluginsCommand(args, {
121
+ out: (s) => console.log(s),
122
+ err: (s) => console.error(s),
123
+ env: process.env,
124
+ runNpm: async (prefix, argv) => runNpmSync(prefix, argv),
125
+ readPlugins: () => readGlobalPlugins(process.env),
126
+ savePlugins: (entries) => updateGlobalConfig(process.env, (cfg) => {
127
+ cfg.plugins = entries;
128
+ })
129
+ });
130
+ }
131
+ if (args.command === "gh-bot") {
132
+ const { runGhBotCommand } = await import("./ghBotCli-DWQXAIKE.js");
133
+ return runGhBotCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s) });
134
+ }
115
135
  const rt = createRuntime({ cwd, args });
116
136
  setTheme(rt.config.theme);
117
137
  try {
@@ -120,7 +140,7 @@ async function main() {
120
140
  }
121
141
  if (args.print) {
122
142
  if (!args.prompt) throw new ConfigError(t('-p mode needs a task, e.g. bccli -p "explain this repo"'));
123
- const { serversToStart } = await import("./config-C4KLLDC6.js");
143
+ const { serversToStart } = await import("./config-LFT2FNSE.js");
124
144
  const plan = serversToStart(rt.home, cwd);
125
145
  for (const s of plan.needTrust) {
126
146
  console.error(t('Project MCP server "{name}" skipped (not approved yet; run interactive bccli once to approve it).', { name: s.name }));
@@ -135,13 +155,13 @@ async function main() {
135
155
  if (!process.stdin.isTTY) throw new ConfigError(t('Interactive mode needs a terminal. For scripts/CI use: bccli -p "task"'));
136
156
  if (rt.config.updateCheck !== "off" && !process.env.BCCLI_NO_UPDATE_CHECK) {
137
157
  try {
138
- const { checkForUpdate } = await import("./update-VBDEHHMR.js");
158
+ const { checkForUpdate } = await import("./update-KMWE2P2I.js");
139
159
  const update = await checkForUpdate({ home: rt.home, fetch: globalThis.fetch, now: /* @__PURE__ */ new Date() });
140
160
  if (update) console.error(update);
141
161
  } catch {
142
162
  }
143
163
  }
144
- const { startInteractive } = await import("./ui-S4QFJJIB.js");
164
+ const { startInteractive } = await import("./ui-STI6HSOR.js");
145
165
  return startInteractive(rt, { initialPrompt: args.prompt, resume: args.resume, version: VERSION });
146
166
  }
147
167
  main().then(
@@ -9,9 +9,9 @@ import {
9
9
  removeGlobalServer,
10
10
  serversToStart,
11
11
  setProjectTrust
12
- } from "./chunk-AVB6M4JE.js";
13
- import "./chunk-M7LLJQ7M.js";
14
- import "./chunk-M23QBX3V.js";
12
+ } from "./chunk-NFJPKNHL.js";
13
+ import "./chunk-AGIZBZ64.js";
14
+ import "./chunk-VBEX5YHF.js";
15
15
  export {
16
16
  addGlobalServer,
17
17
  expandEnvVars,
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ ConfigError,
4
+ DEFAULT_MAX_STEPS,
5
+ bccliHome,
6
+ globalConfigPath,
7
+ loadConfig,
8
+ readCredentials,
9
+ readGlobalPlugins,
10
+ readJsonConfig,
11
+ removeCredential,
12
+ resolveModel,
13
+ saveCredential,
14
+ updateGlobalConfig
15
+ } from "./chunk-AGIZBZ64.js";
16
+ import "./chunk-VBEX5YHF.js";
17
+ export {
18
+ ConfigError,
19
+ DEFAULT_MAX_STEPS,
20
+ bccliHome,
21
+ globalConfigPath,
22
+ loadConfig,
23
+ readCredentials,
24
+ readGlobalPlugins,
25
+ readJsonConfig,
26
+ removeCredential,
27
+ resolveModel,
28
+ saveCredential,
29
+ updateGlobalConfig
30
+ };