@botconnector/bccli 0.4.2 → 0.4.3
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-NU4HZHQO.js} +1 -1
- package/dist/{chunk-ZEPTUKNW.js → chunk-4W5SKQDC.js} +33 -0
- package/dist/{chunk-SVD4LHJC.js → chunk-6AUROP2E.js} +1 -1
- package/dist/{chunk-IYR5PYA3.js → chunk-7I2ZGPUS.js} +1 -1
- package/dist/{chunk-266SY3MC.js → chunk-FUJGHCWN.js} +1 -1
- package/dist/{chunk-H7XJDKJY.js → chunk-GWVLPN4B.js} +1 -1
- package/dist/{chunk-R72OV7RF.js → chunk-QNUJHKEL.js} +255 -71
- package/dist/{chunk-C64KM37J.js → chunk-WDX62DFH.js} +5 -1
- package/dist/{chunk-5YJ3ZQVR.js → chunk-XTOATEI6.js} +2 -2
- package/dist/{chunk-TIMSYZIR.js → chunk-Z5NI5FIK.js} +1 -1
- package/dist/cli.js +20 -20
- package/dist/{ghBotCli-TSLRORJJ.js → ghBotCli-GCIUUMKQ.js} +6 -6
- package/dist/{login-RYESFZG6.js → login-YXSSB2HQ.js} +1 -1
- package/dist/lsp.d.ts +23 -0
- package/dist/{modelsCli-OP7CDZC7.js → modelsCli-656AKYZD.js} +2 -2
- package/dist/{providerCli-5OZI2GQQ.js → providerCli-V2576JXE.js} +3 -3
- package/dist/sdk.js +284 -68
- package/dist/{serve-4J7HA4JO.js → serve-XPAGXIGS.js} +7 -7
- package/dist/{session-YQXCCKXI.js → session-V2VCAF7E.js} +2 -2
- package/dist/{setup-S4AJT6XE.js → setup-HVVHOIL4.js} +6 -6
- package/dist/tools/diagnostics.d.ts +8 -0
- package/dist/tools/sandbox.d.ts +3 -0
- package/dist/{transferCli-R2KEIWQR.js → transferCli-C6XS6QYH.js} +2 -2
- package/dist/{ui-36ZEK65V.js → ui-43C6Y57K.js} +27 -5
- package/dist/{update-FSS7X5WV.js → update-AVZO4XID.js} +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
createRuntime
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QNUJHKEL.js";
|
|
5
5
|
import "./chunk-OK2USAXX.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-4W5SKQDC.js";
|
|
7
7
|
import "./chunk-JXM6REER.js";
|
|
8
8
|
import "./chunk-PSO7R5AD.js";
|
|
9
9
|
import {
|
|
10
10
|
VERSION
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FUJGHCWN.js";
|
|
12
12
|
import {
|
|
13
13
|
LOOPBACK_BIND,
|
|
14
14
|
MAX_FRAME_BYTES,
|
|
@@ -19,16 +19,16 @@ import {
|
|
|
19
19
|
trustFence
|
|
20
20
|
} from "./chunk-6UO5GX55.js";
|
|
21
21
|
import "./chunk-WFZKJY3R.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-GWVLPN4B.js";
|
|
23
23
|
import {
|
|
24
24
|
listAllModels
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-7I2ZGPUS.js";
|
|
26
26
|
import "./chunk-HQW4BROS.js";
|
|
27
27
|
import "./chunk-3I5BW3ZT.js";
|
|
28
28
|
import {
|
|
29
29
|
Session
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-6AUROP2E.js";
|
|
31
|
+
import "./chunk-XTOATEI6.js";
|
|
32
32
|
import "./chunk-KPTML72Q.js";
|
|
33
33
|
import "./chunk-6M55UPES.js";
|
|
34
34
|
import {
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createRuntime,
|
|
4
4
|
lunaPtcAutoEnabled
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QNUJHKEL.js";
|
|
6
6
|
import "./chunk-OK2USAXX.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-4W5SKQDC.js";
|
|
8
8
|
import "./chunk-JXM6REER.js";
|
|
9
9
|
import "./chunk-PSO7R5AD.js";
|
|
10
10
|
import "./chunk-WFZKJY3R.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-GWVLPN4B.js";
|
|
12
|
+
import "./chunk-7I2ZGPUS.js";
|
|
13
13
|
import "./chunk-HQW4BROS.js";
|
|
14
14
|
import "./chunk-3I5BW3ZT.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-6AUROP2E.js";
|
|
16
|
+
import "./chunk-XTOATEI6.js";
|
|
17
17
|
import "./chunk-KPTML72Q.js";
|
|
18
18
|
import "./chunk-6M55UPES.js";
|
|
19
19
|
import "./chunk-RX4UQX43.js";
|
|
@@ -2,4 +2,12 @@ import { z } from 'zod';
|
|
|
2
2
|
import { type LspServer } from '../lsp';
|
|
3
3
|
export declare function createDiagnosticsTool(servers: LspServer[]): import("./types").Tool<z.ZodObject<{
|
|
4
4
|
path: z.ZodString;
|
|
5
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
definition: "definition";
|
|
7
|
+
diagnostics: "diagnostics";
|
|
8
|
+
hover: "hover";
|
|
9
|
+
references: "references";
|
|
10
|
+
}>>;
|
|
11
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
character: z.ZodOptional<z.ZodNumber>;
|
|
5
13
|
}, z.core.$strip>>;
|
package/dist/tools/sandbox.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export declare function sandboxSupported(platform: NodeJS.Platform): boolean;
|
|
2
|
+
/** Converts a Windows drive path (`C:\Users\foo`) into its WSL `/mnt/c/Users/foo` mount path. */
|
|
3
|
+
export declare function winPathToWsl(winPath: string): string;
|
|
2
4
|
/** Seatbelt profile: read everything, write only under cwd + temp areas, network only when allowed. */
|
|
3
5
|
export declare function darwinProfile(cwd: string, network: boolean): string;
|
|
4
6
|
/**
|
|
@@ -9,4 +11,5 @@ export declare function sandboxArgv(command: string, opts: {
|
|
|
9
11
|
platform: NodeJS.Platform;
|
|
10
12
|
cwd: string;
|
|
11
13
|
network: boolean;
|
|
14
|
+
wslBwrap?: boolean;
|
|
12
15
|
}): string[] | undefined;
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
toolLabel,
|
|
10
10
|
verifyFollowup,
|
|
11
11
|
worktreeListText
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WDX62DFH.js";
|
|
13
13
|
import {
|
|
14
14
|
BUILTIN_AGENTS,
|
|
15
15
|
appendMemory,
|
|
@@ -20,9 +20,11 @@ import {
|
|
|
20
20
|
parseMemoryArgs,
|
|
21
21
|
recordFileMtime,
|
|
22
22
|
renderBackgroundTasks,
|
|
23
|
+
resolveShell,
|
|
24
|
+
runCommand,
|
|
23
25
|
runHooks,
|
|
24
26
|
validateGlobPattern
|
|
25
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4W5SKQDC.js";
|
|
26
28
|
import "./chunk-PSO7R5AD.js";
|
|
27
29
|
import {
|
|
28
30
|
nextMode,
|
|
@@ -35,10 +37,10 @@ import {
|
|
|
35
37
|
} from "./chunk-HQW4BROS.js";
|
|
36
38
|
import {
|
|
37
39
|
Session
|
|
38
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-6AUROP2E.js";
|
|
39
41
|
import {
|
|
40
42
|
contentText
|
|
41
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-XTOATEI6.js";
|
|
42
44
|
import {
|
|
43
45
|
REASONING_LEVELS,
|
|
44
46
|
assertReasoningSupported,
|
|
@@ -2175,6 +2177,26 @@ function App({ runtime, initialPrompt, version, updateMessage }) {
|
|
|
2175
2177
|
const submit = useCallback(
|
|
2176
2178
|
(text) => {
|
|
2177
2179
|
setHistory((h) => [...h, text]);
|
|
2180
|
+
if (text.startsWith("#") && text.slice(1).trim()) {
|
|
2181
|
+
void runSlash("memory", text.slice(1).trim());
|
|
2182
|
+
return;
|
|
2183
|
+
}
|
|
2184
|
+
if (text.startsWith("!") && text.slice(1).trim()) {
|
|
2185
|
+
const cmd = text.slice(1).trim();
|
|
2186
|
+
setTranscript((tr) => ({ ...tr, done: [...tr.done, entry({ kind: "user", text })] }));
|
|
2187
|
+
const shell = resolveShell({ platform: process.platform, env: runtime.env, exists: existsSync3 });
|
|
2188
|
+
void runCommand(cmd, { cwd: runtime.cwd, timeoutMs: 6e4, signal: new AbortController().signal, shell }).then((r) => {
|
|
2189
|
+
const out = r.output.trim() || "(no output)";
|
|
2190
|
+
notice(`$ ${cmd}
|
|
2191
|
+
${out}`, r.exitCode ? "error" : "info");
|
|
2192
|
+
const ctxMsg = { role: "user", content: `Local shell command executed:
|
|
2193
|
+
$ ${cmd}
|
|
2194
|
+
${out}` };
|
|
2195
|
+
runtime.agent.messages.push(ctxMsg);
|
|
2196
|
+
runtime.session.append(ctxMsg);
|
|
2197
|
+
});
|
|
2198
|
+
return;
|
|
2199
|
+
}
|
|
2178
2200
|
const slash = parseSlash(text);
|
|
2179
2201
|
if (!slash) {
|
|
2180
2202
|
void runTurn(text);
|
|
@@ -2447,7 +2469,7 @@ ${t2.output}`);
|
|
|
2447
2469
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
2448
2470
|
async function startInteractive(rt, opts) {
|
|
2449
2471
|
if (opts.resume) {
|
|
2450
|
-
const { Session: Session2 } = await import("./session-
|
|
2472
|
+
const { Session: Session2 } = await import("./session-V2VCAF7E.js");
|
|
2451
2473
|
const list = Session2.list(rt.home, rt.cwd).slice(0, 20);
|
|
2452
2474
|
if (!list.length) console.log(t("No sessions in this folder yet; starting a new one."));
|
|
2453
2475
|
else {
|