clikcode 1.0.4 → 1.0.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/README.md +25 -14
- package/dist/chunk-23TDEBGZ.js +71 -0
- package/dist/chunk-25T3GVS7.js +425 -0
- package/dist/chunk-2BBELGHY.js +11 -0
- package/dist/chunk-2EOL5PZL.js +208 -0
- package/dist/chunk-2GAB36IE.js +26 -0
- package/dist/chunk-2OLS7V66.js +2440 -0
- package/dist/chunk-2QFO2URB.js +179 -0
- package/dist/chunk-2QWPQRSU.js +254 -0
- package/dist/chunk-2YPAPAR3.js +184 -0
- package/dist/chunk-2ZAG5372.js +33 -0
- package/dist/chunk-32IKAIZC.js +12507 -0
- package/dist/chunk-34AZEGYW.js +95 -0
- package/dist/chunk-34JQYQCA.js +175 -0
- package/dist/chunk-34ZISPAO.js +67 -0
- package/dist/chunk-3AAAARE6.js +46 -0
- package/dist/chunk-3AJ6Q3OY.js +510 -0
- package/dist/chunk-3B2CHX7M.js +884 -0
- package/dist/chunk-3BUFORRX.js +59 -0
- package/dist/chunk-3QLHYYFK.js +30 -0
- package/dist/chunk-3RXBMYKZ.js +140 -0
- package/dist/chunk-3TFNIJWS.js +52 -0
- package/dist/chunk-3W3IPDFP.js +119 -0
- package/dist/chunk-3WMS7SEE.js +417 -0
- package/dist/chunk-435ZNSZ3.js +23 -0
- package/dist/chunk-4AQ5NINV.js +39 -0
- package/dist/chunk-4GVEJ5FK.js +168 -0
- package/dist/chunk-4GXAO3UY.js +262 -0
- package/dist/chunk-4L2ZZM4Q.js +332 -0
- package/dist/chunk-4LPDG57B.js +17 -0
- package/dist/chunk-4NN3XQQT.js +223 -0
- package/dist/chunk-4QZEZME7.js +54 -0
- package/dist/chunk-4R6CSC3S.js +38 -0
- package/dist/chunk-4RHXTL3W.js +514 -0
- package/dist/chunk-4SJMPTVQ.js +18 -0
- package/dist/chunk-4VY7G6TX.js +114 -0
- package/dist/chunk-5642PBF7.js +124 -0
- package/dist/chunk-5B6TVO4A.js +33 -0
- package/dist/chunk-5BJLDUPL.js +62 -0
- package/dist/chunk-5HMFFJWU.js +19 -0
- package/dist/chunk-5IKLK33T.js +69 -0
- package/dist/chunk-5NQ5FFMX.js +44 -0
- package/dist/chunk-5QNNW5L6.js +176 -0
- package/dist/chunk-5SM5UAWN.js +239 -0
- package/dist/chunk-5WYJTA6O.js +74 -0
- package/dist/chunk-5ZSR2Y5T.js +227 -0
- package/dist/chunk-5ZWUM5GH.js +39 -0
- package/dist/chunk-64E7D4HY.js +364 -0
- package/dist/chunk-6CK466BC.js +99 -0
- package/dist/chunk-6ES45HHO.js +138 -0
- package/dist/chunk-6HYEZFGL.js +277 -0
- package/dist/chunk-6Y7HLXGW.js +29 -0
- package/dist/chunk-6YKK4FYR.js +258 -0
- package/dist/chunk-74WNMLMS.js +117 -0
- package/dist/chunk-7AULZ7OD.js +55 -0
- package/dist/chunk-7DOKGSUN.js +101 -0
- package/dist/chunk-7IH5LTIZ.js +195 -0
- package/dist/chunk-7ISTS5NS.js +21 -0
- package/dist/chunk-7NMUTGOW.js +527 -0
- package/dist/chunk-7PNHUZEL.js +153 -0
- package/dist/chunk-7TSQLONI.js +88 -0
- package/dist/chunk-AE7TOLD5.js +30 -0
- package/dist/chunk-AEMHSXKA.js +130 -0
- package/dist/chunk-AKRYTS2D.js +211 -0
- package/dist/chunk-AMNSE36L.js +59 -0
- package/dist/chunk-AZVD74ZV.js +23 -0
- package/dist/chunk-B35DVOTK.js +1981 -0
- package/dist/chunk-B4HNJRAH.js +626 -0
- package/dist/chunk-B5WYPPHS.js +13 -0
- package/dist/chunk-BBOVDXQM.js +59 -0
- package/dist/chunk-BD3ECZLK.js +62 -0
- package/dist/chunk-BDGSOT74.js +4578 -0
- package/dist/chunk-BF5VEOPK.js +31 -0
- package/dist/chunk-BFFRW4XH.js +47 -0
- package/dist/chunk-BFPC6PEW.js +208 -0
- package/dist/chunk-BGEMY2JJ.js +376 -0
- package/dist/chunk-BISGNHKD.js +35 -0
- package/dist/chunk-BMRAEBRY.js +21 -0
- package/dist/chunk-BNTXAZXW.js +127 -0
- package/dist/chunk-BOQBXGSN.js +75 -0
- package/dist/chunk-BTJDSTQP.js +213 -0
- package/dist/chunk-BUOPJQP5.js +218 -0
- package/dist/chunk-BXFJS65Q.js +52 -0
- package/dist/chunk-BXPQFSX5.js +59 -0
- package/dist/chunk-C57LIWNY.js +1269 -0
- package/dist/chunk-C6YVCCWR.js +74 -0
- package/dist/chunk-CAADDF6M.js +167 -0
- package/dist/chunk-CBANJFBO.js +69 -0
- package/dist/chunk-CERF3RIB.js +597 -0
- package/dist/chunk-COAS5ETR.js +46 -0
- package/dist/chunk-CQ7J6UQ7.js +78 -0
- package/dist/chunk-CRUVYGO2.js +26 -0
- package/dist/chunk-CVFVFRGN.js +58 -0
- package/dist/chunk-D2UK66HM.js +37 -0
- package/dist/chunk-D2W7SA4R.js +18 -0
- package/dist/chunk-DA44ZENT.js +501 -0
- package/dist/chunk-DAJ76TOC.js +99 -0
- package/dist/chunk-DCZ6CIUM.js +147 -0
- package/dist/chunk-DF35KMXM.js +1314 -0
- package/dist/chunk-DGASQT26.js +151 -0
- package/dist/chunk-DJT57C5P.js +55 -0
- package/dist/chunk-DKDPZTD3.js +44 -0
- package/dist/chunk-DQYVQ2N7.js +77 -0
- package/dist/chunk-DRTP2RTY.js +266 -0
- package/dist/chunk-DW2BMUKY.js +61 -0
- package/dist/chunk-DW5T5ZVU.js +307 -0
- package/dist/chunk-DXKNDNFC.js +164 -0
- package/dist/chunk-DZEQ7UYR.js +291 -0
- package/dist/chunk-E4F4OUAC.js +463 -0
- package/dist/chunk-EE4B6A7W.js +69 -0
- package/dist/chunk-EISKIYWG.js +23 -0
- package/dist/chunk-EKAQK7UQ.js +235 -0
- package/dist/chunk-EOBTJV32.js +123 -0
- package/dist/chunk-ESF3DIZY.js +325 -0
- package/dist/chunk-EVOHOZ4U.js +45 -0
- package/dist/chunk-EXN4KHLB.js +110 -0
- package/dist/chunk-F252T6Y3.js +78 -0
- package/dist/chunk-F3DP4ZA2.js +40 -0
- package/dist/chunk-F6F47QAY.js +58 -0
- package/dist/chunk-FA3Y23ZW.js +57 -0
- package/dist/chunk-FBKXE4EJ.js +640 -0
- package/dist/chunk-FCGEB3H6.js +23 -0
- package/dist/chunk-FF7ZVYJF.js +3732 -0
- package/dist/chunk-FFGKN6L3.js +39 -0
- package/dist/chunk-FFGU4GCC.js +94 -0
- package/dist/chunk-FSFDAOVP.js +74 -0
- package/dist/chunk-FT5TX7OX.js +1573 -0
- package/dist/chunk-G3QP67Z7.js +232 -0
- package/dist/chunk-G5ORJKV2.js +179 -0
- package/dist/chunk-GFNC62PE.js +111 -0
- package/dist/chunk-GGK43Q3N.js +67 -0
- package/dist/chunk-GGYKY4GF.js +11537 -0
- package/dist/chunk-GGYNHGNJ.js +55 -0
- package/dist/chunk-GLY7RM3C.js +354 -0
- package/dist/chunk-GQBZU6EO.js +20 -0
- package/dist/chunk-GSXENUZL.js +9 -0
- package/dist/chunk-GTOAT5D3.js +40 -0
- package/dist/chunk-GWCMDPQU.js +1007 -0
- package/dist/chunk-GXYSMYHJ.js +152 -0
- package/dist/chunk-GYMAI5NY.js +14 -0
- package/dist/chunk-H2VZMKPE.js +30 -0
- package/dist/chunk-H4THUNBM.js +2091 -0
- package/dist/chunk-HGRVSNUZ.js +361 -0
- package/dist/chunk-HI4VY473.js +27 -0
- package/dist/chunk-HOJRSD3Q.js +447 -0
- package/dist/chunk-HRX25W35.js +82 -0
- package/dist/chunk-HSE4AQYV.js +55 -0
- package/dist/chunk-HU5SSUFX.js +383 -0
- package/dist/chunk-I3GDBJLH.js +196 -0
- package/dist/chunk-I75EDU75.js +684 -0
- package/dist/chunk-IBA7DMIO.js +20 -0
- package/dist/chunk-IC6N4NZA.js +231 -0
- package/dist/chunk-IF43HIGV.js +284 -0
- package/dist/chunk-IGZ6C2MC.js +439 -0
- package/dist/chunk-IMLTL2MY.js +192 -0
- package/dist/chunk-IMZL6SGR.js +33 -0
- package/dist/chunk-IS4USJPY.js +516 -0
- package/dist/chunk-ISFSPN2F.js +82 -0
- package/dist/chunk-IXE7GTFI.js +55 -0
- package/dist/chunk-IZ77QJQG.js +36 -0
- package/dist/chunk-J2PACWRQ.js +34 -0
- package/dist/chunk-J6EGFVQX.js +180 -0
- package/dist/chunk-JEKOD43D.js +22 -0
- package/dist/chunk-JGIWATSG.js +30 -0
- package/dist/chunk-JYBONKD4.js +43 -0
- package/dist/chunk-K2NLG2HK.js +454 -0
- package/dist/chunk-KCQ4TBLS.js +164 -0
- package/dist/chunk-KD5KIVMS.js +176 -0
- package/dist/chunk-KHW6TX6I.js +63 -0
- package/dist/chunk-KI5GZFCE.js +520 -0
- package/dist/chunk-KN34B7NO.js +105 -0
- package/dist/chunk-KYUHIFP3.js +136 -0
- package/dist/chunk-KZL5VS4B.js +300 -0
- package/dist/chunk-L3VW3QIH.js +48 -0
- package/dist/chunk-LA6MG4ET.js +2110 -0
- package/dist/chunk-LAVFOA3S.js +66 -0
- package/dist/chunk-LB4OA77N.js +13 -0
- package/dist/chunk-LBFRF2K4.js +196 -0
- package/dist/chunk-LM6EIA4B.js +93 -0
- package/dist/chunk-LPCNRGJ7.js +692 -0
- package/dist/chunk-LSLNL5T3.js +168 -0
- package/dist/chunk-LVRRWP4W.js +568 -0
- package/dist/chunk-LWCFBRHL.js +33 -0
- package/dist/chunk-LXFTMGZZ.js +166 -0
- package/dist/chunk-M33LVA4M.js +151 -0
- package/dist/chunk-M3FO5UMK.js +4944 -0
- package/dist/chunk-M5QNDBAY.js +66 -0
- package/dist/chunk-M6ND6KBE.js +1291 -0
- package/dist/chunk-M7H3WQTE.js +76 -0
- package/dist/chunk-MCBRVPA7.js +191 -0
- package/dist/chunk-MCSDWZET.js +91 -0
- package/dist/chunk-MDT5XDXL.js +289 -0
- package/dist/chunk-MJG3IQY4.js +91 -0
- package/dist/chunk-MOU3N2UL.js +44 -0
- package/dist/chunk-MP4KZOQC.js +3451 -0
- package/dist/chunk-MPAJ446F.js +66 -0
- package/dist/chunk-MVJZZ6AL.js +16 -0
- package/dist/chunk-MXS6S2PY.js +253 -0
- package/dist/chunk-N3SFDYM7.js +291 -0
- package/dist/chunk-NAOX3JUB.js +13 -0
- package/dist/chunk-NEKKIBCX.js +283 -0
- package/dist/chunk-NKDATMEM.js +133 -0
- package/dist/chunk-NR4FMC4K.js +395 -0
- package/dist/chunk-NSOHOJBR.js +221 -0
- package/dist/chunk-NTDB6QKF.js +29 -0
- package/dist/chunk-NWEYRBWK.js +25 -0
- package/dist/chunk-O2YSNYWD.js +23 -0
- package/dist/chunk-O3EW7LAY.js +54 -0
- package/dist/chunk-O7BNJIXU.js +366 -0
- package/dist/chunk-OARL2NXZ.js +116 -0
- package/dist/chunk-OHKZUEJW.js +351 -0
- package/dist/chunk-OKU45BXA.js +647 -0
- package/dist/chunk-OL4JBD3J.js +59 -0
- package/dist/chunk-OLUO5DDR.js +192 -0
- package/dist/chunk-OQ245JLA.js +196 -0
- package/dist/chunk-P72UZAQI.js +289 -0
- package/dist/chunk-PAL2ENB6.js +20 -0
- package/dist/chunk-PAXYQZH7.js +53 -0
- package/dist/chunk-PDPEM5VW.js +51 -0
- package/dist/chunk-PEWCDI2C.js +668 -0
- package/dist/chunk-PGZ54EDX.js +27 -0
- package/dist/chunk-PRWVLDZF.js +73 -0
- package/dist/chunk-PSQQ75VJ.js +52 -0
- package/dist/chunk-PUOVIFHW.js +118 -0
- package/dist/chunk-PWBF2X3V.js +107 -0
- package/dist/chunk-PWXII6HF.js +43 -0
- package/dist/chunk-Q35VLJRT.js +80 -0
- package/dist/chunk-QJP7EYGL.js +128 -0
- package/dist/chunk-QPQKX2MK.js +8836 -0
- package/dist/chunk-QQRLPY25.js +1053 -0
- package/dist/chunk-QUS4ER2W.js +407 -0
- package/dist/chunk-QYHI3YET.js +29 -0
- package/dist/chunk-QYRU2UQI.js +32 -0
- package/dist/chunk-R6XVVQGC.js +13 -0
- package/dist/chunk-R7QN6ONS.js +483 -0
- package/dist/chunk-RD23MPGC.js +221 -0
- package/dist/chunk-RDDWQBEM.js +185 -0
- package/dist/chunk-RDLLDYFO.js +104 -0
- package/dist/chunk-RE4TGORR.js +84 -0
- package/dist/chunk-RJLHVYQY.js +217 -0
- package/dist/chunk-RJLPTWHW.js +905 -0
- package/dist/chunk-RKUVLRZI.js +295 -0
- package/dist/chunk-ROGXPGYR.js +37 -0
- package/dist/chunk-RSZGEL5U.js +163 -0
- package/dist/chunk-RVUOIJXN.js +909 -0
- package/dist/chunk-RW7F4JRP.js +11 -0
- package/dist/chunk-S4UO3AO3.js +53 -0
- package/dist/chunk-S5JAAF6S.js +585 -0
- package/dist/chunk-SNU37TQI.js +56 -0
- package/dist/chunk-SQVUDO2O.js +31 -0
- package/dist/chunk-SYVHIYQT.js +66 -0
- package/dist/chunk-SZBQMTG2.js +85 -0
- package/dist/chunk-T5VCXA3J.js +25 -0
- package/dist/chunk-TK6NSP56.js +30 -0
- package/dist/chunk-TKWVMA6L.js +22 -0
- package/dist/chunk-TQDKJHWX.js +59 -0
- package/dist/chunk-TQDM7S5N.js +127 -0
- package/dist/chunk-TULAXS77.js +23 -0
- package/dist/chunk-TVT45XNH.js +4625 -0
- package/dist/chunk-TWCVV2JO.js +467 -0
- package/dist/chunk-U4DKAD6S.js +47 -0
- package/dist/chunk-UA5K2BTI.js +564 -0
- package/dist/chunk-UAMKCMOK.js +40 -0
- package/dist/chunk-UBMVADBF.js +51 -0
- package/dist/chunk-UFQ5A5PW.js +645 -0
- package/dist/chunk-UOD2SOLL.js +1301 -0
- package/dist/chunk-UTSB4LOW.js +156 -0
- package/dist/chunk-UVXNIUTN.js +412 -0
- package/dist/chunk-UXVPXYPE.js +90 -0
- package/dist/chunk-UYEEMIWR.js +374 -0
- package/dist/chunk-VBGM5ZBW.js +54 -0
- package/dist/chunk-VEWPCZPG.js +762 -0
- package/dist/chunk-VIRDLZ5E.js +108 -0
- package/dist/chunk-VMPO7WKN.js +52 -0
- package/dist/chunk-W2NVSDO5.js +5122 -0
- package/dist/chunk-W3YYPBEA.js +176 -0
- package/dist/chunk-W5AYOICN.js +280 -0
- package/dist/chunk-W5GZOIUF.js +27 -0
- package/dist/chunk-WHKNLZ3C.js +76 -0
- package/dist/chunk-WKBEPPQ5.js +1409 -0
- package/dist/chunk-WM3Z6QKQ.js +151 -0
- package/dist/chunk-WMI2TPMA.js +31 -0
- package/dist/chunk-WNX5VD7S.js +150 -0
- package/dist/chunk-WOVTYST3.js +60 -0
- package/dist/chunk-WPB5WEZJ.js +546 -0
- package/dist/chunk-WUO5EOAT.js +44 -0
- package/dist/chunk-WWLJMP6D.js +133 -0
- package/dist/chunk-WZMLH3XP.js +58 -0
- package/dist/chunk-WZYVLUVQ.js +79 -0
- package/dist/chunk-X2OCPVU5.js +135 -0
- package/dist/chunk-X3CL6DTR.js +95 -0
- package/dist/chunk-X6WF7JEV.js +354 -0
- package/dist/chunk-XAHGBPWT.js +44 -0
- package/dist/chunk-XCKQ5BM2.js +228 -0
- package/dist/chunk-XIBYREEY.js +106 -0
- package/dist/chunk-XKW5NDMR.js +378 -0
- package/dist/chunk-XRDALAO3.js +100 -0
- package/dist/chunk-XUP22EAS.js +41 -0
- package/dist/chunk-XWAC3MKW.js +243 -0
- package/dist/chunk-Y3R7JMXB.js +59 -0
- package/dist/chunk-Y54LTP4W.js +82 -0
- package/dist/chunk-Y7UECI4M.js +99 -0
- package/dist/chunk-YACGDFHC.js +47 -0
- package/dist/chunk-YHNIQPKY.js +71 -0
- package/dist/chunk-YMBR6HYP.js +111 -0
- package/dist/chunk-YMCH3L2S.js +26 -0
- package/dist/chunk-Z4ZU6T7V.js +99 -0
- package/dist/chunk-ZDPF67ZZ.js +173 -0
- package/dist/chunk-ZFC2Q67K.js +101 -0
- package/dist/chunk-ZGHNNSCT.js +114 -0
- package/dist/chunk-ZGX3ERAT.js +173 -0
- package/dist/chunk-ZI3YHEBY.js +37 -0
- package/dist/chunk-ZN7G6JLS.js +639 -0
- package/dist/chunk-ZNPFQMXT.js +47 -0
- package/dist/chunk-ZOU3LV4U.js +63 -0
- package/dist/chunk-ZT7B4H2V.js +117 -0
- package/dist/chunk-ZZCBDNZI.js +58 -0
- package/dist/cli.js +494 -112923
- package/dist/computer-tools.js +36642 -21259
- package/dist/harness-catalog.cjs +88 -43
- package/dist/index.js +1 -1
- package/dist/local-model-supervisor.cjs +555 -0
- package/package.json +3 -4
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
|
|
4
|
+
// src/harness/protocol/json-lines.ts
|
|
5
|
+
var asRecord = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|
|
6
|
+
function recordsOf(parsed) {
|
|
7
|
+
const out = [];
|
|
8
|
+
for (const item of Array.isArray(parsed) ? parsed : [parsed]) {
|
|
9
|
+
const record = asRecord(item);
|
|
10
|
+
if (record) out.push(record);
|
|
11
|
+
}
|
|
12
|
+
return out;
|
|
13
|
+
}
|
|
14
|
+
function claudeShaped(harness) {
|
|
15
|
+
return harness.parser === "claude-stream-json";
|
|
16
|
+
}
|
|
17
|
+
function opencodeShaped(harness) {
|
|
18
|
+
return harness.parser === "opencode-json";
|
|
19
|
+
}
|
|
20
|
+
function parseJsonLines(text) {
|
|
21
|
+
const values = [];
|
|
22
|
+
const skipped = [];
|
|
23
|
+
for (const line of text.split(/\r?\n/)) {
|
|
24
|
+
const candidate = line.trim();
|
|
25
|
+
if (!candidate) continue;
|
|
26
|
+
if (candidate[0] !== "{" && candidate[0] !== "[") {
|
|
27
|
+
skipped.push(candidate);
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
const parsed = JSON.parse(candidate);
|
|
32
|
+
const records = recordsOf(parsed);
|
|
33
|
+
if (records.length) values.push(...records);
|
|
34
|
+
else skipped.push(candidate);
|
|
35
|
+
} catch {
|
|
36
|
+
skipped.push(candidate);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return { values, skipped };
|
|
40
|
+
}
|
|
41
|
+
function parseJsonDocument(text) {
|
|
42
|
+
const attempt = (candidate) => {
|
|
43
|
+
try {
|
|
44
|
+
const parsed = JSON.parse(candidate);
|
|
45
|
+
const records = recordsOf(parsed);
|
|
46
|
+
return records.length ? records : void 0;
|
|
47
|
+
} catch {
|
|
48
|
+
return void 0;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
const whole = attempt(text.trim());
|
|
52
|
+
if (whole) return whole;
|
|
53
|
+
const first = text.indexOf("{");
|
|
54
|
+
const last = text.lastIndexOf("}");
|
|
55
|
+
if (first >= 0 && last > first) {
|
|
56
|
+
const framed = attempt(text.slice(first, last + 1));
|
|
57
|
+
if (framed) return framed;
|
|
58
|
+
}
|
|
59
|
+
return parseJsonLines(text).values;
|
|
60
|
+
}
|
|
61
|
+
function parseJsonRecord(lineText) {
|
|
62
|
+
const candidate = lineText.trim();
|
|
63
|
+
if (candidate[0] !== "{") return void 0;
|
|
64
|
+
try {
|
|
65
|
+
return asRecord(JSON.parse(candidate));
|
|
66
|
+
} catch {
|
|
67
|
+
return void 0;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
var LineBuffer = class {
|
|
71
|
+
pending = "";
|
|
72
|
+
/** The lines this chunk completed, in order. */
|
|
73
|
+
push(chunk) {
|
|
74
|
+
let end = chunk.indexOf("\n");
|
|
75
|
+
if (end < 0) {
|
|
76
|
+
this.pending += chunk;
|
|
77
|
+
return [];
|
|
78
|
+
}
|
|
79
|
+
const lines = [withoutCarriageReturn(this.pending + chunk.slice(0, end))];
|
|
80
|
+
let start = end + 1;
|
|
81
|
+
while ((end = chunk.indexOf("\n", start)) >= 0) {
|
|
82
|
+
lines.push(withoutCarriageReturn(chunk.slice(start, end)));
|
|
83
|
+
start = end + 1;
|
|
84
|
+
}
|
|
85
|
+
this.pending = chunk.slice(start);
|
|
86
|
+
return lines;
|
|
87
|
+
}
|
|
88
|
+
/** What arrived after the last line end, handed over once (a final line
|
|
89
|
+
* with no newline at the end of a stream). */
|
|
90
|
+
flush() {
|
|
91
|
+
const rest = this.pending;
|
|
92
|
+
this.pending = "";
|
|
93
|
+
return rest;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
var withoutCarriageReturn = (line) => line.endsWith("\r") ? line.slice(0, -1) : line;
|
|
97
|
+
|
|
98
|
+
export {
|
|
99
|
+
asRecord,
|
|
100
|
+
claudeShaped,
|
|
101
|
+
opencodeShaped,
|
|
102
|
+
parseJsonLines,
|
|
103
|
+
parseJsonDocument,
|
|
104
|
+
parseJsonRecord,
|
|
105
|
+
LineBuffer
|
|
106
|
+
};
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
isAgentToolName
|
|
5
|
+
} from "./chunk-W3YYPBEA.js";
|
|
6
|
+
import {
|
|
7
|
+
compactCount,
|
|
8
|
+
formatDuration
|
|
9
|
+
} from "./chunk-EE4B6A7W.js";
|
|
10
|
+
import {
|
|
11
|
+
visibleSlice
|
|
12
|
+
} from "./chunk-G3QP67Z7.js";
|
|
13
|
+
|
|
14
|
+
// src/harness/protocol/lean.ts
|
|
15
|
+
var END_LINE_MIN_MS = 1e4;
|
|
16
|
+
var END_USAGE_MIN_TOKENS = 2e4;
|
|
17
|
+
var COST_INLINE_MIN_USD = 0.05;
|
|
18
|
+
var CALL_DURATION_MIN_MS = 5e3;
|
|
19
|
+
var FAILED_OUTPUT_LINES = 3;
|
|
20
|
+
var EDIT_FILES_SHOWN = 4;
|
|
21
|
+
function endLineShown(ms, filesChanged) {
|
|
22
|
+
return filesChanged > 0 || ms >= END_LINE_MIN_MS;
|
|
23
|
+
}
|
|
24
|
+
function endLineUsageShown(usage) {
|
|
25
|
+
if (!usage) return false;
|
|
26
|
+
return (usage.input ?? 0) + (usage.output ?? 0) >= END_USAGE_MIN_TOKENS || (usage.costUsd ?? 0) >= COST_INLINE_MIN_USD;
|
|
27
|
+
}
|
|
28
|
+
function callOutcomeParts(exitCode, ms, words) {
|
|
29
|
+
const failed = exitCode !== void 0 && exitCode !== 0;
|
|
30
|
+
const slow = ms !== void 0 && ms >= CALL_DURATION_MIN_MS;
|
|
31
|
+
if (!failed && !slow) return [];
|
|
32
|
+
return [...failed ? [`exit ${exitCode}`] : [], ...ms !== void 0 && ms >= 1e3 ? [words(ms)] : []];
|
|
33
|
+
}
|
|
34
|
+
function failedOutputTail(output) {
|
|
35
|
+
const lines = (output ?? "").replace(/\r\n/g, "\n").split("\n").map((line) => line.trimEnd());
|
|
36
|
+
while (lines.length && !lines[lines.length - 1]) lines.pop();
|
|
37
|
+
return lines.slice(-FAILED_OUTPUT_LINES);
|
|
38
|
+
}
|
|
39
|
+
function changedFileCount(diffs) {
|
|
40
|
+
const paths = /* @__PURE__ */ new Set();
|
|
41
|
+
let anonymous = 0;
|
|
42
|
+
for (const diff of diffs) for (const file of diff) paths.add(file.path ?? `#${anonymous++}`);
|
|
43
|
+
return paths.size;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// src/harness/protocol/tool-category.ts
|
|
47
|
+
var TOOL_CATEGORY = {
|
|
48
|
+
read: { verb: "reading", folded: (n) => `read ${n} files` },
|
|
49
|
+
edit: { verb: "editing", folded: (n) => `edited ${n} files` },
|
|
50
|
+
run: { verb: "running", folded: (n) => `ran ${n} commands` },
|
|
51
|
+
search: { verb: "searching", folded: (n) => `searched ${n} times` },
|
|
52
|
+
fetch: { verb: "fetching", folded: (n) => `fetched ${n} pages` }
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// src/harness/protocol/timings.ts
|
|
56
|
+
var SPIN_MS = 100;
|
|
57
|
+
var SPIN_PHASES = 4;
|
|
58
|
+
var SHIMMER_STRIDE = 1;
|
|
59
|
+
var SHIMMER_WIDTH = 4;
|
|
60
|
+
var PAINT_COALESCE_MS = 32;
|
|
61
|
+
var NOTICE_MS = 4e3;
|
|
62
|
+
var SLOW_WAIT_MS = 400;
|
|
63
|
+
|
|
64
|
+
// src/harness/protocol/activity-view.ts
|
|
65
|
+
var ACTIVITY_PREVIEW_LINES = 8;
|
|
66
|
+
var LIVE_OUTPUT_LINES = 3;
|
|
67
|
+
var DIFF_PREVIEW_LINES = 12;
|
|
68
|
+
var DIFF_PREVIEW_FILES = 4;
|
|
69
|
+
function sameCall(prior, next) {
|
|
70
|
+
if (next.id) return prior.id === next.id;
|
|
71
|
+
return prior.kind === "tool-start" && prior.label === next.label;
|
|
72
|
+
}
|
|
73
|
+
function stoppedCall(event) {
|
|
74
|
+
return event.kind === "tool-start" ? { ...event, kind: "tool-error", stopped: true } : event;
|
|
75
|
+
}
|
|
76
|
+
function mergeActivity(prior, next) {
|
|
77
|
+
return {
|
|
78
|
+
...next,
|
|
79
|
+
// A finished call stays finished: a later frame without a status adds
|
|
80
|
+
// its detail but cannot reopen it.
|
|
81
|
+
...next.kind === "tool-start" && prior.kind !== "tool-start" ? { kind: prior.kind } : {},
|
|
82
|
+
...next.label === "tool" || !next.label ? { label: prior.label } : {},
|
|
83
|
+
// A completion frame routinely carries neither the name nor the input
|
|
84
|
+
// the category was derived from. The row keeps what its start knew.
|
|
85
|
+
...next.category ? {} : prior.category ? { category: prior.category } : {},
|
|
86
|
+
...next.agent ? {} : prior.agent ? { agent: prior.agent } : {},
|
|
87
|
+
...next.agentId ? {} : prior.agentId ? { agentId: prior.agentId } : {},
|
|
88
|
+
...next.diff ? {} : prior.diff ? { diff: prior.diff } : {},
|
|
89
|
+
...next.call ? {} : prior.call ? { call: prior.call } : {},
|
|
90
|
+
...next.childTools !== void 0 || prior.childTools === void 0 ? {} : { childTools: prior.childTools },
|
|
91
|
+
...next.childCallIds || !prior.childCallIds ? {} : { childCallIds: prior.childCallIds },
|
|
92
|
+
// A row is placed once: the first sequence it was given stays.
|
|
93
|
+
...prior.seq === void 0 ? {} : { seq: prior.seq },
|
|
94
|
+
...next.childTokens !== void 0 || prior.childTokens === void 0 ? {} : { childTokens: prior.childTokens },
|
|
95
|
+
...next.durationMs !== void 0 || prior.durationMs === void 0 ? {} : { durationMs: prior.durationMs },
|
|
96
|
+
...next.exitCode !== void 0 || prior.exitCode === void 0 ? {} : { exitCode: prior.exitCode },
|
|
97
|
+
// Likewise its output: a completion that carries none (most do not)
|
|
98
|
+
// used to erase every line the running tool had streamed.
|
|
99
|
+
...next.output?.length || !prior.output?.length ? {} : {
|
|
100
|
+
output: prior.output,
|
|
101
|
+
...prior.outputOmitted ? { outputOmitted: prior.outputOmitted } : {},
|
|
102
|
+
...prior.outputTail ? { outputTail: true } : {},
|
|
103
|
+
...prior.outputHead ? { outputHead: prior.outputHead } : {}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function outputPreview(event, budget) {
|
|
108
|
+
const output = event.output ?? [];
|
|
109
|
+
const fromEnd = event.outputTail === true || event.category === "run" && !event.outputOmitted;
|
|
110
|
+
if (!output.length || budget <= 0) return { lines: [], hidden: 0, fromEnd };
|
|
111
|
+
const lines = fromEnd ? output.slice(-budget) : output.slice(0, budget);
|
|
112
|
+
return { lines, hidden: output.length - lines.length + (event.outputOmitted ?? 0), fromEnd };
|
|
113
|
+
}
|
|
114
|
+
var COMMAND_HEAD_LINES = 2;
|
|
115
|
+
var COMMAND_TAIL_LINES = 3;
|
|
116
|
+
function diffPreview(files, budget) {
|
|
117
|
+
const shown = files.slice(0, DIFF_PREVIEW_FILES);
|
|
118
|
+
const numbers = shown.flatMap((file) => file.lines.flatMap((line) => line.line === void 0 ? [] : [line.line]));
|
|
119
|
+
let left = budget;
|
|
120
|
+
let hiddenLines = 0;
|
|
121
|
+
const kept = shown.map((file) => {
|
|
122
|
+
const lines = file.lines.slice(0, Math.max(0, left));
|
|
123
|
+
left -= lines.length;
|
|
124
|
+
hiddenLines += file.lines.length - lines.length + (file.omitted ?? 0);
|
|
125
|
+
return { file, lines };
|
|
126
|
+
});
|
|
127
|
+
return { files: kept, gutter: numbers.length ? String(Math.max(...numbers)).length : 0, hiddenLines, moreFiles: files.length - shown.length };
|
|
128
|
+
}
|
|
129
|
+
function diffTotals(files) {
|
|
130
|
+
return {
|
|
131
|
+
additions: files.reduce((sum, file) => sum + file.additions, 0),
|
|
132
|
+
removals: files.reduce((sum, file) => sum + file.removals, 0)
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
var THOUGHT_LIMIT = 8e3;
|
|
136
|
+
var TAIL_OVERLAP_MIN = 20;
|
|
137
|
+
function appendThought(prior, label, id) {
|
|
138
|
+
const fragment = label.replace(/\s+/g, " ");
|
|
139
|
+
const trimmed = fragment.trim();
|
|
140
|
+
if (!trimmed || trimmed.toLowerCase() === "thinking") return prior;
|
|
141
|
+
const withId = (text) => ({ ...id === void 0 ? {} : { id }, text: text.length > THOUGHT_LIMIT ? text.slice(-THOUGHT_LIMIT) : text });
|
|
142
|
+
if (!prior || prior.id !== id) return withId(trimmed);
|
|
143
|
+
if (trimmed.startsWith(prior.text)) return withId(trimmed);
|
|
144
|
+
if (trimmed.startsWith("\u2026")) {
|
|
145
|
+
const tail = trimmed.slice(1);
|
|
146
|
+
for (let shared = Math.min(tail.length, prior.text.length); shared >= TAIL_OVERLAP_MIN; shared -= 1) {
|
|
147
|
+
if (prior.text.endsWith(tail.slice(0, shared))) return withId(`${prior.text}${tail.slice(shared)}`);
|
|
148
|
+
}
|
|
149
|
+
return withId(`${prior.text} \u2026 ${tail}`);
|
|
150
|
+
}
|
|
151
|
+
const joined = /^[\s.,;:!?)\]'"]/.test(fragment) || /\s$/.test(prior.text) ? `${prior.text}${fragment}` : `${prior.text} ${fragment}`;
|
|
152
|
+
return withId(joined.replace(/\s+/g, " ").trim());
|
|
153
|
+
}
|
|
154
|
+
function withWorkspacePaths(event, workspace) {
|
|
155
|
+
const root = workspace?.replace(/\/+$/, "");
|
|
156
|
+
if (!root || root.length < 2) return event;
|
|
157
|
+
const prefix = `${root}/`;
|
|
158
|
+
const relative = (text) => text.includes(prefix) ? text.split(prefix).join("") : text;
|
|
159
|
+
const label = relative(event.label);
|
|
160
|
+
const diff = event.diff?.some((file) => file.path?.startsWith(prefix)) ? event.diff.map((file) => file.path?.startsWith(prefix) ? { ...file, path: file.path.slice(prefix.length) } : file) : event.diff;
|
|
161
|
+
return label === event.label && diff === event.diff ? event : { ...event, label, ...diff ? { diff } : {} };
|
|
162
|
+
}
|
|
163
|
+
function toolUses(count) {
|
|
164
|
+
return `${count} tool use${count === 1 ? "" : "s"}`;
|
|
165
|
+
}
|
|
166
|
+
var CallIdSet = class extends Set {
|
|
167
|
+
toJSON() {
|
|
168
|
+
return void 0;
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
function withChildTool(parent, child) {
|
|
172
|
+
if (child.kind !== "tool-start") return parent;
|
|
173
|
+
if (!child.id) return { ...parent, childTools: (parent.childTools ?? 0) + 1 };
|
|
174
|
+
const counted = callIds(parent.childCallIds);
|
|
175
|
+
if (counted.has(child.id)) return parent;
|
|
176
|
+
return { ...parent, childCallIds: new CallIdSet([...counted, child.id]), childTools: (parent.childTools ?? 0) + 1 };
|
|
177
|
+
}
|
|
178
|
+
function callIds(held) {
|
|
179
|
+
if (held instanceof Set) return held;
|
|
180
|
+
if (Array.isArray(held)) return new CallIdSet(held.filter((id) => typeof id === "string"));
|
|
181
|
+
return new CallIdSet();
|
|
182
|
+
}
|
|
183
|
+
function orderMarks(marks, of) {
|
|
184
|
+
return marks.map((mark, index) => ({ mark, index, ...of(mark) })).sort((a, b) => a.responseOffset - b.responseOffset || (a.seq ?? a.index) - (b.seq ?? b.index) || a.index - b.index).map((entry) => entry.mark);
|
|
185
|
+
}
|
|
186
|
+
function markBefore(mark, boundary) {
|
|
187
|
+
if (mark.responseOffset !== boundary.responseOffset) return mark.responseOffset < boundary.responseOffset;
|
|
188
|
+
return mark.seq === void 0 || boundary.seq === void 0 || mark.seq < boundary.seq;
|
|
189
|
+
}
|
|
190
|
+
function toolStatusVerb(tool) {
|
|
191
|
+
const name = tool.label.split("(")[0].trim();
|
|
192
|
+
if (tool.agent || tool.category !== "run" && isAgentToolName(tool.label)) return "waiting on agent";
|
|
193
|
+
const argument = /^[^(]*\((.*)\)$/s.exec(tool.label)?.[1]?.trim();
|
|
194
|
+
const subject = (value, width = 32) => visibleSlice(value, width);
|
|
195
|
+
switch (tool.category) {
|
|
196
|
+
case "run": {
|
|
197
|
+
const command = (argument ?? tool.label).replace(/^\s*\$\s+/, "");
|
|
198
|
+
if (/(?:^|[\s/])(?:test|tests|vitest|jest|pytest|mocha|rspec|phpunit)\b|\btest:/.test(command)) return "running tests";
|
|
199
|
+
const program = command.split(/\s+/).find((word) => word && !/^\w+=/.test(word) && word !== "sudo");
|
|
200
|
+
return program ? `running ${subject(program.split("/").pop() || program, 24)}` : "running";
|
|
201
|
+
}
|
|
202
|
+
case "read":
|
|
203
|
+
case "edit": {
|
|
204
|
+
const verb = TOOL_CATEGORY[tool.category].verb;
|
|
205
|
+
const path = argument?.split(/[\s,]+/)[0];
|
|
206
|
+
const file = path?.replace(/[\\/]+$/, "").split(/[\\/]/).pop();
|
|
207
|
+
return file ? `${verb} ${subject(file)}` : verb;
|
|
208
|
+
}
|
|
209
|
+
case "search":
|
|
210
|
+
case "fetch":
|
|
211
|
+
return TOOL_CATEGORY[tool.category].verb;
|
|
212
|
+
default:
|
|
213
|
+
return name ? `running ${subject(name, 24)}` : "running";
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
function activityLifecyclePhase(activeTools, event) {
|
|
217
|
+
const next = new Map(activeTools);
|
|
218
|
+
const key = event.id ?? event.label;
|
|
219
|
+
if (event.kind === "tool-start") {
|
|
220
|
+
const prior = event.id ? next.get(key) : void 0;
|
|
221
|
+
next.set(key, {
|
|
222
|
+
label: event.label === "tool" && prior ? prior.label : event.label,
|
|
223
|
+
...event.category ?? prior?.category ? { category: event.category ?? prior?.category } : {},
|
|
224
|
+
...event.agent || prior?.agent ? { agent: true } : {}
|
|
225
|
+
});
|
|
226
|
+
} else if (event.kind === "tool-done" || event.kind === "tool-error") {
|
|
227
|
+
if (!next.delete(key) && !event.id) {
|
|
228
|
+
const matchingKey = [...next].reverse().find(([, tool]) => tool.label === event.label)?.[0];
|
|
229
|
+
if (matchingKey) next.delete(matchingKey);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
return { activeTools: next, ...openToolsStatus(next) };
|
|
233
|
+
}
|
|
234
|
+
function openToolsStatus(activeTools) {
|
|
235
|
+
const running = [...activeTools.values()];
|
|
236
|
+
const current = running[running.length - 1];
|
|
237
|
+
if (!current) return { phase: "thinking" };
|
|
238
|
+
return {
|
|
239
|
+
phase: toolStatusVerb(current),
|
|
240
|
+
...current.category ? { category: current.category } : {}
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
function waitingSpinnerFrame(frame) {
|
|
244
|
+
const phase = Math.abs(frame) % SPIN_PHASES;
|
|
245
|
+
return Array.from(
|
|
246
|
+
{ length: 4 },
|
|
247
|
+
(_, row) => Array.from({ length: 4 }, (_2, column) => (row + column + phase) % 4 < 2)
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
function waitingSpinnerGlyph(frame) {
|
|
251
|
+
return packSpinnerGrid(waitingSpinnerFrame(frame));
|
|
252
|
+
}
|
|
253
|
+
function packSpinnerGrid(grid) {
|
|
254
|
+
const bit = (column, row) => {
|
|
255
|
+
const positions = [[0, 1, 2, 6], [3, 4, 5, 7]];
|
|
256
|
+
return grid[row][column] ? 1 << positions[column % 2][row] : 0;
|
|
257
|
+
};
|
|
258
|
+
return [0, 2].map((start) => String.fromCodePoint(10240 | bit(start, 0) | bit(start, 1) | bit(start, 2) | bit(start, 3) | bit(start + 1, 0) | bit(start + 1, 1) | bit(start + 1, 2) | bit(start + 1, 3))).join("");
|
|
259
|
+
}
|
|
260
|
+
var RING = [
|
|
261
|
+
[0, 0],
|
|
262
|
+
[1, 0],
|
|
263
|
+
[2, 0],
|
|
264
|
+
[3, 0],
|
|
265
|
+
[3, 1],
|
|
266
|
+
[3, 2],
|
|
267
|
+
[3, 3],
|
|
268
|
+
[2, 3],
|
|
269
|
+
[1, 3],
|
|
270
|
+
[0, 3],
|
|
271
|
+
[0, 2],
|
|
272
|
+
[0, 1]
|
|
273
|
+
];
|
|
274
|
+
function agentSpinnerGlyph(frame) {
|
|
275
|
+
const grid = Array.from({ length: 4 }, () => [false, false, false, false]);
|
|
276
|
+
const head = (frame % RING.length + RING.length) % RING.length;
|
|
277
|
+
for (let tail = 0; tail < 4; tail += 1) {
|
|
278
|
+
const [column, row] = RING[(head - tail + RING.length) % RING.length];
|
|
279
|
+
grid[row][column] = true;
|
|
280
|
+
}
|
|
281
|
+
const pulse = Math.floor(frame / 3) % 3;
|
|
282
|
+
if (pulse > 0) {
|
|
283
|
+
grid[1][1] = true;
|
|
284
|
+
if (pulse > 1) grid[2][2] = true;
|
|
285
|
+
}
|
|
286
|
+
return packSpinnerGrid(grid);
|
|
287
|
+
}
|
|
288
|
+
function liveWaitKind(event) {
|
|
289
|
+
if (event.kind !== "tool-start") return void 0;
|
|
290
|
+
if (event.agent) return "agent";
|
|
291
|
+
if (event.category !== "run" && isAgentToolName(event.label)) return "agent";
|
|
292
|
+
if (event.category === "run") return "command";
|
|
293
|
+
return void 0;
|
|
294
|
+
}
|
|
295
|
+
function startTurnClock(now) {
|
|
296
|
+
return { startedAt: now, pausedMs: 0 };
|
|
297
|
+
}
|
|
298
|
+
function joinTurnClock(clock, startedAt) {
|
|
299
|
+
return startedAt < clock.startedAt ? { ...clock, startedAt } : clock;
|
|
300
|
+
}
|
|
301
|
+
function pauseTurnClock(clock, now) {
|
|
302
|
+
return clock.pausedAt === void 0 ? { ...clock, pausedAt: now } : clock;
|
|
303
|
+
}
|
|
304
|
+
function resumeTurnClock(clock, now) {
|
|
305
|
+
if (clock.pausedAt === void 0) return clock;
|
|
306
|
+
return { startedAt: clock.startedAt, pausedMs: clock.pausedMs + now - clock.pausedAt };
|
|
307
|
+
}
|
|
308
|
+
function turnElapsedMs(clock, now) {
|
|
309
|
+
return Math.max(0, now - clock.startedAt - clock.pausedMs - (clock.pausedAt === void 0 ? 0 : now - clock.pausedAt));
|
|
310
|
+
}
|
|
311
|
+
function turnAnimating(waits) {
|
|
312
|
+
return !waits.approval;
|
|
313
|
+
}
|
|
314
|
+
function nextTurnTickMs(clock, now, animating) {
|
|
315
|
+
return animating ? SPIN_MS : 1e3 - turnElapsedMs(clock, now) % 1e3 + 5;
|
|
316
|
+
}
|
|
317
|
+
function callFailed(event) {
|
|
318
|
+
return event.kind === "tool-error" && !event.stopped || event.kind === "tool-done" && event.exitCode !== void 0 && event.exitCode !== 0;
|
|
319
|
+
}
|
|
320
|
+
function activityOutcome(event) {
|
|
321
|
+
if (event.kind !== "tool-done" && event.kind !== "tool-error") return void 0;
|
|
322
|
+
const failed = event.kind === "tool-error" && !event.stopped || event.exitCode !== void 0 && event.exitCode !== 0;
|
|
323
|
+
const parts = [
|
|
324
|
+
...event.childTools ? [toolUses(event.childTools)] : [],
|
|
325
|
+
// A sub-agent's spend, as Claude Code shows it: "30k tokens".
|
|
326
|
+
...event.childTokens ? [`${compactCount(event.childTokens)} tokens`] : [],
|
|
327
|
+
...callOutcomeParts(event.exitCode, event.durationMs, formatDuration)
|
|
328
|
+
];
|
|
329
|
+
return parts.length ? { parts, failed } : void 0;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export {
|
|
333
|
+
EDIT_FILES_SHOWN,
|
|
334
|
+
endLineShown,
|
|
335
|
+
endLineUsageShown,
|
|
336
|
+
failedOutputTail,
|
|
337
|
+
changedFileCount,
|
|
338
|
+
TOOL_CATEGORY,
|
|
339
|
+
SPIN_MS,
|
|
340
|
+
SPIN_PHASES,
|
|
341
|
+
SHIMMER_STRIDE,
|
|
342
|
+
SHIMMER_WIDTH,
|
|
343
|
+
PAINT_COALESCE_MS,
|
|
344
|
+
NOTICE_MS,
|
|
345
|
+
SLOW_WAIT_MS,
|
|
346
|
+
ACTIVITY_PREVIEW_LINES,
|
|
347
|
+
LIVE_OUTPUT_LINES,
|
|
348
|
+
DIFF_PREVIEW_LINES,
|
|
349
|
+
DIFF_PREVIEW_FILES,
|
|
350
|
+
sameCall,
|
|
351
|
+
stoppedCall,
|
|
352
|
+
mergeActivity,
|
|
353
|
+
outputPreview,
|
|
354
|
+
COMMAND_HEAD_LINES,
|
|
355
|
+
COMMAND_TAIL_LINES,
|
|
356
|
+
diffPreview,
|
|
357
|
+
diffTotals,
|
|
358
|
+
appendThought,
|
|
359
|
+
withWorkspacePaths,
|
|
360
|
+
toolUses,
|
|
361
|
+
withChildTool,
|
|
362
|
+
orderMarks,
|
|
363
|
+
markBefore,
|
|
364
|
+
activityLifecyclePhase,
|
|
365
|
+
openToolsStatus,
|
|
366
|
+
waitingSpinnerGlyph,
|
|
367
|
+
agentSpinnerGlyph,
|
|
368
|
+
liveWaitKind,
|
|
369
|
+
startTurnClock,
|
|
370
|
+
joinTurnClock,
|
|
371
|
+
pauseTurnClock,
|
|
372
|
+
resumeTurnClock,
|
|
373
|
+
turnElapsedMs,
|
|
374
|
+
turnAnimating,
|
|
375
|
+
nextTurnTickMs,
|
|
376
|
+
callFailed,
|
|
377
|
+
activityOutcome
|
|
378
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
aiHarnessSelect,
|
|
5
|
+
ensureChatReady,
|
|
6
|
+
resolveChat,
|
|
7
|
+
signInBeforeUse,
|
|
8
|
+
startOrResumeChat
|
|
9
|
+
} from "./chunk-MDT5XDXL.js";
|
|
10
|
+
import "./chunk-IF43HIGV.js";
|
|
11
|
+
import "./chunk-7TSQLONI.js";
|
|
12
|
+
import "./chunk-2YPAPAR3.js";
|
|
13
|
+
import "./chunk-LA6MG4ET.js";
|
|
14
|
+
import "./chunk-N3SFDYM7.js";
|
|
15
|
+
import "./chunk-4RHXTL3W.js";
|
|
16
|
+
import "./chunk-W5AYOICN.js";
|
|
17
|
+
import "./chunk-2OLS7V66.js";
|
|
18
|
+
import "./chunk-2QWPQRSU.js";
|
|
19
|
+
import "./chunk-IS4USJPY.js";
|
|
20
|
+
import "./chunk-2BBELGHY.js";
|
|
21
|
+
import "./chunk-QYHI3YET.js";
|
|
22
|
+
import "./chunk-4LPDG57B.js";
|
|
23
|
+
import "./chunk-TQDM7S5N.js";
|
|
24
|
+
import "./chunk-TQDKJHWX.js";
|
|
25
|
+
import "./chunk-GQBZU6EO.js";
|
|
26
|
+
import "./chunk-SQVUDO2O.js";
|
|
27
|
+
import "./chunk-RE4TGORR.js";
|
|
28
|
+
import "./chunk-DCZ6CIUM.js";
|
|
29
|
+
import "./chunk-M3FO5UMK.js";
|
|
30
|
+
import "./chunk-CERF3RIB.js";
|
|
31
|
+
import "./chunk-QQRLPY25.js";
|
|
32
|
+
import "./chunk-DA44ZENT.js";
|
|
33
|
+
import "./chunk-F252T6Y3.js";
|
|
34
|
+
import "./chunk-XWAC3MKW.js";
|
|
35
|
+
import "./chunk-CVFVFRGN.js";
|
|
36
|
+
import "./chunk-QJP7EYGL.js";
|
|
37
|
+
import "./chunk-ESF3DIZY.js";
|
|
38
|
+
import "./chunk-R7QN6ONS.js";
|
|
39
|
+
import "./chunk-ZN7G6JLS.js";
|
|
40
|
+
import "./chunk-ZGX3ERAT.js";
|
|
41
|
+
import "./chunk-PEWCDI2C.js";
|
|
42
|
+
import "./chunk-TULAXS77.js";
|
|
43
|
+
import "./chunk-MXS6S2PY.js";
|
|
44
|
+
import "./chunk-BISGNHKD.js";
|
|
45
|
+
import "./chunk-RKUVLRZI.js";
|
|
46
|
+
import "./chunk-BGEMY2JJ.js";
|
|
47
|
+
import "./chunk-XCKQ5BM2.js";
|
|
48
|
+
import "./chunk-NWEYRBWK.js";
|
|
49
|
+
import "./chunk-TWCVV2JO.js";
|
|
50
|
+
import "./chunk-PDPEM5VW.js";
|
|
51
|
+
import "./chunk-WWLJMP6D.js";
|
|
52
|
+
import "./chunk-CRUVYGO2.js";
|
|
53
|
+
import "./chunk-FF7ZVYJF.js";
|
|
54
|
+
import "./chunk-IMLTL2MY.js";
|
|
55
|
+
import "./chunk-BUOPJQP5.js";
|
|
56
|
+
import "./chunk-3B2CHX7M.js";
|
|
57
|
+
import "./chunk-RVUOIJXN.js";
|
|
58
|
+
import "./chunk-QUS4ER2W.js";
|
|
59
|
+
import "./chunk-DQYVQ2N7.js";
|
|
60
|
+
import "./chunk-KYUHIFP3.js";
|
|
61
|
+
import "./chunk-RSZGEL5U.js";
|
|
62
|
+
import "./chunk-NKDATMEM.js";
|
|
63
|
+
import "./chunk-DF35KMXM.js";
|
|
64
|
+
import "./chunk-ZT7B4H2V.js";
|
|
65
|
+
import "./chunk-OL4JBD3J.js";
|
|
66
|
+
import "./chunk-IGZ6C2MC.js";
|
|
67
|
+
import "./chunk-4NN3XQQT.js";
|
|
68
|
+
import "./chunk-4AQ5NINV.js";
|
|
69
|
+
import "./chunk-WPB5WEZJ.js";
|
|
70
|
+
import "./chunk-GYMAI5NY.js";
|
|
71
|
+
import "./chunk-CQ7J6UQ7.js";
|
|
72
|
+
import "./chunk-XKW5NDMR.js";
|
|
73
|
+
import "./chunk-W3YYPBEA.js";
|
|
74
|
+
import "./chunk-XIBYREEY.js";
|
|
75
|
+
import "./chunk-EE4B6A7W.js";
|
|
76
|
+
import "./chunk-WZYVLUVQ.js";
|
|
77
|
+
import "./chunk-O3EW7LAY.js";
|
|
78
|
+
import "./chunk-KHW6TX6I.js";
|
|
79
|
+
import "./chunk-YMCH3L2S.js";
|
|
80
|
+
import "./chunk-JGIWATSG.js";
|
|
81
|
+
import "./chunk-5B6TVO4A.js";
|
|
82
|
+
import "./chunk-NAOX3JUB.js";
|
|
83
|
+
import "./chunk-4QZEZME7.js";
|
|
84
|
+
import "./chunk-LVRRWP4W.js";
|
|
85
|
+
import "./chunk-GGYKY4GF.js";
|
|
86
|
+
import "./chunk-PAXYQZH7.js";
|
|
87
|
+
import "./chunk-G3QP67Z7.js";
|
|
88
|
+
import "./chunk-4L2ZZM4Q.js";
|
|
89
|
+
import "./chunk-F6F47QAY.js";
|
|
90
|
+
import "./chunk-RDDWQBEM.js";
|
|
91
|
+
import "./chunk-MPAJ446F.js";
|
|
92
|
+
import "./chunk-CBANJFBO.js";
|
|
93
|
+
import "./chunk-PWXII6HF.js";
|
|
94
|
+
export {
|
|
95
|
+
aiHarnessSelect,
|
|
96
|
+
ensureChatReady,
|
|
97
|
+
resolveChat,
|
|
98
|
+
signInBeforeUse,
|
|
99
|
+
startOrResumeChat
|
|
100
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
TunnelManager,
|
|
5
|
+
checkEgress,
|
|
6
|
+
contextEgress,
|
|
7
|
+
egressOfPage,
|
|
8
|
+
egressServer,
|
|
9
|
+
fetchVia,
|
|
10
|
+
freePort,
|
|
11
|
+
pageEgress,
|
|
12
|
+
portOpen,
|
|
13
|
+
serverFor,
|
|
14
|
+
sshTunnelArgs,
|
|
15
|
+
tunnelManager,
|
|
16
|
+
tunnelThrough
|
|
17
|
+
} from "./chunk-O7BNJIXU.js";
|
|
18
|
+
import "./chunk-YMCH3L2S.js";
|
|
19
|
+
import "./chunk-5SM5UAWN.js";
|
|
20
|
+
import "./chunk-PAXYQZH7.js";
|
|
21
|
+
import "./chunk-4L2ZZM4Q.js";
|
|
22
|
+
import "./chunk-F6F47QAY.js";
|
|
23
|
+
import "./chunk-RDDWQBEM.js";
|
|
24
|
+
import "./chunk-MPAJ446F.js";
|
|
25
|
+
import "./chunk-CBANJFBO.js";
|
|
26
|
+
import "./chunk-PWXII6HF.js";
|
|
27
|
+
export {
|
|
28
|
+
TunnelManager,
|
|
29
|
+
checkEgress,
|
|
30
|
+
contextEgress,
|
|
31
|
+
egressOfPage,
|
|
32
|
+
egressServer,
|
|
33
|
+
fetchVia,
|
|
34
|
+
freePort,
|
|
35
|
+
pageEgress,
|
|
36
|
+
portOpen,
|
|
37
|
+
serverFor,
|
|
38
|
+
sshTunnelArgs,
|
|
39
|
+
tunnelManager,
|
|
40
|
+
tunnelThrough
|
|
41
|
+
};
|