@outerlayer/cli 0.41.0-next.20261118042344 → 0.41.0-next.20261118043303
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-setup-OY7X2RZ7.js → agent-setup-K5FWHJWR.js} +7 -7
- package/dist/{agent-subcommand-IUZYR6XR.js → agent-subcommand-ZILR4JWP.js} +1 -1
- package/dist/{bridge-4ZSJLYCX.js → bridge-HQDMB2OV.js} +2 -2
- package/dist/{build-XFVNQS7E.js → build-3HTOQKNF.js} +7 -7
- package/dist/{build-disk-NGJQY2TK.js → build-disk-SK2UT2DT.js} +5 -5
- package/dist/build-info.json +1 -1
- package/dist/{builder-EQQV62EK.js → builder-WCXNOGKF.js} +4 -4
- package/dist/{caller-4PJF4AG2.js → caller-VUQN24KZ.js} +7 -7
- package/dist/{check-PMCHCY4J.js → check-UP3YYRBH.js} +37 -37
- package/dist/{chunk-372B3J4P.js → chunk-2DJBYNDC.js} +1 -1
- package/dist/{chunk-BXQU44EL.js → chunk-36QFNTJY.js} +3 -3
- package/dist/{chunk-WIIRJEMD.js → chunk-3HL5DUKO.js} +3 -3
- package/dist/{chunk-SWSEQ6X3.js → chunk-4SHMBQWH.js} +6 -6
- package/dist/{chunk-MQGI4D3A.js → chunk-4U3SWN5G.js} +2 -2
- package/dist/{chunk-QX4GZGMW.js → chunk-7FD3UTHI.js} +3 -3
- package/dist/{chunk-7CUCNCYW.js → chunk-AXDQ3OD6.js} +3 -3
- package/dist/{chunk-ZJNTS7HZ.js → chunk-B3MRE2XC.js} +2 -2
- package/dist/{chunk-UYOR2ZFY.js → chunk-BQQ7AXXW.js} +1 -1
- package/dist/{chunk-7H3JTB2I.js → chunk-BUSPSV2F.js} +1 -1
- package/dist/{chunk-QGJVNUCY.js → chunk-FGVKSK2P.js} +1 -1
- package/dist/{chunk-KVZFYAYE.js → chunk-GBP3QSDO.js} +3 -3
- package/dist/{chunk-R3FVL26B.js → chunk-GJC42QWN.js} +3 -3
- package/dist/{chunk-ZXYHJ4V2.js → chunk-HK6555J6.js} +2 -2
- package/dist/{chunk-KC6AM5KC.js → chunk-HUX4NILD.js} +3 -3
- package/dist/{chunk-T7PY3A5I.js → chunk-IEPYESAY.js} +1 -1
- package/dist/{chunk-ZWPENDEN.js → chunk-IL3IZXH4.js} +5 -5
- package/dist/{chunk-Y2X4YY3E.js → chunk-IMWZXJ7S.js} +26 -25
- package/dist/{chunk-OV3KU37X.js → chunk-INTR7TML.js} +2 -2
- package/dist/{chunk-IZ2NXWJV.js → chunk-K6LFU64M.js} +2 -2
- package/dist/{chunk-IDSEYLPI.js → chunk-KKIANRHM.js} +1 -1
- package/dist/{chunk-RFSYZEJE.js → chunk-KSSIFZDR.js} +2 -2
- package/dist/{chunk-3YVYZTMD.js → chunk-L2D3VD2K.js} +1 -1
- package/dist/{chunk-HJUJDDHO.js → chunk-NBXNBAAG.js} +1 -1
- package/dist/{chunk-QKD23T7O.js → chunk-NFGW3C2L.js} +5 -5
- package/dist/{chunk-6ML3LB5R.js → chunk-NH4GSJZN.js} +3 -3
- package/dist/{chunk-4WR5WFJC.js → chunk-NILMZJ6I.js} +5 -5
- package/dist/{chunk-5SWJKCME.js → chunk-NWQYWF6N.js} +2 -2
- package/dist/{chunk-MAFWNIYA.js → chunk-OOM4TEG5.js} +1 -1
- package/dist/{chunk-LMQSM3KR.js → chunk-OOW3QG7F.js} +46 -26
- package/dist/{chunk-QDJBEQCE.js → chunk-PDZEPH24.js} +1 -1
- package/dist/{chunk-A37KFXXN.js → chunk-PQWTPA6Z.js} +9 -9
- package/dist/{chunk-BLFGNTAU.js → chunk-Q7S5EVU7.js} +2 -2
- package/dist/{chunk-7FVQCFTT.js → chunk-QEJKRR2Q.js} +1 -1
- package/dist/{chunk-SHNKZGS7.js → chunk-QXC5QWPU.js} +5 -5
- package/dist/{chunk-RJPLN6SO.js → chunk-QYNH6MBI.js} +2 -2
- package/dist/{chunk-DN2EA4XS.js → chunk-SO7JMTVX.js} +1 -1
- package/dist/{chunk-OR6OCGFY.js → chunk-TMUHUTA2.js} +1 -1
- package/dist/{chunk-S5QUXXJT.js → chunk-TN3NJYI6.js} +4 -4
- package/dist/{chunk-SXPRKSRY.js → chunk-TXAXSZ7A.js} +2 -2
- package/dist/{chunk-J7NDBF6V.js → chunk-U2AAZY5W.js} +1 -1
- package/dist/{chunk-NJBTQEEY.js → chunk-VNVX7KRW.js} +1 -1
- package/dist/{chunk-6PPR2Z2P.js → chunk-VYFML7GX.js} +2 -2
- package/dist/{chunk-OJSC57KK.js → chunk-WLWVMXM4.js} +7 -7
- package/dist/{chunk-T6PP5OYW.js → chunk-WSHHRIGI.js} +3 -3
- package/dist/{chunk-ZEQT23XF.js → chunk-XLZY7V3X.js} +1 -1
- package/dist/{chunk-4CCWVDUX.js → chunk-XX7LTNEB.js} +3 -3
- package/dist/{chunk-R5JQH7V6.js → chunk-YTEK3QUQ.js} +2 -2
- package/dist/{chunk-EJ6P43IT.js → chunk-Z7BIDBWN.js} +1 -1
- package/dist/{chunk-Q2TA7RYQ.js → chunk-ZDK4XRBT.js} +1 -1
- package/dist/{chunk-NXLNXHDE.js → chunk-ZGQQ2WPG.js} +2 -2
- package/dist/{chunk-JE2W6Z2Y.js → chunk-ZJL6MDF7.js} +7 -7
- package/dist/{chunk-UXLWZV2S.js → chunk-ZMYVA3YA.js} +1 -1
- package/dist/{claude-launcher-TD7BOXS3.js → claude-launcher-JTXL22XE.js} +1 -1
- package/dist/{cli-GH5MZGRY.js → cli-KVL7IJMJ.js} +135 -135
- package/dist/{command-CGY337MC.js → command-ATRHODTN.js} +34 -34
- package/dist/{config-ZGTWKAGF.js → config-EFPTYQ4N.js} +6 -6
- package/dist/{connect-cmd-GKGB2E7L.js → connect-cmd-VL7KFY66.js} +5 -5
- package/dist/{container-start-JA6S5OZA.js → container-start-ST5I64MY.js} +31 -31
- package/dist/{context-show-cmd-55RKC5M6.js → context-show-cmd-YODJEXKE.js} +6 -6
- package/dist/{control-plane-launch-UH6LIDIM.js → control-plane-launch-LUSKGM3T.js} +5 -5
- package/dist/{demo-record-cmd-Q7RXHNSW.js → demo-record-cmd-OT5X5QRX.js} +2 -2
- package/dist/{demo-voice-cmd-LC75USDT.js → demo-voice-cmd-GXV57LO3.js} +11 -11
- package/dist/{docker-DCZ3QU7E.js → docker-2EAXH2W2.js} +4 -4
- package/dist/{doctor-UOPEG5JW.js → doctor-SYESAA2Y.js} +33 -33
- package/dist/{emit-artifact-cmd-DQXFW5QL.js → emit-artifact-cmd-FMYIDU4K.js} +10 -10
- package/dist/{emit-criteria-cmd-2YF7DG7K.js → emit-criteria-cmd-QXBQAOPQ.js} +7 -7
- package/dist/{emit-demo-cmd-Z2Z7G3BM.js → emit-demo-cmd-S2RPE5TI.js} +11 -11
- package/dist/{emit-finding-cmd-ZVDJ4IWI.js → emit-finding-cmd-I3UZ6A26.js} +7 -7
- package/dist/{emit-step-cmd-WVMHTORK.js → emit-step-cmd-WRWIKVHO.js} +7 -7
- package/dist/{exec-client-6B65UMC4.js → exec-client-L32MBS5M.js} +3 -3
- package/dist/{find-unit-CPKLR4S3.js → find-unit-4OYP7R3I.js} +7 -7
- package/dist/{findings-cmd-7QLBWQGC.js → findings-cmd-BI3PMYEP.js} +7 -7
- package/dist/{fleet-readiness-5KULJEOF.js → fleet-readiness-7IXZYEIJ.js} +5 -5
- package/dist/{governing-source-CPCH4DJC.js → governing-source-FAXSIJ4Q.js} +9 -9
- package/dist/{guest-init-DYUGDDAL.js → guest-init-7JHRMG5K.js} +4 -4
- package/dist/{hook-fast-5CJ6RJFG.js → hook-fast-LJQP5DE3.js} +1 -1
- package/dist/{host-checks-LQL5AAWT.js → host-checks-US7MSJVQ.js} +29 -29
- package/dist/{pending-DDB24JP7.js → host-key-BOUX75EI.js} +3 -3
- package/dist/{image-tag-XNNZOXVO.js → image-tag-BI6C4CKO.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/{init-DYJMROGI.js → init-MB2POSL3.js} +29 -29
- package/dist/{init-RDMYISJU.js → init-W46LLTR3.js} +29 -29
- package/dist/{init-agent-ZCBIXS6M.js → init-agent-7EIXAFDY.js} +29 -29
- package/dist/{init-cmd-TYN64DJI.js → init-cmd-VTNMWE6X.js} +11 -11
- package/dist/{init-update-MJ7MYP6V.js → init-update-EC4G5Q26.js} +8 -8
- package/dist/{install-cmd-QYJDQH6P.js → install-cmd-WTKSXRM7.js} +9 -9
- package/dist/{launch-agent-YB3ZHJZO.js → launch-agent-JXPYZ3BW.js} +9 -9
- package/dist/{logs-7HCS6KSZ.js → logs-S2E32DDI.js} +2 -2
- package/dist/{loop-3JAEQFO7.js → loop-HQREFLQ2.js} +37 -37
- package/dist/{machine-HLEJXQNG.js → machine-4K3EUQNF.js} +29 -29
- package/dist/{mcp-serve-cmd-WX36M5AW.js → mcp-serve-cmd-BGUFN5HD.js} +4 -4
- package/dist/{paths-BFCAC3BS.js → paths-7GRBF4FR.js} +2 -2
- package/dist/{host-key-JCGCSUKW.js → pending-4LIHL6P7.js} +3 -3
- package/dist/{pidfile-WLYGNER6.js → pidfile-WYTFOPLR.js} +3 -3
- package/dist/{record-KQIGBRJO.js → record-VCLLNGFQ.js} +3 -3
- package/dist/{run-cmd-DH45VQHD.js → run-cmd-VX3W4XRS.js} +7 -7
- package/dist/{runner-env-YS7NTZVF.js → runner-env-XHPLX7Q2.js} +8 -8
- package/dist/{runner-identity-CXYSHPMV.js → runner-identity-WYXCLNP5.js} +4 -4
- package/dist/{runner-key-VVGDYJ3V.js → runner-key-4E3N523Z.js} +29 -29
- package/dist/{session-sender-XATQAHUP.js → session-sender-I4L22CLF.js} +10 -10
- package/dist/{setup-cmd-BDNW3QX2.js → setup-cmd-YYICF6KV.js} +6 -6
- package/dist/{setup-wiring-7WP7T6DZ.js → setup-wiring-MBAPYPIM.js} +33 -33
- package/dist/{spec-cmd-JQD4MVSD.js → spec-cmd-IOOIZLHA.js} +8 -8
- package/dist/{state-ISFCEXUY.js → state-TPL7K4S3.js} +3 -3
- package/dist/{status-OLYG2DQO.js → status-JMMO2LES.js} +29 -29
- package/dist/{sync-cmd-4WBPOCSV.js → sync-cmd-MIY3CSOE.js} +9 -9
- package/dist/{update-steps-OSHKSM76.js → update-steps-WXP7ANHM.js} +30 -30
- package/dist/{watch-FVZGHC4H.js → watch-3V2OVFAZ.js} +9 -9
- package/dist/{work-claim-cmd-5QLR2AXJ.js → work-claim-cmd-7PYXYZZJ.js} +13 -13
- package/dist/{work-cmd-4WIUDL3X.js → work-cmd-2I7L7227.js} +7 -7
- package/dist/{work-comment-cmd-H7D2QMAH.js → work-comment-cmd-UOT7NIQP.js} +9 -9
- package/dist/{work-demo-cmd-GDECXMTW.js → work-demo-cmd-2I6VOWH5.js} +7 -7
- package/dist/{work-logs-cmd-BEJ57ZYU.js → work-logs-cmd-AQBA46OJ.js} +7 -7
- package/dist/{work-mock-cmd-BMYUKPLS.js → work-mock-cmd-AQPCQ4KI.js} +7 -7
- package/dist/{work-needs-attention-cmd-AUQIQDUY.js → work-needs-attention-cmd-LW7VQFA6.js} +7 -7
- package/dist/{work-no-change-cmd-MKXFCWZB.js → work-no-change-cmd-ECYFFJFN.js} +7 -7
- package/dist/{work-open-pr-cmd-TMATND63.js → work-open-pr-cmd-O4OVHG27.js} +8 -8
- package/dist/{work-pr-cmd-PYM5ALZY.js → work-pr-cmd-YKDXW5RP.js} +7 -7
- package/dist/{work-proofs-cmd-Q4LFVRGN.js → work-proofs-cmd-C3C634CO.js} +8 -8
- package/dist/{work-proofs-record-TOM5TMTS.js → work-proofs-record-S7SF4425.js} +14 -14
- package/dist/{work-stop-cmd-CCUZFQEZ.js → work-stop-cmd-IQYI7NCK.js} +7 -7
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { detectActiveSession } from './chunk-Y2HG7SGT.js';
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { autoConnect } from './chunk-QYNH6MBI.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-SO7JMTVX.js';
|
|
7
7
|
import { parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
8
8
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
9
9
|
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 { RELAY_PORT, BUILD_HOME } from './chunk-
|
|
3
|
+
import { RELAY_PORT, BUILD_HOME } from './chunk-ZDK4XRBT.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-Y2HG7SGT.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-QYNH6MBI.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-SO7JMTVX.js';
|
|
8
8
|
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { isVersion, compareVersions } from './chunk-TQMI335S.js';
|
|
4
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
4
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-TMUHUTA2.js';
|
|
5
5
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { currentLink } from './chunk-
|
|
3
|
+
import { currentLink } from './chunk-U2AAZY5W.js';
|
|
4
4
|
import { readFileSync, statSync, chmodSync, mkdirSync, writeFileSync, renameSync, rmSync, existsSync, lstatSync, accessSync, constants, realpathSync } from 'fs';
|
|
5
5
|
import { randomBytes } from 'crypto';
|
|
6
6
|
import { join, dirname, delimiter, resolve } from 'path';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { uploadSpooledSteps } from './chunk-
|
|
3
|
+
import { uploadSpooledSteps } from './chunk-4U3SWN5G.js';
|
|
4
4
|
import { LaunchFilter } from './chunk-C2PZOLN7.js';
|
|
5
5
|
import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-QW6TKDBL.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-SO7JMTVX.js';
|
|
8
8
|
import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-HWVMRETT.js';
|
|
9
|
-
import { signerFor, signRunnerRequest } from './chunk-
|
|
10
|
-
import { SCRUB_ENV_VARIABLE } from './chunk-
|
|
11
|
-
import { writeSyncStatus, logHookError, spoolDir } from './chunk-
|
|
9
|
+
import { signerFor, signRunnerRequest } from './chunk-FGVKSK2P.js';
|
|
10
|
+
import { SCRUB_ENV_VARIABLE } from './chunk-ZDK4XRBT.js';
|
|
11
|
+
import { writeSyncStatus, logHookError, spoolDir } from './chunk-QEJKRR2Q.js';
|
|
12
12
|
import { readLatestProvenanceForSession, readContextProvenance } from './chunk-545P7JY7.js';
|
|
13
13
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
14
14
|
import { hookExecSpoolPath } from './chunk-TLCTOEU5.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { stripTerminalControls } from './chunk-
|
|
4
|
-
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-OOW3QG7F.js';
|
|
4
|
+
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-L2D3VD2K.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
7
7
|
createRequire(import.meta.url);
|
|
@@ -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-2EAXH2W2.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,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-7SLZKQBB.js';
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-IL3IZXH4.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-QW6TKDBL.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-SO7JMTVX.js';
|
|
8
8
|
import { parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
|
|
@@ -129,14 +129,14 @@ function governingDir(cwd) {
|
|
|
129
129
|
async function testProofMode(cwd) {
|
|
130
130
|
const dir = governingDir(cwd);
|
|
131
131
|
if (dir === void 0) return "any";
|
|
132
|
-
const { testProofIn } = await import('./host-checks-
|
|
132
|
+
const { testProofIn } = await import('./host-checks-US7MSJVQ.js');
|
|
133
133
|
return testProofIn(dir);
|
|
134
134
|
}
|
|
135
135
|
async function judgeCheckName(cwd) {
|
|
136
136
|
const dir = governingDir(cwd);
|
|
137
137
|
if (dir === void 0) return {};
|
|
138
138
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
139
|
-
const { checksIn } = await import('./host-checks-
|
|
139
|
+
const { checksIn } = await import('./host-checks-US7MSJVQ.js');
|
|
140
140
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
141
141
|
const check = checksIn(dir, quiet, "").checks.find((c) => c.judge.subjects === "criteria");
|
|
142
142
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -372,7 +372,7 @@ async function runWorkProofs(opts) {
|
|
|
372
372
|
async function runWorkProofsCommand(opts) {
|
|
373
373
|
try {
|
|
374
374
|
if (opts.record || opts.check) {
|
|
375
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
375
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-S7SF4425.js');
|
|
376
376
|
const result2 = await runWorkProofsRecord(opts);
|
|
377
377
|
process.exitCode = result2.exitCode;
|
|
378
378
|
return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
4
|
-
import { spoolDir } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-NFGW3C2L.js';
|
|
4
|
+
import { spoolDir } from './chunk-QEJKRR2Q.js';
|
|
5
5
|
import { parseRunEnv, parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
6
6
|
import { sessionFolderIn, legacyAgent } from './chunk-HQYVI5T3.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
3
|
+
import { RUNNER_PROTOCOL } from './chunk-PDZEPH24.js';
|
|
4
4
|
import { MAX_TEST_FILE_BYTES, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, itemsSentence, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems, hostCheckOf } from './chunk-7SLZKQBB.js';
|
|
5
5
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
6
6
|
import { upgradedStarterText } from './chunk-NJKM5XGH.js';
|
|
7
|
-
import { runnerImageVersion } from './chunk-
|
|
8
|
-
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, replaceFile, isAgentName, credentialFromStdin } from './chunk-
|
|
9
|
-
import { describeCallFailure, shortClaim, retrySend, formatDuration, commandWithShim, logStamp, createRunnerLog, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-
|
|
10
|
-
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-
|
|
11
|
-
import { writeDockerClientConfig } from './chunk-
|
|
12
|
-
import { senderPidfile } from './chunk-
|
|
13
|
-
import { installScrubContext } from './chunk-
|
|
7
|
+
import { runnerImageVersion } from './chunk-L2D3VD2K.js';
|
|
8
|
+
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, replaceFile, isAgentName, credentialFromStdin } from './chunk-VYFML7GX.js';
|
|
9
|
+
import { describeCallFailure, shortClaim, retrySend, formatDuration, commandWithShim, logStamp, createRunnerLog, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-4SHMBQWH.js';
|
|
10
|
+
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-36QFNTJY.js';
|
|
11
|
+
import { writeDockerClientConfig } from './chunk-KKIANRHM.js';
|
|
12
|
+
import { senderPidfile } from './chunk-NWQYWF6N.js';
|
|
13
|
+
import { installScrubContext } from './chunk-NFGW3C2L.js';
|
|
14
14
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
15
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-
|
|
15
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-B3MRE2XC.js';
|
|
16
16
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
17
|
-
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, prepareImageBuild, readBranchHead, diffBetween, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-
|
|
18
|
-
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-
|
|
17
|
+
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, prepareImageBuild, readBranchHead, diffBetween, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-QXC5QWPU.js';
|
|
18
|
+
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-ZMYVA3YA.js';
|
|
19
19
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
20
20
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
21
|
-
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-
|
|
22
|
-
import { linkVsockSockets, GUEST_CID, socketPathProblem, vsockLinks, LEASE_LINK } from './chunk-
|
|
23
|
-
import { getJson, postJson, WorkCommandError, isSignatureRefusal } from './chunk-
|
|
21
|
+
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-OOM4TEG5.js';
|
|
22
|
+
import { linkVsockSockets, GUEST_CID, socketPathProblem, vsockLinks, LEASE_LINK } from './chunk-VNVX7KRW.js';
|
|
23
|
+
import { getJson, postJson, WorkCommandError, isSignatureRefusal } from './chunk-IL3IZXH4.js';
|
|
24
24
|
import { sanitizeTerminal, planArtifactUpload } from './chunk-QW6TKDBL.js';
|
|
25
|
-
import { keyRunnerFactory, DEFAULT_WORKSPACE_KEEP_DAYS, optionalEgress, runnerCredentialProblem, builtinKind, readOnlyOption, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, allowHostProblem, systemClock, emptyEgressCounts, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, hostAllowed, sandboxTimeLimitMinutes, networkOf, DEFAULT_SETUP_MINUTES, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-
|
|
26
|
-
import { volumeBytes, formatBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-
|
|
27
|
-
import { spawnRun, RUNNER_LABEL, BUILD_LABEL, said, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, readDu, firstLine, JUDGE_MAX_TURNS, writeJobFile, readJobFile, readJobFileChecked, NETWORK_READY_FILE, containerExecArgs, childEnvironment, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, judgeProgram, withAnswerProtocol, JUDGE_TREE, MAX_REPORT_BYTES, runnerLabelValue, parseSize, NODE, JUDGE_HOME, JUDGE_REPORT, judgeCommand, WORKSPACE_LABEL, COMMAND_DIR, prepareRunArgs, networkHelperName, containerRunArgs, judgeProgramRecord, mountableHome, homeCopyRunArgs, MAX_ITEMS_BYTES, identityRunArgs, parseIdentity, networkHelperRunArgs, identityScript, identityArgs, homeCopyScript, homeCopyArgs, SAVED_STATE_LABEL } from './chunk-
|
|
25
|
+
import { keyRunnerFactory, DEFAULT_WORKSPACE_KEEP_DAYS, optionalEgress, runnerCredentialProblem, builtinKind, readOnlyOption, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, allowHostProblem, systemClock, emptyEgressCounts, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, hostAllowed, sandboxTimeLimitMinutes, networkOf, DEFAULT_SETUP_MINUTES, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-WSHHRIGI.js';
|
|
26
|
+
import { volumeBytes, formatBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-INTR7TML.js';
|
|
27
|
+
import { spawnRun, RUNNER_LABEL, BUILD_LABEL, said, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, readDu, firstLine, JUDGE_MAX_TURNS, writeJobFile, readJobFile, readJobFileChecked, NETWORK_READY_FILE, containerExecArgs, childEnvironment, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, judgeProgram, withAnswerProtocol, JUDGE_TREE, MAX_REPORT_BYTES, runnerLabelValue, parseSize, NODE, JUDGE_HOME, JUDGE_REPORT, judgeCommand, WORKSPACE_LABEL, COMMAND_DIR, prepareRunArgs, networkHelperName, containerRunArgs, judgeProgramRecord, mountableHome, homeCopyRunArgs, MAX_ITEMS_BYTES, identityRunArgs, parseIdentity, networkHelperRunArgs, identityScript, identityArgs, homeCopyScript, homeCopyArgs, SAVED_STATE_LABEL } from './chunk-GBP3QSDO.js';
|
|
28
28
|
import { universalImagePending, writeSanitizedRecipe, classifyProperties, RecipeError, DOCKER_FEATURE } from './chunk-HG3GUG5G.js';
|
|
29
29
|
import { sharedSkillNames, skillConflictMessage } from './chunk-OCDZ7MBX.js';
|
|
30
30
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
31
|
-
import { signerFor } from './chunk-
|
|
32
|
-
import { RUNNER_FILE_MODE, sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, workspacesDir, runnerDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, vsockPath, builderConsolePath, diskTemplatesDir, jobConsolePath, deliveryDir, rootfsPathFor, SHIM_DIR } from './chunk-
|
|
33
|
-
import { dataPlaneOf, sandboxCallOf, SandboxError, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, buildEnvironment, CHECKOUT_DIR, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, trustEnvironment, checkoutPath, UsageLedger, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, parseProxied, retryAfterMsOf, proxyEnvironment, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, readBundleScript, applyTrust, describeSandboxError, dropBuildAuthority, BUILD_HOME, RELAY_PORT, variablesFor, carried6to4, classifyAddress, primaryOf, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, withheldCredentialLine, providerMayAnswerLater, repositoryPath, lifecycleWorkdir, toolProxyEnvironment, withMiseVariables, isMiseVariableAllowed } from './chunk-
|
|
31
|
+
import { signerFor } from './chunk-FGVKSK2P.js';
|
|
32
|
+
import { RUNNER_FILE_MODE, sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, workspacesDir, runnerDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, vsockPath, builderConsolePath, diskTemplatesDir, jobConsolePath, deliveryDir, rootfsPathFor, SHIM_DIR } from './chunk-TMUHUTA2.js';
|
|
33
|
+
import { dataPlaneOf, sandboxCallOf, SandboxError, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, buildEnvironment, CHECKOUT_DIR, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, trustEnvironment, checkoutPath, UsageLedger, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, parseProxied, retryAfterMsOf, proxyEnvironment, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, readBundleScript, applyTrust, describeSandboxError, dropBuildAuthority, BUILD_HOME, RELAY_PORT, variablesFor, carried6to4, classifyAddress, primaryOf, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, withheldCredentialLine, providerMayAnswerLater, repositoryPath, lifecycleWorkdir, toolProxyEnvironment, withMiseVariables, isMiseVariableAllowed } from './chunk-ZDK4XRBT.js';
|
|
34
34
|
import { agentCredential, UNKNOWN_TRANSPORT_REASON, managedAgentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, RELAY_USER, builtInNames, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, DOCKER_DESKTOP_REASON, RELAY_ID } from './chunk-QW43URTD.js';
|
|
35
35
|
import { jobCredentialProblem, parseRunnerEnv, findAgentCredential, rejectedCredentialText, realFdStorePort, reportedAgents, removedAgentCredentialValues, currentAgentCredential, fdName } from './chunk-6LKTKDMY.js';
|
|
36
36
|
import { versionAtLeast } from './chunk-DJK3IK6K.js';
|
|
@@ -242,7 +242,6 @@ function createLeaseChannel(valueMs) {
|
|
|
242
242
|
// src/runner/run-job.ts
|
|
243
243
|
function runIsolation(config) {
|
|
244
244
|
if (config.fleet === true || !config.queues.includes("implement")) return void 0;
|
|
245
|
-
if (config.sandbox?.provider === "outerlayer") return void 0;
|
|
246
245
|
if (isBuiltinContainer(config.hooks.provision)) return "container";
|
|
247
246
|
if (isBuiltinVm(config.hooks.provision) || isBuiltinSandbox(config.hooks.provision)) return "vm";
|
|
248
247
|
return void 0;
|
|
@@ -253,6 +252,9 @@ function runDecision(config, agents = defaultAgents()) {
|
|
|
253
252
|
if (runCommandOf(config, agents) === void 0) return { takes: false, because: "command" };
|
|
254
253
|
return { takes: true, isolation };
|
|
255
254
|
}
|
|
255
|
+
function isOuterLayerSandbox(config) {
|
|
256
|
+
return config.sandbox?.provider === "outerlayer";
|
|
257
|
+
}
|
|
256
258
|
function claimRepos(repos) {
|
|
257
259
|
if (repos === void 0 || (repos.include?.length ?? 0) === 0 && (repos.exclude?.length ?? 0) === 0) return void 0;
|
|
258
260
|
const bare = (pattern) => pattern.replace(/^github\.com\//i, "");
|
|
@@ -285,6 +287,8 @@ async function claimRun(input) {
|
|
|
285
287
|
cliVersion: input.cliVersion,
|
|
286
288
|
isolation: input.isolation,
|
|
287
289
|
seconds: LEASE_SECONDS,
|
|
290
|
+
// The gateway holds a run at a limit on managed builds only for a runner whose builds use OuterLayer's sandboxes.
|
|
291
|
+
...isOuterLayerSandbox(config) ? { managedSandbox: true } : {},
|
|
288
292
|
...repos === void 0 ? {} : { repos },
|
|
289
293
|
...input.hostKey === void 0 ? {} : { hostKey: input.hostKey }
|
|
290
294
|
},
|
|
@@ -1891,8 +1895,21 @@ function createGatewaySandboxClient(opts) {
|
|
|
1891
1895
|
};
|
|
1892
1896
|
const own = (id) => `/v1/managed-sandboxes/${encodeURIComponent(id)}`;
|
|
1893
1897
|
const claimed = (workItem) => `/v1/work-items/${encodeURIComponent(String(workItem))}/claim/sandbox`;
|
|
1898
|
+
const ranFor = (run) => `/v1/schedule-runs/${encodeURIComponent(run)}/sandbox`;
|
|
1894
1899
|
return {
|
|
1895
1900
|
async create(input) {
|
|
1901
|
+
if (input.run !== void 0) {
|
|
1902
|
+
return sandboxOf(
|
|
1903
|
+
await post(input.factory, ranFor(input.run), {
|
|
1904
|
+
waits: true,
|
|
1905
|
+
idleMinutes: input.idleMinutes,
|
|
1906
|
+
timeLimitMinutes: input.timeLimitMinutes,
|
|
1907
|
+
metadata: input.metadata,
|
|
1908
|
+
fromState: input.fromState
|
|
1909
|
+
}),
|
|
1910
|
+
input.factory
|
|
1911
|
+
);
|
|
1912
|
+
}
|
|
1896
1913
|
if (input.workItem === void 0) throw new SandboxError("the build names no work item, and OuterLayer makes a sandbox only for the claim on one", 0);
|
|
1897
1914
|
const machine = input.machine === void 0 ? {} : { machine: input.machine };
|
|
1898
1915
|
return sandboxOf(
|
|
@@ -8815,7 +8832,8 @@ function containerLimitsOf(size, build) {
|
|
|
8815
8832
|
function containerSizeOf(sandbox, asked) {
|
|
8816
8833
|
return sandbox.machine === void 0 ? asked : machineSizeOf(sandbox.machine);
|
|
8817
8834
|
}
|
|
8818
|
-
function sandboxClaimOf(config, item, workItemId, settings) {
|
|
8835
|
+
function sandboxClaimOf(config, item, workItemId, settings, run) {
|
|
8836
|
+
if (run === true) return { run: String(item), factory: config.appId };
|
|
8819
8837
|
const workItem = claimItem(config, { item, workItemId, appId: config.appId });
|
|
8820
8838
|
if (config.fleet !== true || settings === void 0) return { workItem, factory: config.appId };
|
|
8821
8839
|
return { workItem, factory: config.appId, machine: settings.machine.size };
|
|
@@ -8928,6 +8946,7 @@ function holdBackSave(plan, noSave) {
|
|
|
8928
8946
|
if (noSave === void 0 || plan.key === void 0 || plan.noSave !== void 0) return { plan };
|
|
8929
8947
|
return { plan: { ...plan, noSave }, ...plan.restore === void 0 ? { line: `this build saves no state: ${noSave}` } : {} };
|
|
8930
8948
|
}
|
|
8949
|
+
var RUN_SAVES_NO_STATE = "a run reads the repository and saves no state";
|
|
8931
8950
|
function failedSaveReason(ageMs) {
|
|
8932
8951
|
return `a save of its key failed ${formatDuration(ageMs)} ago, and the runner asks for none for ${formatDuration(FAILED_SAVE_PAUSE_MS)} after a failed save`;
|
|
8933
8952
|
}
|
|
@@ -8989,7 +9008,7 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
|
|
|
8989
9008
|
let plan = keptDisk !== void 0 ? keptDiskPlan() : input.queue === "review" ? { keyCommits: {}, noSave: "a code review runs no setup" } : await planSavedState({
|
|
8990
9009
|
config,
|
|
8991
9010
|
repositories,
|
|
8992
|
-
base: managed ? managedSandboxBase({ image: own.image, machine: managedBuildSettingsFor(jobDir)?.machine.size ?? "small", docker: own.docker, apply }) : void 0,
|
|
9011
|
+
base: managed ? managedSandboxBase({ image: own.image, machine: input.queue === "run" ? "small" : managedBuildSettingsFor(jobDir)?.machine.size ?? "small", docker: own.docker, apply }) : void 0,
|
|
8993
9012
|
noBase: OWN_ACCOUNT_REASON,
|
|
8994
9013
|
runtime,
|
|
8995
9014
|
tokens,
|
|
@@ -9001,7 +9020,7 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
|
|
|
9001
9020
|
});
|
|
9002
9021
|
const statesDir = savedStatesDir(runnerDir(config.configPath));
|
|
9003
9022
|
const failedAgo = plan.key === void 0 ? void 0 : recentFailedSaveMs(statesDir, plan.key.key, clockOf(input.now)().getTime());
|
|
9004
|
-
const heldBack = holdBackSave(plan, noSave ?? (failedAgo === void 0 ? void 0 : failedSaveReason(failedAgo)));
|
|
9023
|
+
const heldBack = holdBackSave(plan, noSave ?? (input.queue === "run" ? RUN_SAVES_NO_STATE : failedAgo === void 0 ? void 0 : failedSaveReason(failedAgo)));
|
|
9005
9024
|
plan = heldBack.plan;
|
|
9006
9025
|
if (heldBack.line !== void 0) tagged(heldBack.line);
|
|
9007
9026
|
let fromState = plan.restore?.record;
|
|
@@ -9139,10 +9158,11 @@ async function provisionSandboxOnce(input, allowRestore, itemDiskFailed, noSave)
|
|
|
9139
9158
|
...sized.size,
|
|
9140
9159
|
diskGib: await sandboxDiskGib(sandboxClient, own.snapshot, sized.size.diskGib, (line2) => log.line(`${tag} ${line2}`)),
|
|
9141
9160
|
idleMinutes: own.idleMinutes,
|
|
9142
|
-
|
|
9161
|
+
// A run's sandbox ends with the run, so its limit is the run's own. The gateway lowers a longer limit to it.
|
|
9162
|
+
timeLimitMinutes: input.run === void 0 ? sandboxTimeLimitMinutes(config.timeLimitMinutes) : Math.max(1, Math.ceil(input.run.timeLimitSeconds / 60)),
|
|
9143
9163
|
network: networkOf(own.allowHosts),
|
|
9144
9164
|
metadata: { [RUNNER_METADATA]: runnerId, [BUILD_METADATA]: buildId },
|
|
9145
|
-
...sandboxClaimOf(config, item.number, input.workItemId, managedBuildSettingsFor(jobDir)),
|
|
9165
|
+
...sandboxClaimOf(config, item.number, input.workItemId, managedBuildSettingsFor(jobDir), input.queue === "run"),
|
|
9146
9166
|
...resume === void 0 ? {} : { resume },
|
|
9147
9167
|
...fromState === void 0 ? {} : { fromState: fromState.id }
|
|
9148
9168
|
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { checkStarterFiles, contextIsGoverned } from './chunk-NJKM5XGH.js';
|
|
4
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
5
|
-
import { isLinkedRepository } from './chunk-
|
|
6
|
-
import { fleetCheck, checkBuildSkill, checkSpecSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-
|
|
4
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-IL3IZXH4.js';
|
|
5
|
+
import { isLinkedRepository } from './chunk-BUSPSV2F.js';
|
|
6
|
+
import { fleetCheck, checkBuildSkill, checkSpecSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-Z7BIDBWN.js';
|
|
7
7
|
import { sanitizeTerminal } from './chunk-QW6TKDBL.js';
|
|
8
8
|
import { withInjectedPrograms } from './chunk-EKBY375P.js';
|
|
9
9
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
10
10
|
import { checkFormerSkillNames } from './chunk-ILHFH56O.js';
|
|
11
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
12
|
-
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-
|
|
11
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-SO7JMTVX.js';
|
|
12
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-QEJKRR2Q.js';
|
|
13
13
|
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-DJK3IK6K.js';
|
|
14
14
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
15
15
|
import { readStatuslineState, STATE_FRESH_MS } from './chunk-B3ZKYFBI.js';
|
|
@@ -1094,9 +1094,9 @@ function doctorExitCode(checks) {
|
|
|
1094
1094
|
|
|
1095
1095
|
// src/doctor-report.ts
|
|
1096
1096
|
async function gatherDoctorChecks(options = {}) {
|
|
1097
|
-
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-
|
|
1097
|
+
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-SK2UT2DT.js');
|
|
1098
1098
|
const { listedAgents } = await import('./runner-agents-VTEO2GEK.js');
|
|
1099
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1099
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-EFPTYQ4N.js');
|
|
1100
1100
|
const configPath = options.configPath ?? defaultRunnerConfigPath();
|
|
1101
1101
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1102
1102
|
const hooks = (() => {
|
|
@@ -1124,7 +1124,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1124
1124
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1125
1125
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1126
1126
|
} else if (hasRunnerBlock(configPath)) {
|
|
1127
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1127
|
+
const { runnerHostChecks } = await import('./doctor-SYESAA2Y.js');
|
|
1128
1128
|
const gateway = (() => {
|
|
1129
1129
|
try {
|
|
1130
1130
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1153,7 +1153,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1153
1153
|
const service = await (async () => {
|
|
1154
1154
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1155
1155
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1156
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1156
|
+
const { inspectRunnerService } = await import('./find-unit-4OYP7R3I.js');
|
|
1157
1157
|
return inspectRunnerService(configPath);
|
|
1158
1158
|
})();
|
|
1159
1159
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -3,8 +3,8 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { RemovedTargetError, removedTargetError } from './chunk-EMDZUXJX.js';
|
|
4
4
|
import { removeRetiredSkills } from './chunk-ILHFH56O.js';
|
|
5
5
|
import { removeLeftoverGitLocks } from './chunk-A2WPWZJA.js';
|
|
6
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
7
|
-
import { withTokenHeader } from './chunk-
|
|
6
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-SO7JMTVX.js';
|
|
7
|
+
import { withTokenHeader } from './chunk-ZDK4XRBT.js';
|
|
8
8
|
import { appendContextProvenance } from './chunk-545P7JY7.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
10
10
|
import { writeDegraded, writeSourceCache, SOURCE_CACHE_TTL_RETRY_MS, writeContextManifest, SOURCE_CACHE_TTL_SUCCESS_MS, readSourceCache, isSourceCacheFresh, clearDegraded } from './chunk-YQR6E6OV.js';
|
|
@@ -882,7 +882,7 @@ async function missingControlPlane(cwd, sessionId, home, env) {
|
|
|
882
882
|
cleanupEarlierCopies(dirs);
|
|
883
883
|
}
|
|
884
884
|
if (!contextPossiblyGoverned(cwd, home)) return void 0;
|
|
885
|
-
const { governanceOf } = await import('./control-plane-launch-
|
|
885
|
+
const { governanceOf } = await import('./control-plane-launch-LUSKGM3T.js');
|
|
886
886
|
if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
|
|
887
887
|
recordMissingContext(dirs, sessionId, home);
|
|
888
888
|
const launcher = `${cliInvocation()} ${LEGACY.legacy.subcommand}`;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { toolsDockerfile } from './chunk-
|
|
3
|
+
import { toolsDockerfile } from './chunk-ZMYVA3YA.js';
|
|
4
4
|
import { withNewTokenRetry, REFUSED_BY_REMOTE } from './chunk-FJGYU2EK.js';
|
|
5
|
-
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-
|
|
5
|
+
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-IEPYESAY.js';
|
|
6
6
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
7
|
-
import { runnerLabelValue } from './chunk-
|
|
7
|
+
import { runnerLabelValue } from './chunk-GBP3QSDO.js';
|
|
8
8
|
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-HG3GUG5G.js';
|
|
9
9
|
import { removeLeftoverGitLocks } from './chunk-A2WPWZJA.js';
|
|
10
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-
|
|
11
|
-
import { withGitConfig, tokenHeader } from './chunk-
|
|
10
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-TMUHUTA2.js';
|
|
11
|
+
import { withGitConfig, tokenHeader } from './chunk-ZDK4XRBT.js';
|
|
12
12
|
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-EEPVNSQ7.js';
|
|
13
13
|
import { mkdirSync, writeFileSync, existsSync, mkdtempSync, rmSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
|
|
14
14
|
import { tmpdir } from 'os';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-
|
|
4
|
-
import { resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-BUSPSV2F.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-SO7JMTVX.js';
|
|
5
5
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
6
6
|
import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -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-FGVKSK2P.js';
|
|
5
5
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
6
|
import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-Z7J7JWGF.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-
|
|
4
|
-
import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-
|
|
3
|
+
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-NBXNBAAG.js';
|
|
4
|
+
import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-U2AAZY5W.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { defaultRunnerConfigPath } from './chunk-
|
|
7
|
-
import { runnerDir, RUNNER_DIR_MODE } from './chunk-
|
|
6
|
+
import { defaultRunnerConfigPath } from './chunk-WSHHRIGI.js';
|
|
7
|
+
import { runnerDir, RUNNER_DIR_MODE } from './chunk-TMUHUTA2.js';
|
|
8
8
|
import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
|
|
9
9
|
import { dirname, sep, join, resolve } from 'path';
|
|
10
10
|
import { spawnSync } from 'child_process';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { linkedBranches, setupCommitPaths, commitCommandsFor, ownerAndName } from './chunk-
|
|
4
|
-
import { resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { linkedBranches, setupCommitPaths, commitCommandsFor, ownerAndName } from './chunk-BUSPSV2F.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-SO7JMTVX.js';
|
|
5
5
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
6
|
import { execFileSync } from 'child_process';
|
|
7
7
|
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-TMUHUTA2.js';
|
|
4
4
|
import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
|
|
5
5
|
import { join, basename, sep, resolve } from 'path';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
3
|
+
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-ZDK4XRBT.js';
|
|
4
4
|
import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-QW43URTD.js';
|
|
5
5
|
import { defaultAgents } from './chunk-HQYVI5T3.js';
|
|
6
6
|
import { PROVIDERS } from './chunk-Q7Z6ELTL.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-XX7LTNEB.js';
|
|
4
|
+
import { RUNNER_FILE_MODE } from './chunk-TMUHUTA2.js';
|
|
5
5
|
import { parseRunnerEnv, withoutCredentialLines } from './chunk-6LKTKDMY.js';
|
|
6
6
|
import { isHeadlessAgent, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialNames, forwardedVariables } from './chunk-EEPVNSQ7.js';
|
|
7
7
|
import { defaultAgents } from './chunk-HQYVI5T3.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
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-
|
|
5
|
-
import { RunnerAlreadyRunningError, readPidFile } from './chunk-
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-OOW3QG7F.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-XX7LTNEB.js';
|
|
5
|
+
import { RunnerAlreadyRunningError, readPidFile } from './chunk-IEPYESAY.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
7
|
-
import { isSignatureRefusal, postJson } from './chunk-
|
|
8
|
-
import { keyRunnerFactory } from './chunk-
|
|
9
|
-
import { signerFor } from './chunk-
|
|
10
|
-
import { pidFilePath } from './chunk-
|
|
7
|
+
import { isSignatureRefusal, postJson } from './chunk-IL3IZXH4.js';
|
|
8
|
+
import { keyRunnerFactory } from './chunk-WSHHRIGI.js';
|
|
9
|
+
import { signerFor } from './chunk-FGVKSK2P.js';
|
|
10
|
+
import { pidFilePath } from './chunk-TMUHUTA2.js';
|
|
11
11
|
import { readFileSync } from 'fs';
|
|
12
12
|
|
|
13
13
|
createRequire(import.meta.url);
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
3
|
+
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-INTR7TML.js';
|
|
4
|
+
import { parseSize } from './chunk-GBP3QSDO.js';
|
|
5
|
+
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-ZDK4XRBT.js';
|
|
6
6
|
import { builderDiskPinned, agentIdOfCommand, defaultCommandFor, headlessAgentIds } from './chunk-EEPVNSQ7.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { existsSync, statSync, accessSync, constants, readFileSync } from 'fs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-TMUHUTA2.js';
|
|
4
4
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtinKind, keepsHostBuilder } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
3
|
+
import { builtinKind, keepsHostBuilder } from './chunk-WSHHRIGI.js';
|
|
4
|
+
import { parseSize } from './chunk-GBP3QSDO.js';
|
|
5
|
+
import { runnerDir } from './chunk-TMUHUTA2.js';
|
|
6
6
|
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-6LKTKDMY.js';
|
|
7
7
|
import { credentialNames, credentialAgent, runnerAgents, credentialForms } from './chunk-EEPVNSQ7.js';
|
|
8
8
|
import { defaultAgents } from './chunk-HQYVI5T3.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { summarizeChecks, summaryText, renderDoctorText } from './chunk-
|
|
3
|
+
import { summarizeChecks, summaryText, renderDoctorText } from './chunk-PQWTPA6Z.js';
|
|
4
4
|
import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-23YVVYQC.js';
|
|
5
|
-
import { runConnect, hasUncommittedPolicy, commitCommandsFor } from './chunk-
|
|
5
|
+
import { runConnect, hasUncommittedPolicy, commitCommandsFor } from './chunk-BUSPSV2F.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
8
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-Q7Z6ELTL.js';
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { sanitizeTerminal } from './chunk-QW6TKDBL.js';
|
|
4
4
|
import { machineSkillsState, staleAgentSkills } from './chunk-IL7GVNVQ.js';
|
|
5
5
|
import { isAgentsMdLayout } from './chunk-ZH6AN3UH.js';
|
|
6
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
6
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-SO7JMTVX.js';
|
|
7
7
|
import { versionAtLeast } from './chunk-DJK3IK6K.js';
|
|
8
8
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -126,7 +126,7 @@ function createSandboxClient(opts) {
|
|
|
126
126
|
async create(input) {
|
|
127
127
|
for (let attempt = 1; ; attempt++) {
|
|
128
128
|
try {
|
|
129
|
-
const { workItem: _workItem, factory: _factory, machine: _machine, resume: _resume, fromState: _fromState, ...wanted } = input;
|
|
129
|
+
const { workItem: _workItem, run: _run, factory: _factory, machine: _machine, resume: _resume, fromState: _fromState, ...wanted } = input;
|
|
130
130
|
const response = await control("/api/sandboxes/ephemeral", { method: "POST", body: JSON.stringify(wanted) });
|
|
131
131
|
return sandboxOf(await response.json());
|
|
132
132
|
} catch (err) {
|