@outerlayer/cli 0.37.0-next.20261104233800 → 0.37.0-next.20261105010834
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-VOJWXIRZ.js → check-PJ5FLDTD.js} +7 -7
- package/dist/{chunk-SQWYFCEU.js → chunk-4A7D2HWQ.js} +1 -1
- package/dist/{chunk-VNMTA2JE.js → chunk-4TDBM3PK.js} +1 -1
- package/dist/{chunk-LLZG5A2J.js → chunk-77RLQS5V.js} +1 -1
- package/dist/{chunk-3Z5GISKU.js → chunk-KE5NFPP2.js} +111 -12
- package/dist/{chunk-TSYTPW6Y.js → chunk-P2UH4EBF.js} +13 -5
- package/dist/{chunk-ERGU3OZP.js → chunk-Q2JDKHOR.js} +42 -8
- package/dist/{chunk-W6GP4CNN.js → chunk-QK43VKE4.js} +1 -1
- package/dist/{chunk-FX4ZG4E5.js → chunk-XPIFUWWY.js} +1 -1
- package/dist/{chunk-IDYLPN4X.js → chunk-ZEHCE7ZE.js} +1 -1
- package/dist/{cli-FFPFIMPZ.js → cli-K62CS6XW.js} +31 -28
- package/dist/{command-MYYGFCW3.js → command-EG54FHMR.js} +3 -3
- package/dist/{container-start-ICNSSPBS.js → container-start-JBYD2XG4.js} +4 -4
- package/dist/{doctor-LEGPWSQ3.js → doctor-MXWODPPL.js} +4 -4
- package/dist/{host-checks-VGJVO23Y.js → host-checks-RK5TC3TX.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{init-Z6ZVLUJ5.js → init-CSWMBTTM.js} +2 -2
- package/dist/{init-F3L4CTBJ.js → init-GH74PR4K.js} +2 -2
- package/dist/{init-agent-DO233UTF.js → init-agent-54VT3S3Z.js} +2 -2
- package/dist/{init-cmd-AKIPYTNP.js → init-cmd-AIUYATFU.js} +1 -1
- package/dist/{loop-MUPQOIW6.js → loop-P7NDQS3G.js} +7 -7
- package/dist/{machine-WFZ5KM76.js → machine-UEW4P7I6.js} +2 -2
- package/dist/{runner-key-2SKLS37E.js → runner-key-PNZTLOK5.js} +2 -2
- package/dist/{status-WZCEHCL2.js → status-X7IK4XQU.js} +2 -2
- package/dist/{update-steps-5BGDQTVG.js → update-steps-R7AQAO6R.js} +3 -3
- package/dist/{work-claim-cmd-2IOJVHR5.js → work-claim-cmd-YE4MVGZH.js} +1 -1
- package/dist/{work-proofs-cmd-P33QGSIQ.js → work-proofs-cmd-Y7WZNTI3.js} +2 -2
- package/dist/{work-proofs-record-FN6M7BIZ.js → work-proofs-record-5DCQQT23.js} +66 -8
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/references/agent-briefs.md +18 -7
- package/skill-pack/maintained/outerlayer-build/references/evidence.md +8 -5
- package/dist/{chunk-6SC66WGJ.js → chunk-BNYBHWYH.js} +172 -172
|
@@ -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-XPIFUWWY.js';
|
|
4
4
|
import './chunk-A75ZPAOP.js';
|
|
5
5
|
import { verifiedTrackerNames, TRACKERS } from './chunk-6BS4DDCY.js';
|
|
6
6
|
import './chunk-6MWBZHBW.js';
|
|
@@ -3944,13 +3944,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3944
3944
|
if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
|
|
3945
3945
|
`);
|
|
3946
3946
|
}
|
|
3947
|
-
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-
|
|
3947
|
+
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-AIUYATFU.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
|
|
3948
3948
|
if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
|
|
3949
3949
|
else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
|
|
3950
3950
|
return;
|
|
3951
3951
|
}
|
|
3952
3952
|
await installMachineSkillsForSetup();
|
|
3953
|
-
const { runInitCommand } = await import('./init-cmd-
|
|
3953
|
+
const { runInitCommand } = await import('./init-cmd-AIUYATFU.js');
|
|
3954
3954
|
const code = await runInitCommand(
|
|
3955
3955
|
{ json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
|
|
3956
3956
|
{
|
|
@@ -5018,7 +5018,9 @@ live addition remains on it.
|
|
|
5018
5018
|
|
|
5019
5019
|
A proof is current when it was recorded at this checkout's HEAD, or at the head of a
|
|
5020
5020
|
linked pull request that is open or merged. Run \`outerlayer sync\` first, so the
|
|
5021
|
-
gateway has the artifacts you just emitted.
|
|
5021
|
+
gateway has the artifacts you just emitted. A test proof is listed unless the policy file
|
|
5022
|
+
sets criteria.test_proof: ci. It names why the host cannot record a proof again at the final
|
|
5023
|
+
commit, such as an invalid .outerlayer-proofs.yaml.
|
|
5022
5024
|
Exits 0 when every listed proof is current, 1 when any is out of date or missing,
|
|
5023
5025
|
and 2 when it cannot tell. It also lists each criterion the criteria judge failed while no
|
|
5024
5026
|
test file has changed since the commit it judged. In a runner build those rows give exit 1.
|
|
@@ -5026,8 +5028,9 @@ test file has changed since the commit it judged. In a runner build those rows g
|
|
|
5026
5028
|
--record reads .outerlayer-proofs.yaml from the HEAD commit and finds the test files at HEAD
|
|
5027
5029
|
that hold the id of each proof that is not current. It runs setup, then each runner once with
|
|
5028
5030
|
its files, then teardown. A test writes <criterion id>.<ext> under $OUTERLAYER_PROOF_OUT, and
|
|
5029
|
-
--record emits it at HEAD.
|
|
5030
|
-
|
|
5031
|
+
--record emits it at HEAD. For a test proof it runs the test files its newest results named,
|
|
5032
|
+
and emits the JUnit XML the run wrote, bound to the same tests. It lists the proofs last. It
|
|
5033
|
+
stops at once if a tracked file differs from HEAD.
|
|
5031
5034
|
`
|
|
5032
5035
|
).action(async (opts) => {
|
|
5033
5036
|
if (opts.comment && !opts.record) {
|
|
@@ -5043,7 +5046,7 @@ differs from HEAD.
|
|
|
5043
5046
|
fail(trackerNumberError("--pr", opts.pr));
|
|
5044
5047
|
return;
|
|
5045
5048
|
}
|
|
5046
|
-
const { runWorkProofsCommand } = await import('./work-proofs-cmd-
|
|
5049
|
+
const { runWorkProofsCommand } = await import('./work-proofs-cmd-Y7WZNTI3.js');
|
|
5047
5050
|
await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
|
|
5048
5051
|
});
|
|
5049
5052
|
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) => {
|
|
@@ -5068,7 +5071,7 @@ by a different key is refused; claiming again with the same key extends
|
|
|
5068
5071
|
it. --host is a label only.
|
|
5069
5072
|
`
|
|
5070
5073
|
).action(async (opts) => {
|
|
5071
|
-
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-
|
|
5074
|
+
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-YE4MVGZH.js');
|
|
5072
5075
|
try {
|
|
5073
5076
|
await runWorkClaim(opts);
|
|
5074
5077
|
} catch (err) {
|
|
@@ -5088,7 +5091,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
|
|
|
5088
5091
|
lease has expired, or a 403 if a different key holds it.
|
|
5089
5092
|
`
|
|
5090
5093
|
).action(async (opts) => {
|
|
5091
|
-
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-
|
|
5094
|
+
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-YE4MVGZH.js');
|
|
5092
5095
|
try {
|
|
5093
5096
|
await runWorkRenew(opts);
|
|
5094
5097
|
} catch (err) {
|
|
@@ -5120,7 +5123,7 @@ applies to a host's lease only. A later tool call in the session
|
|
|
5120
5123
|
takes the lease again.
|
|
5121
5124
|
`
|
|
5122
5125
|
).action(async (opts) => {
|
|
5123
|
-
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-
|
|
5126
|
+
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-YE4MVGZH.js');
|
|
5124
5127
|
try {
|
|
5125
5128
|
await runWorkRelease(opts);
|
|
5126
5129
|
} catch (err) {
|
|
@@ -5206,7 +5209,7 @@ function registerRunnerCommands(program2) {
|
|
|
5206
5209
|
const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
|
|
5207
5210
|
runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
|
|
5208
5211
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-CZJINZN5.js');
|
|
5209
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5212
|
+
const { start, RunnerStartError } = await import('./loop-P7NDQS3G.js');
|
|
5210
5213
|
const { RunnerAlreadyRunningError } = await import('./pidfile-H2DZIODT.js');
|
|
5211
5214
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5212
5215
|
try {
|
|
@@ -5230,8 +5233,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5230
5233
|
`
|
|
5231
5234
|
).action(async () => {
|
|
5232
5235
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-CZJINZN5.js');
|
|
5233
|
-
const { containerStart, containerStartExit } = await import('./container-start-
|
|
5234
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5236
|
+
const { containerStart, containerStartExit } = await import('./container-start-JBYD2XG4.js');
|
|
5237
|
+
const { start, RunnerStartError } = await import('./loop-P7NDQS3G.js');
|
|
5235
5238
|
const { RunnerAlreadyRunningError } = await import('./pidfile-H2DZIODT.js');
|
|
5236
5239
|
try {
|
|
5237
5240
|
const outcome = containerStartExit(await containerStart({
|
|
@@ -5255,14 +5258,14 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5255
5258
|
).action(async (opts) => {
|
|
5256
5259
|
const { defaultRunnerConfigPath } = await import('./config-CZJINZN5.js');
|
|
5257
5260
|
const { runnerDir } = await import('./paths-AGOA7QX6.js');
|
|
5258
|
-
const { runUpdateSteps } = await import('./update-steps-
|
|
5261
|
+
const { runUpdateSteps } = await import('./update-steps-R7AQAO6R.js');
|
|
5259
5262
|
const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
|
|
5260
5263
|
process.stdout.write(`${text}
|
|
5261
5264
|
`);
|
|
5262
5265
|
});
|
|
5263
5266
|
runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
|
|
5264
5267
|
const { defaultRunnerConfigPath } = await import('./config-CZJINZN5.js');
|
|
5265
|
-
const { runRunnerCheck } = await import('./check-
|
|
5268
|
+
const { runRunnerCheck } = await import('./check-PJ5FLDTD.js');
|
|
5266
5269
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5267
5270
|
const result = await runRunnerCheck(configPath);
|
|
5268
5271
|
if (!result.ok) {
|
|
@@ -5296,13 +5299,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5296
5299
|
}
|
|
5297
5300
|
}
|
|
5298
5301
|
const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
|
|
5299
|
-
if (buildCpusMax !== void 0 && !(await import('./command-
|
|
5302
|
+
if (buildCpusMax !== void 0 && !(await import('./command-EG54FHMR.js')).cpusAreValid(buildCpusMax)) {
|
|
5300
5303
|
fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
|
|
5301
5304
|
return;
|
|
5302
5305
|
}
|
|
5303
5306
|
try {
|
|
5304
5307
|
if (opts.service === true) {
|
|
5305
|
-
const { installServiceCommand } = await import('./command-
|
|
5308
|
+
const { installServiceCommand } = await import('./command-EG54FHMR.js');
|
|
5306
5309
|
const result2 = await installServiceCommand({
|
|
5307
5310
|
configPath,
|
|
5308
5311
|
print: opts.print,
|
|
@@ -5360,7 +5363,7 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
|
|
|
5360
5363
|
return;
|
|
5361
5364
|
}
|
|
5362
5365
|
const { defaultRunnerConfigPath } = await import('./config-CZJINZN5.js');
|
|
5363
|
-
const { uninstallServiceCommand } = await import('./command-
|
|
5366
|
+
const { uninstallServiceCommand } = await import('./command-EG54FHMR.js');
|
|
5364
5367
|
const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
|
|
5365
5368
|
if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
|
|
5366
5369
|
`);
|
|
@@ -5391,10 +5394,10 @@ already in ${words().envFile} is used.
|
|
|
5391
5394
|
`
|
|
5392
5395
|
).action(async (opts) => {
|
|
5393
5396
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-CZJINZN5.js');
|
|
5394
|
-
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-
|
|
5395
|
-
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-
|
|
5396
|
-
const { detectMachine } = await import('./machine-
|
|
5397
|
-
const { chooseVm, runVmInit, VmInitError } = await import('./init-
|
|
5397
|
+
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-CSWMBTTM.js');
|
|
5398
|
+
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-PNZTLOK5.js');
|
|
5399
|
+
const { detectMachine } = await import('./machine-UEW4P7I6.js');
|
|
5400
|
+
const { chooseVm, runVmInit, VmInitError } = await import('./init-GH74PR4K.js');
|
|
5398
5401
|
const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-YPIZG3VG.js');
|
|
5399
5402
|
const { headlessNames } = await import('./runner-agents-QJCL4MO3.js');
|
|
5400
5403
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
@@ -5408,7 +5411,7 @@ already in ${words().envFile} is used.
|
|
|
5408
5411
|
return;
|
|
5409
5412
|
}
|
|
5410
5413
|
try {
|
|
5411
|
-
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-
|
|
5414
|
+
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-54VT3S3Z.js');
|
|
5412
5415
|
agent = await initAgent({
|
|
5413
5416
|
flag: agent,
|
|
5414
5417
|
handOff: opts.configStdin === true,
|
|
@@ -5547,7 +5550,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
|
|
|
5547
5550
|
let serviceUp = false;
|
|
5548
5551
|
let restart;
|
|
5549
5552
|
if (installedLayout) {
|
|
5550
|
-
const { installServiceCommand } = await import('./command-
|
|
5553
|
+
const { installServiceCommand } = await import('./command-EG54FHMR.js');
|
|
5551
5554
|
const service = await installServiceCommand({
|
|
5552
5555
|
configPath,
|
|
5553
5556
|
entryPath: process.argv[1] ?? "",
|
|
@@ -5685,7 +5688,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5685
5688
|
});
|
|
5686
5689
|
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) => {
|
|
5687
5690
|
const { defaultRunnerConfigPath } = await import('./config-CZJINZN5.js');
|
|
5688
|
-
const { requestStop } = await import('./loop-
|
|
5691
|
+
const { requestStop } = await import('./loop-P7NDQS3G.js');
|
|
5689
5692
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5690
5693
|
const { runnerImageVersion } = await import('./image-tag-WQB5HVLI.js');
|
|
5691
5694
|
await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
|
|
@@ -5693,8 +5696,8 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5693
5696
|
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) => {
|
|
5694
5697
|
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-CZJINZN5.js');
|
|
5695
5698
|
const { jobsDir, runnerDir } = await import('./paths-AGOA7QX6.js');
|
|
5696
|
-
const { listJobFiles, runnerProcessState } = await import('./loop-
|
|
5697
|
-
const { renderStatus } = await import('./status-
|
|
5699
|
+
const { listJobFiles, runnerProcessState } = await import('./loop-P7NDQS3G.js');
|
|
5700
|
+
const { renderStatus } = await import('./status-X7IK4XQU.js');
|
|
5698
5701
|
const { readHousekeepingRecord } = await import('./record-UHMPQIUU.js');
|
|
5699
5702
|
const path2 = await import('path');
|
|
5700
5703
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
@@ -5760,7 +5763,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5760
5763
|
});
|
|
5761
5764
|
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) => {
|
|
5762
5765
|
const { defaultRunnerConfigPath } = await import('./config-CZJINZN5.js');
|
|
5763
|
-
const { listJobFiles } = await import('./loop-
|
|
5766
|
+
const { listJobFiles } = await import('./loop-P7NDQS3G.js');
|
|
5764
5767
|
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-HIXNEXBT.js');
|
|
5765
5768
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5766
5769
|
const jobs = listJobFiles(configPath);
|
|
@@ -1,11 +1,11 @@
|
|
|
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-62RPMJXQ.js';
|
|
4
|
-
import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-
|
|
4
|
+
import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-4TDBM3PK.js';
|
|
5
5
|
import './chunk-YLJXRXPX.js';
|
|
6
6
|
import { currentLink, execStartCommand } from './chunk-IJU6DMQA.js';
|
|
7
|
-
import { detectMachine, ensureFirecrackerAndJailer } from './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import { detectMachine, ensureFirecrackerAndJailer } from './chunk-P2UH4EBF.js';
|
|
8
|
+
import './chunk-BNYBHWYH.js';
|
|
9
9
|
import './chunk-2PGI6RDE.js';
|
|
10
10
|
import './chunk-I3LTIAOR.js';
|
|
11
11
|
import './chunk-ZHOPDD7U.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
6
|
-
import './chunk-
|
|
3
|
+
import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-QK43VKE4.js';
|
|
4
|
+
import { readOwnContainer } from './chunk-4A7D2HWQ.js';
|
|
5
|
+
import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-P2UH4EBF.js';
|
|
6
|
+
import './chunk-BNYBHWYH.js';
|
|
7
7
|
import './chunk-2PGI6RDE.js';
|
|
8
8
|
import './chunk-I3LTIAOR.js';
|
|
9
9
|
import './chunk-ZHOPDD7U.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperBinaryFor } from './chunk-
|
|
3
|
+
import { helperBinaryFor } from './chunk-4TDBM3PK.js';
|
|
4
4
|
import { launcherCheck } from './chunk-YLJXRXPX.js';
|
|
5
|
-
import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-
|
|
5
|
+
import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-77RLQS5V.js';
|
|
6
6
|
import './chunk-IJU6DMQA.js';
|
|
7
|
-
import { needsAgentCredential, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import { needsAgentCredential, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-P2UH4EBF.js';
|
|
8
|
+
import './chunk-BNYBHWYH.js';
|
|
9
9
|
import './chunk-2PGI6RDE.js';
|
|
10
10
|
import './chunk-I3LTIAOR.js';
|
|
11
11
|
import './chunk-ZHOPDD7U.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { MAX_CHECK_ITEMS_BYTES, checksIn, commandItems, isJudgeCheck, makeRecorder, readDefinitions, runHostChecks, testProofIn, timeoutAfter } from './chunk-P2UH4EBF.js';
|
|
4
|
+
import './chunk-BNYBHWYH.js';
|
|
5
5
|
import './chunk-2PGI6RDE.js';
|
|
6
6
|
import './chunk-I3LTIAOR.js';
|
|
7
7
|
import './chunk-ZHOPDD7U.js';
|
package/dist/index.js
CHANGED
|
@@ -25,5 +25,5 @@ var { runSubcommand } = await import('./agent-subcommand-C625JDSN.js');
|
|
|
25
25
|
var launcherCode = await runSubcommand(argv);
|
|
26
26
|
if (launcherCode !== void 0) process.exit(launcherCode);
|
|
27
27
|
(await import('./hook-fast-27GO6BM2.js')).recordLinkExitFailure(argv);
|
|
28
|
-
var { runCli } = await import('./cli-
|
|
28
|
+
var { runCli } = await import('./cli-K62CS6XW.js');
|
|
29
29
|
await runCli(process.argv);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, prepareRunnerInit, readConfigObject, runRunnerInit, writeRunnerInit } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, prepareRunnerInit, readConfigObject, runRunnerInit, writeRunnerInit } from './chunk-P2UH4EBF.js';
|
|
4
|
+
import './chunk-BNYBHWYH.js';
|
|
5
5
|
import './chunk-2PGI6RDE.js';
|
|
6
6
|
import './chunk-I3LTIAOR.js';
|
|
7
7
|
import './chunk-ZHOPDD7U.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import { RunnerInitError, readConfigObject } from './chunk-P2UH4EBF.js';
|
|
5
|
+
import './chunk-BNYBHWYH.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
7
7
|
import './chunk-I3LTIAOR.js';
|
|
8
8
|
import './chunk-ZHOPDD7U.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RunnerInitError } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { RunnerInitError } from './chunk-P2UH4EBF.js';
|
|
4
|
+
import './chunk-BNYBHWYH.js';
|
|
5
5
|
import './chunk-2PGI6RDE.js';
|
|
6
6
|
import './chunk-I3LTIAOR.js';
|
|
7
7
|
import './chunk-ZHOPDD7U.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-XPIFUWWY.js';
|
|
4
4
|
import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-2QIK3JRV.js';
|
|
5
5
|
import './chunk-A75ZPAOP.js';
|
|
6
6
|
import './chunk-6BS4DDCY.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
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 { LAPSED_REASON, RunnerStartError, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-Q2JDKHOR.js';
|
|
4
4
|
import './chunk-PNZN656P.js';
|
|
5
5
|
import './chunk-2QFRAMJX.js';
|
|
6
6
|
import './chunk-LVZ3UV7T.js';
|
|
7
7
|
import './chunk-3JVYMD4G.js';
|
|
8
8
|
import './chunk-E7R2GIAW.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
9
|
+
import './chunk-QK43VKE4.js';
|
|
10
|
+
import './chunk-4A7D2HWQ.js';
|
|
11
|
+
import './chunk-ZEHCE7ZE.js';
|
|
12
|
+
import './chunk-77RLQS5V.js';
|
|
13
13
|
import './chunk-IJU6DMQA.js';
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import './chunk-P2UH4EBF.js';
|
|
15
|
+
import './chunk-BNYBHWYH.js';
|
|
16
16
|
import './chunk-2PGI6RDE.js';
|
|
17
17
|
import './chunk-I3LTIAOR.js';
|
|
18
18
|
import './chunk-ZHOPDD7U.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-P2UH4EBF.js';
|
|
4
|
+
import './chunk-BNYBHWYH.js';
|
|
5
5
|
import './chunk-2PGI6RDE.js';
|
|
6
6
|
import './chunk-I3LTIAOR.js';
|
|
7
7
|
import './chunk-ZHOPDD7U.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { readConfigObject, RunnerInitError } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { readConfigObject, RunnerInitError } from './chunk-P2UH4EBF.js';
|
|
4
|
+
import './chunk-BNYBHWYH.js';
|
|
5
5
|
import './chunk-2PGI6RDE.js';
|
|
6
6
|
import './chunk-I3LTIAOR.js';
|
|
7
7
|
import './chunk-ZHOPDD7U.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-P2UH4EBF.js';
|
|
4
|
+
import './chunk-BNYBHWYH.js';
|
|
5
5
|
import './chunk-2PGI6RDE.js';
|
|
6
6
|
import './chunk-I3LTIAOR.js';
|
|
7
7
|
import './chunk-ZHOPDD7U.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
3
|
+
export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-4A7D2HWQ.js';
|
|
4
|
+
import './chunk-P2UH4EBF.js';
|
|
5
|
+
import './chunk-BNYBHWYH.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
7
7
|
import './chunk-I3LTIAOR.js';
|
|
8
8
|
import './chunk-ZHOPDD7U.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
3
|
+
import { RUNNER_PROTOCOL } from './chunk-ZEHCE7ZE.js';
|
|
4
4
|
import { resolveCredentials, WorkCommandError, parsePositiveInt, postJson, environmentFacts, findLiveItemForIssue } from './chunk-6BS4DDCY.js';
|
|
5
5
|
export { WorkCommandError } from './chunk-6BS4DDCY.js';
|
|
6
6
|
import './chunk-6MWBZHBW.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { classifyProofs, classifyProofsAt, otherPullRequestHeads, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { classifyProofs, classifyProofsAt, otherPullRequestHeads, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-KE5NFPP2.js';
|
|
4
|
+
import './chunk-BNYBHWYH.js';
|
|
5
5
|
import './chunk-6BS4DDCY.js';
|
|
6
6
|
import './chunk-6MWBZHBW.js';
|
|
7
7
|
import './chunk-GBCQ3KHH.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
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, testProofMode, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, proofsCommentBody } from './chunk-KE5NFPP2.js';
|
|
4
4
|
import { runEmitDemo } from './chunk-RFCAK6OI.js';
|
|
5
5
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
|
6
6
|
import { runWorkComment } from './chunk-2LXO2YIW.js';
|
|
7
7
|
import { runEmitArtifact } from './chunk-HN76DIHX.js';
|
|
8
|
-
import { runnerMatcher } from './chunk-
|
|
8
|
+
import { runnerMatcher } from './chunk-BNYBHWYH.js';
|
|
9
9
|
import './chunk-2PGI6RDE.js';
|
|
10
10
|
import { runSync } from './chunk-KCNL7KX2.js';
|
|
11
11
|
import './chunk-ZRITZJ36.js';
|
|
@@ -49,7 +49,7 @@ import { resolveRepoIdentity } from './chunk-ZQNYV4OZ.js';
|
|
|
49
49
|
import { ARTIFACT_MAX_CAPTION_LENGTH } from './chunk-2JIGPSVF.js';
|
|
50
50
|
import './chunk-Z5GEFMRW.js';
|
|
51
51
|
import { spawnSync, spawn } from 'child_process';
|
|
52
|
-
import { mkdtempSync, rmSync, openSync, closeSync, readdirSync, readFileSync } from 'fs';
|
|
52
|
+
import { mkdtempSync, writeFileSync, rmSync, openSync, closeSync, readdirSync, readFileSync } from 'fs';
|
|
53
53
|
import { tmpdir } from 'os';
|
|
54
54
|
import { join } from 'path';
|
|
55
55
|
|
|
@@ -245,7 +245,8 @@ async function runWorkProofsRecord(opts) {
|
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
247
|
const heads = /* @__PURE__ */ new Set([head.toLowerCase(), ...otherPullRequestHeads(body.pullRequests ?? [], ownPr, identity.gitRepo)]);
|
|
248
|
-
const
|
|
248
|
+
const recordsTests = body.criteria?.testProofsReported === true && await testProofMode(cwd) === "any";
|
|
249
|
+
const states = classifyProofsAt(body, heads, { tests: recordsTests });
|
|
249
250
|
const todo = states.filter((state) => state.state !== "current").map((state) => state.id);
|
|
250
251
|
if (todo.length === 0) {
|
|
251
252
|
const closing2 = await runWorkProofs({ ...opts, item, env, quiet: true, checkoutHead: head, fetchImpl });
|
|
@@ -267,9 +268,31 @@ async function runWorkProofsRecord(opts) {
|
|
|
267
268
|
const proofOf = (id) => declared.get(id).proof;
|
|
268
269
|
const reasons = /* @__PURE__ */ new Map();
|
|
269
270
|
const emitted = /* @__PURE__ */ new Map();
|
|
270
|
-
const
|
|
271
|
+
const testIds = todo.filter((id) => proofOf(id) === "test");
|
|
272
|
+
const testsOf = /* @__PURE__ */ new Map();
|
|
273
|
+
const matchesRunner = runnerMatcher(config.runners);
|
|
274
|
+
const found = discoverTestFiles(root, todo.filter((id) => proofOf(id) !== "test"), config.runners);
|
|
275
|
+
for (const id of testIds) {
|
|
276
|
+
const tests = declared.get(id).newestProof?.tests;
|
|
277
|
+
if (tests === void 0) {
|
|
278
|
+
reasons.set(id, "no earlier results were recorded for it, so there is no test to run again. Run its tests and emit the results with --for, naming each test with --test <name>=<path>:<line>");
|
|
279
|
+
continue;
|
|
280
|
+
}
|
|
281
|
+
const files = testFilesOf(tests);
|
|
282
|
+
if (files.length === 0) {
|
|
283
|
+
reasons.set(id, "its earlier results name no test file, so there is no test to run again. Emit the results again naming each test with --test <name>=<path>:<line>");
|
|
284
|
+
continue;
|
|
285
|
+
}
|
|
286
|
+
const unmatched = files.filter((file) => matchesRunner(file) === void 0);
|
|
287
|
+
if (unmatched.length > 0) {
|
|
288
|
+
reasons.set(id, `no runner in ${CONFIG_FILE} matches ${unmatched.join(", ")}`);
|
|
289
|
+
continue;
|
|
290
|
+
}
|
|
291
|
+
testsOf.set(id, tests);
|
|
292
|
+
found.set(id, files);
|
|
293
|
+
}
|
|
271
294
|
for (const id of todo) {
|
|
272
|
-
if (!found.has(id)) reasons.set(id, NO_TEST);
|
|
295
|
+
if (!found.has(id) && !reasons.has(id)) reasons.set(id, NO_TEST);
|
|
273
296
|
}
|
|
274
297
|
const plan = planRuns([...new Set([...found.values()].flat())], config.runners);
|
|
275
298
|
const logDir = mkdtempSync(join(tmpdir(), "outerlayer-proofs-"));
|
|
@@ -333,13 +356,15 @@ async function runWorkProofsRecord(opts) {
|
|
|
333
356
|
}
|
|
334
357
|
const proofOut = mkdtempSync(join(tmpdir(), "outerlayer-proof-out-"));
|
|
335
358
|
proofOuts.push(proofOut);
|
|
359
|
+
const startedMs = Date.now() - 1e3;
|
|
336
360
|
const result = await runCommand(fillFiles(runner.command, files), { cwd: root, env: { ...baseEnv, OUTERLAYER_PROOF_OUT: proofOut }, timeoutMs, logDir, groups });
|
|
361
|
+
const results = freshXmlFiles([proofOut, root], startedMs);
|
|
337
362
|
const failure = result.timedOut ? `the runner for ${runner.files} timed out after ${Math.round(timeoutMs / 1e3)} s` : result.status === 0 ? void 0 : `the runner for ${runner.files} exited with status ${result.status}`;
|
|
338
363
|
if (failure !== void 0) {
|
|
339
364
|
say(failure);
|
|
340
365
|
if (result.tail !== "") say(result.tail);
|
|
341
366
|
}
|
|
342
|
-
runs.push({ glob: runner.files, proofOut, criteria, failure, tail: result.tail });
|
|
367
|
+
runs.push({ glob: runner.files, proofOut, criteria, failure, tail: result.tail, results });
|
|
343
368
|
}
|
|
344
369
|
} finally {
|
|
345
370
|
if (setupStarted) {
|
|
@@ -376,10 +401,43 @@ async function runWorkProofsRecord(opts) {
|
|
|
376
401
|
for (const id of chapterCriteria(manifests[0])) chapters.add(id);
|
|
377
402
|
await recordDemo(manifests[0], chapters);
|
|
378
403
|
}
|
|
404
|
+
for (const [id, tests] of testsOf) {
|
|
405
|
+
const ran = runs.filter((run) => run.criteria.includes(id));
|
|
406
|
+
if (ran.length === 0) continue;
|
|
407
|
+
const fail = (reason) => {
|
|
408
|
+
reasons.set(id, reason);
|
|
409
|
+
say(`Not recorded, ${id}: ${reason}`);
|
|
410
|
+
};
|
|
411
|
+
const joined = joinResults([...new Set(ran.flatMap((run) => run.results))], new Set(tests.items.map((test) => test.name)), root);
|
|
412
|
+
if (!joined.ok) {
|
|
413
|
+
const failed = ran.find((run) => run.failure !== void 0)?.failure;
|
|
414
|
+
fail(failed === void 0 ? joined.reason : `${failed}, and ${joined.reason}`);
|
|
415
|
+
continue;
|
|
416
|
+
}
|
|
417
|
+
const resultsFile = join(logDir, `${id}.xml`);
|
|
418
|
+
writeFileSync(resultsFile, joined.xml);
|
|
419
|
+
try {
|
|
420
|
+
const caption = (declared.get(id).text ?? `Test results for ${id}`).slice(0, ARTIFACT_MAX_CAPTION_LENGTH);
|
|
421
|
+
const before = spooledCount;
|
|
422
|
+
const selectors = testSelectors(tests);
|
|
423
|
+
const result = await emitArtifact({ ...common, file: resultsFile, caption, criterionId: id, ...selectors.length > 0 ? { tests: selectors } : {}, ...ownPr === void 0 ? {} : { pr: ownPr } });
|
|
424
|
+
const artifactId = result.record?.artifactId ?? result.data?.clientArtifactId;
|
|
425
|
+
if (artifactId === void 0) {
|
|
426
|
+
fail("the upload returned no artifact id");
|
|
427
|
+
continue;
|
|
428
|
+
}
|
|
429
|
+
emitted.set(id, artifactId);
|
|
430
|
+
if (spooledCount > before) spooledCriteria.add(id);
|
|
431
|
+
say(`Ran again for ${id}: ${joined.files.join(", ")}`);
|
|
432
|
+
} catch (err) {
|
|
433
|
+
fail(`the upload failed: ${oneLine(String(err instanceof Error ? err.message : err))}`);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
379
436
|
for (const run of runs) {
|
|
380
437
|
const names = topLevelFiles(run.proofOut);
|
|
381
438
|
for (const name of names) {
|
|
382
439
|
const id = proofFileCriterion(name, new Set(declared.keys()));
|
|
440
|
+
if (id === void 0 && name.endsWith(".xml") && testIds.length > 0) continue;
|
|
383
441
|
if (id === void 0) {
|
|
384
442
|
say(`Ignored ${name}: its name is not the id of a declared criterion.`);
|
|
385
443
|
continue;
|
|
@@ -491,7 +549,7 @@ async function runWorkProofsRecord(opts) {
|
|
|
491
549
|
let finalStates = states;
|
|
492
550
|
try {
|
|
493
551
|
const { data: fresh } = await getJson(creds.url, `/v1/work-items/${item}`, creds.apiKey, creds.appId, fetchImpl);
|
|
494
|
-
finalStates = classifyProofsAt(fresh, heads);
|
|
552
|
+
finalStates = classifyProofsAt(fresh, heads, { tests: recordsTests });
|
|
495
553
|
} catch (err) {
|
|
496
554
|
say(`The item could not be read again, so the list below may be out of date: ${oneLine(String(err instanceof Error ? err.message : err))}`);
|
|
497
555
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outerlayer/cli",
|
|
3
|
-
"version": "0.37.0-next.
|
|
3
|
+
"version": "0.37.0-next.20261105010834",
|
|
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.",
|
|
@@ -313,16 +313,27 @@ each proof that is not current, and runs them.
|
|
|
313
313
|
kind the criterion declares. The test writes outside the repository, so there is
|
|
314
314
|
nothing to ignore or commit.
|
|
315
315
|
- A `test` proof is a JUnit XML file of test results, bound to the criterion.
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
Record it yourself the first time, unless the policy file sets
|
|
317
|
+
`criteria.test_proof: ci`. CI then records it. Run the repository's test
|
|
318
318
|
command with its JUnit reporter, such as
|
|
319
319
|
`vitest run --reporter=junit --outputFile=<file>`, `pytest --junitxml=<file>`
|
|
320
320
|
or `node --test --test-reporter=junit --test-reporter-destination=<file>`.
|
|
321
|
-
|
|
321
|
+
Maven and Gradle write it themselves. Then run
|
|
322
322
|
`outerlayer emit artifact <file> --caption "<one sentence>" --for <criterion id>`.
|
|
323
|
-
Add `--test "<test name>"` for each test that proves the
|
|
324
|
-
criterion is
|
|
325
|
-
|
|
323
|
+
Add `--test "<test name>=<path>:<line>"` for each test that proves the
|
|
324
|
+
criterion. The path is the test file from the repository root, and the line
|
|
325
|
+
is where the test starts. Results from several test classes go in one file
|
|
326
|
+
under one `<testsuites>` element.
|
|
327
|
+
- From then on, `--record` and the host run those tests again at each new head,
|
|
328
|
+
through the runner whose `files` glob matches the test file. So make sure
|
|
329
|
+
such a runner exists, passes `{files}` to the test command, and that the test
|
|
330
|
+
tool writes JUnit XML: into `$OUTERLAYER_PROOF_OUT`, or where it writes by
|
|
331
|
+
default. A Maven runner, for example:
|
|
332
|
+
|
|
333
|
+
```yaml
|
|
334
|
+
- files: "apps/api/src/test/java/**/*Test.java"
|
|
335
|
+
command: 'cd apps/api && ./mvnw -q test -Dtest="$(for f in {files}; do basename "$f" .java; done | paste -sd, -)"'
|
|
336
|
+
```
|
|
326
337
|
- A proof that no test can make stays without a test. Give the reason in
|
|
327
338
|
`build-reports/evidence.md`.
|
|
328
339
|
|
|
@@ -330,7 +341,7 @@ Commit the setup file and every test. Then run
|
|
|
330
341
|
`outerlayer work proofs --record` from the committed checkout. It stops when a
|
|
331
342
|
tracked file differs from HEAD. It runs only what is committed at HEAD, and
|
|
332
343
|
emits each proof at HEAD. It skips a proof that is current. Never emit by hand
|
|
333
|
-
a proof that a test can make, except a `test` proof, as above. Always pass `--pr <number>` when the item links
|
|
344
|
+
a proof that a test can make, except a `test` proof the first time, as above. Always pass `--pr <number>` when the item links
|
|
334
345
|
more than one pull request in the repository.
|
|
335
346
|
|
|
336
347
|
The output names each proof that is still not current, with the reason. Fix
|
|
@@ -51,11 +51,14 @@ recorded. In a runner build, the host runs `outerlayer work proofs --record
|
|
|
51
51
|
that the tests record each proof. A proof that is out of date only because a
|
|
52
52
|
later commit moved the head needs no reason: the host records it again.
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
A criterion that declares `proof: test` is recorded the first time as the
|
|
55
|
+
Evidence brief in [agent-briefs.md](agent-briefs.md) says, unless the policy
|
|
56
|
+
file sets `criteria.test_proof: ci`. After that, `--record` runs the same tests
|
|
57
|
+
again and records their results, as the host does at the final commit. It can
|
|
58
|
+
do so only when each test was named with its file and line, and a runner in
|
|
59
|
+
`.outerlayer-proofs.yaml` matches that file. The list command names a proof
|
|
60
|
+
the host cannot record again, and why. Fix the proofs file before the run
|
|
61
|
+
ends. The final report names each test proof with its artifact.
|
|
59
62
|
|
|
60
63
|
Run the list command once more before the run ends. A criterion still listed
|
|
61
64
|
as out of date or missing goes in `build-reports/evidence.md` with the reason.
|