@outerlayer/cli 0.36.0-next.20261101174803 → 0.36.0-next.20261102124202
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-AOB76EDJ.js +37 -0
- package/dist/bridge-DFG2GTXQ.js +13 -0
- package/dist/build-THAD3B4Q.js +21 -0
- package/dist/build-disk-HO2VPIBJ.js +18 -0
- package/dist/build-info.json +1 -1
- package/dist/builder-AXJNIF4S.js +17 -0
- package/dist/caller-GOY2X6QT.js +20 -0
- package/dist/{check-K4RVAP4L.js → check-SF2OVZXB.js} +68 -66
- package/dist/{chunk-KB5B6ZT5.js → chunk-3FSKTGM6.js} +20 -20
- package/dist/{chunk-HL7UNTXO.js → chunk-4CTVN3C5.js} +15 -8
- package/dist/{chunk-QIOTIQWD.js → chunk-4TNUQLXH.js} +5 -5
- package/dist/{chunk-LGV5N5DG.js → chunk-564Q2STF.js} +1 -1
- package/dist/{chunk-F2LPX2HS.js → chunk-5FIOUQGC.js} +8 -8
- package/dist/{chunk-TSYHUUAT.js → chunk-5FND4PIU.js} +2 -2
- package/dist/{chunk-4DJZSNVT.js → chunk-6JJITHBI.js} +1 -1
- package/dist/{chunk-KLXECBIE.js → chunk-6LO62EQ5.js} +149 -106
- package/dist/{chunk-RIHB3HA2.js → chunk-772ILTCK.js} +3 -3
- package/dist/{chunk-CIUD3436.js → chunk-A5Y2HBVU.js} +1 -1
- package/dist/{chunk-KDK6AF7B.js → chunk-AYLYAOHH.js} +5 -5
- package/dist/{chunk-OEBFKPHK.js → chunk-C3JWWPLC.js} +9 -10
- package/dist/{chunk-24FEVLX7.js → chunk-CKPQOQFC.js} +643 -73
- package/dist/{chunk-ALEUIS35.js → chunk-CVGQ3BNF.js} +1 -1
- package/dist/{chunk-DJMR4YPG.js → chunk-EBIYRRJW.js} +5 -5
- package/dist/{chunk-MXIFRYLA.js → chunk-ESSJPSJ2.js} +2 -2
- package/dist/{chunk-D2OTBS47.js → chunk-EUDG754F.js} +2 -2
- package/dist/{chunk-55PYF6S2.js → chunk-FIO6PIZ6.js} +3 -3
- package/dist/{chunk-WT7J2627.js → chunk-GD6KIHOS.js} +1 -1
- package/dist/{chunk-DJDTL6AY.js → chunk-GDZTL6BI.js} +40 -31
- package/dist/{chunk-AF6DQJ5W.js → chunk-GSXGA6KF.js} +1 -1
- package/dist/{chunk-LEHBDEUG.js → chunk-GZ75FRLB.js} +4 -5
- package/dist/chunk-H2FFONRY.js +136 -0
- package/dist/{chunk-DHFNBNC3.js → chunk-HIN4BMRW.js} +2 -2
- package/dist/{chunk-ABAVN4RT.js → chunk-I626B72C.js} +29 -26
- package/dist/{chunk-VJYSPH2J.js → chunk-I6FRCBMU.js} +26 -21
- package/dist/{chunk-X2XTCGUS.js → chunk-J7TCTARR.js} +11 -12
- package/dist/chunk-J7Y3PCO2.js +653 -0
- package/dist/{chunk-YQHEJ5SV.js → chunk-JVCQZDQ6.js} +3 -3
- package/dist/{chunk-JW5BENE6.js → chunk-JXXHLQQR.js} +3 -3
- package/dist/{chunk-GLUQVET2.js → chunk-K3X3L5YW.js} +2 -2
- package/dist/{chunk-MKSZHT6S.js → chunk-KN4VIK53.js} +1 -1
- package/dist/chunk-L3JXQDVH.js +78 -0
- package/dist/{chunk-6A2GEFN3.js → chunk-LCOQN6NR.js} +2 -2
- package/dist/{chunk-R3252UTU.js → chunk-LSXHTBAM.js} +2 -2
- package/dist/{chunk-ZP7F3OHV.js → chunk-LVXR37OG.js} +47 -38
- package/dist/{chunk-W7I65BKE.js → chunk-LYFLUNWK.js} +12 -12
- package/dist/{chunk-GANAOCHR.js → chunk-M2NIHHQI.js} +24 -374
- package/dist/chunk-NC3QAHOS.js +26 -0
- package/dist/{chunk-RIIPBJK6.js → chunk-NTMRMBLM.js} +4 -4
- package/dist/{chunk-NFZJ5XHP.js → chunk-NWBB2SQ4.js} +33 -32
- package/dist/{chunk-H7SKHAUE.js → chunk-OYKAOHX5.js} +3 -3
- package/dist/{chunk-EBOQU6QC.js → chunk-OZOATEK3.js} +2 -2
- package/dist/{chunk-BRUDBWLO.js → chunk-PKO5IDW4.js} +7 -7
- package/dist/{chunk-7J7HRYZ3.js → chunk-PQDFW422.js} +1 -1
- package/dist/{chunk-EZRAR5YG.js → chunk-PT34C6SU.js} +1 -1
- package/dist/{chunk-HAWPG7QW.js → chunk-PTPF36Q7.js} +3 -3
- package/dist/{chunk-7Y5VW4JG.js → chunk-Q42K6XZ6.js} +1 -1
- package/dist/{chunk-SPXVFFQV.js → chunk-QJDX6VJS.js} +5 -5
- package/dist/{chunk-ULBVE7MP.js → chunk-RK4JQRVT.js} +6 -6
- package/dist/{chunk-JU3VU42K.js → chunk-RPZIHELI.js} +5 -5
- package/dist/{chunk-XNBUZGRO.js → chunk-RSRZDF3K.js} +3 -3
- package/dist/{chunk-46OBCATR.js → chunk-T5Z22NA6.js} +1 -1
- package/dist/chunk-TWYHSMHM.js +67 -0
- package/dist/{chunk-AGKQEOFS.js → chunk-TYCZVJTB.js} +54 -31
- package/dist/{chunk-B7PYT2BY.js → chunk-VRQM4A64.js} +6 -3
- package/dist/{chunk-KFUDKFEH.js → chunk-WDQPBAFV.js} +44 -19
- package/dist/{chunk-UZGQT6OF.js → chunk-WLMAGMTU.js} +5 -3
- package/dist/{chunk-RDWKRG4K.js → chunk-WNYH42PF.js} +4 -4
- package/dist/{chunk-MOOZJRKM.js → chunk-WQB3XOEP.js} +27 -30
- package/dist/{chunk-O36YAH2G.js → chunk-XABJMU5A.js} +4 -4
- package/dist/{chunk-2SRQSGPR.js → chunk-XAOIHYPS.js} +29 -24
- package/dist/{chunk-WAZJPDR2.js → chunk-XE3DIJJT.js} +1 -1
- package/dist/{chunk-B62TYDP2.js → chunk-XHFSBSIA.js} +4 -4
- package/dist/{chunk-AH6634HC.js → chunk-XLOM2BNL.js} +1 -2
- package/dist/{claude-launcher-L77BKZOC.js → claude-launcher-LXZPTDNC.js} +23 -18
- package/dist/{cli-QQY5UECM.js → cli-QFUT3UQS.js} +137 -138
- package/dist/{cli-update-notice-T3CXRWNB.js → cli-update-notice-AWYJ4A7R.js} +2 -2
- package/dist/{command-QLHQZ32L.js → command-45RZT4CK.js} +55 -56
- package/dist/{config-5GY7FL35.js → config-WYQPXLOP.js} +11 -9
- package/dist/connect-cmd-LUCQ7FSV.js +26 -0
- package/dist/{container-start-OCJODSMB.js → container-start-T776VI3M.js} +55 -54
- package/dist/{context-cleanup-A7KBEBIO.js → context-cleanup-QE2MIO2Q.js} +4 -2
- package/dist/{context-show-cmd-MZ74ZIVO.js → context-show-cmd-7QEHUOEL.js} +14 -14
- package/dist/{control-plane-launch-3TZFOSCX.js → control-plane-launch-THUH6YU5.js} +18 -18
- package/dist/{demo-record-cmd-Y57UWBCX.js → demo-record-cmd-SBERRQNW.js} +8 -5
- package/dist/{demo-voice-cmd-4INIOVTC.js → demo-voice-cmd-VM3FITZU.js} +18 -20
- package/dist/docker-MQNLK4OO.js +17 -0
- package/dist/{doctor-DB2AJUAO.js → doctor-NQOSPJGS.js} +71 -68
- package/dist/{emit-artifact-cmd-H27MFSKH.js → emit-artifact-cmd-6E365VBQ.js} +17 -18
- package/dist/{emit-cmd-IOWTTZSA.js → emit-cmd-ZPFCPVSR.js} +7 -8
- package/dist/{emit-criteria-cmd-IOUVMB2Q.js → emit-criteria-cmd-HWQOYZZ4.js} +13 -14
- package/dist/{emit-demo-cmd-WJSS7KU2.js → emit-demo-cmd-PMQGNNVX.js} +18 -20
- package/dist/{emit-finding-cmd-KQIGM5IF.js → emit-finding-cmd-MYWQN5WW.js} +13 -14
- package/dist/{emit-result-cmd-6Q7OU2NY.js → emit-result-cmd-GXK3KMAP.js} +16 -17
- package/dist/{emit-step-cmd-GZU5O2FR.js → emit-step-cmd-ZV2XTUVT.js} +13 -14
- package/dist/exec-client-P7RFRUCK.js +14 -0
- package/dist/find-unit-63SXQ7IM.js +21 -0
- package/dist/{findings-cmd-T7PQAVJG.js → findings-cmd-OGMBVVSM.js} +13 -14
- package/dist/{fleet-readiness-PTMOEX6L.js → fleet-readiness-4RBKLXBQ.js} +14 -15
- package/dist/{governing-source-CND5ZZC3.js → governing-source-XJMXFSAR.js} +19 -20
- package/dist/guest-init-XZHRPIMG.js +16 -0
- package/dist/{hook-fast-RW7RU3O6.js → hook-fast-ZOWGWCPO.js} +5 -5
- package/dist/host-checks-WHW24PJR.js +76 -0
- package/dist/host-key-MWLXB5U5.js +14 -0
- package/dist/{image-tag-WBD57QBN.js → image-tag-E4JK2APF.js} +9 -4
- package/dist/index.js +4 -4
- package/dist/init-EZIAHBMH.js +76 -0
- package/dist/{init-HUQLVUPO.js → init-LO6U7YTW.js} +52 -51
- package/dist/{init-cmd-6NQGBVAJ.js → init-cmd-2JANO5EN.js} +23 -24
- package/dist/{init-update-MA6QKX46.js → init-update-D6PRTGNE.js} +51 -44
- package/dist/install-cmd-SJMBNQEH.js +17 -0
- package/dist/{layout-2ZMCT2D3.js → layout-AQHIMJMO.js} +4 -4
- package/dist/{logs-FEITSC2V.js → logs-NE55HOET.js} +8 -3
- package/dist/loop-2E34CGCX.js +87 -0
- package/dist/machine-6ALGG4IO.js +76 -0
- package/dist/{machine-skills-237PQFRC.js → machine-skills-KK2HXYMR.js} +3 -4
- package/dist/{mcp-install-cmd-23ZY4IBK.js → mcp-install-cmd-2QAS3AQZ.js} +5 -1
- package/dist/{mcp-serve-cmd-ZINYSLY6.js → mcp-serve-cmd-U6USKHYR.js} +9 -7
- package/dist/{paths-XEYE7OZ2.js → paths-O7LCWY33.js} +8 -3
- package/dist/pending-YU2GE2UV.js +14 -0
- package/dist/pidfile-5GDCQ5HA.js +15 -0
- package/dist/record-NETSDAO6.js +14 -0
- package/dist/{relay-IEYNSKAZ.js → relay-VZ733BVJ.js} +6 -1
- package/dist/{relay-protocol-5LSWUJCW.js → relay-protocol-24GEUGCO.js} +6 -1
- package/dist/runner-env-KHCONH2R.js +21 -0
- package/dist/{runner-identity-IIY5UJL3.js → runner-identity-PSCZBILD.js} +10 -7
- package/dist/{runner-key-CFZ47PR3.js → runner-key-VM2LYVRK.js} +44 -46
- package/dist/{session-sender-NO4F2IQ5.js → session-sender-P2RHDM6U.js} +17 -18
- package/dist/{spec-cmd-CNASSB6L.js → spec-cmd-LGKP6MT7.js} +14 -15
- package/dist/{starter-pack-CCVIEY72.js → starter-pack-SMK6UPRL.js} +5 -6
- package/dist/state-RJR4PMMX.js +14 -0
- package/dist/{status-VNHIHQ57.js → status-HEHCNIDS.js} +44 -46
- package/dist/{sync-cmd-5JLJBODH.js → sync-cmd-HKN45HXL.js} +16 -17
- package/dist/update-steps-7E4RD47J.js +77 -0
- package/dist/{watch-AEWWTUEK.js → watch-RGZCUCR3.js} +16 -17
- package/dist/{work-claim-cmd-GUYOJYH7.js → work-claim-cmd-6DSPGCZE.js} +19 -21
- package/dist/{work-cmd-YRPYMGII.js → work-cmd-GPLYLWY7.js} +13 -14
- package/dist/{work-comment-cmd-U5Z6FKEU.js → work-comment-cmd-V5WM7LAW.js} +16 -17
- package/dist/{work-demo-cmd-OLCWTVWM.js → work-demo-cmd-SWWI6AGD.js} +13 -14
- package/dist/{work-logs-cmd-2OA7ENDU.js → work-logs-cmd-CTFBOPCI.js} +13 -14
- package/dist/{work-open-pr-cmd-6GUCDYVM.js → work-open-pr-cmd-HX2U3YBR.js} +14 -15
- package/dist/{work-pr-cmd-KK3VQUQI.js → work-pr-cmd-EI2R4FQG.js} +13 -14
- package/dist/{work-proofs-cmd-BUOS5OJC.js → work-proofs-cmd-QXNPHLYC.js} +15 -16
- package/dist/{work-proofs-record-6WLMOK53.js → work-proofs-record-72OKWEES.js} +22 -24
- package/dist/{work-stop-cmd-VZJX5X4L.js → work-stop-cmd-7M7ZYUN2.js} +13 -14
- package/package.json +1 -1
- package/dist/agent-setup-DJRQFPDU.js +0 -33
- package/dist/bridge-XM4QLKIX.js +0 -8
- package/dist/build-ZE5IG3V6.js +0 -18
- package/dist/build-disk-GMXDIZU4.js +0 -15
- package/dist/builder-LJ3FSB36.js +0 -14
- package/dist/caller-YLNJJPFU.js +0 -18
- package/dist/chunk-CXFJOX2C.js +0 -144
- package/dist/chunk-FGF52V4V.js +0 -137
- package/dist/chunk-HCVLP7XA.js +0 -53
- package/dist/chunk-MESOOLF4.js +0 -45
- package/dist/chunk-OHQMGLJP.js +0 -113
- package/dist/chunk-OUPQTA7N.js +0 -145
- package/dist/chunk-VRMXYQWR.js +0 -74
- package/dist/connect-cmd-THV7XBVP.js +0 -27
- package/dist/docker-5YVUZ3J2.js +0 -14
- package/dist/exec-client-FGGPQSYQ.js +0 -9
- package/dist/find-unit-PRZIFBIK.js +0 -19
- package/dist/guest-init-WPUS45IN.js +0 -11
- package/dist/host-checks-S3B7Z4SY.js +0 -78
- package/dist/host-key-O4DFMOSV.js +0 -9
- package/dist/init-ILTX4V56.js +0 -78
- package/dist/install-cmd-JKPXIOEY.js +0 -12
- package/dist/loop-KDWDOSMQ.js +0 -89
- package/dist/machine-Z6K5XXI6.js +0 -78
- package/dist/pending-D2NNV54J.js +0 -9
- package/dist/pidfile-FLFVRKVW.js +0 -10
- package/dist/record-JMZOXD4R.js +0 -9
- package/dist/runner-env-W2UMHY7P.js +0 -19
- package/dist/state-UWIM42JH.js +0 -9
- package/dist/update-steps-XGOXDCOS.js +0 -79
- package/dist/{chunk-OLM2TIOW.js → chunk-NFZMENCY.js} +1 -1
|
@@ -1,47 +1,46 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import { verifiedTrackerNames, TRACKERS } from './chunk-
|
|
3
|
+
import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-GDZTL6BI.js';
|
|
4
|
+
import './chunk-RPZIHELI.js';
|
|
5
|
+
import './chunk-H2FFONRY.js';
|
|
6
|
+
import './chunk-XHFSBSIA.js';
|
|
7
|
+
import { verifiedTrackerNames, TRACKERS } from './chunk-QJDX6VJS.js';
|
|
8
8
|
import './chunk-IP7BIBXJ.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import './chunk-5FND4PIU.js';
|
|
10
|
+
import './chunk-4CTVN3C5.js';
|
|
11
11
|
import './chunk-TPMLB3VZ.js';
|
|
12
12
|
import './chunk-A2LHHKTT.js';
|
|
13
13
|
import { C, warnDeprecated, API_KEY_FLAG_DEPRECATION, NO_COLOR_FLAG, stripNoColor } from './chunk-2AM6Z5BP.js';
|
|
14
|
-
import './chunk-
|
|
14
|
+
import './chunk-WQB3XOEP.js';
|
|
15
15
|
import './chunk-P6PHY33P.js';
|
|
16
|
-
import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-
|
|
17
|
-
import './chunk-
|
|
18
|
-
import './chunk-
|
|
16
|
+
import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-WDQPBAFV.js';
|
|
17
|
+
import './chunk-GZ75FRLB.js';
|
|
18
|
+
import './chunk-JVCQZDQ6.js';
|
|
19
19
|
import './chunk-HWVMRETT.js';
|
|
20
|
-
import './chunk-
|
|
21
|
-
import { hookFiredMarkerPath, installedCliDistDir } from './chunk-
|
|
20
|
+
import './chunk-6JJITHBI.js';
|
|
21
|
+
import { hookFiredMarkerPath, installedCliDistDir } from './chunk-EBIYRRJW.js';
|
|
22
22
|
import './chunk-545P7JY7.js';
|
|
23
23
|
import './chunk-YBAVN6WS.js';
|
|
24
24
|
import './chunk-BKO6JEZI.js';
|
|
25
|
-
import './chunk-
|
|
25
|
+
import './chunk-NC3QAHOS.js';
|
|
26
26
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
27
|
-
import './chunk-
|
|
28
|
-
import './chunk-CXFJOX2C.js';
|
|
27
|
+
import './chunk-I626B72C.js';
|
|
29
28
|
import './chunk-5GHJFETA.js';
|
|
30
|
-
import './chunk-
|
|
31
|
-
import './chunk-CDDED64E.js';
|
|
32
|
-
import { resolveVersion, resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
29
|
+
import './chunk-NFZMENCY.js';
|
|
33
30
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
34
31
|
import { cliInvocation, packageRunnerOf } from './chunk-FZKNTIOJ.js';
|
|
35
32
|
import { settingsPath, readSettings, SettingsParseError, listHookCandidates, PORTABLE_BIN, wrapHooks, writeSettings, unwrapHooks, REGISTERED_EVENTS, removeHooks, removeStatusline, cliBinResolvable, mergeHooks, repointWrappedHooks, AUTO_WRAP_EVENTS, mergeStatusline } from './chunk-KYDEBGJG.js';
|
|
36
|
-
import './chunk-
|
|
33
|
+
import './chunk-VRQM4A64.js';
|
|
37
34
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
38
35
|
import { removeJournalHooks, removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
|
|
39
|
-
import './chunk-
|
|
36
|
+
import './chunk-GD6KIHOS.js';
|
|
37
|
+
import './chunk-M2NIHHQI.js';
|
|
38
|
+
import './chunk-J7Y3PCO2.js';
|
|
39
|
+
import './chunk-CKPQOQFC.js';
|
|
40
40
|
import './chunk-WUKLQWGY.js';
|
|
41
|
+
import './chunk-CDDED64E.js';
|
|
42
|
+
import { resolveVersion, resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
41
43
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
42
|
-
import './chunk-WT7J2627.js';
|
|
43
|
-
import './chunk-GANAOCHR.js';
|
|
44
|
-
import './chunk-MESOOLF4.js';
|
|
45
44
|
import './chunk-Z5GEFMRW.js';
|
|
46
45
|
import { EventEmitter } from 'events';
|
|
47
46
|
import childProcess, { execFileSync } from 'child_process';
|
|
@@ -3658,14 +3657,14 @@ function apiKeyOption() {
|
|
|
3658
3657
|
return new Option("--api-key <key>", `deprecated: use \`${cliInvocation()} login\` or OUTERLAYER_API_KEY`).hideHelp();
|
|
3659
3658
|
}
|
|
3660
3659
|
async function installStarterPackInRepo() {
|
|
3661
|
-
const { installStarterPack, formatStarterPackOutput } = await import('./starter-pack-
|
|
3660
|
+
const { installStarterPack, formatStarterPackOutput } = await import('./starter-pack-SMK6UPRL.js');
|
|
3662
3661
|
const cwd = process.cwd();
|
|
3663
3662
|
let repoRoot = cwd;
|
|
3664
3663
|
try {
|
|
3665
3664
|
repoRoot = execFileSync("git", ["rev-parse", "--show-toplevel"], { cwd, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).trim() || cwd;
|
|
3666
3665
|
} catch {
|
|
3667
3666
|
}
|
|
3668
|
-
const { declareAgentsMdLayout, isAgentsMdLayout, skillsBaseFor } = await import('./layout-
|
|
3667
|
+
const { declareAgentsMdLayout, isAgentsMdLayout, skillsBaseFor } = await import('./layout-AQHIMJMO.js');
|
|
3669
3668
|
const fresh = !isAgentsMdLayout(repoRoot) && !existsSync(join(repoRoot, ".outerlayer/skills")) && !existsSync(join(repoRoot, ".outerlayer/AGENTS.md"));
|
|
3670
3669
|
const result = installStarterPack({ repoRoot, base: fresh ? ".agents/skills" : skillsBaseFor(repoRoot) });
|
|
3671
3670
|
if (fresh) declareAgentsMdLayout(repoRoot);
|
|
@@ -3791,7 +3790,7 @@ ${starter.output}`),
|
|
|
3791
3790
|
}
|
|
3792
3791
|
}
|
|
3793
3792
|
async function installMachineSkillsForSetup() {
|
|
3794
|
-
const { setupMachineSkills } = await import('./machine-skills-
|
|
3793
|
+
const { setupMachineSkills } = await import('./machine-skills-KK2HXYMR.js');
|
|
3795
3794
|
const result = setupMachineSkills(homeFromEnv());
|
|
3796
3795
|
for (const failure of result.failures) process.stderr.write(`${C.yellow}!${C.reset} Could not write a maintained skill: ${failure}
|
|
3797
3796
|
`);
|
|
@@ -3799,7 +3798,7 @@ async function installMachineSkillsForSetup() {
|
|
|
3799
3798
|
` : "";
|
|
3800
3799
|
}
|
|
3801
3800
|
async function realConnectDepsForCwd() {
|
|
3802
|
-
const { realConnectDeps } = await import('./connect-cmd-
|
|
3801
|
+
const { realConnectDeps } = await import('./connect-cmd-LUCQ7FSV.js');
|
|
3803
3802
|
const { resolveRepoIdentity } = await import('./dist-6KGTCWKR.js');
|
|
3804
3803
|
return {
|
|
3805
3804
|
...realConnectDeps(),
|
|
@@ -3817,12 +3816,12 @@ function buildProgram(argv = process.argv) {
|
|
|
3817
3816
|
const program2 = new Command();
|
|
3818
3817
|
program2.name(cliInvocation()).description("OuterLayer \u2014 see what your coding agents actually do").enablePositionalOptions().version(resolveVersion()).hook("preAction", async (_root, command) => {
|
|
3819
3818
|
if (command.opts().apiKey !== void 0) warnDeprecated(API_KEY_FLAG_DEPRECATION);
|
|
3820
|
-
const { machineRefreshSkipped, refreshMachineSkills } = await import('./machine-skills-
|
|
3819
|
+
const { machineRefreshSkipped, refreshMachineSkills } = await import('./machine-skills-KK2HXYMR.js');
|
|
3821
3820
|
const names = [];
|
|
3822
3821
|
for (let at = command; at?.parent; at = at.parent) names.push(at.name());
|
|
3823
3822
|
if (!machineRefreshSkipped(names, command._hidden === true, argv)) refreshMachineSkills(homeFromEnv());
|
|
3824
3823
|
}).hook("postAction", async (_root, command) => {
|
|
3825
|
-
const notice = await import('./cli-update-notice-
|
|
3824
|
+
const notice = await import('./cli-update-notice-AWYJ4A7R.js');
|
|
3826
3825
|
let top;
|
|
3827
3826
|
for (let at = command; at.parent; at = at.parent) top = at.name();
|
|
3828
3827
|
const json = command.opts().json === true || argv.includes("--json");
|
|
@@ -3874,8 +3873,8 @@ build, ../outerlayer-build/SKILL.md becomes ~/.agents/skills/outerlayer-build/SK
|
|
|
3874
3873
|
what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocation() + " doctor` reports the same\nstates under Starter files.\n"
|
|
3875
3874
|
).action(async (opts) => {
|
|
3876
3875
|
if (opts.update || opts.dryRun) {
|
|
3877
|
-
const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-
|
|
3878
|
-
const { fleetReadiness } = await import('./fleet-readiness-
|
|
3876
|
+
const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-D6PRTGNE.js');
|
|
3877
|
+
const { fleetReadiness } = await import('./fleet-readiness-4RBKLXBQ.js');
|
|
3879
3878
|
const problem = updateFlagProblem(opts);
|
|
3880
3879
|
if (problem !== void 0) {
|
|
3881
3880
|
fail(problem);
|
|
@@ -3892,7 +3891,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3892
3891
|
}
|
|
3893
3892
|
let starterTemplate;
|
|
3894
3893
|
if (opts.template !== void 0) {
|
|
3895
|
-
const { assertKnownTemplate, StarterPackError } = await import('./starter-pack-
|
|
3894
|
+
const { assertKnownTemplate, StarterPackError } = await import('./starter-pack-SMK6UPRL.js');
|
|
3896
3895
|
try {
|
|
3897
3896
|
assertKnownTemplate(opts.template);
|
|
3898
3897
|
} catch (err) {
|
|
@@ -3926,13 +3925,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3926
3925
|
if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
|
|
3927
3926
|
`);
|
|
3928
3927
|
}
|
|
3929
|
-
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-
|
|
3928
|
+
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-2JANO5EN.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
|
|
3930
3929
|
if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
|
|
3931
3930
|
else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
|
|
3932
3931
|
return;
|
|
3933
3932
|
}
|
|
3934
3933
|
await installMachineSkillsForSetup();
|
|
3935
|
-
const { runInitCommand } = await import('./init-cmd-
|
|
3934
|
+
const { runInitCommand } = await import('./init-cmd-2JANO5EN.js');
|
|
3936
3935
|
const code = await runInitCommand(
|
|
3937
3936
|
{ json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
|
|
3938
3937
|
{
|
|
@@ -3944,7 +3943,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3944
3943
|
return { ok, text, detail };
|
|
3945
3944
|
},
|
|
3946
3945
|
runAgentSetup: async () => {
|
|
3947
|
-
const { runAgentSetup } = await import('./agent-setup-
|
|
3946
|
+
const { runAgentSetup } = await import('./agent-setup-AOB76EDJ.js');
|
|
3948
3947
|
return runAgentSetup({ cwd: process.cwd(), skillsLink: opts.skillsLink !== false });
|
|
3949
3948
|
},
|
|
3950
3949
|
runDoctorChecks: gatherDoctorChecks,
|
|
@@ -3953,7 +3952,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3953
3952
|
shellPath: process.env.SHELL,
|
|
3954
3953
|
interactive: Boolean(process.stdin.isTTY && process.stderr.isTTY) && opts.json !== true,
|
|
3955
3954
|
ask: async () => {
|
|
3956
|
-
const { promptOnTerminal } = await import('./connect-cmd-
|
|
3955
|
+
const { promptOnTerminal } = await import('./connect-cmd-LUCQ7FSV.js');
|
|
3957
3956
|
const answer = await promptOnTerminal({
|
|
3958
3957
|
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.`,
|
|
3959
3958
|
options: [
|
|
@@ -3992,7 +3991,7 @@ linked (true, false, or null when it could not be checked) and, when false,
|
|
|
3992
3991
|
linkUrl.
|
|
3993
3992
|
`
|
|
3994
3993
|
).action(async (opts) => {
|
|
3995
|
-
const { runConnectCommand } = await import('./connect-cmd-
|
|
3994
|
+
const { runConnectCommand } = await import('./connect-cmd-LUCQ7FSV.js');
|
|
3996
3995
|
const code = await runConnectCommand({ factory: opts.factory, json: opts.json }, await realConnectDepsForCwd(), {
|
|
3997
3996
|
stdout: process.stdout,
|
|
3998
3997
|
stderr: process.stderr
|
|
@@ -4070,7 +4069,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4070
4069
|
else fail(found.reason);
|
|
4071
4070
|
return;
|
|
4072
4071
|
}
|
|
4073
|
-
const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-
|
|
4072
|
+
const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-HKN45HXL.js');
|
|
4074
4073
|
try {
|
|
4075
4074
|
const result = await runSync({
|
|
4076
4075
|
url: opts.url,
|
|
@@ -4099,7 +4098,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4099
4098
|
if (invokedCommandToken(argv) === "watch") {
|
|
4100
4099
|
warnDeprecated(`\`${cliInvocation()} watch\` is now \`${cliInvocation()} daemon\`; the old name will be removed in a future release.`);
|
|
4101
4100
|
}
|
|
4102
|
-
const { runWatch } = await import('./watch-
|
|
4101
|
+
const { runWatch } = await import('./watch-RGZCUCR3.js');
|
|
4103
4102
|
await runWatch({ once: opts.once });
|
|
4104
4103
|
});
|
|
4105
4104
|
program2.command("hook <event>", { hidden: true }).description("capture-hook fast path, installed by `init`").action(() => {
|
|
@@ -4111,8 +4110,8 @@ code is 1: revoke the token on /profile/security.
|
|
|
4111
4110
|
program2.command("claude [args...]").description("start Claude Code with the repository's control plane attached").allowUnknownOption().helpOption(false).action(() => {
|
|
4112
4111
|
});
|
|
4113
4112
|
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) => {
|
|
4114
|
-
const { startRelay, startSessionRelay } = await import('./relay-
|
|
4115
|
-
const { TARGET_TUNNEL, targetOfPath } = await import('./relay-protocol-
|
|
4113
|
+
const { startRelay, startSessionRelay } = await import('./relay-VZ733BVJ.js');
|
|
4114
|
+
const { TARGET_TUNNEL, targetOfPath } = await import('./relay-protocol-24GEUGCO.js');
|
|
4116
4115
|
const port = Number(opts.port);
|
|
4117
4116
|
if (!Number.isInteger(port) || port < 1 || port > 65535) {
|
|
4118
4117
|
fail(opts.port === void 0 ? "--port is required" : `--port must be a port number, not ${opts.port}`);
|
|
@@ -4144,7 +4143,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4144
4143
|
await startRelay({ port, socketPath: opts.socket, forwards: forwards.map((forward) => ({ port: forward.port, socketPath: forward.spec })) });
|
|
4145
4144
|
});
|
|
4146
4145
|
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) => {
|
|
4147
|
-
const { joinRelay } = await import('./relay-
|
|
4146
|
+
const { joinRelay } = await import('./relay-VZ733BVJ.js');
|
|
4148
4147
|
try {
|
|
4149
4148
|
await joinRelay({ socketPath: opts.socket, input: process.stdin, output: process.stdout });
|
|
4150
4149
|
} catch (err) {
|
|
@@ -4160,7 +4159,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4160
4159
|
}
|
|
4161
4160
|
});
|
|
4162
4161
|
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) => {
|
|
4163
|
-
const { runVmExec } = await import('./exec-client-
|
|
4162
|
+
const { runVmExec } = await import('./exec-client-P7RFRUCK.js');
|
|
4164
4163
|
const env = {};
|
|
4165
4164
|
for (const entry of opts.env) {
|
|
4166
4165
|
const eq = entry.indexOf("=");
|
|
@@ -4189,7 +4188,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4189
4188
|
process.exitCode = await runBuildCommand({ dir: opts.dir, argv: command });
|
|
4190
4189
|
});
|
|
4191
4190
|
program2.command("session-sender", { hidden: true }).description("stream a runner build's sessions to its work item while the build runs").action(async () => {
|
|
4192
|
-
const { runSessionSender } = await import('./session-sender-
|
|
4191
|
+
const { runSessionSender } = await import('./session-sender-P2RHDM6U.js');
|
|
4193
4192
|
try {
|
|
4194
4193
|
await runSessionSender();
|
|
4195
4194
|
} catch (err) {
|
|
@@ -4197,7 +4196,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4197
4196
|
}
|
|
4198
4197
|
});
|
|
4199
4198
|
program2.command("vm-init", { hidden: true }).description("lay out a microVM build's guest; the guest helper runs it").action(async () => {
|
|
4200
|
-
const { realGuestHost, runGuestInit } = await import('./guest-init-
|
|
4199
|
+
const { realGuestHost, runGuestInit } = await import('./guest-init-XZHRPIMG.js');
|
|
4201
4200
|
const { readFileSync: readFileSync3 } = await import('fs');
|
|
4202
4201
|
try {
|
|
4203
4202
|
runGuestInit(realGuestHost(), readFileSync3("/proc/cmdline", "utf8"));
|
|
@@ -4206,7 +4205,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4206
4205
|
}
|
|
4207
4206
|
});
|
|
4208
4207
|
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) => {
|
|
4209
|
-
const { startBridgeForward } = await import('./bridge-
|
|
4208
|
+
const { startBridgeForward } = await import('./bridge-DFG2GTXQ.js');
|
|
4210
4209
|
try {
|
|
4211
4210
|
await startBridgeForward(opts);
|
|
4212
4211
|
} catch (err) {
|
|
@@ -4232,7 +4231,7 @@ async function runCli(processArgv) {
|
|
|
4232
4231
|
await buildProgram(argv).parseAsync(argv);
|
|
4233
4232
|
}
|
|
4234
4233
|
async function compileContext(opts) {
|
|
4235
|
-
const { runEmit, EmitError } = await import('./emit-cmd-
|
|
4234
|
+
const { runEmit, EmitError } = await import('./emit-cmd-ZPFCPVSR.js');
|
|
4236
4235
|
try {
|
|
4237
4236
|
const result = runEmit({ cwd: opts.dir, check: opts.check, json: opts.json });
|
|
4238
4237
|
if (result.exitCode !== 0) process.exitCode = result.exitCode;
|
|
@@ -4285,7 +4284,7 @@ Compiling .outerlayer/ moved to \`${cliInvocation()} context emit\`.
|
|
|
4285
4284
|
await compileContext({ dir: opts.dir, check: opts.check, json: opts.json });
|
|
4286
4285
|
return;
|
|
4287
4286
|
}
|
|
4288
|
-
const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-
|
|
4287
|
+
const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-GXK3KMAP.js');
|
|
4289
4288
|
try {
|
|
4290
4289
|
const result = await runEmitResult({
|
|
4291
4290
|
name,
|
|
@@ -4336,7 +4335,7 @@ everywhere, bytes and deep link untouched; a still-queued one is cancelled
|
|
|
4336
4335
|
locally so it never uploads. One correction can retire several duplicates.
|
|
4337
4336
|
`
|
|
4338
4337
|
).action(async (file, opts) => {
|
|
4339
|
-
const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-
|
|
4338
|
+
const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-6E365VBQ.js');
|
|
4340
4339
|
let pr;
|
|
4341
4340
|
if (opts.pr !== void 0) {
|
|
4342
4341
|
pr = parseTrackerNumber(opts.pr);
|
|
@@ -4392,7 +4391,7 @@ its criterion, and the new record retires the old record. The id must be the ite
|
|
|
4392
4391
|
as \`work demo --item <n> --json\` prints it.
|
|
4393
4392
|
`
|
|
4394
4393
|
).action(async (manifest, opts) => {
|
|
4395
|
-
const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-
|
|
4394
|
+
const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-PMQGNNVX.js');
|
|
4396
4395
|
let item;
|
|
4397
4396
|
if (opts.item !== void 0) {
|
|
4398
4397
|
item = parseTrackerNumber(opts.item);
|
|
@@ -4435,7 +4434,7 @@ as \`work demo --item <n> --json\` prints it.
|
|
|
4435
4434
|
}
|
|
4436
4435
|
});
|
|
4437
4436
|
program2.command("demo-voice", { hidden: true }).description("Speak demo lines for a recorder: JSON lines in on stdin, out on stdout").action(async () => {
|
|
4438
|
-
const { runDemoVoice } = await import('./demo-voice-cmd-
|
|
4437
|
+
const { runDemoVoice } = await import('./demo-voice-cmd-VM3FITZU.js');
|
|
4439
4438
|
await runDemoVoice();
|
|
4440
4439
|
});
|
|
4441
4440
|
const demoCmd = program2.command("demo").description("Record demos with the recorder this CLI carries");
|
|
@@ -4453,7 +4452,7 @@ and the command prints the manifest's path for \`emit demo\`. Under \`work proof
|
|
|
4453
4452
|
to OUTERLAYER_PROOF_OUT instead. Exit 1 means the demo's test failed; its manifest is written all the same.
|
|
4454
4453
|
`
|
|
4455
4454
|
).action(async (file, opts) => {
|
|
4456
|
-
const { runDemoRecord, DemoRecordError } = await import('./demo-record-cmd-
|
|
4455
|
+
const { runDemoRecord, DemoRecordError } = await import('./demo-record-cmd-SBERRQNW.js');
|
|
4457
4456
|
try {
|
|
4458
4457
|
const result = await runDemoRecord({
|
|
4459
4458
|
file,
|
|
@@ -4502,7 +4501,7 @@ recent events with their ids. --find <text> searches all of them.
|
|
|
4502
4501
|
item that session was launched for is used automatically.
|
|
4503
4502
|
`
|
|
4504
4503
|
).action(async (opts) => {
|
|
4505
|
-
const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-
|
|
4504
|
+
const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-MYWQN5WW.js');
|
|
4506
4505
|
try {
|
|
4507
4506
|
refuseRemovedFindingFlags(opts);
|
|
4508
4507
|
const result = await runEmitFinding({
|
|
@@ -4569,7 +4568,7 @@ the whole batch. "untimed": true records one with no time on purpose.
|
|
|
4569
4568
|
that session was launched for is used automatically.
|
|
4570
4569
|
`
|
|
4571
4570
|
).action(async (file, opts) => {
|
|
4572
|
-
const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-
|
|
4571
|
+
const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-MYWQN5WW.js');
|
|
4573
4572
|
try {
|
|
4574
4573
|
const result = await runEmitFindings({
|
|
4575
4574
|
file,
|
|
@@ -4604,7 +4603,7 @@ command, the command exits 0, and \`sync\` sends it later. If the gateway refuse
|
|
|
4604
4603
|
the step, the command prints why and exits 1.
|
|
4605
4604
|
`
|
|
4606
4605
|
).action(async (name, opts) => {
|
|
4607
|
-
const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-
|
|
4606
|
+
const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-ZV2XTUVT.js');
|
|
4608
4607
|
try {
|
|
4609
4608
|
await runEmitStep({
|
|
4610
4609
|
name,
|
|
@@ -4647,7 +4646,7 @@ of the item, and a (proof: <kind>) annotation names its proof.
|
|
|
4647
4646
|
${cliInvocation()} emit criteria acceptance/412-login.md --item 412
|
|
4648
4647
|
`
|
|
4649
4648
|
).action(async (file, opts) => {
|
|
4650
|
-
const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-
|
|
4649
|
+
const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-HWQOYZZ4.js');
|
|
4651
4650
|
try {
|
|
4652
4651
|
const result = await runEmitCriteria({
|
|
4653
4652
|
file,
|
|
@@ -4671,9 +4670,9 @@ function registerSpecCommands(program2) {
|
|
|
4671
4670
|
const specCmd = program2.command("spec").description("Find, file and edit the issue a spec lives in, in your factory's tracker");
|
|
4672
4671
|
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)");
|
|
4673
4672
|
const run = async (action) => {
|
|
4674
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4673
|
+
const { WorkCommandError } = await import('./work-cmd-GPLYLWY7.js');
|
|
4675
4674
|
try {
|
|
4676
|
-
await action(await import('./spec-cmd-
|
|
4675
|
+
await action(await import('./spec-cmd-LGKP6MT7.js'));
|
|
4677
4676
|
} catch (err) {
|
|
4678
4677
|
if (err instanceof WorkCommandError) {
|
|
4679
4678
|
fail(err.message);
|
|
@@ -4708,7 +4707,7 @@ Prints each problem the item covers with its id, its reports and its result.
|
|
|
4708
4707
|
session was launched for is used.
|
|
4709
4708
|
`
|
|
4710
4709
|
).action(async (opts) => {
|
|
4711
|
-
const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-
|
|
4710
|
+
const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-OGMBVVSM.js');
|
|
4712
4711
|
try {
|
|
4713
4712
|
const result = await runFindingsShow({
|
|
4714
4713
|
item: opts.item,
|
|
@@ -4736,7 +4735,7 @@ Give exactly one of --fixed and --not-fixed, and a --note. Run it again for the
|
|
|
4736
4735
|
problem to replace the earlier result. A problem the item does not cover is refused.
|
|
4737
4736
|
`
|
|
4738
4737
|
).action(async (problem, opts) => {
|
|
4739
|
-
const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-
|
|
4738
|
+
const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-OGMBVVSM.js');
|
|
4740
4739
|
try {
|
|
4741
4740
|
const result = await runFindingsResult({
|
|
4742
4741
|
problem,
|
|
@@ -4778,7 +4777,7 @@ takes it, and prints the line that starts your session on it. That
|
|
|
4778
4777
|
session links itself and holds the item's lease while it works.
|
|
4779
4778
|
`
|
|
4780
4779
|
).action(async (opts) => {
|
|
4781
|
-
const { runWorkBuild, WorkCommandError } = await import('./work-cmd-
|
|
4780
|
+
const { runWorkBuild, WorkCommandError } = await import('./work-cmd-GPLYLWY7.js');
|
|
4782
4781
|
try {
|
|
4783
4782
|
await runWorkBuild(opts);
|
|
4784
4783
|
} catch (err) {
|
|
@@ -4801,7 +4800,7 @@ renews that session's own 20-minute lease, unless --no-lease or
|
|
|
4801
4800
|
--ended is given, or another worker already holds a live one.
|
|
4802
4801
|
`
|
|
4803
4802
|
).action(async (number, opts) => {
|
|
4804
|
-
const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-
|
|
4803
|
+
const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-GPLYLWY7.js');
|
|
4805
4804
|
try {
|
|
4806
4805
|
await runWorkLinkSession({ ...opts, number, noLease: opts.lease === false, logFailures: opts.logFailures === true });
|
|
4807
4806
|
} catch (err) {
|
|
@@ -4832,8 +4831,8 @@ thread at its source. It takes a plain answer: no --criterion and no
|
|
|
4832
4831
|
action flag.
|
|
4833
4832
|
`
|
|
4834
4833
|
).action(async (opts) => {
|
|
4835
|
-
const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-
|
|
4836
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4834
|
+
const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-V5WM7LAW.js');
|
|
4835
|
+
const { WorkCommandError } = await import('./work-cmd-GPLYLWY7.js');
|
|
4837
4836
|
try {
|
|
4838
4837
|
await runWorkComment(opts);
|
|
4839
4838
|
} catch (err) {
|
|
@@ -4855,7 +4854,7 @@ nothing and exits 0 when the call fails: the line goes to hook-errors.log,
|
|
|
4855
4854
|
and the comment waits for the next agent job.
|
|
4856
4855
|
`
|
|
4857
4856
|
).action(async (ids, opts) => {
|
|
4858
|
-
const { runWorkCommentsRead } = await import('./work-comment-cmd-
|
|
4857
|
+
const { runWorkCommentsRead } = await import('./work-comment-cmd-V5WM7LAW.js');
|
|
4859
4858
|
await runWorkCommentsRead({ ...opts, commentIds: ids });
|
|
4860
4859
|
});
|
|
4861
4860
|
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(
|
|
@@ -4871,8 +4870,8 @@ that started outside OuterLayer, such as the line comments of a
|
|
|
4871
4870
|
GitHub review, each with its id, source and comments.
|
|
4872
4871
|
`
|
|
4873
4872
|
).action(async (opts) => {
|
|
4874
|
-
const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-
|
|
4875
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4873
|
+
const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-V5WM7LAW.js');
|
|
4874
|
+
const { WorkCommandError } = await import('./work-cmd-GPLYLWY7.js');
|
|
4876
4875
|
try {
|
|
4877
4876
|
await runWorkThreads(opts);
|
|
4878
4877
|
} catch (err) {
|
|
@@ -4896,8 +4895,8 @@ still running, or that an older runner released, has no log and the
|
|
|
4896
4895
|
command exits 1.
|
|
4897
4896
|
`
|
|
4898
4897
|
).action(async (opts) => {
|
|
4899
|
-
const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-
|
|
4900
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4898
|
+
const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-CTFBOPCI.js');
|
|
4899
|
+
const { WorkCommandError } = await import('./work-cmd-GPLYLWY7.js');
|
|
4901
4900
|
try {
|
|
4902
4901
|
await runWorkLogs(opts);
|
|
4903
4902
|
} catch (err) {
|
|
@@ -4920,8 +4919,8 @@ item is not built again until a new build request. Exits 1 when no host
|
|
|
4920
4919
|
build is running for the item.
|
|
4921
4920
|
`
|
|
4922
4921
|
).action(async (opts) => {
|
|
4923
|
-
const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-
|
|
4924
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4922
|
+
const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-7M7ZYUN2.js');
|
|
4923
|
+
const { WorkCommandError } = await import('./work-cmd-GPLYLWY7.js');
|
|
4925
4924
|
try {
|
|
4926
4925
|
await runWorkStop(opts);
|
|
4927
4926
|
} catch (err) {
|
|
@@ -4942,8 +4941,8 @@ Prints the item's newest live demo record: its artifact id, the commit it was re
|
|
|
4942
4941
|
test file that recorded it. With --json, prints { "demo": null } for an item with no demo.
|
|
4943
4942
|
`
|
|
4944
4943
|
).action(async (opts) => {
|
|
4945
|
-
const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-
|
|
4946
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4944
|
+
const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-SWWI6AGD.js');
|
|
4945
|
+
const { WorkCommandError } = await import('./work-cmd-GPLYLWY7.js');
|
|
4947
4946
|
try {
|
|
4948
4947
|
await runWorkDemo(opts);
|
|
4949
4948
|
} catch (err) {
|
|
@@ -4964,7 +4963,7 @@ deletes anything \u2014 the item is removed from Work only once no
|
|
|
4964
4963
|
live addition remains on it.
|
|
4965
4964
|
`
|
|
4966
4965
|
).action(async (opts) => {
|
|
4967
|
-
const { runWorkRemove, WorkCommandError } = await import('./work-cmd-
|
|
4966
|
+
const { runWorkRemove, WorkCommandError } = await import('./work-cmd-GPLYLWY7.js');
|
|
4968
4967
|
try {
|
|
4969
4968
|
await runWorkRemove(opts);
|
|
4970
4969
|
} catch (err) {
|
|
@@ -4976,7 +4975,7 @@ live addition remains on it.
|
|
|
4976
4975
|
}
|
|
4977
4976
|
});
|
|
4978
4977
|
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) => {
|
|
4979
|
-
const { runWorkStatus, WorkCommandError } = await import('./work-cmd-
|
|
4978
|
+
const { runWorkStatus, WorkCommandError } = await import('./work-cmd-GPLYLWY7.js');
|
|
4980
4979
|
try {
|
|
4981
4980
|
await runWorkStatus(opts);
|
|
4982
4981
|
} catch (err) {
|
|
@@ -5021,11 +5020,11 @@ differs from HEAD.
|
|
|
5021
5020
|
fail(trackerNumberError("--pr", opts.pr));
|
|
5022
5021
|
return;
|
|
5023
5022
|
}
|
|
5024
|
-
const { runWorkProofsCommand } = await import('./work-proofs-cmd-
|
|
5023
|
+
const { runWorkProofsCommand } = await import('./work-proofs-cmd-QXNPHLYC.js');
|
|
5025
5024
|
await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
|
|
5026
5025
|
});
|
|
5027
5026
|
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) => {
|
|
5028
|
-
const { runWorkList, WorkCommandError } = await import('./work-cmd-
|
|
5027
|
+
const { runWorkList, WorkCommandError } = await import('./work-cmd-GPLYLWY7.js');
|
|
5029
5028
|
try {
|
|
5030
5029
|
await runWorkList(opts);
|
|
5031
5030
|
} catch (err) {
|
|
@@ -5046,7 +5045,7 @@ by a different key is refused; claiming again with the same key extends
|
|
|
5046
5045
|
it. --host is a label only.
|
|
5047
5046
|
`
|
|
5048
5047
|
).action(async (opts) => {
|
|
5049
|
-
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-
|
|
5048
|
+
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-6DSPGCZE.js');
|
|
5050
5049
|
try {
|
|
5051
5050
|
await runWorkClaim(opts);
|
|
5052
5051
|
} catch (err) {
|
|
@@ -5066,7 +5065,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
|
|
|
5066
5065
|
lease has expired, or a 403 if a different key holds it.
|
|
5067
5066
|
`
|
|
5068
5067
|
).action(async (opts) => {
|
|
5069
|
-
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-
|
|
5068
|
+
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-6DSPGCZE.js');
|
|
5070
5069
|
try {
|
|
5071
5070
|
await runWorkRenew(opts);
|
|
5072
5071
|
} catch (err) {
|
|
@@ -5098,7 +5097,7 @@ applies to a host's lease only. A later tool call in the session
|
|
|
5098
5097
|
takes the lease again.
|
|
5099
5098
|
`
|
|
5100
5099
|
).action(async (opts) => {
|
|
5101
|
-
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-
|
|
5100
|
+
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-6DSPGCZE.js');
|
|
5102
5101
|
try {
|
|
5103
5102
|
await runWorkRelease(opts);
|
|
5104
5103
|
} catch (err) {
|
|
@@ -5125,7 +5124,7 @@ Idempotent: declaring the same pull request twice is a no-op.
|
|
|
5125
5124
|
needs your own login; an agent session or a factory key is refused.
|
|
5126
5125
|
`
|
|
5127
5126
|
).action(async (number, opts) => {
|
|
5128
|
-
const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-
|
|
5127
|
+
const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-EI2R4FQG.js');
|
|
5129
5128
|
try {
|
|
5130
5129
|
await runWorkPr({ ...opts, number });
|
|
5131
5130
|
} catch (err) {
|
|
@@ -5150,8 +5149,8 @@ login, then declares the pull request on the item, as \`work pr\` does.
|
|
|
5150
5149
|
Run it again after a change to the title or description.
|
|
5151
5150
|
`
|
|
5152
5151
|
).action(async (opts) => {
|
|
5153
|
-
const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-
|
|
5154
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
5152
|
+
const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-HX2U3YBR.js');
|
|
5153
|
+
const { WorkCommandError } = await import('./work-cmd-GPLYLWY7.js');
|
|
5155
5154
|
try {
|
|
5156
5155
|
await runWorkOpenPr(opts);
|
|
5157
5156
|
} catch (err) {
|
|
@@ -5167,9 +5166,9 @@ function registerRunnerCommands(program2) {
|
|
|
5167
5166
|
const runnerCmd = program2.command("runner").description("Take work from the implement and amend queues on this machine");
|
|
5168
5167
|
const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
|
|
5169
5168
|
runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
|
|
5170
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5171
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5172
|
-
const { RunnerAlreadyRunningError } = await import('./pidfile-
|
|
5169
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-WYQPXLOP.js');
|
|
5170
|
+
const { start, RunnerStartError } = await import('./loop-2E34CGCX.js');
|
|
5171
|
+
const { RunnerAlreadyRunningError } = await import('./pidfile-5GDCQ5HA.js');
|
|
5173
5172
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5174
5173
|
try {
|
|
5175
5174
|
const { realUpdateDeps } = await import('./real-deps-QX5YH7FG.js');
|
|
@@ -5186,10 +5185,10 @@ function registerRunnerCommands(program2) {
|
|
|
5186
5185
|
"after",
|
|
5187
5186
|
"\nReads OUTERLAYER_URL, OUTERLAYER_APP_ID, OUTERLAYER_API_KEY, OUTERLAYER_RUNNER_NAME and one Claude credential\n(CLAUDE_CODE_OAUTH_TOKEN or ANTHROPIC_API_KEY) from the environment. OUTERLAYER_AGENT\nis optional and defaults to claude. On a later start it refuses variables that disagree with the config in the volume.\nThe image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use `runner start`.\n"
|
|
5188
5187
|
).action(async () => {
|
|
5189
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5190
|
-
const { containerStart } = await import('./container-start-
|
|
5191
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5192
|
-
const { RunnerAlreadyRunningError } = await import('./pidfile-
|
|
5188
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-WYQPXLOP.js');
|
|
5189
|
+
const { containerStart } = await import('./container-start-T776VI3M.js');
|
|
5190
|
+
const { start, RunnerStartError } = await import('./loop-2E34CGCX.js');
|
|
5191
|
+
const { RunnerAlreadyRunningError } = await import('./pidfile-5GDCQ5HA.js');
|
|
5193
5192
|
try {
|
|
5194
5193
|
const result = await containerStart({
|
|
5195
5194
|
env: process.env,
|
|
@@ -5210,16 +5209,16 @@ function registerRunnerCommands(program2) {
|
|
|
5210
5209
|
"after",
|
|
5211
5210
|
"\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"
|
|
5212
5211
|
).action(async (opts) => {
|
|
5213
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5214
|
-
const { runnerDir } = await import('./paths-
|
|
5215
|
-
const { runUpdateSteps } = await import('./update-steps-
|
|
5212
|
+
const { defaultRunnerConfigPath } = await import('./config-WYQPXLOP.js');
|
|
5213
|
+
const { runnerDir } = await import('./paths-O7LCWY33.js');
|
|
5214
|
+
const { runUpdateSteps } = await import('./update-steps-7E4RD47J.js');
|
|
5216
5215
|
const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
|
|
5217
5216
|
process.stdout.write(`${text}
|
|
5218
5217
|
`);
|
|
5219
5218
|
});
|
|
5220
5219
|
runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
|
|
5221
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5222
|
-
const { runRunnerCheck } = await import('./check-
|
|
5220
|
+
const { defaultRunnerConfigPath } = await import('./config-WYQPXLOP.js');
|
|
5221
|
+
const { runRunnerCheck } = await import('./check-SF2OVZXB.js');
|
|
5223
5222
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5224
5223
|
const result = await runRunnerCheck(configPath);
|
|
5225
5224
|
if (!result.ok) {
|
|
@@ -5240,8 +5239,8 @@ function registerRunnerCommands(program2) {
|
|
|
5240
5239
|
`);
|
|
5241
5240
|
});
|
|
5242
5241
|
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) => {
|
|
5243
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5244
|
-
const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-
|
|
5242
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-WYQPXLOP.js');
|
|
5243
|
+
const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-SJMBNQEH.js');
|
|
5245
5244
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5246
5245
|
if (opts.service !== true) {
|
|
5247
5246
|
const names = { print: "print", user: "user", unitName: "unit-name", buildMemoryMax: "build-memory-max", buildCpusMax: "build-cpus-max" };
|
|
@@ -5253,13 +5252,13 @@ function registerRunnerCommands(program2) {
|
|
|
5253
5252
|
}
|
|
5254
5253
|
}
|
|
5255
5254
|
const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
|
|
5256
|
-
if (buildCpusMax !== void 0 && !(await import('./command-
|
|
5255
|
+
if (buildCpusMax !== void 0 && !(await import('./command-45RZT4CK.js')).cpusAreValid(buildCpusMax)) {
|
|
5257
5256
|
fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
|
|
5258
5257
|
return;
|
|
5259
5258
|
}
|
|
5260
5259
|
try {
|
|
5261
5260
|
if (opts.service === true) {
|
|
5262
|
-
const { installServiceCommand } = await import('./command-
|
|
5261
|
+
const { installServiceCommand } = await import('./command-45RZT4CK.js');
|
|
5263
5262
|
const result2 = await installServiceCommand({
|
|
5264
5263
|
configPath,
|
|
5265
5264
|
print: opts.print,
|
|
@@ -5316,8 +5315,8 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
|
|
|
5316
5315
|
fail(`pass --service: \`${cliInvocation()} runner uninstall --service\` removes the runner's service.`);
|
|
5317
5316
|
return;
|
|
5318
5317
|
}
|
|
5319
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5320
|
-
const { uninstallServiceCommand } = await import('./command-
|
|
5318
|
+
const { defaultRunnerConfigPath } = await import('./config-WYQPXLOP.js');
|
|
5319
|
+
const { uninstallServiceCommand } = await import('./command-45RZT4CK.js');
|
|
5321
5320
|
const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
|
|
5322
5321
|
if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
|
|
5323
5322
|
`);
|
|
@@ -5344,12 +5343,12 @@ already in claude.env is used.
|
|
|
5344
5343
|
printf '%s' "$CLAUDE_CODE_OAUTH_TOKEN" | ${cliInvocation()} runner init --agent claude --factory <org>/<factory>
|
|
5345
5344
|
`
|
|
5346
5345
|
).action(async (opts) => {
|
|
5347
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5348
|
-
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-
|
|
5349
|
-
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-
|
|
5350
|
-
const { detectMachine } = await import('./machine-
|
|
5351
|
-
const { chooseVm, runVmInit, VmInitError } = await import('./init-
|
|
5352
|
-
const { AGENT_COMMANDS, credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-
|
|
5346
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-WYQPXLOP.js');
|
|
5347
|
+
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-EZIAHBMH.js');
|
|
5348
|
+
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-VM2LYVRK.js');
|
|
5349
|
+
const { detectMachine } = await import('./machine-6ALGG4IO.js');
|
|
5350
|
+
const { chooseVm, runVmInit, VmInitError } = await import('./init-LO6U7YTW.js');
|
|
5351
|
+
const { AGENT_COMMANDS, credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-KHCONH2R.js');
|
|
5353
5352
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5354
5353
|
if (opts.agent !== void 0 && !isAgentName(opts.agent)) {
|
|
5355
5354
|
fail(`--agent ${opts.agent}: runner init writes commands for ${Object.keys(AGENT_COMMANDS).join(", ")}. For another agent, leave --agent out and edit runner.commands.`);
|
|
@@ -5380,7 +5379,7 @@ already in claude.env is used.
|
|
|
5380
5379
|
const chunks = [];
|
|
5381
5380
|
for await (const chunk of process.stdin) chunks.push(Buffer.from(chunk));
|
|
5382
5381
|
const result2 = runRunnerInit(configPath, { machine, configFromStdin: Buffer.concat(chunks).toString("utf8"), requireContainer: true });
|
|
5383
|
-
const { ensureHostKey: ensureHostKey2 } = await import('./host-key-
|
|
5382
|
+
const { ensureHostKey: ensureHostKey2 } = await import('./host-key-MWLXB5U5.js');
|
|
5384
5383
|
const hostKey2 = await ensureHostKey2(configPath);
|
|
5385
5384
|
process.stdout.write(`host key ${hostKey2.fingerprint}
|
|
5386
5385
|
hooks: ${result2.hooks}
|
|
@@ -5439,7 +5438,7 @@ hooks: ${result2.hooks}
|
|
|
5439
5438
|
const prepared = prepareRunnerInit(configPath, { machine, allowProcess, agent, credential, keyFromLogin: makeKey !== void 0 });
|
|
5440
5439
|
const created = makeKey === void 0 ? void 0 : await makeKey();
|
|
5441
5440
|
const result = writeRunnerInit(prepared, created);
|
|
5442
|
-
const { ensureHostKey } = await import('./host-key-
|
|
5441
|
+
const { ensureHostKey } = await import('./host-key-MWLXB5U5.js');
|
|
5443
5442
|
const hostKey = await ensureHostKey(configPath);
|
|
5444
5443
|
if (created !== void 0) {
|
|
5445
5444
|
process.stdout.write(`${C.green}\u2713${C.reset} saved the runner key in ${result.configPath}
|
|
@@ -5467,7 +5466,7 @@ ${C.yellow}${result.note}${C.reset}
|
|
|
5467
5466
|
To isolate builds in containers instead, run ${C.yellow}${cliInvocation()} runner init --vm${C.reset}.
|
|
5468
5467
|
`);
|
|
5469
5468
|
}
|
|
5470
|
-
const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-
|
|
5469
|
+
const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-SJMBNQEH.js');
|
|
5471
5470
|
let installedLayout = false;
|
|
5472
5471
|
let noService = "it starts the runner from the install layout, which needs a CLI installed with npm";
|
|
5473
5472
|
try {
|
|
@@ -5499,7 +5498,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
|
|
|
5499
5498
|
let serviceUp = false;
|
|
5500
5499
|
let restart;
|
|
5501
5500
|
if (installedLayout) {
|
|
5502
|
-
const { installServiceCommand } = await import('./command-
|
|
5501
|
+
const { installServiceCommand } = await import('./command-45RZT4CK.js');
|
|
5503
5502
|
const service = await installServiceCommand({
|
|
5504
5503
|
configPath,
|
|
5505
5504
|
entryPath: process.argv[1] ?? "",
|
|
@@ -5543,12 +5542,12 @@ Next:
|
|
|
5543
5542
|
"after",
|
|
5544
5543
|
"\nA repository governed by a control plane builds the control plane's image, at the commit\nthe gateway has stored for it. A repository that governs itself fetches the head of its\ndefault branch into the runner's cache. Either way it reads .devcontainer/devcontainer.json\nand builds the image with the devcontainer CLI. Settings\nthat reach the host or widen the container's privileges are ignored and listed. The\nimage holds this CLI and a pinned Claude Code. Nothing runs inside the image.\nA repository with no devcontainer file builds on the universal image the CLI pins by digest.\n"
|
|
5545
5544
|
).action(async (opts) => {
|
|
5546
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5547
|
-
const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-
|
|
5545
|
+
const { defaultRunnerConfigPath } = await import('./config-WYQPXLOP.js');
|
|
5546
|
+
const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-THAD3B4Q.js');
|
|
5548
5547
|
const { currentCliBuild } = await import('./cli-build-K56DK4DS.js');
|
|
5549
|
-
const { createDockerHost } = await import('./docker-
|
|
5550
|
-
const { builderSpec } = await import('./builder-
|
|
5551
|
-
const { loadRunnerConfig } = await import('./config-
|
|
5548
|
+
const { createDockerHost } = await import('./docker-MQNLK4OO.js');
|
|
5549
|
+
const { builderSpec } = await import('./builder-AXJNIF4S.js');
|
|
5550
|
+
const { loadRunnerConfig } = await import('./config-WYQPXLOP.js');
|
|
5552
5551
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5553
5552
|
const loaded = (() => {
|
|
5554
5553
|
try {
|
|
@@ -5559,12 +5558,12 @@ Next:
|
|
|
5559
5558
|
})();
|
|
5560
5559
|
const memory = loaded?.build?.memory ?? "8g";
|
|
5561
5560
|
try {
|
|
5562
|
-
const { ensureRunnerIdentity } = await import('./runner-identity-
|
|
5561
|
+
const { ensureRunnerIdentity } = await import('./runner-identity-PSCZBILD.js');
|
|
5563
5562
|
await ensureRunnerIdentity(configPath, { log: (line) => console.error(line) }).catch((err) => {
|
|
5564
5563
|
console.error(`the runner's Docker identity could not be stored: ${err instanceof Error ? err.message : String(err)}`);
|
|
5565
5564
|
});
|
|
5566
|
-
const { imageTargetFor } = await import('./governing-source-
|
|
5567
|
-
const { runnerCalls } = await import('./caller-
|
|
5565
|
+
const { imageTargetFor } = await import('./governing-source-XJMXFSAR.js');
|
|
5566
|
+
const { runnerCalls } = await import('./caller-GOY2X6QT.js');
|
|
5568
5567
|
const target = await imageTargetFor({ config: loaded === void 0 || loaded.fleet === true ? void 0 : runnerCalls(loaded), repository: opts.repository, fetchImpl: fetch });
|
|
5569
5568
|
if (!target.ok) {
|
|
5570
5569
|
if (opts.json) {
|
|
@@ -5628,25 +5627,25 @@ Next:
|
|
|
5628
5627
|
}
|
|
5629
5628
|
});
|
|
5630
5629
|
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) => {
|
|
5631
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5632
|
-
const { requestStop } = await import('./loop-
|
|
5630
|
+
const { defaultRunnerConfigPath } = await import('./config-WYQPXLOP.js');
|
|
5631
|
+
const { requestStop } = await import('./loop-2E34CGCX.js');
|
|
5633
5632
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5634
|
-
const { runnerImageVersion } = await import('./image-tag-
|
|
5633
|
+
const { runnerImageVersion } = await import('./image-tag-E4JK2APF.js');
|
|
5635
5634
|
await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
|
|
5636
5635
|
});
|
|
5637
5636
|
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) => {
|
|
5638
|
-
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-
|
|
5639
|
-
const { jobsDir, runnerDir } = await import('./paths-
|
|
5640
|
-
const { listJobFiles, runnerProcessState } = await import('./loop-
|
|
5641
|
-
const { renderStatus } = await import('./status-
|
|
5642
|
-
const { readHousekeepingRecord } = await import('./record-
|
|
5637
|
+
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-WYQPXLOP.js');
|
|
5638
|
+
const { jobsDir, runnerDir } = await import('./paths-O7LCWY33.js');
|
|
5639
|
+
const { listJobFiles, runnerProcessState } = await import('./loop-2E34CGCX.js');
|
|
5640
|
+
const { renderStatus } = await import('./status-HEHCNIDS.js');
|
|
5641
|
+
const { readHousekeepingRecord } = await import('./record-NETSDAO6.js');
|
|
5643
5642
|
const path2 = await import('path');
|
|
5644
5643
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5645
5644
|
const all = listJobFiles(configPath);
|
|
5646
5645
|
const housekeeping = readHousekeepingRecord(runnerDir(configPath));
|
|
5647
|
-
const { readPendingUpdate } = await import('./pending-
|
|
5646
|
+
const { readPendingUpdate } = await import('./pending-YU2GE2UV.js');
|
|
5648
5647
|
const pendingUpdate = readPendingUpdate(runnerDir(configPath));
|
|
5649
|
-
const { readImageStatus } = await import('./image-tag-
|
|
5648
|
+
const { readImageStatus } = await import('./image-tag-E4JK2APF.js');
|
|
5650
5649
|
const image = readImageStatus(runnerDir(configPath));
|
|
5651
5650
|
let host = "unknown";
|
|
5652
5651
|
let concurrency = 1;
|
|
@@ -5656,7 +5655,7 @@ Next:
|
|
|
5656
5655
|
host = config.host;
|
|
5657
5656
|
concurrency = config.concurrency;
|
|
5658
5657
|
if (config.fleet === true) {
|
|
5659
|
-
const { readFleetState } = await import('./state-
|
|
5658
|
+
const { readFleetState } = await import('./state-RJR4PMMX.js');
|
|
5660
5659
|
fleet = { state: readFleetState(configPath) };
|
|
5661
5660
|
}
|
|
5662
5661
|
} catch {
|
|
@@ -5664,7 +5663,7 @@ Next:
|
|
|
5664
5663
|
const processState = runnerProcessState(configPath);
|
|
5665
5664
|
const service = await (async () => {
|
|
5666
5665
|
if (process.platform !== "linux" || !existsSync("/run/systemd/system")) return void 0;
|
|
5667
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
5666
|
+
const { inspectRunnerService } = await import('./find-unit-63SXQ7IM.js');
|
|
5668
5667
|
const facts = inspectRunnerService(configPath);
|
|
5669
5668
|
return facts === void 0 ? void 0 : { unit: facts.unit, running: facts.mainPid !== void 0, delegated: facts.delegate };
|
|
5670
5669
|
})();
|
|
@@ -5703,9 +5702,9 @@ Next:
|
|
|
5703
5702
|
);
|
|
5704
5703
|
});
|
|
5705
5704
|
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) => {
|
|
5706
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5707
|
-
const { listJobFiles } = await import('./loop-
|
|
5708
|
-
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-
|
|
5705
|
+
const { defaultRunnerConfigPath } = await import('./config-WYQPXLOP.js');
|
|
5706
|
+
const { listJobFiles } = await import('./loop-2E34CGCX.js');
|
|
5707
|
+
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-NE55HOET.js');
|
|
5709
5708
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5710
5709
|
const jobs = listJobFiles(configPath);
|
|
5711
5710
|
const selected = selectAttempt(jobs, itemArg);
|
|
@@ -5916,7 +5915,7 @@ Self-host deployments also need --app-id: without a key service to resolve the
|
|
|
5916
5915
|
caller from the bearer token, the gateway answers 401 without that header.
|
|
5917
5916
|
`
|
|
5918
5917
|
).action(async (opts) => {
|
|
5919
|
-
const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-
|
|
5918
|
+
const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-2QAS3AQZ.js');
|
|
5920
5919
|
try {
|
|
5921
5920
|
if (opts.transport !== void 0 && opts.transport !== "stdio" && opts.transport !== "http") {
|
|
5922
5921
|
throw new McpInstallError(`--transport must be "stdio" or "http", got "${opts.transport}"`);
|
|
@@ -5938,7 +5937,7 @@ caller from the bearer token, the gateway answers 401 without that header.
|
|
|
5938
5937
|
"after",
|
|
5939
5938
|
"\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"
|
|
5940
5939
|
).action(async (opts) => {
|
|
5941
|
-
const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-
|
|
5940
|
+
const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-U6USKHYR.js');
|
|
5942
5941
|
try {
|
|
5943
5942
|
await runMcpServe({ url: opts.url, appId: opts.appId });
|
|
5944
5943
|
} catch (err) {
|
|
@@ -5959,7 +5958,7 @@ would get, the instruction files and the names of the skills. It warns when the
|
|
|
5959
5958
|
no \`build\`. It needs the context-read permission: a login or a factory key with it is enough.
|
|
5960
5959
|
`
|
|
5961
5960
|
).action(async (opts) => {
|
|
5962
|
-
const { runContextShow, ContextShowError } = await import('./context-show-cmd-
|
|
5961
|
+
const { runContextShow, ContextShowError } = await import('./context-show-cmd-7QEHUOEL.js');
|
|
5963
5962
|
try {
|
|
5964
5963
|
const result = await runContextShow({ repo: opts.repo, json: opts.json, url: opts.url, apiKey: opts.apiKey, appId: opts.appId });
|
|
5965
5964
|
process.stdout.write(result.output);
|