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,520 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
FrameDecoder,
|
|
5
|
+
encodeFrame
|
|
6
|
+
} from "./chunk-UBMVADBF.js";
|
|
7
|
+
import {
|
|
8
|
+
ensureSessionOnDisk
|
|
9
|
+
} from "./chunk-ZZCBDNZI.js";
|
|
10
|
+
import {
|
|
11
|
+
readSessionTranscript,
|
|
12
|
+
readTranscriptAt
|
|
13
|
+
} from "./chunk-RVUOIJXN.js";
|
|
14
|
+
import {
|
|
15
|
+
conversationHolder,
|
|
16
|
+
currentWorkerBuild,
|
|
17
|
+
listWorkerRecords,
|
|
18
|
+
readWorkerRecord,
|
|
19
|
+
requestConversationHandoff,
|
|
20
|
+
watchWorkerRecord,
|
|
21
|
+
workerIsReachable,
|
|
22
|
+
workerReadyEnvironment,
|
|
23
|
+
workerStartLogPath,
|
|
24
|
+
workersDirectory
|
|
25
|
+
} from "./chunk-QUS4ER2W.js";
|
|
26
|
+
import {
|
|
27
|
+
failureText
|
|
28
|
+
} from "./chunk-CQ7J6UQ7.js";
|
|
29
|
+
import {
|
|
30
|
+
cloneData
|
|
31
|
+
} from "./chunk-KHW6TX6I.js";
|
|
32
|
+
import {
|
|
33
|
+
userManagerLaunch
|
|
34
|
+
} from "./chunk-HU5SSUFX.js";
|
|
35
|
+
import {
|
|
36
|
+
sleep
|
|
37
|
+
} from "./chunk-YMCH3L2S.js";
|
|
38
|
+
import {
|
|
39
|
+
pidIsAlive
|
|
40
|
+
} from "./chunk-4L2ZZM4Q.js";
|
|
41
|
+
import {
|
|
42
|
+
lifecycle,
|
|
43
|
+
quiet,
|
|
44
|
+
swallowed
|
|
45
|
+
} from "./chunk-RDDWQBEM.js";
|
|
46
|
+
|
|
47
|
+
// src/worker/client.ts
|
|
48
|
+
import { spawn } from "node:child_process";
|
|
49
|
+
import { appendFileSync, closeSync, existsSync, mkdirSync, openSync, readFileSync, unlinkSync } from "node:fs";
|
|
50
|
+
import { EventEmitter } from "node:events";
|
|
51
|
+
import { connect } from "node:net";
|
|
52
|
+
import { hostname } from "node:os";
|
|
53
|
+
|
|
54
|
+
// src/worker/saved-conversation.ts
|
|
55
|
+
async function savedMessages(sessionId, saved) {
|
|
56
|
+
if (saved.gen !== void 0 && saved.end !== void 0) {
|
|
57
|
+
const exact = await readTranscriptAt(sessionId, { gen: saved.gen, end: saved.end });
|
|
58
|
+
return exact && cloneData(exact);
|
|
59
|
+
}
|
|
60
|
+
const messages = (await readSessionTranscript(sessionId)).messages ?? [];
|
|
61
|
+
return cloneData(messages.length > saved.count ? messages.slice(0, saved.count) : messages);
|
|
62
|
+
}
|
|
63
|
+
async function withSavedConversation(event) {
|
|
64
|
+
if (!event.saved) return event;
|
|
65
|
+
const { saved, live: _live, ...rest } = event;
|
|
66
|
+
const messages = await savedMessages(event.session.id, saved);
|
|
67
|
+
if (messages) return { ...rest, ...event.live ? { live: event.live } : {}, session: { ...event.session, messages } };
|
|
68
|
+
return { ...rest, session: { ...event.session, messages: cloneData((await readSessionTranscript(event.session.id)).messages ?? []) } };
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// src/worker/client.ts
|
|
72
|
+
var SPAWN_TIMEOUT_MS = 5e3;
|
|
73
|
+
var HANDOFF_START_TIMEOUT_MS = 3e4;
|
|
74
|
+
var SPAWN_POLL_MS = 250;
|
|
75
|
+
var RELEASE_POLL_MS = 10;
|
|
76
|
+
function workerSpawnArgv(sessionId, extra = []) {
|
|
77
|
+
const entry = process.env.CLIKCODE_WORKER_ENTRY ?? process.argv[1];
|
|
78
|
+
return [entry, "session-worker", sessionId, ...extra];
|
|
79
|
+
}
|
|
80
|
+
function launchWorker(sessionId, extra, signal) {
|
|
81
|
+
const argv = workerSpawnArgv(sessionId, extra);
|
|
82
|
+
let started = false;
|
|
83
|
+
let readiness;
|
|
84
|
+
const startLog = workerStartLogPath(sessionId);
|
|
85
|
+
try {
|
|
86
|
+
mkdirSync(workersDirectory(), { recursive: true, mode: 448 });
|
|
87
|
+
} catch (error) {
|
|
88
|
+
swallowed("worker/client", error);
|
|
89
|
+
}
|
|
90
|
+
const direct = () => {
|
|
91
|
+
if (started) return;
|
|
92
|
+
started = true;
|
|
93
|
+
let errorFd = "ignore";
|
|
94
|
+
try {
|
|
95
|
+
errorFd = openSync(startLog, "w", 384);
|
|
96
|
+
} catch (error) {
|
|
97
|
+
swallowed("worker/client", error);
|
|
98
|
+
}
|
|
99
|
+
const child = spawn(process.execPath, argv, {
|
|
100
|
+
// windowsHide: a detached child on Windows otherwise opens a console
|
|
101
|
+
// window of its own for as long as the worker lives.
|
|
102
|
+
stdio: ["ignore", "ignore", errorFd, "pipe"],
|
|
103
|
+
detached: true,
|
|
104
|
+
windowsHide: true,
|
|
105
|
+
env: { ...process.env, ...workerReadyEnvironment(3) }
|
|
106
|
+
});
|
|
107
|
+
if (typeof errorFd === "number") closeSync(errorFd);
|
|
108
|
+
child.on("error", (error) => {
|
|
109
|
+
try {
|
|
110
|
+
appendFileSync(startLog, `${error.message}
|
|
111
|
+
`);
|
|
112
|
+
} catch (error2) {
|
|
113
|
+
swallowed("worker/client", error2);
|
|
114
|
+
}
|
|
115
|
+
signal();
|
|
116
|
+
});
|
|
117
|
+
child.on("exit", (code) => signal(code ?? void 0));
|
|
118
|
+
readiness = child.stdio[3];
|
|
119
|
+
readiness?.on("data", () => signal());
|
|
120
|
+
readiness?.on("error", () => void 0);
|
|
121
|
+
readiness?.unref?.();
|
|
122
|
+
child.unref();
|
|
123
|
+
};
|
|
124
|
+
const viaManager = process.platform === "linux" ? userManagerLaunch(argv, {
|
|
125
|
+
cgroup: (() => {
|
|
126
|
+
try {
|
|
127
|
+
return readFileSync("/proc/self/cgroup", "utf8");
|
|
128
|
+
} catch {
|
|
129
|
+
return "";
|
|
130
|
+
}
|
|
131
|
+
})(),
|
|
132
|
+
uid: process.getuid?.() ?? 0,
|
|
133
|
+
env: process.env,
|
|
134
|
+
cwd: process.cwd(),
|
|
135
|
+
execPath: process.execPath,
|
|
136
|
+
unit: `clikcode-start-${sessionId.replace(/[^A-Za-z0-9_.-]/g, "_")}-${process.pid}-${Date.now()}.service`,
|
|
137
|
+
busExists: existsSync,
|
|
138
|
+
stderrFile: startLog
|
|
139
|
+
}) : void 0;
|
|
140
|
+
const handle = { close: () => {
|
|
141
|
+
readiness?.destroy();
|
|
142
|
+
} };
|
|
143
|
+
if (!viaManager) {
|
|
144
|
+
direct();
|
|
145
|
+
return handle;
|
|
146
|
+
}
|
|
147
|
+
lifecycle("client.worker.spawn-via-user-manager", { worker: sessionId });
|
|
148
|
+
const launcher = spawn(viaManager.command, viaManager.args, { env: viaManager.env, stdio: "ignore", detached: true });
|
|
149
|
+
launcher.on("error", direct);
|
|
150
|
+
launcher.on("exit", (code) => {
|
|
151
|
+
if (code !== 0) direct();
|
|
152
|
+
});
|
|
153
|
+
launcher.unref();
|
|
154
|
+
return handle;
|
|
155
|
+
}
|
|
156
|
+
function readStartLog(sessionId) {
|
|
157
|
+
try {
|
|
158
|
+
return readFileSync(workerStartLogPath(sessionId), "utf8");
|
|
159
|
+
} catch {
|
|
160
|
+
return "";
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
function removeStartLog(sessionId) {
|
|
164
|
+
try {
|
|
165
|
+
unlinkSync(workerStartLogPath(sessionId));
|
|
166
|
+
} catch {
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
async function spawnSessionWorker(sessionId, extra = []) {
|
|
170
|
+
lifecycle("client.worker.spawn", { worker: sessionId });
|
|
171
|
+
let wake;
|
|
172
|
+
let failedWith;
|
|
173
|
+
const signal = (exitCode) => {
|
|
174
|
+
if (exitCode !== void 0 && exitCode !== 0) failedWith = exitCode;
|
|
175
|
+
wake?.();
|
|
176
|
+
};
|
|
177
|
+
const stopWatching = watchWorkerRecord(sessionId, () => signal());
|
|
178
|
+
const launched = launchWorker(sessionId, extra, signal);
|
|
179
|
+
try {
|
|
180
|
+
return await waitForSpawnedWorker(sessionId, () => failedWith, (ms) => new Promise((resolveWait) => {
|
|
181
|
+
const timer = setTimeout(resolveWait, ms);
|
|
182
|
+
wake = () => {
|
|
183
|
+
clearTimeout(timer);
|
|
184
|
+
wake = void 0;
|
|
185
|
+
resolveWait();
|
|
186
|
+
};
|
|
187
|
+
}));
|
|
188
|
+
} finally {
|
|
189
|
+
stopWatching();
|
|
190
|
+
launched.close();
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
async function waitForSpawnedWorker(sessionId, failed, waitForSign) {
|
|
194
|
+
let deadline = Date.now() + SPAWN_TIMEOUT_MS;
|
|
195
|
+
let handoffAskedAt = 0;
|
|
196
|
+
let holder;
|
|
197
|
+
let holderCheckedAt = 0;
|
|
198
|
+
for (; ; ) {
|
|
199
|
+
const record = await readWorkerRecord(sessionId);
|
|
200
|
+
if (record && await recordIsLive(record)) {
|
|
201
|
+
removeStartLog(sessionId);
|
|
202
|
+
return record;
|
|
203
|
+
}
|
|
204
|
+
if (Date.now() - holderCheckedAt >= 250) {
|
|
205
|
+
holder = await conversationHolder(sessionId);
|
|
206
|
+
holderCheckedAt = Date.now();
|
|
207
|
+
}
|
|
208
|
+
if (holder && holder.host !== hostname()) {
|
|
209
|
+
deadline = Date.now() + HANDOFF_START_TIMEOUT_MS;
|
|
210
|
+
if (holder.kind === "worker" && Date.now() - handoffAskedAt >= 5e3) {
|
|
211
|
+
await requestConversationHandoff(sessionId);
|
|
212
|
+
handoffAskedAt = Date.now();
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
if ((Date.now() > deadline || failed() !== void 0) && holder?.kind !== "turn") {
|
|
216
|
+
const cause = failureText(readStartLog(sessionId));
|
|
217
|
+
removeStartLog(sessionId);
|
|
218
|
+
const what = failed() !== void 0 ? `exited (code ${failed()}) before it started` : "did not start in time";
|
|
219
|
+
throw new Error(`session worker for "${sessionId}" ${what}${cause ? `:
|
|
220
|
+
${cause}` : ' (it wrote nothing to say why; see "clikcode logs")'}`);
|
|
221
|
+
}
|
|
222
|
+
await waitForSign(Math.min(SPAWN_POLL_MS, Math.max(1, deadline - Date.now())));
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
var RETIRE_TIMEOUT_MS = 3e3;
|
|
226
|
+
async function socketReleased(record) {
|
|
227
|
+
const deadline = Date.now() + RETIRE_TIMEOUT_MS;
|
|
228
|
+
while (Date.now() < deadline) {
|
|
229
|
+
if (!await workerIsReachable(record.socketPath, 200)) return true;
|
|
230
|
+
await sleep(RELEASE_POLL_MS);
|
|
231
|
+
}
|
|
232
|
+
return false;
|
|
233
|
+
}
|
|
234
|
+
var RETIRE_ANSWER_MS = 500;
|
|
235
|
+
var ATTACH_ANSWER_MS = Number(process.env.CLIKCODE_ATTACH_ANSWER_MS) > 0 ? Number(process.env.CLIKCODE_ATTACH_ANSWER_MS) : 3e4;
|
|
236
|
+
function askToRetire(record, reason) {
|
|
237
|
+
return new Promise((resolveAnswer) => {
|
|
238
|
+
const socket = connect(record.socketPath);
|
|
239
|
+
const frames = new FrameDecoder();
|
|
240
|
+
let answered = false;
|
|
241
|
+
const answer = (value) => {
|
|
242
|
+
if (answered) return;
|
|
243
|
+
answered = true;
|
|
244
|
+
clearTimeout(timer);
|
|
245
|
+
socket.destroy();
|
|
246
|
+
resolveAnswer(value);
|
|
247
|
+
};
|
|
248
|
+
const timer = setTimeout(() => answer("unanswered"), RETIRE_ANSWER_MS);
|
|
249
|
+
socket.on("connect", () => {
|
|
250
|
+
socket.write(encodeFrame({ type: "retire", token: record.token, ...reason ? { reason } : {} }));
|
|
251
|
+
});
|
|
252
|
+
socket.on("data", (chunk) => {
|
|
253
|
+
for (const message of frames.push(chunk)) {
|
|
254
|
+
if (message.type === "retire-declined") answer("declined");
|
|
255
|
+
else if (message.type === "attach-rejected") answer("unanswered");
|
|
256
|
+
else if (message.type === "shutdown") answer("retired");
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
socket.on("close", () => answer("unanswered"));
|
|
260
|
+
socket.on("error", () => answer("unanswered"));
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
async function usableWorker(sessionId) {
|
|
264
|
+
const record = await findRunningWorker(sessionId);
|
|
265
|
+
if (!record) return void 0;
|
|
266
|
+
return await retireIfStale(record) ?? void 0;
|
|
267
|
+
}
|
|
268
|
+
async function retireIfStale(record) {
|
|
269
|
+
const build = currentWorkerBuild();
|
|
270
|
+
if (!build || record.build === build) return record;
|
|
271
|
+
const answer = await askToRetire(record);
|
|
272
|
+
if (answer === "declined") return record;
|
|
273
|
+
if (answer === "retired") return await socketReleased(record) ? void 0 : record;
|
|
274
|
+
return await recordIsLive(record) ? record : void 0;
|
|
275
|
+
}
|
|
276
|
+
async function replaceUnresponsiveWorker(record) {
|
|
277
|
+
lifecycle("client.worker.unresponsive", { worker: record.sessionId, workerPid: record.pid });
|
|
278
|
+
const current = await readWorkerRecord(record.sessionId);
|
|
279
|
+
if (current && current.pid !== record.pid) return;
|
|
280
|
+
for (const signal of ["SIGTERM", "SIGKILL"]) {
|
|
281
|
+
if (!pidIsAlive(record.pid)) break;
|
|
282
|
+
try {
|
|
283
|
+
process.kill(record.pid, signal);
|
|
284
|
+
} catch {
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
if (await socketReleased(record)) break;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
async function retireStaleWorkers() {
|
|
291
|
+
const build = currentWorkerBuild();
|
|
292
|
+
if (!build) return;
|
|
293
|
+
const records = await listWorkerRecords();
|
|
294
|
+
await Promise.all(records.map(async (record) => {
|
|
295
|
+
if (record.build === build) return;
|
|
296
|
+
if (!await workerIsReachable(record.socketPath)) return;
|
|
297
|
+
await retireIfStale(record);
|
|
298
|
+
}));
|
|
299
|
+
}
|
|
300
|
+
async function findRunningWorker(sessionId) {
|
|
301
|
+
const record = await readWorkerRecord(sessionId);
|
|
302
|
+
if (!record) return void 0;
|
|
303
|
+
return await recordIsLive(record) ? record : void 0;
|
|
304
|
+
}
|
|
305
|
+
async function recordIsLive(record) {
|
|
306
|
+
return pidIsAlive(record.pid) && workerIsReachable(record.socketPath);
|
|
307
|
+
}
|
|
308
|
+
async function warmSessionWorker(sessionId) {
|
|
309
|
+
const pending = warmingWorkerStarts.get(sessionId);
|
|
310
|
+
if (pending) {
|
|
311
|
+
await pending;
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
const starting = (async () => {
|
|
315
|
+
const running = await usableWorker(sessionId);
|
|
316
|
+
return running ? { record: running, launched: false } : { record: await spawnSessionWorker(sessionId, ["--warm"]), launched: true };
|
|
317
|
+
})();
|
|
318
|
+
warmingWorkerStarts.set(sessionId, starting);
|
|
319
|
+
let ready;
|
|
320
|
+
try {
|
|
321
|
+
ready = await starting;
|
|
322
|
+
} finally {
|
|
323
|
+
if (warmingWorkerStarts.get(sessionId) === starting) warmingWorkerStarts.delete(sessionId);
|
|
324
|
+
}
|
|
325
|
+
if (!ready.launched) await tellWorker(ready.record, { type: "warm", token: ready.record.token });
|
|
326
|
+
}
|
|
327
|
+
var warmingWorkerStarts = /* @__PURE__ */ new Map();
|
|
328
|
+
async function workerForCommands(sessionId) {
|
|
329
|
+
await warmingWorkerStarts.get(sessionId)?.catch(quiet("worker/client"));
|
|
330
|
+
const running = await usableWorker(sessionId);
|
|
331
|
+
if (running) return running;
|
|
332
|
+
await ensureSessionOnDisk(sessionId);
|
|
333
|
+
return spawnSessionWorker(sessionId);
|
|
334
|
+
}
|
|
335
|
+
async function runningWorker(sessionId) {
|
|
336
|
+
return Boolean(await findRunningWorker(sessionId));
|
|
337
|
+
}
|
|
338
|
+
async function retireMovedWorker(sessionId) {
|
|
339
|
+
const record = await findRunningWorker(sessionId);
|
|
340
|
+
if (record) await askToRetire(record, "moved");
|
|
341
|
+
}
|
|
342
|
+
function tellWorker(record, command) {
|
|
343
|
+
return new Promise((resolveTold) => {
|
|
344
|
+
const socket = connect(record.socketPath);
|
|
345
|
+
const done = () => {
|
|
346
|
+
clearTimeout(timer);
|
|
347
|
+
socket.destroy();
|
|
348
|
+
resolveTold();
|
|
349
|
+
};
|
|
350
|
+
const timer = setTimeout(done, RETIRE_ANSWER_MS);
|
|
351
|
+
socket.on("connect", () => {
|
|
352
|
+
socket.end(encodeFrame(command), done);
|
|
353
|
+
});
|
|
354
|
+
socket.on("error", done);
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
var WorkerSilent = class extends Error {
|
|
358
|
+
constructor() {
|
|
359
|
+
super("the conversation's worker did not answer");
|
|
360
|
+
this.name = "WorkerSilent";
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
var ClosedBeforeAnswer = class extends Error {
|
|
364
|
+
constructor() {
|
|
365
|
+
super("the conversation's worker closed the connection before it answered");
|
|
366
|
+
this.name = "ClosedBeforeAnswer";
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
var WorkerClient = class _WorkerClient extends EventEmitter {
|
|
370
|
+
constructor(socket) {
|
|
371
|
+
super();
|
|
372
|
+
this.socket = socket;
|
|
373
|
+
let resolveInitial;
|
|
374
|
+
let rejectInitial;
|
|
375
|
+
let sawInitial = false;
|
|
376
|
+
this.initialSnapshot = new Promise((resolve, reject) => {
|
|
377
|
+
resolveInitial = resolve;
|
|
378
|
+
rejectInitial = reject;
|
|
379
|
+
});
|
|
380
|
+
this.initialSnapshot.catch(quiet("worker/client"));
|
|
381
|
+
const deliver = (event) => {
|
|
382
|
+
if (!sawInitial && (event.type === "snapshot" || event.type === "attach-rejected")) {
|
|
383
|
+
sawInitial = true;
|
|
384
|
+
this.initialEvent = event;
|
|
385
|
+
resolveInitial(event);
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
388
|
+
if (!sawInitial) return;
|
|
389
|
+
if (this.early) this.early.push(event);
|
|
390
|
+
else this.emit("event", event);
|
|
391
|
+
};
|
|
392
|
+
socket.on("data", (chunk) => {
|
|
393
|
+
for (const message of this.frames.push(chunk)) {
|
|
394
|
+
const event = message;
|
|
395
|
+
if (this.behind === 0 && !(event.type === "snapshot" && event.saved)) {
|
|
396
|
+
deliver(event);
|
|
397
|
+
continue;
|
|
398
|
+
}
|
|
399
|
+
this.behind += 1;
|
|
400
|
+
this.order = this.order.then(async () => {
|
|
401
|
+
try {
|
|
402
|
+
deliver(event.type === "snapshot" ? await withSavedConversation(event) : event);
|
|
403
|
+
} catch (error) {
|
|
404
|
+
const reason = error instanceof Error ? error : new Error(String(error));
|
|
405
|
+
lifecycle("client.worker.snapshot-unread", { message: reason.message });
|
|
406
|
+
if (!sawInitial) rejectInitial(reason);
|
|
407
|
+
} finally {
|
|
408
|
+
this.behind -= 1;
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
this.on("newListener", (name) => {
|
|
414
|
+
if (name !== "event" || !this.early) return;
|
|
415
|
+
const held = this.early;
|
|
416
|
+
this.early = void 0;
|
|
417
|
+
queueMicrotask(() => {
|
|
418
|
+
for (const event of held) this.emit("event", event);
|
|
419
|
+
});
|
|
420
|
+
});
|
|
421
|
+
socket.on("close", () => {
|
|
422
|
+
lifecycle("client.worker.closed");
|
|
423
|
+
const ended = () => {
|
|
424
|
+
if (!sawInitial) rejectInitial(new ClosedBeforeAnswer());
|
|
425
|
+
this.emit("close");
|
|
426
|
+
};
|
|
427
|
+
if (this.behind === 0) ended();
|
|
428
|
+
else void this.order.then(ended);
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
socket;
|
|
432
|
+
frames = new FrameDecoder();
|
|
433
|
+
early = [];
|
|
434
|
+
initialSnapshot;
|
|
435
|
+
/** The same event, readable synchronously once attach() has resolved. */
|
|
436
|
+
initialEvent;
|
|
437
|
+
/** Events held behind a snapshot still being completed from disk, so none
|
|
438
|
+
* overtakes it: delivery stays in the order the worker sent them. */
|
|
439
|
+
behind = 0;
|
|
440
|
+
order = Promise.resolve();
|
|
441
|
+
/** `reattaches`: this window attaches again by itself when it next needs the
|
|
442
|
+
* worker (a terminal), so the worker may retire under it when too many run. */
|
|
443
|
+
static async attach(sessionId, options = {}) {
|
|
444
|
+
await warmingWorkerStarts.get(sessionId)?.catch(quiet("worker/client"));
|
|
445
|
+
const running = await usableWorker(sessionId);
|
|
446
|
+
if (running) {
|
|
447
|
+
try {
|
|
448
|
+
return await _WorkerClient.connectTo(running, options);
|
|
449
|
+
} catch (first) {
|
|
450
|
+
if (!(first instanceof WorkerSilent)) throw first;
|
|
451
|
+
}
|
|
452
|
+
try {
|
|
453
|
+
return await _WorkerClient.connectTo(running, options);
|
|
454
|
+
} catch (second) {
|
|
455
|
+
if (!(second instanceof WorkerSilent)) throw second;
|
|
456
|
+
}
|
|
457
|
+
await replaceUnresponsiveWorker(running);
|
|
458
|
+
await ensureSessionOnDisk(sessionId);
|
|
459
|
+
return _WorkerClient.connectTo(await spawnSessionWorker(sessionId), options);
|
|
460
|
+
}
|
|
461
|
+
await ensureSessionOnDisk(sessionId);
|
|
462
|
+
return _WorkerClient.connectTo(await spawnSessionWorker(sessionId), options);
|
|
463
|
+
}
|
|
464
|
+
/** The session's worker if one is already running; never starts one. A
|
|
465
|
+
* window at its prompt uses this to follow turns it did not start. */
|
|
466
|
+
static async attachExisting(sessionId, options = {}) {
|
|
467
|
+
const record = await usableWorker(sessionId);
|
|
468
|
+
return record ? _WorkerClient.connectTo(record, options) : void 0;
|
|
469
|
+
}
|
|
470
|
+
/** One reconnect, and only for a connection lost before the worker answered
|
|
471
|
+
* (the worker is still there to be asked again); any other failure is the
|
|
472
|
+
* answer. */
|
|
473
|
+
static async connectTo(record, options) {
|
|
474
|
+
try {
|
|
475
|
+
return await _WorkerClient.connectOnce(record, options);
|
|
476
|
+
} catch (error) {
|
|
477
|
+
if (!(error instanceof ClosedBeforeAnswer)) throw error;
|
|
478
|
+
return _WorkerClient.connectOnce(record, options);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
static async connectOnce(record, options) {
|
|
482
|
+
const socket = await new Promise((resolveSocket, rejectSocket) => {
|
|
483
|
+
const candidate = connect(record.socketPath);
|
|
484
|
+
candidate.once("connect", () => resolveSocket(candidate));
|
|
485
|
+
candidate.once("error", rejectSocket);
|
|
486
|
+
});
|
|
487
|
+
const client = new _WorkerClient(socket);
|
|
488
|
+
lifecycle("client.worker.connect", { worker: record.sessionId, workerPid: record.pid });
|
|
489
|
+
client.send({ type: "attach", token: record.token, readsSaved: true, ...options.reattaches ? { reattaches: true } : {} });
|
|
490
|
+
const initial = await Promise.race([
|
|
491
|
+
client.initialSnapshot,
|
|
492
|
+
new Promise((_, reject) => {
|
|
493
|
+
setTimeout(() => reject(new WorkerSilent()), ATTACH_ANSWER_MS).unref();
|
|
494
|
+
})
|
|
495
|
+
]).catch((error) => {
|
|
496
|
+
client.close();
|
|
497
|
+
throw error;
|
|
498
|
+
});
|
|
499
|
+
if (initial.type === "attach-rejected") {
|
|
500
|
+
client.close();
|
|
501
|
+
throw new Error(`worker rejected this connection: ${initial.reason}`);
|
|
502
|
+
}
|
|
503
|
+
return client;
|
|
504
|
+
}
|
|
505
|
+
send(command) {
|
|
506
|
+
this.socket.write(encodeFrame(command));
|
|
507
|
+
}
|
|
508
|
+
close() {
|
|
509
|
+
this.socket.end();
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
export {
|
|
514
|
+
retireStaleWorkers,
|
|
515
|
+
warmSessionWorker,
|
|
516
|
+
workerForCommands,
|
|
517
|
+
runningWorker,
|
|
518
|
+
retireMovedWorker,
|
|
519
|
+
WorkerClient
|
|
520
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
accountSignedOutOnDisk,
|
|
5
|
+
aiAccountAdd,
|
|
6
|
+
aiAccountLogin,
|
|
7
|
+
aiAccountLogout,
|
|
8
|
+
aiAccountProviders,
|
|
9
|
+
aiAccountRemove,
|
|
10
|
+
aiAccountStatus,
|
|
11
|
+
aiAccountsList,
|
|
12
|
+
aiDoctor,
|
|
13
|
+
harnessNeedsLogin,
|
|
14
|
+
nativeStatusSignedIn,
|
|
15
|
+
setEmitHarnessOutput,
|
|
16
|
+
signInCancelledLine,
|
|
17
|
+
signInOutcomeSaid,
|
|
18
|
+
signOutAccount,
|
|
19
|
+
statusEmail,
|
|
20
|
+
syncAccountIdentityAfterLogin,
|
|
21
|
+
versionFromOutput,
|
|
22
|
+
withSignIn
|
|
23
|
+
} from "./chunk-LA6MG4ET.js";
|
|
24
|
+
import "./chunk-N3SFDYM7.js";
|
|
25
|
+
import "./chunk-RE4TGORR.js";
|
|
26
|
+
import "./chunk-DCZ6CIUM.js";
|
|
27
|
+
import "./chunk-M3FO5UMK.js";
|
|
28
|
+
import "./chunk-CERF3RIB.js";
|
|
29
|
+
import "./chunk-DA44ZENT.js";
|
|
30
|
+
import "./chunk-XWAC3MKW.js";
|
|
31
|
+
import "./chunk-CVFVFRGN.js";
|
|
32
|
+
import "./chunk-ESF3DIZY.js";
|
|
33
|
+
import "./chunk-R7QN6ONS.js";
|
|
34
|
+
import "./chunk-ZN7G6JLS.js";
|
|
35
|
+
import "./chunk-ZGX3ERAT.js";
|
|
36
|
+
import "./chunk-MXS6S2PY.js";
|
|
37
|
+
import "./chunk-BISGNHKD.js";
|
|
38
|
+
import "./chunk-RKUVLRZI.js";
|
|
39
|
+
import "./chunk-BGEMY2JJ.js";
|
|
40
|
+
import "./chunk-XCKQ5BM2.js";
|
|
41
|
+
import "./chunk-NWEYRBWK.js";
|
|
42
|
+
import "./chunk-TWCVV2JO.js";
|
|
43
|
+
import "./chunk-PDPEM5VW.js";
|
|
44
|
+
import "./chunk-WWLJMP6D.js";
|
|
45
|
+
import "./chunk-CRUVYGO2.js";
|
|
46
|
+
import "./chunk-FF7ZVYJF.js";
|
|
47
|
+
import "./chunk-IMLTL2MY.js";
|
|
48
|
+
import "./chunk-BUOPJQP5.js";
|
|
49
|
+
import "./chunk-3B2CHX7M.js";
|
|
50
|
+
import "./chunk-RVUOIJXN.js";
|
|
51
|
+
import "./chunk-QUS4ER2W.js";
|
|
52
|
+
import "./chunk-DQYVQ2N7.js";
|
|
53
|
+
import "./chunk-KYUHIFP3.js";
|
|
54
|
+
import "./chunk-RSZGEL5U.js";
|
|
55
|
+
import "./chunk-NKDATMEM.js";
|
|
56
|
+
import "./chunk-DF35KMXM.js";
|
|
57
|
+
import "./chunk-ZT7B4H2V.js";
|
|
58
|
+
import "./chunk-OL4JBD3J.js";
|
|
59
|
+
import "./chunk-IGZ6C2MC.js";
|
|
60
|
+
import "./chunk-4NN3XQQT.js";
|
|
61
|
+
import "./chunk-4AQ5NINV.js";
|
|
62
|
+
import "./chunk-WPB5WEZJ.js";
|
|
63
|
+
import "./chunk-GYMAI5NY.js";
|
|
64
|
+
import "./chunk-CQ7J6UQ7.js";
|
|
65
|
+
import "./chunk-XKW5NDMR.js";
|
|
66
|
+
import "./chunk-W3YYPBEA.js";
|
|
67
|
+
import "./chunk-XIBYREEY.js";
|
|
68
|
+
import "./chunk-EE4B6A7W.js";
|
|
69
|
+
import "./chunk-WZYVLUVQ.js";
|
|
70
|
+
import "./chunk-O3EW7LAY.js";
|
|
71
|
+
import "./chunk-KHW6TX6I.js";
|
|
72
|
+
import "./chunk-YMCH3L2S.js";
|
|
73
|
+
import "./chunk-JGIWATSG.js";
|
|
74
|
+
import "./chunk-5B6TVO4A.js";
|
|
75
|
+
import "./chunk-NAOX3JUB.js";
|
|
76
|
+
import "./chunk-4QZEZME7.js";
|
|
77
|
+
import "./chunk-LVRRWP4W.js";
|
|
78
|
+
import "./chunk-G3QP67Z7.js";
|
|
79
|
+
import "./chunk-4L2ZZM4Q.js";
|
|
80
|
+
import "./chunk-F6F47QAY.js";
|
|
81
|
+
import "./chunk-RDDWQBEM.js";
|
|
82
|
+
import "./chunk-MPAJ446F.js";
|
|
83
|
+
import "./chunk-CBANJFBO.js";
|
|
84
|
+
import "./chunk-PWXII6HF.js";
|
|
85
|
+
export {
|
|
86
|
+
accountSignedOutOnDisk,
|
|
87
|
+
aiAccountAdd,
|
|
88
|
+
aiAccountLogin,
|
|
89
|
+
aiAccountLogout,
|
|
90
|
+
aiAccountProviders,
|
|
91
|
+
aiAccountRemove,
|
|
92
|
+
aiAccountStatus,
|
|
93
|
+
aiAccountsList,
|
|
94
|
+
aiDoctor,
|
|
95
|
+
harnessNeedsLogin,
|
|
96
|
+
nativeStatusSignedIn,
|
|
97
|
+
setEmitHarnessOutput,
|
|
98
|
+
signInCancelledLine,
|
|
99
|
+
signInOutcomeSaid,
|
|
100
|
+
signOutAccount,
|
|
101
|
+
statusEmail,
|
|
102
|
+
syncAccountIdentityAfterLogin,
|
|
103
|
+
versionFromOutput,
|
|
104
|
+
withSignIn
|
|
105
|
+
};
|