clikcode 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -14
- package/dist/chunk-23TDEBGZ.js +71 -0
- package/dist/chunk-25T3GVS7.js +425 -0
- package/dist/chunk-2BBELGHY.js +11 -0
- package/dist/chunk-2EOL5PZL.js +208 -0
- package/dist/chunk-2GAB36IE.js +26 -0
- package/dist/chunk-2OLS7V66.js +2440 -0
- package/dist/chunk-2QFO2URB.js +179 -0
- package/dist/chunk-2QWPQRSU.js +254 -0
- package/dist/chunk-2YPAPAR3.js +184 -0
- package/dist/chunk-2ZAG5372.js +33 -0
- package/dist/chunk-32IKAIZC.js +12507 -0
- package/dist/chunk-34AZEGYW.js +95 -0
- package/dist/chunk-34JQYQCA.js +175 -0
- package/dist/chunk-34ZISPAO.js +67 -0
- package/dist/chunk-3AAAARE6.js +46 -0
- package/dist/chunk-3AJ6Q3OY.js +510 -0
- package/dist/chunk-3B2CHX7M.js +884 -0
- package/dist/chunk-3BUFORRX.js +59 -0
- package/dist/chunk-3QLHYYFK.js +30 -0
- package/dist/chunk-3RXBMYKZ.js +140 -0
- package/dist/chunk-3TFNIJWS.js +52 -0
- package/dist/chunk-3W3IPDFP.js +119 -0
- package/dist/chunk-3WMS7SEE.js +417 -0
- package/dist/chunk-435ZNSZ3.js +23 -0
- package/dist/chunk-4AQ5NINV.js +39 -0
- package/dist/chunk-4GVEJ5FK.js +168 -0
- package/dist/chunk-4GXAO3UY.js +262 -0
- package/dist/chunk-4L2ZZM4Q.js +332 -0
- package/dist/chunk-4LPDG57B.js +17 -0
- package/dist/chunk-4NN3XQQT.js +223 -0
- package/dist/chunk-4QZEZME7.js +54 -0
- package/dist/chunk-4R6CSC3S.js +38 -0
- package/dist/chunk-4RHXTL3W.js +514 -0
- package/dist/chunk-4SJMPTVQ.js +18 -0
- package/dist/chunk-4VY7G6TX.js +114 -0
- package/dist/chunk-5642PBF7.js +124 -0
- package/dist/chunk-5B6TVO4A.js +33 -0
- package/dist/chunk-5BJLDUPL.js +62 -0
- package/dist/chunk-5HMFFJWU.js +19 -0
- package/dist/chunk-5IKLK33T.js +69 -0
- package/dist/chunk-5NQ5FFMX.js +44 -0
- package/dist/chunk-5QNNW5L6.js +176 -0
- package/dist/chunk-5SM5UAWN.js +239 -0
- package/dist/chunk-5WYJTA6O.js +74 -0
- package/dist/chunk-5ZSR2Y5T.js +227 -0
- package/dist/chunk-5ZWUM5GH.js +39 -0
- package/dist/chunk-64E7D4HY.js +364 -0
- package/dist/chunk-6CK466BC.js +99 -0
- package/dist/chunk-6ES45HHO.js +138 -0
- package/dist/chunk-6HYEZFGL.js +277 -0
- package/dist/chunk-6Y7HLXGW.js +29 -0
- package/dist/chunk-6YKK4FYR.js +258 -0
- package/dist/chunk-74WNMLMS.js +117 -0
- package/dist/chunk-7AULZ7OD.js +55 -0
- package/dist/chunk-7DOKGSUN.js +101 -0
- package/dist/chunk-7IH5LTIZ.js +195 -0
- package/dist/chunk-7ISTS5NS.js +21 -0
- package/dist/chunk-7NMUTGOW.js +527 -0
- package/dist/chunk-7PNHUZEL.js +153 -0
- package/dist/chunk-7TSQLONI.js +88 -0
- package/dist/chunk-AE7TOLD5.js +30 -0
- package/dist/chunk-AEMHSXKA.js +130 -0
- package/dist/chunk-AKRYTS2D.js +211 -0
- package/dist/chunk-AMNSE36L.js +59 -0
- package/dist/chunk-AZVD74ZV.js +23 -0
- package/dist/chunk-B35DVOTK.js +1981 -0
- package/dist/chunk-B4HNJRAH.js +626 -0
- package/dist/chunk-B5WYPPHS.js +13 -0
- package/dist/chunk-BBOVDXQM.js +59 -0
- package/dist/chunk-BD3ECZLK.js +62 -0
- package/dist/chunk-BDGSOT74.js +4578 -0
- package/dist/chunk-BF5VEOPK.js +31 -0
- package/dist/chunk-BFFRW4XH.js +47 -0
- package/dist/chunk-BFPC6PEW.js +208 -0
- package/dist/chunk-BGEMY2JJ.js +376 -0
- package/dist/chunk-BISGNHKD.js +35 -0
- package/dist/chunk-BMRAEBRY.js +21 -0
- package/dist/chunk-BNTXAZXW.js +127 -0
- package/dist/chunk-BOQBXGSN.js +75 -0
- package/dist/chunk-BTJDSTQP.js +213 -0
- package/dist/chunk-BUOPJQP5.js +218 -0
- package/dist/chunk-BXFJS65Q.js +52 -0
- package/dist/chunk-BXPQFSX5.js +59 -0
- package/dist/chunk-C57LIWNY.js +1269 -0
- package/dist/chunk-C6YVCCWR.js +74 -0
- package/dist/chunk-CAADDF6M.js +167 -0
- package/dist/chunk-CBANJFBO.js +69 -0
- package/dist/chunk-CERF3RIB.js +597 -0
- package/dist/chunk-COAS5ETR.js +46 -0
- package/dist/chunk-CQ7J6UQ7.js +78 -0
- package/dist/chunk-CRUVYGO2.js +26 -0
- package/dist/chunk-CVFVFRGN.js +58 -0
- package/dist/chunk-D2UK66HM.js +37 -0
- package/dist/chunk-D2W7SA4R.js +18 -0
- package/dist/chunk-DA44ZENT.js +501 -0
- package/dist/chunk-DAJ76TOC.js +99 -0
- package/dist/chunk-DCZ6CIUM.js +147 -0
- package/dist/chunk-DF35KMXM.js +1314 -0
- package/dist/chunk-DGASQT26.js +151 -0
- package/dist/chunk-DJT57C5P.js +55 -0
- package/dist/chunk-DKDPZTD3.js +44 -0
- package/dist/chunk-DQYVQ2N7.js +77 -0
- package/dist/chunk-DRTP2RTY.js +266 -0
- package/dist/chunk-DW2BMUKY.js +61 -0
- package/dist/chunk-DW5T5ZVU.js +307 -0
- package/dist/chunk-DXKNDNFC.js +164 -0
- package/dist/chunk-DZEQ7UYR.js +291 -0
- package/dist/chunk-E4F4OUAC.js +463 -0
- package/dist/chunk-EE4B6A7W.js +69 -0
- package/dist/chunk-EISKIYWG.js +23 -0
- package/dist/chunk-EKAQK7UQ.js +235 -0
- package/dist/chunk-EOBTJV32.js +123 -0
- package/dist/chunk-ESF3DIZY.js +325 -0
- package/dist/chunk-EVOHOZ4U.js +45 -0
- package/dist/chunk-EXN4KHLB.js +110 -0
- package/dist/chunk-F252T6Y3.js +78 -0
- package/dist/chunk-F3DP4ZA2.js +40 -0
- package/dist/chunk-F6F47QAY.js +58 -0
- package/dist/chunk-FA3Y23ZW.js +57 -0
- package/dist/chunk-FBKXE4EJ.js +640 -0
- package/dist/chunk-FCGEB3H6.js +23 -0
- package/dist/chunk-FF7ZVYJF.js +3732 -0
- package/dist/chunk-FFGKN6L3.js +39 -0
- package/dist/chunk-FFGU4GCC.js +94 -0
- package/dist/chunk-FSFDAOVP.js +74 -0
- package/dist/chunk-FT5TX7OX.js +1573 -0
- package/dist/chunk-G3QP67Z7.js +232 -0
- package/dist/chunk-G5ORJKV2.js +179 -0
- package/dist/chunk-GFNC62PE.js +111 -0
- package/dist/chunk-GGK43Q3N.js +67 -0
- package/dist/chunk-GGYKY4GF.js +11537 -0
- package/dist/chunk-GGYNHGNJ.js +55 -0
- package/dist/chunk-GLY7RM3C.js +354 -0
- package/dist/chunk-GQBZU6EO.js +20 -0
- package/dist/chunk-GSXENUZL.js +9 -0
- package/dist/chunk-GTOAT5D3.js +40 -0
- package/dist/chunk-GWCMDPQU.js +1007 -0
- package/dist/chunk-GXYSMYHJ.js +152 -0
- package/dist/chunk-GYMAI5NY.js +14 -0
- package/dist/chunk-H2VZMKPE.js +30 -0
- package/dist/chunk-H4THUNBM.js +2091 -0
- package/dist/chunk-HGRVSNUZ.js +361 -0
- package/dist/chunk-HI4VY473.js +27 -0
- package/dist/chunk-HOJRSD3Q.js +447 -0
- package/dist/chunk-HRX25W35.js +82 -0
- package/dist/chunk-HSE4AQYV.js +55 -0
- package/dist/chunk-HU5SSUFX.js +383 -0
- package/dist/chunk-I3GDBJLH.js +196 -0
- package/dist/chunk-I75EDU75.js +684 -0
- package/dist/chunk-IBA7DMIO.js +20 -0
- package/dist/chunk-IC6N4NZA.js +231 -0
- package/dist/chunk-IF43HIGV.js +284 -0
- package/dist/chunk-IGZ6C2MC.js +439 -0
- package/dist/chunk-IMLTL2MY.js +192 -0
- package/dist/chunk-IMZL6SGR.js +33 -0
- package/dist/chunk-IS4USJPY.js +516 -0
- package/dist/chunk-ISFSPN2F.js +82 -0
- package/dist/chunk-IXE7GTFI.js +55 -0
- package/dist/chunk-IZ77QJQG.js +36 -0
- package/dist/chunk-J2PACWRQ.js +34 -0
- package/dist/chunk-J6EGFVQX.js +180 -0
- package/dist/chunk-JEKOD43D.js +22 -0
- package/dist/chunk-JGIWATSG.js +30 -0
- package/dist/chunk-JYBONKD4.js +43 -0
- package/dist/chunk-K2NLG2HK.js +454 -0
- package/dist/chunk-KCQ4TBLS.js +164 -0
- package/dist/chunk-KD5KIVMS.js +176 -0
- package/dist/chunk-KHW6TX6I.js +63 -0
- package/dist/chunk-KI5GZFCE.js +520 -0
- package/dist/chunk-KN34B7NO.js +105 -0
- package/dist/chunk-KYUHIFP3.js +136 -0
- package/dist/chunk-KZL5VS4B.js +300 -0
- package/dist/chunk-L3VW3QIH.js +48 -0
- package/dist/chunk-LA6MG4ET.js +2110 -0
- package/dist/chunk-LAVFOA3S.js +66 -0
- package/dist/chunk-LB4OA77N.js +13 -0
- package/dist/chunk-LBFRF2K4.js +196 -0
- package/dist/chunk-LM6EIA4B.js +93 -0
- package/dist/chunk-LPCNRGJ7.js +692 -0
- package/dist/chunk-LSLNL5T3.js +168 -0
- package/dist/chunk-LVRRWP4W.js +568 -0
- package/dist/chunk-LWCFBRHL.js +33 -0
- package/dist/chunk-LXFTMGZZ.js +166 -0
- package/dist/chunk-M33LVA4M.js +151 -0
- package/dist/chunk-M3FO5UMK.js +4944 -0
- package/dist/chunk-M5QNDBAY.js +66 -0
- package/dist/chunk-M6ND6KBE.js +1291 -0
- package/dist/chunk-M7H3WQTE.js +76 -0
- package/dist/chunk-MCBRVPA7.js +191 -0
- package/dist/chunk-MCSDWZET.js +91 -0
- package/dist/chunk-MDT5XDXL.js +289 -0
- package/dist/chunk-MJG3IQY4.js +91 -0
- package/dist/chunk-MOU3N2UL.js +44 -0
- package/dist/chunk-MP4KZOQC.js +3451 -0
- package/dist/chunk-MPAJ446F.js +66 -0
- package/dist/chunk-MVJZZ6AL.js +16 -0
- package/dist/chunk-MXS6S2PY.js +253 -0
- package/dist/chunk-N3SFDYM7.js +291 -0
- package/dist/chunk-NAOX3JUB.js +13 -0
- package/dist/chunk-NEKKIBCX.js +283 -0
- package/dist/chunk-NKDATMEM.js +133 -0
- package/dist/chunk-NR4FMC4K.js +395 -0
- package/dist/chunk-NSOHOJBR.js +221 -0
- package/dist/chunk-NTDB6QKF.js +29 -0
- package/dist/chunk-NWEYRBWK.js +25 -0
- package/dist/chunk-O2YSNYWD.js +23 -0
- package/dist/chunk-O3EW7LAY.js +54 -0
- package/dist/chunk-O7BNJIXU.js +366 -0
- package/dist/chunk-OARL2NXZ.js +116 -0
- package/dist/chunk-OHKZUEJW.js +351 -0
- package/dist/chunk-OKU45BXA.js +647 -0
- package/dist/chunk-OL4JBD3J.js +59 -0
- package/dist/chunk-OLUO5DDR.js +192 -0
- package/dist/chunk-OQ245JLA.js +196 -0
- package/dist/chunk-P72UZAQI.js +289 -0
- package/dist/chunk-PAL2ENB6.js +20 -0
- package/dist/chunk-PAXYQZH7.js +53 -0
- package/dist/chunk-PDPEM5VW.js +51 -0
- package/dist/chunk-PEWCDI2C.js +668 -0
- package/dist/chunk-PGZ54EDX.js +27 -0
- package/dist/chunk-PRWVLDZF.js +73 -0
- package/dist/chunk-PSQQ75VJ.js +52 -0
- package/dist/chunk-PUOVIFHW.js +118 -0
- package/dist/chunk-PWBF2X3V.js +107 -0
- package/dist/chunk-PWXII6HF.js +43 -0
- package/dist/chunk-Q35VLJRT.js +80 -0
- package/dist/chunk-QJP7EYGL.js +128 -0
- package/dist/chunk-QPQKX2MK.js +8836 -0
- package/dist/chunk-QQRLPY25.js +1053 -0
- package/dist/chunk-QUS4ER2W.js +407 -0
- package/dist/chunk-QYHI3YET.js +29 -0
- package/dist/chunk-QYRU2UQI.js +32 -0
- package/dist/chunk-R6XVVQGC.js +13 -0
- package/dist/chunk-R7QN6ONS.js +483 -0
- package/dist/chunk-RD23MPGC.js +221 -0
- package/dist/chunk-RDDWQBEM.js +185 -0
- package/dist/chunk-RDLLDYFO.js +104 -0
- package/dist/chunk-RE4TGORR.js +84 -0
- package/dist/chunk-RJLHVYQY.js +217 -0
- package/dist/chunk-RJLPTWHW.js +905 -0
- package/dist/chunk-RKUVLRZI.js +295 -0
- package/dist/chunk-ROGXPGYR.js +37 -0
- package/dist/chunk-RSZGEL5U.js +163 -0
- package/dist/chunk-RVUOIJXN.js +909 -0
- package/dist/chunk-RW7F4JRP.js +11 -0
- package/dist/chunk-S4UO3AO3.js +53 -0
- package/dist/chunk-S5JAAF6S.js +585 -0
- package/dist/chunk-SNU37TQI.js +56 -0
- package/dist/chunk-SQVUDO2O.js +31 -0
- package/dist/chunk-SYVHIYQT.js +66 -0
- package/dist/chunk-SZBQMTG2.js +85 -0
- package/dist/chunk-T5VCXA3J.js +25 -0
- package/dist/chunk-TK6NSP56.js +30 -0
- package/dist/chunk-TKWVMA6L.js +22 -0
- package/dist/chunk-TQDKJHWX.js +59 -0
- package/dist/chunk-TQDM7S5N.js +127 -0
- package/dist/chunk-TULAXS77.js +23 -0
- package/dist/chunk-TVT45XNH.js +4625 -0
- package/dist/chunk-TWCVV2JO.js +467 -0
- package/dist/chunk-U4DKAD6S.js +47 -0
- package/dist/chunk-UA5K2BTI.js +564 -0
- package/dist/chunk-UAMKCMOK.js +40 -0
- package/dist/chunk-UBMVADBF.js +51 -0
- package/dist/chunk-UFQ5A5PW.js +645 -0
- package/dist/chunk-UOD2SOLL.js +1301 -0
- package/dist/chunk-UTSB4LOW.js +156 -0
- package/dist/chunk-UVXNIUTN.js +412 -0
- package/dist/chunk-UXVPXYPE.js +90 -0
- package/dist/chunk-UYEEMIWR.js +374 -0
- package/dist/chunk-VBGM5ZBW.js +54 -0
- package/dist/chunk-VEWPCZPG.js +762 -0
- package/dist/chunk-VIRDLZ5E.js +108 -0
- package/dist/chunk-VMPO7WKN.js +52 -0
- package/dist/chunk-W2NVSDO5.js +5122 -0
- package/dist/chunk-W3YYPBEA.js +176 -0
- package/dist/chunk-W5AYOICN.js +280 -0
- package/dist/chunk-W5GZOIUF.js +27 -0
- package/dist/chunk-WHKNLZ3C.js +76 -0
- package/dist/chunk-WKBEPPQ5.js +1409 -0
- package/dist/chunk-WM3Z6QKQ.js +151 -0
- package/dist/chunk-WMI2TPMA.js +31 -0
- package/dist/chunk-WNX5VD7S.js +150 -0
- package/dist/chunk-WOVTYST3.js +60 -0
- package/dist/chunk-WPB5WEZJ.js +546 -0
- package/dist/chunk-WUO5EOAT.js +44 -0
- package/dist/chunk-WWLJMP6D.js +133 -0
- package/dist/chunk-WZMLH3XP.js +58 -0
- package/dist/chunk-WZYVLUVQ.js +79 -0
- package/dist/chunk-X2OCPVU5.js +135 -0
- package/dist/chunk-X3CL6DTR.js +95 -0
- package/dist/chunk-X6WF7JEV.js +354 -0
- package/dist/chunk-XAHGBPWT.js +44 -0
- package/dist/chunk-XCKQ5BM2.js +228 -0
- package/dist/chunk-XIBYREEY.js +106 -0
- package/dist/chunk-XKW5NDMR.js +378 -0
- package/dist/chunk-XRDALAO3.js +100 -0
- package/dist/chunk-XUP22EAS.js +41 -0
- package/dist/chunk-XWAC3MKW.js +243 -0
- package/dist/chunk-Y3R7JMXB.js +59 -0
- package/dist/chunk-Y54LTP4W.js +82 -0
- package/dist/chunk-Y7UECI4M.js +99 -0
- package/dist/chunk-YACGDFHC.js +47 -0
- package/dist/chunk-YHNIQPKY.js +71 -0
- package/dist/chunk-YMBR6HYP.js +111 -0
- package/dist/chunk-YMCH3L2S.js +26 -0
- package/dist/chunk-Z4ZU6T7V.js +99 -0
- package/dist/chunk-ZDPF67ZZ.js +173 -0
- package/dist/chunk-ZFC2Q67K.js +101 -0
- package/dist/chunk-ZGHNNSCT.js +114 -0
- package/dist/chunk-ZGX3ERAT.js +173 -0
- package/dist/chunk-ZI3YHEBY.js +37 -0
- package/dist/chunk-ZN7G6JLS.js +639 -0
- package/dist/chunk-ZNPFQMXT.js +47 -0
- package/dist/chunk-ZOU3LV4U.js +63 -0
- package/dist/chunk-ZT7B4H2V.js +117 -0
- package/dist/chunk-ZZCBDNZI.js +58 -0
- package/dist/cli.js +494 -112923
- package/dist/computer-tools.js +36642 -21259
- package/dist/harness-catalog.cjs +88 -43
- package/dist/index.js +1 -1
- package/dist/local-model-supervisor.cjs +555 -0
- package/package.json +3 -4
|
@@ -0,0 +1,647 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
loginFieldSummary,
|
|
5
|
+
loginFields,
|
|
6
|
+
pageControls
|
|
7
|
+
} from "./chunk-BNTXAZXW.js";
|
|
8
|
+
import {
|
|
9
|
+
resolveChat
|
|
10
|
+
} from "./chunk-MDT5XDXL.js";
|
|
11
|
+
import {
|
|
12
|
+
WorkerClient
|
|
13
|
+
} from "./chunk-KI5GZFCE.js";
|
|
14
|
+
import {
|
|
15
|
+
listWorkerRecords
|
|
16
|
+
} from "./chunk-QUS4ER2W.js";
|
|
17
|
+
import {
|
|
18
|
+
closeComputerBrowser,
|
|
19
|
+
closeComputerPage,
|
|
20
|
+
frontComputerPage,
|
|
21
|
+
releaseComputerBrowser,
|
|
22
|
+
stopCloudBrowser
|
|
23
|
+
} from "./chunk-MP4KZOQC.js";
|
|
24
|
+
import {
|
|
25
|
+
lockCredentialVault
|
|
26
|
+
} from "./chunk-I75EDU75.js";
|
|
27
|
+
import {
|
|
28
|
+
emitResult
|
|
29
|
+
} from "./chunk-JGIWATSG.js";
|
|
30
|
+
import {
|
|
31
|
+
isJsonDefaultMode
|
|
32
|
+
} from "./chunk-5B6TVO4A.js";
|
|
33
|
+
import {
|
|
34
|
+
browserProvider,
|
|
35
|
+
captchaSolvingAllowed,
|
|
36
|
+
computerEnabled,
|
|
37
|
+
generatedPasswordsAllowed,
|
|
38
|
+
setBrowserProvider,
|
|
39
|
+
setCaptchaSolving,
|
|
40
|
+
setComputerEnabled,
|
|
41
|
+
setGeneratedPasswords
|
|
42
|
+
} from "./chunk-5SM5UAWN.js";
|
|
43
|
+
import {
|
|
44
|
+
quiet
|
|
45
|
+
} from "./chunk-RDDWQBEM.js";
|
|
46
|
+
import {
|
|
47
|
+
stateDirectory
|
|
48
|
+
} from "./chunk-MPAJ446F.js";
|
|
49
|
+
|
|
50
|
+
// src/commands/computer.ts
|
|
51
|
+
import { randomUUID } from "node:crypto";
|
|
52
|
+
async function computerStatus() {
|
|
53
|
+
const enabled = await computerEnabled(stateDirectory());
|
|
54
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { enabled } });
|
|
55
|
+
process.stdout.write(enabled ? "Computer use is on. The agent can open URLs and control the desktop when a task needs it.\n" : "Computer use is off. Run `clikcode computer on` to make it available.\n");
|
|
56
|
+
}
|
|
57
|
+
async function computerGeneratedPasswords(setting) {
|
|
58
|
+
const dir = stateDirectory();
|
|
59
|
+
if (setting === "on" || setting === "off") await setGeneratedPasswords(dir, setting === "on");
|
|
60
|
+
else if (setting) throw new Error("Say on or off: clikcode computer passwords on");
|
|
61
|
+
const allowed = await generatedPasswordsAllowed(dir);
|
|
62
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { generatedPasswords: allowed } });
|
|
63
|
+
process.stdout.write(allowed ? "Generated passwords are on (the default): for a signup form the browser tool makes up a strong, unique password for that site, keeps it in Secrets Manager with the login, and never shows it. Turn off with `clikcode computer passwords off`.\n" : "Generated passwords are off: a signup form uses the profile password if there is one, else asks you for the password privately. Turn on with `clikcode computer passwords on`.\n");
|
|
64
|
+
}
|
|
65
|
+
async function computerUnattended(setting) {
|
|
66
|
+
const { setUnattended, unattendedEnabled } = await import("./chunk-YHNIQPKY.js");
|
|
67
|
+
const dir = stateDirectory();
|
|
68
|
+
if (setting === "on" || setting === "off") await setUnattended(dir, setting === "on");
|
|
69
|
+
else if (setting) throw new Error("Say on or off: clikcode computer unattended on");
|
|
70
|
+
const on = await unattendedEnabled(dir);
|
|
71
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { unattended: on } });
|
|
72
|
+
process.stdout.write(on ? "Unattended is on: a password, code or account choice the browser tool would ask you for is parked in the queue (needs-human, with the reason) and the agent goes on to the next vendor. See them with `clikcode computer queue --status needs-human`.\n" : "Unattended is off: the browser tool asks you privately. Turn on with `clikcode computer unattended on`.\n");
|
|
73
|
+
}
|
|
74
|
+
async function computerCaptcha(setting) {
|
|
75
|
+
const dir = stateDirectory();
|
|
76
|
+
if (setting === "stats") {
|
|
77
|
+
const { captchaTally, captchaCost, heldOffHosts, weakKinds, voterScores } = await import("./chunk-RD23MPGC.js");
|
|
78
|
+
const [tally, cost, heldOff, skipped, voters] = await Promise.all([captchaTally(dir), captchaCost(dir), heldOffHosts(dir), weakKinds(dir).then((kinds) => [...kinds].sort()), voterScores(dir)]);
|
|
79
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { captchaTally: tally, captchaCost: cost, heldOff, skippedKinds: skipped, voters } });
|
|
80
|
+
if (!tally.length) {
|
|
81
|
+
process.stdout.write("No human checks have been met in the last 30 days.\n");
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
process.stdout.write("Human checks met in the last 30 days (family: cleared of runs, average seconds):\n");
|
|
85
|
+
for (const row of tally) process.stdout.write(` ${row.family}: ${row.cleared} of ${row.runs}, ${Math.round(row.seconds / row.runs)}s
|
|
86
|
+
`);
|
|
87
|
+
if (cost.asks) process.stdout.write(`Model asks: ${cost.asks} (${cost.subscription} on your own subscription, the rest on Gateway credit). Most asked: ${cost.models.slice(0, 5).map((row) => `${row.model} ${row.asks}`).join(", ")}.
|
|
88
|
+
`);
|
|
89
|
+
if (voters.length) {
|
|
90
|
+
process.stdout.write("Voters, by how often they sided with an accepted answer:\n");
|
|
91
|
+
for (const row of voters) process.stdout.write(` ${row.roster}: ${row.model} ${Math.round(100 * row.right / row.asked)}% of ${row.asked}
|
|
92
|
+
`);
|
|
93
|
+
}
|
|
94
|
+
if (heldOff.length) process.stdout.write(`Left alone for now (three refusals in a row): ${heldOff.join(", ")}.
|
|
95
|
+
`);
|
|
96
|
+
if (skipped.length) process.stdout.write(`hCaptcha kinds skipped because they never cleared: ${skipped.join("; ")}.
|
|
97
|
+
`);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
if (setting === "on" || setting === "off") await setCaptchaSolving(dir, setting === "on");
|
|
101
|
+
else if (setting) throw new Error("Say on, off or stats: clikcode computer captcha on");
|
|
102
|
+
const on = await captchaSolvingAllowed(dir);
|
|
103
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { captchaSolving: on } });
|
|
104
|
+
process.stdout.write(on ? "Captcha solving is on (the default): when a human check asks a puzzle, pictures of it go to your own Gateway models (and, for the hard ones, your signed-in Claude or Codex subscription) and the answer is played like a visitor would -- no external solving service, nothing leaves this machine but the puzzle. Turn off with `clikcode computer captcha off`.\n" : "Captcha solving is off: a check that wants more than one press is left for you. Turn on with `clikcode computer captcha on`.\n");
|
|
105
|
+
}
|
|
106
|
+
async function computerHeadless(setting) {
|
|
107
|
+
const { headlessSetting, setHeadless } = await import("./chunk-YHNIQPKY.js");
|
|
108
|
+
const dir = stateDirectory();
|
|
109
|
+
if (setting === "on" || setting === "off") {
|
|
110
|
+
await setHeadless(dir, setting === "on");
|
|
111
|
+
if (await browserProvider(dir) !== "browser-use") await closeComputerBrowser(dir);
|
|
112
|
+
} else if (setting) throw new Error("Say on or off: clikcode computer headless on");
|
|
113
|
+
const on = await headlessSetting(dir);
|
|
114
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { headless: on } });
|
|
115
|
+
process.stdout.write(on ? "Headless is on: ClikCode's browser runs with no window. Turn off with `clikcode computer headless off`.\n" : "Headless is off: ClikCode's browser has a window (Linux with no display, or CLIKCODE_BROWSER_HEADLESS=1, still runs without one). On Linux the window is on a hidden display unless `clikcode computer display visible`. Turn on with `clikcode computer headless on`.\n");
|
|
116
|
+
}
|
|
117
|
+
async function computerDisplay(setting) {
|
|
118
|
+
const { browserDisplay, headlessSetting, parseBrowserDisplay, setBrowserDisplay } = await import("./chunk-YHNIQPKY.js");
|
|
119
|
+
const { runningHostDisplay } = await import("./chunk-WUO5EOAT.js");
|
|
120
|
+
const { desktopSession, shouldRunHeadless } = await import("./chunk-BFFRW4XH.js");
|
|
121
|
+
const dir = stateDirectory();
|
|
122
|
+
const wanted = parseBrowserDisplay(setting);
|
|
123
|
+
if (wanted) await setBrowserDisplay(dir, wanted);
|
|
124
|
+
else if (setting) throw new Error("Say visible or hidden: clikcode computer display visible");
|
|
125
|
+
const display = await browserDisplay(dir);
|
|
126
|
+
const running = await runningHostDisplay(dir);
|
|
127
|
+
const desktop = desktopSession() !== void 0;
|
|
128
|
+
const headless = shouldRunHeadless({ setting: await headlessSetting(dir) });
|
|
129
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { display: { setting: display, ...running ? { running } : {}, desktop, headless } } });
|
|
130
|
+
process.stdout.write(`${displayStatusText({ display, running, desktop, headless, platform: process.platform })}
|
|
131
|
+
`);
|
|
132
|
+
}
|
|
133
|
+
function displayStatusText(state) {
|
|
134
|
+
const lines = [state.display === "visible" ? "Display is visible: ClikCode's browser opens its window on your desktop, so you can watch the agent work in it. Go back with `clikcode computer display hidden`." : "Display is hidden (the default): ClikCode's browser runs out of sight on a virtual display, so it never takes your screen or keyboard. To watch one chat's tab, ask the agent to show it (the browser tool's `show` action opens a live view in your own browser). To put the browser window itself on your desktop: `clikcode computer display visible`."];
|
|
135
|
+
if (state.platform !== "linux") lines.push("On macOS and Windows the browser window is always on the desktop; this setting only changes Linux.");
|
|
136
|
+
else if (state.headless) lines.push("Headless is on (`clikcode computer headless`, CLIKCODE_BROWSER_HEADLESS, or no display at all), and it wins: the browser has no window anywhere.");
|
|
137
|
+
else if (state.display === "visible" && !state.desktop) lines.push("No desktop session can be seen from this terminal (no DISPLAY or WAYLAND_DISPLAY): a browser started from here stays hidden. One started from a chat on your desktop is visible.");
|
|
138
|
+
const wantedNow = state.platform !== "linux" ? "visible" : state.display;
|
|
139
|
+
if (state.running === void 0) lines.push("No browser is running: the setting applies when the next one starts.");
|
|
140
|
+
else if (state.running === wantedNow) lines.push(`The browser running now is ${state.running}.`);
|
|
141
|
+
else lines.push(`The browser running now is ${state.running} and was left as it is, because every chat's tabs are in it: the setting applies the next time the browser starts. To apply it now, close the browser with \`clikcode computer off\` (this closes every chat's tabs and locks saved logins), then \`clikcode computer on\`; the next browser call starts it ${state.display}.`);
|
|
142
|
+
return lines.join("\n");
|
|
143
|
+
}
|
|
144
|
+
async function computerDesk() {
|
|
145
|
+
const dir = stateDirectory();
|
|
146
|
+
const desk = await import("./chunk-MOU3N2UL.js");
|
|
147
|
+
const info = await desk.readDeskInfo(dir);
|
|
148
|
+
const waiting = (await desk.listDeskItems(dir)).filter((item) => item.status === "waiting");
|
|
149
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { desk: { serving: Boolean(info), ...info ? { address: desk.deskAddress(info) } : {}, waiting: waiting.map((item) => ({ id: item.id, label: item.label, kind: item.kind, ...item.host ? { host: item.host } : {}, minutes: Math.round((Date.now() - item.createdAt) / 6e4) })) } } });
|
|
150
|
+
if (!info) {
|
|
151
|
+
process.stdout.write("The handoff desk is not being served. It starts with ClikCode's browser, on a computer that is on a Tailscale network: use the browser once (any browser_use call), then run this again.\n");
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
process.stdout.write(`Handoff desk (open on a phone or computer on your Tailscale network; the address does not change): ${desk.deskAddress(info)}
|
|
155
|
+
`);
|
|
156
|
+
if (!waiting.length) {
|
|
157
|
+
process.stdout.write("Nothing is waiting on you.\n");
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
process.stdout.write(`${waiting.length} waiting:
|
|
161
|
+
`);
|
|
162
|
+
for (const item of waiting) process.stdout.write(` ${item.label} [${item.kind}]${item.host ? ` at ${item.host}` : ""}, ${Math.round((Date.now() - item.createdAt) / 6e4)} min: ${desk.deskItemAddress(info, item.id)}
|
|
163
|
+
`);
|
|
164
|
+
}
|
|
165
|
+
async function computerBrowserUse(setting) {
|
|
166
|
+
const dir = stateDirectory();
|
|
167
|
+
const cloud = await import("./chunk-JEKOD43D.js");
|
|
168
|
+
if (setting === "view") {
|
|
169
|
+
if (process.env.CLIKCODE_WORKER_PID || !process.stdin.isTTY) throw new Error("The Browser Use live-control link is available only from your interactive terminal.");
|
|
170
|
+
const url = await cloud.browserUseLiveUrl(dir);
|
|
171
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { browser: { liveUrl: url } } });
|
|
172
|
+
process.stdout.write(`Open this live browser link on your computer or phone to handle the page, then return to the chat:
|
|
173
|
+
${url}
|
|
174
|
+
`);
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
if (setting && !["on", "auto", "off"].includes(setting)) throw new Error("Use `clikcode computer browser-use auto|on|off|view`.");
|
|
178
|
+
const current = await browserProvider(dir);
|
|
179
|
+
const wanted = setting === "on" ? "browser-use" : setting === "auto" ? "auto" : setting === "off" ? "local" : current;
|
|
180
|
+
if (wanted !== current) {
|
|
181
|
+
if (wanted !== "local" && !(await cloud.browserUseStatus(dir)).configured) throw new Error("Save your Browser Use API key in ClikCode Secrets as `browser-use/api-key` first (`clikcode computer store browser-use/api-key`). The browser tool never receives the key in chat.");
|
|
182
|
+
if (wanted === "local") await stopCloudBrowser(dir);
|
|
183
|
+
else await releaseComputerBrowser(dir);
|
|
184
|
+
await setBrowserProvider(dir, wanted);
|
|
185
|
+
}
|
|
186
|
+
const provider = await browserProvider(dir);
|
|
187
|
+
const status = await cloud.browserUseStatus(dir);
|
|
188
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { browser: { provider, ...status } } });
|
|
189
|
+
const session = status.active ? " A cloud session is running now." : "";
|
|
190
|
+
const terms = "Pages and anything typed into a cloud tab are handled by Browser Use Cloud; local Chrome cookies are never copied. A session costs $0.02/hour (one minute minimum) and stops by itself when its last tab closes or after 10 idle minutes.";
|
|
191
|
+
process.stdout.write(provider === "browser-use" ? `Browser Use Cloud runs every tab.${session} ${terms} Stop with \`clikcode computer browser-use off\`.
|
|
192
|
+
` : provider === "auto" ? `Local browser first; a tab moves to Browser Use Cloud only when the agent asks for it on a page the local browser cannot get past.${session} ${terms}
|
|
193
|
+
` : `The local ClikCode browser is used for everything (default). Browser Use Cloud is ${status.configured ? "configured" : "not configured"}; turn it on with \`clikcode computer browser-use auto\`.
|
|
194
|
+
`);
|
|
195
|
+
}
|
|
196
|
+
async function computerSetEnabled(enabled) {
|
|
197
|
+
await setComputerEnabled(stateDirectory(), enabled);
|
|
198
|
+
if (!enabled) {
|
|
199
|
+
await closeComputerBrowser(stateDirectory());
|
|
200
|
+
lockCredentialVault(stateDirectory());
|
|
201
|
+
}
|
|
202
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { enabled } });
|
|
203
|
+
process.stdout.write(enabled ? "Computer use is on. The agent can open URLs and control the desktop when a task needs it.\n" : "Computer use is off for new ClikCode agent turns.\n");
|
|
204
|
+
}
|
|
205
|
+
async function computerInspect() {
|
|
206
|
+
if (!await computerEnabled(stateDirectory())) throw new Error("Computer use is off.");
|
|
207
|
+
const page = await frontComputerPage(stateDirectory());
|
|
208
|
+
try {
|
|
209
|
+
const site = new URL(page.url()).origin;
|
|
210
|
+
const fields = await loginFields(page);
|
|
211
|
+
const controls = await pageControls(page);
|
|
212
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { site, fields: fields.map(({ label, kind }) => ({ label, kind })), controls } });
|
|
213
|
+
process.stdout.write(`${loginFieldSummary(site, fields, controls)}
|
|
214
|
+
`);
|
|
215
|
+
} finally {
|
|
216
|
+
await page.context().browser()?.close().catch(quiet("commands/computer"));
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
async function computerLogin(chat, options = {}) {
|
|
220
|
+
const { url, newAccount, manage } = options;
|
|
221
|
+
const workerPid = Number(process.env.CLIKCODE_WORKER_PID);
|
|
222
|
+
const fromTurn = Number.isSafeInteger(workerPid) && workerPid > 0 ? (await listWorkerRecords()).find((record) => record.pid === workerPid)?.sessionId : void 0;
|
|
223
|
+
const sessionId = chat ? await resolveChat(chat) : fromTurn;
|
|
224
|
+
if (!sessionId) throw new Error("Use `clikcode computer login --chat <chat>` from outside a ClikCode chat.");
|
|
225
|
+
if (fromTurn && sessionId !== fromTurn) throw new Error("A running chat can request a private login only in its own chat.");
|
|
226
|
+
const client = await WorkerClient.attach(sessionId);
|
|
227
|
+
const id = randomUUID();
|
|
228
|
+
try {
|
|
229
|
+
const result = await new Promise((resolve, reject) => {
|
|
230
|
+
let timer = setTimeout(() => {
|
|
231
|
+
done();
|
|
232
|
+
reject(new Error("This chat is still running an older ClikCode worker. Try again after its current turn finishes."));
|
|
233
|
+
}, 5e3);
|
|
234
|
+
const done = () => {
|
|
235
|
+
clearTimeout(timer);
|
|
236
|
+
client.off("event", onEvent);
|
|
237
|
+
client.off("close", onClose);
|
|
238
|
+
};
|
|
239
|
+
const onClose = () => {
|
|
240
|
+
done();
|
|
241
|
+
reject(new Error("The ClikCode chat disconnected."));
|
|
242
|
+
};
|
|
243
|
+
const onEvent = (event) => {
|
|
244
|
+
if (event.type === "computer-login-started" && event.id === id) {
|
|
245
|
+
clearTimeout(timer);
|
|
246
|
+
timer = setTimeout(() => {
|
|
247
|
+
done();
|
|
248
|
+
reject(new Error("The private login prompt expired."));
|
|
249
|
+
}, 10 * 6e4);
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
if (event.type !== "computer-login-result" || event.id !== id) return;
|
|
253
|
+
done();
|
|
254
|
+
resolve(event);
|
|
255
|
+
};
|
|
256
|
+
client.on("event", onEvent);
|
|
257
|
+
client.on("close", onClose);
|
|
258
|
+
client.send({ type: "computer-login", id, ...url ? { url } : {}, ...newAccount ? { newAccount: true } : {}, ...manage ? { manage: true } : {} });
|
|
259
|
+
});
|
|
260
|
+
if (!result.ok) throw new Error(result.message);
|
|
261
|
+
if (isJsonDefaultMode()) emitResult({ computer: { login: result.message } });
|
|
262
|
+
else process.stdout.write(`${result.message}
|
|
263
|
+
`);
|
|
264
|
+
} finally {
|
|
265
|
+
client.close();
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
async function computerTool(tool, args, chat) {
|
|
269
|
+
const { callWorkerTool } = await import("./chunk-NEKKIBCX.js");
|
|
270
|
+
const result = await callWorkerTool({ ...chat ? { chat } : {}, tool, args });
|
|
271
|
+
if (isJsonDefaultMode()) emitResult({ computer: { ok: result.ok, output: result.output } });
|
|
272
|
+
else process.stdout.write(`${result.output}
|
|
273
|
+
`);
|
|
274
|
+
if (!result.ok) process.exitCode = 1;
|
|
275
|
+
}
|
|
276
|
+
async function computerLoginsRemove(site, account) {
|
|
277
|
+
const { forgetSavedLogins } = await import("./chunk-Q35VLJRT.js");
|
|
278
|
+
const removed = await forgetSavedLogins(stateDirectory(), site, account);
|
|
279
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { removed, site } });
|
|
280
|
+
process.stdout.write(removed ? `Removed ${removed} saved login${removed === 1 ? "" : "s"} for ${site}.
|
|
281
|
+
` : `No saved login for ${site}.
|
|
282
|
+
`);
|
|
283
|
+
}
|
|
284
|
+
async function computerSecrets(remove, backfill, backup) {
|
|
285
|
+
if (backup?.export || backup?.import) return computerSecretsBackup(backup);
|
|
286
|
+
const { deleteNamedSecret } = await import("./chunk-Q35VLJRT.js");
|
|
287
|
+
const stateDir = stateDirectory();
|
|
288
|
+
if (remove) {
|
|
289
|
+
const removed = await deleteNamedSecret(stateDir, remove);
|
|
290
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { deleted: removed, name: remove } });
|
|
291
|
+
process.stdout.write(removed ? `Deleted "${remove}".
|
|
292
|
+
` : `No secret named "${remove}".
|
|
293
|
+
`);
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
const { namedSecretInfo, backfillSecretMeta } = await import("./chunk-Q35VLJRT.js");
|
|
297
|
+
if (backfill) {
|
|
298
|
+
const done = await backfillSecretMeta(stateDir, backfill.owner);
|
|
299
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { backfilled: done } });
|
|
300
|
+
process.stdout.write(`Recorded a vendor${backfill.owner ? " and owner" : ""} on ${done.length} secret${done.length === 1 ? "" : "s"}.
|
|
301
|
+
`);
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
const info = await namedSecretInfo(stateDir);
|
|
305
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { secrets: info.map((item) => item.name), details: info } });
|
|
306
|
+
process.stdout.write(info.length ? `${info.map(({ name, meta }) => ` ${name}${meta ? ` (${[meta.vendor, meta.owner, meta.env, `saved ${meta.createdAt.slice(0, 10)}`, meta.rotatedAt ? `rotated ${meta.rotatedAt.slice(0, 10)}` : ""].filter(Boolean).join(", ")})` : ""}`).join("\n")}
|
|
307
|
+
` : "No secrets are saved.\n");
|
|
308
|
+
}
|
|
309
|
+
async function computerVaultAudit() {
|
|
310
|
+
const { auditVault } = await import("./chunk-Q35VLJRT.js");
|
|
311
|
+
const audit = await auditVault(stateDirectory());
|
|
312
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { audit } });
|
|
313
|
+
const lines = [
|
|
314
|
+
`Twin names (one key saved under two spellings): ${audit.twins.length ? audit.twins.map((names) => names.join(" = ")).join("; ") : "none"}`,
|
|
315
|
+
`Odd names (no vendor/, or dated or numbered): ${audit.oddNames.length ? audit.oddNames.join(", ") : "none"}`,
|
|
316
|
+
`Keys with no site recorded: ${audit.noUrl.length}${audit.noUrl.length ? ` (${audit.noUrl.slice(0, 12).join(", ")}${audit.noUrl.length > 12 ? ", \u2026" : ""}); clikcode computer secrets --backfill fills in what the name or a saved login tells, --url name=https://site does the rest` : ""}`,
|
|
317
|
+
`Sign-ins missing an account or a password: ${audit.incompleteLogins.length ? audit.incompleteLogins.map((login) => `${login.site} (${login.method})`).join(", ") : "none"}`,
|
|
318
|
+
`No owner recorded: ${audit.noOwner.length} secret${audit.noOwner.length === 1 ? "" : "s"}${audit.noOwner.length ? " (clikcode computer secrets --backfill --owner <email>)" : ""}`,
|
|
319
|
+
`Logins the site rejected: ${audit.rejectedLogins.length ? audit.rejectedLogins.map((login) => `${login.site} (${login.label})`).join(", ") : "none"}`
|
|
320
|
+
];
|
|
321
|
+
process.stdout.write(`${lines.join("\n")}
|
|
322
|
+
`);
|
|
323
|
+
}
|
|
324
|
+
async function computerSecretUrl(assignment) {
|
|
325
|
+
const at = assignment.indexOf("=");
|
|
326
|
+
if (at < 1) throw new Error("Give it as name=https://site, for example acme/key=https://acme.com.");
|
|
327
|
+
const { setSecretUrl } = await import("./chunk-Q35VLJRT.js");
|
|
328
|
+
await setSecretUrl(stateDirectory(), assignment.slice(0, at), assignment.slice(at + 1));
|
|
329
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { url: assignment.slice(0, at) } });
|
|
330
|
+
process.stdout.write(`Recorded the site for "${assignment.slice(0, at)}".
|
|
331
|
+
`);
|
|
332
|
+
}
|
|
333
|
+
async function computerVaultSync(target) {
|
|
334
|
+
const { syncVault, tailscaleTransport } = await import("./chunk-PRWVLDZF.js");
|
|
335
|
+
const result = await syncVault(stateDirectory(), tailscaleTransport(target));
|
|
336
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { synced: target, ...result } });
|
|
337
|
+
process.stdout.write(`Synced with ${target}: it gained ${result.sent.added} secret${result.sent.added === 1 ? "" : "s"}, this computer gained ${result.received.added} and updated ${result.received.updated}.
|
|
338
|
+
`);
|
|
339
|
+
}
|
|
340
|
+
async function computerVaultExchange() {
|
|
341
|
+
const { exchangeVault } = await import("./chunk-PRWVLDZF.js");
|
|
342
|
+
let input = "";
|
|
343
|
+
for await (const chunk of process.stdin) input += String(chunk);
|
|
344
|
+
process.stdout.write(await exchangeVault(stateDirectory(), input));
|
|
345
|
+
}
|
|
346
|
+
async function computerSecretsBackup(backup) {
|
|
347
|
+
if (backup.export && backup.import) throw new Error("Say --export or --import, not both.");
|
|
348
|
+
if (!process.stdin.isTTY) throw new Error("A backup passphrase is typed hidden: run this in a terminal.");
|
|
349
|
+
const { MIN_PASSPHRASE, readVaultBackup, writeVaultBackup } = await import("./chunk-3BUFORRX.js");
|
|
350
|
+
const stateDir = stateDirectory();
|
|
351
|
+
const { default: path } = await import("node:path");
|
|
352
|
+
if (backup.export) {
|
|
353
|
+
const file = path.resolve(backup.export);
|
|
354
|
+
const { existsSync } = await import("node:fs");
|
|
355
|
+
if (existsSync(file)) throw new Error(`${file} already exists; choose a new file name.`);
|
|
356
|
+
const first = await readHidden(`Backup passphrase (at least ${MIN_PASSPHRASE} characters, typed hidden): `);
|
|
357
|
+
if (first !== await readHidden("Again: ")) throw new Error("The two passphrases differ. Nothing was written.");
|
|
358
|
+
const counts = await writeVaultBackup(stateDir, file, first);
|
|
359
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { exported: file, ...counts } });
|
|
360
|
+
process.stdout.write(`Wrote ${file}: ${counts.logins} login${counts.logins === 1 ? "" : "s"}, ${counts.secrets} secret${counts.secrets === 1 ? "" : "s"}, ${counts.records} other record${counts.records === 1 ? "" : "s"}. Keep the passphrase; without it the file cannot be opened.
|
|
361
|
+
`);
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
const passphrase = await readHidden("Backup passphrase (typed hidden): ");
|
|
365
|
+
const result = await readVaultBackup(stateDir, path.resolve(backup.import), passphrase, { ...backup.overwrite ? { overwrite: true } : {} });
|
|
366
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { imported: backup.import, ...result } });
|
|
367
|
+
process.stdout.write(`Restored ${result.added} item${result.added === 1 ? "" : "s"}${result.skipped ? `; ${result.skipped} already here ${backup.overwrite ? "" : "were kept (use --overwrite to replace them)"}` : ""}.
|
|
368
|
+
`);
|
|
369
|
+
}
|
|
370
|
+
var PROFILE_QUESTIONS = [["given_name", "First name"], ["family_name", "Last name"], ["email", "Email"], ["phone", "Phone (with area code)"], ["address_line1", "Street address"], ["address_line2", "Apartment / suite (Enter to skip)"], ["city", "City"], ["state", "State"], ["postal_code", "Zip / postal code"], ["country", "Country"], ["organization", "Company (Enter to skip)"]];
|
|
371
|
+
async function computerProfile(options) {
|
|
372
|
+
const { defaultProfile, describeProfile, listProfiles, removeProfile, saveProfile, saveProfileSecret } = await import("./chunk-BXFJS65Q.js");
|
|
373
|
+
const stateDir = stateDirectory();
|
|
374
|
+
const emit = (text, data) => {
|
|
375
|
+
if (isJsonDefaultMode()) emitResult({ computer: { profiles: data } });
|
|
376
|
+
else process.stdout.write(`${text}
|
|
377
|
+
`);
|
|
378
|
+
};
|
|
379
|
+
if (options.delete) {
|
|
380
|
+
const target = (await listProfiles(stateDir)).find((profile) => profile.label.toLowerCase() === options.delete.toLowerCase());
|
|
381
|
+
const removed = target ? await removeProfile(stateDir, target.id) : false;
|
|
382
|
+
return emit(removed ? `Deleted "${options.delete}".` : `No profile named "${options.delete}".`, { deleted: removed });
|
|
383
|
+
}
|
|
384
|
+
if (options.create) {
|
|
385
|
+
if (!process.stdin.isTTY) throw new Error("Creating a profile asks questions: run it in a terminal, or use --set key=value.");
|
|
386
|
+
const { createInterface } = await import("node:readline/promises");
|
|
387
|
+
const rl = createInterface({ input: process.stdin, output: process.stderr });
|
|
388
|
+
const label = options.label ?? ((await rl.question("Profile name [Personal]: ")).trim() || "Personal");
|
|
389
|
+
const fields = {};
|
|
390
|
+
for (const [key, question] of PROFILE_QUESTIONS) {
|
|
391
|
+
const answer = (await rl.question(`${question}: `)).trim();
|
|
392
|
+
if (answer) fields[key] = answer;
|
|
393
|
+
}
|
|
394
|
+
rl.close();
|
|
395
|
+
const saved = await saveProfile(stateDir, { label, fields });
|
|
396
|
+
return emit(`Saved. ${describeProfile(saved)}`, [saved]);
|
|
397
|
+
}
|
|
398
|
+
if (options.secret) {
|
|
399
|
+
if (!process.stdin.isTTY) throw new Error("A secret is typed hidden: run this in a terminal.");
|
|
400
|
+
const profiles = await listProfiles(stateDir);
|
|
401
|
+
const target = options.label ? profiles.find((profile) => profile.label.toLowerCase() === options.label.toLowerCase()) : defaultProfile(profiles);
|
|
402
|
+
if (!target) throw new Error(options.label ? `No profile named "${options.label}".` : "Say which profile: --label <name>.");
|
|
403
|
+
const value = await readHidden(`${options.secret} for "${target.label}" (typed hidden): `);
|
|
404
|
+
await saveProfileSecret(stateDir, target.id, options.secret, value);
|
|
405
|
+
return emit(`Saved. ${describeProfile((await listProfiles(stateDir)).find((profile) => profile.id === target.id) ?? target)}`, { saved: options.secret });
|
|
406
|
+
}
|
|
407
|
+
if (options.set?.length) {
|
|
408
|
+
const fields = Object.fromEntries(options.set.map((pair) => {
|
|
409
|
+
const at = pair.indexOf("=");
|
|
410
|
+
if (at < 1) throw new Error(`Use key=value, for example phone=719-555-0123 (got "${pair}").`);
|
|
411
|
+
return [pair.slice(0, at), pair.slice(at + 1)];
|
|
412
|
+
}));
|
|
413
|
+
const saved = await saveProfile(stateDir, { ...options.label ? { label: options.label } : {}, fields });
|
|
414
|
+
return emit(`Saved. ${describeProfile(saved)}`, [saved]);
|
|
415
|
+
}
|
|
416
|
+
if (options.custom?.length) {
|
|
417
|
+
const custom = Object.fromEntries(options.custom.map((pair) => {
|
|
418
|
+
const at = pair.indexOf("=");
|
|
419
|
+
if (at < 1) throw new Error(`Use key=value, for example app_name="My App" (got "${pair}").`);
|
|
420
|
+
return [pair.slice(0, at).trim(), { value: pair.slice(at + 1) }];
|
|
421
|
+
}));
|
|
422
|
+
const saved = await saveProfile(stateDir, { ...options.label ? { label: options.label } : {}, fields: {}, custom });
|
|
423
|
+
return emit(`Saved. ${describeProfile(saved)}`, [saved]);
|
|
424
|
+
}
|
|
425
|
+
const all = await listProfiles(stateDir);
|
|
426
|
+
emit(all.length ? all.map(describeProfile).join("\n") : "No profile is saved. Set one: clikcode computer profile --label Personal --set given_name=Ada --set phone=719-555-0123", all);
|
|
427
|
+
}
|
|
428
|
+
async function computerDestinations() {
|
|
429
|
+
const { describeKnown, loadDestinations } = await import("./chunk-PSQQ75VJ.js");
|
|
430
|
+
const all = await loadDestinations(stateDirectory());
|
|
431
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { destinations: all } });
|
|
432
|
+
process.stdout.write(`${describeKnown(all).split("; ").map((line) => ` ${line}`).join("\n")}
|
|
433
|
+
`);
|
|
434
|
+
}
|
|
435
|
+
async function computerDestinationAdd(name, command, options) {
|
|
436
|
+
const { addDestination } = await import("./chunk-PSQQ75VJ.js");
|
|
437
|
+
await addDestination(stateDirectory(), name, { run: command, ...options.stdin !== void 0 ? { stdin: options.stdin } : {}, ...options.about ? { about: options.about } : {} });
|
|
438
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { destination: name, added: true } });
|
|
439
|
+
process.stdout.write(`Added "${name}". The agent can now send keys there with send_to.
|
|
440
|
+
`);
|
|
441
|
+
}
|
|
442
|
+
async function computerDestinationRemove(name) {
|
|
443
|
+
const { removeDestination } = await import("./chunk-PSQQ75VJ.js");
|
|
444
|
+
const removed = await removeDestination(stateDirectory(), name);
|
|
445
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { destination: name, removed } });
|
|
446
|
+
process.stdout.write(removed ? `Removed "${name}".
|
|
447
|
+
` : `"${name}" is not one you added.
|
|
448
|
+
`);
|
|
449
|
+
}
|
|
450
|
+
async function computerCard(options) {
|
|
451
|
+
const { describeSavedCard, listCards, removeCard, saveCard } = await import("./chunk-5ZWUM5GH.js");
|
|
452
|
+
const stateDir = stateDirectory();
|
|
453
|
+
const emit = (text, data) => {
|
|
454
|
+
if (isJsonDefaultMode()) emitResult({ computer: { cards: data } });
|
|
455
|
+
else process.stdout.write(`${text}
|
|
456
|
+
`);
|
|
457
|
+
};
|
|
458
|
+
if (options.delete) {
|
|
459
|
+
const gone = await removeCard(stateDir, options.delete);
|
|
460
|
+
return emit(gone ? `Removed ${gone.brand} ending ${gone.last4}.` : `No single saved card matches "${options.delete}" (give its last four digits or its label).`, { removed: Boolean(gone) });
|
|
461
|
+
}
|
|
462
|
+
if (options.add) {
|
|
463
|
+
if (!process.stdin.isTTY) throw new Error("A card is typed hidden: run this in a terminal.");
|
|
464
|
+
const number = await readHidden("Card number (typed hidden): ");
|
|
465
|
+
const expiry = await readHidden("Expiry MM/YY (typed hidden): ");
|
|
466
|
+
const code = await readHidden("Security code (typed hidden; leave empty to be asked each time): ");
|
|
467
|
+
const name = await readHidden("Name on card (typed hidden; may be empty): ");
|
|
468
|
+
const saved = await saveCard(stateDir, { number, expiry, code, ...name.trim() ? { name } : {}, ...options.label ? { label: options.label } : {} });
|
|
469
|
+
return emit(`Saved ${describeSavedCard(saved)}.`, { saved: { brand: saved.brand, last4: saved.last4, expMonth: saved.expMonth, expYear: saved.expYear, hasCode: saved.hasCode } });
|
|
470
|
+
}
|
|
471
|
+
const cards = await listCards(stateDir);
|
|
472
|
+
emit(cards.length ? cards.map((card) => describeSavedCard(card)).join("\n") : "No payment card is saved. Add one with: clikcode computer card --add", cards.map(({ brand, last4, expMonth, expYear, label, hasCode }) => ({ brand, last4, expMonth, expYear, label, hasCode })));
|
|
473
|
+
}
|
|
474
|
+
async function readHidden(question) {
|
|
475
|
+
const { createInterface } = await import("node:readline/promises");
|
|
476
|
+
const { Writable } = await import("node:stream");
|
|
477
|
+
let muted = false;
|
|
478
|
+
const out = new Writable({ write(chunk, _encoding, done) {
|
|
479
|
+
if (!muted) process.stderr.write(chunk);
|
|
480
|
+
done();
|
|
481
|
+
} });
|
|
482
|
+
const rl = createInterface({ input: process.stdin, output: out, terminal: true });
|
|
483
|
+
const asked = rl.question(question);
|
|
484
|
+
muted = true;
|
|
485
|
+
const answer = await asked;
|
|
486
|
+
rl.close();
|
|
487
|
+
process.stderr.write("\n");
|
|
488
|
+
return answer;
|
|
489
|
+
}
|
|
490
|
+
async function computerQueue(options) {
|
|
491
|
+
const { describeTask, listTasks, saveTask, summarizeTasks } = await import("./chunk-EISKIYWG.js");
|
|
492
|
+
const stateDir = stateDirectory();
|
|
493
|
+
if (options.set) {
|
|
494
|
+
if (!options.vendor) throw new Error("Say which vendor: --vendor <name>.");
|
|
495
|
+
const saved = await saveTask(stateDir, { vendor: options.vendor, status: options.set, ...options.kind ? { kind: options.kind } : {}, ...options.reason ? { reason: options.reason } : {}, ...options.note ? { note: options.note } : {}, ...options.owner ? { owner: options.owner } : {} });
|
|
496
|
+
return void process.stdout.write(`Recorded. ${describeTask(saved)}
|
|
497
|
+
`);
|
|
498
|
+
}
|
|
499
|
+
const all = await listTasks(stateDir, { ...options.status ? { status: options.status } : {}, ...options.reason ? { reason: options.reason } : {} });
|
|
500
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { tasks: all } });
|
|
501
|
+
process.stdout.write(`${summarizeTasks(all)}
|
|
502
|
+
${all.map(describeTask).join("\n")}
|
|
503
|
+
`);
|
|
504
|
+
}
|
|
505
|
+
async function computerEmail(action, options = {}) {
|
|
506
|
+
const dir = stateDirectory();
|
|
507
|
+
const { emailStatus, disconnectEmail } = await import("./chunk-3AAAARE6.js");
|
|
508
|
+
const address = options.address?.trim() || void 0;
|
|
509
|
+
if (action === "disconnect") {
|
|
510
|
+
const status2 = await emailStatus(dir);
|
|
511
|
+
if (!address && status2.mailboxes.length > 1) throw new Error(`Several mailboxes are connected (${status2.mailboxes.map((m) => m.email).join(", ")}): name the one to forget with --address.`);
|
|
512
|
+
const removed = await disconnectEmail(dir, address);
|
|
513
|
+
return isJsonDefaultMode() ? emitResult({ email: { disconnected: removed, ...address ? { address } : {} } }) : void process.stdout.write(removed ? `Mailbox disconnected${address ? `: ${address}` : ""}.
|
|
514
|
+
` : "No such mailbox was connected.\n");
|
|
515
|
+
}
|
|
516
|
+
if (action === "connect") {
|
|
517
|
+
const { connectEmail } = await import("./chunk-7ISTS5NS.js");
|
|
518
|
+
const { openComputerPage } = await import("./chunk-ZFC2Q67K.js");
|
|
519
|
+
const { profileEmail } = await import("./chunk-BXFJS65Q.js");
|
|
520
|
+
const email = address ?? await profileEmail(dir);
|
|
521
|
+
const done = await connectEmail(dir, await openComputerPage(dir, "email"), { email, progress: (line) => line && process.stdout.write(line) }).finally(async () => {
|
|
522
|
+
await closeComputerPage(dir, "email").catch(quiet("commands/computer"));
|
|
523
|
+
await releaseComputerBrowser(dir);
|
|
524
|
+
});
|
|
525
|
+
return isJsonDefaultMode() ? emitResult({ email: { connected: true, address: done.email } }) : void process.stdout.write(`Mailbox connected${done.email ? `: ${done.email}` : ""}.
|
|
526
|
+
`);
|
|
527
|
+
}
|
|
528
|
+
const status = await emailStatus(dir);
|
|
529
|
+
if (isJsonDefaultMode()) return emitResult({ email: status });
|
|
530
|
+
process.stdout.write(status.connected ? `${status.mailboxes.map((m) => `Mailbox connected: ${m.email}${m.default ? " (default)" : ""} (since ${m.connectedAt.slice(0, 10)}).`).join("\n")}
|
|
531
|
+
` : "No mailbox connected. Run `clikcode computer email connect`.\n");
|
|
532
|
+
}
|
|
533
|
+
async function computerOauthConnect(connector, flags = {}) {
|
|
534
|
+
const { oauthConnectOutcome } = await import("./chunk-DZEQ7UYR.js");
|
|
535
|
+
const json = isJsonDefaultMode();
|
|
536
|
+
const outcome = await oauthConnectOutcome(connector, { ...flags, ...json ? {} : { progress: (line) => {
|
|
537
|
+
if (line) process.stdout.write(line);
|
|
538
|
+
} } });
|
|
539
|
+
if (json) emitResult({ computer: { oauthConnect: { connector, ...outcome } } });
|
|
540
|
+
else process.stdout.write(outcome.ok ? `Connected ${connector}: ClikDeploy shows an active connection.
|
|
541
|
+
` : `Not connected: ${outcome.stop.message}
|
|
542
|
+
`);
|
|
543
|
+
if (!outcome.ok) process.exitCode = 1;
|
|
544
|
+
}
|
|
545
|
+
async function computerSms(setting) {
|
|
546
|
+
const dir = stateDirectory();
|
|
547
|
+
const { applyTwilioSetting, askMessages, askTwilio, setSmsSource, setTwilioSms, smsSource, twilioSms } = await import("./chunk-DRTP2RTY.js");
|
|
548
|
+
const twilioSetting = /^twilio:(.+)$/i.exec(setting ?? "")?.[1];
|
|
549
|
+
if (twilioSetting) await setTwilioSms(dir, applyTwilioSetting(await twilioSms(dir), twilioSetting));
|
|
550
|
+
else if (setting === "off") await setSmsSource(dir, void 0);
|
|
551
|
+
else if (setting && setting !== "test") await setSmsSource(dir, setting);
|
|
552
|
+
const [target, twilio] = await Promise.all([smsSource(dir), twilioSms(dir)]);
|
|
553
|
+
const checks = [];
|
|
554
|
+
if (setting) {
|
|
555
|
+
const since = Math.floor(Date.now() / 1e3) - 86400;
|
|
556
|
+
if (twilio) {
|
|
557
|
+
const answer = await askTwilio(dir, twilio, since);
|
|
558
|
+
checks.push("error" in answer ? answer.error : `Twilio answers: ${answer.rows.split("\n").filter(Boolean).length} incoming texts to ${twilio.number} in the last day are readable.`);
|
|
559
|
+
}
|
|
560
|
+
if (target) {
|
|
561
|
+
const answer = await askMessages(target, since);
|
|
562
|
+
checks.push("error" in answer ? answer.error : `The Mac answers: ${answer.rows.split("\n").filter(Boolean).length} incoming texts in the last day are readable.`);
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
const check = checks.join(" ") || void 0;
|
|
566
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { sms: target ?? null, smsTwilio: twilio ?? null, ...check ? { check } : {} } });
|
|
567
|
+
const where = [twilio ? `the Twilio number ${twilio.number}${twilio.others?.length ? ` (and ${twilio.others.join(", ")})` : ""}` : "", target ?? ""].filter(Boolean).join(" and ");
|
|
568
|
+
process.stdout.write(where ? `Texted codes are read from ${where}.${check ? ` ${check}` : ""}
|
|
569
|
+
` : "No phone is set up to read texted codes. Run: clikcode computer sms twilio:+<number>:<account sid>, or clikcode computer sms <user@host>\n");
|
|
570
|
+
}
|
|
571
|
+
async function computerCards(setting) {
|
|
572
|
+
const dir = stateDirectory();
|
|
573
|
+
const { cardRule, cardUses, setCardRule, MAX_RULE_USES_PER_DAY } = await import("./chunk-ISFSPN2F.js");
|
|
574
|
+
if (setting === "usage-only" || setting === "off") await setCardRule(dir, setting);
|
|
575
|
+
else if (setting && setting !== "uses") throw new Error("Say usage-only, off or uses: clikcode computer cards usage-only");
|
|
576
|
+
const rule = await cardRule(dir);
|
|
577
|
+
const uses = setting === "uses" ? await cardUses(dir) : [];
|
|
578
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { cardRule: rule, ...setting === "uses" ? { uses } : {} } });
|
|
579
|
+
process.stdout.write(rule === "usage-only" ? `Cards: a saved card may go into a payment page with no prompt when the page itself says nothing is charged until something is used, and names no subscription, renewal or amount due today; at most ${MAX_RULE_USES_PER_DAY} a day, each written down (clikcode computer cards uses). Turn off with: clikcode computer cards off
|
|
580
|
+
` : "Cards: every use needs your approval in a private prompt, and none in an unattended run. Turn on the standing rule with: clikcode computer cards usage-only\n");
|
|
581
|
+
for (const use of uses) process.stdout.write(` ${use.at.slice(0, 16)} ${use.host} ${use.card} ${use.why}
|
|
582
|
+
`);
|
|
583
|
+
}
|
|
584
|
+
async function computerEgress(action, name, options = {}) {
|
|
585
|
+
const dir = stateDirectory();
|
|
586
|
+
const { addEgress, egressList, removeEgress } = await import("./chunk-YHNIQPKY.js");
|
|
587
|
+
const describe = (entry) => entry.ssh ? `ssh tunnel through ${entry.ssh}` : entry.proxy ? `proxy ${entry.proxy}` : "this computer's own connection";
|
|
588
|
+
if (action === "add") {
|
|
589
|
+
if (!name) throw new Error("Name the egress: clikcode computer egress add <name> --ssh <host> (or --proxy socks5://host:port)");
|
|
590
|
+
await addEgress(dir, { name, ...options.ssh !== void 0 ? { ssh: options.ssh } : {}, ...options.proxy !== void 0 ? { proxy: options.proxy } : {} });
|
|
591
|
+
} else if (action === "remove") {
|
|
592
|
+
if (!name) throw new Error("Name the egress to remove: clikcode computer egress remove <name>");
|
|
593
|
+
if (!await removeEgress(dir, name)) throw new Error(`No egress is named "${name}".`);
|
|
594
|
+
}
|
|
595
|
+
if (action === "check") {
|
|
596
|
+
const { checkEgress, tunnelManager } = await import("./chunk-XUP22EAS.js");
|
|
597
|
+
try {
|
|
598
|
+
const results = await checkEgress(dir);
|
|
599
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { egressCheck: results } });
|
|
600
|
+
for (const row of results) process.stdout.write(`${row.name.padEnd(12)} ${row.ok ? `ok ${row.ip}` : `failed: ${row.error}`} (${row.via}, ${(row.ms / 1e3).toFixed(1)}s)
|
|
601
|
+
`);
|
|
602
|
+
if (results.some((row) => !row.ok)) process.exitCode = 1;
|
|
603
|
+
} finally {
|
|
604
|
+
tunnelManager(dir).closeAll();
|
|
605
|
+
}
|
|
606
|
+
return;
|
|
607
|
+
}
|
|
608
|
+
const list = await egressList(dir);
|
|
609
|
+
if (isJsonDefaultMode()) return emitResult({ computer: { egress: list } });
|
|
610
|
+
process.stdout.write(`Ways out, in the order a vendor stopped by a captcha is tried:
|
|
611
|
+
${list.map((entry, index) => ` ${index + 1}. ${entry.name}: ${describe(entry)}`).join("\n")}
|
|
612
|
+
`);
|
|
613
|
+
if (list.length === 1) process.stdout.write("Only home is set up. Add one with: clikcode computer egress add <name> --ssh <host>\n");
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
export {
|
|
617
|
+
computerStatus,
|
|
618
|
+
computerGeneratedPasswords,
|
|
619
|
+
computerUnattended,
|
|
620
|
+
computerCaptcha,
|
|
621
|
+
computerHeadless,
|
|
622
|
+
computerDisplay,
|
|
623
|
+
displayStatusText,
|
|
624
|
+
computerDesk,
|
|
625
|
+
computerBrowserUse,
|
|
626
|
+
computerSetEnabled,
|
|
627
|
+
computerInspect,
|
|
628
|
+
computerLogin,
|
|
629
|
+
computerTool,
|
|
630
|
+
computerLoginsRemove,
|
|
631
|
+
computerSecrets,
|
|
632
|
+
computerVaultAudit,
|
|
633
|
+
computerSecretUrl,
|
|
634
|
+
computerVaultSync,
|
|
635
|
+
computerVaultExchange,
|
|
636
|
+
computerProfile,
|
|
637
|
+
computerDestinations,
|
|
638
|
+
computerDestinationAdd,
|
|
639
|
+
computerDestinationRemove,
|
|
640
|
+
computerCard,
|
|
641
|
+
computerQueue,
|
|
642
|
+
computerEmail,
|
|
643
|
+
computerOauthConnect,
|
|
644
|
+
computerSms,
|
|
645
|
+
computerCards,
|
|
646
|
+
computerEgress
|
|
647
|
+
};
|