@outerlayer/cli 0.38.0-next.20261106232046 → 0.38.0-next.20261107103956

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.
Files changed (31) hide show
  1. package/README.md +3 -1
  2. package/dist/build-info.json +1 -1
  3. package/dist/{check-BNDMAAVS.js → check-U2CFIW42.js} +5 -5
  4. package/dist/{chunk-V26DDAWZ.js → chunk-3RFREMDQ.js} +6 -3
  5. package/dist/{chunk-NMSWL2N3.js → chunk-ABPIZHXI.js} +1 -1
  6. package/dist/{chunk-XSEAGCYW.js → chunk-FPEZB7CD.js} +1 -1
  7. package/dist/{chunk-HI5FSBWD.js → chunk-G3NMES6L.js} +1 -1
  8. package/dist/{chunk-VW5NG2AR.js → chunk-KM77NSXE.js} +1 -1
  9. package/dist/{chunk-S35KTDTM.js → chunk-TMQKDFKO.js} +3 -3
  10. package/dist/{chunk-GMLYSAKU.js → chunk-XGPFDFDU.js} +1 -1
  11. package/dist/{chunk-XDURUWQP.js → chunk-YRCFINIR.js} +5 -5
  12. package/dist/{cli-GJQGNNFM.js → cli-UWN7LDID.js} +46 -22
  13. package/dist/{command-3QXN5ZTK.js → command-WVYT7OZA.js} +2 -2
  14. package/dist/{container-start-FZCTPBZG.js → container-start-ZMIAMEQC.js} +3 -3
  15. package/dist/{doctor-5PTO2DN7.js → doctor-VCAXH6RM.js} +3 -3
  16. package/dist/{host-checks-ANVIJJZI.js → host-checks-5SPBYP6O.js} +1 -1
  17. package/dist/index.js +1 -1
  18. package/dist/{init-5ZTKM5KM.js → init-RUAPRUFX.js} +1 -1
  19. package/dist/{init-6AAXECDJ.js → init-TFGPUVUU.js} +1 -1
  20. package/dist/{init-agent-FOR3XGZ2.js → init-agent-TT25322F.js} +1 -1
  21. package/dist/{init-cmd-7X22EFRG.js → init-cmd-6A3PHOXB.js} +1 -1
  22. package/dist/{loop-DFDQQC2Q.js → loop-2SYWWJHW.js} +5 -5
  23. package/dist/{machine-W3R5I6EM.js → machine-GD2UAX6F.js} +1 -1
  24. package/dist/{runner-key-NS5C5TTT.js → runner-key-KZGNIOHI.js} +1 -1
  25. package/dist/{status-5YK3LOVJ.js → status-QQZT6HHZ.js} +1 -1
  26. package/dist/{update-steps-KFULBARX.js → update-steps-KDMOFCVB.js} +2 -2
  27. package/dist/work-no-change-cmd-7NI4FKCC.js +85 -0
  28. package/dist/{work-proofs-cmd-FXSVPQZC.js → work-proofs-cmd-MHSLSBDV.js} +1 -1
  29. package/dist/{work-proofs-record-KPRP3UAQ.js → work-proofs-record-FU2Y6FBF.js} +1 -1
  30. package/package.json +1 -1
  31. package/skill-pack/maintained/outerlayer-build/SKILL.md +17 -0
package/README.md CHANGED
@@ -93,7 +93,9 @@ content:
93
93
  build, the agent's hooks start `outerlayer work comments-read` after they
94
94
  hand it a member's comment. It sends the comment ids to
95
95
  `POST /v1/work-items/<n>/comments/read` with the build's item key.
96
- `outerlayer work logs`
96
+ `outerlayer work no-change` records that the item needs no change. It
97
+ sends `POST /v1/work-items/<n>/no-change` with the reason and the optional
98
+ evidence, and only an item key may call it. `outerlayer work logs`
97
99
  reads the runner's log for a host attempt. `outerlayer work demo` reads an
98
100
  item's newest demo record with `GET /v1/work-items/<n>/demo`.
99
101
  `outerlayer work proofs` reads the item with `GET /v1/work-items/<n>` and
