@outerlayer/cli 0.39.1-next.20261114132314 → 0.40.0-next.20261114141534
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-info.json +1 -1
- package/dist/{check-DI5VHJ5P.js → check-ARWWJ2ED.js} +11 -10
- package/dist/{chunk-W56BXHX2.js → chunk-3JJ6JIYS.js} +3 -3
- package/dist/{chunk-NPDT2LYJ.js → chunk-3ZYSB2V7.js} +1 -1
- package/dist/{chunk-XTCOREPZ.js → chunk-6O5LXVFE.js} +1 -1
- package/dist/{chunk-5CL3SKAJ.js → chunk-BN6NRJ66.js} +6 -6
- package/dist/{chunk-5MHV44B7.js → chunk-FF5TPCQ7.js} +1 -1
- package/dist/{chunk-DJDBWYH6.js → chunk-IYDHMOTC.js} +1 -1
- package/dist/{chunk-NZTQLBGJ.js → chunk-PIXRISH7.js} +42 -15
- package/dist/{chunk-OCVQAHQD.js → chunk-QAOEOSSE.js} +1 -1
- package/dist/{chunk-4WLPTDXO.js → chunk-WW6LIFKM.js} +1 -1
- package/dist/{cli-TPAIAAXB.js → cli-EZTI4WK3.js} +70 -29
- package/dist/{command-OCUZB4YQ.js → command-EQ4LIIPO.js} +3 -3
- package/dist/{container-start-Z4ILGPD6.js → container-start-ZX2HJUEQ.js} +4 -4
- package/dist/{doctor-LKBK3QXH.js → doctor-J4DD52YY.js} +4 -4
- package/dist/{host-checks-VEPO3645.js → host-checks-3PYYUHVK.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{init-34PPCILK.js → init-4J5U5KA7.js} +2 -2
- package/dist/{init-F7P4EG5H.js → init-OBLM3BDH.js} +2 -2
- package/dist/{init-agent-P5TGLXNZ.js → init-agent-ZYT24CNV.js} +2 -2
- package/dist/{init-cmd-DFPLIRCH.js → init-cmd-4U45BP3X.js} +1 -1
- package/dist/{loop-BWAF3ERY.js → loop-7GZBLOZ6.js} +6 -6
- package/dist/{machine-OFITQ4GN.js → machine-DP32IH24.js} +2 -2
- package/dist/{runner-key-DURM6HOD.js → runner-key-VAQXB2WA.js} +2 -2
- package/dist/{status-SG65RWUN.js → status-AAEAC2GN.js} +2 -2
- package/dist/{update-steps-L7OHMVOL.js → update-steps-AVUMGWFH.js} +3 -3
- package/dist/{work-claim-cmd-HCCEBBZC.js → work-claim-cmd-E6I6VZNS.js} +1 -1
- package/dist/{work-proofs-cmd-RMTKEPNV.js → work-proofs-cmd-DPC5M65G.js} +1 -1
- package/dist/{work-proofs-record-LGNLXOP2.js → work-proofs-record-PFPGBKXM.js} +1 -1
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-11-
|
|
1
|
+
{"id":"2026-11-14T14:38:24.403Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { probeCredentials } from './chunk-
|
|
3
|
+
import { probeCredentials } from './chunk-BN6NRJ66.js';
|
|
4
4
|
import './chunk-3JVYMD4G.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-6O5LXVFE.js';
|
|
6
6
|
import './chunk-E7R2GIAW.js';
|
|
7
7
|
import './chunk-7LZYS7BO.js';
|
|
8
8
|
import './chunk-3LORQC4Z.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-IYDHMOTC.js';
|
|
10
10
|
import './chunk-CYZQDC6N.js';
|
|
11
|
-
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-
|
|
11
|
+
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-WW6LIFKM.js';
|
|
12
12
|
import './chunk-ZM7AL7UV.js';
|
|
13
13
|
import { findServiceUnit } from './chunk-I2BO2QBH.js';
|
|
14
|
-
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem
|
|
14
|
+
import { createGatewaySandboxClient, gatewayRefusalReason, placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-PIXRISH7.js';
|
|
15
15
|
import './chunk-BY4SXNUL.js';
|
|
16
|
-
import './chunk-
|
|
16
|
+
import './chunk-QAOEOSSE.js';
|
|
17
17
|
import './chunk-2PGI6RDE.js';
|
|
18
18
|
import './chunk-I3LTIAOR.js';
|
|
19
19
|
import './chunk-RC5ENCHK.js';
|
|
@@ -42,7 +42,7 @@ import './chunk-FJGYU2EK.js';
|
|
|
42
42
|
import './chunk-RIZCV7GX.js';
|
|
43
43
|
import './chunk-7RDHN455.js';
|
|
44
44
|
import './chunk-X26S7Y2N.js';
|
|
45
|
-
import { loadRunnerConfig, RunnerConfigError, checkHooks
|
|
45
|
+
import { keyRunnerFactory, loadRunnerConfig, RunnerConfigError, checkHooks } from './chunk-T7HMGQH2.js';
|
|
46
46
|
import './chunk-34IH7AVH.js';
|
|
47
47
|
import './chunk-6AFTYWAB.js';
|
|
48
48
|
import './chunk-DF2ATCBQ.js';
|
|
@@ -63,7 +63,7 @@ import './chunk-3GBUF5VG.js';
|
|
|
63
63
|
import './chunk-HWVMRETT.js';
|
|
64
64
|
import './chunk-SHCD5V7G.js';
|
|
65
65
|
import './chunk-I6MLYOGL.js';
|
|
66
|
-
import {
|
|
66
|
+
import { SandboxError, describeSandboxError, SANDBOX_VARIABLES } from './chunk-E74YOVYI.js';
|
|
67
67
|
import { parseRunnerEnv } from './chunk-FTV63SCQ.js';
|
|
68
68
|
import './chunk-CG44IGEF.js';
|
|
69
69
|
import './chunk-545P7JY7.js';
|
|
@@ -122,7 +122,8 @@ async function askManagedSandboxes(config, fetchImpl) {
|
|
|
122
122
|
} catch (err) {
|
|
123
123
|
if (!(err instanceof SandboxError)) return { unchecked: describeCallFailure(err) };
|
|
124
124
|
const refused = gatewayRefusalReason(err);
|
|
125
|
-
|
|
125
|
+
if (refused === void 0) return { unchecked: describeSandboxError(err) };
|
|
126
|
+
return err.code === "managed_sandboxes_unavailable" ? { refused, unavailable: true } : { refused };
|
|
126
127
|
}
|
|
127
128
|
}
|
|
128
129
|
async function runRunnerCheck(configPath, deps = {}) {
|
|
@@ -255,4 +256,4 @@ async function runRunnerCheck(configPath, deps = {}) {
|
|
|
255
256
|
return { ok: true, lines, unverifiedReason, summary: config.fleet === true ? `${config.url} \xB7 fleet machine${fleetName === void 0 ? "" : ` ${fleetName}`}` : `${config.url} \xB7 app ${keyRunnerFactory(config)}` };
|
|
256
257
|
}
|
|
257
258
|
|
|
258
|
-
export { runRunnerCheck };
|
|
259
|
+
export { askManagedSandboxes, runRunnerCheck };
|
|
@@ -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-3PYYUHVK.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-3PYYUHVK.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-PFPGBKXM.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 { helperSocketPath } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-PIXRISH7.js';
|
|
4
4
|
import { UNIT_MARKER } from './chunk-ZKZD4CGD.js';
|
|
5
5
|
import { runnerDir } from './chunk-I6MLYOGL.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
@@ -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-PIXRISH7.js';
|
|
4
4
|
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-ZKZD4CGD.js';
|
|
5
5
|
import { RunnerAlreadyRunningError, readPidFile } from './chunk-ZI5MT4TT.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
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-6O5LXVFE.js';
|
|
5
5
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
6
6
|
import { writeFleetState } from './chunk-7LZYS7BO.js';
|
|
7
7
|
import { writePendingUpdate } from './chunk-3LORQC4Z.js';
|
|
8
|
-
import { renderUpdateSteps } from './chunk-
|
|
8
|
+
import { renderUpdateSteps } from './chunk-IYDHMOTC.js';
|
|
9
9
|
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-CYZQDC6N.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-WW6LIFKM.js';
|
|
11
11
|
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-ZM7AL7UV.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-PIXRISH7.js';
|
|
13
13
|
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-BY4SXNUL.js';
|
|
14
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
14
|
+
import { RUNNER_PROTOCOL } from './chunk-QAOEOSSE.js';
|
|
15
15
|
import { RUNNER_RESERVE_BYTES } from './chunk-ZKZD4CGD.js';
|
|
16
16
|
import { RepoFilter } from './chunk-EANGK4AM.js';
|
|
17
17
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
@@ -4782,7 +4782,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
4782
4782
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
4783
4783
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
4784
4784
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
4785
|
-
return (await import('./check-
|
|
4785
|
+
return (await import('./check-ARWWJ2ED.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
4786
4786
|
},
|
|
4787
4787
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
4788
4788
|
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-J4DD52YY.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 { stripTerminalControls } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-PIXRISH7.js';
|
|
4
4
|
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-7QDAAW2N.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { MAX_TEST_FILE_BYTES, itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems } from './chunk-BY4SXNUL.js';
|
|
4
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
4
|
+
import { RUNNER_PROTOCOL } from './chunk-QAOEOSSE.js';
|
|
5
5
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
6
6
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
7
7
|
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-RC5ENCHK.js';
|
|
@@ -341,13 +341,14 @@ async function restoreSession(input) {
|
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
var NAMES_A_FAILURE = /\b(error|failed|fatal|denied|refused|cannot|could not|unable|not found|timed out|timeout)\b/i;
|
|
344
|
+
var PROPERTY_LINE = /^(?:[{}\]\[]+,?|(?:[A-Za-z_$][\w$]*|\[Symbol\([^)]*\)\]): (?:'[^']*'|"[^"]*"|-?\d+(?:\.\d+)?|true|false|null|undefined),?)$/;
|
|
344
345
|
function failedStepLine(log) {
|
|
345
346
|
const lines = log.split(/\r?\n/);
|
|
346
347
|
const end = lines.findLastIndex((line2) => /^#\d+ ERROR: /.test(line2));
|
|
347
348
|
if (end === -1) return void 0;
|
|
348
349
|
const step = /^#(\d+) /.exec(lines[end])[1];
|
|
349
350
|
const prefix = new RegExp(`^#${step} \\d+(?:\\.\\d+)? (.*)$`);
|
|
350
|
-
const output = lines.map((line2) => (prefix.exec(line2)?.[1] ?? "").trim()).filter((line2) => line2 !== "");
|
|
351
|
+
const output = lines.map((line2) => (prefix.exec(line2)?.[1] ?? "").trim()).filter((line2) => line2 !== "" && !PROPERTY_LINE.test(line2));
|
|
351
352
|
return output.filter((line2) => !line2.startsWith("at ") && NAMES_A_FAILURE.test(line2)).at(-1) ?? output.at(-1);
|
|
352
353
|
}
|
|
353
354
|
function failedStepLineOf(path) {
|
|
@@ -2218,10 +2219,18 @@ var RunnerInitError = class extends Error {
|
|
|
2218
2219
|
var UNMARKED_PLACEHOLDER_COMMAND = "echo 'edit runner.commands in this config file: it must start your agent on item $OUTERLAYER_WORK' >&2; exit 1";
|
|
2219
2220
|
var PLACEHOLDER_MARKER = "outerlayer-placeholder";
|
|
2220
2221
|
var PLACEHOLDER_COMMAND = `${UNMARKED_PLACEHOLDER_COMMAND} # ${PLACEHOLDER_MARKER}`;
|
|
2222
|
+
var SANDBOX_MACHINES = ["small", "large"];
|
|
2223
|
+
function sandboxPlatformRefusal(machine) {
|
|
2224
|
+
if (machine.platform === "linux" || machine.platform === "wsl2") return void 0;
|
|
2225
|
+
const where = machine.platform === "darwin" ? "macOS" : machine.platform === "windows" ? "native Windows" : machine.platform;
|
|
2226
|
+
return `--sandbox is for Linux and WSL2: the runner's service does not install on ${where}, so a runner set up with --sandbox would have nothing to keep it running.${machine.platform === "windows" ? " Run this again from a WSL2 shell." : ""}`;
|
|
2227
|
+
}
|
|
2221
2228
|
function isolationRefusal(machine) {
|
|
2222
2229
|
const reach = reachDockerStep(machine);
|
|
2223
2230
|
const needs = machine.platform === "darwin" ? "Isolated builds on a Mac run in the runner image on Docker Desktop (https://docs.outerlayer.ai/run-the-runner-in-a-container) or in a Linux VM: run this again with --vm." : reach !== void 0 ? `Isolated builds need Docker Engine ${MIN_ENGINE_MAJOR} or later: ${reach}, then run this again.` : machine.platform === "windows" ? `Isolated builds need Docker Engine ${MIN_ENGINE_MAJOR} or later inside WSL2: install it there, then run this again from a WSL2 shell. Or run the runner image on Docker Desktop (https://docs.outerlayer.ai/run-the-runner-in-a-container).` : `Isolated builds need Docker Engine ${MIN_ENGINE_MAJOR} or later on Linux or WSL2: install it, then run this again.`;
|
|
2224
|
-
|
|
2231
|
+
const hasSandboxPath = machine.platform === "linux" || machine.platform === "wsl2";
|
|
2232
|
+
const advice = hasSandboxPath ? `To build in sandboxes that OuterLayer provides, run \`outerlayer runner init --sandbox\`: it needs no Docker. To build on this machine, ${needs.charAt(0).toLowerCase()}${needs.slice(1)}` : needs;
|
|
2233
|
+
return `This machine has ${describeMachineDocker(machine)}, so it cannot isolate a build. ${advice}`;
|
|
2225
2234
|
}
|
|
2226
2235
|
function isPlaceholderCommand(command) {
|
|
2227
2236
|
return command === UNMARKED_PLACEHOLDER_COMMAND || command.includes(PLACEHOLDER_MARKER);
|
|
@@ -2276,6 +2285,10 @@ function runRunnerInit(configPath, opts = {}) {
|
|
|
2276
2285
|
return writeRunnerInit(prepareRunnerInit(configPath, opts));
|
|
2277
2286
|
}
|
|
2278
2287
|
function prepareRunnerInit(configPath, opts = {}) {
|
|
2288
|
+
if (opts.sandbox !== void 0) {
|
|
2289
|
+
if (opts.configFromStdin !== void 0) throw new RunnerInitError("--sandbox cannot be used with the VM-side hand-off: that runner builds in containers.");
|
|
2290
|
+
if (opts.requireContainer === true) throw new RunnerInitError("--sandbox cannot be used with a runner that requires container builds.");
|
|
2291
|
+
}
|
|
2279
2292
|
let config;
|
|
2280
2293
|
let carried;
|
|
2281
2294
|
let credential = opts.credential;
|
|
@@ -2297,11 +2310,15 @@ function prepareRunnerInit(configPath, opts = {}) {
|
|
|
2297
2310
|
agent ??= handed.agent;
|
|
2298
2311
|
}
|
|
2299
2312
|
const machine = opts.machine ?? detectMachine();
|
|
2313
|
+
if (opts.sandbox !== void 0) {
|
|
2314
|
+
const refusal = sandboxPlatformRefusal(machine);
|
|
2315
|
+
if (refusal !== void 0) throw new RunnerInitError(refusal);
|
|
2316
|
+
}
|
|
2300
2317
|
if (opts.requireContainer === true && !supportsContainerBuilds(machine)) {
|
|
2301
2318
|
const fix = reachDockerStep(machine) ?? `install Docker Engine ${MIN_ENGINE_MAJOR} or later in the VM`;
|
|
2302
2319
|
throw new RunnerInitError(`the VM has ${describeMachineDocker(machine)}, but the runner in it needs container builds: ${fix}, then run this again.`);
|
|
2303
2320
|
}
|
|
2304
|
-
const hooks = opts.requireContainer !== true && supportsMicroVmBuilds(machine) ? "builtin:vm" : supportsContainerBuilds(machine) ? "builtin:container" : void 0;
|
|
2321
|
+
const hooks = opts.sandbox !== void 0 ? "builtin:sandbox" : opts.requireContainer !== true && supportsMicroVmBuilds(machine) ? "builtin:vm" : supportsContainerBuilds(machine) ? "builtin:container" : void 0;
|
|
2305
2322
|
if (hooks === void 0) throw new RunnerInitError(isolationRefusal(machine));
|
|
2306
2323
|
const named = agent === void 0 ? void 0 : runnerAgentNamed(agent, agents);
|
|
2307
2324
|
if (named !== void 0 && credential === void 0 && opts.credentialInEnvironment !== true && !hasStoredCredential(configPath, agents)) {
|
|
@@ -2319,10 +2336,10 @@ function prepareRunnerInit(configPath, opts = {}) {
|
|
|
2319
2336
|
);
|
|
2320
2337
|
}
|
|
2321
2338
|
}
|
|
2322
|
-
return { configPath, config, carried, credential, agent, agents, machine, hooks, needsKey, host: opts.host };
|
|
2339
|
+
return { configPath, config, carried, credential, agent, agents, machine, hooks, sandbox: opts.sandbox, needsKey, host: opts.host };
|
|
2323
2340
|
}
|
|
2324
2341
|
function writeRunnerInit(prepared, runnerKey) {
|
|
2325
|
-
const { configPath, config, carried, credential, agent, agents, hooks, host } = prepared;
|
|
2342
|
+
const { configPath, config, carried, credential, agent, agents, hooks, host, sandbox } = prepared;
|
|
2326
2343
|
if (prepared.needsKey && runnerKey === void 0) {
|
|
2327
2344
|
throw new RunnerInitError(`${configPath}: apiKey is missing, and no runner key was pasted.`);
|
|
2328
2345
|
}
|
|
@@ -2345,7 +2362,8 @@ function writeRunnerInit(prepared, runnerKey) {
|
|
|
2345
2362
|
...host === void 0 ? {} : { name: host },
|
|
2346
2363
|
// The agent was named on this command line, so its commands win over any the hand-off carried.
|
|
2347
2364
|
...agent === void 0 ? {} : { commands: { ...agentCommands(agent, agents) } },
|
|
2348
|
-
hooks: { provision: hooks, cleanup: hooks }
|
|
2365
|
+
hooks: { provision: hooks, cleanup: hooks },
|
|
2366
|
+
...sandbox === void 0 ? {} : { sandbox: { provider: "outerlayer", machine: sandbox.machine, docker: true } }
|
|
2349
2367
|
};
|
|
2350
2368
|
if (host !== void 0) delete config.runner.host;
|
|
2351
2369
|
mkdirSync(dirname(configPath), { recursive: true });
|
|
@@ -2354,6 +2372,12 @@ function writeRunnerInit(prepared, runnerKey) {
|
|
|
2354
2372
|
`, { mode: RUNNER_FILE_MODE });
|
|
2355
2373
|
return { configPath, hooks, credential: stored };
|
|
2356
2374
|
}
|
|
2375
|
+
function removeRunnerBlock(configPath) {
|
|
2376
|
+
const config = readConfigObject(configPath);
|
|
2377
|
+
delete config.runner;
|
|
2378
|
+
writeFileSync(configPath, `${JSON.stringify(config, null, 2)}
|
|
2379
|
+
`);
|
|
2380
|
+
}
|
|
2357
2381
|
|
|
2358
2382
|
// src/runner/host-setup.ts
|
|
2359
2383
|
function placeholderQueues(config) {
|
|
@@ -9784,12 +9808,12 @@ async function renewLease(config, item, fetchImpl) {
|
|
|
9784
9808
|
var ALREADY_RELEASED = "already released";
|
|
9785
9809
|
var CLAIM_NOT_NEWEST = "claim_not_newest";
|
|
9786
9810
|
async function releaseLease(config, item, outcome, detail, fetchImpl) {
|
|
9787
|
-
const send = async (environment2, sent2, log2, resume2, disk2) => postJson(
|
|
9811
|
+
const send = async (environment2, sent2, log2, resume2, disk2, endedAt2) => postJson(
|
|
9788
9812
|
config.url,
|
|
9789
9813
|
`/v1/work-items/${item}/claim/release`,
|
|
9790
9814
|
config.apiKey,
|
|
9791
9815
|
config.appId,
|
|
9792
|
-
{ host: config.host, claimId: detail.claimId, outcome: sent2, stage: detail.stage, exitCode: detail.exitCode, reason: detail.reason, environment: environment2, resume: resume2, disk: disk2, log: log2 },
|
|
9816
|
+
{ host: config.host, claimId: detail.claimId, outcome: sent2, stage: detail.stage, exitCode: detail.exitCode, reason: detail.reason, environment: environment2, resume: resume2, disk: disk2, log: log2, endedAt: endedAt2 },
|
|
9793
9817
|
fetchImpl,
|
|
9794
9818
|
void 0,
|
|
9795
9819
|
await signerFor(config.configPath)
|
|
@@ -9799,16 +9823,19 @@ async function releaseLease(config, item, outcome, detail, fetchImpl) {
|
|
|
9799
9823
|
let log = detail.log;
|
|
9800
9824
|
let resume = detail.resume;
|
|
9801
9825
|
let disk = detail.disk;
|
|
9826
|
+
let endedAt = detail.endedAt;
|
|
9802
9827
|
let data;
|
|
9803
9828
|
for (; ; ) {
|
|
9804
9829
|
try {
|
|
9805
|
-
({ data } = await send(environment, sent, log, resume, disk));
|
|
9830
|
+
({ data } = await send(environment, sent, log, resume, disk, endedAt));
|
|
9806
9831
|
break;
|
|
9807
9832
|
} catch (err) {
|
|
9808
9833
|
if (!(err instanceof WorkCommandError) || err.status !== 400 || err.code !== "invalid_request_body") throw err;
|
|
9809
9834
|
const namesOutcome = /\boutcome\b/.test(err.message);
|
|
9810
9835
|
if (sent === "incomplete" && namesOutcome) {
|
|
9811
9836
|
sent = "ok";
|
|
9837
|
+
} else if (endedAt !== void 0 && /\bendedAt\b/.test(err.message)) {
|
|
9838
|
+
endedAt = void 0;
|
|
9812
9839
|
} else if (resume !== void 0 && /\bresume\b/.test(err.message)) {
|
|
9813
9840
|
resume = void 0;
|
|
9814
9841
|
} else if (disk !== void 0 && /\bdisk\b/.test(err.message)) {
|
|
@@ -10373,10 +10400,11 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
|
|
|
10373
10400
|
else delete job.environment.guestUsage;
|
|
10374
10401
|
writeJobFile(jobFilePath, job);
|
|
10375
10402
|
}
|
|
10376
|
-
const
|
|
10403
|
+
const endedAt = now();
|
|
10404
|
+
const sentAtMs = endedAt.getTime();
|
|
10377
10405
|
const runnerLog = valuesNotHeld ? `The runner sends no log for this attempt: ${VALUES_NOT_HELD}.
|
|
10378
10406
|
` : releaseLogFor(jobDirPath, job, config);
|
|
10379
|
-
const detail = outcome === void 0 ? { log: runnerLog } : { stage: job.endStage, exitCode: job.endExitCode, reason: job.reason, environment: job.environment, resume: job.resume, disk: job.disk, log: runnerLog };
|
|
10407
|
+
const detail = outcome === void 0 ? { log: runnerLog, endedAt: endedAt.toISOString() } : { stage: job.endStage, exitCode: job.endExitCode, reason: job.reason, environment: job.environment, resume: job.resume, disk: job.disk, log: runnerLog, endedAt: endedAt.toISOString() };
|
|
10380
10408
|
const release = await retrySend(() => sendRelease(config, job, outcome, detail, deps.fetchImpl), {
|
|
10381
10409
|
now: deps.now,
|
|
10382
10410
|
sleep: deps.sleep
|
|
@@ -10387,7 +10415,6 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
|
|
|
10387
10415
|
dropManagedBuildSettings(jobDirPath);
|
|
10388
10416
|
const alreadyReleased = release.ok && wasAlreadyReleased(release.value, outcome, sentAtMs);
|
|
10389
10417
|
const superseded = !release.ok && release.code === CLAIM_NOT_NEWEST;
|
|
10390
|
-
const endedAt = now();
|
|
10391
10418
|
job.outcome = outcome;
|
|
10392
10419
|
job.endedAt = endedAt.toISOString();
|
|
10393
10420
|
job.releaseFailed = release.ok ? alreadyReleased ? ALREADY_RELEASED : void 0 : superseded ? void 0 : release.reason;
|
|
@@ -10457,7 +10484,7 @@ async function retryFailedReleases(jobsDirPath, config, deps) {
|
|
|
10457
10484
|
continue;
|
|
10458
10485
|
}
|
|
10459
10486
|
const runnerLog = readScrubbedReleaseLog(dirPath) ?? releaseLogFor(dirPath, job, config);
|
|
10460
|
-
const detail = job.outcome === void 0 ? { log: runnerLog } : { stage: job.endStage, exitCode: job.endExitCode, reason: job.reason, environment: job.environment, resume: job.resume, disk: job.disk, log: runnerLog };
|
|
10487
|
+
const detail = job.outcome === void 0 ? { log: runnerLog, endedAt: job.endedAt } : { stage: job.endStage, exitCode: job.endExitCode, reason: job.reason, environment: job.environment, resume: job.resume, disk: job.disk, log: runnerLog, endedAt: job.endedAt };
|
|
10461
10488
|
const release = await retrySend(() => sendRelease(config, job, job.outcome, detail, deps.fetchImpl), {
|
|
10462
10489
|
now: deps.now,
|
|
10463
10490
|
sleep: deps.sleep
|
|
@@ -14020,4 +14047,4 @@ async function runHostChecks(input) {
|
|
|
14020
14047
|
}
|
|
14021
14048
|
}
|
|
14022
14049
|
|
|
14023
|
-
export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, CRITERIA_CHECK, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MAX_CHECK_ITEMS_BYTES, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, SandboxGoneError, agentCredentialCheck, appendCommandLog, attemptNote, builtOf, checksIn, claimPermissionProblem, claimRun, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createGatewaySandboxClient, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, environmentFor, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gatewayRefusalReason, gitRemoteFor, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inSandbox, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, judgeCredential, judgeProbe, keepGhConfigCurrent, keptCommitsLine, keptSandboxIds, keptSessionDir, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, readWorkItem, recordsProofsOnly, recoverLostJobs, rejoinSandboxBuild, releaseLease, removeOldestUntil, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, restoreSessionIntoSandbox, restoreWork, retryFailedReleases, runCommand, runCommandOf, runDecision, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, sessionGuestOfContainer, sessionGuestOfMicroVm, sessionGuestOfSandbox, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, testProofIn, timeoutAfter, treeFileText, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workRestoredEnv, workdirProblem, writeGuestGhConfig, writeRunnerInit };
|
|
14050
|
+
export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, CRITERIA_CHECK, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MAX_CHECK_ITEMS_BYTES, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, SANDBOX_MACHINES, SandboxGoneError, agentCredentialCheck, appendCommandLog, attemptNote, builtOf, checksIn, claimPermissionProblem, claimRun, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createGatewaySandboxClient, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, environmentFor, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gatewayRefusalReason, gitRemoteFor, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inSandbox, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, judgeCredential, judgeProbe, keepGhConfigCurrent, keptCommitsLine, keptSandboxIds, keptSessionDir, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, readWorkItem, recordsProofsOnly, recoverLostJobs, rejoinSandboxBuild, releaseLease, removeOldestUntil, removeRunnerBlock, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, restoreSessionIntoSandbox, restoreWork, retryFailedReleases, runCommand, runCommandOf, runDecision, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, sandboxPlatformRefusal, savedStatesDir, scrubReason, serveLease, sessionGuestOfContainer, sessionGuestOfMicroVm, sessionGuestOfSandbox, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, testProofIn, timeoutAfter, treeFileText, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workRestoredEnv, workdirProblem, writeGuestGhConfig, writeRunnerInit };
|
|
@@ -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-PIXRISH7.js';
|
|
4
4
|
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-ZKZD4CGD.js';
|
|
5
5
|
import { getJson, WorkCommandError } from './chunk-RIZCV7GX.js';
|
|
6
6
|
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-T7HMGQH2.js';
|
|
@@ -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-FF5TPCQ7.js';
|
|
4
4
|
import './chunk-ADXJXXGU.js';
|
|
5
5
|
import { verifiedTrackerNames, TRACKERS } from './chunk-RIZCV7GX.js';
|
|
6
6
|
import './chunk-7RDHN455.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-4U45BP3X.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-4U45BP3X.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-DPC5M65G.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) => {
|
|
@@ -5275,7 +5275,7 @@ by a different key is refused; claiming again with the same key extends
|
|
|
5275
5275
|
it. --host is a label only.
|
|
5276
5276
|
`
|
|
5277
5277
|
).action(async (opts) => {
|
|
5278
|
-
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-
|
|
5278
|
+
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-E6I6VZNS.js');
|
|
5279
5279
|
try {
|
|
5280
5280
|
await runWorkClaim(opts);
|
|
5281
5281
|
} catch (err) {
|
|
@@ -5295,7 +5295,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
|
|
|
5295
5295
|
lease has expired, or a 403 if a different key holds it.
|
|
5296
5296
|
`
|
|
5297
5297
|
).action(async (opts) => {
|
|
5298
|
-
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-
|
|
5298
|
+
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-E6I6VZNS.js');
|
|
5299
5299
|
try {
|
|
5300
5300
|
await runWorkRenew(opts);
|
|
5301
5301
|
} catch (err) {
|
|
@@ -5327,7 +5327,7 @@ applies to a host's lease only. A later tool call in the session
|
|
|
5327
5327
|
takes the lease again.
|
|
5328
5328
|
`
|
|
5329
5329
|
).action(async (opts) => {
|
|
5330
|
-
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-
|
|
5330
|
+
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-E6I6VZNS.js');
|
|
5331
5331
|
try {
|
|
5332
5332
|
await runWorkRelease(opts);
|
|
5333
5333
|
} catch (err) {
|
|
@@ -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-334GXURH.js');
|
|
5476
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5476
|
+
const { start, RunnerStartError } = await import('./loop-7GZBLOZ6.js');
|
|
5477
5477
|
const { RunnerAlreadyRunningError } = await import('./pidfile-ERHOAFUE.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-334GXURH.js');
|
|
5500
|
-
const { containerStart, containerStartExit } = await import('./container-start-
|
|
5501
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5500
|
+
const { containerStart, containerStartExit } = await import('./container-start-ZX2HJUEQ.js');
|
|
5501
|
+
const { start, RunnerStartError } = await import('./loop-7GZBLOZ6.js');
|
|
5502
5502
|
const { RunnerAlreadyRunningError } = await import('./pidfile-ERHOAFUE.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-334GXURH.js');
|
|
5524
5524
|
const { runnerDir } = await import('./paths-B5GNVTVC.js');
|
|
5525
|
-
const { runUpdateSteps } = await import('./update-steps-
|
|
5525
|
+
const { runUpdateSteps } = await import('./update-steps-AVUMGWFH.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-334GXURH.js');
|
|
5532
|
-
const { runRunnerCheck } = await import('./check-
|
|
5532
|
+
const { runRunnerCheck } = await import('./check-ARWWJ2ED.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-EQ4LIIPO.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-EQ4LIIPO.js');
|
|
5573
5573
|
const result2 = await installServiceCommand({
|
|
5574
5574
|
configPath,
|
|
5575
5575
|
print: opts.print,
|
|
@@ -5624,13 +5624,13 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
|
|
|
5624
5624
|
return;
|
|
5625
5625
|
}
|
|
5626
5626
|
const { defaultRunnerConfigPath } = await import('./config-334GXURH.js');
|
|
5627
|
-
const { uninstallServiceCommand } = await import('./command-
|
|
5627
|
+
const { uninstallServiceCommand } = await import('./command-EQ4LIIPO.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
|
`);
|
|
5631
5631
|
else fail(result.lines.length > 0 ? result.lines.join("\n ") : "the service was not removed");
|
|
5632
5632
|
});
|
|
5633
|
-
runnerCmd.command("init").description("Write a runner block that fits this machine; on macOS, offers a Linux VM").option("--config <path>", configOption).option("--vm", "on macOS, run the runner in a Linux VM (Lima), with container builds").addOption(new Option("--config-stdin", "the VM-side hand-off: read the whole config as JSON on stdin").hideHelp()).option("--vm-cli-package <path>", "with --vm, install this packed CLI tarball in the VM").option("--unit-name <name>", "the service unit's name, to run a second runner beside the first").option("--agent <name>", `start this agent in queue commands (${headlessNames().join(", ")}); credential on stdin`).option("--factory <org/factory>", "factory to create the runner key on, as <org>/<factory>").option("--app-id <id>", "factory id, instead of --factory (Settings \u2192 General)").addHelpText(
|
|
5633
|
+
runnerCmd.command("init").description("Write a runner block that fits this machine; on macOS, offers a Linux VM").option("--config <path>", configOption).option("--vm", "on macOS, run the runner in a Linux VM (Lima), with container builds").addOption(new Option("--config-stdin", "the VM-side hand-off: read the whole config as JSON on stdin").hideHelp()).option("--vm-cli-package <path>", "with --vm, install this packed CLI tarball in the VM").option("--sandbox", "on Linux or WSL2, build in sandboxes that OuterLayer provides").option("--machine <size>", "with --sandbox, the machine size: small (default) or large").option("--unit-name <name>", "the service unit's name, to run a second runner beside the first").option("--agent <name>", `start this agent in queue commands (${headlessNames().join(", ")}); credential on stdin`).option("--factory <org/factory>", "factory to create the runner key on, as <org>/<factory>").option("--app-id <id>", "factory id, instead of --factory (Settings \u2192 General)").addHelpText(
|
|
5634
5634
|
"after",
|
|
5635
5635
|
() => `
|
|
5636
5636
|
With no apiKey in the config file, and a login saved by \`${cliInvocation()} login\`,
|
|
@@ -5654,14 +5654,37 @@ already in ${words().envFile} is used.
|
|
|
5654
5654
|
printf '%s' "$${words().variables[0]}" | ${cliInvocation()} runner init --agent ${words().runnerName} --factory <org>/<factory>
|
|
5655
5655
|
`
|
|
5656
5656
|
).action(async (opts) => {
|
|
5657
|
-
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-334GXURH.js');
|
|
5658
|
-
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-
|
|
5659
|
-
const {
|
|
5660
|
-
const {
|
|
5661
|
-
const {
|
|
5657
|
+
const { defaultRunnerConfigPath, loadRunnerConfig, RunnerConfigError } = await import('./config-334GXURH.js');
|
|
5658
|
+
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit, removeRunnerBlock, sandboxPlatformRefusal, SANDBOX_MACHINES } = await import('./init-OBLM3BDH.js');
|
|
5659
|
+
const { askManagedSandboxes } = await import('./check-ARWWJ2ED.js');
|
|
5660
|
+
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-VAQXB2WA.js');
|
|
5661
|
+
const { detectMachine } = await import('./machine-DP32IH24.js');
|
|
5662
|
+
const { chooseVm, runVmInit, VmInitError } = await import('./init-4J5U5KA7.js');
|
|
5662
5663
|
const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-4PF5MNVO.js');
|
|
5663
5664
|
const { headlessNames: headlessNames2 } = await import('./runner-agents-FCJR2SGQ.js');
|
|
5664
5665
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5666
|
+
if (opts.sandbox !== true && opts.machine !== void 0) {
|
|
5667
|
+
fail("--machine needs --sandbox: it sets the machine size of a sandbox that OuterLayer provides.");
|
|
5668
|
+
return;
|
|
5669
|
+
}
|
|
5670
|
+
let sandbox;
|
|
5671
|
+
if (opts.sandbox === true) {
|
|
5672
|
+
const size = SANDBOX_MACHINES.find((name) => name === (opts.machine ?? "small"));
|
|
5673
|
+
if (size === void 0) {
|
|
5674
|
+
fail(`--machine ${opts.machine}: a sandbox's machine size is ${SANDBOX_MACHINES.join(" or ")}.`);
|
|
5675
|
+
return;
|
|
5676
|
+
}
|
|
5677
|
+
if (opts.vm === true || opts.configStdin === true) {
|
|
5678
|
+
fail(`--sandbox cannot be used with ${opts.vm === true ? "--vm" : "--config-stdin"}: both set up a runner that builds in containers.`);
|
|
5679
|
+
return;
|
|
5680
|
+
}
|
|
5681
|
+
const refusal = sandboxPlatformRefusal(detectMachine());
|
|
5682
|
+
if (refusal !== void 0) {
|
|
5683
|
+
fail(refusal);
|
|
5684
|
+
return;
|
|
5685
|
+
}
|
|
5686
|
+
sandbox = { machine: size };
|
|
5687
|
+
}
|
|
5665
5688
|
if (opts.agent !== void 0 && !isAgentName(opts.agent)) {
|
|
5666
5689
|
fail(`--agent ${opts.agent}: runner init writes commands for ${headlessNames2().join(", ")}. For another agent, leave --agent out and edit runner.commands.`);
|
|
5667
5690
|
return;
|
|
@@ -5672,7 +5695,7 @@ already in ${words().envFile} is used.
|
|
|
5672
5695
|
return;
|
|
5673
5696
|
}
|
|
5674
5697
|
try {
|
|
5675
|
-
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-
|
|
5698
|
+
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-ZYT24CNV.js');
|
|
5676
5699
|
agent = await initAgent({
|
|
5677
5700
|
flag: agent,
|
|
5678
5701
|
handOff: opts.configStdin === true,
|
|
@@ -5757,11 +5780,20 @@ hooks: ${result2.hooks}
|
|
|
5757
5780
|
`);
|
|
5758
5781
|
return;
|
|
5759
5782
|
}
|
|
5760
|
-
const prepared = prepareRunnerInit(configPath, { machine, agent, credential, keyFromLogin: makeKey !== void 0 });
|
|
5783
|
+
const prepared = prepareRunnerInit(configPath, { machine, agent, credential, keyFromLogin: makeKey !== void 0, sandbox });
|
|
5761
5784
|
const created = makeKey === void 0 ? void 0 : await makeKey();
|
|
5762
5785
|
const result = writeRunnerInit(prepared, created);
|
|
5763
5786
|
const { ensureHostKey } = await import('./host-key-Q3OKQTJF.js');
|
|
5764
5787
|
const hostKey = await ensureHostKey(configPath);
|
|
5788
|
+
const sandboxAnswer = sandbox === void 0 ? void 0 : await askManagedSandboxes(loadRunnerConfig(configPath), void 0);
|
|
5789
|
+
if (sandboxAnswer?.unavailable === true) {
|
|
5790
|
+
removeRunnerBlock(configPath);
|
|
5791
|
+
const kept = [`the runner key in ${result.configPath}`, ...result.credential === void 0 ? [] : [`the agent credential in ${result.credential.path}`], "the host key"];
|
|
5792
|
+
fail(
|
|
5793
|
+
`This gateway provides no sandboxes, so a runner that builds in sandboxes cannot work here. No runner block was left in ${result.configPath}, and no service was set up. The command left ${kept.join(", ")}. To build on this machine, run ${cliInvocation()} runner init with no --sandbox.`
|
|
5794
|
+
);
|
|
5795
|
+
return;
|
|
5796
|
+
}
|
|
5765
5797
|
if (created !== void 0) {
|
|
5766
5798
|
process.stdout.write(`${C.green}\u2713${C.reset} saved the runner key in ${result.configPath}
|
|
5767
5799
|
`);
|
|
@@ -5778,8 +5810,17 @@ hooks: ${result2.hooks}
|
|
|
5778
5810
|
`${C.green}\u2713${C.reset} host key ${hostKey.fingerprint}: the runner key binds to it on its first claim
|
|
5779
5811
|
`
|
|
5780
5812
|
);
|
|
5781
|
-
|
|
5813
|
+
const hooksNote = result.hooks === "builtin:vm" ? "builds run in microVMs" : result.hooks === "builtin:sandbox" ? "builds run in sandboxes that OuterLayer provides" : "builds run in containers";
|
|
5814
|
+
process.stdout.write(`${C.green}\u2713${C.reset} hooks: ${result.hooks} (${hooksNote})
|
|
5782
5815
|
`);
|
|
5816
|
+
if (sandboxAnswer !== void 0) {
|
|
5817
|
+
if (sandboxAnswer.refused !== void 0) process.stdout.write(`${C.yellow}!${C.reset} the gateway will not start a sandbox for this runner yet: ${sandboxAnswer.refused}
|
|
5818
|
+
`);
|
|
5819
|
+
else if (sandboxAnswer.unchecked !== void 0) process.stdout.write(`${C.yellow}!${C.reset} could not check whether the gateway provides sandboxes: ${sandboxAnswer.unchecked}
|
|
5820
|
+
`);
|
|
5821
|
+
else process.stdout.write(`${C.green}\u2713${C.reset} the gateway provides sandboxes to this runner
|
|
5822
|
+
`);
|
|
5823
|
+
}
|
|
5783
5824
|
const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-AKZE7R2E.js');
|
|
5784
5825
|
let installedLayout = false;
|
|
5785
5826
|
let noService = "it starts the runner from the install layout, which needs a CLI installed with npm";
|
|
@@ -5812,7 +5853,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
|
|
|
5812
5853
|
let serviceUp = false;
|
|
5813
5854
|
let restart;
|
|
5814
5855
|
if (installedLayout) {
|
|
5815
|
-
const { installServiceCommand } = await import('./command-
|
|
5856
|
+
const { installServiceCommand } = await import('./command-EQ4LIIPO.js');
|
|
5816
5857
|
const service = await installServiceCommand({
|
|
5817
5858
|
configPath,
|
|
5818
5859
|
entryPath: process.argv[1] ?? "",
|
|
@@ -5950,7 +5991,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5950
5991
|
});
|
|
5951
5992
|
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
5993
|
const { defaultRunnerConfigPath } = await import('./config-334GXURH.js');
|
|
5953
|
-
const { requestStop } = await import('./loop-
|
|
5994
|
+
const { requestStop } = await import('./loop-7GZBLOZ6.js');
|
|
5954
5995
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5955
5996
|
const { runnerImageVersion } = await import('./image-tag-CPEVAJDD.js');
|
|
5956
5997
|
await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
|
|
@@ -5958,8 +5999,8 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5958
5999
|
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
6000
|
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-334GXURH.js');
|
|
5960
6001
|
const { jobsDir, runnerDir } = await import('./paths-B5GNVTVC.js');
|
|
5961
|
-
const { listJobFiles, runnerProcessState } = await import('./loop-
|
|
5962
|
-
const { renderStatus } = await import('./status-
|
|
6002
|
+
const { listJobFiles, runnerProcessState } = await import('./loop-7GZBLOZ6.js');
|
|
6003
|
+
const { renderStatus } = await import('./status-AAEAC2GN.js');
|
|
5963
6004
|
const { readHousekeepingRecord } = await import('./record-GI6LXXNB.js');
|
|
5964
6005
|
const path2 = await import('path');
|
|
5965
6006
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
@@ -6025,7 +6066,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
6025
6066
|
});
|
|
6026
6067
|
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
6068
|
const { defaultRunnerConfigPath } = await import('./config-334GXURH.js');
|
|
6028
|
-
const { listJobFiles } = await import('./loop-
|
|
6069
|
+
const { listJobFiles } = await import('./loop-7GZBLOZ6.js');
|
|
6029
6070
|
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-BQC5UDSI.js');
|
|
6030
6071
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
6031
6072
|
const jobs = listJobFiles(configPath);
|
|
@@ -1,12 +1,12 @@
|
|
|
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-6G6FOCJW.js';
|
|
4
|
-
import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-
|
|
4
|
+
import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-3ZYSB2V7.js';
|
|
5
5
|
import './chunk-SWYBUMUL.js';
|
|
6
6
|
import { currentLink, execStartCommand } from './chunk-ZM7AL7UV.js';
|
|
7
|
-
import { detectMachine, ensureFirecrackerAndJailer } from './chunk-
|
|
7
|
+
import { detectMachine, ensureFirecrackerAndJailer } from './chunk-PIXRISH7.js';
|
|
8
8
|
import './chunk-BY4SXNUL.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-QAOEOSSE.js';
|
|
10
10
|
import './chunk-2PGI6RDE.js';
|
|
11
11
|
import './chunk-I3LTIAOR.js';
|
|
12
12
|
import './chunk-RC5ENCHK.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
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-6O5LXVFE.js';
|
|
4
|
+
import { readOwnContainer } from './chunk-IYDHMOTC.js';
|
|
5
|
+
import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-PIXRISH7.js';
|
|
6
6
|
import './chunk-BY4SXNUL.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-QAOEOSSE.js';
|
|
8
8
|
import './chunk-2PGI6RDE.js';
|
|
9
9
|
import './chunk-I3LTIAOR.js';
|
|
10
10
|
import './chunk-RC5ENCHK.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
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-WW6LIFKM.js';
|
|
4
|
+
import { helperBinaryFor } from './chunk-3ZYSB2V7.js';
|
|
5
5
|
import { launcherCheck } from './chunk-SWYBUMUL.js';
|
|
6
6
|
import './chunk-ZM7AL7UV.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-PIXRISH7.js';
|
|
8
8
|
import './chunk-BY4SXNUL.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-QAOEOSSE.js';
|
|
10
10
|
import './chunk-2PGI6RDE.js';
|
|
11
11
|
import './chunk-I3LTIAOR.js';
|
|
12
12
|
import './chunk-RC5ENCHK.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
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-PIXRISH7.js';
|
|
4
4
|
import './chunk-BY4SXNUL.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-QAOEOSSE.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
7
7
|
import './chunk-I3LTIAOR.js';
|
|
8
8
|
import './chunk-RC5ENCHK.js';
|
package/dist/index.js
CHANGED
|
@@ -25,5 +25,5 @@ var { runSubcommand } = await import('./agent-subcommand-FFRNWF6T.js');
|
|
|
25
25
|
var launcherCode = await runSubcommand(argv);
|
|
26
26
|
if (launcherCode !== void 0) process.exit(launcherCode);
|
|
27
27
|
(await import('./hook-fast-CKQWLT6W.js')).recordLinkExitFailure(argv);
|
|
28
|
-
var { runCli } = await import('./cli-
|
|
28
|
+
var { runCli } = await import('./cli-EZTI4WK3.js');
|
|
29
29
|
await runCli(process.argv);
|
|
@@ -1,9 +1,9 @@
|
|
|
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-PIXRISH7.js';
|
|
5
5
|
import './chunk-BY4SXNUL.js';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-QAOEOSSE.js';
|
|
7
7
|
import './chunk-2PGI6RDE.js';
|
|
8
8
|
import './chunk-I3LTIAOR.js';
|
|
9
9
|
import './chunk-RC5ENCHK.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
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, SANDBOX_MACHINES, isPlaceholderCommand, prepareRunnerInit, readConfigObject, removeRunnerBlock, runRunnerInit, sandboxPlatformRefusal, writeRunnerInit } from './chunk-PIXRISH7.js';
|
|
4
4
|
import './chunk-BY4SXNUL.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-QAOEOSSE.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
7
7
|
import './chunk-I3LTIAOR.js';
|
|
8
8
|
import './chunk-RC5ENCHK.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RunnerInitError } from './chunk-
|
|
3
|
+
import { RunnerInitError } from './chunk-PIXRISH7.js';
|
|
4
4
|
import './chunk-BY4SXNUL.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-QAOEOSSE.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
7
7
|
import './chunk-I3LTIAOR.js';
|
|
8
8
|
import './chunk-RC5ENCHK.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-FF5TPCQ7.js';
|
|
4
4
|
import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-IRFN2ZHJ.js';
|
|
5
5
|
import './chunk-ADXJXXGU.js';
|
|
6
6
|
import './chunk-RIZCV7GX.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
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-BN6NRJ66.js';
|
|
4
4
|
import './chunk-3JVYMD4G.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-6O5LXVFE.js';
|
|
6
6
|
import './chunk-E7R2GIAW.js';
|
|
7
7
|
import './chunk-7LZYS7BO.js';
|
|
8
8
|
import './chunk-3LORQC4Z.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-IYDHMOTC.js';
|
|
10
10
|
import './chunk-CYZQDC6N.js';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-WW6LIFKM.js';
|
|
12
12
|
import './chunk-ZM7AL7UV.js';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-PIXRISH7.js';
|
|
14
14
|
import './chunk-BY4SXNUL.js';
|
|
15
|
-
import './chunk-
|
|
15
|
+
import './chunk-QAOEOSSE.js';
|
|
16
16
|
import './chunk-2PGI6RDE.js';
|
|
17
17
|
import './chunk-I3LTIAOR.js';
|
|
18
18
|
import './chunk-RC5ENCHK.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
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-PIXRISH7.js';
|
|
4
4
|
import './chunk-BY4SXNUL.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-QAOEOSSE.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
7
7
|
import './chunk-I3LTIAOR.js';
|
|
8
8
|
import './chunk-RC5ENCHK.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
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-PIXRISH7.js';
|
|
4
4
|
import './chunk-BY4SXNUL.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-QAOEOSSE.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
7
7
|
import './chunk-I3LTIAOR.js';
|
|
8
8
|
import './chunk-RC5ENCHK.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
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-PIXRISH7.js';
|
|
4
4
|
import './chunk-BY4SXNUL.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-QAOEOSSE.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
7
7
|
import './chunk-I3LTIAOR.js';
|
|
8
8
|
import './chunk-RC5ENCHK.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
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-IYDHMOTC.js';
|
|
4
|
+
import './chunk-PIXRISH7.js';
|
|
5
5
|
import './chunk-BY4SXNUL.js';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-QAOEOSSE.js';
|
|
7
7
|
import './chunk-2PGI6RDE.js';
|
|
8
8
|
import './chunk-I3LTIAOR.js';
|
|
9
9
|
import './chunk-RC5ENCHK.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
3
|
+
import { RUNNER_PROTOCOL } from './chunk-QAOEOSSE.js';
|
|
4
4
|
import { resolveCredentials, WorkCommandError, parsePositiveInt, postJson, environmentFacts, findLiveItemForIssue } from './chunk-RIZCV7GX.js';
|
|
5
5
|
export { WorkCommandError } from './chunk-RIZCV7GX.js';
|
|
6
6
|
import './chunk-7RDHN455.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-3JJ6JIYS.js';
|
|
4
4
|
import './chunk-BY4SXNUL.js';
|
|
5
5
|
import './chunk-RIZCV7GX.js';
|
|
6
6
|
import './chunk-7RDHN455.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { runWorkComment } from './chunk-4J5KDIHZ.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-3JJ6JIYS.js';
|
|
5
5
|
import { runEmitDemo, planScreenshots, chapterPassed, readStill } from './chunk-QNHHD75P.js';
|
|
6
6
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
|
7
7
|
import { runEmitArtifact } from './chunk-GD2LIK6W.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outerlayer/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0-next.20261114141534",
|
|
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.",
|