@botconnector/bccli 0.4.0-beta.47 → 0.4.0-beta.49
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-QMD7IKKI.js → acp-HMH7DCSE.js} +2 -2
- package/dist/{args-6T55MFPG.js → args-BTFKKLNQ.js} +2 -2
- package/dist/{chunk-SVGARF5B.js → chunk-67ORWLS2.js} +1 -1
- package/dist/{chunk-Y7F5CZ4D.js → chunk-6AW3CPSO.js} +1 -1
- package/dist/{chunk-TSZFE2RV.js → chunk-GKNLIIRL.js} +2 -1
- package/dist/{chunk-QGTAINBU.js → chunk-GSZZA5KX.js} +3 -3
- package/dist/{chunk-KVXONGYT.js → chunk-H3S2WAQT.js} +3 -3
- package/dist/{chunk-3ETD6HSV.js → chunk-KH4HOMBL.js} +5 -5
- package/dist/{chunk-FNECQ433.js → chunk-MA4SBA6I.js} +1 -1
- package/dist/{chunk-226R2FBX.js → chunk-P6JWJ7D7.js} +1 -1
- package/dist/{chunk-SJTJHATK.js → chunk-TQA7WGVC.js} +1 -1
- package/dist/{chunk-5D35DOMD.js → chunk-VMWT4IRJ.js} +1 -1
- package/dist/{chunk-5YTZXUGU.js → chunk-WKUYO6HY.js} +2 -2
- package/dist/cli.js +27 -27
- package/dist/{config-TBRDIB7O.js → config-46ESEU4Z.js} +1 -1
- package/dist/{config-67RNJLDR.js → config-SUUUHLRX.js} +2 -2
- package/dist/{ghBotCli-4SXXJQGT.js → ghBotCli-2INYL4WH.js} +7 -7
- package/dist/{integrationCli-KTHSQC4Y.js → integrationCli-VKVDUAPU.js} +1 -1
- package/dist/{login-7T6M25XB.js → login-4JQLULNJ.js} +2 -2
- package/dist/{mcpCli-7RR5N7SX.js → mcpCli-TG6BMOE6.js} +4 -4
- package/dist/{modelsCli-GDE5RVD4.js → modelsCli-LOUEMOGH.js} +3 -3
- package/dist/{pluginsCli-UKMRWPVT.js → pluginsCli-QYL6C6IK.js} +1 -1
- package/dist/{providerCli-QVYG6PFQ.js → providerCli-S4233ZA5.js} +4 -4
- package/dist/sdk.js +2 -1
- package/dist/{serve-PAXJYBVI.js → serve-CG3HVPOA.js} +1 -1
- package/dist/{serve-SEGKQ5DM.js → serve-UR2LWREA.js} +8 -8
- package/dist/{setup-HRZW73ZW.js → setup-TRKD4EQ6.js} +6 -6
- package/dist/{ui-52SWT2AL.js → ui-XJ657AHE.js} +9 -10
- package/dist/{update-URVV6UXT.js → update-6LN4CCR2.js} +1 -1
- package/package.json +1 -1
|
@@ -97,8 +97,8 @@ function runAcp(input, output, opts) {
|
|
|
97
97
|
function runtimeAgent(cwd) {
|
|
98
98
|
return {
|
|
99
99
|
async run(text, onChunk, signal) {
|
|
100
|
-
const { parseCliArgs } = await import("./args-
|
|
101
|
-
const { createRuntime } = await import("./setup-
|
|
100
|
+
const { parseCliArgs } = await import("./args-BTFKKLNQ.js");
|
|
101
|
+
const { createRuntime } = await import("./setup-TRKD4EQ6.js");
|
|
102
102
|
const rt = createRuntime({ cwd, args: { ...parseCliArgs([]), allowAll: true } });
|
|
103
103
|
rt.agent.onEvent = (event) => {
|
|
104
104
|
if (event.type === "text") onChunk(event.delta);
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
helpText,
|
|
4
4
|
parseCliArgs
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VMWT4IRJ.js";
|
|
6
6
|
import "./chunk-GAFJEQTJ.js";
|
|
7
7
|
import "./chunk-YGITX6JU.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-GKNLIIRL.js";
|
|
9
9
|
import "./chunk-JRUQQRP6.js";
|
|
10
10
|
export {
|
|
11
11
|
helpText,
|
|
@@ -65,7 +65,7 @@ var ACCENT = "green";
|
|
|
65
65
|
// src/config.ts
|
|
66
66
|
var ConfigError = class extends Error {
|
|
67
67
|
};
|
|
68
|
-
var DEFAULT_MAX_STEPS =
|
|
68
|
+
var DEFAULT_MAX_STEPS = null;
|
|
69
69
|
var DEFAULT_CONFIG = {
|
|
70
70
|
model: "bc-cloud/glm-5.3-flash",
|
|
71
71
|
permissionMode: "default",
|
|
@@ -233,6 +233,7 @@ function loadConfig(cwd, env = process.env) {
|
|
|
233
233
|
permissionMode: global.permissionMode ?? DEFAULT_CONFIG.permissionMode,
|
|
234
234
|
reasoning: global.reasoning ?? DEFAULT_CONFIG.reasoning,
|
|
235
235
|
thinkingVisible: global.thinkingVisible === true,
|
|
236
|
+
thinkingClickCollapse: global.thinkingClickCollapse === true,
|
|
236
237
|
maxSteps: resolvedMaxSteps(global),
|
|
237
238
|
hooks: global.hooks,
|
|
238
239
|
vision: global.vision ?? DEFAULT_CONFIG.vision,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
removeCredential,
|
|
7
7
|
saveCredential
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GKNLIIRL.js";
|
|
9
9
|
import {
|
|
10
10
|
t
|
|
11
11
|
} from "./chunk-JRUQQRP6.js";
|
|
@@ -91,8 +91,8 @@ function defaultLoginDeps() {
|
|
|
91
91
|
fetch: globalThis.fetch,
|
|
92
92
|
// Wiring NYATA jalur lama: persis runLogin lama (provider add + prompt key).
|
|
93
93
|
legacyAdd: async (providerId, targetCwd) => {
|
|
94
|
-
const { runProviderCommand } = await import("./providerCli-
|
|
95
|
-
const { parseCliArgs: parse } = await import("./args-
|
|
94
|
+
const { runProviderCommand } = await import("./providerCli-S4233ZA5.js");
|
|
95
|
+
const { parseCliArgs: parse } = await import("./args-BTFKKLNQ.js");
|
|
96
96
|
return runProviderCommand(parse(["provider", "add", providerId]), {
|
|
97
97
|
env: process.env,
|
|
98
98
|
cwd: targetCwd,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
listAllModels
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WKUYO6HY.js";
|
|
5
5
|
import {
|
|
6
6
|
hasKey,
|
|
7
7
|
providerName,
|
|
8
8
|
removeGlobalProvider,
|
|
9
9
|
writeGlobalConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6AW3CPSO.js";
|
|
11
11
|
import {
|
|
12
12
|
PRESETS,
|
|
13
13
|
loadConfig,
|
|
14
14
|
saveCredential
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GKNLIIRL.js";
|
|
16
16
|
import {
|
|
17
17
|
t
|
|
18
18
|
} from "./chunk-JRUQQRP6.js";
|
|
@@ -33,13 +33,13 @@ import {
|
|
|
33
33
|
} from "./chunk-GAFJEQTJ.js";
|
|
34
34
|
import {
|
|
35
35
|
addProviderKey
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-H3S2WAQT.js";
|
|
37
37
|
import {
|
|
38
38
|
listAllModels
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-WKUYO6HY.js";
|
|
40
40
|
import {
|
|
41
41
|
providerName
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-6AW3CPSO.js";
|
|
43
43
|
import {
|
|
44
44
|
FileOAuthProvider,
|
|
45
45
|
hasStoredTokens
|
|
@@ -55,13 +55,13 @@ import {
|
|
|
55
55
|
} from "./chunk-EC67VAZX.js";
|
|
56
56
|
import {
|
|
57
57
|
expandEnvVars
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-TQA7WGVC.js";
|
|
59
59
|
import {
|
|
60
60
|
ConfigError,
|
|
61
61
|
bccliHome,
|
|
62
62
|
loadConfig,
|
|
63
63
|
resolveModel
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-GKNLIIRL.js";
|
|
65
65
|
import {
|
|
66
66
|
t
|
|
67
67
|
} from "./chunk-JRUQQRP6.js";
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
hasKey,
|
|
4
4
|
providerName
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6AW3CPSO.js";
|
|
6
6
|
import {
|
|
7
7
|
createProvider
|
|
8
8
|
} from "./chunk-EC67VAZX.js";
|
|
9
9
|
import {
|
|
10
10
|
PRESETS,
|
|
11
11
|
readCredentials
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GKNLIIRL.js";
|
|
13
13
|
import {
|
|
14
14
|
t
|
|
15
15
|
} from "./chunk-JRUQQRP6.js";
|
package/dist/cli.js
CHANGED
|
@@ -2,42 +2,42 @@
|
|
|
2
2
|
import {
|
|
3
3
|
resolveWorktree,
|
|
4
4
|
runPrint
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-67ORWLS2.js";
|
|
6
6
|
import {
|
|
7
7
|
createRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KH4HOMBL.js";
|
|
9
9
|
import "./chunk-QZKLZELZ.js";
|
|
10
10
|
import "./chunk-DAFJ7VOQ.js";
|
|
11
11
|
import "./chunk-R72DRWZ6.js";
|
|
12
12
|
import "./chunk-PSO7R5AD.js";
|
|
13
13
|
import {
|
|
14
14
|
VERSION
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-P6JWJ7D7.js";
|
|
16
16
|
import {
|
|
17
17
|
helpText,
|
|
18
18
|
parseCliArgs
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VMWT4IRJ.js";
|
|
20
20
|
import "./chunk-GAFJEQTJ.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-H3S2WAQT.js";
|
|
22
|
+
import "./chunk-WKUYO6HY.js";
|
|
23
23
|
import {
|
|
24
24
|
readGlobalConfigFile
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-6AW3CPSO.js";
|
|
26
26
|
import {
|
|
27
27
|
defaultLoginDeps,
|
|
28
28
|
runLogin
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GSZZA5KX.js";
|
|
30
30
|
import "./chunk-7F3IWBPQ.js";
|
|
31
31
|
import {
|
|
32
32
|
pruneSessions
|
|
33
33
|
} from "./chunk-HBR62GF2.js";
|
|
34
34
|
import "./chunk-EC67VAZX.js";
|
|
35
35
|
import "./chunk-YGITX6JU.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-TQA7WGVC.js";
|
|
37
37
|
import {
|
|
38
38
|
ConfigError,
|
|
39
39
|
setTheme
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-GKNLIIRL.js";
|
|
41
41
|
import {
|
|
42
42
|
resolveLanguage,
|
|
43
43
|
setLanguage,
|
|
@@ -84,17 +84,17 @@ async function main() {
|
|
|
84
84
|
if (args.worktree) cwd = (await resolveWorktree(cwd, args.worktree)).path;
|
|
85
85
|
if (args.command === "login") return runLogin(args.loginProvider ?? "bc-cloud", cwd, args, defaultLoginDeps());
|
|
86
86
|
if (args.command === "mcp") {
|
|
87
|
-
const { runMcpCommand } = await import("./mcpCli-
|
|
88
|
-
const { readSecret } = await import("./login-
|
|
87
|
+
const { runMcpCommand } = await import("./mcpCli-TG6BMOE6.js");
|
|
88
|
+
const { readSecret } = await import("./login-4JQLULNJ.js");
|
|
89
89
|
return runMcpCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), readSecret });
|
|
90
90
|
}
|
|
91
91
|
if (args.command === "provider") {
|
|
92
|
-
const { runProviderCommand } = await import("./providerCli-
|
|
93
|
-
const { readSecret } = await import("./login-
|
|
92
|
+
const { runProviderCommand } = await import("./providerCli-S4233ZA5.js");
|
|
93
|
+
const { readSecret } = await import("./login-4JQLULNJ.js");
|
|
94
94
|
return runProviderCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), readSecret });
|
|
95
95
|
}
|
|
96
96
|
if (args.command === "connect" || args.command === "disconnect" || args.command === "integrations") {
|
|
97
|
-
const { runIntegrationCommand } = await import("./integrationCli-
|
|
97
|
+
const { runIntegrationCommand } = await import("./integrationCli-VKVDUAPU.js");
|
|
98
98
|
return runIntegrationCommand(args, {
|
|
99
99
|
env: process.env,
|
|
100
100
|
cwd,
|
|
@@ -104,20 +104,20 @@ async function main() {
|
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
if (args.command === "models") {
|
|
107
|
-
const { runModelsCommand } = await import("./modelsCli-
|
|
107
|
+
const { runModelsCommand } = await import("./modelsCli-LOUEMOGH.js");
|
|
108
108
|
return runModelsCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), fetch: globalThis.fetch });
|
|
109
109
|
}
|
|
110
110
|
if (args.command === "update") {
|
|
111
|
-
const { runUpdateCommand } = await import("./update-
|
|
111
|
+
const { runUpdateCommand } = await import("./update-6LN4CCR2.js");
|
|
112
112
|
return runUpdateCommand({ env: process.env });
|
|
113
113
|
}
|
|
114
114
|
if (args.command === "acp") {
|
|
115
|
-
const { runtimeAgent, runAcp } = await import("./acp-
|
|
115
|
+
const { runtimeAgent, runAcp } = await import("./acp-HMH7DCSE.js");
|
|
116
116
|
await runAcp(process.stdin, process.stdout, { cwd, newAgent: (c) => runtimeAgent(c) });
|
|
117
117
|
return 0;
|
|
118
118
|
}
|
|
119
119
|
if (args.command === "serve") {
|
|
120
|
-
const { startServe } = await import("./serve-
|
|
120
|
+
const { startServe } = await import("./serve-UR2LWREA.js");
|
|
121
121
|
const handle = await startServe({ port: args.port, host: args.host, token: args.token, cwd, env: process.env });
|
|
122
122
|
process.stderr.write(`bccli serve ${handle.url} \u2014 Authorization: Bearer ${handle.token}
|
|
123
123
|
`);
|
|
@@ -131,8 +131,8 @@ async function main() {
|
|
|
131
131
|
return 0;
|
|
132
132
|
}
|
|
133
133
|
if (args.command === "plugins") {
|
|
134
|
-
const { runPluginsCommand } = await import("./pluginsCli-
|
|
135
|
-
const { readGlobalPlugins, updateGlobalConfig } = await import("./config-
|
|
134
|
+
const { runPluginsCommand } = await import("./pluginsCli-QYL6C6IK.js");
|
|
135
|
+
const { readGlobalPlugins, updateGlobalConfig } = await import("./config-46ESEU4Z.js");
|
|
136
136
|
const { runNpmSync } = await import("./npmRunner-LU43GM3W.js");
|
|
137
137
|
return runPluginsCommand(args, {
|
|
138
138
|
out: (s) => console.log(s),
|
|
@@ -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-2INYL4WH.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") {
|
|
@@ -155,7 +155,7 @@ async function main() {
|
|
|
155
155
|
}
|
|
156
156
|
if (args.command === "stats") {
|
|
157
157
|
const { runStatsCommand } = await import("./statsCli-ZHURTHK7.js");
|
|
158
|
-
const { bccliHome } = await import("./config-
|
|
158
|
+
const { bccliHome } = await import("./config-46ESEU4Z.js");
|
|
159
159
|
return runStatsCommand(
|
|
160
160
|
{ subArgs: args.subArgs, home: bccliHome(process.env), cwd, days: args.days, tools: args.tools, models: args.models, project: args.project },
|
|
161
161
|
{ out: (s) => console.log(s), err: (s) => console.error(s) }
|
|
@@ -163,7 +163,7 @@ async function main() {
|
|
|
163
163
|
}
|
|
164
164
|
if (args.command === "export" || args.command === "import") {
|
|
165
165
|
const { runExportCommand, runImportCommand } = await import("./transferCli-PQCFSIVT.js");
|
|
166
|
-
const { bccliHome } = await import("./config-
|
|
166
|
+
const { bccliHome } = await import("./config-46ESEU4Z.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) };
|
|
169
169
|
return args.command === "export" ? runExportCommand(deps, io) : runImportCommand(deps, io);
|
|
@@ -180,7 +180,7 @@ async function main() {
|
|
|
180
180
|
}
|
|
181
181
|
if (args.print) {
|
|
182
182
|
if (!args.prompt) throw new ConfigError(t('-p mode needs a task, e.g. bccli -p "explain this repo"'));
|
|
183
|
-
const { serversToStart } = await import("./config-
|
|
183
|
+
const { serversToStart } = await import("./config-SUUUHLRX.js");
|
|
184
184
|
const plan = serversToStart(rt.home, cwd);
|
|
185
185
|
for (const s of plan.needTrust) {
|
|
186
186
|
console.error(t('Project MCP server "{name}" skipped (not approved yet; run interactive bccli once to approve it).', { name: s.name }));
|
|
@@ -195,13 +195,13 @@ async function main() {
|
|
|
195
195
|
if (!process.stdin.isTTY) throw new ConfigError(t('Interactive mode needs a terminal. For scripts/CI use: bccli -p "task"'));
|
|
196
196
|
if (rt.config.updateCheck !== "off" && !process.env.BCCLI_NO_UPDATE_CHECK) {
|
|
197
197
|
try {
|
|
198
|
-
const { checkForUpdate } = await import("./update-
|
|
198
|
+
const { checkForUpdate } = await import("./update-6LN4CCR2.js");
|
|
199
199
|
const update = await checkForUpdate({ home: rt.home, fetch: globalThis.fetch, now: /* @__PURE__ */ new Date() });
|
|
200
200
|
if (update) console.error(update);
|
|
201
201
|
} catch {
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
const { startInteractive } = await import("./ui-
|
|
204
|
+
const { startInteractive } = await import("./ui-XJ657AHE.js");
|
|
205
205
|
return startInteractive(rt, { initialPrompt: args.prompt, resume: args.resume, version: VERSION });
|
|
206
206
|
}
|
|
207
207
|
main().then(
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
removeGlobalServer,
|
|
10
10
|
serversToStart,
|
|
11
11
|
setProjectTrust
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-TQA7WGVC.js";
|
|
13
|
+
import "./chunk-GKNLIIRL.js";
|
|
14
14
|
import "./chunk-JRUQQRP6.js";
|
|
15
15
|
export {
|
|
16
16
|
addGlobalServer,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
createRuntime
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KH4HOMBL.js";
|
|
5
5
|
import "./chunk-QZKLZELZ.js";
|
|
6
6
|
import "./chunk-DAFJ7VOQ.js";
|
|
7
7
|
import "./chunk-R72DRWZ6.js";
|
|
@@ -9,21 +9,21 @@ import "./chunk-PSO7R5AD.js";
|
|
|
9
9
|
import {
|
|
10
10
|
LOOPBACK_BIND,
|
|
11
11
|
parseCliArgs
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VMWT4IRJ.js";
|
|
13
13
|
import "./chunk-GAFJEQTJ.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-H3S2WAQT.js";
|
|
15
|
+
import "./chunk-WKUYO6HY.js";
|
|
16
|
+
import "./chunk-6AW3CPSO.js";
|
|
17
17
|
import "./chunk-7F3IWBPQ.js";
|
|
18
18
|
import "./chunk-HBR62GF2.js";
|
|
19
19
|
import "./chunk-EC67VAZX.js";
|
|
20
20
|
import "./chunk-YGITX6JU.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-TQA7WGVC.js";
|
|
22
22
|
import {
|
|
23
23
|
ConfigError,
|
|
24
24
|
globalConfigPath,
|
|
25
25
|
readJsonConfig
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GKNLIIRL.js";
|
|
27
27
|
import {
|
|
28
28
|
t
|
|
29
29
|
} from "./chunk-JRUQQRP6.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
readLine,
|
|
5
5
|
readSecret,
|
|
6
6
|
runLogin
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GSZZA5KX.js";
|
|
8
8
|
import "./chunk-7F3IWBPQ.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-GKNLIIRL.js";
|
|
10
10
|
import "./chunk-JRUQQRP6.js";
|
|
11
11
|
export {
|
|
12
12
|
defaultLoginDeps,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CATALOG,
|
|
4
4
|
fillTemplate
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MA4SBA6I.js";
|
|
6
6
|
import {
|
|
7
7
|
authorizeMcpServer,
|
|
8
8
|
clearTokens
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
globalMcpPath,
|
|
13
13
|
readMcpFile,
|
|
14
14
|
removeGlobalServer
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TQA7WGVC.js";
|
|
16
16
|
import {
|
|
17
17
|
bccliHome
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GKNLIIRL.js";
|
|
19
19
|
import {
|
|
20
20
|
t
|
|
21
21
|
} from "./chunk-JRUQQRP6.js";
|
|
@@ -25,7 +25,7 @@ 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-CG3HVPOA.js");
|
|
29
29
|
return runMcpServe(args, deps);
|
|
30
30
|
}
|
|
31
31
|
const installed = readMcpFile(globalMcpPath(home));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
listAllModels
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-WKUYO6HY.js";
|
|
5
|
+
import "./chunk-6AW3CPSO.js";
|
|
6
6
|
import "./chunk-EC67VAZX.js";
|
|
7
7
|
import "./chunk-YGITX6JU.js";
|
|
8
8
|
import {
|
|
9
9
|
loadConfig,
|
|
10
10
|
resolveModel
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GKNLIIRL.js";
|
|
12
12
|
import {
|
|
13
13
|
t
|
|
14
14
|
} from "./chunk-JRUQQRP6.js";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
addProviderKey,
|
|
4
4
|
runProviderCommand
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-H3S2WAQT.js";
|
|
6
|
+
import "./chunk-WKUYO6HY.js";
|
|
7
|
+
import "./chunk-6AW3CPSO.js";
|
|
8
8
|
import "./chunk-EC67VAZX.js";
|
|
9
9
|
import "./chunk-YGITX6JU.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-GKNLIIRL.js";
|
|
11
11
|
import "./chunk-JRUQQRP6.js";
|
|
12
12
|
export {
|
|
13
13
|
addProviderKey,
|
package/dist/sdk.js
CHANGED
|
@@ -517,7 +517,7 @@ function t(en, params) {
|
|
|
517
517
|
// src/config.ts
|
|
518
518
|
var ConfigError = class extends Error {
|
|
519
519
|
};
|
|
520
|
-
var DEFAULT_MAX_STEPS =
|
|
520
|
+
var DEFAULT_MAX_STEPS = null;
|
|
521
521
|
var DEFAULT_CONFIG = {
|
|
522
522
|
model: "bc-cloud/glm-5.3-flash",
|
|
523
523
|
permissionMode: "default",
|
|
@@ -685,6 +685,7 @@ function loadConfig(cwd, env = process.env) {
|
|
|
685
685
|
permissionMode: global.permissionMode ?? DEFAULT_CONFIG.permissionMode,
|
|
686
686
|
reasoning: global.reasoning ?? DEFAULT_CONFIG.reasoning,
|
|
687
687
|
thinkingVisible: global.thinkingVisible === true,
|
|
688
|
+
thinkingClickCollapse: global.thinkingClickCollapse === true,
|
|
688
689
|
maxSteps: resolvedMaxSteps(global),
|
|
689
690
|
hooks: global.hooks,
|
|
690
691
|
vision: global.vision ?? DEFAULT_CONFIG.vision,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
createRuntime
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KH4HOMBL.js";
|
|
5
5
|
import "./chunk-QZKLZELZ.js";
|
|
6
6
|
import "./chunk-DAFJ7VOQ.js";
|
|
7
7
|
import "./chunk-R72DRWZ6.js";
|
|
8
8
|
import "./chunk-PSO7R5AD.js";
|
|
9
9
|
import {
|
|
10
10
|
VERSION
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-P6JWJ7D7.js";
|
|
12
12
|
import {
|
|
13
13
|
LOOPBACK_BIND,
|
|
14
14
|
MAX_FRAME_BYTES,
|
|
@@ -17,24 +17,24 @@ import {
|
|
|
17
17
|
parseClientFrame,
|
|
18
18
|
randomToken,
|
|
19
19
|
trustFence
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VMWT4IRJ.js";
|
|
21
21
|
import "./chunk-GAFJEQTJ.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-H3S2WAQT.js";
|
|
23
23
|
import {
|
|
24
24
|
listAllModels
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-WKUYO6HY.js";
|
|
26
|
+
import "./chunk-6AW3CPSO.js";
|
|
27
27
|
import "./chunk-7F3IWBPQ.js";
|
|
28
28
|
import {
|
|
29
29
|
Session
|
|
30
30
|
} from "./chunk-HBR62GF2.js";
|
|
31
31
|
import "./chunk-EC67VAZX.js";
|
|
32
32
|
import "./chunk-YGITX6JU.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-TQA7WGVC.js";
|
|
34
34
|
import {
|
|
35
35
|
bccliHome,
|
|
36
36
|
loadConfig
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-GKNLIIRL.js";
|
|
38
38
|
import "./chunk-JRUQQRP6.js";
|
|
39
39
|
|
|
40
40
|
// src/serve.ts
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createRuntime,
|
|
4
4
|
lunaPtcAutoEnabled
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KH4HOMBL.js";
|
|
6
6
|
import "./chunk-QZKLZELZ.js";
|
|
7
7
|
import "./chunk-DAFJ7VOQ.js";
|
|
8
8
|
import "./chunk-R72DRWZ6.js";
|
|
9
9
|
import "./chunk-PSO7R5AD.js";
|
|
10
10
|
import "./chunk-GAFJEQTJ.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-H3S2WAQT.js";
|
|
12
|
+
import "./chunk-WKUYO6HY.js";
|
|
13
|
+
import "./chunk-6AW3CPSO.js";
|
|
14
14
|
import "./chunk-7F3IWBPQ.js";
|
|
15
15
|
import "./chunk-HBR62GF2.js";
|
|
16
16
|
import "./chunk-EC67VAZX.js";
|
|
17
17
|
import "./chunk-YGITX6JU.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-TQA7WGVC.js";
|
|
19
|
+
import "./chunk-GKNLIIRL.js";
|
|
20
20
|
import "./chunk-JRUQQRP6.js";
|
|
21
21
|
export {
|
|
22
22
|
createRuntime,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CATALOG,
|
|
4
4
|
fillTemplate
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MA4SBA6I.js";
|
|
6
6
|
import {
|
|
7
7
|
MAX_VERIFY_ROUNDS,
|
|
8
8
|
runVerify,
|
|
9
9
|
toolLabel,
|
|
10
10
|
verifyFollowup,
|
|
11
11
|
worktreeListText
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-67ORWLS2.js";
|
|
13
13
|
import {
|
|
14
14
|
BUILTIN_AGENTS,
|
|
15
15
|
appendMemory,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
hasKey,
|
|
31
31
|
providerName,
|
|
32
32
|
writeGlobalConfig
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-6AW3CPSO.js";
|
|
34
34
|
import {
|
|
35
35
|
Session
|
|
36
36
|
} from "./chunk-HBR62GF2.js";
|
|
@@ -48,14 +48,14 @@ import {
|
|
|
48
48
|
globalMcpPath,
|
|
49
49
|
readMcpFile,
|
|
50
50
|
removeGlobalServer
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-TQA7WGVC.js";
|
|
52
52
|
import {
|
|
53
53
|
ACCENT,
|
|
54
54
|
PRESETS,
|
|
55
55
|
color,
|
|
56
56
|
matchKeybind,
|
|
57
57
|
removeCredential
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-GKNLIIRL.js";
|
|
59
59
|
import {
|
|
60
60
|
getLanguage,
|
|
61
61
|
locale,
|
|
@@ -2122,7 +2122,7 @@ ARGUMENTS: ${slash.args}`);
|
|
|
2122
2122
|
}
|
|
2123
2123
|
}, [runtime, notice]);
|
|
2124
2124
|
useEffect3(() => {
|
|
2125
|
-
if (!busy && !hasThinking || pending || !stdin.isTTY || !stdout.isTTY || !thinkingTargetRef.current) return;
|
|
2125
|
+
if (!runtime.config.thinkingClickCollapse || !busy && !hasThinking || pending || !stdin.isTTY || !stdout.isTTY || !thinkingTargetRef.current) return;
|
|
2126
2126
|
let click;
|
|
2127
2127
|
let mouseBuffer = "";
|
|
2128
2128
|
const onData = (data) => {
|
|
@@ -2148,7 +2148,7 @@ ARGUMENTS: ${slash.args}`);
|
|
|
2148
2148
|
stdin.off("data", onData);
|
|
2149
2149
|
stdout.write("\x1B[?1000l\x1B[?1006l");
|
|
2150
2150
|
};
|
|
2151
|
-
}, [busy, pending, stdin, stdout, toggleThinking, hasThinking]);
|
|
2151
|
+
}, [busy, pending, stdin, stdout, toggleThinking, hasThinking, runtime.config.thinkingClickCollapse]);
|
|
2152
2152
|
useInput9((input, key) => {
|
|
2153
2153
|
if (key.tab && key.shift) {
|
|
2154
2154
|
const next = nextMode(runtime.agent.permissions.mode);
|
|
@@ -2273,8 +2273,7 @@ ${t2.output}`);
|
|
|
2273
2273
|
/* @__PURE__ */ jsxs12(Text16, { dimColor: true, children: [
|
|
2274
2274
|
" \xB7 ",
|
|
2275
2275
|
runtime.config.keybinds.thinking.spec,
|
|
2276
|
-
|
|
2277
|
-
t("click to toggle")
|
|
2276
|
+
runtime.config.thinkingClickCollapse ? ` \xB7 ${t("click to toggle")}` : ""
|
|
2278
2277
|
] })
|
|
2279
2278
|
] }),
|
|
2280
2279
|
showThinking ? /* @__PURE__ */ jsxs12(Box13, { flexDirection: "column", paddingLeft: 2, children: [
|
|
@@ -2349,7 +2348,7 @@ async function startInteractive(rt, opts) {
|
|
|
2349
2348
|
if (chosen) rt.resume(chosen.session);
|
|
2350
2349
|
}
|
|
2351
2350
|
}
|
|
2352
|
-
const { serversToStart, setProjectTrust } = await import("./config-
|
|
2351
|
+
const { serversToStart, setProjectTrust } = await import("./config-SUUUHLRX.js");
|
|
2353
2352
|
const plan = serversToStart(rt.home, rt.cwd);
|
|
2354
2353
|
if (plan.needTrust.length) {
|
|
2355
2354
|
const { createInterface } = await import("readline/promises");
|