@botconnector/bccli 0.4.5 → 0.4.7
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-M22V2CHD.js → acp-XGG33CZJ.js} +2 -2
- package/dist/{args-TFKRCKTY.js → args-SQRIBI2Q.js} +4 -4
- package/dist/{chunk-27REMLDV.js → chunk-34Z6BXTO.js} +1 -1
- package/dist/{chunk-6EGQI6HJ.js → chunk-3MCGYPYI.js} +1 -1
- package/dist/{chunk-3JQZ2IKV.js → chunk-3WYR6KVQ.js} +3 -3
- package/dist/{chunk-D2C6EOOS.js → chunk-42VCJJTW.js} +7 -7
- package/dist/{chunk-WTCWBY2D.js → chunk-54PFT7F5.js} +2 -2
- package/dist/{chunk-JVQZWTPV.js → chunk-6GC5I2RK.js} +4 -4
- package/dist/{chunk-NSARPM5C.js → chunk-CSIQDFEF.js} +1 -1
- package/dist/{chunk-XSUFHD67.js → chunk-EAR2C6TS.js} +1 -1
- package/dist/{chunk-LHLNK7HP.js → chunk-EG7GJBSV.js} +4 -4
- package/dist/{chunk-XQVEAF3F.js → chunk-HR7T3BY2.js} +2 -2
- package/dist/{chunk-BR63GX6T.js → chunk-L5FKXSFK.js} +4 -4
- package/dist/{chunk-D7GAZKXT.js → chunk-SE6SM2EI.js} +3 -3
- package/dist/{chunk-AK6TWKET.js → chunk-T5Z3FCT2.js} +2 -2
- package/dist/{chunk-FW6W5MN7.js → chunk-TCRAN6ZO.js} +11 -11
- package/dist/{chunk-DZPBWYTD.js → chunk-V4LPDP3Z.js} +1 -1
- package/dist/{chunk-O5ATYRUP.js → chunk-WSSJH765.js} +1 -1
- package/dist/{chunk-EOOWV6C6.js → chunk-XCVYR5BK.js} +1 -0
- package/dist/{chunk-YNI4GHBI.js → chunk-Y57FCAGM.js} +1 -1
- package/dist/cli.js +38 -38
- package/dist/{completion-JCBMQKNQ.js → completion-FETH4OGC.js} +1 -1
- package/dist/{config-2MR6V7U7.js → config-BUSQGUWY.js} +2 -2
- package/dist/{config-JCI7NAVY.js → config-PVEZPRMH.js} +3 -3
- package/dist/{ghBotCli-T7AWXAZ2.js → ghBotCli-X6HEOQMZ.js} +14 -14
- package/dist/{integrationCli-KOCF73GG.js → integrationCli-552UYCXJ.js} +2 -2
- package/dist/{login-OIYX4D3X.js → login-SWK74XO5.js} +4 -4
- package/dist/{mcpCli-IBC3WCHG.js → mcpCli-DH4R5B7F.js} +6 -6
- package/dist/{modelsCli-XZLHNWKL.js → modelsCli-4YEUPYBF.js} +6 -6
- package/dist/{oauthLogin-TUXZLIQN.js → oauthLogin-NR22NWEV.js} +1 -1
- package/dist/{pluginsCli-X7NZRU7X.js → pluginsCli-CIW35MNB.js} +2 -2
- package/dist/{prCli-GPDLWYWC.js → prCli-6FCI36AJ.js} +1 -1
- package/dist/providerCli-N64TSYMT.js +15 -0
- package/dist/sdk.js +4 -3
- package/dist/{serve-TJCT3TLE.js → serve-DAC2JGEH.js} +15 -15
- package/dist/{serve-A764QS5U.js → serve-N2TUTZGD.js} +3 -3
- package/dist/session-QZAXEQRE.js +12 -0
- package/dist/setup-2KMWTHDZ.js +24 -0
- package/dist/{statsCli-FKGON32O.js → statsCli-FR7GOKWO.js} +1 -1
- package/dist/{transferCli-HA5IKJKF.js → transferCli-ZY7WIIPY.js} +4 -4
- package/dist/ui/complete.d.ts +2 -0
- package/dist/ui/thinkingMouse.d.ts +4 -0
- package/dist/{ui-SMY7QSFF.js → ui-A7DY4X4E.js} +538 -153
- package/dist/{update-BUFIPEKY.js → update-36PG64GC.js} +2 -2
- package/package.json +1 -1
- package/dist/providerCli-WCFA36S4.js +0 -15
- package/dist/session-ML2DPI7P.js +0 -12
- package/dist/setup-QYCA7ATT.js +0 -24
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
loadConfig,
|
|
6
6
|
readCredentials,
|
|
7
7
|
resolveModel
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-T5Z3FCT2.js";
|
|
9
9
|
import {
|
|
10
10
|
t
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XCVYR5BK.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-42VCJJTW.js";
|
|
8
|
+
import "./chunk-3MCGYPYI.js";
|
|
9
|
+
import "./chunk-T5Z3FCT2.js";
|
|
10
|
+
import "./chunk-XCVYR5BK.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-HR7T3BY2.js";
|
|
6
6
|
import {
|
|
7
7
|
authorizeMcpServer,
|
|
8
8
|
clearTokens
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3MCGYPYI.js";
|
|
10
10
|
import {
|
|
11
11
|
addGlobalServer,
|
|
12
12
|
globalMcpPath,
|
|
13
13
|
readMcpFile,
|
|
14
14
|
removeGlobalServer
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-54PFT7F5.js";
|
|
16
16
|
import {
|
|
17
17
|
bccliHome
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-T5Z3FCT2.js";
|
|
19
19
|
import {
|
|
20
20
|
t
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XCVYR5BK.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-N2TUTZGD.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-6GC5I2RK.js";
|
|
5
|
+
import "./chunk-34Z6BXTO.js";
|
|
6
|
+
import "./chunk-L5FKXSFK.js";
|
|
7
|
+
import "./chunk-EAR2C6TS.js";
|
|
8
8
|
import {
|
|
9
9
|
loadConfig,
|
|
10
10
|
resolveModel
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-T5Z3FCT2.js";
|
|
12
12
|
import {
|
|
13
13
|
t
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XCVYR5BK.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-T5Z3FCT2.js";
|
|
6
6
|
import {
|
|
7
7
|
t
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XCVYR5BK.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-EG7GJBSV.js";
|
|
6
|
+
import "./chunk-6GC5I2RK.js";
|
|
7
|
+
import "./chunk-34Z6BXTO.js";
|
|
8
|
+
import "./chunk-L5FKXSFK.js";
|
|
9
|
+
import "./chunk-EAR2C6TS.js";
|
|
10
|
+
import "./chunk-T5Z3FCT2.js";
|
|
11
|
+
import "./chunk-XCVYR5BK.js";
|
|
12
|
+
export {
|
|
13
|
+
addProviderKey,
|
|
14
|
+
runProviderCommand
|
|
15
|
+
};
|
package/dist/sdk.js
CHANGED
|
@@ -120,6 +120,7 @@ var ID = {
|
|
|
120
120
|
"\u2713 Connection {provider} ({n} models)": "\u2713 Koneksi {provider} ({n} model)",
|
|
121
121
|
"\u2717 Connection {provider}: {error}": "\u2717 Koneksi {provider}: {error}",
|
|
122
122
|
"list of commands and shortcuts": "daftar perintah dan pintasan",
|
|
123
|
+
"show/hide the model\u2019s thinking": "buka/tutup thinking model",
|
|
123
124
|
"change model": "ganti model",
|
|
124
125
|
"set reasoning: auto/off/low/medium/high/max": "atur reasoning: auto/off/low/medium/high/max",
|
|
125
126
|
"add/choose an AI provider": "tambah/pilih provider AI",
|
|
@@ -700,7 +701,7 @@ function loadConfig(cwd, env = process.env) {
|
|
|
700
701
|
permissionMode: global.permissionMode ?? DEFAULT_CONFIG.permissionMode,
|
|
701
702
|
reasoning: global.reasoning ?? DEFAULT_CONFIG.reasoning,
|
|
702
703
|
thinkingVisible: global.thinkingVisible === true,
|
|
703
|
-
thinkingClickCollapse: global.thinkingClickCollapse
|
|
704
|
+
thinkingClickCollapse: global.thinkingClickCollapse !== false,
|
|
704
705
|
sessionRetentionDays: resolvedSessionRetentionDays(global),
|
|
705
706
|
maxSteps: resolvedMaxSteps(global),
|
|
706
707
|
hooks: global.hooks,
|
|
@@ -1841,7 +1842,7 @@ function createProvider(options) {
|
|
|
1841
1842
|
const isBotConnectorCloud = /^https:\/\/api\.botconnector\.id\/v1\/?$/.test(baseURL) && apiKey?.startsWith("bc_live_");
|
|
1842
1843
|
if (isBotConnectorCloud) {
|
|
1843
1844
|
headers["x-botconnector-client"] = "bccli";
|
|
1844
|
-
headers["x-botconnector-client-version"] = "0.4.
|
|
1845
|
+
headers["x-botconnector-client-version"] = "0.4.7";
|
|
1845
1846
|
}
|
|
1846
1847
|
const useNativeResponses = isBotConnectorCloud && providerId === "bc-cloud" && model === "gpt-6-luna";
|
|
1847
1848
|
const useResponsesWebSocket = useNativeResponses && Boolean(apiKey) && (fetchOverride === void 0 || responsesWebSocketFactory !== void 0);
|
|
@@ -1872,7 +1873,7 @@ function createProvider(options) {
|
|
|
1872
1873
|
baseURL: baseURL.replace(/\/+$/, ""),
|
|
1873
1874
|
defaultHeaders: {
|
|
1874
1875
|
"x-botconnector-client": "bccli",
|
|
1875
|
-
"x-botconnector-client-version": "0.4.
|
|
1876
|
+
"x-botconnector-client-version": "0.4.7"
|
|
1876
1877
|
}
|
|
1877
1878
|
});
|
|
1878
1879
|
lunaWs = responsesWebSocketFactory ? responsesWebSocketFactory(client) : new ResponsesWS(client, { reconnect: null });
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
createRuntime
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TCRAN6ZO.js";
|
|
5
5
|
import "./chunk-OK2USAXX.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-CSIQDFEF.js";
|
|
7
|
+
import "./chunk-WSSJH765.js";
|
|
8
8
|
import "./chunk-PSO7R5AD.js";
|
|
9
9
|
import {
|
|
10
10
|
VERSION
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-V4LPDP3Z.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-3WYR6KVQ.js";
|
|
21
21
|
import "./chunk-WFZKJY3R.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-EG7GJBSV.js";
|
|
23
23
|
import {
|
|
24
24
|
listAllModels
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-6GC5I2RK.js";
|
|
26
|
+
import "./chunk-34Z6BXTO.js";
|
|
27
|
+
import "./chunk-3MCGYPYI.js";
|
|
28
28
|
import {
|
|
29
29
|
Session
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-Y57FCAGM.js";
|
|
31
|
+
import "./chunk-L5FKXSFK.js";
|
|
32
|
+
import "./chunk-EAR2C6TS.js";
|
|
33
|
+
import "./chunk-54PFT7F5.js";
|
|
34
34
|
import {
|
|
35
35
|
bccliHome,
|
|
36
36
|
loadConfig
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-T5Z3FCT2.js";
|
|
38
|
+
import "./chunk-XCVYR5BK.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-
|
|
6
|
+
} from "./chunk-WSSJH765.js";
|
|
7
7
|
import "./chunk-PSO7R5AD.js";
|
|
8
8
|
import {
|
|
9
9
|
loadConfig,
|
|
10
10
|
readCredentials
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-T5Z3FCT2.js";
|
|
12
12
|
import {
|
|
13
13
|
t
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XCVYR5BK.js";
|
|
15
15
|
|
|
16
16
|
// src/mcpServer/serve.ts
|
|
17
17
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
createRuntime,
|
|
4
|
+
lunaPtcAutoEnabled
|
|
5
|
+
} from "./chunk-TCRAN6ZO.js";
|
|
6
|
+
import "./chunk-OK2USAXX.js";
|
|
7
|
+
import "./chunk-CSIQDFEF.js";
|
|
8
|
+
import "./chunk-WSSJH765.js";
|
|
9
|
+
import "./chunk-PSO7R5AD.js";
|
|
10
|
+
import "./chunk-WFZKJY3R.js";
|
|
11
|
+
import "./chunk-EG7GJBSV.js";
|
|
12
|
+
import "./chunk-6GC5I2RK.js";
|
|
13
|
+
import "./chunk-34Z6BXTO.js";
|
|
14
|
+
import "./chunk-3MCGYPYI.js";
|
|
15
|
+
import "./chunk-Y57FCAGM.js";
|
|
16
|
+
import "./chunk-L5FKXSFK.js";
|
|
17
|
+
import "./chunk-EAR2C6TS.js";
|
|
18
|
+
import "./chunk-54PFT7F5.js";
|
|
19
|
+
import "./chunk-T5Z3FCT2.js";
|
|
20
|
+
import "./chunk-XCVYR5BK.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-Y57FCAGM.js";
|
|
5
|
+
import "./chunk-L5FKXSFK.js";
|
|
6
|
+
import "./chunk-EAR2C6TS.js";
|
|
7
7
|
import {
|
|
8
8
|
t
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XCVYR5BK.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,10 @@ 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;
|
|
20
|
+
/** Detect raw SGR/Urxvt wheel packets in a raw stdin data chunk (before ESC is stripped). */
|
|
21
|
+
export declare function hasMouseWheelSequence(chunk: string): boolean;
|
|
18
22
|
/** Ink useInput receives these control reports too; they must not enter the prompt. */
|
|
19
23
|
export declare function isMouseControlInput(input: string): boolean;
|
|
20
24
|
/** Tokenize split/coalesced Windows ConPTY SGR presses and cursor reports. */
|