@botconnector/bccli 0.4.2 → 0.4.4
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-UYC6APR5.js → acp-SWBX4TT6.js} +2 -2
- package/dist/{args-NRTZWWEV.js → args-UCLW7NID.js} +2 -2
- package/dist/{chunk-TIMSYZIR.js → chunk-5BVC3Y6B.js} +2 -2
- package/dist/{chunk-266SY3MC.js → chunk-CGBSE55G.js} +1 -1
- package/dist/{chunk-R72OV7RF.js → chunk-FI7RUJRX.js} +255 -71
- package/dist/{chunk-ZEPTUKNW.js → chunk-HBQ6OLQT.js} +76 -20
- package/dist/{chunk-5YJ3ZQVR.js → chunk-MSDK4IIJ.js} +9 -7
- package/dist/{chunk-IYR5PYA3.js → chunk-OZ5GHMTN.js} +1 -1
- package/dist/{chunk-KPTML72Q.js → chunk-QQJ2VVIW.js} +8 -0
- package/dist/{chunk-H7XJDKJY.js → chunk-RZF6A43N.js} +1 -1
- package/dist/{chunk-SVD4LHJC.js → chunk-SMTBYDNO.js} +1 -1
- package/dist/{chunk-6UO5GX55.js → chunk-TGGKACSE.js} +1 -1
- package/dist/{chunk-C64KM37J.js → chunk-YCHCHOMK.js} +5 -1
- package/dist/cli.js +22 -22
- package/dist/{ghBotCli-TSLRORJJ.js → ghBotCli-ZVWU7EMG.js} +8 -8
- package/dist/{login-RYESFZG6.js → login-QPUWIC76.js} +1 -1
- package/dist/lsp.d.ts +23 -0
- package/dist/{modelsCli-OP7CDZC7.js → modelsCli-SZK4E2BY.js} +3 -3
- package/dist/{providerCli-5OZI2GQQ.js → providerCli-PKI7B2SC.js} +4 -4
- package/dist/sdk.js +341 -92
- package/dist/{serve-4J7HA4JO.js → serve-L3SAIAAI.js} +9 -9
- package/dist/{session-YQXCCKXI.js → session-ASXO6GXR.js} +3 -3
- package/dist/{setup-S4AJT6XE.js → setup-F7FZ66OS.js} +7 -7
- package/dist/tools/diagnostics.d.ts +8 -0
- package/dist/tools/sandbox.d.ts +3 -0
- package/dist/{transferCli-R2KEIWQR.js → transferCli-HKGAWZ3Q.js} +3 -3
- package/dist/{ui-36ZEK65V.js → ui-NPA52YJH.js} +45 -9
- package/dist/{update-FSS7X5WV.js → update-AFIM34US.js} +1 -1
- package/package.json +1 -1
|
@@ -21,6 +21,14 @@ function reasoningCapability(providerId) {
|
|
|
21
21
|
case "bc-cloud":
|
|
22
22
|
return { levels: BOTCONNECTOR_LEVELS, parameter: "reasoning_effort" };
|
|
23
23
|
case "openai":
|
|
24
|
+
case "gmi":
|
|
25
|
+
case "gmicloud":
|
|
26
|
+
case "vertex-maas":
|
|
27
|
+
case "deepseek":
|
|
28
|
+
case "groq":
|
|
29
|
+
case "together":
|
|
30
|
+
case "fireworks":
|
|
31
|
+
case "mistral":
|
|
24
32
|
return { levels: OPENAI_LEVELS, parameter: "reasoning_effort" };
|
|
25
33
|
case "openrouter":
|
|
26
34
|
return { levels: ["auto", "low", "medium", "high"], parameter: "reasoning" };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runCommand,
|
|
4
4
|
runHooks
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HBQ6OLQT.js";
|
|
6
6
|
import {
|
|
7
7
|
ConfigError
|
|
8
8
|
} from "./chunk-RX4UQX43.js";
|
|
@@ -72,8 +72,12 @@ async function runPrint(rt, prompt, io = { out: process.stdout, err: process.std
|
|
|
72
72
|
wroteText = true;
|
|
73
73
|
} else {
|
|
74
74
|
result += event.delta;
|
|
75
|
+
if (format === "stream-json") emit({ type: "text_delta", delta: event.delta });
|
|
75
76
|
}
|
|
76
77
|
break;
|
|
78
|
+
case "thinking":
|
|
79
|
+
if (format === "stream-json") emit({ type: "thinking_delta", delta: event.delta });
|
|
80
|
+
break;
|
|
77
81
|
case "textReplace":
|
|
78
82
|
result = event.text;
|
|
79
83
|
break;
|
package/dist/cli.js
CHANGED
|
@@ -3,37 +3,37 @@ import {
|
|
|
3
3
|
resolvePrintPrompt,
|
|
4
4
|
resolveWorktree,
|
|
5
5
|
runPrint
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YCHCHOMK.js";
|
|
7
7
|
import {
|
|
8
8
|
createRuntime
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FI7RUJRX.js";
|
|
10
10
|
import "./chunk-OK2USAXX.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-HBQ6OLQT.js";
|
|
12
12
|
import "./chunk-JXM6REER.js";
|
|
13
13
|
import "./chunk-PSO7R5AD.js";
|
|
14
14
|
import {
|
|
15
15
|
VERSION
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CGBSE55G.js";
|
|
17
17
|
import {
|
|
18
18
|
helpText,
|
|
19
19
|
parseCliArgs
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TGGKACSE.js";
|
|
21
21
|
import "./chunk-WFZKJY3R.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-RZF6A43N.js";
|
|
23
|
+
import "./chunk-OZ5GHMTN.js";
|
|
24
24
|
import {
|
|
25
25
|
readGlobalConfigFile
|
|
26
26
|
} from "./chunk-HQW4BROS.js";
|
|
27
27
|
import {
|
|
28
28
|
defaultLoginDeps,
|
|
29
29
|
runLogin
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-5BVC3Y6B.js";
|
|
31
31
|
import "./chunk-3I5BW3ZT.js";
|
|
32
32
|
import {
|
|
33
33
|
pruneSessions
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-SMTBYDNO.js";
|
|
35
|
+
import "./chunk-MSDK4IIJ.js";
|
|
36
|
+
import "./chunk-QQJ2VVIW.js";
|
|
37
37
|
import "./chunk-6M55UPES.js";
|
|
38
38
|
import {
|
|
39
39
|
ConfigError,
|
|
@@ -86,12 +86,12 @@ async function main() {
|
|
|
86
86
|
if (args.command === "login") return runLogin(args.loginProvider ?? "bc-cloud", cwd, args, defaultLoginDeps());
|
|
87
87
|
if (args.command === "mcp") {
|
|
88
88
|
const { runMcpCommand } = await import("./mcpCli-SETTCL3K.js");
|
|
89
|
-
const { readSecret } = await import("./login-
|
|
89
|
+
const { readSecret } = await import("./login-QPUWIC76.js");
|
|
90
90
|
return runMcpCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), readSecret });
|
|
91
91
|
}
|
|
92
92
|
if (args.command === "provider") {
|
|
93
|
-
const { runProviderCommand } = await import("./providerCli-
|
|
94
|
-
const { readSecret } = await import("./login-
|
|
93
|
+
const { runProviderCommand } = await import("./providerCli-PKI7B2SC.js");
|
|
94
|
+
const { readSecret } = await import("./login-QPUWIC76.js");
|
|
95
95
|
return runProviderCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), readSecret });
|
|
96
96
|
}
|
|
97
97
|
if (args.command === "connect" || args.command === "disconnect" || args.command === "integrations") {
|
|
@@ -105,20 +105,20 @@ async function main() {
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
if (args.command === "models") {
|
|
108
|
-
const { runModelsCommand } = await import("./modelsCli-
|
|
108
|
+
const { runModelsCommand } = await import("./modelsCli-SZK4E2BY.js");
|
|
109
109
|
return runModelsCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), fetch: globalThis.fetch });
|
|
110
110
|
}
|
|
111
111
|
if (args.command === "update") {
|
|
112
|
-
const { runUpdateCommand } = await import("./update-
|
|
112
|
+
const { runUpdateCommand } = await import("./update-AFIM34US.js");
|
|
113
113
|
return runUpdateCommand({ env: process.env });
|
|
114
114
|
}
|
|
115
115
|
if (args.command === "acp") {
|
|
116
|
-
const { runtimeAgent, runAcp } = await import("./acp-
|
|
116
|
+
const { runtimeAgent, runAcp } = await import("./acp-SWBX4TT6.js");
|
|
117
117
|
await runAcp(process.stdin, process.stdout, { cwd, newAgent: (c) => runtimeAgent(c, args.allowAll) });
|
|
118
118
|
return 0;
|
|
119
119
|
}
|
|
120
120
|
if (args.command === "serve") {
|
|
121
|
-
const { serveBanner, startServe } = await import("./serve-
|
|
121
|
+
const { serveBanner, startServe } = await import("./serve-L3SAIAAI.js");
|
|
122
122
|
const handle = await startServe({ port: args.port, host: args.host, token: args.token, cwd, env: process.env });
|
|
123
123
|
process.stderr.write(serveBanner(handle, { token: args.token }));
|
|
124
124
|
await new Promise((resolve) => {
|
|
@@ -146,7 +146,7 @@ async function main() {
|
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
if (args.command === "gh-bot") {
|
|
149
|
-
const { runGhBotCommand } = await import("./ghBotCli-
|
|
149
|
+
const { runGhBotCommand } = await import("./ghBotCli-ZVWU7EMG.js");
|
|
150
150
|
return runGhBotCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s) });
|
|
151
151
|
}
|
|
152
152
|
if (args.command === "completion") {
|
|
@@ -162,7 +162,7 @@ async function main() {
|
|
|
162
162
|
);
|
|
163
163
|
}
|
|
164
164
|
if (args.command === "export" || args.command === "import") {
|
|
165
|
-
const { runExportCommand, runImportCommand } = await import("./transferCli-
|
|
165
|
+
const { runExportCommand, runImportCommand } = await import("./transferCli-HKGAWZ3Q.js");
|
|
166
166
|
const { bccliHome } = await import("./config-LAINORU5.js");
|
|
167
167
|
const deps = { subArgs: args.subArgs, home: bccliHome(process.env), cwd };
|
|
168
168
|
const io = { out: (s) => console.log(s), err: (s) => console.error(s) };
|
|
@@ -215,13 +215,13 @@ async function main() {
|
|
|
215
215
|
let updateMessage;
|
|
216
216
|
if (rt.config.updateCheck !== "off" && !process.env.BCCLI_NO_UPDATE_CHECK) {
|
|
217
217
|
try {
|
|
218
|
-
const { checkForUpdate } = await import("./update-
|
|
218
|
+
const { checkForUpdate } = await import("./update-AFIM34US.js");
|
|
219
219
|
const update = await checkForUpdate({ home: rt.home, fetch: globalThis.fetch, now: /* @__PURE__ */ new Date() });
|
|
220
220
|
updateMessage = update;
|
|
221
221
|
} catch {
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
const { startInteractive } = await import("./ui-
|
|
224
|
+
const { startInteractive } = await import("./ui-NPA52YJH.js");
|
|
225
225
|
return startInteractive(rt, { initialPrompt: args.prompt, resume: args.resume, version: VERSION, updateMessage });
|
|
226
226
|
}
|
|
227
227
|
main().then(
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
createRuntime
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FI7RUJRX.js";
|
|
5
5
|
import "./chunk-OK2USAXX.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-HBQ6OLQT.js";
|
|
7
7
|
import "./chunk-JXM6REER.js";
|
|
8
8
|
import "./chunk-PSO7R5AD.js";
|
|
9
9
|
import {
|
|
10
10
|
LOOPBACK_BIND,
|
|
11
11
|
parseCliArgs
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TGGKACSE.js";
|
|
13
13
|
import "./chunk-WFZKJY3R.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-RZF6A43N.js";
|
|
15
|
+
import "./chunk-OZ5GHMTN.js";
|
|
16
16
|
import "./chunk-HQW4BROS.js";
|
|
17
17
|
import "./chunk-3I5BW3ZT.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-SMTBYDNO.js";
|
|
19
|
+
import "./chunk-MSDK4IIJ.js";
|
|
20
|
+
import "./chunk-QQJ2VVIW.js";
|
|
21
21
|
import "./chunk-6M55UPES.js";
|
|
22
22
|
import {
|
|
23
23
|
ConfigError,
|
package/dist/lsp.d.ts
CHANGED
|
@@ -11,6 +11,19 @@ export interface LspDiagnostic {
|
|
|
11
11
|
severity: number;
|
|
12
12
|
message: string;
|
|
13
13
|
}
|
|
14
|
+
export interface LspLocation {
|
|
15
|
+
uri: string;
|
|
16
|
+
path: string;
|
|
17
|
+
line: number;
|
|
18
|
+
character: number;
|
|
19
|
+
}
|
|
20
|
+
export interface WarmLspClient {
|
|
21
|
+
diagnostics(file: string, timeoutMs?: number): Promise<LspDiagnostic[]>;
|
|
22
|
+
hover(file: string, line: number, character: number, timeoutMs?: number): Promise<string>;
|
|
23
|
+
definition(file: string, line: number, character: number, timeoutMs?: number): Promise<LspLocation[]>;
|
|
24
|
+
references(file: string, line: number, character: number, timeoutMs?: number): Promise<LspLocation[]>;
|
|
25
|
+
close(): Promise<void>;
|
|
26
|
+
}
|
|
14
27
|
interface LspRawDiagnostic {
|
|
15
28
|
range?: {
|
|
16
29
|
start?: {
|
|
@@ -47,4 +60,14 @@ export declare function getDiagnostics(opts: {
|
|
|
47
60
|
timeoutMs?: number;
|
|
48
61
|
signal?: AbortSignal;
|
|
49
62
|
}): Promise<LspDiagnostic[]>;
|
|
63
|
+
/**
|
|
64
|
+
* Persistent warm LSP client: spawns the language server once, sends `didOpen` on first
|
|
65
|
+
* touch of a file and `didChange` on subsequent touches, and serves `diagnostics`,
|
|
66
|
+
* `hover`, `definition`, and `references` over the same warm process.
|
|
67
|
+
*/
|
|
68
|
+
export declare function createWarmLspClient(opts: {
|
|
69
|
+
server: LspServer;
|
|
70
|
+
cwd: string;
|
|
71
|
+
timeoutMs?: number;
|
|
72
|
+
}): WarmLspClient;
|
|
50
73
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
listAllModels
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OZ5GHMTN.js";
|
|
5
5
|
import "./chunk-HQW4BROS.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-MSDK4IIJ.js";
|
|
7
|
+
import "./chunk-QQJ2VVIW.js";
|
|
8
8
|
import {
|
|
9
9
|
loadConfig,
|
|
10
10
|
resolveModel
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
addProviderKey,
|
|
4
4
|
runProviderCommand
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-RZF6A43N.js";
|
|
6
|
+
import "./chunk-OZ5GHMTN.js";
|
|
7
7
|
import "./chunk-HQW4BROS.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-MSDK4IIJ.js";
|
|
9
|
+
import "./chunk-QQJ2VVIW.js";
|
|
10
10
|
import "./chunk-RX4UQX43.js";
|
|
11
11
|
import "./chunk-3WHI4LN3.js";
|
|
12
12
|
export {
|