@outerlayer/cli 0.37.0 → 0.38.0-next.20261105131925
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 +13 -5
- package/dist/{agent-setup-DUE6IXPP.js → agent-setup-RXMEQ7PA.js} +18 -18
- package/dist/{agent-subcommand-C625JDSN.js → agent-subcommand-KPQGEOPQ.js} +3 -3
- package/dist/{bridge-UHNGV6DM.js → bridge-F4BNXRM2.js} +6 -6
- package/dist/{build-ALG3MYX2.js → build-ZH5MAZNM.js} +12 -12
- package/dist/{build-disk-JU2QHE64.js → build-disk-GPCMOIZV.js} +10 -10
- package/dist/build-info.json +1 -1
- package/dist/{builder-4LK2FDCX.js → builder-ZMVXHOEJ.js} +9 -9
- package/dist/caller-J7FR4VBJ.js +23 -0
- package/dist/{check-PJ5FLDTD.js → check-HXGQQAJS.js} +53 -53
- package/dist/{chunk-RXWFZB3P.js → chunk-2C3XLYO5.js} +1 -1
- package/dist/{chunk-A75ZPAOP.js → chunk-2FDWTE6F.js} +5 -5
- package/dist/{chunk-NBGBMZE4.js → chunk-2RKPEUGK.js} +1 -1
- package/dist/{chunk-3LT6REKE.js → chunk-35RIDLSD.js} +2 -2
- package/dist/{chunk-BNYBHWYH.js → chunk-3B5H5MGB.js} +1 -1
- package/dist/{chunk-4U57GP2X.js → chunk-3J7F3VGZ.js} +2 -2
- package/dist/{chunk-N3FPRSUZ.js → chunk-3PR7BPMG.js} +5 -5
- package/dist/{chunk-P3KL3ZJF.js → chunk-45UZPTDQ.js} +1 -1
- package/dist/{chunk-L2PT4NRI.js → chunk-5M3KXOPY.js} +1 -1
- package/dist/{chunk-FBZE3LGM.js → chunk-64D2YZK5.js} +1 -1
- package/dist/{chunk-HN76DIHX.js → chunk-6XYKZH3K.js} +5 -5
- package/dist/{chunk-Q2JDKHOR.js → chunk-7476RWW6.js} +34 -26
- package/dist/{chunk-KE5NFPP2.js → chunk-AWRRWWA7.js} +8 -8
- package/dist/{chunk-ZRITZJ36.js → chunk-BMYIPXBG.js} +4 -4
- package/dist/{chunk-LNTZH3UL.js → chunk-CUAV3727.js} +4 -4
- package/dist/{chunk-JNGKTJ7L.js → chunk-D5JJQRW7.js} +7 -7
- package/dist/{chunk-GBCQ3KHH.js → chunk-DOKFFSOZ.js} +3 -3
- package/dist/{chunk-FV52S3JR.js → chunk-DP6ZOSCR.js} +2 -2
- package/dist/{chunk-XMIUPI5N.js → chunk-EKRLMOWS.js} +5 -5
- package/dist/{chunk-2LXO2YIW.js → chunk-EVFZUFCO.js} +5 -5
- package/dist/{chunk-NSDQESOY.js → chunk-FRQPX2QR.js} +1 -1
- package/dist/{chunk-QK43VKE4.js → chunk-GEW4TNCL.js} +7 -7
- package/dist/{chunk-6BS4DDCY.js → chunk-GMRIR2MF.js} +7 -7
- package/dist/{chunk-P2UH4EBF.js → chunk-GTJ2WSYI.js} +420 -277
- package/dist/{chunk-77RLQS5V.js → chunk-GYUHWK2N.js} +9 -9
- package/dist/{chunk-62RPMJXQ.js → chunk-GZETHU2Z.js} +3 -3
- package/dist/{chunk-KCNL7KX2.js → chunk-H6H5GCM6.js} +7 -7
- package/dist/{chunk-TCWYLSE3.js → chunk-HI5RBFL3.js} +1 -1
- package/dist/{chunk-IJU6DMQA.js → chunk-HOCVTWV2.js} +1 -1
- package/dist/{chunk-VTJ5MGGC.js → chunk-HU3POMM4.js} +6 -6
- package/dist/{chunk-EDEBGBPL.js → chunk-HVUS5WRU.js} +4 -4
- package/dist/{chunk-PNZN656P.js → chunk-IG7SBYJY.js} +1 -1
- package/dist/{chunk-6MWBZHBW.js → chunk-IJN3GP4M.js} +1 -1
- package/dist/{chunk-4A7D2HWQ.js → chunk-IYG543BV.js} +3 -3
- package/dist/{chunk-UZNSGMUZ.js → chunk-IYUJFAQD.js} +1 -1
- package/dist/{chunk-NSX2KF4L.js → chunk-J56SR6X4.js} +1 -1
- package/dist/{chunk-RFCAK6OI.js → chunk-J7MMYBBV.js} +6 -6
- package/dist/{chunk-WCJCGFVQ.js → chunk-JCEJARDB.js} +1 -1
- package/dist/{chunk-MITBH4LH.js → chunk-K7BI4TLM.js} +3 -3
- package/dist/{chunk-IHPJFMSV.js → chunk-K7KQCOSM.js} +8 -8
- package/dist/{chunk-4TDBM3PK.js → chunk-KFJIOCZS.js} +3 -3
- package/dist/{chunk-G62P3EFL.js → chunk-KXCTWOPU.js} +3 -3
- package/dist/{chunk-2KFLMNQU.js → chunk-KXKVMSHC.js} +1 -1
- package/dist/{chunk-LVZ3UV7T.js → chunk-L25GQH45.js} +1 -1
- package/dist/{chunk-XPIFUWWY.js → chunk-LFHJZDES.js} +15 -15
- package/dist/{chunk-OLZVQCDX.js → chunk-LMT72G74.js} +1 -1
- package/dist/{chunk-JO2FOEZE.js → chunk-M4WTELYI.js} +4 -4
- package/dist/{chunk-YLJXRXPX.js → chunk-MB7IX6DO.js} +1 -1
- package/dist/{chunk-XGJXLITW.js → chunk-MPGTKJOM.js} +4 -4
- package/dist/{chunk-OG6RJXQ3.js → chunk-MY6T3N3A.js} +1 -1
- package/dist/{chunk-GF4O3M23.js → chunk-OVRLLZPJ.js} +1 -1
- package/dist/{chunk-R2IPYS6A.js → chunk-PMBG7IYE.js} +8 -8
- package/dist/{chunk-ZQNYV4OZ.js → chunk-QAFR65VC.js} +216 -48
- package/dist/{chunk-Q6FXWSN3.js → chunk-QDM23DTW.js} +7 -7
- package/dist/{chunk-P4YTEF6T.js → chunk-RM3K57Q7.js} +1 -1
- package/dist/{chunk-G43WGW64.js → chunk-SKV6FO37.js} +4 -4
- package/dist/{chunk-DQZ7XFCI.js → chunk-SSSPZ3TB.js} +1 -1
- package/dist/{chunk-2QFRAMJX.js → chunk-SUMRSD2Q.js} +1 -1
- package/dist/{chunk-ZEHCE7ZE.js → chunk-TE6GQJRW.js} +1 -1
- package/dist/{chunk-MZ2OOMOT.js → chunk-U63SE2NJ.js} +1 -1
- package/dist/{chunk-LUQWY7BX.js → chunk-VG524OUD.js} +5 -5
- package/dist/{chunk-FYPVUT27.js → chunk-VUSYGNNN.js} +1 -1
- package/dist/{chunk-GQA54433.js → chunk-VV2VLQWG.js} +2 -2
- package/dist/{chunk-E2DJ6TWB.js → chunk-W7LJQ2GU.js} +3 -4
- package/dist/{chunk-ZHOPDD7U.js → chunk-XN4A275V.js} +5 -5
- package/dist/{chunk-KSSHEWPV.js → chunk-XUXDUOJI.js} +857 -524
- package/dist/{chunk-VV3Y32EV.js → chunk-Y2HVISUN.js} +1 -1
- package/dist/{chunk-HOTRWPVM.js → chunk-Y5ZKDLNX.js} +4 -4
- package/dist/{chunk-THL7WJ3F.js → chunk-YU6XPJ5I.js} +2 -2
- package/dist/{chunk-JAHR4LAD.js → chunk-ZEEQB7VM.js} +4 -4
- package/dist/{claude-launcher-HW5YVYWR.js → claude-launcher-3O5W5ENW.js} +6 -6
- package/dist/{cli-K62CS6XW.js → cli-6LEVGWVU.js} +140 -140
- package/dist/{command-EG54FHMR.js → command-HRXMLFOT.js} +47 -47
- package/dist/{config-CZJINZN5.js → config-J4NNZ2XO.js} +11 -11
- package/dist/{connect-cmd-4ZEF4WNR.js → connect-cmd-GVIUKK3R.js} +10 -10
- package/dist/{container-start-JBYD2XG4.js → container-start-JNTWQOMK.js} +45 -45
- package/dist/{context-cleanup-7QZQJXID.js → context-cleanup-7V2ARBSC.js} +3 -3
- package/dist/{context-show-cmd-JYV7RKMC.js → context-show-cmd-73E36KAV.js} +11 -11
- package/dist/{control-plane-launch-HLFLGLW6.js → control-plane-launch-L744RJ4A.js} +13 -13
- package/dist/{demo-record-cmd-MDPZD53Q.js → demo-record-cmd-KGH3WGLY.js} +7 -7
- package/dist/{demo-voice-cmd-4JEXQP4I.js → demo-voice-cmd-CHCS7TQF.js} +17 -17
- package/dist/{dist-NEH3H3EL.js → dist-U6EGOQD5.js} +1 -1
- package/dist/{docker-F4S3PBPD.js → docker-CAMJXBAJ.js} +9 -9
- package/dist/{doctor-MXWODPPL.js → doctor-2Z224QH4.js} +47 -47
- package/dist/{emit-artifact-cmd-QDYKKQT5.js → emit-artifact-cmd-CGY656UZ.js} +16 -16
- package/dist/{emit-cmd-ANJGKYSQ.js → emit-cmd-AG7HL3YI.js} +6 -6
- package/dist/{emit-criteria-cmd-OCLNKIL4.js → emit-criteria-cmd-3HYUUSDK.js} +13 -13
- package/dist/{emit-demo-cmd-RO3OXK4U.js → emit-demo-cmd-GHDL7ZGH.js} +17 -17
- package/dist/{emit-finding-cmd-M4OKFZPF.js → emit-finding-cmd-KPHWY6ZU.js} +13 -13
- package/dist/{emit-result-cmd-CUTNYSOQ.js → emit-result-cmd-WOJEHOXH.js} +15 -15
- package/dist/{emit-step-cmd-SY54AQYM.js → emit-step-cmd-QTNJBTZN.js} +13 -13
- package/dist/{exec-client-3ZVMZRZD.js → exec-client-IPPD3NF4.js} +7 -7
- package/dist/find-unit-N3OJBFS5.js +24 -0
- package/dist/{findings-cmd-246XYZSE.js → findings-cmd-LVYAXHQG.js} +13 -13
- package/dist/{fleet-readiness-SOSSKSII.js → fleet-readiness-F46LOKJ6.js} +12 -12
- package/dist/{governing-source-2UXHLXCS.js → governing-source-4XYZYZCD.js} +18 -18
- package/dist/{guest-init-ZNSEHMXA.js → guest-init-CFJM25V5.js} +8 -8
- package/dist/{hook-fast-27GO6BM2.js → hook-fast-RNST4WJH.js} +1 -1
- package/dist/{hook-install-5OS6ZH4B.js → hook-install-G3FUCXBE.js} +3 -3
- package/dist/host-checks-TXG6OTBM.js +79 -0
- package/dist/{host-key-ZRJ4CGFC.js → host-key-QUBI74MS.js} +7 -7
- package/dist/{image-tag-WQB5HVLI.js → image-tag-5Z2NKCHC.js} +7 -7
- package/dist/index.js +4 -4
- package/dist/{init-GH74PR4K.js → init-NCBQ2DOK.js} +43 -43
- package/dist/init-YENLMMJU.js +79 -0
- package/dist/{init-agent-54VT3S3Z.js → init-agent-CNHQT7YK.js} +43 -43
- package/dist/{init-cmd-AIUYATFU.js → init-cmd-I3BH7SXO.js} +24 -24
- package/dist/{init-update-BIHC42CB.js → init-update-WYM5WSM7.js} +21 -21
- package/dist/{install-cmd-YMPTGHE4.js → install-cmd-3NOHEA6E.js} +9 -9
- package/dist/{layout-DBSSMC4R.js → layout-RPYMSWCY.js} +3 -3
- package/dist/{logs-HIXNEXBT.js → logs-2OR2R52N.js} +6 -6
- package/dist/loop-TIX5JGHS.js +90 -0
- package/dist/machine-62FUJBEK.js +79 -0
- package/dist/{machine-skills-QEAB6375.js → machine-skills-RP2Y5F32.js} +3 -3
- package/dist/{mcp-install-cmd-ZL2TJUIK.js → mcp-install-cmd-IZYHXHXG.js} +3 -3
- package/dist/{mcp-serve-cmd-4EGVZBCK.js → mcp-serve-cmd-HAIJVRR7.js} +8 -8
- package/dist/{paths-AGOA7QX6.js → paths-6AMRSXZK.js} +6 -6
- package/dist/pending-C4XQUKWA.js +18 -0
- package/dist/{pidfile-H2DZIODT.js → pidfile-3BILBCEO.js} +7 -7
- package/dist/{record-UHMPQIUU.js → record-MV6WJGZT.js} +7 -7
- package/dist/{relay-MS7QJ53J.js → relay-CO5I2WOV.js} +4 -4
- package/dist/{relay-protocol-7LG6NHYA.js → relay-protocol-S2JGOYZZ.js} +4 -4
- package/dist/{runner-agents-QJCL4MO3.js → runner-agents-FQ4FODZN.js} +3 -3
- package/dist/{runner-env-YPIZG3VG.js → runner-env-72OTIZV2.js} +13 -13
- package/dist/{runner-identity-RPRUONRJ.js → runner-identity-IVP2GW33.js} +9 -9
- package/dist/{runner-key-PNZTLOK5.js → runner-key-E3ORW6RS.js} +43 -43
- package/dist/{session-sender-B526LNJ6.js → session-sender-PWYFVWN6.js} +16 -16
- package/dist/{spec-cmd-6TZVHED2.js → spec-cmd-2WKI4V2T.js} +14 -14
- package/dist/{starter-pack-6TS4PJYJ.js → starter-pack-W6S3L76K.js} +4 -4
- package/dist/{state-ALHXVNOS.js → state-C3FRODOO.js} +7 -7
- package/dist/{status-X7IK4XQU.js → status-3RD4MERA.js} +43 -43
- package/dist/{sync-cmd-NMWPCIFU.js → sync-cmd-TIDWKW4E.js} +15 -15
- package/dist/update-steps-4AI2DSYF.js +80 -0
- package/dist/{watch-INJRAQRE.js → watch-IA6UDVSF.js} +15 -15
- package/dist/{work-claim-cmd-YE4MVGZH.js → work-claim-cmd-VBRJO6FU.js} +20 -20
- package/dist/{work-cmd-6JUZHKXN.js → work-cmd-2LXE27RX.js} +13 -13
- package/dist/{work-comment-cmd-KK7H6F67.js → work-comment-cmd-ER53OPLH.js} +15 -15
- package/dist/{work-demo-cmd-32PXKPZK.js → work-demo-cmd-CSXUA7KH.js} +13 -13
- package/dist/{work-logs-cmd-QYSBE2SP.js → work-logs-cmd-ECF7ZLHO.js} +13 -13
- package/dist/{work-open-pr-cmd-PSATZ2BK.js → work-open-pr-cmd-SUJEYZ6C.js} +14 -14
- package/dist/{work-pr-cmd-BEYPR7TL.js → work-pr-cmd-FCNFYWUR.js} +13 -13
- package/dist/{work-proofs-cmd-Y7WZNTI3.js → work-proofs-cmd-6DV35Y2W.js} +15 -15
- package/dist/{work-proofs-record-5DCQQT23.js → work-proofs-record-7YI27TFT.js} +21 -21
- package/dist/{work-stop-cmd-MUSKJC5M.js → work-stop-cmd-PBC7SJ7M.js} +13 -13
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +2 -1
- package/skill-pack/maintained/outerlayer-build/references/agent-briefs.md +2 -1
- package/dist/caller-JQC4VW36.js +0 -23
- package/dist/find-unit-5ALT2LU3.js +0 -24
- package/dist/host-checks-RK5TC3TX.js +0 -79
- package/dist/init-CSWMBTTM.js +0 -79
- package/dist/loop-P7NDQS3G.js +0 -90
- package/dist/machine-UEW4P7I6.js +0 -79
- package/dist/pending-625SL7WI.js +0 -18
- package/dist/update-steps-R7AQAO6R.js +0 -80
|
@@ -1,50 +1,50 @@
|
|
|
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-LFHJZDES.js';
|
|
4
|
+
import './chunk-2FDWTE6F.js';
|
|
5
|
+
import { verifiedTrackerNames, TRACKERS } from './chunk-GMRIR2MF.js';
|
|
6
|
+
import './chunk-IJN3GP4M.js';
|
|
7
|
+
import './chunk-DOKFFSOZ.js';
|
|
8
|
+
import './chunk-EKRLMOWS.js';
|
|
9
|
+
import './chunk-45UZPTDQ.js';
|
|
10
|
+
import './chunk-OVRLLZPJ.js';
|
|
11
|
+
import './chunk-YU6XPJ5I.js';
|
|
12
|
+
import './chunk-MPGTKJOM.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-HI5RBFL3.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-Y2HVISUN.js';
|
|
19
|
+
import './chunk-VUSYGNNN.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-U63SE2NJ.js';
|
|
22
|
+
import './chunk-2C3XLYO5.js';
|
|
23
|
+
import './chunk-XUXDUOJI.js';
|
|
24
|
+
import './chunk-DP6ZOSCR.js';
|
|
25
|
+
import { hookFiredMarkerPath, installedCliDistDir } from './chunk-K7BI4TLM.js';
|
|
26
26
|
import './chunk-545P7JY7.js';
|
|
27
27
|
import './chunk-OV4XTV5M.js';
|
|
28
28
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
29
29
|
import './chunk-7TPLWWFN.js';
|
|
30
30
|
import './chunk-BKO6JEZI.js';
|
|
31
|
-
import './chunk-
|
|
31
|
+
import './chunk-SSSPZ3TB.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-64D2YZK5.js';
|
|
36
36
|
import { cliForInstall, SettingsParseError, PORTABLE_BIN, writeSettingsText, cliBinResolvable } from './chunk-ZHQC43NH.js';
|
|
37
|
-
import './chunk-
|
|
37
|
+
import './chunk-J56SR6X4.js';
|
|
38
38
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
39
39
|
import { removeJournalHooks, removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
|
|
40
|
-
import { credentialAgent, credentialForms, credentialShapes } from './chunk-
|
|
41
|
-
import { defaultAgents, knownTargetsLine, legacyAgent } from './chunk-
|
|
40
|
+
import { credentialAgent, credentialForms, credentialShapes } from './chunk-RM3K57Q7.js';
|
|
41
|
+
import { defaultAgents, knownTargetsLine, legacyAgent } from './chunk-IYUJFAQD.js';
|
|
42
42
|
import './chunk-WWTZLRPH.js';
|
|
43
43
|
import './chunk-QJKW4MKH.js';
|
|
44
44
|
import './chunk-CDDED64E.js';
|
|
45
45
|
import { resolveVersion, resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
46
46
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
47
|
-
import './chunk-
|
|
47
|
+
import './chunk-QAFR65VC.js';
|
|
48
48
|
import './chunk-2JIGPSVF.js';
|
|
49
49
|
import './chunk-Z5GEFMRW.js';
|
|
50
50
|
import { EventEmitter } from 'events';
|
|
@@ -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-W6S3L76K.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-RPYMSWCY.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-RP2Y5F32.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,8 +3817,8 @@ async function installMachineSkillsForSetup() {
|
|
|
3817
3817
|
` : "";
|
|
3818
3818
|
}
|
|
3819
3819
|
async function realConnectDepsForCwd() {
|
|
3820
|
-
const { realConnectDeps } = await import('./connect-cmd-
|
|
3821
|
-
const { resolveRepoIdentity } = await import('./dist-
|
|
3820
|
+
const { realConnectDeps } = await import('./connect-cmd-GVIUKK3R.js');
|
|
3821
|
+
const { resolveRepoIdentity } = await import('./dist-U6EGOQD5.js');
|
|
3822
3822
|
return {
|
|
3823
3823
|
...realConnectDeps(),
|
|
3824
3824
|
home: homeFromEnv(),
|
|
@@ -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-RP2Y5F32.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-WYM5WSM7.js');
|
|
3896
|
+
const { fleetReadiness } = await import('./fleet-readiness-F46LOKJ6.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-W6S3L76K.js');
|
|
3914
3914
|
try {
|
|
3915
3915
|
assertKnownTemplate(opts.template);
|
|
3916
3916
|
} catch (err) {
|
|
@@ -3944,13 +3944,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
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-I3BH7SXO.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-I3BH7SXO.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-RXMEQ7PA.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-GVIUKK3R.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-GVIUKK3R.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-TIDWKW4E.js');
|
|
4092
4092
|
try {
|
|
4093
4093
|
const result = await runSync({
|
|
4094
4094
|
url: opts.url,
|
|
@@ -4117,7 +4117,7 @@ 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-IA6UDVSF.js');
|
|
4121
4121
|
await runWatch({ once: opts.once });
|
|
4122
4122
|
});
|
|
4123
4123
|
program2.command("hook <event>", { hidden: true }).description("capture-hook fast path, installed by `init`").action(() => {
|
|
@@ -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-CO5I2WOV.js');
|
|
4136
|
+
const { TARGET_TUNNEL, targetOfPath } = await import('./relay-protocol-S2JGOYZZ.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-CO5I2WOV.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-IPPD3NF4.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-PWYFVWN6.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-CFJM25V5.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-F4BNXRM2.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-AG7HL3YI.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-WOJEHOXH.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-CGY656UZ.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-GHDL7ZGH.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-CHCS7TQF.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-KGH3WGLY.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-KPHWY6ZU.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-KPHWY6ZU.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-QTNJBTZN.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-3HYUUSDK.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-2LXE27RX.js');
|
|
4696
4696
|
try {
|
|
4697
|
-
await action(await import('./spec-cmd-
|
|
4697
|
+
await action(await import('./spec-cmd-2WKI4V2T.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-LVYAXHQG.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-LVYAXHQG.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-2LXE27RX.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-2LXE27RX.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-ER53OPLH.js');
|
|
4858
|
+
const { WorkCommandError } = await import('./work-cmd-2LXE27RX.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-ER53OPLH.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-ER53OPLH.js');
|
|
4897
|
+
const { WorkCommandError } = await import('./work-cmd-2LXE27RX.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-ECF7ZLHO.js');
|
|
4922
|
+
const { WorkCommandError } = await import('./work-cmd-2LXE27RX.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-PBC7SJ7M.js');
|
|
4946
|
+
const { WorkCommandError } = await import('./work-cmd-2LXE27RX.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-CSXUA7KH.js');
|
|
4968
|
+
const { WorkCommandError } = await import('./work-cmd-2LXE27RX.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-2LXE27RX.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-2LXE27RX.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-6DV35Y2W.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-2LXE27RX.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-VBRJO6FU.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-VBRJO6FU.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-VBRJO6FU.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-FCNFYWUR.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-SUJEYZ6C.js');
|
|
5179
|
+
const { WorkCommandError } = await import('./work-cmd-2LXE27RX.js');
|
|
5180
5180
|
try {
|
|
5181
5181
|
await runWorkOpenPr(opts);
|
|
5182
5182
|
} catch (err) {
|
|
@@ -5208,9 +5208,9 @@ function registerRunnerCommands(program2) {
|
|
|
5208
5208
|
const runnerCmd = program2.command("runner").description("Take work from the implement and amend queues on this machine");
|
|
5209
5209
|
const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
|
|
5210
5210
|
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-
|
|
5211
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-J4NNZ2XO.js');
|
|
5212
|
+
const { start, RunnerStartError } = await import('./loop-TIX5JGHS.js');
|
|
5213
|
+
const { RunnerAlreadyRunningError } = await import('./pidfile-3BILBCEO.js');
|
|
5214
5214
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5215
5215
|
try {
|
|
5216
5216
|
const { realUpdateDeps } = await import('./real-deps-QX5YH7FG.js');
|
|
@@ -5232,10 +5232,10 @@ is optional and defaults to ${words().runnerName}. On a later start it refuses v
|
|
|
5232
5232
|
The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
5233
5233
|
`
|
|
5234
5234
|
).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-
|
|
5235
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-J4NNZ2XO.js');
|
|
5236
|
+
const { containerStart, containerStartExit } = await import('./container-start-JNTWQOMK.js');
|
|
5237
|
+
const { start, RunnerStartError } = await import('./loop-TIX5JGHS.js');
|
|
5238
|
+
const { RunnerAlreadyRunningError } = await import('./pidfile-3BILBCEO.js');
|
|
5239
5239
|
try {
|
|
5240
5240
|
const outcome = containerStartExit(await containerStart({
|
|
5241
5241
|
env: process.env,
|
|
@@ -5256,16 +5256,16 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5256
5256
|
"after",
|
|
5257
5257
|
"\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
5258
|
).action(async (opts) => {
|
|
5259
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5260
|
-
const { runnerDir } = await import('./paths-
|
|
5261
|
-
const { runUpdateSteps } = await import('./update-steps-
|
|
5259
|
+
const { defaultRunnerConfigPath } = await import('./config-J4NNZ2XO.js');
|
|
5260
|
+
const { runnerDir } = await import('./paths-6AMRSXZK.js');
|
|
5261
|
+
const { runUpdateSteps } = await import('./update-steps-4AI2DSYF.js');
|
|
5262
5262
|
const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
|
|
5263
5263
|
process.stdout.write(`${text}
|
|
5264
5264
|
`);
|
|
5265
5265
|
});
|
|
5266
5266
|
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-
|
|
5267
|
+
const { defaultRunnerConfigPath } = await import('./config-J4NNZ2XO.js');
|
|
5268
|
+
const { runRunnerCheck } = await import('./check-HXGQQAJS.js');
|
|
5269
5269
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5270
5270
|
const result = await runRunnerCheck(configPath);
|
|
5271
5271
|
if (!result.ok) {
|
|
@@ -5286,8 +5286,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5286
5286
|
`);
|
|
5287
5287
|
});
|
|
5288
5288
|
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-
|
|
5289
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-J4NNZ2XO.js');
|
|
5290
|
+
const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-3NOHEA6E.js');
|
|
5291
5291
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5292
5292
|
if (opts.service !== true) {
|
|
5293
5293
|
const names = { print: "print", user: "user", unitName: "unit-name", buildMemoryMax: "build-memory-max", buildCpusMax: "build-cpus-max" };
|
|
@@ -5299,13 +5299,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5299
5299
|
}
|
|
5300
5300
|
}
|
|
5301
5301
|
const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
|
|
5302
|
-
if (buildCpusMax !== void 0 && !(await import('./command-
|
|
5302
|
+
if (buildCpusMax !== void 0 && !(await import('./command-HRXMLFOT.js')).cpusAreValid(buildCpusMax)) {
|
|
5303
5303
|
fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
|
|
5304
5304
|
return;
|
|
5305
5305
|
}
|
|
5306
5306
|
try {
|
|
5307
5307
|
if (opts.service === true) {
|
|
5308
|
-
const { installServiceCommand } = await import('./command-
|
|
5308
|
+
const { installServiceCommand } = await import('./command-HRXMLFOT.js');
|
|
5309
5309
|
const result2 = await installServiceCommand({
|
|
5310
5310
|
configPath,
|
|
5311
5311
|
print: opts.print,
|
|
@@ -5362,8 +5362,8 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
|
|
|
5362
5362
|
fail(`pass --service: \`${cliInvocation()} runner uninstall --service\` removes the runner's service.`);
|
|
5363
5363
|
return;
|
|
5364
5364
|
}
|
|
5365
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5366
|
-
const { uninstallServiceCommand } = await import('./command-
|
|
5365
|
+
const { defaultRunnerConfigPath } = await import('./config-J4NNZ2XO.js');
|
|
5366
|
+
const { uninstallServiceCommand } = await import('./command-HRXMLFOT.js');
|
|
5367
5367
|
const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
|
|
5368
5368
|
if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
|
|
5369
5369
|
`);
|
|
@@ -5393,13 +5393,13 @@ already in ${words().envFile} is used.
|
|
|
5393
5393
|
printf '%s' "$${words().variables[0]}" | ${cliInvocation()} runner init --agent ${words().runnerName} --factory <org>/<factory>
|
|
5394
5394
|
`
|
|
5395
5395
|
).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-
|
|
5396
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-J4NNZ2XO.js');
|
|
5397
|
+
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-YENLMMJU.js');
|
|
5398
|
+
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-E3ORW6RS.js');
|
|
5399
|
+
const { detectMachine } = await import('./machine-62FUJBEK.js');
|
|
5400
|
+
const { chooseVm, runVmInit, VmInitError } = await import('./init-NCBQ2DOK.js');
|
|
5401
|
+
const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-72OTIZV2.js');
|
|
5402
|
+
const { headlessNames } = await import('./runner-agents-FQ4FODZN.js');
|
|
5403
5403
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5404
5404
|
if (opts.agent !== void 0 && !isAgentName(opts.agent)) {
|
|
5405
5405
|
fail(`--agent ${opts.agent}: runner init writes commands for ${headlessNames().join(", ")}. For another agent, leave --agent out and edit runner.commands.`);
|
|
@@ -5411,7 +5411,7 @@ already in ${words().envFile} is used.
|
|
|
5411
5411
|
return;
|
|
5412
5412
|
}
|
|
5413
5413
|
try {
|
|
5414
|
-
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-
|
|
5414
|
+
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-CNHQT7YK.js');
|
|
5415
5415
|
agent = await initAgent({
|
|
5416
5416
|
flag: agent,
|
|
5417
5417
|
handOff: opts.configStdin === true,
|
|
@@ -5443,7 +5443,7 @@ already in ${words().envFile} is used.
|
|
|
5443
5443
|
const chunks = [];
|
|
5444
5444
|
for await (const chunk of process.stdin) chunks.push(Buffer.from(chunk));
|
|
5445
5445
|
const result2 = runRunnerInit(configPath, { machine, configFromStdin: Buffer.concat(chunks).toString("utf8"), requireContainer: true });
|
|
5446
|
-
const { ensureHostKey: ensureHostKey2 } = await import('./host-key-
|
|
5446
|
+
const { ensureHostKey: ensureHostKey2 } = await import('./host-key-QUBI74MS.js');
|
|
5447
5447
|
const hostKey2 = await ensureHostKey2(configPath);
|
|
5448
5448
|
process.stdout.write(`host key ${hostKey2.fingerprint}
|
|
5449
5449
|
hooks: ${result2.hooks}
|
|
@@ -5498,7 +5498,7 @@ hooks: ${result2.hooks}
|
|
|
5498
5498
|
const prepared = prepareRunnerInit(configPath, { machine, agent, credential, keyFromLogin: makeKey !== void 0 });
|
|
5499
5499
|
const created = makeKey === void 0 ? void 0 : await makeKey();
|
|
5500
5500
|
const result = writeRunnerInit(prepared, created);
|
|
5501
|
-
const { ensureHostKey } = await import('./host-key-
|
|
5501
|
+
const { ensureHostKey } = await import('./host-key-QUBI74MS.js');
|
|
5502
5502
|
const hostKey = await ensureHostKey(configPath);
|
|
5503
5503
|
if (created !== void 0) {
|
|
5504
5504
|
process.stdout.write(`${C.green}\u2713${C.reset} saved the runner key in ${result.configPath}
|
|
@@ -5518,7 +5518,7 @@ hooks: ${result2.hooks}
|
|
|
5518
5518
|
);
|
|
5519
5519
|
process.stdout.write(`${C.green}\u2713${C.reset} hooks: ${result.hooks}${result.hooks === "builtin:vm" ? " (builds run in microVMs)" : " (builds run in containers)"}
|
|
5520
5520
|
`);
|
|
5521
|
-
const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-
|
|
5521
|
+
const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-3NOHEA6E.js');
|
|
5522
5522
|
let installedLayout = false;
|
|
5523
5523
|
let noService = "it starts the runner from the install layout, which needs a CLI installed with npm";
|
|
5524
5524
|
try {
|
|
@@ -5550,7 +5550,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
|
|
|
5550
5550
|
let serviceUp = false;
|
|
5551
5551
|
let restart;
|
|
5552
5552
|
if (installedLayout) {
|
|
5553
|
-
const { installServiceCommand } = await import('./command-
|
|
5553
|
+
const { installServiceCommand } = await import('./command-HRXMLFOT.js');
|
|
5554
5554
|
const service = await installServiceCommand({
|
|
5555
5555
|
configPath,
|
|
5556
5556
|
entryPath: process.argv[1] ?? "",
|
|
@@ -5602,12 +5602,12 @@ image holds this CLI and a pinned ${words().agent}. Nothing runs inside the imag
|
|
|
5602
5602
|
A repository with no devcontainer file builds on the universal image the CLI pins by digest.
|
|
5603
5603
|
`
|
|
5604
5604
|
).action(async (opts) => {
|
|
5605
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5606
|
-
const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-
|
|
5605
|
+
const { defaultRunnerConfigPath } = await import('./config-J4NNZ2XO.js');
|
|
5606
|
+
const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-ZH5MAZNM.js');
|
|
5607
5607
|
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-
|
|
5608
|
+
const { createDockerHost } = await import('./docker-CAMJXBAJ.js');
|
|
5609
|
+
const { builderSpec } = await import('./builder-ZMVXHOEJ.js');
|
|
5610
|
+
const { loadRunnerConfig } = await import('./config-J4NNZ2XO.js');
|
|
5611
5611
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5612
5612
|
const loaded = (() => {
|
|
5613
5613
|
try {
|
|
@@ -5618,12 +5618,12 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5618
5618
|
})();
|
|
5619
5619
|
const memory = loaded?.build?.memory ?? "8g";
|
|
5620
5620
|
try {
|
|
5621
|
-
const { ensureRunnerIdentity } = await import('./runner-identity-
|
|
5621
|
+
const { ensureRunnerIdentity } = await import('./runner-identity-IVP2GW33.js');
|
|
5622
5622
|
await ensureRunnerIdentity(configPath, { log: (line) => console.error(line) }).catch((err) => {
|
|
5623
5623
|
console.error(`the runner's Docker identity could not be stored: ${err instanceof Error ? err.message : String(err)}`);
|
|
5624
5624
|
});
|
|
5625
|
-
const { imageTargetFor } = await import('./governing-source-
|
|
5626
|
-
const { runnerCalls } = await import('./caller-
|
|
5625
|
+
const { imageTargetFor } = await import('./governing-source-4XYZYZCD.js');
|
|
5626
|
+
const { runnerCalls } = await import('./caller-J7FR4VBJ.js');
|
|
5627
5627
|
const target = await imageTargetFor({ config: loaded === void 0 || loaded.fleet === true ? void 0 : runnerCalls(loaded), repository: opts.repository, fetchImpl: fetch });
|
|
5628
5628
|
if (!target.ok) {
|
|
5629
5629
|
if (opts.json) {
|
|
@@ -5687,25 +5687,25 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5687
5687
|
}
|
|
5688
5688
|
});
|
|
5689
5689
|
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-
|
|
5690
|
+
const { defaultRunnerConfigPath } = await import('./config-J4NNZ2XO.js');
|
|
5691
|
+
const { requestStop } = await import('./loop-TIX5JGHS.js');
|
|
5692
5692
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5693
|
-
const { runnerImageVersion } = await import('./image-tag-
|
|
5693
|
+
const { runnerImageVersion } = await import('./image-tag-5Z2NKCHC.js');
|
|
5694
5694
|
await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
|
|
5695
5695
|
});
|
|
5696
5696
|
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-
|
|
5697
|
+
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-J4NNZ2XO.js');
|
|
5698
|
+
const { jobsDir, runnerDir } = await import('./paths-6AMRSXZK.js');
|
|
5699
|
+
const { listJobFiles, runnerProcessState } = await import('./loop-TIX5JGHS.js');
|
|
5700
|
+
const { renderStatus } = await import('./status-3RD4MERA.js');
|
|
5701
|
+
const { readHousekeepingRecord } = await import('./record-MV6WJGZT.js');
|
|
5702
5702
|
const path2 = await import('path');
|
|
5703
5703
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5704
5704
|
const all = listJobFiles(configPath);
|
|
5705
5705
|
const housekeeping = readHousekeepingRecord(runnerDir(configPath));
|
|
5706
|
-
const { readPendingUpdate } = await import('./pending-
|
|
5706
|
+
const { readPendingUpdate } = await import('./pending-C4XQUKWA.js');
|
|
5707
5707
|
const pendingUpdate = readPendingUpdate(runnerDir(configPath));
|
|
5708
|
-
const { readImageStatus } = await import('./image-tag-
|
|
5708
|
+
const { readImageStatus } = await import('./image-tag-5Z2NKCHC.js');
|
|
5709
5709
|
const image = readImageStatus(runnerDir(configPath));
|
|
5710
5710
|
let host = "unknown";
|
|
5711
5711
|
let concurrency = 1;
|
|
@@ -5715,7 +5715,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5715
5715
|
host = config.host;
|
|
5716
5716
|
concurrency = config.concurrency;
|
|
5717
5717
|
if (config.fleet === true) {
|
|
5718
|
-
const { readFleetState } = await import('./state-
|
|
5718
|
+
const { readFleetState } = await import('./state-C3FRODOO.js');
|
|
5719
5719
|
fleet = { state: readFleetState(configPath) };
|
|
5720
5720
|
}
|
|
5721
5721
|
} catch {
|
|
@@ -5723,7 +5723,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5723
5723
|
const processState = runnerProcessState(configPath);
|
|
5724
5724
|
const service = await (async () => {
|
|
5725
5725
|
if (process.platform !== "linux" || !existsSync("/run/systemd/system")) return void 0;
|
|
5726
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
5726
|
+
const { inspectRunnerService } = await import('./find-unit-N3OJBFS5.js');
|
|
5727
5727
|
const facts = inspectRunnerService(configPath);
|
|
5728
5728
|
return facts === void 0 ? void 0 : { unit: facts.unit, running: facts.mainPid !== void 0, delegated: facts.delegate };
|
|
5729
5729
|
})();
|
|
@@ -5762,9 +5762,9 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5762
5762
|
);
|
|
5763
5763
|
});
|
|
5764
5764
|
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-
|
|
5765
|
+
const { defaultRunnerConfigPath } = await import('./config-J4NNZ2XO.js');
|
|
5766
|
+
const { listJobFiles } = await import('./loop-TIX5JGHS.js');
|
|
5767
|
+
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-2OR2R52N.js');
|
|
5768
5768
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5769
5769
|
const jobs = listJobFiles(configPath);
|
|
5770
5770
|
const selected = selectAttempt(jobs, itemArg);
|
|
@@ -5985,7 +5985,7 @@ Self-host deployments also need --app-id: without a key service to resolve the
|
|
|
5985
5985
|
caller from the bearer token, the gateway answers 401 without that header.
|
|
5986
5986
|
`
|
|
5987
5987
|
).action(async (opts) => {
|
|
5988
|
-
const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-
|
|
5988
|
+
const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-IZYHXHXG.js');
|
|
5989
5989
|
try {
|
|
5990
5990
|
if (opts.transport !== void 0 && opts.transport !== "stdio" && opts.transport !== "http") {
|
|
5991
5991
|
throw new McpInstallError(`--transport must be "stdio" or "http", got "${opts.transport}"`);
|
|
@@ -6007,7 +6007,7 @@ caller from the bearer token, the gateway answers 401 without that header.
|
|
|
6007
6007
|
"after",
|
|
6008
6008
|
"\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
6009
|
).action(async (opts) => {
|
|
6010
|
-
const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-
|
|
6010
|
+
const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-HAIJVRR7.js');
|
|
6011
6011
|
try {
|
|
6012
6012
|
await runMcpServe({ url: opts.url, appId: opts.appId });
|
|
6013
6013
|
} catch (err) {
|
|
@@ -6028,7 +6028,7 @@ would get, the instruction files and the names of the skills. It warns when the
|
|
|
6028
6028
|
no \`build\`. It needs the context-read permission: a login or a factory key with it is enough.
|
|
6029
6029
|
`
|
|
6030
6030
|
).action(async (opts) => {
|
|
6031
|
-
const { runContextShow, ContextShowError } = await import('./context-show-cmd-
|
|
6031
|
+
const { runContextShow, ContextShowError } = await import('./context-show-cmd-73E36KAV.js');
|
|
6032
6032
|
try {
|
|
6033
6033
|
const result = await runContextShow({ repo: opts.repo, json: opts.json, url: opts.url, apiKey: opts.apiKey, appId: opts.appId });
|
|
6034
6034
|
process.stdout.write(result.output);
|