clikcode 1.0.3 → 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 +498 -112593
- package/dist/computer-tools.js +36642 -21258
- 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,23 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
|
|
4
|
+
// src/ide/protocol.ts
|
|
5
|
+
function listedChats(chats) {
|
|
6
|
+
return chats.filter((chat) => !chat.movedTo);
|
|
7
|
+
}
|
|
8
|
+
function encodeTerminalSpec(spec) {
|
|
9
|
+
return Buffer.from(JSON.stringify(spec), "utf8").toString("base64url");
|
|
10
|
+
}
|
|
11
|
+
function decodeTerminalSpec(encoded) {
|
|
12
|
+
const parsed = JSON.parse(Buffer.from(encoded, "base64url").toString("utf8"));
|
|
13
|
+
if (typeof parsed.command !== "string" || parsed.mode !== "run" || !Array.isArray(parsed.argv)) {
|
|
14
|
+
throw new Error("not an ide-terminal spec");
|
|
15
|
+
}
|
|
16
|
+
return { command: parsed.command, mode: parsed.mode, argv: parsed.argv.map(String) };
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
listedChats,
|
|
21
|
+
encodeTerminalSpec,
|
|
22
|
+
decodeTerminalSpec
|
|
23
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
quiet
|
|
5
|
+
} from "./chunk-RDDWQBEM.js";
|
|
6
|
+
|
|
7
|
+
// src/session/store/cached-file.ts
|
|
8
|
+
import { readFile, stat } from "node:fs/promises";
|
|
9
|
+
function fileIdentity(info) {
|
|
10
|
+
return `${info.ino}:${info.size}:${info.mtimeMs}:${info.ctimeMs}`;
|
|
11
|
+
}
|
|
12
|
+
function cachedFile(path, parse) {
|
|
13
|
+
let entry;
|
|
14
|
+
const current = () => entry && entry.path === path() ? entry : void 0;
|
|
15
|
+
return {
|
|
16
|
+
async load() {
|
|
17
|
+
const file = path();
|
|
18
|
+
let raw;
|
|
19
|
+
let identity;
|
|
20
|
+
try {
|
|
21
|
+
identity = fileIdentity(await stat(file));
|
|
22
|
+
const held2 = current();
|
|
23
|
+
if (held2 && held2.identity === identity) return held2.value;
|
|
24
|
+
raw = await readFile(file, "utf8");
|
|
25
|
+
if (fileIdentity(await stat(file)) !== identity) identity = void 0;
|
|
26
|
+
} catch (error) {
|
|
27
|
+
if (error.code === "ENOENT") return void 0;
|
|
28
|
+
throw error;
|
|
29
|
+
}
|
|
30
|
+
const held = current();
|
|
31
|
+
if (held && held.raw === raw) {
|
|
32
|
+
held.identity = identity;
|
|
33
|
+
return held.value;
|
|
34
|
+
}
|
|
35
|
+
const value = parse(raw);
|
|
36
|
+
entry = { path: file, raw, value, ...identity ? { identity } : {} };
|
|
37
|
+
return value;
|
|
38
|
+
},
|
|
39
|
+
async remember(raw, value) {
|
|
40
|
+
const file = path();
|
|
41
|
+
const info = await stat(file).catch(quiet("session/store/cached-file"));
|
|
42
|
+
entry = { path: file, raw, value, ...info ? { identity: fileIdentity(info) } : {} };
|
|
43
|
+
},
|
|
44
|
+
raw: () => current()?.raw,
|
|
45
|
+
reset() {
|
|
46
|
+
entry = void 0;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
fileIdentity,
|
|
53
|
+
cachedFile
|
|
54
|
+
};
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
sleep
|
|
5
|
+
} from "./chunk-YMCH3L2S.js";
|
|
6
|
+
import {
|
|
7
|
+
HOME_EGRESS,
|
|
8
|
+
egressList
|
|
9
|
+
} from "./chunk-5SM5UAWN.js";
|
|
10
|
+
import {
|
|
11
|
+
pidIsAlive
|
|
12
|
+
} from "./chunk-4L2ZZM4Q.js";
|
|
13
|
+
import {
|
|
14
|
+
quiet
|
|
15
|
+
} from "./chunk-RDDWQBEM.js";
|
|
16
|
+
import {
|
|
17
|
+
sharedState
|
|
18
|
+
} from "./chunk-CBANJFBO.js";
|
|
19
|
+
|
|
20
|
+
// src/agent/computer/egress.ts
|
|
21
|
+
import { spawn as spawnChild } from "node:child_process";
|
|
22
|
+
import { createServer, connect as netConnect } from "node:net";
|
|
23
|
+
import { connect as tlsConnect } from "node:tls";
|
|
24
|
+
import fs from "node:fs/promises";
|
|
25
|
+
import { readFileSync, unlinkSync } from "node:fs";
|
|
26
|
+
import path from "node:path";
|
|
27
|
+
var contextEgress = sharedState("browser-context-egress", () => /* @__PURE__ */ new WeakMap());
|
|
28
|
+
var pageEgress = sharedState("browser-page-egress", () => /* @__PURE__ */ new WeakMap());
|
|
29
|
+
function egressOfPage(page) {
|
|
30
|
+
const own = pageEgress.get(page);
|
|
31
|
+
if (own) return own;
|
|
32
|
+
try {
|
|
33
|
+
return contextEgress.get(page.context());
|
|
34
|
+
} catch {
|
|
35
|
+
return void 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function sshTunnelArgs(port, target) {
|
|
39
|
+
return ["-N", "-D", `127.0.0.1:${port}`, "-o", "ExitOnForwardFailure=yes", "-o", "ServerAliveInterval=30", "-o", "ServerAliveCountMax=3", "-o", "BatchMode=yes", "--", target];
|
|
40
|
+
}
|
|
41
|
+
var alive = (child) => child.exitCode === null && !child.signalCode;
|
|
42
|
+
var TunnelManager = class {
|
|
43
|
+
constructor(deps) {
|
|
44
|
+
this.deps = deps;
|
|
45
|
+
}
|
|
46
|
+
deps;
|
|
47
|
+
tunnels = /* @__PURE__ */ new Map();
|
|
48
|
+
exitHooked = false;
|
|
49
|
+
/** The local SOCKS port of a live tunnel to `target`, starting one when there is none or it died. */
|
|
50
|
+
ensure(target) {
|
|
51
|
+
const existing = this.tunnels.get(target);
|
|
52
|
+
if (existing && (!existing.child || alive(existing.child))) return existing.ready;
|
|
53
|
+
if (existing?.child) this.deps.forget?.(existing.child);
|
|
54
|
+
if (!this.exitHooked) {
|
|
55
|
+
this.exitHooked = true;
|
|
56
|
+
this.deps.onExit(() => this.closeAll());
|
|
57
|
+
}
|
|
58
|
+
const tunnel = { ready: Promise.resolve(0) };
|
|
59
|
+
tunnel.ready = this.start(target, tunnel);
|
|
60
|
+
this.tunnels.set(target, tunnel);
|
|
61
|
+
tunnel.ready.catch(() => {
|
|
62
|
+
if (this.tunnels.get(target) === tunnel) this.tunnels.delete(target);
|
|
63
|
+
});
|
|
64
|
+
return tunnel.ready;
|
|
65
|
+
}
|
|
66
|
+
async start(target, tunnel) {
|
|
67
|
+
const port = await this.deps.freePort();
|
|
68
|
+
const child = this.deps.spawn("ssh", sshTunnelArgs(port, target));
|
|
69
|
+
tunnel.child = child;
|
|
70
|
+
let said = "";
|
|
71
|
+
child.stderr?.on("data", (chunk) => {
|
|
72
|
+
said = (said + String(chunk)).slice(-400);
|
|
73
|
+
});
|
|
74
|
+
child.once("exit", () => {
|
|
75
|
+
this.deps.forget?.(child);
|
|
76
|
+
if (this.tunnels.get(target) === tunnel) this.tunnels.delete(target);
|
|
77
|
+
});
|
|
78
|
+
this.deps.record?.(child, port, target);
|
|
79
|
+
const until = Date.now() + (this.deps.readyMs ?? 2e4);
|
|
80
|
+
for (; ; ) {
|
|
81
|
+
if (!alive(child)) throw new Error(`The ssh tunnel to ${target} ended before it was ready${said.trim() ? `: ${said.trim().split("\n").slice(-2).join(" ").slice(0, 240)}` : ""}.`);
|
|
82
|
+
if (await this.deps.portOpen(port)) return port;
|
|
83
|
+
if (Date.now() >= until) {
|
|
84
|
+
child.kill("SIGTERM");
|
|
85
|
+
throw new Error(`The ssh tunnel to ${target} did not start listening within ${Math.round((this.deps.readyMs ?? 2e4) / 1e3)}s.`);
|
|
86
|
+
}
|
|
87
|
+
await this.deps.sleep(200);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/** Ends every tunnel this process started (each ssh process alone). */
|
|
91
|
+
closeAll() {
|
|
92
|
+
for (const [target, tunnel] of this.tunnels) {
|
|
93
|
+
this.tunnels.delete(target);
|
|
94
|
+
if (tunnel.child && alive(tunnel.child)) {
|
|
95
|
+
try {
|
|
96
|
+
tunnel.child.kill("SIGTERM");
|
|
97
|
+
} catch {
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if (tunnel.child) this.deps.forget?.(tunnel.child);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
var tunnelDir = (stateDir) => path.join(stateDir, "computer", "egress-tunnels");
|
|
105
|
+
function freePort() {
|
|
106
|
+
return new Promise((resolve, reject) => {
|
|
107
|
+
const server = createServer();
|
|
108
|
+
server.once("error", reject);
|
|
109
|
+
server.listen(0, "127.0.0.1", () => {
|
|
110
|
+
const address = server.address();
|
|
111
|
+
const port = typeof address === "object" && address ? address.port : 0;
|
|
112
|
+
server.close(() => port ? resolve(port) : reject(new Error("No free port.")));
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
function portOpen(port, host = "127.0.0.1") {
|
|
117
|
+
return new Promise((resolve) => {
|
|
118
|
+
const socket = netConnect({ host, port });
|
|
119
|
+
const done = (open) => {
|
|
120
|
+
socket.destroy();
|
|
121
|
+
resolve(open);
|
|
122
|
+
};
|
|
123
|
+
socket.once("connect", () => done(true));
|
|
124
|
+
socket.once("error", () => done(false));
|
|
125
|
+
socket.setTimeout(1e3, () => done(false));
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
async function sweepStaleTunnels(stateDir) {
|
|
129
|
+
const dir = tunnelDir(stateDir);
|
|
130
|
+
for (const name of await fs.readdir(dir).catch(() => [])) {
|
|
131
|
+
const file = path.join(dir, name);
|
|
132
|
+
const record = await fs.readFile(file, "utf8").then((raw) => JSON.parse(raw)).catch(quiet("agent/computer/egress"));
|
|
133
|
+
if (!record || !Number.isSafeInteger(record.pid) || record.owner && pidIsAlive(record.owner)) {
|
|
134
|
+
if (!record) await fs.unlink(file).catch(quiet("agent/computer/egress"));
|
|
135
|
+
continue;
|
|
136
|
+
}
|
|
137
|
+
let command = "";
|
|
138
|
+
try {
|
|
139
|
+
command = readFileSync(`/proc/${record.pid}/cmdline`, "utf8").split("\0").join(" ");
|
|
140
|
+
} catch {
|
|
141
|
+
command = "";
|
|
142
|
+
}
|
|
143
|
+
if (record.pid > 1 && pidIsAlive(record.pid) && /\bssh\b/.test(command) && command.includes(`-D 127.0.0.1:${record.port}`)) {
|
|
144
|
+
try {
|
|
145
|
+
process.kill(record.pid, "SIGTERM");
|
|
146
|
+
} catch {
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
await fs.unlink(file).catch(quiet("agent/computer/egress"));
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
function liveTunnelDeps(stateDir) {
|
|
153
|
+
const dir = tunnelDir(stateDir);
|
|
154
|
+
return {
|
|
155
|
+
spawn: (command, args) => spawnChild(command, args, { stdio: ["ignore", "ignore", "pipe"], windowsHide: true }),
|
|
156
|
+
freePort,
|
|
157
|
+
portOpen: (port) => portOpen(port),
|
|
158
|
+
sleep,
|
|
159
|
+
onExit: (run) => {
|
|
160
|
+
process.once("exit", run);
|
|
161
|
+
},
|
|
162
|
+
record: (child, port, target) => {
|
|
163
|
+
if (!child.pid) return;
|
|
164
|
+
void fs.mkdir(dir, { recursive: true, mode: 448 }).then(() => fs.writeFile(path.join(dir, `${child.pid}.json`), `${JSON.stringify({ pid: child.pid, owner: process.pid, port, target, at: (/* @__PURE__ */ new Date()).toISOString() })}
|
|
165
|
+
`, { mode: 384 })).catch(quiet("agent/computer/egress"));
|
|
166
|
+
},
|
|
167
|
+
// Synchronous: it also runs from the exit hook.
|
|
168
|
+
forget: (child) => {
|
|
169
|
+
if (child.pid) {
|
|
170
|
+
try {
|
|
171
|
+
unlinkSync(path.join(dir, `${child.pid}.json`));
|
|
172
|
+
} catch {
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
var managers = sharedState("egress-tunnel-managers", () => /* @__PURE__ */ new Map());
|
|
179
|
+
function tunnelManager(stateDir) {
|
|
180
|
+
let manager = managers.get(stateDir);
|
|
181
|
+
if (!manager) {
|
|
182
|
+
manager = new TunnelManager(liveTunnelDeps(stateDir));
|
|
183
|
+
managers.set(stateDir, manager);
|
|
184
|
+
void sweepStaleTunnels(stateDir).catch(quiet("agent/computer/egress"));
|
|
185
|
+
}
|
|
186
|
+
return manager;
|
|
187
|
+
}
|
|
188
|
+
async function egressServer(stateDir, name, tunnels = tunnelManager(stateDir)) {
|
|
189
|
+
if (name === HOME_EGRESS) return void 0;
|
|
190
|
+
const entry = (await egressList(stateDir)).find((item) => item.name === name);
|
|
191
|
+
if (!entry) throw new Error(`No egress is named "${name}". \`clikcode computer egress list\` shows them.`);
|
|
192
|
+
return serverFor(entry, tunnels);
|
|
193
|
+
}
|
|
194
|
+
async function serverFor(entry, tunnels) {
|
|
195
|
+
if (entry.proxy) return entry.proxy;
|
|
196
|
+
if (entry.ssh) return `socks5://127.0.0.1:${await tunnels.ensure(entry.ssh)}`;
|
|
197
|
+
return void 0;
|
|
198
|
+
}
|
|
199
|
+
function readUntil(socket, enough, ms) {
|
|
200
|
+
return new Promise((resolve, reject) => {
|
|
201
|
+
let buffer = Buffer.alloc(0);
|
|
202
|
+
const timer = setTimeout(() => finish(new Error("The proxy did not answer in time.")), ms);
|
|
203
|
+
const onData = (chunk) => {
|
|
204
|
+
buffer = Buffer.concat([buffer, chunk]);
|
|
205
|
+
if (enough(buffer)) finish();
|
|
206
|
+
};
|
|
207
|
+
const onEnd = () => finish(enough(buffer) ? void 0 : new Error("The proxy closed the connection."));
|
|
208
|
+
const onError = (error) => finish(error);
|
|
209
|
+
function finish(error) {
|
|
210
|
+
clearTimeout(timer);
|
|
211
|
+
socket.off("data", onData);
|
|
212
|
+
socket.off("end", onEnd);
|
|
213
|
+
socket.off("error", onError);
|
|
214
|
+
socket.pause();
|
|
215
|
+
if (error) reject(error);
|
|
216
|
+
else resolve(buffer);
|
|
217
|
+
}
|
|
218
|
+
socket.on("data", onData);
|
|
219
|
+
socket.once("end", onEnd);
|
|
220
|
+
socket.once("error", onError);
|
|
221
|
+
socket.resume();
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
function connected(socket, ms) {
|
|
225
|
+
return new Promise((resolve, reject) => {
|
|
226
|
+
const timer = setTimeout(() => {
|
|
227
|
+
socket.destroy();
|
|
228
|
+
reject(new Error("Could not reach the proxy in time."));
|
|
229
|
+
}, ms);
|
|
230
|
+
socket.once("connect", () => {
|
|
231
|
+
clearTimeout(timer);
|
|
232
|
+
resolve();
|
|
233
|
+
});
|
|
234
|
+
socket.once("secureConnect", () => {
|
|
235
|
+
clearTimeout(timer);
|
|
236
|
+
resolve();
|
|
237
|
+
});
|
|
238
|
+
socket.once("error", (error) => {
|
|
239
|
+
clearTimeout(timer);
|
|
240
|
+
reject(error);
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
async function tunnelThrough(server, host, port, ms = 15e3) {
|
|
245
|
+
const proxy = new URL(server);
|
|
246
|
+
const proxyPort = Number(proxy.port) || (proxy.protocol === "https:" ? 443 : proxy.protocol === "http:" ? 80 : 1080);
|
|
247
|
+
const proxyHost = proxy.hostname.replace(/^\[|\]$/g, "");
|
|
248
|
+
const socket = proxy.protocol === "https:" ? tlsConnect({ host: proxyHost, port: proxyPort, servername: proxyHost }) : netConnect({ host: proxyHost, port: proxyPort });
|
|
249
|
+
try {
|
|
250
|
+
await connected(socket, ms);
|
|
251
|
+
if (proxy.protocol === "socks5:") {
|
|
252
|
+
socket.write(Buffer.from([5, 1, 0]));
|
|
253
|
+
const hello = await readUntil(socket, (b) => b.length >= 2, ms);
|
|
254
|
+
if (hello[0] !== 5 || hello[1] !== 0) throw new Error("The SOCKS proxy wants a sign-in ClikCode does not have.");
|
|
255
|
+
const name = Buffer.from(host);
|
|
256
|
+
socket.write(Buffer.concat([Buffer.from([5, 1, 0, 3, name.length]), name, Buffer.from([port >> 8, port & 255])]));
|
|
257
|
+
const reply = await readUntil(socket, (b) => b.length >= 5 && b.length >= (b[3] === 1 ? 10 : b[3] === 4 ? 22 : 7 + b[4]), ms);
|
|
258
|
+
if (reply[1] !== 0) throw new Error(`The SOCKS proxy could not connect to ${host} (code ${reply[1]}).`);
|
|
259
|
+
} else if (proxy.protocol === "socks4:") {
|
|
260
|
+
socket.write(Buffer.concat([Buffer.from([4, 1, port >> 8, port & 255, 0, 0, 0, 1, 0]), Buffer.from(host), Buffer.from([0])]));
|
|
261
|
+
const reply = await readUntil(socket, (b) => b.length >= 8, ms);
|
|
262
|
+
if (reply[1] !== 90) throw new Error(`The SOCKS proxy could not connect to ${host}.`);
|
|
263
|
+
} else {
|
|
264
|
+
socket.write(`CONNECT ${host}:${port} HTTP/1.1\r
|
|
265
|
+
Host: ${host}:${port}\r
|
|
266
|
+
\r
|
|
267
|
+
`);
|
|
268
|
+
const head = (await readUntil(socket, (b) => b.includes("\r\n\r\n"), ms)).toString("latin1");
|
|
269
|
+
if (!/^HTTP\/1\.[01] 200\b/.test(head)) throw new Error(`The proxy refused to connect to ${host}: ${head.split("\r\n")[0]?.slice(0, 80)}`);
|
|
270
|
+
}
|
|
271
|
+
return socket;
|
|
272
|
+
} catch (error) {
|
|
273
|
+
socket.destroy();
|
|
274
|
+
throw error;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
async function fetchVia(server, url, ms = 15e3) {
|
|
278
|
+
if (!server) {
|
|
279
|
+
const reply = await fetch(url, { signal: AbortSignal.timeout(ms) });
|
|
280
|
+
if (!reply.ok) throw new Error(`${new URL(url).host} answered ${reply.status}.`);
|
|
281
|
+
return (await reply.text()).trim();
|
|
282
|
+
}
|
|
283
|
+
const target = new URL(url);
|
|
284
|
+
const secure = target.protocol === "https:";
|
|
285
|
+
const port = Number(target.port) || (secure ? 443 : 80);
|
|
286
|
+
const raw = await tunnelThrough(server, target.hostname, port, ms);
|
|
287
|
+
const socket = secure ? tlsConnect({ socket: raw, servername: target.hostname }) : raw;
|
|
288
|
+
try {
|
|
289
|
+
if (secure) await connected(socket, ms);
|
|
290
|
+
socket.write(`GET ${target.pathname}${target.search} HTTP/1.0\r
|
|
291
|
+
Host: ${target.host}\r
|
|
292
|
+
User-Agent: clikcode-egress-check\r
|
|
293
|
+
Accept: text/plain\r
|
|
294
|
+
Connection: close\r
|
|
295
|
+
\r
|
|
296
|
+
`);
|
|
297
|
+
return parseHttp((await readAll(socket, ms)).toString("utf8"), target.host);
|
|
298
|
+
} finally {
|
|
299
|
+
socket.destroy();
|
|
300
|
+
raw.destroy();
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
function readAll(socket, ms) {
|
|
304
|
+
return new Promise((resolve, reject) => {
|
|
305
|
+
const chunks = [];
|
|
306
|
+
const timer = setTimeout(() => {
|
|
307
|
+
socket.destroy();
|
|
308
|
+
reject(new Error("The page did not finish in time."));
|
|
309
|
+
}, ms);
|
|
310
|
+
socket.on("data", (chunk) => {
|
|
311
|
+
chunks.push(chunk);
|
|
312
|
+
});
|
|
313
|
+
socket.once("end", () => {
|
|
314
|
+
clearTimeout(timer);
|
|
315
|
+
resolve(Buffer.concat(chunks));
|
|
316
|
+
});
|
|
317
|
+
socket.once("error", (error) => {
|
|
318
|
+
clearTimeout(timer);
|
|
319
|
+
reject(error);
|
|
320
|
+
});
|
|
321
|
+
socket.resume();
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
function parseHttp(text, host) {
|
|
325
|
+
const split = text.indexOf("\r\n\r\n");
|
|
326
|
+
const status = /^HTTP\/1\.[01] (\d{3})/.exec(text)?.[1];
|
|
327
|
+
if (!status || split < 0) throw new Error(`${host} sent no HTTP answer.`);
|
|
328
|
+
if (status !== "200") throw new Error(`${host} answered ${status}.`);
|
|
329
|
+
return text.slice(split + 4).trim();
|
|
330
|
+
}
|
|
331
|
+
async function checkEgress(stateDir, options = {}) {
|
|
332
|
+
const url = options.url ?? "https://api.ipify.org";
|
|
333
|
+
const tunnels = options.tunnels ?? tunnelManager(stateDir);
|
|
334
|
+
const read = options.fetch ?? fetchVia;
|
|
335
|
+
const out = [];
|
|
336
|
+
for (const entry of await egressList(stateDir)) {
|
|
337
|
+
const began = Date.now();
|
|
338
|
+
const via = entry.ssh ? `ssh ${entry.ssh}` : entry.proxy ? `proxy ${entry.proxy}` : "this computer's own connection";
|
|
339
|
+
try {
|
|
340
|
+
const server = await serverFor(entry, tunnels);
|
|
341
|
+
const body = await read(server, url);
|
|
342
|
+
const ip = body.split(/\s+/)[0]?.slice(0, 64) ?? "";
|
|
343
|
+
const looksLikeIp = /^(?:\d{1,3}\.){3}\d{1,3}$|^[0-9a-f:]+$/i.test(ip);
|
|
344
|
+
out.push({ name: entry.name, via, ok: looksLikeIp, ...looksLikeIp ? { ip } : { error: `unexpected answer: ${body.slice(0, 60)}` }, ms: Date.now() - began });
|
|
345
|
+
} catch (error) {
|
|
346
|
+
out.push({ name: entry.name, via, ok: false, error: (error instanceof Error ? error.message : String(error)).slice(0, 240), ms: Date.now() - began });
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
return out;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export {
|
|
353
|
+
contextEgress,
|
|
354
|
+
pageEgress,
|
|
355
|
+
egressOfPage,
|
|
356
|
+
sshTunnelArgs,
|
|
357
|
+
TunnelManager,
|
|
358
|
+
freePort,
|
|
359
|
+
portOpen,
|
|
360
|
+
tunnelManager,
|
|
361
|
+
egressServer,
|
|
362
|
+
serverFor,
|
|
363
|
+
tunnelThrough,
|
|
364
|
+
fetchVia,
|
|
365
|
+
checkEgress
|
|
366
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
moveToProvider,
|
|
5
|
+
newConversation,
|
|
6
|
+
newConversationSession,
|
|
7
|
+
refuseWhileTurnRuns,
|
|
8
|
+
releaseQueuedTurn,
|
|
9
|
+
takeQueuedMessages,
|
|
10
|
+
turnIsRunning
|
|
11
|
+
} from "./chunk-RJLPTWHW.js";
|
|
12
|
+
import "./chunk-2EOL5PZL.js";
|
|
13
|
+
import "./chunk-MDT5XDXL.js";
|
|
14
|
+
import "./chunk-UYEEMIWR.js";
|
|
15
|
+
import "./chunk-TVT45XNH.js";
|
|
16
|
+
import "./chunk-K2NLG2HK.js";
|
|
17
|
+
import "./chunk-EOBTJV32.js";
|
|
18
|
+
import "./chunk-7AULZ7OD.js";
|
|
19
|
+
import "./chunk-UA5K2BTI.js";
|
|
20
|
+
import "./chunk-IF43HIGV.js";
|
|
21
|
+
import "./chunk-7TSQLONI.js";
|
|
22
|
+
import "./chunk-2YPAPAR3.js";
|
|
23
|
+
import "./chunk-DGASQT26.js";
|
|
24
|
+
import "./chunk-PUOVIFHW.js";
|
|
25
|
+
import "./chunk-LA6MG4ET.js";
|
|
26
|
+
import "./chunk-N3SFDYM7.js";
|
|
27
|
+
import "./chunk-4RHXTL3W.js";
|
|
28
|
+
import "./chunk-W5AYOICN.js";
|
|
29
|
+
import "./chunk-2OLS7V66.js";
|
|
30
|
+
import "./chunk-2QWPQRSU.js";
|
|
31
|
+
import "./chunk-IS4USJPY.js";
|
|
32
|
+
import "./chunk-2BBELGHY.js";
|
|
33
|
+
import "./chunk-QYHI3YET.js";
|
|
34
|
+
import "./chunk-4LPDG57B.js";
|
|
35
|
+
import "./chunk-TQDM7S5N.js";
|
|
36
|
+
import "./chunk-TQDKJHWX.js";
|
|
37
|
+
import "./chunk-GQBZU6EO.js";
|
|
38
|
+
import "./chunk-SQVUDO2O.js";
|
|
39
|
+
import "./chunk-RE4TGORR.js";
|
|
40
|
+
import "./chunk-DCZ6CIUM.js";
|
|
41
|
+
import "./chunk-M3FO5UMK.js";
|
|
42
|
+
import "./chunk-CERF3RIB.js";
|
|
43
|
+
import "./chunk-QQRLPY25.js";
|
|
44
|
+
import "./chunk-DA44ZENT.js";
|
|
45
|
+
import "./chunk-F252T6Y3.js";
|
|
46
|
+
import "./chunk-XWAC3MKW.js";
|
|
47
|
+
import "./chunk-CVFVFRGN.js";
|
|
48
|
+
import "./chunk-QJP7EYGL.js";
|
|
49
|
+
import "./chunk-ESF3DIZY.js";
|
|
50
|
+
import "./chunk-R7QN6ONS.js";
|
|
51
|
+
import "./chunk-ZN7G6JLS.js";
|
|
52
|
+
import "./chunk-ZGX3ERAT.js";
|
|
53
|
+
import "./chunk-PEWCDI2C.js";
|
|
54
|
+
import "./chunk-TULAXS77.js";
|
|
55
|
+
import "./chunk-ZZCBDNZI.js";
|
|
56
|
+
import "./chunk-MXS6S2PY.js";
|
|
57
|
+
import "./chunk-BISGNHKD.js";
|
|
58
|
+
import "./chunk-RKUVLRZI.js";
|
|
59
|
+
import "./chunk-BGEMY2JJ.js";
|
|
60
|
+
import "./chunk-XCKQ5BM2.js";
|
|
61
|
+
import "./chunk-NWEYRBWK.js";
|
|
62
|
+
import "./chunk-TWCVV2JO.js";
|
|
63
|
+
import "./chunk-PDPEM5VW.js";
|
|
64
|
+
import "./chunk-WWLJMP6D.js";
|
|
65
|
+
import "./chunk-CRUVYGO2.js";
|
|
66
|
+
import "./chunk-FF7ZVYJF.js";
|
|
67
|
+
import "./chunk-IMLTL2MY.js";
|
|
68
|
+
import "./chunk-BUOPJQP5.js";
|
|
69
|
+
import "./chunk-3B2CHX7M.js";
|
|
70
|
+
import "./chunk-RVUOIJXN.js";
|
|
71
|
+
import "./chunk-QUS4ER2W.js";
|
|
72
|
+
import "./chunk-DQYVQ2N7.js";
|
|
73
|
+
import "./chunk-KYUHIFP3.js";
|
|
74
|
+
import "./chunk-RSZGEL5U.js";
|
|
75
|
+
import "./chunk-NKDATMEM.js";
|
|
76
|
+
import "./chunk-DF35KMXM.js";
|
|
77
|
+
import "./chunk-ZT7B4H2V.js";
|
|
78
|
+
import "./chunk-OL4JBD3J.js";
|
|
79
|
+
import "./chunk-IGZ6C2MC.js";
|
|
80
|
+
import "./chunk-4NN3XQQT.js";
|
|
81
|
+
import "./chunk-4AQ5NINV.js";
|
|
82
|
+
import "./chunk-WPB5WEZJ.js";
|
|
83
|
+
import "./chunk-GYMAI5NY.js";
|
|
84
|
+
import "./chunk-CQ7J6UQ7.js";
|
|
85
|
+
import "./chunk-XKW5NDMR.js";
|
|
86
|
+
import "./chunk-W3YYPBEA.js";
|
|
87
|
+
import "./chunk-XIBYREEY.js";
|
|
88
|
+
import "./chunk-EE4B6A7W.js";
|
|
89
|
+
import "./chunk-WZYVLUVQ.js";
|
|
90
|
+
import "./chunk-O3EW7LAY.js";
|
|
91
|
+
import "./chunk-KHW6TX6I.js";
|
|
92
|
+
import "./chunk-YMCH3L2S.js";
|
|
93
|
+
import "./chunk-JGIWATSG.js";
|
|
94
|
+
import "./chunk-5B6TVO4A.js";
|
|
95
|
+
import "./chunk-NAOX3JUB.js";
|
|
96
|
+
import "./chunk-4QZEZME7.js";
|
|
97
|
+
import "./chunk-LVRRWP4W.js";
|
|
98
|
+
import "./chunk-GGYKY4GF.js";
|
|
99
|
+
import "./chunk-5SM5UAWN.js";
|
|
100
|
+
import "./chunk-PAXYQZH7.js";
|
|
101
|
+
import "./chunk-G3QP67Z7.js";
|
|
102
|
+
import "./chunk-4L2ZZM4Q.js";
|
|
103
|
+
import "./chunk-F6F47QAY.js";
|
|
104
|
+
import "./chunk-RDDWQBEM.js";
|
|
105
|
+
import "./chunk-MPAJ446F.js";
|
|
106
|
+
import "./chunk-CBANJFBO.js";
|
|
107
|
+
import "./chunk-PWXII6HF.js";
|
|
108
|
+
export {
|
|
109
|
+
moveToProvider,
|
|
110
|
+
newConversation,
|
|
111
|
+
newConversationSession,
|
|
112
|
+
refuseWhileTurnRuns,
|
|
113
|
+
releaseQueuedTurn,
|
|
114
|
+
takeQueuedMessages,
|
|
115
|
+
turnIsRunning
|
|
116
|
+
};
|