@@ -1 +1 @@
1
- {"id":"2026-11-06T23:26:49.414Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
1
+ {"id":"2026-11-07T10:45:46.945Z","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-XDURUWQP.js';
3
+ import { probeCredentials } from './chunk-YRCFINIR.js';
4
+ import './chunk-FPEZB7CD.js';
4
5
  import './chunk-WX7XACEU.js';
5
6
  import './chunk-FPPBL7ZC.js';
7
+ import './chunk-ABPIZHXI.js';
6
8
  import './chunk-NDLWXIVK.js';
7
9
  import './chunk-3JVYMD4G.js';
8
10
  import './chunk-E7R2GIAW.js';
9
- import './chunk-XSEAGCYW.js';
10
- import './chunk-NMSWL2N3.js';
11
11
  import './chunk-MLM4BYK2.js';
12
- import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-HI5FSBWD.js';
12
+ import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-G3NMES6L.js';
13
13
  import './chunk-LYBHKNEG.js';
14
14
  import { findServiceUnit } from './chunk-EOXQCUFJ.js';
15
- import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-V26DDAWZ.js';
15
+ import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-3RFREMDQ.js';
16
16
  import './chunk-OSHKKESX.js';
17
17
  import './chunk-2PGI6RDE.js';
18
18
  import './chunk-I3LTIAOR.js';
@@ -1482,11 +1482,13 @@ function declaredPullRequest(workItem, repository) {
1482
1482
  const chosen = matching.find((entry) => entry.state === "open") ?? matching[0];
1483
1483
  return chosen === void 0 ? void 0 : chosen.prNumber;
1484
1484
  }
1485
- async function readItemEvaluation(config, item, fetchImpl) {
1485
+ async function readItemEvaluation(config, item, fetchImpl, claimId) {
1486
1486
  try {
1487
1487
  const body = fields(await readWorkItem(config, item, fetchImpl));
1488
1488
  const hasPullRequest = Array.isArray(body.pullRequests) ? body.pullRequests.length > 0 : void 0;
1489
- return { ok: true, evaluation: parseEvaluation(body.evaluation, body.checks), hasPullRequest };
1489
+ const noChangeClaim = fields(body.noChange).claimId;
1490
+ const noChangeRecorded = claimId !== void 0 && typeof noChangeClaim === "string" && noChangeClaim === claimId;
1491
+ return { ok: true, evaluation: parseEvaluation(body.evaluation, body.checks), hasPullRequest, noChangeRecorded };
1490
1492
  } catch (err) {
1491
1493
  return { ok: false, reason: describeCallFailure(err) };
1492
1494
  }
@@ -1508,6 +1510,7 @@ function fit(prefix, parts) {
1508
1510
  }
1509
1511
  function decideFromEvaluation(read) {
1510
1512
  if (!read.ok) return { outcome: "incomplete", reason: fit("the item's status could not be read: ", [read.reason]) };
1513
+ if (read.noChangeRecorded === true && read.hasPullRequest !== true) return { outcome: "ok" };
1511
1514
  if (read.hasPullRequest === false) {
1512
1515
  return { outcome: "incomplete", reason: "the build opened no pull request for the item" };
1513
1516
  }
@@ -9006,7 +9009,7 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
9006
9009
  let verdictReason;
9007
9010
  if (outcome === "ok") {
9008
9011
  const decision = await settleVerdict({
9009
- read: () => readItemEvaluation(itemCalls(config, job), job.item, deps.fetchImpl),
9012
+ read: () => readItemEvaluation(itemCalls(config, job), job.item, deps.fetchImpl, job.claimId),
9010
9013
  now,
9011
9014
  sleep: deps.sleep ?? waitMs
9012
9015
  });
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { stripTerminalControls } from './chunk-V26DDAWZ.js';
3
+ import { stripTerminalControls } from './chunk-3RFREMDQ.js';
4
4
  import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-BEQYO2VO.js';
5
5
  import { readFileSync } from 'fs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { scrubReason, stripTerminalControls } from './chunk-V26DDAWZ.js';
3
+ import { scrubReason, stripTerminalControls } from './chunk-3RFREMDQ.js';
4
4
  import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-SZQKS4QK.js';
5
5
  import { RunnerAlreadyRunningError, readPidFile } from './chunk-VYAFSV43.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 { placeholderQueues, placeholderProblem } from './chunk-V26DDAWZ.js';
3
+ import { placeholderQueues, placeholderProblem } from './chunk-3RFREMDQ.js';
4
4
  import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-SZQKS4QK.js';
5
5
  import { getJson, WorkCommandError } from './chunk-IQHREL5T.js';
6
6
  import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-6Y4ZE74I.js';
@@ -1080,7 +1080,7 @@ async function gatherDoctorChecks(options = {}) {
1080
1080
  const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
1081
1081
  checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
1082
1082
  } else if (hasRunnerBlock(configPath)) {
1083
- const { runnerHostChecks } = await import('./doctor-5PTO2DN7.js');
1083
+ const { runnerHostChecks } = await import('./doctor-VCAXH6RM.js');
1084
1084
  const gateway = (() => {
1085
1085
  try {
1086
1086
  const loaded = loadRunnerConfig(configPath);
@@ -129,14 +129,14 @@ function governingDir(cwd) {
129
129
  async function testProofMode(cwd) {
130
130
  const dir = governingDir(cwd);
131
131
  if (dir === void 0) return "any";
132
- const { testProofIn } = await import('./host-checks-ANVIJJZI.js');
132
+ const { testProofIn } = await import('./host-checks-5SPBYP6O.js');
133
133
  return testProofIn(dir);
134
134
  }
135
135
  async function judgeCheckName(cwd) {
136
136
  const dir = governingDir(cwd);
137
137
  if (dir === void 0) return {};
138
138
  if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
139
- const { checksIn, isJudgeCheck } = await import('./host-checks-ANVIJJZI.js');
139
+ const { checksIn, isJudgeCheck } = await import('./host-checks-5SPBYP6O.js');
140
140
  const quiet = { line: () => void 0, error: () => void 0 };
141
141
  const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
142
142
  return check === void 0 ? {} : { name: check.name };
@@ -372,7 +372,7 @@ async function runWorkProofs(opts) {
372
372
  async function runWorkProofsCommand(opts) {
373
373
  try {
374
374
  if (opts.record) {
375
- const { runWorkProofsRecord } = await import('./work-proofs-record-KPRP3UAQ.js');
375
+ const { runWorkProofsRecord } = await import('./work-proofs-record-FU2Y6FBF.js');
376
376
  const result2 = await runWorkProofsRecord(opts);
377
377
  process.exitCode = result2.exitCode;
378
378
  return;
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperSocketPath } from './chunk-V26DDAWZ.js';
3
+ import { helperSocketPath } from './chunk-3RFREMDQ.js';
4
4
  import { UNIT_MARKER } from './chunk-SZQKS4QK.js';
5
5
  import { runnerDir } from './chunk-LYORNXIT.js';
6
6
  import { createHash } from 'crypto';
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
+ import { reportFailedStart, fitImageBuildMemory } from './chunk-FPEZB7CD.js';
3
4
  import { writeFleetState } from './chunk-WX7XACEU.js';
4
5
  import { writePendingUpdate } from './chunk-FPPBL7ZC.js';
6
+ import { renderUpdateSteps } from './chunk-ABPIZHXI.js';
5
7
  import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-NDLWXIVK.js';
6
8
  import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
7
9
  import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
8
- import { reportFailedStart, fitImageBuildMemory } from './chunk-XSEAGCYW.js';
9
- import { renderUpdateSteps } from './chunk-NMSWL2N3.js';
10
10
  import { RUNNER_PROTOCOL } from './chunk-MLM4BYK2.js';
11
- import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-HI5FSBWD.js';
11
+ import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-G3NMES6L.js';
12
12
  import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-LYBHKNEG.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, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, listItemDisks, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-V26DDAWZ.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, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, listItemDisks, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-3RFREMDQ.js';
14
14
  import { RUNNER_RESERVE_BYTES } from './chunk-SZQKS4QK.js';
15
15
  import { RepoFilter } from './chunk-SDUCKX46.js';
16
16
  import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
@@ -3766,7 +3766,7 @@ async function startRunner(configPath, deps, startup) {
3766
3766
  check: update.check ? () => update.check(configPath) : async () => {
3767
3767
  const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
3768
3768
  const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
3769
- return (await import('./check-BNDMAAVS.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
3769
+ return (await import('./check-U2CFIW42.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
3770
3770
  },
3771
3771
  now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
3772
3772
  log
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-VW5NG2AR.js';
3
+ import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-KM77NSXE.js';
4
4
  import './chunk-TWWAV67F.js';
5
5
  import { verifiedTrackerNames, TRACKERS } from './chunk-IQHREL5T.js';
6
6
  import './chunk-VZGTPITG.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-7X22EFRG.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3947
+ const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-6A3PHOXB.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-7X22EFRG.js');
3953
+ const { runInitCommand } = await import('./init-cmd-6A3PHOXB.js');
3954
3954
  const code = await runInitCommand(
3955
3955
  { json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
3956
3956
  {
@@ -5057,7 +5057,7 @@ stops at once if a tracked file differs from HEAD.
5057
5057
  fail(trackerNumberError("--pr", opts.pr));
5058
5058
  return;
5059
5059
  }
5060
- const { runWorkProofsCommand } = await import('./work-proofs-cmd-FXSVPQZC.js');
5060
+ const { runWorkProofsCommand } = await import('./work-proofs-cmd-MHSLSBDV.js');
5061
5061
  await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
5062
5062
  });
5063
5063
  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) => {
@@ -5198,6 +5198,30 @@ Run it again after a change to the title or description.
5198
5198
  throw err;
5199
5199
  }
5200
5200
  });
5201
+ workCmd.command("no-change").description("Record that the work item this build holds needs no change").option("--reason <text>", "one sentence that says why no change is needed (required)").option("--evidence <commit-or-url>", "a commit, pull request or issue URL that shows it").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)").addHelpText(
5202
+ "after",
5203
+ `
5204
+ ${cliInvocation()} work no-change --reason "Fixed on main by abc1234" --evidence abc1234
5205
+
5206
+ Use it when the default branch already meets the issue's request: a bug
5207
+ that is fixed, a duplicate issue, or a feature that exists. Open no pull
5208
+ request afterwards. The item shows No change needed with your reason,
5209
+ and OuterLayer posts the reason on the issue. Only a host build, which
5210
+ holds an item key, can run it.
5211
+ `
5212
+ ).action(async (opts) => {
5213
+ const { runWorkNoChange, WorkNoChangeCommandError } = await import('./work-no-change-cmd-7NI4FKCC.js');
5214
+ const { WorkCommandError } = await import('./work-cmd-VC353JLU.js');
5215
+ try {
5216
+ await runWorkNoChange(opts);
5217
+ } catch (err) {
5218
+ if (err instanceof WorkNoChangeCommandError || err instanceof WorkCommandError) {
5219
+ fail(err.message);
5220
+ return;
5221
+ }
5222
+ throw err;
5223
+ }
5224
+ });
5201
5225
  }
5202
5226
  function runnerHelpWords() {
5203
5227
  const agent = credentialAgent();
@@ -5232,7 +5256,7 @@ function registerRunnerCommands(program2) {
5232
5256
  const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
5233
5257
  runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
5234
5258
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-4YPIDOHH.js');
5235
- const { start, RunnerStartError } = await import('./loop-DFDQQC2Q.js');
5259
+ const { start, RunnerStartError } = await import('./loop-2SYWWJHW.js');
5236
5260
  const { RunnerAlreadyRunningError } = await import('./pidfile-5E4YPCTC.js');
5237
5261
  const configPath = opts.config ?? defaultRunnerConfigPath();
5238
5262
  try {
@@ -5256,8 +5280,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5256
5280
  `
5257
5281
  ).action(async () => {
5258
5282
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-4YPIDOHH.js');
5259
- const { containerStart, containerStartExit } = await import('./container-start-FZCTPBZG.js');
5260
- const { start, RunnerStartError } = await import('./loop-DFDQQC2Q.js');
5283
+ const { containerStart, containerStartExit } = await import('./container-start-ZMIAMEQC.js');
5284
+ const { start, RunnerStartError } = await import('./loop-2SYWWJHW.js');
5261
5285
  const { RunnerAlreadyRunningError } = await import('./pidfile-5E4YPCTC.js');
5262
5286
  try {
5263
5287
  const outcome = containerStartExit(await containerStart({
@@ -5281,14 +5305,14 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5281
5305
  ).action(async (opts) => {
5282
5306
  const { defaultRunnerConfigPath } = await import('./config-4YPIDOHH.js');
5283
5307
  const { runnerDir } = await import('./paths-PSLRVOVY.js');
5284
- const { runUpdateSteps } = await import('./update-steps-KFULBARX.js');
5308
+ const { runUpdateSteps } = await import('./update-steps-KDMOFCVB.js');
5285
5309
  const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
5286
5310
  process.stdout.write(`${text}
5287
5311
  `);
5288
5312
  });
5289
5313
  runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
5290
5314
  const { defaultRunnerConfigPath } = await import('./config-4YPIDOHH.js');
5291
- const { runRunnerCheck } = await import('./check-BNDMAAVS.js');
5315
+ const { runRunnerCheck } = await import('./check-U2CFIW42.js');
5292
5316
  const configPath = opts.config ?? defaultRunnerConfigPath();
5293
5317
  const result = await runRunnerCheck(configPath);
5294
5318
  if (!result.ok) {
@@ -5322,13 +5346,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5322
5346
  }
5323
5347
  }
5324
5348
  const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
5325
- if (buildCpusMax !== void 0 && !(await import('./command-3QXN5ZTK.js')).cpusAreValid(buildCpusMax)) {
5349
+ if (buildCpusMax !== void 0 && !(await import('./command-WVYT7OZA.js')).cpusAreValid(buildCpusMax)) {
5326
5350
  fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
5327
5351
  return;
5328
5352
  }
5329
5353
  try {
5330
5354
  if (opts.service === true) {
5331
- const { installServiceCommand, serviceSuccessText } = await import('./command-3QXN5ZTK.js');
5355
+ const { installServiceCommand, serviceSuccessText } = await import('./command-WVYT7OZA.js');
5332
5356
  const result2 = await installServiceCommand({
5333
5357
  configPath,
5334
5358
  print: opts.print,
@@ -5383,7 +5407,7 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
5383
5407
  return;
5384
5408
  }
5385
5409
  const { defaultRunnerConfigPath } = await import('./config-4YPIDOHH.js');
5386
- const { uninstallServiceCommand } = await import('./command-3QXN5ZTK.js');
5410
+ const { uninstallServiceCommand } = await import('./command-WVYT7OZA.js');
5387
5411
  const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
5388
5412
  if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
5389
5413
  `);
@@ -5414,10 +5438,10 @@ already in ${words().envFile} is used.
5414
5438
  `
5415
5439
  ).action(async (opts) => {
5416
5440
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-4YPIDOHH.js');
5417
- const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-6AAXECDJ.js');
5418
- const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-NS5C5TTT.js');
5419
- const { detectMachine } = await import('./machine-W3R5I6EM.js');
5420
- const { chooseVm, runVmInit, VmInitError } = await import('./init-5ZTKM5KM.js');
5441
+ const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-TFGPUVUU.js');
5442
+ const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-KZGNIOHI.js');
5443
+ const { detectMachine } = await import('./machine-GD2UAX6F.js');
5444
+ const { chooseVm, runVmInit, VmInitError } = await import('./init-RUAPRUFX.js');
5421
5445
  const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-3S64BNCU.js');
5422
5446
  const { headlessNames: headlessNames2 } = await import('./runner-agents-M5CMF2ZA.js');
5423
5447
  const configPath = opts.config ?? defaultRunnerConfigPath();
@@ -5431,7 +5455,7 @@ already in ${words().envFile} is used.
5431
5455
  return;
5432
5456
  }
5433
5457
  try {
5434
- const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-FOR3XGZ2.js');
5458
+ const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-TT25322F.js');
5435
5459
  agent = await initAgent({
5436
5460
  flag: agent,
5437
5461
  handOff: opts.configStdin === true,
@@ -5571,7 +5595,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
5571
5595
  let serviceUp = false;
5572
5596
  let restart;
5573
5597
  if (installedLayout) {
5574
- const { installServiceCommand } = await import('./command-3QXN5ZTK.js');
5598
+ const { installServiceCommand } = await import('./command-WVYT7OZA.js');
5575
5599
  const service = await installServiceCommand({
5576
5600
  configPath,
5577
5601
  entryPath: process.argv[1] ?? "",
@@ -5709,7 +5733,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5709
5733
  });
5710
5734
  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) => {
5711
5735
  const { defaultRunnerConfigPath } = await import('./config-4YPIDOHH.js');
5712
- const { requestStop } = await import('./loop-DFDQQC2Q.js');
5736
+ const { requestStop } = await import('./loop-2SYWWJHW.js');
5713
5737
  const configPath = opts.config ?? defaultRunnerConfigPath();
5714
5738
  const { runnerImageVersion } = await import('./image-tag-5TZ7MF5H.js');
5715
5739
  await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
@@ -5717,8 +5741,8 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5717
5741
  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) => {
5718
5742
  const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-4YPIDOHH.js');
5719
5743
  const { jobsDir, runnerDir } = await import('./paths-PSLRVOVY.js');
5720
- const { listJobFiles, runnerProcessState } = await import('./loop-DFDQQC2Q.js');
5721
- const { renderStatus } = await import('./status-5YK3LOVJ.js');
5744
+ const { listJobFiles, runnerProcessState } = await import('./loop-2SYWWJHW.js');
5745
+ const { renderStatus } = await import('./status-QQZT6HHZ.js');
5722
5746
  const { readHousekeepingRecord } = await import('./record-7ZMZA5QE.js');
5723
5747
  const path2 = await import('path');
5724
5748
  const configPath = opts.config ?? defaultRunnerConfigPath();
@@ -5784,7 +5808,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5784
5808
  });
5785
5809
  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) => {
5786
5810
  const { defaultRunnerConfigPath } = await import('./config-4YPIDOHH.js');
5787
- const { listJobFiles } = await import('./loop-DFDQQC2Q.js');
5811
+ const { listJobFiles } = await import('./loop-2SYWWJHW.js');
5788
5812
  const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-WPNNAY5E.js');
5789
5813
  const configPath = opts.config ?? defaultRunnerConfigPath();
5790
5814
  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-YFARFA4Y.js';
4
- import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-GMLYSAKU.js';
4
+ import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-XGPFDFDU.js';
5
5
  import './chunk-3UKDQNFF.js';
6
6
  import { currentLink, execStartCommand } from './chunk-LYBHKNEG.js';
7
- import { detectMachine, ensureFirecrackerAndJailer } from './chunk-V26DDAWZ.js';
7
+ import { detectMachine, ensureFirecrackerAndJailer } from './chunk-3RFREMDQ.js';
8
8
  import './chunk-OSHKKESX.js';
9
9
  import './chunk-2PGI6RDE.js';
10
10
  import './chunk-I3LTIAOR.js';
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-XSEAGCYW.js';
4
- import { readOwnContainer } from './chunk-NMSWL2N3.js';
5
- import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-V26DDAWZ.js';
3
+ import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-FPEZB7CD.js';
4
+ import { readOwnContainer } from './chunk-ABPIZHXI.js';
5
+ import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-3RFREMDQ.js';
6
6
  import './chunk-OSHKKESX.js';
7
7
  import './chunk-2PGI6RDE.js';
8
8
  import './chunk-I3LTIAOR.js';
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperBinaryFor } from './chunk-GMLYSAKU.js';
3
+ import { helperBinaryFor } from './chunk-XGPFDFDU.js';
4
4
  import { launcherCheck } from './chunk-3UKDQNFF.js';
5
- import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-HI5FSBWD.js';
5
+ import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-G3NMES6L.js';
6
6
  import './chunk-LYBHKNEG.js';
7
- import { needsAgentCredential, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-V26DDAWZ.js';
7
+ import { needsAgentCredential, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-3RFREMDQ.js';
8
8
  import './chunk-OSHKKESX.js';
9
9
  import './chunk-2PGI6RDE.js';
10
10
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { CRITERIA_CHECK, MAX_CHECK_ITEMS_BYTES, checksIn, commandItems, isJudgeCheck, makeRecorder, readDefinitions, runHostChecks, testProofIn, timeoutAfter } from './chunk-V26DDAWZ.js';
3
+ export { CRITERIA_CHECK, MAX_CHECK_ITEMS_BYTES, checksIn, commandItems, isJudgeCheck, makeRecorder, readDefinitions, runHostChecks, testProofIn, timeoutAfter } from './chunk-3RFREMDQ.js';
4
4
  import './chunk-OSHKKESX.js';
5
5
  import './chunk-2PGI6RDE.js';
6
6
  import './chunk-I3LTIAOR.js';
package/dist/index.js CHANGED
@@ -25,5 +25,5 @@ var { runSubcommand } = await import('./agent-subcommand-XECZFIAS.js');
25
25
  var launcherCode = await runSubcommand(argv);
26
26
  if (launcherCode !== void 0) process.exit(launcherCode);
27
27
  (await import('./hook-fast-3VMKCCUO.js')).recordLinkExitFailure(argv);
28
- var { runCli } = await import('./cli-GJQGNNFM.js');
28
+ var { runCli } = await import('./cli-UWN7LDID.js');
29
29
  await runCli(process.argv);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { npmSupportsProvenance } from './chunk-E7R2GIAW.js';
4
- import { RunnerInitError, readConfigObject } from './chunk-V26DDAWZ.js';
4
+ import { RunnerInitError, readConfigObject } from './chunk-3RFREMDQ.js';
5
5
  import './chunk-OSHKKESX.js';
6
6
  import './chunk-2PGI6RDE.js';
7
7
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, prepareRunnerInit, readConfigObject, runRunnerInit, writeRunnerInit } from './chunk-V26DDAWZ.js';
3
+ export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, prepareRunnerInit, readConfigObject, runRunnerInit, writeRunnerInit } from './chunk-3RFREMDQ.js';
4
4
  import './chunk-OSHKKESX.js';
5
5
  import './chunk-2PGI6RDE.js';
6
6
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RunnerInitError } from './chunk-V26DDAWZ.js';
3
+ import { RunnerInitError } from './chunk-3RFREMDQ.js';
4
4
  import './chunk-OSHKKESX.js';
5
5
  import './chunk-2PGI6RDE.js';
6
6
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { summarizeChecks, summaryText, renderDoctorText } from './chunk-VW5NG2AR.js';
3
+ import { summarizeChecks, summaryText, renderDoctorText } from './chunk-KM77NSXE.js';
4
4
  import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-IRFN2ZHJ.js';
5
5
  import './chunk-TWWAV67F.js';
6
6
  import './chunk-IQHREL5T.js';
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { LAPSED_REASON, RunnerStartError, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-XDURUWQP.js';
3
+ export { LAPSED_REASON, RunnerStartError, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-YRCFINIR.js';
4
+ import './chunk-FPEZB7CD.js';
4
5
  import './chunk-WX7XACEU.js';
5
6
  import './chunk-FPPBL7ZC.js';
7
+ import './chunk-ABPIZHXI.js';
6
8
  import './chunk-NDLWXIVK.js';
7
9
  import './chunk-3JVYMD4G.js';
8
10
  import './chunk-E7R2GIAW.js';
9
- import './chunk-XSEAGCYW.js';
10
- import './chunk-NMSWL2N3.js';
11
11
  import './chunk-MLM4BYK2.js';
12
- import './chunk-HI5FSBWD.js';
12
+ import './chunk-G3NMES6L.js';
13
13
  import './chunk-LYBHKNEG.js';
14
- import './chunk-V26DDAWZ.js';
14
+ import './chunk-3RFREMDQ.js';
15
15
  import './chunk-OSHKKESX.js';
16
16
  import './chunk-2PGI6RDE.js';
17
17
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-V26DDAWZ.js';
3
+ export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-3RFREMDQ.js';
4
4
  import './chunk-OSHKKESX.js';
5
5
  import './chunk-2PGI6RDE.js';
6
6
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { readConfigObject, RunnerInitError } from './chunk-V26DDAWZ.js';
3
+ import { readConfigObject, RunnerInitError } from './chunk-3RFREMDQ.js';
4
4
  import './chunk-OSHKKESX.js';
5
5
  import './chunk-2PGI6RDE.js';
6
6
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-V26DDAWZ.js';
3
+ import { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-3RFREMDQ.js';
4
4
  import './chunk-OSHKKESX.js';
5
5
  import './chunk-2PGI6RDE.js';
6
6
  import './chunk-I3LTIAOR.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-NMSWL2N3.js';
4
- import './chunk-V26DDAWZ.js';
3
+ export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-ABPIZHXI.js';
4
+ import './chunk-3RFREMDQ.js';
5
5
  import './chunk-OSHKKESX.js';
6
6
  import './chunk-2PGI6RDE.js';
7
7
  import './chunk-I3LTIAOR.js';
@@ -0,0 +1,85 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire } from 'node:module';
3
+ import { resolveCredentials } from './chunk-IQHREL5T.js';
4
+ import './chunk-VZGTPITG.js';
5
+ import './chunk-RWNVQSGX.js';
6
+ import './chunk-7VVTZNUP.js';
7
+ import './chunk-OCQ5FQZR.js';
8
+ import './chunk-FSYEDSSA.js';
9
+ import './chunk-2KL345FW.js';
10
+ import './chunk-A2LHHKTT.js';
11
+ import { C } from './chunk-2AM6Z5BP.js';
12
+ import { defaultFetch } from './chunk-NOBB3LEO.js';
13
+ import './chunk-HWVMRETT.js';
14
+ import './chunk-FSQDS7A6.js';
15
+ import './chunk-LYORNXIT.js';
16
+ import './chunk-QHT6PIFP.js';
17
+ import './chunk-BU25W7GF.js';
18
+ import './chunk-BJ3KTMDH.js';
19
+ import './chunk-NFZMENCY.js';
20
+ import './chunk-WZBHBH3J.js';
21
+ import './chunk-FZKNTIOJ.js';
22
+ import './chunk-PJNOTSB5.js';
23
+ import './chunk-OO33S4AF.js';
24
+ import './chunk-PLVHIQJN.js';
25
+ import './chunk-7PZDPISM.js';
26
+ import './chunk-CDDED64E.js';
27
+ import './chunk-RA3O54FC.js';
28
+ import { homeFromEnv } from './chunk-352DHUTP.js';
29
+ import './chunk-X25VXXCF.js';
30
+ import './chunk-2VNT47DG.js';
31
+ import './chunk-Z5GEFMRW.js';
32
+
33
+ createRequire(import.meta.url);
34
+
35
+ // src/work-no-change-cmd.ts
36
+ var ITEM_KEY_PREFIX = "olitem_";
37
+ var WorkNoChangeCommandError = class extends Error {
38
+ };
39
+ async function runWorkNoChange(opts) {
40
+ const env = opts.env ?? process.env;
41
+ const reason = opts.reason?.trim() ?? "";
42
+ if (reason === "") {
43
+ throw new WorkNoChangeCommandError('a reason is required: pass --reason "<one sentence>"');
44
+ }
45
+ const evidence = opts.evidence?.trim() ?? "";
46
+ const creds = resolveCredentials({ url: opts.url, apiKey: opts.apiKey, appId: opts.appId, home: opts.home ?? homeFromEnv(env), env });
47
+ if (!creds.apiKey.startsWith(ITEM_KEY_PREFIX)) {
48
+ throw new WorkNoChangeCommandError("only a build can record that no change is needed, and it needs the item key the build is handed");
49
+ }
50
+ const workItem = env.OUTERLAYER_WORK;
51
+ if (workItem === void 0 || workItem === "") {
52
+ throw new WorkNoChangeCommandError("an item key names its work item through OUTERLAYER_WORK, which is not set");
53
+ }
54
+ const endpoint = new URL(`/v1/work-items/${encodeURIComponent(workItem)}/no-change`, creds.url).toString();
55
+ const fetchImpl = opts.fetchImpl ?? defaultFetch;
56
+ let response;
57
+ try {
58
+ response = await fetchImpl(endpoint, {
59
+ method: "POST",
60
+ headers: {
61
+ "content-type": "application/json",
62
+ authorization: `Bearer ${creds.apiKey}`,
63
+ "x-outerlayer-app-id": creds.appId
64
+ },
65
+ body: JSON.stringify(evidence === "" ? { reason } : { reason, evidence })
66
+ });
67
+ } catch (err) {
68
+ throw new WorkNoChangeCommandError(`network error reaching ${endpoint}: ${String(err)}`);
69
+ }
70
+ let json;
71
+ try {
72
+ json = await response.json();
73
+ } catch {
74
+ throw new WorkNoChangeCommandError(`${endpoint} answered ${response.status} with a body that is not JSON`);
75
+ }
76
+ if (!response.ok || !json.data) {
77
+ throw new WorkNoChangeCommandError(json.error?.message ?? `request failed (${response.status})`);
78
+ }
79
+ const data = json.data;
80
+ const output = opts.json ? JSON.stringify(data) : `${C.green}\u2713${C.reset} recorded: no change needed ${C.dim}\xB7${C.reset} ${data.reason}`;
81
+ if (!opts.quiet) process.stdout.write(output + "\n");
82
+ return { data, output };
83
+ }
84
+
85
+ export { WorkNoChangeCommandError, runWorkNoChange };
@@ -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-S35KTDTM.js';
3
+ export { classifyProofs, classifyProofsAt, otherPullRequestHeads, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-TMQKDFKO.js';
4
4
  import './chunk-OSHKKESX.js';
5
5
  import './chunk-IQHREL5T.js';
6
6
  import './chunk-VZGTPITG.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, testProofMode, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, proofsCommentBody } from './chunk-S35KTDTM.js';
3
+ import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, testProofMode, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, proofsCommentBody } from './chunk-TMQKDFKO.js';
4
4
  import { runEmitDemo } from './chunk-MXSQINKG.js';
5
5
  import { readNewestDemo } from './chunk-ER6KQCVJ.js';
6
6
  import { runWorkComment } from './chunk-B7CAUXSV.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outerlayer/cli",
3
- "version": "0.38.0-next.20261106232046",
3
+ "version": "0.38.0-next.20261107103956",
4
4
  "description": "OuterLayer CLI — commands: init, claude, opencode, 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.",
@@ -273,6 +273,23 @@ Run them in order.
273
273
  Ask nothing from here until the final report. An agent that needs a ruling
274
274
  states its assumption in its report and continues. The final report lists
275
275
  every assumption.
276
+ Before you change any code, check whether the default branch already meets
277
+ the issue's request. Examples are a bug that is already fixed, a duplicate
278
+ of another issue, or a feature that already exists. Run the issue's own
279
+ steps against the default branch, and read its history. If the request is
280
+ already met, run:
281
+
282
+ outerlayer work no-change --reason "<one sentence>" --evidence <commit, pull request or issue URL>
283
+
284
+ `--reason` is required. Add `--evidence` when you have a commit or a link
285
+ that shows it. Then open no pull request, skip the phases that follow, and
286
+ end the run with the final report. The report says that no change is
287
+ needed and gives the reason. OuterLayer shows the item as No change needed,
288
+ posts the reason on the issue, and leaves the issue open for a person to
289
+ close. Do this only when you are sure. If you are unsure, or part of the
290
+ request is not met, continue with the phases. The command works only in a
291
+ runner build, which holds an item key. In any other session, put the
292
+ reason in the final report and open no pull request.
276
293
  2. **Criteria.** Run `outerlayer emit step "Criteria" --item "$OUTERLAYER_WORK"`,
277
294
  then apply the team's changes for this phase. Record the issue's criteria on the item, so the
278
295
  Criteria tab, the item's status and the judge hold the pull request to one