@outerlayer/cli 0.40.0-next.20261117043041 → 0.40.0-next.20261117061535
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-MT72TGW6.js} +5 -5
- package/dist/{chunk-RZSGNO7S.js → chunk-GBZA57ZZ.js} +310 -37
- package/dist/{chunk-O2JKZTP3.js → chunk-GU7QECTA.js} +1 -1
- package/dist/{chunk-ULI64TQ5.js → chunk-LSSTRAIO.js} +1 -1
- package/dist/{chunk-LDTLGJ5F.js → chunk-OSVM5NHT.js} +5 -5
- package/dist/{chunk-BVKLR7GA.js → chunk-OUGHUEV7.js} +1 -1
- package/dist/{chunk-SLZSJRLS.js → chunk-Q7ZXPRTP.js} +1 -1
- package/dist/{chunk-I6PDJEYQ.js → chunk-TS2U7ZAG.js} +1 -1
- package/dist/{chunk-YOQ3GBJK.js → chunk-WNW7BQ7H.js} +3 -3
- package/dist/{chunk-QJ3AJNRP.js → chunk-YNFCFPLT.js} +1 -1
- package/dist/{cli-DRPVOAEG.js → cli-UIGVWGJL.js} +24 -24
- package/dist/{command-FMNZSGIX.js → command-MZCMXPPJ.js} +2 -2
- package/dist/{container-start-OPQZF4LH.js → container-start-WVZ2SSQH.js} +3 -3
- package/dist/{doctor-22YI6EJN.js → doctor-K7UHUBZW.js} +3 -3
- package/dist/{host-checks-MVOAIBQA.js → host-checks-CQUHRKX7.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{init-F6XEU4VR.js → init-67NCMKO6.js} +1 -1
- package/dist/{init-JEXSFOFP.js → init-X7RMCZ7P.js} +1 -1
- package/dist/{init-agent-BLC6ART6.js → init-agent-VZ4PLLKF.js} +1 -1
- package/dist/{init-cmd-ISFN4IXL.js → init-cmd-BVPFCSEV.js} +2 -2
- package/dist/{loop-A3LCREAQ.js → loop-7D2SESNF.js} +5 -5
- package/dist/{machine-P5OCN6FJ.js → machine-SMT7B3HP.js} +1 -1
- package/dist/{runner-key-K6SJMQ6I.js → runner-key-L6KNJNEM.js} +1 -1
- package/dist/{setup-wiring-AE2RFMC4.js → setup-wiring-QLQW7YG3.js} +3 -3
- package/dist/{status-TJWQ5EIM.js → status-6GZN7A33.js} +1 -1
- package/dist/{update-steps-RDYVUTKN.js → update-steps-35DGWEH3.js} +2 -2
- package/dist/{work-proofs-cmd-XOIAKWF2.js → work-proofs-cmd-7MNFBEAL.js} +1 -1
- package/dist/{work-proofs-record-7DEOYNST.js → work-proofs-record-7PVFOKA2.js} +1 -1
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-11-
|
|
1
|
+
{"id":"2026-11-17T06:22:28.806Z","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-OSVM5NHT.js';
|
|
4
4
|
import './chunk-AAGXH2FR.js';
|
|
5
5
|
import './chunk-E7R2GIAW.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-YNFCFPLT.js';
|
|
7
|
+
import './chunk-LSSTRAIO.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-Q7ZXPRTP.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-GBZA57ZZ.js';
|
|
14
14
|
import './chunk-HHOFP647.js';
|
|
15
15
|
import './chunk-FBFYIEHC.js';
|
|
16
16
|
import './chunk-I3LTIAOR.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,8 @@ function createMicroVmPorts(over = {}) {
|
|
|
1413
1413
|
var ATTEMPTS = 3;
|
|
1414
1414
|
var RETRY_MS = 1e3;
|
|
1415
1415
|
var READ_TIMEOUT_MS = 1e4;
|
|
1416
|
+
var FIND_TIMEOUT_MS = 1e4;
|
|
1417
|
+
var SAVE_TIMEOUT_MS = 15e4;
|
|
1416
1418
|
function sandboxErrorOf(err, nowMs) {
|
|
1417
1419
|
return new SandboxError(err.message, err.status ?? 0, err.code, err.reason, retryAfterMsOf(err.retryAfter ?? null, nowMs));
|
|
1418
1420
|
}
|
|
@@ -1533,6 +1535,40 @@ function createGatewaySandboxClient(opts) {
|
|
|
1533
1535
|
},
|
|
1534
1536
|
async restartTimeLimit() {
|
|
1535
1537
|
},
|
|
1538
|
+
async saveState(id, key, details) {
|
|
1539
|
+
const creds = opts.creds(factoryOfSandbox(id));
|
|
1540
|
+
const signer = await signerFor(creds.configPath);
|
|
1541
|
+
let data;
|
|
1542
|
+
try {
|
|
1543
|
+
data = (await postJson(creds.url, `${own(id)}/states`, creds.apiKey, creds.appId, { key, details }, fetchImpl, SAVE_TIMEOUT_MS, signer)).data;
|
|
1544
|
+
} catch (err) {
|
|
1545
|
+
throw err instanceof WorkCommandError ? sandboxErrorOf(err, Date.now()) : err;
|
|
1546
|
+
}
|
|
1547
|
+
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);
|
|
1548
|
+
return { id: data.id, createdAt: data.createdAt };
|
|
1549
|
+
},
|
|
1550
|
+
async findState(input) {
|
|
1551
|
+
const creds = opts.creds(input.factory);
|
|
1552
|
+
const signer = await signerFor(creds.configPath);
|
|
1553
|
+
let data;
|
|
1554
|
+
const limit = new AbortController();
|
|
1555
|
+
const timer = setTimeout(() => limit.abort(), FIND_TIMEOUT_MS);
|
|
1556
|
+
try {
|
|
1557
|
+
const path = `/v1/work-items/${encodeURIComponent(String(input.workItem))}/claim/sandbox-states?key=${encodeURIComponent(input.key)}`;
|
|
1558
|
+
data = (await getJson(creds.url, path, creds.apiKey, creds.appId, fetchImpl, signer, { signal: limit.signal })).data;
|
|
1559
|
+
} catch (err) {
|
|
1560
|
+
throw err instanceof WorkCommandError ? sandboxErrorOf(err, Date.now()) : err;
|
|
1561
|
+
} finally {
|
|
1562
|
+
clearTimeout(timer);
|
|
1563
|
+
}
|
|
1564
|
+
const found = data;
|
|
1565
|
+
if (found.data === null) return null;
|
|
1566
|
+
if (typeof found.id !== "string" || typeof found.key !== "string" || typeof found.createdAt !== "string" || !Number.isFinite(Date.parse(found.createdAt))) {
|
|
1567
|
+
throw new SandboxError("the gateway's answer names no saved state", 0);
|
|
1568
|
+
}
|
|
1569
|
+
const details = typeof found.details === "object" && !Array.isArray(found.details) ? found.details : null;
|
|
1570
|
+
return { id: found.id, key: found.key, createdAt: found.createdAt, details };
|
|
1571
|
+
},
|
|
1536
1572
|
...dataPlaneOf(sandboxCallOf(fetchImpl), (sandbox) => {
|
|
1537
1573
|
const header = headers.get(sandbox.dataPlaneUrl);
|
|
1538
1574
|
if (header === void 0) throw new SandboxError("the gateway named no secret header for this sandbox", 0);
|
|
@@ -3007,7 +3043,7 @@ function lookup(records, key, nowMs) {
|
|
|
3007
3043
|
}
|
|
3008
3044
|
function savingRefusedBecause(input) {
|
|
3009
3045
|
if (!input.universalImage) return "its image comes from a devcontainer file";
|
|
3010
|
-
if (input.fleet) return "this runner is a fleet machine";
|
|
3046
|
+
if (input.fleet && !input.inManagedSandbox) return "this runner is a fleet machine";
|
|
3011
3047
|
if (input.savedStateMax === "off") return "runner.housekeeping.savedStateMax is off";
|
|
3012
3048
|
return void 0;
|
|
3013
3049
|
}
|
|
@@ -3244,6 +3280,7 @@ async function runBuildSteps(input) {
|
|
|
3244
3280
|
log.line(`${tag} this build saves no state: ${notAtHead}`);
|
|
3245
3281
|
} else {
|
|
3246
3282
|
const saved = await setup.saveState();
|
|
3283
|
+
if ("handedOver" in saved) return { ok: false, reason: "", handedOver: true };
|
|
3247
3284
|
if (saved.ok) savedState = true;
|
|
3248
3285
|
else log.line(`${tag} the build's state could not be saved: ${saved.reason}`);
|
|
3249
3286
|
}
|
|
@@ -3808,6 +3845,65 @@ function readRecords(dir) {
|
|
|
3808
3845
|
function deleteRecord(dir, id) {
|
|
3809
3846
|
rmSync(join(dir, `${id}.json`), { force: true });
|
|
3810
3847
|
}
|
|
3848
|
+
var FAILED_SAVES_FILE = "failed-saves";
|
|
3849
|
+
var FAILED_STATES_FILE = "failed-states";
|
|
3850
|
+
var FAILED_SAVE_PAUSE_MS = 216e5;
|
|
3851
|
+
var FAILED_STATE_PAUSE_MS = 6048e5;
|
|
3852
|
+
function readDated(dir, file) {
|
|
3853
|
+
try {
|
|
3854
|
+
const parsed = JSON.parse(readFileSync(join(dir, file), "utf8"));
|
|
3855
|
+
const entries = Object.entries(Array.isArray(parsed) ? {} : parsed);
|
|
3856
|
+
return Object.fromEntries(entries.filter((entry) => typeof entry[1] === "string"));
|
|
3857
|
+
} catch {
|
|
3858
|
+
return {};
|
|
3859
|
+
}
|
|
3860
|
+
}
|
|
3861
|
+
function noteDated(dir, file, name, at, keepMs) {
|
|
3862
|
+
const kept = Object.entries(readDated(dir, file)).filter(([, when]) => at.getTime() - Date.parse(when) < keepMs);
|
|
3863
|
+
mkdirSync(dir, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
3864
|
+
const target2 = join(dir, file);
|
|
3865
|
+
writeFileSync(`${target2}.partial`, `${JSON.stringify(Object.fromEntries([...kept, [name, at.toISOString()]]), null, 2)}
|
|
3866
|
+
`, { mode: RUNNER_FILE_MODE });
|
|
3867
|
+
renameSync(`${target2}.partial`, target2);
|
|
3868
|
+
}
|
|
3869
|
+
function recentDatedMs(dir, file, name, nowMs, keepMs) {
|
|
3870
|
+
const age = nowMs - Date.parse(readDated(dir, file)[name] ?? "");
|
|
3871
|
+
return age >= 0 && age < keepMs ? age : void 0;
|
|
3872
|
+
}
|
|
3873
|
+
function noteFailedSave(dir, key, at) {
|
|
3874
|
+
noteDated(dir, FAILED_SAVES_FILE, key, at, FAILED_SAVE_PAUSE_MS);
|
|
3875
|
+
}
|
|
3876
|
+
function recentFailedSaveMs(dir, key, nowMs) {
|
|
3877
|
+
return recentDatedMs(dir, FAILED_SAVES_FILE, key, nowMs, FAILED_SAVE_PAUSE_MS);
|
|
3878
|
+
}
|
|
3879
|
+
function noteFailedState(dir, id, at) {
|
|
3880
|
+
noteDated(dir, FAILED_STATES_FILE, id, at, FAILED_STATE_PAUSE_MS);
|
|
3881
|
+
}
|
|
3882
|
+
function recentFailedStateMs(dir, id, nowMs) {
|
|
3883
|
+
return recentDatedMs(dir, FAILED_STATES_FILE, id, nowMs, FAILED_STATE_PAUSE_MS);
|
|
3884
|
+
}
|
|
3885
|
+
function sharedStateDetails(record) {
|
|
3886
|
+
return { key: record.key, fileHashes: record.fileHashes, volume: record.volume, ...record.agentUid === void 0 ? {} : { agentUid: record.agentUid } };
|
|
3887
|
+
}
|
|
3888
|
+
function sharedStateRecord(found) {
|
|
3889
|
+
const details = found.details ?? {};
|
|
3890
|
+
const hashes = details.fileHashes;
|
|
3891
|
+
if (typeof hashes !== "object" || hashes === null || Array.isArray(hashes) || !Object.values(hashes).every((hash) => typeof hash === "string")) return void 0;
|
|
3892
|
+
if (details.agentUid !== void 0 && !Number.isInteger(details.agentUid)) return void 0;
|
|
3893
|
+
const record = {
|
|
3894
|
+
id: found.id,
|
|
3895
|
+
kind: "sandbox",
|
|
3896
|
+
volume: details.volume,
|
|
3897
|
+
savedAt: found.createdAt,
|
|
3898
|
+
bytes: 0,
|
|
3899
|
+
baseKey: found.key,
|
|
3900
|
+
key: details.key,
|
|
3901
|
+
fileHashes: hashes,
|
|
3902
|
+
...details.agentUid === void 0 ? {} : { agentUid: details.agentUid },
|
|
3903
|
+
complete: true
|
|
3904
|
+
};
|
|
3905
|
+
return isRecord(record) ? record : void 0;
|
|
3906
|
+
}
|
|
3811
3907
|
|
|
3812
3908
|
// src/runner/saved-state/container.ts
|
|
3813
3909
|
var SAVED_FOLDERS = ["home", "work"];
|
|
@@ -4123,15 +4219,31 @@ async function discardItemDisk(kept, removeVolume, onError, endSandbox) {
|
|
|
4123
4219
|
|
|
4124
4220
|
// src/runner/saved-state/provision.ts
|
|
4125
4221
|
var isRetryFresh = (value) => typeof value === "object" && value !== null && value.retryFresh === true;
|
|
4222
|
+
var isHandedOver = (value) => typeof value === "object" && value !== null && value.handedOver === true;
|
|
4223
|
+
var LATER_ATTEMPT_REASON = "only the first attempt of a job may save a state";
|
|
4126
4224
|
async function provisionWithFreshFallback(input) {
|
|
4225
|
+
const later = (allowRestore, itemDiskFailed) => input.attempt(allowRestore, itemDiskFailed, LATER_ATTEMPT_REASON);
|
|
4226
|
+
const afterSave = async (handed, itemDiskFailed) => {
|
|
4227
|
+
input.log(handed.reason);
|
|
4228
|
+
const next = await later(handed.saved, itemDiskFailed);
|
|
4229
|
+
if (!isRetryFresh(next)) return next;
|
|
4230
|
+
input.log(`${next.reason}; provisioning the build again from a fresh disk`);
|
|
4231
|
+
return await later(false, itemDiskFailed);
|
|
4232
|
+
};
|
|
4233
|
+
const fresh = async (itemDiskFailed) => {
|
|
4234
|
+
if (input.saveAfterFailedState !== true) return await later(false, itemDiskFailed);
|
|
4235
|
+
const next = await input.attempt(false, itemDiskFailed);
|
|
4236
|
+
return isHandedOver(next) ? afterSave(next, itemDiskFailed) : next;
|
|
4237
|
+
};
|
|
4127
4238
|
const first = await input.attempt(true);
|
|
4239
|
+
if (isHandedOver(first)) return afterSave(first);
|
|
4128
4240
|
if (!isRetryFresh(first)) return first;
|
|
4129
4241
|
input.log(`${first.reason}; provisioning the build again from a fresh disk`);
|
|
4130
|
-
if (first.itemDisk === void 0) return
|
|
4131
|
-
const second = await
|
|
4242
|
+
if (first.itemDisk === void 0) return fresh();
|
|
4243
|
+
const second = await later(true, first.itemDisk);
|
|
4132
4244
|
if (!isRetryFresh(second)) return second;
|
|
4133
4245
|
input.log(`${second.reason}; provisioning the build again from a fresh disk`);
|
|
4134
|
-
return
|
|
4246
|
+
return fresh(first.itemDisk);
|
|
4135
4247
|
}
|
|
4136
4248
|
function keptDiskPlan() {
|
|
4137
4249
|
return { keyCommits: {}, noSave: "it starts from the work item's kept disk" };
|
|
@@ -4162,8 +4274,8 @@ function setupInputFor(input) {
|
|
|
4162
4274
|
...input.fromItemDisk === true ? { fromItemDisk: true } : {},
|
|
4163
4275
|
keyCommits: input.plan.keyCommits,
|
|
4164
4276
|
...input.withoutBuildVariables === true ? { withoutBuildVariables: true } : {},
|
|
4165
|
-
// A plan
|
|
4166
|
-
...input.plan.key === void 0 ? {} : { saveState: input.saveState }
|
|
4277
|
+
// 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.
|
|
4278
|
+
...input.plan.key === void 0 || input.plan.noSave !== void 0 ? {} : { saveState: input.saveState }
|
|
4167
4279
|
};
|
|
4168
4280
|
}
|
|
4169
4281
|
async function saveAndPrune(input) {
|
|
@@ -4204,7 +4316,7 @@ function savedStateMaxOf(config) {
|
|
|
4204
4316
|
}
|
|
4205
4317
|
async function planSavedState(input) {
|
|
4206
4318
|
const { config, runtime, log } = input;
|
|
4207
|
-
const refused2 = savingRefusedBecause({ universalImage: input.base !== void 0, fleet: config.fleet === true, savedStateMax: savedStateMaxOf(config) });
|
|
4319
|
+
const refused2 = savingRefusedBecause({ universalImage: input.base !== void 0, fleet: config.fleet === true, inManagedSandbox: input.shared !== void 0, savedStateMax: savedStateMaxOf(config) });
|
|
4208
4320
|
if (refused2 !== void 0 || input.base === void 0) {
|
|
4209
4321
|
const why = (input.base === void 0 ? input.noBase : void 0) ?? refused2 ?? "its image comes from a devcontainer file";
|
|
4210
4322
|
log(`this build saves no state: ${why}`);
|
|
@@ -4232,12 +4344,14 @@ async function planSavedState(input) {
|
|
|
4232
4344
|
repositories.push({ repository: entry.repository, commit: read.commit, files: read.files });
|
|
4233
4345
|
}
|
|
4234
4346
|
const key = stateKey({
|
|
4235
|
-
factory: keyRunnerFactory(config),
|
|
4347
|
+
factory: input.shared?.factory ?? keyRunnerFactory(config),
|
|
4236
4348
|
repositories,
|
|
4237
4349
|
imageDigest: input.base.digest,
|
|
4238
4350
|
diskBytes: input.diskBytes
|
|
4239
4351
|
});
|
|
4240
|
-
|
|
4352
|
+
if (input.shared !== void 0 && !input.allowRestore) return { key, keyCommits };
|
|
4353
|
+
const records = input.shared === void 0 ? readRecords(savedStatesDir(root)) : await sharedRecords(input.shared, key.baseKey, savedStatesDir(root), input.now.getTime(), log);
|
|
4354
|
+
const found = lookup(records, key, input.now.getTime());
|
|
4241
4355
|
if (found.kind !== "none" && found.record.kind === "tar") {
|
|
4242
4356
|
try {
|
|
4243
4357
|
await removeSavedState(found.record, { dir: savedStatesDir(root), removeVolume: async () => void 0 });
|
|
@@ -4260,6 +4374,18 @@ async function planSavedState(input) {
|
|
|
4260
4374
|
}
|
|
4261
4375
|
return { key, keyCommits };
|
|
4262
4376
|
}
|
|
4377
|
+
async function sharedRecords(shared, baseKey, dir, nowMs, log) {
|
|
4378
|
+
const found = await shared.find(baseKey);
|
|
4379
|
+
if (!found.ok) {
|
|
4380
|
+
log(`the gateway's saved state of this build's key could not be read: ${found.reason}`);
|
|
4381
|
+
return [];
|
|
4382
|
+
}
|
|
4383
|
+
if (found.record === void 0) return [];
|
|
4384
|
+
const failedAgo = recentFailedStateMs(dir, found.record.id, nowMs);
|
|
4385
|
+
if (failedAgo === void 0) return [found.record];
|
|
4386
|
+
log(`saved state ${found.record.id} failed on this machine ${formatDuration(failedAgo)} ago, and this machine does not start from it again`);
|
|
4387
|
+
return [];
|
|
4388
|
+
}
|
|
4263
4389
|
function unread(reason, log) {
|
|
4264
4390
|
log(`this build starts from no saved state and saves none: ${reason}`);
|
|
4265
4391
|
return { keyCommits: {}, noSave: `its key files could not be read: ${reason}` };
|
|
@@ -4768,22 +4894,102 @@ function joinRelay(runtime, sandbox, build, services, joinSecret, log) {
|
|
|
4768
4894
|
);
|
|
4769
4895
|
}
|
|
4770
4896
|
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`);
|
|
4897
|
+
async function clearSandbox(runtime, sandbox, build) {
|
|
4774
4898
|
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 ${
|
|
4899
|
+
const removed = await host.remove(build.container);
|
|
4900
|
+
if (removed.status !== 0 && !/no such container/i.test(removed.stderr)) throw new Error(`container ${build.container} was not removed${said(removed.stderr)}`);
|
|
4777
4901
|
const siblings = await client(runtime).command(sandbox, removeBuildContainersLine());
|
|
4778
4902
|
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:
|
|
4903
|
+
const emptied = await host.run(clearOneBuildArgs({ image: build.imageId, volume: build.volume, runnerId: build.runnerId }));
|
|
4780
4904
|
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
4905
|
const unmounted = await client(runtime).command(sandbox, `if mountpoint -q ${HOST_BUILD_DIR}; then sudo umount ${HOST_BUILD_DIR}; fi`);
|
|
4782
4906
|
if (unmounted.exitCode !== 0) throw new Error(`${HOST_BUILD_DIR} was not unmounted in the sandbox (exit ${unmounted.exitCode ?? "none"})${said(unmounted.stderr)}`);
|
|
4783
4907
|
const cleared = await client(runtime).command(sandbox, `sudo rm -rf ${SANDBOX_DIR} ${OLD_SANDBOX_DIR} ${SANDBOX_RUN_DIR}`);
|
|
4784
4908
|
if (cleared.exitCode !== 0) throw new Error(`the runner's files were not removed from the sandbox (exit ${cleared.exitCode ?? "none"})${said(cleared.stderr)}`);
|
|
4909
|
+
}
|
|
4910
|
+
async function keepSandboxDisk(runtime, state, kept) {
|
|
4911
|
+
const sandbox = await sandboxOfBuild(runtime, state);
|
|
4912
|
+
if (sandbox === void 0) throw new Error(`sandbox ${state.sandboxId} is gone`);
|
|
4913
|
+
await clearSandbox(runtime, sandbox, kept);
|
|
4785
4914
|
await kept.keep();
|
|
4786
4915
|
}
|
|
4916
|
+
function saveFailureReason(err) {
|
|
4917
|
+
if (!(err instanceof SandboxError)) return describeCallFailure(err);
|
|
4918
|
+
if (err.code === "sandbox_state_limit") return "the factory has as many saved states as it may (sandbox_state_limit)";
|
|
4919
|
+
if (err.status === 0) return `the gateway did not answer the save in ${SAVE_TIMEOUT_MS / 1e3} seconds: ${err.message}`;
|
|
4920
|
+
return `the gateway refused the save: ${describeSandboxError(err)}`;
|
|
4921
|
+
}
|
|
4922
|
+
function sandboxStateKey(runnerId, key, shared) {
|
|
4923
|
+
return shared ? key.baseKey : `${runnerId}/${key.baseKey}`;
|
|
4924
|
+
}
|
|
4925
|
+
function sharesSavedStates(config) {
|
|
4926
|
+
return config.fleet === true && config.sandbox?.provider === "outerlayer";
|
|
4927
|
+
}
|
|
4928
|
+
async function findSharedState(sandboxClient, input) {
|
|
4929
|
+
if (sandboxClient.findState === void 0) return { ok: false, reason: "the sandbox provider finds no saved state" };
|
|
4930
|
+
let found;
|
|
4931
|
+
try {
|
|
4932
|
+
found = await sandboxClient.findState(input);
|
|
4933
|
+
} catch (err) {
|
|
4934
|
+
if (!(err instanceof SandboxError)) return { ok: false, reason: describeCallFailure(err) };
|
|
4935
|
+
return { ok: false, reason: err.status === 0 ? `the gateway did not answer in ${FIND_TIMEOUT_MS / 1e3} seconds: ${err.message}` : describeSandboxError(err) };
|
|
4936
|
+
}
|
|
4937
|
+
if (found === null) return { ok: true, record: void 0 };
|
|
4938
|
+
const record = sharedStateRecord(found);
|
|
4939
|
+
return record === void 0 ? { ok: false, reason: `saved state ${found.id} holds no details this runner reads` } : { ok: true, record };
|
|
4940
|
+
}
|
|
4941
|
+
async function saveSandboxState(input) {
|
|
4942
|
+
const { runtime, sandbox, key, dir } = input;
|
|
4943
|
+
if (input.aborted()) return void 0;
|
|
4944
|
+
const failed2 = (reason) => {
|
|
4945
|
+
noteFailedSave(dir, key.key, input.now());
|
|
4946
|
+
return { saved: false, reason };
|
|
4947
|
+
};
|
|
4948
|
+
await leaveRelay(runtime, input.buildId);
|
|
4949
|
+
try {
|
|
4950
|
+
await clearSandbox(runtime, sandbox, input.build);
|
|
4951
|
+
} catch (err) {
|
|
4952
|
+
return failed2(`the sandbox could not be cleared for the save: ${describeCallFailure(err)}`);
|
|
4953
|
+
}
|
|
4954
|
+
if (input.aborted()) return void 0;
|
|
4955
|
+
const sandboxClient = client(runtime);
|
|
4956
|
+
if (sandboxClient.saveState === void 0) return failed2("the sandbox provider saves no state");
|
|
4957
|
+
let state;
|
|
4958
|
+
try {
|
|
4959
|
+
const details = input.shared ? sharedStateDetails({ ...key, volume: input.build.volume, agentUid: input.agentUid }) : void 0;
|
|
4960
|
+
state = await sandboxClient.saveState(sandbox.id, sandboxStateKey(input.build.runnerId, key, input.shared), details);
|
|
4961
|
+
} catch (err) {
|
|
4962
|
+
return failed2(saveFailureReason(err));
|
|
4963
|
+
}
|
|
4964
|
+
if (input.aborted()) return void 0;
|
|
4965
|
+
if (input.shared) {
|
|
4966
|
+
input.log(`saved state ${state.id}`);
|
|
4967
|
+
return { saved: true, id: state.id };
|
|
4968
|
+
}
|
|
4969
|
+
const record = {
|
|
4970
|
+
id: state.id,
|
|
4971
|
+
kind: "sandbox",
|
|
4972
|
+
volume: input.build.volume,
|
|
4973
|
+
savedAt: state.createdAt,
|
|
4974
|
+
bytes: 0,
|
|
4975
|
+
baseKey: key.baseKey,
|
|
4976
|
+
key: key.key,
|
|
4977
|
+
fileHashes: key.fileHashes,
|
|
4978
|
+
// A record is written as JSON, which leaves out an id the probe did not give.
|
|
4979
|
+
agentUid: input.agentUid,
|
|
4980
|
+
complete: true
|
|
4981
|
+
};
|
|
4982
|
+
await saveAndPrune({
|
|
4983
|
+
save: async () => {
|
|
4984
|
+
writeRecord2(dir, record);
|
|
4985
|
+
return { ok: true, record };
|
|
4986
|
+
},
|
|
4987
|
+
dir,
|
|
4988
|
+
removeVolume: async () => void 0,
|
|
4989
|
+
log: input.log
|
|
4990
|
+
});
|
|
4991
|
+
return { saved: true, id: state.id };
|
|
4992
|
+
}
|
|
4787
4993
|
async function cleanupSandbox(runtime, state, keepDisk) {
|
|
4788
4994
|
const failures = [];
|
|
4789
4995
|
let kept = false;
|
|
@@ -4941,11 +5147,19 @@ function clockStep(probe, nowMs) {
|
|
|
4941
5147
|
async function provisionSandbox(input) {
|
|
4942
5148
|
const tag = itemTag({ item: input.item.number, organizationId: input.organizationId, claimId: input.claimId });
|
|
4943
5149
|
return provisionWithFreshFallback({
|
|
4944
|
-
attempt: (allowRestore, itemDiskFailed) => provisionSandboxOnce(input, allowRestore, itemDiskFailed),
|
|
4945
|
-
log: (line2) => input.log.line(`${tag} ${line2}`)
|
|
5150
|
+
attempt: (allowRestore, itemDiskFailed, noSave) => provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave),
|
|
5151
|
+
log: (line2) => input.log.line(`${tag} ${line2}`),
|
|
5152
|
+
saveAfterFailedState: sharesSavedStates(input.config)
|
|
4946
5153
|
});
|
|
4947
5154
|
}
|
|
4948
|
-
|
|
5155
|
+
function holdBackSave(plan, noSave) {
|
|
5156
|
+
if (noSave === void 0 || plan.key === void 0 || plan.noSave !== void 0) return { plan };
|
|
5157
|
+
return { plan: { ...plan, noSave }, ...plan.restore === void 0 ? { line: `this build saves no state: ${noSave}` } : {} };
|
|
5158
|
+
}
|
|
5159
|
+
function failedSaveReason(ageMs) {
|
|
5160
|
+
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`;
|
|
5161
|
+
}
|
|
5162
|
+
async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave) {
|
|
4949
5163
|
const { config, runtime, item, itemKey, jobDir, log, tokens } = input;
|
|
4950
5164
|
const tag = itemTag({ item: item.number, organizationId: input.organizationId, claimId: input.claimId });
|
|
4951
5165
|
const logPath = join(jobDir, "provision.log");
|
|
@@ -4999,6 +5213,7 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed) {
|
|
|
4999
5213
|
let diskState = itemDisk.state;
|
|
5000
5214
|
if (itemDisk.state?.restored === false) log.line(`${tag} this job starts without a kept disk: ${DISK_REASON_TEXT[itemDisk.state.reason]}`);
|
|
5001
5215
|
const tagged = (line2) => log.line(`${tag} ${line2}`);
|
|
5216
|
+
const shared = sharesSavedStates(config) ? { factory: config.appId, find: (key) => findSharedState(sandboxClient, { factory: config.appId, workItem: claimItem(config, { item: item.number, workItemId: input.workItemId, appId: config.appId }), key }) } : void 0;
|
|
5002
5217
|
let plan = keptDisk !== void 0 ? keptDiskPlan() : input.queue === "review" ? { keyCommits: {}, noSave: "a code review runs no setup" } : await planSavedState({
|
|
5003
5218
|
config,
|
|
5004
5219
|
repositories,
|
|
@@ -5009,9 +5224,25 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed) {
|
|
|
5009
5224
|
now: clockOf(input.now)(),
|
|
5010
5225
|
diskBytes: 0,
|
|
5011
5226
|
allowRestore,
|
|
5227
|
+
shared,
|
|
5012
5228
|
log: tagged
|
|
5013
5229
|
});
|
|
5230
|
+
const statesDir = savedStatesDir(runnerDir(config.configPath));
|
|
5231
|
+
const failedAgo = plan.key === void 0 ? void 0 : recentFailedSaveMs(statesDir, plan.key.key, clockOf(input.now)().getTime());
|
|
5232
|
+
const heldBack = holdBackSave(plan, noSave ?? (failedAgo === void 0 ? void 0 : failedSaveReason(failedAgo)));
|
|
5233
|
+
plan = heldBack.plan;
|
|
5234
|
+
if (heldBack.line !== void 0) tagged(heldBack.line);
|
|
5014
5235
|
let fromState = plan.restore?.record;
|
|
5236
|
+
const forgetState = (record, reason) => {
|
|
5237
|
+
if (shared !== void 0) {
|
|
5238
|
+
try {
|
|
5239
|
+
noteFailedState(statesDir, record.id, clockOf(input.now)());
|
|
5240
|
+
} catch (err) {
|
|
5241
|
+
log.error(`${tag} could not note that saved state ${record.id} failed: ${describeCallFailure(err)}`);
|
|
5242
|
+
}
|
|
5243
|
+
}
|
|
5244
|
+
return discardUnusableState({ record, reason, dir: statesDir, removeVolume: async () => void 0, onError: (line2) => log.error(`${tag} ${line2}`) });
|
|
5245
|
+
};
|
|
5015
5246
|
const buildId = randomBytes(6).toString("hex");
|
|
5016
5247
|
const runnerId = runnerLabelValue(config.configPath);
|
|
5017
5248
|
const name = sandboxNameOf(runnerId, buildId);
|
|
@@ -5035,7 +5266,7 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed) {
|
|
|
5035
5266
|
};
|
|
5036
5267
|
const state = { sandboxId: "", name, dataPlaneUrl: "", buildId, diskKey, container: containerState };
|
|
5037
5268
|
const secrets = secretsOf(runtime, jobDir);
|
|
5038
|
-
const
|
|
5269
|
+
const envInput = {
|
|
5039
5270
|
config,
|
|
5040
5271
|
item: item.number,
|
|
5041
5272
|
...input.queue === "run" ? { run: true } : {},
|
|
@@ -5048,7 +5279,9 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed) {
|
|
|
5048
5279
|
containerEnv: apply.containerEnv,
|
|
5049
5280
|
builtIns: true,
|
|
5050
5281
|
factoryVariables: factoryVariablesOf(config, jobDir)
|
|
5051
|
-
}
|
|
5282
|
+
};
|
|
5283
|
+
const env = buildEnvironment(envInput);
|
|
5284
|
+
const stepEnv = managed ? buildEnvironment({ ...envInput, factoryVariables: [] }) : env;
|
|
5052
5285
|
if (env.skippedTokenVariables.length > 0) {
|
|
5053
5286
|
log.line(`${tag} not passing ${env.skippedTokenVariables.join(", ")} from runner.build.variables into the build: its repository token comes from the runner`);
|
|
5054
5287
|
}
|
|
@@ -5074,7 +5307,7 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed) {
|
|
|
5074
5307
|
};
|
|
5075
5308
|
const giveUpState = async (record, reason) => {
|
|
5076
5309
|
await bail(reason);
|
|
5077
|
-
return
|
|
5310
|
+
return forgetState(record, reason);
|
|
5078
5311
|
};
|
|
5079
5312
|
const end = (reason, aborted2 = false) => fromState !== void 0 && !aborted2 ? giveUpState(fromState, reason) : bail(reason, aborted2);
|
|
5080
5313
|
const forgetManagedDisk = async (id, err) => {
|
|
@@ -5149,7 +5382,7 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed) {
|
|
|
5149
5382
|
} catch (err) {
|
|
5150
5383
|
const refusal = stateRefusalReason(err);
|
|
5151
5384
|
if (fromState === void 0 || refusal === void 0) throw err;
|
|
5152
|
-
await
|
|
5385
|
+
await forgetState(fromState, refusal);
|
|
5153
5386
|
tagged(`the gateway cannot start a sandbox from saved state ${fromState.id}: ${refusal} \xB7 removed its record, and asking for a sandbox from the base snapshot`);
|
|
5154
5387
|
fromState = void 0;
|
|
5155
5388
|
plan = { ...plan, restore: void 0 };
|
|
@@ -5321,28 +5554,58 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed) {
|
|
|
5321
5554
|
joinRelay(runtime, sandbox, { buildId, container }, services.streams, joinSecret, (line2) => log.line(`${tag} ${line2}`));
|
|
5322
5555
|
if (input.aborted()) return bail("", true);
|
|
5323
5556
|
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
|
-
|
|
5557
|
+
const deliverGh = async (delivered) => {
|
|
5558
|
+
const ghDelivered = await deliverJobFiles(sandboxed, containerState, ["gh"], secrets);
|
|
5559
|
+
if (!ghDelivered.ok) return ghDelivered;
|
|
5560
|
+
keepGhConfigCurrent(tokens, buildDir2, (err) => log.error(`${tag} the read token could not be written for gh: ${describeCallFailure(err)}`), {
|
|
5561
|
+
runtime: sandboxed,
|
|
5562
|
+
state: containerState,
|
|
5563
|
+
secrets,
|
|
5564
|
+
delivered,
|
|
5565
|
+
onFailure: (reason) => log.error(`${tag} ${reason}`)
|
|
5566
|
+
});
|
|
5567
|
+
return { ok: true };
|
|
5568
|
+
};
|
|
5569
|
+
const deliverHeldGh = async () => deliverGh(await tokens.token("read").catch(() => void 0));
|
|
5570
|
+
if (!managed) {
|
|
5571
|
+
const ghDelivered = await deliverGh(readToken);
|
|
5572
|
+
if (!ghDelivered.ok) return end(ghDelivered.reason);
|
|
5573
|
+
}
|
|
5333
5574
|
const tools = await host.exec({ container, user: ADDED_USER, env: NO_ENV, argv: ["cat", "/opt/outerlayer/tools.json"] });
|
|
5334
5575
|
const agentVersion = agentVersionOf(tools.status === 0 ? tools.stdout : "", runtime.agents, input.job);
|
|
5335
5576
|
environment.agentVersion = agentVersion;
|
|
5336
5577
|
const judgeProgram = await judgeProgramRecord((argv) => host.exec({ container, user: ADDED_USER, env: NO_ENV, argv }), runtime.agents);
|
|
5337
5578
|
if (judgeProgram !== void 0) containerState.judgeProgram = judgeProgram;
|
|
5338
5579
|
input.save(state, environment);
|
|
5339
|
-
if (input.queue === "review")
|
|
5580
|
+
if (input.queue === "review") {
|
|
5581
|
+
const ghDelivered = managed ? await deliverHeldGh() : { ok: true };
|
|
5582
|
+
if (!ghDelivered.ok) return end(ghDelivered.reason);
|
|
5583
|
+
return { ok: true, workdir: CHECKOUT_DIR, state, environment };
|
|
5584
|
+
}
|
|
5340
5585
|
const stepExec = async (argv, workdir, opts) => {
|
|
5341
|
-
const ran = await host.exec({ container, user: agentUser, workdir, env: withMiseVariables(
|
|
5586
|
+
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
5587
|
return endedAtLimit(ran) ? { ...ran, timedOut: true } : ran;
|
|
5343
5588
|
};
|
|
5344
5589
|
const setupMinutes = config.build?.setupMinutes ?? DEFAULT_SETUP_MINUTES;
|
|
5345
5590
|
let setupPassed = false;
|
|
5591
|
+
let saved;
|
|
5592
|
+
const saveState = async () => {
|
|
5593
|
+
const probe = await host.run(identityRunArgs({ ...runInput, user: ADDED_USER }, agentUser), { logPath });
|
|
5594
|
+
saved = await saveSandboxState({
|
|
5595
|
+
runtime,
|
|
5596
|
+
sandbox,
|
|
5597
|
+
buildId,
|
|
5598
|
+
build: { container, volume: volumeName, imageId: image, runnerId },
|
|
5599
|
+
key: plan.key,
|
|
5600
|
+
agentUid: probe.status === 0 ? parseIdentity(probe.stdout)?.uid ?? void 0 : void 0,
|
|
5601
|
+
shared: shared !== void 0,
|
|
5602
|
+
dir: statesDir,
|
|
5603
|
+
now: clockOf(input.now),
|
|
5604
|
+
aborted: input.aborted,
|
|
5605
|
+
log: tagged
|
|
5606
|
+
});
|
|
5607
|
+
return { handedOver: true };
|
|
5608
|
+
};
|
|
5346
5609
|
const steps = await runBuildSteps({
|
|
5347
5610
|
repository,
|
|
5348
5611
|
branch: primary.branch,
|
|
@@ -5380,13 +5643,23 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed) {
|
|
|
5380
5643
|
...runtimeStepInput({ base: {} }, services),
|
|
5381
5644
|
// A kept disk or a saved state holds the checkouts already: each is switched to the branch. A kept disk keeps its
|
|
5382
5645
|
// 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.
|
|
5646
|
+
setup: setupInputFor({ setupMinutes, plan, saveState: managed ? saveState : void 0, withoutBuildVariables: managed, fromItemDisk: keptDisk !== void 0 }),
|
|
5647
|
+
// From here on a failure is the build's own, not the saved state's. The gh login is written only now.
|
|
5385
5648
|
afterSave: async () => {
|
|
5386
5649
|
setupPassed = true;
|
|
5387
|
-
return { ok: true };
|
|
5650
|
+
return managed ? deliverHeldGh() : { ok: true };
|
|
5388
5651
|
}
|
|
5389
5652
|
});
|
|
5653
|
+
if (!steps.ok && steps.handedOver === true) {
|
|
5654
|
+
if (input.aborted()) return bail("", true);
|
|
5655
|
+
const result = saved;
|
|
5656
|
+
try {
|
|
5657
|
+
await cleanupSandbox(runtime, { buildId, sandboxId: state.sandboxId, container: containerState });
|
|
5658
|
+
} catch (err) {
|
|
5659
|
+
log.error(`${tag} the sandbox could not be ended after the save: ${describeCallFailure(err)}`);
|
|
5660
|
+
}
|
|
5661
|
+
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` };
|
|
5662
|
+
}
|
|
5390
5663
|
if (!steps.ok) {
|
|
5391
5664
|
if (fromState !== void 0 && !setupPassed && steps.aborted !== true) return giveUpState(fromState, steps.reason);
|
|
5392
5665
|
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 { summarizeChecks, summaryText, renderDoctorText } from './chunk-
|
|
3
|
+
import { summarizeChecks, summaryText, renderDoctorText } from './chunk-OUGHUEV7.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';
|
|
@@ -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-GBZA57ZZ.js';
|
|
4
4
|
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-SS3SQYDS.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -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-YNFCFPLT.js';
|
|
6
|
+
import { renderUpdateSteps } from './chunk-LSSTRAIO.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-Q7ZXPRTP.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-GBZA57ZZ.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-MT72TGW6.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
5182
5182
|
},
|
|
5183
5183
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
5184
5184
|
log
|
|
@@ -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-K7UHUBZW.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-GBZA57ZZ.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 { helperSocketPath } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-GBZA57ZZ.js';
|
|
4
4
|
import { UNIT_MARKER } from './chunk-XVE7HD6X.js';
|
|
5
5
|
import { runnerDir } from './chunk-WHIAOWEN.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
@@ -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-CQUHRKX7.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-CQUHRKX7.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-7PVFOKA2.js');
|
|
376
376
|
const result2 = await runWorkProofsRecord(opts);
|
|
377
377
|
process.exitCode = result2.exitCode;
|
|
378
378
|
return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { scrubReason, stripTerminalControls } from './chunk-
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-GBZA57ZZ.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';
|
|
@@ -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-OUGHUEV7.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-BVPFCSEV.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-BVPFCSEV.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-QLQW7YG3.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-7MNFBEAL.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-7D2SESNF.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-WVZ2SSQH.js');
|
|
5545
|
+
const { start, RunnerStartError } = await import('./loop-7D2SESNF.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-35DGWEH3.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-MT72TGW6.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-MZCMXPPJ.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-MZCMXPPJ.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-MZCMXPPJ.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-X7RMCZ7P.js');
|
|
5703
|
+
const { askManagedSandboxes } = await import('./check-MT72TGW6.js');
|
|
5704
|
+
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-L6KNJNEM.js');
|
|
5705
|
+
const { detectMachine } = await import('./machine-SMT7B3HP.js');
|
|
5706
|
+
const { chooseVm, runVmInit, VmInitError } = await import('./init-67NCMKO6.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-VZ4PLLKF.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-MZCMXPPJ.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-7D2SESNF.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-7D2SESNF.js');
|
|
6039
|
+
const { renderStatus } = await import('./status-6GZN7A33.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-7D2SESNF.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-TS2U7ZAG.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-GBZA57ZZ.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-YNFCFPLT.js';
|
|
4
|
+
import { readOwnContainer } from './chunk-LSSTRAIO.js';
|
|
5
|
+
import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-GBZA57ZZ.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-TS2U7ZAG.js';
|
|
4
|
+
import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-Q7ZXPRTP.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-GBZA57ZZ.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-GBZA57ZZ.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-UIGVWGJL.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-GBZA57ZZ.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-GBZA57ZZ.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-GBZA57ZZ.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-GU7QECTA.js';
|
|
4
|
+
import './chunk-OUGHUEV7.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-OSVM5NHT.js';
|
|
4
4
|
import './chunk-AAGXH2FR.js';
|
|
5
5
|
import './chunk-E7R2GIAW.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-YNFCFPLT.js';
|
|
7
|
+
import './chunk-LSSTRAIO.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-Q7ZXPRTP.js';
|
|
12
12
|
import './chunk-TPLMLNME.js';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-GBZA57ZZ.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-GBZA57ZZ.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-GBZA57ZZ.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-GU7QECTA.js';
|
|
4
|
+
import './chunk-OUGHUEV7.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-GBZA57ZZ.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-GBZA57ZZ.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-LSSTRAIO.js';
|
|
4
|
+
import './chunk-GBZA57ZZ.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-WNW7BQ7H.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-WNW7BQ7H.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.20261117061535",
|
|
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.",
|