@outerlayer/cli 0.34.0-next.20261029140044 → 0.34.1-next.20261029191024
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/CHANGELOG.md +48 -0
- package/README.md +1 -1
- package/dist/{agent-setup-UPIHHKI2.js → agent-setup-G445QZEM.js} +10 -10
- package/dist/{artifact-link-cmd-6LFCTDBD.js → artifact-link-cmd-H3KVDGP3.js} +2 -2
- package/dist/{build-WC5EBFL3.js → build-26BBPGWD.js} +4 -4
- package/dist/{build-disk-RARJJXLL.js → build-disk-UGIMTVLM.js} +4 -4
- package/dist/build-info.json +1 -1
- package/dist/{builder-IIFXZVGN.js → builder-LYFK7SKW.js} +3 -3
- package/dist/{caller-VWXDLYPU.js → caller-YGK3NKQQ.js} +6 -6
- package/dist/{check-FYYNT3UP.js → check-A6QEWYRN.js} +35 -35
- package/dist/{chunk-5DVJQC76.js → chunk-23DAYPF5.js} +4 -4
- package/dist/{chunk-5FWBAM6O.js → chunk-2PMJ7TQR.js} +1 -1
- package/dist/{chunk-2MTBQRCI.js → chunk-2WXFXI36.js} +6 -6
- package/dist/{chunk-IP3HLHWO.js → chunk-5ESKQSQP.js} +1 -1
- package/dist/{chunk-FYVIHKCH.js → chunk-6IIP4KMY.js} +3 -3
- package/dist/{chunk-ZI2E4YMY.js → chunk-6YK3SXCW.js} +1 -1
- package/dist/{chunk-AYMOVIT2.js → chunk-A6QFXRUU.js} +14 -14
- package/dist/{chunk-QM3HMXMU.js → chunk-AW4MYEIW.js} +1 -1
- package/dist/{chunk-PQ5YDDDE.js → chunk-AWNONB6E.js} +2 -2
- package/dist/{chunk-AZLWIUIF.js → chunk-BITJMQJ2.js} +3 -3
- package/dist/{chunk-JBUFM5JN.js → chunk-BMMSKKVA.js} +2 -2
- package/dist/{chunk-CZA37XBG.js → chunk-CANPD2V3.js} +5 -5
- package/dist/{chunk-3NPVOVWY.js → chunk-CPWSPEP5.js} +2 -2
- package/dist/{chunk-DVXUUCOF.js → chunk-CQQWIWYG.js} +1 -1
- package/dist/{chunk-32IASBQV.js → chunk-E3R62JBJ.js} +4 -4
- package/dist/{chunk-25SWTFPA.js → chunk-EBFU4YCI.js} +4 -4
- package/dist/{chunk-2OE4BZRF.js → chunk-EK7MQ56V.js} +3 -3
- package/dist/{chunk-UX7BQX4C.js → chunk-F7CYWR7J.js} +17 -17
- package/dist/{chunk-JXXMOAJG.js → chunk-GWXHRG2N.js} +1 -1
- package/dist/{chunk-DY2HAYJL.js → chunk-HJS267VR.js} +19 -5
- package/dist/{chunk-SVDO6ZQA.js → chunk-HJSNFVKX.js} +8 -8
- package/dist/{chunk-M4MSA6I4.js → chunk-HTJR62XR.js} +1 -1
- package/dist/{chunk-4CGEAKOR.js → chunk-HXCUMPPY.js} +3 -3
- package/dist/{chunk-NB44HOTO.js → chunk-I4TEZU2E.js} +2 -2
- package/dist/{chunk-QZQ2UTPE.js → chunk-L5GF2A43.js} +2 -2
- package/dist/{chunk-UPRZREBO.js → chunk-MGF4254K.js} +1 -1
- package/dist/{chunk-NZDM6KJ2.js → chunk-MTUV27NY.js} +5 -5
- package/dist/{chunk-YTTESG7K.js → chunk-N2XW4NYY.js} +5 -1
- package/dist/{chunk-7NARODRP.js → chunk-NFBWTJ3A.js} +1 -1
- package/dist/{chunk-H25XK3DY.js → chunk-PBAGWT2M.js} +1 -1
- package/dist/{chunk-CDVG2LXT.js → chunk-PILW3YP4.js} +7 -7
- package/dist/{chunk-WG3VIMD2.js → chunk-POZ65DAI.js} +6 -6
- package/dist/{chunk-HS5QEIJT.js → chunk-PPZ47OB6.js} +2 -2
- package/dist/{chunk-WJTIU2A5.js → chunk-Q7ZHL6FY.js} +4 -4
- package/dist/{chunk-HNA33MLR.js → chunk-QJCXP4TA.js} +2 -2
- package/dist/{chunk-H467HI5U.js → chunk-QRDF5A3U.js} +2 -2
- package/dist/{chunk-TJ755TTP.js → chunk-RO2XIOEN.js} +5 -5
- package/dist/{chunk-PUSCE544.js → chunk-SUVS7A7X.js} +4 -4
- package/dist/{chunk-62TMOXQN.js → chunk-TMFKZBOW.js} +2 -2
- package/dist/{chunk-RWQLBHU3.js → chunk-TYRKGKMX.js} +4 -4
- package/dist/{chunk-PHETCXGP.js → chunk-UJTYMT7G.js} +1 -1
- package/dist/{chunk-7SFE6CFO.js → chunk-VE3UM4HU.js} +12 -12
- package/dist/{chunk-XGSJNXH2.js → chunk-VQCAJUDV.js} +2 -2
- package/dist/{chunk-SIF536BT.js → chunk-WJPBZFSF.js} +1 -1
- package/dist/{chunk-PDK35AR4.js → chunk-XSX42Q2H.js} +1 -1
- package/dist/{chunk-7K6MTRN2.js → chunk-Y5CPIOBF.js} +12 -12
- package/dist/{chunk-2B6EKUBD.js → chunk-YC5KTX7D.js} +4 -4
- package/dist/{claude-launcher-MMCKOBND.js → claude-launcher-VA3OAA5V.js} +5 -5
- package/dist/{cli-VLQZS3BV.js → cli-NWOZT6B5.js} +123 -114
- package/dist/{command-Y2HFOL33.js → command-WQG2Y6MV.js} +21 -21
- package/dist/{config-YI5R4K77.js → config-FVSPGZIO.js} +5 -5
- package/dist/{connect-cmd-NHRK6Y4L.js → connect-cmd-NDWWTEHW.js} +8 -8
- package/dist/{container-start-W3BDQAQE.js → container-start-MMTUO3JR.js} +32 -32
- package/dist/{context-cleanup-PASDUBGW.js → context-cleanup-KIWINRKM.js} +3 -3
- package/dist/{context-show-cmd-OLJEKW2G.js → context-show-cmd-HLEHQJTV.js} +9 -9
- package/dist/{control-plane-launch-FV5Q6GVJ.js → control-plane-launch-X2QXGPFW.js} +6 -6
- package/dist/{demo-voice-cmd-W47GNKN6.js → demo-voice-cmd-NSKOX6T7.js} +14 -14
- package/dist/{dist-ZDKMTBJU.js → dist-RR6YVPSF.js} +2 -2
- package/dist/{docker-36W7PA5I.js → docker-LKM7PPDE.js} +3 -3
- package/dist/{doctor-YAPSQYAC.js → doctor-N5R5YUEC.js} +22 -22
- package/dist/{emit-artifact-cmd-72TRW3OL.js → emit-artifact-cmd-72V5FRE3.js} +13 -13
- package/dist/{emit-cmd-UOPHEUW5.js → emit-cmd-ZHYBT2F6.js} +6 -6
- package/dist/{emit-criteria-cmd-TLO4L3FN.js → emit-criteria-cmd-HIE6JLCO.js} +10 -10
- package/dist/{emit-demo-cmd-PISZZ6TE.js → emit-demo-cmd-TR2IS5NY.js} +14 -14
- package/dist/{emit-finding-cmd-MRXMDOQY.js → emit-finding-cmd-3HZBWWP7.js} +10 -10
- package/dist/{emit-result-cmd-UHX7OTY2.js → emit-result-cmd-YIPXXWII.js} +12 -12
- package/dist/{emit-step-cmd-TL73HPJY.js → emit-step-cmd-QQYPX7EF.js} +10 -10
- package/dist/{find-unit-LIJR6HXI.js → find-unit-QS446AID.js} +7 -7
- package/dist/{findings-cmd-WPHPYWZJ.js → findings-cmd-CPNMM5CJ.js} +10 -10
- package/dist/{fleet-readiness-4RNICYSP.js → fleet-readiness-ZQOFJZ5B.js} +8 -8
- package/dist/{governing-source-HAJVYDYG.js → governing-source-YXZXD6LI.js} +13 -13
- package/dist/{hook-fast-5PNO5HRO.js → hook-fast-OPHM3MRK.js} +1 -1
- package/dist/{host-checks-IAF6DYWU.js → host-checks-5YDTGG6B.js} +30 -30
- package/dist/index.js +4 -4
- package/dist/{init-4MUFI7Q7.js → init-7ZFHIK5W.js} +21 -21
- package/dist/{init-HTX7R3O6.js → init-M6GSCMJM.js} +21 -21
- package/dist/{init-cmd-Q337RMX5.js → init-cmd-RBRSD4US.js} +18 -18
- package/dist/{init-update-7F5WWVWX.js → init-update-GFXITSTA.js} +17 -17
- package/dist/{layout-ZE6F2Z7W.js → layout-2YSKJHPC.js} +4 -4
- package/dist/{login-browser-YB7AMKHR.js → login-browser-S6PLZCKK.js} +2 -2
- package/dist/{loop-XZH3TA5Z.js → loop-72U5FJPH.js} +34 -34
- package/dist/{machine-L4U73LZN.js → machine-FQNIDAC5.js} +21 -21
- package/dist/{machine-skills-DMHU7OLO.js → machine-skills-YXN3TMJ5.js} +4 -4
- package/dist/{runner-env-P7BHDTKU.js → runner-env-HUZ2TMAK.js} +7 -7
- package/dist/{runner-identity-BQEM2OHY.js → runner-identity-XKJFHYS7.js} +3 -3
- package/dist/{runner-key-MNVNR6UM.js → runner-key-HU542TOA.js} +21 -21
- package/dist/{session-sender-HPJWCUVZ.js → session-sender-5DTNDRJY.js} +13 -13
- package/dist/{spec-cmd-NPZ2H3ZN.js → spec-cmd-HMPVRZP2.js} +11 -11
- package/dist/{starter-pack-WUNNS6G7.js → starter-pack-3ERHTBBJ.js} +5 -5
- package/dist/{status-G4EL4ZCI.js → status-YOGCWUOD.js} +30 -30
- package/dist/{sync-cmd-AFB3TGYH.js → sync-cmd-45QEXKDM.js} +12 -12
- package/dist/{update-steps-N6U2OWK6.js → update-steps-VI2KVXG6.js} +31 -31
- package/dist/{watch-O6ZO5HBT.js → watch-L5MUTCM2.js} +12 -12
- package/dist/{work-claim-cmd-CN5FR3G4.js → work-claim-cmd-GF6O4PE4.js} +15 -15
- package/dist/{work-cmd-EHDLH3CJ.js → work-cmd-PKQ3UANC.js} +10 -10
- package/dist/{work-comment-cmd-YPNDPDHP.js → work-comment-cmd-X26ER5HH.js} +11 -11
- package/dist/{work-demo-cmd-TM47UETD.js → work-demo-cmd-WBOSB5QG.js} +10 -10
- package/dist/{work-logs-cmd-4PCBHRM2.js → work-logs-cmd-VRPW3AAL.js} +10 -10
- package/dist/{work-open-pr-cmd-ESLHVNO5.js → work-open-pr-cmd-BYQSZHFN.js} +11 -11
- package/dist/{work-pr-cmd-N63H6OJM.js → work-pr-cmd-BQBQORGW.js} +10 -10
- package/dist/{work-proofs-cmd-U6XFQ34N.js → work-proofs-cmd-BSNVSO7A.js} +12 -12
- package/dist/{work-proofs-record-YYRYIYMQ.js → work-proofs-record-LV5UTB3H.js} +18 -18
- package/dist/{work-stop-cmd-RB64IM3K.js → work-stop-cmd-5J5MUNDK.js} +10 -10
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-amend/SKILL.md +20 -20
- package/skill-pack/maintained/outerlayer-amend/references/new-proof.md +13 -0
- package/skill-pack/maintained/outerlayer-amend/references/threads.md +56 -0
|
@@ -1,43 +1,43 @@
|
|
|
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-
|
|
3
|
+
import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-VE3UM4HU.js';
|
|
4
|
+
import './chunk-Q7ZHL6FY.js';
|
|
5
5
|
import './chunk-OHQMGLJP.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import { verifiedTrackerNames, TRACKERS } from './chunk-
|
|
6
|
+
import './chunk-VQCAJUDV.js';
|
|
7
|
+
import { verifiedTrackerNames, TRACKERS } from './chunk-MTUV27NY.js';
|
|
8
8
|
import './chunk-IP7BIBXJ.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
9
|
+
import './chunk-L5GF2A43.js';
|
|
10
|
+
import './chunk-TYRKGKMX.js';
|
|
11
|
+
import './chunk-6YK3SXCW.js';
|
|
12
12
|
import './chunk-A2LHHKTT.js';
|
|
13
13
|
import { C, warnDeprecated, API_KEY_FLAG_DEPRECATION, NO_COLOR_FLAG, stripNoColor } from './chunk-2AM6Z5BP.js';
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-
|
|
17
|
-
import './chunk-
|
|
14
|
+
import './chunk-POZ65DAI.js';
|
|
15
|
+
import './chunk-XSX42Q2H.js';
|
|
16
|
+
import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-TMFKZBOW.js';
|
|
17
|
+
import './chunk-AWNONB6E.js';
|
|
18
18
|
import './chunk-GBMTKV5B.js';
|
|
19
19
|
import './chunk-HWVMRETT.js';
|
|
20
20
|
import './chunk-XU5BNWX7.js';
|
|
21
|
-
import { hookFiredMarkerPath, installedCliDistDir } from './chunk-
|
|
21
|
+
import { hookFiredMarkerPath, installedCliDistDir } from './chunk-PPZ47OB6.js';
|
|
22
22
|
import './chunk-545P7JY7.js';
|
|
23
23
|
import './chunk-YBAVN6WS.js';
|
|
24
24
|
import './chunk-BKO6JEZI.js';
|
|
25
25
|
import './chunk-HCVLP7XA.js';
|
|
26
26
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
27
|
-
import './chunk-
|
|
28
|
-
import './chunk-
|
|
29
|
-
import './chunk-
|
|
27
|
+
import './chunk-AW4MYEIW.js';
|
|
28
|
+
import './chunk-MGF4254K.js';
|
|
29
|
+
import './chunk-PBAGWT2M.js';
|
|
30
30
|
import './chunk-OLM2TIOW.js';
|
|
31
31
|
import './chunk-CDDED64E.js';
|
|
32
32
|
import { resolveVersion, resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
33
33
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
34
34
|
import { cliInvocation, packageRunnerOf } from './chunk-FZKNTIOJ.js';
|
|
35
35
|
import { settingsPath, readSettings, SettingsParseError, listHookCandidates, PORTABLE_BIN, wrapHooks, writeSettings, unwrapHooks, REGISTERED_EVENTS, removeHooks, removeStatusline, cliBinResolvable, mergeHooks, repointWrappedHooks, AUTO_WRAP_EVENTS, mergeStatusline } from './chunk-KYDEBGJG.js';
|
|
36
|
-
import './chunk-
|
|
36
|
+
import './chunk-GWXHRG2N.js';
|
|
37
37
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
38
38
|
import { removeJournalHooks, removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
|
|
39
|
-
import './chunk-
|
|
40
|
-
import './chunk-
|
|
39
|
+
import './chunk-2PMJ7TQR.js';
|
|
40
|
+
import './chunk-N2XW4NYY.js';
|
|
41
41
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
42
42
|
import './chunk-YQHUCOUL.js';
|
|
43
43
|
import './chunk-GANAOCHR.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-3ERHTBBJ.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-2YSKJHPC.js');
|
|
3669
3669
|
const fresh = !isAgentsMdLayout(repoRoot) && !existsSync(join(repoRoot, ".outerlayer/skills")) && !existsSync(join(repoRoot, ".outerlayer/AGENTS.md"));
|
|
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-YXN3TMJ5.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-NDWWTEHW.js');
|
|
3803
|
+
const { resolveRepoIdentity } = await import('./dist-RR6YVPSF.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-YXN3TMJ5.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-GFXITSTA.js');
|
|
3878
|
+
const { fleetReadiness } = await import('./fleet-readiness-ZQOFJZ5B.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-3ERHTBBJ.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-RBRSD4US.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-RBRSD4US.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-G445QZEM.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-NDWWTEHW.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-NDWWTEHW.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-S6PLZCKK.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-H3KVDGP3.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-45QEXKDM.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-L5MUTCM2.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-5DTNDRJY.js');
|
|
4195
4195
|
try {
|
|
4196
4196
|
await runSessionSender();
|
|
4197
4197
|
} catch (err) {
|
|
@@ -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-ZHYBT2F6.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-YIPXXWII.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-72V5FRE3.js');
|
|
4342
4342
|
let pr;
|
|
4343
4343
|
if (opts.pr !== void 0) {
|
|
4344
4344
|
pr = parseTrackerNumber(opts.pr);
|
|
@@ -4394,7 +4394,7 @@ its criterion, and the new record retires the old record. The id must be the ite
|
|
|
4394
4394
|
as \`work demo --item <n> --json\` prints it.
|
|
4395
4395
|
`
|
|
4396
4396
|
).action(async (manifest, opts) => {
|
|
4397
|
-
const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-
|
|
4397
|
+
const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-TR2IS5NY.js');
|
|
4398
4398
|
let item;
|
|
4399
4399
|
if (opts.item !== void 0) {
|
|
4400
4400
|
item = parseTrackerNumber(opts.item);
|
|
@@ -4437,7 +4437,7 @@ as \`work demo --item <n> --json\` prints it.
|
|
|
4437
4437
|
}
|
|
4438
4438
|
});
|
|
4439
4439
|
program2.command("demo-voice", { hidden: true }).description("Speak demo lines for a recorder: JSON lines in on stdin, out on stdout").action(async () => {
|
|
4440
|
-
const { runDemoVoice } = await import('./demo-voice-cmd-
|
|
4440
|
+
const { runDemoVoice } = await import('./demo-voice-cmd-NSKOX6T7.js');
|
|
4441
4441
|
await runDemoVoice();
|
|
4442
4442
|
});
|
|
4443
4443
|
const demoCmd = program2.command("demo").description("Record demos with the recorder this CLI carries");
|
|
@@ -4504,7 +4504,7 @@ recent events with their ids. --find <text> searches all of them.
|
|
|
4504
4504
|
item that session was launched for is used automatically.
|
|
4505
4505
|
`
|
|
4506
4506
|
).action(async (opts) => {
|
|
4507
|
-
const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-
|
|
4507
|
+
const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-3HZBWWP7.js');
|
|
4508
4508
|
try {
|
|
4509
4509
|
refuseRemovedFindingFlags(opts);
|
|
4510
4510
|
const result = await runEmitFinding({
|
|
@@ -4571,7 +4571,7 @@ the whole batch. "untimed": true records one with no time on purpose.
|
|
|
4571
4571
|
that session was launched for is used automatically.
|
|
4572
4572
|
`
|
|
4573
4573
|
).action(async (file, opts) => {
|
|
4574
|
-
const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-
|
|
4574
|
+
const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-3HZBWWP7.js');
|
|
4575
4575
|
try {
|
|
4576
4576
|
const result = await runEmitFindings({
|
|
4577
4577
|
file,
|
|
@@ -4606,7 +4606,7 @@ command, the command exits 0, and \`sync\` sends it later. If the gateway refuse
|
|
|
4606
4606
|
the step, the command prints why and exits 1.
|
|
4607
4607
|
`
|
|
4608
4608
|
).action(async (name, opts) => {
|
|
4609
|
-
const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-
|
|
4609
|
+
const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-QQYPX7EF.js');
|
|
4610
4610
|
try {
|
|
4611
4611
|
await runEmitStep({
|
|
4612
4612
|
name,
|
|
@@ -4649,7 +4649,7 @@ of the item, and a (proof: <kind>) annotation names its proof.
|
|
|
4649
4649
|
${cliInvocation()} emit criteria acceptance/412-login.md --item 412
|
|
4650
4650
|
`
|
|
4651
4651
|
).action(async (file, opts) => {
|
|
4652
|
-
const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-
|
|
4652
|
+
const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-HIE6JLCO.js');
|
|
4653
4653
|
try {
|
|
4654
4654
|
const result = await runEmitCriteria({
|
|
4655
4655
|
file,
|
|
@@ -4673,9 +4673,9 @@ function registerSpecCommands(program2) {
|
|
|
4673
4673
|
const specCmd = program2.command("spec").description("Find, file and edit the issue a spec lives in, in your factory's tracker");
|
|
4674
4674
|
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)");
|
|
4675
4675
|
const run = async (action) => {
|
|
4676
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4676
|
+
const { WorkCommandError } = await import('./work-cmd-PKQ3UANC.js');
|
|
4677
4677
|
try {
|
|
4678
|
-
await action(await import('./spec-cmd-
|
|
4678
|
+
await action(await import('./spec-cmd-HMPVRZP2.js'));
|
|
4679
4679
|
} catch (err) {
|
|
4680
4680
|
if (err instanceof WorkCommandError) {
|
|
4681
4681
|
fail(err.message);
|
|
@@ -4710,7 +4710,7 @@ Prints each problem the item covers with its id, its reports and its result.
|
|
|
4710
4710
|
session was launched for is used.
|
|
4711
4711
|
`
|
|
4712
4712
|
).action(async (opts) => {
|
|
4713
|
-
const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-
|
|
4713
|
+
const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-CPNMM5CJ.js');
|
|
4714
4714
|
try {
|
|
4715
4715
|
const result = await runFindingsShow({
|
|
4716
4716
|
item: opts.item,
|
|
@@ -4738,7 +4738,7 @@ Give exactly one of --fixed and --not-fixed, and a --note. Run it again for the
|
|
|
4738
4738
|
problem to replace the earlier result. A problem the item does not cover is refused.
|
|
4739
4739
|
`
|
|
4740
4740
|
).action(async (problem, opts) => {
|
|
4741
|
-
const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-
|
|
4741
|
+
const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-CPNMM5CJ.js');
|
|
4742
4742
|
try {
|
|
4743
4743
|
const result = await runFindingsResult({
|
|
4744
4744
|
problem,
|
|
@@ -4780,7 +4780,7 @@ takes it, and prints the line that starts your session on it. That
|
|
|
4780
4780
|
session links itself and holds the item's lease while it works.
|
|
4781
4781
|
`
|
|
4782
4782
|
).action(async (opts) => {
|
|
4783
|
-
const { runWorkBuild, WorkCommandError } = await import('./work-cmd-
|
|
4783
|
+
const { runWorkBuild, WorkCommandError } = await import('./work-cmd-PKQ3UANC.js');
|
|
4784
4784
|
try {
|
|
4785
4785
|
await runWorkBuild(opts);
|
|
4786
4786
|
} catch (err) {
|
|
@@ -4803,7 +4803,7 @@ renews that session's own 20-minute lease, unless --no-lease or
|
|
|
4803
4803
|
--ended is given, or another worker already holds a live one.
|
|
4804
4804
|
`
|
|
4805
4805
|
).action(async (number, opts) => {
|
|
4806
|
-
const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-
|
|
4806
|
+
const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-PKQ3UANC.js');
|
|
4807
4807
|
try {
|
|
4808
4808
|
await runWorkLinkSession({ ...opts, number, noLease: opts.lease === false, logFailures: opts.logFailures === true });
|
|
4809
4809
|
} catch (err) {
|
|
@@ -4814,7 +4814,7 @@ renews that session's own 20-minute lease, unless --no-lease or
|
|
|
4814
4814
|
throw err;
|
|
4815
4815
|
}
|
|
4816
4816
|
});
|
|
4817
|
-
workCmd.command("comment").description("Post a comment on a work item's general thread or one of its criterion threads").requiredOption("--item <number>", "the item's number inside this factory").option("--criterion <id>", "the criterion thread to post on (default: the general thread)").option("--body <text>", "the comment's text").option("--artifact <id>", "artifact id \u2014 required with --attach, naming the criterion's new proof").option("--pass", "record a pass (a person's verdict; refused from an agent session or a key)").option("--fail", "record a fail (a person's verdict; refused from an agent session or a key)").option("--attach", "make --artifact the named criterion's proof").option("--ready", "hand the thread back to a person (refused from a person)").option("--session-id <id>", "session id to record as-is, skipping detection (used by the SessionStart hook)").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(
|
|
4817
|
+
workCmd.command("comment").description("Post a comment on a work item's general thread or one of its criterion threads").requiredOption("--item <number>", "the item's number inside this factory").option("--criterion <id>", "the criterion thread to post on (default: the general thread)").option("--thread <id>", "the thread to answer, from `work threads --json`").option("--body <text>", "the comment's text").option("--artifact <id>", "artifact id \u2014 required with --attach, naming the criterion's new proof").option("--pass", "record a pass (a person's verdict; refused from an agent session or a key)").option("--fail", "record a fail (a person's verdict; refused from an agent session or a key)").option("--attach", "make --artifact the named criterion's proof").option("--ready", "hand the thread back to a person (refused from a person)").option("--session-id <id>", "session id to record as-is, skipping detection (used by the SessionStart hook)").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(
|
|
4818
4818
|
"after",
|
|
4819
4819
|
`
|
|
4820
4820
|
${cliInvocation()} work comment --item 7 --criterion AC-9-01 --body "fixed" --artifact 3f2a1c9d --attach
|
|
@@ -4825,10 +4825,17 @@ person's verdict on the whole item, so only on the general thread: the
|
|
|
4825
4825
|
gateway refuses them with --criterion. --attach makes --artifact the
|
|
4826
4826
|
criterion's new proof; --ready hands the thread back to a person. At
|
|
4827
4827
|
most one action flag may be given.
|
|
4828
|
+
|
|
4829
|
+
${cliInvocation()} work comment --item 7 --thread <id> --body "Renamed it."
|
|
4830
|
+
|
|
4831
|
+
--thread answers one thread that started at a source, such as a line
|
|
4832
|
+
comment from a GitHub review. OuterLayer posts the answer on the same
|
|
4833
|
+
thread at its source. It takes a plain answer: no --criterion and no
|
|
4834
|
+
action flag.
|
|
4828
4835
|
`
|
|
4829
4836
|
).action(async (opts) => {
|
|
4830
|
-
const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-
|
|
4831
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4837
|
+
const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-X26ER5HH.js');
|
|
4838
|
+
const { WorkCommandError } = await import('./work-cmd-PKQ3UANC.js');
|
|
4832
4839
|
try {
|
|
4833
4840
|
await runWorkComment(opts);
|
|
4834
4841
|
} catch (err) {
|
|
@@ -4839,18 +4846,20 @@ most one action flag may be given.
|
|
|
4839
4846
|
throw err;
|
|
4840
4847
|
}
|
|
4841
4848
|
});
|
|
4842
|
-
workCmd.command("threads").description("Read a work item's general thread and its
|
|
4849
|
+
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(
|
|
4843
4850
|
"after",
|
|
4844
4851
|
`
|
|
4845
4852
|
${cliInvocation()} work threads --item 7
|
|
4846
4853
|
|
|
4847
4854
|
Prints the item's general thread, then one thread per acceptance
|
|
4848
4855
|
criterion that carries proof or a comment, each with who is waiting
|
|
4849
|
-
on whom next.
|
|
4856
|
+
on whom next. Source threads follow: conversations that started outside
|
|
4857
|
+
OuterLayer, such as the line comments of a GitHub review, each with
|
|
4858
|
+
its id, source and comments.
|
|
4850
4859
|
`
|
|
4851
4860
|
).action(async (opts) => {
|
|
4852
|
-
const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-
|
|
4853
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4861
|
+
const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-X26ER5HH.js');
|
|
4862
|
+
const { WorkCommandError } = await import('./work-cmd-PKQ3UANC.js');
|
|
4854
4863
|
try {
|
|
4855
4864
|
await runWorkThreads(opts);
|
|
4856
4865
|
} catch (err) {
|
|
@@ -4874,8 +4883,8 @@ still running, or that an older runner released, has no log and the
|
|
|
4874
4883
|
command exits 1.
|
|
4875
4884
|
`
|
|
4876
4885
|
).action(async (opts) => {
|
|
4877
|
-
const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-
|
|
4878
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4886
|
+
const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-VRPW3AAL.js');
|
|
4887
|
+
const { WorkCommandError } = await import('./work-cmd-PKQ3UANC.js');
|
|
4879
4888
|
try {
|
|
4880
4889
|
await runWorkLogs(opts);
|
|
4881
4890
|
} catch (err) {
|
|
@@ -4898,8 +4907,8 @@ item is not built again until a new build request. Exits 1 when no host
|
|
|
4898
4907
|
build is running for the item.
|
|
4899
4908
|
`
|
|
4900
4909
|
).action(async (opts) => {
|
|
4901
|
-
const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-
|
|
4902
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4910
|
+
const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-5J5MUNDK.js');
|
|
4911
|
+
const { WorkCommandError } = await import('./work-cmd-PKQ3UANC.js');
|
|
4903
4912
|
try {
|
|
4904
4913
|
await runWorkStop(opts);
|
|
4905
4914
|
} catch (err) {
|
|
@@ -4920,8 +4929,8 @@ Prints the item's newest live demo record: its artifact id, the commit it was re
|
|
|
4920
4929
|
test file that recorded it. With --json, prints { "demo": null } for an item with no demo.
|
|
4921
4930
|
`
|
|
4922
4931
|
).action(async (opts) => {
|
|
4923
|
-
const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-
|
|
4924
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4932
|
+
const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-WBOSB5QG.js');
|
|
4933
|
+
const { WorkCommandError } = await import('./work-cmd-PKQ3UANC.js');
|
|
4925
4934
|
try {
|
|
4926
4935
|
await runWorkDemo(opts);
|
|
4927
4936
|
} catch (err) {
|
|
@@ -4942,7 +4951,7 @@ deletes anything \u2014 the item is removed from Work only once no
|
|
|
4942
4951
|
live addition remains on it.
|
|
4943
4952
|
`
|
|
4944
4953
|
).action(async (opts) => {
|
|
4945
|
-
const { runWorkRemove, WorkCommandError } = await import('./work-cmd-
|
|
4954
|
+
const { runWorkRemove, WorkCommandError } = await import('./work-cmd-PKQ3UANC.js');
|
|
4946
4955
|
try {
|
|
4947
4956
|
await runWorkRemove(opts);
|
|
4948
4957
|
} catch (err) {
|
|
@@ -4954,7 +4963,7 @@ live addition remains on it.
|
|
|
4954
4963
|
}
|
|
4955
4964
|
});
|
|
4956
4965
|
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) => {
|
|
4957
|
-
const { runWorkStatus, WorkCommandError } = await import('./work-cmd-
|
|
4966
|
+
const { runWorkStatus, WorkCommandError } = await import('./work-cmd-PKQ3UANC.js');
|
|
4958
4967
|
try {
|
|
4959
4968
|
await runWorkStatus(opts);
|
|
4960
4969
|
} catch (err) {
|
|
@@ -4999,11 +5008,11 @@ differs from HEAD.
|
|
|
4999
5008
|
fail(trackerNumberError("--pr", opts.pr));
|
|
5000
5009
|
return;
|
|
5001
5010
|
}
|
|
5002
|
-
const { runWorkProofsCommand } = await import('./work-proofs-cmd-
|
|
5011
|
+
const { runWorkProofsCommand } = await import('./work-proofs-cmd-BSNVSO7A.js');
|
|
5003
5012
|
await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
|
|
5004
5013
|
});
|
|
5005
5014
|
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) => {
|
|
5006
|
-
const { runWorkList, WorkCommandError } = await import('./work-cmd-
|
|
5015
|
+
const { runWorkList, WorkCommandError } = await import('./work-cmd-PKQ3UANC.js');
|
|
5007
5016
|
try {
|
|
5008
5017
|
await runWorkList(opts);
|
|
5009
5018
|
} catch (err) {
|
|
@@ -5024,7 +5033,7 @@ by a different key is refused; claiming again with the same key extends
|
|
|
5024
5033
|
it. --host is a label only.
|
|
5025
5034
|
`
|
|
5026
5035
|
).action(async (opts) => {
|
|
5027
|
-
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-
|
|
5036
|
+
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-GF6O4PE4.js');
|
|
5028
5037
|
try {
|
|
5029
5038
|
await runWorkClaim(opts);
|
|
5030
5039
|
} catch (err) {
|
|
@@ -5044,7 +5053,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
|
|
|
5044
5053
|
lease has expired, or a 403 if a different key holds it.
|
|
5045
5054
|
`
|
|
5046
5055
|
).action(async (opts) => {
|
|
5047
|
-
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-
|
|
5056
|
+
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-GF6O4PE4.js');
|
|
5048
5057
|
try {
|
|
5049
5058
|
await runWorkRenew(opts);
|
|
5050
5059
|
} catch (err) {
|
|
@@ -5076,7 +5085,7 @@ applies to a host's lease only. A later tool call in the session
|
|
|
5076
5085
|
takes the lease again.
|
|
5077
5086
|
`
|
|
5078
5087
|
).action(async (opts) => {
|
|
5079
|
-
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-
|
|
5088
|
+
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-GF6O4PE4.js');
|
|
5080
5089
|
try {
|
|
5081
5090
|
await runWorkRelease(opts);
|
|
5082
5091
|
} catch (err) {
|
|
@@ -5103,7 +5112,7 @@ Idempotent: declaring the same pull request twice is a no-op.
|
|
|
5103
5112
|
needs your own login; an agent session or a factory key is refused.
|
|
5104
5113
|
`
|
|
5105
5114
|
).action(async (number, opts) => {
|
|
5106
|
-
const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-
|
|
5115
|
+
const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-BQBQORGW.js');
|
|
5107
5116
|
try {
|
|
5108
5117
|
await runWorkPr({ ...opts, number });
|
|
5109
5118
|
} catch (err) {
|
|
@@ -5128,8 +5137,8 @@ login, then declares the pull request on the item, as \`work pr\` does.
|
|
|
5128
5137
|
Run it again after a change to the title or description.
|
|
5129
5138
|
`
|
|
5130
5139
|
).action(async (opts) => {
|
|
5131
|
-
const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-
|
|
5132
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
5140
|
+
const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-BYQSZHFN.js');
|
|
5141
|
+
const { WorkCommandError } = await import('./work-cmd-PKQ3UANC.js');
|
|
5133
5142
|
try {
|
|
5134
5143
|
await runWorkOpenPr(opts);
|
|
5135
5144
|
} catch (err) {
|
|
@@ -5145,8 +5154,8 @@ function registerRunnerCommands(program2) {
|
|
|
5145
5154
|
const runnerCmd = program2.command("runner").description("Take work from the implement and amend queues on this machine");
|
|
5146
5155
|
const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
|
|
5147
5156
|
runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
|
|
5148
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5149
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5157
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-FVSPGZIO.js');
|
|
5158
|
+
const { start, RunnerStartError } = await import('./loop-72U5FJPH.js');
|
|
5150
5159
|
const { RunnerAlreadyRunningError } = await import('./pidfile-KQ2EJABZ.js');
|
|
5151
5160
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5152
5161
|
try {
|
|
@@ -5164,9 +5173,9 @@ function registerRunnerCommands(program2) {
|
|
|
5164
5173
|
"after",
|
|
5165
5174
|
"\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"
|
|
5166
5175
|
).action(async () => {
|
|
5167
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5168
|
-
const { containerStart } = await import('./container-start-
|
|
5169
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5176
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-FVSPGZIO.js');
|
|
5177
|
+
const { containerStart } = await import('./container-start-MMTUO3JR.js');
|
|
5178
|
+
const { start, RunnerStartError } = await import('./loop-72U5FJPH.js');
|
|
5170
5179
|
const { RunnerAlreadyRunningError } = await import('./pidfile-KQ2EJABZ.js');
|
|
5171
5180
|
try {
|
|
5172
5181
|
const result = await containerStart({
|
|
@@ -5188,16 +5197,16 @@ function registerRunnerCommands(program2) {
|
|
|
5188
5197
|
"after",
|
|
5189
5198
|
"\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"
|
|
5190
5199
|
).action(async (opts) => {
|
|
5191
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5200
|
+
const { defaultRunnerConfigPath } = await import('./config-FVSPGZIO.js');
|
|
5192
5201
|
const { runnerDir } = await import('./paths-7PC3K7C3.js');
|
|
5193
|
-
const { runUpdateSteps } = await import('./update-steps-
|
|
5202
|
+
const { runUpdateSteps } = await import('./update-steps-VI2KVXG6.js');
|
|
5194
5203
|
const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
|
|
5195
5204
|
process.stdout.write(`${text}
|
|
5196
5205
|
`);
|
|
5197
5206
|
});
|
|
5198
5207
|
runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
|
|
5199
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5200
|
-
const { runRunnerCheck } = await import('./check-
|
|
5208
|
+
const { defaultRunnerConfigPath } = await import('./config-FVSPGZIO.js');
|
|
5209
|
+
const { runRunnerCheck } = await import('./check-A6QEWYRN.js');
|
|
5201
5210
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5202
5211
|
const result = await runRunnerCheck(configPath);
|
|
5203
5212
|
if (!result.ok) {
|
|
@@ -5218,7 +5227,7 @@ function registerRunnerCommands(program2) {
|
|
|
5218
5227
|
`);
|
|
5219
5228
|
});
|
|
5220
5229
|
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) => {
|
|
5221
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5230
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-FVSPGZIO.js');
|
|
5222
5231
|
const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-ZEFBJH24.js');
|
|
5223
5232
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5224
5233
|
if (opts.service !== true) {
|
|
@@ -5231,13 +5240,13 @@ function registerRunnerCommands(program2) {
|
|
|
5231
5240
|
}
|
|
5232
5241
|
}
|
|
5233
5242
|
const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
|
|
5234
|
-
if (buildCpusMax !== void 0 && !(await import('./command-
|
|
5243
|
+
if (buildCpusMax !== void 0 && !(await import('./command-WQG2Y6MV.js')).cpusAreValid(buildCpusMax)) {
|
|
5235
5244
|
fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
|
|
5236
5245
|
return;
|
|
5237
5246
|
}
|
|
5238
5247
|
try {
|
|
5239
5248
|
if (opts.service === true) {
|
|
5240
|
-
const { installServiceCommand } = await import('./command-
|
|
5249
|
+
const { installServiceCommand } = await import('./command-WQG2Y6MV.js');
|
|
5241
5250
|
const result2 = await installServiceCommand({
|
|
5242
5251
|
configPath,
|
|
5243
5252
|
print: opts.print,
|
|
@@ -5294,8 +5303,8 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
|
|
|
5294
5303
|
fail(`pass --service: \`${cliInvocation()} runner uninstall --service\` removes the runner's service.`);
|
|
5295
5304
|
return;
|
|
5296
5305
|
}
|
|
5297
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5298
|
-
const { uninstallServiceCommand } = await import('./command-
|
|
5306
|
+
const { defaultRunnerConfigPath } = await import('./config-FVSPGZIO.js');
|
|
5307
|
+
const { uninstallServiceCommand } = await import('./command-WQG2Y6MV.js');
|
|
5299
5308
|
const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
|
|
5300
5309
|
if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
|
|
5301
5310
|
`);
|
|
@@ -5322,12 +5331,12 @@ already in claude.env is used.
|
|
|
5322
5331
|
printf '%s' "$CLAUDE_CODE_OAUTH_TOKEN" | ${cliInvocation()} runner init --agent claude --factory <org>/<factory>
|
|
5323
5332
|
`
|
|
5324
5333
|
).action(async (opts) => {
|
|
5325
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-
|
|
5326
|
-
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-
|
|
5327
|
-
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-
|
|
5328
|
-
const { detectMachine } = await import('./machine-
|
|
5329
|
-
const { chooseVm, runVmInit, VmInitError } = await import('./init-
|
|
5330
|
-
const { AGENT_COMMANDS, credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-
|
|
5334
|
+
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-FVSPGZIO.js');
|
|
5335
|
+
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-M6GSCMJM.js');
|
|
5336
|
+
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-HU542TOA.js');
|
|
5337
|
+
const { detectMachine } = await import('./machine-FQNIDAC5.js');
|
|
5338
|
+
const { chooseVm, runVmInit, VmInitError } = await import('./init-7ZFHIK5W.js');
|
|
5339
|
+
const { AGENT_COMMANDS, credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-HUZ2TMAK.js');
|
|
5331
5340
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5332
5341
|
if (opts.agent !== void 0 && !isAgentName(opts.agent)) {
|
|
5333
5342
|
fail(`--agent ${opts.agent}: runner init writes commands for ${Object.keys(AGENT_COMMANDS).join(", ")}. For another agent, leave --agent out and edit runner.commands.`);
|
|
@@ -5341,7 +5350,7 @@ already in claude.env is used.
|
|
|
5341
5350
|
try {
|
|
5342
5351
|
let credential;
|
|
5343
5352
|
if (agent !== void 0) {
|
|
5344
|
-
const { readPipedKey } = await import('./login-browser-
|
|
5353
|
+
const { readPipedKey } = await import('./login-browser-S6PLZCKK.js');
|
|
5345
5354
|
credential = credentialFromStdin(
|
|
5346
5355
|
await readPipedKey(process.stdin, {
|
|
5347
5356
|
onWaiting: () => process.stderr.write(`runner init is waiting for Claude's credential on stdin; close stdin to use the one already in claude.env
|
|
@@ -5477,7 +5486,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
|
|
|
5477
5486
|
let serviceUp = false;
|
|
5478
5487
|
let restart;
|
|
5479
5488
|
if (installedLayout) {
|
|
5480
|
-
const { installServiceCommand } = await import('./command-
|
|
5489
|
+
const { installServiceCommand } = await import('./command-WQG2Y6MV.js');
|
|
5481
5490
|
const service = await installServiceCommand({
|
|
5482
5491
|
configPath,
|
|
5483
5492
|
entryPath: process.argv[1] ?? "",
|
|
@@ -5521,12 +5530,12 @@ Next:
|
|
|
5521
5530
|
"after",
|
|
5522
5531
|
"\nA repository governed by a control plane builds the control plane's image, at the commit\nthe gateway has stored for it. A repository that governs itself fetches the head of its\ndefault branch into the runner's cache. Either way it reads .devcontainer/devcontainer.json\nand builds the image with the devcontainer CLI. Settings\nthat reach the host or widen the container's privileges are ignored and listed. The\nimage holds this CLI and a pinned Claude Code. Nothing runs inside the image.\nA repository with no devcontainer file builds on the universal image the CLI pins by digest.\n"
|
|
5523
5532
|
).action(async (opts) => {
|
|
5524
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5525
|
-
const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-
|
|
5533
|
+
const { defaultRunnerConfigPath } = await import('./config-FVSPGZIO.js');
|
|
5534
|
+
const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-26BBPGWD.js');
|
|
5526
5535
|
const { currentCliBuild } = await import('./cli-build-K56DK4DS.js');
|
|
5527
|
-
const { createDockerHost } = await import('./docker-
|
|
5528
|
-
const { builderSpec } = await import('./builder-
|
|
5529
|
-
const { loadRunnerConfig } = await import('./config-
|
|
5536
|
+
const { createDockerHost } = await import('./docker-LKM7PPDE.js');
|
|
5537
|
+
const { builderSpec } = await import('./builder-LYFK7SKW.js');
|
|
5538
|
+
const { loadRunnerConfig } = await import('./config-FVSPGZIO.js');
|
|
5530
5539
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5531
5540
|
const loaded = (() => {
|
|
5532
5541
|
try {
|
|
@@ -5537,12 +5546,12 @@ Next:
|
|
|
5537
5546
|
})();
|
|
5538
5547
|
const memory = loaded?.build?.memory ?? "8g";
|
|
5539
5548
|
try {
|
|
5540
|
-
const { ensureRunnerIdentity } = await import('./runner-identity-
|
|
5549
|
+
const { ensureRunnerIdentity } = await import('./runner-identity-XKJFHYS7.js');
|
|
5541
5550
|
await ensureRunnerIdentity(configPath, { log: (line) => console.error(line) }).catch((err) => {
|
|
5542
5551
|
console.error(`the runner's Docker identity could not be stored: ${err instanceof Error ? err.message : String(err)}`);
|
|
5543
5552
|
});
|
|
5544
|
-
const { imageTargetFor } = await import('./governing-source-
|
|
5545
|
-
const { runnerCalls } = await import('./caller-
|
|
5553
|
+
const { imageTargetFor } = await import('./governing-source-YXZXD6LI.js');
|
|
5554
|
+
const { runnerCalls } = await import('./caller-YGK3NKQQ.js');
|
|
5546
5555
|
const target = await imageTargetFor({ config: loaded === void 0 || loaded.fleet === true ? void 0 : runnerCalls(loaded), repository: opts.repository, fetchImpl: fetch });
|
|
5547
5556
|
if (!target.ok) {
|
|
5548
5557
|
if (opts.json) {
|
|
@@ -5606,17 +5615,17 @@ Next:
|
|
|
5606
5615
|
}
|
|
5607
5616
|
});
|
|
5608
5617
|
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) => {
|
|
5609
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5610
|
-
const { requestStop } = await import('./loop-
|
|
5618
|
+
const { defaultRunnerConfigPath } = await import('./config-FVSPGZIO.js');
|
|
5619
|
+
const { requestStop } = await import('./loop-72U5FJPH.js');
|
|
5611
5620
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5612
5621
|
const { runnerImageVersion } = await import('./image-tag-JWATDMIZ.js');
|
|
5613
5622
|
await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
|
|
5614
5623
|
});
|
|
5615
5624
|
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) => {
|
|
5616
|
-
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-
|
|
5625
|
+
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-FVSPGZIO.js');
|
|
5617
5626
|
const { jobsDir, runnerDir } = await import('./paths-7PC3K7C3.js');
|
|
5618
|
-
const { listJobFiles, runnerProcessState } = await import('./loop-
|
|
5619
|
-
const { renderStatus } = await import('./status-
|
|
5627
|
+
const { listJobFiles, runnerProcessState } = await import('./loop-72U5FJPH.js');
|
|
5628
|
+
const { renderStatus } = await import('./status-YOGCWUOD.js');
|
|
5620
5629
|
const { readHousekeepingRecord } = await import('./record-IHEF6C33.js');
|
|
5621
5630
|
const path2 = await import('path');
|
|
5622
5631
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
@@ -5642,7 +5651,7 @@ Next:
|
|
|
5642
5651
|
const processState = runnerProcessState(configPath);
|
|
5643
5652
|
const service = await (async () => {
|
|
5644
5653
|
if (process.platform !== "linux" || !existsSync("/run/systemd/system")) return void 0;
|
|
5645
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
5654
|
+
const { inspectRunnerService } = await import('./find-unit-QS446AID.js');
|
|
5646
5655
|
const facts = inspectRunnerService(configPath);
|
|
5647
5656
|
return facts === void 0 ? void 0 : { unit: facts.unit, running: facts.mainPid !== void 0, delegated: facts.delegate };
|
|
5648
5657
|
})();
|
|
@@ -5681,8 +5690,8 @@ Next:
|
|
|
5681
5690
|
);
|
|
5682
5691
|
});
|
|
5683
5692
|
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) => {
|
|
5684
|
-
const { defaultRunnerConfigPath } = await import('./config-
|
|
5685
|
-
const { listJobFiles } = await import('./loop-
|
|
5693
|
+
const { defaultRunnerConfigPath } = await import('./config-FVSPGZIO.js');
|
|
5694
|
+
const { listJobFiles } = await import('./loop-72U5FJPH.js');
|
|
5686
5695
|
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-3YRC7HRA.js');
|
|
5687
5696
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5688
5697
|
const jobs = listJobFiles(configPath);
|
|
@@ -5937,7 +5946,7 @@ would get, the instruction files and the names of the skills. It warns when the
|
|
|
5937
5946
|
no \`build\`. It needs the context-read permission: a login or a factory key with it is enough.
|
|
5938
5947
|
`
|
|
5939
5948
|
).action(async (opts) => {
|
|
5940
|
-
const { runContextShow, ContextShowError } = await import('./context-show-cmd-
|
|
5949
|
+
const { runContextShow, ContextShowError } = await import('./context-show-cmd-HLEHQJTV.js');
|
|
5941
5950
|
try {
|
|
5942
5951
|
const result = await runContextShow({ repo: opts.repo, json: opts.json, url: opts.url, apiKey: opts.apiKey, appId: opts.appId });
|
|
5943
5952
|
process.stdout.write(result.output);
|