@outerlayer/cli 0.36.0-next.20261103191900 → 0.36.1-next.20261103221424
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/CHANGELOG.md +35 -0
- package/dist/{build-4R4PUGPT.js → build-5RXY5MG3.js} +2 -2
- package/dist/{build-disk-LYHGWH4G.js → build-disk-BS3LA3TN.js} +2 -2
- package/dist/build-info.json +1 -1
- package/dist/{builder-ER6LUZBQ.js → builder-FS4BB6Y6.js} +1 -1
- package/dist/{caller-PCOQRDGJ.js → caller-CV2ANJ2W.js} +4 -4
- package/dist/{check-27MDV3T5.js → check-FC4I4ZTM.js} +13 -13
- package/dist/{chunk-2BTDFRRQ.js → chunk-4LJ4LTOK.js} +23 -5
- package/dist/{chunk-BOUW2CV6.js → chunk-6NR24FKU.js} +1 -1
- package/dist/{chunk-K3GWZRRK.js → chunk-C45EFKBZ.js} +1 -1
- package/dist/{chunk-PCWNDYQO.js → chunk-E6J6SPFA.js} +4 -4
- package/dist/{chunk-7V4ZEB2R.js → chunk-H25KYIO7.js} +2 -2
- package/dist/{chunk-D7TMGSZN.js → chunk-HOMHZPMD.js} +2 -2
- package/dist/{chunk-7TZP5JBS.js → chunk-HOQMMMSM.js} +1 -1
- package/dist/{chunk-LIJMW36Q.js → chunk-IL2Y4OK6.js} +7 -7
- package/dist/{chunk-KJ424QKG.js → chunk-M2ZEQS7E.js} +2 -2
- package/dist/{chunk-Z27IIHHE.js → chunk-MJDH3P23.js} +10 -10
- package/dist/{chunk-6LPBK4XU.js → chunk-OEVWL356.js} +3 -3
- package/dist/{chunk-C4OYAXLQ.js → chunk-OQJSFWPZ.js} +3 -3
- package/dist/{chunk-QBDQ64QF.js → chunk-OZEL5BWW.js} +1 -1
- package/dist/{chunk-MLO33RMW.js → chunk-TCBN5UX5.js} +4 -4
- package/dist/{chunk-4KYPJE3D.js → chunk-U4VKDB7R.js} +2 -2
- package/dist/{chunk-ENWGIREE.js → chunk-WVNQXYR7.js} +1 -1
- package/dist/{cli-RCLYJFIL.js → cli-LDHTZWDW.js} +43 -43
- package/dist/{command-XGIJADGX.js → command-LQ77DEWJ.js} +9 -9
- package/dist/{config-VHJI645L.js → config-AUMW46GF.js} +3 -3
- package/dist/{container-start-S5EL4HIH.js → container-start-QMWBV4TL.js} +10 -10
- package/dist/{docker-BP7AD65K.js → docker-ILVTK2GR.js} +1 -1
- package/dist/{doctor-TZIHEPIW.js → doctor-RLKFNNZB.js} +10 -10
- package/dist/{find-unit-L2JIUL4D.js → find-unit-AIXKASFJ.js} +5 -5
- package/dist/{host-checks-FEYDTZKZ.js → host-checks-RF3ER7US.js} +8 -8
- package/dist/index.js +1 -1
- package/dist/{init-RSKNY7WL.js → init-VB73MMYI.js} +8 -8
- package/dist/{init-6FLEEVZY.js → init-WNPSZNXW.js} +8 -8
- package/dist/{init-cmd-UD6QSHH2.js → init-cmd-XOUXK2C7.js} +1 -1
- package/dist/{loop-VCH4UOQ4.js → loop-S5AG6MH7.js} +12 -12
- package/dist/{machine-ZU7XA2IC.js → machine-DYSDAKOK.js} +8 -8
- package/dist/{runner-env-XX2NZOEJ.js → runner-env-DXGJIUBT.js} +5 -5
- package/dist/{runner-identity-HHW4UKYE.js → runner-identity-TLNJZ5GX.js} +1 -1
- package/dist/{runner-key-FNNAF36Q.js → runner-key-SCZBL34Z.js} +8 -8
- package/dist/{status-FQ5AIDWL.js → status-67RF4KJ5.js} +8 -8
- package/dist/{update-steps-TR2A4Z6Q.js → update-steps-CXWUNWCN.js} +9 -9
- package/dist/{work-claim-cmd-PBW4QDJH.js → work-claim-cmd-ABWLXEVY.js} +3 -3
- package/dist/{work-proofs-cmd-NINHCBZW.js → work-proofs-cmd-AMH2EPX5.js} +1 -1
- package/dist/{work-proofs-record-7XH374TO.js → work-proofs-record-W75LA4IR.js} +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @outerlayer/cli
|
|
2
2
|
|
|
3
|
+
## 0.36.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 06bfdf3: An agent job starts from the build disk that the item's previous build or agent job left on the runner's host. The disk holds untracked and ignored files, installed dependencies, build outputs and Docker images. Three new settings, `runner.housekeeping.workspaceMax`, `workspaceOrgMax` and `workspaceKeepDays`, limit the kept disks.
|
|
8
|
+
- eb87c6b: A runner writes a comment a member hands to the agent into the running build's inbox. The build's hooks give the comment to the agent at its next step and record the read. `runner.deliverComments: false` turns this off.
|
|
9
|
+
- 45aff62: A runner reports in each heartbeat whether its builds receive a member's comments, so the item page can say when the agent reads a follow-up. The comment contract also gains the `follow_up` action.
|
|
10
|
+
- e388b13: A microVM runner keeps only the newest root disk record of each repository. Housekeeping removes older records, so more builds fit on the host's disk.
|
|
11
|
+
- 4689807: Builds on managed runners start from a saved state. On a managed runner, setup scripts, runtime installs and lifecycle commands run without the factory's build variables and without a `gh` login.
|
|
12
|
+
- 418c02a: A microVM build saves and restores its saved state as a copy of its build disk, not as a tar file. A large state restores in seconds on a file system with reflinks. The root helper gains a `copy` operation, so run `outerlayer runner install --service --replace` to install it.
|
|
13
|
+
- cfe3c1c: A managed runner reads the factory's proxied build variables from a claim's build settings. It serves each as a local address for that build, so the build holds a stand-in value and the runner adds the real value to each request it forwards to the service over HTTPS.
|
|
14
|
+
- dc9291f: `outerlayer sync` reads only Claude Code sessions, and `outerlayer sync` no longer takes `--codex-root` or `--cursor-root`. `outerlayer context emit` writes files only for the `claude-code` target. A config that lists `cursor`, `codex`, `copilot` or `factory` fails with an error that tells you to delete it. A launch or a build that reads such a config in a control plane refuses to start.
|
|
15
|
+
- 4d360d6: A rerun of a build starts from the build disk that the item's previous job left on the runner's host. `outerlayer work build --fresh` starts the build from a fresh disk instead. The gateway refuses `--fresh` with `fresh_disk_unavailable` on an item whose open pull request waits on an agent. A disk that an earlier runner version kept is not restored, so the first rerun after the upgrade starts from a fresh disk. A build released for passing its disk limit leaves no kept disk. The runner protocol is now 42.
|
|
16
|
+
- 557404a: The runner builds only in a container or a microVM. `builtin:process`, `runner init --allow-process-builds` and `--no-vm` are removed. A config that names `builtin:process` does not load and says which hooks to set.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 2b97880: A microVM runner gives an image-build cache disk's unused space back to the host again. When the first `e2fsck` of the disk repairs its file system, it discards nothing, so the runner runs a second check, which does. Without the second check, a cache disk held close to its full `runner.build.cacheDisk` size on the host, even when its file system used much less.
|
|
21
|
+
- 943d0d4: Watch session transcripts with chokidar 6. On macOS the CLI now watches the transcripts folder with one recursive watcher instead of one watcher per file.
|
|
22
|
+
- f23a9c6: Claude Code 2.1.316 and earlier versions count as tested. `outerlayer doctor` no longer calls them newer than tested, and their sessions no longer carry a `version_newer_than_supported` warning. Five new bookkeeping line types in their transcripts no longer raise `unknown_line_type`.
|
|
23
|
+
- 44175da: A demo now points at what each line talks about. Inside a `demo.say()` beat, each passed `expect` on a locator dims the page around the element it checks and rings it. A later check in the beat widens the ring to take in its element too. The pointer moving to an element outside the ring clears it. A negated check, a check on several elements, and a check on an element that fills most of the screen ring nothing. `demo.highlight()` still rings an element no check looks at.
|
|
24
|
+
- 5d02743: A demo beat rings one element, the first its checks look at, and never a whole card or section. The dim around a ring is lighter, and a still no longer makes the video flash. `emit demo` stores the whole video at about half its former size, and encodes it again at a lower quality before it falls back to one clip per chapter, so a long demo still plays as one video.
|
|
25
|
+
- f97e5c8: `outerlayer emit demo` refuses a spoken line that sells or that a viewer cannot follow. It refuses a sales word or stock phrase such as "seamless", "powerful" or "dive in", a dash, an exclamation mark, a criterion id, and a beat's line over 30 words. The refusal names the chapter, the beat, the line and the reason. The evidence skill now says to write each line as you say it to a teammate at your screen, and to listen to the rendered demo.
|
|
26
|
+
- 8789f91: A build that ends incomplete names the criteria the judge failed, such as `Acceptance criteria: Failed in the local run (failing: AC-13-01)`, instead of the rule the check states.
|
|
27
|
+
- fd70143: `outerlayer init` ends by pointing at starting a runner, with a link to the docs table that matches each kind of machine to its runner setup. It no longer suggests Build locally or an `OUTERLAYER_WORK` launch command as the next step.
|
|
28
|
+
- d493407: The runner removes your factory's variable values from an agent's session before it keeps the session for the item's next agent job.
|
|
29
|
+
- 07592ef: OpenCode's plugin starts each `outerlayer hook` call detached, so OpenCode on macOS keeps the hook calls of a run that ends just after its last event.
|
|
30
|
+
- 7356fc2: The runner reads its agent commands, judge, session files and shim through the agent interface. A runner, a build and a person see no change.
|
|
31
|
+
- 44b9bb6: Every runner build now runs unattended, keeps a long test run in the foreground, and does not end while its agent's work still runs in the background, whatever its configured command says. `runner init --agent claude` names a model for each queue: Opus for `implement` and Sonnet for `amend`. `runner check` notes a command that names no model.
|
|
32
|
+
- 184d1bd: A build on a host's own provision hooks gets the same agent variables as a container or microVM build: it runs unattended, keeps a long test run in the foreground, and does not end while its agent's work still runs in the background. A variable the runner's own environment sets keeps its value.
|
|
33
|
+
- b5d4159: A runner now stops waiting for a lease renewal, or a read of the work item, after 30 seconds without an answer. A renewal that times out is sent again and logged as a missed renewal. Before, one stalled call held the build, with no log line, until its lease ran out.
|
|
34
|
+
- 705da25: A runner that stops while a builder microVM builds an image now stops the builder and exits within seconds. Before, `runner stop --now` waited for the image build to finish.
|
|
35
|
+
- 5d0b7b1: The `build` template that `outerlayer init` writes has no Pull request rule of its own. The maintained build skill records a fix build's problem results, and opens the pull request when `outerlayer findings show` fails twice. `outerlayer init --update` removes the rule from a `build` skill nobody edited.
|
|
36
|
+
- ff6f9ac: A stopped runner exits at once. A build connection that closed no longer leaves a one-minute timer that keeps the runner process alive.
|
|
37
|
+
|
|
3
38
|
## 0.35.0
|
|
4
39
|
|
|
5
40
|
### Minor Changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { KEY_PREFIX, SHARED_NAME, SHARED_OWNER, SHARED_REPOSITORY, TAG_HOST, UNIVERSAL_SOURCE_LABEL, baseLines, buildRepositoryImage, metadataFromLabels, prepareImageBuild, universalBase, writeRecord } from './chunk-
|
|
3
|
+
export { KEY_PREFIX, SHARED_NAME, SHARED_OWNER, SHARED_REPOSITORY, TAG_HOST, UNIVERSAL_SOURCE_LABEL, baseLines, buildRepositoryImage, metadataFromLabels, prepareImageBuild, universalBase, writeRecord } from './chunk-C45EFKBZ.js';
|
|
4
4
|
import './chunk-5MN6VZZH.js';
|
|
5
5
|
import './chunk-KQDTORGF.js';
|
|
6
6
|
import './chunk-JBJTC3UU.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-4LJ4LTOK.js';
|
|
8
8
|
export { RecipeError } from './chunk-XLCAYPLV.js';
|
|
9
9
|
import './chunk-EKDQDOSS.js';
|
|
10
10
|
import './chunk-PYPHE6FZ.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, DOCKER_CACHE_MS, allocatedBytes, checkDiskFit, realBuildDiskProbe, runDocker, volumeBytes } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, DOCKER_CACHE_MS, allocatedBytes, checkDiskFit, realBuildDiskProbe, runDocker, volumeBytes } from './chunk-6NR24FKU.js';
|
|
4
|
+
import './chunk-4LJ4LTOK.js';
|
|
5
5
|
import './chunk-XLCAYPLV.js';
|
|
6
6
|
import './chunk-EKDQDOSS.js';
|
|
7
7
|
import './chunk-PYPHE6FZ.js';
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-11-
|
|
1
|
+
{"id":"2026-11-03T22:23:37.410Z","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
|
-
export { MIN_BUILDX_VERSION, builderName, builderSpec, buildxState, ensureBuilder, ensureFailureCount, isOutOfMemory, proxyEnvironment, trackImageBuild } from './chunk-
|
|
3
|
+
export { MIN_BUILDX_VERSION, builderName, builderSpec, buildxState, ensureBuilder, ensureFailureCount, isOutOfDisk, isOutOfMemory, proxyEnvironment, trackImageBuild } from './chunk-4LJ4LTOK.js';
|
|
4
4
|
import './chunk-XLCAYPLV.js';
|
|
5
5
|
import './chunk-EKDQDOSS.js';
|
|
6
6
|
import './chunk-PYPHE6FZ.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { claimCalls, claimItem, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
3
|
+
export { claimCalls, claimItem, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor } from './chunk-HOQMMMSM.js';
|
|
4
|
+
import './chunk-H25KYIO7.js';
|
|
5
|
+
import './chunk-6NR24FKU.js';
|
|
6
|
+
import './chunk-4LJ4LTOK.js';
|
|
7
7
|
import './chunk-XLCAYPLV.js';
|
|
8
8
|
import './chunk-EKDQDOSS.js';
|
|
9
9
|
import './chunk-PYPHE6FZ.js';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { probeCredentials } from './chunk-
|
|
3
|
+
import { probeCredentials } from './chunk-MJDH3P23.js';
|
|
4
4
|
import './chunk-GAPNTRA5.js';
|
|
5
5
|
import './chunk-PUEIXGZ4.js';
|
|
6
6
|
import './chunk-FDRQZALU.js';
|
|
7
7
|
import './chunk-3JVYMD4G.js';
|
|
8
8
|
import './chunk-E7R2GIAW.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import './chunk-OQJSFWPZ.js';
|
|
10
|
+
import './chunk-HOMHZPMD.js';
|
|
11
11
|
import './chunk-IDYLPN4X.js';
|
|
12
|
-
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-
|
|
12
|
+
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-E6J6SPFA.js';
|
|
13
13
|
import './chunk-W3ZKWZ6G.js';
|
|
14
|
-
import { findServiceUnit } from './chunk-
|
|
15
|
-
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-
|
|
14
|
+
import { findServiceUnit } from './chunk-OZEL5BWW.js';
|
|
15
|
+
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-IL2Y4OK6.js';
|
|
16
16
|
import './chunk-JJ63MLE5.js';
|
|
17
17
|
import './chunk-2PGI6RDE.js';
|
|
18
18
|
import './chunk-I3LTIAOR.js';
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
19
|
+
import './chunk-WVNQXYR7.js';
|
|
20
|
+
import './chunk-M2ZEQS7E.js';
|
|
21
21
|
import './chunk-OM3XGJBY.js';
|
|
22
22
|
import './chunk-GNLAORSW.js';
|
|
23
23
|
import './chunk-2HOSCIV6.js';
|
|
@@ -28,9 +28,9 @@ import './chunk-WGC7UFRM.js';
|
|
|
28
28
|
import './chunk-ZVB57WI6.js';
|
|
29
29
|
import './chunk-T4J5VR7B.js';
|
|
30
30
|
import './chunk-TQMI335S.js';
|
|
31
|
-
import './chunk-
|
|
31
|
+
import './chunk-HOQMMMSM.js';
|
|
32
32
|
import './chunk-NN33FYXG.js';
|
|
33
|
-
import './chunk-
|
|
33
|
+
import './chunk-C45EFKBZ.js';
|
|
34
34
|
import './chunk-5MN6VZZH.js';
|
|
35
35
|
import './chunk-KQDTORGF.js';
|
|
36
36
|
import './chunk-JBJTC3UU.js';
|
|
@@ -41,9 +41,9 @@ import './chunk-H5CWIV56.js';
|
|
|
41
41
|
import './chunk-DE64NSOH.js';
|
|
42
42
|
import './chunk-NE2A2ZIY.js';
|
|
43
43
|
import './chunk-WVZ6EKJ3.js';
|
|
44
|
-
import { loadRunnerConfig, RunnerConfigError, checkHooks, keyRunnerFactory } from './chunk-
|
|
45
|
-
import './chunk-
|
|
46
|
-
import './chunk-
|
|
44
|
+
import { loadRunnerConfig, RunnerConfigError, checkHooks, keyRunnerFactory } from './chunk-H25KYIO7.js';
|
|
45
|
+
import './chunk-6NR24FKU.js';
|
|
46
|
+
import './chunk-4LJ4LTOK.js';
|
|
47
47
|
import './chunk-XLCAYPLV.js';
|
|
48
48
|
import './chunk-I5EZW66W.js';
|
|
49
49
|
import './chunk-S7YLAN2P.js';
|
|
@@ -149,6 +149,18 @@ function layoutDigest(layout) {
|
|
|
149
149
|
if (digest === void 0) throw new Error(`${join(layout, "index.json")} lists no image`);
|
|
150
150
|
return digest;
|
|
151
151
|
}
|
|
152
|
+
function outOfDisk(logPath) {
|
|
153
|
+
return new RecipeError(
|
|
154
|
+
"image_build_out_of_disk",
|
|
155
|
+
`the image build ran out of disk: Docker's storage on this host has no space left. Free space with docker system df and docker image prune, or give Docker more disk; the build log is at ${logPath}`,
|
|
156
|
+
logPath
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
function buildFailure(builder, output, logPath) {
|
|
160
|
+
if (isOutOfDisk(output)) return outOfDisk(logPath);
|
|
161
|
+
if (isOutOfMemory(output)) return outOfMemory(builder, logPath);
|
|
162
|
+
return void 0;
|
|
163
|
+
}
|
|
152
164
|
function outOfMemory(builder, logPath) {
|
|
153
165
|
return new RecipeError(
|
|
154
166
|
"image_build_out_of_memory",
|
|
@@ -230,8 +242,9 @@ function createDockerHost(deps = {}) {
|
|
|
230
242
|
req.context
|
|
231
243
|
];
|
|
232
244
|
const result = await trackImageBuild(() => run("docker", args, { logPath: req.logPath, input: req.dockerfile }));
|
|
233
|
-
|
|
234
|
-
${result.stderr}
|
|
245
|
+
const failure = result.status === 0 ? void 0 : buildFailure(builder, `${result.stdout}
|
|
246
|
+
${result.stderr}`, req.logPath);
|
|
247
|
+
if (failure !== void 0) throw failure;
|
|
235
248
|
return result.status;
|
|
236
249
|
},
|
|
237
250
|
async devcontainerBuild(req) {
|
|
@@ -241,8 +254,9 @@ ${result.stderr}`)) throw outOfMemory(builder, req.logPath);
|
|
|
241
254
|
rmSync(req.layoutOut, { recursive: true, force: true });
|
|
242
255
|
}
|
|
243
256
|
const result = await trackImageBuild(() => run(command, args, { logPath: req.logPath, env: { BUILDX_BUILDER: builder.name } }));
|
|
244
|
-
|
|
245
|
-
${result.stderr}
|
|
257
|
+
const failure = result.status === 0 ? void 0 : buildFailure(builder, `${result.stdout}
|
|
258
|
+
${result.stderr}`, req.logPath);
|
|
259
|
+
if (failure !== void 0) throw failure;
|
|
246
260
|
return result.status;
|
|
247
261
|
},
|
|
248
262
|
async remove(id) {
|
|
@@ -769,7 +783,11 @@ async function buildxState(run) {
|
|
|
769
783
|
}
|
|
770
784
|
return "usable";
|
|
771
785
|
}
|
|
786
|
+
function isOutOfDisk(output) {
|
|
787
|
+
return /no space left on device/i.test(output);
|
|
788
|
+
}
|
|
772
789
|
function isOutOfMemory(output) {
|
|
790
|
+
if (isOutOfDisk(output)) return false;
|
|
773
791
|
if (/cannot allocate memory/i.test(output)) return true;
|
|
774
792
|
if (/did not complete successfully: (exit code: 137|signal: killed)/i.test(output)) return true;
|
|
775
793
|
return /ResourceExhausted/i.test(output) && !/larger than max|message size|too large/i.test(output);
|
|
@@ -873,4 +891,4 @@ function ensureBuilder(rawRun, spec, options = {}) {
|
|
|
873
891
|
);
|
|
874
892
|
}
|
|
875
893
|
|
|
876
|
-
export { BUILD_LABEL, COMMAND_DIR, JUDGE_DIR, JUDGE_ITEMS, JUDGE_MAX_TURNS, JUDGE_REPORT, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, MIN_BUILDX_VERSION, NETWORK_HELPER_MEMORY, NETWORK_READY_FILE, RUNNER_LABEL, SAVED_STATE_LABEL, WORKSPACE_LABEL, builderName, builderNameFor, builderSpec, buildxState, childEnvironment, containerExecArgs, containerRunArgs, createDockerHost, dockerIdentity, ensureBuilder, ensureFailureCount, ensureRunnerIdentity, exceedsDisk, firstLine, hashJudgeProgram, homeCopyArgs, homeCopyRunArgs, homeCopyScript, identityArgs, identityDockerFor, identityRunArgs, identityScript, isOutOfMemory, judgeCommand, judgeProgramRecord, mountableHome, networkHelperName, networkHelperRunArgs, parseIdentity, parseSize, pathLabelValue, prepareRunArgs, proxyEnvironment, readDu, readJobFile, readJobFileChecked, readRunnerIdentity, runnerLabelValue, said, spawnRun, trackImageBuild, withAnswerProtocol, writeJobFile };
|
|
894
|
+
export { BUILD_LABEL, COMMAND_DIR, JUDGE_DIR, JUDGE_ITEMS, JUDGE_MAX_TURNS, JUDGE_REPORT, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, MIN_BUILDX_VERSION, NETWORK_HELPER_MEMORY, NETWORK_READY_FILE, RUNNER_LABEL, SAVED_STATE_LABEL, WORKSPACE_LABEL, builderName, builderNameFor, builderSpec, buildxState, childEnvironment, containerExecArgs, containerRunArgs, createDockerHost, dockerIdentity, ensureBuilder, ensureFailureCount, ensureRunnerIdentity, exceedsDisk, firstLine, hashJudgeProgram, homeCopyArgs, homeCopyRunArgs, homeCopyScript, identityArgs, identityDockerFor, identityRunArgs, identityScript, isOutOfDisk, isOutOfMemory, judgeCommand, judgeProgramRecord, mountableHome, networkHelperName, networkHelperRunArgs, parseIdentity, parseSize, pathLabelValue, prepareRunArgs, proxyEnvironment, readDu, readJobFile, readJobFileChecked, readRunnerIdentity, runnerLabelValue, said, spawnRun, trackImageBuild, withAnswerProtocol, writeJobFile };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-
|
|
3
|
+
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-4LJ4LTOK.js';
|
|
4
4
|
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-PYPHE6FZ.js';
|
|
5
5
|
import { spawnSync } from 'child_process';
|
|
6
6
|
import { statfsSync, statSync, existsSync, readdirSync } from 'fs';
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { toolsDockerfile } from './chunk-5MN6VZZH.js';
|
|
4
4
|
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-KQDTORGF.js';
|
|
5
5
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
6
|
-
import { runnerLabelValue } from './chunk-
|
|
6
|
+
import { runnerLabelValue } from './chunk-4LJ4LTOK.js';
|
|
7
7
|
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-XLCAYPLV.js';
|
|
8
8
|
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-PYPHE6FZ.js';
|
|
9
9
|
import { withGitConfig, tokenHeader } from './chunk-B5BLIHJZ.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-IL2Y4OK6.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-M2ZEQS7E.js';
|
|
5
5
|
import { getJson, WorkCommandError } from './chunk-DE64NSOH.js';
|
|
6
|
-
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-
|
|
7
|
-
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
6
|
+
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-H25KYIO7.js';
|
|
7
|
+
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-6NR24FKU.js';
|
|
8
8
|
import { ensureHostKey } from './chunk-EKDQDOSS.js';
|
|
9
9
|
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-DDOD4YOQ.js';
|
|
10
10
|
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-NDIV6GDC.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
3
|
+
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-6NR24FKU.js';
|
|
4
|
+
import { parseSize } from './chunk-4LJ4LTOK.js';
|
|
5
5
|
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-B5BLIHJZ.js';
|
|
6
6
|
import { builderDiskPinned } from './chunk-NDIV6GDC.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { stripTerminalControls } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-IL2Y4OK6.js';
|
|
4
4
|
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-T4J5VR7B.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -55,7 +55,7 @@ function envNamesOf(row, imageEnv) {
|
|
|
55
55
|
return [...new Set(names)].sort();
|
|
56
56
|
}
|
|
57
57
|
async function readOwnContainer(deps = {}) {
|
|
58
|
-
const run = deps.run ?? (await import('./docker-
|
|
58
|
+
const run = deps.run ?? (await import('./docker-ILVTK2GR.js')).spawnRun;
|
|
59
59
|
const ids = candidateIds(deps.env ?? process.env, deps.readFile ?? ((path) => readFileSync(path, "utf8")));
|
|
60
60
|
if (ids.length === 0) return { ok: false, reason: "the runner cannot tell which container it runs in: HOSTNAME is empty and /proc/self/mountinfo names none" };
|
|
61
61
|
let problem = "";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { keyRunnerFactory, RunnerConfigError } from './chunk-
|
|
3
|
+
import { keyRunnerFactory, RunnerConfigError } from './chunk-H25KYIO7.js';
|
|
4
4
|
import { orgHomeDir } from './chunk-PYPHE6FZ.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, criterionInputs, uncitedIds, planCriteria, parseJudgeAnswer, inCriteriaOrder, oneLineReason, judgedItems, IdScan, firstInPathOrder, isSearchCandidate } from './chunk-JJ63MLE5.js';
|
|
4
4
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
5
5
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
6
|
-
import { hasStoredCredential, storeAgentCredential, credentialFromStdin, isAgentName } from './chunk-
|
|
6
|
+
import { hasStoredCredential, storeAgentCredential, credentialFromStdin, isAgentName } from './chunk-WVNQXYR7.js';
|
|
7
7
|
import { upgradedStarterText } from './chunk-OM3XGJBY.js';
|
|
8
8
|
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-GNLAORSW.js';
|
|
9
9
|
import { writeDockerClientConfig } from './chunk-2HOSCIV6.js';
|
|
@@ -11,9 +11,9 @@ import { senderPidfile } from './chunk-COPXXXNB.js';
|
|
|
11
11
|
import { installScrubContext } from './chunk-4HMOBW7H.js';
|
|
12
12
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
13
13
|
import { runnerImageVersion } from './chunk-T4J5VR7B.js';
|
|
14
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-
|
|
14
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-HOQMMMSM.js';
|
|
15
15
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
16
|
-
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-
|
|
16
|
+
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-C45EFKBZ.js';
|
|
17
17
|
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-5MN6VZZH.js';
|
|
18
18
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
19
19
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
@@ -21,9 +21,9 @@ import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-AZXFZGHQ
|
|
|
21
21
|
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-2I654QYW.js';
|
|
22
22
|
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-H5CWIV56.js';
|
|
23
23
|
import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-DE64NSOH.js';
|
|
24
|
-
import { runnerCredentialProblem, builtinKind, keyRunnerFactory, optionalEgress, isBuiltinContainer, isBuiltinVm, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-
|
|
25
|
-
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-
|
|
26
|
-
import { firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, said, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, containerExecArgs, childEnvironment, readDu, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, parseSize, runnerLabelValue, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, prepareRunArgs, containerRunArgs, JUDGE_MAX_TURNS, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_DIR, hashJudgeProgram, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, MAX_ITEMS_BYTES, JUDGE_ITEMS, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-
|
|
24
|
+
import { runnerCredentialProblem, builtinKind, keyRunnerFactory, optionalEgress, isBuiltinContainer, isBuiltinVm, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-H25KYIO7.js';
|
|
25
|
+
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-6NR24FKU.js';
|
|
26
|
+
import { firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, said, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, containerExecArgs, childEnvironment, readDu, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, parseSize, runnerLabelValue, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, prepareRunArgs, containerRunArgs, JUDGE_MAX_TURNS, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_DIR, hashJudgeProgram, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, MAX_ITEMS_BYTES, JUDGE_ITEMS, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-4LJ4LTOK.js';
|
|
27
27
|
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-XLCAYPLV.js';
|
|
28
28
|
import { sanitizeTerminal, planArtifactUpload } from './chunk-F3T5QJ24.js';
|
|
29
29
|
import { sharedSkillNames, skillConflictMessage } from './chunk-BQUI64BU.js';
|
|
@@ -10360,7 +10360,7 @@ async function obtainImage(input) {
|
|
|
10360
10360
|
if (err instanceof AssetError) return { ok: false, reason: err.message };
|
|
10361
10361
|
if (err instanceof RecipeError) {
|
|
10362
10362
|
log.error(`${tag} image build for ${repository} failed: ${err.code}: ${err.message}`);
|
|
10363
|
-
const says = err.code === "image_build_out_of_memory" || err.code === "image_builder_unavailable" || err.code === "image_builder_failed";
|
|
10363
|
+
const says = err.code === "image_build_out_of_memory" || err.code === "image_build_out_of_disk" || err.code === "image_builder_unavailable" || err.code === "image_builder_failed";
|
|
10364
10364
|
return { ok: false, reason: says ? err.message : err.code };
|
|
10365
10365
|
}
|
|
10366
10366
|
return { ok: false, reason: `the image build failed: ${describeCallFailure(err)}` };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtinKind, keepsHostBuilder } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
3
|
+
import { builtinKind, keepsHostBuilder } from './chunk-H25KYIO7.js';
|
|
4
|
+
import { parseSize } from './chunk-4LJ4LTOK.js';
|
|
5
5
|
import { runnerDir } from './chunk-PYPHE6FZ.js';
|
|
6
6
|
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-DDOD4YOQ.js';
|
|
7
7
|
import { credentialAgent, credentialNames, credentialForms } from './chunk-NDIV6GDC.js';
|
|
@@ -5,25 +5,25 @@ import { writePendingUpdate } from './chunk-PUEIXGZ4.js';
|
|
|
5
5
|
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-FDRQZALU.js';
|
|
6
6
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
7
7
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
8
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
9
|
-
import { renderUpdateSteps } from './chunk-
|
|
8
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-OQJSFWPZ.js';
|
|
9
|
+
import { renderUpdateSteps } from './chunk-HOMHZPMD.js';
|
|
10
10
|
import { RUNNER_PROTOCOL } from './chunk-IDYLPN4X.js';
|
|
11
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
11
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-E6J6SPFA.js';
|
|
12
12
|
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-W3ZKWZ6G.js';
|
|
13
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-
|
|
14
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
13
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-IL2Y4OK6.js';
|
|
14
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-M2ZEQS7E.js';
|
|
15
15
|
import { RepoFilter } from './chunk-4HMOBW7H.js';
|
|
16
16
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
17
17
|
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-T4J5VR7B.js';
|
|
18
18
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
19
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-
|
|
19
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-HOQMMMSM.js';
|
|
20
20
|
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-KQDTORGF.js';
|
|
21
21
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
22
22
|
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-H5CWIV56.js';
|
|
23
23
|
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-DE64NSOH.js';
|
|
24
|
-
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-
|
|
25
|
-
import { allocatedBytes, freeBytes, formatBytes } from './chunk-
|
|
26
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-
|
|
24
|
+
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-H25KYIO7.js';
|
|
25
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-6NR24FKU.js';
|
|
26
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-4LJ4LTOK.js';
|
|
27
27
|
import { loadHostKey, ensureHostKey, signerFor } from './chunk-EKDQDOSS.js';
|
|
28
28
|
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-PYPHE6FZ.js';
|
|
29
29
|
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-B5BLIHJZ.js';
|
|
@@ -3559,7 +3559,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3559
3559
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3560
3560
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
3561
3561
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
3562
|
-
return (await import('./check-
|
|
3562
|
+
return (await import('./check-FC4I4ZTM.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3563
3563
|
},
|
|
3564
3564
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3565
3565
|
log
|
|
@@ -217,14 +217,14 @@ function governingDir(cwd) {
|
|
|
217
217
|
async function testProofMode(cwd) {
|
|
218
218
|
const dir = governingDir(cwd);
|
|
219
219
|
if (dir === void 0) return "any";
|
|
220
|
-
const { testProofIn } = await import('./host-checks-
|
|
220
|
+
const { testProofIn } = await import('./host-checks-RF3ER7US.js');
|
|
221
221
|
return testProofIn(dir);
|
|
222
222
|
}
|
|
223
223
|
async function judgeCheckName(cwd) {
|
|
224
224
|
const dir = governingDir(cwd);
|
|
225
225
|
if (dir === void 0) return {};
|
|
226
226
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
227
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
227
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-RF3ER7US.js');
|
|
228
228
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
229
229
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
230
230
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -369,7 +369,7 @@ async function runWorkProofs(opts) {
|
|
|
369
369
|
async function runWorkProofsCommand(opts) {
|
|
370
370
|
try {
|
|
371
371
|
if (opts.record) {
|
|
372
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
372
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-W75LA4IR.js');
|
|
373
373
|
const result2 = await runWorkProofsRecord(opts);
|
|
374
374
|
process.exitCode = result2.exitCode;
|
|
375
375
|
return;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { scrubReason, stripTerminalControls } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-IL2Y4OK6.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-M2ZEQS7E.js';
|
|
5
5
|
import { RunnerAlreadyRunningError, readPidFile } from './chunk-KQDTORGF.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
7
7
|
import { isSignatureRefusal, postJson } from './chunk-DE64NSOH.js';
|
|
8
|
-
import { keyRunnerFactory } from './chunk-
|
|
8
|
+
import { keyRunnerFactory } from './chunk-H25KYIO7.js';
|
|
9
9
|
import { signerFor } from './chunk-EKDQDOSS.js';
|
|
10
10
|
import { pidFilePath } from './chunk-PYPHE6FZ.js';
|
|
11
11
|
import { readFileSync } from 'fs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-
|
|
3
|
+
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-M2ZEQS7E.js';
|
|
4
4
|
import { inspectService, realInspectProbes } from './chunk-DDOD4YOQ.js';
|
|
5
5
|
import { realpathSync, readFileSync, readdirSync } from 'fs';
|
|
6
6
|
import { resolve, dirname, join } from 'path';
|
|
@@ -1050,8 +1050,8 @@ function doctorExitCode(checks) {
|
|
|
1050
1050
|
|
|
1051
1051
|
// src/doctor-report.ts
|
|
1052
1052
|
async function gatherDoctorChecks() {
|
|
1053
|
-
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-
|
|
1054
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1053
|
+
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-BS3LA3TN.js');
|
|
1054
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-AUMW46GF.js');
|
|
1055
1055
|
const configPath = defaultRunnerConfigPath();
|
|
1056
1056
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1057
1057
|
const hooks = (() => {
|
|
@@ -1079,7 +1079,7 @@ async function gatherDoctorChecks() {
|
|
|
1079
1079
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1080
1080
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1081
1081
|
} else if (hasRunnerBlock(configPath)) {
|
|
1082
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1082
|
+
const { runnerHostChecks } = await import('./doctor-RLKFNNZB.js');
|
|
1083
1083
|
const gateway = (() => {
|
|
1084
1084
|
try {
|
|
1085
1085
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1107,7 +1107,7 @@ async function gatherDoctorChecks() {
|
|
|
1107
1107
|
const service = await (async () => {
|
|
1108
1108
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1109
1109
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1110
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1110
|
+
const { inspectRunnerService } = await import('./find-unit-AIXKASFJ.js');
|
|
1111
1111
|
return inspectRunnerService(configPath);
|
|
1112
1112
|
})();
|
|
1113
1113
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
4
|
-
import { UNIT_MARKER } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-IL2Y4OK6.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-M2ZEQS7E.js';
|
|
5
5
|
import { runnerDir } from './chunk-PYPHE6FZ.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-M2ZEQS7E.js';
|
|
4
4
|
import { RUNNER_FILE_MODE } from './chunk-PYPHE6FZ.js';
|
|
5
5
|
import { withoutCredentialLines, parseRunnerEnv } from './chunk-DDOD4YOQ.js';
|
|
6
6
|
import { headlessNames, runnerAgents, credentialAgent, credentialForms, orList, credentialShapes, credentialEnvPath, forwardedVariables } from './chunk-NDIV6GDC.js';
|