zidane-gui 9.1.1 → 9.1.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/out/main/index.js +77 -3
- package/out/preload/index.mjs +7 -0
- package/out/renderer/assets/{43YPWK3Q-C1KxyhBe.js → 43YPWK3Q-BLwohgFu.js} +6 -6
- package/out/renderer/assets/{45MVAN6X-uedsCyvs.js → 45MVAN6X-DCPmrh2y.js} +5 -5
- package/out/renderer/assets/{46GJKBLZ-DqRDtmyU.js → 46GJKBLZ-n_NiMQEY.js} +10 -10
- package/out/renderer/assets/{63WH7YNF-E23uJkxY.js → 63WH7YNF-B0-gnOSz.js} +8 -8
- package/out/renderer/assets/{6DDU7VKX-BnYMT-fZ.js → 6DDU7VKX-BKAF5gyQ.js} +6 -6
- package/out/renderer/assets/{CLQLV5VT-BsAy1F0L.js → CLQLV5VT-BIZsXon4.js} +6 -6
- package/out/renderer/assets/{CUSPXG5M-BndthcFo.js → CUSPXG5M-Donlp74Y.js} +6 -6
- package/out/renderer/assets/{CodeEditor-Bc2yVqNr.js → CodeEditor-80QT2Pyq.js} +3 -3
- package/out/renderer/assets/{ComposerEditor-B4wmjkXE.js → ComposerEditor-CXpNHoo1.js} +3 -3
- package/out/renderer/assets/{D3L7O4X2-LfFKkl0g.js → D3L7O4X2-BCbmkNpB.js} +4 -4
- package/out/renderer/assets/{D5TW5CPZ-BUXfpU2q.js → D5TW5CPZ-Bp-wetYa.js} +1 -1
- package/out/renderer/assets/{DiffsTab-BHaJc7Ve.js → DiffsTab-Dy8a_hwG.js} +6 -6
- package/out/renderer/assets/{EGADTWYV-giCCF2cw.js → EGADTWYV-CqSrkc7g.js} +5 -5
- package/out/renderer/assets/{EOJSJZXM-B9xc3U2A.js → EOJSJZXM-BTI84tys.js} +8 -8
- package/out/renderer/assets/{EditorWorkers-DABG5YG9.js → EditorWorkers-Durn1REy.js} +5 -5
- package/out/renderer/assets/{FilesTab-CyWw9vW2.js → FilesTab-h32FFVsw.js} +7 -7
- package/out/renderer/assets/{G2OEIG6X-hZmo0wrY.js → G2OEIG6X-CS8YUqSL.js} +5 -5
- package/out/renderer/assets/{GXJ2T77W-Dx1MA_On.js → GXJ2T77W-BHaQFzB4.js} +6 -6
- package/out/renderer/assets/{HX3UMAK7-DcJt6NaE.js → HX3UMAK7-DOOY2pSg.js} +5 -5
- package/out/renderer/assets/{IU7WZTP6-BZMu2vL3.js → IU7WZTP6-D7pwhQLH.js} +1 -1
- package/out/renderer/assets/{J5J2NR2G-CbQLnnZq.js → J5J2NR2G-SPjkbJgo.js} +4 -4
- package/out/renderer/assets/{JRCWTJEL-xEOyWDIN.js → JRCWTJEL-DT7JLR7k.js} +3 -3
- package/out/renderer/assets/{KHUP5TOH-032p46g-.js → KHUP5TOH-BX0A2YHC.js} +1 -1
- package/out/renderer/assets/{L74FQTH5-CQ_54hNm.js → L74FQTH5-MbDLfIZo.js} +4 -4
- package/out/renderer/assets/{LAV4ZXOS-DvhVMhLR.js → LAV4ZXOS-ClHlsIHg.js} +6 -6
- package/out/renderer/assets/{LBIZYCRR-CMaDdulz.js → LBIZYCRR-DmofT7Vk.js} +7 -7
- package/out/renderer/assets/{LFFXNLRS-BjbqzBYN.js → LFFXNLRS-yLLLefJM.js} +3 -3
- package/out/renderer/assets/{LLLWOAQD-B2zZRpRf.js → LLLWOAQD-DNhT1-qV.js} +1 -1
- package/out/renderer/assets/{LTYQZ5U5-DzI-7yJW.js → LTYQZ5U5-BxUtiilS.js} +8 -8
- package/out/renderer/assets/{NDSCUZ25-C9oT6c6G.js → NDSCUZ25-DltJ5xGa.js} +2 -2
- package/out/renderer/assets/{NMN3IKWL-9IsXehWp.js → NMN3IKWL-BXUYzi9o.js} +9 -9
- package/out/renderer/assets/{NMUA3R2D-B2ZuyfXA.js → NMUA3R2D-CAVxt8OJ.js} +7 -7
- package/out/renderer/assets/{NY5A6PPW-BzmvsXmE.js → NY5A6PPW-B3P5KUoQ.js} +3 -3
- package/out/renderer/assets/{OHJ2EJXK-BEkFEoxu.js → OHJ2EJXK-CKyEtj37.js} +1 -1
- package/out/renderer/assets/{OU2GIT2H-DZQl_5qv.js → OU2GIT2H-i9HfUuBk.js} +4 -4
- package/out/renderer/assets/{PDMLSE6I-C3FMl6Ej.js → PDMLSE6I-BnbSSXbG.js} +2 -2
- package/out/renderer/assets/{PJ7X32S5-BQ3aTkUy.js → PJ7X32S5-Do_rplzd.js} +5 -5
- package/out/renderer/assets/{RLLQ44NJ-Dq15CCQ6.js → RLLQ44NJ-SEvjKAya.js} +7 -7
- package/out/renderer/assets/{S6DWMCK5-KeQNStMI.js → S6DWMCK5-CK9P5x9H.js} +8 -8
- package/out/renderer/assets/{STIOTUT7-ZnewWXB7.js → STIOTUT7-KYZS5tvF.js} +6 -6
- package/out/renderer/assets/{SXSLPWUD-VIPmiOfk.js → SXSLPWUD-ylCpsia5.js} +2 -2
- package/out/renderer/assets/{TR4WJQGX-CQ3dPMLJ.js → TR4WJQGX-DXlqK6NQ.js} +1 -1
- package/out/renderer/assets/{UWRPUF3N-CtgKKvKe.js → UWRPUF3N-7_KSfEv0.js} +1 -1
- package/out/renderer/assets/{VSWIZJ7B-BN-hZ_G_.js → VSWIZJ7B-qmPn48eQ.js} +1 -1
- package/out/renderer/assets/{WM7NR6YK-CghasXna.js → WM7NR6YK-D4oWq6L3.js} +4 -4
- package/out/renderer/assets/{WXKV2YEK-C8qjO_OQ.js → WXKV2YEK-DsK-bqP8.js} +3 -3
- package/out/renderer/assets/{XLHPVVFU-CoRVO17g.js → XLHPVVFU-4_9lhZe2.js} +1 -1
- package/out/renderer/assets/{YNX532HU-DhZCm9iK.js → YNX532HU-C1DPijVc.js} +5 -5
- package/out/renderer/assets/{YUPSMAUO-Brx2G_oh.js → YUPSMAUO-0pM5w-ie.js} +1 -1
- package/out/renderer/assets/{ZFRCZTLK-Cs8fJIgy.js → ZFRCZTLK-4EIJek0V.js} +6 -6
- package/out/renderer/assets/{ZZDR4CN3-DcTVOpcO.js → ZZDR4CN3-B_T2R-Zh.js} +4 -4
- package/out/renderer/assets/{core-Z_paRVMb.js → core-2jWUG3m-.js} +1002 -335
- package/out/renderer/assets/{file-tabs-BCf1cAWp.js → file-tabs-DwqRIh1X.js} +6 -6
- package/out/renderer/assets/{ghostty-web-CdNv377h.js → ghostty-web-DnI2p8KS.js} +1 -1
- package/out/renderer/assets/{highlights-Cjdp9LIq.js → highlights-6LT5DvBO.js} +2 -2
- package/out/renderer/assets/{highlights-DaYW35iB.js → highlights-DmxOEap0.js} +3 -3
- package/out/renderer/assets/icons-D67TrEZV.js +23 -0
- package/out/renderer/assets/{index-_dhRO6Oc.js → index-BnnCv70H.js} +37 -18
- package/out/renderer/assets/{index-fNK5AY6Q.css → index-C-Dal-Bp.css} +307 -3
- package/out/renderer/assets/{kit-E8-H6M0V.js → kit-CdRTRA2T.js} +1398 -527
- package/out/renderer/assets/{langs-BDUDFyts.js → langs-D9nZatrh.js} +1 -1
- package/out/renderer/assets/{lazy-DQmrNfMK.js → lazy-C1DShJVi.js} +3 -3
- package/out/renderer/assets/{loader-byWkNl6P.js → loader-BlmA-DDi.js} +1 -1
- package/out/renderer/assets/{pierre-theme-CsyO3esE.js → pierre-theme-DpuLJ_93.js} +7 -7
- package/out/renderer/assets/{shiki-DxXti3Bm.js → shiki-RupN-xqP.js} +3 -3
- package/out/renderer/assets/{stream-tokenizer-sqhinrU5.js → stream-tokenizer-DLDzyMrK.js} +1 -1
- package/out/renderer/assets/{themes-DGY5d--g.js → themes-B1aebwax.js} +2 -2
- package/out/renderer/assets/{useDetachCleanup-DYbCqwX-.js → useDetachCleanup-BXvhEVk-.js} +2 -2
- package/out/renderer/assets/{useFolderChanges-Y0OqX_nG.js → useFolderChanges-BHQktE6l.js} +3 -3
- package/out/renderer/assets/{vendor-motion-CD5Og8pC.js → vendor-motion-BgQeucLF.js} +3 -3
- package/out/renderer/index.html +5 -5
- package/package.json +2 -2
|
@@ -1,4 +1,65 @@
|
|
|
1
1
|
import { F as Fzf } from "./vendor-BpwX-s_O.js";
|
|
2
|
+
const scriptRel = /* @__PURE__ */ (function detectScriptRel() {
|
|
3
|
+
const relList = typeof document !== "undefined" && document.createElement("link").relList;
|
|
4
|
+
return relList && relList.supports && relList.supports("modulepreload") ? "modulepreload" : "preload";
|
|
5
|
+
})();
|
|
6
|
+
const assetsURL = function(dep, importerUrl) {
|
|
7
|
+
return new URL(dep, importerUrl).href;
|
|
8
|
+
};
|
|
9
|
+
const seen = {};
|
|
10
|
+
const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
11
|
+
let promise = Promise.resolve();
|
|
12
|
+
if (deps && deps.length > 0) {
|
|
13
|
+
let allSettled = function(promises$2) {
|
|
14
|
+
return Promise.all(promises$2.map((p) => Promise.resolve(p).then((value$1) => ({
|
|
15
|
+
status: "fulfilled",
|
|
16
|
+
value: value$1
|
|
17
|
+
}), (reason) => ({
|
|
18
|
+
status: "rejected",
|
|
19
|
+
reason
|
|
20
|
+
}))));
|
|
21
|
+
};
|
|
22
|
+
const links = document.getElementsByTagName("link");
|
|
23
|
+
const cspNonceMeta = document.querySelector("meta[property=csp-nonce]");
|
|
24
|
+
const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");
|
|
25
|
+
promise = allSettled(deps.map((dep) => {
|
|
26
|
+
dep = assetsURL(dep, importerUrl);
|
|
27
|
+
if (dep in seen) return;
|
|
28
|
+
seen[dep] = true;
|
|
29
|
+
const isCss = dep.endsWith(".css");
|
|
30
|
+
const cssSelector = isCss ? '[rel="stylesheet"]' : "";
|
|
31
|
+
if (!!importerUrl) for (let i$1 = links.length - 1; i$1 >= 0; i$1--) {
|
|
32
|
+
const link$1 = links[i$1];
|
|
33
|
+
if (link$1.href === dep && (!isCss || link$1.rel === "stylesheet")) return;
|
|
34
|
+
}
|
|
35
|
+
else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) return;
|
|
36
|
+
const link = document.createElement("link");
|
|
37
|
+
link.rel = isCss ? "stylesheet" : scriptRel;
|
|
38
|
+
if (!isCss) link.as = "script";
|
|
39
|
+
link.crossOrigin = "";
|
|
40
|
+
link.href = dep;
|
|
41
|
+
if (cspNonce) link.setAttribute("nonce", cspNonce);
|
|
42
|
+
document.head.appendChild(link);
|
|
43
|
+
if (isCss) return new Promise((res, rej) => {
|
|
44
|
+
link.addEventListener("load", res);
|
|
45
|
+
link.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`)));
|
|
46
|
+
});
|
|
47
|
+
}));
|
|
48
|
+
}
|
|
49
|
+
function handlePreloadError(err$2) {
|
|
50
|
+
const e$1 = new Event("vite:preloadError", { cancelable: true });
|
|
51
|
+
e$1.payload = err$2;
|
|
52
|
+
window.dispatchEvent(e$1);
|
|
53
|
+
if (!e$1.defaultPrevented) throw err$2;
|
|
54
|
+
}
|
|
55
|
+
return promise.then((res) => {
|
|
56
|
+
for (const item of res || []) {
|
|
57
|
+
if (item.status !== "rejected") continue;
|
|
58
|
+
handlePreloadError(item.reason);
|
|
59
|
+
}
|
|
60
|
+
return baseModule().catch(handlePreloadError);
|
|
61
|
+
});
|
|
62
|
+
};
|
|
2
63
|
const THINKING_LEVELS = [
|
|
3
64
|
"off",
|
|
4
65
|
"minimal",
|
|
@@ -651,67 +712,6 @@ function patchInlineGhost(prev, text, cursor) {
|
|
|
651
712
|
cursor
|
|
652
713
|
};
|
|
653
714
|
}
|
|
654
|
-
const scriptRel = /* @__PURE__ */ (function detectScriptRel() {
|
|
655
|
-
const relList = typeof document !== "undefined" && document.createElement("link").relList;
|
|
656
|
-
return relList && relList.supports && relList.supports("modulepreload") ? "modulepreload" : "preload";
|
|
657
|
-
})();
|
|
658
|
-
const assetsURL = function(dep, importerUrl) {
|
|
659
|
-
return new URL(dep, importerUrl).href;
|
|
660
|
-
};
|
|
661
|
-
const seen = {};
|
|
662
|
-
const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
663
|
-
let promise = Promise.resolve();
|
|
664
|
-
if (deps && deps.length > 0) {
|
|
665
|
-
let allSettled = function(promises$2) {
|
|
666
|
-
return Promise.all(promises$2.map((p) => Promise.resolve(p).then((value$1) => ({
|
|
667
|
-
status: "fulfilled",
|
|
668
|
-
value: value$1
|
|
669
|
-
}), (reason) => ({
|
|
670
|
-
status: "rejected",
|
|
671
|
-
reason
|
|
672
|
-
}))));
|
|
673
|
-
};
|
|
674
|
-
const links = document.getElementsByTagName("link");
|
|
675
|
-
const cspNonceMeta = document.querySelector("meta[property=csp-nonce]");
|
|
676
|
-
const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");
|
|
677
|
-
promise = allSettled(deps.map((dep) => {
|
|
678
|
-
dep = assetsURL(dep, importerUrl);
|
|
679
|
-
if (dep in seen) return;
|
|
680
|
-
seen[dep] = true;
|
|
681
|
-
const isCss = dep.endsWith(".css");
|
|
682
|
-
const cssSelector = isCss ? '[rel="stylesheet"]' : "";
|
|
683
|
-
if (!!importerUrl) for (let i$1 = links.length - 1; i$1 >= 0; i$1--) {
|
|
684
|
-
const link$1 = links[i$1];
|
|
685
|
-
if (link$1.href === dep && (!isCss || link$1.rel === "stylesheet")) return;
|
|
686
|
-
}
|
|
687
|
-
else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) return;
|
|
688
|
-
const link = document.createElement("link");
|
|
689
|
-
link.rel = isCss ? "stylesheet" : scriptRel;
|
|
690
|
-
if (!isCss) link.as = "script";
|
|
691
|
-
link.crossOrigin = "";
|
|
692
|
-
link.href = dep;
|
|
693
|
-
if (cspNonce) link.setAttribute("nonce", cspNonce);
|
|
694
|
-
document.head.appendChild(link);
|
|
695
|
-
if (isCss) return new Promise((res, rej) => {
|
|
696
|
-
link.addEventListener("load", res);
|
|
697
|
-
link.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`)));
|
|
698
|
-
});
|
|
699
|
-
}));
|
|
700
|
-
}
|
|
701
|
-
function handlePreloadError(err$2) {
|
|
702
|
-
const e$1 = new Event("vite:preloadError", { cancelable: true });
|
|
703
|
-
e$1.payload = err$2;
|
|
704
|
-
window.dispatchEvent(e$1);
|
|
705
|
-
if (!e$1.defaultPrevented) throw err$2;
|
|
706
|
-
}
|
|
707
|
-
return promise.then((res) => {
|
|
708
|
-
for (const item of res || []) {
|
|
709
|
-
if (item.status !== "rejected") continue;
|
|
710
|
-
handlePreloadError(item.reason);
|
|
711
|
-
}
|
|
712
|
-
return baseModule().catch(handlePreloadError);
|
|
713
|
-
});
|
|
714
|
-
};
|
|
715
715
|
function githubRefKey(owner, repo, number) {
|
|
716
716
|
return `${owner}/${repo}#${number}`;
|
|
717
717
|
}
|
|
@@ -1980,6 +1980,8 @@ function isVisible(event, settings) {
|
|
|
1980
1980
|
return settings.showCacheNotices || !isCacheNotice(event.notice);
|
|
1981
1981
|
case "spawn-queued":
|
|
1982
1982
|
return settings.transcriptDensity === "compact";
|
|
1983
|
+
case "tool-progress":
|
|
1984
|
+
return false;
|
|
1983
1985
|
default:
|
|
1984
1986
|
return true;
|
|
1985
1987
|
}
|
|
@@ -2083,6 +2085,65 @@ function splitStreamFailure(text) {
|
|
|
2083
2085
|
function mayHaveStreamFailure(text) {
|
|
2084
2086
|
return text.includes("[✗ Streaming failed") || text.includes("[⏹ Streaming was aborted");
|
|
2085
2087
|
}
|
|
2088
|
+
const SHELL_FENCE_LANGUAGES = /* @__PURE__ */ new Set([
|
|
2089
|
+
"bash",
|
|
2090
|
+
"sh",
|
|
2091
|
+
"shell",
|
|
2092
|
+
"zsh",
|
|
2093
|
+
"console"
|
|
2094
|
+
]);
|
|
2095
|
+
const PROMPT_LINE = /^\$ /;
|
|
2096
|
+
function isShellFence(language) {
|
|
2097
|
+
return language !== void 0 && SHELL_FENCE_LANGUAGES.has(language.trim().toLowerCase());
|
|
2098
|
+
}
|
|
2099
|
+
function shellOf(language) {
|
|
2100
|
+
const lang = language.trim().toLowerCase();
|
|
2101
|
+
return lang === "zsh" ? "zsh" : lang === "sh" ? "sh" : "bash";
|
|
2102
|
+
}
|
|
2103
|
+
function shellBlockPlan(code, language) {
|
|
2104
|
+
if (!isShellFence(language) || code.length > 65536) return null;
|
|
2105
|
+
const lines = code.replace(/\r\n?/g, "\n").split("\n");
|
|
2106
|
+
const script = (lines.some((line) => PROMPT_LINE.test(line)) ? lines.filter((line) => PROMPT_LINE.test(line)).map((line) => line.replace(PROMPT_LINE, "")) : lines).join("\n").trim();
|
|
2107
|
+
if (script === "") return null;
|
|
2108
|
+
const commands = script.split("\n").filter((line) => line.trim() !== "" && !line.trim().startsWith("#"));
|
|
2109
|
+
if (commands.length === 0) return null;
|
|
2110
|
+
return {
|
|
2111
|
+
script,
|
|
2112
|
+
shell: shellOf(language),
|
|
2113
|
+
oneLine: commands.length === 1 && !commands[0].trimEnd().endsWith("\\")
|
|
2114
|
+
};
|
|
2115
|
+
}
|
|
2116
|
+
function delimiter(script) {
|
|
2117
|
+
const lines = new Set(script.split("\n"));
|
|
2118
|
+
let name = "ZIDANE_BLOCK";
|
|
2119
|
+
for (let n = 1; lines.has(name); n++) name = `ZIDANE_BLOCK_${n}`;
|
|
2120
|
+
return name;
|
|
2121
|
+
}
|
|
2122
|
+
function writeScript(script) {
|
|
2123
|
+
const end = delimiter(script);
|
|
2124
|
+
return `f=$(mktemp "\${TMPDIR:-/tmp}/zidane-block.XXXXXX") || exit 1
|
|
2125
|
+
cat > "$f" <<'${end}'
|
|
2126
|
+
${script}
|
|
2127
|
+
${end}
|
|
2128
|
+
`;
|
|
2129
|
+
}
|
|
2130
|
+
function blockTerminalInput(plan) {
|
|
2131
|
+
if (plan.oneLine) return `${plan.script}
|
|
2132
|
+
`;
|
|
2133
|
+
return `${writeScript(plan.script).replace(" || exit 1", "")}${plan.shell} "$f"; rm -f "$f"
|
|
2134
|
+
`;
|
|
2135
|
+
}
|
|
2136
|
+
function hash(text) {
|
|
2137
|
+
let h = 2166136261;
|
|
2138
|
+
for (let i = 0; i < text.length; i++) {
|
|
2139
|
+
h ^= text.charCodeAt(i);
|
|
2140
|
+
h = Math.imul(h, 16777619);
|
|
2141
|
+
}
|
|
2142
|
+
return (h >>> 0).toString(16).padStart(8, "0");
|
|
2143
|
+
}
|
|
2144
|
+
function blockRunKey(turnId, code) {
|
|
2145
|
+
return `${turnId}:${hash(code)}`;
|
|
2146
|
+
}
|
|
2086
2147
|
const TERMINAL_HISTORY_MAX_CHARS = 4194304;
|
|
2087
2148
|
const TERMINAL_VIEW_SCROLLBACK = 5e3;
|
|
2088
2149
|
const TERMINAL_VIEW_MAX_LINES = 6e3;
|
|
@@ -2969,6 +3030,7 @@ const DEFAULT_SETTINGS = {
|
|
|
2969
3030
|
compactToolCatalog: false,
|
|
2970
3031
|
codemode: true,
|
|
2971
3032
|
codemodeShowCalls: false,
|
|
3033
|
+
codemodeStreamProgress: false,
|
|
2972
3034
|
sandbox: false,
|
|
2973
3035
|
sandboxNetwork: "allow",
|
|
2974
3036
|
sandboxAllowWrite: "",
|
|
@@ -3661,7 +3723,7 @@ function gruvboxTheme(id, label, p) {
|
|
|
3661
3723
|
}
|
|
3662
3724
|
const GRUVBOX_DARK = /* @__PURE__ */ gruvboxTheme("gruvbox-dark", "Gruvbox Dark", DARK);
|
|
3663
3725
|
const GRUVBOX_LIGHT = /* @__PURE__ */ gruvboxTheme("gruvbox-light", "Gruvbox Light", LIGHT);
|
|
3664
|
-
const TEXT = "#1f2328";
|
|
3726
|
+
const TEXT$1 = "#1f2328";
|
|
3665
3727
|
const DIM = "#656d76";
|
|
3666
3728
|
const MUTE = "#8c959f";
|
|
3667
3729
|
const BORDER = "#d0d7de";
|
|
@@ -3694,7 +3756,7 @@ const LIGHT_THEME = {
|
|
|
3694
3756
|
focusedBackgroundColor: "transparent",
|
|
3695
3757
|
selectedBackgroundColor: "transparent",
|
|
3696
3758
|
selectedTextColor: BRAND,
|
|
3697
|
-
textColor: TEXT,
|
|
3759
|
+
textColor: TEXT$1,
|
|
3698
3760
|
descriptionColor: MUTE,
|
|
3699
3761
|
selectedDescriptionColor: DIM
|
|
3700
3762
|
},
|
|
@@ -3726,7 +3788,7 @@ const LIGHT_THEME = {
|
|
|
3726
3788
|
}
|
|
3727
3789
|
},
|
|
3728
3790
|
syntax: {
|
|
3729
|
-
"default": { fg: TEXT },
|
|
3791
|
+
"default": { fg: TEXT$1 },
|
|
3730
3792
|
"markup.heading": {
|
|
3731
3793
|
fg: BRAND,
|
|
3732
3794
|
bold: true
|
|
@@ -3740,19 +3802,19 @@ const LIGHT_THEME = {
|
|
|
3740
3802
|
bold: true
|
|
3741
3803
|
},
|
|
3742
3804
|
"markup.heading.3": {
|
|
3743
|
-
fg: TEXT,
|
|
3805
|
+
fg: TEXT$1,
|
|
3744
3806
|
bold: true
|
|
3745
3807
|
},
|
|
3746
3808
|
"markup.bold": {
|
|
3747
|
-
fg: TEXT,
|
|
3809
|
+
fg: TEXT$1,
|
|
3748
3810
|
bold: true
|
|
3749
3811
|
},
|
|
3750
3812
|
"markup.strong": {
|
|
3751
|
-
fg: TEXT,
|
|
3813
|
+
fg: TEXT$1,
|
|
3752
3814
|
bold: true
|
|
3753
3815
|
},
|
|
3754
3816
|
"markup.italic": {
|
|
3755
|
-
fg: TEXT,
|
|
3817
|
+
fg: TEXT$1,
|
|
3756
3818
|
italic: true
|
|
3757
3819
|
},
|
|
3758
3820
|
"markup.link": {
|
|
@@ -3804,15 +3866,15 @@ const LIGHT_THEME = {
|
|
|
3804
3866
|
"constructor": { fg: "#953800" },
|
|
3805
3867
|
"attribute": { fg: "#0550ae" },
|
|
3806
3868
|
"tag": { fg: "#116329" },
|
|
3807
|
-
"variable": { fg: TEXT },
|
|
3869
|
+
"variable": { fg: TEXT$1 },
|
|
3808
3870
|
"variable.builtin": { fg: "#0550ae" },
|
|
3809
3871
|
"variable.parameter": { fg: "#953800" },
|
|
3810
3872
|
"variable.member": { fg: "#0550ae" },
|
|
3811
3873
|
"property": { fg: "#0550ae" },
|
|
3812
3874
|
"operator": { fg: "#cf222e" },
|
|
3813
3875
|
"punctuation": { fg: DIM },
|
|
3814
|
-
"punctuation.bracket": { fg: TEXT },
|
|
3815
|
-
"punctuation.delimiter": { fg: TEXT },
|
|
3876
|
+
"punctuation.bracket": { fg: TEXT$1 },
|
|
3877
|
+
"punctuation.delimiter": { fg: TEXT$1 },
|
|
3816
3878
|
"label": { fg: "#0550ae" }
|
|
3817
3879
|
}
|
|
3818
3880
|
};
|
|
@@ -4414,6 +4476,13 @@ const SETTINGS_TOGGLES = [
|
|
|
4414
4476
|
label: "Show codemode tool calls",
|
|
4415
4477
|
description: "List the calls each codemode script makes under its row. Calls that start a subagent always show."
|
|
4416
4478
|
},
|
|
4479
|
+
{
|
|
4480
|
+
category: "agent",
|
|
4481
|
+
key: "codemodeStreamProgress",
|
|
4482
|
+
requires: "codemode",
|
|
4483
|
+
label: "Stream progress",
|
|
4484
|
+
description: "Show which line of a codemode script runs, how many of its calls are done, and what it prints, while it runs."
|
|
4485
|
+
},
|
|
4417
4486
|
{
|
|
4418
4487
|
category: "agent",
|
|
4419
4488
|
key: "codemode",
|
|
@@ -6515,8 +6584,8 @@ function cacheHintText(impact, current = false) {
|
|
|
6515
6584
|
if (current || !impact || impact.keepsCache || impact.expired || impact.tokens < 2e4) return void 0;
|
|
6516
6585
|
return `re-reads ~${formatCount(impact.tokens)} tokens`;
|
|
6517
6586
|
}
|
|
6518
|
-
function parseHex(
|
|
6519
|
-
const h =
|
|
6587
|
+
function parseHex(hex2) {
|
|
6588
|
+
const h = hex2.replace("#", "");
|
|
6520
6589
|
return [
|
|
6521
6590
|
Number.parseInt(h.slice(0, 2), 16),
|
|
6522
6591
|
Number.parseInt(h.slice(2, 4), 16),
|
|
@@ -9426,6 +9495,7 @@ function foldsInCompactShape(shape) {
|
|
|
9426
9495
|
case "spawn-start":
|
|
9427
9496
|
case "spawn-end":
|
|
9428
9497
|
case "spawn-queued":
|
|
9498
|
+
case "tool-progress":
|
|
9429
9499
|
case "command-detail":
|
|
9430
9500
|
return true;
|
|
9431
9501
|
case "tool":
|
|
@@ -10571,6 +10641,550 @@ function gatherCommandNotes(events) {
|
|
|
10571
10641
|
flush();
|
|
10572
10642
|
return out.length === events.length && out.every((e, i) => e === events[i]) ? events : out;
|
|
10573
10643
|
}
|
|
10644
|
+
const ESC = 27;
|
|
10645
|
+
const TEXT = 0;
|
|
10646
|
+
const AFTER_ESC = 1;
|
|
10647
|
+
const CSI = 2;
|
|
10648
|
+
const STRING = 3;
|
|
10649
|
+
const STRING_ESC = 4;
|
|
10650
|
+
function hasAnsi(text) {
|
|
10651
|
+
for (let i = 0; i < text.length; i++) {
|
|
10652
|
+
const code = text.charCodeAt(i);
|
|
10653
|
+
if (code === ESC || code === 155 || code === 157 || code === 13 || code === 8) return true;
|
|
10654
|
+
}
|
|
10655
|
+
return false;
|
|
10656
|
+
}
|
|
10657
|
+
function sameStyle(a, b) {
|
|
10658
|
+
if (a === b) return true;
|
|
10659
|
+
if (!a || !b) return false;
|
|
10660
|
+
return a.fg === b.fg && a.bg === b.bg && a.bold === b.bold && a.dim === b.dim && a.italic === b.italic && a.underline === b.underline && a.inverse === b.inverse;
|
|
10661
|
+
}
|
|
10662
|
+
function hex(n) {
|
|
10663
|
+
return Math.max(0, Math.min(255, n)).toString(16).padStart(2, "0");
|
|
10664
|
+
}
|
|
10665
|
+
function extendedColor(params, i) {
|
|
10666
|
+
if (params[i] === 5) return [params[i + 1] !== void 0 ? Math.max(0, Math.min(255, params[i + 1])) : void 0, i + 2];
|
|
10667
|
+
if (params[i] === 2) return [`#${hex(params[i + 1] ?? 0)}${hex(params[i + 2] ?? 0)}${hex(params[i + 3] ?? 0)}`, i + 4];
|
|
10668
|
+
return [void 0, i + 1];
|
|
10669
|
+
}
|
|
10670
|
+
function applySgr(style, raw) {
|
|
10671
|
+
const params = raw === "" ? [0] : raw.split(/[;:]/).map((p) => p === "" ? 0 : Number(p));
|
|
10672
|
+
let next = { ...style };
|
|
10673
|
+
for (let i = 0; i < params.length; i++) {
|
|
10674
|
+
const p = params[i];
|
|
10675
|
+
if (p === 0) next = {};
|
|
10676
|
+
else if (p === 1) next.bold = true;
|
|
10677
|
+
else if (p === 2) next.dim = true;
|
|
10678
|
+
else if (p === 3) next.italic = true;
|
|
10679
|
+
else if (p === 4) next.underline = true;
|
|
10680
|
+
else if (p === 7) next.inverse = true;
|
|
10681
|
+
else if (p === 22) {
|
|
10682
|
+
delete next.bold;
|
|
10683
|
+
delete next.dim;
|
|
10684
|
+
} else if (p === 23) delete next.italic;
|
|
10685
|
+
else if (p === 24) delete next.underline;
|
|
10686
|
+
else if (p === 27) delete next.inverse;
|
|
10687
|
+
else if (p >= 30 && p <= 37) next.fg = p - 30;
|
|
10688
|
+
else if (p >= 90 && p <= 97) next.fg = p - 90 + 8;
|
|
10689
|
+
else if (p === 39) delete next.fg;
|
|
10690
|
+
else if (p >= 40 && p <= 47) next.bg = p - 40;
|
|
10691
|
+
else if (p >= 100 && p <= 107) next.bg = p - 100 + 8;
|
|
10692
|
+
else if (p === 49) delete next.bg;
|
|
10693
|
+
else if (p === 38 || p === 48) {
|
|
10694
|
+
const [color, after] = extendedColor(params, i + 1);
|
|
10695
|
+
if (color !== void 0) {
|
|
10696
|
+
if (p === 38) next.fg = color;
|
|
10697
|
+
else next.bg = color;
|
|
10698
|
+
}
|
|
10699
|
+
i = after - 1;
|
|
10700
|
+
}
|
|
10701
|
+
}
|
|
10702
|
+
if (Object.keys(next).length === 0) return void 0;
|
|
10703
|
+
return sameStyle(style, next) ? style : next;
|
|
10704
|
+
}
|
|
10705
|
+
function createAnsiLines() {
|
|
10706
|
+
let state = TEXT;
|
|
10707
|
+
let params = "";
|
|
10708
|
+
let style;
|
|
10709
|
+
let line = [];
|
|
10710
|
+
let pendingCr = false;
|
|
10711
|
+
const append = (text) => {
|
|
10712
|
+
if (pendingCr) {
|
|
10713
|
+
line = [];
|
|
10714
|
+
pendingCr = false;
|
|
10715
|
+
}
|
|
10716
|
+
const last = line[line.length - 1];
|
|
10717
|
+
if (last && sameStyle(last.style, style)) {
|
|
10718
|
+
last.text += text;
|
|
10719
|
+
return;
|
|
10720
|
+
}
|
|
10721
|
+
line.push(style ? {
|
|
10722
|
+
text,
|
|
10723
|
+
style
|
|
10724
|
+
} : { text });
|
|
10725
|
+
};
|
|
10726
|
+
const backspace = () => {
|
|
10727
|
+
const last = line[line.length - 1];
|
|
10728
|
+
if (!last) return;
|
|
10729
|
+
last.text = last.text.slice(0, -1);
|
|
10730
|
+
if (last.text === "") line.pop();
|
|
10731
|
+
};
|
|
10732
|
+
return {
|
|
10733
|
+
push(chunk) {
|
|
10734
|
+
const done = [];
|
|
10735
|
+
let i = 0;
|
|
10736
|
+
while (i < chunk.length) {
|
|
10737
|
+
const code = chunk.charCodeAt(i);
|
|
10738
|
+
if (state === TEXT) {
|
|
10739
|
+
if (code === ESC) state = AFTER_ESC;
|
|
10740
|
+
else if (code === 10) {
|
|
10741
|
+
done.push(line);
|
|
10742
|
+
line = [];
|
|
10743
|
+
pendingCr = false;
|
|
10744
|
+
} else if (code === 13) pendingCr = true;
|
|
10745
|
+
else if (code === 8) backspace();
|
|
10746
|
+
else if (code === 155) {
|
|
10747
|
+
state = CSI;
|
|
10748
|
+
params = "";
|
|
10749
|
+
} else if (code === 157) state = STRING;
|
|
10750
|
+
else if (code === 9 || code >= 32 && !(code >= 127 && code < 160)) {
|
|
10751
|
+
let end = i + 1;
|
|
10752
|
+
while (end < chunk.length) {
|
|
10753
|
+
const c2 = chunk.charCodeAt(end);
|
|
10754
|
+
if (c2 === ESC || c2 === 10 || c2 === 13 || c2 === 8 || c2 < 32 && c2 !== 9 || c2 >= 127 && c2 < 160) break;
|
|
10755
|
+
end++;
|
|
10756
|
+
}
|
|
10757
|
+
append(chunk.slice(i, end));
|
|
10758
|
+
i = end;
|
|
10759
|
+
continue;
|
|
10760
|
+
}
|
|
10761
|
+
} else if (state === AFTER_ESC) {
|
|
10762
|
+
if (code === 91) {
|
|
10763
|
+
state = CSI;
|
|
10764
|
+
params = "";
|
|
10765
|
+
} else if (code === 93 || code === 80 || code === 88 || code === 94 || code === 95) state = STRING;
|
|
10766
|
+
else if (code < 32 || code > 47) state = TEXT;
|
|
10767
|
+
} else if (state === CSI) {
|
|
10768
|
+
if (code >= 64 && code <= 126) {
|
|
10769
|
+
if (code === 109) style = applySgr(style, params);
|
|
10770
|
+
state = TEXT;
|
|
10771
|
+
} else if (params.length < 64) params += chunk[i];
|
|
10772
|
+
} else if (state === STRING) {
|
|
10773
|
+
if (code === 7 || code === 156) state = TEXT;
|
|
10774
|
+
else if (code === ESC) state = STRING_ESC;
|
|
10775
|
+
} else state = code === 92 ? TEXT : STRING;
|
|
10776
|
+
i++;
|
|
10777
|
+
}
|
|
10778
|
+
return done;
|
|
10779
|
+
},
|
|
10780
|
+
partial: () => pendingCr ? [] : line
|
|
10781
|
+
};
|
|
10782
|
+
}
|
|
10783
|
+
function parseAnsi(text) {
|
|
10784
|
+
const reader = createAnsiLines();
|
|
10785
|
+
const lines = reader.push(text);
|
|
10786
|
+
lines.push(reader.partial());
|
|
10787
|
+
return lines;
|
|
10788
|
+
}
|
|
10789
|
+
function ansiLineText(spans) {
|
|
10790
|
+
return spans.map((span) => span.text).join("");
|
|
10791
|
+
}
|
|
10792
|
+
function stripAnsi(text) {
|
|
10793
|
+
if (!hasAnsi(text)) return text;
|
|
10794
|
+
return parseAnsi(text).map(ansiLineText).join("\n");
|
|
10795
|
+
}
|
|
10796
|
+
function clipAnsiLine(spans, max) {
|
|
10797
|
+
if (ansiLineText(spans).length <= max) return [...spans];
|
|
10798
|
+
const out = [];
|
|
10799
|
+
let room = max - 1;
|
|
10800
|
+
for (const span of spans) {
|
|
10801
|
+
if (room <= 0) break;
|
|
10802
|
+
const text = span.text.slice(0, room);
|
|
10803
|
+
out.push(span.style ? {
|
|
10804
|
+
text,
|
|
10805
|
+
style: span.style
|
|
10806
|
+
} : { text });
|
|
10807
|
+
room -= text.length;
|
|
10808
|
+
}
|
|
10809
|
+
out.push({ text: "…" });
|
|
10810
|
+
return out;
|
|
10811
|
+
}
|
|
10812
|
+
function createOutputTail(maxLines, lineChars) {
|
|
10813
|
+
const tail = [];
|
|
10814
|
+
const commands = /* @__PURE__ */ new Map();
|
|
10815
|
+
let nextId = 0;
|
|
10816
|
+
const shape = (spans) => {
|
|
10817
|
+
const clipped = clipAnsiLine(spans, lineChars);
|
|
10818
|
+
const text = ansiLineText(clipped);
|
|
10819
|
+
return clipped.some((span) => span.style) ? {
|
|
10820
|
+
text,
|
|
10821
|
+
spans: clipped
|
|
10822
|
+
} : { text };
|
|
10823
|
+
};
|
|
10824
|
+
const push = (entry) => {
|
|
10825
|
+
tail.push(entry);
|
|
10826
|
+
if (tail.length > maxLines) tail.splice(0, tail.length - maxLines);
|
|
10827
|
+
};
|
|
10828
|
+
return {
|
|
10829
|
+
item(stream, text, line) {
|
|
10830
|
+
const at = line !== void 0 ? { line } : {};
|
|
10831
|
+
for (const spans of createAnsiLines().push(`${text}
|
|
10832
|
+
`)) push({
|
|
10833
|
+
id: nextId++,
|
|
10834
|
+
stream,
|
|
10835
|
+
...shape(spans),
|
|
10836
|
+
...at
|
|
10837
|
+
});
|
|
10838
|
+
},
|
|
10839
|
+
chunk(stream, text, line) {
|
|
10840
|
+
const key = `${stream}\0${line ?? ""}`;
|
|
10841
|
+
let command = commands.get(key);
|
|
10842
|
+
if (!command) {
|
|
10843
|
+
command = {
|
|
10844
|
+
reader: createAnsiLines(),
|
|
10845
|
+
stream,
|
|
10846
|
+
...line !== void 0 ? { line } : {}
|
|
10847
|
+
};
|
|
10848
|
+
commands.set(key, command);
|
|
10849
|
+
}
|
|
10850
|
+
const at = line !== void 0 ? { line } : {};
|
|
10851
|
+
for (const spans of command.reader.push(text)) {
|
|
10852
|
+
push({
|
|
10853
|
+
id: command.openId ?? nextId++,
|
|
10854
|
+
stream,
|
|
10855
|
+
...shape(spans),
|
|
10856
|
+
...at
|
|
10857
|
+
});
|
|
10858
|
+
command.openId = void 0;
|
|
10859
|
+
}
|
|
10860
|
+
if (command.reader.partial().length > 0 && command.openId === void 0) command.openId = nextId++;
|
|
10861
|
+
},
|
|
10862
|
+
lines() {
|
|
10863
|
+
const open = [...commands.values()].flatMap(({ reader, stream, line, openId }) => {
|
|
10864
|
+
const spans = reader.partial();
|
|
10865
|
+
return spans.length === 0 || openId === void 0 ? [] : [{
|
|
10866
|
+
id: openId,
|
|
10867
|
+
stream,
|
|
10868
|
+
...shape(spans),
|
|
10869
|
+
...line !== void 0 ? { line } : {}
|
|
10870
|
+
}];
|
|
10871
|
+
});
|
|
10872
|
+
return [...tail, ...open].slice(-maxLines);
|
|
10873
|
+
}
|
|
10874
|
+
};
|
|
10875
|
+
}
|
|
10876
|
+
const SCRIPT_OUTPUT_TAIL_LINES = 8;
|
|
10877
|
+
function upsertToolProgress(events, event) {
|
|
10878
|
+
if (event.kind === "tool-progress") {
|
|
10879
|
+
const at = events.findLastIndex((e) => e.kind === "tool-progress" && e.callId === event.callId && e.childId === event.childId);
|
|
10880
|
+
if (at !== -1) {
|
|
10881
|
+
const next = events.slice();
|
|
10882
|
+
next[at] = event;
|
|
10883
|
+
return next;
|
|
10884
|
+
}
|
|
10885
|
+
}
|
|
10886
|
+
return [...events, event];
|
|
10887
|
+
}
|
|
10888
|
+
function scriptProgressByCall(events) {
|
|
10889
|
+
const found = /* @__PURE__ */ new Map();
|
|
10890
|
+
for (const event of events) if (event.kind === "tool-progress" && event.callId && event.scriptProgress) found.set(scriptProgressKey(event.callId, event.childId), event.scriptProgress);
|
|
10891
|
+
return found;
|
|
10892
|
+
}
|
|
10893
|
+
function scriptProgressKey(callId, childId) {
|
|
10894
|
+
return `${childId ?? ""}\0${callId}`;
|
|
10895
|
+
}
|
|
10896
|
+
const OPTIONS_LINE = /^\s*\/\/ @options:(.*)$/;
|
|
10897
|
+
function readOptions(json) {
|
|
10898
|
+
let value;
|
|
10899
|
+
try {
|
|
10900
|
+
value = JSON.parse(json);
|
|
10901
|
+
} catch {
|
|
10902
|
+
return {
|
|
10903
|
+
other: [],
|
|
10904
|
+
raw: json
|
|
10905
|
+
};
|
|
10906
|
+
}
|
|
10907
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) return {
|
|
10908
|
+
other: [],
|
|
10909
|
+
raw: json
|
|
10910
|
+
};
|
|
10911
|
+
const options = { other: [] };
|
|
10912
|
+
for (const [key, field] of Object.entries(value)) if (key === "timeout_ms" && typeof field === "number") options.timeoutMs = field;
|
|
10913
|
+
else if (key === "max_output_tokens" && typeof field === "number") options.maxOutputTokens = field;
|
|
10914
|
+
else options.other.push({
|
|
10915
|
+
key,
|
|
10916
|
+
value: JSON.stringify(field)
|
|
10917
|
+
});
|
|
10918
|
+
return options;
|
|
10919
|
+
}
|
|
10920
|
+
function scriptProgressView(code, progress, finished, ok = true, result) {
|
|
10921
|
+
const ended = finished || progress?.ended !== void 0;
|
|
10922
|
+
const endedOk = progress?.ended !== void 0 ? progress.ended === "ok" : ok;
|
|
10923
|
+
const error = ended && !endedOk && result ? scriptErrorOf(result) : void 0;
|
|
10924
|
+
const source = code.split("\n").map((line) => line.replace(/\r$/, ""));
|
|
10925
|
+
const optionsMatch = source[0] !== void 0 ? OPTIONS_LINE.exec(source[0]) : null;
|
|
10926
|
+
const options = optionsMatch ? readOptions(optionsMatch[1].trim()) : void 0;
|
|
10927
|
+
let first = optionsMatch ? 1 : 0;
|
|
10928
|
+
while (first < source.length && source[first].trim() === "") first++;
|
|
10929
|
+
let last = source.length - 1;
|
|
10930
|
+
while (last >= first && source[last].trim() === "") last--;
|
|
10931
|
+
const byLine = new Map(progress?.lines.map((entry) => [entry.line, entry]));
|
|
10932
|
+
const furthest = progress?.lines.length ? progress.lines[progress.lines.length - 1].line : 0;
|
|
10933
|
+
const reached = ended && endedOk ? Number.POSITIVE_INFINITY : furthest;
|
|
10934
|
+
const lines = [];
|
|
10935
|
+
for (let i = first; i <= last; i++) {
|
|
10936
|
+
const number = i + 1;
|
|
10937
|
+
const entry = byLine.get(number);
|
|
10938
|
+
const state = error?.line === number ? "failed" : !progress ? "passed" : entry ? entry.status === "running" ? "running" : entry.status === "ok" ? "done" : "failed" : number <= reached ? "passed" : "idle";
|
|
10939
|
+
lines.push({
|
|
10940
|
+
number,
|
|
10941
|
+
label: number - first,
|
|
10942
|
+
text: source[i],
|
|
10943
|
+
state,
|
|
10944
|
+
calls: entry?.calls ?? 0
|
|
10945
|
+
});
|
|
10946
|
+
}
|
|
10947
|
+
const lastLine = lines.at(-1);
|
|
10948
|
+
if (progress && ended && endedOk && lastLine?.state === "passed") lastLine.state = "done";
|
|
10949
|
+
const done = progress?.done ?? 0;
|
|
10950
|
+
const total = progress ? countOnceCallSites(code) : void 0;
|
|
10951
|
+
const exact = total !== void 0 && done + (progress?.running ?? 0) <= total;
|
|
10952
|
+
const running = progress?.lines.find((entry) => entry.status === "running")?.line;
|
|
10953
|
+
return {
|
|
10954
|
+
lines,
|
|
10955
|
+
...options !== void 0 ? { options } : {},
|
|
10956
|
+
tracked: progress !== void 0,
|
|
10957
|
+
done,
|
|
10958
|
+
running: progress?.running ?? 0,
|
|
10959
|
+
failed: progress?.failed ?? 0,
|
|
10960
|
+
...exact ? {
|
|
10961
|
+
total,
|
|
10962
|
+
percent: ended && endedOk ? 100 : Math.min(100, Math.round(done / total * 100))
|
|
10963
|
+
} : {},
|
|
10964
|
+
...!ended && progress ? { active: running ?? (furthest || void 0) } : {},
|
|
10965
|
+
output: progress?.output ?? [],
|
|
10966
|
+
...error && lines.some((line) => line.number === error.line) ? { error } : {}
|
|
10967
|
+
};
|
|
10968
|
+
}
|
|
10969
|
+
const SCRIPT_ERROR = /^Script error: (.+)$/m;
|
|
10970
|
+
const EXCERPT_LINE = /^(\d+) \| /m;
|
|
10971
|
+
function scriptErrorOf(result) {
|
|
10972
|
+
const message = SCRIPT_ERROR.exec(result)?.[1]?.trim();
|
|
10973
|
+
const line = EXCERPT_LINE.exec(result)?.[1];
|
|
10974
|
+
return message && line ? {
|
|
10975
|
+
line: Number(line),
|
|
10976
|
+
message
|
|
10977
|
+
} : void 0;
|
|
10978
|
+
}
|
|
10979
|
+
function maskScriptSource(code) {
|
|
10980
|
+
const out = code.split("");
|
|
10981
|
+
const blank = (from, to) => {
|
|
10982
|
+
for (let k = from; k < to; k++) if (out[k] !== "\n") out[k] = " ";
|
|
10983
|
+
};
|
|
10984
|
+
const templates = [];
|
|
10985
|
+
let braces = 0;
|
|
10986
|
+
let prev = "";
|
|
10987
|
+
let i = 0;
|
|
10988
|
+
const n = code.length;
|
|
10989
|
+
const templateText = () => {
|
|
10990
|
+
const start = i;
|
|
10991
|
+
while (i < n) {
|
|
10992
|
+
const c2 = code[i];
|
|
10993
|
+
if (c2 === "\\") {
|
|
10994
|
+
i += 2;
|
|
10995
|
+
continue;
|
|
10996
|
+
}
|
|
10997
|
+
if (c2 === "`") {
|
|
10998
|
+
blank(start, i);
|
|
10999
|
+
i++;
|
|
11000
|
+
prev = "`";
|
|
11001
|
+
return;
|
|
11002
|
+
}
|
|
11003
|
+
if (c2 === "$" && code[i + 1] === "{") {
|
|
11004
|
+
blank(start, i);
|
|
11005
|
+
templates.push(braces);
|
|
11006
|
+
i += 2;
|
|
11007
|
+
prev = "{";
|
|
11008
|
+
return;
|
|
11009
|
+
}
|
|
11010
|
+
i++;
|
|
11011
|
+
}
|
|
11012
|
+
blank(start, n);
|
|
11013
|
+
};
|
|
11014
|
+
while (i < n) {
|
|
11015
|
+
const c2 = code[i];
|
|
11016
|
+
if (c2 === "/" && code[i + 1] === "/") {
|
|
11017
|
+
const end = code.indexOf("\n", i);
|
|
11018
|
+
blank(i, end === -1 ? n : end);
|
|
11019
|
+
i = end === -1 ? n : end;
|
|
11020
|
+
continue;
|
|
11021
|
+
}
|
|
11022
|
+
if (c2 === "/" && code[i + 1] === "*") {
|
|
11023
|
+
const end = code.indexOf("*/", i + 2);
|
|
11024
|
+
blank(i, end === -1 ? n : end + 2);
|
|
11025
|
+
i = end === -1 ? n : end + 2;
|
|
11026
|
+
continue;
|
|
11027
|
+
}
|
|
11028
|
+
if (c2 === '"' || c2 === "'") {
|
|
11029
|
+
let j = i + 1;
|
|
11030
|
+
while (j < n && code[j] !== c2 && code[j] !== "\n") j += code[j] === "\\" ? 2 : 1;
|
|
11031
|
+
blank(i + 1, Math.min(j, n));
|
|
11032
|
+
i = j + 1;
|
|
11033
|
+
prev = c2;
|
|
11034
|
+
continue;
|
|
11035
|
+
}
|
|
11036
|
+
if (c2 === "`") {
|
|
11037
|
+
i++;
|
|
11038
|
+
templateText();
|
|
11039
|
+
continue;
|
|
11040
|
+
}
|
|
11041
|
+
if (c2 === "/" && (prev === "" || "(,=:[!&|?{};+-*%<>~^".includes(prev))) {
|
|
11042
|
+
let j = i + 1;
|
|
11043
|
+
let inClass = false;
|
|
11044
|
+
while (j < n && code[j] !== "\n") {
|
|
11045
|
+
const d = code[j];
|
|
11046
|
+
if (d === "\\") {
|
|
11047
|
+
j += 2;
|
|
11048
|
+
continue;
|
|
11049
|
+
}
|
|
11050
|
+
if (d === "[") inClass = true;
|
|
11051
|
+
else if (d === "]") inClass = false;
|
|
11052
|
+
else if (d === "/" && !inClass) break;
|
|
11053
|
+
j++;
|
|
11054
|
+
}
|
|
11055
|
+
blank(i + 1, Math.min(j, n));
|
|
11056
|
+
i = j + 1;
|
|
11057
|
+
prev = ")";
|
|
11058
|
+
continue;
|
|
11059
|
+
}
|
|
11060
|
+
if (c2 === "{") braces++;
|
|
11061
|
+
else if (c2 === "}") {
|
|
11062
|
+
if (templates.length > 0 && templates[templates.length - 1] === braces) {
|
|
11063
|
+
templates.pop();
|
|
11064
|
+
i++;
|
|
11065
|
+
templateText();
|
|
11066
|
+
continue;
|
|
11067
|
+
}
|
|
11068
|
+
braces--;
|
|
11069
|
+
}
|
|
11070
|
+
if (!/\s/.test(c2)) prev = /[\w$]/.test(c2) ? "w" : c2;
|
|
11071
|
+
i++;
|
|
11072
|
+
}
|
|
11073
|
+
return out.join("");
|
|
11074
|
+
}
|
|
11075
|
+
const TOOL_CALL = /\btools\s*(?:\.\s*[A-Z_$][\w$]*|\[\s*(["'`])\s*\1\s*\])\s*\(/gi;
|
|
11076
|
+
const TOOL_REF = /\btools\b/g;
|
|
11077
|
+
const SH_CALL = /(?<![\w$.])sh\s*\(/g;
|
|
11078
|
+
const SH_REF = /(?<![\w$.])sh\b/g;
|
|
11079
|
+
const WORD = /[\w$]/;
|
|
11080
|
+
function countOnceCallSites(code) {
|
|
11081
|
+
const masked = maskScriptSource(code);
|
|
11082
|
+
const sites = /* @__PURE__ */ new Set();
|
|
11083
|
+
for (const match of masked.matchAll(TOOL_CALL)) sites.add(match.index);
|
|
11084
|
+
if ((masked.match(TOOL_REF)?.length ?? 0) !== sites.size) return void 0;
|
|
11085
|
+
const shCalls = [...masked.matchAll(SH_CALL)];
|
|
11086
|
+
if ((masked.match(SH_REF)?.length ?? 0) !== shCalls.length) return void 0;
|
|
11087
|
+
for (const match of shCalls) sites.add(match.index);
|
|
11088
|
+
if (sites.size === 0) return void 0;
|
|
11089
|
+
const stack = [];
|
|
11090
|
+
let pending = null;
|
|
11091
|
+
let nextParen = null;
|
|
11092
|
+
const repeating = () => stack.some((scope) => scope.repeats);
|
|
11093
|
+
const openBody = () => {
|
|
11094
|
+
if (pending === "loopBody") stack.push({
|
|
11095
|
+
close: "stmt",
|
|
11096
|
+
repeats: true
|
|
11097
|
+
});
|
|
11098
|
+
else if (pending === "arrowBody") stack.push({
|
|
11099
|
+
close: "expr",
|
|
11100
|
+
repeats: true
|
|
11101
|
+
});
|
|
11102
|
+
pending = null;
|
|
11103
|
+
};
|
|
11104
|
+
const closeTo = (close) => {
|
|
11105
|
+
while (stack.length > 0) {
|
|
11106
|
+
const scope = stack.pop();
|
|
11107
|
+
if (scope.close === close) return scope;
|
|
11108
|
+
}
|
|
11109
|
+
};
|
|
11110
|
+
const popWhile = (closes) => {
|
|
11111
|
+
while (stack.length > 0 && closes.includes(stack[stack.length - 1].close)) stack.pop();
|
|
11112
|
+
};
|
|
11113
|
+
let i = 0;
|
|
11114
|
+
const n = masked.length;
|
|
11115
|
+
while (i < n) {
|
|
11116
|
+
const c2 = masked[i];
|
|
11117
|
+
if (/\s/.test(c2)) {
|
|
11118
|
+
i++;
|
|
11119
|
+
continue;
|
|
11120
|
+
}
|
|
11121
|
+
if (WORD.test(c2)) {
|
|
11122
|
+
let j = i;
|
|
11123
|
+
while (j < n && WORD.test(masked[j])) j++;
|
|
11124
|
+
const word = masked.slice(i, j);
|
|
11125
|
+
openBody();
|
|
11126
|
+
if (sites.has(i) && repeating()) return void 0;
|
|
11127
|
+
if (word === "for" || word === "while") nextParen = "loop";
|
|
11128
|
+
else if (word === "if" || word === "switch" || word === "catch" || word === "with") nextParen = "cond";
|
|
11129
|
+
else if (word === "function") nextParen = "fn";
|
|
11130
|
+
else if (word === "do") pending = "loopBody";
|
|
11131
|
+
i = j;
|
|
11132
|
+
continue;
|
|
11133
|
+
}
|
|
11134
|
+
if (c2 === "=" && masked[i + 1] === ">") {
|
|
11135
|
+
pending = "arrowBody";
|
|
11136
|
+
i += 2;
|
|
11137
|
+
continue;
|
|
11138
|
+
}
|
|
11139
|
+
if (c2 === "{") {
|
|
11140
|
+
const repeats = pending === "loopBody" || pending === "fnBody" || pending === "braceIsFn" || pending === "arrowBody";
|
|
11141
|
+
stack.push({
|
|
11142
|
+
close: "}",
|
|
11143
|
+
repeats
|
|
11144
|
+
});
|
|
11145
|
+
pending = null;
|
|
11146
|
+
i++;
|
|
11147
|
+
continue;
|
|
11148
|
+
}
|
|
11149
|
+
if (c2 === ";") {
|
|
11150
|
+
popWhile(["stmt", "expr"]);
|
|
11151
|
+
pending = null;
|
|
11152
|
+
i++;
|
|
11153
|
+
continue;
|
|
11154
|
+
}
|
|
11155
|
+
if (c2 === ",") {
|
|
11156
|
+
popWhile(["expr"]);
|
|
11157
|
+
pending = null;
|
|
11158
|
+
i++;
|
|
11159
|
+
continue;
|
|
11160
|
+
}
|
|
11161
|
+
if (c2 === ")" || c2 === "]" || c2 === "}") {
|
|
11162
|
+
const scope = closeTo(c2);
|
|
11163
|
+
pending = null;
|
|
11164
|
+
if (c2 === ")" && scope) {
|
|
11165
|
+
if (scope.kind === "loop") pending = "loopBody";
|
|
11166
|
+
else if (scope.kind === "fn") pending = "fnBody";
|
|
11167
|
+
else if (scope.kind === "other") pending = "braceIsFn";
|
|
11168
|
+
}
|
|
11169
|
+
i++;
|
|
11170
|
+
continue;
|
|
11171
|
+
}
|
|
11172
|
+
openBody();
|
|
11173
|
+
if (c2 === "(") {
|
|
11174
|
+
stack.push({
|
|
11175
|
+
close: ")",
|
|
11176
|
+
repeats: false,
|
|
11177
|
+
kind: nextParen ?? "other"
|
|
11178
|
+
});
|
|
11179
|
+
nextParen = null;
|
|
11180
|
+
} else if (c2 === "[") stack.push({
|
|
11181
|
+
close: "]",
|
|
11182
|
+
repeats: false
|
|
11183
|
+
});
|
|
11184
|
+
i++;
|
|
11185
|
+
}
|
|
11186
|
+
return sites.size;
|
|
11187
|
+
}
|
|
10574
11188
|
const SYNC_CATEGORIES = [
|
|
10575
11189
|
"settings",
|
|
10576
11190
|
"safelists",
|
|
@@ -10639,12 +11253,12 @@ function syncMarkerOf(status, field) {
|
|
|
10639
11253
|
return null;
|
|
10640
11254
|
}
|
|
10641
11255
|
function extensionMark(input) {
|
|
11256
|
+
const native = nativeExtensionByName(input.nativeName ?? input.id);
|
|
10642
11257
|
const own = input.icon?.gui?.trim();
|
|
10643
|
-
if (own) return {
|
|
11258
|
+
if (own && !(native?.brand && own === native.icon?.gui?.trim())) return {
|
|
10644
11259
|
kind: "icon",
|
|
10645
11260
|
gui: own
|
|
10646
11261
|
};
|
|
10647
|
-
const native = nativeExtensionByName(input.nativeName ?? input.id);
|
|
10648
11262
|
if (native?.brand) return {
|
|
10649
11263
|
kind: "brand",
|
|
10650
11264
|
brand: native.brand
|
|
@@ -10935,8 +11549,47 @@ function modelSections(s, now, modelName) {
|
|
|
10935
11549
|
}
|
|
10936
11550
|
return sections;
|
|
10937
11551
|
}
|
|
11552
|
+
async function runBlockOnHost(client, sessionId, request, options = {}) {
|
|
11553
|
+
let runId = null;
|
|
11554
|
+
const early = [];
|
|
11555
|
+
let finish;
|
|
11556
|
+
const ended = new Promise((resolve) => {
|
|
11557
|
+
finish = resolve;
|
|
11558
|
+
});
|
|
11559
|
+
const apply = (signal) => {
|
|
11560
|
+
if (signal.kind === "block-run:data") options.onOutput?.(signal.stream, signal.chunk);
|
|
11561
|
+
else finish(signal);
|
|
11562
|
+
};
|
|
11563
|
+
const unsubscribe = client.onSignal((signal) => {
|
|
11564
|
+
if (signal.kind !== "block-run:data" && signal.kind !== "block-run:end") return;
|
|
11565
|
+
if (runId === null) early.push(signal);
|
|
11566
|
+
else if (signal.runId === runId) apply(signal);
|
|
11567
|
+
});
|
|
11568
|
+
try {
|
|
11569
|
+
runId = (await client.call("sessions.runBlock", {
|
|
11570
|
+
sessionId,
|
|
11571
|
+
...request
|
|
11572
|
+
})).runId;
|
|
11573
|
+
for (const signal of early.splice(0)) if (signal.runId === runId) apply(signal);
|
|
11574
|
+
const id = runId;
|
|
11575
|
+
const onAbort = () => {
|
|
11576
|
+
client.call("sessions.runBlockCancel", { runId: id }).catch(() => void 0);
|
|
11577
|
+
};
|
|
11578
|
+
options.signal?.addEventListener("abort", onAbort, { once: true });
|
|
11579
|
+
if (options.signal?.aborted) onAbort();
|
|
11580
|
+
try {
|
|
11581
|
+
const end = await ended;
|
|
11582
|
+
if (!end.run) throw new Error(end.error ?? "The block did not run.");
|
|
11583
|
+
return end.run;
|
|
11584
|
+
} finally {
|
|
11585
|
+
options.signal?.removeEventListener("abort", onAbort);
|
|
11586
|
+
}
|
|
11587
|
+
} finally {
|
|
11588
|
+
unsubscribe();
|
|
11589
|
+
}
|
|
11590
|
+
}
|
|
10938
11591
|
export {
|
|
10939
|
-
|
|
11592
|
+
DIFFS_PANEL_ID as $,
|
|
10940
11593
|
APPROVAL_MODE_OPTIONS as A,
|
|
10941
11594
|
fmtTokens as B,
|
|
10942
11595
|
parseCommandInvocation as C,
|
|
@@ -10947,274 +11600,288 @@ export {
|
|
|
10947
11600
|
githubRefKey as H,
|
|
10948
11601
|
isFenceClose as I,
|
|
10949
11602
|
parseFenceOpen as J,
|
|
10950
|
-
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
|
|
11603
|
+
isShellFence as K,
|
|
11604
|
+
nameFromModelId as L,
|
|
11605
|
+
hasAnsi as M,
|
|
11606
|
+
parseAnsi as N,
|
|
10954
11607
|
ONBOARDING_WORDS as O,
|
|
10955
|
-
|
|
10956
|
-
|
|
11608
|
+
scriptProgressView as P,
|
|
11609
|
+
SCRIPT_OUTPUT_TAIL_LINES as Q,
|
|
10957
11610
|
RUN_WAITING_LABEL as R,
|
|
10958
11611
|
SYNC_CATEGORY_INFO as S,
|
|
10959
|
-
|
|
10960
|
-
|
|
10961
|
-
|
|
10962
|
-
|
|
10963
|
-
|
|
10964
|
-
|
|
10965
|
-
|
|
11612
|
+
formatRunDuration as T,
|
|
11613
|
+
toolInputCode as U,
|
|
11614
|
+
summarizeOutcomes as V,
|
|
11615
|
+
computeLineDiff as W,
|
|
11616
|
+
heatmapThresholds as X,
|
|
11617
|
+
daysEndingAt as Y,
|
|
11618
|
+
heatmapLevel as Z,
|
|
10966
11619
|
__vitePreload as _,
|
|
10967
11620
|
parseBindingSpecs as a,
|
|
10968
|
-
|
|
10969
|
-
|
|
10970
|
-
|
|
10971
|
-
|
|
10972
|
-
|
|
10973
|
-
|
|
10974
|
-
|
|
10975
|
-
|
|
10976
|
-
|
|
10977
|
-
|
|
10978
|
-
|
|
10979
|
-
|
|
10980
|
-
|
|
10981
|
-
|
|
10982
|
-
|
|
10983
|
-
|
|
10984
|
-
|
|
10985
|
-
|
|
10986
|
-
|
|
10987
|
-
|
|
10988
|
-
|
|
10989
|
-
|
|
10990
|
-
|
|
10991
|
-
|
|
10992
|
-
|
|
10993
|
-
|
|
10994
|
-
|
|
10995
|
-
|
|
10996
|
-
|
|
10997
|
-
|
|
10998
|
-
|
|
10999
|
-
|
|
11000
|
-
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11021
|
-
|
|
11022
|
-
|
|
11023
|
-
|
|
11024
|
-
|
|
11025
|
-
|
|
11026
|
-
|
|
11027
|
-
|
|
11028
|
-
|
|
11029
|
-
|
|
11030
|
-
|
|
11031
|
-
|
|
11621
|
+
NATIVE_EXTENSIONS as a$,
|
|
11622
|
+
FILES_PANEL_ID as a0,
|
|
11623
|
+
blockRunKey as a1,
|
|
11624
|
+
createOutputTail as a2,
|
|
11625
|
+
smoothCharsForTick as a3,
|
|
11626
|
+
takeChars as a4,
|
|
11627
|
+
scriptProgressByCall as a5,
|
|
11628
|
+
isUserBashEvent as a6,
|
|
11629
|
+
scriptProgressKey as a7,
|
|
11630
|
+
formatToolCall as a8,
|
|
11631
|
+
displayNameFor as a9,
|
|
11632
|
+
resolveSessionSpace as aA,
|
|
11633
|
+
isExtensionSpaceId as aB,
|
|
11634
|
+
compileQuery as aC,
|
|
11635
|
+
renderTemplate as aD,
|
|
11636
|
+
readField as aE,
|
|
11637
|
+
validateQuery as aF,
|
|
11638
|
+
validateGroupBy as aG,
|
|
11639
|
+
validateSort as aH,
|
|
11640
|
+
viewQuery as aI,
|
|
11641
|
+
SessionQueryError as aJ,
|
|
11642
|
+
normalizeSpaces as aK,
|
|
11643
|
+
activeSpaceOf as aL,
|
|
11644
|
+
sessionDirLabel as aM,
|
|
11645
|
+
projectNameOf as aN,
|
|
11646
|
+
formatCostLabel as aO,
|
|
11647
|
+
rememberableChain as aP,
|
|
11648
|
+
QUEUE_PANEL_ID as aQ,
|
|
11649
|
+
INBOX_PANEL_ID as aR,
|
|
11650
|
+
TODOS_PANEL_ID as aS,
|
|
11651
|
+
modelDisplayName as aT,
|
|
11652
|
+
settingKeywords as aU,
|
|
11653
|
+
toggleApplies as aV,
|
|
11654
|
+
requirementMet as aW,
|
|
11655
|
+
toggleHeldOn as aX,
|
|
11656
|
+
bindingAlternatives as aY,
|
|
11657
|
+
nativeExtensionByName as aZ,
|
|
11658
|
+
extensionMark as a_,
|
|
11659
|
+
spawnParents as aa,
|
|
11660
|
+
summarizeTools as ab,
|
|
11661
|
+
planFold as ac,
|
|
11662
|
+
noteLabel as ad,
|
|
11663
|
+
thoughtLabel as ae,
|
|
11664
|
+
toolOverview as af,
|
|
11665
|
+
foldSummary as ag,
|
|
11666
|
+
foldsInCompactShape as ah,
|
|
11667
|
+
createRunStopMarker as ai,
|
|
11668
|
+
mergeTargetIndex as aj,
|
|
11669
|
+
finalizeStreamingMarkdown as ak,
|
|
11670
|
+
upsertToolProgress as al,
|
|
11671
|
+
ownerOf as am,
|
|
11672
|
+
appendThinkingLines as an,
|
|
11673
|
+
appendMarkdownDelta as ao,
|
|
11674
|
+
reconcileEvents as ap,
|
|
11675
|
+
retagUserPromptEventsFromRefs as aq,
|
|
11676
|
+
finalizeStreamingMarkdownForOwner as ar,
|
|
11677
|
+
discardThinking as as,
|
|
11678
|
+
parseMachineKind as at,
|
|
11679
|
+
orderByMachine as au,
|
|
11680
|
+
machineBlockedReason as av,
|
|
11681
|
+
inferPromptRefs as aw,
|
|
11682
|
+
titleFromText as ax,
|
|
11683
|
+
groupRows as ay,
|
|
11684
|
+
DEFAULT_SPACE_ID as az,
|
|
11032
11685
|
SYNC_MODE_LABEL as b,
|
|
11033
|
-
|
|
11034
|
-
|
|
11035
|
-
|
|
11036
|
-
|
|
11037
|
-
|
|
11038
|
-
|
|
11039
|
-
|
|
11040
|
-
|
|
11041
|
-
|
|
11042
|
-
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
|
|
11060
|
-
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
|
|
11068
|
-
|
|
11069
|
-
|
|
11070
|
-
|
|
11071
|
-
|
|
11072
|
-
|
|
11073
|
-
|
|
11074
|
-
|
|
11075
|
-
|
|
11076
|
-
|
|
11077
|
-
|
|
11078
|
-
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11086
|
-
|
|
11087
|
-
|
|
11088
|
-
|
|
11089
|
-
|
|
11090
|
-
|
|
11091
|
-
|
|
11092
|
-
|
|
11093
|
-
|
|
11094
|
-
|
|
11095
|
-
|
|
11096
|
-
|
|
11686
|
+
stripAnsi as b$,
|
|
11687
|
+
DEFAULT_EXTENSION_SOURCE_UNREACHABLE as b0,
|
|
11688
|
+
skillCategory as b1,
|
|
11689
|
+
skillPickOf as b2,
|
|
11690
|
+
RECOMMENDED_SKILL_SOURCES as b3,
|
|
11691
|
+
githubPreviewImageUrl as b4,
|
|
11692
|
+
githubAvatarUrl as b5,
|
|
11693
|
+
DEFAULT_EXTENSION_SOURCE as b6,
|
|
11694
|
+
skillTokenWeights as b7,
|
|
11695
|
+
formatTokens as b8,
|
|
11696
|
+
instructionPreviewLines as b9,
|
|
11697
|
+
parseModelSetting as bA,
|
|
11698
|
+
DEFAULT_MODEL_PICK as bB,
|
|
11699
|
+
estimateReadout as bC,
|
|
11700
|
+
formatEstimate as bD,
|
|
11701
|
+
previewLine as bE,
|
|
11702
|
+
spawnStartParts as bF,
|
|
11703
|
+
runStatusKey as bG,
|
|
11704
|
+
runFoldStatus as bH,
|
|
11705
|
+
RUN_STATUS_TIME_MS as bI,
|
|
11706
|
+
formatElapsed as bJ,
|
|
11707
|
+
CONTINUE_PROMPT as bK,
|
|
11708
|
+
SESSION_EVENT_STATUS_STYLE as bL,
|
|
11709
|
+
sessionEventMeta as bM,
|
|
11710
|
+
sessionEventExcerpt as bN,
|
|
11711
|
+
shortSessionId as bO,
|
|
11712
|
+
describeSpawnEnd as bP,
|
|
11713
|
+
ATTACHMENT_SNIFF_BYTES as bQ,
|
|
11714
|
+
planAttachment as bR,
|
|
11715
|
+
formatBytes as bS,
|
|
11716
|
+
MAX_IMAGE_ATTACHMENT_BYTES as bT,
|
|
11717
|
+
formatCostUsd as bU,
|
|
11718
|
+
formatTokenCount as bV,
|
|
11719
|
+
formatRunReceiptCells as bW,
|
|
11720
|
+
RUN_RECEIPT_SWITCH_GLYPH as bX,
|
|
11721
|
+
RUN_RECEIPT_TURN_GLYPH as bY,
|
|
11722
|
+
shellBlockPlan as bZ,
|
|
11723
|
+
blockTerminalInput as b_,
|
|
11724
|
+
instructionOriginBadge as ba,
|
|
11725
|
+
filterLogRecords as bb,
|
|
11726
|
+
formatLogLine as bc,
|
|
11727
|
+
LOG_LEVEL_CYCLE as bd,
|
|
11728
|
+
groupSkillPicks as be,
|
|
11729
|
+
enabledMcpsWith as bf,
|
|
11730
|
+
MCP_KEY_REFUSED_HINT as bg,
|
|
11731
|
+
MCP_STATUS_LABEL as bh,
|
|
11732
|
+
MCP_TRANSPORTS as bi,
|
|
11733
|
+
CONNECTORS as bj,
|
|
11734
|
+
connectorInstalled as bk,
|
|
11735
|
+
ageString as bl,
|
|
11736
|
+
validateMcpForm as bm,
|
|
11737
|
+
DEFAULT_OAUTH_ACCOUNT_LABEL as bn,
|
|
11738
|
+
providerBrand as bo,
|
|
11739
|
+
currentModelKeys as bp,
|
|
11740
|
+
customModelTargets as bq,
|
|
11741
|
+
modelPickKey as br,
|
|
11742
|
+
pickPrimaryKeyed as bs,
|
|
11743
|
+
chainAccountConflict as bt,
|
|
11744
|
+
positionKeyed as bu,
|
|
11745
|
+
toggleKeyed as bv,
|
|
11746
|
+
reorderKeyed as bw,
|
|
11747
|
+
cacheHintText as bx,
|
|
11748
|
+
CACHE_HINT_MIN_TOKENS as by,
|
|
11749
|
+
formatModelSetting as bz,
|
|
11097
11750
|
canonicalKeyName as c,
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
11102
|
-
|
|
11103
|
-
|
|
11104
|
-
|
|
11105
|
-
|
|
11106
|
-
|
|
11107
|
-
|
|
11108
|
-
|
|
11109
|
-
|
|
11110
|
-
|
|
11111
|
-
|
|
11112
|
-
|
|
11113
|
-
|
|
11114
|
-
|
|
11115
|
-
|
|
11116
|
-
|
|
11117
|
-
|
|
11118
|
-
|
|
11119
|
-
|
|
11120
|
-
|
|
11121
|
-
|
|
11122
|
-
|
|
11123
|
-
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
-
|
|
11130
|
-
|
|
11131
|
-
|
|
11132
|
-
|
|
11133
|
-
|
|
11134
|
-
|
|
11135
|
-
|
|
11136
|
-
|
|
11137
|
-
|
|
11138
|
-
|
|
11139
|
-
|
|
11140
|
-
|
|
11141
|
-
|
|
11142
|
-
|
|
11143
|
-
|
|
11144
|
-
|
|
11145
|
-
|
|
11146
|
-
|
|
11147
|
-
|
|
11148
|
-
|
|
11149
|
-
|
|
11150
|
-
|
|
11151
|
-
|
|
11152
|
-
|
|
11153
|
-
|
|
11154
|
-
|
|
11155
|
-
|
|
11156
|
-
|
|
11157
|
-
|
|
11158
|
-
|
|
11159
|
-
|
|
11160
|
-
|
|
11161
|
-
|
|
11751
|
+
removeTodo as c$,
|
|
11752
|
+
isCacheNotice as c0,
|
|
11753
|
+
gatherCommandNotes as c1,
|
|
11754
|
+
turnSelectionOwnership as c2,
|
|
11755
|
+
runTailActivity as c3,
|
|
11756
|
+
transcriptPresetOf as c4,
|
|
11757
|
+
transcriptPreset as c5,
|
|
11758
|
+
TRANSCRIPT_PRESETS as c6,
|
|
11759
|
+
ONBOARDING_PREVIEW_EVENTS as c7,
|
|
11760
|
+
autoTextModelId as c8,
|
|
11761
|
+
newSpaceId as c9,
|
|
11762
|
+
machineSetupCommand as cA,
|
|
11763
|
+
clockText as cB,
|
|
11764
|
+
machineVersionDiffers as cC,
|
|
11765
|
+
clockOrDateText as cD,
|
|
11766
|
+
lastSeenText as cE,
|
|
11767
|
+
HOST_TOOLS as cF,
|
|
11768
|
+
capabilityTags as cG,
|
|
11769
|
+
hasTool as cH,
|
|
11770
|
+
syncAgo as cI,
|
|
11771
|
+
SYNC_MODES as cJ,
|
|
11772
|
+
SYNC_CATEGORIES as cK,
|
|
11773
|
+
syncMarkerOf as cL,
|
|
11774
|
+
settingField as cM,
|
|
11775
|
+
panelBadgeText as cN,
|
|
11776
|
+
TERMINAL_PANEL_ID as cO,
|
|
11777
|
+
tidyPromptText as cP,
|
|
11778
|
+
splitPromptSegments as cQ,
|
|
11779
|
+
TODO_STATUS_GLYPHS as cR,
|
|
11780
|
+
turnAsText as cS,
|
|
11781
|
+
modePrefixLength as cT,
|
|
11782
|
+
sliceEnd as cU,
|
|
11783
|
+
OutputHistory as cV,
|
|
11784
|
+
TERMINAL_HISTORY_MAX_CHARS as cW,
|
|
11785
|
+
TERMINAL_VIEW_MAX_LINES as cX,
|
|
11786
|
+
TERMINAL_VIEW_SCROLLBACK as cY,
|
|
11787
|
+
moveTab as cZ,
|
|
11788
|
+
cycleTodoStatus as c_,
|
|
11789
|
+
sessionBadgeTarget as ca,
|
|
11790
|
+
highlightSegments as cb,
|
|
11791
|
+
searchHighlightRanges as cc,
|
|
11792
|
+
sortRows as cd,
|
|
11793
|
+
blendHsl as ce,
|
|
11794
|
+
activeSnapshotFor as cf,
|
|
11795
|
+
mostConstrainedWindow as cg,
|
|
11796
|
+
usageTone as ch,
|
|
11797
|
+
formatUsagePercent as ci,
|
|
11798
|
+
resetLabel as cj,
|
|
11799
|
+
compactingParts as ck,
|
|
11800
|
+
chainsEqualKeyed as cl,
|
|
11801
|
+
accentColor as cm,
|
|
11802
|
+
parseSessionKey as cn,
|
|
11803
|
+
EMPTY_RATE as co,
|
|
11804
|
+
stepStreamRate as cp,
|
|
11805
|
+
streamRateValue as cq,
|
|
11806
|
+
retryLabel as cr,
|
|
11807
|
+
parseRepoInput as cs,
|
|
11808
|
+
LOCAL_HOST_KEY as ct,
|
|
11809
|
+
defaultSessionModel as cu,
|
|
11810
|
+
defaultSessionKnobs as cv,
|
|
11811
|
+
defaultSessionAgent as cw,
|
|
11812
|
+
MACHINE_LINK_STATE_TEXT as cx,
|
|
11813
|
+
DAEMON_HEALTH_STYLE as cy,
|
|
11814
|
+
isValidMachineName as cz,
|
|
11162
11815
|
createOnboardingRun as d,
|
|
11163
|
-
|
|
11164
|
-
|
|
11165
|
-
|
|
11166
|
-
|
|
11167
|
-
|
|
11168
|
-
|
|
11169
|
-
|
|
11170
|
-
|
|
11171
|
-
|
|
11172
|
-
|
|
11173
|
-
|
|
11174
|
-
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
|
|
11178
|
-
|
|
11179
|
-
|
|
11180
|
-
|
|
11181
|
-
|
|
11182
|
-
|
|
11183
|
-
|
|
11184
|
-
|
|
11185
|
-
|
|
11186
|
-
|
|
11187
|
-
|
|
11188
|
-
|
|
11189
|
-
|
|
11190
|
-
|
|
11191
|
-
|
|
11192
|
-
|
|
11193
|
-
|
|
11194
|
-
|
|
11195
|
-
|
|
11196
|
-
|
|
11197
|
-
|
|
11198
|
-
|
|
11199
|
-
|
|
11200
|
-
|
|
11201
|
-
|
|
11202
|
-
|
|
11203
|
-
|
|
11204
|
-
|
|
11205
|
-
|
|
11206
|
-
|
|
11207
|
-
|
|
11208
|
-
|
|
11209
|
-
|
|
11210
|
-
|
|
11211
|
-
|
|
11212
|
-
|
|
11213
|
-
|
|
11214
|
-
|
|
11215
|
-
|
|
11216
|
-
|
|
11816
|
+
normalizeBrowserUrl as d$,
|
|
11817
|
+
clearTodos as d0,
|
|
11818
|
+
editTodo as d1,
|
|
11819
|
+
buildTodoRetryMessage as d2,
|
|
11820
|
+
addTodo as d3,
|
|
11821
|
+
formatCount as d4,
|
|
11822
|
+
editableTurnText as d5,
|
|
11823
|
+
updatedLabel as d6,
|
|
11824
|
+
showsAccount as d7,
|
|
11825
|
+
formatBalance as d8,
|
|
11826
|
+
usageBlockView as d9,
|
|
11827
|
+
createChatsCompletionProvider as dA,
|
|
11828
|
+
patchInlineGhost as dB,
|
|
11829
|
+
createSkillsCompletionProvider as dC,
|
|
11830
|
+
uniqueSkillNamesFromReferences as dD,
|
|
11831
|
+
buildUnifiedDiff as dE,
|
|
11832
|
+
rankPaletteItems as dF,
|
|
11833
|
+
groupPaletteRows as dG,
|
|
11834
|
+
TRANSCRIPT_PRESET_PALETTE_ID as dH,
|
|
11835
|
+
transcriptPresetPalettePicker as dI,
|
|
11836
|
+
transcriptPresetOfPaletteItem as dJ,
|
|
11837
|
+
transcriptPresetNotice as dK,
|
|
11838
|
+
transcriptPresetPaletteItem as dL,
|
|
11839
|
+
spaceOfSwitchItem as dM,
|
|
11840
|
+
spaceSwitchItems as dN,
|
|
11841
|
+
SETUP_PALETTE_ITEM as dO,
|
|
11842
|
+
sessionKey as dP,
|
|
11843
|
+
LOCAL_HOST_NAME as dQ,
|
|
11844
|
+
ARTIFACT_BADGES_MAX as dR,
|
|
11845
|
+
spacesEnabled as dS,
|
|
11846
|
+
ARTIFACTS_PANEL_ID as dT,
|
|
11847
|
+
buildPanelCatalog as dU,
|
|
11848
|
+
MEDIA_BY_EXTENSION as dV,
|
|
11849
|
+
USAGE_BLOCK_ID as dW,
|
|
11850
|
+
nativeExtensionSource as dX,
|
|
11851
|
+
connectorServerConfig as dY,
|
|
11852
|
+
machineWaiting as dZ,
|
|
11853
|
+
SIDE_PANEL_ID as d_,
|
|
11854
|
+
usageBlockContent as da,
|
|
11855
|
+
settingsSidebar as db,
|
|
11856
|
+
settingsSearchIndex as dc,
|
|
11857
|
+
isolationLabel as dd,
|
|
11858
|
+
LOCAL_SERVER_BRANDS as de,
|
|
11859
|
+
connectorById as df,
|
|
11860
|
+
onboardingFeatureCopy as dg,
|
|
11861
|
+
SETTINGS_CHOICES as dh,
|
|
11862
|
+
APPROVAL_MODE_TRADEOFFS as di,
|
|
11863
|
+
SETTING_TRADEOFFS as dj,
|
|
11864
|
+
connectorsFromImport as dk,
|
|
11865
|
+
connectorInputError as dl,
|
|
11866
|
+
CONNECTOR_CATEGORIES as dm,
|
|
11867
|
+
connectorAuthText as dn,
|
|
11868
|
+
NATIVE_EXTENSION_GROUPS as dp,
|
|
11869
|
+
nativeExtensionNeedText as dq,
|
|
11870
|
+
onboardingFeatures as dr,
|
|
11871
|
+
ONBOARDING_FEATURE_GROUPS as ds,
|
|
11872
|
+
defaultImportSelection as dt,
|
|
11873
|
+
ONBOARDING_AGENT_BRANDS as du,
|
|
11874
|
+
onboardingSwitchedFeatures as dv,
|
|
11875
|
+
onboardingImportParts as dw,
|
|
11876
|
+
mergeSuggestions as dx,
|
|
11877
|
+
createCommandsCompletionProvider as dy,
|
|
11878
|
+
createFilesCompletionProvider as dz,
|
|
11217
11879
|
ONBOARDING_STEPS as e,
|
|
11880
|
+
BROWSER_PANEL_ID as e0,
|
|
11881
|
+
decisionsEnabled as e1,
|
|
11882
|
+
countNeighbors as e2,
|
|
11883
|
+
selectableTurnIds as e3,
|
|
11884
|
+
runBlockOnHost as e4,
|
|
11218
11885
|
canSkipOnboardingStep as f,
|
|
11219
11886
|
currentOnboardingStep as g,
|
|
11220
11887
|
pushPaletteRecent as h,
|