@outerlayer/cli 0.36.0-next.20261103103134 → 0.36.0-next.20261103191900
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-X7AYIYU2.js} +18 -18
- package/dist/{agent-subcommand-WRHH6SRD.js → agent-subcommand-54OWGFVV.js} +3 -3
- package/dist/{bridge-GZSZQGLI.js → bridge-QJNA3KV6.js} +6 -6
- package/dist/{build-UKZ5RPRR.js → build-4R4PUGPT.js} +12 -12
- package/dist/{build-disk-3HOXULLP.js → build-disk-LYHGWH4G.js} +10 -10
- package/dist/build-info.json +1 -1
- package/dist/{builder-QEK4GIRY.js → builder-ER6LUZBQ.js} +9 -9
- package/dist/caller-PCOQRDGJ.js +23 -0
- package/dist/{check-D6NMQ6LP.js → check-27MDV3T5.js} +56 -54
- package/dist/{chunk-6UI4ELNA.js → chunk-2BTDFRRQ.js} +7 -7
- package/dist/{chunk-FLQL6ZIG.js → chunk-2HOSCIV6.js} +1 -1
- package/dist/{chunk-MPVTZLOM.js → chunk-2I654QYW.js} +3 -3
- package/dist/{chunk-PDRWRFB2.js → chunk-45AYMLMT.js} +3 -3
- package/dist/{chunk-K26KMWU4.js → chunk-4HMOBW7H.js} +7 -7
- package/dist/{chunk-R63T46P7.js → chunk-4KYPJE3D.js} +3 -3
- package/dist/{chunk-HR4PJLOO.js → chunk-4YLF777T.js} +1 -1
- package/dist/{chunk-OGG5ELXF.js → chunk-5MN6VZZH.js} +4 -4
- package/dist/{chunk-JMM3L5RG.js → chunk-6HMA3FIE.js} +4 -4
- package/dist/{chunk-NH4EZRBM.js → chunk-6LPBK4XU.js} +6 -6
- package/dist/{chunk-J4NJWTNO.js → chunk-7HDI5CGG.js} +5 -5
- package/dist/{chunk-QVOU2QUR.js → chunk-7HRNYPL3.js} +3 -3
- package/dist/{chunk-2JWLK2TU.js → chunk-7TPLWWFN.js} +1 -1
- package/dist/{chunk-VMPVQE4D.js → chunk-7TZP5JBS.js} +2 -2
- package/dist/{chunk-6J3QWXTA.js → chunk-7V4ZEB2R.js} +4 -4
- package/dist/{chunk-DWYQKLCL.js → chunk-AWY7ORQ2.js} +1 -1
- package/dist/{chunk-WAGHPZP2.js → chunk-AZXFZGHQ.js} +1 -1
- package/dist/{chunk-LDKF6B2R.js → chunk-B5BLIHJZ.js} +3 -3
- package/dist/{chunk-IEVARJ6G.js → chunk-BOUW2CV6.js} +2 -2
- package/dist/{chunk-3XEYA3QF.js → chunk-BQUI64BU.js} +1 -1
- package/dist/{chunk-GWJUEJR4.js → chunk-C4OYAXLQ.js} +7 -7
- package/dist/{chunk-EHS3HEB6.js → chunk-COPXXXNB.js} +3 -3
- package/dist/{chunk-NDCN3R5C.js → chunk-D7TMGSZN.js} +3 -3
- package/dist/{chunk-7UYXSF62.js → chunk-DDOD4YOQ.js} +6 -7
- package/dist/{chunk-KVO4MJWS.js → chunk-DE64NSOH.js} +6 -6
- package/dist/{chunk-ZE2JJQPC.js → chunk-DSZKDLFU.js} +1 -1
- package/dist/{chunk-54ERDQ3O.js → chunk-E6ESLX5E.js} +32 -8
- package/dist/{chunk-KHJPRTOW.js → chunk-EKDQDOSS.js} +1 -1
- package/dist/{chunk-LV4IDDD3.js → chunk-ENWGIREE.js} +5 -5
- package/dist/{chunk-2W5C47AE.js → chunk-FDRQZALU.js} +1 -1
- package/dist/{chunk-K373UCEV.js → chunk-GAPNTRA5.js} +1 -1
- package/dist/{chunk-TWGSXBZM.js → chunk-GNLAORSW.js} +3 -3
- package/dist/{chunk-LISVY7JZ.js → chunk-H5CWIV56.js} +7 -7
- package/dist/{chunk-YEZGNCSK.js → chunk-H6T73OLF.js} +1 -1
- package/dist/{chunk-JD5EVW6Y.js → chunk-I5EZW66W.js} +4 -4
- package/dist/{chunk-U7MLC45I.js → chunk-IADJEW5P.js} +5 -5
- package/dist/{chunk-NQYTUVZR.js → chunk-IM4VUDKW.js} +1 -1
- package/dist/{chunk-BZQ3S24G.js → chunk-INT54Z2T.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-4MN4BBKZ.js → chunk-K3GWZRRK.js} +7 -7
- package/dist/{chunk-ZZ4WIQRF.js → chunk-KJ424QKG.js} +12 -9
- package/dist/{chunk-HO4DPX5N.js → chunk-KQDTORGF.js} +1 -1
- package/dist/{chunk-PYK6GCCU.js → chunk-KRTIYEJI.js} +5 -5
- package/dist/{chunk-52Z7AOZ2.js → chunk-LIJMW36Q.js} +43 -27
- package/dist/{chunk-XW2KXLZB.js → chunk-MLO33RMW.js} +18 -18
- package/dist/{chunk-IEDO26G4.js → chunk-NDIV6GDC.js} +12 -3
- package/dist/{chunk-T5I2H7TJ.js → chunk-NE2A2ZIY.js} +1 -1
- package/dist/{chunk-B5UBTIIP.js → chunk-OHOATH4S.js} +4 -4
- package/dist/{chunk-4MLH5MDB.js → chunk-OM3XGJBY.js} +5 -5
- package/dist/{chunk-XAMTNTOH.js → chunk-PCWNDYQO.js} +9 -9
- package/dist/{chunk-SYKEQT63.js → chunk-PJ5GYGC6.js} +17 -5
- package/dist/{chunk-B5VKRKLJ.js → chunk-PUEIXGZ4.js} +1 -1
- package/dist/{chunk-L3SHPR2M.js → chunk-PYPHE6FZ.js} +1 -1
- package/dist/{chunk-CDTBXABP.js → chunk-QBDQ64QF.js} +2 -2
- package/dist/{chunk-VST3BWL4.js → chunk-QGUOCNQA.js} +11 -10
- package/dist/{chunk-NMMGRG5V.js → chunk-R2DEJ5Q6.js} +4 -4
- package/dist/{chunk-U6EACUUG.js → chunk-RYSGOWHG.js} +16 -3
- package/dist/{chunk-54PQNYA7.js → chunk-S7YLAN2P.js} +2 -2
- package/dist/{chunk-LXXP5HRJ.js → chunk-SRNHGJAV.js} +3 -3
- package/dist/{chunk-2SBNZ4EC.js → chunk-T3MVV6LG.js} +1 -1
- package/dist/{chunk-EUWTGCK5.js → chunk-T4J5VR7B.js} +1 -1
- package/dist/{chunk-OPEZVPF7.js → chunk-UYXX33HA.js} +3 -3
- package/dist/{chunk-P4Q6M6PI.js → chunk-W3ZKWZ6G.js} +1 -1
- package/dist/{chunk-DEZSNJSE.js → chunk-W72X24TZ.js} +1 -1
- package/dist/{chunk-BEJJJZXF.js → chunk-WRNDC7H7.js} +3 -3
- package/dist/{chunk-UZSMDU4U.js → chunk-WVZ6EKJ3.js} +2 -2
- package/dist/{chunk-NOLS2G2W.js → chunk-WWTZLRPH.js} +8 -0
- package/dist/{chunk-42X6CTBI.js → chunk-X7PK7QRY.js} +3 -3
- package/dist/{chunk-YCBVYTFI.js → chunk-XLCAYPLV.js} +1 -1
- package/dist/{chunk-S7YU25AF.js → chunk-Z27IIHHE.js} +32 -31
- package/dist/{claude-launcher-CPSCSL6U.js → claude-launcher-WJ5CVLJR.js} +6 -6
- package/dist/{cli-TZW5XJRE.js → cli-RCLYJFIL.js} +159 -143
- package/dist/{command-5VOKN4HI.js → command-XGIJADGX.js} +48 -48
- package/dist/{config-23EBIGW4.js → config-VHJI645L.js} +11 -11
- package/dist/{connect-cmd-GEBIOBQQ.js → connect-cmd-CQNECBHI.js} +10 -10
- package/dist/{container-start-NJGGT4E3.js → container-start-S5EL4HIH.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-XODQYX7H.js} +11 -11
- package/dist/{control-plane-launch-KC7NUNYQ.js → control-plane-launch-KIJABWN4.js} +13 -13
- package/dist/{demo-record-cmd-ZW6U2LAV.js → demo-record-cmd-QVK4YUIV.js} +7 -7
- package/dist/{demo-voice-cmd-IDW3QX3E.js → demo-voice-cmd-4BOI7UDQ.js} +18 -18
- package/dist/{docker-2VHMWLNK.js → docker-BP7AD65K.js} +9 -9
- package/dist/{doctor-ZAB6SDWF.js → doctor-TZIHEPIW.js} +48 -48
- package/dist/{emit-artifact-cmd-2ZHPNLPG.js → emit-artifact-cmd-EGFKK4KF.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-L2YRIRCQ.js} +13 -13
- package/dist/{emit-demo-cmd-4YMYB556.js → emit-demo-cmd-QHKUH4Y3.js} +18 -18
- package/dist/{emit-finding-cmd-O2NN22XF.js → emit-finding-cmd-DCEGWYY4.js} +13 -13
- package/dist/{emit-result-cmd-VRITADX2.js → emit-result-cmd-WGBZUASN.js} +16 -16
- package/dist/{emit-step-cmd-LGNBZTWJ.js → emit-step-cmd-TFKMQZHD.js} +13 -13
- package/dist/{exec-client-NXTXAVHI.js → exec-client-GW5ZI74B.js} +7 -7
- package/dist/find-unit-L2JIUL4D.js +24 -0
- package/dist/{findings-cmd-RJD7KTSW.js → findings-cmd-QO7OMGM6.js} +13 -13
- package/dist/{fleet-readiness-RIO2SWC7.js → fleet-readiness-ZF4UUANH.js} +12 -12
- package/dist/{governing-source-CZSYE7QE.js → governing-source-JYK3VK23.js} +18 -18
- package/dist/{guest-init-FLSL5RI7.js → guest-init-FPRVOOK5.js} +8 -8
- package/dist/{hook-fast-HYRZAY5K.js → hook-fast-WLRNPF5S.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-FEYDTZKZ.js +79 -0
- package/dist/{host-key-CPAEQSNU.js → host-key-WG4KPVLI.js} +7 -7
- package/dist/{image-tag-MAMFM4SO.js → image-tag-GZW7HJBN.js} +7 -7
- package/dist/index.js +6 -6
- package/dist/init-6FLEEVZY.js +79 -0
- package/dist/{init-G7D7ABKV.js → init-RSKNY7WL.js} +44 -44
- package/dist/{init-cmd-5GHIMFSS.js → init-cmd-UD6QSHH2.js} +26 -26
- package/dist/{init-update-TQH2Q7IZ.js → init-update-N3WBXLGD.js} +21 -21
- package/dist/{install-cmd-PVQ5M5NM.js → install-cmd-GJNKXZN2.js} +9 -9
- package/dist/{layout-2DF7ON2F.js → layout-YSNLYG6U.js} +3 -3
- package/dist/{logs-BM644OOJ.js → logs-IMTZ733E.js} +6 -6
- package/dist/loop-VCH4UOQ4.js +90 -0
- package/dist/machine-ZU7XA2IC.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-27QGBQGR.js} +8 -8
- package/dist/{paths-VIBBLJ2W.js → paths-HV5GP5OV.js} +6 -6
- package/dist/pending-4PZIZNR5.js +18 -0
- package/dist/{pidfile-PAX5XHQJ.js → pidfile-P4DJ2C7S.js} +7 -7
- package/dist/{record-QPXOUL6F.js → record-UOVUKWPV.js} +7 -7
- package/dist/{relay-KASDMV3R.js → relay-JMCC6IJ4.js} +4 -4
- package/dist/{relay-protocol-7HSCZC5H.js → relay-protocol-RR5JOWOO.js} +4 -4
- package/dist/{runner-agents-WUMCXVS2.js → runner-agents-RO4TU5N4.js} +3 -3
- package/dist/{runner-env-R2C5LYCX.js → runner-env-XX2NZOEJ.js} +13 -13
- package/dist/{runner-identity-UDPLWT7I.js → runner-identity-HHW4UKYE.js} +9 -9
- package/dist/{runner-key-JGIDJTHH.js → runner-key-FNNAF36Q.js} +44 -44
- package/dist/{session-sender-4QKSVX5Z.js → session-sender-4FS2GKAY.js} +17 -17
- package/dist/{spec-cmd-QAOTQPI6.js → spec-cmd-AAVXNWTV.js} +14 -14
- package/dist/{starter-pack-LAPDUG6E.js → starter-pack-NAR72DKB.js} +4 -4
- package/dist/{state-OTWJW4O7.js → state-IASJSAJV.js} +7 -7
- package/dist/{status-OKZHXEYB.js → status-FQ5AIDWL.js} +44 -44
- package/dist/{statusline-fast-7V7U4SI4.js → statusline-fast-5G2CTPSX.js} +2 -2
- package/dist/{sync-cmd-FLNYVXAE.js → sync-cmd-K3V4D54W.js} +16 -16
- package/dist/update-steps-TR2A4Z6Q.js +80 -0
- package/dist/{watch-4V7FZI5R.js → watch-SAMIKKQC.js} +16 -16
- package/dist/{work-claim-cmd-E2D4YHCS.js → work-claim-cmd-PBW4QDJH.js} +19 -19
- package/dist/{work-cmd-VD362634.js → work-cmd-L23VUS4H.js} +13 -13
- package/dist/{work-comment-cmd-EUI5IOQI.js → work-comment-cmd-DRBGJAUD.js} +15 -15
- package/dist/{work-demo-cmd-MGL3U6ZF.js → work-demo-cmd-HT72ZB6K.js} +13 -13
- package/dist/{work-logs-cmd-QAJG75DG.js → work-logs-cmd-VSWZHEUJ.js} +13 -13
- package/dist/{work-open-pr-cmd-SXVSMG44.js → work-open-pr-cmd-DOMZJJC3.js} +14 -14
- package/dist/{work-pr-cmd-WUIMC7XB.js → work-pr-cmd-FC3AJ67Y.js} +13 -13
- package/dist/{work-proofs-cmd-AAHTMSCF.js → work-proofs-cmd-NINHCBZW.js} +15 -15
- package/dist/{work-proofs-record-LLUEXW7I.js → work-proofs-record-7XH374TO.js} +22 -22
- package/dist/{work-stop-cmd-RZLGWQJ5.js → work-stop-cmd-J5DXU4BV.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-KLMATCMD.js +0 -79
- package/dist/init-BB2LERCZ.js +0 -79
- package/dist/loop-7MAMONQJ.js +0 -90
- package/dist/machine-HDHSI7WF.js +0 -79
- package/dist/pending-RXJKH4AC.js +0 -18
- package/dist/update-steps-W56ITCKQ.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-MLO33RMW.js';
|
|
4
|
+
import './chunk-OM3XGJBY.js';
|
|
5
|
+
import { verifiedTrackerNames, TRACKERS } from './chunk-DE64NSOH.js';
|
|
6
|
+
import './chunk-NE2A2ZIY.js';
|
|
7
|
+
import './chunk-WVZ6EKJ3.js';
|
|
8
|
+
import './chunk-KRTIYEJI.js';
|
|
9
|
+
import './chunk-T3MVV6LG.js';
|
|
10
|
+
import './chunk-I5EZW66W.js';
|
|
11
|
+
import './chunk-S7YLAN2P.js';
|
|
12
|
+
import './chunk-45AYMLMT.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-4YLF777T.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-EKDQDOSS.js';
|
|
22
|
+
import './chunk-PYPHE6FZ.js';
|
|
23
|
+
import './chunk-B5BLIHJZ.js';
|
|
24
|
+
import './chunk-DDOD4YOQ.js';
|
|
25
|
+
import { hookFiredMarkerPath, installedCliDistDir } from './chunk-PJ5GYGC6.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-NDIV6GDC.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-CQNECBHI.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-N3WBXLGD.js');
|
|
3896
|
+
const { fleetReadiness } = await import('./fleet-readiness-ZF4UUANH.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-UD6QSHH2.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-UD6QSHH2.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-X7AYIYU2.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-CQNECBHI.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-CQNECBHI.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-K3V4D54W.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-SAMIKKQC.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-JMCC6IJ4.js');
|
|
4136
|
+
const { TARGET_TUNNEL, targetOfPath } = await import('./relay-protocol-RR5JOWOO.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-JMCC6IJ4.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-GW5ZI74B.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-4FS2GKAY.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-FPRVOOK5.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-QJNA3KV6.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-WGBZUASN.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-EGFKK4KF.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-QHKUH4Y3.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-4BOI7UDQ.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-QVK4YUIV.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-DCEGWYY4.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-DCEGWYY4.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-TFKMQZHD.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-L2YRIRCQ.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-L23VUS4H.js');
|
|
4695
4696
|
try {
|
|
4696
|
-
await action(await import('./spec-cmd-
|
|
4697
|
+
await action(await import('./spec-cmd-AAVXNWTV.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-QO7OMGM6.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-QO7OMGM6.js');
|
|
4760
4761
|
try {
|
|
4761
4762
|
const result = await runFindingsResult({
|
|
4762
4763
|
problem,
|
|
@@ -4799,7 +4800,7 @@ takes it, and prints the line that starts your session on it. That
|
|
|
4799
4800
|
session links itself and holds the item's lease while it works.
|
|
4800
4801
|
`
|
|
4801
4802
|
).action(async (opts) => {
|
|
4802
|
-
const { runWorkBuild, WorkCommandError } = await import('./work-cmd-
|
|
4803
|
+
const { runWorkBuild, WorkCommandError } = await import('./work-cmd-L23VUS4H.js');
|
|
4803
4804
|
try {
|
|
4804
4805
|
await runWorkBuild(opts);
|
|
4805
4806
|
} catch (err) {
|
|
@@ -4822,7 +4823,7 @@ renews that session's own 20-minute lease, unless --no-lease or
|
|
|
4822
4823
|
--ended is given, or another worker already holds a live one.
|
|
4823
4824
|
`
|
|
4824
4825
|
).action(async (number, opts) => {
|
|
4825
|
-
const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-
|
|
4826
|
+
const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-L23VUS4H.js');
|
|
4826
4827
|
try {
|
|
4827
4828
|
await runWorkLinkSession({ ...opts, number, noLease: opts.lease === false, logFailures: opts.logFailures === true });
|
|
4828
4829
|
} catch (err) {
|
|
@@ -4853,8 +4854,8 @@ thread at its source. It takes a plain answer: no --criterion and no
|
|
|
4853
4854
|
action flag.
|
|
4854
4855
|
`
|
|
4855
4856
|
).action(async (opts) => {
|
|
4856
|
-
const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-
|
|
4857
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4857
|
+
const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-DRBGJAUD.js');
|
|
4858
|
+
const { WorkCommandError } = await import('./work-cmd-L23VUS4H.js');
|
|
4858
4859
|
try {
|
|
4859
4860
|
await runWorkComment(opts);
|
|
4860
4861
|
} catch (err) {
|
|
@@ -4876,7 +4877,7 @@ nothing and exits 0 when the call fails: the line goes to hook-errors.log,
|
|
|
4876
4877
|
and the comment waits for the next agent job.
|
|
4877
4878
|
`
|
|
4878
4879
|
).action(async (ids, opts) => {
|
|
4879
|
-
const { runWorkCommentsRead } = await import('./work-comment-cmd-
|
|
4880
|
+
const { runWorkCommentsRead } = await import('./work-comment-cmd-DRBGJAUD.js');
|
|
4880
4881
|
await runWorkCommentsRead({ ...opts, commentIds: ids });
|
|
4881
4882
|
});
|
|
4882
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(
|
|
@@ -4892,8 +4893,8 @@ that started outside OuterLayer, such as the line comments of a
|
|
|
4892
4893
|
GitHub review, each with its id, source and comments.
|
|
4893
4894
|
`
|
|
4894
4895
|
).action(async (opts) => {
|
|
4895
|
-
const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-
|
|
4896
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4896
|
+
const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-DRBGJAUD.js');
|
|
4897
|
+
const { WorkCommandError } = await import('./work-cmd-L23VUS4H.js');
|
|
4897
4898
|
try {
|
|
4898
4899
|
await runWorkThreads(opts);
|
|
4899
4900
|
} catch (err) {
|
|
@@ -4917,8 +4918,8 @@ still running, or that an older runner released, has no log and the
|
|
|
4917
4918
|
command exits 1.
|
|
4918
4919
|
`
|
|
4919
4920
|
).action(async (opts) => {
|
|
4920
|
-
const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-
|
|
4921
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4921
|
+
const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-VSWZHEUJ.js');
|
|
4922
|
+
const { WorkCommandError } = await import('./work-cmd-L23VUS4H.js');
|
|
4922
4923
|
try {
|
|
4923
4924
|
await runWorkLogs(opts);
|
|
4924
4925
|
} catch (err) {
|
|
@@ -4941,8 +4942,8 @@ item is not built again until a new build request. Exits 1 when no host
|
|
|
4941
4942
|
build is running for the item.
|
|
4942
4943
|
`
|
|
4943
4944
|
).action(async (opts) => {
|
|
4944
|
-
const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-
|
|
4945
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4945
|
+
const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-J5DXU4BV.js');
|
|
4946
|
+
const { WorkCommandError } = await import('./work-cmd-L23VUS4H.js');
|
|
4946
4947
|
try {
|
|
4947
4948
|
await runWorkStop(opts);
|
|
4948
4949
|
} catch (err) {
|
|
@@ -4963,8 +4964,8 @@ Prints the item's newest live demo record: its artifact id, the commit it was re
|
|
|
4963
4964
|
test file that recorded it. With --json, prints { "demo": null } for an item with no demo.
|
|
4964
4965
|
`
|
|
4965
4966
|
).action(async (opts) => {
|
|
4966
|
-
const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-
|
|
4967
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4967
|
+
const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-HT72ZB6K.js');
|
|
4968
|
+
const { WorkCommandError } = await import('./work-cmd-L23VUS4H.js');
|
|
4968
4969
|
try {
|
|
4969
4970
|
await runWorkDemo(opts);
|
|
4970
4971
|
} catch (err) {
|
|
@@ -4985,7 +4986,7 @@ deletes anything \u2014 the item is removed from Work only once no
|
|
|
4985
4986
|
live addition remains on it.
|
|
4986
4987
|
`
|
|
4987
4988
|
).action(async (opts) => {
|
|
4988
|
-
const { runWorkRemove, WorkCommandError } = await import('./work-cmd-
|
|
4989
|
+
const { runWorkRemove, WorkCommandError } = await import('./work-cmd-L23VUS4H.js');
|
|
4989
4990
|
try {
|
|
4990
4991
|
await runWorkRemove(opts);
|
|
4991
4992
|
} catch (err) {
|
|
@@ -4997,7 +4998,7 @@ live addition remains on it.
|
|
|
4997
4998
|
}
|
|
4998
4999
|
});
|
|
4999
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) => {
|
|
5000
|
-
const { runWorkStatus, WorkCommandError } = await import('./work-cmd-
|
|
5001
|
+
const { runWorkStatus, WorkCommandError } = await import('./work-cmd-L23VUS4H.js');
|
|
5001
5002
|
try {
|
|
5002
5003
|
await runWorkStatus(opts);
|
|
5003
5004
|
} catch (err) {
|
|
@@ -5042,11 +5043,11 @@ differs from HEAD.
|
|
|
5042
5043
|
fail(trackerNumberError("--pr", opts.pr));
|
|
5043
5044
|
return;
|
|
5044
5045
|
}
|
|
5045
|
-
const { runWorkProofsCommand } = await import('./work-proofs-cmd-
|
|
5046
|
+
const { runWorkProofsCommand } = await import('./work-proofs-cmd-NINHCBZW.js');
|
|
5046
5047
|
await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
|
|
5047
5048
|
});
|
|
5048
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) => {
|
|
5049
|
-
const { runWorkList, WorkCommandError } = await import('./work-cmd-
|
|
5050
|
+
const { runWorkList, WorkCommandError } = await import('./work-cmd-L23VUS4H.js');
|
|
5050
5051
|
try {
|
|
5051
5052
|
await runWorkList(opts);
|
|
5052
5053
|
} catch (err) {
|
|
@@ -5067,7 +5068,7 @@ by a different key is refused; claiming again with the same key extends
|
|
|
5067
5068
|
it. --host is a label only.
|
|
5068
5069
|
`
|
|
5069
5070
|
).action(async (opts) => {
|
|
5070
|
-
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-
|
|
5071
|
+
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-PBW4QDJH.js');
|
|
5071
5072
|
try {
|
|
5072
5073
|
await runWorkClaim(opts);
|
|
5073
5074
|
} catch (err) {
|
|
@@ -5087,7 +5088,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
|
|
|
5087
5088
|
lease has expired, or a 403 if a different key holds it.
|
|
5088
5089
|
`
|
|
5089
5090
|
).action(async (opts) => {
|
|
5090
|
-
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-
|
|
5091
|
+
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-PBW4QDJH.js');
|
|
5091
5092
|
try {
|
|
5092
5093
|
await runWorkRenew(opts);
|
|
5093
5094
|
} catch (err) {
|
|
@@ -5119,7 +5120,7 @@ applies to a host's lease only. A later tool call in the session
|
|
|
5119
5120
|
takes the lease again.
|
|
5120
5121
|
`
|
|
5121
5122
|
).action(async (opts) => {
|
|
5122
|
-
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-
|
|
5123
|
+
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-PBW4QDJH.js');
|
|
5123
5124
|
try {
|
|
5124
5125
|
await runWorkRelease(opts);
|
|
5125
5126
|
} catch (err) {
|
|
@@ -5146,7 +5147,7 @@ Idempotent: declaring the same pull request twice is a no-op.
|
|
|
5146
5147
|
needs your own login; an agent session or a factory key is refused.
|
|
5147
5148
|
`
|
|
5148
5149
|
).action(async (number, opts) => {
|
|
5149
|
-
const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-
|
|
5150
|
+
const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-FC3AJ67Y.js');
|
|
5150
5151
|
try {
|
|
5151
5152
|
await runWorkPr({ ...opts, number });
|
|
5152
5153
|
} catch (err) {
|
|
@@ -5171,8 +5172,8 @@ login, then declares the pull request on the item, as \`work pr\` does.
|
|
|
5171
5172
|
Run it again after a change to the title or description.
|
|
5172
5173
|
`
|
|
5173
5174
|
).action(async (opts) => {
|
|
5174
|
-
const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-
|
|
5175
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
5175
|
+
const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-DOMZJJC3.js');
|
|
5176
|
+
const { WorkCommandError } = await import('./work-cmd-L23VUS4H.js');
|
|
5176
5177
|
try {
|
|
5177
5178
|
await runWorkOpenPr(opts);
|
|
5178
5179
|
} catch (err) {
|
|
@@ -5204,9 +5205,9 @@ function registerRunnerCommands(program2) {
|
|
|
5204
5205
|
const runnerCmd = program2.command("runner").description("Take work from the implement and amend queues on this machine");
|
|
5205
5206
|
const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
|
|
5206
5207
|
runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
|
|
5207
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5208
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5209
|
-
const { RunnerAlreadyRunningError } = await import('./pidfile-
|
|
5208
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-VHJI645L.js');
|
|
5209
|
+
const { start, RunnerStartError } = await import('./loop-VCH4UOQ4.js');
|
|
5210
|
+
const { RunnerAlreadyRunningError } = await import('./pidfile-P4DJ2C7S.js');
|
|
5210
5211
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5211
5212
|
try {
|
|
5212
5213
|
const { realUpdateDeps } = await import('./real-deps-QX5YH7FG.js');
|
|
@@ -5228,10 +5229,10 @@ is optional and defaults to ${words().runnerName}. On a later start it refuses v
|
|
|
5228
5229
|
The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
5229
5230
|
`
|
|
5230
5231
|
).action(async () => {
|
|
5231
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5232
|
-
const { containerStart, containerStartExit } = await import('./container-start-
|
|
5233
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5234
|
-
const { RunnerAlreadyRunningError } = await import('./pidfile-
|
|
5232
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-VHJI645L.js');
|
|
5233
|
+
const { containerStart, containerStartExit } = await import('./container-start-S5EL4HIH.js');
|
|
5234
|
+
const { start, RunnerStartError } = await import('./loop-VCH4UOQ4.js');
|
|
5235
|
+
const { RunnerAlreadyRunningError } = await import('./pidfile-P4DJ2C7S.js');
|
|
5235
5236
|
try {
|
|
5236
5237
|
const outcome = containerStartExit(await containerStart({
|
|
5237
5238
|
env: process.env,
|
|
@@ -5252,16 +5253,16 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5252
5253
|
"after",
|
|
5253
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"
|
|
5254
5255
|
).action(async (opts) => {
|
|
5255
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5256
|
-
const { runnerDir } = await import('./paths-
|
|
5257
|
-
const { runUpdateSteps } = await import('./update-steps-
|
|
5256
|
+
const { defaultRunnerConfigPath } = await import('./config-VHJI645L.js');
|
|
5257
|
+
const { runnerDir } = await import('./paths-HV5GP5OV.js');
|
|
5258
|
+
const { runUpdateSteps } = await import('./update-steps-TR2A4Z6Q.js');
|
|
5258
5259
|
const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
|
|
5259
5260
|
process.stdout.write(`${text}
|
|
5260
5261
|
`);
|
|
5261
5262
|
});
|
|
5262
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) => {
|
|
5263
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5264
|
-
const { runRunnerCheck } = await import('./check-
|
|
5264
|
+
const { defaultRunnerConfigPath } = await import('./config-VHJI645L.js');
|
|
5265
|
+
const { runRunnerCheck } = await import('./check-27MDV3T5.js');
|
|
5265
5266
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5266
5267
|
const result = await runRunnerCheck(configPath);
|
|
5267
5268
|
if (!result.ok) {
|
|
@@ -5282,8 +5283,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5282
5283
|
`);
|
|
5283
5284
|
});
|
|
5284
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) => {
|
|
5285
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5286
|
-
const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-
|
|
5286
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-VHJI645L.js');
|
|
5287
|
+
const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-GJNKXZN2.js');
|
|
5287
5288
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5288
5289
|
if (opts.service !== true) {
|
|
5289
5290
|
const names = { print: "print", user: "user", unitName: "unit-name", buildMemoryMax: "build-memory-max", buildCpusMax: "build-cpus-max" };
|
|
@@ -5295,13 +5296,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5295
5296
|
}
|
|
5296
5297
|
}
|
|
5297
5298
|
const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
|
|
5298
|
-
if (buildCpusMax !== void 0 && !(await import('./command-
|
|
5299
|
+
if (buildCpusMax !== void 0 && !(await import('./command-XGIJADGX.js')).cpusAreValid(buildCpusMax)) {
|
|
5299
5300
|
fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
|
|
5300
5301
|
return;
|
|
5301
5302
|
}
|
|
5302
5303
|
try {
|
|
5303
5304
|
if (opts.service === true) {
|
|
5304
|
-
const { installServiceCommand } = await import('./command-
|
|
5305
|
+
const { installServiceCommand } = await import('./command-XGIJADGX.js');
|
|
5305
5306
|
const result2 = await installServiceCommand({
|
|
5306
5307
|
configPath,
|
|
5307
5308
|
print: opts.print,
|
|
@@ -5358,8 +5359,8 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
|
|
|
5358
5359
|
fail(`pass --service: \`${cliInvocation()} runner uninstall --service\` removes the runner's service.`);
|
|
5359
5360
|
return;
|
|
5360
5361
|
}
|
|
5361
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5362
|
-
const { uninstallServiceCommand } = await import('./command-
|
|
5362
|
+
const { defaultRunnerConfigPath } = await import('./config-VHJI645L.js');
|
|
5363
|
+
const { uninstallServiceCommand } = await import('./command-XGIJADGX.js');
|
|
5363
5364
|
const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
|
|
5364
5365
|
if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
|
|
5365
5366
|
`);
|
|
@@ -5386,13 +5387,13 @@ already in ${words().envFile} is used.
|
|
|
5386
5387
|
printf '%s' "$${words().variables[0]}" | ${cliInvocation()} runner init --agent ${words().runnerName} --factory <org>/<factory>
|
|
5387
5388
|
`
|
|
5388
5389
|
).action(async (opts) => {
|
|
5389
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5390
|
-
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-
|
|
5391
|
-
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-
|
|
5392
|
-
const { detectMachine } = await import('./machine-
|
|
5393
|
-
const { chooseVm, runVmInit, VmInitError } = await import('./init-
|
|
5394
|
-
const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-
|
|
5395
|
-
const { headlessNames } = await import('./runner-agents-
|
|
5390
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-VHJI645L.js');
|
|
5391
|
+
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-6FLEEVZY.js');
|
|
5392
|
+
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-FNNAF36Q.js');
|
|
5393
|
+
const { detectMachine } = await import('./machine-ZU7XA2IC.js');
|
|
5394
|
+
const { chooseVm, runVmInit, VmInitError } = await import('./init-RSKNY7WL.js');
|
|
5395
|
+
const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-XX2NZOEJ.js');
|
|
5396
|
+
const { headlessNames } = await import('./runner-agents-RO4TU5N4.js');
|
|
5396
5397
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5397
5398
|
if (opts.agent !== void 0 && !isAgentName(opts.agent)) {
|
|
5398
5399
|
fail(`--agent ${opts.agent}: runner init writes commands for ${headlessNames().join(", ")}. For another agent, leave --agent out and edit runner.commands.`);
|
|
@@ -5423,7 +5424,7 @@ already in ${words().envFile} is used.
|
|
|
5423
5424
|
const chunks = [];
|
|
5424
5425
|
for await (const chunk of process.stdin) chunks.push(Buffer.from(chunk));
|
|
5425
5426
|
const result2 = runRunnerInit(configPath, { machine, configFromStdin: Buffer.concat(chunks).toString("utf8"), requireContainer: true });
|
|
5426
|
-
const { ensureHostKey: ensureHostKey2 } = await import('./host-key-
|
|
5427
|
+
const { ensureHostKey: ensureHostKey2 } = await import('./host-key-WG4KPVLI.js');
|
|
5427
5428
|
const hostKey2 = await ensureHostKey2(configPath);
|
|
5428
5429
|
process.stdout.write(`host key ${hostKey2.fingerprint}
|
|
5429
5430
|
hooks: ${result2.hooks}
|
|
@@ -5478,7 +5479,7 @@ hooks: ${result2.hooks}
|
|
|
5478
5479
|
const prepared = prepareRunnerInit(configPath, { machine, agent, credential, keyFromLogin: makeKey !== void 0 });
|
|
5479
5480
|
const created = makeKey === void 0 ? void 0 : await makeKey();
|
|
5480
5481
|
const result = writeRunnerInit(prepared, created);
|
|
5481
|
-
const { ensureHostKey } = await import('./host-key-
|
|
5482
|
+
const { ensureHostKey } = await import('./host-key-WG4KPVLI.js');
|
|
5482
5483
|
const hostKey = await ensureHostKey(configPath);
|
|
5483
5484
|
if (created !== void 0) {
|
|
5484
5485
|
process.stdout.write(`${C.green}\u2713${C.reset} saved the runner key in ${result.configPath}
|
|
@@ -5498,7 +5499,7 @@ hooks: ${result2.hooks}
|
|
|
5498
5499
|
);
|
|
5499
5500
|
process.stdout.write(`${C.green}\u2713${C.reset} hooks: ${result.hooks}${result.hooks === "builtin:vm" ? " (builds run in microVMs)" : " (builds run in containers)"}
|
|
5500
5501
|
`);
|
|
5501
|
-
const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-
|
|
5502
|
+
const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-GJNKXZN2.js');
|
|
5502
5503
|
let installedLayout = false;
|
|
5503
5504
|
let noService = "it starts the runner from the install layout, which needs a CLI installed with npm";
|
|
5504
5505
|
try {
|
|
@@ -5530,7 +5531,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
|
|
|
5530
5531
|
let serviceUp = false;
|
|
5531
5532
|
let restart;
|
|
5532
5533
|
if (installedLayout) {
|
|
5533
|
-
const { installServiceCommand } = await import('./command-
|
|
5534
|
+
const { installServiceCommand } = await import('./command-XGIJADGX.js');
|
|
5534
5535
|
const service = await installServiceCommand({
|
|
5535
5536
|
configPath,
|
|
5536
5537
|
entryPath: process.argv[1] ?? "",
|
|
@@ -5582,12 +5583,12 @@ image holds this CLI and a pinned ${words().agent}. Nothing runs inside the imag
|
|
|
5582
5583
|
A repository with no devcontainer file builds on the universal image the CLI pins by digest.
|
|
5583
5584
|
`
|
|
5584
5585
|
).action(async (opts) => {
|
|
5585
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5586
|
-
const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-
|
|
5586
|
+
const { defaultRunnerConfigPath } = await import('./config-VHJI645L.js');
|
|
5587
|
+
const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-4R4PUGPT.js');
|
|
5587
5588
|
const { currentCliBuild } = await import('./cli-build-K56DK4DS.js');
|
|
5588
|
-
const { createDockerHost } = await import('./docker-
|
|
5589
|
-
const { builderSpec } = await import('./builder-
|
|
5590
|
-
const { loadRunnerConfig } = await import('./config-
|
|
5589
|
+
const { createDockerHost } = await import('./docker-BP7AD65K.js');
|
|
5590
|
+
const { builderSpec } = await import('./builder-ER6LUZBQ.js');
|
|
5591
|
+
const { loadRunnerConfig } = await import('./config-VHJI645L.js');
|
|
5591
5592
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5592
5593
|
const loaded = (() => {
|
|
5593
5594
|
try {
|
|
@@ -5598,12 +5599,12 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5598
5599
|
})();
|
|
5599
5600
|
const memory = loaded?.build?.memory ?? "8g";
|
|
5600
5601
|
try {
|
|
5601
|
-
const { ensureRunnerIdentity } = await import('./runner-identity-
|
|
5602
|
+
const { ensureRunnerIdentity } = await import('./runner-identity-HHW4UKYE.js');
|
|
5602
5603
|
await ensureRunnerIdentity(configPath, { log: (line) => console.error(line) }).catch((err) => {
|
|
5603
5604
|
console.error(`the runner's Docker identity could not be stored: ${err instanceof Error ? err.message : String(err)}`);
|
|
5604
5605
|
});
|
|
5605
|
-
const { imageTargetFor } = await import('./governing-source-
|
|
5606
|
-
const { runnerCalls } = await import('./caller-
|
|
5606
|
+
const { imageTargetFor } = await import('./governing-source-JYK3VK23.js');
|
|
5607
|
+
const { runnerCalls } = await import('./caller-PCOQRDGJ.js');
|
|
5607
5608
|
const target = await imageTargetFor({ config: loaded === void 0 || loaded.fleet === true ? void 0 : runnerCalls(loaded), repository: opts.repository, fetchImpl: fetch });
|
|
5608
5609
|
if (!target.ok) {
|
|
5609
5610
|
if (opts.json) {
|
|
@@ -5667,25 +5668,25 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5667
5668
|
}
|
|
5668
5669
|
});
|
|
5669
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) => {
|
|
5670
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5671
|
-
const { requestStop } = await import('./loop-
|
|
5671
|
+
const { defaultRunnerConfigPath } = await import('./config-VHJI645L.js');
|
|
5672
|
+
const { requestStop } = await import('./loop-VCH4UOQ4.js');
|
|
5672
5673
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5673
|
-
const { runnerImageVersion } = await import('./image-tag-
|
|
5674
|
+
const { runnerImageVersion } = await import('./image-tag-GZW7HJBN.js');
|
|
5674
5675
|
await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
|
|
5675
5676
|
});
|
|
5676
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) => {
|
|
5677
|
-
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-
|
|
5678
|
-
const { jobsDir, runnerDir } = await import('./paths-
|
|
5679
|
-
const { listJobFiles, runnerProcessState } = await import('./loop-
|
|
5680
|
-
const { renderStatus } = await import('./status-
|
|
5681
|
-
const { readHousekeepingRecord } = await import('./record-
|
|
5678
|
+
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-VHJI645L.js');
|
|
5679
|
+
const { jobsDir, runnerDir } = await import('./paths-HV5GP5OV.js');
|
|
5680
|
+
const { listJobFiles, runnerProcessState } = await import('./loop-VCH4UOQ4.js');
|
|
5681
|
+
const { renderStatus } = await import('./status-FQ5AIDWL.js');
|
|
5682
|
+
const { readHousekeepingRecord } = await import('./record-UOVUKWPV.js');
|
|
5682
5683
|
const path2 = await import('path');
|
|
5683
5684
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5684
5685
|
const all = listJobFiles(configPath);
|
|
5685
5686
|
const housekeeping = readHousekeepingRecord(runnerDir(configPath));
|
|
5686
|
-
const { readPendingUpdate } = await import('./pending-
|
|
5687
|
+
const { readPendingUpdate } = await import('./pending-4PZIZNR5.js');
|
|
5687
5688
|
const pendingUpdate = readPendingUpdate(runnerDir(configPath));
|
|
5688
|
-
const { readImageStatus } = await import('./image-tag-
|
|
5689
|
+
const { readImageStatus } = await import('./image-tag-GZW7HJBN.js');
|
|
5689
5690
|
const image = readImageStatus(runnerDir(configPath));
|
|
5690
5691
|
let host = "unknown";
|
|
5691
5692
|
let concurrency = 1;
|
|
@@ -5695,7 +5696,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5695
5696
|
host = config.host;
|
|
5696
5697
|
concurrency = config.concurrency;
|
|
5697
5698
|
if (config.fleet === true) {
|
|
5698
|
-
const { readFleetState } = await import('./state-
|
|
5699
|
+
const { readFleetState } = await import('./state-IASJSAJV.js');
|
|
5699
5700
|
fleet = { state: readFleetState(configPath) };
|
|
5700
5701
|
}
|
|
5701
5702
|
} catch {
|
|
@@ -5703,7 +5704,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5703
5704
|
const processState = runnerProcessState(configPath);
|
|
5704
5705
|
const service = await (async () => {
|
|
5705
5706
|
if (process.platform !== "linux" || !existsSync("/run/systemd/system")) return void 0;
|
|
5706
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
5707
|
+
const { inspectRunnerService } = await import('./find-unit-L2JIUL4D.js');
|
|
5707
5708
|
const facts = inspectRunnerService(configPath);
|
|
5708
5709
|
return facts === void 0 ? void 0 : { unit: facts.unit, running: facts.mainPid !== void 0, delegated: facts.delegate };
|
|
5709
5710
|
})();
|
|
@@ -5742,9 +5743,9 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5742
5743
|
);
|
|
5743
5744
|
});
|
|
5744
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) => {
|
|
5745
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5746
|
-
const { listJobFiles } = await import('./loop-
|
|
5747
|
-
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-
|
|
5746
|
+
const { defaultRunnerConfigPath } = await import('./config-VHJI645L.js');
|
|
5747
|
+
const { listJobFiles } = await import('./loop-VCH4UOQ4.js');
|
|
5748
|
+
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-IMTZ733E.js');
|
|
5748
5749
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5749
5750
|
const jobs = listJobFiles(configPath);
|
|
5750
5751
|
const selected = selectAttempt(jobs, itemArg);
|
|
@@ -5965,7 +5966,7 @@ Self-host deployments also need --app-id: without a key service to resolve the
|
|
|
5965
5966
|
caller from the bearer token, the gateway answers 401 without that header.
|
|
5966
5967
|
`
|
|
5967
5968
|
).action(async (opts) => {
|
|
5968
|
-
const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-
|
|
5969
|
+
const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-NFMA6PSL.js');
|
|
5969
5970
|
try {
|
|
5970
5971
|
if (opts.transport !== void 0 && opts.transport !== "stdio" && opts.transport !== "http") {
|
|
5971
5972
|
throw new McpInstallError(`--transport must be "stdio" or "http", got "${opts.transport}"`);
|
|
@@ -5987,7 +5988,7 @@ caller from the bearer token, the gateway answers 401 without that header.
|
|
|
5987
5988
|
"after",
|
|
5988
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"
|
|
5989
5990
|
).action(async (opts) => {
|
|
5990
|
-
const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-
|
|
5991
|
+
const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-27QGBQGR.js');
|
|
5991
5992
|
try {
|
|
5992
5993
|
await runMcpServe({ url: opts.url, appId: opts.appId });
|
|
5993
5994
|
} catch (err) {
|
|
@@ -6008,7 +6009,7 @@ would get, the instruction files and the names of the skills. It warns when the
|
|
|
6008
6009
|
no \`build\`. It needs the context-read permission: a login or a factory key with it is enough.
|
|
6009
6010
|
`
|
|
6010
6011
|
).action(async (opts) => {
|
|
6011
|
-
const { runContextShow, ContextShowError } = await import('./context-show-cmd-
|
|
6012
|
+
const { runContextShow, ContextShowError } = await import('./context-show-cmd-XODQYX7H.js');
|
|
6012
6013
|
try {
|
|
6013
6014
|
const result = await runContextShow({ repo: opts.repo, json: opts.json, url: opts.url, apiKey: opts.apiKey, appId: opts.appId });
|
|
6014
6015
|
process.stdout.write(result.output);
|
|
@@ -6022,7 +6023,22 @@ no \`build\`. It needs the context-read permission: a login or a factory key wit
|
|
|
6022
6023
|
});
|
|
6023
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(
|
|
6024
6025
|
"after",
|
|
6025
|
-
|
|
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
|
+
`
|
|
6026
6042
|
).action(async (opts) => {
|
|
6027
6043
|
await compileContext({ dir: opts.dir, check: opts.check, json: opts.json });
|
|
6028
6044
|
});
|