@botconnector/bccli 0.4.4 → 0.4.6
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/{acp-SWBX4TT6.js → acp-YGQXX2L7.js} +2 -2
- package/dist/{args-UCLW7NID.js → args-TFKRCKTY.js} +4 -4
- package/dist/{chunk-HQW4BROS.js → chunk-27REMLDV.js} +1 -1
- package/dist/{chunk-OZ5GHMTN.js → chunk-2Y6TH4MA.js} +4 -4
- package/dist/{chunk-TGGKACSE.js → chunk-3JQZ2IKV.js} +3 -3
- package/dist/{chunk-3I5BW3ZT.js → chunk-6EGQI6HJ.js} +1 -1
- package/dist/{chunk-RX4UQX43.js → chunk-AK6TWKET.js} +1 -1
- package/dist/{chunk-FI7RUJRX.js → chunk-AN7SNPFA.js} +11 -11
- package/dist/{chunk-MSDK4IIJ.js → chunk-BBZLRWPR.js} +4 -4
- package/dist/{chunk-SMTBYDNO.js → chunk-BL2KOEXJ.js} +1 -1
- package/dist/{chunk-5BVC3Y6B.js → chunk-CILTKMZW.js} +7 -7
- package/dist/{chunk-YCHCHOMK.js → chunk-D7GAZKXT.js} +3 -3
- package/dist/{chunk-3WHI4LN3.js → chunk-EOOWV6C6.js} +2 -0
- package/dist/{chunk-HBQ6OLQT.js → chunk-NSARPM5C.js} +1 -1
- package/dist/{chunk-JXM6REER.js → chunk-O5ATYRUP.js} +1 -1
- package/dist/{chunk-RZF6A43N.js → chunk-QZKB6VTU.js} +4 -4
- package/dist/{chunk-6M55UPES.js → chunk-WTCWBY2D.js} +2 -2
- package/dist/{chunk-NQOGVP3I.js → chunk-XQVEAF3F.js} +2 -2
- package/dist/{chunk-QQJ2VVIW.js → chunk-XSUFHD67.js} +1 -1
- package/dist/{chunk-CGBSE55G.js → chunk-ZGIK5INC.js} +1 -1
- package/dist/cli.js +38 -38
- package/dist/{completion-D2BSBTQO.js → completion-JCBMQKNQ.js} +1 -1
- package/dist/{config-LAINORU5.js → config-2MR6V7U7.js} +2 -2
- package/dist/{config-ENDRMOTP.js → config-JCI7NAVY.js} +3 -3
- package/dist/{ghBotCli-ZVWU7EMG.js → ghBotCli-IXRHTHC5.js} +14 -14
- package/dist/{integrationCli-HXCSEWH2.js → integrationCli-KOCF73GG.js} +2 -2
- package/dist/{login-QPUWIC76.js → login-IMVSN4X3.js} +4 -4
- package/dist/{mcpCli-SETTCL3K.js → mcpCli-IBC3WCHG.js} +6 -6
- package/dist/{modelsCli-SZK4E2BY.js → modelsCli-BOPAZIG4.js} +6 -6
- package/dist/{oauthLogin-XWY7OHCG.js → oauthLogin-TUXZLIQN.js} +1 -1
- package/dist/{pluginsCli-ZQNKWZHJ.js → pluginsCli-X7NZRU7X.js} +2 -2
- package/dist/{prCli-6PUWTMTP.js → prCli-GPDLWYWC.js} +1 -1
- package/dist/providerCli-IRJTX5JF.js +15 -0
- package/dist/sdk.js +4 -2
- package/dist/{serve-K5AH4MGO.js → serve-A764QS5U.js} +3 -3
- package/dist/{serve-L3SAIAAI.js → serve-XRFCR6MG.js} +15 -15
- package/dist/session-NPKTEDKV.js +12 -0
- package/dist/setup-KYDIUOOG.js +24 -0
- package/dist/{statsCli-XR6BEZQQ.js → statsCli-FKGON32O.js} +1 -1
- package/dist/{transferCli-HKGAWZ3Q.js → transferCli-BQXPUFPH.js} +4 -4
- package/dist/ui/complete.d.ts +2 -0
- package/dist/ui/thinkingMouse.d.ts +2 -0
- package/dist/{ui-NPA52YJH.js → ui-S6OQOIFO.js} +404 -114
- package/dist/{update-AFIM34US.js → update-SYDSYLR6.js} +2 -2
- package/package.json +1 -1
- package/dist/providerCli-PKI7B2SC.js +0 -15
- package/dist/session-ASXO6GXR.js +0 -12
- package/dist/setup-F7FZ66OS.js +0 -24
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
loadConfig,
|
|
6
6
|
readCredentials,
|
|
7
7
|
resolveModel
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AK6TWKET.js";
|
|
9
9
|
import {
|
|
10
10
|
t
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EOOWV6C6.js";
|
|
12
12
|
|
|
13
13
|
// src/integrationCli.ts
|
|
14
14
|
import { chmodSync, copyFileSync, existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
readLine,
|
|
5
5
|
readSecret,
|
|
6
6
|
runLogin
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-CILTKMZW.js";
|
|
8
|
+
import "./chunk-6EGQI6HJ.js";
|
|
9
|
+
import "./chunk-AK6TWKET.js";
|
|
10
|
+
import "./chunk-EOOWV6C6.js";
|
|
11
11
|
export {
|
|
12
12
|
defaultLoginDeps,
|
|
13
13
|
readLine,
|
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CATALOG,
|
|
4
4
|
fillTemplate
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XQVEAF3F.js";
|
|
6
6
|
import {
|
|
7
7
|
authorizeMcpServer,
|
|
8
8
|
clearTokens
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6EGQI6HJ.js";
|
|
10
10
|
import {
|
|
11
11
|
addGlobalServer,
|
|
12
12
|
globalMcpPath,
|
|
13
13
|
readMcpFile,
|
|
14
14
|
removeGlobalServer
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WTCWBY2D.js";
|
|
16
16
|
import {
|
|
17
17
|
bccliHome
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AK6TWKET.js";
|
|
19
19
|
import {
|
|
20
20
|
t
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-EOOWV6C6.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-
|
|
28
|
+
const { runMcpServe } = await import("./serve-A764QS5U.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-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-2Y6TH4MA.js";
|
|
5
|
+
import "./chunk-27REMLDV.js";
|
|
6
|
+
import "./chunk-BBZLRWPR.js";
|
|
7
|
+
import "./chunk-XSUFHD67.js";
|
|
8
8
|
import {
|
|
9
9
|
loadConfig,
|
|
10
10
|
resolveModel
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AK6TWKET.js";
|
|
12
12
|
import {
|
|
13
13
|
t
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EOOWV6C6.js";
|
|
15
15
|
|
|
16
16
|
// src/modelsCli.ts
|
|
17
17
|
async function runModelsCommand(args, deps) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
bccliHome,
|
|
4
4
|
globalConfigPath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AK6TWKET.js";
|
|
6
6
|
import {
|
|
7
7
|
t
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EOOWV6C6.js";
|
|
9
9
|
|
|
10
10
|
// src/pluginsCli.ts
|
|
11
11
|
import { existsSync, mkdirSync, readFileSync, statSync, writeFileSync } from "fs";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
addProviderKey,
|
|
4
|
+
runProviderCommand
|
|
5
|
+
} from "./chunk-QZKB6VTU.js";
|
|
6
|
+
import "./chunk-2Y6TH4MA.js";
|
|
7
|
+
import "./chunk-27REMLDV.js";
|
|
8
|
+
import "./chunk-BBZLRWPR.js";
|
|
9
|
+
import "./chunk-XSUFHD67.js";
|
|
10
|
+
import "./chunk-AK6TWKET.js";
|
|
11
|
+
import "./chunk-EOOWV6C6.js";
|
|
12
|
+
export {
|
|
13
|
+
addProviderKey,
|
|
14
|
+
runProviderCommand
|
|
15
|
+
};
|
package/dist/sdk.js
CHANGED
|
@@ -69,6 +69,7 @@ var ID = {
|
|
|
69
69
|
"shift+tab switch mode": "shift+tab ganti mode",
|
|
70
70
|
"{n} tokens": "{n} token",
|
|
71
71
|
"\u273B Thinking": "\u273B Berpikir",
|
|
72
|
+
"\u273B Thinking \xB7 {n} lines": "\u273B Berpikir \xB7 {n} baris",
|
|
72
73
|
"click to toggle": "klik untuk buka/tutup",
|
|
73
74
|
"Model: {model} \xB7 reasoning: {level}": "Model: {model} \xB7 penalaran: {level}",
|
|
74
75
|
"No reasoning summary received yet; tool activity remains visible above.": "Belum ada ringkasan penalaran dari model; aktivitas tool tetap terlihat di atas.",
|
|
@@ -78,6 +79,7 @@ var ID = {
|
|
|
78
79
|
"\u2717 failed": "\u2717 gagal",
|
|
79
80
|
"\u2713 done": "\u2713 selesai",
|
|
80
81
|
"\u2026 {n} more lines ({bind})": "\u2026 {n} baris lagi ({bind})",
|
|
82
|
+
"\u2026 ({bind} to collapse)": "\u2026 ({bind} untuk menutup)",
|
|
81
83
|
"No sessions in this folder yet; starting a new one.": "Belum ada sesi di folder ini; memulai sesi baru.",
|
|
82
84
|
"Session number (enter = new): ": "Nomor sesi (enter = baru): ",
|
|
83
85
|
'This repo wants to run the MCP server "{name}" ({what}). Allow? [y/N] ': 'Repo ini ingin menjalankan server MCP "{name}" ({what}). Izinkan? [y/N] ',
|
|
@@ -1839,7 +1841,7 @@ function createProvider(options) {
|
|
|
1839
1841
|
const isBotConnectorCloud = /^https:\/\/api\.botconnector\.id\/v1\/?$/.test(baseURL) && apiKey?.startsWith("bc_live_");
|
|
1840
1842
|
if (isBotConnectorCloud) {
|
|
1841
1843
|
headers["x-botconnector-client"] = "bccli";
|
|
1842
|
-
headers["x-botconnector-client-version"] = "0.4.
|
|
1844
|
+
headers["x-botconnector-client-version"] = "0.4.6";
|
|
1843
1845
|
}
|
|
1844
1846
|
const useNativeResponses = isBotConnectorCloud && providerId === "bc-cloud" && model === "gpt-6-luna";
|
|
1845
1847
|
const useResponsesWebSocket = useNativeResponses && Boolean(apiKey) && (fetchOverride === void 0 || responsesWebSocketFactory !== void 0);
|
|
@@ -1870,7 +1872,7 @@ function createProvider(options) {
|
|
|
1870
1872
|
baseURL: baseURL.replace(/\/+$/, ""),
|
|
1871
1873
|
defaultHeaders: {
|
|
1872
1874
|
"x-botconnector-client": "bccli",
|
|
1873
|
-
"x-botconnector-client-version": "0.4.
|
|
1875
|
+
"x-botconnector-client-version": "0.4.6"
|
|
1874
1876
|
}
|
|
1875
1877
|
});
|
|
1876
1878
|
lunaWs = responsesWebSocketFactory ? responsesWebSocketFactory(client) : new ResponsesWS(client, { reconnect: null });
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
createFetchTool,
|
|
4
4
|
createWebSearchTool,
|
|
5
5
|
isPrivateHost
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-O5ATYRUP.js";
|
|
7
7
|
import "./chunk-PSO7R5AD.js";
|
|
8
8
|
import {
|
|
9
9
|
loadConfig,
|
|
10
10
|
readCredentials
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AK6TWKET.js";
|
|
12
12
|
import {
|
|
13
13
|
t
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EOOWV6C6.js";
|
|
15
15
|
|
|
16
16
|
// src/mcpServer/serve.ts
|
|
17
17
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
createRuntime
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AN7SNPFA.js";
|
|
5
5
|
import "./chunk-OK2USAXX.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-NSARPM5C.js";
|
|
7
|
+
import "./chunk-O5ATYRUP.js";
|
|
8
8
|
import "./chunk-PSO7R5AD.js";
|
|
9
9
|
import {
|
|
10
10
|
VERSION
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZGIK5INC.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-
|
|
20
|
+
} from "./chunk-3JQZ2IKV.js";
|
|
21
21
|
import "./chunk-WFZKJY3R.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-QZKB6VTU.js";
|
|
23
23
|
import {
|
|
24
24
|
listAllModels
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-2Y6TH4MA.js";
|
|
26
|
+
import "./chunk-27REMLDV.js";
|
|
27
|
+
import "./chunk-6EGQI6HJ.js";
|
|
28
28
|
import {
|
|
29
29
|
Session
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-BL2KOEXJ.js";
|
|
31
|
+
import "./chunk-BBZLRWPR.js";
|
|
32
|
+
import "./chunk-XSUFHD67.js";
|
|
33
|
+
import "./chunk-WTCWBY2D.js";
|
|
34
34
|
import {
|
|
35
35
|
bccliHome,
|
|
36
36
|
loadConfig
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-AK6TWKET.js";
|
|
38
|
+
import "./chunk-EOOWV6C6.js";
|
|
39
39
|
|
|
40
40
|
// src/serve.ts
|
|
41
41
|
import { randomBytes } from "crypto";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
createRuntime,
|
|
4
|
+
lunaPtcAutoEnabled
|
|
5
|
+
} from "./chunk-AN7SNPFA.js";
|
|
6
|
+
import "./chunk-OK2USAXX.js";
|
|
7
|
+
import "./chunk-NSARPM5C.js";
|
|
8
|
+
import "./chunk-O5ATYRUP.js";
|
|
9
|
+
import "./chunk-PSO7R5AD.js";
|
|
10
|
+
import "./chunk-WFZKJY3R.js";
|
|
11
|
+
import "./chunk-QZKB6VTU.js";
|
|
12
|
+
import "./chunk-2Y6TH4MA.js";
|
|
13
|
+
import "./chunk-27REMLDV.js";
|
|
14
|
+
import "./chunk-6EGQI6HJ.js";
|
|
15
|
+
import "./chunk-BL2KOEXJ.js";
|
|
16
|
+
import "./chunk-BBZLRWPR.js";
|
|
17
|
+
import "./chunk-XSUFHD67.js";
|
|
18
|
+
import "./chunk-WTCWBY2D.js";
|
|
19
|
+
import "./chunk-AK6TWKET.js";
|
|
20
|
+
import "./chunk-EOOWV6C6.js";
|
|
21
|
+
export {
|
|
22
|
+
createRuntime,
|
|
23
|
+
lunaPtcAutoEnabled
|
|
24
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
Session
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-BL2KOEXJ.js";
|
|
5
|
+
import "./chunk-BBZLRWPR.js";
|
|
6
|
+
import "./chunk-XSUFHD67.js";
|
|
7
7
|
import {
|
|
8
8
|
t
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EOOWV6C6.js";
|
|
10
10
|
|
|
11
11
|
// src/transferCli.ts
|
|
12
12
|
import { copyFileSync, existsSync, mkdirSync, readdirSync, readFileSync, statSync, writeFileSync } from "fs";
|
package/dist/ui/complete.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare function listFileSuggestions(value: string, cwd: string, limit?: number): string[];
|
|
2
|
+
export declare function applyFileSuggestion(value: string, pick: string): string;
|
|
1
3
|
export declare function completeFile(value: string, cwd: string): string;
|
|
2
4
|
/**
|
|
3
5
|
* Pre-attaches small non-secret project files referenced via `@path/to/file` in a user prompt,
|
|
@@ -15,6 +15,8 @@ export declare function clickedThinking(click: MousePress, cursorRow: number, ro
|
|
|
15
15
|
width: number;
|
|
16
16
|
height: number;
|
|
17
17
|
}): boolean;
|
|
18
|
+
/** Parse SGR or Urxvt mouse wheel / 2-finger touchpad vertical scroll events after Ink strips ESC. */
|
|
19
|
+
export declare function parseMouseWheel(input: string): 'up' | 'down' | undefined;
|
|
18
20
|
/** Ink useInput receives these control reports too; they must not enter the prompt. */
|
|
19
21
|
export declare function isMouseControlInput(input: string): boolean;
|
|
20
22
|
/** Tokenize split/coalesced Windows ConPTY SGR presses and cursor reports. */
|