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,407 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
mcpConfigFilePath
|
|
5
|
+
} from "./chunk-DQYVQ2N7.js";
|
|
6
|
+
import {
|
|
7
|
+
sleep
|
|
8
|
+
} from "./chunk-YMCH3L2S.js";
|
|
9
|
+
import {
|
|
10
|
+
breakStaleLock,
|
|
11
|
+
pidIsAlive
|
|
12
|
+
} from "./chunk-4L2ZZM4Q.js";
|
|
13
|
+
import {
|
|
14
|
+
atomicWriteFile
|
|
15
|
+
} from "./chunk-F6F47QAY.js";
|
|
16
|
+
import {
|
|
17
|
+
quiet
|
|
18
|
+
} from "./chunk-RDDWQBEM.js";
|
|
19
|
+
import {
|
|
20
|
+
stateDirectory
|
|
21
|
+
} from "./chunk-MPAJ446F.js";
|
|
22
|
+
|
|
23
|
+
// src/worker/registry.ts
|
|
24
|
+
import { createHash, randomBytes } from "node:crypto";
|
|
25
|
+
import { closeSync, readFileSync, statSync, watch, writeSync } from "node:fs";
|
|
26
|
+
import { link, mkdir, readdir, readFile, stat, unlink, utimes, writeFile } from "node:fs/promises";
|
|
27
|
+
import { connect } from "node:net";
|
|
28
|
+
import { hostname, tmpdir } from "node:os";
|
|
29
|
+
import { join } from "node:path";
|
|
30
|
+
var ENTRY_CONTENT_LIMIT_BYTES = 1024 * 1024;
|
|
31
|
+
var entryIds = /* @__PURE__ */ new Map();
|
|
32
|
+
function entryIdentity(entry) {
|
|
33
|
+
const stats = statSync(entry);
|
|
34
|
+
const stamp = `${Math.round(stats.mtimeMs)}:${stats.size}`;
|
|
35
|
+
if (stats.size > ENTRY_CONTENT_LIMIT_BYTES) return stamp;
|
|
36
|
+
const known = entryIds.get(entry);
|
|
37
|
+
if (known?.stamp === stamp) return known.id;
|
|
38
|
+
const id = `${createHash("sha256").update(readFileSync(entry)).digest("hex").slice(0, 24)}:${stats.size}`;
|
|
39
|
+
entryIds.set(entry, { stamp, id });
|
|
40
|
+
return id;
|
|
41
|
+
}
|
|
42
|
+
function currentWorkerBuild() {
|
|
43
|
+
const entry = process.env.CLIKCODE_WORKER_ENTRY ?? process.argv[1];
|
|
44
|
+
if (!entry) return void 0;
|
|
45
|
+
try {
|
|
46
|
+
const identity = entryIdentity(entry);
|
|
47
|
+
let mcp = "missing";
|
|
48
|
+
try {
|
|
49
|
+
mcp = createHash("sha256").update(readFileSync(mcpConfigFilePath(stateDirectory()))).digest("hex");
|
|
50
|
+
} catch {
|
|
51
|
+
}
|
|
52
|
+
return `${identity}:mcp-${mcp}`;
|
|
53
|
+
} catch {
|
|
54
|
+
return void 0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function workersDirectory() {
|
|
58
|
+
return join(stateDirectory(), "workers");
|
|
59
|
+
}
|
|
60
|
+
function sessionKey(sessionId) {
|
|
61
|
+
return createHash("sha256").update(sessionId).digest("hex").slice(0, 20);
|
|
62
|
+
}
|
|
63
|
+
function workerStartLogPath(sessionId) {
|
|
64
|
+
return join(workersDirectory(), `${sessionKey(sessionId)}.start.log`);
|
|
65
|
+
}
|
|
66
|
+
function recordPath(sessionId) {
|
|
67
|
+
return join(workersDirectory(), `${sessionKey(sessionId)}.json`);
|
|
68
|
+
}
|
|
69
|
+
async function ensureWorkersDirectory() {
|
|
70
|
+
await mkdir(workersDirectory(), { recursive: true, mode: 448 });
|
|
71
|
+
}
|
|
72
|
+
var STARTUP_TMPDIR = tmpdir();
|
|
73
|
+
function socketPathFor(sessionId, platform = process.platform) {
|
|
74
|
+
return socketPathForKey(sessionKey(sessionId), platform);
|
|
75
|
+
}
|
|
76
|
+
function socketPathForKey(key, platform = process.platform) {
|
|
77
|
+
if (platform === "win32") {
|
|
78
|
+
const scope = createHash("sha256").update(stateDirectory()).digest("hex").slice(0, 12);
|
|
79
|
+
return `\\\\.\\pipe\\clikcode-${scope}-${key}`;
|
|
80
|
+
}
|
|
81
|
+
const standard = join(workersDirectory(), `${key}.sock`);
|
|
82
|
+
if (standard.length < 100) return standard;
|
|
83
|
+
const temporary = join(STARTUP_TMPDIR, `cc-${key}.sock`);
|
|
84
|
+
if (temporary.length < 100) return temporary;
|
|
85
|
+
return join("/tmp", `cc-${process.getuid?.() ?? 0}-${key}.sock`);
|
|
86
|
+
}
|
|
87
|
+
async function readWorkerRecord(sessionId) {
|
|
88
|
+
try {
|
|
89
|
+
const raw = await readFile(recordPath(sessionId), "utf8");
|
|
90
|
+
const parsed = JSON.parse(raw);
|
|
91
|
+
if (typeof parsed.pid !== "number" || typeof parsed.socketPath !== "string" || typeof parsed.token !== "string") return void 0;
|
|
92
|
+
return parsed;
|
|
93
|
+
} catch (error) {
|
|
94
|
+
if (error.code === "ENOENT") return void 0;
|
|
95
|
+
throw error;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
async function listWorkerRecords() {
|
|
99
|
+
let names;
|
|
100
|
+
try {
|
|
101
|
+
names = await readdir(workersDirectory());
|
|
102
|
+
} catch (error) {
|
|
103
|
+
if (error.code === "ENOENT") return [];
|
|
104
|
+
throw error;
|
|
105
|
+
}
|
|
106
|
+
const records = [];
|
|
107
|
+
for (const name of names) {
|
|
108
|
+
if (!name.endsWith(".json")) continue;
|
|
109
|
+
try {
|
|
110
|
+
const raw = await readFile(join(workersDirectory(), name), "utf8");
|
|
111
|
+
const parsed = JSON.parse(raw);
|
|
112
|
+
if (typeof parsed.pid !== "number" || typeof parsed.socketPath !== "string" || typeof parsed.token !== "string" || typeof parsed.sessionId !== "string") continue;
|
|
113
|
+
records.push(parsed);
|
|
114
|
+
} catch {
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return records;
|
|
118
|
+
}
|
|
119
|
+
async function writeWorkerRecord(record, options = {}) {
|
|
120
|
+
if (options.existing && !await stat(recordPath(record.sessionId)).then(() => true, () => false)) return;
|
|
121
|
+
await atomicWriteFile(recordPath(record.sessionId), `${JSON.stringify(record, null, 2)}
|
|
122
|
+
`, { durable: false });
|
|
123
|
+
}
|
|
124
|
+
async function workerRecordWrittenAt(sessionId) {
|
|
125
|
+
return stat(recordPath(sessionId)).then((info) => info.mtimeMs, () => void 0);
|
|
126
|
+
}
|
|
127
|
+
async function workerRecordCount() {
|
|
128
|
+
return (await readdir(workersDirectory()).catch(() => [])).filter((name) => name.endsWith(".json")).length;
|
|
129
|
+
}
|
|
130
|
+
function generateWorkerToken() {
|
|
131
|
+
return randomBytes(16).toString("hex");
|
|
132
|
+
}
|
|
133
|
+
async function removeWorkerRecord(sessionId, token) {
|
|
134
|
+
if ((await readWorkerRecord(sessionId).catch(quiet("worker/registry")))?.token !== token) return;
|
|
135
|
+
await unlink(recordPath(sessionId)).catch((error) => {
|
|
136
|
+
if (error.code !== "ENOENT") throw error;
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
var OWNER_REFRESH_MS = 1e4;
|
|
140
|
+
var OWNER_STALE_MS = 6e4;
|
|
141
|
+
function ownerPath(sessionId, kind = "worker") {
|
|
142
|
+
return join(workersDirectory(), `${sessionKey(sessionId)}.${kind === "client" ? "open" : "owner"}`);
|
|
143
|
+
}
|
|
144
|
+
function handoffPath(sessionId) {
|
|
145
|
+
return join(workersDirectory(), `${sessionKey(sessionId)}.handoff`);
|
|
146
|
+
}
|
|
147
|
+
var HANDOFF_FRESH_MS = 6e4;
|
|
148
|
+
var CONVERSATION_HANDOFF_REASON = "conversation moved to another machine";
|
|
149
|
+
async function requestConversationHandoff(sessionId) {
|
|
150
|
+
const owner = await conversationHolder(sessionId);
|
|
151
|
+
if (!owner || owner.kind !== "worker" || owner.host === hostname()) return false;
|
|
152
|
+
await atomicWriteFile(handoffPath(sessionId), `${JSON.stringify({ toHost: hostname(), at: Date.now() })}
|
|
153
|
+
`, { durable: false });
|
|
154
|
+
return true;
|
|
155
|
+
}
|
|
156
|
+
async function conversationHandoffRequested(sessionId, workerHost = hostname()) {
|
|
157
|
+
const raw = await readFile(handoffPath(sessionId), "utf8").catch(quiet("worker/registry"));
|
|
158
|
+
if (!raw) return false;
|
|
159
|
+
try {
|
|
160
|
+
const request = JSON.parse(raw);
|
|
161
|
+
return typeof request.toHost === "string" && request.toHost !== workerHost && typeof request.at === "number" && Date.now() - request.at < HANDOFF_FRESH_MS;
|
|
162
|
+
} catch {
|
|
163
|
+
return false;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
var READY_FD_ENV = "CLIKCODE_WORKER_READY_FD";
|
|
167
|
+
function takeWorkerReadyFd() {
|
|
168
|
+
const value = process.env[READY_FD_ENV];
|
|
169
|
+
delete process.env[READY_FD_ENV];
|
|
170
|
+
const fd = Number(value);
|
|
171
|
+
return Number.isInteger(fd) && fd > 2 ? fd : void 0;
|
|
172
|
+
}
|
|
173
|
+
function workerReadyEnvironment(fd) {
|
|
174
|
+
return { [READY_FD_ENV]: String(fd) };
|
|
175
|
+
}
|
|
176
|
+
function announceWorkerReady(fd) {
|
|
177
|
+
if (fd === void 0) return;
|
|
178
|
+
try {
|
|
179
|
+
writeSync(fd, "ready\n");
|
|
180
|
+
} catch {
|
|
181
|
+
}
|
|
182
|
+
try {
|
|
183
|
+
closeSync(fd);
|
|
184
|
+
} catch {
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
function watchWorkerRecord(sessionId, changed) {
|
|
188
|
+
return watchWorkersFile(`${sessionKey(sessionId)}.json`, changed);
|
|
189
|
+
}
|
|
190
|
+
function watchWorkersFile(name, changed) {
|
|
191
|
+
try {
|
|
192
|
+
const watcher = watch(workersDirectory(), { persistent: false }, (_event, file) => {
|
|
193
|
+
if (file === null || String(file) === name) changed();
|
|
194
|
+
});
|
|
195
|
+
watcher.on("error", () => watcher.close());
|
|
196
|
+
return () => watcher.close();
|
|
197
|
+
} catch {
|
|
198
|
+
return () => void 0;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
function watchHandoffRequest(sessionId, changed) {
|
|
202
|
+
return watchWorkersFile(`${sessionKey(sessionId)}.handoff`, changed);
|
|
203
|
+
}
|
|
204
|
+
function parseOwner(raw) {
|
|
205
|
+
try {
|
|
206
|
+
const parsed = JSON.parse(raw);
|
|
207
|
+
return typeof parsed.pid === "number" && typeof parsed.host === "string" && (parsed.kind === "worker" || parsed.kind === "turn" || parsed.kind === "client") ? parsed : void 0;
|
|
208
|
+
} catch {
|
|
209
|
+
return void 0;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
async function ownerIsLive(sessionId, owner, path = ownerPath(sessionId), socketPath = socketPathFor(sessionId)) {
|
|
213
|
+
const modified = await stat(path).then((info) => info.mtimeMs, () => void 0);
|
|
214
|
+
if (modified === void 0) return false;
|
|
215
|
+
const fresh = Date.now() - modified < OWNER_STALE_MS;
|
|
216
|
+
if (!owner || owner.host !== hostname()) return fresh;
|
|
217
|
+
if (!pidIsAlive(owner.pid)) return false;
|
|
218
|
+
if (fresh) return true;
|
|
219
|
+
return owner.kind === "worker" && workerIsReachable(socketPath);
|
|
220
|
+
}
|
|
221
|
+
async function workerAlive(record) {
|
|
222
|
+
const path = ownerPath(record.sessionId);
|
|
223
|
+
const raw = await readFile(path, "utf8").catch(quiet("worker/registry"));
|
|
224
|
+
const owner = raw === void 0 ? void 0 : parseOwner(raw);
|
|
225
|
+
if (!owner || owner.kind !== "worker" || owner.pid !== record.pid) return false;
|
|
226
|
+
return ownerIsLive(record.sessionId, owner, path);
|
|
227
|
+
}
|
|
228
|
+
async function liveWorkerRecords() {
|
|
229
|
+
const records = await listWorkerRecords();
|
|
230
|
+
const alive = await Promise.all(records.map(async (record) => {
|
|
231
|
+
if (await workerAlive(record)) return true;
|
|
232
|
+
await removeDeadWorkerRecord(record).catch(quiet("worker/registry"));
|
|
233
|
+
return false;
|
|
234
|
+
}));
|
|
235
|
+
return records.filter((_, index) => alive[index]);
|
|
236
|
+
}
|
|
237
|
+
async function removeDeadWorkerRecord(record) {
|
|
238
|
+
const path = recordPath(record.sessionId);
|
|
239
|
+
const raw = await readFile(path, "utf8").catch(quiet("worker/registry"));
|
|
240
|
+
if (raw === void 0) return;
|
|
241
|
+
const sameRecord = (current) => {
|
|
242
|
+
try {
|
|
243
|
+
const parsed = JSON.parse(current);
|
|
244
|
+
return parsed.token === record.token && parsed.pid === record.pid;
|
|
245
|
+
} catch {
|
|
246
|
+
return false;
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
if (!sameRecord(raw)) return;
|
|
250
|
+
await breakStaleLock(path, raw, async (current) => sameRecord(current) && !await workerAlive(record));
|
|
251
|
+
}
|
|
252
|
+
var WORKER_LEFTOVER_MS = 6e4;
|
|
253
|
+
var START_LOG_MAX_AGE_MS = 10 * 6e4;
|
|
254
|
+
async function sweepWorkersDirectory(now = Date.now()) {
|
|
255
|
+
const directory = workersDirectory();
|
|
256
|
+
const names = await readdir(directory).catch(() => []);
|
|
257
|
+
let removed = 0;
|
|
258
|
+
const ageOf = (path) => stat(path).then((info) => now - info.mtimeMs, () => void 0);
|
|
259
|
+
const remove = async (path) => {
|
|
260
|
+
await unlink(path).then(() => {
|
|
261
|
+
removed += 1;
|
|
262
|
+
}, quiet("worker/registry"));
|
|
263
|
+
};
|
|
264
|
+
const before = (await listWorkerRecords()).length;
|
|
265
|
+
const live = await liveWorkerRecords();
|
|
266
|
+
removed += before - live.length;
|
|
267
|
+
const liveSockets = new Set(live.map((record) => record.socketPath));
|
|
268
|
+
for (const name of names) {
|
|
269
|
+
const path = join(directory, name);
|
|
270
|
+
if (/\.(new|tmp|stale|breaking)$/.test(name)) {
|
|
271
|
+
const age = await ageOf(path);
|
|
272
|
+
if (age !== void 0 && age > WORKER_LEFTOVER_MS) await remove(path);
|
|
273
|
+
} else if (name.endsWith(".handoff")) {
|
|
274
|
+
const age = await ageOf(path);
|
|
275
|
+
if (age !== void 0 && age > HANDOFF_FRESH_MS) await remove(path);
|
|
276
|
+
} else if (name.endsWith(".start.log")) {
|
|
277
|
+
const age = await ageOf(path);
|
|
278
|
+
if (age !== void 0 && age > START_LOG_MAX_AGE_MS) await remove(path);
|
|
279
|
+
} else if (name.endsWith(".owner") || name.endsWith(".open")) {
|
|
280
|
+
const raw = await readFile(path, "utf8").catch(quiet("worker/registry"));
|
|
281
|
+
if (raw === void 0) continue;
|
|
282
|
+
const age = await ageOf(path);
|
|
283
|
+
const socket = socketPathForKey(name.slice(0, name.lastIndexOf(".")));
|
|
284
|
+
if (age === void 0 || age < OWNER_STALE_MS || await ownerIsLive("", parseOwner(raw), path, socket)) continue;
|
|
285
|
+
await breakStaleLock(path, raw, async (current) => !await ownerIsLive("", parseOwner(current), path, socket));
|
|
286
|
+
if (!await stat(path).then(() => true, () => false)) removed += 1;
|
|
287
|
+
} else if (name.endsWith(".sock") && !liveSockets.has(path)) {
|
|
288
|
+
const age = await ageOf(path);
|
|
289
|
+
if (age !== void 0 && age > WORKER_LEFTOVER_MS && !await workerIsReachable(path, 200)) await remove(path);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
return removed;
|
|
293
|
+
}
|
|
294
|
+
async function conversationHolder(sessionId) {
|
|
295
|
+
const raw = await readFile(ownerPath(sessionId), "utf8").catch(quiet("worker/registry"));
|
|
296
|
+
const owner = raw === void 0 ? void 0 : parseOwner(raw);
|
|
297
|
+
return owner && await ownerIsLive(sessionId, owner) ? owner : void 0;
|
|
298
|
+
}
|
|
299
|
+
async function takeConversation(sessionId, kind) {
|
|
300
|
+
await ensureWorkersDirectory();
|
|
301
|
+
const path = ownerPath(sessionId, kind);
|
|
302
|
+
for (let attempt = 0; attempt < 50; attempt += 1) {
|
|
303
|
+
const owner = { pid: process.pid, host: hostname(), kind, nonce: randomBytes(9).toString("hex"), at: (/* @__PURE__ */ new Date()).toISOString() };
|
|
304
|
+
const mine = JSON.stringify(owner);
|
|
305
|
+
const staging = `${path}.${process.pid}.${owner.nonce}.new`;
|
|
306
|
+
await writeFile(staging, mine, { encoding: "utf8", mode: 384, flag: "wx" });
|
|
307
|
+
try {
|
|
308
|
+
await link(staging, path);
|
|
309
|
+
return { hold: holdOf(path, mine) };
|
|
310
|
+
} catch (error) {
|
|
311
|
+
if (error.code !== "EEXIST") throw error;
|
|
312
|
+
} finally {
|
|
313
|
+
await unlink(staging).catch(quiet("worker/registry"));
|
|
314
|
+
}
|
|
315
|
+
const raw = await readFile(path, "utf8").catch(quiet("worker/registry"));
|
|
316
|
+
if (raw === void 0) continue;
|
|
317
|
+
const holder = parseOwner(raw);
|
|
318
|
+
if (holder && await ownerIsLive(sessionId, holder, path)) return { holder };
|
|
319
|
+
if (!holder && await ownerIsLive(sessionId, void 0, path)) {
|
|
320
|
+
await sleep(20);
|
|
321
|
+
continue;
|
|
322
|
+
}
|
|
323
|
+
await breakStaleLock(path, raw);
|
|
324
|
+
}
|
|
325
|
+
throw new Error(`Could not settle who runs conversation ${sessionId}.`);
|
|
326
|
+
}
|
|
327
|
+
async function liveOpenConversations() {
|
|
328
|
+
const keys = /* @__PURE__ */ new Set();
|
|
329
|
+
const names = await readdir(workersDirectory()).catch(() => []);
|
|
330
|
+
await Promise.all(names.filter((name) => name.endsWith(".open")).map(async (name) => {
|
|
331
|
+
const path = join(workersDirectory(), name);
|
|
332
|
+
const raw = await readFile(path, "utf8").catch(quiet("worker/registry"));
|
|
333
|
+
const owner = raw === void 0 ? void 0 : parseOwner(raw);
|
|
334
|
+
if (!owner || owner.pid === process.pid && owner.host === hostname()) return;
|
|
335
|
+
if (await ownerIsLive("", owner, path)) keys.add(name.slice(0, -".open".length));
|
|
336
|
+
}));
|
|
337
|
+
return (sessionId) => keys.has(sessionKey(sessionId));
|
|
338
|
+
}
|
|
339
|
+
function holdOf(path, mine) {
|
|
340
|
+
const held = async () => await readFile(path, "utf8").catch(quiet("worker/registry")) === mine;
|
|
341
|
+
const refresh = setInterval(() => {
|
|
342
|
+
void held().then((still) => {
|
|
343
|
+
if (!still) {
|
|
344
|
+
clearInterval(refresh);
|
|
345
|
+
return void 0;
|
|
346
|
+
}
|
|
347
|
+
const now = /* @__PURE__ */ new Date();
|
|
348
|
+
return utimes(path, now, now);
|
|
349
|
+
}).catch(quiet("worker/registry"));
|
|
350
|
+
}, OWNER_REFRESH_MS);
|
|
351
|
+
refresh.unref();
|
|
352
|
+
return {
|
|
353
|
+
held,
|
|
354
|
+
release: async () => {
|
|
355
|
+
clearInterval(refresh);
|
|
356
|
+
if (await held()) await unlink(path).catch(quiet("worker/registry"));
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
function workerIsReachable(socketPath, timeoutMs = 500) {
|
|
361
|
+
return new Promise((resolveReachable) => {
|
|
362
|
+
const socket = connect(socketPath);
|
|
363
|
+
const settle = (reachable) => {
|
|
364
|
+
socket.removeAllListeners();
|
|
365
|
+
socket.destroy();
|
|
366
|
+
resolveReachable(reachable);
|
|
367
|
+
};
|
|
368
|
+
const timer = setTimeout(() => settle(false), timeoutMs);
|
|
369
|
+
socket.once("connect", () => {
|
|
370
|
+
clearTimeout(timer);
|
|
371
|
+
settle(true);
|
|
372
|
+
});
|
|
373
|
+
socket.once("error", () => {
|
|
374
|
+
clearTimeout(timer);
|
|
375
|
+
settle(false);
|
|
376
|
+
});
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export {
|
|
381
|
+
currentWorkerBuild,
|
|
382
|
+
workersDirectory,
|
|
383
|
+
workerStartLogPath,
|
|
384
|
+
ensureWorkersDirectory,
|
|
385
|
+
socketPathFor,
|
|
386
|
+
readWorkerRecord,
|
|
387
|
+
listWorkerRecords,
|
|
388
|
+
writeWorkerRecord,
|
|
389
|
+
workerRecordWrittenAt,
|
|
390
|
+
workerRecordCount,
|
|
391
|
+
generateWorkerToken,
|
|
392
|
+
removeWorkerRecord,
|
|
393
|
+
CONVERSATION_HANDOFF_REASON,
|
|
394
|
+
requestConversationHandoff,
|
|
395
|
+
conversationHandoffRequested,
|
|
396
|
+
takeWorkerReadyFd,
|
|
397
|
+
workerReadyEnvironment,
|
|
398
|
+
announceWorkerReady,
|
|
399
|
+
watchWorkerRecord,
|
|
400
|
+
watchHandoffRequest,
|
|
401
|
+
liveWorkerRecords,
|
|
402
|
+
sweepWorkersDirectory,
|
|
403
|
+
conversationHolder,
|
|
404
|
+
takeConversation,
|
|
405
|
+
liveOpenConversations,
|
|
406
|
+
workerIsReachable
|
|
407
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
|
|
4
|
+
// src/gateway/options.ts
|
|
5
|
+
var GATEWAY_EFFORTS = ["none", "minimal", "low", "medium", "high", "xhigh"];
|
|
6
|
+
function gatewayEffort(session) {
|
|
7
|
+
return GATEWAY_EFFORTS.includes(session.effort) ? session.effort : void 0;
|
|
8
|
+
}
|
|
9
|
+
var GATEWAY_DEFAULT_EFFORT = "platform-managed";
|
|
10
|
+
function gatewayDefaultEffort(model) {
|
|
11
|
+
return model && /claude-(?:sonnet|opus)-5[-.]5/i.test(model) ? "medium" : void 0;
|
|
12
|
+
}
|
|
13
|
+
function gatewayStepOptions(session, model) {
|
|
14
|
+
const effort = gatewayEffort(session) ?? gatewayDefaultEffort(model);
|
|
15
|
+
return {
|
|
16
|
+
...effort ? { reasoning_effort: effort } : {},
|
|
17
|
+
...session.speed === "fast" ? { speed: "fast" } : {},
|
|
18
|
+
// A chosen source serves the step or the step fails: the Gateway's `provider` object, no fallback to another source.
|
|
19
|
+
...session.source ? { provider: { only: [session.source], allow_fallbacks: false } } : {}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
GATEWAY_EFFORTS,
|
|
25
|
+
gatewayEffort,
|
|
26
|
+
GATEWAY_DEFAULT_EFFORT,
|
|
27
|
+
gatewayDefaultEffort,
|
|
28
|
+
gatewayStepOptions
|
|
29
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
gatewayConnection,
|
|
5
|
+
gatewayModelClient,
|
|
6
|
+
modelClientForSession
|
|
7
|
+
} from "./chunk-2OLS7V66.js";
|
|
8
|
+
import "./chunk-2QWPQRSU.js";
|
|
9
|
+
import "./chunk-IS4USJPY.js";
|
|
10
|
+
import "./chunk-2BBELGHY.js";
|
|
11
|
+
import "./chunk-QYHI3YET.js";
|
|
12
|
+
import "./chunk-4LPDG57B.js";
|
|
13
|
+
import "./chunk-TQDM7S5N.js";
|
|
14
|
+
import "./chunk-TQDKJHWX.js";
|
|
15
|
+
import "./chunk-GQBZU6EO.js";
|
|
16
|
+
import "./chunk-PEWCDI2C.js";
|
|
17
|
+
import "./chunk-TULAXS77.js";
|
|
18
|
+
import "./chunk-NWEYRBWK.js";
|
|
19
|
+
import "./chunk-YMCH3L2S.js";
|
|
20
|
+
import "./chunk-NAOX3JUB.js";
|
|
21
|
+
import "./chunk-PAXYQZH7.js";
|
|
22
|
+
import "./chunk-4L2ZZM4Q.js";
|
|
23
|
+
import "./chunk-F6F47QAY.js";
|
|
24
|
+
import "./chunk-RDDWQBEM.js";
|
|
25
|
+
import "./chunk-MPAJ446F.js";
|
|
26
|
+
import "./chunk-CBANJFBO.js";
|
|
27
|
+
import "./chunk-PWXII6HF.js";
|
|
28
|
+
export {
|
|
29
|
+
gatewayConnection,
|
|
30
|
+
gatewayModelClient,
|
|
31
|
+
modelClientForSession
|
|
32
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
preferredAccountId,
|
|
5
|
+
signedInAccountId
|
|
6
|
+
} from "./chunk-SQVUDO2O.js";
|
|
7
|
+
import "./chunk-XWAC3MKW.js";
|
|
8
|
+
import "./chunk-EE4B6A7W.js";
|
|
9
|
+
import "./chunk-PWXII6HF.js";
|
|
10
|
+
export {
|
|
11
|
+
preferredAccountId,
|
|
12
|
+
signedInAccountId
|
|
13
|
+
};
|