@outerlayer/cli 0.39.0-next.20261113230129 → 0.39.0
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 +27 -0
- package/dist/build-info.json +1 -1
- package/dist/{check-QAHFZVHA.js → check-V2MA3VKK.js} +5 -5
- package/dist/{chunk-EVMFG65E.js → chunk-6PIZF2BS.js} +3 -3
- package/dist/{chunk-QXCXT6R2.js → chunk-ADILNP5T.js} +1 -1
- package/dist/{chunk-5CSTIY46.js → chunk-ADPSFSEF.js} +5 -5
- package/dist/{chunk-3YREPCE6.js → chunk-H7T2IJXM.js} +1 -1
- package/dist/{chunk-3ZJ3DDRR.js → chunk-J3C3SUQQ.js} +1 -1
- package/dist/{chunk-PSAULO23.js → chunk-JBWU55Q6.js} +64 -48
- package/dist/{chunk-673XPZTO.js → chunk-N4LFUGSE.js} +1 -1
- package/dist/{chunk-R6CY7HPA.js → chunk-UQB5K7Y2.js} +1 -1
- package/dist/{cli-R3EBH3C5.js → cli-646S73R5.js} +22 -22
- package/dist/{command-KXPNDK5C.js → command-WGGSAULP.js} +2 -2
- package/dist/{container-start-JDT76CH7.js → container-start-P3L7WBPM.js} +3 -3
- package/dist/{doctor-5D73AUDT.js → doctor-2SRV3F2N.js} +3 -3
- package/dist/{host-checks-L45C5IR6.js → host-checks-TPBQW53K.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{init-PCJQPFO2.js → init-JYBGFLLF.js} +1 -1
- package/dist/{init-WUOD3S47.js → init-LUAVN635.js} +1 -1
- package/dist/{init-agent-GGGRBCRM.js → init-agent-IDAR7DDW.js} +1 -1
- package/dist/{init-cmd-ETGRLHZF.js → init-cmd-AB4POAMA.js} +1 -1
- package/dist/{loop-G3ABFPEF.js → loop-OG67F4BN.js} +5 -5
- package/dist/{machine-PNNPGUTC.js → machine-UZHQXVYS.js} +1 -1
- package/dist/{runner-key-PGE662EJ.js → runner-key-ALHZT6NB.js} +1 -1
- package/dist/{status-CGTVZCL6.js → status-Y7EKQUBR.js} +1 -1
- package/dist/{update-steps-PVZD75SM.js → update-steps-DJDMCKMQ.js} +2 -2
- package/dist/{work-proofs-cmd-5YFFB7R7.js → work-proofs-cmd-V35OO3NM.js} +1 -1
- package/dist/{work-proofs-record-7L2MVCO5.js → work-proofs-record-D7HUOGAE.js} +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @outerlayer/cli
|
|
2
2
|
|
|
3
|
+
## 0.39.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0032eac: A build that continues the session of a stopped build starts with that build's files. When a job ends before it ran to its end, the runner keeps the edits it did not commit and the commits it did not push, with the agent session on the runner's host. A job that continues the session gets them back, also in a new sandbox or after the kept disk is gone.
|
|
8
|
+
- cbc6e2e: Add `outerlayer work mock list`, `add` and `replace`.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- c809092: The code review reports only defects that the change adds or causes. It leaves out a defect that the code had before the change, and a problem in unchanged code names the changed line that causes it.
|
|
13
|
+
- 6eeb985: The reason of an incomplete build names the checks that do not pass before the cause of a proof recording that failed. The cause names its criterion. A long cause is cut, so the 200-character limit drops no check.
|
|
14
|
+
- 576065d: The criteria judge reads the repository a build pushed in. A build that changes only a secondary repository of its claim is judged, instead of failing with "the build pushed no branch".
|
|
15
|
+
- e35b658: A build that continues a session gets back the work of a build whose agent ended with no pull request. The runner kept that work only for a build that was stopped, failed or reached its time limit.
|
|
16
|
+
- 5174b82: A sandbox build gets a disk no smaller than its snapshot's. The runner reads the snapshot's disk from the sandbox provider, so a build whose `runner.build.disk` or factory machine has a smaller disk still starts.
|
|
17
|
+
- 60adc8c: The runner no longer reads a build's command while it is still starting it. A command that ended before its start call returned ended the build with the stage `provision`, and a slow start could end a build as interrupted.
|
|
18
|
+
- 1178c5a: The runner asks GitHub again when it refuses a token that the gateway issued a moment before. A build no longer ends at provision with `cannot read <repository>` for a refusal that passes seconds later.
|
|
19
|
+
- d0bd8de: `outerlayer run topics` prints the topics that a schedule automation already filed issues for, one on each line, so the agent of a run can use a topic's exact text.
|
|
20
|
+
- 6a841c0: A runner removes the lock files that a stopped git process left in its own repository cache and control-plane cache before it fetches. A build no longer fails its provision with `repository_unreadable` or `context_unavailable` because of a leftover `shallow.lock` after the runner stops during a fetch.
|
|
21
|
+
- 2b88ad9: A runner can build in sandboxes that OuterLayer provides: set `runner.sandbox.provider` to `"outerlayer"` and choose `runner.sandbox.machine`. The runner needs no sandbox provider account, its credentials stay on its machine, and the build's time counts as managed build-hours.
|
|
22
|
+
- 6e81b60: The runner reports protocol 56: it accepts the `review` claim kind in a gateway's answers and asks for no review work.
|
|
23
|
+
- bbc9655: A runner tells OuterLayer in its heartbeat whether it takes the runs of schedule automations, so OuterLayer can say why a run waits. A runner takes none when it is a managed or fleet runner, when OuterLayer provides its sandboxes, when its hooks are its own, when it has no command for a run, or when `runner.queues` lacks `implement`.
|
|
24
|
+
- 24ea1cb: The runner takes code review jobs: it reviews each requested commit of a pull request in a new container or microVM, with no setup steps, and reports problems with no pass or fail. The review's instructions move to the new maintained skill `outerlayer-review`, and the judge stage runs no code review.
|
|
25
|
+
- 4cad1a1: A sandbox build that uses the sandbox's Docker daemon stays on the sandbox's own network. It reaches the ports that its containers publish, such as a local Supabase database, on `127.0.0.1`. The runner's log says that the build runs no network helper, and why.
|
|
26
|
+
- 4ab9327: A running runner does not use a config file that changes `runner.sandbox.provider`. It keeps the last good settings and logs that a restart is needed. Before, it used the new settings with the client of the old provider, and each sandbox build failed at provision.
|
|
27
|
+
- 3650afa: The build and evidence skills name the item page's Criteria tab, which was the Review tab.
|
|
28
|
+
- 4cdc8ff: The runner waits up to 20 minutes for a sandbox that the sandbox provider is slow to start, then builds in it. A slow start ended the build at provision after 30 seconds.
|
|
29
|
+
|
|
3
30
|
## 0.38.0
|
|
4
31
|
|
|
5
32
|
### Minor Changes
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-11-
|
|
1
|
+
{"id":"2026-11-14T00:44:23.805Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { probeCredentials } from './chunk-
|
|
3
|
+
import { probeCredentials } from './chunk-ADPSFSEF.js';
|
|
4
4
|
import './chunk-3JVYMD4G.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-ADILNP5T.js';
|
|
6
6
|
import './chunk-E7R2GIAW.js';
|
|
7
7
|
import './chunk-2OAQK7A2.js';
|
|
8
8
|
import './chunk-WXJNUKRS.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-UQB5K7Y2.js';
|
|
10
10
|
import './chunk-NEOEON2T.js';
|
|
11
|
-
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-
|
|
11
|
+
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-N4LFUGSE.js';
|
|
12
12
|
import './chunk-LSWS52DO.js';
|
|
13
13
|
import { findServiceUnit } from './chunk-UETULTNN.js';
|
|
14
|
-
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem, createGatewaySandboxClient, gatewayRefusalReason } from './chunk-
|
|
14
|
+
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem, createGatewaySandboxClient, gatewayRefusalReason } from './chunk-JBWU55Q6.js';
|
|
15
15
|
import './chunk-IEPKZPTP.js';
|
|
16
16
|
import './chunk-UHCPBQ55.js';
|
|
17
17
|
import './chunk-2PGI6RDE.js';
|
|
@@ -129,14 +129,14 @@ function governingDir(cwd) {
|
|
|
129
129
|
async function testProofMode(cwd) {
|
|
130
130
|
const dir = governingDir(cwd);
|
|
131
131
|
if (dir === void 0) return "any";
|
|
132
|
-
const { testProofIn } = await import('./host-checks-
|
|
132
|
+
const { testProofIn } = await import('./host-checks-TPBQW53K.js');
|
|
133
133
|
return testProofIn(dir);
|
|
134
134
|
}
|
|
135
135
|
async function judgeCheckName(cwd) {
|
|
136
136
|
const dir = governingDir(cwd);
|
|
137
137
|
if (dir === void 0) return {};
|
|
138
138
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
139
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
139
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-TPBQW53K.js');
|
|
140
140
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
141
141
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
142
142
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -372,7 +372,7 @@ async function runWorkProofs(opts) {
|
|
|
372
372
|
async function runWorkProofsCommand(opts) {
|
|
373
373
|
try {
|
|
374
374
|
if (opts.record || opts.check) {
|
|
375
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
375
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-D7HUOGAE.js');
|
|
376
376
|
const result2 = await runWorkProofsRecord(opts);
|
|
377
377
|
process.exitCode = result2.exitCode;
|
|
378
378
|
return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { scrubReason, stripTerminalControls } from './chunk-
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-JBWU55Q6.js';
|
|
4
4
|
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-LIHYCAXQ.js';
|
|
5
5
|
import { RunnerAlreadyRunningError, readPidFile } from './chunk-3EJGM5IH.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
4
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
4
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-ADILNP5T.js';
|
|
5
5
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
6
6
|
import { writeFleetState } from './chunk-2OAQK7A2.js';
|
|
7
7
|
import { writePendingUpdate } from './chunk-WXJNUKRS.js';
|
|
8
|
-
import { renderUpdateSteps } from './chunk-
|
|
8
|
+
import { renderUpdateSteps } from './chunk-UQB5K7Y2.js';
|
|
9
9
|
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-NEOEON2T.js';
|
|
10
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
10
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-N4LFUGSE.js';
|
|
11
11
|
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-LSWS52DO.js';
|
|
12
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-
|
|
12
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-JBWU55Q6.js';
|
|
13
13
|
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-IEPKZPTP.js';
|
|
14
14
|
import { RUNNER_PROTOCOL } from './chunk-UHCPBQ55.js';
|
|
15
15
|
import { RUNNER_RESERVE_BYTES } from './chunk-LIHYCAXQ.js';
|
|
@@ -4716,7 +4716,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
4716
4716
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
4717
4717
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
4718
4718
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
4719
|
-
return (await import('./check-
|
|
4719
|
+
return (await import('./check-V2MA3VKK.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
4720
4720
|
},
|
|
4721
4721
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
4722
4722
|
log
|
|
@@ -1081,7 +1081,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1081
1081
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1082
1082
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1083
1083
|
} else if (hasRunnerBlock(configPath)) {
|
|
1084
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1084
|
+
const { runnerHostChecks } = await import('./doctor-2SRV3F2N.js');
|
|
1085
1085
|
const gateway = (() => {
|
|
1086
1086
|
try {
|
|
1087
1087
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-JBWU55Q6.js';
|
|
4
4
|
import { UNIT_MARKER } from './chunk-LIHYCAXQ.js';
|
|
5
5
|
import { runnerDir } from './chunk-ZETBXFEA.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
@@ -8930,6 +8930,32 @@ ${rows}
|
|
|
8930
8930
|
`;
|
|
8931
8931
|
}
|
|
8932
8932
|
|
|
8933
|
+
// src/runner/pushed-branches.ts
|
|
8934
|
+
async function readPushedBranches(input) {
|
|
8935
|
+
const pushed = [];
|
|
8936
|
+
const unpushed = [];
|
|
8937
|
+
for (const entry of input.claimed) {
|
|
8938
|
+
const branch = entry.branch;
|
|
8939
|
+
if (branch === void 0) continue;
|
|
8940
|
+
let token = input.readToken;
|
|
8941
|
+
if (!entry.primary) {
|
|
8942
|
+
try {
|
|
8943
|
+
token = await input.tokens.token("read", entry.repository);
|
|
8944
|
+
} catch (err) {
|
|
8945
|
+
return { ok: false, reason: `no read token for ${entry.repository}: ${describeCallFailure(err)}` };
|
|
8946
|
+
}
|
|
8947
|
+
}
|
|
8948
|
+
const read = await input.readBranch({ remote: input.remoteOf(entry.repository), dir: input.dir, branch, token });
|
|
8949
|
+
if (read.kind === "unreadable") return { ok: false, reason: `the branch ${branch} could not be read${entry.primary ? "" : ` on ${entry.repository}`}: ${read.reason}` };
|
|
8950
|
+
if (read.kind === "absent") unpushed.push({ repository: entry.repository, branch });
|
|
8951
|
+
else pushed.push({ repository: entry.repository, branch, head: read.sha, primary: entry.primary });
|
|
8952
|
+
}
|
|
8953
|
+
return { ok: true, pushed, unpushed };
|
|
8954
|
+
}
|
|
8955
|
+
function noBranchPushed(unpushed) {
|
|
8956
|
+
return `the build pushed no branch: ${unpushed.map((entry) => `${entry.branch} does not exist on ${entry.repository}`).join("; ")}`;
|
|
8957
|
+
}
|
|
8958
|
+
|
|
8933
8959
|
// src/runner/judge.ts
|
|
8934
8960
|
var LIMIT_KEY_TAIL = " (runner.checks.timeLimitMinutes)";
|
|
8935
8961
|
var MAX_DIFF_BYTES = 4 * 1024 * 1024;
|
|
@@ -9000,8 +9026,7 @@ async function runJudge(input) {
|
|
|
9000
9026
|
const now = deps.now ?? (() => /* @__PURE__ */ new Date());
|
|
9001
9027
|
const repository = job.repository ?? builtOf(job)?.repository;
|
|
9002
9028
|
if (repository === void 0) return;
|
|
9003
|
-
const
|
|
9004
|
-
const remoteOf = () => runtime.remoteFor?.(repo) ?? `${runtime.github.gitUrl}/${repo}.git`;
|
|
9029
|
+
const remoteOf = (name) => runtime.remoteFor?.(name) ?? `${runtime.github.gitUrl}/${name}.git`;
|
|
9005
9030
|
const readItemWithRetry = async () => {
|
|
9006
9031
|
let lastError;
|
|
9007
9032
|
const read = await retrySend(
|
|
@@ -9098,9 +9123,7 @@ async function runJudge(input) {
|
|
|
9098
9123
|
if (tokens === void 0) return await fail(check, "the build's repository tokens are no longer held, so the branch cannot be fetched");
|
|
9099
9124
|
const credential = judgeCredential(config, jobDir, runtime);
|
|
9100
9125
|
if (credential === void 0) return await fail(check, `the host holds no ${agent.descriptor.credentials.label} credential for the judge`);
|
|
9101
|
-
|
|
9102
|
-
if (branch === void 0) return await fail(check, "the build pushed no branch: the claim names none");
|
|
9103
|
-
const remote = remoteOf();
|
|
9126
|
+
if (job.branch === void 0) return await fail(check, "the build pushed no branch: the claim names none");
|
|
9104
9127
|
try {
|
|
9105
9128
|
await environment.stop();
|
|
9106
9129
|
} catch (err) {
|
|
@@ -9109,10 +9132,24 @@ async function runJudge(input) {
|
|
|
9109
9132
|
const hashed = await environment.hashProgram();
|
|
9110
9133
|
if (!hashed.ok) return await fail(check, `${missing}: ${hashed.reason}`);
|
|
9111
9134
|
if (hashed.sha256 !== expected.sha256) return await fail(check, "the judge program changed during the build");
|
|
9112
|
-
const
|
|
9113
|
-
|
|
9114
|
-
if (
|
|
9115
|
-
const
|
|
9135
|
+
const claimed = repositoriesOf({ repositories: job.repositories, repository, branch: job.branch });
|
|
9136
|
+
const reads = await readPushedBranches({ claimed, remoteOf, dir: scratch, readToken, tokens, readBranch: deps.readBranch ?? readBranchHead });
|
|
9137
|
+
if (!reads.ok) return await fail(check, reads.reason);
|
|
9138
|
+
const subject = reads.pushed[0];
|
|
9139
|
+
if (subject === void 0) return await fail(check, noBranchPushed(reads.unpushed));
|
|
9140
|
+
const others = reads.pushed.filter((entry) => entry !== subject).map((entry) => entry.repository);
|
|
9141
|
+
if (others.length > 0) log.line(`${tag} judge: the build pushed in ${others.join(", ")} too; the judge reads ${subject.repository}`);
|
|
9142
|
+
const { branch, head } = subject;
|
|
9143
|
+
const repo = subject.repository;
|
|
9144
|
+
const remote = remoteOf(repo);
|
|
9145
|
+
let subjectToken = readToken;
|
|
9146
|
+
if (!subject.primary) {
|
|
9147
|
+
try {
|
|
9148
|
+
subjectToken = await tokens.token("read", repo);
|
|
9149
|
+
} catch (err) {
|
|
9150
|
+
return await fail(check, `no read token for ${repo}: ${describeCallFailure(err)}`);
|
|
9151
|
+
}
|
|
9152
|
+
}
|
|
9116
9153
|
let criteria;
|
|
9117
9154
|
let previous = [];
|
|
9118
9155
|
if (check.judge.subjects === "criteria") {
|
|
@@ -9127,7 +9164,7 @@ async function runJudge(input) {
|
|
|
9127
9164
|
previous = hostItemsOf(workItem, check.name);
|
|
9128
9165
|
}
|
|
9129
9166
|
const branchDir = join(scratch, "branch");
|
|
9130
|
-
const fetched = await (deps.fetchCommit ?? fetchCommit)({ remote, dir: branchDir, commit: head, token:
|
|
9167
|
+
const fetched = await (deps.fetchCommit ?? fetchCommit)({ remote, dir: branchDir, commit: head, token: subjectToken });
|
|
9131
9168
|
if (!fetched.ok) return await fail(check, `the build's tests could not be fetched: ${fetched.reason}`);
|
|
9132
9169
|
const finder = await loadCitationFinder();
|
|
9133
9170
|
const isTest = testFileMatcher(finder, proofsFileIn(branchDir));
|
|
@@ -9138,13 +9175,13 @@ async function runJudge(input) {
|
|
|
9138
9175
|
log.line(`${tag} judge: ${plan.toJudge.length} of ${list.length} criteria to judge, ${list.length - plan.toJudge.length} settled without the judge`);
|
|
9139
9176
|
}
|
|
9140
9177
|
if (criteria !== void 0 && plan.toJudge.length === 0) {
|
|
9141
|
-
return await finish2(check, { criteria, items: plan.settled, head, branch, finder, judgeReport: void 0 });
|
|
9178
|
+
return await finish2(check, { criteria, items: plan.settled, repository: repo, head, branch, finder, judgeReport: void 0 });
|
|
9142
9179
|
}
|
|
9143
9180
|
let diff = "";
|
|
9144
|
-
const startCommit = builtOf(job)?.startCommit;
|
|
9145
|
-
if (startCommit !== void 0) {
|
|
9181
|
+
const startCommit = subject.primary ? builtOf(job)?.startCommit : void 0;
|
|
9182
|
+
if (startCommit !== void 0 || !subject.primary) {
|
|
9146
9183
|
const output = join(scratch, "diff.patch");
|
|
9147
|
-
const made = await (deps.fetchDiff ?? ((request) => diffBetween(request)))({ remote, dir: join(scratch, "diff"), base: startCommit, head, token:
|
|
9184
|
+
const made = await (deps.fetchDiff ?? ((request) => diffBetween(request)))({ remote, dir: join(scratch, "diff"), base: startCommit, head, token: subjectToken, output });
|
|
9148
9185
|
if (!made.ok) return await fail(check, `the build's diff could not be read: ${made.reason}`);
|
|
9149
9186
|
const bytes = readFileSync(output);
|
|
9150
9187
|
diff = bytes.length > MAX_DIFF_BYTES ? `${bytes.subarray(0, MAX_DIFF_BYTES).toString("utf8")}
|
|
@@ -9212,7 +9249,7 @@ async function runJudge(input) {
|
|
|
9212
9249
|
}
|
|
9213
9250
|
const place = (path, line2) => treeFileText(branchDir, path) === void 0 ? {} : linkTo(path, line2);
|
|
9214
9251
|
const items2 = ran.answer?.ok === true ? wholeItems({ answer: ran.answer.answer, commit: head, treeRoot: JUDGE_TREE, place, ownTree, patch: diff, clean: cleanReason }) : void 0;
|
|
9215
|
-
return await finishWhole(check, { ...ran, items: items2, head, branch });
|
|
9252
|
+
return await finishWhole(check, { ...ran, items: items2, repository: repo, head, branch });
|
|
9216
9253
|
}
|
|
9217
9254
|
const testAt = (path, line2) => {
|
|
9218
9255
|
if (treeFileText(branchDir, path) === void 0) return void 0;
|
|
@@ -9260,7 +9297,7 @@ async function runJudge(input) {
|
|
|
9260
9297
|
}
|
|
9261
9298
|
const reasons = [...new Set(unanswered.map((entry) => entry.reason))];
|
|
9262
9299
|
const whole = unanswered.length === groups.length && reasons.length === 1 ? { reason: reasons[0], limitKey: unanswered.some((entry) => entry.limitKey) } : void 0;
|
|
9263
|
-
return await finish2(check, { criteria, items, head, branch, finder, judgeReport, ...whole === void 0 ? {} : whole });
|
|
9300
|
+
return await finish2(check, { criteria, items, repository: repo, head, branch, finder, judgeReport, ...whole === void 0 ? {} : whole });
|
|
9264
9301
|
}
|
|
9265
9302
|
async function finish2(check, at) {
|
|
9266
9303
|
const items = inCriteriaOrder(at.items, at.criteria);
|
|
@@ -9268,11 +9305,11 @@ async function runJudge(input) {
|
|
|
9268
9305
|
const result = failing === void 0 ? "pass" : "fail";
|
|
9269
9306
|
const reason = at.reason ?? failing;
|
|
9270
9307
|
const report = at.judgeReport !== void 0 && at.judgeReport !== "" ? at.judgeReport : renderJudgeReport({ check: check.name, result, reason, items, commit: at.head, extraHead: at.finder.renderBlock(testsByCriterion(items)) });
|
|
9271
|
-
const link = await uploadReport(check, report, { branch: at.branch, head: at.head });
|
|
9308
|
+
const link = await uploadReport(check, report, { repository: at.repository, branch: at.branch, head: at.head });
|
|
9272
9309
|
await record(check.name, result, reason, { keyTail: at.limitKey === true ? LIMIT_KEY_TAIL : "", link, items: sendable(items) });
|
|
9273
9310
|
}
|
|
9274
9311
|
async function finishWhole(check, at) {
|
|
9275
|
-
const where = { head: at.head, branch: at.branch };
|
|
9312
|
+
const where = { repository: at.repository, head: at.head, branch: at.branch };
|
|
9276
9313
|
if (at.answer?.ok === true) {
|
|
9277
9314
|
const answered = at.items ?? [];
|
|
9278
9315
|
const failing = itemsSentence(answered, { one: "check item", many: "check items" });
|
|
@@ -9293,7 +9330,7 @@ async function runJudge(input) {
|
|
|
9293
9330
|
return await recordWhole(check, { ...where, result: at.reply.verdict, reason: failed2 ? "the judge failed the change" : void 0, report: at.report });
|
|
9294
9331
|
}
|
|
9295
9332
|
async function recordWhole(check, at) {
|
|
9296
|
-
const link = at.report === void 0 ? void 0 : await uploadReport(check, at.report, { branch: at.branch, head: at.head });
|
|
9333
|
+
const link = at.report === void 0 ? void 0 : await uploadReport(check, at.report, { repository: at.repository, branch: at.branch, head: at.head });
|
|
9297
9334
|
await record(check.name, at.result, at.reason, { keyTail: at.limitKey === true ? LIMIT_KEY_TAIL : "", link, items: sendable(at.items) });
|
|
9298
9335
|
}
|
|
9299
9336
|
function sendable(items) {
|
|
@@ -9314,7 +9351,7 @@ async function runJudge(input) {
|
|
|
9314
9351
|
let prNumber;
|
|
9315
9352
|
if (config.fleet === true) {
|
|
9316
9353
|
try {
|
|
9317
|
-
prNumber = declaredPullRequest(await readItem(),
|
|
9354
|
+
prNumber = declaredPullRequest(await readItem(), at.repository);
|
|
9318
9355
|
} catch (err) {
|
|
9319
9356
|
log.error(`${tag} the item's pull requests could not be read for the judge's report: ${describeCallFailure(err)}`);
|
|
9320
9357
|
}
|
|
@@ -9330,8 +9367,8 @@ async function runJudge(input) {
|
|
|
9330
9367
|
caption: check.judge.subjects === "none" ? WHOLE_REPORT_CAPTION : REPORT_CAPTION,
|
|
9331
9368
|
criterionId: check.name,
|
|
9332
9369
|
emittedAt: now().toISOString(),
|
|
9333
|
-
repository:
|
|
9334
|
-
gitRepo:
|
|
9370
|
+
repository: at.repository,
|
|
9371
|
+
gitRepo: at.repository,
|
|
9335
9372
|
gitBranch: at.branch,
|
|
9336
9373
|
commitSha: at.head,
|
|
9337
9374
|
...prNumber === void 0 ? {} : { prNumber }
|
|
@@ -13721,32 +13758,11 @@ async function runHostChecks(input) {
|
|
|
13721
13758
|
if (claimed.length === 0) return await failAll("the claim names no repository to check out");
|
|
13722
13759
|
const remoteOf = (name) => runtime.remoteFor?.(name) ?? `${runtime.github.gitUrl}/${name}.git`;
|
|
13723
13760
|
const remote = remoteOf(repository);
|
|
13724
|
-
const
|
|
13725
|
-
|
|
13726
|
-
|
|
13727
|
-
|
|
13728
|
-
|
|
13729
|
-
if (branch === void 0) continue;
|
|
13730
|
-
let entryToken = readToken;
|
|
13731
|
-
if (!entry.primary) {
|
|
13732
|
-
try {
|
|
13733
|
-
entryToken = await tokens.token("read", entry.repository);
|
|
13734
|
-
} catch (err) {
|
|
13735
|
-
return await failAll(`no read token for ${entry.repository}: ${describeCallFailure(err)}`);
|
|
13736
|
-
}
|
|
13737
|
-
}
|
|
13738
|
-
const read = await (deps.readBranch ?? readBranchHead)({ remote: remoteOf(entry.repository), dir: scratch, branch, token: entryToken });
|
|
13739
|
-
if (read.kind === "unreadable") return await failAll(`the branch ${branch} could not be read${entry.primary ? "" : ` on ${entry.repository}`}: ${read.reason}`);
|
|
13740
|
-
if (read.kind === "absent") {
|
|
13741
|
-
unpushed.push(entry);
|
|
13742
|
-
continue;
|
|
13743
|
-
}
|
|
13744
|
-
pushed.set(entry.repository, branch);
|
|
13745
|
-
if (entry.primary) primaryHead = read.sha;
|
|
13746
|
-
}
|
|
13747
|
-
if (pushed.size === 0) {
|
|
13748
|
-
return await failAll(`the build pushed no branch: ${unpushed.map((entry) => `${entry.branch ?? "its branch"} does not exist on ${entry.repository}`).join("; ")}`);
|
|
13749
|
-
}
|
|
13761
|
+
const reads = await readPushedBranches({ claimed, remoteOf, dir: scratch, readToken, tokens, readBranch: deps.readBranch ?? readBranchHead });
|
|
13762
|
+
if (!reads.ok) return await failAll(reads.reason);
|
|
13763
|
+
if (reads.pushed.length === 0) return await failAll(noBranchPushed(reads.unpushed));
|
|
13764
|
+
const pushed = new Map(reads.pushed.map((entry) => [entry.repository, entry.branch]));
|
|
13765
|
+
const primaryHead = reads.pushed.find((entry) => entry.primary)?.head;
|
|
13750
13766
|
const repositoriesToCheckOut = claimed;
|
|
13751
13767
|
const limitMinutes = config.checks?.timeLimitMinutes ?? DEFAULT_CHECK_TIME_LIMIT_MINUTES;
|
|
13752
13768
|
const minutes = `${limitMinutes} ${limitMinutes === 1 ? "minute" : "minutes"}`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-JBWU55Q6.js';
|
|
4
4
|
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-LIHYCAXQ.js';
|
|
5
5
|
import { getJson, WorkCommandError } from './chunk-GOMVXG4D.js';
|
|
6
6
|
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-2I6SZBRS.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { stripTerminalControls } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-JBWU55Q6.js';
|
|
4
4
|
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-ABPJ4DTO.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-
|
|
3
|
+
import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-H7T2IJXM.js';
|
|
4
4
|
import './chunk-RFWX5IAJ.js';
|
|
5
5
|
import { verifiedTrackerNames, TRACKERS } from './chunk-GOMVXG4D.js';
|
|
6
6
|
import './chunk-4M7N6DKZ.js';
|
|
@@ -3954,13 +3954,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3954
3954
|
if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
|
|
3955
3955
|
`);
|
|
3956
3956
|
}
|
|
3957
|
-
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-
|
|
3957
|
+
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-AB4POAMA.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
|
|
3958
3958
|
if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
|
|
3959
3959
|
else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
|
|
3960
3960
|
return;
|
|
3961
3961
|
}
|
|
3962
3962
|
await installMachineSkillsForSetup();
|
|
3963
|
-
const { runInitCommand } = await import('./init-cmd-
|
|
3963
|
+
const { runInitCommand } = await import('./init-cmd-AB4POAMA.js');
|
|
3964
3964
|
const code = await runInitCommand(
|
|
3965
3965
|
{ json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
|
|
3966
3966
|
{
|
|
@@ -5250,7 +5250,7 @@ a runner build, no row is failed.
|
|
|
5250
5250
|
fail(trackerNumberError("--pr", opts.pr));
|
|
5251
5251
|
return;
|
|
5252
5252
|
}
|
|
5253
|
-
const { runWorkProofsCommand } = await import('./work-proofs-cmd-
|
|
5253
|
+
const { runWorkProofsCommand } = await import('./work-proofs-cmd-V35OO3NM.js');
|
|
5254
5254
|
await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
|
|
5255
5255
|
});
|
|
5256
5256
|
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) => {
|
|
@@ -5473,7 +5473,7 @@ function registerRunnerCommands(program2) {
|
|
|
5473
5473
|
const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
|
|
5474
5474
|
runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
|
|
5475
5475
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-FPJHEZOM.js');
|
|
5476
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5476
|
+
const { start, RunnerStartError } = await import('./loop-OG67F4BN.js');
|
|
5477
5477
|
const { RunnerAlreadyRunningError } = await import('./pidfile-RWWQGTTW.js');
|
|
5478
5478
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5479
5479
|
try {
|
|
@@ -5497,8 +5497,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5497
5497
|
`
|
|
5498
5498
|
).action(async () => {
|
|
5499
5499
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-FPJHEZOM.js');
|
|
5500
|
-
const { containerStart, containerStartExit } = await import('./container-start-
|
|
5501
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5500
|
+
const { containerStart, containerStartExit } = await import('./container-start-P3L7WBPM.js');
|
|
5501
|
+
const { start, RunnerStartError } = await import('./loop-OG67F4BN.js');
|
|
5502
5502
|
const { RunnerAlreadyRunningError } = await import('./pidfile-RWWQGTTW.js');
|
|
5503
5503
|
try {
|
|
5504
5504
|
const outcome = containerStartExit(await containerStart({
|
|
@@ -5522,14 +5522,14 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5522
5522
|
).action(async (opts) => {
|
|
5523
5523
|
const { defaultRunnerConfigPath } = await import('./config-FPJHEZOM.js');
|
|
5524
5524
|
const { runnerDir } = await import('./paths-IPPAYE75.js');
|
|
5525
|
-
const { runUpdateSteps } = await import('./update-steps-
|
|
5525
|
+
const { runUpdateSteps } = await import('./update-steps-DJDMCKMQ.js');
|
|
5526
5526
|
const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
|
|
5527
5527
|
process.stdout.write(`${text}
|
|
5528
5528
|
`);
|
|
5529
5529
|
});
|
|
5530
5530
|
runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
|
|
5531
5531
|
const { defaultRunnerConfigPath } = await import('./config-FPJHEZOM.js');
|
|
5532
|
-
const { runRunnerCheck } = await import('./check-
|
|
5532
|
+
const { runRunnerCheck } = await import('./check-V2MA3VKK.js');
|
|
5533
5533
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5534
5534
|
const result = await runRunnerCheck(configPath);
|
|
5535
5535
|
if (!result.ok) {
|
|
@@ -5563,13 +5563,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5563
5563
|
}
|
|
5564
5564
|
}
|
|
5565
5565
|
const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
|
|
5566
|
-
if (buildCpusMax !== void 0 && !(await import('./command-
|
|
5566
|
+
if (buildCpusMax !== void 0 && !(await import('./command-WGGSAULP.js')).cpusAreValid(buildCpusMax)) {
|
|
5567
5567
|
fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
|
|
5568
5568
|
return;
|
|
5569
5569
|
}
|
|
5570
5570
|
try {
|
|
5571
5571
|
if (opts.service === true) {
|
|
5572
|
-
const { installServiceCommand, serviceSuccessText } = await import('./command-
|
|
5572
|
+
const { installServiceCommand, serviceSuccessText } = await import('./command-WGGSAULP.js');
|
|
5573
5573
|
const result2 = await installServiceCommand({
|
|
5574
5574
|
configPath,
|
|
5575
5575
|
print: opts.print,
|
|
@@ -5624,7 +5624,7 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
|
|
|
5624
5624
|
return;
|
|
5625
5625
|
}
|
|
5626
5626
|
const { defaultRunnerConfigPath } = await import('./config-FPJHEZOM.js');
|
|
5627
|
-
const { uninstallServiceCommand } = await import('./command-
|
|
5627
|
+
const { uninstallServiceCommand } = await import('./command-WGGSAULP.js');
|
|
5628
5628
|
const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
|
|
5629
5629
|
if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
|
|
5630
5630
|
`);
|
|
@@ -5655,10 +5655,10 @@ already in ${words().envFile} is used.
|
|
|
5655
5655
|
`
|
|
5656
5656
|
).action(async (opts) => {
|
|
5657
5657
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-FPJHEZOM.js');
|
|
5658
|
-
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-
|
|
5659
|
-
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-
|
|
5660
|
-
const { detectMachine } = await import('./machine-
|
|
5661
|
-
const { chooseVm, runVmInit, VmInitError } = await import('./init-
|
|
5658
|
+
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-JYBGFLLF.js');
|
|
5659
|
+
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-ALHZT6NB.js');
|
|
5660
|
+
const { detectMachine } = await import('./machine-UZHQXVYS.js');
|
|
5661
|
+
const { chooseVm, runVmInit, VmInitError } = await import('./init-LUAVN635.js');
|
|
5662
5662
|
const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-HHIGHPUZ.js');
|
|
5663
5663
|
const { headlessNames: headlessNames2 } = await import('./runner-agents-4FE5CFVN.js');
|
|
5664
5664
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
@@ -5672,7 +5672,7 @@ already in ${words().envFile} is used.
|
|
|
5672
5672
|
return;
|
|
5673
5673
|
}
|
|
5674
5674
|
try {
|
|
5675
|
-
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-
|
|
5675
|
+
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-IDAR7DDW.js');
|
|
5676
5676
|
agent = await initAgent({
|
|
5677
5677
|
flag: agent,
|
|
5678
5678
|
handOff: opts.configStdin === true,
|
|
@@ -5812,7 +5812,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
|
|
|
5812
5812
|
let serviceUp = false;
|
|
5813
5813
|
let restart;
|
|
5814
5814
|
if (installedLayout) {
|
|
5815
|
-
const { installServiceCommand } = await import('./command-
|
|
5815
|
+
const { installServiceCommand } = await import('./command-WGGSAULP.js');
|
|
5816
5816
|
const service = await installServiceCommand({
|
|
5817
5817
|
configPath,
|
|
5818
5818
|
entryPath: process.argv[1] ?? "",
|
|
@@ -5950,7 +5950,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5950
5950
|
});
|
|
5951
5951
|
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) => {
|
|
5952
5952
|
const { defaultRunnerConfigPath } = await import('./config-FPJHEZOM.js');
|
|
5953
|
-
const { requestStop } = await import('./loop-
|
|
5953
|
+
const { requestStop } = await import('./loop-OG67F4BN.js');
|
|
5954
5954
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5955
5955
|
const { runnerImageVersion } = await import('./image-tag-GAMFHEYH.js');
|
|
5956
5956
|
await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
|
|
@@ -5958,8 +5958,8 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5958
5958
|
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) => {
|
|
5959
5959
|
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-FPJHEZOM.js');
|
|
5960
5960
|
const { jobsDir, runnerDir } = await import('./paths-IPPAYE75.js');
|
|
5961
|
-
const { listJobFiles, runnerProcessState } = await import('./loop-
|
|
5962
|
-
const { renderStatus } = await import('./status-
|
|
5961
|
+
const { listJobFiles, runnerProcessState } = await import('./loop-OG67F4BN.js');
|
|
5962
|
+
const { renderStatus } = await import('./status-Y7EKQUBR.js');
|
|
5963
5963
|
const { readHousekeepingRecord } = await import('./record-TK4NB4HS.js');
|
|
5964
5964
|
const path2 = await import('path');
|
|
5965
5965
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
@@ -6025,7 +6025,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
6025
6025
|
});
|
|
6026
6026
|
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) => {
|
|
6027
6027
|
const { defaultRunnerConfigPath } = await import('./config-FPJHEZOM.js');
|
|
6028
|
-
const { listJobFiles } = await import('./loop-
|
|
6028
|
+
const { listJobFiles } = await import('./loop-OG67F4BN.js');
|
|
6029
6029
|
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-UCDVGCFD.js');
|
|
6030
6030
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
6031
6031
|
const jobs = listJobFiles(configPath);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { realOwnership, accountNamed, handOver, runRunnerInstall, launcherSummary, restartNote, accountIdentity } from './chunk-PPNIKWBT.js';
|
|
4
|
-
import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-
|
|
4
|
+
import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-J3C3SUQQ.js';
|
|
5
5
|
import './chunk-EVYTRDSY.js';
|
|
6
6
|
import { currentLink, execStartCommand } from './chunk-LSWS52DO.js';
|
|
7
|
-
import { detectMachine, ensureFirecrackerAndJailer } from './chunk-
|
|
7
|
+
import { detectMachine, ensureFirecrackerAndJailer } from './chunk-JBWU55Q6.js';
|
|
8
8
|
import './chunk-IEPKZPTP.js';
|
|
9
9
|
import './chunk-UHCPBQ55.js';
|
|
10
10
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-
|
|
4
|
-
import { readOwnContainer } from './chunk-
|
|
5
|
-
import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-
|
|
3
|
+
import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-ADILNP5T.js';
|
|
4
|
+
import { readOwnContainer } from './chunk-UQB5K7Y2.js';
|
|
5
|
+
import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-JBWU55Q6.js';
|
|
6
6
|
import './chunk-IEPKZPTP.js';
|
|
7
7
|
import './chunk-UHCPBQ55.js';
|
|
8
8
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-
|
|
4
|
-
import { helperBinaryFor } from './chunk-
|
|
3
|
+
import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-N4LFUGSE.js';
|
|
4
|
+
import { helperBinaryFor } from './chunk-J3C3SUQQ.js';
|
|
5
5
|
import { launcherCheck } from './chunk-EVYTRDSY.js';
|
|
6
6
|
import './chunk-LSWS52DO.js';
|
|
7
|
-
import { needsAgentCredential, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-
|
|
7
|
+
import { needsAgentCredential, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-JBWU55Q6.js';
|
|
8
8
|
import './chunk-IEPKZPTP.js';
|
|
9
9
|
import './chunk-UHCPBQ55.js';
|
|
10
10
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { CRITERIA_CHECK, MAX_CHECK_ITEMS_BYTES, builtOf, checksIn, commandItems, isJudgeCheck, makeRecorder, readDefinitions, runHostChecks, testProofIn, timeoutAfter } from './chunk-
|
|
3
|
+
export { CRITERIA_CHECK, MAX_CHECK_ITEMS_BYTES, builtOf, checksIn, commandItems, isJudgeCheck, makeRecorder, readDefinitions, runHostChecks, testProofIn, timeoutAfter } from './chunk-JBWU55Q6.js';
|
|
4
4
|
import './chunk-IEPKZPTP.js';
|
|
5
5
|
import './chunk-UHCPBQ55.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
package/dist/index.js
CHANGED
|
@@ -25,5 +25,5 @@ var { runSubcommand } = await import('./agent-subcommand-P5SXLE3P.js');
|
|
|
25
25
|
var launcherCode = await runSubcommand(argv);
|
|
26
26
|
if (launcherCode !== void 0) process.exit(launcherCode);
|
|
27
27
|
(await import('./hook-fast-G2YCUNJB.js')).recordLinkExitFailure(argv);
|
|
28
|
-
var { runCli } = await import('./cli-
|
|
28
|
+
var { runCli } = await import('./cli-646S73R5.js');
|
|
29
29
|
await runCli(process.argv);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, prepareRunnerInit, readConfigObject, runRunnerInit, writeRunnerInit } from './chunk-
|
|
3
|
+
export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, prepareRunnerInit, readConfigObject, runRunnerInit, writeRunnerInit } from './chunk-JBWU55Q6.js';
|
|
4
4
|
import './chunk-IEPKZPTP.js';
|
|
5
5
|
import './chunk-UHCPBQ55.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { npmSupportsProvenance } from './chunk-E7R2GIAW.js';
|
|
4
|
-
import { RunnerInitError, readConfigObject } from './chunk-
|
|
4
|
+
import { RunnerInitError, readConfigObject } from './chunk-JBWU55Q6.js';
|
|
5
5
|
import './chunk-IEPKZPTP.js';
|
|
6
6
|
import './chunk-UHCPBQ55.js';
|
|
7
7
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RunnerInitError } from './chunk-
|
|
3
|
+
import { RunnerInitError } from './chunk-JBWU55Q6.js';
|
|
4
4
|
import './chunk-IEPKZPTP.js';
|
|
5
5
|
import './chunk-UHCPBQ55.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { summarizeChecks, summaryText, renderDoctorText } from './chunk-
|
|
3
|
+
import { summarizeChecks, summaryText, renderDoctorText } from './chunk-H7T2IJXM.js';
|
|
4
4
|
import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-IRFN2ZHJ.js';
|
|
5
5
|
import './chunk-RFWX5IAJ.js';
|
|
6
6
|
import './chunk-GOMVXG4D.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { LAPSED_REASON, RunnerStartError, applyComments, endWhenStartFails, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, provisionsBesideOthers, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-
|
|
3
|
+
export { LAPSED_REASON, RunnerStartError, applyComments, endWhenStartFails, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, provisionsBesideOthers, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-ADPSFSEF.js';
|
|
4
4
|
import './chunk-3JVYMD4G.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-ADILNP5T.js';
|
|
6
6
|
import './chunk-E7R2GIAW.js';
|
|
7
7
|
import './chunk-2OAQK7A2.js';
|
|
8
8
|
import './chunk-WXJNUKRS.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-UQB5K7Y2.js';
|
|
10
10
|
import './chunk-NEOEON2T.js';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-N4LFUGSE.js';
|
|
12
12
|
import './chunk-LSWS52DO.js';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-JBWU55Q6.js';
|
|
14
14
|
import './chunk-IEPKZPTP.js';
|
|
15
15
|
import './chunk-UHCPBQ55.js';
|
|
16
16
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-
|
|
3
|
+
export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-JBWU55Q6.js';
|
|
4
4
|
import './chunk-IEPKZPTP.js';
|
|
5
5
|
import './chunk-UHCPBQ55.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { readConfigObject, RunnerInitError } from './chunk-
|
|
3
|
+
import { readConfigObject, RunnerInitError } from './chunk-JBWU55Q6.js';
|
|
4
4
|
import './chunk-IEPKZPTP.js';
|
|
5
5
|
import './chunk-UHCPBQ55.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-
|
|
3
|
+
import { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-JBWU55Q6.js';
|
|
4
4
|
import './chunk-IEPKZPTP.js';
|
|
5
5
|
import './chunk-UHCPBQ55.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-UQB5K7Y2.js';
|
|
4
|
+
import './chunk-JBWU55Q6.js';
|
|
5
5
|
import './chunk-IEPKZPTP.js';
|
|
6
6
|
import './chunk-UHCPBQ55.js';
|
|
7
7
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { classifyProofs, classifyProofsAt, otherPullRequestHeads, renderProofRow, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-
|
|
3
|
+
export { classifyProofs, classifyProofsAt, otherPullRequestHeads, renderProofRow, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-6PIZF2BS.js';
|
|
4
4
|
import './chunk-IEPKZPTP.js';
|
|
5
5
|
import './chunk-GOMVXG4D.js';
|
|
6
6
|
import './chunk-4M7N6DKZ.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { runWorkComment } from './chunk-BOGLVGYB.js';
|
|
4
|
-
import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, testProofMode, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, renderProofRow, proofsCommentBody } from './chunk-
|
|
4
|
+
import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, testProofMode, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, renderProofRow, proofsCommentBody } from './chunk-6PIZF2BS.js';
|
|
5
5
|
import { runEmitDemo, planScreenshots, chapterPassed, readStill } from './chunk-PQ2JUD5D.js';
|
|
6
6
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
|
7
7
|
import { runEmitArtifact } from './chunk-LL35DTES.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outerlayer/cli",
|
|
3
|
-
"version": "0.39.0
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"description": "OuterLayer CLI — commands: init, claude, opencode, connect, doctor, login, logout, sync, daemon (alias: watch), emit, demo, findings, work, run, spec, runner, hooks, mcp, context. Capture and sync coding-agent sessions, and record proof of factory work.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Magu Studios, Inc.",
|