@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.
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createRuntime
4
- } from "./chunk-R72OV7RF.js";
4
+ } from "./chunk-QNUJHKEL.js";
5
5
  import "./chunk-OK2USAXX.js";
6
- import "./chunk-ZEPTUKNW.js";
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-266SY3MC.js";
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-H7XJDKJY.js";
22
+ import "./chunk-GWVLPN4B.js";
23
23
  import {
24
24
  listAllModels
25
- } from "./chunk-IYR5PYA3.js";
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-SVD4LHJC.js";
31
- import "./chunk-5YJ3ZQVR.js";
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,8 +2,8 @@
2
2
  import {
3
3
  Session,
4
4
  pruneSessions
5
- } from "./chunk-SVD4LHJC.js";
6
- import "./chunk-5YJ3ZQVR.js";
5
+ } from "./chunk-6AUROP2E.js";
6
+ import "./chunk-XTOATEI6.js";
7
7
  import "./chunk-KPTML72Q.js";
8
8
  import "./chunk-3WHI4LN3.js";
9
9
  export {
@@ -2,18 +2,18 @@
2
2
  import {
3
3
  createRuntime,
4
4
  lunaPtcAutoEnabled
5
- } from "./chunk-R72OV7RF.js";
5
+ } from "./chunk-QNUJHKEL.js";
6
6
  import "./chunk-OK2USAXX.js";
7
- import "./chunk-ZEPTUKNW.js";
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-H7XJDKJY.js";
12
- import "./chunk-IYR5PYA3.js";
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-SVD4LHJC.js";
16
- import "./chunk-5YJ3ZQVR.js";
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>>;
@@ -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;
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  Session
4
- } from "./chunk-SVD4LHJC.js";
5
- import "./chunk-5YJ3ZQVR.js";
4
+ } from "./chunk-6AUROP2E.js";
5
+ import "./chunk-XTOATEI6.js";
6
6
  import "./chunk-KPTML72Q.js";
7
7
  import {
8
8
  t
@@ -9,7 +9,7 @@ import {
9
9
  toolLabel,
10
10
  verifyFollowup,
11
11
  worktreeListText
12
- } from "./chunk-C64KM37J.js";
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-ZEPTUKNW.js";
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-SVD4LHJC.js";
40
+ } from "./chunk-6AUROP2E.js";
39
41
  import {
40
42
  contentText
41
- } from "./chunk-5YJ3ZQVR.js";
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-YQXCCKXI.js");
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 {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  VERSION
4
- } from "./chunk-266SY3MC.js";
4
+ } from "./chunk-FUJGHCWN.js";
5
5
  import {
6
6
  t
7
7
  } from "./chunk-3WHI4LN3.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botconnector/bccli",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "BCCLI — BotConnector AI coding agent for the terminal",
5
5
  "type": "module",
6
6
  "bin": {