@outerlayer/cli 0.36.0-next.20261101112952 → 0.36.0-next.20261101131017
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-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-H3TI7BQX.js → chunk-KCUX5I5W.js} +28 -21
- package/dist/{chunk-NWK55RMD.js → chunk-RGU6LHPI.js} +5 -5
- package/dist/{chunk-MWMXC57F.js → chunk-SRENPED2.js} +1 -1
- package/dist/{chunk-K462MYDV.js → chunk-W46566FP.js} +3 -3
- package/dist/{chunk-EC3D3HMN.js → chunk-YCUUZGFF.js} +1 -1
- package/dist/{cli-U4PDYOW4.js → cli-EMQEIYSR.js} +23 -23
- package/dist/{command-4IRZZKI6.js → command-GKVKI74I.js} +2 -2
- package/dist/{container-start-4ZGCCSVY.js → container-start-OMF3ZUIB.js} +3 -3
- package/dist/{demo-voice-cmd-SMR3QVZA.js → demo-voice-cmd-H4PCO2PT.js} +1 -1
- package/dist/{doctor-K3PKBJF4.js → doctor-FEBZ3DZB.js} +3 -3
- package/dist/{emit-demo-cmd-ELRNY5FA.js → emit-demo-cmd-VKGN74NW.js} +1 -1
- 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/recorder.cjs +23 -22
- 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-3GPGH4RL.js} +1 -1
- package/dist/{work-proofs-record-7YBR6HSK.js → work-proofs-record-AC4GYMQA.js} +2 -2
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/references/agent-briefs.md +2 -2
- package/skill-pack/maintained/outerlayer-evidence/SKILL.md +2 -2
- package/skill-pack/maintained/outerlayer-evidence/references/demo.md +11 -13
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-11-
|
|
1
|
+
{"id":"2026-11-01T13:12:46.857Z+5d02743","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';
|
|
@@ -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';
|
|
@@ -2495,18 +2495,20 @@ async function measureDemo(video, duration, tools) {
|
|
|
2495
2495
|
|
|
2496
2496
|
// src/demo/media.ts
|
|
2497
2497
|
var SEGMENT_FPS = 25;
|
|
2498
|
-
|
|
2498
|
+
var DEMO_CRF = 38;
|
|
2499
|
+
function encodeArgs(duration, output, crf) {
|
|
2499
2500
|
return [
|
|
2500
2501
|
"-c:v",
|
|
2501
2502
|
"libvpx-vp9",
|
|
2502
2503
|
"-b:v",
|
|
2503
2504
|
"0",
|
|
2504
2505
|
"-crf",
|
|
2505
|
-
|
|
2506
|
+
String(crf),
|
|
2507
|
+
// The `good` encoder makes a file about half the size of the `realtime` one at the same quality.
|
|
2506
2508
|
"-deadline",
|
|
2507
|
-
"
|
|
2509
|
+
"good",
|
|
2508
2510
|
"-cpu-used",
|
|
2509
|
-
"
|
|
2511
|
+
"4",
|
|
2510
2512
|
"-row-mt",
|
|
2511
2513
|
"1",
|
|
2512
2514
|
"-pix_fmt",
|
|
@@ -2568,7 +2570,7 @@ function segmentsArgs(plan) {
|
|
|
2568
2570
|
"[vout]",
|
|
2569
2571
|
...plan.narrated ? ["-map", "[speech]", "-c:a", "libopus", "-b:a", "48k"] : ["-an"],
|
|
2570
2572
|
...keyFrames.length > 0 ? ["-force_key_frames", keyFrames.map((at) => at.toFixed(3)).join(",")] : [],
|
|
2571
|
-
...encodeArgs(plan.duration, plan.output)
|
|
2573
|
+
...encodeArgs(plan.duration, plan.output, plan.crf ?? DEMO_CRF)
|
|
2572
2574
|
];
|
|
2573
2575
|
}
|
|
2574
2576
|
function rangeArgs(plan) {
|
|
@@ -2587,7 +2589,7 @@ function rangeArgs(plan) {
|
|
|
2587
2589
|
"-map",
|
|
2588
2590
|
"0:v:0",
|
|
2589
2591
|
...plan.narrated ? ["-map", "0:a:0", "-c:a", "libopus", "-b:a", "48k"] : ["-an"],
|
|
2590
|
-
...encodeArgs(duration, plan.output)
|
|
2592
|
+
...encodeArgs(duration, plan.output, DEMO_CRF)
|
|
2591
2593
|
];
|
|
2592
2594
|
}
|
|
2593
2595
|
function durationFromProbe(formatDuration, lastPacketLines) {
|
|
@@ -3546,6 +3548,7 @@ function deadAirRefusal(problems) {
|
|
|
3546
3548
|
return `the demo holds dead air: ${problems.join("; ")} \u2014 tell each step as a beat with demo.say(), so the demo shows only narrated steps`;
|
|
3547
3549
|
}
|
|
3548
3550
|
var millis2 = (seconds) => Math.round(seconds * 1e3) / 1e3;
|
|
3551
|
+
var WHOLE_CRF_STEPS = [DEMO_CRF, 44, 50];
|
|
3549
3552
|
async function renderWhole(params) {
|
|
3550
3553
|
const { manifest, manifestDir, videoPath, work, speakerFor, narrated, media } = params;
|
|
3551
3554
|
const output = join(work, "demo.webm");
|
|
@@ -3613,21 +3616,25 @@ async function renderWhole(params) {
|
|
|
3613
3616
|
}
|
|
3614
3617
|
}
|
|
3615
3618
|
const viewport = manifest.viewport;
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3619
|
+
for (const crf of WHOLE_CRF_STEPS) {
|
|
3620
|
+
try {
|
|
3621
|
+
media.renderSegments({
|
|
3622
|
+
video: videoPath,
|
|
3623
|
+
spans: timeline.spans,
|
|
3624
|
+
outStarts: timeline.outStarts,
|
|
3625
|
+
duration: timeline.duration,
|
|
3626
|
+
crossfade: CROSSFADE,
|
|
3627
|
+
chapterStarts: timeline.chapters.map((range) => range.start),
|
|
3628
|
+
output,
|
|
3629
|
+
narrated,
|
|
3630
|
+
speech,
|
|
3631
|
+
...viewport === void 0 ? {} : { crop: viewport },
|
|
3632
|
+
...crf === DEMO_CRF ? {} : { crf }
|
|
3633
|
+
});
|
|
3634
|
+
} catch (err) {
|
|
3635
|
+
throw new EmitDemoError(`ffmpeg could not cut the demo: ${String(err)}`);
|
|
3636
|
+
}
|
|
3637
|
+
if (statSync(output).size <= ARTIFACT_MAX_BYTES) break;
|
|
3631
3638
|
}
|
|
3632
3639
|
let measure;
|
|
3633
3640
|
try {
|
|
@@ -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);
|
|
@@ -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-AC4GYMQA.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 { 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
|
{
|
|
@@ -4392,7 +4392,7 @@ its criterion, and the new record retires the old record. The id must be the ite
|
|
|
4392
4392
|
as \`work demo --item <n> --json\` prints it.
|
|
4393
4393
|
`
|
|
4394
4394
|
).action(async (manifest, opts) => {
|
|
4395
|
-
const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-
|
|
4395
|
+
const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-VKGN74NW.js');
|
|
4396
4396
|
let item;
|
|
4397
4397
|
if (opts.item !== void 0) {
|
|
4398
4398
|
item = parseTrackerNumber(opts.item);
|
|
@@ -4435,7 +4435,7 @@ as \`work demo --item <n> --json\` prints it.
|
|
|
4435
4435
|
}
|
|
4436
4436
|
});
|
|
4437
4437
|
program2.command("demo-voice", { hidden: true }).description("Speak demo lines for a recorder: JSON lines in on stdin, out on stdout").action(async () => {
|
|
4438
|
-
const { runDemoVoice } = await import('./demo-voice-cmd-
|
|
4438
|
+
const { runDemoVoice } = await import('./demo-voice-cmd-H4PCO2PT.js');
|
|
4439
4439
|
await runDemoVoice();
|
|
4440
4440
|
});
|
|
4441
4441
|
const demoCmd = program2.command("demo").description("Record demos with the recorder this CLI carries");
|
|
@@ -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-3GPGH4RL.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,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { realSpeaker } from './chunk-
|
|
3
|
+
import { realSpeaker } from './chunk-KCUX5I5W.js';
|
|
4
4
|
import './chunk-ER6KQCVJ.js';
|
|
5
5
|
import './chunk-CIEX2ZKQ.js';
|
|
6
6
|
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 { EmitDemoError, realSpeaker, runEmitDemo } from './chunk-
|
|
3
|
+
export { EmitDemoError, realSpeaker, runEmitDemo } from './chunk-KCUX5I5W.js';
|
|
4
4
|
import './chunk-ER6KQCVJ.js';
|
|
5
5
|
import './chunk-CIEX2ZKQ.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
|
-
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-EMQEIYSR.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';
|
package/dist/recorder.cjs
CHANGED
|
@@ -196,6 +196,7 @@ function pointerScript() {
|
|
|
196
196
|
if (!root) return;
|
|
197
197
|
const circle = document.createElement("div");
|
|
198
198
|
circle.setAttribute("data-outerlayer-pointer", "");
|
|
199
|
+
circle.setAttribute("data-outerlayer-click", "");
|
|
199
200
|
circle.style.cssText = "position:fixed;left:" + cx + "px;top:" + cy + "px;width:12px;height:12px;pointer-events:none;z-index:2147483646;border-radius:50%;border:2px solid rgba(59,130,246,.9);background:rgba(59,130,246,.2);transform:translate(-50%,-50%);";
|
|
200
201
|
root.appendChild(circle);
|
|
201
202
|
const began = performance.now();
|
|
@@ -416,11 +417,15 @@ function stylesheetScript(css) {
|
|
|
416
417
|
}
|
|
417
418
|
var HIDE_OVERLAY = "[data-outerlayer-mask]{visibility:hidden!important}";
|
|
418
419
|
var HIDE_POINTER = "[data-outerlayer-pointer],[data-outerlayer-highlight]{visibility:hidden!important}";
|
|
420
|
+
var CLICK_RING_WAIT = 1e3;
|
|
419
421
|
async function takeFrame(page, params) {
|
|
420
422
|
const { path: path$1, options, masks, fullPage = false, hideOverlay = false } = params;
|
|
421
423
|
if (options.fonts) await page.evaluate(() => document.fonts.ready.then(() => void 0));
|
|
422
424
|
const css = stylesheetFor(options);
|
|
423
425
|
if (css !== "") await page.evaluate(stylesheetScript(css));
|
|
426
|
+
if (!hideOverlay) {
|
|
427
|
+
await page.waitForFunction(() => document.querySelector("[data-outerlayer-click]") === null, void 0, { timeout: CLICK_RING_WAIT }).catch(() => void 0);
|
|
428
|
+
}
|
|
424
429
|
const bytes = await page.screenshot({
|
|
425
430
|
// Motion stops for the frame even when the video keeps it, so two runs give the same frame.
|
|
426
431
|
animations: "disabled",
|
|
@@ -429,8 +434,8 @@ async function takeFrame(page, params) {
|
|
|
429
434
|
fullPage,
|
|
430
435
|
mask: masks,
|
|
431
436
|
maskColor: MASK_COLOR,
|
|
432
|
-
|
|
433
|
-
${HIDE_POINTER}` :
|
|
437
|
+
...hideOverlay ? { style: `${HIDE_OVERLAY}
|
|
438
|
+
${HIDE_POINTER}` } : {}
|
|
434
439
|
});
|
|
435
440
|
fs.mkdirSync(path.dirname(path$1), { recursive: true });
|
|
436
441
|
fs.writeFileSync(path$1, bytes);
|
|
@@ -443,9 +448,10 @@ function takeStill(page, params) {
|
|
|
443
448
|
// ../playwright/src/highlight.ts
|
|
444
449
|
var HIGHLIGHT_ATTRIBUTE = "data-outerlayer-highlight";
|
|
445
450
|
var CHECK_TIMEOUT = 2e3;
|
|
446
|
-
var LARGEST_SHARE = 0.
|
|
451
|
+
var LARGEST_SHARE = 0.15;
|
|
452
|
+
var TALLEST_SHARE = 0.4;
|
|
447
453
|
function ring(element, params) {
|
|
448
|
-
const { attribute,
|
|
454
|
+
const { attribute, share, tallest } = params;
|
|
449
455
|
const unite = (elements) => {
|
|
450
456
|
let left = Infinity;
|
|
451
457
|
let top = Infinity;
|
|
@@ -462,18 +468,10 @@ function ring(element, params) {
|
|
|
462
468
|
}
|
|
463
469
|
return left === Infinity ? void 0 : { left, top, width: right - left, height: bottom - top };
|
|
464
470
|
};
|
|
465
|
-
const tooLarge = (box2) => box2.width * box2.height > window.innerWidth * window.innerHeight * share || box2.height > window.innerHeight *
|
|
471
|
+
const tooLarge = (box2) => box2.width * box2.height > window.innerWidth * window.innerHeight * share || box2.height > window.innerHeight * tallest;
|
|
466
472
|
const current = Array.from(document.querySelectorAll(`[${attribute}]`)).find((box2) => box2.dataset.leaving === void 0);
|
|
467
473
|
const targets = current?.outerlayerTargets ?? [];
|
|
468
474
|
if (current !== void 0 && targets.some((target) => target === element || target.contains(element))) return "same";
|
|
469
|
-
if (join4 && current !== void 0) {
|
|
470
|
-
const kept = targets.filter((target) => !element.contains(target));
|
|
471
|
-
const united = unite([...kept, element]);
|
|
472
|
-
if (united !== void 0 && !tooLarge(united)) {
|
|
473
|
-
current.outerlayerTargets = [...kept, element];
|
|
474
|
-
return "grown";
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
475
|
const alone = unite([element]);
|
|
478
476
|
if (alone === void 0 || tooLarge(alone)) return "none";
|
|
479
477
|
for (const old of Array.from(document.querySelectorAll(`[${attribute}]`))) {
|
|
@@ -490,7 +488,7 @@ function ring(element, params) {
|
|
|
490
488
|
const box = document.createElement("div");
|
|
491
489
|
box.outerlayerTargets = [element];
|
|
492
490
|
box.setAttribute(attribute, "");
|
|
493
|
-
box.style.cssText = "position:fixed;pointer-events:none;z-index:2147483630;border-radius:10px;opacity:0;box-shadow:0 0 0 3px rgba(59,130,246,.95),0 0 0 9999px rgba(15,23,42,.
|
|
491
|
+
box.style.cssText = "position:fixed;pointer-events:none;z-index:2147483630;border-radius:10px;opacity:0;box-shadow:0 0 0 3px rgba(59,130,246,.95),0 0 0 9999px rgba(15,23,42,.22);";
|
|
494
492
|
document.documentElement.appendChild(box);
|
|
495
493
|
let shown;
|
|
496
494
|
const place = () => {
|
|
@@ -517,10 +515,10 @@ function ring(element, params) {
|
|
|
517
515
|
return "new";
|
|
518
516
|
}
|
|
519
517
|
async function settle(page, change) {
|
|
520
|
-
if (change === "new"
|
|
518
|
+
if (change === "new") await page.waitForTimeout(300);
|
|
521
519
|
}
|
|
522
520
|
async function showHighlight(locator, timeout = 1e4) {
|
|
523
|
-
const change = await locator.evaluate(ring, { attribute: HIGHLIGHT_ATTRIBUTE,
|
|
521
|
+
const change = await locator.evaluate(ring, { attribute: HIGHLIGHT_ATTRIBUTE, share: Number.POSITIVE_INFINITY, tallest: 0.8 }, { timeout });
|
|
524
522
|
await settle(locator.page(), change);
|
|
525
523
|
return change !== "same" && change !== "none";
|
|
526
524
|
}
|
|
@@ -540,9 +538,9 @@ async function highlightCheckedElement(locator) {
|
|
|
540
538
|
);
|
|
541
539
|
if (!pointable) return false;
|
|
542
540
|
await bringIntoView(locator);
|
|
543
|
-
const change = await locator.evaluate(ring, { attribute: HIGHLIGHT_ATTRIBUTE,
|
|
541
|
+
const change = await locator.evaluate(ring, { attribute: HIGHLIGHT_ATTRIBUTE, share: LARGEST_SHARE, tallest: TALLEST_SHARE }, { timeout: CHECK_TIMEOUT });
|
|
544
542
|
await settle(locator.page(), change);
|
|
545
|
-
return change === "new"
|
|
543
|
+
return change === "new";
|
|
546
544
|
} catch {
|
|
547
545
|
return false;
|
|
548
546
|
}
|
|
@@ -889,14 +887,17 @@ var test = test$1.test.extend({
|
|
|
889
887
|
panelOpen = false;
|
|
890
888
|
await closePanels(page);
|
|
891
889
|
}
|
|
892
|
-
const current = {
|
|
890
|
+
const current = { ringed: false, shownAt: Number.NEGATIVE_INFINITY };
|
|
893
891
|
pointing = current;
|
|
894
892
|
const restore = actLikeAPerson(page, person, (target) => clearHighlights(page, target));
|
|
895
893
|
try {
|
|
896
894
|
if (steps !== void 0) {
|
|
897
895
|
await pointAtChecksDuring(async (checked) => {
|
|
898
|
-
if (current.
|
|
899
|
-
if (await highlightCheckedElement(checked))
|
|
896
|
+
if (current.ringed) return;
|
|
897
|
+
if (await highlightCheckedElement(checked)) {
|
|
898
|
+
current.ringed = true;
|
|
899
|
+
current.shownAt = performance.now();
|
|
900
|
+
}
|
|
900
901
|
}, steps);
|
|
901
902
|
}
|
|
902
903
|
} finally {
|
|
@@ -930,7 +931,7 @@ var test = test$1.test.extend({
|
|
|
930
931
|
return response;
|
|
931
932
|
},
|
|
932
933
|
async highlight(locator) {
|
|
933
|
-
if (pointing !== void 0) pointing.
|
|
934
|
+
if (pointing !== void 0) pointing.ringed = true;
|
|
934
935
|
if (await showHighlight(locator) && pointing !== void 0) pointing.shownAt = performance.now();
|
|
935
936
|
},
|
|
936
937
|
async screenshot(screenshotOptions = {}) {
|
|
@@ -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-W46566FP.js';
|
|
4
4
|
import './chunk-GDIVOYDA.js';
|
|
5
5
|
import './chunk-VIJWXQMT.js';
|
|
6
6
|
import './chunk-IP7BIBXJ.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
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-W46566FP.js';
|
|
4
4
|
import { runWorkComment } from './chunk-A7D5BMII.js';
|
|
5
|
-
import { runEmitDemo } from './chunk-
|
|
5
|
+
import { runEmitDemo } from './chunk-KCUX5I5W.js';
|
|
6
6
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
|
7
7
|
import { runEmitArtifact } from './chunk-CIEX2ZKQ.js';
|
|
8
8
|
import { runnerMatcher } from './chunk-GDIVOYDA.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.20261101131017",
|
|
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.",
|
|
@@ -294,8 +294,8 @@ tests at HEAD that hold the id of each proof that is not current, and runs them.
|
|
|
294
294
|
video criterion in the criteria's order, as the outerlayer-evidence skill's
|
|
295
295
|
"Record a demo" says. Tell each chapter in beats with `demo.say()`: sign in
|
|
296
296
|
once, and seed and wait between beats, so the demo shows only narrated
|
|
297
|
-
steps. In each beat, check with `expect(locator)` the element its
|
|
298
|
-
names, so the recorder rings it. Write each line as you would say it to a
|
|
297
|
+
steps. In each beat, check first with `expect(locator)` the element its
|
|
298
|
+
line names, so the recorder rings it. Write each line as you would say it to a
|
|
299
299
|
teammate at your screen, in plain words. Render it with `outerlayer emit
|
|
300
300
|
demo <manifest> --output demo.webm`, then watch and listen to it before
|
|
301
301
|
you commit the test. Each beat rings what its line names. Write again each
|
|
@@ -85,8 +85,8 @@ only when Playwright cannot drive the flow.
|
|
|
85
85
|
A demo plays like a person showing the app. Tell each chapter in beats with
|
|
86
86
|
`demo.say(line, steps)`: the line is spoken while its steps run on screen.
|
|
87
87
|
The demo shows only beats, so sign in, seed data and wait outside them. In
|
|
88
|
-
each beat, check with `expect(locator)` the element its line names, so
|
|
89
|
-
recorder rings it. Show a CLI step with `demo.terminal()`. The recorder
|
|
88
|
+
each beat, check first with `expect(locator)` the element its line names, so
|
|
89
|
+
the recorder rings it. Show a CLI step with `demo.terminal()`. The recorder
|
|
90
90
|
ships inside the CLI, so install nothing. The script, and the rules a reviewer holds it to, are in
|
|
91
91
|
[references/demo.md](references/demo.md).
|
|
92
92
|
|
|
@@ -38,10 +38,10 @@ it against the app as it is now, not from an older demo. Import `test` and
|
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
Each beat lasts as long as its line. Inside a beat a pointer moves to each
|
|
41
|
-
click, `fill` types its text, and the page scrolls smoothly.
|
|
42
|
-
a locator dims the page around the element it checks
|
|
43
|
-
viewer sees what the line talks about.
|
|
44
|
-
|
|
41
|
+
click, `fill` types its text, and the page scrolls smoothly. The first
|
|
42
|
+
`expect` on a locator in a beat dims the page around the element it checks
|
|
43
|
+
and rings it, so the viewer sees what the line talks about. Later checks in
|
|
44
|
+
the beat draw no other ring.
|
|
45
45
|
|
|
46
46
|
Record it with `outerlayer demo record <script>`. In a repository with its
|
|
47
47
|
own Playwright config, add `--config <file>` and `--project <name>` to reuse
|
|
@@ -96,16 +96,14 @@ say it to a teammate at your screen.
|
|
|
96
96
|
- Show a call to an API with `await demo.http({ method, url, body }, run)`
|
|
97
97
|
when a criterion's proof is an API response, or a step goes through the
|
|
98
98
|
API and no page shows it. Return the real `{ status, body }` from `run`.
|
|
99
|
-
- In each beat, check with `expect(locator)`
|
|
100
|
-
such as the new status in a list.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
would fill most of the screen, the ring starts again on the latest one.
|
|
106
|
-
The pointer moving to an element outside the ring clears it.
|
|
99
|
+
- In each beat, check first with `expect(locator)` the one element its line
|
|
100
|
+
names, such as the new status in a list. A beat rings one element. A
|
|
101
|
+
check of a computed value, such as a style read with `evaluate`, rings
|
|
102
|
+
nothing, so check the element itself too. A locator that matches several
|
|
103
|
+
elements, a negated check, and a large element such as a whole card ring
|
|
104
|
+
nothing. The pointer moving to another element clears the ring.
|
|
107
105
|
- Call `await demo.highlight(locator)` to ring an element no check looks at.
|
|
108
|
-
After it, checks in that beat
|
|
106
|
+
After it, checks in that beat draw no ring.
|
|
109
107
|
- Write the script against the guidance here, not by copying an older demo:
|
|
110
108
|
an older demo can break a rule that came later.
|
|
111
109
|
- Turn off `demoOptions.animations` to keep the app's own transitions. Each
|