@outerlayer/cli 0.36.0-next.20261101112952 → 0.36.0-next.20261101121137
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-JYGQOG3Y.js → check-G4TVQKN3.js} +5 -5
- package/dist/{chunk-K462MYDV.js → chunk-3YX7FHYP.js} +3 -3
- package/dist/{chunk-XH444QQE.js → chunk-5DYL6FJA.js} +1 -1
- package/dist/{chunk-SRT7IYXD.js → chunk-6CYNPWZT.js} +65 -12
- package/dist/{chunk-2HODPJOF.js → chunk-GQ7VVBUA.js} +1 -1
- package/dist/{chunk-OQLF3IGM.js → chunk-K66FIV2S.js} +1 -1
- package/dist/{chunk-NWK55RMD.js → chunk-RGU6LHPI.js} +5 -5
- package/dist/{chunk-MWMXC57F.js → chunk-SRENPED2.js} +1 -1
- package/dist/{chunk-EC3D3HMN.js → chunk-YCUUZGFF.js} +1 -1
- package/dist/{cli-U4PDYOW4.js → cli-CMO2CMXG.js} +21 -21
- package/dist/{command-4IRZZKI6.js → command-GKVKI74I.js} +2 -2
- package/dist/{container-start-4ZGCCSVY.js → container-start-OMF3ZUIB.js} +3 -3
- package/dist/{doctor-K3PKBJF4.js → doctor-FEBZ3DZB.js} +3 -3
- package/dist/{host-checks-3M4UTGJO.js → host-checks-PUI32LIA.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{init-BKGJ74XC.js → init-O5H4TWA7.js} +1 -1
- package/dist/{init-OZEWZN4C.js → init-Y672J4BW.js} +1 -1
- package/dist/{init-cmd-4QB7ZBA2.js → init-cmd-HWAXEEOD.js} +1 -1
- package/dist/{loop-7RNVQCSE.js → loop-QJGPNIT4.js} +5 -5
- package/dist/{machine-QZZ2BNAA.js → machine-YKQSW22W.js} +1 -1
- package/dist/{runner-key-NIGSMVQN.js → runner-key-HUOW7X7B.js} +1 -1
- package/dist/{status-GDB2DSON.js → status-HDJ2V5UD.js} +1 -1
- package/dist/{update-steps-42DOJYQO.js → update-steps-F37GQWLJ.js} +2 -2
- package/dist/{work-proofs-cmd-MLC67VFR.js → work-proofs-cmd-CVDZARET.js} +1 -1
- package/dist/{work-proofs-record-7YBR6HSK.js → work-proofs-record-RCD7XSUK.js} +1 -1
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-11-
|
|
1
|
+
{"id":"2026-11-01T12:14:01.913Z+4689807","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { probeCredentials } from './chunk-
|
|
3
|
+
import { probeCredentials } from './chunk-RGU6LHPI.js';
|
|
4
4
|
import './chunk-7Y5VW4JG.js';
|
|
5
5
|
import './chunk-3JVYMD4G.js';
|
|
6
6
|
import './chunk-E7R2GIAW.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-GQ7VVBUA.js';
|
|
8
|
+
import './chunk-5DYL6FJA.js';
|
|
9
9
|
import './chunk-3LCXSD26.js';
|
|
10
10
|
import './chunk-LGV5N5DG.js';
|
|
11
11
|
import './chunk-EZRAR5YG.js';
|
|
12
|
-
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-
|
|
12
|
+
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-YCUUZGFF.js';
|
|
13
13
|
import './chunk-AF6DQJ5W.js';
|
|
14
14
|
import { findServiceUnit } from './chunk-MDFOS4OM.js';
|
|
15
|
-
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsClaudeCredential, claudeCredentialCheck, claimPermissionProblem, formerSkillQueues, formerSkillProblem } from './chunk-
|
|
15
|
+
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsClaudeCredential, claudeCredentialCheck, claimPermissionProblem, formerSkillQueues, formerSkillProblem } from './chunk-6CYNPWZT.js';
|
|
16
16
|
import './chunk-GDIVOYDA.js';
|
|
17
17
|
import './chunk-I3LTIAOR.js';
|
|
18
18
|
import './chunk-2PGI6RDE.js';
|
|
@@ -217,14 +217,14 @@ function governingDir(cwd) {
|
|
|
217
217
|
async function testProofMode(cwd) {
|
|
218
218
|
const dir = governingDir(cwd);
|
|
219
219
|
if (dir === void 0) return "any";
|
|
220
|
-
const { testProofIn } = await import('./host-checks-
|
|
220
|
+
const { testProofIn } = await import('./host-checks-PUI32LIA.js');
|
|
221
221
|
return testProofIn(dir);
|
|
222
222
|
}
|
|
223
223
|
async function judgeCheckName(cwd) {
|
|
224
224
|
const dir = governingDir(cwd);
|
|
225
225
|
if (dir === void 0) return {};
|
|
226
226
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
227
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
227
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-PUI32LIA.js');
|
|
228
228
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
229
229
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
230
230
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -369,7 +369,7 @@ async function runWorkProofs(opts) {
|
|
|
369
369
|
async function runWorkProofsCommand(opts) {
|
|
370
370
|
try {
|
|
371
371
|
if (opts.record) {
|
|
372
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
372
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-RCD7XSUK.js');
|
|
373
373
|
const result2 = await runWorkProofsRecord(opts);
|
|
374
374
|
process.exitCode = result2.exitCode;
|
|
375
375
|
return;
|
|
@@ -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-6CYNPWZT.js';
|
|
4
4
|
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-ALEUIS35.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -21,7 +21,7 @@ import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK
|
|
|
21
21
|
import { writeDockerClientConfig } from './chunk-MKSZHT6S.js';
|
|
22
22
|
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-A67A5SWG.js';
|
|
23
23
|
import { runnerCredentialProblem, builtinKind, keyRunnerFactory, optionalEgress, isBuiltinContainer, isBuiltinProcess, isBuiltinVm, egressSummary, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-UFRRRF64.js';
|
|
24
|
-
import { formatBytes, volumeBytes, allocatedBytes,
|
|
24
|
+
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-UIKUH2UQ.js';
|
|
25
25
|
import { writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, containerExecArgs, childEnvironment, readDu, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, runnerLabelValue, prepareRunArgs, containerRunArgs, JUDGE_MAX_TURNS, parseSize, homeCopyRunArgs, networkHelperRunArgs, JUDGE_DIR, HASH_ARGV, parseProgramHash, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, JUDGE_PROGRAM, MAX_ITEMS_BYTES, JUDGE_ITEMS, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-DZDTSDHQ.js';
|
|
26
26
|
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-CIUD3436.js';
|
|
27
27
|
import { firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, 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, CLAUDE_CODE_VERSION } from './chunk-OUPQTA7N.js';
|
|
@@ -2246,6 +2246,9 @@ function ranRuntimeStep(state) {
|
|
|
2246
2246
|
|
|
2247
2247
|
// src/runner/setup-scripts.ts
|
|
2248
2248
|
var SETUP_SCRIPT = ".outerlayer/setup.sh";
|
|
2249
|
+
function withoutBuildVariablesHint(steps) {
|
|
2250
|
+
return `${steps} on a managed runner run without the factory's build variables and before the build's gh login is written, so a command that needs a variable or calls gh fails`;
|
|
2251
|
+
}
|
|
2249
2252
|
var RUN_SCRIPT = 'if [ -x "$1" ]; then exec "$1"; else exec /bin/sh "$1"; fi';
|
|
2250
2253
|
function tailOf(result) {
|
|
2251
2254
|
const lines = `${result.stdout}
|
|
@@ -2276,7 +2279,10 @@ async function runSetupScripts(input) {
|
|
|
2276
2279
|
log.line(`${tag} setup ${entry.repository}: running ${SETUP_SCRIPT}`);
|
|
2277
2280
|
const started = Date.now();
|
|
2278
2281
|
const result = await exec(["sh", "-c", RUN_SCRIPT, "setup", SETUP_SCRIPT], path, { timeoutMs: input.timeoutMs });
|
|
2279
|
-
if (result.status !== 0 || result.timedOut === true)
|
|
2282
|
+
if (result.status !== 0 || result.timedOut === true) {
|
|
2283
|
+
if (input.withoutBuildVariables === true && result.timedOut !== true && !input.aborted()) log.line(`${tag} ${withoutBuildVariablesHint("setup scripts")}`);
|
|
2284
|
+
return { ok: false, reason: failureReason(entry, input, result) };
|
|
2285
|
+
}
|
|
2280
2286
|
log.line(`${tag} setup ${entry.repository}: ${SETUP_SCRIPT} passed in ${formatDuration(Date.now() - started)}`);
|
|
2281
2287
|
ran.push(entry.repository);
|
|
2282
2288
|
}
|
|
@@ -2337,7 +2343,7 @@ function lookup(records, key, nowMs) {
|
|
|
2337
2343
|
}
|
|
2338
2344
|
function savingRefusedBecause(input) {
|
|
2339
2345
|
if (!input.universalImage) return "its image comes from a devcontainer file";
|
|
2340
|
-
if (input.
|
|
2346
|
+
if (input.fleet) return "this runner is a fleet machine";
|
|
2341
2347
|
if (input.savedStateMax === "off") return "runner.housekeeping.savedStateMax is off";
|
|
2342
2348
|
return void 0;
|
|
2343
2349
|
}
|
|
@@ -2512,7 +2518,11 @@ async function runBuildSteps(input) {
|
|
|
2512
2518
|
let miseVariables;
|
|
2513
2519
|
if (input.runtimes !== void 0) {
|
|
2514
2520
|
const chosen = await provisionRuntimes({ repositories: ordered, exec, log, tag, refusals: input.runtimes.refusals, aborted: input.aborted });
|
|
2515
|
-
if (!chosen.ok)
|
|
2521
|
+
if (!chosen.ok) {
|
|
2522
|
+
if (chosen.aborted === true) return aborted();
|
|
2523
|
+
if (input.setup?.withoutBuildVariables === true && !input.aborted()) log.line(`${tag} ${withoutBuildVariablesHint("runtime installs")}`);
|
|
2524
|
+
return { ok: false, reason: chosen.reason };
|
|
2525
|
+
}
|
|
2516
2526
|
unpinnedRuntimes = chosen.unpinned;
|
|
2517
2527
|
miseVariables = chosen.variables;
|
|
2518
2528
|
}
|
|
@@ -2522,14 +2532,26 @@ async function runBuildSteps(input) {
|
|
|
2522
2532
|
if (input.aborted()) return aborted();
|
|
2523
2533
|
log.line(`${tag} lifecycle ${step.name} (${step.source})`);
|
|
2524
2534
|
const ran = await commandExec(step.argv, lifecycleDir);
|
|
2525
|
-
if (ran.status !== 0)
|
|
2535
|
+
if (ran.status !== 0) {
|
|
2536
|
+
if (input.setup?.withoutBuildVariables === true && !input.aborted()) log.line(`${tag} ${withoutBuildVariablesHint("lifecycle commands")}`);
|
|
2537
|
+
return { ok: false, reason: lifecycleFailureReason(step, ran.status) };
|
|
2538
|
+
}
|
|
2526
2539
|
}
|
|
2527
2540
|
if (input.aborted()) return aborted();
|
|
2528
2541
|
let missingSetupScripts;
|
|
2529
2542
|
let savedState = false;
|
|
2530
2543
|
if (input.setup !== void 0) {
|
|
2531
2544
|
const { setup } = input;
|
|
2532
|
-
const ran = await runSetupScripts({
|
|
2545
|
+
const ran = await runSetupScripts({
|
|
2546
|
+
repositories: ordered,
|
|
2547
|
+
exec: commandExec,
|
|
2548
|
+
log,
|
|
2549
|
+
tag,
|
|
2550
|
+
timeoutMs: setup.timeoutMs,
|
|
2551
|
+
limitMinutes: setup.limitMinutes,
|
|
2552
|
+
aborted: input.aborted,
|
|
2553
|
+
...setup.withoutBuildVariables === true ? { withoutBuildVariables: true } : {}
|
|
2554
|
+
});
|
|
2533
2555
|
if (!ran.ok) return ran.aborted === true ? aborted() : { ok: false, reason: ran.reason };
|
|
2534
2556
|
missingSetupScripts = ran.missing;
|
|
2535
2557
|
if (setup.saveState !== void 0 && setup.restored !== true && ran.ran.length > 0) {
|
|
@@ -2544,6 +2566,10 @@ async function runBuildSteps(input) {
|
|
|
2544
2566
|
}
|
|
2545
2567
|
if (input.aborted()) return aborted();
|
|
2546
2568
|
}
|
|
2569
|
+
if (input.afterSave !== void 0) {
|
|
2570
|
+
const after = await input.afterSave();
|
|
2571
|
+
if (!after.ok) return { ok: false, reason: after.reason };
|
|
2572
|
+
}
|
|
2547
2573
|
const staged = await input.stageContext();
|
|
2548
2574
|
if (staged.kind === "refused") return { ok: false, reason: staged.reason };
|
|
2549
2575
|
let controlPlane;
|
|
@@ -2678,7 +2704,7 @@ function savedStateMaxOf(config) {
|
|
|
2678
2704
|
}
|
|
2679
2705
|
async function planSavedState(input) {
|
|
2680
2706
|
const { config, runtime, log } = input;
|
|
2681
|
-
const refused2 = savingRefusedBecause({ universalImage: input.base !== void 0,
|
|
2707
|
+
const refused2 = savingRefusedBecause({ universalImage: input.base !== void 0, fleet: config.fleet === true, savedStateMax: savedStateMaxOf(config) });
|
|
2682
2708
|
if (refused2 !== void 0 || input.base === void 0) {
|
|
2683
2709
|
const why = refused2 ?? "its image comes from a devcontainer file";
|
|
2684
2710
|
log(`this build saves no state: ${why}`);
|
|
@@ -2709,7 +2735,7 @@ async function planSavedState(input) {
|
|
|
2709
2735
|
factory: keyRunnerFactory(config),
|
|
2710
2736
|
repositories,
|
|
2711
2737
|
imageDigest: input.base.digest,
|
|
2712
|
-
diskBytes:
|
|
2738
|
+
diskBytes: input.diskBytes
|
|
2713
2739
|
});
|
|
2714
2740
|
const found = lookup(readRecords(savedStatesDir(root)), key, input.now.getTime());
|
|
2715
2741
|
if (found.kind !== "none" && found.record.kind === "tar") {
|
|
@@ -2771,6 +2797,7 @@ function setupInputFor(input) {
|
|
|
2771
2797
|
limitMinutes: minutes,
|
|
2772
2798
|
restored: input.plan.restore !== void 0,
|
|
2773
2799
|
keyCommits: input.plan.keyCommits,
|
|
2800
|
+
...input.withoutBuildVariables === true ? { withoutBuildVariables: true } : {},
|
|
2774
2801
|
// A plan has a key exactly when the build may save a state. A build that starts from one is not asked to save.
|
|
2775
2802
|
...input.plan.key === void 0 ? {} : { saveState: input.saveState }
|
|
2776
2803
|
};
|
|
@@ -3528,6 +3555,7 @@ async function provisionMicroVm(input) {
|
|
|
3528
3555
|
}
|
|
3529
3556
|
async function provisionMicroVmOnce(input, allowRestore) {
|
|
3530
3557
|
const { config, runtime, item, itemKey, jobDir, log, tokens } = input;
|
|
3558
|
+
const managed = config.managed === true;
|
|
3531
3559
|
const { vm } = runtime;
|
|
3532
3560
|
const tag = itemTag({ item: item.number, organizationId: input.organizationId, claimId: input.claimId });
|
|
3533
3561
|
const logPath = join(jobDir, "provision.log");
|
|
@@ -3598,6 +3626,7 @@ async function provisionMicroVmOnce(input, allowRestore) {
|
|
|
3598
3626
|
tokens,
|
|
3599
3627
|
now: clockOf(input.now)(),
|
|
3600
3628
|
allowRestore,
|
|
3629
|
+
diskBytes: limits2.diskBytes,
|
|
3601
3630
|
log: tagged
|
|
3602
3631
|
});
|
|
3603
3632
|
const savedStatesPath = savedStatesDir(runnerDirPath);
|
|
@@ -3800,17 +3829,38 @@ async function provisionMicroVmOnce(input, allowRestore) {
|
|
|
3800
3829
|
return bail(`the build's read token for ${entry.repository} could not be had: ${refusalCode(err)}`);
|
|
3801
3830
|
}
|
|
3802
3831
|
}
|
|
3803
|
-
|
|
3832
|
+
let ghHeld = managed;
|
|
3833
|
+
let heldToken;
|
|
3834
|
+
const pushGhConfig = (token, onFailure) => {
|
|
3804
3835
|
pushes = pushes.then(async () => {
|
|
3805
3836
|
if (!vmAlive(runtime, state)) return;
|
|
3806
3837
|
await writeGuestGhConfig(runtime, state, token);
|
|
3807
|
-
}, void 0).catch(
|
|
3838
|
+
}, void 0).catch(onFailure);
|
|
3839
|
+
return pushes;
|
|
3840
|
+
};
|
|
3841
|
+
tokens.onRead((token) => {
|
|
3842
|
+
if (ghHeld) {
|
|
3843
|
+
heldToken = token;
|
|
3844
|
+
return;
|
|
3845
|
+
}
|
|
3846
|
+
void pushGhConfig(token, reportWrite);
|
|
3808
3847
|
});
|
|
3809
3848
|
await pushes;
|
|
3810
3849
|
firstWriteSettled = true;
|
|
3811
3850
|
if (firstWriteFailure !== void 0) return bail(`the build's gh configuration could not be written: ${describeCallFailure(firstWriteFailure)}`);
|
|
3812
3851
|
tokens.markUsed("read");
|
|
3813
3852
|
environment.credentials = tokens.used();
|
|
3853
|
+
const releaseGhConfig = async () => {
|
|
3854
|
+
ghHeld = false;
|
|
3855
|
+
if (heldToken === void 0) return { ok: true };
|
|
3856
|
+
let failure3;
|
|
3857
|
+
await pushGhConfig(heldToken, (err) => {
|
|
3858
|
+
failure3 = err;
|
|
3859
|
+
reportWrite(err);
|
|
3860
|
+
});
|
|
3861
|
+
heldToken = void 0;
|
|
3862
|
+
return failure3 === void 0 ? { ok: true } : { ok: false, reason: `the build's gh configuration could not be written: ${describeCallFailure(failure3)}` };
|
|
3863
|
+
};
|
|
3814
3864
|
const uidOf = async (user) => {
|
|
3815
3865
|
const probe = await asRoot(runtime, state, ["id", "-u", user]);
|
|
3816
3866
|
return uidFromProbe(probe);
|
|
@@ -3865,11 +3915,12 @@ async function provisionMicroVmOnce(input, allowRestore) {
|
|
|
3865
3915
|
removeVolume: async () => void 0,
|
|
3866
3916
|
log: tagged
|
|
3867
3917
|
});
|
|
3918
|
+
const stepEnv = managed ? buildEnvironment({ ...envInput, factoryVariables: [] }) : env;
|
|
3868
3919
|
const request = (argv, workdir, variables) => ({
|
|
3869
3920
|
argv,
|
|
3870
3921
|
user: agentUser,
|
|
3871
3922
|
cwd: workdir,
|
|
3872
|
-
env: execEnvironment(state.imageEnv, withMiseVariables(
|
|
3923
|
+
env: execEnvironment(state.imageEnv, withMiseVariables(stepEnv, variables))
|
|
3873
3924
|
});
|
|
3874
3925
|
const steps = await runBuildSteps({
|
|
3875
3926
|
repository,
|
|
@@ -3909,7 +3960,8 @@ async function provisionMicroVmOnce(input, allowRestore) {
|
|
|
3909
3960
|
...input.requireBuildSkill === true ? { requireBuildSkill: true } : {},
|
|
3910
3961
|
// A build on the universal image, or on an image built from it, chooses and installs its runtimes.
|
|
3911
3962
|
...runtimeStepInput(report, services),
|
|
3912
|
-
setup: setupInputFor({ setupMinutes: config.build?.setupMinutes, plan, saveState })
|
|
3963
|
+
setup: setupInputFor({ setupMinutes: config.build?.setupMinutes, plan, saveState, withoutBuildVariables: managed }),
|
|
3964
|
+
afterSave: releaseGhConfig
|
|
3913
3965
|
});
|
|
3914
3966
|
if (!steps.ok) return settleFailedSteps(steps, { giveUp: giveUpState, bail });
|
|
3915
3967
|
state.startCommit = steps.startCommit;
|
|
@@ -9930,6 +9982,7 @@ async function provisionContainerOnce(input, allowRestore) {
|
|
|
9930
9982
|
tokens,
|
|
9931
9983
|
now: clockOf(input.now)(),
|
|
9932
9984
|
allowRestore,
|
|
9985
|
+
diskBytes: parseSize(config.build?.disk ?? DEFAULT_BUILD_DISK) ?? 0,
|
|
9933
9986
|
log: tagged
|
|
9934
9987
|
});
|
|
9935
9988
|
const savedStatesPath = savedStatesDir(runnerDir(config.configPath));
|
|
@@ -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-6CYNPWZT.js';
|
|
4
4
|
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-6GA5BJTH.js';
|
|
5
5
|
import { RunnerAlreadyRunningError, readPidFile } from './chunk-WAZJPDR2.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 { helperSocketPath } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-6CYNPWZT.js';
|
|
4
4
|
import { UNIT_MARKER } from './chunk-6GA5BJTH.js';
|
|
5
5
|
import { runnerDir } from './chunk-WT7J2627.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
@@ -3,14 +3,14 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-7Y5VW4JG.js';
|
|
4
4
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
5
5
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
6
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
7
|
-
import { renderUpdateSteps } from './chunk-
|
|
6
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-GQ7VVBUA.js';
|
|
7
|
+
import { renderUpdateSteps } from './chunk-5DYL6FJA.js';
|
|
8
8
|
import { RUNNER_PROTOCOL } from './chunk-3LCXSD26.js';
|
|
9
9
|
import { writeFleetState } from './chunk-LGV5N5DG.js';
|
|
10
10
|
import { writePendingUpdate } from './chunk-EZRAR5YG.js';
|
|
11
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
11
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-YCUUZGFF.js';
|
|
12
12
|
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-AF6DQJ5W.js';
|
|
13
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionProcess, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-
|
|
13
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionProcess, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-6CYNPWZT.js';
|
|
14
14
|
import { RepoFilter } from './chunk-2QW2PLWT.js';
|
|
15
15
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
16
16
|
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-ALEUIS35.js';
|
|
@@ -3542,7 +3542,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3542
3542
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3543
3543
|
const held = heldClaudeCredential();
|
|
3544
3544
|
const env = held === void 0 ? process.env : { ...process.env, [held.variable]: held.value };
|
|
3545
|
-
return (await import('./check-
|
|
3545
|
+
return (await import('./check-G4TVQKN3.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3546
3546
|
},
|
|
3547
3547
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3548
3548
|
log
|
|
@@ -1224,7 +1224,7 @@ async function gatherDoctorChecks() {
|
|
|
1224
1224
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1225
1225
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1226
1226
|
} else if (hasRunnerBlock(configPath)) {
|
|
1227
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1227
|
+
const { runnerHostChecks } = await import('./doctor-FEBZ3DZB.js');
|
|
1228
1228
|
const gateway = (() => {
|
|
1229
1229
|
try {
|
|
1230
1230
|
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-6CYNPWZT.js';
|
|
4
4
|
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-6GA5BJTH.js';
|
|
5
5
|
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-UFRRRF64.js';
|
|
6
6
|
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-UIKUH2UQ.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-SRENPED2.js';
|
|
4
4
|
import './chunk-U553JKMO.js';
|
|
5
5
|
import './chunk-OHQMGLJP.js';
|
|
6
6
|
import './chunk-3SQZ5LIK.js';
|
|
@@ -3926,13 +3926,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3926
3926
|
if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
|
|
3927
3927
|
`);
|
|
3928
3928
|
}
|
|
3929
|
-
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-
|
|
3929
|
+
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-HWAXEEOD.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
|
|
3930
3930
|
if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
|
|
3931
3931
|
else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
|
|
3932
3932
|
return;
|
|
3933
3933
|
}
|
|
3934
3934
|
await installMachineSkillsForSetup();
|
|
3935
|
-
const { runInitCommand } = await import('./init-cmd-
|
|
3935
|
+
const { runInitCommand } = await import('./init-cmd-HWAXEEOD.js');
|
|
3936
3936
|
const code = await runInitCommand(
|
|
3937
3937
|
{ json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
|
|
3938
3938
|
{
|
|
@@ -5021,7 +5021,7 @@ differs from HEAD.
|
|
|
5021
5021
|
fail(trackerNumberError("--pr", opts.pr));
|
|
5022
5022
|
return;
|
|
5023
5023
|
}
|
|
5024
|
-
const { runWorkProofsCommand } = await import('./work-proofs-cmd-
|
|
5024
|
+
const { runWorkProofsCommand } = await import('./work-proofs-cmd-CVDZARET.js');
|
|
5025
5025
|
await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
|
|
5026
5026
|
});
|
|
5027
5027
|
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) => {
|
|
@@ -5168,7 +5168,7 @@ function registerRunnerCommands(program2) {
|
|
|
5168
5168
|
const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
|
|
5169
5169
|
runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
|
|
5170
5170
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-4HXUXX3M.js');
|
|
5171
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5171
|
+
const { start, RunnerStartError } = await import('./loop-QJGPNIT4.js');
|
|
5172
5172
|
const { RunnerAlreadyRunningError } = await import('./pidfile-FLFVRKVW.js');
|
|
5173
5173
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5174
5174
|
try {
|
|
@@ -5187,8 +5187,8 @@ function registerRunnerCommands(program2) {
|
|
|
5187
5187
|
"\nReads OUTERLAYER_URL, OUTERLAYER_APP_ID, OUTERLAYER_API_KEY, OUTERLAYER_RUNNER_NAME and one Claude credential\n(CLAUDE_CODE_OAUTH_TOKEN or ANTHROPIC_API_KEY) from the environment. OUTERLAYER_AGENT\nis optional and defaults to claude. On a later start it refuses variables that disagree with the config in the volume.\nThe image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use `runner start`.\n"
|
|
5188
5188
|
).action(async () => {
|
|
5189
5189
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-4HXUXX3M.js');
|
|
5190
|
-
const { containerStart } = await import('./container-start-
|
|
5191
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5190
|
+
const { containerStart } = await import('./container-start-OMF3ZUIB.js');
|
|
5191
|
+
const { start, RunnerStartError } = await import('./loop-QJGPNIT4.js');
|
|
5192
5192
|
const { RunnerAlreadyRunningError } = await import('./pidfile-FLFVRKVW.js');
|
|
5193
5193
|
try {
|
|
5194
5194
|
const result = await containerStart({
|
|
@@ -5212,14 +5212,14 @@ function registerRunnerCommands(program2) {
|
|
|
5212
5212
|
).action(async (opts) => {
|
|
5213
5213
|
const { defaultRunnerConfigPath } = await import('./config-4HXUXX3M.js');
|
|
5214
5214
|
const { runnerDir } = await import('./paths-XEYE7OZ2.js');
|
|
5215
|
-
const { runUpdateSteps } = await import('./update-steps-
|
|
5215
|
+
const { runUpdateSteps } = await import('./update-steps-F37GQWLJ.js');
|
|
5216
5216
|
const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
|
|
5217
5217
|
process.stdout.write(`${text}
|
|
5218
5218
|
`);
|
|
5219
5219
|
});
|
|
5220
5220
|
runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
|
|
5221
5221
|
const { defaultRunnerConfigPath } = await import('./config-4HXUXX3M.js');
|
|
5222
|
-
const { runRunnerCheck } = await import('./check-
|
|
5222
|
+
const { runRunnerCheck } = await import('./check-G4TVQKN3.js');
|
|
5223
5223
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5224
5224
|
const result = await runRunnerCheck(configPath);
|
|
5225
5225
|
if (!result.ok) {
|
|
@@ -5253,13 +5253,13 @@ function registerRunnerCommands(program2) {
|
|
|
5253
5253
|
}
|
|
5254
5254
|
}
|
|
5255
5255
|
const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
|
|
5256
|
-
if (buildCpusMax !== void 0 && !(await import('./command-
|
|
5256
|
+
if (buildCpusMax !== void 0 && !(await import('./command-GKVKI74I.js')).cpusAreValid(buildCpusMax)) {
|
|
5257
5257
|
fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
|
|
5258
5258
|
return;
|
|
5259
5259
|
}
|
|
5260
5260
|
try {
|
|
5261
5261
|
if (opts.service === true) {
|
|
5262
|
-
const { installServiceCommand } = await import('./command-
|
|
5262
|
+
const { installServiceCommand } = await import('./command-GKVKI74I.js');
|
|
5263
5263
|
const result2 = await installServiceCommand({
|
|
5264
5264
|
configPath,
|
|
5265
5265
|
print: opts.print,
|
|
@@ -5317,7 +5317,7 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
|
|
|
5317
5317
|
return;
|
|
5318
5318
|
}
|
|
5319
5319
|
const { defaultRunnerConfigPath } = await import('./config-4HXUXX3M.js');
|
|
5320
|
-
const { uninstallServiceCommand } = await import('./command-
|
|
5320
|
+
const { uninstallServiceCommand } = await import('./command-GKVKI74I.js');
|
|
5321
5321
|
const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
|
|
5322
5322
|
if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
|
|
5323
5323
|
`);
|
|
@@ -5345,10 +5345,10 @@ already in claude.env is used.
|
|
|
5345
5345
|
`
|
|
5346
5346
|
).action(async (opts) => {
|
|
5347
5347
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-4HXUXX3M.js');
|
|
5348
|
-
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-
|
|
5349
|
-
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-
|
|
5350
|
-
const { detectMachine } = await import('./machine-
|
|
5351
|
-
const { chooseVm, runVmInit, VmInitError } = await import('./init-
|
|
5348
|
+
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-Y672J4BW.js');
|
|
5349
|
+
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-HUOW7X7B.js');
|
|
5350
|
+
const { detectMachine } = await import('./machine-YKQSW22W.js');
|
|
5351
|
+
const { chooseVm, runVmInit, VmInitError } = await import('./init-O5H4TWA7.js');
|
|
5352
5352
|
const { AGENT_COMMANDS, credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-FK3SUT3Q.js');
|
|
5353
5353
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5354
5354
|
if (opts.agent !== void 0 && !isAgentName(opts.agent)) {
|
|
@@ -5499,7 +5499,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
|
|
|
5499
5499
|
let serviceUp = false;
|
|
5500
5500
|
let restart;
|
|
5501
5501
|
if (installedLayout) {
|
|
5502
|
-
const { installServiceCommand } = await import('./command-
|
|
5502
|
+
const { installServiceCommand } = await import('./command-GKVKI74I.js');
|
|
5503
5503
|
const service = await installServiceCommand({
|
|
5504
5504
|
configPath,
|
|
5505
5505
|
entryPath: process.argv[1] ?? "",
|
|
@@ -5629,7 +5629,7 @@ Next:
|
|
|
5629
5629
|
});
|
|
5630
5630
|
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) => {
|
|
5631
5631
|
const { defaultRunnerConfigPath } = await import('./config-4HXUXX3M.js');
|
|
5632
|
-
const { requestStop } = await import('./loop-
|
|
5632
|
+
const { requestStop } = await import('./loop-QJGPNIT4.js');
|
|
5633
5633
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5634
5634
|
const { runnerImageVersion } = await import('./image-tag-WBD57QBN.js');
|
|
5635
5635
|
await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
|
|
@@ -5637,8 +5637,8 @@ Next:
|
|
|
5637
5637
|
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) => {
|
|
5638
5638
|
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-4HXUXX3M.js');
|
|
5639
5639
|
const { jobsDir, runnerDir } = await import('./paths-XEYE7OZ2.js');
|
|
5640
|
-
const { listJobFiles, runnerProcessState } = await import('./loop-
|
|
5641
|
-
const { renderStatus } = await import('./status-
|
|
5640
|
+
const { listJobFiles, runnerProcessState } = await import('./loop-QJGPNIT4.js');
|
|
5641
|
+
const { renderStatus } = await import('./status-HDJ2V5UD.js');
|
|
5642
5642
|
const { readHousekeepingRecord } = await import('./record-JMZOXD4R.js');
|
|
5643
5643
|
const path2 = await import('path');
|
|
5644
5644
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
@@ -5704,7 +5704,7 @@ Next:
|
|
|
5704
5704
|
});
|
|
5705
5705
|
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) => {
|
|
5706
5706
|
const { defaultRunnerConfigPath } = await import('./config-4HXUXX3M.js');
|
|
5707
|
-
const { listJobFiles } = await import('./loop-
|
|
5707
|
+
const { listJobFiles } = await import('./loop-QJGPNIT4.js');
|
|
5708
5708
|
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-FEITSC2V.js');
|
|
5709
5709
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5710
5710
|
const jobs = listJobFiles(configPath);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { realOwnership, accountNamed, handOver, runRunnerInstall, launcherSummary, restartNote, accountIdentity } from './chunk-RIHB3HA2.js';
|
|
4
|
-
import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-
|
|
4
|
+
import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-K66FIV2S.js';
|
|
5
5
|
import './chunk-7J7HRYZ3.js';
|
|
6
6
|
import { currentLink, execStartCommand } from './chunk-AF6DQJ5W.js';
|
|
7
|
-
import { detectMachine, ensureFirecrackerAndJailer } from './chunk-
|
|
7
|
+
import { detectMachine, ensureFirecrackerAndJailer } from './chunk-6CYNPWZT.js';
|
|
8
8
|
import './chunk-GDIVOYDA.js';
|
|
9
9
|
import './chunk-I3LTIAOR.js';
|
|
10
10
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-
|
|
4
|
-
import { readOwnContainer } from './chunk-
|
|
5
|
-
import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-
|
|
3
|
+
import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-GQ7VVBUA.js';
|
|
4
|
+
import { readOwnContainer } from './chunk-5DYL6FJA.js';
|
|
5
|
+
import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-6CYNPWZT.js';
|
|
6
6
|
import './chunk-GDIVOYDA.js';
|
|
7
7
|
import './chunk-I3LTIAOR.js';
|
|
8
8
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-
|
|
4
|
-
import { helperBinaryFor } from './chunk-
|
|
3
|
+
import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-YCUUZGFF.js';
|
|
4
|
+
import { helperBinaryFor } from './chunk-K66FIV2S.js';
|
|
5
5
|
import { launcherCheck } from './chunk-7J7HRYZ3.js';
|
|
6
6
|
import './chunk-AF6DQJ5W.js';
|
|
7
|
-
import { needsClaudeCredential, claudeCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, firstLine, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-
|
|
7
|
+
import { needsClaudeCredential, claudeCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, firstLine, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-6CYNPWZT.js';
|
|
8
8
|
import './chunk-GDIVOYDA.js';
|
|
9
9
|
import './chunk-I3LTIAOR.js';
|
|
10
10
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { MAX_CHECK_ITEMS_BYTES, checksIn, commandItems, isJudgeCheck, makeRecorder, readDefinitions, runHostChecks, testProofIn, timeoutAfter } from './chunk-
|
|
3
|
+
export { MAX_CHECK_ITEMS_BYTES, checksIn, commandItems, isJudgeCheck, makeRecorder, readDefinitions, runHostChecks, testProofIn, timeoutAfter } from './chunk-6CYNPWZT.js';
|
|
4
4
|
import './chunk-GDIVOYDA.js';
|
|
5
5
|
import './chunk-I3LTIAOR.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
package/dist/index.js
CHANGED
|
@@ -26,5 +26,5 @@ if (argv[0] === "claude") {
|
|
|
26
26
|
process.exit(await runClaudeLauncher(argv.slice(1)));
|
|
27
27
|
}
|
|
28
28
|
(await import('./hook-fast-3HPWMSFB.js')).recordLinkExitFailure(argv);
|
|
29
|
-
var { runCli } = await import('./cli-
|
|
29
|
+
var { runCli } = await import('./cli-CMO2CMXG.js');
|
|
30
30
|
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-6CYNPWZT.js';
|
|
5
5
|
import './chunk-GDIVOYDA.js';
|
|
6
6
|
import './chunk-I3LTIAOR.js';
|
|
7
7
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, prepareRunnerInit, readConfigObject, runRunnerInit, writeRunnerInit } from './chunk-
|
|
3
|
+
export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, prepareRunnerInit, readConfigObject, runRunnerInit, writeRunnerInit } from './chunk-6CYNPWZT.js';
|
|
4
4
|
import './chunk-GDIVOYDA.js';
|
|
5
5
|
import './chunk-I3LTIAOR.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { summarizeChecks, summaryText, renderDoctorText } from './chunk-
|
|
3
|
+
import { summarizeChecks, summaryText, renderDoctorText } from './chunk-SRENPED2.js';
|
|
4
4
|
import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-CJJDJ7AT.js';
|
|
5
5
|
import './chunk-U553JKMO.js';
|
|
6
6
|
import './chunk-OHQMGLJP.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { RunnerStartError, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-
|
|
3
|
+
export { RunnerStartError, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-RGU6LHPI.js';
|
|
4
4
|
import './chunk-7Y5VW4JG.js';
|
|
5
5
|
import './chunk-3JVYMD4G.js';
|
|
6
6
|
import './chunk-E7R2GIAW.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-GQ7VVBUA.js';
|
|
8
|
+
import './chunk-5DYL6FJA.js';
|
|
9
9
|
import './chunk-3LCXSD26.js';
|
|
10
10
|
import './chunk-LGV5N5DG.js';
|
|
11
11
|
import './chunk-EZRAR5YG.js';
|
|
12
|
-
import './chunk-
|
|
12
|
+
import './chunk-YCUUZGFF.js';
|
|
13
13
|
import './chunk-AF6DQJ5W.js';
|
|
14
|
-
import './chunk-
|
|
14
|
+
import './chunk-6CYNPWZT.js';
|
|
15
15
|
import './chunk-GDIVOYDA.js';
|
|
16
16
|
import './chunk-I3LTIAOR.js';
|
|
17
17
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-
|
|
3
|
+
export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-6CYNPWZT.js';
|
|
4
4
|
import './chunk-GDIVOYDA.js';
|
|
5
5
|
import './chunk-I3LTIAOR.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { readConfigObject, RunnerInitError } from './chunk-
|
|
3
|
+
import { readConfigObject, RunnerInitError } from './chunk-6CYNPWZT.js';
|
|
4
4
|
import './chunk-GDIVOYDA.js';
|
|
5
5
|
import './chunk-I3LTIAOR.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-
|
|
3
|
+
import { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-6CYNPWZT.js';
|
|
4
4
|
import './chunk-GDIVOYDA.js';
|
|
5
5
|
import './chunk-I3LTIAOR.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-5DYL6FJA.js';
|
|
4
|
+
import './chunk-6CYNPWZT.js';
|
|
5
5
|
import './chunk-GDIVOYDA.js';
|
|
6
6
|
import './chunk-I3LTIAOR.js';
|
|
7
7
|
import './chunk-2PGI6RDE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { classifyProofs, classifyProofsAt, otherPullRequestHeads, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-
|
|
3
|
+
export { classifyProofs, classifyProofsAt, otherPullRequestHeads, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-3YX7FHYP.js';
|
|
4
4
|
import './chunk-GDIVOYDA.js';
|
|
5
5
|
import './chunk-VIJWXQMT.js';
|
|
6
6
|
import './chunk-IP7BIBXJ.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, classifyProofsAt, runWorkProofs, proofsCommentId, kindProblem, proofsCommentBody } from './chunk-
|
|
3
|
+
import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, classifyProofsAt, runWorkProofs, proofsCommentId, kindProblem, proofsCommentBody } from './chunk-3YX7FHYP.js';
|
|
4
4
|
import { runWorkComment } from './chunk-A7D5BMII.js';
|
|
5
5
|
import { runEmitDemo } from './chunk-H3TI7BQX.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.36.0-next.
|
|
3
|
+
"version": "0.36.0-next.20261101121137",
|
|
4
4
|
"description": "OuterLayer CLI — commands: init, claude, connect, doctor, login, logout, sync, daemon (alias: watch), emit, demo, findings, work, 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.",
|