@outerlayer/cli 0.38.0-next.20261111004457 → 0.38.0-next.20261111030822
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/{agent-setup-OU7CGYSN.js → agent-setup-T2VITZUY.js} +9 -9
- package/dist/{agent-subcommand-GG4PSHYT.js → agent-subcommand-KV3JO5YD.js} +1 -1
- package/dist/{bridge-MVW5RNQD.js → bridge-7MCKZXCR.js} +4 -4
- package/dist/{build-D4Y3LBPO.js → build-N2MRLYFW.js} +10 -10
- package/dist/{build-disk-VDMWH3C3.js → build-disk-IJZYZ2K5.js} +8 -8
- package/dist/build-info.json +1 -1
- package/dist/{builder-6L5ZMXBE.js → builder-ATKIRCDJ.js} +7 -7
- package/dist/{caller-FFSXVMLB.js → caller-OWXJDYPI.js} +10 -10
- package/dist/{check-U5DOQU64.js → check-F7RN65GG.js} +40 -40
- package/dist/{chunk-IWJFARST.js → chunk-2FUJ5PSV.js} +1 -1
- package/dist/{chunk-EKV7QATX.js → chunk-2PRDLE4L.js} +1 -1
- package/dist/{chunk-IZHI643L.js → chunk-3VEPVZV4.js} +5 -5
- package/dist/{chunk-3IL6H7A4.js → chunk-4HUYH65P.js} +1 -1
- package/dist/{chunk-4S6ML2YX.js → chunk-4YAFIOIV.js} +17 -2
- package/dist/{chunk-GELUV567.js → chunk-5NJ367OD.js} +2 -2
- package/dist/{chunk-R6UNNKV3.js → chunk-64ROJ5LD.js} +1 -1
- package/dist/{chunk-5U4IKVF5.js → chunk-6T2X2JI6.js} +3 -3
- package/dist/{chunk-7ILAGC3U.js → chunk-6U3UTAWQ.js} +1 -1
- package/dist/{chunk-WVJDXOIG.js → chunk-7G2HRTSG.js} +3 -3
- package/dist/{chunk-2PYQ6BZJ.js → chunk-7HYXJVU6.js} +1 -1
- package/dist/{chunk-X7BVDOS2.js → chunk-7LWASV77.js} +3 -3
- package/dist/{chunk-MX5XVAOI.js → chunk-7U43B2UB.js} +1 -1
- package/dist/{chunk-JASHMKDN.js → chunk-AB4GMYIH.js} +1 -1
- package/dist/{chunk-NBJPY3OC.js → chunk-ASCXEXYJ.js} +5 -5
- package/dist/{chunk-UF3X5ECJ.js → chunk-BY2YRJSC.js} +2 -2
- package/dist/{chunk-U43K2JS5.js → chunk-ECMQNH2H.js} +2 -2
- package/dist/{chunk-YWQ3S3F5.js → chunk-EWGHEMEO.js} +2 -2
- package/dist/{chunk-F5ONFHHU.js → chunk-FB2UT5XA.js} +31 -27
- package/dist/{chunk-BZSGU2WC.js → chunk-FT5NDSSG.js} +4 -4
- package/dist/{chunk-MV5WJEIB.js → chunk-GGKXYHT5.js} +2 -2
- package/dist/{chunk-7NRULS6C.js → chunk-GPP5EZV7.js} +3 -3
- package/dist/{chunk-2ZPXDOCU.js → chunk-I5C667TJ.js} +9 -9
- package/dist/{chunk-QB5MU2WS.js → chunk-IB2UHXZ7.js} +2 -2
- package/dist/{chunk-EN3OWMED.js → chunk-ICW75TS5.js} +4 -4
- package/dist/{chunk-CKA4JQKR.js → chunk-IEX5FXEU.js} +2 -2
- package/dist/{chunk-OZDUVL5L.js → chunk-JPAO6HRN.js} +2 -2
- package/dist/{chunk-DDEJP7YT.js → chunk-K6KUWUUT.js} +1 -1
- package/dist/{chunk-JNEK36QK.js → chunk-KGJAYD7F.js} +1239 -1100
- package/dist/{chunk-OWBNADRQ.js → chunk-KM2IMFAG.js} +1 -1
- package/dist/{chunk-3AHABZMA.js → chunk-LXREVZX7.js} +2 -2
- package/dist/{chunk-A6CCWLUP.js → chunk-M5DYOU5G.js} +3 -3
- package/dist/{chunk-YE3KPAT5.js → chunk-MPF7CVQM.js} +1 -1
- package/dist/{chunk-W5OAKC2W.js → chunk-NC6HUEMI.js} +9 -9
- package/dist/{chunk-P5XX7VZ6.js → chunk-NWSKP5VI.js} +2 -2
- package/dist/{chunk-4JKCTCCC.js → chunk-O53PVAUY.js} +4 -4
- package/dist/{chunk-D7OVS2LL.js → chunk-OBSWWJJ3.js} +1 -1
- package/dist/{chunk-ONZNFKCH.js → chunk-OBXRHBOM.js} +2 -2
- package/dist/{chunk-JP5D37RZ.js → chunk-PP7MPUX7.js} +3 -3
- package/dist/{chunk-JPO6RJEW.js → chunk-QM3M7QN3.js} +1 -1
- package/dist/{chunk-JRM35NTG.js → chunk-R35KRBTS.js} +5 -5
- package/dist/{chunk-NIQXLC6A.js → chunk-R7BS36HP.js} +1 -1
- package/dist/{chunk-J3KW7GPE.js → chunk-REZNW2YV.js} +6 -6
- package/dist/{chunk-LNTNFSRI.js → chunk-RPIYENP2.js} +2 -2
- package/dist/{chunk-6Z5AC4ZK.js → chunk-T5CN56UE.js} +1 -1
- package/dist/{chunk-WWGXWKLT.js → chunk-U5YHNSSI.js} +5 -5
- package/dist/{chunk-DNCF3XOC.js → chunk-W2H6JURI.js} +3 -3
- package/dist/{chunk-BYWVHMBR.js → chunk-XMIL73Y2.js} +1 -1
- package/dist/{chunk-JDXYBQBZ.js → chunk-XSVZFWZ4.js} +7 -7
- package/dist/{chunk-ZNQRFRBW.js → chunk-YFMVZBLO.js} +5 -5
- package/dist/{chunk-NCPZP6PQ.js → chunk-YFQIK6LZ.js} +7 -7
- package/dist/{chunk-5TODASD5.js → chunk-YI2XPK7A.js} +1 -1
- package/dist/{chunk-RI37FFPL.js → chunk-ZGCIFD5Y.js} +2 -2
- package/dist/{claude-launcher-GNRTFQMI.js → claude-launcher-ZC664P33.js} +1 -1
- package/dist/{cli-SNHD2D6X.js → cli-GXIDG2NL.js} +141 -131
- package/dist/{command-NTKAT7KB.js → command-D656K4AE.js} +35 -35
- package/dist/{config-LUIWZESD.js → config-U2OR7MQW.js} +9 -9
- package/dist/{connect-cmd-4M4DN6GO.js → connect-cmd-73BBTTU5.js} +7 -7
- package/dist/{container-start-BVEDUA7N.js → container-start-JFJYC4GQ.js} +33 -33
- package/dist/{context-show-cmd-DAMQJOAL.js → context-show-cmd-ETWKBHXZ.js} +8 -8
- package/dist/{control-plane-launch-SD45JYKF.js → control-plane-launch-JOH7FS5U.js} +7 -7
- package/dist/{demo-record-cmd-CFOXCR42.js → demo-record-cmd-GBHPIYJA.js} +5 -5
- package/dist/{demo-voice-cmd-4YZJPUIP.js → demo-voice-cmd-GUYFA2NG.js} +13 -13
- package/dist/{docker-2DLKQOK3.js → docker-RC4CFNKI.js} +7 -7
- package/dist/{doctor-VFCDAKM4.js → doctor-TW6VREAT.js} +35 -35
- package/dist/{emit-artifact-cmd-IWZDXJBY.js → emit-artifact-cmd-CQLCPM4R.js} +12 -12
- package/dist/{emit-criteria-cmd-UVCLLYEZ.js → emit-criteria-cmd-VM7AO3E3.js} +9 -9
- package/dist/{emit-demo-cmd-BHKNT36Y.js → emit-demo-cmd-3NSODQTO.js} +13 -13
- package/dist/{emit-finding-cmd-Y3XX26B4.js → emit-finding-cmd-4CRLSMOK.js} +9 -9
- package/dist/{emit-result-cmd-TTQ3MLY4.js → emit-result-cmd-GM43QMCM.js} +11 -11
- package/dist/{emit-step-cmd-EASDIM5Q.js → emit-step-cmd-J7KS2QXL.js} +9 -9
- package/dist/{exec-client-MEIRWXLR.js → exec-client-DY7673SD.js} +5 -5
- package/dist/find-unit-ZVHHFTL2.js +24 -0
- package/dist/{findings-cmd-KQOL6NJG.js → findings-cmd-25F44AB4.js} +9 -9
- package/dist/{fleet-readiness-R2BMWLXQ.js → fleet-readiness-Z4C6W7XN.js} +7 -7
- package/dist/{governing-source-ARSS7R7L.js → governing-source-IURJZXUR.js} +11 -11
- package/dist/{guest-init-UGBFOWNC.js → guest-init-4B5MMXIQ.js} +6 -6
- package/dist/{hook-fast-DC556GE2.js → hook-fast-LB3VTEIW.js} +1 -1
- package/dist/{host-checks-UTZBDSWV.js → host-checks-AQTZ7IKK.js} +31 -31
- package/dist/{pending-COVCIH4Q.js → host-key-ZWMN7VIH.js} +5 -5
- package/dist/{image-tag-RU4RHPIT.js → image-tag-4DKLSTO6.js} +5 -5
- package/dist/index.js +4 -4
- package/dist/{init-I5HVGOQC.js → init-P2PDGLTU.js} +31 -31
- package/dist/{init-QFTRSBBT.js → init-XYFDIEOA.js} +31 -31
- package/dist/{init-agent-TKQ67BS4.js → init-agent-EGNFBPM5.js} +31 -31
- package/dist/{init-cmd-I36LJ6YC.js → init-cmd-C2I22ZJA.js} +12 -12
- package/dist/{init-update-KG7V3VJF.js → init-update-H4LSR7H4.js} +10 -10
- package/dist/{install-cmd-66Z7TY52.js → install-cmd-BI4C3MGF.js} +7 -7
- package/dist/{logs-XWMVEAUP.js → logs-7DD6J3M6.js} +4 -4
- package/dist/{loop-YCOSJRLW.js → loop-KEGBBAV4.js} +39 -39
- package/dist/{machine-BJEAYCHT.js → machine-JK27TGT6.js} +31 -31
- package/dist/{mcp-serve-cmd-M7CX4RO3.js → mcp-serve-cmd-HK2ODMHU.js} +6 -6
- package/dist/{paths-GQ66KHNT.js → paths-EHWU5QWB.js} +4 -4
- package/dist/{host-key-CTRFLP2W.js → pending-K4A23JIC.js} +5 -5
- package/dist/{pidfile-RBG6FQ7K.js → pidfile-PG3L2CVV.js} +5 -5
- package/dist/{record-6IAZ26H3.js → record-PXCRTDQU.js} +5 -5
- package/dist/{relay-VEBGGPYV.js → relay-2MJY25BV.js} +2 -2
- package/dist/{relay-protocol-2AJCUAMJ.js → relay-protocol-VBCRA347.js} +2 -2
- package/dist/{run-cmd-EJPHCENL.js → run-cmd-F7ANZPSX.js} +9 -9
- package/dist/{runner-agents-P562WZJB.js → runner-agents-HZ5FIFPU.js} +1 -1
- package/dist/{runner-env-XPZ3FPQL.js → runner-env-5AM2XYEN.js} +11 -11
- package/dist/{runner-identity-TAJAY5M5.js → runner-identity-CL2KMFGC.js} +7 -7
- package/dist/{runner-key-I3M7GEJE.js → runner-key-CJ66VZE3.js} +31 -31
- package/dist/{session-sender-OIOE4QR2.js → session-sender-RSAHCLL6.js} +12 -12
- package/dist/{spec-cmd-2J43XP3L.js → spec-cmd-ED6DKB54.js} +10 -10
- package/dist/{state-NAZKB77R.js → state-MV53BATE.js} +5 -5
- package/dist/{status-BFRDAZQP.js → status-CZTCYZLU.js} +31 -31
- package/dist/{sync-cmd-KWTFVQCR.js → sync-cmd-PQZD77PE.js} +11 -11
- package/dist/{update-steps-LINCNPGV.js → update-steps-DCFEKNW2.js} +32 -32
- package/dist/{watch-3IBFF2SQ.js → watch-FAQXAAUA.js} +11 -11
- package/dist/{work-claim-cmd-C2WFSOKE.js → work-claim-cmd-XPXHRV74.js} +15 -15
- package/dist/{work-cmd-DO2QNBKA.js → work-cmd-ME7DWBI6.js} +9 -9
- package/dist/{work-comment-cmd-P5VJHCX7.js → work-comment-cmd-ZT4O56QR.js} +11 -11
- package/dist/{work-demo-cmd-UJBZLOMQ.js → work-demo-cmd-YV22MZXG.js} +9 -9
- package/dist/{work-logs-cmd-OVE5JUMH.js → work-logs-cmd-LUK7THB2.js} +9 -9
- package/dist/{work-needs-attention-cmd-QNCOUXMT.js → work-needs-attention-cmd-KTLWMBJV.js} +9 -9
- package/dist/{work-no-change-cmd-KQSONMJX.js → work-no-change-cmd-TWGW5ZOO.js} +9 -9
- package/dist/{work-open-pr-cmd-HBE74CZU.js → work-open-pr-cmd-VEM5MEUS.js} +10 -10
- package/dist/{work-pr-cmd-62BGKUJM.js → work-pr-cmd-M4G35ZIV.js} +9 -9
- package/dist/{work-proofs-cmd-SLUFPOEN.js → work-proofs-cmd-7EZ4QZUR.js} +10 -10
- package/dist/{work-proofs-record-6KGPMUHD.js → work-proofs-record-AY72YKNC.js} +16 -16
- package/dist/{work-stop-cmd-7WEHA365.js → work-stop-cmd-FX5QTUYJ.js} +9 -9
- package/package.json +1 -1
- package/dist/find-unit-2RZ4NCXQ.js +0 -24
|
@@ -1,28 +1,28 @@
|
|
|
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-
|
|
3
|
+
import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-I5C667TJ.js';
|
|
4
4
|
import './chunk-OUKSF3LK.js';
|
|
5
|
-
import { verifiedTrackerNames, TRACKERS } from './chunk-
|
|
5
|
+
import { verifiedTrackerNames, TRACKERS } from './chunk-YFMVZBLO.js';
|
|
6
6
|
import './chunk-2HLMGVK6.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-ECMQNH2H.js';
|
|
8
|
+
import './chunk-K6KUWUUT.js';
|
|
9
9
|
import './chunk-J4DTF5MN.js';
|
|
10
10
|
import './chunk-HWXBOHEA.js';
|
|
11
11
|
import './chunk-OVJSVC5U.js';
|
|
12
|
-
import './chunk-
|
|
12
|
+
import './chunk-AB4GMYIH.js';
|
|
13
13
|
import './chunk-QHYCF36K.js';
|
|
14
14
|
import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-PG33WPRF.js';
|
|
15
15
|
import './chunk-N3KGXHV4.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
18
|
import './chunk-2KUFDLLY.js';
|
|
19
|
-
import './chunk-
|
|
19
|
+
import './chunk-R7BS36HP.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-KM2IMFAG.js';
|
|
22
|
+
import './chunk-T5CN56UE.js';
|
|
23
|
+
import './chunk-4YAFIOIV.js';
|
|
24
|
+
import './chunk-7U43B2UB.js';
|
|
25
|
+
import { hookFiredMarkerPath, installedCliDistDir } from './chunk-OBSWWJJ3.js';
|
|
26
26
|
import './chunk-545P7JY7.js';
|
|
27
27
|
import './chunk-SF2TBJBP.js';
|
|
28
28
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
@@ -37,7 +37,7 @@ import { cliForInstall, SettingsParseError, PORTABLE_BIN, writeSettingsText, cli
|
|
|
37
37
|
import './chunk-CSFMIUYS.js';
|
|
38
38
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
39
39
|
import { removeJournalHooks, removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
|
|
40
|
-
import { headlessNames, credentialForms, runnerAgentNamed, credentialAgent, runnerAgents, orList, credentialShapes } from './chunk-
|
|
40
|
+
import { headlessNames, credentialForms, runnerAgentNamed, credentialAgent, runnerAgents, orList, credentialShapes } from './chunk-IEX5FXEU.js';
|
|
41
41
|
import { defaultAgents, knownTargetsLine, legacyAgent } from './chunk-G2CRPYFO.js';
|
|
42
42
|
import './chunk-PLVHIQJN.js';
|
|
43
43
|
import './chunk-7PZDPISM.js';
|
|
@@ -3416,9 +3416,19 @@ new Command();
|
|
|
3416
3416
|
function isEphemeralBin(bin) {
|
|
3417
3417
|
return packageRunnerOf(bin) !== void 0;
|
|
3418
3418
|
}
|
|
3419
|
+
var RUNNER_VERSION_BIN = /^(.*)[\\/]versions[\\/][^\\/]+([\\/]node_modules[\\/]@outerlayer[\\/]cli[\\/]dist[\\/]index\.js)$/;
|
|
3420
|
+
function runnerCurrentBin(bin) {
|
|
3421
|
+
const match = RUNNER_VERSION_BIN.exec(bin);
|
|
3422
|
+
if (match === null) return void 0;
|
|
3423
|
+
const viaCurrent = join(match[1], "current") + match[2];
|
|
3424
|
+
return existsSync(viaCurrent) ? viaCurrent : void 0;
|
|
3425
|
+
}
|
|
3419
3426
|
function initHookBin(opts) {
|
|
3420
3427
|
const { runningBin } = opts;
|
|
3421
|
-
if (opts.remove
|
|
3428
|
+
if (opts.remove) return runningBin;
|
|
3429
|
+
const viaCurrent = runnerCurrentBin(runningBin);
|
|
3430
|
+
if (viaCurrent !== void 0) return viaCurrent;
|
|
3431
|
+
if (!isAbsolute(runningBin) || !isEphemeralBin(runningBin) || !existsSync(runningBin)) return runningBin;
|
|
3422
3432
|
return installCliCopy({ home: opts.home, sourceBin: runningBin }).bin;
|
|
3423
3433
|
}
|
|
3424
3434
|
var STALE_FILE_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
@@ -3817,7 +3827,7 @@ async function installMachineSkillsForSetup() {
|
|
|
3817
3827
|
` : "";
|
|
3818
3828
|
}
|
|
3819
3829
|
async function realConnectDepsForCwd() {
|
|
3820
|
-
const { realConnectDeps } = await import('./connect-cmd-
|
|
3830
|
+
const { realConnectDeps } = await import('./connect-cmd-73BBTTU5.js');
|
|
3821
3831
|
const { resolveRepoIdentity } = await import('./dist-5VKIP767.js');
|
|
3822
3832
|
return {
|
|
3823
3833
|
...realConnectDeps(),
|
|
@@ -3892,8 +3902,8 @@ build, ../outerlayer-build/SKILL.md becomes ~/.agents/skills/outerlayer-build/SK
|
|
|
3892
3902
|
what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocation() + " doctor` reports the same\nstates under Starter files.\n"
|
|
3893
3903
|
).action(async (opts) => {
|
|
3894
3904
|
if (opts.update || opts.dryRun) {
|
|
3895
|
-
const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-
|
|
3896
|
-
const { fleetReadiness } = await import('./fleet-readiness-
|
|
3905
|
+
const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-H4LSR7H4.js');
|
|
3906
|
+
const { fleetReadiness } = await import('./fleet-readiness-Z4C6W7XN.js');
|
|
3897
3907
|
const problem = updateFlagProblem(opts);
|
|
3898
3908
|
if (problem !== void 0) {
|
|
3899
3909
|
fail(problem);
|
|
@@ -3944,13 +3954,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3944
3954
|
if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
|
|
3945
3955
|
`);
|
|
3946
3956
|
}
|
|
3947
|
-
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-
|
|
3957
|
+
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-C2I22ZJA.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
|
|
3948
3958
|
if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
|
|
3949
3959
|
else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
|
|
3950
3960
|
return;
|
|
3951
3961
|
}
|
|
3952
3962
|
await installMachineSkillsForSetup();
|
|
3953
|
-
const { runInitCommand } = await import('./init-cmd-
|
|
3963
|
+
const { runInitCommand } = await import('./init-cmd-C2I22ZJA.js');
|
|
3954
3964
|
const code = await runInitCommand(
|
|
3955
3965
|
{ json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
|
|
3956
3966
|
{
|
|
@@ -3962,7 +3972,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3962
3972
|
return { ok, text, detail };
|
|
3963
3973
|
},
|
|
3964
3974
|
runAgentSetup: async () => {
|
|
3965
|
-
const { runAgentSetup } = await import('./agent-setup-
|
|
3975
|
+
const { runAgentSetup } = await import('./agent-setup-T2VITZUY.js');
|
|
3966
3976
|
return runAgentSetup({ cwd: process.cwd(), skillsLink: opts.skillsLink !== false });
|
|
3967
3977
|
},
|
|
3968
3978
|
runDoctorChecks: gatherDoctorChecks,
|
|
@@ -3971,7 +3981,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3971
3981
|
shellPath: process.env.SHELL,
|
|
3972
3982
|
interactive: Boolean(process.stdin.isTTY && process.stderr.isTTY) && opts.json !== true,
|
|
3973
3983
|
ask: async () => {
|
|
3974
|
-
const { promptOnTerminal } = await import('./connect-cmd-
|
|
3984
|
+
const { promptOnTerminal } = await import('./connect-cmd-73BBTTU5.js');
|
|
3975
3985
|
const answer = await promptOnTerminal({
|
|
3976
3986
|
message: `Should plain claude start Claude Code through ${cliInvocation()} claude? That is how a session in a governed repository gets its control plane. It adds one block to your zsh or bash startup file.`,
|
|
3977
3987
|
options: [
|
|
@@ -4010,7 +4020,7 @@ linked (true, false, or null when it could not be checked) and, when false,
|
|
|
4010
4020
|
linkUrl.
|
|
4011
4021
|
`
|
|
4012
4022
|
).action(async (opts) => {
|
|
4013
|
-
const { runConnectCommand } = await import('./connect-cmd-
|
|
4023
|
+
const { runConnectCommand } = await import('./connect-cmd-73BBTTU5.js');
|
|
4014
4024
|
const code = await runConnectCommand({ factory: opts.factory, json: opts.json }, await realConnectDepsForCwd(), {
|
|
4015
4025
|
stdout: process.stdout,
|
|
4016
4026
|
stderr: process.stderr
|
|
@@ -4092,7 +4102,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4092
4102
|
else fail(found.reason);
|
|
4093
4103
|
return;
|
|
4094
4104
|
}
|
|
4095
|
-
const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-
|
|
4105
|
+
const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-PQZD77PE.js');
|
|
4096
4106
|
try {
|
|
4097
4107
|
const result = await runSync({
|
|
4098
4108
|
url: opts.url,
|
|
@@ -4121,7 +4131,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4121
4131
|
if (invokedCommandToken(argv) === "watch") {
|
|
4122
4132
|
warnDeprecated(`\`${cliInvocation()} watch\` is now \`${cliInvocation()} daemon\`; the old name will be removed in a future release.`);
|
|
4123
4133
|
}
|
|
4124
|
-
const { runWatch } = await import('./watch-
|
|
4134
|
+
const { runWatch } = await import('./watch-FAQXAAUA.js');
|
|
4125
4135
|
await runWatch({ once: opts.once });
|
|
4126
4136
|
});
|
|
4127
4137
|
program2.command("hook <event>", { hidden: true }).description("capture-hook fast path, installed by `init`").option("--agent <id>", "the agent that sent the event; with none, Claude Code").action(() => {
|
|
@@ -4136,8 +4146,8 @@ code is 1: revoke the token on /profile/security.
|
|
|
4136
4146
|
});
|
|
4137
4147
|
}
|
|
4138
4148
|
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("--join-ws <port>", "also take the runner's session over a WebSocket on this port").option("--join-secret-file <path>", "the secret a WebSocket join sends first; needs --join-ws").option("--forward <port=target>", "also relay a loopback port to a destination; repeatable", (value, previous) => [...previous, value], []).action(async (opts) => {
|
|
4139
|
-
const { startRelay, startSessionRelay } = await import('./relay-
|
|
4140
|
-
const { TARGET_TUNNEL, targetOfPath } = await import('./relay-protocol-
|
|
4149
|
+
const { startRelay, startSessionRelay } = await import('./relay-2MJY25BV.js');
|
|
4150
|
+
const { TARGET_TUNNEL, targetOfPath } = await import('./relay-protocol-VBCRA347.js');
|
|
4141
4151
|
const port = Number(opts.port);
|
|
4142
4152
|
if (!Number.isInteger(port) || port < 1 || port > 65535) {
|
|
4143
4153
|
fail(opts.port === void 0 ? "--port is required" : `--port must be a port number, not ${opts.port}`);
|
|
@@ -4175,7 +4185,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4175
4185
|
await startRelay({ port, socketPath: opts.socket, forwards: forwards.map((forward) => ({ port: forward.port, socketPath: forward.spec })) });
|
|
4176
4186
|
});
|
|
4177
4187
|
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) => {
|
|
4178
|
-
const { joinRelay } = await import('./relay-
|
|
4188
|
+
const { joinRelay } = await import('./relay-2MJY25BV.js');
|
|
4179
4189
|
try {
|
|
4180
4190
|
await joinRelay({ socketPath: opts.socket, input: process.stdin, output: process.stdout });
|
|
4181
4191
|
} catch (err) {
|
|
@@ -4191,7 +4201,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4191
4201
|
}
|
|
4192
4202
|
});
|
|
4193
4203
|
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) => {
|
|
4194
|
-
const { runVmExec } = await import('./exec-client-
|
|
4204
|
+
const { runVmExec } = await import('./exec-client-DY7673SD.js');
|
|
4195
4205
|
const env = {};
|
|
4196
4206
|
for (const entry of opts.env) {
|
|
4197
4207
|
const eq = entry.indexOf("=");
|
|
@@ -4220,7 +4230,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4220
4230
|
process.exitCode = await runBuildCommand({ dir: opts.dir, argv: command });
|
|
4221
4231
|
});
|
|
4222
4232
|
program2.command("session-sender", { hidden: true }).description("stream a runner build's sessions to its work item while the build runs").action(async () => {
|
|
4223
|
-
const { runSessionSender } = await import('./session-sender-
|
|
4233
|
+
const { runSessionSender } = await import('./session-sender-RSAHCLL6.js');
|
|
4224
4234
|
try {
|
|
4225
4235
|
await runSessionSender();
|
|
4226
4236
|
} catch (err) {
|
|
@@ -4228,7 +4238,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4228
4238
|
}
|
|
4229
4239
|
});
|
|
4230
4240
|
program2.command("vm-init", { hidden: true }).description("lay out a microVM build's guest; the guest helper runs it").action(async () => {
|
|
4231
|
-
const { realGuestHost, runGuestInit } = await import('./guest-init-
|
|
4241
|
+
const { realGuestHost, runGuestInit } = await import('./guest-init-4B5MMXIQ.js');
|
|
4232
4242
|
const { readFileSync: readFileSync3 } = await import('fs');
|
|
4233
4243
|
try {
|
|
4234
4244
|
runGuestInit(realGuestHost(), readFileSync3("/proc/cmdline", "utf8"));
|
|
@@ -4237,7 +4247,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4237
4247
|
}
|
|
4238
4248
|
});
|
|
4239
4249
|
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) => {
|
|
4240
|
-
const { startBridgeForward } = await import('./bridge-
|
|
4250
|
+
const { startBridgeForward } = await import('./bridge-7MCKZXCR.js');
|
|
4241
4251
|
try {
|
|
4242
4252
|
await startBridgeForward(opts);
|
|
4243
4253
|
} catch (err) {
|
|
@@ -4316,7 +4326,7 @@ Compiling .outerlayer/ moved to \`${cliInvocation()} context emit\`.
|
|
|
4316
4326
|
await compileContext({ dir: opts.dir, check: opts.check, json: opts.json });
|
|
4317
4327
|
return;
|
|
4318
4328
|
}
|
|
4319
|
-
const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-
|
|
4329
|
+
const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-GM43QMCM.js');
|
|
4320
4330
|
try {
|
|
4321
4331
|
const result = await runEmitResult({
|
|
4322
4332
|
name,
|
|
@@ -4368,7 +4378,7 @@ everywhere, bytes and deep link untouched; a still-queued one is cancelled
|
|
|
4368
4378
|
locally so it never uploads. One correction can retire several duplicates.
|
|
4369
4379
|
`
|
|
4370
4380
|
).action(async (file, opts) => {
|
|
4371
|
-
const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-
|
|
4381
|
+
const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-CQLCPM4R.js');
|
|
4372
4382
|
let pr;
|
|
4373
4383
|
if (opts.pr !== void 0) {
|
|
4374
4384
|
pr = parseTrackerNumber(opts.pr);
|
|
@@ -4424,7 +4434,7 @@ its criterion, and the new record retires the old record. The id must be the ite
|
|
|
4424
4434
|
as \`work demo --item <n> --json\` prints it.
|
|
4425
4435
|
`
|
|
4426
4436
|
).action(async (manifest, opts) => {
|
|
4427
|
-
const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-
|
|
4437
|
+
const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-3NSODQTO.js');
|
|
4428
4438
|
let item;
|
|
4429
4439
|
if (opts.item !== void 0) {
|
|
4430
4440
|
item = parseTrackerNumber(opts.item);
|
|
@@ -4467,7 +4477,7 @@ as \`work demo --item <n> --json\` prints it.
|
|
|
4467
4477
|
}
|
|
4468
4478
|
});
|
|
4469
4479
|
program2.command("demo-voice", { hidden: true }).description("Speak demo lines for a recorder: JSON lines in on stdin, out on stdout").action(async () => {
|
|
4470
|
-
const { runDemoVoice } = await import('./demo-voice-cmd-
|
|
4480
|
+
const { runDemoVoice } = await import('./demo-voice-cmd-GUYFA2NG.js');
|
|
4471
4481
|
await runDemoVoice();
|
|
4472
4482
|
});
|
|
4473
4483
|
const demoCmd = program2.command("demo").description("Record demos with the recorder this CLI carries");
|
|
@@ -4485,7 +4495,7 @@ and the command prints the manifest's path for \`emit demo\`. Under \`work proof
|
|
|
4485
4495
|
to OUTERLAYER_PROOF_OUT instead. Exit 1 means the demo's test failed; its manifest is written all the same.
|
|
4486
4496
|
`
|
|
4487
4497
|
).action(async (file, opts) => {
|
|
4488
|
-
const { runDemoRecord, DemoRecordError } = await import('./demo-record-cmd-
|
|
4498
|
+
const { runDemoRecord, DemoRecordError } = await import('./demo-record-cmd-GBHPIYJA.js');
|
|
4489
4499
|
try {
|
|
4490
4500
|
const result = await runDemoRecord({
|
|
4491
4501
|
file,
|
|
@@ -4534,7 +4544,7 @@ recent events with their ids. --find <text> searches all of them.
|
|
|
4534
4544
|
item that session was launched for is used automatically.
|
|
4535
4545
|
`
|
|
4536
4546
|
).action(async (opts) => {
|
|
4537
|
-
const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-
|
|
4547
|
+
const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-4CRLSMOK.js');
|
|
4538
4548
|
try {
|
|
4539
4549
|
refuseRemovedFindingFlags(opts);
|
|
4540
4550
|
const result = await runEmitFinding({
|
|
@@ -4601,7 +4611,7 @@ the whole batch. "untimed": true records one with no time on purpose.
|
|
|
4601
4611
|
that session was launched for is used automatically.
|
|
4602
4612
|
`
|
|
4603
4613
|
).action(async (file, opts) => {
|
|
4604
|
-
const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-
|
|
4614
|
+
const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-4CRLSMOK.js');
|
|
4605
4615
|
try {
|
|
4606
4616
|
const result = await runEmitFindings({
|
|
4607
4617
|
file,
|
|
@@ -4636,7 +4646,7 @@ command, the command exits 0, and \`sync\` sends it later. If the gateway refuse
|
|
|
4636
4646
|
the step, the command prints why and exits 1.
|
|
4637
4647
|
`
|
|
4638
4648
|
).action(async (name, opts) => {
|
|
4639
|
-
const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-
|
|
4649
|
+
const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-J7KS2QXL.js');
|
|
4640
4650
|
try {
|
|
4641
4651
|
await runEmitStep({
|
|
4642
4652
|
name,
|
|
@@ -4679,7 +4689,7 @@ of the item, and a (proof: <kind>) annotation names its proof.
|
|
|
4679
4689
|
${cliInvocation()} emit criteria acceptance/412-login.md --item 412
|
|
4680
4690
|
`
|
|
4681
4691
|
).action(async (file, opts) => {
|
|
4682
|
-
const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-
|
|
4692
|
+
const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-VM7AO3E3.js');
|
|
4683
4693
|
try {
|
|
4684
4694
|
const result = await runEmitCriteria({
|
|
4685
4695
|
file,
|
|
@@ -4703,9 +4713,9 @@ function registerSpecCommands(program2) {
|
|
|
4703
4713
|
const specCmd = program2.command("spec").description("Find, file and edit the issue a spec lives in, in your factory's tracker");
|
|
4704
4714
|
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)");
|
|
4705
4715
|
const run = async (action) => {
|
|
4706
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4716
|
+
const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
|
|
4707
4717
|
try {
|
|
4708
|
-
await action(await import('./spec-cmd-
|
|
4718
|
+
await action(await import('./spec-cmd-ED6DKB54.js'));
|
|
4709
4719
|
} catch (err) {
|
|
4710
4720
|
if (err instanceof WorkCommandError) {
|
|
4711
4721
|
fail(err.message);
|
|
@@ -4740,7 +4750,7 @@ Prints each problem the item covers with its id, its reports and its result.
|
|
|
4740
4750
|
session was launched for is used.
|
|
4741
4751
|
`
|
|
4742
4752
|
).action(async (opts) => {
|
|
4743
|
-
const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-
|
|
4753
|
+
const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-25F44AB4.js');
|
|
4744
4754
|
try {
|
|
4745
4755
|
const result = await runFindingsShow({
|
|
4746
4756
|
item: opts.item,
|
|
@@ -4768,7 +4778,7 @@ Give exactly one of --fixed and --not-fixed, and a --note. Run it again for the
|
|
|
4768
4778
|
problem to replace the earlier result. A problem the item does not cover is refused.
|
|
4769
4779
|
`
|
|
4770
4780
|
).action(async (problem, opts) => {
|
|
4771
|
-
const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-
|
|
4781
|
+
const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-25F44AB4.js');
|
|
4772
4782
|
try {
|
|
4773
4783
|
const result = await runFindingsResult({
|
|
4774
4784
|
problem,
|
|
@@ -4802,8 +4812,8 @@ an issue when the daily limit leaves none, and then you stop reporting.
|
|
|
4802
4812
|
Only the agent of a scheduled run, which holds a run key, can run it.
|
|
4803
4813
|
`
|
|
4804
4814
|
).action(async (opts) => {
|
|
4805
|
-
const { runFoundIssue, RunCommandError } = await import('./run-cmd-
|
|
4806
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4815
|
+
const { runFoundIssue, RunCommandError } = await import('./run-cmd-F7ANZPSX.js');
|
|
4816
|
+
const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
|
|
4807
4817
|
try {
|
|
4808
4818
|
await runFoundIssue(opts);
|
|
4809
4819
|
} catch (err) {
|
|
@@ -4825,8 +4835,8 @@ Run it instead of found-issue, never after it. Only the agent of a
|
|
|
4825
4835
|
scheduled run, which holds a run key, can run it.
|
|
4826
4836
|
`
|
|
4827
4837
|
).action(async (opts) => {
|
|
4828
|
-
const { runFoundNothing, RunCommandError } = await import('./run-cmd-
|
|
4829
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4838
|
+
const { runFoundNothing, RunCommandError } = await import('./run-cmd-F7ANZPSX.js');
|
|
4839
|
+
const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
|
|
4830
4840
|
try {
|
|
4831
4841
|
await runFoundNothing(opts);
|
|
4832
4842
|
} catch (err) {
|
|
@@ -4858,7 +4868,7 @@ takes it, and prints the line that starts your session on it. That
|
|
|
4858
4868
|
session links itself and holds the item's lease while it works.
|
|
4859
4869
|
`
|
|
4860
4870
|
).action(async (opts) => {
|
|
4861
|
-
const { runWorkBuild, WorkCommandError } = await import('./work-cmd-
|
|
4871
|
+
const { runWorkBuild, WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
|
|
4862
4872
|
try {
|
|
4863
4873
|
await runWorkBuild(opts);
|
|
4864
4874
|
} catch (err) {
|
|
@@ -4881,7 +4891,7 @@ renews that session's own 20-minute lease, unless --no-lease or
|
|
|
4881
4891
|
--ended is given, or another worker already holds a live one.
|
|
4882
4892
|
`
|
|
4883
4893
|
).action(async (number, opts) => {
|
|
4884
|
-
const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-
|
|
4894
|
+
const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
|
|
4885
4895
|
try {
|
|
4886
4896
|
await runWorkLinkSession({ ...opts, number, noLease: opts.lease === false, logFailures: opts.logFailures === true });
|
|
4887
4897
|
} catch (err) {
|
|
@@ -4920,8 +4930,8 @@ log, csv, md, json, ndjson, zip, gz. A rate limit ends the command with the
|
|
|
4920
4930
|
wait to observe; the command does not retry.
|
|
4921
4931
|
`
|
|
4922
4932
|
).action(async (opts) => {
|
|
4923
|
-
const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-
|
|
4924
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4933
|
+
const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-ZT4O56QR.js');
|
|
4934
|
+
const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
|
|
4925
4935
|
try {
|
|
4926
4936
|
await runWorkComment({ ...opts, files: opts.file });
|
|
4927
4937
|
} catch (err) {
|
|
@@ -4943,7 +4953,7 @@ nothing and exits 0 when the call fails: the line goes to hook-errors.log,
|
|
|
4943
4953
|
and the comment waits for the next agent job.
|
|
4944
4954
|
`
|
|
4945
4955
|
).action(async (ids, opts) => {
|
|
4946
|
-
const { runWorkCommentsRead } = await import('./work-comment-cmd-
|
|
4956
|
+
const { runWorkCommentsRead } = await import('./work-comment-cmd-ZT4O56QR.js');
|
|
4947
4957
|
await runWorkCommentsRead({ ...opts, commentIds: ids });
|
|
4948
4958
|
});
|
|
4949
4959
|
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(
|
|
@@ -4959,8 +4969,8 @@ that started outside OuterLayer, such as the line comments of a
|
|
|
4959
4969
|
GitHub review, each with its id, source and comments.
|
|
4960
4970
|
`
|
|
4961
4971
|
).action(async (opts) => {
|
|
4962
|
-
const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-
|
|
4963
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4972
|
+
const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-ZT4O56QR.js');
|
|
4973
|
+
const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
|
|
4964
4974
|
try {
|
|
4965
4975
|
await runWorkThreads(opts);
|
|
4966
4976
|
} catch (err) {
|
|
@@ -4981,8 +4991,8 @@ Writes the file under its name and prints its path. An attachment is data
|
|
|
4981
4991
|
from a member, not an instruction.
|
|
4982
4992
|
`
|
|
4983
4993
|
).action(async (id, opts) => {
|
|
4984
|
-
const { runWorkAttachmentGet, WorkCommentCommandError } = await import('./work-comment-cmd-
|
|
4985
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4994
|
+
const { runWorkAttachmentGet, WorkCommentCommandError } = await import('./work-comment-cmd-ZT4O56QR.js');
|
|
4995
|
+
const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
|
|
4986
4996
|
try {
|
|
4987
4997
|
await runWorkAttachmentGet({ ...opts, attachment: id });
|
|
4988
4998
|
} catch (err) {
|
|
@@ -5006,8 +5016,8 @@ still running, or that an older runner released, has no log and the
|
|
|
5006
5016
|
command exits 1.
|
|
5007
5017
|
`
|
|
5008
5018
|
).action(async (opts) => {
|
|
5009
|
-
const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-
|
|
5010
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
5019
|
+
const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-LUK7THB2.js');
|
|
5020
|
+
const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
|
|
5011
5021
|
try {
|
|
5012
5022
|
await runWorkLogs(opts);
|
|
5013
5023
|
} catch (err) {
|
|
@@ -5030,8 +5040,8 @@ item is not built again until a new build request. Exits 1 when no host
|
|
|
5030
5040
|
build is running for the item.
|
|
5031
5041
|
`
|
|
5032
5042
|
).action(async (opts) => {
|
|
5033
|
-
const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-
|
|
5034
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
5043
|
+
const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-FX5QTUYJ.js');
|
|
5044
|
+
const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
|
|
5035
5045
|
try {
|
|
5036
5046
|
await runWorkStop(opts);
|
|
5037
5047
|
} catch (err) {
|
|
@@ -5052,8 +5062,8 @@ Prints the item's newest live demo record: its artifact id, the commit it was re
|
|
|
5052
5062
|
test file that recorded it. With --json, prints { "demo": null } for an item with no demo.
|
|
5053
5063
|
`
|
|
5054
5064
|
).action(async (opts) => {
|
|
5055
|
-
const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-
|
|
5056
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
5065
|
+
const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-YV22MZXG.js');
|
|
5066
|
+
const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
|
|
5057
5067
|
try {
|
|
5058
5068
|
await runWorkDemo(opts);
|
|
5059
5069
|
} catch (err) {
|
|
@@ -5074,7 +5084,7 @@ deletes anything \u2014 the item is removed from Work only once no
|
|
|
5074
5084
|
live addition remains on it.
|
|
5075
5085
|
`
|
|
5076
5086
|
).action(async (opts) => {
|
|
5077
|
-
const { runWorkRemove, WorkCommandError } = await import('./work-cmd-
|
|
5087
|
+
const { runWorkRemove, WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
|
|
5078
5088
|
try {
|
|
5079
5089
|
await runWorkRemove(opts);
|
|
5080
5090
|
} catch (err) {
|
|
@@ -5086,7 +5096,7 @@ live addition remains on it.
|
|
|
5086
5096
|
}
|
|
5087
5097
|
});
|
|
5088
5098
|
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) => {
|
|
5089
|
-
const { runWorkStatus, WorkCommandError } = await import('./work-cmd-
|
|
5099
|
+
const { runWorkStatus, WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
|
|
5090
5100
|
try {
|
|
5091
5101
|
await runWorkStatus(opts);
|
|
5092
5102
|
} catch (err) {
|
|
@@ -5144,11 +5154,11 @@ a runner build, no row is failed.
|
|
|
5144
5154
|
fail(trackerNumberError("--pr", opts.pr));
|
|
5145
5155
|
return;
|
|
5146
5156
|
}
|
|
5147
|
-
const { runWorkProofsCommand } = await import('./work-proofs-cmd-
|
|
5157
|
+
const { runWorkProofsCommand } = await import('./work-proofs-cmd-7EZ4QZUR.js');
|
|
5148
5158
|
await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
|
|
5149
5159
|
});
|
|
5150
5160
|
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) => {
|
|
5151
|
-
const { runWorkList, WorkCommandError } = await import('./work-cmd-
|
|
5161
|
+
const { runWorkList, WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
|
|
5152
5162
|
try {
|
|
5153
5163
|
await runWorkList(opts);
|
|
5154
5164
|
} catch (err) {
|
|
@@ -5169,7 +5179,7 @@ by a different key is refused; claiming again with the same key extends
|
|
|
5169
5179
|
it. --host is a label only.
|
|
5170
5180
|
`
|
|
5171
5181
|
).action(async (opts) => {
|
|
5172
|
-
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-
|
|
5182
|
+
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-XPXHRV74.js');
|
|
5173
5183
|
try {
|
|
5174
5184
|
await runWorkClaim(opts);
|
|
5175
5185
|
} catch (err) {
|
|
@@ -5189,7 +5199,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
|
|
|
5189
5199
|
lease has expired, or a 403 if a different key holds it.
|
|
5190
5200
|
`
|
|
5191
5201
|
).action(async (opts) => {
|
|
5192
|
-
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-
|
|
5202
|
+
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-XPXHRV74.js');
|
|
5193
5203
|
try {
|
|
5194
5204
|
await runWorkRenew(opts);
|
|
5195
5205
|
} catch (err) {
|
|
@@ -5221,7 +5231,7 @@ applies to a host's lease only. A later tool call in the session
|
|
|
5221
5231
|
takes the lease again.
|
|
5222
5232
|
`
|
|
5223
5233
|
).action(async (opts) => {
|
|
5224
|
-
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-
|
|
5234
|
+
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-XPXHRV74.js');
|
|
5225
5235
|
try {
|
|
5226
5236
|
await runWorkRelease(opts);
|
|
5227
5237
|
} catch (err) {
|
|
@@ -5248,7 +5258,7 @@ Idempotent: declaring the same pull request twice is a no-op.
|
|
|
5248
5258
|
needs your own login; an agent session or a factory key is refused.
|
|
5249
5259
|
`
|
|
5250
5260
|
).action(async (number, opts) => {
|
|
5251
|
-
const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-
|
|
5261
|
+
const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-M4G35ZIV.js');
|
|
5252
5262
|
try {
|
|
5253
5263
|
await runWorkPr({ ...opts, number });
|
|
5254
5264
|
} catch (err) {
|
|
@@ -5273,8 +5283,8 @@ login, then declares the pull request on the item, as \`work pr\` does.
|
|
|
5273
5283
|
Run it again after a change to the title or description.
|
|
5274
5284
|
`
|
|
5275
5285
|
).action(async (opts) => {
|
|
5276
|
-
const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-
|
|
5277
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
5286
|
+
const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-VEM5MEUS.js');
|
|
5287
|
+
const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
|
|
5278
5288
|
try {
|
|
5279
5289
|
await runWorkOpenPr(opts);
|
|
5280
5290
|
} catch (err) {
|
|
@@ -5297,8 +5307,8 @@ and OuterLayer posts the reason on the issue. Only a host build, which
|
|
|
5297
5307
|
holds an item key, can run it.
|
|
5298
5308
|
`
|
|
5299
5309
|
).action(async (opts) => {
|
|
5300
|
-
const { runWorkNoChange, WorkNoChangeCommandError } = await import('./work-no-change-cmd-
|
|
5301
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
5310
|
+
const { runWorkNoChange, WorkNoChangeCommandError } = await import('./work-no-change-cmd-TWGW5ZOO.js');
|
|
5311
|
+
const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
|
|
5302
5312
|
try {
|
|
5303
5313
|
await runWorkNoChange(opts);
|
|
5304
5314
|
} catch (err) {
|
|
@@ -5321,8 +5331,8 @@ record that no change is needed. Only a host build, which holds an item key,
|
|
|
5321
5331
|
can run it.
|
|
5322
5332
|
`
|
|
5323
5333
|
).action(async (opts) => {
|
|
5324
|
-
const { runWorkNeedsAttention, WorkNeedsAttentionCommandError } = await import('./work-needs-attention-cmd-
|
|
5325
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
5334
|
+
const { runWorkNeedsAttention, WorkNeedsAttentionCommandError } = await import('./work-needs-attention-cmd-KTLWMBJV.js');
|
|
5335
|
+
const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
|
|
5326
5336
|
try {
|
|
5327
5337
|
await runWorkNeedsAttention(opts);
|
|
5328
5338
|
} catch (err) {
|
|
@@ -5366,9 +5376,9 @@ function registerRunnerCommands(program2) {
|
|
|
5366
5376
|
const runnerCmd = program2.command("runner").description("Take work from the implement and amend queues on this machine");
|
|
5367
5377
|
const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
|
|
5368
5378
|
runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
|
|
5369
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5370
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5371
|
-
const { RunnerAlreadyRunningError } = await import('./pidfile-
|
|
5379
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-U2OR7MQW.js');
|
|
5380
|
+
const { start, RunnerStartError } = await import('./loop-KEGBBAV4.js');
|
|
5381
|
+
const { RunnerAlreadyRunningError } = await import('./pidfile-PG3L2CVV.js');
|
|
5372
5382
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5373
5383
|
try {
|
|
5374
5384
|
const { realUpdateDeps } = await import('./real-deps-QX5YH7FG.js');
|
|
@@ -5390,10 +5400,10 @@ is optional and defaults to ${words().runnerName}. On a later start it refuses v
|
|
|
5390
5400
|
The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
5391
5401
|
`
|
|
5392
5402
|
).action(async () => {
|
|
5393
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5394
|
-
const { containerStart, containerStartExit } = await import('./container-start-
|
|
5395
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5396
|
-
const { RunnerAlreadyRunningError } = await import('./pidfile-
|
|
5403
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-U2OR7MQW.js');
|
|
5404
|
+
const { containerStart, containerStartExit } = await import('./container-start-JFJYC4GQ.js');
|
|
5405
|
+
const { start, RunnerStartError } = await import('./loop-KEGBBAV4.js');
|
|
5406
|
+
const { RunnerAlreadyRunningError } = await import('./pidfile-PG3L2CVV.js');
|
|
5397
5407
|
try {
|
|
5398
5408
|
const outcome = containerStartExit(await containerStart({
|
|
5399
5409
|
env: process.env,
|
|
@@ -5414,16 +5424,16 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5414
5424
|
"after",
|
|
5415
5425
|
"\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"
|
|
5416
5426
|
).action(async (opts) => {
|
|
5417
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5418
|
-
const { runnerDir } = await import('./paths-
|
|
5419
|
-
const { runUpdateSteps } = await import('./update-steps-
|
|
5427
|
+
const { defaultRunnerConfigPath } = await import('./config-U2OR7MQW.js');
|
|
5428
|
+
const { runnerDir } = await import('./paths-EHWU5QWB.js');
|
|
5429
|
+
const { runUpdateSteps } = await import('./update-steps-DCFEKNW2.js');
|
|
5420
5430
|
const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
|
|
5421
5431
|
process.stdout.write(`${text}
|
|
5422
5432
|
`);
|
|
5423
5433
|
});
|
|
5424
5434
|
runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
|
|
5425
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5426
|
-
const { runRunnerCheck } = await import('./check-
|
|
5435
|
+
const { defaultRunnerConfigPath } = await import('./config-U2OR7MQW.js');
|
|
5436
|
+
const { runRunnerCheck } = await import('./check-F7RN65GG.js');
|
|
5427
5437
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5428
5438
|
const result = await runRunnerCheck(configPath);
|
|
5429
5439
|
if (!result.ok) {
|
|
@@ -5444,8 +5454,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5444
5454
|
`);
|
|
5445
5455
|
});
|
|
5446
5456
|
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) => {
|
|
5447
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5448
|
-
const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-
|
|
5457
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-U2OR7MQW.js');
|
|
5458
|
+
const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-BI4C3MGF.js');
|
|
5449
5459
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5450
5460
|
if (opts.service !== true) {
|
|
5451
5461
|
const names = { print: "print", user: "user", unitName: "unit-name", buildMemoryMax: "build-memory-max", buildCpusMax: "build-cpus-max" };
|
|
@@ -5457,13 +5467,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5457
5467
|
}
|
|
5458
5468
|
}
|
|
5459
5469
|
const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
|
|
5460
|
-
if (buildCpusMax !== void 0 && !(await import('./command-
|
|
5470
|
+
if (buildCpusMax !== void 0 && !(await import('./command-D656K4AE.js')).cpusAreValid(buildCpusMax)) {
|
|
5461
5471
|
fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
|
|
5462
5472
|
return;
|
|
5463
5473
|
}
|
|
5464
5474
|
try {
|
|
5465
5475
|
if (opts.service === true) {
|
|
5466
|
-
const { installServiceCommand, serviceSuccessText } = await import('./command-
|
|
5476
|
+
const { installServiceCommand, serviceSuccessText } = await import('./command-D656K4AE.js');
|
|
5467
5477
|
const result2 = await installServiceCommand({
|
|
5468
5478
|
configPath,
|
|
5469
5479
|
print: opts.print,
|
|
@@ -5517,8 +5527,8 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
|
|
|
5517
5527
|
fail(`pass --service: \`${cliInvocation()} runner uninstall --service\` removes the runner's service.`);
|
|
5518
5528
|
return;
|
|
5519
5529
|
}
|
|
5520
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5521
|
-
const { uninstallServiceCommand } = await import('./command-
|
|
5530
|
+
const { defaultRunnerConfigPath } = await import('./config-U2OR7MQW.js');
|
|
5531
|
+
const { uninstallServiceCommand } = await import('./command-D656K4AE.js');
|
|
5522
5532
|
const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
|
|
5523
5533
|
if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
|
|
5524
5534
|
`);
|
|
@@ -5548,13 +5558,13 @@ already in ${words().envFile} is used.
|
|
|
5548
5558
|
printf '%s' "$${words().variables[0]}" | ${cliInvocation()} runner init --agent ${words().runnerName} --factory <org>/<factory>
|
|
5549
5559
|
`
|
|
5550
5560
|
).action(async (opts) => {
|
|
5551
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5552
|
-
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-
|
|
5553
|
-
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-
|
|
5554
|
-
const { detectMachine } = await import('./machine-
|
|
5555
|
-
const { chooseVm, runVmInit, VmInitError } = await import('./init-
|
|
5556
|
-
const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-
|
|
5557
|
-
const { headlessNames: headlessNames2 } = await import('./runner-agents-
|
|
5561
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-U2OR7MQW.js');
|
|
5562
|
+
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-P2PDGLTU.js');
|
|
5563
|
+
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-CJ66VZE3.js');
|
|
5564
|
+
const { detectMachine } = await import('./machine-JK27TGT6.js');
|
|
5565
|
+
const { chooseVm, runVmInit, VmInitError } = await import('./init-XYFDIEOA.js');
|
|
5566
|
+
const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-5AM2XYEN.js');
|
|
5567
|
+
const { headlessNames: headlessNames2 } = await import('./runner-agents-HZ5FIFPU.js');
|
|
5558
5568
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5559
5569
|
if (opts.agent !== void 0 && !isAgentName(opts.agent)) {
|
|
5560
5570
|
fail(`--agent ${opts.agent}: runner init writes commands for ${headlessNames2().join(", ")}. For another agent, leave --agent out and edit runner.commands.`);
|
|
@@ -5566,7 +5576,7 @@ already in ${words().envFile} is used.
|
|
|
5566
5576
|
return;
|
|
5567
5577
|
}
|
|
5568
5578
|
try {
|
|
5569
|
-
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-
|
|
5579
|
+
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-EGNFBPM5.js');
|
|
5570
5580
|
agent = await initAgent({
|
|
5571
5581
|
flag: agent,
|
|
5572
5582
|
handOff: opts.configStdin === true,
|
|
@@ -5599,7 +5609,7 @@ already in ${words().envFile} is used.
|
|
|
5599
5609
|
const chunks = [];
|
|
5600
5610
|
for await (const chunk of process.stdin) chunks.push(Buffer.from(chunk));
|
|
5601
5611
|
const result2 = runRunnerInit(configPath, { machine, configFromStdin: Buffer.concat(chunks).toString("utf8"), requireContainer: true });
|
|
5602
|
-
const { ensureHostKey: ensureHostKey2 } = await import('./host-key-
|
|
5612
|
+
const { ensureHostKey: ensureHostKey2 } = await import('./host-key-ZWMN7VIH.js');
|
|
5603
5613
|
const hostKey2 = await ensureHostKey2(configPath);
|
|
5604
5614
|
process.stdout.write(`host key ${hostKey2.fingerprint}
|
|
5605
5615
|
hooks: ${result2.hooks}
|
|
@@ -5654,7 +5664,7 @@ hooks: ${result2.hooks}
|
|
|
5654
5664
|
const prepared = prepareRunnerInit(configPath, { machine, agent, credential, keyFromLogin: makeKey !== void 0 });
|
|
5655
5665
|
const created = makeKey === void 0 ? void 0 : await makeKey();
|
|
5656
5666
|
const result = writeRunnerInit(prepared, created);
|
|
5657
|
-
const { ensureHostKey } = await import('./host-key-
|
|
5667
|
+
const { ensureHostKey } = await import('./host-key-ZWMN7VIH.js');
|
|
5658
5668
|
const hostKey = await ensureHostKey(configPath);
|
|
5659
5669
|
if (created !== void 0) {
|
|
5660
5670
|
process.stdout.write(`${C.green}\u2713${C.reset} saved the runner key in ${result.configPath}
|
|
@@ -5674,7 +5684,7 @@ hooks: ${result2.hooks}
|
|
|
5674
5684
|
);
|
|
5675
5685
|
process.stdout.write(`${C.green}\u2713${C.reset} hooks: ${result.hooks}${result.hooks === "builtin:vm" ? " (builds run in microVMs)" : " (builds run in containers)"}
|
|
5676
5686
|
`);
|
|
5677
|
-
const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-
|
|
5687
|
+
const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-BI4C3MGF.js');
|
|
5678
5688
|
let installedLayout = false;
|
|
5679
5689
|
let noService = "it starts the runner from the install layout, which needs a CLI installed with npm";
|
|
5680
5690
|
try {
|
|
@@ -5706,7 +5716,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
|
|
|
5706
5716
|
let serviceUp = false;
|
|
5707
5717
|
let restart;
|
|
5708
5718
|
if (installedLayout) {
|
|
5709
|
-
const { installServiceCommand } = await import('./command-
|
|
5719
|
+
const { installServiceCommand } = await import('./command-D656K4AE.js');
|
|
5710
5720
|
const service = await installServiceCommand({
|
|
5711
5721
|
configPath,
|
|
5712
5722
|
entryPath: process.argv[1] ?? "",
|
|
@@ -5758,12 +5768,12 @@ image holds this CLI and a pinned ${words().agent}. Nothing runs inside the imag
|
|
|
5758
5768
|
A repository with no devcontainer file builds on the universal image the CLI pins by digest.
|
|
5759
5769
|
`
|
|
5760
5770
|
).action(async (opts) => {
|
|
5761
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5762
|
-
const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-
|
|
5771
|
+
const { defaultRunnerConfigPath } = await import('./config-U2OR7MQW.js');
|
|
5772
|
+
const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-N2MRLYFW.js');
|
|
5763
5773
|
const { currentCliBuild } = await import('./cli-build-K56DK4DS.js');
|
|
5764
|
-
const { createDockerHost } = await import('./docker-
|
|
5765
|
-
const { builderSpec } = await import('./builder-
|
|
5766
|
-
const { loadRunnerConfig } = await import('./config-
|
|
5774
|
+
const { createDockerHost } = await import('./docker-RC4CFNKI.js');
|
|
5775
|
+
const { builderSpec } = await import('./builder-ATKIRCDJ.js');
|
|
5776
|
+
const { loadRunnerConfig } = await import('./config-U2OR7MQW.js');
|
|
5767
5777
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5768
5778
|
const loaded = (() => {
|
|
5769
5779
|
try {
|
|
@@ -5774,12 +5784,12 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5774
5784
|
})();
|
|
5775
5785
|
const memory = loaded?.build?.memory ?? "8g";
|
|
5776
5786
|
try {
|
|
5777
|
-
const { ensureRunnerIdentity } = await import('./runner-identity-
|
|
5787
|
+
const { ensureRunnerIdentity } = await import('./runner-identity-CL2KMFGC.js');
|
|
5778
5788
|
await ensureRunnerIdentity(configPath, { log: (line) => console.error(line) }).catch((err) => {
|
|
5779
5789
|
console.error(`the runner's Docker identity could not be stored: ${err instanceof Error ? err.message : String(err)}`);
|
|
5780
5790
|
});
|
|
5781
|
-
const { imageTargetFor } = await import('./governing-source-
|
|
5782
|
-
const { runnerCalls } = await import('./caller-
|
|
5791
|
+
const { imageTargetFor } = await import('./governing-source-IURJZXUR.js');
|
|
5792
|
+
const { runnerCalls } = await import('./caller-OWXJDYPI.js');
|
|
5783
5793
|
const target = await imageTargetFor({ config: loaded === void 0 || loaded.fleet === true ? void 0 : runnerCalls(loaded), repository: opts.repository, fetchImpl: fetch });
|
|
5784
5794
|
if (!target.ok) {
|
|
5785
5795
|
if (opts.json) {
|
|
@@ -5843,25 +5853,25 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5843
5853
|
}
|
|
5844
5854
|
});
|
|
5845
5855
|
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) => {
|
|
5846
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5847
|
-
const { requestStop } = await import('./loop-
|
|
5856
|
+
const { defaultRunnerConfigPath } = await import('./config-U2OR7MQW.js');
|
|
5857
|
+
const { requestStop } = await import('./loop-KEGBBAV4.js');
|
|
5848
5858
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5849
|
-
const { runnerImageVersion } = await import('./image-tag-
|
|
5859
|
+
const { runnerImageVersion } = await import('./image-tag-4DKLSTO6.js');
|
|
5850
5860
|
await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
|
|
5851
5861
|
});
|
|
5852
5862
|
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) => {
|
|
5853
|
-
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-
|
|
5854
|
-
const { jobsDir, runnerDir } = await import('./paths-
|
|
5855
|
-
const { listJobFiles, runnerProcessState } = await import('./loop-
|
|
5856
|
-
const { renderStatus } = await import('./status-
|
|
5857
|
-
const { readHousekeepingRecord } = await import('./record-
|
|
5863
|
+
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-U2OR7MQW.js');
|
|
5864
|
+
const { jobsDir, runnerDir } = await import('./paths-EHWU5QWB.js');
|
|
5865
|
+
const { listJobFiles, runnerProcessState } = await import('./loop-KEGBBAV4.js');
|
|
5866
|
+
const { renderStatus } = await import('./status-CZTCYZLU.js');
|
|
5867
|
+
const { readHousekeepingRecord } = await import('./record-PXCRTDQU.js');
|
|
5858
5868
|
const path2 = await import('path');
|
|
5859
5869
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5860
5870
|
const all = listJobFiles(configPath);
|
|
5861
5871
|
const housekeeping = readHousekeepingRecord(runnerDir(configPath));
|
|
5862
|
-
const { readPendingUpdate } = await import('./pending-
|
|
5872
|
+
const { readPendingUpdate } = await import('./pending-K4A23JIC.js');
|
|
5863
5873
|
const pendingUpdate = readPendingUpdate(runnerDir(configPath));
|
|
5864
|
-
const { readImageStatus } = await import('./image-tag-
|
|
5874
|
+
const { readImageStatus } = await import('./image-tag-4DKLSTO6.js');
|
|
5865
5875
|
const image = readImageStatus(runnerDir(configPath));
|
|
5866
5876
|
let host = "unknown";
|
|
5867
5877
|
let concurrency = 1;
|
|
@@ -5871,7 +5881,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5871
5881
|
host = config.host;
|
|
5872
5882
|
concurrency = config.concurrency;
|
|
5873
5883
|
if (config.fleet === true) {
|
|
5874
|
-
const { readFleetState } = await import('./state-
|
|
5884
|
+
const { readFleetState } = await import('./state-MV53BATE.js');
|
|
5875
5885
|
fleet = { state: readFleetState(configPath) };
|
|
5876
5886
|
}
|
|
5877
5887
|
} catch {
|
|
@@ -5879,7 +5889,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5879
5889
|
const processState = runnerProcessState(configPath);
|
|
5880
5890
|
const service = await (async () => {
|
|
5881
5891
|
if (process.platform !== "linux" || !existsSync("/run/systemd/system")) return void 0;
|
|
5882
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
5892
|
+
const { inspectRunnerService } = await import('./find-unit-ZVHHFTL2.js');
|
|
5883
5893
|
const facts = inspectRunnerService(configPath);
|
|
5884
5894
|
return facts === void 0 ? void 0 : { unit: facts.unit, running: facts.mainPid !== void 0, delegated: facts.delegate };
|
|
5885
5895
|
})();
|
|
@@ -5918,9 +5928,9 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5918
5928
|
);
|
|
5919
5929
|
});
|
|
5920
5930
|
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) => {
|
|
5921
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5922
|
-
const { listJobFiles } = await import('./loop-
|
|
5923
|
-
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-
|
|
5931
|
+
const { defaultRunnerConfigPath } = await import('./config-U2OR7MQW.js');
|
|
5932
|
+
const { listJobFiles } = await import('./loop-KEGBBAV4.js');
|
|
5933
|
+
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-7DD6J3M6.js');
|
|
5924
5934
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5925
5935
|
const jobs = listJobFiles(configPath);
|
|
5926
5936
|
const selected = selectAttempt(jobs, itemArg);
|
|
@@ -6163,7 +6173,7 @@ caller from the bearer token, the gateway answers 401 without that header.
|
|
|
6163
6173
|
"after",
|
|
6164
6174
|
"\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"
|
|
6165
6175
|
).action(async (opts) => {
|
|
6166
|
-
const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-
|
|
6176
|
+
const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-HK2ODMHU.js');
|
|
6167
6177
|
try {
|
|
6168
6178
|
await runMcpServe({ url: opts.url, appId: opts.appId });
|
|
6169
6179
|
} catch (err) {
|
|
@@ -6184,7 +6194,7 @@ would get, the instruction files and the names of the skills. It warns when the
|
|
|
6184
6194
|
no \`build\`. It needs the context-read permission: a login or a factory key with it is enough.
|
|
6185
6195
|
`
|
|
6186
6196
|
).action(async (opts) => {
|
|
6187
|
-
const { runContextShow, ContextShowError } = await import('./context-show-cmd-
|
|
6197
|
+
const { runContextShow, ContextShowError } = await import('./context-show-cmd-ETWKBHXZ.js');
|
|
6188
6198
|
try {
|
|
6189
6199
|
const result = await runContextShow({ repo: opts.repo, json: opts.json, url: opts.url, apiKey: opts.apiKey, appId: opts.appId });
|
|
6190
6200
|
process.stdout.write(result.output);
|