@outerlayer/cli 0.38.0-next.20261105155912 → 0.38.0-next.20261105195352
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/dist/{agent-setup-RXMEQ7PA.js → agent-setup-THQTFPYB.js} +19 -19
- package/dist/{agent-subcommand-KPQGEOPQ.js → agent-subcommand-H5LKM3HG.js} +4 -4
- package/dist/{bridge-F4BNXRM2.js → bridge-RN5JYY7N.js} +7 -7
- package/dist/{build-ZH5MAZNM.js → build-DJDZXY7M.js} +13 -13
- package/dist/{build-disk-GPCMOIZV.js → build-disk-PN7QBYVR.js} +11 -11
- package/dist/build-info.json +1 -1
- package/dist/{builder-ZMVXHOEJ.js → builder-NJXSBAX3.js} +10 -10
- package/dist/caller-T65G6G3Z.js +23 -0
- package/dist/{check-CZM3LZ7Y.js → check-QF7RGLUL.js} +55 -55
- package/dist/{chunk-IG7SBYJY.js → chunk-2VUBHRPG.js} +1 -1
- package/dist/{chunk-Y2HVISUN.js → chunk-365EXSFH.js} +1 -1
- package/dist/{chunk-EVFZUFCO.js → chunk-3CN77FDB.js} +4 -4
- package/dist/{chunk-RVIZRXBK.js → chunk-3FKWVYWC.js} +3 -3
- package/dist/{chunk-PMBG7IYE.js → chunk-3YCKLA4N.js} +10 -10
- package/dist/{chunk-64D2YZK5.js → chunk-44332APJ.js} +1 -1
- package/dist/{chunk-J7MMYBBV.js → chunk-5BU252QJ.js} +5 -5
- package/dist/{chunk-3J7F3VGZ.js → chunk-6S4THFJO.js} +2 -2
- package/dist/{chunk-DP6ZOSCR.js → chunk-6UXPXENL.js} +24 -10
- package/dist/{chunk-Y5ZKDLNX.js → chunk-6VCNDRNW.js} +15 -15
- package/dist/{chunk-L25GQH45.js → chunk-6Z5H7JV3.js} +1 -1
- package/dist/{chunk-OCDG3ZWH.js → chunk-72DXH6AP.js} +9 -9
- package/dist/{chunk-K7KQCOSM.js → chunk-75D54355.js} +9 -9
- package/dist/{chunk-WHPMCF7R.js → chunk-7DHQVVEC.js} +16 -16
- package/dist/{chunk-QJKW4MKH.js → chunk-7PZDPISM.js} +54 -2
- package/dist/{chunk-RM3K57Q7.js → chunk-A5FIUS53.js} +39 -16
- package/dist/{chunk-45UZPTDQ.js → chunk-AGDRXJSZ.js} +1 -1
- package/dist/{chunk-GLJX2CZY.js → chunk-AUQPAVRV.js} +350 -300
- package/dist/{chunk-XN4A275V.js → chunk-BHATB3L2.js} +23 -13
- package/dist/{chunk-MPGTKJOM.js → chunk-BM25MMUE.js} +3 -3
- package/dist/{chunk-3PR7BPMG.js → chunk-BP3B5R7Y.js} +4 -4
- package/dist/{chunk-K7BI4TLM.js → chunk-DDBCRY3Y.js} +20 -7
- package/dist/{chunk-VV2VLQWG.js → chunk-DSR3VW72.js} +2 -2
- package/dist/{chunk-5YWOGS66.js → chunk-EJOZNQBE.js} +7 -7
- package/dist/{chunk-MY6T3N3A.js → chunk-EUA3SKPV.js} +1 -1
- package/dist/{chunk-ZEEQB7VM.js → chunk-FIXRXONQ.js} +5 -5
- package/dist/{chunk-2C3XLYO5.js → chunk-G74ZB2V4.js} +1 -1
- package/dist/{chunk-EKRLMOWS.js → chunk-GEC2G3SJ.js} +6 -6
- package/dist/{chunk-JCEJARDB.js → chunk-GUYDCCUH.js} +1 -1
- package/dist/{chunk-2RKPEUGK.js → chunk-HBGVQT33.js} +1 -1
- package/dist/{chunk-GZETHU2Z.js → chunk-HLBN3FLS.js} +3 -3
- package/dist/{chunk-IJN3GP4M.js → chunk-HUMQ4NLZ.js} +1 -1
- package/dist/{chunk-HI5RBFL3.js → chunk-HV44EL6A.js} +14 -9
- package/dist/{chunk-VG524OUD.js → chunk-ID3HBQYZ.js} +5 -5
- package/dist/{chunk-2QIK3JRV.js → chunk-IRFN2ZHJ.js} +1 -1
- package/dist/{chunk-SKV6FO37.js → chunk-KEY5IDTC.js} +4 -4
- package/dist/{chunk-KXCTWOPU.js → chunk-KZG3R5YD.js} +3 -3
- package/dist/{chunk-M4WTELYI.js → chunk-LQJAZ4VK.js} +3 -3
- package/dist/{chunk-DOKFFSOZ.js → chunk-LWHHAZ75.js} +2 -2
- package/dist/{chunk-7TPLWWFN.js → chunk-M53UNEO6.js} +1 -1
- package/dist/{chunk-35RIDLSD.js → chunk-NAGY6ISM.js} +2 -2
- package/dist/{chunk-QDM23DTW.js → chunk-NFKERPLC.js} +10 -10
- package/dist/{chunk-HOCVTWV2.js → chunk-NIUSFUUS.js} +1 -1
- package/dist/{chunk-EOVVSXRH.js → chunk-NYWLOOIL.js} +7 -7
- package/dist/{chunk-GMRIR2MF.js → chunk-O4CWZFC4.js} +7 -7
- package/dist/{chunk-LMT72G74.js → chunk-OD2F225Q.js} +1 -1
- package/dist/{chunk-MB7IX6DO.js → chunk-ORSNYGXN.js} +1 -1
- package/dist/{chunk-XQSTN7NG.js → chunk-P22JMQJB.js} +3 -3
- package/dist/{chunk-J56SR6X4.js → chunk-P26TVBYV.js} +1 -1
- package/dist/{chunk-HU3POMM4.js → chunk-P64TL3GV.js} +6 -6
- package/dist/{chunk-WWTZLRPH.js → chunk-PLVHIQJN.js} +43 -3
- package/dist/{chunk-OVRLLZPJ.js → chunk-PWCP3YVA.js} +1 -1
- package/dist/{chunk-D5JJQRW7.js → chunk-QNPJ4VZ2.js} +9 -9
- package/dist/{chunk-SUMRSD2Q.js → chunk-QNQS4PET.js} +1 -1
- package/dist/{chunk-6XYKZH3K.js → chunk-R2QIQZ4V.js} +5 -5
- package/dist/{chunk-AWY7ORQ2.js → chunk-RNCCRUT5.js} +1 -1
- package/dist/{chunk-5M3KXOPY.js → chunk-S24KG7NY.js} +2 -2
- package/dist/{chunk-W7LJQ2GU.js → chunk-SCH5S3VW.js} +4 -4
- package/dist/{chunk-OV4XTV5M.js → chunk-SF2TBJBP.js} +7 -4
- package/dist/{chunk-VUSYGNNN.js → chunk-SZKBH2BO.js} +1 -1
- package/dist/{chunk-YU6XPJ5I.js → chunk-SZN3CSEP.js} +3 -3
- package/dist/{chunk-TOH7FJH3.js → chunk-TTYZDLGW.js} +42 -31
- package/dist/{chunk-XUXDUOJI.js → chunk-UAVBSFHI.js} +5 -5
- package/dist/{chunk-SSSPZ3TB.js → chunk-UEFLAGRW.js} +1 -1
- package/dist/{chunk-KXKVMSHC.js → chunk-UFDJDVZD.js} +1 -1
- package/dist/{chunk-3B5H5MGB.js → chunk-V52EY5UK.js} +1 -1
- package/dist/{chunk-HVUS5WRU.js → chunk-WH4OWQ6T.js} +3 -3
- package/dist/{chunk-BMYIPXBG.js → chunk-WPLNTUS6.js} +3 -3
- package/dist/{chunk-FRQPX2QR.js → chunk-XGQ7ZHNH.js} +3 -3
- package/dist/{chunk-IYUJFAQD.js → chunk-XJPTMZJG.js} +917 -34
- package/dist/{chunk-2FDWTE6F.js → chunk-ZFZ62TU4.js} +5 -5
- package/dist/{chunk-U63SE2NJ.js → chunk-ZOLDM52Z.js} +1 -1
- package/dist/{chunk-H6H5GCM6.js → chunk-ZRYBGZI7.js} +19 -8
- package/dist/{chunk-CUAV3727.js → chunk-ZZZIOKUN.js} +3 -3
- package/dist/{claude-launcher-3O5W5ENW.js → claude-launcher-LIV7LKKT.js} +8 -8
- package/dist/{cli-YMSYVF7O.js → cli-NKKF5PF5.js} +162 -149
- package/dist/{command-ZOWMTOWA.js → command-ZQDMVPD4.js} +50 -50
- package/dist/{config-J4NNZ2XO.js → config-6LQKXZNE.js} +12 -12
- package/dist/{connect-cmd-GVIUKK3R.js → connect-cmd-KHOYYXIY.js} +11 -11
- package/dist/{container-start-RZSGWDZG.js → container-start-FGSVYG2T.js} +54 -49
- package/dist/{context-cleanup-7V2ARBSC.js → context-cleanup-WYI3QQBI.js} +4 -4
- package/dist/{context-show-cmd-73E36KAV.js → context-show-cmd-MUSMZ3ZM.js} +12 -12
- package/dist/{control-plane-launch-L744RJ4A.js → control-plane-launch-UGMPLX2S.js} +15 -15
- package/dist/{demo-record-cmd-KGH3WGLY.js → demo-record-cmd-GO4ZIP4J.js} +8 -8
- package/dist/{demo-voice-cmd-CHCS7TQF.js → demo-voice-cmd-YOIL75H3.js} +20 -20
- package/dist/{docker-CAMJXBAJ.js → docker-IWTHGXFC.js} +10 -10
- package/dist/{doctor-NILQ2RUT.js → doctor-UUCRZ7JO.js} +55 -55
- package/dist/{emit-artifact-cmd-CGY656UZ.js → emit-artifact-cmd-IG5O5KUV.js} +19 -19
- package/dist/{emit-cmd-AG7HL3YI.js → emit-cmd-KGBGKB56.js} +7 -7
- package/dist/{emit-criteria-cmd-3HYUUSDK.js → emit-criteria-cmd-HV3RXCV5.js} +14 -14
- package/dist/{emit-demo-cmd-GHDL7ZGH.js → emit-demo-cmd-ZKHGJUW7.js} +20 -20
- package/dist/{emit-finding-cmd-KPHWY6ZU.js → emit-finding-cmd-PBTELK66.js} +14 -14
- package/dist/{emit-result-cmd-WOJEHOXH.js → emit-result-cmd-JJUNDXEH.js} +18 -18
- package/dist/{emit-step-cmd-QTNJBTZN.js → emit-step-cmd-5VZQBGLU.js} +14 -14
- package/dist/{exec-client-IPPD3NF4.js → exec-client-PH7FI3Q3.js} +8 -8
- package/dist/find-unit-527IGJNL.js +24 -0
- package/dist/{findings-cmd-LVYAXHQG.js → findings-cmd-PVP6D4ZV.js} +14 -14
- package/dist/{fleet-readiness-F46LOKJ6.js → fleet-readiness-YZZ6YDXZ.js} +14 -14
- package/dist/{governing-source-4XYZYZCD.js → governing-source-UUDIJISJ.js} +20 -20
- package/dist/{guest-init-CFJM25V5.js → guest-init-KXBNS3NA.js} +9 -9
- package/dist/{hook-fast-RNST4WJH.js → hook-fast-CRC7M2YT.js} +4 -4
- package/dist/{hook-install-G3FUCXBE.js → hook-install-3UNSUQVP.js} +4 -4
- package/dist/{hook-wrap-fast-HNY3OGLN.js → hook-wrap-fast-GVS5HF5C.js} +3 -3
- package/dist/host-checks-ISCYYAYB.js +79 -0
- package/dist/host-key-535Z4MV6.js +18 -0
- package/dist/{image-tag-5Z2NKCHC.js → image-tag-S5LR2FDL.js} +8 -8
- package/dist/index.js +7 -7
- package/dist/{init-7OHFUQBV.js → init-2JDKKCKC.js} +46 -46
- package/dist/init-CGYS6IGX.js +79 -0
- package/dist/{init-agent-B5ADPZIB.js → init-agent-ESCPFY6L.js} +47 -47
- package/dist/{init-cmd-ZT2PXGPD.js → init-cmd-RXB7ZCFD.js} +28 -28
- package/dist/{init-update-WYM5WSM7.js → init-update-YIQRJG5U.js} +23 -23
- package/dist/{install-cmd-3NOHEA6E.js → install-cmd-OG4IHLHP.js} +10 -10
- package/dist/{layout-RPYMSWCY.js → layout-ZDD5JMAD.js} +4 -4
- package/dist/{logs-XKEW5EOB.js → logs-LLFBENNJ.js} +7 -7
- package/dist/loop-36JR7RB2.js +90 -0
- package/dist/machine-DGMGTVD7.js +79 -0
- package/dist/{machine-skills-RP2Y5F32.js → machine-skills-G253FBPY.js} +4 -4
- package/dist/{mcp-install-cmd-IZYHXHXG.js → mcp-install-cmd-WLU64HPE.js} +4 -4
- package/dist/{mcp-serve-cmd-HAIJVRR7.js → mcp-serve-cmd-YJX7HUHL.js} +9 -9
- package/dist/{paths-6AMRSXZK.js → paths-5OXE4APD.js} +7 -7
- package/dist/pending-YC4KF2AW.js +18 -0
- package/dist/{pidfile-3BILBCEO.js → pidfile-ID52SG3L.js} +8 -8
- package/dist/{record-MV6WJGZT.js → record-XIM2Z2JO.js} +8 -8
- package/dist/{relay-CO5I2WOV.js → relay-T22SKZ3G.js} +5 -5
- package/dist/{relay-protocol-S2JGOYZZ.js → relay-protocol-64ZEAKJ4.js} +5 -5
- package/dist/runner-agents-AGFDPTJN.js +14 -0
- package/dist/runner-env-W7LASDJX.js +24 -0
- package/dist/{runner-identity-IVP2GW33.js → runner-identity-T7HDG3QU.js} +10 -10
- package/dist/{runner-key-VCWF2EN7.js → runner-key-RXTJDYTI.js} +46 -46
- package/dist/{session-sender-PWYFVWN6.js → session-sender-B6CSWAHX.js} +19 -19
- package/dist/{shell-function-FTY7SSAJ.js → shell-function-RBJR373S.js} +2 -2
- package/dist/{spec-cmd-2WKI4V2T.js → spec-cmd-HIQYYRBQ.js} +15 -15
- package/dist/{starter-pack-W6S3L76K.js → starter-pack-AK7Z6XLF.js} +5 -5
- package/dist/state-ZQN2O2PB.js +18 -0
- package/dist/{status-HHM6TH6J.js → status-YD7P337P.js} +46 -46
- package/dist/{statusline-fast-5G2CTPSX.js → statusline-fast-WUXKRABL.js} +3 -3
- package/dist/{sync-cmd-TIDWKW4E.js → sync-cmd-BRP4QE2W.js} +18 -18
- package/dist/update-steps-SBBEBOIJ.js +80 -0
- package/dist/{watch-IA6UDVSF.js → watch-B3NVFDVP.js} +18 -18
- package/dist/{work-claim-cmd-7TLC4DKU.js → work-claim-cmd-H6M5ANKL.js} +20 -20
- package/dist/{work-cmd-2LXE27RX.js → work-cmd-DJNV646Q.js} +14 -14
- package/dist/{work-comment-cmd-ER53OPLH.js → work-comment-cmd-6QZQPRJ7.js} +17 -17
- package/dist/{work-demo-cmd-CSXUA7KH.js → work-demo-cmd-6MZIVYHK.js} +14 -14
- package/dist/{work-logs-cmd-ECF7ZLHO.js → work-logs-cmd-IS4GV5VC.js} +14 -14
- package/dist/{work-open-pr-cmd-SUJEYZ6C.js → work-open-pr-cmd-KZSKJKEQ.js} +15 -15
- package/dist/{work-pr-cmd-FCNFYWUR.js → work-pr-cmd-ARVEEUF3.js} +14 -14
- package/dist/{work-proofs-cmd-UQU6SSFD.js → work-proofs-cmd-YUH3XYQE.js} +16 -16
- package/dist/{work-proofs-record-MKCYQLS2.js → work-proofs-record-BDYS2VU2.js} +24 -24
- package/dist/{work-stop-cmd-PBC7SJ7M.js → work-stop-cmd-U67OPSCS.js} +14 -14
- package/package.json +2 -2
- package/dist/caller-J7FR4VBJ.js +0 -23
- package/dist/find-unit-N3OJBFS5.js +0 -24
- package/dist/host-checks-PPTMNHRA.js +0 -79
- package/dist/host-key-QUBI74MS.js +0 -18
- package/dist/init-5ERGXSUD.js +0 -79
- package/dist/loop-HTKTSGBA.js +0 -90
- package/dist/machine-RBYGRRSM.js +0 -79
- package/dist/pending-C4XQUKWA.js +0 -18
- package/dist/runner-agents-FQ4FODZN.js +0 -14
- package/dist/runner-env-72OTIZV2.js +0 -24
- package/dist/state-C3FRODOO.js +0 -18
- package/dist/update-steps-WD25IX2R.js +0 -80
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import { verifiedTrackerNames, TRACKERS } from './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
3
|
+
import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-7DHQVVEC.js';
|
|
4
|
+
import './chunk-ZFZ62TU4.js';
|
|
5
|
+
import { verifiedTrackerNames, TRACKERS } from './chunk-O4CWZFC4.js';
|
|
6
|
+
import './chunk-HUMQ4NLZ.js';
|
|
7
|
+
import './chunk-LWHHAZ75.js';
|
|
8
|
+
import './chunk-GEC2G3SJ.js';
|
|
9
|
+
import './chunk-AGDRXJSZ.js';
|
|
10
|
+
import './chunk-PWCP3YVA.js';
|
|
11
|
+
import './chunk-SZN3CSEP.js';
|
|
12
|
+
import './chunk-BM25MMUE.js';
|
|
13
13
|
import './chunk-VVZIFOAN.js';
|
|
14
|
-
import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-
|
|
14
|
+
import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-HV44EL6A.js';
|
|
15
15
|
import './chunk-ZBPUHNUZ.js';
|
|
16
16
|
import './chunk-A2LHHKTT.js';
|
|
17
17
|
import { C, warnDeprecated, API_KEY_FLAG_DEPRECATION, NO_COLOR_FLAG, stripNoColor } from './chunk-2AM6Z5BP.js';
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
18
|
+
import './chunk-365EXSFH.js';
|
|
19
|
+
import './chunk-SZKBH2BO.js';
|
|
20
20
|
import './chunk-HWVMRETT.js';
|
|
21
|
-
import './chunk-
|
|
22
|
-
import './chunk-
|
|
23
|
-
import './chunk-
|
|
24
|
-
import './chunk-
|
|
25
|
-
import { hookFiredMarkerPath, installedCliDistDir } from './chunk-
|
|
21
|
+
import './chunk-ZOLDM52Z.js';
|
|
22
|
+
import './chunk-G74ZB2V4.js';
|
|
23
|
+
import './chunk-UAVBSFHI.js';
|
|
24
|
+
import './chunk-6UXPXENL.js';
|
|
25
|
+
import { hookFiredMarkerPath, installedCliDistDir } from './chunk-DDBCRY3Y.js';
|
|
26
26
|
import './chunk-545P7JY7.js';
|
|
27
|
-
import './chunk-
|
|
27
|
+
import './chunk-SF2TBJBP.js';
|
|
28
28
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
29
|
-
import './chunk-
|
|
29
|
+
import './chunk-M53UNEO6.js';
|
|
30
30
|
import './chunk-BKO6JEZI.js';
|
|
31
|
-
import './chunk-
|
|
31
|
+
import './chunk-UEFLAGRW.js';
|
|
32
32
|
import './chunk-NFZMENCY.js';
|
|
33
33
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
34
34
|
import { cliInvocation, packageRunnerOf } from './chunk-FZKNTIOJ.js';
|
|
35
|
-
import { installAgents, settingsFileOf, withSettingsText } from './chunk-
|
|
35
|
+
import { installAgents, settingsFileOf, withSettingsText } from './chunk-44332APJ.js';
|
|
36
36
|
import { cliForInstall, SettingsParseError, PORTABLE_BIN, writeSettingsText, cliBinResolvable } from './chunk-ZHQC43NH.js';
|
|
37
|
-
import './chunk-
|
|
37
|
+
import './chunk-P26TVBYV.js';
|
|
38
38
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
39
39
|
import { removeJournalHooks, removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
|
|
40
|
-
import {
|
|
41
|
-
import { defaultAgents, knownTargetsLine, legacyAgent } from './chunk-
|
|
42
|
-
import './chunk-
|
|
43
|
-
import './chunk-
|
|
40
|
+
import { headlessNames, credentialForms, runnerAgentNamed, credentialAgent, runnerAgents, orList, credentialShapes } from './chunk-A5FIUS53.js';
|
|
41
|
+
import { defaultAgents, knownTargetsLine, legacyAgent } from './chunk-XJPTMZJG.js';
|
|
42
|
+
import './chunk-PLVHIQJN.js';
|
|
43
|
+
import './chunk-7PZDPISM.js';
|
|
44
44
|
import './chunk-CDDED64E.js';
|
|
45
45
|
import { resolveVersion, resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
46
46
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -3659,14 +3659,14 @@ function apiKeyOption() {
|
|
|
3659
3659
|
return new Option("--api-key <key>", `deprecated: use \`${cliInvocation()} login\` or OUTERLAYER_API_KEY`).hideHelp();
|
|
3660
3660
|
}
|
|
3661
3661
|
async function installStarterPackInRepo() {
|
|
3662
|
-
const { installStarterPack, formatStarterPackOutput } = await import('./starter-pack-
|
|
3662
|
+
const { installStarterPack, formatStarterPackOutput } = await import('./starter-pack-AK7Z6XLF.js');
|
|
3663
3663
|
const cwd = process.cwd();
|
|
3664
3664
|
let repoRoot = cwd;
|
|
3665
3665
|
try {
|
|
3666
3666
|
repoRoot = execFileSync("git", ["rev-parse", "--show-toplevel"], { cwd, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).trim() || cwd;
|
|
3667
3667
|
} catch {
|
|
3668
3668
|
}
|
|
3669
|
-
const { declareAgentsMdLayout, isAgentsMdLayout, skillsBaseFor } = await import('./layout-
|
|
3669
|
+
const { declareAgentsMdLayout, isAgentsMdLayout, skillsBaseFor } = await import('./layout-ZDD5JMAD.js');
|
|
3670
3670
|
const fresh = !isAgentsMdLayout(repoRoot) && !existsSync(join(repoRoot, ".outerlayer/skills")) && !existsSync(join(repoRoot, ".outerlayer/AGENTS.md"));
|
|
3671
3671
|
const result = installStarterPack({ repoRoot, base: fresh ? ".agents/skills" : skillsBaseFor(repoRoot) });
|
|
3672
3672
|
if (fresh) declareAgentsMdLayout(repoRoot);
|
|
@@ -3809,7 +3809,7 @@ ${starter.output}`),
|
|
|
3809
3809
|
}
|
|
3810
3810
|
}
|
|
3811
3811
|
async function installMachineSkillsForSetup() {
|
|
3812
|
-
const { setupMachineSkills } = await import('./machine-skills-
|
|
3812
|
+
const { setupMachineSkills } = await import('./machine-skills-G253FBPY.js');
|
|
3813
3813
|
const result = setupMachineSkills(homeFromEnv());
|
|
3814
3814
|
for (const failure of result.failures) process.stderr.write(`${C.yellow}!${C.reset} Could not write a maintained skill: ${failure}
|
|
3815
3815
|
`);
|
|
@@ -3817,7 +3817,7 @@ async function installMachineSkillsForSetup() {
|
|
|
3817
3817
|
` : "";
|
|
3818
3818
|
}
|
|
3819
3819
|
async function realConnectDepsForCwd() {
|
|
3820
|
-
const { realConnectDeps } = await import('./connect-cmd-
|
|
3820
|
+
const { realConnectDeps } = await import('./connect-cmd-KHOYYXIY.js');
|
|
3821
3821
|
const { resolveRepoIdentity } = await import('./dist-U6EGOQD5.js');
|
|
3822
3822
|
return {
|
|
3823
3823
|
...realConnectDeps(),
|
|
@@ -3835,7 +3835,7 @@ function buildProgram(argv = process.argv) {
|
|
|
3835
3835
|
const program2 = new Command();
|
|
3836
3836
|
program2.name(cliInvocation()).description("OuterLayer \u2014 see what your coding agents actually do").enablePositionalOptions().version(resolveVersion()).hook("preAction", async (_root, command) => {
|
|
3837
3837
|
if (command.opts().apiKey !== void 0) warnDeprecated(API_KEY_FLAG_DEPRECATION);
|
|
3838
|
-
const { machineRefreshSkipped, refreshMachineSkills } = await import('./machine-skills-
|
|
3838
|
+
const { machineRefreshSkipped, refreshMachineSkills } = await import('./machine-skills-G253FBPY.js');
|
|
3839
3839
|
const names = [];
|
|
3840
3840
|
for (let at = command; at?.parent; at = at.parent) names.push(at.name());
|
|
3841
3841
|
if (!machineRefreshSkipped(names, command._hidden === true, argv)) refreshMachineSkills(homeFromEnv());
|
|
@@ -3892,8 +3892,8 @@ build, ../outerlayer-build/SKILL.md becomes ~/.agents/skills/outerlayer-build/SK
|
|
|
3892
3892
|
what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocation() + " doctor` reports the same\nstates under Starter files.\n"
|
|
3893
3893
|
).action(async (opts) => {
|
|
3894
3894
|
if (opts.update || opts.dryRun) {
|
|
3895
|
-
const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-
|
|
3896
|
-
const { fleetReadiness } = await import('./fleet-readiness-
|
|
3895
|
+
const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-YIQRJG5U.js');
|
|
3896
|
+
const { fleetReadiness } = await import('./fleet-readiness-YZZ6YDXZ.js');
|
|
3897
3897
|
const problem = updateFlagProblem(opts);
|
|
3898
3898
|
if (problem !== void 0) {
|
|
3899
3899
|
fail(problem);
|
|
@@ -3910,7 +3910,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3910
3910
|
}
|
|
3911
3911
|
let starterTemplate;
|
|
3912
3912
|
if (opts.template !== void 0) {
|
|
3913
|
-
const { assertKnownTemplate, StarterPackError } = await import('./starter-pack-
|
|
3913
|
+
const { assertKnownTemplate, StarterPackError } = await import('./starter-pack-AK7Z6XLF.js');
|
|
3914
3914
|
try {
|
|
3915
3915
|
assertKnownTemplate(opts.template);
|
|
3916
3916
|
} catch (err) {
|
|
@@ -3939,18 +3939,18 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3939
3939
|
return;
|
|
3940
3940
|
}
|
|
3941
3941
|
if (opts.remove) {
|
|
3942
|
-
const { removeShellFunction } = await import('./shell-function-
|
|
3942
|
+
const { removeShellFunction } = await import('./shell-function-RBJR373S.js');
|
|
3943
3943
|
const changed = removeShellFunction({ home: homeFromEnv() });
|
|
3944
3944
|
if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
|
|
3945
3945
|
`);
|
|
3946
3946
|
}
|
|
3947
|
-
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-
|
|
3947
|
+
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-RXB7ZCFD.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
|
|
3948
3948
|
if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
|
|
3949
3949
|
else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
|
|
3950
3950
|
return;
|
|
3951
3951
|
}
|
|
3952
3952
|
await installMachineSkillsForSetup();
|
|
3953
|
-
const { runInitCommand } = await import('./init-cmd-
|
|
3953
|
+
const { runInitCommand } = await import('./init-cmd-RXB7ZCFD.js');
|
|
3954
3954
|
const code = await runInitCommand(
|
|
3955
3955
|
{ json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
|
|
3956
3956
|
{
|
|
@@ -3962,7 +3962,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3962
3962
|
return { ok, text, detail };
|
|
3963
3963
|
},
|
|
3964
3964
|
runAgentSetup: async () => {
|
|
3965
|
-
const { runAgentSetup } = await import('./agent-setup-
|
|
3965
|
+
const { runAgentSetup } = await import('./agent-setup-THQTFPYB.js');
|
|
3966
3966
|
return runAgentSetup({ cwd: process.cwd(), skillsLink: opts.skillsLink !== false });
|
|
3967
3967
|
},
|
|
3968
3968
|
runDoctorChecks: gatherDoctorChecks,
|
|
@@ -3971,7 +3971,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3971
3971
|
shellPath: process.env.SHELL,
|
|
3972
3972
|
interactive: Boolean(process.stdin.isTTY && process.stderr.isTTY) && opts.json !== true,
|
|
3973
3973
|
ask: async () => {
|
|
3974
|
-
const { promptOnTerminal } = await import('./connect-cmd-
|
|
3974
|
+
const { promptOnTerminal } = await import('./connect-cmd-KHOYYXIY.js');
|
|
3975
3975
|
const answer = await promptOnTerminal({
|
|
3976
3976
|
message: `Should plain claude start Claude Code through ${cliInvocation()} claude? That is how a session in a governed repository gets its control plane. It adds one block to your zsh or bash startup file.`,
|
|
3977
3977
|
options: [
|
|
@@ -4010,7 +4010,7 @@ linked (true, false, or null when it could not be checked) and, when false,
|
|
|
4010
4010
|
linkUrl.
|
|
4011
4011
|
`
|
|
4012
4012
|
).action(async (opts) => {
|
|
4013
|
-
const { runConnectCommand } = await import('./connect-cmd-
|
|
4013
|
+
const { runConnectCommand } = await import('./connect-cmd-KHOYYXIY.js');
|
|
4014
4014
|
const code = await runConnectCommand({ factory: opts.factory, json: opts.json }, await realConnectDepsForCwd(), {
|
|
4015
4015
|
stdout: process.stdout,
|
|
4016
4016
|
stderr: process.stderr
|
|
@@ -4088,7 +4088,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4088
4088
|
else fail(found.reason);
|
|
4089
4089
|
return;
|
|
4090
4090
|
}
|
|
4091
|
-
const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-
|
|
4091
|
+
const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-BRP4QE2W.js');
|
|
4092
4092
|
try {
|
|
4093
4093
|
const result = await runSync({
|
|
4094
4094
|
url: opts.url,
|
|
@@ -4117,10 +4117,10 @@ code is 1: revoke the token on /profile/security.
|
|
|
4117
4117
|
if (invokedCommandToken(argv) === "watch") {
|
|
4118
4118
|
warnDeprecated(`\`${cliInvocation()} watch\` is now \`${cliInvocation()} daemon\`; the old name will be removed in a future release.`);
|
|
4119
4119
|
}
|
|
4120
|
-
const { runWatch } = await import('./watch-
|
|
4120
|
+
const { runWatch } = await import('./watch-B3NVFDVP.js');
|
|
4121
4121
|
await runWatch({ once: opts.once });
|
|
4122
4122
|
});
|
|
4123
|
-
program2.command("hook <event>", { hidden: true }).description("capture-hook fast path, installed by `init`").action(() => {
|
|
4123
|
+
program2.command("hook <event>", { hidden: true }).description("capture-hook fast path, installed by `init`").option("--agent <id>", "the agent that sent the event; with none, Claude Code").action(() => {
|
|
4124
4124
|
});
|
|
4125
4125
|
program2.command("statusline", { hidden: true }).description("Claude Code statusLine command, installed by `init`").option("--wrap-id <base64>", "a pre-existing statusLine command to run first, base64-encoded").action(() => {
|
|
4126
4126
|
});
|
|
@@ -4132,8 +4132,8 @@ code is 1: revoke the token on /profile/security.
|
|
|
4132
4132
|
});
|
|
4133
4133
|
}
|
|
4134
4134
|
const brokerRelay = program2.command("broker-relay", { hidden: true }).description("relay a build's loopback connections to the runner's tunnel and destinations").enablePositionalOptions().option("--port <port>", "the loopback port to listen on").option("--socket <path>", "the runner's tunnel socket").option("--join <path>", "the socket the runner's joining process connects to").option("--lease-watchdog", "exit when the runner's lease expiry passes; needs --join").option("--forward <port=target>", "also relay a loopback port to a destination; repeatable", (value, previous) => [...previous, value], []).action(async (opts) => {
|
|
4135
|
-
const { startRelay, startSessionRelay } = await import('./relay-
|
|
4136
|
-
const { TARGET_TUNNEL, targetOfPath } = await import('./relay-protocol-
|
|
4135
|
+
const { startRelay, startSessionRelay } = await import('./relay-T22SKZ3G.js');
|
|
4136
|
+
const { TARGET_TUNNEL, targetOfPath } = await import('./relay-protocol-64ZEAKJ4.js');
|
|
4137
4137
|
const port = Number(opts.port);
|
|
4138
4138
|
if (!Number.isInteger(port) || port < 1 || port > 65535) {
|
|
4139
4139
|
fail(opts.port === void 0 ? "--port is required" : `--port must be a port number, not ${opts.port}`);
|
|
@@ -4165,7 +4165,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4165
4165
|
await startRelay({ port, socketPath: opts.socket, forwards: forwards.map((forward) => ({ port: forward.port, socketPath: forward.spec })) });
|
|
4166
4166
|
});
|
|
4167
4167
|
brokerRelay.command("join").description("carry the runner's session to the relay over standard input and output").option("--socket <path>", "the relay's joining socket", "/run/outerlayer-relay/join.sock").action(async (opts) => {
|
|
4168
|
-
const { joinRelay } = await import('./relay-
|
|
4168
|
+
const { joinRelay } = await import('./relay-T22SKZ3G.js');
|
|
4169
4169
|
try {
|
|
4170
4170
|
await joinRelay({ socketPath: opts.socket, input: process.stdin, output: process.stdout });
|
|
4171
4171
|
} catch (err) {
|
|
@@ -4181,7 +4181,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4181
4181
|
}
|
|
4182
4182
|
});
|
|
4183
4183
|
program2.command("vm-exec", { hidden: true }).description("run a command in a microVM build's guest through its exec agent").requiredOption("--socket <path>", "the Unix socket Firecracker serves the build's vsock device on").option("--user <user>", "the user to run as", "").option("--cwd <dir>", "the working directory", "/").option("--env <NAME=value>", "an environment value the command line carries; repeatable", (value, previous) => [...previous, value], []).option("--pass <NAME>", "an environment variable whose value is read from this process; repeatable", (value, previous) => [...previous, value], []).argument("<argv...>", "the command and its arguments").action(async (argv2, opts) => {
|
|
4184
|
-
const { runVmExec } = await import('./exec-client-
|
|
4184
|
+
const { runVmExec } = await import('./exec-client-PH7FI3Q3.js');
|
|
4185
4185
|
const env = {};
|
|
4186
4186
|
for (const entry of opts.env) {
|
|
4187
4187
|
const eq = entry.indexOf("=");
|
|
@@ -4210,7 +4210,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4210
4210
|
process.exitCode = await runBuildCommand({ dir: opts.dir, argv: command });
|
|
4211
4211
|
});
|
|
4212
4212
|
program2.command("session-sender", { hidden: true }).description("stream a runner build's sessions to its work item while the build runs").action(async () => {
|
|
4213
|
-
const { runSessionSender } = await import('./session-sender-
|
|
4213
|
+
const { runSessionSender } = await import('./session-sender-B6CSWAHX.js');
|
|
4214
4214
|
try {
|
|
4215
4215
|
await runSessionSender();
|
|
4216
4216
|
} catch (err) {
|
|
@@ -4218,7 +4218,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4218
4218
|
}
|
|
4219
4219
|
});
|
|
4220
4220
|
program2.command("vm-init", { hidden: true }).description("lay out a microVM build's guest; the guest helper runs it").action(async () => {
|
|
4221
|
-
const { realGuestHost, runGuestInit } = await import('./guest-init-
|
|
4221
|
+
const { realGuestHost, runGuestInit } = await import('./guest-init-KXBNS3NA.js');
|
|
4222
4222
|
const { readFileSync: readFileSync3 } = await import('fs');
|
|
4223
4223
|
try {
|
|
4224
4224
|
runGuestInit(realGuestHost(), readFileSync3("/proc/cmdline", "utf8"));
|
|
@@ -4227,7 +4227,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4227
4227
|
}
|
|
4228
4228
|
});
|
|
4229
4229
|
program2.command("vm-forward", { hidden: true }).description("pipe a guest port to another; vm-init runs it").requiredOption("--listen <host:port>", "the address to listen on").requiredOption("--to <host:port>", "the address to pipe each connection to").action(async (opts) => {
|
|
4230
|
-
const { startBridgeForward } = await import('./bridge-
|
|
4230
|
+
const { startBridgeForward } = await import('./bridge-RN5JYY7N.js');
|
|
4231
4231
|
try {
|
|
4232
4232
|
await startBridgeForward(opts);
|
|
4233
4233
|
} catch (err) {
|
|
@@ -4253,7 +4253,7 @@ async function runCli(processArgv) {
|
|
|
4253
4253
|
await buildProgram(argv).parseAsync(argv);
|
|
4254
4254
|
}
|
|
4255
4255
|
async function compileContext(opts) {
|
|
4256
|
-
const { runEmit, EmitError } = await import('./emit-cmd-
|
|
4256
|
+
const { runEmit, EmitError } = await import('./emit-cmd-KGBGKB56.js');
|
|
4257
4257
|
try {
|
|
4258
4258
|
const result = runEmit({ cwd: opts.dir, check: opts.check, json: opts.json });
|
|
4259
4259
|
if (result.exitCode !== 0) process.exitCode = result.exitCode;
|
|
@@ -4306,7 +4306,7 @@ Compiling .outerlayer/ moved to \`${cliInvocation()} context emit\`.
|
|
|
4306
4306
|
await compileContext({ dir: opts.dir, check: opts.check, json: opts.json });
|
|
4307
4307
|
return;
|
|
4308
4308
|
}
|
|
4309
|
-
const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-
|
|
4309
|
+
const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-JJUNDXEH.js');
|
|
4310
4310
|
try {
|
|
4311
4311
|
const result = await runEmitResult({
|
|
4312
4312
|
name,
|
|
@@ -4357,7 +4357,7 @@ everywhere, bytes and deep link untouched; a still-queued one is cancelled
|
|
|
4357
4357
|
locally so it never uploads. One correction can retire several duplicates.
|
|
4358
4358
|
`
|
|
4359
4359
|
).action(async (file, opts) => {
|
|
4360
|
-
const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-
|
|
4360
|
+
const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-IG5O5KUV.js');
|
|
4361
4361
|
let pr;
|
|
4362
4362
|
if (opts.pr !== void 0) {
|
|
4363
4363
|
pr = parseTrackerNumber(opts.pr);
|
|
@@ -4413,7 +4413,7 @@ its criterion, and the new record retires the old record. The id must be the ite
|
|
|
4413
4413
|
as \`work demo --item <n> --json\` prints it.
|
|
4414
4414
|
`
|
|
4415
4415
|
).action(async (manifest, opts) => {
|
|
4416
|
-
const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-
|
|
4416
|
+
const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-ZKHGJUW7.js');
|
|
4417
4417
|
let item;
|
|
4418
4418
|
if (opts.item !== void 0) {
|
|
4419
4419
|
item = parseTrackerNumber(opts.item);
|
|
@@ -4456,7 +4456,7 @@ as \`work demo --item <n> --json\` prints it.
|
|
|
4456
4456
|
}
|
|
4457
4457
|
});
|
|
4458
4458
|
program2.command("demo-voice", { hidden: true }).description("Speak demo lines for a recorder: JSON lines in on stdin, out on stdout").action(async () => {
|
|
4459
|
-
const { runDemoVoice } = await import('./demo-voice-cmd-
|
|
4459
|
+
const { runDemoVoice } = await import('./demo-voice-cmd-YOIL75H3.js');
|
|
4460
4460
|
await runDemoVoice();
|
|
4461
4461
|
});
|
|
4462
4462
|
const demoCmd = program2.command("demo").description("Record demos with the recorder this CLI carries");
|
|
@@ -4474,7 +4474,7 @@ and the command prints the manifest's path for \`emit demo\`. Under \`work proof
|
|
|
4474
4474
|
to OUTERLAYER_PROOF_OUT instead. Exit 1 means the demo's test failed; its manifest is written all the same.
|
|
4475
4475
|
`
|
|
4476
4476
|
).action(async (file, opts) => {
|
|
4477
|
-
const { runDemoRecord, DemoRecordError } = await import('./demo-record-cmd-
|
|
4477
|
+
const { runDemoRecord, DemoRecordError } = await import('./demo-record-cmd-GO4ZIP4J.js');
|
|
4478
4478
|
try {
|
|
4479
4479
|
const result = await runDemoRecord({
|
|
4480
4480
|
file,
|
|
@@ -4523,7 +4523,7 @@ recent events with their ids. --find <text> searches all of them.
|
|
|
4523
4523
|
item that session was launched for is used automatically.
|
|
4524
4524
|
`
|
|
4525
4525
|
).action(async (opts) => {
|
|
4526
|
-
const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-
|
|
4526
|
+
const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-PBTELK66.js');
|
|
4527
4527
|
try {
|
|
4528
4528
|
refuseRemovedFindingFlags(opts);
|
|
4529
4529
|
const result = await runEmitFinding({
|
|
@@ -4590,7 +4590,7 @@ the whole batch. "untimed": true records one with no time on purpose.
|
|
|
4590
4590
|
that session was launched for is used automatically.
|
|
4591
4591
|
`
|
|
4592
4592
|
).action(async (file, opts) => {
|
|
4593
|
-
const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-
|
|
4593
|
+
const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-PBTELK66.js');
|
|
4594
4594
|
try {
|
|
4595
4595
|
const result = await runEmitFindings({
|
|
4596
4596
|
file,
|
|
@@ -4625,7 +4625,7 @@ command, the command exits 0, and \`sync\` sends it later. If the gateway refuse
|
|
|
4625
4625
|
the step, the command prints why and exits 1.
|
|
4626
4626
|
`
|
|
4627
4627
|
).action(async (name, opts) => {
|
|
4628
|
-
const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-
|
|
4628
|
+
const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-5VZQBGLU.js');
|
|
4629
4629
|
try {
|
|
4630
4630
|
await runEmitStep({
|
|
4631
4631
|
name,
|
|
@@ -4668,7 +4668,7 @@ of the item, and a (proof: <kind>) annotation names its proof.
|
|
|
4668
4668
|
${cliInvocation()} emit criteria acceptance/412-login.md --item 412
|
|
4669
4669
|
`
|
|
4670
4670
|
).action(async (file, opts) => {
|
|
4671
|
-
const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-
|
|
4671
|
+
const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-HV3RXCV5.js');
|
|
4672
4672
|
try {
|
|
4673
4673
|
const result = await runEmitCriteria({
|
|
4674
4674
|
file,
|
|
@@ -4692,9 +4692,9 @@ function registerSpecCommands(program2) {
|
|
|
4692
4692
|
const specCmd = program2.command("spec").description("Find, file and edit the issue a spec lives in, in your factory's tracker");
|
|
4693
4693
|
const credentialOptions = (command) => command.option("--json", "machine-readable JSON output").option("--url <url>", "cloud base URL (or OUTERLAYER_URL / config)").addOption(apiKeyOption()).option("--app-id <id>", "factory id the key is bound to (or OUTERLAYER_APP_ID / config)");
|
|
4694
4694
|
const run = async (action) => {
|
|
4695
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4695
|
+
const { WorkCommandError } = await import('./work-cmd-DJNV646Q.js');
|
|
4696
4696
|
try {
|
|
4697
|
-
await action(await import('./spec-cmd-
|
|
4697
|
+
await action(await import('./spec-cmd-HIQYYRBQ.js'));
|
|
4698
4698
|
} catch (err) {
|
|
4699
4699
|
if (err instanceof WorkCommandError) {
|
|
4700
4700
|
fail(err.message);
|
|
@@ -4729,7 +4729,7 @@ Prints each problem the item covers with its id, its reports and its result.
|
|
|
4729
4729
|
session was launched for is used.
|
|
4730
4730
|
`
|
|
4731
4731
|
).action(async (opts) => {
|
|
4732
|
-
const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-
|
|
4732
|
+
const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-PVP6D4ZV.js');
|
|
4733
4733
|
try {
|
|
4734
4734
|
const result = await runFindingsShow({
|
|
4735
4735
|
item: opts.item,
|
|
@@ -4757,7 +4757,7 @@ Give exactly one of --fixed and --not-fixed, and a --note. Run it again for the
|
|
|
4757
4757
|
problem to replace the earlier result. A problem the item does not cover is refused.
|
|
4758
4758
|
`
|
|
4759
4759
|
).action(async (problem, opts) => {
|
|
4760
|
-
const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-
|
|
4760
|
+
const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-PVP6D4ZV.js');
|
|
4761
4761
|
try {
|
|
4762
4762
|
const result = await runFindingsResult({
|
|
4763
4763
|
problem,
|
|
@@ -4800,7 +4800,7 @@ takes it, and prints the line that starts your session on it. That
|
|
|
4800
4800
|
session links itself and holds the item's lease while it works.
|
|
4801
4801
|
`
|
|
4802
4802
|
).action(async (opts) => {
|
|
4803
|
-
const { runWorkBuild, WorkCommandError } = await import('./work-cmd-
|
|
4803
|
+
const { runWorkBuild, WorkCommandError } = await import('./work-cmd-DJNV646Q.js');
|
|
4804
4804
|
try {
|
|
4805
4805
|
await runWorkBuild(opts);
|
|
4806
4806
|
} catch (err) {
|
|
@@ -4823,7 +4823,7 @@ renews that session's own 20-minute lease, unless --no-lease or
|
|
|
4823
4823
|
--ended is given, or another worker already holds a live one.
|
|
4824
4824
|
`
|
|
4825
4825
|
).action(async (number, opts) => {
|
|
4826
|
-
const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-
|
|
4826
|
+
const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-DJNV646Q.js');
|
|
4827
4827
|
try {
|
|
4828
4828
|
await runWorkLinkSession({ ...opts, number, noLease: opts.lease === false, logFailures: opts.logFailures === true });
|
|
4829
4829
|
} catch (err) {
|
|
@@ -4854,8 +4854,8 @@ thread at its source. It takes a plain answer: no --criterion and no
|
|
|
4854
4854
|
action flag.
|
|
4855
4855
|
`
|
|
4856
4856
|
).action(async (opts) => {
|
|
4857
|
-
const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-
|
|
4858
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4857
|
+
const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-6QZQPRJ7.js');
|
|
4858
|
+
const { WorkCommandError } = await import('./work-cmd-DJNV646Q.js');
|
|
4859
4859
|
try {
|
|
4860
4860
|
await runWorkComment(opts);
|
|
4861
4861
|
} catch (err) {
|
|
@@ -4877,7 +4877,7 @@ nothing and exits 0 when the call fails: the line goes to hook-errors.log,
|
|
|
4877
4877
|
and the comment waits for the next agent job.
|
|
4878
4878
|
`
|
|
4879
4879
|
).action(async (ids, opts) => {
|
|
4880
|
-
const { runWorkCommentsRead } = await import('./work-comment-cmd-
|
|
4880
|
+
const { runWorkCommentsRead } = await import('./work-comment-cmd-6QZQPRJ7.js');
|
|
4881
4881
|
await runWorkCommentsRead({ ...opts, commentIds: ids });
|
|
4882
4882
|
});
|
|
4883
4883
|
workCmd.command("threads").description("Read a work item's general thread, its criterion threads and its source threads").requiredOption("--item <number>", "the item's number inside this factory").option("--json", "machine-readable JSON output").option("--url <url>", "cloud base URL (or OUTERLAYER_URL / config)").addOption(apiKeyOption()).option("--app-id <id>", "factory id the key is bound to (or OUTERLAYER_APP_ID / config)").addHelpText(
|
|
@@ -4893,8 +4893,8 @@ that started outside OuterLayer, such as the line comments of a
|
|
|
4893
4893
|
GitHub review, each with its id, source and comments.
|
|
4894
4894
|
`
|
|
4895
4895
|
).action(async (opts) => {
|
|
4896
|
-
const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-
|
|
4897
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4896
|
+
const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-6QZQPRJ7.js');
|
|
4897
|
+
const { WorkCommandError } = await import('./work-cmd-DJNV646Q.js');
|
|
4898
4898
|
try {
|
|
4899
4899
|
await runWorkThreads(opts);
|
|
4900
4900
|
} catch (err) {
|
|
@@ -4918,8 +4918,8 @@ still running, or that an older runner released, has no log and the
|
|
|
4918
4918
|
command exits 1.
|
|
4919
4919
|
`
|
|
4920
4920
|
).action(async (opts) => {
|
|
4921
|
-
const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-
|
|
4922
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4921
|
+
const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-IS4GV5VC.js');
|
|
4922
|
+
const { WorkCommandError } = await import('./work-cmd-DJNV646Q.js');
|
|
4923
4923
|
try {
|
|
4924
4924
|
await runWorkLogs(opts);
|
|
4925
4925
|
} catch (err) {
|
|
@@ -4942,8 +4942,8 @@ item is not built again until a new build request. Exits 1 when no host
|
|
|
4942
4942
|
build is running for the item.
|
|
4943
4943
|
`
|
|
4944
4944
|
).action(async (opts) => {
|
|
4945
|
-
const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-
|
|
4946
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4945
|
+
const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-U67OPSCS.js');
|
|
4946
|
+
const { WorkCommandError } = await import('./work-cmd-DJNV646Q.js');
|
|
4947
4947
|
try {
|
|
4948
4948
|
await runWorkStop(opts);
|
|
4949
4949
|
} catch (err) {
|
|
@@ -4964,8 +4964,8 @@ Prints the item's newest live demo record: its artifact id, the commit it was re
|
|
|
4964
4964
|
test file that recorded it. With --json, prints { "demo": null } for an item with no demo.
|
|
4965
4965
|
`
|
|
4966
4966
|
).action(async (opts) => {
|
|
4967
|
-
const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-
|
|
4968
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4967
|
+
const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-6MZIVYHK.js');
|
|
4968
|
+
const { WorkCommandError } = await import('./work-cmd-DJNV646Q.js');
|
|
4969
4969
|
try {
|
|
4970
4970
|
await runWorkDemo(opts);
|
|
4971
4971
|
} catch (err) {
|
|
@@ -4986,7 +4986,7 @@ deletes anything \u2014 the item is removed from Work only once no
|
|
|
4986
4986
|
live addition remains on it.
|
|
4987
4987
|
`
|
|
4988
4988
|
).action(async (opts) => {
|
|
4989
|
-
const { runWorkRemove, WorkCommandError } = await import('./work-cmd-
|
|
4989
|
+
const { runWorkRemove, WorkCommandError } = await import('./work-cmd-DJNV646Q.js');
|
|
4990
4990
|
try {
|
|
4991
4991
|
await runWorkRemove(opts);
|
|
4992
4992
|
} catch (err) {
|
|
@@ -4998,7 +4998,7 @@ live addition remains on it.
|
|
|
4998
4998
|
}
|
|
4999
4999
|
});
|
|
5000
5000
|
workCmd.command("status").description("Show one item's stage, gate ledger, and additions").option("--item <number>", "the item's number inside this factory").option("--issue <number>", "issue number, or a Linear/Jira key like ENG-123").option(TRACKER_OPTION_FLAG, "tracker for a keyed --issue, when both hold the key").option("--repo <owner/name>", "repository for an issue number (default: the checkout's remote)").option("--json", "machine-readable JSON output").option("--url <url>", "cloud base URL (or OUTERLAYER_URL / config)").addOption(apiKeyOption()).option("--app-id <id>", "factory id the key is bound to (or OUTERLAYER_APP_ID / config)").action(async (opts) => {
|
|
5001
|
-
const { runWorkStatus, WorkCommandError } = await import('./work-cmd-
|
|
5001
|
+
const { runWorkStatus, WorkCommandError } = await import('./work-cmd-DJNV646Q.js');
|
|
5002
5002
|
try {
|
|
5003
5003
|
await runWorkStatus(opts);
|
|
5004
5004
|
} catch (err) {
|
|
@@ -5046,11 +5046,11 @@ stops at once if a tracked file differs from HEAD.
|
|
|
5046
5046
|
fail(trackerNumberError("--pr", opts.pr));
|
|
5047
5047
|
return;
|
|
5048
5048
|
}
|
|
5049
|
-
const { runWorkProofsCommand } = await import('./work-proofs-cmd-
|
|
5049
|
+
const { runWorkProofsCommand } = await import('./work-proofs-cmd-YUH3XYQE.js');
|
|
5050
5050
|
await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
|
|
5051
5051
|
});
|
|
5052
5052
|
workCmd.command("list").description("List live work items for this factory").option("--stage <spec|build|review>", "filter by stage").option("--section <attention|waiting|flowing>", "filter by Queue section").option("--repo <owner/name>", "repository (default: the current checkout's remote)").option("--unclaimed", "only items with no live lease").option("--claimed", "only items with a live lease, held by a host or a local session").option("--startable", "only items a host can start: a build request, no open PR, no live lease").option("--needs <amend>", "only items with a thread waiting on an agent").option("--json", "machine-readable JSON output").option("--url <url>", "cloud base URL (or OUTERLAYER_URL / config)").addOption(apiKeyOption()).option("--app-id <id>", "factory id the key is bound to (or OUTERLAYER_APP_ID / config)").action(async (opts) => {
|
|
5053
|
-
const { runWorkList, WorkCommandError } = await import('./work-cmd-
|
|
5053
|
+
const { runWorkList, WorkCommandError } = await import('./work-cmd-DJNV646Q.js');
|
|
5054
5054
|
try {
|
|
5055
5055
|
await runWorkList(opts);
|
|
5056
5056
|
} catch (err) {
|
|
@@ -5071,7 +5071,7 @@ by a different key is refused; claiming again with the same key extends
|
|
|
5071
5071
|
it. --host is a label only.
|
|
5072
5072
|
`
|
|
5073
5073
|
).action(async (opts) => {
|
|
5074
|
-
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-
|
|
5074
|
+
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-H6M5ANKL.js');
|
|
5075
5075
|
try {
|
|
5076
5076
|
await runWorkClaim(opts);
|
|
5077
5077
|
} catch (err) {
|
|
@@ -5091,7 +5091,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
|
|
|
5091
5091
|
lease has expired, or a 403 if a different key holds it.
|
|
5092
5092
|
`
|
|
5093
5093
|
).action(async (opts) => {
|
|
5094
|
-
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-
|
|
5094
|
+
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-H6M5ANKL.js');
|
|
5095
5095
|
try {
|
|
5096
5096
|
await runWorkRenew(opts);
|
|
5097
5097
|
} catch (err) {
|
|
@@ -5123,7 +5123,7 @@ applies to a host's lease only. A later tool call in the session
|
|
|
5123
5123
|
takes the lease again.
|
|
5124
5124
|
`
|
|
5125
5125
|
).action(async (opts) => {
|
|
5126
|
-
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-
|
|
5126
|
+
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-H6M5ANKL.js');
|
|
5127
5127
|
try {
|
|
5128
5128
|
await runWorkRelease(opts);
|
|
5129
5129
|
} catch (err) {
|
|
@@ -5150,7 +5150,7 @@ Idempotent: declaring the same pull request twice is a no-op.
|
|
|
5150
5150
|
needs your own login; an agent session or a factory key is refused.
|
|
5151
5151
|
`
|
|
5152
5152
|
).action(async (number, opts) => {
|
|
5153
|
-
const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-
|
|
5153
|
+
const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-ARVEEUF3.js');
|
|
5154
5154
|
try {
|
|
5155
5155
|
await runWorkPr({ ...opts, number });
|
|
5156
5156
|
} catch (err) {
|
|
@@ -5175,8 +5175,8 @@ login, then declares the pull request on the item, as \`work pr\` does.
|
|
|
5175
5175
|
Run it again after a change to the title or description.
|
|
5176
5176
|
`
|
|
5177
5177
|
).action(async (opts) => {
|
|
5178
|
-
const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-
|
|
5179
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
5178
|
+
const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-KZSKJKEQ.js');
|
|
5179
|
+
const { WorkCommandError } = await import('./work-cmd-DJNV646Q.js');
|
|
5180
5180
|
try {
|
|
5181
5181
|
await runWorkOpenPr(opts);
|
|
5182
5182
|
} catch (err) {
|
|
@@ -5202,15 +5202,27 @@ function runnerHelpWords() {
|
|
|
5202
5202
|
starts: credentialShapes(agent.descriptor).map((shape) => shape.starts)
|
|
5203
5203
|
};
|
|
5204
5204
|
}
|
|
5205
|
+
function otherAgentsHelp() {
|
|
5206
|
+
const [first, ...others] = runnerAgents();
|
|
5207
|
+
const headless = new Set(headlessNames());
|
|
5208
|
+
return others.filter((agent) => headless.has(credentialForms(agent.descriptor).runnerName)).map((agent) => {
|
|
5209
|
+
const forms = credentialForms(agent.descriptor);
|
|
5210
|
+
const shapes = orList(credentialShapes(agent.descriptor).map((shape) => `${shape.phrase} (${shape.starts}...)`));
|
|
5211
|
+
return `
|
|
5212
|
+
With --agent ${forms.runnerName}, the queue commands start ${agent.descriptor.label}, and its credential is read from stdin: ${shapes}.
|
|
5213
|
+
It is stored in the ${credentialForms(first.descriptor).envFile} beside the config, with the credential of ${first.descriptor.label}.
|
|
5214
|
+
`;
|
|
5215
|
+
}).join("");
|
|
5216
|
+
}
|
|
5205
5217
|
function registerRunnerCommands(program2) {
|
|
5206
5218
|
let resolved;
|
|
5207
5219
|
const words = () => resolved ??= runnerHelpWords();
|
|
5208
5220
|
const runnerCmd = program2.command("runner").description("Take work from the implement and amend queues on this machine");
|
|
5209
5221
|
const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
|
|
5210
5222
|
runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
|
|
5211
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5212
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5213
|
-
const { RunnerAlreadyRunningError } = await import('./pidfile-
|
|
5223
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-6LQKXZNE.js');
|
|
5224
|
+
const { start, RunnerStartError } = await import('./loop-36JR7RB2.js');
|
|
5225
|
+
const { RunnerAlreadyRunningError } = await import('./pidfile-ID52SG3L.js');
|
|
5214
5226
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5215
5227
|
try {
|
|
5216
5228
|
const { realUpdateDeps } = await import('./real-deps-QX5YH7FG.js');
|
|
@@ -5232,10 +5244,10 @@ is optional and defaults to ${words().runnerName}. On a later start it refuses v
|
|
|
5232
5244
|
The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
5233
5245
|
`
|
|
5234
5246
|
).action(async () => {
|
|
5235
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5236
|
-
const { containerStart, containerStartExit } = await import('./container-start-
|
|
5237
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5238
|
-
const { RunnerAlreadyRunningError } = await import('./pidfile-
|
|
5247
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-6LQKXZNE.js');
|
|
5248
|
+
const { containerStart, containerStartExit } = await import('./container-start-FGSVYG2T.js');
|
|
5249
|
+
const { start, RunnerStartError } = await import('./loop-36JR7RB2.js');
|
|
5250
|
+
const { RunnerAlreadyRunningError } = await import('./pidfile-ID52SG3L.js');
|
|
5239
5251
|
try {
|
|
5240
5252
|
const outcome = containerStartExit(await containerStart({
|
|
5241
5253
|
env: process.env,
|
|
@@ -5256,16 +5268,16 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5256
5268
|
"after",
|
|
5257
5269
|
"\nIn the runner image, run it with `docker exec <container> outerlayer runner update-steps`. It reads the\ncontainer with `docker inspect` and changes nothing. The steps rename the old container and never remove it\nbefore the new one runs. They name the container's variables and never print a value.\n"
|
|
5258
5270
|
).action(async (opts) => {
|
|
5259
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5260
|
-
const { runnerDir } = await import('./paths-
|
|
5261
|
-
const { runUpdateSteps } = await import('./update-steps-
|
|
5271
|
+
const { defaultRunnerConfigPath } = await import('./config-6LQKXZNE.js');
|
|
5272
|
+
const { runnerDir } = await import('./paths-5OXE4APD.js');
|
|
5273
|
+
const { runUpdateSteps } = await import('./update-steps-SBBEBOIJ.js');
|
|
5262
5274
|
const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
|
|
5263
5275
|
process.stdout.write(`${text}
|
|
5264
5276
|
`);
|
|
5265
5277
|
});
|
|
5266
5278
|
runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
|
|
5267
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5268
|
-
const { runRunnerCheck } = await import('./check-
|
|
5279
|
+
const { defaultRunnerConfigPath } = await import('./config-6LQKXZNE.js');
|
|
5280
|
+
const { runRunnerCheck } = await import('./check-QF7RGLUL.js');
|
|
5269
5281
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5270
5282
|
const result = await runRunnerCheck(configPath);
|
|
5271
5283
|
if (!result.ok) {
|
|
@@ -5286,8 +5298,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5286
5298
|
`);
|
|
5287
5299
|
});
|
|
5288
5300
|
runnerCmd.command("install").description("Put this CLI in the runner's install layout; --service adds its service").option("--config <path>", configOption).option("--service", "set up the service that keeps the runner running").option("--print", "with --service, print the unit and set up nothing").option("--user <account>", "with --service, the account the service runs as").option("--replace", "replace a unit or launcher file this command did not write").option("--allow-downgrade", "install this CLI even when it is older than the version the runner runs").option("--unit-name <name>", "with --service, the unit's name, to run a second runner beside the first").option("--build-memory-max <size>", "with --service, memory all builds may use together, such as 16g").option("--build-cpus-max <n>", "with --service, CPUs all builds may use together, such as 4").action(async (opts) => {
|
|
5289
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5290
|
-
const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-
|
|
5301
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-6LQKXZNE.js');
|
|
5302
|
+
const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-OG4IHLHP.js');
|
|
5291
5303
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5292
5304
|
if (opts.service !== true) {
|
|
5293
5305
|
const names = { print: "print", user: "user", unitName: "unit-name", buildMemoryMax: "build-memory-max", buildCpusMax: "build-cpus-max" };
|
|
@@ -5299,13 +5311,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5299
5311
|
}
|
|
5300
5312
|
}
|
|
5301
5313
|
const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
|
|
5302
|
-
if (buildCpusMax !== void 0 && !(await import('./command-
|
|
5314
|
+
if (buildCpusMax !== void 0 && !(await import('./command-ZQDMVPD4.js')).cpusAreValid(buildCpusMax)) {
|
|
5303
5315
|
fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
|
|
5304
5316
|
return;
|
|
5305
5317
|
}
|
|
5306
5318
|
try {
|
|
5307
5319
|
if (opts.service === true) {
|
|
5308
|
-
const { installServiceCommand } = await import('./command-
|
|
5320
|
+
const { installServiceCommand } = await import('./command-ZQDMVPD4.js');
|
|
5309
5321
|
const result2 = await installServiceCommand({
|
|
5310
5322
|
configPath,
|
|
5311
5323
|
print: opts.print,
|
|
@@ -5362,14 +5374,14 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
|
|
|
5362
5374
|
fail(`pass --service: \`${cliInvocation()} runner uninstall --service\` removes the runner's service.`);
|
|
5363
5375
|
return;
|
|
5364
5376
|
}
|
|
5365
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5366
|
-
const { uninstallServiceCommand } = await import('./command-
|
|
5377
|
+
const { defaultRunnerConfigPath } = await import('./config-6LQKXZNE.js');
|
|
5378
|
+
const { uninstallServiceCommand } = await import('./command-ZQDMVPD4.js');
|
|
5367
5379
|
const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
|
|
5368
5380
|
if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
|
|
5369
5381
|
`);
|
|
5370
5382
|
else fail(result.lines.length > 0 ? result.lines.join("\n ") : "the service was not removed");
|
|
5371
5383
|
});
|
|
5372
|
-
runnerCmd.command("init").description("Write a runner block that fits this machine; on macOS, offers a Linux VM").option("--config <path>", configOption).option("--vm", "on macOS, run the runner in a Linux VM (Lima), with container builds").addOption(new Option("--config-stdin", "the VM-side hand-off: read the whole config as JSON on stdin").hideHelp()).option("--vm-cli-package <path>", "with --vm, install this packed CLI tarball in the VM").option("--unit-name <name>", "the service unit's name, to run a second runner beside the first").option("--agent <name>",
|
|
5384
|
+
runnerCmd.command("init").description("Write a runner block that fits this machine; on macOS, offers a Linux VM").option("--config <path>", configOption).option("--vm", "on macOS, run the runner in a Linux VM (Lima), with container builds").addOption(new Option("--config-stdin", "the VM-side hand-off: read the whole config as JSON on stdin").hideHelp()).option("--vm-cli-package <path>", "with --vm, install this packed CLI tarball in the VM").option("--unit-name <name>", "the service unit's name, to run a second runner beside the first").option("--agent <name>", `start this agent in queue commands (${headlessNames().join(", ")}); credential on stdin`).option("--factory <org/factory>", "factory to create the runner key on, as <org>/<factory>").option("--app-id <id>", "factory id, instead of --factory (Settings \u2192 General)").addHelpText(
|
|
5373
5385
|
"after",
|
|
5374
5386
|
() => `
|
|
5375
5387
|
With no apiKey in the config file, and a login saved by \`${cliInvocation()} login\`,
|
|
@@ -5389,20 +5401,20 @@ placeholder, and ${words().possessive} credential is read from stdin: a token fr
|
|
|
5389
5401
|
never printed, and is stored in the ${words().envFile} beside the config with mode
|
|
5390
5402
|
600. Any ${words().label} credential line in runner.env is removed. With nothing piped, a credential
|
|
5391
5403
|
already in ${words().envFile} is used.
|
|
5392
|
-
|
|
5404
|
+
` + otherAgentsHelp() + `
|
|
5393
5405
|
printf '%s' "$${words().variables[0]}" | ${cliInvocation()} runner init --agent ${words().runnerName} --factory <org>/<factory>
|
|
5394
5406
|
`
|
|
5395
5407
|
).action(async (opts) => {
|
|
5396
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5397
|
-
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-
|
|
5398
|
-
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-
|
|
5399
|
-
const { detectMachine } = await import('./machine-
|
|
5400
|
-
const { chooseVm, runVmInit, VmInitError } = await import('./init-
|
|
5401
|
-
const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-
|
|
5402
|
-
const { headlessNames } = await import('./runner-agents-
|
|
5408
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-6LQKXZNE.js');
|
|
5409
|
+
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-CGYS6IGX.js');
|
|
5410
|
+
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-RXTJDYTI.js');
|
|
5411
|
+
const { detectMachine } = await import('./machine-DGMGTVD7.js');
|
|
5412
|
+
const { chooseVm, runVmInit, VmInitError } = await import('./init-2JDKKCKC.js');
|
|
5413
|
+
const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-W7LASDJX.js');
|
|
5414
|
+
const { headlessNames: headlessNames2 } = await import('./runner-agents-AGFDPTJN.js');
|
|
5403
5415
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5404
5416
|
if (opts.agent !== void 0 && !isAgentName(opts.agent)) {
|
|
5405
|
-
fail(`--agent ${opts.agent}: runner init writes commands for ${
|
|
5417
|
+
fail(`--agent ${opts.agent}: runner init writes commands for ${headlessNames2().join(", ")}. For another agent, leave --agent out and edit runner.commands.`);
|
|
5406
5418
|
return;
|
|
5407
5419
|
}
|
|
5408
5420
|
let agent = opts.agent;
|
|
@@ -5411,7 +5423,7 @@ already in ${words().envFile} is used.
|
|
|
5411
5423
|
return;
|
|
5412
5424
|
}
|
|
5413
5425
|
try {
|
|
5414
|
-
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-
|
|
5426
|
+
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-ESCPFY6L.js');
|
|
5415
5427
|
agent = await initAgent({
|
|
5416
5428
|
flag: agent,
|
|
5417
5429
|
handOff: opts.configStdin === true,
|
|
@@ -5421,18 +5433,19 @@ already in ${words().envFile} is used.
|
|
|
5421
5433
|
let credential;
|
|
5422
5434
|
if (agent !== void 0) {
|
|
5423
5435
|
const chosen = agent;
|
|
5436
|
+
const forms = credentialForms((runnerAgentNamed(chosen) ?? credentialAgent()).descriptor);
|
|
5424
5437
|
const { readPipedKey } = await import('./login-browser-AMCRDS5C.js');
|
|
5425
5438
|
const { terminalPrompt: terminalPrompt2 } = await import('./hidden-prompt-UXBFMQC5.js');
|
|
5426
5439
|
const text = await agentCredentialText({
|
|
5427
5440
|
isTTY: process.stdin.isTTY === true,
|
|
5428
5441
|
readPiped: () => readPipedKey(process.stdin, {
|
|
5429
|
-
onWaiting: () => process.stderr.write(`runner init is waiting for ${
|
|
5442
|
+
onWaiting: () => process.stderr.write(`runner init is waiting for ${forms.possessive} credential on stdin; close stdin to use the one already in ${forms.envFile}
|
|
5430
5443
|
`)
|
|
5431
5444
|
}),
|
|
5432
5445
|
secretReader: terminalPrompt2,
|
|
5433
5446
|
question: () => credentialQuestion(chosen)
|
|
5434
5447
|
});
|
|
5435
|
-
credential = credentialFromStdin(text);
|
|
5448
|
+
credential = credentialFromStdin(text, void 0, chosen);
|
|
5436
5449
|
}
|
|
5437
5450
|
const machine = detectMachine();
|
|
5438
5451
|
if (opts.configStdin === true) {
|
|
@@ -5443,7 +5456,7 @@ already in ${words().envFile} is used.
|
|
|
5443
5456
|
const chunks = [];
|
|
5444
5457
|
for await (const chunk of process.stdin) chunks.push(Buffer.from(chunk));
|
|
5445
5458
|
const result2 = runRunnerInit(configPath, { machine, configFromStdin: Buffer.concat(chunks).toString("utf8"), requireContainer: true });
|
|
5446
|
-
const { ensureHostKey: ensureHostKey2 } = await import('./host-key-
|
|
5459
|
+
const { ensureHostKey: ensureHostKey2 } = await import('./host-key-535Z4MV6.js');
|
|
5447
5460
|
const hostKey2 = await ensureHostKey2(configPath);
|
|
5448
5461
|
process.stdout.write(`host key ${hostKey2.fingerprint}
|
|
5449
5462
|
hooks: ${result2.hooks}
|
|
@@ -5498,7 +5511,7 @@ hooks: ${result2.hooks}
|
|
|
5498
5511
|
const prepared = prepareRunnerInit(configPath, { machine, agent, credential, keyFromLogin: makeKey !== void 0 });
|
|
5499
5512
|
const created = makeKey === void 0 ? void 0 : await makeKey();
|
|
5500
5513
|
const result = writeRunnerInit(prepared, created);
|
|
5501
|
-
const { ensureHostKey } = await import('./host-key-
|
|
5514
|
+
const { ensureHostKey } = await import('./host-key-535Z4MV6.js');
|
|
5502
5515
|
const hostKey = await ensureHostKey(configPath);
|
|
5503
5516
|
if (created !== void 0) {
|
|
5504
5517
|
process.stdout.write(`${C.green}\u2713${C.reset} saved the runner key in ${result.configPath}
|
|
@@ -5518,7 +5531,7 @@ hooks: ${result2.hooks}
|
|
|
5518
5531
|
);
|
|
5519
5532
|
process.stdout.write(`${C.green}\u2713${C.reset} hooks: ${result.hooks}${result.hooks === "builtin:vm" ? " (builds run in microVMs)" : " (builds run in containers)"}
|
|
5520
5533
|
`);
|
|
5521
|
-
const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-
|
|
5534
|
+
const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-OG4IHLHP.js');
|
|
5522
5535
|
let installedLayout = false;
|
|
5523
5536
|
let noService = "it starts the runner from the install layout, which needs a CLI installed with npm";
|
|
5524
5537
|
try {
|
|
@@ -5550,7 +5563,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
|
|
|
5550
5563
|
let serviceUp = false;
|
|
5551
5564
|
let restart;
|
|
5552
5565
|
if (installedLayout) {
|
|
5553
|
-
const { installServiceCommand } = await import('./command-
|
|
5566
|
+
const { installServiceCommand } = await import('./command-ZQDMVPD4.js');
|
|
5554
5567
|
const service = await installServiceCommand({
|
|
5555
5568
|
configPath,
|
|
5556
5569
|
entryPath: process.argv[1] ?? "",
|
|
@@ -5602,12 +5615,12 @@ image holds this CLI and a pinned ${words().agent}. Nothing runs inside the imag
|
|
|
5602
5615
|
A repository with no devcontainer file builds on the universal image the CLI pins by digest.
|
|
5603
5616
|
`
|
|
5604
5617
|
).action(async (opts) => {
|
|
5605
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5606
|
-
const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-
|
|
5618
|
+
const { defaultRunnerConfigPath } = await import('./config-6LQKXZNE.js');
|
|
5619
|
+
const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-DJDZXY7M.js');
|
|
5607
5620
|
const { currentCliBuild } = await import('./cli-build-K56DK4DS.js');
|
|
5608
|
-
const { createDockerHost } = await import('./docker-
|
|
5609
|
-
const { builderSpec } = await import('./builder-
|
|
5610
|
-
const { loadRunnerConfig } = await import('./config-
|
|
5621
|
+
const { createDockerHost } = await import('./docker-IWTHGXFC.js');
|
|
5622
|
+
const { builderSpec } = await import('./builder-NJXSBAX3.js');
|
|
5623
|
+
const { loadRunnerConfig } = await import('./config-6LQKXZNE.js');
|
|
5611
5624
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5612
5625
|
const loaded = (() => {
|
|
5613
5626
|
try {
|
|
@@ -5618,12 +5631,12 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5618
5631
|
})();
|
|
5619
5632
|
const memory = loaded?.build?.memory ?? "8g";
|
|
5620
5633
|
try {
|
|
5621
|
-
const { ensureRunnerIdentity } = await import('./runner-identity-
|
|
5634
|
+
const { ensureRunnerIdentity } = await import('./runner-identity-T7HDG3QU.js');
|
|
5622
5635
|
await ensureRunnerIdentity(configPath, { log: (line) => console.error(line) }).catch((err) => {
|
|
5623
5636
|
console.error(`the runner's Docker identity could not be stored: ${err instanceof Error ? err.message : String(err)}`);
|
|
5624
5637
|
});
|
|
5625
|
-
const { imageTargetFor } = await import('./governing-source-
|
|
5626
|
-
const { runnerCalls } = await import('./caller-
|
|
5638
|
+
const { imageTargetFor } = await import('./governing-source-UUDIJISJ.js');
|
|
5639
|
+
const { runnerCalls } = await import('./caller-T65G6G3Z.js');
|
|
5627
5640
|
const target = await imageTargetFor({ config: loaded === void 0 || loaded.fleet === true ? void 0 : runnerCalls(loaded), repository: opts.repository, fetchImpl: fetch });
|
|
5628
5641
|
if (!target.ok) {
|
|
5629
5642
|
if (opts.json) {
|
|
@@ -5687,25 +5700,25 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5687
5700
|
}
|
|
5688
5701
|
});
|
|
5689
5702
|
runnerCmd.command("stop").description("Take no more work; finish running jobs, then exit").option("--config <path>", "the cloud config file naming the runner to stop").option("--now", "end running jobs immediately, with outcome stopped").action(async (opts) => {
|
|
5690
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5691
|
-
const { requestStop } = await import('./loop-
|
|
5703
|
+
const { defaultRunnerConfigPath } = await import('./config-6LQKXZNE.js');
|
|
5704
|
+
const { requestStop } = await import('./loop-36JR7RB2.js');
|
|
5692
5705
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5693
|
-
const { runnerImageVersion } = await import('./image-tag-
|
|
5706
|
+
const { runnerImageVersion } = await import('./image-tag-S5LR2FDL.js');
|
|
5694
5707
|
await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
|
|
5695
5708
|
});
|
|
5696
5709
|
runnerCmd.command("status").description("List running jobs; with --recent, finished ones too").option("--config <path>", "the cloud config file naming the runner to inspect").option("--recent", "also list finished jobs, newest first, capped at 20").option("--json", "machine-readable JSON output").action(async (opts) => {
|
|
5697
|
-
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-
|
|
5698
|
-
const { jobsDir, runnerDir } = await import('./paths-
|
|
5699
|
-
const { listJobFiles, runnerProcessState } = await import('./loop-
|
|
5700
|
-
const { renderStatus } = await import('./status-
|
|
5701
|
-
const { readHousekeepingRecord } = await import('./record-
|
|
5710
|
+
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-6LQKXZNE.js');
|
|
5711
|
+
const { jobsDir, runnerDir } = await import('./paths-5OXE4APD.js');
|
|
5712
|
+
const { listJobFiles, runnerProcessState } = await import('./loop-36JR7RB2.js');
|
|
5713
|
+
const { renderStatus } = await import('./status-YD7P337P.js');
|
|
5714
|
+
const { readHousekeepingRecord } = await import('./record-XIM2Z2JO.js');
|
|
5702
5715
|
const path2 = await import('path');
|
|
5703
5716
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5704
5717
|
const all = listJobFiles(configPath);
|
|
5705
5718
|
const housekeeping = readHousekeepingRecord(runnerDir(configPath));
|
|
5706
|
-
const { readPendingUpdate } = await import('./pending-
|
|
5719
|
+
const { readPendingUpdate } = await import('./pending-YC4KF2AW.js');
|
|
5707
5720
|
const pendingUpdate = readPendingUpdate(runnerDir(configPath));
|
|
5708
|
-
const { readImageStatus } = await import('./image-tag-
|
|
5721
|
+
const { readImageStatus } = await import('./image-tag-S5LR2FDL.js');
|
|
5709
5722
|
const image = readImageStatus(runnerDir(configPath));
|
|
5710
5723
|
let host = "unknown";
|
|
5711
5724
|
let concurrency = 1;
|
|
@@ -5715,7 +5728,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5715
5728
|
host = config.host;
|
|
5716
5729
|
concurrency = config.concurrency;
|
|
5717
5730
|
if (config.fleet === true) {
|
|
5718
|
-
const { readFleetState } = await import('./state-
|
|
5731
|
+
const { readFleetState } = await import('./state-ZQN2O2PB.js');
|
|
5719
5732
|
fleet = { state: readFleetState(configPath) };
|
|
5720
5733
|
}
|
|
5721
5734
|
} catch {
|
|
@@ -5723,7 +5736,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5723
5736
|
const processState = runnerProcessState(configPath);
|
|
5724
5737
|
const service = await (async () => {
|
|
5725
5738
|
if (process.platform !== "linux" || !existsSync("/run/systemd/system")) return void 0;
|
|
5726
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
5739
|
+
const { inspectRunnerService } = await import('./find-unit-527IGJNL.js');
|
|
5727
5740
|
const facts = inspectRunnerService(configPath);
|
|
5728
5741
|
return facts === void 0 ? void 0 : { unit: facts.unit, running: facts.mainPid !== void 0, delegated: facts.delegate };
|
|
5729
5742
|
})();
|
|
@@ -5762,9 +5775,9 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5762
5775
|
);
|
|
5763
5776
|
});
|
|
5764
5777
|
runnerCmd.command("logs").argument("<item>", "the work item's number in the factory, or a build's claim id").description("Print the newest attempt's log for one item or claim id").option("--config <path>", "the cloud config file naming the runner to inspect").option("-f, --follow", "keep printing as the log grows").action(async (itemArg, opts) => {
|
|
5765
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5766
|
-
const { listJobFiles } = await import('./loop-
|
|
5767
|
-
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-
|
|
5778
|
+
const { defaultRunnerConfigPath } = await import('./config-6LQKXZNE.js');
|
|
5779
|
+
const { listJobFiles } = await import('./loop-36JR7RB2.js');
|
|
5780
|
+
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-LLFBENNJ.js');
|
|
5768
5781
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5769
5782
|
const jobs = listJobFiles(configPath);
|
|
5770
5783
|
const selected = selectAttempt(jobs, itemArg);
|
|
@@ -5985,7 +5998,7 @@ Self-host deployments also need --app-id: without a key service to resolve the
|
|
|
5985
5998
|
caller from the bearer token, the gateway answers 401 without that header.
|
|
5986
5999
|
`
|
|
5987
6000
|
).action(async (opts) => {
|
|
5988
|
-
const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-
|
|
6001
|
+
const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-WLU64HPE.js');
|
|
5989
6002
|
try {
|
|
5990
6003
|
if (opts.transport !== void 0 && opts.transport !== "stdio" && opts.transport !== "http") {
|
|
5991
6004
|
throw new McpInstallError(`--transport must be "stdio" or "http", got "${opts.transport}"`);
|
|
@@ -6007,7 +6020,7 @@ caller from the bearer token, the gateway answers 401 without that header.
|
|
|
6007
6020
|
"after",
|
|
6008
6021
|
"\nWhat the stdio .mcp.json entry spawns. Reads newline-delimited JSON-RPC 2.0 on\nstdin and writes responses on stdout. The API key comes from OUTERLAYER_API_KEY\nor ~/.outerlayer/config.json at start-up; with neither the command exits 1 and\nprints why, which the MCP client shows as the connect error.\n"
|
|
6009
6022
|
).action(async (opts) => {
|
|
6010
|
-
const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-
|
|
6023
|
+
const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-YJX7HUHL.js');
|
|
6011
6024
|
try {
|
|
6012
6025
|
await runMcpServe({ url: opts.url, appId: opts.appId });
|
|
6013
6026
|
} catch (err) {
|
|
@@ -6028,7 +6041,7 @@ would get, the instruction files and the names of the skills. It warns when the
|
|
|
6028
6041
|
no \`build\`. It needs the context-read permission: a login or a factory key with it is enough.
|
|
6029
6042
|
`
|
|
6030
6043
|
).action(async (opts) => {
|
|
6031
|
-
const { runContextShow, ContextShowError } = await import('./context-show-cmd-
|
|
6044
|
+
const { runContextShow, ContextShowError } = await import('./context-show-cmd-MUSMZ3ZM.js');
|
|
6032
6045
|
try {
|
|
6033
6046
|
const result = await runContextShow({ repo: opts.repo, json: opts.json, url: opts.url, apiKey: opts.apiKey, appId: opts.appId });
|
|
6034
6047
|
process.stdout.write(result.output);
|