@outerlayer/cli 0.40.0-next.20261117043041 → 0.40.0-next.20261117055025
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-TRV42MHY.js → check-Y5CTVK5F.js} +5 -5
- package/dist/{chunk-YOQ3GBJK.js → chunk-2AEXGFFJ.js} +3 -3
- package/dist/{chunk-BVKLR7GA.js → chunk-3QNW4M64.js} +1 -1
- package/dist/{chunk-SLZSJRLS.js → chunk-3RSCWOYQ.js} +1 -1
- package/dist/{chunk-QJ3AJNRP.js → chunk-AQS3AG4T.js} +1 -1
- package/dist/{chunk-RZSGNO7S.js → chunk-K7RHVH7G.js} +190 -31
- package/dist/{chunk-I6PDJEYQ.js → chunk-L4T6CI57.js} +1 -1
- package/dist/{chunk-ULI64TQ5.js → chunk-LX4GPGNE.js} +1 -1
- package/dist/{chunk-O2JKZTP3.js → chunk-O6YRZ4CP.js} +1 -1
- package/dist/{chunk-LDTLGJ5F.js → chunk-QYJYYF3J.js} +5 -5
- package/dist/{cli-DRPVOAEG.js → cli-YSZ2PWXK.js} +24 -24
- package/dist/{command-FMNZSGIX.js → command-NBKHR4MM.js} +2 -2
- package/dist/{container-start-OPQZF4LH.js → container-start-NRCXZWBS.js} +3 -3
- package/dist/{doctor-22YI6EJN.js → doctor-3QBRH4YU.js} +3 -3
- package/dist/{host-checks-MVOAIBQA.js → host-checks-527RRKUD.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{init-F6XEU4VR.js → init-6KSNBYRM.js} +1 -1
- package/dist/{init-JEXSFOFP.js → init-ILAIAVL7.js} +1 -1
- package/dist/{init-agent-BLC6ART6.js → init-agent-D7K7PKUI.js} +1 -1
- package/dist/{init-cmd-ISFN4IXL.js → init-cmd-ZEM335MG.js} +2 -2
- package/dist/{loop-A3LCREAQ.js → loop-OY7YZMHJ.js} +5 -5
- package/dist/{machine-P5OCN6FJ.js → machine-HJUWRAJ4.js} +1 -1
- package/dist/{runner-key-K6SJMQ6I.js → runner-key-DQG25VKO.js} +1 -1
- package/dist/{setup-wiring-AE2RFMC4.js → setup-wiring-M3NSQHVV.js} +3 -3
- package/dist/{status-TJWQ5EIM.js → status-HSUAGN6D.js} +1 -1
- package/dist/{update-steps-RDYVUTKN.js → update-steps-CF2EKH43.js} +2 -2
- package/dist/{work-proofs-cmd-XOIAKWF2.js → work-proofs-cmd-SM2GQTEF.js} +1 -1
- package/dist/{work-proofs-record-7DEOYNST.js → work-proofs-record-RTWRGKIG.js} +1 -1
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-11-
|
|
1
|
+
{"id":"2026-11-17T05:57:52.763Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { probeCredentials } from './chunk-
|
|
3
|
+
import { probeCredentials } from './chunk-QYJYYF3J.js';
|
|
4
4
|
import './chunk-AAGXH2FR.js';
|
|
5
5
|
import './chunk-E7R2GIAW.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-AQS3AG4T.js';
|
|
7
|
+
import './chunk-LX4GPGNE.js';
|
|
8
8
|
import './chunk-TXKHD4Q6.js';
|
|
9
9
|
import './chunk-UAGUV74T.js';
|
|
10
10
|
import './chunk-VEW4BPVJ.js';
|
|
11
|
-
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-
|
|
11
|
+
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-3RSCWOYQ.js';
|
|
12
12
|
import './chunk-TPLMLNME.js';
|
|
13
|
-
import { createGatewaySandboxClient, gatewayRefusalReason, placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-
|
|
13
|
+
import { createGatewaySandboxClient, gatewayRefusalReason, placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-K7RHVH7G.js';
|
|
14
14
|
import './chunk-HHOFP647.js';
|
|
15
15
|
import './chunk-FBFYIEHC.js';
|
|
16
16
|
import './chunk-I3LTIAOR.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-527RRKUD.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-527RRKUD.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-RTWRGKIG.js');
|
|
376
376
|
const result2 = await runWorkProofsRecord(opts);
|
|
377
377
|
process.exitCode = result2.exitCode;
|
|
378
378
|
return;
|
|
@@ -1123,7 +1123,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1123
1123
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1124
1124
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1125
1125
|
} else if (hasRunnerBlock(configPath)) {
|
|
1126
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1126
|
+
const { runnerHostChecks } = await import('./doctor-3QBRH4YU.js');
|
|
1127
1127
|
const gateway = (() => {
|
|
1128
1128
|
try {
|
|
1129
1129
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -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-K7RHVH7G.js';
|
|
4
4
|
import { checkFit } from './chunk-XVE7HD6X.js';
|
|
5
5
|
import { getJson, WorkCommandError } from './chunk-KZEZBZ4W.js';
|
|
6
6
|
import { isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, keepsHostBuilder } from './chunk-MAWSNLSZ.js';
|
|
@@ -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-K7RHVH7G.js';
|
|
4
4
|
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-XVE7HD6X.js';
|
|
5
5
|
import { RunnerAlreadyRunningError, readPidFile } from './chunk-VH7P6XUP.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
@@ -21,7 +21,7 @@ import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
|
21
21
|
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-IHMGZWOB.js';
|
|
22
22
|
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-XVTDFLRQ.js';
|
|
23
23
|
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-PVDIDOKH.js';
|
|
24
|
-
import { postJson,
|
|
24
|
+
import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-KZEZBZ4W.js';
|
|
25
25
|
import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-MAWSNLSZ.js';
|
|
26
26
|
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-YAB2SVSI.js';
|
|
27
27
|
import { said, NETWORK_HELPER_MEMORY, firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, NETWORK_READY_FILE, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, JUDGE_REPORT, withAnswerProtocol, JUDGE_TREE, runnerLabelValue, parseSize, readJobFileChecked, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, identityRunArgs, judgeProgramRecord, SAVED_STATE_LABEL } from './chunk-G2KLJMPR.js';
|
|
@@ -31,7 +31,7 @@ import { sharedSkillNames, skillConflictMessage } from './chunk-ZHXBFXG2.js';
|
|
|
31
31
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
32
32
|
import { signerFor } from './chunk-QMOE5Y4X.js';
|
|
33
33
|
import { sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-WHIAOWEN.js';
|
|
34
|
-
import { BUILD_HOME, dataPlaneOf, sandboxCallOf, SandboxError, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, checkoutPath, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, readBundleScript, applyTrust, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed,
|
|
34
|
+
import { BUILD_HOME, dataPlaneOf, sandboxCallOf, SandboxError, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, checkoutPath, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, retryAfterMsOf, readBundleScript, applyTrust, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, providerMayAnswerLater, toolProxyEnvironment } from './chunk-PC6BJDBE.js';
|
|
35
35
|
import { agentCredential, managedAgentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, builtInNames, currentAgentCredential, removedAgentCredentialValues, realFdStorePort, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, fdName, RELAY_ID, DOCKER_DESKTOP_REASON } from './chunk-BIXO533I.js';
|
|
36
36
|
import { versionAtLeast } from './chunk-F3J4UKBF.js';
|
|
37
37
|
import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, defaultCommandLine, credentialAgent, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, credentialHandOffKey, strippedVariables, runnerAgents, judgeAgent, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, UNIVERSAL_IMAGE, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE, agentVersionOf } from './chunk-52CTFVXD.js';
|
|
@@ -1413,6 +1413,7 @@ function createMicroVmPorts(over = {}) {
|
|
|
1413
1413
|
var ATTEMPTS = 3;
|
|
1414
1414
|
var RETRY_MS = 1e3;
|
|
1415
1415
|
var READ_TIMEOUT_MS = 1e4;
|
|
1416
|
+
var SAVE_TIMEOUT_MS = 15e4;
|
|
1416
1417
|
function sandboxErrorOf(err, nowMs) {
|
|
1417
1418
|
return new SandboxError(err.message, err.status ?? 0, err.code, err.reason, retryAfterMsOf(err.retryAfter ?? null, nowMs));
|
|
1418
1419
|
}
|
|
@@ -1533,6 +1534,18 @@ function createGatewaySandboxClient(opts) {
|
|
|
1533
1534
|
},
|
|
1534
1535
|
async restartTimeLimit() {
|
|
1535
1536
|
},
|
|
1537
|
+
async saveState(id, key) {
|
|
1538
|
+
const creds = opts.creds(factoryOfSandbox(id));
|
|
1539
|
+
const signer = await signerFor(creds.configPath);
|
|
1540
|
+
let data;
|
|
1541
|
+
try {
|
|
1542
|
+
data = (await postJson(creds.url, `${own(id)}/states`, creds.apiKey, creds.appId, { key }, fetchImpl, SAVE_TIMEOUT_MS, signer)).data;
|
|
1543
|
+
} catch (err) {
|
|
1544
|
+
throw err instanceof WorkCommandError ? sandboxErrorOf(err, Date.now()) : err;
|
|
1545
|
+
}
|
|
1546
|
+
if (typeof data.id !== "string" || typeof data.createdAt !== "string" || !Number.isFinite(Date.parse(data.createdAt))) throw new SandboxError("the gateway's answer names no saved state", 0);
|
|
1547
|
+
return { id: data.id, createdAt: data.createdAt };
|
|
1548
|
+
},
|
|
1536
1549
|
...dataPlaneOf(sandboxCallOf(fetchImpl), (sandbox) => {
|
|
1537
1550
|
const header = headers.get(sandbox.dataPlaneUrl);
|
|
1538
1551
|
if (header === void 0) throw new SandboxError("the gateway named no secret header for this sandbox", 0);
|
|
@@ -3244,6 +3257,7 @@ async function runBuildSteps(input) {
|
|
|
3244
3257
|
log.line(`${tag} this build saves no state: ${notAtHead}`);
|
|
3245
3258
|
} else {
|
|
3246
3259
|
const saved = await setup.saveState();
|
|
3260
|
+
if ("handedOver" in saved) return { ok: false, reason: "", handedOver: true };
|
|
3247
3261
|
if (saved.ok) savedState = true;
|
|
3248
3262
|
else log.line(`${tag} the build's state could not be saved: ${saved.reason}`);
|
|
3249
3263
|
}
|
|
@@ -3808,6 +3822,29 @@ function readRecords(dir) {
|
|
|
3808
3822
|
function deleteRecord(dir, id) {
|
|
3809
3823
|
rmSync(join(dir, `${id}.json`), { force: true });
|
|
3810
3824
|
}
|
|
3825
|
+
var FAILED_SAVES_FILE = "failed-saves";
|
|
3826
|
+
var FAILED_SAVE_PAUSE_MS = 216e5;
|
|
3827
|
+
function readFailedSaves(dir) {
|
|
3828
|
+
try {
|
|
3829
|
+
const parsed = JSON.parse(readFileSync(join(dir, FAILED_SAVES_FILE), "utf8"));
|
|
3830
|
+
const entries = Object.entries(Array.isArray(parsed) ? {} : parsed);
|
|
3831
|
+
return Object.fromEntries(entries.filter((entry) => typeof entry[1] === "string"));
|
|
3832
|
+
} catch {
|
|
3833
|
+
return {};
|
|
3834
|
+
}
|
|
3835
|
+
}
|
|
3836
|
+
function noteFailedSave(dir, key, at) {
|
|
3837
|
+
const kept = Object.entries(readFailedSaves(dir)).filter(([, when]) => at.getTime() - Date.parse(when) < FAILED_SAVE_PAUSE_MS);
|
|
3838
|
+
mkdirSync(dir, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
3839
|
+
const target2 = join(dir, FAILED_SAVES_FILE);
|
|
3840
|
+
writeFileSync(`${target2}.partial`, `${JSON.stringify(Object.fromEntries([...kept, [key, at.toISOString()]]), null, 2)}
|
|
3841
|
+
`, { mode: RUNNER_FILE_MODE });
|
|
3842
|
+
renameSync(`${target2}.partial`, target2);
|
|
3843
|
+
}
|
|
3844
|
+
function recentFailedSaveMs(dir, key, nowMs) {
|
|
3845
|
+
const age = nowMs - Date.parse(readFailedSaves(dir)[key] ?? "");
|
|
3846
|
+
return age >= 0 && age < FAILED_SAVE_PAUSE_MS ? age : void 0;
|
|
3847
|
+
}
|
|
3811
3848
|
|
|
3812
3849
|
// src/runner/saved-state/container.ts
|
|
3813
3850
|
var SAVED_FOLDERS = ["home", "work"];
|
|
@@ -4123,15 +4160,25 @@ async function discardItemDisk(kept, removeVolume, onError, endSandbox) {
|
|
|
4123
4160
|
|
|
4124
4161
|
// src/runner/saved-state/provision.ts
|
|
4125
4162
|
var isRetryFresh = (value) => typeof value === "object" && value !== null && value.retryFresh === true;
|
|
4163
|
+
var isHandedOver = (value) => typeof value === "object" && value !== null && value.handedOver === true;
|
|
4164
|
+
var LATER_ATTEMPT_REASON = "only the first attempt of a job may save a state";
|
|
4126
4165
|
async function provisionWithFreshFallback(input) {
|
|
4166
|
+
const later = (allowRestore, itemDiskFailed) => input.attempt(allowRestore, itemDiskFailed, LATER_ATTEMPT_REASON);
|
|
4127
4167
|
const first = await input.attempt(true);
|
|
4168
|
+
if (isHandedOver(first)) {
|
|
4169
|
+
input.log(first.reason);
|
|
4170
|
+
const second2 = await later(first.saved);
|
|
4171
|
+
if (!isRetryFresh(second2)) return second2;
|
|
4172
|
+
input.log(`${second2.reason}; provisioning the build again from a fresh disk`);
|
|
4173
|
+
return await later(false);
|
|
4174
|
+
}
|
|
4128
4175
|
if (!isRetryFresh(first)) return first;
|
|
4129
4176
|
input.log(`${first.reason}; provisioning the build again from a fresh disk`);
|
|
4130
|
-
if (first.itemDisk === void 0) return await
|
|
4131
|
-
const second = await
|
|
4177
|
+
if (first.itemDisk === void 0) return await later(false);
|
|
4178
|
+
const second = await later(true, first.itemDisk);
|
|
4132
4179
|
if (!isRetryFresh(second)) return second;
|
|
4133
4180
|
input.log(`${second.reason}; provisioning the build again from a fresh disk`);
|
|
4134
|
-
return await
|
|
4181
|
+
return await later(false, first.itemDisk);
|
|
4135
4182
|
}
|
|
4136
4183
|
function keptDiskPlan() {
|
|
4137
4184
|
return { keyCommits: {}, noSave: "it starts from the work item's kept disk" };
|
|
@@ -4162,8 +4209,8 @@ function setupInputFor(input) {
|
|
|
4162
4209
|
...input.fromItemDisk === true ? { fromItemDisk: true } : {},
|
|
4163
4210
|
keyCommits: input.plan.keyCommits,
|
|
4164
4211
|
...input.withoutBuildVariables === true ? { withoutBuildVariables: true } : {},
|
|
4165
|
-
// A plan
|
|
4166
|
-
...input.plan.key === void 0 ? {} : { saveState: input.saveState }
|
|
4212
|
+
// A plan with a key may save a state, unless it names why not. A build that starts from one is not asked to save.
|
|
4213
|
+
...input.plan.key === void 0 || input.plan.noSave !== void 0 ? {} : { saveState: input.saveState }
|
|
4167
4214
|
};
|
|
4168
4215
|
}
|
|
4169
4216
|
async function saveAndPrune(input) {
|
|
@@ -4768,22 +4815,81 @@ function joinRelay(runtime, sandbox, build, services, joinSecret, log) {
|
|
|
4768
4815
|
);
|
|
4769
4816
|
}
|
|
4770
4817
|
var SANDBOX_RUN_DIR = "/tmp/ol-run";
|
|
4771
|
-
async function
|
|
4772
|
-
const sandbox = await sandboxOfBuild(runtime, state);
|
|
4773
|
-
if (sandbox === void 0) throw new Error(`sandbox ${state.sandboxId} is gone`);
|
|
4818
|
+
async function clearSandbox(runtime, sandbox, build) {
|
|
4774
4819
|
const { host } = runtimeInSandbox(runtime, sandbox);
|
|
4775
|
-
const removed = await host.remove(
|
|
4776
|
-
if (removed.status !== 0 && !/no such container/i.test(removed.stderr)) throw new Error(`container ${
|
|
4820
|
+
const removed = await host.remove(build.container);
|
|
4821
|
+
if (removed.status !== 0 && !/no such container/i.test(removed.stderr)) throw new Error(`container ${build.container} was not removed${said(removed.stderr)}`);
|
|
4777
4822
|
const siblings = await client(runtime).command(sandbox, removeBuildContainersLine());
|
|
4778
4823
|
if (siblings.exitCode !== 0) throw new Error(`the containers the build started were not removed (exit ${siblings.exitCode ?? "none"})${said(siblings.stderr)}`);
|
|
4779
|
-
const emptied = await host.run(clearOneBuildArgs({ image:
|
|
4824
|
+
const emptied = await host.run(clearOneBuildArgs({ image: build.imageId, volume: build.volume, runnerId: build.runnerId }));
|
|
4780
4825
|
if (emptied.status !== 0) throw new Error(`the build's command state was not removed from the volume (exit ${emptied.status})${said(emptied.stderr)}`);
|
|
4781
4826
|
const unmounted = await client(runtime).command(sandbox, `if mountpoint -q ${HOST_BUILD_DIR}; then sudo umount ${HOST_BUILD_DIR}; fi`);
|
|
4782
4827
|
if (unmounted.exitCode !== 0) throw new Error(`${HOST_BUILD_DIR} was not unmounted in the sandbox (exit ${unmounted.exitCode ?? "none"})${said(unmounted.stderr)}`);
|
|
4783
4828
|
const cleared = await client(runtime).command(sandbox, `sudo rm -rf ${SANDBOX_DIR} ${OLD_SANDBOX_DIR} ${SANDBOX_RUN_DIR}`);
|
|
4784
4829
|
if (cleared.exitCode !== 0) throw new Error(`the runner's files were not removed from the sandbox (exit ${cleared.exitCode ?? "none"})${said(cleared.stderr)}`);
|
|
4830
|
+
}
|
|
4831
|
+
async function keepSandboxDisk(runtime, state, kept) {
|
|
4832
|
+
const sandbox = await sandboxOfBuild(runtime, state);
|
|
4833
|
+
if (sandbox === void 0) throw new Error(`sandbox ${state.sandboxId} is gone`);
|
|
4834
|
+
await clearSandbox(runtime, sandbox, kept);
|
|
4785
4835
|
await kept.keep();
|
|
4786
4836
|
}
|
|
4837
|
+
function saveFailureReason(err) {
|
|
4838
|
+
if (!(err instanceof SandboxError)) return describeCallFailure(err);
|
|
4839
|
+
if (err.code === "sandbox_state_limit") return "the factory has as many saved states as it may (sandbox_state_limit)";
|
|
4840
|
+
if (err.status === 0) return `the gateway did not answer the save in ${SAVE_TIMEOUT_MS / 1e3} seconds: ${err.message}`;
|
|
4841
|
+
return `the gateway refused the save: ${describeSandboxError(err)}`;
|
|
4842
|
+
}
|
|
4843
|
+
function sandboxStateKey(runnerId, key) {
|
|
4844
|
+
return `${runnerId}/${key.baseKey}`;
|
|
4845
|
+
}
|
|
4846
|
+
async function saveSandboxState(input) {
|
|
4847
|
+
const { runtime, sandbox, key, dir } = input;
|
|
4848
|
+
if (input.aborted()) return void 0;
|
|
4849
|
+
const failed2 = (reason) => {
|
|
4850
|
+
noteFailedSave(dir, key.key, input.now());
|
|
4851
|
+
return { saved: false, reason };
|
|
4852
|
+
};
|
|
4853
|
+
await leaveRelay(runtime, input.buildId);
|
|
4854
|
+
try {
|
|
4855
|
+
await clearSandbox(runtime, sandbox, input.build);
|
|
4856
|
+
} catch (err) {
|
|
4857
|
+
return failed2(`the sandbox could not be cleared for the save: ${describeCallFailure(err)}`);
|
|
4858
|
+
}
|
|
4859
|
+
if (input.aborted()) return void 0;
|
|
4860
|
+
const sandboxClient = client(runtime);
|
|
4861
|
+
if (sandboxClient.saveState === void 0) return failed2("the sandbox provider saves no state");
|
|
4862
|
+
let state;
|
|
4863
|
+
try {
|
|
4864
|
+
state = await sandboxClient.saveState(sandbox.id, sandboxStateKey(input.build.runnerId, key));
|
|
4865
|
+
} catch (err) {
|
|
4866
|
+
return failed2(saveFailureReason(err));
|
|
4867
|
+
}
|
|
4868
|
+
if (input.aborted()) return void 0;
|
|
4869
|
+
const record = {
|
|
4870
|
+
id: state.id,
|
|
4871
|
+
kind: "sandbox",
|
|
4872
|
+
volume: input.build.volume,
|
|
4873
|
+
savedAt: state.createdAt,
|
|
4874
|
+
bytes: 0,
|
|
4875
|
+
baseKey: key.baseKey,
|
|
4876
|
+
key: key.key,
|
|
4877
|
+
fileHashes: key.fileHashes,
|
|
4878
|
+
// A record is written as JSON, which leaves out an id the probe did not give.
|
|
4879
|
+
agentUid: input.agentUid,
|
|
4880
|
+
complete: true
|
|
4881
|
+
};
|
|
4882
|
+
await saveAndPrune({
|
|
4883
|
+
save: async () => {
|
|
4884
|
+
writeRecord2(dir, record);
|
|
4885
|
+
return { ok: true, record };
|
|
4886
|
+
},
|
|
4887
|
+
dir,
|
|
4888
|
+
removeVolume: async () => void 0,
|
|
4889
|
+
log: input.log
|
|
4890
|
+
});
|
|
4891
|
+
return { saved: true, id: state.id };
|
|
4892
|
+
}
|
|
4787
4893
|
async function cleanupSandbox(runtime, state, keepDisk) {
|
|
4788
4894
|
const failures = [];
|
|
4789
4895
|
let kept = false;
|
|
@@ -4941,11 +5047,18 @@ function clockStep(probe, nowMs) {
|
|
|
4941
5047
|
async function provisionSandbox(input) {
|
|
4942
5048
|
const tag = itemTag({ item: input.item.number, organizationId: input.organizationId, claimId: input.claimId });
|
|
4943
5049
|
return provisionWithFreshFallback({
|
|
4944
|
-
attempt: (allowRestore, itemDiskFailed) => provisionSandboxOnce(input, allowRestore, itemDiskFailed),
|
|
5050
|
+
attempt: (allowRestore, itemDiskFailed, noSave) => provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave),
|
|
4945
5051
|
log: (line2) => input.log.line(`${tag} ${line2}`)
|
|
4946
5052
|
});
|
|
4947
5053
|
}
|
|
4948
|
-
|
|
5054
|
+
function holdBackSave(plan, noSave) {
|
|
5055
|
+
if (noSave === void 0 || plan.key === void 0 || plan.noSave !== void 0) return { plan };
|
|
5056
|
+
return { plan: { ...plan, noSave }, ...plan.restore === void 0 ? { line: `this build saves no state: ${noSave}` } : {} };
|
|
5057
|
+
}
|
|
5058
|
+
function failedSaveReason(ageMs) {
|
|
5059
|
+
return `a save of its key failed ${formatDuration(ageMs)} ago, and the runner asks for none for ${formatDuration(FAILED_SAVE_PAUSE_MS)} after a failed save`;
|
|
5060
|
+
}
|
|
5061
|
+
async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave) {
|
|
4949
5062
|
const { config, runtime, item, itemKey, jobDir, log, tokens } = input;
|
|
4950
5063
|
const tag = itemTag({ item: item.number, organizationId: input.organizationId, claimId: input.claimId });
|
|
4951
5064
|
const logPath = join(jobDir, "provision.log");
|
|
@@ -5011,6 +5124,11 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed) {
|
|
|
5011
5124
|
allowRestore,
|
|
5012
5125
|
log: tagged
|
|
5013
5126
|
});
|
|
5127
|
+
const statesDir = savedStatesDir(runnerDir(config.configPath));
|
|
5128
|
+
const failedAgo = plan.key === void 0 ? void 0 : recentFailedSaveMs(statesDir, plan.key.key, clockOf(input.now)().getTime());
|
|
5129
|
+
const heldBack = holdBackSave(plan, noSave ?? (failedAgo === void 0 ? void 0 : failedSaveReason(failedAgo)));
|
|
5130
|
+
plan = heldBack.plan;
|
|
5131
|
+
if (heldBack.line !== void 0) tagged(heldBack.line);
|
|
5014
5132
|
let fromState = plan.restore?.record;
|
|
5015
5133
|
const buildId = randomBytes(6).toString("hex");
|
|
5016
5134
|
const runnerId = runnerLabelValue(config.configPath);
|
|
@@ -5035,7 +5153,7 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed) {
|
|
|
5035
5153
|
};
|
|
5036
5154
|
const state = { sandboxId: "", name, dataPlaneUrl: "", buildId, diskKey, container: containerState };
|
|
5037
5155
|
const secrets = secretsOf(runtime, jobDir);
|
|
5038
|
-
const
|
|
5156
|
+
const envInput = {
|
|
5039
5157
|
config,
|
|
5040
5158
|
item: item.number,
|
|
5041
5159
|
...input.queue === "run" ? { run: true } : {},
|
|
@@ -5048,7 +5166,9 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed) {
|
|
|
5048
5166
|
containerEnv: apply.containerEnv,
|
|
5049
5167
|
builtIns: true,
|
|
5050
5168
|
factoryVariables: factoryVariablesOf(config, jobDir)
|
|
5051
|
-
}
|
|
5169
|
+
};
|
|
5170
|
+
const env = buildEnvironment(envInput);
|
|
5171
|
+
const stepEnv = managed ? buildEnvironment({ ...envInput, factoryVariables: [] }) : env;
|
|
5052
5172
|
if (env.skippedTokenVariables.length > 0) {
|
|
5053
5173
|
log.line(`${tag} not passing ${env.skippedTokenVariables.join(", ")} from runner.build.variables into the build: its repository token comes from the runner`);
|
|
5054
5174
|
}
|
|
@@ -5321,28 +5441,57 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed) {
|
|
|
5321
5441
|
joinRelay(runtime, sandbox, { buildId, container }, services.streams, joinSecret, (line2) => log.line(`${tag} ${line2}`));
|
|
5322
5442
|
if (input.aborted()) return bail("", true);
|
|
5323
5443
|
if (!await waitForRelay(sandboxed, container)) return end("the relay in the build's container did not start");
|
|
5324
|
-
const
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5444
|
+
const deliverGh = async (delivered) => {
|
|
5445
|
+
const ghDelivered = await deliverJobFiles(sandboxed, containerState, ["gh"], secrets);
|
|
5446
|
+
if (!ghDelivered.ok) return ghDelivered;
|
|
5447
|
+
keepGhConfigCurrent(tokens, buildDir2, (err) => log.error(`${tag} the read token could not be written for gh: ${describeCallFailure(err)}`), {
|
|
5448
|
+
runtime: sandboxed,
|
|
5449
|
+
state: containerState,
|
|
5450
|
+
secrets,
|
|
5451
|
+
delivered,
|
|
5452
|
+
onFailure: (reason) => log.error(`${tag} ${reason}`)
|
|
5453
|
+
});
|
|
5454
|
+
return { ok: true };
|
|
5455
|
+
};
|
|
5456
|
+
const deliverHeldGh = async () => deliverGh(await tokens.token("read").catch(() => void 0));
|
|
5457
|
+
if (!managed) {
|
|
5458
|
+
const ghDelivered = await deliverGh(readToken);
|
|
5459
|
+
if (!ghDelivered.ok) return end(ghDelivered.reason);
|
|
5460
|
+
}
|
|
5333
5461
|
const tools = await host.exec({ container, user: ADDED_USER, env: NO_ENV, argv: ["cat", "/opt/outerlayer/tools.json"] });
|
|
5334
5462
|
const agentVersion = agentVersionOf(tools.status === 0 ? tools.stdout : "", runtime.agents, input.job);
|
|
5335
5463
|
environment.agentVersion = agentVersion;
|
|
5336
5464
|
const judgeProgram = await judgeProgramRecord((argv) => host.exec({ container, user: ADDED_USER, env: NO_ENV, argv }), runtime.agents);
|
|
5337
5465
|
if (judgeProgram !== void 0) containerState.judgeProgram = judgeProgram;
|
|
5338
5466
|
input.save(state, environment);
|
|
5339
|
-
if (input.queue === "review")
|
|
5467
|
+
if (input.queue === "review") {
|
|
5468
|
+
const ghDelivered = managed ? await deliverHeldGh() : { ok: true };
|
|
5469
|
+
if (!ghDelivered.ok) return end(ghDelivered.reason);
|
|
5470
|
+
return { ok: true, workdir: CHECKOUT_DIR, state, environment };
|
|
5471
|
+
}
|
|
5340
5472
|
const stepExec = async (argv, workdir, opts) => {
|
|
5341
|
-
const ran = await host.exec({ container, user: agentUser, workdir, env: withMiseVariables(
|
|
5473
|
+
const ran = await host.exec({ container, user: agentUser, workdir, env: withMiseVariables(stepEnv, opts?.variables), argv }, { ...opts?.quiet === true ? {} : { logPath }, ...opts?.timeoutMs === void 0 ? {} : { timeoutMs: opts.timeoutMs } });
|
|
5342
5474
|
return endedAtLimit(ran) ? { ...ran, timedOut: true } : ran;
|
|
5343
5475
|
};
|
|
5344
5476
|
const setupMinutes = config.build?.setupMinutes ?? DEFAULT_SETUP_MINUTES;
|
|
5345
5477
|
let setupPassed = false;
|
|
5478
|
+
let saved;
|
|
5479
|
+
const saveState = async () => {
|
|
5480
|
+
const probe = await host.run(identityRunArgs({ ...runInput, user: ADDED_USER }, agentUser), { logPath });
|
|
5481
|
+
saved = await saveSandboxState({
|
|
5482
|
+
runtime,
|
|
5483
|
+
sandbox,
|
|
5484
|
+
buildId,
|
|
5485
|
+
build: { container, volume: volumeName, imageId: image, runnerId },
|
|
5486
|
+
key: plan.key,
|
|
5487
|
+
agentUid: probe.status === 0 ? parseIdentity(probe.stdout)?.uid ?? void 0 : void 0,
|
|
5488
|
+
dir: statesDir,
|
|
5489
|
+
now: clockOf(input.now),
|
|
5490
|
+
aborted: input.aborted,
|
|
5491
|
+
log: tagged
|
|
5492
|
+
});
|
|
5493
|
+
return { handedOver: true };
|
|
5494
|
+
};
|
|
5346
5495
|
const steps = await runBuildSteps({
|
|
5347
5496
|
repository,
|
|
5348
5497
|
branch: primary.branch,
|
|
@@ -5380,13 +5529,23 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed) {
|
|
|
5380
5529
|
...runtimeStepInput({ base: {} }, services),
|
|
5381
5530
|
// A kept disk or a saved state holds the checkouts already: each is switched to the branch. A kept disk keeps its
|
|
5382
5531
|
// untracked files. A saved state is not the work item's disk, so its untracked files go and its ignored ones stay.
|
|
5383
|
-
setup: setupInputFor({ setupMinutes, plan, saveState: void 0, fromItemDisk: keptDisk !== void 0 }),
|
|
5384
|
-
// From here on a failure is the build's own, not the saved state's.
|
|
5532
|
+
setup: setupInputFor({ setupMinutes, plan, saveState: managed ? saveState : void 0, withoutBuildVariables: managed, fromItemDisk: keptDisk !== void 0 }),
|
|
5533
|
+
// From here on a failure is the build's own, not the saved state's. The gh login is written only now.
|
|
5385
5534
|
afterSave: async () => {
|
|
5386
5535
|
setupPassed = true;
|
|
5387
|
-
return { ok: true };
|
|
5536
|
+
return managed ? deliverHeldGh() : { ok: true };
|
|
5388
5537
|
}
|
|
5389
5538
|
});
|
|
5539
|
+
if (!steps.ok && steps.handedOver === true) {
|
|
5540
|
+
if (input.aborted()) return bail("", true);
|
|
5541
|
+
const result = saved;
|
|
5542
|
+
try {
|
|
5543
|
+
await cleanupSandbox(runtime, { buildId, sandboxId: state.sandboxId, container: containerState });
|
|
5544
|
+
} catch (err) {
|
|
5545
|
+
log.error(`${tag} the sandbox could not be ended after the save: ${describeCallFailure(err)}`);
|
|
5546
|
+
}
|
|
5547
|
+
return result.saved ? { handedOver: true, saved: true, reason: `saved state ${result.id}; provisioning the build again from it` } : { handedOver: true, saved: false, reason: `no state was saved: ${result.reason}; provisioning the build again from the base snapshot` };
|
|
5548
|
+
}
|
|
5390
5549
|
if (!steps.ok) {
|
|
5391
5550
|
if (fromState !== void 0 && !setupPassed && steps.aborted !== true) return giveUpState(fromState, steps.reason);
|
|
5392
5551
|
return settleFailedSteps(steps, { giveUp: (reason) => giveUpItemDisk(reason, "checkout_not_switched"), bail });
|
|
@@ -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-K7RHVH7G.js';
|
|
4
4
|
import { UNIT_MARKER } from './chunk-XVE7HD6X.js';
|
|
5
5
|
import { runnerDir } from './chunk-WHIAOWEN.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 { stripTerminalControls } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-K7RHVH7G.js';
|
|
4
4
|
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-SS3SQYDS.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 { summarizeChecks, summaryText, renderDoctorText } from './chunk-
|
|
3
|
+
import { summarizeChecks, summaryText, renderDoctorText } from './chunk-3QNW4M64.js';
|
|
4
4
|
import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-4KCWAP5L.js';
|
|
5
5
|
import { runConnect, hasUncommittedPolicy, commitCommandsFor } from './chunk-7CK4Z6VC.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-AAGXH2FR.js';
|
|
4
4
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
5
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
6
|
-
import { renderUpdateSteps } from './chunk-
|
|
5
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-AQS3AG4T.js';
|
|
6
|
+
import { renderUpdateSteps } from './chunk-LX4GPGNE.js';
|
|
7
7
|
import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
|
|
8
8
|
import { writeFleetState } from './chunk-UAGUV74T.js';
|
|
9
9
|
import { writePendingUpdate } from './chunk-VEW4BPVJ.js';
|
|
10
|
-
import { fleetConfigProblem, realBlockedProbes, checkBlockedWithSlots, askFleetMachine } from './chunk-
|
|
10
|
+
import { fleetConfigProblem, realBlockedProbes, checkBlockedWithSlots, askFleetMachine } from './chunk-3RSCWOYQ.js';
|
|
11
11
|
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-TPLMLNME.js';
|
|
12
|
-
import { leaseTimeLeftMs, createContainerRuntime, heldSandboxClaimsOf, unfinishedJobs, 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, withJobTimeLimit, 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, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, 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, holdsHostDisk, removeOldestUntil, treeFileText, scrubReason, timeoutAfter, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-
|
|
12
|
+
import { leaseTimeLeftMs, createContainerRuntime, heldSandboxClaimsOf, unfinishedJobs, 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, withJobTimeLimit, 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, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, 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, holdsHostDisk, removeOldestUntil, treeFileText, scrubReason, timeoutAfter, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-K7RHVH7G.js';
|
|
13
13
|
import { RUNNER_PROTOCOL } from './chunk-HHOFP647.js';
|
|
14
14
|
import { criteriaOf, diffLines, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, parseJudgeAnswer, wholeEntries, treePath, lineInDiff } from './chunk-FBFYIEHC.js';
|
|
15
15
|
import { RepoFilter } from './chunk-FUNAQRMN.js';
|
|
@@ -5178,7 +5178,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
5178
5178
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
5179
5179
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
5180
5180
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
5181
|
-
return (await import('./check-
|
|
5181
|
+
return (await import('./check-Y5CTVK5F.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
5182
5182
|
},
|
|
5183
5183
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
5184
5184
|
log
|
|
@@ -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-3QNW4M64.js';
|
|
4
4
|
import './chunk-KPCGSGZS.js';
|
|
5
5
|
import { verifiedTrackerNames, TRACKERS } from './chunk-KZEZBZ4W.js';
|
|
6
6
|
import './chunk-V65YF5VP.js';
|
|
@@ -3958,13 +3958,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3958
3958
|
if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
|
|
3959
3959
|
`);
|
|
3960
3960
|
}
|
|
3961
|
-
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-
|
|
3961
|
+
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-ZEM335MG.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
|
|
3962
3962
|
if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
|
|
3963
3963
|
else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
|
|
3964
3964
|
return;
|
|
3965
3965
|
}
|
|
3966
3966
|
await installMachineSkillsForSetup();
|
|
3967
|
-
const { runInitCommand } = await import('./init-cmd-
|
|
3967
|
+
const { runInitCommand } = await import('./init-cmd-ZEM335MG.js');
|
|
3968
3968
|
const code = await runInitCommand(
|
|
3969
3969
|
{ json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
|
|
3970
3970
|
{
|
|
@@ -4022,7 +4022,7 @@ not have, and prints the commit commands instead.
|
|
|
4022
4022
|
`
|
|
4023
4023
|
).action(async (opts) => {
|
|
4024
4024
|
const { runSetupCommand } = await import('./setup-cmd-6BBZWFJX.js');
|
|
4025
|
-
const { realSetupDeps } = await import('./setup-wiring-
|
|
4025
|
+
const { realSetupDeps } = await import('./setup-wiring-M3NSQHVV.js');
|
|
4026
4026
|
const cliBin = resolveCliBin();
|
|
4027
4027
|
const agentWords = runnerHelpWords();
|
|
4028
4028
|
const code = await runSetupCommand(
|
|
@@ -5294,7 +5294,7 @@ a runner build, no row is failed.
|
|
|
5294
5294
|
fail(trackerNumberError("--pr", opts.pr));
|
|
5295
5295
|
return;
|
|
5296
5296
|
}
|
|
5297
|
-
const { runWorkProofsCommand } = await import('./work-proofs-cmd-
|
|
5297
|
+
const { runWorkProofsCommand } = await import('./work-proofs-cmd-SM2GQTEF.js');
|
|
5298
5298
|
await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
|
|
5299
5299
|
});
|
|
5300
5300
|
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) => {
|
|
@@ -5517,7 +5517,7 @@ function registerRunnerCommands(program2) {
|
|
|
5517
5517
|
const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
|
|
5518
5518
|
runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
|
|
5519
5519
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-OJTLS62B.js');
|
|
5520
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5520
|
+
const { start, RunnerStartError } = await import('./loop-OY7YZMHJ.js');
|
|
5521
5521
|
const { RunnerAlreadyRunningError } = await import('./pidfile-2TYTTJAD.js');
|
|
5522
5522
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5523
5523
|
try {
|
|
@@ -5541,8 +5541,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5541
5541
|
`
|
|
5542
5542
|
).action(async () => {
|
|
5543
5543
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-OJTLS62B.js');
|
|
5544
|
-
const { containerStart, containerStartExit } = await import('./container-start-
|
|
5545
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5544
|
+
const { containerStart, containerStartExit } = await import('./container-start-NRCXZWBS.js');
|
|
5545
|
+
const { start, RunnerStartError } = await import('./loop-OY7YZMHJ.js');
|
|
5546
5546
|
const { RunnerAlreadyRunningError } = await import('./pidfile-2TYTTJAD.js');
|
|
5547
5547
|
try {
|
|
5548
5548
|
const outcome = containerStartExit(await containerStart({
|
|
@@ -5566,14 +5566,14 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5566
5566
|
).action(async (opts) => {
|
|
5567
5567
|
const { defaultRunnerConfigPath } = await import('./config-OJTLS62B.js');
|
|
5568
5568
|
const { runnerDir } = await import('./paths-KPYCKVEO.js');
|
|
5569
|
-
const { runUpdateSteps } = await import('./update-steps-
|
|
5569
|
+
const { runUpdateSteps } = await import('./update-steps-CF2EKH43.js');
|
|
5570
5570
|
const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
|
|
5571
5571
|
process.stdout.write(`${text}
|
|
5572
5572
|
`);
|
|
5573
5573
|
});
|
|
5574
5574
|
runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
|
|
5575
5575
|
const { defaultRunnerConfigPath } = await import('./config-OJTLS62B.js');
|
|
5576
|
-
const { runRunnerCheck } = await import('./check-
|
|
5576
|
+
const { runRunnerCheck } = await import('./check-Y5CTVK5F.js');
|
|
5577
5577
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5578
5578
|
const result = await runRunnerCheck(configPath);
|
|
5579
5579
|
if (!result.ok) {
|
|
@@ -5607,13 +5607,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5607
5607
|
}
|
|
5608
5608
|
}
|
|
5609
5609
|
const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
|
|
5610
|
-
if (buildCpusMax !== void 0 && !(await import('./command-
|
|
5610
|
+
if (buildCpusMax !== void 0 && !(await import('./command-NBKHR4MM.js')).cpusAreValid(buildCpusMax)) {
|
|
5611
5611
|
fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
|
|
5612
5612
|
return;
|
|
5613
5613
|
}
|
|
5614
5614
|
try {
|
|
5615
5615
|
if (opts.service === true) {
|
|
5616
|
-
const { installServiceCommand, serviceSuccessText } = await import('./command-
|
|
5616
|
+
const { installServiceCommand, serviceSuccessText } = await import('./command-NBKHR4MM.js');
|
|
5617
5617
|
const result2 = await installServiceCommand({
|
|
5618
5618
|
configPath,
|
|
5619
5619
|
print: opts.print,
|
|
@@ -5668,7 +5668,7 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
|
|
|
5668
5668
|
return;
|
|
5669
5669
|
}
|
|
5670
5670
|
const { defaultRunnerConfigPath } = await import('./config-OJTLS62B.js');
|
|
5671
|
-
const { uninstallServiceCommand } = await import('./command-
|
|
5671
|
+
const { uninstallServiceCommand } = await import('./command-NBKHR4MM.js');
|
|
5672
5672
|
const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
|
|
5673
5673
|
if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
|
|
5674
5674
|
`);
|
|
@@ -5699,11 +5699,11 @@ already in ${words().envFile} is used.
|
|
|
5699
5699
|
`
|
|
5700
5700
|
).action(async (opts) => {
|
|
5701
5701
|
const { defaultRunnerConfigPath, loadRunnerConfig, RunnerConfigError } = await import('./config-OJTLS62B.js');
|
|
5702
|
-
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit, removeRunnerBlock, nativeWindowsSandboxRefusal } = await import('./init-
|
|
5703
|
-
const { askManagedSandboxes } = await import('./check-
|
|
5704
|
-
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-
|
|
5705
|
-
const { detectMachine } = await import('./machine-
|
|
5706
|
-
const { chooseVm, runVmInit, VmInitError } = await import('./init-
|
|
5702
|
+
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit, removeRunnerBlock, nativeWindowsSandboxRefusal } = await import('./init-ILAIAVL7.js');
|
|
5703
|
+
const { askManagedSandboxes } = await import('./check-Y5CTVK5F.js');
|
|
5704
|
+
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-DQG25VKO.js');
|
|
5705
|
+
const { detectMachine } = await import('./machine-HJUWRAJ4.js');
|
|
5706
|
+
const { chooseVm, runVmInit, VmInitError } = await import('./init-6KSNBYRM.js');
|
|
5707
5707
|
const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-7AZQ443N.js');
|
|
5708
5708
|
const { headlessNames: headlessNames2 } = await import('./runner-agents-RKBGYF6D.js');
|
|
5709
5709
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
@@ -5729,7 +5729,7 @@ already in ${words().envFile} is used.
|
|
|
5729
5729
|
return;
|
|
5730
5730
|
}
|
|
5731
5731
|
try {
|
|
5732
|
-
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-
|
|
5732
|
+
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-D7K7PKUI.js');
|
|
5733
5733
|
agent = await initAgent({
|
|
5734
5734
|
flag: agent,
|
|
5735
5735
|
handOff: opts.configStdin === true,
|
|
@@ -5887,7 +5887,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
|
|
|
5887
5887
|
let serviceUp = false;
|
|
5888
5888
|
let restart;
|
|
5889
5889
|
if (installedLayout) {
|
|
5890
|
-
const { installServiceCommand } = await import('./command-
|
|
5890
|
+
const { installServiceCommand } = await import('./command-NBKHR4MM.js');
|
|
5891
5891
|
const service = await installServiceCommand({
|
|
5892
5892
|
configPath,
|
|
5893
5893
|
entryPath: process.argv[1] ?? "",
|
|
@@ -6027,7 +6027,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
6027
6027
|
});
|
|
6028
6028
|
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) => {
|
|
6029
6029
|
const { defaultRunnerConfigPath } = await import('./config-OJTLS62B.js');
|
|
6030
|
-
const { requestStop } = await import('./loop-
|
|
6030
|
+
const { requestStop } = await import('./loop-OY7YZMHJ.js');
|
|
6031
6031
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
6032
6032
|
const { runnerImageVersion } = await import('./image-tag-DJ2DYY75.js');
|
|
6033
6033
|
await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
|
|
@@ -6035,8 +6035,8 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
6035
6035
|
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) => {
|
|
6036
6036
|
const { builtinKind, defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-OJTLS62B.js');
|
|
6037
6037
|
const { jobsDir, runnerDir } = await import('./paths-KPYCKVEO.js');
|
|
6038
|
-
const { listJobFiles, runnerProcessState } = await import('./loop-
|
|
6039
|
-
const { renderStatus } = await import('./status-
|
|
6038
|
+
const { listJobFiles, runnerProcessState } = await import('./loop-OY7YZMHJ.js');
|
|
6039
|
+
const { renderStatus } = await import('./status-HSUAGN6D.js');
|
|
6040
6040
|
const { readHousekeepingRecord } = await import('./record-SXQN3F2G.js');
|
|
6041
6041
|
const path2 = await import('path');
|
|
6042
6042
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
@@ -6109,7 +6109,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
6109
6109
|
});
|
|
6110
6110
|
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) => {
|
|
6111
6111
|
const { defaultRunnerConfigPath } = await import('./config-OJTLS62B.js');
|
|
6112
|
-
const { listJobFiles } = await import('./loop-
|
|
6112
|
+
const { listJobFiles } = await import('./loop-OY7YZMHJ.js');
|
|
6113
6113
|
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-IGY3Z45I.js');
|
|
6114
6114
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
6115
6115
|
const jobs = listJobFiles(configPath);
|
|
@@ -4,10 +4,10 @@ import { realLaunchAgentHost } from './chunk-3FCYURWW.js';
|
|
|
4
4
|
import { realOwnership, accountNamed, handOver, runRunnerInstall, launcherSummary, restartNote, accountIdentity } from './chunk-MN73QQDA.js';
|
|
5
5
|
import { installSandboxAgent, uninstallSandboxAgent } from './chunk-CZYUSXAR.js';
|
|
6
6
|
import './chunk-TXKHD4Q6.js';
|
|
7
|
-
import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-
|
|
7
|
+
import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-L4T6CI57.js';
|
|
8
8
|
import './chunk-D3PPI7I4.js';
|
|
9
9
|
import { currentLink, execStartCommand } from './chunk-TPLMLNME.js';
|
|
10
|
-
import { detectMachine, ensureFirecrackerAndJailer } from './chunk-
|
|
10
|
+
import { detectMachine, ensureFirecrackerAndJailer } from './chunk-K7RHVH7G.js';
|
|
11
11
|
import './chunk-HHOFP647.js';
|
|
12
12
|
import './chunk-FBFYIEHC.js';
|
|
13
13
|
import './chunk-I3LTIAOR.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-AQS3AG4T.js';
|
|
4
|
+
import { readOwnContainer } from './chunk-LX4GPGNE.js';
|
|
5
|
+
import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-K7RHVH7G.js';
|
|
6
6
|
import './chunk-HHOFP647.js';
|
|
7
7
|
import './chunk-FBFYIEHC.js';
|
|
8
8
|
import './chunk-I3LTIAOR.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperBinaryFor } from './chunk-
|
|
4
|
-
import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-
|
|
3
|
+
import { helperBinaryFor } from './chunk-L4T6CI57.js';
|
|
4
|
+
import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-3RSCWOYQ.js';
|
|
5
5
|
import { launcherCheck } from './chunk-D3PPI7I4.js';
|
|
6
6
|
import './chunk-TPLMLNME.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-K7RHVH7G.js';
|
|
8
8
|
import './chunk-HHOFP647.js';
|
|
9
9
|
import './chunk-FBFYIEHC.js';
|
|
10
10
|
import './chunk-I3LTIAOR.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { MAX_CHECK_ITEMS_BYTES, builtOf, checksIn, commandItems, isJudgeCheck, makeRecorder, readDefinitions, runHostChecks, testProofIn, timeoutAfter } from './chunk-
|
|
3
|
+
export { MAX_CHECK_ITEMS_BYTES, builtOf, checksIn, commandItems, isJudgeCheck, makeRecorder, readDefinitions, runHostChecks, testProofIn, timeoutAfter } from './chunk-K7RHVH7G.js';
|
|
4
4
|
import './chunk-HHOFP647.js';
|
|
5
5
|
import './chunk-FBFYIEHC.js';
|
|
6
6
|
import './chunk-I3LTIAOR.js';
|
package/dist/index.js
CHANGED
|
@@ -25,5 +25,5 @@ var { runSubcommand } = await import('./agent-subcommand-64YO6FE4.js');
|
|
|
25
25
|
var launcherCode = await runSubcommand(argv);
|
|
26
26
|
if (launcherCode !== void 0) process.exit(launcherCode);
|
|
27
27
|
(await import('./hook-fast-3EMC5BR5.js')).recordLinkExitFailure(argv);
|
|
28
|
-
var { runCli } = await import('./cli-
|
|
28
|
+
var { runCli } = await import('./cli-YSZ2PWXK.js');
|
|
29
29
|
await runCli(process.argv);
|
|
@@ -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-K7RHVH7G.js';
|
|
5
5
|
import './chunk-HHOFP647.js';
|
|
6
6
|
import './chunk-FBFYIEHC.js';
|
|
7
7
|
import './chunk-I3LTIAOR.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, nativeWindowsSandboxRefusal, prepareRunnerInit, readConfigObject, removeRunnerBlock, runRunnerInit, writeRunnerInit } from './chunk-
|
|
3
|
+
export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, nativeWindowsSandboxRefusal, prepareRunnerInit, readConfigObject, removeRunnerBlock, runRunnerInit, writeRunnerInit } from './chunk-K7RHVH7G.js';
|
|
4
4
|
import './chunk-HHOFP647.js';
|
|
5
5
|
import './chunk-FBFYIEHC.js';
|
|
6
6
|
import './chunk-I3LTIAOR.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-K7RHVH7G.js';
|
|
4
4
|
import './chunk-HHOFP647.js';
|
|
5
5
|
import './chunk-FBFYIEHC.js';
|
|
6
6
|
import './chunk-I3LTIAOR.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { applyShellFunctionFlag, runInitCommand } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { applyShellFunctionFlag, runInitCommand } from './chunk-O6YRZ4CP.js';
|
|
4
|
+
import './chunk-3QNW4M64.js';
|
|
5
5
|
import './chunk-4KCWAP5L.js';
|
|
6
6
|
import './chunk-KPCGSGZS.js';
|
|
7
7
|
import './chunk-KZEZBZ4W.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-QYJYYF3J.js';
|
|
4
4
|
import './chunk-AAGXH2FR.js';
|
|
5
5
|
import './chunk-E7R2GIAW.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-AQS3AG4T.js';
|
|
7
|
+
import './chunk-LX4GPGNE.js';
|
|
8
8
|
import './chunk-TXKHD4Q6.js';
|
|
9
9
|
import './chunk-UAGUV74T.js';
|
|
10
10
|
import './chunk-VEW4BPVJ.js';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-3RSCWOYQ.js';
|
|
12
12
|
import './chunk-TPLMLNME.js';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-K7RHVH7G.js';
|
|
14
14
|
import './chunk-HHOFP647.js';
|
|
15
15
|
import './chunk-FBFYIEHC.js';
|
|
16
16
|
import './chunk-I3LTIAOR.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-K7RHVH7G.js';
|
|
4
4
|
import './chunk-HHOFP647.js';
|
|
5
5
|
import './chunk-FBFYIEHC.js';
|
|
6
6
|
import './chunk-I3LTIAOR.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-K7RHVH7G.js';
|
|
4
4
|
import './chunk-HHOFP647.js';
|
|
5
5
|
import './chunk-FBFYIEHC.js';
|
|
6
6
|
import './chunk-I3LTIAOR.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runInitCommand } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { runInitCommand } from './chunk-O6YRZ4CP.js';
|
|
4
|
+
import './chunk-3QNW4M64.js';
|
|
5
5
|
import './chunk-4KCWAP5L.js';
|
|
6
6
|
import { currentBranch, openSetupPullRequest, setupPullRequestUrl, setupBranchPushed, setupMerged, setupBaseBranch, markSetupInstalled, setupInstalled } from './chunk-J4EPJMU6.js';
|
|
7
|
-
import { detectMachine, supportsMicroVmBuilds, supportsContainerBuilds, reachDockerStep, describeMachineDocker } from './chunk-
|
|
7
|
+
import { detectMachine, supportsMicroVmBuilds, supportsContainerBuilds, reachDockerStep, describeMachineDocker } from './chunk-K7RHVH7G.js';
|
|
8
8
|
import './chunk-HHOFP647.js';
|
|
9
9
|
import './chunk-FBFYIEHC.js';
|
|
10
10
|
import './chunk-I3LTIAOR.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-K7RHVH7G.js';
|
|
4
4
|
import './chunk-HHOFP647.js';
|
|
5
5
|
import './chunk-FBFYIEHC.js';
|
|
6
6
|
import './chunk-I3LTIAOR.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-LX4GPGNE.js';
|
|
4
|
+
import './chunk-K7RHVH7G.js';
|
|
5
5
|
import './chunk-HHOFP647.js';
|
|
6
6
|
import './chunk-FBFYIEHC.js';
|
|
7
7
|
import './chunk-I3LTIAOR.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-2AEXGFFJ.js';
|
|
4
4
|
import './chunk-FBFYIEHC.js';
|
|
5
5
|
import './chunk-KZEZBZ4W.js';
|
|
6
6
|
import './chunk-V65YF5VP.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, testProofMode, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, renderProofRow, proofsCommentBody } from './chunk-
|
|
3
|
+
import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, testProofMode, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, renderProofRow, proofsCommentBody } from './chunk-2AEXGFFJ.js';
|
|
4
4
|
import { runWorkComment } from './chunk-IXHMDBXY.js';
|
|
5
5
|
import { runEmitDemo, planScreenshots, chapterPassed, readStill } from './chunk-CKS7B2ZJ.js';
|
|
6
6
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outerlayer/cli",
|
|
3
|
-
"version": "0.40.0-next.
|
|
3
|
+
"version": "0.40.0-next.20261117055025",
|
|
4
4
|
"description": "OuterLayer CLI — commands: setup, init, claude, opencode, codex, 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.",
|