@outerlayer/cli 0.33.0-next.20261022004023 → 0.33.0-next.20261022124145
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 +12 -11
- package/dist/{agent-setup-UY5NBT7C.js → agent-setup-2MJXGAZ5.js} +10 -10
- package/dist/{artifact-link-cmd-2MBHG3PO.js → artifact-link-cmd-6FF2Y6QI.js} +2 -2
- package/dist/build-disk-5GIWYDOB.js +18 -0
- package/dist/build-info.json +1 -1
- package/dist/{builder-VR55L4PV.js → builder-EELBB7SI.js} +4 -4
- package/dist/{check-XGBAFJPP.js → check-EJKRXI2N.js} +36 -34
- package/dist/{chunk-N3KK5BKF.js → chunk-2GHI2J26.js} +7 -7
- package/dist/{chunk-AKR32WHV.js → chunk-5DNCFOXA.js} +9 -7
- package/dist/{chunk-UIBTEDLA.js → chunk-6JNCNHSV.js} +5 -5
- package/dist/{chunk-GHQFV3TS.js → chunk-6WUQSARX.js} +11 -10
- package/dist/{chunk-EG7KPSSP.js → chunk-72BIONOT.js} +6 -6
- package/dist/{chunk-XNGS6LUK.js → chunk-AESNEWYR.js} +1 -1
- package/dist/{chunk-LN4WDONI.js → chunk-AVTI3FL5.js} +1 -1
- package/dist/{chunk-5RUH3PCG.js → chunk-B3EE7OKK.js} +4 -4
- package/dist/{chunk-Y3LIJIRH.js → chunk-BJQ25STI.js} +4 -4
- package/dist/{chunk-6TFTRVOA.js → chunk-C3XLVHN6.js} +2 -2
- package/dist/{chunk-OEITN64Z.js → chunk-D7ECJX4J.js} +15 -38
- package/dist/{chunk-UWEJ6HGB.js → chunk-DY7Y7UT4.js} +2 -2
- package/dist/{chunk-AKHGQKNR.js → chunk-E6CO3MJE.js} +34 -2
- package/dist/{chunk-DM4EGXDO.js → chunk-EWVYQLD3.js} +1 -1
- package/dist/{chunk-BUBMAMIP.js → chunk-FQW7TKIU.js} +2 -2
- package/dist/{chunk-KUTZ6XLS.js → chunk-G63KT5I5.js} +1 -1
- package/dist/{chunk-Q2D4M3GC.js → chunk-GFYEMCPP.js} +1 -1
- package/dist/{chunk-4IG6EZHU.js → chunk-HJYBWJAS.js} +2 -2
- package/dist/{chunk-CMTRZC23.js → chunk-HVIYKGK5.js} +79 -12
- package/dist/{chunk-TNJXCNQ6.js → chunk-JHTJPQSL.js} +4 -4
- package/dist/{chunk-RVWADVBN.js → chunk-JZ4FXSLI.js} +3 -3
- package/dist/{chunk-HT7LVCTX.js → chunk-L3DUKDTR.js} +2 -2
- package/dist/{chunk-KDM77TVX.js → chunk-LCVR4UIS.js} +2 -2
- package/dist/{chunk-OGCG5LOX.js → chunk-LJG6EMLJ.js} +1 -1
- package/dist/{chunk-HJEZ3D3E.js → chunk-LWODW66U.js} +16 -16
- package/dist/chunk-MBE6FEQ3.js +111 -0
- package/dist/{chunk-RW52CUFX.js → chunk-NSPRS7WK.js} +1 -1
- package/dist/{chunk-DE7YSNDX.js → chunk-OJ63GRZ2.js} +2 -2
- package/dist/{chunk-Q4YVHYHT.js → chunk-QJNFO7TQ.js} +3 -3
- package/dist/{chunk-NOXK3QW6.js → chunk-QSSYXK6C.js} +3 -3
- package/dist/{chunk-UENWEDZ3.js → chunk-S2IJQER5.js} +255 -255
- package/dist/{chunk-RQKQTRXM.js → chunk-THTBXIK5.js} +4 -4
- package/dist/{chunk-M5OBRUQE.js → chunk-UIUGTW5C.js} +2 -2
- package/dist/{chunk-YH2632RT.js → chunk-V2EUC2MJ.js} +43 -20
- package/dist/{chunk-SFJD4MRY.js → chunk-WHRR55PC.js} +14 -7
- package/dist/{chunk-CALFNNIY.js → chunk-XTBGPISI.js} +17 -6
- package/dist/chunk-YYYRBYWG.js +32 -0
- package/dist/{claude-launcher-STSKZNW3.js → claude-launcher-IUDNUD2J.js} +17 -6
- package/dist/{cli-BMV37UKQ.js → cli-5JSVOAE5.js} +89 -89
- package/dist/{command-35IERXEA.js → command-7IY3XGAG.js} +24 -23
- package/dist/{connect-cmd-WFHAPGCZ.js → connect-cmd-AQSJVDQU.js} +8 -8
- package/dist/{container-start-3FFBFFNK.js → container-start-BPQHJMNF.js} +25 -24
- package/dist/{context-cleanup-UBOJHGQM.js → context-cleanup-BX5Y3AFL.js} +3 -3
- package/dist/{control-plane-launch-R4X63DYW.js → control-plane-launch-K7YD6KEN.js} +6 -6
- package/dist/{dist-ADFLG3AY.js → dist-ACTRIBVW.js} +2 -2
- package/dist/{docker-2NN3EKTR.js → docker-UKJBLZLW.js} +4 -4
- package/dist/{doctor-CA5QQ5KS.js → doctor-JUR62PMF.js} +48 -25
- package/dist/{emit-artifact-cmd-FR5PUUJR.js → emit-artifact-cmd-HI3EYJA3.js} +13 -13
- package/dist/{emit-cmd-JOO6ZTEI.js → emit-cmd-OX6LYS6I.js} +6 -6
- package/dist/{emit-criteria-cmd-DKPZJTIN.js → emit-criteria-cmd-IC5OIZX2.js} +9 -9
- package/dist/{emit-demo-cmd-G2I4SB7A.js → emit-demo-cmd-HWDC3MAK.js} +211 -101
- package/dist/{emit-finding-cmd-VM4KIVEM.js → emit-finding-cmd-A7RBLHTN.js} +10 -10
- package/dist/{emit-result-cmd-SEKL6HUU.js → emit-result-cmd-2WVVAGST.js} +12 -12
- package/dist/{emit-step-cmd-4YAWK4VE.js → emit-step-cmd-KNVHYSXT.js} +10 -10
- package/dist/{findings-cmd-RXYIWXY4.js → findings-cmd-ISP3P3UY.js} +10 -10
- package/dist/{fleet-readiness-VIX76RNL.js → fleet-readiness-O2WAJJVT.js} +8 -8
- package/dist/{governing-source-APGCKDTS.js → governing-source-PMWZJCXJ.js} +13 -13
- package/dist/{guest-init-BI7267TB.js → guest-init-3LNAL3TB.js} +2 -2
- package/dist/{hook-fast-NVBMSE3N.js → hook-fast-FJ2PMBML.js} +1 -1
- package/dist/index.js +4 -4
- package/dist/{init-BZMBUTU4.js → init-YRSKJNSB.js} +25 -24
- package/dist/{init-VPK3MDM5.js → init-ZXV6LILS.js} +26 -25
- package/dist/{init-cmd-PTQ5WSQ5.js → init-cmd-3F436JBW.js} +18 -18
- package/dist/{init-update-HOTJISWA.js → init-update-6OPETOBA.js} +17 -17
- package/dist/{layout-ZI4RJ6MT.js → layout-JGF7MJHG.js} +4 -4
- package/dist/{login-browser-WUSIVD5E.js → login-browser-3RIZQJY2.js} +2 -2
- package/dist/{loop-FDFEXDKA.js → loop-MCR3EUSZ.js} +36 -34
- package/dist/{machine-ZL72TS6B.js → machine-35YQ7MGN.js} +23 -22
- package/dist/{machine-skills-REHDWINX.js → machine-skills-AGERT2HN.js} +4 -4
- package/dist/{runner-identity-DSFLFUR2.js → runner-identity-GO762MHZ.js} +4 -4
- package/dist/{runner-key-XJ7YSMOF.js → runner-key-BQSR6MK4.js} +25 -24
- package/dist/{session-sender-PLQ5NOEW.js → session-sender-ENL3IBVD.js} +13 -13
- package/dist/{spec-cmd-NIAQWMLE.js → spec-cmd-SLJT7MRX.js} +10 -10
- package/dist/{starter-pack-OESK7UX2.js → starter-pack-UBEC5LTE.js} +5 -5
- package/dist/{status-LJ2UBJCE.js → status-GQEAZBUJ.js} +29 -28
- package/dist/{sync-cmd-UTESQMDU.js → sync-cmd-Z4BYKM6K.js} +12 -12
- package/dist/{watch-4UC4FGI5.js → watch-MBEA6QB4.js} +12 -12
- package/dist/{work-claim-cmd-ODYRE44S.js → work-claim-cmd-TLXRPJWO.js} +12 -12
- package/dist/{work-cmd-QQDUI3YX.js → work-cmd-DYM67Z3F.js} +10 -10
- package/dist/{work-comment-cmd-FIOMDPIZ.js → work-comment-cmd-CRRWP3AH.js} +10 -10
- package/dist/{work-logs-cmd-DA6MPQ6O.js → work-logs-cmd-7LFOEVXI.js} +10 -10
- package/dist/{work-open-pr-cmd-QG2FT7OW.js → work-open-pr-cmd-XXQ75PSU.js} +11 -11
- package/dist/{work-pr-cmd-XNXWWLS5.js → work-pr-cmd-ZVE7EGSC.js} +10 -10
- package/dist/{work-stop-cmd-2KLZ2UH2.js → work-stop-cmd-GVFSTGLK.js} +10 -10
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-evidence/SKILL.md +8 -5
- package/dist/{chunk-RJYKTWUP.js → chunk-ELYHDWCC.js} +1 -1
|
@@ -1,44 +1,44 @@
|
|
|
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-
|
|
3
|
+
import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-6WUQSARX.js';
|
|
4
|
+
import './chunk-BJQ25STI.js';
|
|
5
|
+
import './chunk-72BIONOT.js';
|
|
6
6
|
import './chunk-KT4CN6OU.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import { verifiedTrackerNames, TRACKERS } from './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-
|
|
14
|
-
import './chunk-
|
|
7
|
+
import './chunk-DY7Y7UT4.js';
|
|
8
|
+
import { verifiedTrackerNames, TRACKERS } from './chunk-6JNCNHSV.js';
|
|
9
|
+
import './chunk-C3XLVHN6.js';
|
|
10
|
+
import './chunk-B3EE7OKK.js';
|
|
11
|
+
import './chunk-EWVYQLD3.js';
|
|
12
|
+
import './chunk-5DNCFOXA.js';
|
|
13
|
+
import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-HJYBWJAS.js';
|
|
14
|
+
import './chunk-NSPRS7WK.js';
|
|
15
15
|
import './chunk-G2JWZDFA.js';
|
|
16
16
|
import { C, warnDeprecated, API_KEY_FLAG_DEPRECATION, NO_COLOR_FLAG, stripNoColor } from './chunk-ANPNT6PM.js';
|
|
17
|
-
import './chunk-
|
|
17
|
+
import './chunk-UIUGTW5C.js';
|
|
18
18
|
import './chunk-VQ2JGZSC.js';
|
|
19
19
|
import './chunk-PJDQPF5N.js';
|
|
20
20
|
import './chunk-JT3YO5MH.js';
|
|
21
21
|
import './chunk-ESP5VZBD.js';
|
|
22
22
|
import './chunk-HDSDUTX4.js';
|
|
23
|
-
import { hookFiredMarkerPath, installedCliDistDir } from './chunk-
|
|
23
|
+
import { hookFiredMarkerPath, installedCliDistDir } from './chunk-L3DUKDTR.js';
|
|
24
24
|
import './chunk-ZJSNLVCE.js';
|
|
25
25
|
import './chunk-I7RZHMXW.js';
|
|
26
26
|
import './chunk-BKO6JEZI.js';
|
|
27
27
|
import './chunk-HCVLP7XA.js';
|
|
28
28
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
29
|
-
import './chunk-
|
|
30
|
-
import './chunk-
|
|
29
|
+
import './chunk-GFYEMCPP.js';
|
|
30
|
+
import './chunk-G63KT5I5.js';
|
|
31
31
|
import './chunk-5BHIBJDA.js';
|
|
32
32
|
import './chunk-CDDED64E.js';
|
|
33
33
|
import { resolveVersion, resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
34
34
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
35
35
|
import { cliInvocation, packageRunnerOf } from './chunk-CRB3POP4.js';
|
|
36
36
|
import { settingsPath, readSettings, SettingsParseError, listHookCandidates, PORTABLE_BIN, wrapHooks, writeSettings, unwrapHooks, REGISTERED_EVENTS, removeHooks, removeStatusline, cliBinResolvable, mergeHooks, repointWrappedHooks, AUTO_WRAP_EVENTS, mergeStatusline } from './chunk-URIZRCRY.js';
|
|
37
|
-
import './chunk-
|
|
37
|
+
import './chunk-AVTI3FL5.js';
|
|
38
38
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
39
39
|
import { removeJournalHooks, removePreCommitGuardHook } from './chunk-TUSYOL2O.js';
|
|
40
|
-
import './chunk-
|
|
41
|
-
import './chunk-
|
|
40
|
+
import './chunk-LJG6EMLJ.js';
|
|
41
|
+
import './chunk-E6CO3MJE.js';
|
|
42
42
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
43
43
|
import './chunk-XD4ZCMA4.js';
|
|
44
44
|
import './chunk-MESOOLF4.js';
|
|
@@ -3658,14 +3658,14 @@ function apiKeyOption() {
|
|
|
3658
3658
|
return new Option("--api-key <key>", `deprecated: use \`${cliInvocation()} login\` or OUTERLAYER_API_KEY`).hideHelp();
|
|
3659
3659
|
}
|
|
3660
3660
|
async function installStarterPackInRepo() {
|
|
3661
|
-
const { installStarterPack, formatStarterPackOutput } = await import('./starter-pack-
|
|
3661
|
+
const { installStarterPack, formatStarterPackOutput } = await import('./starter-pack-UBEC5LTE.js');
|
|
3662
3662
|
const cwd = process.cwd();
|
|
3663
3663
|
let repoRoot = cwd;
|
|
3664
3664
|
try {
|
|
3665
3665
|
repoRoot = execFileSync("git", ["rev-parse", "--show-toplevel"], { cwd, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).trim() || cwd;
|
|
3666
3666
|
} catch {
|
|
3667
3667
|
}
|
|
3668
|
-
const { declareAgentsMdLayout, isAgentsMdLayout, skillsBaseFor } = await import('./layout-
|
|
3668
|
+
const { declareAgentsMdLayout, isAgentsMdLayout, skillsBaseFor } = await import('./layout-JGF7MJHG.js');
|
|
3669
3669
|
const fresh = !isAgentsMdLayout(repoRoot) && !existsSync(join(repoRoot, ".outerlayer"));
|
|
3670
3670
|
const result = installStarterPack({ repoRoot, base: fresh ? ".agents/skills" : skillsBaseFor(repoRoot) });
|
|
3671
3671
|
if (fresh) declareAgentsMdLayout(repoRoot);
|
|
@@ -3791,7 +3791,7 @@ ${starter.output}`),
|
|
|
3791
3791
|
}
|
|
3792
3792
|
}
|
|
3793
3793
|
async function installMachineSkillsForSetup() {
|
|
3794
|
-
const { setupMachineSkills } = await import('./machine-skills-
|
|
3794
|
+
const { setupMachineSkills } = await import('./machine-skills-AGERT2HN.js');
|
|
3795
3795
|
const result = setupMachineSkills(homeFromEnv());
|
|
3796
3796
|
for (const failure of result.failures) process.stderr.write(`${C.yellow}!${C.reset} Could not write a maintained skill: ${failure}
|
|
3797
3797
|
`);
|
|
@@ -3799,8 +3799,8 @@ async function installMachineSkillsForSetup() {
|
|
|
3799
3799
|
` : "";
|
|
3800
3800
|
}
|
|
3801
3801
|
async function realConnectDepsForCwd() {
|
|
3802
|
-
const { realConnectDeps } = await import('./connect-cmd-
|
|
3803
|
-
const { resolveRepoIdentity } = await import('./dist-
|
|
3802
|
+
const { realConnectDeps } = await import('./connect-cmd-AQSJVDQU.js');
|
|
3803
|
+
const { resolveRepoIdentity } = await import('./dist-ACTRIBVW.js');
|
|
3804
3804
|
return {
|
|
3805
3805
|
...realConnectDeps(),
|
|
3806
3806
|
home: homeFromEnv(),
|
|
@@ -3817,7 +3817,7 @@ function buildProgram(argv = process.argv) {
|
|
|
3817
3817
|
const program2 = new Command();
|
|
3818
3818
|
program2.name(cliInvocation()).description("OuterLayer \u2014 see what your coding agents actually do").enablePositionalOptions().version(resolveVersion()).hook("preAction", async (_root, command) => {
|
|
3819
3819
|
if (command.opts().apiKey !== void 0) warnDeprecated(API_KEY_FLAG_DEPRECATION);
|
|
3820
|
-
const { machineRefreshSkipped, refreshMachineSkills } = await import('./machine-skills-
|
|
3820
|
+
const { machineRefreshSkipped, refreshMachineSkills } = await import('./machine-skills-AGERT2HN.js');
|
|
3821
3821
|
const names = [];
|
|
3822
3822
|
for (let at = command; at?.parent; at = at.parent) names.push(at.name());
|
|
3823
3823
|
if (!machineRefreshSkipped(names, command._hidden === true, argv)) refreshMachineSkills(homeFromEnv());
|
|
@@ -3874,8 +3874,8 @@ build, ../outerlayer-build/SKILL.md becomes ~/.agents/skills/outerlayer-build/SK
|
|
|
3874
3874
|
what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocation() + " doctor` reports the same\nstates under Starter files.\n"
|
|
3875
3875
|
).action(async (opts) => {
|
|
3876
3876
|
if (opts.update || opts.dryRun) {
|
|
3877
|
-
const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-
|
|
3878
|
-
const { fleetReadiness } = await import('./fleet-readiness-
|
|
3877
|
+
const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-6OPETOBA.js');
|
|
3878
|
+
const { fleetReadiness } = await import('./fleet-readiness-O2WAJJVT.js');
|
|
3879
3879
|
const problem = updateFlagProblem(opts);
|
|
3880
3880
|
if (problem !== void 0) {
|
|
3881
3881
|
fail(problem);
|
|
@@ -3892,7 +3892,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3892
3892
|
}
|
|
3893
3893
|
let starterTemplate;
|
|
3894
3894
|
if (opts.template !== void 0) {
|
|
3895
|
-
const { assertKnownTemplate, StarterPackError } = await import('./starter-pack-
|
|
3895
|
+
const { assertKnownTemplate, StarterPackError } = await import('./starter-pack-UBEC5LTE.js');
|
|
3896
3896
|
try {
|
|
3897
3897
|
assertKnownTemplate(opts.template);
|
|
3898
3898
|
} catch (err) {
|
|
@@ -3926,13 +3926,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3926
3926
|
if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
|
|
3927
3927
|
`);
|
|
3928
3928
|
}
|
|
3929
|
-
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-
|
|
3929
|
+
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-3F436JBW.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
|
|
3930
3930
|
if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
|
|
3931
3931
|
else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
|
|
3932
3932
|
return;
|
|
3933
3933
|
}
|
|
3934
3934
|
await installMachineSkillsForSetup();
|
|
3935
|
-
const { runInitCommand } = await import('./init-cmd-
|
|
3935
|
+
const { runInitCommand } = await import('./init-cmd-3F436JBW.js');
|
|
3936
3936
|
const code = await runInitCommand(
|
|
3937
3937
|
{ json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
|
|
3938
3938
|
{
|
|
@@ -3944,7 +3944,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3944
3944
|
return { ok, text, detail };
|
|
3945
3945
|
},
|
|
3946
3946
|
runAgentSetup: async () => {
|
|
3947
|
-
const { runAgentSetup } = await import('./agent-setup-
|
|
3947
|
+
const { runAgentSetup } = await import('./agent-setup-2MJXGAZ5.js');
|
|
3948
3948
|
return runAgentSetup({ cwd: process.cwd(), skillsLink: opts.skillsLink !== false });
|
|
3949
3949
|
},
|
|
3950
3950
|
runDoctorChecks: gatherDoctorChecks,
|
|
@@ -3953,7 +3953,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3953
3953
|
shellPath: process.env.SHELL,
|
|
3954
3954
|
interactive: Boolean(process.stdin.isTTY && process.stderr.isTTY) && opts.json !== true,
|
|
3955
3955
|
ask: async () => {
|
|
3956
|
-
const { promptOnTerminal } = await import('./connect-cmd-
|
|
3956
|
+
const { promptOnTerminal } = await import('./connect-cmd-AQSJVDQU.js');
|
|
3957
3957
|
const answer = await promptOnTerminal({
|
|
3958
3958
|
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
3959
|
options: [
|
|
@@ -3992,7 +3992,7 @@ linked (true, false, or null when it could not be checked) and, when false,
|
|
|
3992
3992
|
linkUrl.
|
|
3993
3993
|
`
|
|
3994
3994
|
).action(async (opts) => {
|
|
3995
|
-
const { runConnectCommand } = await import('./connect-cmd-
|
|
3995
|
+
const { runConnectCommand } = await import('./connect-cmd-AQSJVDQU.js');
|
|
3996
3996
|
const code = await runConnectCommand({ factory: opts.factory, json: opts.json }, await realConnectDepsForCwd(), {
|
|
3997
3997
|
stdout: process.stdout,
|
|
3998
3998
|
stderr: process.stderr
|
|
@@ -4031,7 +4031,7 @@ Every later command reads the saved file, so none of them needs a key on
|
|
|
4031
4031
|
its command line. A saved key is checked for real on the first \`sync\`.
|
|
4032
4032
|
`
|
|
4033
4033
|
).action(async (opts) => {
|
|
4034
|
-
const { runLoginCommand, realLoginDeps } = await import('./login-browser-
|
|
4034
|
+
const { runLoginCommand, realLoginDeps } = await import('./login-browser-3RIZQJY2.js');
|
|
4035
4035
|
const code = await runLoginCommand(
|
|
4036
4036
|
{
|
|
4037
4037
|
browser: opts.browser !== false,
|
|
@@ -4064,13 +4064,13 @@ code is 1: revoke the token on /profile/security.
|
|
|
4064
4064
|
"\nIncremental: only sessions newer than the last checkpoint ship. The tier\nis applied on this machine before anything leaves it; `--dry-run` prints\nexactly what would. The hook-triggered background sync runs `--quiet`.\nExit 2 means the server rejected at least one session.\n"
|
|
4065
4065
|
).action(async (opts) => {
|
|
4066
4066
|
if (opts.link !== void 0) {
|
|
4067
|
-
const { lookupArtifactLink } = await import('./artifact-link-cmd-
|
|
4067
|
+
const { lookupArtifactLink } = await import('./artifact-link-cmd-6FF2Y6QI.js');
|
|
4068
4068
|
const found = lookupArtifactLink(opts.link);
|
|
4069
4069
|
if (found.ok) process.stdout.write(found.url + "\n");
|
|
4070
4070
|
else fail(found.reason);
|
|
4071
4071
|
return;
|
|
4072
4072
|
}
|
|
4073
|
-
const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-
|
|
4073
|
+
const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-Z4BYKM6K.js');
|
|
4074
4074
|
try {
|
|
4075
4075
|
const result = await runSync({
|
|
4076
4076
|
url: opts.url,
|
|
@@ -4101,7 +4101,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4101
4101
|
if (invokedCommandToken(argv) === "watch") {
|
|
4102
4102
|
warnDeprecated(`\`${cliInvocation()} watch\` is now \`${cliInvocation()} daemon\`; the old name will be removed in a future release.`);
|
|
4103
4103
|
}
|
|
4104
|
-
const { runWatch } = await import('./watch-
|
|
4104
|
+
const { runWatch } = await import('./watch-MBEA6QB4.js');
|
|
4105
4105
|
await runWatch({ once: opts.once });
|
|
4106
4106
|
});
|
|
4107
4107
|
program2.command("hook <event>", { hidden: true }).description("capture-hook fast path, installed by `init`").action(() => {
|
|
@@ -4191,7 +4191,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4191
4191
|
process.exitCode = await runBuildCommand({ dir: opts.dir, argv: command });
|
|
4192
4192
|
});
|
|
4193
4193
|
program2.command("session-sender", { hidden: true }).description("stream a runner build's sessions to its work item while the build runs").action(async () => {
|
|
4194
|
-
const { runSessionSender } = await import('./session-sender-
|
|
4194
|
+
const { runSessionSender } = await import('./session-sender-ENL3IBVD.js');
|
|
4195
4195
|
try {
|
|
4196
4196
|
await runSessionSender();
|
|
4197
4197
|
} catch (err) {
|
|
@@ -4199,7 +4199,7 @@ code is 1: revoke the token on /profile/security.
|
|
|
4199
4199
|
}
|
|
4200
4200
|
});
|
|
4201
4201
|
program2.command("vm-init", { hidden: true }).description("lay out a microVM build's guest; the guest helper runs it").action(async () => {
|
|
4202
|
-
const { realGuestHost, runGuestInit } = await import('./guest-init-
|
|
4202
|
+
const { realGuestHost, runGuestInit } = await import('./guest-init-3LNAL3TB.js');
|
|
4203
4203
|
const { readFileSync: readFileSync3 } = await import('fs');
|
|
4204
4204
|
try {
|
|
4205
4205
|
runGuestInit(realGuestHost(), readFileSync3("/proc/cmdline", "utf8"));
|
|
@@ -4234,7 +4234,7 @@ async function runCli(processArgv) {
|
|
|
4234
4234
|
await buildProgram(argv).parseAsync(argv);
|
|
4235
4235
|
}
|
|
4236
4236
|
async function compileContext(opts) {
|
|
4237
|
-
const { runEmit, EmitError } = await import('./emit-cmd-
|
|
4237
|
+
const { runEmit, EmitError } = await import('./emit-cmd-OX6LYS6I.js');
|
|
4238
4238
|
try {
|
|
4239
4239
|
const result = runEmit({ cwd: opts.dir, check: opts.check, json: opts.json });
|
|
4240
4240
|
if (result.exitCode !== 0) process.exitCode = result.exitCode;
|
|
@@ -4287,7 +4287,7 @@ Compiling .outerlayer/ moved to \`${cliInvocation()} context emit\`.
|
|
|
4287
4287
|
await compileContext({ dir: opts.dir, check: opts.check, json: opts.json });
|
|
4288
4288
|
return;
|
|
4289
4289
|
}
|
|
4290
|
-
const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-
|
|
4290
|
+
const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-2WVVAGST.js');
|
|
4291
4291
|
try {
|
|
4292
4292
|
const result = await runEmitResult({
|
|
4293
4293
|
name,
|
|
@@ -4338,7 +4338,7 @@ everywhere, bytes and deep link untouched; a still-queued one is cancelled
|
|
|
4338
4338
|
locally so it never uploads. One correction can retire several duplicates.
|
|
4339
4339
|
`
|
|
4340
4340
|
).action(async (file, opts) => {
|
|
4341
|
-
const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-
|
|
4341
|
+
const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-HI3EYJA3.js');
|
|
4342
4342
|
let pr;
|
|
4343
4343
|
if (opts.pr !== void 0) {
|
|
4344
4344
|
pr = parseTrackerNumber(opts.pr);
|
|
@@ -4387,7 +4387,7 @@ check. A chapter reads yes when every still matches and no when one differs; the
|
|
|
4387
4387
|
the region. One run, or a chapter with no stills, reads not checked. Comparing never changes which clips bind.
|
|
4388
4388
|
`
|
|
4389
4389
|
).action(async (manifest, opts) => {
|
|
4390
|
-
const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-
|
|
4390
|
+
const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-HWDC3MAK.js');
|
|
4391
4391
|
let item;
|
|
4392
4392
|
if (opts.item !== void 0) {
|
|
4393
4393
|
item = parseTrackerNumber(opts.item);
|
|
@@ -4456,7 +4456,7 @@ recent events with their ids. --find <text> searches all of them.
|
|
|
4456
4456
|
item that session was launched for is used automatically.
|
|
4457
4457
|
`
|
|
4458
4458
|
).action(async (opts) => {
|
|
4459
|
-
const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-
|
|
4459
|
+
const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-A7RBLHTN.js');
|
|
4460
4460
|
try {
|
|
4461
4461
|
refuseRemovedFindingFlags(opts);
|
|
4462
4462
|
const result = await runEmitFinding({
|
|
@@ -4523,7 +4523,7 @@ the whole batch. "untimed": true records one with no time on purpose.
|
|
|
4523
4523
|
that session was launched for is used automatically.
|
|
4524
4524
|
`
|
|
4525
4525
|
).action(async (file, opts) => {
|
|
4526
|
-
const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-
|
|
4526
|
+
const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-A7RBLHTN.js');
|
|
4527
4527
|
try {
|
|
4528
4528
|
const result = await runEmitFindings({
|
|
4529
4529
|
file,
|
|
@@ -4558,7 +4558,7 @@ command, the command exits 0, and \`sync\` sends it later. If the gateway refuse
|
|
|
4558
4558
|
the step, the command prints why and exits 1.
|
|
4559
4559
|
`
|
|
4560
4560
|
).action(async (name, opts) => {
|
|
4561
|
-
const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-
|
|
4561
|
+
const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-KNVHYSXT.js');
|
|
4562
4562
|
try {
|
|
4563
4563
|
await runEmitStep({
|
|
4564
4564
|
name,
|
|
@@ -4601,7 +4601,7 @@ of the item, and a (proof: <kind>) annotation names its proof.
|
|
|
4601
4601
|
${cliInvocation()} emit criteria acceptance/412-login.md --item 412
|
|
4602
4602
|
`
|
|
4603
4603
|
).action(async (file, opts) => {
|
|
4604
|
-
const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-
|
|
4604
|
+
const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-IC5OIZX2.js');
|
|
4605
4605
|
try {
|
|
4606
4606
|
const result = await runEmitCriteria({
|
|
4607
4607
|
file,
|
|
@@ -4625,9 +4625,9 @@ function registerSpecCommands(program2) {
|
|
|
4625
4625
|
const specCmd = program2.command("spec").description("Find, file and edit the issue a spec lives in, in your factory's tracker");
|
|
4626
4626
|
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)");
|
|
4627
4627
|
const run = async (action) => {
|
|
4628
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4628
|
+
const { WorkCommandError } = await import('./work-cmd-DYM67Z3F.js');
|
|
4629
4629
|
try {
|
|
4630
|
-
await action(await import('./spec-cmd-
|
|
4630
|
+
await action(await import('./spec-cmd-SLJT7MRX.js'));
|
|
4631
4631
|
} catch (err) {
|
|
4632
4632
|
if (err instanceof WorkCommandError) {
|
|
4633
4633
|
fail(err.message);
|
|
@@ -4662,7 +4662,7 @@ Prints each problem the item covers with its id, its reports and its result.
|
|
|
4662
4662
|
session was launched for is used.
|
|
4663
4663
|
`
|
|
4664
4664
|
).action(async (opts) => {
|
|
4665
|
-
const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-
|
|
4665
|
+
const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-ISP3P3UY.js');
|
|
4666
4666
|
try {
|
|
4667
4667
|
const result = await runFindingsShow({
|
|
4668
4668
|
item: opts.item,
|
|
@@ -4690,7 +4690,7 @@ Give exactly one of --fixed and --not-fixed, and a --note. Run it again for the
|
|
|
4690
4690
|
problem to replace the earlier result. A problem the item does not cover is refused.
|
|
4691
4691
|
`
|
|
4692
4692
|
).action(async (problem, opts) => {
|
|
4693
|
-
const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-
|
|
4693
|
+
const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-ISP3P3UY.js');
|
|
4694
4694
|
try {
|
|
4695
4695
|
const result = await runFindingsResult({
|
|
4696
4696
|
problem,
|
|
@@ -4731,7 +4731,7 @@ takes it, and prints the line that starts your session on it. That
|
|
|
4731
4731
|
session links itself and holds the item's lease while it works.
|
|
4732
4732
|
`
|
|
4733
4733
|
).action(async (opts) => {
|
|
4734
|
-
const { runWorkBuild, WorkCommandError } = await import('./work-cmd-
|
|
4734
|
+
const { runWorkBuild, WorkCommandError } = await import('./work-cmd-DYM67Z3F.js');
|
|
4735
4735
|
try {
|
|
4736
4736
|
await runWorkBuild(opts);
|
|
4737
4737
|
} catch (err) {
|
|
@@ -4754,7 +4754,7 @@ renews that session's own 20-minute lease, unless --no-lease or
|
|
|
4754
4754
|
--ended is given, or another worker already holds a live one.
|
|
4755
4755
|
`
|
|
4756
4756
|
).action(async (number, opts) => {
|
|
4757
|
-
const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-
|
|
4757
|
+
const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-DYM67Z3F.js');
|
|
4758
4758
|
try {
|
|
4759
4759
|
await runWorkLinkSession({ ...opts, number, noLease: opts.lease === false, logFailures: opts.logFailures === true });
|
|
4760
4760
|
} catch (err) {
|
|
@@ -4778,8 +4778,8 @@ criterion's new proof; --ready hands the thread back to a person. At
|
|
|
4778
4778
|
most one action flag may be given.
|
|
4779
4779
|
`
|
|
4780
4780
|
).action(async (opts) => {
|
|
4781
|
-
const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-
|
|
4782
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4781
|
+
const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-CRRWP3AH.js');
|
|
4782
|
+
const { WorkCommandError } = await import('./work-cmd-DYM67Z3F.js');
|
|
4783
4783
|
try {
|
|
4784
4784
|
await runWorkComment(opts);
|
|
4785
4785
|
} catch (err) {
|
|
@@ -4800,8 +4800,8 @@ criterion that carries proof or a comment, each with who is waiting
|
|
|
4800
4800
|
on whom next.
|
|
4801
4801
|
`
|
|
4802
4802
|
).action(async (opts) => {
|
|
4803
|
-
const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-
|
|
4804
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4803
|
+
const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-CRRWP3AH.js');
|
|
4804
|
+
const { WorkCommandError } = await import('./work-cmd-DYM67Z3F.js');
|
|
4805
4805
|
try {
|
|
4806
4806
|
await runWorkThreads(opts);
|
|
4807
4807
|
} catch (err) {
|
|
@@ -4825,8 +4825,8 @@ still running, or that an older runner released, has no log and the
|
|
|
4825
4825
|
command exits 1.
|
|
4826
4826
|
`
|
|
4827
4827
|
).action(async (opts) => {
|
|
4828
|
-
const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-
|
|
4829
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4828
|
+
const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-7LFOEVXI.js');
|
|
4829
|
+
const { WorkCommandError } = await import('./work-cmd-DYM67Z3F.js');
|
|
4830
4830
|
try {
|
|
4831
4831
|
await runWorkLogs(opts);
|
|
4832
4832
|
} catch (err) {
|
|
@@ -4849,8 +4849,8 @@ item is not built again until a new build request. Exits 1 when no host
|
|
|
4849
4849
|
build is running for the item.
|
|
4850
4850
|
`
|
|
4851
4851
|
).action(async (opts) => {
|
|
4852
|
-
const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-
|
|
4853
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4852
|
+
const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-GVFSTGLK.js');
|
|
4853
|
+
const { WorkCommandError } = await import('./work-cmd-DYM67Z3F.js');
|
|
4854
4854
|
try {
|
|
4855
4855
|
await runWorkStop(opts);
|
|
4856
4856
|
} catch (err) {
|
|
@@ -4871,7 +4871,7 @@ deletes anything \u2014 the item is removed from Work only once no
|
|
|
4871
4871
|
live addition remains on it.
|
|
4872
4872
|
`
|
|
4873
4873
|
).action(async (opts) => {
|
|
4874
|
-
const { runWorkRemove, WorkCommandError } = await import('./work-cmd-
|
|
4874
|
+
const { runWorkRemove, WorkCommandError } = await import('./work-cmd-DYM67Z3F.js');
|
|
4875
4875
|
try {
|
|
4876
4876
|
await runWorkRemove(opts);
|
|
4877
4877
|
} catch (err) {
|
|
@@ -4883,7 +4883,7 @@ live addition remains on it.
|
|
|
4883
4883
|
}
|
|
4884
4884
|
});
|
|
4885
4885
|
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) => {
|
|
4886
|
-
const { runWorkStatus, WorkCommandError } = await import('./work-cmd-
|
|
4886
|
+
const { runWorkStatus, WorkCommandError } = await import('./work-cmd-DYM67Z3F.js');
|
|
4887
4887
|
try {
|
|
4888
4888
|
await runWorkStatus(opts);
|
|
4889
4889
|
} catch (err) {
|
|
@@ -4895,7 +4895,7 @@ live addition remains on it.
|
|
|
4895
4895
|
}
|
|
4896
4896
|
});
|
|
4897
4897
|
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) => {
|
|
4898
|
-
const { runWorkList, WorkCommandError } = await import('./work-cmd-
|
|
4898
|
+
const { runWorkList, WorkCommandError } = await import('./work-cmd-DYM67Z3F.js');
|
|
4899
4899
|
try {
|
|
4900
4900
|
await runWorkList(opts);
|
|
4901
4901
|
} catch (err) {
|
|
@@ -4916,7 +4916,7 @@ by a different key is refused; claiming again with the same key extends
|
|
|
4916
4916
|
it. --host is a label only.
|
|
4917
4917
|
`
|
|
4918
4918
|
).action(async (opts) => {
|
|
4919
|
-
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-
|
|
4919
|
+
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-TLXRPJWO.js');
|
|
4920
4920
|
try {
|
|
4921
4921
|
await runWorkClaim(opts);
|
|
4922
4922
|
} catch (err) {
|
|
@@ -4936,7 +4936,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
|
|
|
4936
4936
|
lease has expired, or a 403 if a different key holds it.
|
|
4937
4937
|
`
|
|
4938
4938
|
).action(async (opts) => {
|
|
4939
|
-
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-
|
|
4939
|
+
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-TLXRPJWO.js');
|
|
4940
4940
|
try {
|
|
4941
4941
|
await runWorkRenew(opts);
|
|
4942
4942
|
} catch (err) {
|
|
@@ -4968,7 +4968,7 @@ applies to a host's lease only. A later tool call in the session
|
|
|
4968
4968
|
takes the lease again.
|
|
4969
4969
|
`
|
|
4970
4970
|
).action(async (opts) => {
|
|
4971
|
-
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-
|
|
4971
|
+
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-TLXRPJWO.js');
|
|
4972
4972
|
try {
|
|
4973
4973
|
await runWorkRelease(opts);
|
|
4974
4974
|
} catch (err) {
|
|
@@ -4995,7 +4995,7 @@ Idempotent: declaring the same pull request twice is a no-op.
|
|
|
4995
4995
|
needs your own login; an agent session or a factory key is refused.
|
|
4996
4996
|
`
|
|
4997
4997
|
).action(async (number, opts) => {
|
|
4998
|
-
const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-
|
|
4998
|
+
const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-ZVE7EGSC.js');
|
|
4999
4999
|
try {
|
|
5000
5000
|
await runWorkPr({ ...opts, number });
|
|
5001
5001
|
} catch (err) {
|
|
@@ -5020,8 +5020,8 @@ login, then declares the pull request on the item, as \`work pr\` does.
|
|
|
5020
5020
|
Run it again after a change to the title or description.
|
|
5021
5021
|
`
|
|
5022
5022
|
).action(async (opts) => {
|
|
5023
|
-
const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-
|
|
5024
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
5023
|
+
const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-XXQ75PSU.js');
|
|
5024
|
+
const { WorkCommandError } = await import('./work-cmd-DYM67Z3F.js');
|
|
5025
5025
|
try {
|
|
5026
5026
|
await runWorkOpenPr(opts);
|
|
5027
5027
|
} catch (err) {
|
|
@@ -5038,7 +5038,7 @@ function registerRunnerCommands(program2) {
|
|
|
5038
5038
|
const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
|
|
5039
5039
|
runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
|
|
5040
5040
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-CUJ3Q4L2.js');
|
|
5041
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5041
|
+
const { start, RunnerStartError } = await import('./loop-MCR3EUSZ.js');
|
|
5042
5042
|
const { RunnerAlreadyRunningError } = await import('./pidfile-52TGLGQH.js');
|
|
5043
5043
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5044
5044
|
try {
|
|
@@ -5057,8 +5057,8 @@ function registerRunnerCommands(program2) {
|
|
|
5057
5057
|
"\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"
|
|
5058
5058
|
).action(async () => {
|
|
5059
5059
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-CUJ3Q4L2.js');
|
|
5060
|
-
const { containerStart } = await import('./container-start-
|
|
5061
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5060
|
+
const { containerStart } = await import('./container-start-BPQHJMNF.js');
|
|
5061
|
+
const { start, RunnerStartError } = await import('./loop-MCR3EUSZ.js');
|
|
5062
5062
|
const { RunnerAlreadyRunningError } = await import('./pidfile-52TGLGQH.js');
|
|
5063
5063
|
try {
|
|
5064
5064
|
const result = await containerStart({
|
|
@@ -5078,7 +5078,7 @@ function registerRunnerCommands(program2) {
|
|
|
5078
5078
|
});
|
|
5079
5079
|
runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
|
|
5080
5080
|
const { defaultRunnerConfigPath } = await import('./config-CUJ3Q4L2.js');
|
|
5081
|
-
const { runRunnerCheck } = await import('./check-
|
|
5081
|
+
const { runRunnerCheck } = await import('./check-EJKRXI2N.js');
|
|
5082
5082
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5083
5083
|
const result = await runRunnerCheck(configPath);
|
|
5084
5084
|
if (!result.ok) {
|
|
@@ -5112,7 +5112,7 @@ function registerRunnerCommands(program2) {
|
|
|
5112
5112
|
}
|
|
5113
5113
|
try {
|
|
5114
5114
|
if (opts.service === true) {
|
|
5115
|
-
const { installServiceCommand } = await import('./command-
|
|
5115
|
+
const { installServiceCommand } = await import('./command-7IY3XGAG.js');
|
|
5116
5116
|
const result2 = await installServiceCommand({
|
|
5117
5117
|
configPath,
|
|
5118
5118
|
print: opts.print,
|
|
@@ -5168,7 +5168,7 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
|
|
|
5168
5168
|
return;
|
|
5169
5169
|
}
|
|
5170
5170
|
const { defaultRunnerConfigPath } = await import('./config-CUJ3Q4L2.js');
|
|
5171
|
-
const { uninstallServiceCommand } = await import('./command-
|
|
5171
|
+
const { uninstallServiceCommand } = await import('./command-7IY3XGAG.js');
|
|
5172
5172
|
const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
|
|
5173
5173
|
if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
|
|
5174
5174
|
`);
|
|
@@ -5196,10 +5196,10 @@ already in claude.env is used.
|
|
|
5196
5196
|
`
|
|
5197
5197
|
).action(async (opts) => {
|
|
5198
5198
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-CUJ3Q4L2.js');
|
|
5199
|
-
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-
|
|
5200
|
-
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-
|
|
5201
|
-
const { detectMachine } = await import('./machine-
|
|
5202
|
-
const { chooseVm, runVmInit, VmInitError } = await import('./init-
|
|
5199
|
+
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-YRSKJNSB.js');
|
|
5200
|
+
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-BQSR6MK4.js');
|
|
5201
|
+
const { detectMachine } = await import('./machine-35YQ7MGN.js');
|
|
5202
|
+
const { chooseVm, runVmInit, VmInitError } = await import('./init-ZXV6LILS.js');
|
|
5203
5203
|
const { AGENT_COMMANDS, credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-H6XLACTG.js');
|
|
5204
5204
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5205
5205
|
if (opts.agent !== void 0 && !isAgentName(opts.agent)) {
|
|
@@ -5214,7 +5214,7 @@ already in claude.env is used.
|
|
|
5214
5214
|
try {
|
|
5215
5215
|
let credential;
|
|
5216
5216
|
if (agent !== void 0) {
|
|
5217
|
-
const { readPipedKey } = await import('./login-browser-
|
|
5217
|
+
const { readPipedKey } = await import('./login-browser-3RIZQJY2.js');
|
|
5218
5218
|
credential = credentialFromStdin(
|
|
5219
5219
|
await readPipedKey(process.stdin, {
|
|
5220
5220
|
onWaiting: () => process.stderr.write(`runner init is waiting for Claude's credential on stdin; close stdin to use the one already in claude.env
|
|
@@ -5350,7 +5350,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
|
|
|
5350
5350
|
let serviceUp = false;
|
|
5351
5351
|
let restart;
|
|
5352
5352
|
if (installedLayout) {
|
|
5353
|
-
const { installServiceCommand } = await import('./command-
|
|
5353
|
+
const { installServiceCommand } = await import('./command-7IY3XGAG.js');
|
|
5354
5354
|
const service = await installServiceCommand({
|
|
5355
5355
|
configPath,
|
|
5356
5356
|
entryPath: process.argv[1] ?? "",
|
|
@@ -5397,8 +5397,8 @@ Next:
|
|
|
5397
5397
|
const { defaultRunnerConfigPath } = await import('./config-CUJ3Q4L2.js');
|
|
5398
5398
|
const { buildRepositoryImage, RecipeError } = await import('./build-NCELVKHF.js');
|
|
5399
5399
|
const { currentCliBuild } = await import('./cli-build-K56DK4DS.js');
|
|
5400
|
-
const { createDockerHost } = await import('./docker-
|
|
5401
|
-
const { builderSpec } = await import('./builder-
|
|
5400
|
+
const { createDockerHost } = await import('./docker-UKJBLZLW.js');
|
|
5401
|
+
const { builderSpec } = await import('./builder-EELBB7SI.js');
|
|
5402
5402
|
const { loadRunnerConfig } = await import('./config-CUJ3Q4L2.js');
|
|
5403
5403
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5404
5404
|
const loaded = (() => {
|
|
@@ -5410,11 +5410,11 @@ Next:
|
|
|
5410
5410
|
})();
|
|
5411
5411
|
const memory = loaded?.build?.memory ?? "8g";
|
|
5412
5412
|
try {
|
|
5413
|
-
const { ensureRunnerIdentity } = await import('./runner-identity-
|
|
5413
|
+
const { ensureRunnerIdentity } = await import('./runner-identity-GO762MHZ.js');
|
|
5414
5414
|
await ensureRunnerIdentity(configPath, { log: (line) => console.error(line) }).catch((err) => {
|
|
5415
5415
|
console.error(`the runner's Docker identity could not be stored: ${err instanceof Error ? err.message : String(err)}`);
|
|
5416
5416
|
});
|
|
5417
|
-
const { imageTargetFor } = await import('./governing-source-
|
|
5417
|
+
const { imageTargetFor } = await import('./governing-source-PMWZJCXJ.js');
|
|
5418
5418
|
const target = await imageTargetFor({ config: loaded, repository: opts.repository, fetchImpl: fetch });
|
|
5419
5419
|
if (!target.ok) {
|
|
5420
5420
|
if (opts.json) {
|
|
@@ -5478,7 +5478,7 @@ Next:
|
|
|
5478
5478
|
});
|
|
5479
5479
|
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) => {
|
|
5480
5480
|
const { defaultRunnerConfigPath } = await import('./config-CUJ3Q4L2.js');
|
|
5481
|
-
const { requestStop } = await import('./loop-
|
|
5481
|
+
const { requestStop } = await import('./loop-MCR3EUSZ.js');
|
|
5482
5482
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5483
5483
|
const { runnerImageVersion } = await import('./image-tag-V2LXTKK7.js');
|
|
5484
5484
|
await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
|
|
@@ -5486,8 +5486,8 @@ Next:
|
|
|
5486
5486
|
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) => {
|
|
5487
5487
|
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-CUJ3Q4L2.js');
|
|
5488
5488
|
const { jobsDir, runnerDir } = await import('./paths-BN7X2YPM.js');
|
|
5489
|
-
const { listJobFiles, runnerProcessState } = await import('./loop-
|
|
5490
|
-
const { renderStatus } = await import('./status-
|
|
5489
|
+
const { listJobFiles, runnerProcessState } = await import('./loop-MCR3EUSZ.js');
|
|
5490
|
+
const { renderStatus } = await import('./status-GQEAZBUJ.js');
|
|
5491
5491
|
const { readHousekeepingRecord } = await import('./record-BSY4BKJ5.js');
|
|
5492
5492
|
const path2 = await import('path');
|
|
5493
5493
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
@@ -5547,7 +5547,7 @@ Next:
|
|
|
5547
5547
|
});
|
|
5548
5548
|
runnerCmd.command("logs").argument("<item>", "the work item's number in the factory").description("Print the newest attempt's log for one item").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) => {
|
|
5549
5549
|
const { defaultRunnerConfigPath } = await import('./config-CUJ3Q4L2.js');
|
|
5550
|
-
const { listJobFiles } = await import('./loop-
|
|
5550
|
+
const { listJobFiles } = await import('./loop-MCR3EUSZ.js');
|
|
5551
5551
|
const { newestAttempt, logPathFor, tail, RunnerLogsError } = await import('./logs-ET75ZUCN.js');
|
|
5552
5552
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5553
5553
|
const item = parseTrackerNumber(itemArg);
|