@botconnector/bccli 0.4.3 → 0.4.5
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-NU4HZHQO.js → acp-M22V2CHD.js} +2 -2
- package/dist/{args-NRTZWWEV.js → args-TFKRCKTY.js} +4 -4
- package/dist/{chunk-HQW4BROS.js → chunk-27REMLDV.js} +1 -1
- package/dist/{chunk-6UO5GX55.js → chunk-3JQZ2IKV.js} +3 -3
- package/dist/{chunk-3I5BW3ZT.js → chunk-6EGQI6HJ.js} +1 -1
- package/dist/{chunk-RX4UQX43.js → chunk-AK6TWKET.js} +1 -1
- package/dist/{chunk-XTOATEI6.js → chunk-BR63GX6T.js} +10 -8
- package/dist/{chunk-Z5NI5FIK.js → chunk-D2C6EOOS.js} +7 -7
- package/dist/{chunk-WDX62DFH.js → chunk-D7GAZKXT.js} +3 -3
- package/dist/{chunk-FUJGHCWN.js → chunk-DZPBWYTD.js} +1 -1
- package/dist/{chunk-3WHI4LN3.js → chunk-EOOWV6C6.js} +2 -0
- package/dist/{chunk-QNUJHKEL.js → chunk-FW6W5MN7.js} +11 -11
- package/dist/{chunk-7I2ZGPUS.js → chunk-JVQZWTPV.js} +4 -4
- package/dist/{chunk-GWVLPN4B.js → chunk-LHLNK7HP.js} +4 -4
- package/dist/{chunk-4W5SKQDC.js → chunk-NSARPM5C.js} +44 -21
- package/dist/{chunk-JXM6REER.js → chunk-O5ATYRUP.js} +1 -1
- package/dist/{chunk-6M55UPES.js → chunk-WTCWBY2D.js} +2 -2
- package/dist/{chunk-NQOGVP3I.js → chunk-XQVEAF3F.js} +2 -2
- package/dist/{chunk-KPTML72Q.js → chunk-XSUFHD67.js} +9 -1
- package/dist/{chunk-6AUROP2E.js → chunk-YNI4GHBI.js} +1 -1
- package/dist/cli.js +38 -38
- package/dist/{completion-D2BSBTQO.js → completion-JCBMQKNQ.js} +1 -1
- package/dist/{config-LAINORU5.js → config-2MR6V7U7.js} +2 -2
- package/dist/{config-ENDRMOTP.js → config-JCI7NAVY.js} +3 -3
- package/dist/{ghBotCli-GCIUUMKQ.js → ghBotCli-T7AWXAZ2.js} +14 -14
- package/dist/{integrationCli-HXCSEWH2.js → integrationCli-KOCF73GG.js} +2 -2
- package/dist/{login-YXSSB2HQ.js → login-OIYX4D3X.js} +4 -4
- package/dist/{mcpCli-SETTCL3K.js → mcpCli-IBC3WCHG.js} +6 -6
- package/dist/{modelsCli-656AKYZD.js → modelsCli-XZLHNWKL.js} +6 -6
- package/dist/{oauthLogin-XWY7OHCG.js → oauthLogin-TUXZLIQN.js} +1 -1
- package/dist/{pluginsCli-ZQNKWZHJ.js → pluginsCli-X7NZRU7X.js} +2 -2
- package/dist/{prCli-6PUWTMTP.js → prCli-GPDLWYWC.js} +1 -1
- package/dist/providerCli-WCFA36S4.js +15 -0
- package/dist/sdk.js +61 -26
- package/dist/{serve-K5AH4MGO.js → serve-A764QS5U.js} +3 -3
- package/dist/{serve-XPAGXIGS.js → serve-TJCT3TLE.js} +15 -15
- package/dist/session-ML2DPI7P.js +12 -0
- package/dist/setup-QYCA7ATT.js +24 -0
- package/dist/{statsCli-XR6BEZQQ.js → statsCli-FKGON32O.js} +1 -1
- package/dist/{transferCli-C6XS6QYH.js → transferCli-HA5IKJKF.js} +4 -4
- package/dist/{ui-43C6Y57K.js → ui-SMY7QSFF.js} +71 -34
- package/dist/{update-AVZO4XID.js → update-BUFIPEKY.js} +2 -2
- package/package.json +1 -1
- package/dist/providerCli-V2576JXE.js +0 -15
- package/dist/session-V2VCAF7E.js +0 -12
- package/dist/setup-HVVHOIL4.js +0 -24
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
createRuntime
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FW6W5MN7.js";
|
|
5
5
|
import "./chunk-OK2USAXX.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-NSARPM5C.js";
|
|
7
|
+
import "./chunk-O5ATYRUP.js";
|
|
8
8
|
import "./chunk-PSO7R5AD.js";
|
|
9
9
|
import {
|
|
10
10
|
VERSION
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DZPBWYTD.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-3JQZ2IKV.js";
|
|
21
21
|
import "./chunk-WFZKJY3R.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-LHLNK7HP.js";
|
|
23
23
|
import {
|
|
24
24
|
listAllModels
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-JVQZWTPV.js";
|
|
26
|
+
import "./chunk-27REMLDV.js";
|
|
27
|
+
import "./chunk-6EGQI6HJ.js";
|
|
28
28
|
import {
|
|
29
29
|
Session
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-YNI4GHBI.js";
|
|
31
|
+
import "./chunk-BR63GX6T.js";
|
|
32
|
+
import "./chunk-XSUFHD67.js";
|
|
33
|
+
import "./chunk-WTCWBY2D.js";
|
|
34
34
|
import {
|
|
35
35
|
bccliHome,
|
|
36
36
|
loadConfig
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-AK6TWKET.js";
|
|
38
|
+
import "./chunk-EOOWV6C6.js";
|
|
39
39
|
|
|
40
40
|
// src/serve.ts
|
|
41
41
|
import { randomBytes } from "crypto";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
createRuntime,
|
|
4
|
+
lunaPtcAutoEnabled
|
|
5
|
+
} from "./chunk-FW6W5MN7.js";
|
|
6
|
+
import "./chunk-OK2USAXX.js";
|
|
7
|
+
import "./chunk-NSARPM5C.js";
|
|
8
|
+
import "./chunk-O5ATYRUP.js";
|
|
9
|
+
import "./chunk-PSO7R5AD.js";
|
|
10
|
+
import "./chunk-WFZKJY3R.js";
|
|
11
|
+
import "./chunk-LHLNK7HP.js";
|
|
12
|
+
import "./chunk-JVQZWTPV.js";
|
|
13
|
+
import "./chunk-27REMLDV.js";
|
|
14
|
+
import "./chunk-6EGQI6HJ.js";
|
|
15
|
+
import "./chunk-YNI4GHBI.js";
|
|
16
|
+
import "./chunk-BR63GX6T.js";
|
|
17
|
+
import "./chunk-XSUFHD67.js";
|
|
18
|
+
import "./chunk-WTCWBY2D.js";
|
|
19
|
+
import "./chunk-AK6TWKET.js";
|
|
20
|
+
import "./chunk-EOOWV6C6.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-YNI4GHBI.js";
|
|
5
|
+
import "./chunk-BR63GX6T.js";
|
|
6
|
+
import "./chunk-XSUFHD67.js";
|
|
7
7
|
import {
|
|
8
8
|
t
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EOOWV6C6.js";
|
|
10
10
|
|
|
11
11
|
// src/transferCli.ts
|
|
12
12
|
import { copyFileSync, existsSync, mkdirSync, readdirSync, readFileSync, statSync, writeFileSync } from "fs";
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CATALOG,
|
|
4
4
|
fillTemplate
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XQVEAF3F.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-D7GAZKXT.js";
|
|
13
13
|
import {
|
|
14
14
|
BUILTIN_AGENTS,
|
|
15
15
|
appendMemory,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
runCommand,
|
|
25
25
|
runHooks,
|
|
26
26
|
validateGlobPattern
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-NSARPM5C.js";
|
|
28
28
|
import "./chunk-PSO7R5AD.js";
|
|
29
29
|
import {
|
|
30
30
|
nextMode,
|
|
@@ -34,39 +34,39 @@ import {
|
|
|
34
34
|
hasKey,
|
|
35
35
|
providerName,
|
|
36
36
|
writeGlobalConfig
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-27REMLDV.js";
|
|
38
38
|
import {
|
|
39
39
|
Session
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-YNI4GHBI.js";
|
|
41
41
|
import {
|
|
42
42
|
contentText
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-BR63GX6T.js";
|
|
44
44
|
import {
|
|
45
45
|
REASONING_LEVELS,
|
|
46
46
|
assertReasoningSupported,
|
|
47
47
|
parseReasoningLevel,
|
|
48
48
|
supportedReasoningLevels
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-XSUFHD67.js";
|
|
50
50
|
import {
|
|
51
51
|
addGlobalServer,
|
|
52
52
|
globalMcpPath,
|
|
53
53
|
readMcpFile,
|
|
54
54
|
removeGlobalServer
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-WTCWBY2D.js";
|
|
56
56
|
import {
|
|
57
57
|
ACCENT,
|
|
58
58
|
PRESETS,
|
|
59
59
|
color,
|
|
60
60
|
matchKeybind,
|
|
61
61
|
removeCredential
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-AK6TWKET.js";
|
|
63
63
|
import {
|
|
64
64
|
getLanguage,
|
|
65
65
|
locale,
|
|
66
66
|
parseLang,
|
|
67
67
|
setLanguage,
|
|
68
68
|
t
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-EOOWV6C6.js";
|
|
70
70
|
|
|
71
71
|
// src/ui/index.tsx
|
|
72
72
|
import { render } from "ink";
|
|
@@ -1421,9 +1421,9 @@ function ToolBlock({ tool, target, output, display, isError, done, expanded, sub
|
|
|
1421
1421
|
sub.length > 6 ? /* @__PURE__ */ jsx15(Text15, { dimColor: true, children: t("\u2026 {n} earlier steps", { n: sub.length - 6 }) }) : null
|
|
1422
1422
|
] }) : null,
|
|
1423
1423
|
isTask && done ? /* @__PURE__ */ jsx15(Box12, { marginLeft: 3, children: /* @__PURE__ */ jsx15(Text15, { color: isError ? color("red") : color("green"), children: `${isError ? t("\u2717 failed") : t("\u2713 done")}${display ? ` \xB7 ${display}` : ""}` }) }) : null,
|
|
1424
|
-
isDiff ? /* @__PURE__ */ jsx15(Box12, { marginLeft: 3, children: /* @__PURE__ */ jsx15(DiffView, { diff: display }) }) : output && (isError || tool === "bash") && !(isTask && !isError) ? /* @__PURE__ */ jsxs11(Box12, { flexDirection: "column", marginLeft: 3, children: [
|
|
1424
|
+
isDiff ? /* @__PURE__ */ jsx15(Box12, { marginLeft: 3, children: /* @__PURE__ */ jsx15(DiffView, { diff: display }) }) : output && (isError || tool === "bash" || expanded) && !(isTask && !isError) ? /* @__PURE__ */ jsxs11(Box12, { flexDirection: "column", marginLeft: 3, children: [
|
|
1425
1425
|
shown.map((line, i) => /* @__PURE__ */ jsx15(Text15, { dimColor: !isError, color: isError ? color("red") : void 0, children: line }, i)),
|
|
1426
|
-
lines.length > shown.length ? /* @__PURE__ */ jsx15(Text15, { dimColor: true, children: t("\u2026 {n} more lines ({bind})", { n: lines.length - shown.length, bind: moreBind }) }) : null
|
|
1426
|
+
lines.length > shown.length ? /* @__PURE__ */ jsx15(Text15, { dimColor: true, children: t("\u2026 {n} more lines ({bind})", { n: lines.length - shown.length, bind: moreBind }) }) : expanded && lines.length > PREVIEW_LINES ? /* @__PURE__ */ jsx15(Text15, { dimColor: true, children: t("\u2026 ({bind} to collapse)", { bind: moreBind }) }) : null
|
|
1427
1427
|
] }) : null
|
|
1428
1428
|
] });
|
|
1429
1429
|
}
|
|
@@ -1645,8 +1645,14 @@ function App({ runtime, initialPrompt, version, updateMessage }) {
|
|
|
1645
1645
|
const [queued, setQueued] = useState8([]);
|
|
1646
1646
|
const [showThinking, setShowThinking] = useState8(runtime.config.thinkingVisible === true);
|
|
1647
1647
|
const showThinkingRef = useRef(showThinking);
|
|
1648
|
-
const [
|
|
1649
|
-
const
|
|
1648
|
+
const [showToolOutput, setShowToolOutput] = useState8(false);
|
|
1649
|
+
const [, setConfigRev] = useState8(0);
|
|
1650
|
+
const lastUserIdx = transcript.done.findLastIndex((e) => e.kind === "user");
|
|
1651
|
+
const staticDone = lastUserIdx > 0 ? transcript.done.slice(0, lastUserIdx) : [];
|
|
1652
|
+
const activeTurnDone = lastUserIdx > 0 ? transcript.done.slice(lastUserIdx) : transcript.done;
|
|
1653
|
+
const activeTurnEntries = [...activeTurnDone, ...transcript.live];
|
|
1654
|
+
const lastThinkingEntryId = activeTurnEntries.findLast((e) => e.kind === "thinking" && !!e.text.trim())?.id;
|
|
1655
|
+
const hasThinking = lastThinkingEntryId !== void 0;
|
|
1650
1656
|
const { stdin } = useStdin();
|
|
1651
1657
|
const { stdout } = useStdout2();
|
|
1652
1658
|
const liveRootRef = useRef(null);
|
|
@@ -1670,7 +1676,6 @@ function App({ runtime, initialPrompt, version, updateMessage }) {
|
|
|
1670
1676
|
if ((event.tool === "edit" || event.tool === "write") && !event.isError) editedInTurn.current = true;
|
|
1671
1677
|
}
|
|
1672
1678
|
if (event.type === "usage") setTokens(event.inputTokens + event.outputTokens);
|
|
1673
|
-
if (event.type === "thinking" && event.delta) setLastThinking((prev) => prev + event.delta);
|
|
1674
1679
|
if (event.type === "budgetExceeded") {
|
|
1675
1680
|
notice(
|
|
1676
1681
|
t("Budget exceeded ({kind}): {used} of {limit}. Further model calls are blocked; raise usageCap in ~/.bccli/config.json.", {
|
|
@@ -1698,7 +1703,7 @@ function App({ runtime, initialPrompt, version, updateMessage }) {
|
|
|
1698
1703
|
async (text) => {
|
|
1699
1704
|
setTranscript((t2) => ({ ...t2, done: [...t2.done, entry({ kind: "user", text })] }));
|
|
1700
1705
|
setBusy(true);
|
|
1701
|
-
|
|
1706
|
+
setShowToolOutput(false);
|
|
1702
1707
|
setStartedAt(Date.now());
|
|
1703
1708
|
editedInTurn.current = false;
|
|
1704
1709
|
controller.current = new AbortController();
|
|
@@ -1746,7 +1751,8 @@ function App({ runtime, initialPrompt, version, updateMessage }) {
|
|
|
1746
1751
|
case "clear":
|
|
1747
1752
|
runtime.agent.clear();
|
|
1748
1753
|
setTokens(0);
|
|
1749
|
-
|
|
1754
|
+
setShowToolOutput(false);
|
|
1755
|
+
setTranscript((t2) => ({ ...t2, done: t2.done.filter((e) => e.kind !== "thinking") }));
|
|
1750
1756
|
notice(t("Conversation cleared."));
|
|
1751
1757
|
return;
|
|
1752
1758
|
case "cost": {
|
|
@@ -1841,7 +1847,8 @@ function App({ runtime, initialPrompt, version, updateMessage }) {
|
|
|
1841
1847
|
case "new":
|
|
1842
1848
|
runtime.newSession();
|
|
1843
1849
|
setTokens(0);
|
|
1844
|
-
|
|
1850
|
+
setShowToolOutput(false);
|
|
1851
|
+
setTranscript((t2) => ({ ...t2, done: t2.done.filter((e) => e.kind !== "thinking") }));
|
|
1845
1852
|
notice(t("New session started. The previous session stays saved (/resume)."));
|
|
1846
1853
|
return;
|
|
1847
1854
|
case "session":
|
|
@@ -1874,7 +1881,7 @@ function App({ runtime, initialPrompt, version, updateMessage }) {
|
|
|
1874
1881
|
if (!chosen) return;
|
|
1875
1882
|
runtime.resume(chosen.session);
|
|
1876
1883
|
setTokens(0);
|
|
1877
|
-
|
|
1884
|
+
setShowToolOutput(false);
|
|
1878
1885
|
setTranscript({ done: [entry({ kind: "header" }), ...replayEntries(chosen.session.loadHistory())], live: [] });
|
|
1879
1886
|
}
|
|
1880
1887
|
});
|
|
@@ -2134,11 +2141,17 @@ function App({ runtime, initialPrompt, version, updateMessage }) {
|
|
|
2134
2141
|
if (key === "theme") writeGlobalConfig({ theme: val }, runtime.env);
|
|
2135
2142
|
else if (key === "editor" && (val === "emacs" || val === "vim")) writeGlobalConfig({ editor: val }, runtime.env);
|
|
2136
2143
|
else if (key === "repoMap") writeGlobalConfig({ repoMap: val === "true" || val === "on" }, runtime.env);
|
|
2137
|
-
else if (key === "thinkingVisible")
|
|
2144
|
+
else if (key === "thinkingVisible") {
|
|
2145
|
+
const next = val === "true" || val === "on";
|
|
2146
|
+
writeGlobalConfig({ thinkingVisible: next }, runtime.env);
|
|
2147
|
+
showThinkingRef.current = next;
|
|
2148
|
+
setShowThinking(next);
|
|
2149
|
+
} else if (key === "thinkingClickCollapse") writeGlobalConfig({ thinkingClickCollapse: val === "true" || val === "on" }, runtime.env);
|
|
2138
2150
|
else if (key === "sandbox" && (val === "on" || val === "off")) writeGlobalConfig({ sandbox: val }, runtime.env);
|
|
2139
2151
|
else if (key === "networkPolicy" && (val === "allow" || val === "offline")) writeGlobalConfig({ networkPolicy: val }, runtime.env);
|
|
2140
2152
|
else return false;
|
|
2141
2153
|
runtime.reloadConfig();
|
|
2154
|
+
setConfigRev((n) => n + 1);
|
|
2142
2155
|
notice(`${key} = ${val}`);
|
|
2143
2156
|
return true;
|
|
2144
2157
|
};
|
|
@@ -2152,6 +2165,7 @@ function App({ runtime, initialPrompt, version, updateMessage }) {
|
|
|
2152
2165
|
{ id: `editor:${c.editor === "vim" ? "emacs" : "vim"}`, label: `editor: ${c.editor}`, hint: "toggle emacs/vim" },
|
|
2153
2166
|
{ id: `repoMap:${!c.repoMap}`, label: `repoMap: ${c.repoMap}`, hint: "toggle true/false" },
|
|
2154
2167
|
{ id: `thinkingVisible:${!c.thinkingVisible}`, label: `thinkingVisible: ${!!c.thinkingVisible}`, hint: "toggle true/false" },
|
|
2168
|
+
{ id: `thinkingClickCollapse:${!c.thinkingClickCollapse}`, label: `thinkingClickCollapse: ${!!c.thinkingClickCollapse}`, hint: "toggle true/false" },
|
|
2155
2169
|
{ id: `sandbox:${c.sandbox === "on" ? "off" : "on"}`, label: `sandbox: ${c.sandbox}`, hint: "toggle on/off" },
|
|
2156
2170
|
{ id: `networkPolicy:${c.networkPolicy === "offline" ? "allow" : "offline"}`, label: `networkPolicy: ${c.networkPolicy ?? "allow"}`, hint: "toggle allow/offline" }
|
|
2157
2171
|
],
|
|
@@ -2304,10 +2318,8 @@ ARGUMENTS: ${slash.args}`);
|
|
|
2304
2318
|
})();
|
|
2305
2319
|
} else if (matchKeybind(runtime.config.keybinds.thinking, input, key)) {
|
|
2306
2320
|
toggleThinking();
|
|
2307
|
-
} else if (matchKeybind(runtime.config.keybinds.toolOutput, input, key)
|
|
2308
|
-
|
|
2309
|
-
notice(`\u23BF ${t2.tool} ${t2.target}
|
|
2310
|
-
${t2.output}`);
|
|
2321
|
+
} else if (matchKeybind(runtime.config.keybinds.toolOutput, input, key)) {
|
|
2322
|
+
setShowToolOutput((prev) => !prev);
|
|
2311
2323
|
}
|
|
2312
2324
|
});
|
|
2313
2325
|
const pickMcp = async (name) => {
|
|
@@ -2392,29 +2404,54 @@ ${t2.output}`);
|
|
|
2392
2404
|
/* @__PURE__ */ jsx16(Text16, { color: color(ACCENT), children: "\u25CF " }),
|
|
2393
2405
|
/* @__PURE__ */ jsx16(Markdown, { text: e.text.replace(/^\s+/, "") })
|
|
2394
2406
|
] }, e.id);
|
|
2395
|
-
case "thinking":
|
|
2396
|
-
|
|
2407
|
+
case "thinking": {
|
|
2408
|
+
const text = e.text.trim();
|
|
2409
|
+
if (!text) return null;
|
|
2410
|
+
const lines = text.split("\n").length;
|
|
2411
|
+
const isTarget = e.id === lastThinkingEntryId;
|
|
2412
|
+
return /* @__PURE__ */ jsxs12(Box13, { ref: isTarget ? thinkingTargetRef : void 0, marginTop: 1, flexDirection: "column", children: [
|
|
2413
|
+
/* @__PURE__ */ jsxs12(Box13, { flexDirection: "row", children: [
|
|
2414
|
+
/* @__PURE__ */ jsx16(Text16, { dimColor: true, children: showThinking ? t("\u273B Thinking") : t("\u273B Thinking \xB7 {n} lines", { n: lines }) }),
|
|
2415
|
+
/* @__PURE__ */ jsxs12(Text16, { dimColor: true, children: [
|
|
2416
|
+
" \xB7 ",
|
|
2417
|
+
runtime.config.keybinds.thinking.spec,
|
|
2418
|
+
runtime.config.thinkingClickCollapse ? ` \xB7 ${t("click to toggle")}` : ""
|
|
2419
|
+
] })
|
|
2420
|
+
] }),
|
|
2421
|
+
showThinking ? /* @__PURE__ */ jsxs12(Box13, { flexDirection: "column", paddingLeft: 2, children: [
|
|
2422
|
+
/* @__PURE__ */ jsx16(Text16, { dimColor: true, children: t("Model: {model} \xB7 reasoning: {level}", { model: runtime.modelRef, level: reasoning }) }),
|
|
2423
|
+
/* @__PURE__ */ jsx16(Text16, { dimColor: true, italic: true, children: text })
|
|
2424
|
+
] }) : null
|
|
2425
|
+
] }, e.id);
|
|
2426
|
+
}
|
|
2397
2427
|
case "tool":
|
|
2398
|
-
return /* @__PURE__ */ jsx16(ToolBlock, { tool: e.tool, target: e.target, output: e.output, display: e.display, isError: e.isError, done: e.done, sub: e.sub, moreBind: runtime.config.keybinds.toolOutput.spec }, e.id);
|
|
2428
|
+
return /* @__PURE__ */ jsx16(ToolBlock, { tool: e.tool, target: e.target, output: e.output, display: e.display, isError: e.isError, done: e.done, expanded: showToolOutput, sub: e.sub, moreBind: runtime.config.keybinds.toolOutput.spec }, e.id);
|
|
2399
2429
|
case "notice":
|
|
2400
2430
|
return /* @__PURE__ */ jsx16(Box13, { marginTop: 1, children: /* @__PURE__ */ jsx16(Text16, { color: e.tone === "error" ? color("red") : e.tone === "warn" ? color("yellow") : void 0, dimColor: e.tone === "info", children: e.text }) }, e.id);
|
|
2401
2431
|
}
|
|
2402
2432
|
};
|
|
2433
|
+
const activeToolEntry = transcript.live.findLast((e) => e.kind === "tool" && !e.done);
|
|
2434
|
+
const activeSub = activeToolEntry?.sub?.findLast((s) => !s.done);
|
|
2435
|
+
const activeTarget = (activeSub ? `${toolLabel(activeSub.tool)} ${activeSub.target}` : activeToolEntry?.target ?? "").replace(/\s+/g, " ").trim();
|
|
2436
|
+
const activeSpinnerSummary = activeToolEntry ? `${toolLabel(activeToolEntry.tool)}${activeTarget ? ` ${activeTarget.length > 20 ? `${activeTarget.slice(0, 20)}\u2026` : activeTarget}` : ""}` : "";
|
|
2437
|
+
const activeToolSummary = activeToolEntry ? `${toolLabel(activeToolEntry.tool)}${activeTarget ? ` ${activeTarget.length > 68 ? `${activeTarget.slice(0, 68)}\u2026` : activeTarget}` : ""}` : "";
|
|
2403
2438
|
return /* @__PURE__ */ jsxs12(Box13, { ref: liveRootRef, flexDirection: "column", children: [
|
|
2404
|
-
/* @__PURE__ */ jsx16(Static, { items:
|
|
2439
|
+
/* @__PURE__ */ jsx16(Static, { items: staticDone, children: renderEntry }),
|
|
2440
|
+
activeTurnDone.map(renderEntry),
|
|
2405
2441
|
transcript.live.map(renderEntry),
|
|
2406
|
-
busy && !pending && !planAsk
|
|
2442
|
+
busy && !pending && !planAsk ? /* @__PURE__ */ jsxs12(Box13, { ref: lastThinkingEntryId === void 0 ? thinkingTargetRef : void 0, marginTop: 1, flexDirection: "column", children: [
|
|
2407
2443
|
/* @__PURE__ */ jsxs12(Box13, { flexDirection: "row", children: [
|
|
2408
|
-
|
|
2444
|
+
/* @__PURE__ */ jsx16(Spinner, { label: cancelling ? t("Cancelling") : activeSpinnerSummary ? `${t("Thinking")} \xB7 ${activeSpinnerSummary}` : t("Thinking"), startedAt }),
|
|
2409
2445
|
/* @__PURE__ */ jsxs12(Text16, { dimColor: true, children: [
|
|
2410
2446
|
" \xB7 ",
|
|
2411
2447
|
runtime.config.keybinds.thinking.spec,
|
|
2412
2448
|
runtime.config.thinkingClickCollapse ? ` \xB7 ${t("click to toggle")}` : ""
|
|
2413
2449
|
] })
|
|
2414
2450
|
] }),
|
|
2415
|
-
showThinking ? /* @__PURE__ */ jsxs12(Box13, { flexDirection: "column", paddingLeft: 2, children: [
|
|
2451
|
+
showThinking && lastThinkingEntryId === void 0 ? /* @__PURE__ */ jsxs12(Box13, { flexDirection: "column", paddingLeft: 2, children: [
|
|
2416
2452
|
/* @__PURE__ */ jsx16(Text16, { dimColor: true, children: t("Model: {model} \xB7 reasoning: {level}", { model: runtime.modelRef, level: reasoning }) }),
|
|
2417
|
-
|
|
2453
|
+
activeToolSummary ? /* @__PURE__ */ jsx16(Text16, { dimColor: true, children: `\u25B6 ${activeToolSummary}` }) : null,
|
|
2454
|
+
!activeToolSummary ? /* @__PURE__ */ jsx16(Text16, { dimColor: true, children: t("No reasoning summary received yet; tool activity remains visible above.") }) : null
|
|
2418
2455
|
] }) : null
|
|
2419
2456
|
] }) : null,
|
|
2420
2457
|
pending ? /* @__PURE__ */ jsx16(PermissionPrompt, { request: pending.request, onAnswer: answer }, pending.id) : null,
|
|
@@ -2469,7 +2506,7 @@ ${t2.output}`);
|
|
|
2469
2506
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
2470
2507
|
async function startInteractive(rt, opts) {
|
|
2471
2508
|
if (opts.resume) {
|
|
2472
|
-
const { Session: Session2 } = await import("./session-
|
|
2509
|
+
const { Session: Session2 } = await import("./session-ML2DPI7P.js");
|
|
2473
2510
|
const list = Session2.list(rt.home, rt.cwd).slice(0, 20);
|
|
2474
2511
|
if (!list.length) console.log(t("No sessions in this folder yet; starting a new one."));
|
|
2475
2512
|
else {
|
|
@@ -2485,7 +2522,7 @@ async function startInteractive(rt, opts) {
|
|
|
2485
2522
|
if (chosen) rt.resume(chosen.session);
|
|
2486
2523
|
}
|
|
2487
2524
|
}
|
|
2488
|
-
const { serversToStart, setProjectTrust } = await import("./config-
|
|
2525
|
+
const { serversToStart, setProjectTrust } = await import("./config-JCI7NAVY.js");
|
|
2489
2526
|
const plan = serversToStart(rt.home, rt.cwd);
|
|
2490
2527
|
if (plan.needTrust.length) {
|
|
2491
2528
|
const { createInterface } = await import("readline/promises");
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
addProviderKey,
|
|
4
|
-
runProviderCommand
|
|
5
|
-
} from "./chunk-GWVLPN4B.js";
|
|
6
|
-
import "./chunk-7I2ZGPUS.js";
|
|
7
|
-
import "./chunk-HQW4BROS.js";
|
|
8
|
-
import "./chunk-XTOATEI6.js";
|
|
9
|
-
import "./chunk-KPTML72Q.js";
|
|
10
|
-
import "./chunk-RX4UQX43.js";
|
|
11
|
-
import "./chunk-3WHI4LN3.js";
|
|
12
|
-
export {
|
|
13
|
-
addProviderKey,
|
|
14
|
-
runProviderCommand
|
|
15
|
-
};
|
package/dist/session-V2VCAF7E.js
DELETED
package/dist/setup-HVVHOIL4.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
createRuntime,
|
|
4
|
-
lunaPtcAutoEnabled
|
|
5
|
-
} from "./chunk-QNUJHKEL.js";
|
|
6
|
-
import "./chunk-OK2USAXX.js";
|
|
7
|
-
import "./chunk-4W5SKQDC.js";
|
|
8
|
-
import "./chunk-JXM6REER.js";
|
|
9
|
-
import "./chunk-PSO7R5AD.js";
|
|
10
|
-
import "./chunk-WFZKJY3R.js";
|
|
11
|
-
import "./chunk-GWVLPN4B.js";
|
|
12
|
-
import "./chunk-7I2ZGPUS.js";
|
|
13
|
-
import "./chunk-HQW4BROS.js";
|
|
14
|
-
import "./chunk-3I5BW3ZT.js";
|
|
15
|
-
import "./chunk-6AUROP2E.js";
|
|
16
|
-
import "./chunk-XTOATEI6.js";
|
|
17
|
-
import "./chunk-KPTML72Q.js";
|
|
18
|
-
import "./chunk-6M55UPES.js";
|
|
19
|
-
import "./chunk-RX4UQX43.js";
|
|
20
|
-
import "./chunk-3WHI4LN3.js";
|
|
21
|
-
export {
|
|
22
|
-
createRuntime,
|
|
23
|
-
lunaPtcAutoEnabled
|
|
24
|
-
};
|