@outerlayer/cli 0.36.0-next.20261102211600 → 0.36.0-next.20261102213701
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/README.md +4 -13
- package/dist/{agent-setup-OYOTPYAR.js → agent-setup-2WL54CA2.js} +8 -8
- package/dist/{agent-subcommand-3VJ6PKAT.js → agent-subcommand-Z4UDDCLB.js} +1 -1
- package/dist/{bridge-RECR25EL.js → bridge-LVTX4DVM.js} +3 -3
- package/dist/{build-NIKF353A.js → build-W5LRG2AO.js} +9 -9
- package/dist/{build-disk-GKLJQNYQ.js → build-disk-3KTQZ6N5.js} +7 -7
- package/dist/build-info.json +1 -1
- package/dist/{builder-THQ62YNF.js → builder-UMCVSMDY.js} +6 -6
- package/dist/{caller-6EKJ6C43.js → caller-DYXZCUF2.js} +9 -9
- package/dist/{check-WODTIKPR.js → check-NFLR5CGS.js} +39 -39
- package/dist/{chunk-5QMSZFA2.js → chunk-23SNF2LN.js} +2 -2
- package/dist/{chunk-MZQAYZY4.js → chunk-2E2WWMRX.js} +28 -60
- package/dist/{chunk-NAQWMYQ2.js → chunk-35OBGZYO.js} +1 -1
- package/dist/{chunk-NJMJHUJL.js → chunk-36ML3NIO.js} +15 -15
- package/dist/{chunk-3PDRASIP.js → chunk-3EEUQZQU.js} +2 -2
- package/dist/{chunk-UKQCIZ3R.js → chunk-46FKHE74.js} +1 -1
- package/dist/{chunk-D2SEASHI.js → chunk-4Y7IEPQH.js} +1 -1
- package/dist/{chunk-OATJFN2P.js → chunk-4YGPLC5Y.js} +7 -7
- package/dist/{chunk-HOHY6ORJ.js → chunk-52RRBTZ5.js} +1 -1
- package/dist/{chunk-MDP3QN7U.js → chunk-72EOJJVT.js} +1 -1
- package/dist/{chunk-PJ3KUE3L.js → chunk-AACYODIT.js} +2 -2
- package/dist/{chunk-HYDNEYVD.js → chunk-AZTTOBJ5.js} +2 -2
- package/dist/{chunk-MFLIYXNY.js → chunk-B5GDCCOZ.js} +1 -1
- package/dist/{chunk-I6GHP6U7.js → chunk-CBMEWHAR.js} +1 -1
- package/dist/{chunk-2QXA7T6F.js → chunk-CXMXXRNS.js} +1 -1
- package/dist/{chunk-PLB2IBJV.js → chunk-DCOQWKLK.js} +1 -1
- package/dist/{chunk-2ICED253.js → chunk-E2U7BBAT.js} +2 -2
- package/dist/{chunk-QU4FBCRH.js → chunk-EM4QCRI6.js} +5 -5
- package/dist/{chunk-IBFBBUBJ.js → chunk-F7ODYKBA.js} +3 -3
- package/dist/{chunk-ZSHBICCL.js → chunk-FVIDZ3GK.js} +5 -5
- package/dist/{chunk-S3GZ74UE.js → chunk-GFSS3FRE.js} +3 -3
- package/dist/{chunk-4UADHJ6P.js → chunk-HGOJ67KV.js} +10 -21
- package/dist/{chunk-ZPFBNCXW.js → chunk-HHKVXKQI.js} +5 -5
- package/dist/{chunk-7AVQ67PS.js → chunk-HXSU4JLV.js} +1 -1
- package/dist/{chunk-L6GYPZEV.js → chunk-IFLD3WEB.js} +3 -3
- package/dist/{chunk-SFPDEBBO.js → chunk-ILP4ABFG.js} +3 -3
- package/dist/{chunk-V7ZAPEVS.js → chunk-IOFEDCTL.js} +1 -1
- package/dist/{chunk-ZFDUXKTM.js → chunk-JU5SQNFB.js} +2 -2
- package/dist/{chunk-FH4CX3CS.js → chunk-JUQ52FZI.js} +3 -3
- package/dist/{chunk-HHD5P4TU.js → chunk-JZBFR6JB.js} +7 -7
- package/dist/{chunk-LJNFUD3U.js → chunk-KKI3POPP.js} +1 -1
- package/dist/{chunk-UJD3DINB.js → chunk-MKGJ7TTH.js} +3 -3
- package/dist/{chunk-L6OJH3E5.js → chunk-NTK7RUVE.js} +4 -4
- package/dist/{chunk-MSEDA6A2.js → chunk-OPUJGPPT.js} +2 -2
- package/dist/{chunk-IJC4JL6B.js → chunk-OROFFYEM.js} +4 -4
- package/dist/{chunk-VK4MMRYC.js → chunk-PMXVWQ4T.js} +1 -1
- package/dist/{chunk-BF7P3J2H.js → chunk-QE7L5PJV.js} +2 -2
- package/dist/{chunk-GQ4GMFHO.js → chunk-QJHXX2HG.js} +5 -5
- package/dist/{chunk-JFPDRFAR.js → chunk-RSPTOS4S.js} +3 -3
- package/dist/{chunk-XCXBR74S.js → chunk-UASEIXDB.js} +41 -148
- package/dist/{chunk-77MUGWQT.js → chunk-UKDKM6Y6.js} +1 -1
- package/dist/{chunk-P7W7SXX7.js → chunk-V5S6CVGP.js} +3 -10
- package/dist/{chunk-H5QZSOBB.js → chunk-VHX2C7DU.js} +1 -1
- package/dist/{chunk-FB7HGLRK.js → chunk-VUINLLWP.js} +2 -2
- package/dist/{chunk-4K3VEJEE.js → chunk-VWMQA7FN.js} +5 -5
- package/dist/{chunk-6IDMWODX.js → chunk-W3CY6H56.js} +2 -2
- package/dist/{chunk-DLHOKPNF.js → chunk-WGZOLJPP.js} +1 -1
- package/dist/{chunk-DUGZCKCF.js → chunk-X2M2G376.js} +9 -9
- package/dist/{chunk-STNWA5ZZ.js → chunk-XILGXRHT.js} +2 -2
- package/dist/{chunk-3FZVQRTC.js → chunk-YIDWZYDY.js} +2 -2
- package/dist/{chunk-YPVJ46Y3.js → chunk-YJQBL6SD.js} +2 -2
- package/dist/{chunk-44B523ZQ.js → chunk-YQGYZB6Y.js} +2 -2
- package/dist/{claude-launcher-Z6WBFSRK.js → claude-launcher-LXCRQNU3.js} +1 -1
- package/dist/{cli-KBXHOMUN.js → cli-WGFTREIM.js} +122 -134
- package/dist/{command-FPLHTT7R.js → command-BZDNRIFI.js} +34 -34
- package/dist/{config-RKV7FRY5.js → config-VV4J2DMW.js} +8 -8
- package/dist/{connect-cmd-ZG7BPIXQ.js → connect-cmd-UDYTPV2S.js} +6 -6
- package/dist/{container-start-3NWIL4A3.js → container-start-BQD6IAKZ.js} +32 -32
- package/dist/{context-show-cmd-AM46ZKCT.js → context-show-cmd-FXIYFC6Q.js} +7 -7
- package/dist/{control-plane-launch-HW2Y53YI.js → control-plane-launch-6HIHBOHF.js} +6 -6
- package/dist/{demo-record-cmd-T4227FWF.js → demo-record-cmd-JTIK5WI3.js} +4 -4
- package/dist/{demo-voice-cmd-YSESUTE5.js → demo-voice-cmd-5HV4AHY4.js} +12 -12
- package/dist/{docker-JC6S6KH3.js → docker-RB7YFA52.js} +6 -6
- package/dist/{doctor-U3MU6GP5.js → doctor-BNL5J2NG.js} +35 -61
- package/dist/{emit-artifact-cmd-J643XZ46.js → emit-artifact-cmd-VF6PO7NJ.js} +11 -11
- package/dist/{emit-criteria-cmd-BARZ3MBZ.js → emit-criteria-cmd-QGCS6RCB.js} +8 -8
- package/dist/{emit-demo-cmd-OAC6RTSK.js → emit-demo-cmd-O7YLI4ZL.js} +12 -12
- package/dist/{emit-finding-cmd-BUTFI2GD.js → emit-finding-cmd-GO2C5QCS.js} +8 -8
- package/dist/{emit-result-cmd-4E4KX3QZ.js → emit-result-cmd-LQ4EW7ML.js} +10 -10
- package/dist/{emit-step-cmd-7CAJHMEQ.js → emit-step-cmd-JWUNEZ4N.js} +8 -8
- package/dist/{exec-client-G6B7G3IN.js → exec-client-725NVWZ5.js} +4 -4
- package/dist/find-unit-U5U52ASA.js +23 -0
- package/dist/{findings-cmd-N66FJR3J.js → findings-cmd-JN67G7EG.js} +8 -8
- package/dist/{fleet-readiness-KFTMEUAI.js → fleet-readiness-7P5NN3RT.js} +6 -6
- package/dist/{governing-source-TO6RRWYS.js → governing-source-NC7N3PKM.js} +10 -10
- package/dist/{guest-init-J3TELWJG.js → guest-init-N65WE3XP.js} +5 -5
- package/dist/{hook-fast-Y4LO3YE7.js → hook-fast-VZDS3U7L.js} +1 -1
- package/dist/{host-checks-AGWZAK4R.js → host-checks-5HVG67AR.js} +30 -30
- package/dist/{pending-3EMMPNC7.js → host-key-KPUIJK4Q.js} +4 -4
- package/dist/{image-tag-VHP22FMX.js → image-tag-RAVG4ZXU.js} +4 -4
- package/dist/index.js +4 -4
- package/dist/{init-B575TM3R.js → init-J5XW2VNL.js} +30 -31
- package/dist/{init-LADDJ3MR.js → init-MN4R6USQ.js} +30 -30
- package/dist/{init-cmd-5Q2ICZBK.js → init-cmd-INPWUFWW.js} +11 -11
- package/dist/{init-update-AJF4YJ6I.js → init-update-7BA2HEZD.js} +9 -9
- package/dist/{install-cmd-GO3D5F6X.js → install-cmd-UUEJWTHG.js} +6 -6
- package/dist/{logs-QV3LNNUJ.js → logs-2NBI76N2.js} +3 -3
- package/dist/{loop-5CEZVTIU.js → loop-G7HCDVIP.js} +38 -38
- package/dist/{machine-CSH5K23R.js → machine-WQCCGKOP.js} +30 -30
- package/dist/{mcp-serve-cmd-7USDWMS4.js → mcp-serve-cmd-JVND6WYT.js} +5 -5
- package/dist/{paths-L3SEA2QQ.js → paths-S6KJMQSQ.js} +3 -3
- package/dist/{host-key-EOTN4362.js → pending-BBPET4YL.js} +4 -4
- package/dist/{pidfile-ROXIFSGN.js → pidfile-QDFTWZP4.js} +4 -4
- package/dist/{record-7OMLXGTG.js → record-AJSJBMOG.js} +4 -4
- package/dist/{relay-663SG53Q.js → relay-X7EBGNZW.js} +1 -1
- package/dist/{relay-protocol-4V3F6HSZ.js → relay-protocol-TAXUFBSM.js} +1 -1
- package/dist/{runner-env-YMBCAQXO.js → runner-env-XKUW67Y4.js} +10 -10
- package/dist/{runner-identity-QBFVMEXN.js → runner-identity-7RYI6PS4.js} +6 -6
- package/dist/{runner-key-SUZKSV54.js → runner-key-R4QPZDDR.js} +30 -30
- package/dist/{session-sender-RI5VITPP.js → session-sender-FQARNO3V.js} +11 -11
- package/dist/{spec-cmd-IPFZNBCZ.js → spec-cmd-WOSYBAKL.js} +9 -9
- package/dist/{state-ZWCWEDKQ.js → state-IGLONCPS.js} +4 -4
- package/dist/{status-KSO5RNWL.js → status-BUHMAGRI.js} +30 -30
- package/dist/{sync-cmd-DML4SI6Y.js → sync-cmd-2DR7HOVJ.js} +10 -10
- package/dist/{update-steps-OVKM7RAH.js → update-steps-GDNIKWWH.js} +31 -31
- package/dist/{watch-X3AKYTTF.js → watch-3I4ZN52F.js} +10 -10
- package/dist/{work-claim-cmd-SIHUKNW4.js → work-claim-cmd-M6ACVTNM.js} +14 -14
- package/dist/{work-cmd-Z2JX53KE.js → work-cmd-HLNFJWQQ.js} +8 -8
- package/dist/{work-comment-cmd-D2OQTFBW.js → work-comment-cmd-JTCAB3DG.js} +10 -10
- package/dist/{work-demo-cmd-Z2PRJSY3.js → work-demo-cmd-XLNJYGCL.js} +8 -8
- package/dist/{work-logs-cmd-4UICP6PY.js → work-logs-cmd-Q3UUIOQI.js} +8 -8
- package/dist/{work-open-pr-cmd-BZOYVVM6.js → work-open-pr-cmd-H74M4ZXC.js} +9 -9
- package/dist/{work-pr-cmd-6PQLQD66.js → work-pr-cmd-M3X2D5MC.js} +8 -8
- package/dist/{work-proofs-cmd-SWESTSKA.js → work-proofs-cmd-ZRPPBFDL.js} +9 -9
- package/dist/{work-proofs-record-55B24QNH.js → work-proofs-record-PF2JRTWE.js} +15 -15
- package/dist/{work-stop-cmd-6JXCQ277.js → work-stop-cmd-2NO2F2BD.js} +8 -8
- package/package.json +1 -1
- package/dist/find-unit-MX6XITYC.js +0 -23
package/README.md
CHANGED
|
@@ -362,13 +362,6 @@ content:
|
|
|
362
362
|
answer holds the machine size, the hosts the factory allows and the values of
|
|
363
363
|
its build variables. The runner keeps them in memory only, passes the
|
|
364
364
|
variables to the build, and scrubs each value from what it uploads.
|
|
365
|
-
- **`outerlayer runner start` with `builtin:process` hooks** runs each build
|
|
366
|
-
as a process under the runner's own user, with no isolation, and the
|
|
367
|
-
attempt records `shared-user`. The runner clones the item's repository
|
|
368
|
-
from `https://github.com/<owner>/<name>.git` with the host's own git
|
|
369
|
-
credentials. It serves the same tunnel on a loopback port, which the
|
|
370
|
-
build reaches through its proxy settings, and the release lists the same
|
|
371
|
-
hosts and refusals.
|
|
372
365
|
- **`outerlayer runner start` with your own executable hooks** runs
|
|
373
366
|
`git ls-remote` against `https://github.com/<owner>/<name>.git`, with the
|
|
374
367
|
host's own git credentials, before each provision hook, to tell the hook
|
|
@@ -381,15 +374,13 @@ content:
|
|
|
381
374
|
header's secret is read from the runner's own environment.
|
|
382
375
|
It is never in a build's environment or files, and the release names a
|
|
383
376
|
destination and nothing more.
|
|
384
|
-
- **`outerlayer runner start` with `builtin:vm
|
|
385
|
-
|
|
377
|
+
- **`outerlayer runner start` with `builtin:vm` or `builtin:container`
|
|
378
|
+
hooks** also serves two built-in destinations, `gateway` and `claude`, to
|
|
386
379
|
each build. The gateway destination forwards a build's requests to your
|
|
387
380
|
gateway with the attempt's item key, and the `claude` destination forwards
|
|
388
381
|
them to `https://api.anthropic.com` with the host's `CLAUDE_CODE_OAUTH_TOKEN`
|
|
389
382
|
or `ANTHROPIC_API_KEY`, read from the runner's own environment. A build holds a placeholder for each and never the value, and the
|
|
390
|
-
release names the two destinations and nothing more.
|
|
391
|
-
`builtin:process` runs as the runner's user and can still read the runner's
|
|
392
|
-
environment and the attempt's job file.
|
|
383
|
+
release names the two destinations and nothing more.
|
|
393
384
|
- **`outerlayer doctor`**, once a factory key is saved (`echo "$KEY" | outerlayer login`),
|
|
394
385
|
asks your gateway (`GET /v1/repositories/access`, with that key) which
|
|
395
386
|
GitHub App permissions each connected repository's installation has not
|
|
@@ -566,7 +557,7 @@ before it gives up.
|
|
|
566
557
|
| `outerlayer work claim --item <n>\|--issue <n> --kind implement\|amend [--repo] [--host] [--seconds]` | Records a lease for this host (default: its own hostname), so two hosts never build the same item at once. The lease belongs to the runner key that claimed it: a live lease held by a different key is refused, even under the same host name, and claiming again with the same key extends it. The first claim creates the host key (`host-key.pem` beside the config file) and binds the runner key to it; from then on every request made with that key is signed. Lease length defaults to 900 seconds, the server's own cap. |
|
|
567
558
|
| `outerlayer work renew --item <n>\|--issue <n> [--repo] [--host] [--seconds]` | Extends this host's own live lease. Refused if the lease has expired, or if a different runner key holds it (403 `claim_not_held`). |
|
|
568
559
|
| `outerlayer work release --item <n>\|--issue <n> [--repo] [--host] [--session-id] [--outcome]` | Marks the lease this API key holds released, optionally recording how the attempt ended. Releasing an already-released lease is a no-op that returns the recorded release time and outcome. Run inside a session with no `--host`, it releases that session's own lease instead (`--session-id` names the session when it cannot be detected), so the item's review opens without ending the session. |
|
|
569
|
-
| `outerlayer runner init [--vm
|
|
560
|
+
| `outerlayer runner init [--vm] [--factory <org>/<factory>] [--app-id <id>] [--config <path>]` | Writes a `runner` block with defaults, keeping every key the config already had. With no `apiKey` in the config and a saved login, it prints the API keys page of the factory `--factory` or `--app-id` names (the only factory the login can use, when neither is given), asks you to paste a runner key made with the Runner preset, and checks it before anything else changes. With no terminal it stops and says what to put in the config. It names `builtin:vm` on x86_64 Linux, not WSL2, where the user can open `/dev/kvm` and Docker Engine 26 or later runs. It names `builtin:container` on any other Linux or WSL2 machine with Docker Engine 26 or later. On a machine with neither, it refuses and names the fix for that machine: Docker Engine 26 or later or KVM on Linux, and Docker Engine inside WSL2 or the runner image on Docker Desktop on Windows. It writes no hook script. Refuses rather than overwriting an existing block. On macOS it asks whether to create a Linux VM with Lima, installs Docker Engine and the runner in it, and starts both at login; `--vm` answers yes. An answer of no is a refusal that names `--vm` and the runner image on Docker Desktop. The runner key and the host key then live only in the VM: the Mac's config loses `apiKey` and `runner` and gains a `runnerVm` note, which `outerlayer doctor` reads. With neither flag and no terminal, it refuses. |
|
|
570
561
|
| `outerlayer runner check [--config <path>]` | Validates the config, the hooks and the key, prints the settings the runner would use, and exits non-zero on a problem. Takes no work and writes no pid file. |
|
|
571
562
|
| `outerlayer runner start [--config <path>]` | Runs the loop: claim work, run it, sync, clean up, report, release with an outcome. Repeat. Reads the `runner` block from the config file (default `~/.outerlayer/config.json`). Refuses to start on a bad config, an unrunnable hook, or a refused key. |
|
|
572
563
|
| `outerlayer runner image --repository <owner/name> [--remote <url>] [--config <path>] [--json]` | Builds the image a repository's builds run in. Fetches the head of the default branch into the runner's cache, builds its `.devcontainer/devcontainer.json` with the devcontainer CLI, ignores every setting that reaches the host or widens the container's privileges, and adds this CLI and a pinned Claude Code. Reuses the image until the recipe or the tools change, keeps the newest three, and writes `recipe.json` beside the image record. Refuses a Compose recipe (`recipe_needs_docker`) and a repository with only named configurations (`recipe_ambiguous`). |
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { keepHandWritten, runAgentSetup } from './chunk-
|
|
3
|
+
export { keepHandWritten, runAgentSetup } from './chunk-3EEUQZQU.js';
|
|
4
4
|
import './chunk-FCMEWS3G.js';
|
|
5
5
|
import './chunk-Z4ASKZKN.js';
|
|
6
6
|
import './chunk-66UG5SL4.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-4Y7IEPQH.js';
|
|
8
8
|
import './chunk-F3T5QJ24.js';
|
|
9
9
|
import './chunk-ZM2SKQJD.js';
|
|
10
10
|
import './chunk-A6RI6KTI.js';
|
|
11
11
|
import './chunk-A2LHHKTT.js';
|
|
12
12
|
import './chunk-2AM6Z5BP.js';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-AZTTOBJ5.js';
|
|
14
14
|
import './chunk-U37FB7ER.js';
|
|
15
15
|
import './chunk-KIY2AUHY.js';
|
|
16
|
-
import './chunk-
|
|
16
|
+
import './chunk-35OBGZYO.js';
|
|
17
17
|
import './chunk-HWVMRETT.js';
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
18
|
+
import './chunk-CBMEWHAR.js';
|
|
19
|
+
import './chunk-CXMXXRNS.js';
|
|
20
|
+
import './chunk-V5S6CVGP.js';
|
|
21
21
|
import './chunk-545P7JY7.js';
|
|
22
22
|
import './chunk-BJ3KTMDH.js';
|
|
23
23
|
import './chunk-NFZMENCY.js';
|
|
@@ -25,7 +25,7 @@ import './chunk-FZKNTIOJ.js';
|
|
|
25
25
|
import './chunk-OQZ2B5AN.js';
|
|
26
26
|
import './chunk-YQR6E6OV.js';
|
|
27
27
|
import './chunk-CJPTUU2E.js';
|
|
28
|
-
import './chunk-
|
|
28
|
+
import './chunk-23SNF2LN.js';
|
|
29
29
|
import './chunk-TOP4K2T6.js';
|
|
30
30
|
import './chunk-KG5BQFSO.js';
|
|
31
31
|
import './chunk-G3BUOMCF.js';
|
|
@@ -19,7 +19,7 @@ function resolveSubcommand(word, agents = defaultAgents()) {
|
|
|
19
19
|
async function runSubcommand(argv, agents = defaultAgents()) {
|
|
20
20
|
const agentId = resolveSubcommand(argv[0], agents);
|
|
21
21
|
if (agentId === void 0) return void 0;
|
|
22
|
-
const { runAgentLauncher } = await import('./claude-launcher-
|
|
22
|
+
const { runAgentLauncher } = await import('./claude-launcher-LXCRQNU3.js');
|
|
23
23
|
return runAgentLauncher(agentId, argv.slice(1), { agents });
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { BRIDGE_ADDRESS, BRIDGE_CIDR, CONTAINER_NO_PROXY, CONTAINER_PROXY, TUNNEL_PORT, dockerClientConfig, startBridgeForward, writeDockerClientConfig } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
3
|
+
export { BRIDGE_ADDRESS, BRIDGE_CIDR, CONTAINER_NO_PROXY, CONTAINER_PROXY, TUNNEL_PORT, dockerClientConfig, startBridgeForward, writeDockerClientConfig } from './chunk-52RRBTZ5.js';
|
|
4
|
+
import './chunk-V5S6CVGP.js';
|
|
5
|
+
import './chunk-23SNF2LN.js';
|
|
6
6
|
import './chunk-TOP4K2T6.js';
|
|
7
7
|
import './chunk-KG5BQFSO.js';
|
|
8
8
|
import './chunk-G3BUOMCF.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
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-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
3
|
+
export { KEY_PREFIX, SHARED_NAME, SHARED_OWNER, SHARED_REPOSITORY, TAG_HOST, UNIVERSAL_SOURCE_LABEL, baseLines, buildRepositoryImage, metadataFromLabels, prepareImageBuild, universalBase, writeRecord } from './chunk-HGOJ67KV.js';
|
|
4
|
+
import './chunk-QE7L5PJV.js';
|
|
5
|
+
import './chunk-PMXVWQ4T.js';
|
|
6
6
|
import './chunk-JBJTC3UU.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
export { RecipeError } from './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
7
|
+
import './chunk-HHKVXKQI.js';
|
|
8
|
+
export { RecipeError } from './chunk-46FKHE74.js';
|
|
9
|
+
import './chunk-CBMEWHAR.js';
|
|
10
|
+
import './chunk-CXMXXRNS.js';
|
|
11
|
+
import './chunk-V5S6CVGP.js';
|
|
12
|
+
import './chunk-23SNF2LN.js';
|
|
13
13
|
import './chunk-TOP4K2T6.js';
|
|
14
14
|
import './chunk-KG5BQFSO.js';
|
|
15
15
|
import './chunk-G3BUOMCF.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
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-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
3
|
+
export { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, DOCKER_CACHE_MS, allocatedBytes, checkDiskFit, realBuildDiskProbe, runDocker, volumeBytes } from './chunk-YJQBL6SD.js';
|
|
4
|
+
import './chunk-HHKVXKQI.js';
|
|
5
|
+
import './chunk-46FKHE74.js';
|
|
6
|
+
import './chunk-CBMEWHAR.js';
|
|
7
|
+
import './chunk-CXMXXRNS.js';
|
|
8
|
+
import './chunk-V5S6CVGP.js';
|
|
9
|
+
import './chunk-23SNF2LN.js';
|
|
10
10
|
import './chunk-TOP4K2T6.js';
|
|
11
11
|
import './chunk-KG5BQFSO.js';
|
|
12
12
|
import './chunk-G3BUOMCF.js';
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-11-02T21:
|
|
1
|
+
{"id":"2026-11-02T21:42:35.267Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
3
|
+
export { MIN_BUILDX_VERSION, builderName, builderSpec, buildxState, ensureBuilder, ensureFailureCount, isOutOfMemory, proxyEnvironment, trackImageBuild } from './chunk-HHKVXKQI.js';
|
|
4
|
+
import './chunk-46FKHE74.js';
|
|
5
|
+
import './chunk-CBMEWHAR.js';
|
|
6
|
+
import './chunk-CXMXXRNS.js';
|
|
7
|
+
import './chunk-V5S6CVGP.js';
|
|
8
|
+
import './chunk-23SNF2LN.js';
|
|
9
9
|
import './chunk-TOP4K2T6.js';
|
|
10
10
|
import './chunk-KG5BQFSO.js';
|
|
11
11
|
import './chunk-G3BUOMCF.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
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-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
3
|
+
export { claimCalls, claimItem, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor } from './chunk-XILGXRHT.js';
|
|
4
|
+
import './chunk-36ML3NIO.js';
|
|
5
|
+
import './chunk-YJQBL6SD.js';
|
|
6
|
+
import './chunk-HHKVXKQI.js';
|
|
7
|
+
import './chunk-46FKHE74.js';
|
|
8
|
+
import './chunk-CBMEWHAR.js';
|
|
9
|
+
import './chunk-CXMXXRNS.js';
|
|
10
|
+
import './chunk-V5S6CVGP.js';
|
|
11
|
+
import './chunk-23SNF2LN.js';
|
|
12
12
|
import './chunk-TOP4K2T6.js';
|
|
13
13
|
import './chunk-KG5BQFSO.js';
|
|
14
14
|
import './chunk-G3BUOMCF.js';
|
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { probeCredentials } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
3
|
+
import { probeCredentials } from './chunk-2E2WWMRX.js';
|
|
4
|
+
import './chunk-DCOQWKLK.js';
|
|
5
|
+
import './chunk-WGZOLJPP.js';
|
|
6
6
|
import './chunk-3JVYMD4G.js';
|
|
7
7
|
import './chunk-E7R2GIAW.js';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
8
|
+
import './chunk-4YGPLC5Y.js';
|
|
9
|
+
import './chunk-RSPTOS4S.js';
|
|
10
10
|
import './chunk-PN4LWT5F.js';
|
|
11
|
-
import './chunk-
|
|
12
|
-
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import { findServiceUnit } from './chunk-
|
|
15
|
-
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, formerSkillProblem } from './chunk-
|
|
11
|
+
import './chunk-VHX2C7DU.js';
|
|
12
|
+
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-JZBFR6JB.js';
|
|
13
|
+
import './chunk-B5GDCCOZ.js';
|
|
14
|
+
import { findServiceUnit } from './chunk-OPUJGPPT.js';
|
|
15
|
+
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, formerSkillProblem } from './chunk-UASEIXDB.js';
|
|
16
16
|
import './chunk-X4QHDRXT.js';
|
|
17
17
|
import './chunk-I3LTIAOR.js';
|
|
18
18
|
import './chunk-2PGI6RDE.js';
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
19
|
+
import './chunk-GFSS3FRE.js';
|
|
20
|
+
import './chunk-OROFFYEM.js';
|
|
21
21
|
import './chunk-UQ2YFDGP.js';
|
|
22
|
-
import './chunk-
|
|
23
|
-
import './chunk-
|
|
24
|
-
import './chunk-
|
|
25
|
-
import './chunk-
|
|
22
|
+
import './chunk-F7ODYKBA.js';
|
|
23
|
+
import './chunk-AACYODIT.js';
|
|
24
|
+
import './chunk-FVIDZ3GK.js';
|
|
25
|
+
import './chunk-W3CY6H56.js';
|
|
26
26
|
import './chunk-WGC7UFRM.js';
|
|
27
27
|
import './chunk-ZVB57WI6.js';
|
|
28
|
-
import './chunk-
|
|
28
|
+
import './chunk-UKDKM6Y6.js';
|
|
29
29
|
import './chunk-TQMI335S.js';
|
|
30
|
-
import './chunk-
|
|
30
|
+
import './chunk-XILGXRHT.js';
|
|
31
31
|
import './chunk-NN33FYXG.js';
|
|
32
|
-
import './chunk-
|
|
33
|
-
import './chunk-
|
|
34
|
-
import './chunk-
|
|
32
|
+
import './chunk-HGOJ67KV.js';
|
|
33
|
+
import './chunk-QE7L5PJV.js';
|
|
34
|
+
import './chunk-PMXVWQ4T.js';
|
|
35
35
|
import './chunk-JBJTC3UU.js';
|
|
36
36
|
import './chunk-OGFGZQA3.js';
|
|
37
|
-
import './chunk-
|
|
38
|
-
import './chunk-
|
|
39
|
-
import './chunk-
|
|
40
|
-
import './chunk-
|
|
41
|
-
import { loadRunnerConfig, RunnerConfigError, checkHooks, keyRunnerFactory } from './chunk-
|
|
42
|
-
import './chunk-
|
|
43
|
-
import './chunk-
|
|
44
|
-
import './chunk-
|
|
37
|
+
import './chunk-IOFEDCTL.js';
|
|
38
|
+
import './chunk-JU5SQNFB.js';
|
|
39
|
+
import './chunk-QJHXX2HG.js';
|
|
40
|
+
import './chunk-52RRBTZ5.js';
|
|
41
|
+
import { loadRunnerConfig, RunnerConfigError, checkHooks, keyRunnerFactory } from './chunk-36ML3NIO.js';
|
|
42
|
+
import './chunk-YJQBL6SD.js';
|
|
43
|
+
import './chunk-HHKVXKQI.js';
|
|
44
|
+
import './chunk-46FKHE74.js';
|
|
45
45
|
import './chunk-Z4ASKZKN.js';
|
|
46
46
|
import './chunk-66UG5SL4.js';
|
|
47
|
-
import './chunk-
|
|
47
|
+
import './chunk-EM4QCRI6.js';
|
|
48
48
|
import './chunk-V6V3NN5G.js';
|
|
49
|
-
import './chunk-
|
|
50
|
-
import './chunk-
|
|
49
|
+
import './chunk-VUINLLWP.js';
|
|
50
|
+
import './chunk-4Y7IEPQH.js';
|
|
51
51
|
import './chunk-F3T5QJ24.js';
|
|
52
52
|
import './chunk-ZM2SKQJD.js';
|
|
53
53
|
import './chunk-A6RI6KTI.js';
|
|
54
54
|
import './chunk-A2LHHKTT.js';
|
|
55
55
|
import './chunk-2AM6Z5BP.js';
|
|
56
|
-
import './chunk-
|
|
56
|
+
import './chunk-AZTTOBJ5.js';
|
|
57
57
|
import './chunk-U37FB7ER.js';
|
|
58
58
|
import './chunk-KIY2AUHY.js';
|
|
59
|
-
import './chunk-
|
|
59
|
+
import './chunk-35OBGZYO.js';
|
|
60
60
|
import './chunk-HWVMRETT.js';
|
|
61
|
-
import './chunk-
|
|
62
|
-
import './chunk-
|
|
63
|
-
import './chunk-
|
|
64
|
-
import './chunk-
|
|
61
|
+
import './chunk-CBMEWHAR.js';
|
|
62
|
+
import './chunk-CXMXXRNS.js';
|
|
63
|
+
import './chunk-V5S6CVGP.js';
|
|
64
|
+
import './chunk-KKI3POPP.js';
|
|
65
65
|
import './chunk-545P7JY7.js';
|
|
66
66
|
import './chunk-REXQKAY7.js';
|
|
67
67
|
import './chunk-BKO6JEZI.js';
|
|
@@ -76,7 +76,7 @@ import './chunk-ZHQC43NH.js';
|
|
|
76
76
|
import './chunk-OQZ2B5AN.js';
|
|
77
77
|
import './chunk-YQR6E6OV.js';
|
|
78
78
|
import './chunk-CJPTUU2E.js';
|
|
79
|
-
import { credentialAgent, credentialForms, credentialEnvPath, parseRunnerEnv } from './chunk-
|
|
79
|
+
import { credentialAgent, credentialForms, credentialEnvPath, parseRunnerEnv } from './chunk-23SNF2LN.js';
|
|
80
80
|
import { defaultAgents } from './chunk-TOP4K2T6.js';
|
|
81
81
|
import './chunk-KG5BQFSO.js';
|
|
82
82
|
import './chunk-G3BUOMCF.js';
|
|
@@ -479,7 +479,7 @@ function holdAgentCredentials(env = process.env, agents = defaultAgents()) {
|
|
|
479
479
|
return first === void 0 ? void 0 : heldCopies.get(first.descriptor.id);
|
|
480
480
|
}
|
|
481
481
|
function takeAgentCredentials(env, hooks, agents = defaultAgents()) {
|
|
482
|
-
return /^builtin:(container|
|
|
482
|
+
return /^builtin:(container|vm)$/.test(hooks.provision) ? holdAgentCredentials(env, agents) : void 0;
|
|
483
483
|
}
|
|
484
484
|
function removedAgentCredentialValues() {
|
|
485
485
|
return [...removedValues];
|
|
@@ -641,7 +641,7 @@ var UNKNOWN_TRANSPORT_REASON = "the runner cannot tell how this build reaches it
|
|
|
641
641
|
var COMMAND_LOST_REASON = "the build's command ended without recording an exit code";
|
|
642
642
|
var CONTAINER_STOPPED_REASON = "the build's container stopped while no runner was managing it";
|
|
643
643
|
var UNKNOWN_TRACKING_REASON = "the runner cannot tell how this build is tracked";
|
|
644
|
-
var DOCKER_DESKTOP_REASON = "Docker Desktop is accepted only for a runner in the runner image, so container builds here need Docker Engine: install it (on Windows, inside WSL2), run the runner image
|
|
644
|
+
var DOCKER_DESKTOP_REASON = "Docker Desktop is accepted only for a runner in the runner image, so container builds here need Docker Engine: install it (on Windows, inside WSL2), or run the runner image";
|
|
645
645
|
var RUNNER_WORDED_REASONS = /* @__PURE__ */ new Set([
|
|
646
646
|
MALFORMED_REASON,
|
|
647
647
|
UNKNOWN_TRANSPORT_REASON,
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { writePendingUpdate } from './chunk-
|
|
4
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
3
|
+
import { writePendingUpdate } from './chunk-DCOQWKLK.js';
|
|
4
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-WGZOLJPP.js';
|
|
5
5
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
6
6
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
7
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
8
|
-
import { renderUpdateSteps } from './chunk-
|
|
7
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-4YGPLC5Y.js';
|
|
8
|
+
import { renderUpdateSteps } from './chunk-RSPTOS4S.js';
|
|
9
9
|
import { RUNNER_PROTOCOL } from './chunk-PN4LWT5F.js';
|
|
10
|
-
import { writeFleetState } from './chunk-
|
|
11
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
12
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } 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,
|
|
14
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
15
|
-
import { RepoFilter } from './chunk-
|
|
10
|
+
import { writeFleetState } from './chunk-VHX2C7DU.js';
|
|
11
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-JZBFR6JB.js';
|
|
12
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-B5GDCCOZ.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-UASEIXDB.js';
|
|
14
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-OROFFYEM.js';
|
|
15
|
+
import { RepoFilter } from './chunk-FVIDZ3GK.js';
|
|
16
16
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
17
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
17
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-UKDKM6Y6.js';
|
|
18
18
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
19
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-
|
|
20
|
-
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-
|
|
19
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-XILGXRHT.js';
|
|
20
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-PMXVWQ4T.js';
|
|
21
21
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
22
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
23
|
-
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm,
|
|
24
|
-
import { allocatedBytes, freeBytes, formatBytes } from './chunk-
|
|
25
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-
|
|
26
|
-
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-
|
|
27
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
28
|
-
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-
|
|
29
|
-
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf,
|
|
30
|
-
import { COMMAND_LOST_REASON, takeAgentCredentials, runnerAgents, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-
|
|
22
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-QJHXX2HG.js';
|
|
23
|
+
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-36ML3NIO.js';
|
|
24
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-YJQBL6SD.js';
|
|
25
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-HHKVXKQI.js';
|
|
26
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-EM4QCRI6.js';
|
|
27
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-CBMEWHAR.js';
|
|
28
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-CXMXXRNS.js';
|
|
29
|
+
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-V5S6CVGP.js';
|
|
30
|
+
import { COMMAND_LOST_REASON, takeAgentCredentials, runnerAgents, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-23SNF2LN.js';
|
|
31
31
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
32
32
|
import { mkdirSync, existsSync, chmodSync, writeFileSync, renameSync, statSync, readdirSync, readFileSync, rmSync, closeSync } from 'fs';
|
|
33
33
|
import { join, dirname } from 'path';
|
|
@@ -2204,7 +2204,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
2204
2204
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
2205
2205
|
);
|
|
2206
2206
|
async function tryClaimAndStart(state, item, queue) {
|
|
2207
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
2207
|
+
const { postJson: postJson2 } = await import('./work-cmd-HLNFJWQQ.js');
|
|
2208
2208
|
const log = logOf(state);
|
|
2209
2209
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
2210
2210
|
const claim = await retrySend(
|
|
@@ -2506,7 +2506,6 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2506
2506
|
setStage(job, dirPath, "provision");
|
|
2507
2507
|
log.line(`${tag} provision started`);
|
|
2508
2508
|
const provisionStartedMs = nowOf(state).getTime();
|
|
2509
|
-
const processMode = isBuiltinProcess(state.config.hooks.provision);
|
|
2510
2509
|
const requireBuildSkill = needsBuildSkill(queue, state.config.commands[queue]);
|
|
2511
2510
|
const cliVersion = state.deps.cliVersion ?? resolveVersion();
|
|
2512
2511
|
let workdir;
|
|
@@ -2603,37 +2602,6 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2603
2602
|
log.error(`${tag} could not write the commit hooks into the microVM: ${describeCallFailure(err)} \xB7 continuing without a co-author line`);
|
|
2604
2603
|
}
|
|
2605
2604
|
}
|
|
2606
|
-
} else if (processMode) {
|
|
2607
|
-
active.job.environment = sharedUserEnvironment(cliVersion);
|
|
2608
|
-
writeJobFile(jobFilePath, active.job);
|
|
2609
|
-
const provisioned = await provisionProcess({
|
|
2610
|
-
config: state.config,
|
|
2611
|
-
runtime: runtimeOf(state),
|
|
2612
|
-
item,
|
|
2613
|
-
repository: primary?.repository,
|
|
2614
|
-
itemKey,
|
|
2615
|
-
jobDir: dirPath,
|
|
2616
|
-
cliVersion,
|
|
2617
|
-
log,
|
|
2618
|
-
save: (build, environment) => {
|
|
2619
|
-
active.job.build = build;
|
|
2620
|
-
active.job.environment = environment;
|
|
2621
|
-
writeJobFile(jobFilePath, active.job);
|
|
2622
|
-
},
|
|
2623
|
-
aborted: () => active.ending
|
|
2624
|
-
}).catch((err) => ({ ok: false, reason: `provision failed: ${describeCallFailure(err)}` }));
|
|
2625
|
-
const provisionTook = formatDuration(nowOf(state).getTime() - provisionStartedMs);
|
|
2626
|
-
if (active.ending) return;
|
|
2627
|
-
if (!provisioned.ok) {
|
|
2628
|
-
log.error(`${tag} provision failed (${provisionTook}): ${provisioned.reason} \xB7 ending job as failed`);
|
|
2629
|
-
await endJob(state, active, "failed", { stage: "provision", reason: provisioned.reason });
|
|
2630
|
-
return;
|
|
2631
|
-
}
|
|
2632
|
-
log.line(`${tag} provision ok (${provisionTook}) \xB7 workdir ${relativeToRunner(runnerRoot, provisioned.workdir)}`);
|
|
2633
|
-
workdir = provisioned.workdir;
|
|
2634
|
-
active.job.build = provisioned.state;
|
|
2635
|
-
active.job.environment = provisioned.environment;
|
|
2636
|
-
installCommitHooks(active.job, log, tag);
|
|
2637
2605
|
} else {
|
|
2638
2606
|
const runtime = runtimeOf(state);
|
|
2639
2607
|
const build = await startHostBuild(state, active, primary?.repository);
|
|
@@ -2733,7 +2701,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2733
2701
|
if (active.ending) return;
|
|
2734
2702
|
writeJobFile(jobFilePath, active.job);
|
|
2735
2703
|
if (named.exec !== void 0 && named.recipe !== void 0) {
|
|
2736
|
-
const lifecycleEnv = hostCommandEnvironment(jobEnv(claimCalls(state.config, active.job), item.number, itemKey, dirPath, process.env, branch, identity?.author, spoolHomeFor(state.config, active.job)), build.state, state.config, void 0, noteOnce
|
|
2704
|
+
const lifecycleEnv = hostCommandEnvironment(jobEnv(claimCalls(state.config, active.job), item.number, itemKey, dirPath, process.env, branch, identity?.author, spoolHomeFor(state.config, active.job)), build.state, state.config, void 0, noteOnce);
|
|
2737
2705
|
for (const step of lifecycleSteps(named.recipe.apply.lifecycle)) {
|
|
2738
2706
|
if (active.ending) return;
|
|
2739
2707
|
log.line(`${tag} lifecycle ${step.name} (${step.source})`);
|
|
@@ -2831,7 +2799,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2831
2799
|
}
|
|
2832
2800
|
} else {
|
|
2833
2801
|
const build = job.build;
|
|
2834
|
-
const commandEnv = hostCommandEnvironment(jobEnv(claimCalls(state.config, active.job), item.number, itemKey, dirPath, process.env, branch, identity?.author, spoolHomeFor(state.config, active.job)), build, state.config, identity?.hooksPath, noteOnce
|
|
2802
|
+
const commandEnv = hostCommandEnvironment(jobEnv(claimCalls(state.config, active.job), item.number, itemKey, dirPath, process.env, branch, identity?.author, spoolHomeFor(state.config, active.job)), build, state.config, identity?.hooksPath, noteOnce);
|
|
2835
2803
|
running = build.exec === void 0 ? runCommand(cmdline, commandEnv, workdir, join(dirPath, "command.log"), state.deps.spawnFn) : runCommand(execCommandLine(build.exec, workdir, cmdline), commandEnv, dirPath, join(dirPath, "command.log"), state.deps.spawnFn);
|
|
2836
2804
|
}
|
|
2837
2805
|
} catch (err) {
|
|
@@ -2971,7 +2939,7 @@ async function startHostBuild(state, active, repository) {
|
|
|
2971
2939
|
const runtime = runtimeOf(state);
|
|
2972
2940
|
let failed2;
|
|
2973
2941
|
try {
|
|
2974
|
-
await startHostServices({ runtime, config: state.config, build, jobDir: active.dirPath,
|
|
2942
|
+
await startHostServices({ runtime, config: state.config, build, jobDir: active.dirPath, routeLog: (line) => logOf(state).line(`${itemTag(active.job)} ${line}`) });
|
|
2975
2943
|
} catch (err) {
|
|
2976
2944
|
failed2 = describeCallFailure(err);
|
|
2977
2945
|
logOf(state).error(`${itemTag(active.job)} the tunnel and destination servers could not start: ${failed2} \xB7 continuing`);
|
|
@@ -3586,7 +3554,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3586
3554
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3587
3555
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
3588
3556
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
3589
|
-
return (await import('./check-
|
|
3557
|
+
return (await import('./check-NFLR5CGS.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3590
3558
|
},
|
|
3591
3559
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3592
3560
|
log
|
|
@@ -3699,7 +3667,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3699
3667
|
attemptLogs.open(job.item, dirPath, itemScope(job));
|
|
3700
3668
|
if (job.container !== void 0) await rejoinContainerBuild(state, adopted);
|
|
3701
3669
|
if (job.build !== void 0 && !runtimeOf(state).tunnels.has(job.build.buildId)) {
|
|
3702
|
-
await startHostServices({ runtime: runtimeOf(state), config, build: job.build, jobDir: dirPath
|
|
3670
|
+
await startHostServices({ runtime: runtimeOf(state), config, build: job.build, jobDir: dirPath }).catch((err) => {
|
|
3703
3671
|
logOf(state).error(`the tunnel of ${itemTag(job)} could not start again: ${describeCallFailure(err)}`);
|
|
3704
3672
|
});
|
|
3705
3673
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readCloudConfigStrict, readCloudConfig, cloudConfigPath } from './chunk-HWVMRETT.js';
|
|
4
|
-
import { signRunnerRequest, signerFor } from './chunk-
|
|
4
|
+
import { signRunnerRequest, signerFor } from './chunk-CBMEWHAR.js';
|
|
5
5
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
6
|
import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-NFZMENCY.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
5
|
-
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-
|
|
6
|
-
import { builderDiskPinned } from './chunk-
|
|
3
|
+
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-YJQBL6SD.js';
|
|
4
|
+
import { parseSize } from './chunk-HHKVXKQI.js';
|
|
5
|
+
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-V5S6CVGP.js';
|
|
6
|
+
import { builderDiskPinned } from './chunk-23SNF2LN.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { existsSync, statSync, accessSync, constants, readFileSync } from 'fs';
|
|
9
9
|
import { hostname } from 'os';
|
|
@@ -98,19 +98,16 @@ function hostAllowed(host, allowHosts) {
|
|
|
98
98
|
|
|
99
99
|
// src/runner/config.ts
|
|
100
100
|
var BUILTIN_CONTAINER = "builtin:container";
|
|
101
|
-
var
|
|
101
|
+
var PROCESS_HOOK = "builtin:process";
|
|
102
102
|
var BUILTIN_VM = "builtin:vm";
|
|
103
103
|
function isBuiltinContainer(hook) {
|
|
104
104
|
return hook === BUILTIN_CONTAINER;
|
|
105
105
|
}
|
|
106
|
-
function isBuiltinProcess(hook) {
|
|
107
|
-
return hook === BUILTIN_PROCESS;
|
|
108
|
-
}
|
|
109
106
|
function isBuiltinVm(hook) {
|
|
110
107
|
return hook === BUILTIN_VM;
|
|
111
108
|
}
|
|
112
109
|
function builtinKind(hook) {
|
|
113
|
-
return isBuiltinContainer(hook) ? "container" :
|
|
110
|
+
return isBuiltinContainer(hook) ? "container" : isBuiltinVm(hook) ? "vm" : "own";
|
|
114
111
|
}
|
|
115
112
|
function runnerDeliversComments(config) {
|
|
116
113
|
if (config.deliverComments === false) return false;
|
|
@@ -276,7 +273,7 @@ function checkHooks(config, env = process.env) {
|
|
|
276
273
|
];
|
|
277
274
|
for (const [key, path] of named) {
|
|
278
275
|
if (path === void 0) continue;
|
|
279
|
-
if (isBuiltinContainer(path) ||
|
|
276
|
+
if (isBuiltinContainer(path) || isBuiltinVm(path)) continue;
|
|
280
277
|
if (path.includes("$") || path.startsWith("~")) {
|
|
281
278
|
return `${key}: ${path} \u2014 hooks are executable paths, not shell lines; $HOME and ~ are not expanded`;
|
|
282
279
|
}
|
|
@@ -423,14 +420,17 @@ function checkBuiltinHooks(configPath, hooks) {
|
|
|
423
420
|
const value = hooks[key];
|
|
424
421
|
if (value === void 0 || !value.startsWith("builtin:")) continue;
|
|
425
422
|
if (key === "report") fail(configPath, "runner.hooks.report", `cannot be ${value}: the report hook stays an executable`);
|
|
426
|
-
if (
|
|
427
|
-
fail(configPath, `runner.hooks.${key}`, `
|
|
423
|
+
if (value === PROCESS_HOOK) {
|
|
424
|
+
fail(configPath, `runner.hooks.${key}`, `is ${PROCESS_HOOK}, which is not supported: builds run isolated. Set both hooks to ${BUILTIN_CONTAINER} or ${BUILTIN_VM}, or remove the runner block and run \`outerlayer runner init\` again`);
|
|
425
|
+
}
|
|
426
|
+
if (!isBuiltinContainer(value) && !isBuiltinVm(value)) {
|
|
427
|
+
fail(configPath, `runner.hooks.${key}`, `names an unknown built-in hook "${value}"; the ones that exist are ${BUILTIN_CONTAINER} and ${BUILTIN_VM}`);
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
const provision = hooks.provision;
|
|
431
431
|
const cleanup = hooks.cleanup;
|
|
432
|
-
if (isBuiltinContainer(provision) !== isBuiltinContainer(cleanup) ||
|
|
433
|
-
fail(configPath, "runner.hooks", `provision and cleanup must both be ${BUILTIN_CONTAINER}, both be ${
|
|
432
|
+
if (isBuiltinContainer(provision) !== isBuiltinContainer(cleanup) || isBuiltinVm(provision) !== isBuiltinVm(cleanup)) {
|
|
433
|
+
fail(configPath, "runner.hooks", `provision and cleanup must both be ${BUILTIN_CONTAINER}, both be ${BUILTIN_VM}, or neither`);
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
function resolveHousekeeping(configPath, block, buildDisk) {
|
|
@@ -608,4 +608,4 @@ function egressLimitsOf(config) {
|
|
|
608
608
|
return resolveEgress(config.build?.egress, config.managed === true);
|
|
609
609
|
}
|
|
610
610
|
|
|
611
|
-
export { DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_SETUP_MINUTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, DEFAULT_WORKSPACE_KEEP_DAYS, EGRESS_SWITCHABLE_KEYS, MAX_ALLOW_HOSTS, RunnerConfigError, allowHostProblem, builtinKind, checkHooks, defaultRunnerConfigPath, egressSummary, emptyEgressCounts, hasRunnerBlock, hostAllowed, imageBuildOf, isBuiltinContainer,
|
|
611
|
+
export { DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_SETUP_MINUTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, DEFAULT_WORKSPACE_KEEP_DAYS, EGRESS_SWITCHABLE_KEYS, MAX_ALLOW_HOSTS, RunnerConfigError, allowHostProblem, builtinKind, checkHooks, defaultRunnerConfigPath, egressSummary, emptyEgressCounts, hasRunnerBlock, hostAllowed, imageBuildOf, isBuiltinContainer, isBuiltinVm, keepsHostBuilder, keyRunnerFactory, loadRunnerConfig, optionalEgress, resolveBuild, resolveHousekeeping, runnerCredentialProblem, runnerDeliversComments, runnerVmOf, systemClock };
|
|
@@ -3,10 +3,10 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { runEmit } from './chunk-FCMEWS3G.js';
|
|
4
4
|
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-Z4ASKZKN.js';
|
|
5
5
|
import { installStarterPack } from './chunk-66UG5SL4.js';
|
|
6
|
-
import { listWithAnd } from './chunk-
|
|
6
|
+
import { listWithAnd } from './chunk-4Y7IEPQH.js';
|
|
7
7
|
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-ZM2SKQJD.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGitCommonDir, defaultGitRunner } from './chunk-
|
|
9
|
+
import { resolveGitCommonDir, defaultGitRunner } from './chunk-AZTTOBJ5.js';
|
|
10
10
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
11
|
import { linkedAgentsPath } from './chunk-OQZ2B5AN.js';
|
|
12
12
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|