@outerlayer/cli 0.36.0-next.20261103102716 → 0.36.0-next.20261103181718
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-DZZZH3SE.js → agent-setup-WV4Y2HGG.js} +18 -18
- package/dist/{agent-subcommand-WRHH6SRD.js → agent-subcommand-RQCLWP3A.js} +3 -3
- package/dist/{bridge-GZSZQGLI.js → bridge-NFSJ4IBQ.js} +6 -6
- package/dist/{build-UKZ5RPRR.js → build-RGO3EWJD.js} +12 -12
- package/dist/{build-disk-3HOXULLP.js → build-disk-NYYBJGBH.js} +10 -10
- package/dist/build-info.json +1 -1
- package/dist/{builder-QEK4GIRY.js → builder-HT3CV5ZZ.js} +9 -9
- package/dist/caller-D4ZZWA6I.js +23 -0
- package/dist/{check-QLJ2O7VO.js → check-4T4FDFLZ.js} +57 -55
- package/dist/{chunk-LDKF6B2R.js → chunk-22JLORO6.js} +3 -3
- package/dist/{chunk-K26KMWU4.js → chunk-2P532NZM.js} +7 -7
- package/dist/{chunk-NMMGRG5V.js → chunk-2VWYPY62.js} +4 -4
- package/dist/{chunk-B5VKRKLJ.js → chunk-3JYR5R57.js} +1 -1
- package/dist/{chunk-PDRWRFB2.js → chunk-4S564XTG.js} +3 -3
- package/dist/{chunk-SYKEQT63.js → chunk-5HMIMWRD.js} +17 -5
- package/dist/{chunk-L3SHPR2M.js → chunk-63KUYXOH.js} +1 -1
- package/dist/{chunk-VST3BWL4.js → chunk-63T2OTPO.js} +11 -10
- package/dist/{chunk-42X6CTBI.js → chunk-6BGE2CZB.js} +3 -3
- package/dist/{chunk-JMM3L5RG.js → chunk-7A2OPME2.js} +4 -4
- package/dist/{chunk-QVOU2QUR.js → chunk-7HRNYPL3.js} +3 -3
- package/dist/{chunk-2JWLK2TU.js → chunk-7TPLWWFN.js} +1 -1
- package/dist/{chunk-P4Q6M6PI.js → chunk-7WZNTLNB.js} +1 -1
- package/dist/{chunk-LV4IDDD3.js → chunk-AWPGPPXP.js} +5 -5
- package/dist/{chunk-DWYQKLCL.js → chunk-AWY7ORQ2.js} +1 -1
- package/dist/{chunk-3XEYA3QF.js → chunk-BQUI64BU.js} +1 -1
- package/dist/{chunk-CDTBXABP.js → chunk-C6LAXUC7.js} +2 -2
- package/dist/{chunk-IEDO26G4.js → chunk-CFHM562L.js} +10 -3
- package/dist/{chunk-MPVTZLOM.js → chunk-CLFP2ZTG.js} +3 -3
- package/dist/{chunk-ZE2JJQPC.js → chunk-CMZTCXCA.js} +1 -1
- package/dist/{chunk-BTGNFRRT.js → chunk-CTBQN5KQ.js} +6 -6
- package/dist/{chunk-KHJPRTOW.js → chunk-DIL7U77P.js} +1 -1
- package/dist/{chunk-54ERDQ3O.js → chunk-E6ESLX5E.js} +32 -8
- package/dist/{chunk-YWCK4EOT.js → chunk-EZI2BLP6.js} +3 -3
- package/dist/{chunk-6J3QWXTA.js → chunk-F2UM3NDF.js} +4 -4
- package/dist/{chunk-6UI4ELNA.js → chunk-GTJLKBN7.js} +7 -7
- package/dist/{chunk-HO4DPX5N.js → chunk-H4H3KK25.js} +1 -1
- package/dist/{chunk-YEZGNCSK.js → chunk-H6T73OLF.js} +1 -1
- package/dist/{chunk-7UYXSF62.js → chunk-HBYFB3LK.js} +6 -7
- package/dist/{chunk-JD5EVW6Y.js → chunk-I5EZW66W.js} +4 -4
- package/dist/{chunk-WNQGSAUE.js → chunk-IDYLPN4X.js} +1 -1
- package/dist/{chunk-EUWTGCK5.js → chunk-IKAGRGLY.js} +1 -1
- package/dist/{chunk-NQYTUVZR.js → chunk-IM4VUDKW.js} +1 -1
- package/dist/{chunk-BZQ3S24G.js → chunk-INT54Z2T.js} +1 -1
- package/dist/{chunk-U6HCTKPH.js → chunk-IRJ6EGQT.js} +7 -7
- package/dist/{chunk-WAGHPZP2.js → chunk-J3SICPA2.js} +1 -1
- package/dist/{chunk-GPBTTHK3.js → chunk-JJ63MLE5.js} +1 -1
- package/dist/{chunk-HQBKKYYQ.js → chunk-K3GCT2HL.js} +4 -4
- package/dist/{chunk-HX6B34ZF.js → chunk-K52TGQLV.js} +18 -18
- package/dist/{chunk-QKLCIJEU.js → chunk-KYDKOYZD.js} +56 -33
- package/dist/{chunk-T5I2H7TJ.js → chunk-NE2A2ZIY.js} +1 -1
- package/dist/{chunk-HR4PJLOO.js → chunk-NFYXRAEV.js} +1 -1
- package/dist/{chunk-4MLH5MDB.js → chunk-OM3XGJBY.js} +5 -5
- package/dist/{chunk-U7MLC45I.js → chunk-ORBQ4QR7.js} +5 -5
- package/dist/{chunk-VMPVQE4D.js → chunk-PL2AGLJF.js} +2 -2
- package/dist/{chunk-J4NJWTNO.js → chunk-POTMAJPJ.js} +5 -5
- package/dist/{chunk-LXXP5HRJ.js → chunk-PTHBJDWK.js} +3 -3
- package/dist/{chunk-OGG5ELXF.js → chunk-QLZXFKGO.js} +4 -4
- package/dist/{chunk-FLQL6ZIG.js → chunk-QN4ABLRK.js} +1 -1
- package/dist/{chunk-OPEZVPF7.js → chunk-R4LXONKC.js} +3 -3
- package/dist/{chunk-EHS3HEB6.js → chunk-RGSQHTO4.js} +3 -3
- package/dist/{chunk-H4G26OZC.js → chunk-RY5QFTXJ.js} +19 -8
- package/dist/{chunk-U6EACUUG.js → chunk-RYSGOWHG.js} +16 -3
- package/dist/{chunk-54PQNYA7.js → chunk-S7YLAN2P.js} +2 -2
- package/dist/{chunk-PYK6GCCU.js → chunk-SIVZITLG.js} +5 -5
- package/dist/{chunk-BEJJJZXF.js → chunk-SR6SXYM4.js} +3 -3
- package/dist/{chunk-4MN4BBKZ.js → chunk-SWUPSLNV.js} +7 -7
- package/dist/{chunk-2SBNZ4EC.js → chunk-T3MVV6LG.js} +1 -1
- package/dist/{chunk-IEVARJ6G.js → chunk-UD6I7QJJ.js} +2 -2
- package/dist/{chunk-RGKJ5J72.js → chunk-UT4SX57J.js} +4 -4
- package/dist/{chunk-N3SO5VCM.js → chunk-UVKPDGLM.js} +7 -7
- package/dist/{chunk-YCBVYTFI.js → chunk-V227E7UX.js} +1 -1
- package/dist/{chunk-DEZSNJSE.js → chunk-W72X24TZ.js} +1 -1
- package/dist/{chunk-2W5C47AE.js → chunk-WGLYAMVK.js} +1 -1
- package/dist/{chunk-K373UCEV.js → chunk-WSZZKMXF.js} +1 -1
- package/dist/{chunk-TWGSXBZM.js → chunk-WTKCAALP.js} +3 -3
- package/dist/{chunk-NOLS2G2W.js → chunk-WWTZLRPH.js} +8 -0
- package/dist/{chunk-ZZ4WIQRF.js → chunk-WZ5YJJMP.js} +12 -9
- package/dist/{chunk-UZSMDU4U.js → chunk-X2B7ILTH.js} +2 -2
- package/dist/{chunk-A64EXQUL.js → chunk-XKM7KCUJ.js} +37 -34
- package/dist/{chunk-RKV3UQCG.js → chunk-YVRJDMDL.js} +9 -9
- package/dist/{chunk-XSGWMQJF.js → chunk-ZKJGZQ63.js} +3 -3
- package/dist/{claude-launcher-CPSCSL6U.js → claude-launcher-KQHWKYRL.js} +6 -6
- package/dist/{cli-4M74XOWW.js → cli-BM7CAJFW.js} +161 -144
- package/dist/{command-RY76GIQG.js → command-ZIVI5DQK.js} +48 -48
- package/dist/{config-23EBIGW4.js → config-W4OY2JNP.js} +11 -11
- package/dist/{connect-cmd-GEBIOBQQ.js → connect-cmd-2O2GGNAY.js} +10 -10
- package/dist/{container-start-SUBTHQME.js → container-start-CRUUG57V.js} +46 -46
- package/dist/{context-cleanup-I7FLIV5A.js → context-cleanup-2SPOGEZR.js} +3 -3
- package/dist/{context-show-cmd-CSPMSRHX.js → context-show-cmd-LAK6CYZT.js} +11 -11
- package/dist/{control-plane-launch-KC7NUNYQ.js → control-plane-launch-N7FFBGPD.js} +13 -13
- package/dist/{demo-record-cmd-ZW6U2LAV.js → demo-record-cmd-335YZIXU.js} +7 -7
- package/dist/{demo-voice-cmd-IDW3QX3E.js → demo-voice-cmd-LVODULO2.js} +18 -18
- package/dist/{docker-2VHMWLNK.js → docker-WDMFRVOX.js} +9 -9
- package/dist/{doctor-GEG64FBO.js → doctor-3HKOYZTJ.js} +48 -48
- package/dist/{emit-artifact-cmd-2ZHPNLPG.js → emit-artifact-cmd-MLIPSYXP.js} +17 -17
- package/dist/{emit-cmd-UN7HGZC5.js → emit-cmd-S64A2LJ2.js} +6 -6
- package/dist/{emit-criteria-cmd-TUXGD7CW.js → emit-criteria-cmd-JYG5LJEQ.js} +13 -13
- package/dist/{emit-demo-cmd-4YMYB556.js → emit-demo-cmd-LKB4OHJD.js} +18 -18
- package/dist/{emit-finding-cmd-O2NN22XF.js → emit-finding-cmd-YNLZSJEC.js} +13 -13
- package/dist/{emit-result-cmd-VRITADX2.js → emit-result-cmd-EYEFXWVS.js} +16 -16
- package/dist/{emit-step-cmd-LGNBZTWJ.js → emit-step-cmd-YF5CGZ2H.js} +13 -13
- package/dist/{exec-client-NXTXAVHI.js → exec-client-T7XWSBJ3.js} +7 -7
- package/dist/find-unit-X5LYKUQX.js +24 -0
- package/dist/{findings-cmd-RJD7KTSW.js → findings-cmd-KBV2GQXJ.js} +13 -13
- package/dist/{fleet-readiness-RIO2SWC7.js → fleet-readiness-JG3YAKT7.js} +12 -12
- package/dist/{governing-source-IR3KUGQF.js → governing-source-VCD5NPMW.js} +18 -18
- package/dist/{guest-init-FLSL5RI7.js → guest-init-SG5RDE4K.js} +8 -8
- package/dist/{hook-fast-HYRZAY5K.js → hook-fast-QLCXXFMZ.js} +2 -2
- package/dist/{hook-install-CSHKOLWT.js → hook-install-TZZNJB4P.js} +3 -3
- package/dist/{hook-wrap-fast-ITUBSHEF.js → hook-wrap-fast-HNY3OGLN.js} +2 -2
- package/dist/host-checks-LQTHW3DN.js +79 -0
- package/dist/{host-key-CPAEQSNU.js → host-key-UEHE5JSK.js} +7 -7
- package/dist/{image-tag-MAMFM4SO.js → image-tag-77FWBIYC.js} +7 -7
- package/dist/index.js +6 -6
- package/dist/{init-G34M5Y4W.js → init-O33TLGUI.js} +44 -44
- package/dist/init-UFQQUI4Z.js +79 -0
- package/dist/{init-cmd-GDT27DWD.js → init-cmd-GCHZK7YQ.js} +26 -26
- package/dist/{init-update-TQH2Q7IZ.js → init-update-ZSTDH75N.js} +21 -21
- package/dist/{install-cmd-PVQ5M5NM.js → install-cmd-BRURSBEH.js} +9 -9
- package/dist/{layout-2DF7ON2F.js → layout-YSNLYG6U.js} +3 -3
- package/dist/{logs-BM644OOJ.js → logs-TRW3A55Z.js} +6 -6
- package/dist/loop-QHQTM25C.js +90 -0
- package/dist/machine-VFZAHR6N.js +79 -0
- package/dist/{machine-skills-O7XAZYLN.js → machine-skills-WOAIOXAQ.js} +3 -3
- package/dist/{mcp-install-cmd-METCXTTR.js → mcp-install-cmd-NFMA6PSL.js} +3 -3
- package/dist/{mcp-serve-cmd-CTKBLSM6.js → mcp-serve-cmd-JVLROUUU.js} +8 -8
- package/dist/{paths-VIBBLJ2W.js → paths-AOUMCMP3.js} +6 -6
- package/dist/pending-JOEXUNDC.js +18 -0
- package/dist/{pidfile-PAX5XHQJ.js → pidfile-5LPBPEGE.js} +7 -7
- package/dist/{record-QPXOUL6F.js → record-4RLFKQMG.js} +7 -7
- package/dist/{relay-KASDMV3R.js → relay-IYJ7JJLG.js} +4 -4
- package/dist/{relay-protocol-7HSCZC5H.js → relay-protocol-MPZHNZYJ.js} +4 -4
- package/dist/{runner-agents-WUMCXVS2.js → runner-agents-MWBL6LA7.js} +3 -3
- package/dist/{runner-env-R2C5LYCX.js → runner-env-YTX4BAXF.js} +13 -13
- package/dist/{runner-identity-UDPLWT7I.js → runner-identity-4LMITADJ.js} +9 -9
- package/dist/{runner-key-Z2IQ5TS7.js → runner-key-QTQRIW4N.js} +44 -44
- package/dist/{session-sender-4QKSVX5Z.js → session-sender-YAM3GNFD.js} +17 -17
- package/dist/{spec-cmd-TON4PYGQ.js → spec-cmd-VE4XIZ6Z.js} +14 -14
- package/dist/{starter-pack-LAPDUG6E.js → starter-pack-NAR72DKB.js} +4 -4
- package/dist/{state-OTWJW4O7.js → state-GBESQ6UB.js} +7 -7
- package/dist/{status-ROMTDMFO.js → status-SNQVVDRU.js} +44 -44
- package/dist/{statusline-fast-7V7U4SI4.js → statusline-fast-5G2CTPSX.js} +2 -2
- package/dist/{sync-cmd-FLNYVXAE.js → sync-cmd-BXV3EVTU.js} +16 -16
- package/dist/update-steps-ZR4RQB7J.js +80 -0
- package/dist/{watch-4V7FZI5R.js → watch-FKHHEV3X.js} +16 -16
- package/dist/{work-claim-cmd-5EYXVPKH.js → work-claim-cmd-IVG4A3IZ.js} +20 -20
- package/dist/{work-cmd-RUOTA5K7.js → work-cmd-HSMQMQDL.js} +13 -13
- package/dist/{work-comment-cmd-7UM3O3EL.js → work-comment-cmd-OHGGZASQ.js} +15 -15
- package/dist/{work-demo-cmd-K4NRR2AK.js → work-demo-cmd-TMMHK72J.js} +13 -13
- package/dist/{work-logs-cmd-QW7PNI6V.js → work-logs-cmd-GQCUPUKG.js} +13 -13
- package/dist/{work-open-pr-cmd-Y6MTWQG5.js → work-open-pr-cmd-XVXOXNIL.js} +14 -14
- package/dist/{work-pr-cmd-WUIMC7XB.js → work-pr-cmd-E75ZUOAD.js} +13 -13
- package/dist/{work-proofs-cmd-5LMTROA6.js → work-proofs-cmd-LDMQ37OH.js} +15 -15
- package/dist/{work-proofs-record-3JGUT2F5.js → work-proofs-record-VJG27HMI.js} +22 -22
- package/dist/{work-stop-cmd-R5F5VRUM.js → work-stop-cmd-JSFV7AL2.js} +13 -13
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-amend/SKILL.md +1 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +2 -1
- package/dist/caller-WSMJJSFL.js +0 -23
- package/dist/find-unit-RYYTX2O5.js +0 -24
- package/dist/host-checks-OB45XC67.js +0 -79
- package/dist/init-HHD2NNWY.js +0 -79
- package/dist/loop-6MSKJN52.js +0 -90
- package/dist/machine-LGD4UVCI.js +0 -79
- package/dist/pending-RXJKH4AC.js +0 -18
- package/dist/update-steps-A5OSPYAS.js +0 -80
|
@@ -1,45 +1,45 @@
|
|
|
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-K52TGQLV.js';
|
|
4
|
+
import './chunk-OM3XGJBY.js';
|
|
5
|
+
import { verifiedTrackerNames, TRACKERS } from './chunk-RY5QFTXJ.js';
|
|
6
|
+
import './chunk-NE2A2ZIY.js';
|
|
7
|
+
import './chunk-X2B7ILTH.js';
|
|
8
|
+
import './chunk-SIVZITLG.js';
|
|
9
|
+
import './chunk-T3MVV6LG.js';
|
|
10
|
+
import './chunk-I5EZW66W.js';
|
|
11
|
+
import './chunk-S7YLAN2P.js';
|
|
12
|
+
import './chunk-4S564XTG.js';
|
|
13
13
|
import './chunk-F3T5QJ24.js';
|
|
14
|
-
import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-
|
|
14
|
+
import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-7HRNYPL3.js';
|
|
15
15
|
import './chunk-A6RI6KTI.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-IM4VUDKW.js';
|
|
19
|
+
import './chunk-NFYXRAEV.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-DIL7U77P.js';
|
|
22
|
+
import './chunk-63KUYXOH.js';
|
|
23
|
+
import './chunk-22JLORO6.js';
|
|
24
|
+
import './chunk-HBYFB3LK.js';
|
|
25
|
+
import { hookFiredMarkerPath, installedCliDistDir } from './chunk-5HMIMWRD.js';
|
|
26
26
|
import './chunk-545P7JY7.js';
|
|
27
27
|
import './chunk-OV4XTV5M.js';
|
|
28
28
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
29
|
-
import './chunk-
|
|
29
|
+
import './chunk-7TPLWWFN.js';
|
|
30
30
|
import './chunk-BKO6JEZI.js';
|
|
31
|
-
import './chunk-
|
|
31
|
+
import './chunk-RYSGOWHG.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-INT54Z2T.js';
|
|
36
36
|
import { cliForInstall, SettingsParseError, PORTABLE_BIN, writeSettingsText, cliBinResolvable } from './chunk-ZHQC43NH.js';
|
|
37
|
-
import './chunk-
|
|
37
|
+
import './chunk-W72X24TZ.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, legacyAgent } from './chunk-
|
|
42
|
-
import './chunk-
|
|
40
|
+
import { credentialAgent, credentialForms, credentialShapes } from './chunk-CFHM562L.js';
|
|
41
|
+
import { defaultAgents, knownTargetsLine, legacyAgent } from './chunk-E6ESLX5E.js';
|
|
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';
|
|
@@ -3659,19 +3659,20 @@ 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-NAR72DKB.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-YSNLYG6U.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);
|
|
3673
3673
|
return { result, output: formatStarterPackOutput(result) };
|
|
3674
3674
|
}
|
|
3675
|
+
var RUNNER_GUIDE_URL = "https://docs.outerlayer.ai/run-work-on-your-machines#choose-how-to-run-the-runner";
|
|
3675
3676
|
function formatInitOutput(result, opts = {}) {
|
|
3676
3677
|
const lines = [];
|
|
3677
3678
|
if (result.removed) {
|
|
@@ -3759,9 +3760,9 @@ cannot be disabled.
|
|
|
3759
3760
|
);
|
|
3760
3761
|
lines.push(
|
|
3761
3762
|
(opts.next === false ? "\n" : `
|
|
3762
|
-
Next:
|
|
3763
|
-
${C.yellow}
|
|
3764
|
-
|
|
3763
|
+
Next: every build runs on a runner. Start one for this factory:
|
|
3764
|
+
${C.yellow}${RUNNER_GUIDE_URL}${C.reset}
|
|
3765
|
+
Then add an issue on the Work page and choose Build.
|
|
3765
3766
|
|
|
3766
3767
|
`) + (opts.connected ? "This repository is connected to a factory, so launched sessions sync\nautomatically in the background after each agent turn and at the end\nof the session, at most once every five minutes.\n" : `Once you have run ${cliInvocation()} login and ${cliInvocation()} init in this repository,
|
|
3767
3768
|
launched sessions sync automatically in the background after each agent
|
|
@@ -3808,7 +3809,7 @@ ${starter.output}`),
|
|
|
3808
3809
|
}
|
|
3809
3810
|
}
|
|
3810
3811
|
async function installMachineSkillsForSetup() {
|
|
3811
|
-
const { setupMachineSkills } = await import('./machine-skills-
|
|
3812
|
+
const { setupMachineSkills } = await import('./machine-skills-WOAIOXAQ.js');
|
|
3812
3813
|
const result = setupMachineSkills(homeFromEnv());
|
|
3813
3814
|
for (const failure of result.failures) process.stderr.write(`${C.yellow}!${C.reset} Could not write a maintained skill: ${failure}
|
|
3814
3815
|
`);
|
|
@@ -3816,7 +3817,7 @@ async function installMachineSkillsForSetup() {
|
|
|
3816
3817
|
` : "";
|
|
3817
3818
|
}
|
|
3818
3819
|
async function realConnectDepsForCwd() {
|
|
3819
|
-
const { realConnectDeps } = await import('./connect-cmd-
|
|
3820
|
+
const { realConnectDeps } = await import('./connect-cmd-2O2GGNAY.js');
|
|
3820
3821
|
const { resolveRepoIdentity } = await import('./dist-LOBYZWOU.js');
|
|
3821
3822
|
return {
|
|
3822
3823
|
...realConnectDeps(),
|
|
@@ -3834,7 +3835,7 @@ function buildProgram(argv = process.argv) {
|
|
|
3834
3835
|
const program2 = new Command();
|
|
3835
3836
|
program2.name(cliInvocation()).description("OuterLayer \u2014 see what your coding agents actually do").enablePositionalOptions().version(resolveVersion()).hook("preAction", async (_root, command) => {
|
|
3836
3837
|
if (command.opts().apiKey !== void 0) warnDeprecated(API_KEY_FLAG_DEPRECATION);
|
|
3837
|
-
const { machineRefreshSkipped, refreshMachineSkills } = await import('./machine-skills-
|
|
3838
|
+
const { machineRefreshSkipped, refreshMachineSkills } = await import('./machine-skills-WOAIOXAQ.js');
|
|
3838
3839
|
const names = [];
|
|
3839
3840
|
for (let at = command; at?.parent; at = at.parent) names.push(at.name());
|
|
3840
3841
|
if (!machineRefreshSkipped(names, command._hidden === true, argv)) refreshMachineSkills(homeFromEnv());
|
|
@@ -3891,8 +3892,8 @@ build, ../outerlayer-build/SKILL.md becomes ~/.agents/skills/outerlayer-build/SK
|
|
|
3891
3892
|
what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocation() + " doctor` reports the same\nstates under Starter files.\n"
|
|
3892
3893
|
).action(async (opts) => {
|
|
3893
3894
|
if (opts.update || opts.dryRun) {
|
|
3894
|
-
const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-
|
|
3895
|
-
const { fleetReadiness } = await import('./fleet-readiness-
|
|
3895
|
+
const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-ZSTDH75N.js');
|
|
3896
|
+
const { fleetReadiness } = await import('./fleet-readiness-JG3YAKT7.js');
|
|
3896
3897
|
const problem = updateFlagProblem(opts);
|
|
3897
3898
|
if (problem !== void 0) {
|
|
3898
3899
|
fail(problem);
|
|
@@ -3909,7 +3910,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3909
3910
|
}
|
|
3910
3911
|
let starterTemplate;
|
|
3911
3912
|
if (opts.template !== void 0) {
|
|
3912
|
-
const { assertKnownTemplate, StarterPackError } = await import('./starter-pack-
|
|
3913
|
+
const { assertKnownTemplate, StarterPackError } = await import('./starter-pack-NAR72DKB.js');
|
|
3913
3914
|
try {
|
|
3914
3915
|
assertKnownTemplate(opts.template);
|
|
3915
3916
|
} catch (err) {
|
|
@@ -3943,13 +3944,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3943
3944
|
if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
|
|
3944
3945
|
`);
|
|
3945
3946
|
}
|
|
3946
|
-
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-GCHZK7YQ.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
|
|
3947
3948
|
if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
|
|
3948
3949
|
else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
|
|
3949
3950
|
return;
|
|
3950
3951
|
}
|
|
3951
3952
|
await installMachineSkillsForSetup();
|
|
3952
|
-
const { runInitCommand } = await import('./init-cmd-
|
|
3953
|
+
const { runInitCommand } = await import('./init-cmd-GCHZK7YQ.js');
|
|
3953
3954
|
const code = await runInitCommand(
|
|
3954
3955
|
{ json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
|
|
3955
3956
|
{
|
|
@@ -3961,7 +3962,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3961
3962
|
return { ok, text, detail };
|
|
3962
3963
|
},
|
|
3963
3964
|
runAgentSetup: async () => {
|
|
3964
|
-
const { runAgentSetup } = await import('./agent-setup-
|
|
3965
|
+
const { runAgentSetup } = await import('./agent-setup-WV4Y2HGG.js');
|
|
3965
3966
|
return runAgentSetup({ cwd: process.cwd(), skillsLink: opts.skillsLink !== false });
|
|
3966
3967
|
},
|
|
3967
3968
|
runDoctorChecks: gatherDoctorChecks,
|
|
@@ -3970,7 +3971,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3970
3971
|
shellPath: process.env.SHELL,
|
|
3971
3972
|
interactive: Boolean(process.stdin.isTTY && process.stderr.isTTY) && opts.json !== true,
|
|
3972
3973
|
ask: async () => {
|
|
3973
|
-
const { promptOnTerminal } = await import('./connect-cmd-
|
|
3974
|
+
const { promptOnTerminal } = await import('./connect-cmd-2O2GGNAY.js');
|
|
3974
3975
|
const answer = await promptOnTerminal({
|
|
3975
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.`,
|
|
3976
3977
|
options: [
|
|
@@ -4009,7 +4010,7 @@ linked (true, false, or null when it could not be checked) and, when false,
|
|
|
4009
4010
|
linkUrl.
|
|
4010
4011
|
`
|
|
4011
4012
|
).action(async (opts) => {
|
|
4012
|
-
const { runConnectCommand } = await import('./connect-cmd-
|
|
4013
|
+
const { runConnectCommand } = await import('./connect-cmd-2O2GGNAY.js');
|
|
4013
4014
|
const code = await runConnectCommand({ factory: opts.factory, json: opts.json }, await realConnectDepsForCwd(), {
|
|
4014
4015
|
stdout: process.stdout,
|
|
4015
4016
|
stderr: process.stderr
|
|
@@ -4087,7 +4088,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4087
4088
|
else fail(found.reason);
|
|
4088
4089
|
return;
|
|
4089
4090
|
}
|
|
4090
|
-
const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-
|
|
4091
|
+
const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-BXV3EVTU.js');
|
|
4091
4092
|
try {
|
|
4092
4093
|
const result = await runSync({
|
|
4093
4094
|
url: opts.url,
|
|
@@ -4116,7 +4117,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4116
4117
|
if (invokedCommandToken(argv) === "watch") {
|
|
4117
4118
|
warnDeprecated(`\`${cliInvocation()} watch\` is now \`${cliInvocation()} daemon\`; the old name will be removed in a future release.`);
|
|
4118
4119
|
}
|
|
4119
|
-
const { runWatch } = await import('./watch-
|
|
4120
|
+
const { runWatch } = await import('./watch-FKHHEV3X.js');
|
|
4120
4121
|
await runWatch({ once: opts.once });
|
|
4121
4122
|
});
|
|
4122
4123
|
program2.command("hook <event>", { hidden: true }).description("capture-hook fast path, installed by `init`").action(() => {
|
|
@@ -4131,8 +4132,8 @@ code is 1: revoke the token on /profile/security.
|
|
|
4131
4132
|
});
|
|
4132
4133
|
}
|
|
4133
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) => {
|
|
4134
|
-
const { startRelay, startSessionRelay } = await import('./relay-
|
|
4135
|
-
const { TARGET_TUNNEL, targetOfPath } = await import('./relay-protocol-
|
|
4135
|
+
const { startRelay, startSessionRelay } = await import('./relay-IYJ7JJLG.js');
|
|
4136
|
+
const { TARGET_TUNNEL, targetOfPath } = await import('./relay-protocol-MPZHNZYJ.js');
|
|
4136
4137
|
const port = Number(opts.port);
|
|
4137
4138
|
if (!Number.isInteger(port) || port < 1 || port > 65535) {
|
|
4138
4139
|
fail(opts.port === void 0 ? "--port is required" : `--port must be a port number, not ${opts.port}`);
|
|
@@ -4164,7 +4165,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4164
4165
|
await startRelay({ port, socketPath: opts.socket, forwards: forwards.map((forward) => ({ port: forward.port, socketPath: forward.spec })) });
|
|
4165
4166
|
});
|
|
4166
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) => {
|
|
4167
|
-
const { joinRelay } = await import('./relay-
|
|
4168
|
+
const { joinRelay } = await import('./relay-IYJ7JJLG.js');
|
|
4168
4169
|
try {
|
|
4169
4170
|
await joinRelay({ socketPath: opts.socket, input: process.stdin, output: process.stdout });
|
|
4170
4171
|
} catch (err) {
|
|
@@ -4180,7 +4181,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4180
4181
|
}
|
|
4181
4182
|
});
|
|
4182
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) => {
|
|
4183
|
-
const { runVmExec } = await import('./exec-client-
|
|
4184
|
+
const { runVmExec } = await import('./exec-client-T7XWSBJ3.js');
|
|
4184
4185
|
const env = {};
|
|
4185
4186
|
for (const entry of opts.env) {
|
|
4186
4187
|
const eq = entry.indexOf("=");
|
|
@@ -4209,7 +4210,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4209
4210
|
process.exitCode = await runBuildCommand({ dir: opts.dir, argv: command });
|
|
4210
4211
|
});
|
|
4211
4212
|
program2.command("session-sender", { hidden: true }).description("stream a runner build's sessions to its work item while the build runs").action(async () => {
|
|
4212
|
-
const { runSessionSender } = await import('./session-sender-
|
|
4213
|
+
const { runSessionSender } = await import('./session-sender-YAM3GNFD.js');
|
|
4213
4214
|
try {
|
|
4214
4215
|
await runSessionSender();
|
|
4215
4216
|
} catch (err) {
|
|
@@ -4217,7 +4218,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4217
4218
|
}
|
|
4218
4219
|
});
|
|
4219
4220
|
program2.command("vm-init", { hidden: true }).description("lay out a microVM build's guest; the guest helper runs it").action(async () => {
|
|
4220
|
-
const { realGuestHost, runGuestInit } = await import('./guest-init-
|
|
4221
|
+
const { realGuestHost, runGuestInit } = await import('./guest-init-SG5RDE4K.js');
|
|
4221
4222
|
const { readFileSync: readFileSync3 } = await import('fs');
|
|
4222
4223
|
try {
|
|
4223
4224
|
runGuestInit(realGuestHost(), readFileSync3("/proc/cmdline", "utf8"));
|
|
@@ -4226,7 +4227,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4226
4227
|
}
|
|
4227
4228
|
});
|
|
4228
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) => {
|
|
4229
|
-
const { startBridgeForward } = await import('./bridge-
|
|
4230
|
+
const { startBridgeForward } = await import('./bridge-NFSJ4IBQ.js');
|
|
4230
4231
|
try {
|
|
4231
4232
|
await startBridgeForward(opts);
|
|
4232
4233
|
} catch (err) {
|
|
@@ -4252,7 +4253,7 @@ async function runCli(processArgv) {
|
|
|
4252
4253
|
await buildProgram(argv).parseAsync(argv);
|
|
4253
4254
|
}
|
|
4254
4255
|
async function compileContext(opts) {
|
|
4255
|
-
const { runEmit, EmitError } = await import('./emit-cmd-
|
|
4256
|
+
const { runEmit, EmitError } = await import('./emit-cmd-S64A2LJ2.js');
|
|
4256
4257
|
try {
|
|
4257
4258
|
const result = runEmit({ cwd: opts.dir, check: opts.check, json: opts.json });
|
|
4258
4259
|
if (result.exitCode !== 0) process.exitCode = result.exitCode;
|
|
@@ -4305,7 +4306,7 @@ Compiling .outerlayer/ moved to \`${cliInvocation()} context emit\`.
|
|
|
4305
4306
|
await compileContext({ dir: opts.dir, check: opts.check, json: opts.json });
|
|
4306
4307
|
return;
|
|
4307
4308
|
}
|
|
4308
|
-
const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-
|
|
4309
|
+
const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-EYEFXWVS.js');
|
|
4309
4310
|
try {
|
|
4310
4311
|
const result = await runEmitResult({
|
|
4311
4312
|
name,
|
|
@@ -4356,7 +4357,7 @@ everywhere, bytes and deep link untouched; a still-queued one is cancelled
|
|
|
4356
4357
|
locally so it never uploads. One correction can retire several duplicates.
|
|
4357
4358
|
`
|
|
4358
4359
|
).action(async (file, opts) => {
|
|
4359
|
-
const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-
|
|
4360
|
+
const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-MLIPSYXP.js');
|
|
4360
4361
|
let pr;
|
|
4361
4362
|
if (opts.pr !== void 0) {
|
|
4362
4363
|
pr = parseTrackerNumber(opts.pr);
|
|
@@ -4412,7 +4413,7 @@ its criterion, and the new record retires the old record. The id must be the ite
|
|
|
4412
4413
|
as \`work demo --item <n> --json\` prints it.
|
|
4413
4414
|
`
|
|
4414
4415
|
).action(async (manifest, opts) => {
|
|
4415
|
-
const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-
|
|
4416
|
+
const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-LKB4OHJD.js');
|
|
4416
4417
|
let item;
|
|
4417
4418
|
if (opts.item !== void 0) {
|
|
4418
4419
|
item = parseTrackerNumber(opts.item);
|
|
@@ -4455,7 +4456,7 @@ as \`work demo --item <n> --json\` prints it.
|
|
|
4455
4456
|
}
|
|
4456
4457
|
});
|
|
4457
4458
|
program2.command("demo-voice", { hidden: true }).description("Speak demo lines for a recorder: JSON lines in on stdin, out on stdout").action(async () => {
|
|
4458
|
-
const { runDemoVoice } = await import('./demo-voice-cmd-
|
|
4459
|
+
const { runDemoVoice } = await import('./demo-voice-cmd-LVODULO2.js');
|
|
4459
4460
|
await runDemoVoice();
|
|
4460
4461
|
});
|
|
4461
4462
|
const demoCmd = program2.command("demo").description("Record demos with the recorder this CLI carries");
|
|
@@ -4473,7 +4474,7 @@ and the command prints the manifest's path for \`emit demo\`. Under \`work proof
|
|
|
4473
4474
|
to OUTERLAYER_PROOF_OUT instead. Exit 1 means the demo's test failed; its manifest is written all the same.
|
|
4474
4475
|
`
|
|
4475
4476
|
).action(async (file, opts) => {
|
|
4476
|
-
const { runDemoRecord, DemoRecordError } = await import('./demo-record-cmd-
|
|
4477
|
+
const { runDemoRecord, DemoRecordError } = await import('./demo-record-cmd-335YZIXU.js');
|
|
4477
4478
|
try {
|
|
4478
4479
|
const result = await runDemoRecord({
|
|
4479
4480
|
file,
|
|
@@ -4522,7 +4523,7 @@ recent events with their ids. --find <text> searches all of them.
|
|
|
4522
4523
|
item that session was launched for is used automatically.
|
|
4523
4524
|
`
|
|
4524
4525
|
).action(async (opts) => {
|
|
4525
|
-
const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-
|
|
4526
|
+
const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-YNLZSJEC.js');
|
|
4526
4527
|
try {
|
|
4527
4528
|
refuseRemovedFindingFlags(opts);
|
|
4528
4529
|
const result = await runEmitFinding({
|
|
@@ -4589,7 +4590,7 @@ the whole batch. "untimed": true records one with no time on purpose.
|
|
|
4589
4590
|
that session was launched for is used automatically.
|
|
4590
4591
|
`
|
|
4591
4592
|
).action(async (file, opts) => {
|
|
4592
|
-
const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-
|
|
4593
|
+
const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-YNLZSJEC.js');
|
|
4593
4594
|
try {
|
|
4594
4595
|
const result = await runEmitFindings({
|
|
4595
4596
|
file,
|
|
@@ -4624,7 +4625,7 @@ command, the command exits 0, and \`sync\` sends it later. If the gateway refuse
|
|
|
4624
4625
|
the step, the command prints why and exits 1.
|
|
4625
4626
|
`
|
|
4626
4627
|
).action(async (name, opts) => {
|
|
4627
|
-
const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-
|
|
4628
|
+
const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-YF5CGZ2H.js');
|
|
4628
4629
|
try {
|
|
4629
4630
|
await runEmitStep({
|
|
4630
4631
|
name,
|
|
@@ -4667,7 +4668,7 @@ of the item, and a (proof: <kind>) annotation names its proof.
|
|
|
4667
4668
|
${cliInvocation()} emit criteria acceptance/412-login.md --item 412
|
|
4668
4669
|
`
|
|
4669
4670
|
).action(async (file, opts) => {
|
|
4670
|
-
const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-
|
|
4671
|
+
const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-JYG5LJEQ.js');
|
|
4671
4672
|
try {
|
|
4672
4673
|
const result = await runEmitCriteria({
|
|
4673
4674
|
file,
|
|
@@ -4691,9 +4692,9 @@ function registerSpecCommands(program2) {
|
|
|
4691
4692
|
const specCmd = program2.command("spec").description("Find, file and edit the issue a spec lives in, in your factory's tracker");
|
|
4692
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)");
|
|
4693
4694
|
const run = async (action) => {
|
|
4694
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4695
|
+
const { WorkCommandError } = await import('./work-cmd-HSMQMQDL.js');
|
|
4695
4696
|
try {
|
|
4696
|
-
await action(await import('./spec-cmd-
|
|
4697
|
+
await action(await import('./spec-cmd-VE4XIZ6Z.js'));
|
|
4697
4698
|
} catch (err) {
|
|
4698
4699
|
if (err instanceof WorkCommandError) {
|
|
4699
4700
|
fail(err.message);
|
|
@@ -4728,7 +4729,7 @@ Prints each problem the item covers with its id, its reports and its result.
|
|
|
4728
4729
|
session was launched for is used.
|
|
4729
4730
|
`
|
|
4730
4731
|
).action(async (opts) => {
|
|
4731
|
-
const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-
|
|
4732
|
+
const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-KBV2GQXJ.js');
|
|
4732
4733
|
try {
|
|
4733
4734
|
const result = await runFindingsShow({
|
|
4734
4735
|
item: opts.item,
|
|
@@ -4756,7 +4757,7 @@ Give exactly one of --fixed and --not-fixed, and a --note. Run it again for the
|
|
|
4756
4757
|
problem to replace the earlier result. A problem the item does not cover is refused.
|
|
4757
4758
|
`
|
|
4758
4759
|
).action(async (problem, opts) => {
|
|
4759
|
-
const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-
|
|
4760
|
+
const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-KBV2GQXJ.js');
|
|
4760
4761
|
try {
|
|
4761
4762
|
const result = await runFindingsResult({
|
|
4762
4763
|
problem,
|
|
@@ -4779,13 +4780,14 @@ problem to replace the earlier result. A problem the item does not cover is refu
|
|
|
4779
4780
|
}
|
|
4780
4781
|
});
|
|
4781
4782
|
const workCmd = program2.command("work").description("Start, remove, or read what the factory is working on (the Work page)");
|
|
4782
|
-
workCmd.command("build").description("Start work on an item: a host builds it, or with --local you do").option("--issue <number>", "issue number, or a Linear/Jira key like ENG-123 (adds it to Work first)").option(TRACKER_OPTION_FLAG, "tracker for a keyed --issue \u2014 required if more than one is connected").option("--item <number>", "the item's own number inside this factory \u2014 must already exist").option("--local", "you build it in a session you start; no host takes it").option("--repo <owner/name>", "repository \u2014 the checkout's remote for a number, never guessed for a key").option("--note <text>", "a short note for people to read; the agent never sees it").option("--instructions <text>", "text the build's agent receives, up to 2000 characters; not with --local").option("--runner <kind>", "kind of runner that takes the build: managed or self-hosted; not with --local").option("--session-id <id>", "session id to record as-is, skipping detection").option("--retry <count>", "retries after a gateway answer worth trying again").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(
|
|
4783
|
+
workCmd.command("build").description("Start work on an item: a host builds it, or with --local you do").option("--issue <number>", "issue number, or a Linear/Jira key like ENG-123 (adds it to Work first)").option(TRACKER_OPTION_FLAG, "tracker for a keyed --issue \u2014 required if more than one is connected").option("--item <number>", "the item's own number inside this factory \u2014 must already exist").option("--local", "you build it in a session you start; no host takes it").option("--repo <owner/name>", "repository \u2014 the checkout's remote for a number, never guessed for a key").option("--note <text>", "a short note for people to read; the agent never sees it").option("--instructions <text>", "text the build's agent receives, up to 2000 characters; not with --local").option("--runner <kind>", "kind of runner that takes the build: managed or self-hosted; not with --local").option("--fresh", "start from a fresh disk, not the item's kept disk; not with --local").option("--session-id <id>", "session id to record as-is, skipping detection").option("--retry <count>", "retries after a gateway answer worth trying again").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(
|
|
4783
4784
|
"after",
|
|
4784
4785
|
`
|
|
4785
4786
|
${cliInvocation()} work build --issue 42 # a host builds it
|
|
4786
4787
|
${cliInvocation()} work build --item 7 # retry an item already on Work
|
|
4787
4788
|
${cliInvocation()} work build --issue 42 --instructions "skip the docs" # the agent reads this
|
|
4788
4789
|
${cliInvocation()} work build --issue 42 --runner managed # a managed runner builds it
|
|
4790
|
+
${cliInvocation()} work build --item 7 --fresh # no kept disk is restored
|
|
4789
4791
|
${cliInvocation()} work build --issue 42 --local # you build it
|
|
4790
4792
|
${cliInvocation()} work build --issue ENG-123 --tracker linear # a Linear issue
|
|
4791
4793
|
|
|
@@ -4798,7 +4800,7 @@ takes it, and prints the line that starts your session on it. That
|
|
|
4798
4800
|
session links itself and holds the item's lease while it works.
|
|
4799
4801
|
`
|
|
4800
4802
|
).action(async (opts) => {
|
|
4801
|
-
const { runWorkBuild, WorkCommandError } = await import('./work-cmd-
|
|
4803
|
+
const { runWorkBuild, WorkCommandError } = await import('./work-cmd-HSMQMQDL.js');
|
|
4802
4804
|
try {
|
|
4803
4805
|
await runWorkBuild(opts);
|
|
4804
4806
|
} catch (err) {
|
|
@@ -4821,7 +4823,7 @@ renews that session's own 20-minute lease, unless --no-lease or
|
|
|
4821
4823
|
--ended is given, or another worker already holds a live one.
|
|
4822
4824
|
`
|
|
4823
4825
|
).action(async (number, opts) => {
|
|
4824
|
-
const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-
|
|
4826
|
+
const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-HSMQMQDL.js');
|
|
4825
4827
|
try {
|
|
4826
4828
|
await runWorkLinkSession({ ...opts, number, noLease: opts.lease === false, logFailures: opts.logFailures === true });
|
|
4827
4829
|
} catch (err) {
|
|
@@ -4852,8 +4854,8 @@ thread at its source. It takes a plain answer: no --criterion and no
|
|
|
4852
4854
|
action flag.
|
|
4853
4855
|
`
|
|
4854
4856
|
).action(async (opts) => {
|
|
4855
|
-
const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-
|
|
4856
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4857
|
+
const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-OHGGZASQ.js');
|
|
4858
|
+
const { WorkCommandError } = await import('./work-cmd-HSMQMQDL.js');
|
|
4857
4859
|
try {
|
|
4858
4860
|
await runWorkComment(opts);
|
|
4859
4861
|
} catch (err) {
|
|
@@ -4875,7 +4877,7 @@ nothing and exits 0 when the call fails: the line goes to hook-errors.log,
|
|
|
4875
4877
|
and the comment waits for the next agent job.
|
|
4876
4878
|
`
|
|
4877
4879
|
).action(async (ids, opts) => {
|
|
4878
|
-
const { runWorkCommentsRead } = await import('./work-comment-cmd-
|
|
4880
|
+
const { runWorkCommentsRead } = await import('./work-comment-cmd-OHGGZASQ.js');
|
|
4879
4881
|
await runWorkCommentsRead({ ...opts, commentIds: ids });
|
|
4880
4882
|
});
|
|
4881
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(
|
|
@@ -4891,8 +4893,8 @@ that started outside OuterLayer, such as the line comments of a
|
|
|
4891
4893
|
GitHub review, each with its id, source and comments.
|
|
4892
4894
|
`
|
|
4893
4895
|
).action(async (opts) => {
|
|
4894
|
-
const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-
|
|
4895
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4896
|
+
const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-OHGGZASQ.js');
|
|
4897
|
+
const { WorkCommandError } = await import('./work-cmd-HSMQMQDL.js');
|
|
4896
4898
|
try {
|
|
4897
4899
|
await runWorkThreads(opts);
|
|
4898
4900
|
} catch (err) {
|
|
@@ -4916,8 +4918,8 @@ still running, or that an older runner released, has no log and the
|
|
|
4916
4918
|
command exits 1.
|
|
4917
4919
|
`
|
|
4918
4920
|
).action(async (opts) => {
|
|
4919
|
-
const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-
|
|
4920
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4921
|
+
const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-GQCUPUKG.js');
|
|
4922
|
+
const { WorkCommandError } = await import('./work-cmd-HSMQMQDL.js');
|
|
4921
4923
|
try {
|
|
4922
4924
|
await runWorkLogs(opts);
|
|
4923
4925
|
} catch (err) {
|
|
@@ -4940,8 +4942,8 @@ item is not built again until a new build request. Exits 1 when no host
|
|
|
4940
4942
|
build is running for the item.
|
|
4941
4943
|
`
|
|
4942
4944
|
).action(async (opts) => {
|
|
4943
|
-
const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-
|
|
4944
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4945
|
+
const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-JSFV7AL2.js');
|
|
4946
|
+
const { WorkCommandError } = await import('./work-cmd-HSMQMQDL.js');
|
|
4945
4947
|
try {
|
|
4946
4948
|
await runWorkStop(opts);
|
|
4947
4949
|
} catch (err) {
|
|
@@ -4962,8 +4964,8 @@ Prints the item's newest live demo record: its artifact id, the commit it was re
|
|
|
4962
4964
|
test file that recorded it. With --json, prints { "demo": null } for an item with no demo.
|
|
4963
4965
|
`
|
|
4964
4966
|
).action(async (opts) => {
|
|
4965
|
-
const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-
|
|
4966
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4967
|
+
const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-TMMHK72J.js');
|
|
4968
|
+
const { WorkCommandError } = await import('./work-cmd-HSMQMQDL.js');
|
|
4967
4969
|
try {
|
|
4968
4970
|
await runWorkDemo(opts);
|
|
4969
4971
|
} catch (err) {
|
|
@@ -4984,7 +4986,7 @@ deletes anything \u2014 the item is removed from Work only once no
|
|
|
4984
4986
|
live addition remains on it.
|
|
4985
4987
|
`
|
|
4986
4988
|
).action(async (opts) => {
|
|
4987
|
-
const { runWorkRemove, WorkCommandError } = await import('./work-cmd-
|
|
4989
|
+
const { runWorkRemove, WorkCommandError } = await import('./work-cmd-HSMQMQDL.js');
|
|
4988
4990
|
try {
|
|
4989
4991
|
await runWorkRemove(opts);
|
|
4990
4992
|
} catch (err) {
|
|
@@ -4996,7 +4998,7 @@ live addition remains on it.
|
|
|
4996
4998
|
}
|
|
4997
4999
|
});
|
|
4998
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) => {
|
|
4999
|
-
const { runWorkStatus, WorkCommandError } = await import('./work-cmd-
|
|
5001
|
+
const { runWorkStatus, WorkCommandError } = await import('./work-cmd-HSMQMQDL.js');
|
|
5000
5002
|
try {
|
|
5001
5003
|
await runWorkStatus(opts);
|
|
5002
5004
|
} catch (err) {
|
|
@@ -5041,11 +5043,11 @@ differs from HEAD.
|
|
|
5041
5043
|
fail(trackerNumberError("--pr", opts.pr));
|
|
5042
5044
|
return;
|
|
5043
5045
|
}
|
|
5044
|
-
const { runWorkProofsCommand } = await import('./work-proofs-cmd-
|
|
5046
|
+
const { runWorkProofsCommand } = await import('./work-proofs-cmd-LDMQ37OH.js');
|
|
5045
5047
|
await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
|
|
5046
5048
|
});
|
|
5047
5049
|
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) => {
|
|
5048
|
-
const { runWorkList, WorkCommandError } = await import('./work-cmd-
|
|
5050
|
+
const { runWorkList, WorkCommandError } = await import('./work-cmd-HSMQMQDL.js');
|
|
5049
5051
|
try {
|
|
5050
5052
|
await runWorkList(opts);
|
|
5051
5053
|
} catch (err) {
|
|
@@ -5066,7 +5068,7 @@ by a different key is refused; claiming again with the same key extends
|
|
|
5066
5068
|
it. --host is a label only.
|
|
5067
5069
|
`
|
|
5068
5070
|
).action(async (opts) => {
|
|
5069
|
-
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-
|
|
5071
|
+
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-IVG4A3IZ.js');
|
|
5070
5072
|
try {
|
|
5071
5073
|
await runWorkClaim(opts);
|
|
5072
5074
|
} catch (err) {
|
|
@@ -5086,7 +5088,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
|
|
|
5086
5088
|
lease has expired, or a 403 if a different key holds it.
|
|
5087
5089
|
`
|
|
5088
5090
|
).action(async (opts) => {
|
|
5089
|
-
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-
|
|
5091
|
+
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-IVG4A3IZ.js');
|
|
5090
5092
|
try {
|
|
5091
5093
|
await runWorkRenew(opts);
|
|
5092
5094
|
} catch (err) {
|
|
@@ -5118,7 +5120,7 @@ applies to a host's lease only. A later tool call in the session
|
|
|
5118
5120
|
takes the lease again.
|
|
5119
5121
|
`
|
|
5120
5122
|
).action(async (opts) => {
|
|
5121
|
-
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-
|
|
5123
|
+
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-IVG4A3IZ.js');
|
|
5122
5124
|
try {
|
|
5123
5125
|
await runWorkRelease(opts);
|
|
5124
5126
|
} catch (err) {
|
|
@@ -5145,7 +5147,7 @@ Idempotent: declaring the same pull request twice is a no-op.
|
|
|
5145
5147
|
needs your own login; an agent session or a factory key is refused.
|
|
5146
5148
|
`
|
|
5147
5149
|
).action(async (number, opts) => {
|
|
5148
|
-
const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-
|
|
5150
|
+
const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-E75ZUOAD.js');
|
|
5149
5151
|
try {
|
|
5150
5152
|
await runWorkPr({ ...opts, number });
|
|
5151
5153
|
} catch (err) {
|
|
@@ -5170,8 +5172,8 @@ login, then declares the pull request on the item, as \`work pr\` does.
|
|
|
5170
5172
|
Run it again after a change to the title or description.
|
|
5171
5173
|
`
|
|
5172
5174
|
).action(async (opts) => {
|
|
5173
|
-
const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-
|
|
5174
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
5175
|
+
const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-XVXOXNIL.js');
|
|
5176
|
+
const { WorkCommandError } = await import('./work-cmd-HSMQMQDL.js');
|
|
5175
5177
|
try {
|
|
5176
5178
|
await runWorkOpenPr(opts);
|
|
5177
5179
|
} catch (err) {
|
|
@@ -5203,9 +5205,9 @@ function registerRunnerCommands(program2) {
|
|
|
5203
5205
|
const runnerCmd = program2.command("runner").description("Take work from the implement and amend queues on this machine");
|
|
5204
5206
|
const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
|
|
5205
5207
|
runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
|
|
5206
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5207
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5208
|
-
const { RunnerAlreadyRunningError } = await import('./pidfile-
|
|
5208
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-W4OY2JNP.js');
|
|
5209
|
+
const { start, RunnerStartError } = await import('./loop-QHQTM25C.js');
|
|
5210
|
+
const { RunnerAlreadyRunningError } = await import('./pidfile-5LPBPEGE.js');
|
|
5209
5211
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5210
5212
|
try {
|
|
5211
5213
|
const { realUpdateDeps } = await import('./real-deps-QX5YH7FG.js');
|
|
@@ -5227,10 +5229,10 @@ is optional and defaults to ${words().runnerName}. On a later start it refuses v
|
|
|
5227
5229
|
The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
5228
5230
|
`
|
|
5229
5231
|
).action(async () => {
|
|
5230
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5231
|
-
const { containerStart, containerStartExit } = await import('./container-start-
|
|
5232
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5233
|
-
const { RunnerAlreadyRunningError } = await import('./pidfile-
|
|
5232
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-W4OY2JNP.js');
|
|
5233
|
+
const { containerStart, containerStartExit } = await import('./container-start-CRUUG57V.js');
|
|
5234
|
+
const { start, RunnerStartError } = await import('./loop-QHQTM25C.js');
|
|
5235
|
+
const { RunnerAlreadyRunningError } = await import('./pidfile-5LPBPEGE.js');
|
|
5234
5236
|
try {
|
|
5235
5237
|
const outcome = containerStartExit(await containerStart({
|
|
5236
5238
|
env: process.env,
|
|
@@ -5251,16 +5253,16 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5251
5253
|
"after",
|
|
5252
5254
|
"\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"
|
|
5253
5255
|
).action(async (opts) => {
|
|
5254
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5255
|
-
const { runnerDir } = await import('./paths-
|
|
5256
|
-
const { runUpdateSteps } = await import('./update-steps-
|
|
5256
|
+
const { defaultRunnerConfigPath } = await import('./config-W4OY2JNP.js');
|
|
5257
|
+
const { runnerDir } = await import('./paths-AOUMCMP3.js');
|
|
5258
|
+
const { runUpdateSteps } = await import('./update-steps-ZR4RQB7J.js');
|
|
5257
5259
|
const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
|
|
5258
5260
|
process.stdout.write(`${text}
|
|
5259
5261
|
`);
|
|
5260
5262
|
});
|
|
5261
5263
|
runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
|
|
5262
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5263
|
-
const { runRunnerCheck } = await import('./check-
|
|
5264
|
+
const { defaultRunnerConfigPath } = await import('./config-W4OY2JNP.js');
|
|
5265
|
+
const { runRunnerCheck } = await import('./check-4T4FDFLZ.js');
|
|
5264
5266
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5265
5267
|
const result = await runRunnerCheck(configPath);
|
|
5266
5268
|
if (!result.ok) {
|
|
@@ -5281,8 +5283,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5281
5283
|
`);
|
|
5282
5284
|
});
|
|
5283
5285
|
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) => {
|
|
5284
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5285
|
-
const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-
|
|
5286
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-W4OY2JNP.js');
|
|
5287
|
+
const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-BRURSBEH.js');
|
|
5286
5288
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5287
5289
|
if (opts.service !== true) {
|
|
5288
5290
|
const names = { print: "print", user: "user", unitName: "unit-name", buildMemoryMax: "build-memory-max", buildCpusMax: "build-cpus-max" };
|
|
@@ -5294,13 +5296,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5294
5296
|
}
|
|
5295
5297
|
}
|
|
5296
5298
|
const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
|
|
5297
|
-
if (buildCpusMax !== void 0 && !(await import('./command-
|
|
5299
|
+
if (buildCpusMax !== void 0 && !(await import('./command-ZIVI5DQK.js')).cpusAreValid(buildCpusMax)) {
|
|
5298
5300
|
fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
|
|
5299
5301
|
return;
|
|
5300
5302
|
}
|
|
5301
5303
|
try {
|
|
5302
5304
|
if (opts.service === true) {
|
|
5303
|
-
const { installServiceCommand } = await import('./command-
|
|
5305
|
+
const { installServiceCommand } = await import('./command-ZIVI5DQK.js');
|
|
5304
5306
|
const result2 = await installServiceCommand({
|
|
5305
5307
|
configPath,
|
|
5306
5308
|
print: opts.print,
|
|
@@ -5357,8 +5359,8 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
|
|
|
5357
5359
|
fail(`pass --service: \`${cliInvocation()} runner uninstall --service\` removes the runner's service.`);
|
|
5358
5360
|
return;
|
|
5359
5361
|
}
|
|
5360
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5361
|
-
const { uninstallServiceCommand } = await import('./command-
|
|
5362
|
+
const { defaultRunnerConfigPath } = await import('./config-W4OY2JNP.js');
|
|
5363
|
+
const { uninstallServiceCommand } = await import('./command-ZIVI5DQK.js');
|
|
5362
5364
|
const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
|
|
5363
5365
|
if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
|
|
5364
5366
|
`);
|
|
@@ -5385,13 +5387,13 @@ already in ${words().envFile} is used.
|
|
|
5385
5387
|
printf '%s' "$${words().variables[0]}" | ${cliInvocation()} runner init --agent ${words().runnerName} --factory <org>/<factory>
|
|
5386
5388
|
`
|
|
5387
5389
|
).action(async (opts) => {
|
|
5388
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5389
|
-
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-
|
|
5390
|
-
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-
|
|
5391
|
-
const { detectMachine } = await import('./machine-
|
|
5392
|
-
const { chooseVm, runVmInit, VmInitError } = await import('./init-
|
|
5393
|
-
const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-
|
|
5394
|
-
const { headlessNames } = await import('./runner-agents-
|
|
5390
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-W4OY2JNP.js');
|
|
5391
|
+
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-UFQQUI4Z.js');
|
|
5392
|
+
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-QTQRIW4N.js');
|
|
5393
|
+
const { detectMachine } = await import('./machine-VFZAHR6N.js');
|
|
5394
|
+
const { chooseVm, runVmInit, VmInitError } = await import('./init-O33TLGUI.js');
|
|
5395
|
+
const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-YTX4BAXF.js');
|
|
5396
|
+
const { headlessNames } = await import('./runner-agents-MWBL6LA7.js');
|
|
5395
5397
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5396
5398
|
if (opts.agent !== void 0 && !isAgentName(opts.agent)) {
|
|
5397
5399
|
fail(`--agent ${opts.agent}: runner init writes commands for ${headlessNames().join(", ")}. For another agent, leave --agent out and edit runner.commands.`);
|
|
@@ -5422,7 +5424,7 @@ already in ${words().envFile} is used.
|
|
|
5422
5424
|
const chunks = [];
|
|
5423
5425
|
for await (const chunk of process.stdin) chunks.push(Buffer.from(chunk));
|
|
5424
5426
|
const result2 = runRunnerInit(configPath, { machine, configFromStdin: Buffer.concat(chunks).toString("utf8"), requireContainer: true });
|
|
5425
|
-
const { ensureHostKey: ensureHostKey2 } = await import('./host-key-
|
|
5427
|
+
const { ensureHostKey: ensureHostKey2 } = await import('./host-key-UEHE5JSK.js');
|
|
5426
5428
|
const hostKey2 = await ensureHostKey2(configPath);
|
|
5427
5429
|
process.stdout.write(`host key ${hostKey2.fingerprint}
|
|
5428
5430
|
hooks: ${result2.hooks}
|
|
@@ -5477,7 +5479,7 @@ hooks: ${result2.hooks}
|
|
|
5477
5479
|
const prepared = prepareRunnerInit(configPath, { machine, agent, credential, keyFromLogin: makeKey !== void 0 });
|
|
5478
5480
|
const created = makeKey === void 0 ? void 0 : await makeKey();
|
|
5479
5481
|
const result = writeRunnerInit(prepared, created);
|
|
5480
|
-
const { ensureHostKey } = await import('./host-key-
|
|
5482
|
+
const { ensureHostKey } = await import('./host-key-UEHE5JSK.js');
|
|
5481
5483
|
const hostKey = await ensureHostKey(configPath);
|
|
5482
5484
|
if (created !== void 0) {
|
|
5483
5485
|
process.stdout.write(`${C.green}\u2713${C.reset} saved the runner key in ${result.configPath}
|
|
@@ -5497,7 +5499,7 @@ hooks: ${result2.hooks}
|
|
|
5497
5499
|
);
|
|
5498
5500
|
process.stdout.write(`${C.green}\u2713${C.reset} hooks: ${result.hooks}${result.hooks === "builtin:vm" ? " (builds run in microVMs)" : " (builds run in containers)"}
|
|
5499
5501
|
`);
|
|
5500
|
-
const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-
|
|
5502
|
+
const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-BRURSBEH.js');
|
|
5501
5503
|
let installedLayout = false;
|
|
5502
5504
|
let noService = "it starts the runner from the install layout, which needs a CLI installed with npm";
|
|
5503
5505
|
try {
|
|
@@ -5529,7 +5531,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
|
|
|
5529
5531
|
let serviceUp = false;
|
|
5530
5532
|
let restart;
|
|
5531
5533
|
if (installedLayout) {
|
|
5532
|
-
const { installServiceCommand } = await import('./command-
|
|
5534
|
+
const { installServiceCommand } = await import('./command-ZIVI5DQK.js');
|
|
5533
5535
|
const service = await installServiceCommand({
|
|
5534
5536
|
configPath,
|
|
5535
5537
|
entryPath: process.argv[1] ?? "",
|
|
@@ -5581,12 +5583,12 @@ image holds this CLI and a pinned ${words().agent}. Nothing runs inside the imag
|
|
|
5581
5583
|
A repository with no devcontainer file builds on the universal image the CLI pins by digest.
|
|
5582
5584
|
`
|
|
5583
5585
|
).action(async (opts) => {
|
|
5584
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5585
|
-
const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-
|
|
5586
|
+
const { defaultRunnerConfigPath } = await import('./config-W4OY2JNP.js');
|
|
5587
|
+
const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-RGO3EWJD.js');
|
|
5586
5588
|
const { currentCliBuild } = await import('./cli-build-K56DK4DS.js');
|
|
5587
|
-
const { createDockerHost } = await import('./docker-
|
|
5588
|
-
const { builderSpec } = await import('./builder-
|
|
5589
|
-
const { loadRunnerConfig } = await import('./config-
|
|
5589
|
+
const { createDockerHost } = await import('./docker-WDMFRVOX.js');
|
|
5590
|
+
const { builderSpec } = await import('./builder-HT3CV5ZZ.js');
|
|
5591
|
+
const { loadRunnerConfig } = await import('./config-W4OY2JNP.js');
|
|
5590
5592
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5591
5593
|
const loaded = (() => {
|
|
5592
5594
|
try {
|
|
@@ -5597,12 +5599,12 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5597
5599
|
})();
|
|
5598
5600
|
const memory = loaded?.build?.memory ?? "8g";
|
|
5599
5601
|
try {
|
|
5600
|
-
const { ensureRunnerIdentity } = await import('./runner-identity-
|
|
5602
|
+
const { ensureRunnerIdentity } = await import('./runner-identity-4LMITADJ.js');
|
|
5601
5603
|
await ensureRunnerIdentity(configPath, { log: (line) => console.error(line) }).catch((err) => {
|
|
5602
5604
|
console.error(`the runner's Docker identity could not be stored: ${err instanceof Error ? err.message : String(err)}`);
|
|
5603
5605
|
});
|
|
5604
|
-
const { imageTargetFor } = await import('./governing-source-
|
|
5605
|
-
const { runnerCalls } = await import('./caller-
|
|
5606
|
+
const { imageTargetFor } = await import('./governing-source-VCD5NPMW.js');
|
|
5607
|
+
const { runnerCalls } = await import('./caller-D4ZZWA6I.js');
|
|
5606
5608
|
const target = await imageTargetFor({ config: loaded === void 0 || loaded.fleet === true ? void 0 : runnerCalls(loaded), repository: opts.repository, fetchImpl: fetch });
|
|
5607
5609
|
if (!target.ok) {
|
|
5608
5610
|
if (opts.json) {
|
|
@@ -5666,25 +5668,25 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5666
5668
|
}
|
|
5667
5669
|
});
|
|
5668
5670
|
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) => {
|
|
5669
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5670
|
-
const { requestStop } = await import('./loop-
|
|
5671
|
+
const { defaultRunnerConfigPath } = await import('./config-W4OY2JNP.js');
|
|
5672
|
+
const { requestStop } = await import('./loop-QHQTM25C.js');
|
|
5671
5673
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5672
|
-
const { runnerImageVersion } = await import('./image-tag-
|
|
5674
|
+
const { runnerImageVersion } = await import('./image-tag-77FWBIYC.js');
|
|
5673
5675
|
await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
|
|
5674
5676
|
});
|
|
5675
5677
|
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) => {
|
|
5676
|
-
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-
|
|
5677
|
-
const { jobsDir, runnerDir } = await import('./paths-
|
|
5678
|
-
const { listJobFiles, runnerProcessState } = await import('./loop-
|
|
5679
|
-
const { renderStatus } = await import('./status-
|
|
5680
|
-
const { readHousekeepingRecord } = await import('./record-
|
|
5678
|
+
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-W4OY2JNP.js');
|
|
5679
|
+
const { jobsDir, runnerDir } = await import('./paths-AOUMCMP3.js');
|
|
5680
|
+
const { listJobFiles, runnerProcessState } = await import('./loop-QHQTM25C.js');
|
|
5681
|
+
const { renderStatus } = await import('./status-SNQVVDRU.js');
|
|
5682
|
+
const { readHousekeepingRecord } = await import('./record-4RLFKQMG.js');
|
|
5681
5683
|
const path2 = await import('path');
|
|
5682
5684
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5683
5685
|
const all = listJobFiles(configPath);
|
|
5684
5686
|
const housekeeping = readHousekeepingRecord(runnerDir(configPath));
|
|
5685
|
-
const { readPendingUpdate } = await import('./pending-
|
|
5687
|
+
const { readPendingUpdate } = await import('./pending-JOEXUNDC.js');
|
|
5686
5688
|
const pendingUpdate = readPendingUpdate(runnerDir(configPath));
|
|
5687
|
-
const { readImageStatus } = await import('./image-tag-
|
|
5689
|
+
const { readImageStatus } = await import('./image-tag-77FWBIYC.js');
|
|
5688
5690
|
const image = readImageStatus(runnerDir(configPath));
|
|
5689
5691
|
let host = "unknown";
|
|
5690
5692
|
let concurrency = 1;
|
|
@@ -5694,7 +5696,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5694
5696
|
host = config.host;
|
|
5695
5697
|
concurrency = config.concurrency;
|
|
5696
5698
|
if (config.fleet === true) {
|
|
5697
|
-
const { readFleetState } = await import('./state-
|
|
5699
|
+
const { readFleetState } = await import('./state-GBESQ6UB.js');
|
|
5698
5700
|
fleet = { state: readFleetState(configPath) };
|
|
5699
5701
|
}
|
|
5700
5702
|
} catch {
|
|
@@ -5702,7 +5704,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5702
5704
|
const processState = runnerProcessState(configPath);
|
|
5703
5705
|
const service = await (async () => {
|
|
5704
5706
|
if (process.platform !== "linux" || !existsSync("/run/systemd/system")) return void 0;
|
|
5705
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
5707
|
+
const { inspectRunnerService } = await import('./find-unit-X5LYKUQX.js');
|
|
5706
5708
|
const facts = inspectRunnerService(configPath);
|
|
5707
5709
|
return facts === void 0 ? void 0 : { unit: facts.unit, running: facts.mainPid !== void 0, delegated: facts.delegate };
|
|
5708
5710
|
})();
|
|
@@ -5741,9 +5743,9 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5741
5743
|
);
|
|
5742
5744
|
});
|
|
5743
5745
|
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) => {
|
|
5744
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5745
|
-
const { listJobFiles } = await import('./loop-
|
|
5746
|
-
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-
|
|
5746
|
+
const { defaultRunnerConfigPath } = await import('./config-W4OY2JNP.js');
|
|
5747
|
+
const { listJobFiles } = await import('./loop-QHQTM25C.js');
|
|
5748
|
+
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-TRW3A55Z.js');
|
|
5747
5749
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5748
5750
|
const jobs = listJobFiles(configPath);
|
|
5749
5751
|
const selected = selectAttempt(jobs, itemArg);
|
|
@@ -5964,7 +5966,7 @@ Self-host deployments also need --app-id: without a key service to resolve the
|
|
|
5964
5966
|
caller from the bearer token, the gateway answers 401 without that header.
|
|
5965
5967
|
`
|
|
5966
5968
|
).action(async (opts) => {
|
|
5967
|
-
const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-
|
|
5969
|
+
const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-NFMA6PSL.js');
|
|
5968
5970
|
try {
|
|
5969
5971
|
if (opts.transport !== void 0 && opts.transport !== "stdio" && opts.transport !== "http") {
|
|
5970
5972
|
throw new McpInstallError(`--transport must be "stdio" or "http", got "${opts.transport}"`);
|
|
@@ -5986,7 +5988,7 @@ caller from the bearer token, the gateway answers 401 without that header.
|
|
|
5986
5988
|
"after",
|
|
5987
5989
|
"\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"
|
|
5988
5990
|
).action(async (opts) => {
|
|
5989
|
-
const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-
|
|
5991
|
+
const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-JVLROUUU.js');
|
|
5990
5992
|
try {
|
|
5991
5993
|
await runMcpServe({ url: opts.url, appId: opts.appId });
|
|
5992
5994
|
} catch (err) {
|
|
@@ -6007,7 +6009,7 @@ would get, the instruction files and the names of the skills. It warns when the
|
|
|
6007
6009
|
no \`build\`. It needs the context-read permission: a login or a factory key with it is enough.
|
|
6008
6010
|
`
|
|
6009
6011
|
).action(async (opts) => {
|
|
6010
|
-
const { runContextShow, ContextShowError } = await import('./context-show-cmd-
|
|
6012
|
+
const { runContextShow, ContextShowError } = await import('./context-show-cmd-LAK6CYZT.js');
|
|
6011
6013
|
try {
|
|
6012
6014
|
const result = await runContextShow({ repo: opts.repo, json: opts.json, url: opts.url, apiKey: opts.apiKey, appId: opts.appId });
|
|
6013
6015
|
process.stdout.write(result.output);
|
|
@@ -6021,7 +6023,22 @@ no \`build\`. It needs the context-read permission: a login or a factory key wit
|
|
|
6021
6023
|
});
|
|
6022
6024
|
contextCmd.command("emit").description("Compile .outerlayer/ into each configured target tool's native files").option("--check", "compare against disk, write nothing, exit 1 on drift (CI mode)").option("--dir <path>", "repo root to read from (default: cwd)").option("--json", "machine-readable JSON output").addHelpText(
|
|
6023
6025
|
"after",
|
|
6024
|
-
|
|
6026
|
+
`
|
|
6027
|
+
Targets come from .outerlayer/config.json only; there is no --target flag.
|
|
6028
|
+
Missing or empty config: {"targets": [...]}, e.g. {"targets": ["claude-code"]}.
|
|
6029
|
+
${knownTargetsLine(defaultAgents())}
|
|
6030
|
+
|
|
6031
|
+
The maintained skills (outerlayer-evidence, outerlayer-amend, outerlayer-findings,
|
|
6032
|
+
outerlayer-cli, outerlayer-build) follow this CLI: emit rewrites one that differs from its bundle, and --check
|
|
6033
|
+
reports it as drift. A copy under an earlier name (amend, emitting-evidence,
|
|
6034
|
+
reporting-findings, outerlayer) is deleted, and --check reports it as retired.
|
|
6035
|
+
Templates (spec, writing-specs, writing-tests, build) are never rewritten or reported.
|
|
6036
|
+
|
|
6037
|
+
Orphan detection (--check) only covers header-carrying outputs: every markdown
|
|
6038
|
+
target file gets a generated-by comment, but .mcp.json is JSON with no
|
|
6039
|
+
comment syntax, so it can never be flagged as orphaned; missing
|
|
6040
|
+
and content drift still apply to it.
|
|
6041
|
+
`
|
|
6025
6042
|
).action(async (opts) => {
|
|
6026
6043
|
await compileContext({ dir: opts.dir, check: opts.check, json: opts.json });
|
|
6027
6044
|
});
|