@outerlayer/cli 0.40.0-next.20261117061535 → 0.40.0-next.20261117115225
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-MT72TGW6.js → check-CS2U2LU4.js} +1 -1
- package/dist/{chunk-OSVM5NHT.js → chunk-FTXTRATJ.js} +13 -1
- package/dist/{cli-UIGVWGJL.js → cli-4YRY7FBI.js} +7 -7
- package/dist/index.js +1 -1
- package/dist/{loop-7D2SESNF.js → loop-NYTY3WU7.js} +1 -1
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-11-
|
|
1
|
+
{"id":"2026-11-17T11:58:50.989Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { probeCredentials } from './chunk-
|
|
3
|
+
import { probeCredentials } from './chunk-FTXTRATJ.js';
|
|
4
4
|
import './chunk-AAGXH2FR.js';
|
|
5
5
|
import './chunk-E7R2GIAW.js';
|
|
6
6
|
import './chunk-YNFCFPLT.js';
|
|
@@ -220,6 +220,7 @@ async function runFleetTick(ports, memory) {
|
|
|
220
220
|
memory.held = held;
|
|
221
221
|
const images = [...NO_IMAGES];
|
|
222
222
|
const disks = ports.disks();
|
|
223
|
+
const provisionEnds = ports.provisionEnds();
|
|
223
224
|
for (let called = 0; called < MAX_CLAIMS_PER_POLL; called++) {
|
|
224
225
|
const room = roomOf(ports, held);
|
|
225
226
|
const answer = await callFleetRoute(ports, memory, room, images, disks);
|
|
@@ -250,8 +251,16 @@ async function runFleetTick(ports, memory) {
|
|
|
250
251
|
);
|
|
251
252
|
return;
|
|
252
253
|
}
|
|
254
|
+
if (ports.waitsAfterProvision()) {
|
|
255
|
+
const released = await ports.release({ workItemId: answer.claim.workItemId, appId: answer.claim.appId });
|
|
256
|
+
ports.log.line(
|
|
257
|
+
`the runner takes no work after a provision that failed; the claim on work item ${answer.claim.workItemId} was ${released ? "given back" : "not given back, so it stays held until its lease lapses"}`
|
|
258
|
+
);
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
253
261
|
const started = await ports.startBuild(answer.claim);
|
|
254
262
|
if (!started || held || ports.draining()) return;
|
|
263
|
+
if (ports.provisionEnds() > provisionEnds) return;
|
|
255
264
|
}
|
|
256
265
|
}
|
|
257
266
|
async function runFleetKeepalive(ports, memory, minGapMs) {
|
|
@@ -3221,6 +3230,8 @@ function fleetPortsOf(state) {
|
|
|
3221
3230
|
applyStops: (stops) => applyStops(state, stops),
|
|
3222
3231
|
considerVersion: (named) => considerNamedVersion(state, named),
|
|
3223
3232
|
revoked: () => endRevokedBuilds(state),
|
|
3233
|
+
provisionEnds: () => state.provisionEnds ?? 0,
|
|
3234
|
+
waitsAfterProvision: () => provisionRetryHoldActive(state.provisionRetryHold, nowOf(state).getTime()),
|
|
3224
3235
|
startBuild: async (claim) => {
|
|
3225
3236
|
const item = { id: claim.workItemId, number: claim.number, trackerKey: `organization ${claim.organizationId.slice(0, 8)}`, startable: true };
|
|
3226
3237
|
const attempt = await startClaimedBuild(state, item, claim.kind, claim.data, {
|
|
@@ -4500,6 +4511,7 @@ function freeJobDir(configPath, queue, item, claimId, startedAt) {
|
|
|
4500
4511
|
async function endJob(state, active, outcome, ending) {
|
|
4501
4512
|
if (active.ending) return;
|
|
4502
4513
|
active.ending = true;
|
|
4514
|
+
if (ending?.stage === "provision") state.provisionEnds = (state.provisionEnds ?? 0) + 1;
|
|
4503
4515
|
try {
|
|
4504
4516
|
const finished = await finishJob(active.job, active.dirPath, outcome, state.config, finishDepsOf(state), ending);
|
|
4505
4517
|
active.job = finished;
|
|
@@ -5178,7 +5190,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
5178
5190
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
5179
5191
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
5180
5192
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
5181
|
-
return (await import('./check-
|
|
5193
|
+
return (await import('./check-CS2U2LU4.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
5182
5194
|
},
|
|
5183
5195
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
5184
5196
|
log
|
|
@@ -5517,7 +5517,7 @@ function registerRunnerCommands(program2) {
|
|
|
5517
5517
|
const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
|
|
5518
5518
|
runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
|
|
5519
5519
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-OJTLS62B.js');
|
|
5520
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5520
|
+
const { start, RunnerStartError } = await import('./loop-NYTY3WU7.js');
|
|
5521
5521
|
const { RunnerAlreadyRunningError } = await import('./pidfile-2TYTTJAD.js');
|
|
5522
5522
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5523
5523
|
try {
|
|
@@ -5542,7 +5542,7 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5542
5542
|
).action(async () => {
|
|
5543
5543
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-OJTLS62B.js');
|
|
5544
5544
|
const { containerStart, containerStartExit } = await import('./container-start-WVZ2SSQH.js');
|
|
5545
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5545
|
+
const { start, RunnerStartError } = await import('./loop-NYTY3WU7.js');
|
|
5546
5546
|
const { RunnerAlreadyRunningError } = await import('./pidfile-2TYTTJAD.js');
|
|
5547
5547
|
try {
|
|
5548
5548
|
const outcome = containerStartExit(await containerStart({
|
|
@@ -5573,7 +5573,7 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5573
5573
|
});
|
|
5574
5574
|
runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
|
|
5575
5575
|
const { defaultRunnerConfigPath } = await import('./config-OJTLS62B.js');
|
|
5576
|
-
const { runRunnerCheck } = await import('./check-
|
|
5576
|
+
const { runRunnerCheck } = await import('./check-CS2U2LU4.js');
|
|
5577
5577
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5578
5578
|
const result = await runRunnerCheck(configPath);
|
|
5579
5579
|
if (!result.ok) {
|
|
@@ -5700,7 +5700,7 @@ already in ${words().envFile} is used.
|
|
|
5700
5700
|
).action(async (opts) => {
|
|
5701
5701
|
const { defaultRunnerConfigPath, loadRunnerConfig, RunnerConfigError } = await import('./config-OJTLS62B.js');
|
|
5702
5702
|
const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit, removeRunnerBlock, nativeWindowsSandboxRefusal } = await import('./init-X7RMCZ7P.js');
|
|
5703
|
-
const { askManagedSandboxes } = await import('./check-
|
|
5703
|
+
const { askManagedSandboxes } = await import('./check-CS2U2LU4.js');
|
|
5704
5704
|
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-L6KNJNEM.js');
|
|
5705
5705
|
const { detectMachine } = await import('./machine-SMT7B3HP.js');
|
|
5706
5706
|
const { chooseVm, runVmInit, VmInitError } = await import('./init-67NCMKO6.js');
|
|
@@ -6027,7 +6027,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
6027
6027
|
});
|
|
6028
6028
|
runnerCmd.command("stop").description("Take no more work; finish running jobs, then exit").option("--config <path>", "the cloud config file naming the runner to stop").option("--now", "end running jobs immediately, with outcome stopped").action(async (opts) => {
|
|
6029
6029
|
const { defaultRunnerConfigPath } = await import('./config-OJTLS62B.js');
|
|
6030
|
-
const { requestStop } = await import('./loop-
|
|
6030
|
+
const { requestStop } = await import('./loop-NYTY3WU7.js');
|
|
6031
6031
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
6032
6032
|
const { runnerImageVersion } = await import('./image-tag-DJ2DYY75.js');
|
|
6033
6033
|
await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
|
|
@@ -6035,7 +6035,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
6035
6035
|
runnerCmd.command("status").description("List running jobs; with --recent, finished ones too").option("--config <path>", "the cloud config file naming the runner to inspect").option("--recent", "also list finished jobs, newest first, capped at 20").option("--json", "machine-readable JSON output").action(async (opts) => {
|
|
6036
6036
|
const { builtinKind, defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-OJTLS62B.js');
|
|
6037
6037
|
const { jobsDir, runnerDir } = await import('./paths-KPYCKVEO.js');
|
|
6038
|
-
const { listJobFiles, runnerProcessState } = await import('./loop-
|
|
6038
|
+
const { listJobFiles, runnerProcessState } = await import('./loop-NYTY3WU7.js');
|
|
6039
6039
|
const { renderStatus } = await import('./status-6GZN7A33.js');
|
|
6040
6040
|
const { readHousekeepingRecord } = await import('./record-SXQN3F2G.js');
|
|
6041
6041
|
const path2 = await import('path');
|
|
@@ -6109,7 +6109,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
6109
6109
|
});
|
|
6110
6110
|
runnerCmd.command("logs").argument("<item>", "the work item's number in the factory, or a build's claim id").description("Print the newest attempt's log for one item or claim id").option("--config <path>", "the cloud config file naming the runner to inspect").option("-f, --follow", "keep printing as the log grows").action(async (itemArg, opts) => {
|
|
6111
6111
|
const { defaultRunnerConfigPath } = await import('./config-OJTLS62B.js');
|
|
6112
|
-
const { listJobFiles } = await import('./loop-
|
|
6112
|
+
const { listJobFiles } = await import('./loop-NYTY3WU7.js');
|
|
6113
6113
|
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-IGY3Z45I.js');
|
|
6114
6114
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
6115
6115
|
const jobs = listJobFiles(configPath);
|
package/dist/index.js
CHANGED
|
@@ -25,5 +25,5 @@ var { runSubcommand } = await import('./agent-subcommand-64YO6FE4.js');
|
|
|
25
25
|
var launcherCode = await runSubcommand(argv);
|
|
26
26
|
if (launcherCode !== void 0) process.exit(launcherCode);
|
|
27
27
|
(await import('./hook-fast-3EMC5BR5.js')).recordLinkExitFailure(argv);
|
|
28
|
-
var { runCli } = await import('./cli-
|
|
28
|
+
var { runCli } = await import('./cli-4YRY7FBI.js');
|
|
29
29
|
await runCli(process.argv);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { LAPSED_REASON, RunnerStartError, applyComments, endWhenStartFails, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, provisionsBesideOthers, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-
|
|
3
|
+
export { LAPSED_REASON, RunnerStartError, applyComments, endWhenStartFails, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, provisionsBesideOthers, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-FTXTRATJ.js';
|
|
4
4
|
import './chunk-AAGXH2FR.js';
|
|
5
5
|
import './chunk-E7R2GIAW.js';
|
|
6
6
|
import './chunk-YNFCFPLT.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outerlayer/cli",
|
|
3
|
-
"version": "0.40.0-next.
|
|
3
|
+
"version": "0.40.0-next.20261117115225",
|
|
4
4
|
"description": "OuterLayer CLI — commands: setup, init, claude, opencode, codex, connect, doctor, login, logout, sync, daemon (alias: watch), emit, demo, findings, work, run, spec, runner, hooks, mcp, context. Capture and sync coding-agent sessions, and record proof of factory work.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Magu Studios, Inc.",
|