@outerlayer/cli 0.33.0-next.20261022182214 → 0.33.0-next.20261022194605
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-4WKFXVOP.js → agent-setup-32F2JJIL.js} +6 -6
- package/dist/{bridge-DMFMBDRG.js → bridge-BCG2EB7F.js} +2 -2
- package/dist/{build-RBLDHQTY.js → build-GKCVFHF4.js} +5 -5
- package/dist/{build-disk-4EEKP23Z.js → build-disk-6QAXMA2J.js} +6 -6
- package/dist/build-info.json +1 -1
- package/dist/{builder-V3KALVKL.js → builder-DPNHJXG3.js} +5 -5
- package/dist/{check-LDDMISY6.js → check-KD5PLAVL.js} +36 -36
- package/dist/{chunk-RLGSBR56.js → chunk-2QT4JUW3.js} +2 -2
- package/dist/{chunk-5CZV4FZ5.js → chunk-43PV5KDB.js} +4 -4
- package/dist/{chunk-VHRKGCBY.js → chunk-4XQ6F3HD.js} +1 -1
- package/dist/{chunk-ZQ7VRXYM.js → chunk-5BNWAIHN.js} +1 -1
- package/dist/{chunk-W4UFGYKQ.js → chunk-6C2YWM6N.js} +1 -1
- package/dist/{chunk-LOYLFW4I.js → chunk-6IKSUAIA.js} +1 -1
- package/dist/{chunk-XCUXPSHL.js → chunk-6KLPC4U7.js} +2 -2
- package/dist/{chunk-XXVYHC6D.js → chunk-6NWS455T.js} +1 -1
- package/dist/{chunk-ZZAA73E5.js → chunk-6YHUMNUB.js} +3 -3
- package/dist/{chunk-J6LFFZOY.js → chunk-A33USDCE.js} +4 -4
- package/dist/{chunk-634F6J3Q.js → chunk-AA6LYZC4.js} +1 -1
- package/dist/{chunk-MBGS33SL.js → chunk-AGZNCIIJ.js} +1 -1
- package/dist/{chunk-D5ZGMXUL.js → chunk-BCCI32ME.js} +70 -4
- package/dist/{chunk-FSFAP7GA.js → chunk-BY36DVJV.js} +2 -2
- package/dist/{chunk-HDD3BKAE.js → chunk-CUBIZBMF.js} +3 -3
- package/dist/{chunk-ZFJAQS3A.js → chunk-DDS2ISML.js} +1 -1
- package/dist/{chunk-EBX2DU2M.js → chunk-DETKDTNL.js} +2 -2
- package/dist/{chunk-4AHKR3K5.js → chunk-ESEUG62R.js} +9 -9
- package/dist/{chunk-YMGSMPPW.js → chunk-EYW2ZRDL.js} +2 -2
- package/dist/{chunk-ZQSCE7M4.js → chunk-FAZDYI2D.js} +2 -2
- package/dist/{chunk-F5HZT672.js → chunk-FMH6LSUE.js} +3 -3
- package/dist/{chunk-DZGLRVS3.js → chunk-GN2R5Z7G.js} +3 -3
- package/dist/{chunk-Y53T3QZM.js → chunk-GWDS42JC.js} +1 -1
- package/dist/{chunk-IQFX5GQH.js → chunk-IYH4R4EZ.js} +124 -20
- package/dist/{chunk-5KO3TN2F.js → chunk-JEKENLLA.js} +1 -1
- package/dist/{chunk-33SMNWZX.js → chunk-JMZZLICN.js} +5 -5
- package/dist/{chunk-JUVUVXQZ.js → chunk-JR4TZLG6.js} +2 -2
- package/dist/{chunk-MWAA3A5T.js → chunk-KLXWS5Z7.js} +4 -4
- package/dist/{chunk-O5F376JJ.js → chunk-LWTBE5J6.js} +1 -1
- package/dist/{chunk-O7MSQBTH.js → chunk-OWDSO3PE.js} +1 -1
- package/dist/{chunk-3BGCXC3O.js → chunk-P5FC7VUO.js} +2 -2
- package/dist/{chunk-TTACRX4N.js → chunk-QL3LPZ67.js} +1 -1
- package/dist/{chunk-JKPJQNJF.js → chunk-RAHE2AYU.js} +5 -5
- package/dist/{chunk-MCIPCQP3.js → chunk-RXUZD7DC.js} +24 -20
- package/dist/{chunk-PWB7EK4Z.js → chunk-SK4TWCN3.js} +1 -1
- package/dist/{chunk-JDKLORO3.js → chunk-SVXFSQRD.js} +19 -12
- package/dist/{chunk-KQFWTTG7.js → chunk-TDVG6MCO.js} +5 -5
- package/dist/{chunk-KFA762LZ.js → chunk-TGHBOXKJ.js} +2 -2
- package/dist/{chunk-QPAPHQZ7.js → chunk-UOFBHIOZ.js} +1 -1
- package/dist/{chunk-PAFSFC6Q.js → chunk-V3MMJT4T.js} +9 -9
- package/dist/{chunk-COLOLDY3.js → chunk-W5DOK7BL.js} +3 -3
- package/dist/{chunk-ZANK3WWF.js → chunk-WB7LPDXR.js} +1 -1
- package/dist/{chunk-FLFK42YF.js → chunk-WPGBDY73.js} +1 -1
- package/dist/{chunk-CMNAAKFD.js → chunk-ZQOSIMKU.js} +1 -1
- package/dist/{chunk-A6MLCH76.js → chunk-ZRRUWNJS.js} +3 -3
- package/dist/{claude-launcher-SNMNPDP4.js → claude-launcher-B4L7ELIF.js} +1 -1
- package/dist/{cli-QUV5HTDW.js → cli-3ZPYMRUZ.js} +100 -100
- package/dist/{command-LEE7TFQE.js → command-YLXBWLAR.js} +23 -23
- package/dist/{config-WAIYUZUG.js → config-DUY2PT7K.js} +2 -2
- package/dist/{connect-cmd-YNPOL2Y5.js → connect-cmd-ADRPR6ES.js} +5 -5
- package/dist/{container-start-SL63GFLG.js → container-start-G363VW47.js} +23 -23
- package/dist/{control-plane-launch-O3TXH3LI.js → control-plane-launch-PSFYCKYH.js} +5 -5
- package/dist/{docker-WVTQTRSC.js → docker-GGRJHHBP.js} +5 -5
- package/dist/{doctor-KT4HGALK.js → doctor-N36BHNH3.js} +26 -26
- package/dist/{emit-artifact-cmd-PZW7TVHF.js → emit-artifact-cmd-DX6RNKGK.js} +10 -10
- package/dist/{emit-criteria-cmd-EE7BYO34.js → emit-criteria-cmd-D7OR356Y.js} +7 -7
- package/dist/{emit-demo-cmd-Q6W74DCY.js → emit-demo-cmd-KSIAJ25G.js} +11 -11
- package/dist/{emit-finding-cmd-JXFT233D.js → emit-finding-cmd-GEPRJ6KO.js} +7 -7
- package/dist/{emit-result-cmd-4K6HUK4B.js → emit-result-cmd-TSUOZSYJ.js} +9 -9
- package/dist/{emit-step-cmd-JEADH4VS.js → emit-step-cmd-CC6MUJ2S.js} +7 -7
- package/dist/{exec-client-ODRV5HSQ.js → exec-client-KLI262IX.js} +3 -3
- package/dist/{findings-cmd-MO4MCKIO.js → findings-cmd-7I72XX2H.js} +7 -7
- package/dist/{fleet-readiness-DA2UXFJW.js → fleet-readiness-EZAGL32M.js} +5 -5
- package/dist/{governing-source-74VYUJPC.js → governing-source-G2I3ZT6M.js} +9 -9
- package/dist/{guest-init-TGECSRKO.js → guest-init-ZJIE6MU3.js} +4 -4
- package/dist/{hook-fast-PXSDGAUP.js → hook-fast-6GE5LEJI.js} +1 -1
- package/dist/{pending-ZXVJPA24.js → host-key-REZADWAM.js} +3 -3
- package/dist/{image-tag-6U7UYPIT.js → image-tag-MORUQ4LF.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/{init-BMTDKZU6.js → init-COSYLOVV.js} +22 -22
- package/dist/{init-7P6JHB6Z.js → init-YMXM4D7K.js} +22 -22
- package/dist/{init-cmd-E7DMPT6E.js → init-cmd-SWFTXZC7.js} +10 -10
- package/dist/{init-update-S6QVSR72.js → init-update-DWZMXIBG.js} +8 -8
- package/dist/{install-4OPPUC72.js → install-NLVYISAV.js} +4 -4
- package/dist/{install-cmd-BGUN6XFJ.js → install-cmd-HFGINYEE.js} +5 -5
- package/dist/{logs-2XVSZODP.js → logs-QSKJ4G6M.js} +2 -2
- package/dist/{loop-7MFQISEV.js → loop-KNITSCYU.js} +36 -36
- package/dist/{machine-4QGWUII5.js → machine-3YU7HXUQ.js} +18 -18
- package/dist/{mcp-serve-cmd-GYLU23YJ.js → mcp-serve-cmd-DQSO6MOL.js} +4 -4
- package/dist/{paths-FE7TXSTA.js → paths-KHDFSBEI.js} +2 -2
- package/dist/{host-key-5AUIPHRG.js → pending-I5TY6SQH.js} +3 -3
- package/dist/{pidfile-ZWJLQIJV.js → pidfile-BSY63HIC.js} +3 -3
- package/dist/{record-JGQ3CCKH.js → record-7CNTGRLD.js} +3 -3
- package/dist/{runner-env-V37JMYNW.js → runner-env-26NLQI35.js} +5 -5
- package/dist/{runner-identity-X3UP5IQ4.js → runner-identity-WGH73DTV.js} +5 -5
- package/dist/{runner-key-3STHCRT5.js → runner-key-2QWPUKQM.js} +22 -22
- package/dist/{session-sender-I3CQB6YL.js → session-sender-CMDAHNLE.js} +10 -10
- package/dist/{spec-cmd-E6LI56MR.js → spec-cmd-WFS64ZCI.js} +8 -8
- package/dist/{status-WS2REEFU.js → status-X3RGH6MZ.js} +25 -25
- package/dist/{sync-cmd-ONY2NA4L.js → sync-cmd-XCGNHOGU.js} +9 -9
- package/dist/{watch-TH3E7HC3.js → watch-6O6LTIBM.js} +9 -9
- package/dist/{work-claim-cmd-UZYGUHAF.js → work-claim-cmd-ABYB5RGL.js} +10 -10
- package/dist/{work-cmd-IGYK3MVP.js → work-cmd-H7LLCT2W.js} +7 -7
- package/dist/{work-comment-cmd-D5QETAF5.js → work-comment-cmd-QW745J2A.js} +7 -7
- package/dist/{work-logs-cmd-I2LQK72I.js → work-logs-cmd-GMPGBFLO.js} +7 -7
- package/dist/{work-open-pr-cmd-FMJKE3M4.js → work-open-pr-cmd-75XO4DL2.js} +8 -8
- package/dist/{work-pr-cmd-5G3FJSPI.js → work-pr-cmd-KBNFVRB4.js} +7 -7
- package/dist/{work-stop-cmd-7J6NG6WO.js → work-stop-cmd-C65WG6NY.js} +7 -7
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { MIN_ENGINE_MAJOR } from './chunk-
|
|
4
|
-
import { runnerImageVersion } from './chunk-
|
|
5
|
-
import { firecrackerArch, MICROVM_ARCHES, guestAssetsPinned } from './chunk-
|
|
3
|
+
import { MIN_ENGINE_MAJOR } from './chunk-SVXFSQRD.js';
|
|
4
|
+
import { runnerImageVersion } from './chunk-SK4TWCN3.js';
|
|
5
|
+
import { firecrackerArch, MICROVM_ARCHES, guestAssetsPinned } from './chunk-TGHBOXKJ.js';
|
|
6
6
|
import { spawnSync } from 'child_process';
|
|
7
7
|
import { existsSync, accessSync, constants, statSync, readFileSync } from 'fs';
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launcherPath, writeLauncher, LauncherWriteError, pathNotes } from './chunk-
|
|
4
|
-
import { currentVersion, currentLink, isInLayout, packageRootIn, versionDir, switchCurrent, execStartLine } from './chunk-
|
|
3
|
+
import { launcherPath, writeLauncher, LauncherWriteError, pathNotes } from './chunk-GWDS42JC.js';
|
|
4
|
+
import { currentVersion, currentLink, isInLayout, packageRootIn, versionDir, switchCurrent, execStartLine } from './chunk-OWDSO3PE.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { RUNNER_DIR_MODE } from './chunk-
|
|
6
|
+
import { RUNNER_DIR_MODE } from './chunk-AGZNCIIJ.js';
|
|
7
7
|
import { realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync } from 'fs';
|
|
8
8
|
import { dirname, sep, join } from 'path';
|
|
9
9
|
|
|
@@ -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-OWDSO3PE.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,28 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
4
|
-
import { DOCKERD_LOG, HELPER_PATH, HELPER_RECORD } from './chunk-
|
|
5
|
-
import { writeDockerClientConfig } from './chunk-
|
|
4
|
+
import { DOCKERD_LOG, HELPER_PATH, HELPER_RECORD } from './chunk-W5DOK7BL.js';
|
|
5
|
+
import { writeDockerClientConfig } from './chunk-QL3LPZ67.js';
|
|
6
6
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
7
|
-
import { senderPidfile } from './chunk-
|
|
8
|
-
import { installScrubContext } from './chunk-
|
|
9
|
-
import { ADDED_USER, shellQuote, GH_CONFIG_YML, ghHostsYml, AssetError, obtainImage, ensureRootfs, makeBuildsDirPrivate, gitRemoteFor, startServicesFor, createLeaseChannel, createBuildDisk, machineConfig, startJailedInto, resolveAgentUser, AgentUserError, runBuildSteps, LEASE_SECONDS, createContainerRuntime, stopContainer, cleanupContainer, outOfMemoryReason, containerSenderCommand, signalInContainer, syncInContainer, copyTranscriptsFromContainer, MANAGED_UNJAILED_REASON, senderAliveScript, helperFirecrackerNote, isLiteralAddress, stopJailed, deleteBuildDisk, startCheckContainer, lifecycleSteps, lifecycleFailureReason, writeEvalInput, DeliveryFailure, EVAL_INPUT_NAME, copyTranscripts, senderSignalScript, containerJudgeEnvironment, ROOT_DISK_ID_PREFIX, copyJudgeTree } from './chunk-
|
|
10
|
-
import { readBranchHead, fetchCommit, diffBetween } from './chunk-
|
|
7
|
+
import { senderPidfile } from './chunk-JR4TZLG6.js';
|
|
8
|
+
import { installScrubContext } from './chunk-A33USDCE.js';
|
|
9
|
+
import { ADDED_USER, shellQuote, GH_CONFIG_YML, ghHostsYml, AssetError, obtainImage, ensureRootfs, makeBuildsDirPrivate, gitRemoteFor, startServicesFor, createLeaseChannel, createBuildDisk, machineConfig, startJailedInto, resolveAgentUser, AgentUserError, runBuildSteps, LEASE_SECONDS, createContainerRuntime, stopContainer, cleanupContainer, outOfMemoryReason, containerSenderCommand, signalInContainer, syncInContainer, copyTranscriptsFromContainer, MANAGED_UNJAILED_REASON, senderAliveScript, helperFirecrackerNote, isLiteralAddress, stopJailed, deleteBuildDisk, startCheckContainer, lifecycleSteps, lifecycleFailureReason, writeEvalInput, DeliveryFailure, EVAL_INPUT_NAME, copyTranscripts, senderSignalScript, containerJudgeEnvironment, ROOT_DISK_ID_PREFIX, copyJudgeTree } from './chunk-SVXFSQRD.js';
|
|
10
|
+
import { readBranchHead, fetchCommit, diffBetween } from './chunk-KLXWS5Z7.js';
|
|
11
11
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
12
|
-
import { waitForAgent, vmExecArgs } from './chunk-
|
|
13
|
-
import { socketPathProblem, vsockLinks, LEASE_LINK, linkVsockSockets } from './chunk-
|
|
14
|
-
import { describeCallFailure, resolveGoverningSource, refusalCode, removeStagedContext, stageGovernedContext, pinnedSourceOf, commandWithShim, logStamp, createRunnerLog, removeKeptContext, formatDuration, retrySend, formatClock, WORKFLOW_PERMISSION_REASON, keptContextTree } from './chunk-
|
|
15
|
-
import { HASH_ARGV, parseProgramHash, JUDGE_PROGRAM, writeJobFile, readJobFile, childEnvironment, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, JUDGE_MAX_TURNS, JUDGE_DIR, COMMAND_DIR, MAX_ITEMS_BYTES } from './chunk-
|
|
16
|
-
import { CLAUDE_CODE_VERSION, FIRECRACKER_VERSION } from './chunk-
|
|
17
|
-
import { imageBuildOf, isBuiltinContainer, isBuiltinProcess, isBuiltinVm, DEFAULT_CHECK_TIME_LIMIT_MINUTES } from './chunk-
|
|
12
|
+
import { waitForAgent, vmExecArgs } from './chunk-6NWS455T.js';
|
|
13
|
+
import { socketPathProblem, vsockLinks, LEASE_LINK, linkVsockSockets } from './chunk-LWTBE5J6.js';
|
|
14
|
+
import { describeCallFailure, resolveGoverningSource, refusalCode, removeStagedContext, stageGovernedContext, pinnedSourceOf, commandWithShim, logStamp, createRunnerLog, removeKeptContext, formatDuration, retrySend, formatClock, WORKFLOW_PERMISSION_REASON, keptContextTree } from './chunk-RAHE2AYU.js';
|
|
15
|
+
import { HASH_ARGV, parseProgramHash, JUDGE_PROGRAM, writeJobFile, readJobFile, childEnvironment, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, JUDGE_MAX_TURNS, JUDGE_DIR, COMMAND_DIR, MAX_ITEMS_BYTES } from './chunk-43PV5KDB.js';
|
|
16
|
+
import { CLAUDE_CODE_VERSION, FIRECRACKER_VERSION } from './chunk-TGHBOXKJ.js';
|
|
17
|
+
import { imageBuildOf, isBuiltinContainer, isBuiltinProcess, isBuiltinVm, DEFAULT_CHECK_TIME_LIMIT_MINUTES } from './chunk-5BNWAIHN.js';
|
|
18
18
|
import { parseSize } from './chunk-YJLHUKYS.js';
|
|
19
|
-
import { WorkCommandError, postJson, isSignatureRefusal, getJson } from './chunk-
|
|
19
|
+
import { WorkCommandError, postJson, isSignatureRefusal, getJson } from './chunk-TDVG6MCO.js';
|
|
20
20
|
import { planArtifactUpload } from './chunk-EWVYQLD3.js';
|
|
21
21
|
import { scrubText } from './chunk-5DNCFOXA.js';
|
|
22
22
|
import { readCloudConfig } from './chunk-PJDQPF5N.js';
|
|
23
|
-
import { signerFor } from './chunk-
|
|
24
|
-
import { RUNNER_FILE_MODE, runnerDir, buildDir, vsockPath, jobConsolePath } from './chunk-
|
|
25
|
-
import { JOB_MOUNT, claudeCredential, repositoriesOf, primaryOf, buildEnvironment, CHECKOUT_DIR, parseIsolation, proxyEnvironment, withProxyWarningHidden, containerLocalAddress, destinationEnvironment, CLAUDE_CREDENTIAL_VARIABLES, builtInEnvironment, withHooksPath, startBuildServices, BUILT_IN_NAMES, AGENT_CREDENTIAL_MISSING, sharedUserEnvironment, headerVariables, authorEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, currentClaudeCredential, removedClaudeCredentialValues, checkEnvironment, EVAL_INPUT_DIR } from './chunk-
|
|
23
|
+
import { signerFor } from './chunk-AA6LYZC4.js';
|
|
24
|
+
import { RUNNER_FILE_MODE, runnerDir, buildDir, vsockPath, jobConsolePath } from './chunk-AGZNCIIJ.js';
|
|
25
|
+
import { JOB_MOUNT, claudeCredential, repositoriesOf, primaryOf, buildEnvironment, CHECKOUT_DIR, parseIsolation, proxyEnvironment, withProxyWarningHidden, containerLocalAddress, destinationEnvironment, CLAUDE_CREDENTIAL_VARIABLES, builtInEnvironment, withHooksPath, startBuildServices, BUILT_IN_NAMES, AGENT_CREDENTIAL_MISSING, sharedUserEnvironment, headerVariables, authorEnvironment, withTunnelRecord, commitIdentityRecord, buildMavenSettingsXml, mavenSettingsXml, namesGlobalSettings, MAVEN_NO_PROXY_NOTE, mavenArgs, MAVEN_SPACE_NOTE, writeMavenSettings, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, MAVEN_SETTINGS_FILE, currentClaudeCredential, removedClaudeCredentialValues, checkEnvironment, EVAL_INPUT_DIR } from './chunk-BCCI32ME.js';
|
|
26
26
|
import { resolvePackRoot } from './chunk-G63KT5I5.js';
|
|
27
27
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
28
28
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
@@ -189,6 +189,7 @@ var DOCKER_LOG_LINES = 20;
|
|
|
189
189
|
var GUEST_GH_DIR = `${JOB_MOUNT}/gh`;
|
|
190
190
|
var GUEST_HOOKS_DIR = `${JOB_MOUNT}/git-hooks`;
|
|
191
191
|
var GUEST_CONTEXT_DIR = `${JOB_MOUNT}/context`;
|
|
192
|
+
var GUEST_MAVEN_DIR = `${JOB_MOUNT}/maven`;
|
|
192
193
|
function buildMemoryBytes(config) {
|
|
193
194
|
return parseSize(config.build?.memory ?? DEFAULT_MEMORY) ?? parseSize(DEFAULT_MEMORY);
|
|
194
195
|
}
|
|
@@ -221,6 +222,11 @@ async function writeGuestGhConfig(runtime, state, token) {
|
|
|
221
222
|
const result = await asRoot(runtime, state, ["/bin/sh", "-c", script], ghHostsYml(token));
|
|
222
223
|
if (result.status !== 0) throw new Error(`writing gh's configuration in the guest failed (exit ${result.status}): ${firstLine(result.stderr)}`);
|
|
223
224
|
}
|
|
225
|
+
async function writeGuestMavenSettings(runtime, state) {
|
|
226
|
+
const script = ["set -e", "umask 022", `mkdir -p ${GUEST_MAVEN_DIR}`, `cat > ${GUEST_MAVEN_DIR}/${MAVEN_SETTINGS_FILE}`].join("\n");
|
|
227
|
+
const result = await asRoot(runtime, state, ["/bin/sh", "-c", script], buildMavenSettingsXml());
|
|
228
|
+
if (result.status !== 0) throw new Error(`writing Maven's settings in the guest failed (exit ${result.status}): ${firstLine(result.stderr)}`);
|
|
229
|
+
}
|
|
224
230
|
async function unpackIntoGuest(runtime, state, dir, target, opts = {}) {
|
|
225
231
|
const script = opts.readOnly === true ? `set -e; rm -rf ${target}; mkdir -p ${target}; tar -x --no-same-owner -C ${target}; chmod -R a+rX,a-w ${target}` : `set -e; mkdir -p ${target}; tar -x --no-same-owner -C ${target}; chmod -R a+rX ${target}`;
|
|
226
232
|
const result = await asRoot(runtime, state, ["/bin/sh", "-c", script], tarOf(dir));
|
|
@@ -563,7 +569,13 @@ async function provisionMicroVm(input) {
|
|
|
563
569
|
const failure = await waitForDocker(runtime, state, agentUser, input.now ?? (() => /* @__PURE__ */ new Date()));
|
|
564
570
|
if (failure !== void 0) return bail(failure);
|
|
565
571
|
}
|
|
572
|
+
try {
|
|
573
|
+
await writeGuestMavenSettings(runtime, state);
|
|
574
|
+
} catch (err) {
|
|
575
|
+
return bail(`the build's Maven settings could not be delivered: ${describeCallFailure(err)}`);
|
|
576
|
+
}
|
|
566
577
|
const execEnv = buildEnvironment({ ...envInput, imageEnv: state.imageEnv });
|
|
578
|
+
for (const notice of execEnv.notices) log.line(`${tag} ${notice}`);
|
|
567
579
|
const request = (argv, workdir) => ({ argv, user: agentUser, cwd: workdir, env: execEnvironment(state.imageEnv, execEnv) });
|
|
568
580
|
const steps = await runBuildSteps({
|
|
569
581
|
repository,
|
|
@@ -1286,14 +1298,106 @@ function proxyUrlFor(build) {
|
|
|
1286
1298
|
if (build.broker === void 0) return `http://127.0.0.1:${RELAY_PORT}`;
|
|
1287
1299
|
return `http://${build.broker}`;
|
|
1288
1300
|
}
|
|
1289
|
-
function
|
|
1301
|
+
function withMavenArgs(env, settingsFile, note) {
|
|
1302
|
+
const team = env.MAVEN_ARGS;
|
|
1303
|
+
if (team !== void 0 && namesGlobalSettings(team)) {
|
|
1304
|
+
note?.(MAVEN_NO_PROXY_NOTE);
|
|
1305
|
+
return;
|
|
1306
|
+
}
|
|
1307
|
+
if (settingsFile !== void 0) env.MAVEN_ARGS = mavenArgs(settingsFile, team).value;
|
|
1308
|
+
}
|
|
1309
|
+
function hostMavenSettings(env, buildDir2, note) {
|
|
1310
|
+
if (/\s/.test(buildDir2)) {
|
|
1311
|
+
note?.(MAVEN_SPACE_NOTE);
|
|
1312
|
+
return void 0;
|
|
1313
|
+
}
|
|
1314
|
+
if (!existsSync(buildDir2)) return void 0;
|
|
1315
|
+
try {
|
|
1316
|
+
return writeMavenSettings(buildDir2, env.HTTPS_PROXY, env.NO_PROXY);
|
|
1317
|
+
} catch (err) {
|
|
1318
|
+
note?.(`the build's Maven settings could not be written, so its Maven gets no proxy from the runner: ${describeCallFailure(err)}`);
|
|
1319
|
+
return void 0;
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
function execProxyEnvironment(build) {
|
|
1323
|
+
const brokerHost = build.broker === void 0 ? void 0 : build.broker.slice(0, build.broker.lastIndexOf(":")).replace(/^\[|\]$/g, "");
|
|
1324
|
+
return proxyEnvironment(proxyUrlFor(build), brokerHost);
|
|
1325
|
+
}
|
|
1326
|
+
var WRITE_MAVEN_SETTINGS = 'd=$(git rev-parse --absolute-git-dir) || exit 1; d="$d/outerlayer/maven"; mkdir -p "$d" && printf "%s" "$1" > "$d/settings.xml" && printf "%s\\n" "$d/settings.xml"';
|
|
1327
|
+
var MAVEN_WRITE_TIMEOUT_MS = 1e4;
|
|
1328
|
+
function runWithSpawn(spawnFn = spawn) {
|
|
1329
|
+
return (file, args, env, timeoutMs) => new Promise((resolve) => {
|
|
1330
|
+
let stdout = "";
|
|
1331
|
+
let stderr = "";
|
|
1332
|
+
let timer;
|
|
1333
|
+
let settled = false;
|
|
1334
|
+
const finish = (result) => {
|
|
1335
|
+
if (settled) return;
|
|
1336
|
+
settled = true;
|
|
1337
|
+
if (timer !== void 0) clearTimeout(timer);
|
|
1338
|
+
resolve({ status: null, signal: null, stdout, stderr, ...result });
|
|
1339
|
+
};
|
|
1340
|
+
let child;
|
|
1341
|
+
try {
|
|
1342
|
+
child = spawnFn(file, args, { env, stdio: ["ignore", "pipe", "pipe"] });
|
|
1343
|
+
} catch (err) {
|
|
1344
|
+
finish({ error: err instanceof Error ? err : new Error(String(err)) });
|
|
1345
|
+
return;
|
|
1346
|
+
}
|
|
1347
|
+
timer = setTimeout(() => {
|
|
1348
|
+
child.kill("SIGKILL");
|
|
1349
|
+
finish({ error: new Error(`it did not finish in ${timeoutMs / 1e3}s`) });
|
|
1350
|
+
}, timeoutMs);
|
|
1351
|
+
child.stdout?.on("data", (chunk) => {
|
|
1352
|
+
stdout += String(chunk);
|
|
1353
|
+
});
|
|
1354
|
+
child.stderr?.on("data", (chunk) => {
|
|
1355
|
+
stderr += String(chunk);
|
|
1356
|
+
});
|
|
1357
|
+
child.on("error", (err) => finish({ error: err }));
|
|
1358
|
+
child.on("close", (status, signal) => finish({ status, signal }));
|
|
1359
|
+
});
|
|
1360
|
+
}
|
|
1361
|
+
async function deliverMavenSettings(build, workdir, base, run, timeoutMs = MAVEN_WRITE_TIMEOUT_MS) {
|
|
1362
|
+
if (build.exec === void 0) return { reason: "the build has no exec" };
|
|
1363
|
+
const env = { ...base, ...execProxyEnvironment(build) };
|
|
1364
|
+
const ran = await run(build.exec, execArgv(workdir, ["/bin/sh", "-c", WRITE_MAVEN_SETTINGS, "sh", mavenSettingsXml(env.HTTPS_PROXY, env.NO_PROXY)]), env, timeoutMs);
|
|
1365
|
+
if (ran.error !== void 0) return { reason: describeCallFailure(ran.error) };
|
|
1366
|
+
const said = ran.stderr.trim().split("\n")[0];
|
|
1367
|
+
if (ran.status !== 0) return { reason: `the write exited ${ran.status ?? ran.signal}${said === "" ? "" : `: ${said}`}` };
|
|
1368
|
+
const lines = ran.stdout.trim().split("\n");
|
|
1369
|
+
const path = lines[lines.length - 1].trim();
|
|
1370
|
+
if (!isAbsolute(path)) return { reason: "the write did not report an absolute path" };
|
|
1371
|
+
if (/\s/.test(path)) return { reason: MAVEN_SPACE_REASON };
|
|
1372
|
+
return { path };
|
|
1373
|
+
}
|
|
1374
|
+
var MAVEN_SPACE_REASON = "the settings file's path has whitespace in it, which Maven cannot read from MAVEN_ARGS";
|
|
1375
|
+
async function deliverExecMaven(build, workdir, base, run, note) {
|
|
1376
|
+
if (build?.exec === void 0) return;
|
|
1377
|
+
const delivered = await deliverMavenSettings(build, workdir, base, run);
|
|
1378
|
+
if ("path" in delivered) build.mavenSettings = delivered.path;
|
|
1379
|
+
else note(`the build's Maven gets no proxy from the runner: ${delivered.reason}`);
|
|
1380
|
+
}
|
|
1381
|
+
function onceNote(write) {
|
|
1382
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1383
|
+
return (line) => {
|
|
1384
|
+
if (seen.has(line)) return;
|
|
1385
|
+
seen.add(line);
|
|
1386
|
+
write(line);
|
|
1387
|
+
};
|
|
1388
|
+
}
|
|
1389
|
+
function attemptNote(log, tag) {
|
|
1390
|
+
return onceNote((line) => log.line(`${tag} ${line}`));
|
|
1391
|
+
}
|
|
1392
|
+
function hostCommandEnvironment(base, build, config, hooksPath, note) {
|
|
1290
1393
|
let env = { ...base };
|
|
1291
1394
|
if (build.exec !== void 0) {
|
|
1292
|
-
|
|
1293
|
-
|
|
1395
|
+
Object.assign(env, execProxyEnvironment(build));
|
|
1396
|
+
withMavenArgs(env, build.mavenSettings, note);
|
|
1294
1397
|
} else if (build.proxyPort !== void 0) {
|
|
1295
1398
|
Object.assign(env, proxyEnvironment(`http://127.0.0.1:${build.proxyPort}`));
|
|
1296
1399
|
env.NODE_OPTIONS = withProxyWarningHidden(env.NODE_OPTIONS);
|
|
1400
|
+
withMavenArgs(env, hostMavenSettings(env, build.buildDir, note), note);
|
|
1297
1401
|
}
|
|
1298
1402
|
const ports = build.destinations ?? [];
|
|
1299
1403
|
const portOf = (name) => ports.find((entry) => entry.name === name)?.port;
|
|
@@ -3658,4 +3762,4 @@ async function stopSender(input) {
|
|
|
3658
3762
|
}
|
|
3659
3763
|
}
|
|
3660
3764
|
|
|
3661
|
-
export { ALREADY_RELEASED, AttemptLogBook, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, MICROVM_COMMAND_DIR, RENEW_INTERVAL_SECONDS, appendCommandLog, commandLogOffset, deliverCommitHooks, describeHookEnd, execArgv, execCommandLine, finishJob, foldSample, hookLimitsFor, hostCommandEnvironment, hostEnvironment, inTeardown, isContainerTracked, isGroupAlive, isIdle, isMicroVmTracked, isReadable, isTimedOut, isTracked, isUnfinished, jobEnv, judgeProbe, listAdoptableJobs, listTrackedJobs, listUnreadableJobs, listenOnBroker, microVmCommandLine, microVmOomKills, needsRenew, outcomeFromExitCode, probeCommand, probeMicroVmCommand, provisionEnvironment, provisionMicroVm, provisionProcess, readCpuUsec, readProvisionOut, recoverLostJobs, releaseLease, renewLease, resolveHostBuild, restartSender, retryFailedReleases, runCommand, runHook, sampleGuest, serveLease, setStage, startHostServices, startMicroVmCommand, startSender, stopOrphanedMicroVms, unfinishedJobs, vmAlive, workdirProblem, writeGuestGhConfig };
|
|
3765
|
+
export { ALREADY_RELEASED, AttemptLogBook, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, MICROVM_COMMAND_DIR, RENEW_INTERVAL_SECONDS, appendCommandLog, attemptNote, commandLogOffset, deliverCommitHooks, deliverExecMaven, describeHookEnd, execArgv, execCommandLine, finishJob, foldSample, hookLimitsFor, hostCommandEnvironment, hostEnvironment, inTeardown, isContainerTracked, isGroupAlive, isIdle, isMicroVmTracked, isReadable, isTimedOut, isTracked, isUnfinished, jobEnv, judgeProbe, listAdoptableJobs, listTrackedJobs, listUnreadableJobs, listenOnBroker, microVmCommandLine, microVmOomKills, needsRenew, outcomeFromExitCode, probeCommand, probeMicroVmCommand, provisionEnvironment, provisionMicroVm, provisionProcess, readCpuUsec, readProvisionOut, recoverLostJobs, releaseLease, renewLease, resolveHostBuild, restartSender, retryFailedReleases, runCommand, runHook, runWithSpawn, sampleGuest, serveLease, setStage, startHostServices, startMicroVmCommand, startSender, stopOrphanedMicroVms, unfinishedJobs, vmAlive, workdirProblem, writeGuestGhConfig };
|
|
@@ -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-AGZNCIIJ.js';
|
|
4
4
|
import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { hasStoredCredential, AGENT_COMMANDS, storeClaudeCredential, credentialFromStdin, isAgentName } from './chunk-
|
|
4
|
-
import { detectMachine, supportsContainerBuilds, reachDockerStep, describeMachineDocker, supportsMicroVmBuilds } from './chunk-
|
|
5
|
-
import { MIN_ENGINE_MAJOR } from './chunk-
|
|
6
|
-
import { runnerCredentialProblem } from './chunk-
|
|
7
|
-
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { hasStoredCredential, AGENT_COMMANDS, storeClaudeCredential, credentialFromStdin, isAgentName } from './chunk-CUBIZBMF.js';
|
|
4
|
+
import { detectMachine, supportsContainerBuilds, reachDockerStep, describeMachineDocker, supportsMicroVmBuilds } from './chunk-FMH6LSUE.js';
|
|
5
|
+
import { MIN_ENGINE_MAJOR } from './chunk-SVXFSQRD.js';
|
|
6
|
+
import { runnerCredentialProblem } from './chunk-5BNWAIHN.js';
|
|
7
|
+
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-AGZNCIIJ.js';
|
|
8
8
|
import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
9
9
|
import { dirname } from 'path';
|
|
10
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-A33USDCE.js';
|
|
4
4
|
import { CaptureDaemon } from './chunk-5DNCFOXA.js';
|
|
5
|
-
import { spoolDir } from './chunk-
|
|
5
|
+
import { spoolDir } from './chunk-WB7LPDXR.js';
|
|
6
6
|
import { parseWorkItemEnv } from './chunk-T2Q7ISPE.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
8
8
|
import { mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-
|
|
3
|
+
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-DDS2ISML.js';
|
|
4
4
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
5
5
|
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-3Z3MPR55.js';
|
|
6
|
-
import { GH_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, TINI_SHA256, TINI_VERSION, CLAUDE_CODE_VERSION, NODE_IMAGE, DEFAULT_BASE_IMAGE, MEDIA_PINS, PLAYWRIGHT_VERSION } from './chunk-
|
|
7
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, runnerDir, rootfsPathFor } from './chunk-
|
|
8
|
-
import { PROXY_WARNING_FLAG, withGitConfig, tokenHeader } from './chunk-
|
|
6
|
+
import { GH_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, TINI_SHA256, TINI_VERSION, CLAUDE_CODE_VERSION, NODE_IMAGE, DEFAULT_BASE_IMAGE, MEDIA_PINS, PLAYWRIGHT_VERSION } from './chunk-TGHBOXKJ.js';
|
|
7
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, runnerDir, rootfsPathFor } from './chunk-AGZNCIIJ.js';
|
|
8
|
+
import { PROXY_WARNING_FLAG, withGitConfig, tokenHeader } from './chunk-BCCI32ME.js';
|
|
9
9
|
import { RELAY_ID, RELAY_USER } from './chunk-MESOOLF4.js';
|
|
10
10
|
import { mkdirSync, rmSync, writeFileSync, existsSync, mkdtempSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
|
|
11
11
|
import { tmpdir } from 'os';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, GATEWAY_SOCKET, GATEWAY_PORT, CLAUDE_SOCKET, CLAUDE_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
3
|
+
import { RELAY_PORT, GATEWAY_SOCKET, GATEWAY_PORT, CLAUDE_SOCKET, CLAUDE_PORT, DESTINATION_BASE_PORT } from './chunk-BCCI32ME.js';
|
|
4
4
|
import { symlinkSync, unlinkSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -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-AGZNCIIJ.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,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { formatBytes, freeBytes } from './chunk-YYYRBYWG.js';
|
|
4
|
-
import { BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-
|
|
4
|
+
import { BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-43PV5KDB.js';
|
|
5
5
|
import { parseSize } from './chunk-YJLHUKYS.js';
|
|
6
|
-
import { buildsDir, rootfsDir, runnerDir } from './chunk-
|
|
6
|
+
import { buildsDir, rootfsDir, runnerDir } from './chunk-AGZNCIIJ.js';
|
|
7
7
|
import { spawnSync } from 'child_process';
|
|
8
8
|
import { existsSync, statSync, readdirSync } from 'fs';
|
|
9
9
|
import { join } from 'path';
|
|
@@ -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-BCCI32ME.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
4
|
-
import { defaultGitRunner, materializeContext, isStagingWriteFault, lookupGoverningSource } from './chunk-
|
|
5
|
-
import { signingFetchFor } from './chunk-
|
|
6
|
-
import { signerFor } from './chunk-
|
|
7
|
-
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-
|
|
3
|
+
import { WorkCommandError, postJson } from './chunk-TDVG6MCO.js';
|
|
4
|
+
import { defaultGitRunner, materializeContext, isStagingWriteFault, lookupGoverningSource } from './chunk-EYW2ZRDL.js';
|
|
5
|
+
import { signingFetchFor } from './chunk-WPGBDY73.js';
|
|
6
|
+
import { signerFor } from './chunk-AA6LYZC4.js';
|
|
7
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-AGZNCIIJ.js';
|
|
8
8
|
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-FGF52V4V.js';
|
|
9
9
|
import { SHIM_SCRIPT, GOVERNANCE_VARIABLE } from './chunk-HCVLP7XA.js';
|
|
10
10
|
import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { releaseLease, isUnfinished, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, hostCommandEnvironment, execArgv, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, serveLease, vmAlive, writeGuestGhConfig, ALREADY_RELEASED, inTeardown } from './chunk-
|
|
3
|
+
import { releaseLease, isUnfinished, attemptNote, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, execArgv, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, serveLease, vmAlive, writeGuestGhConfig, ALREADY_RELEASED, inTeardown } from './chunk-IYH4R4EZ.js';
|
|
4
4
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
5
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
5
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-UOFBHIOZ.js';
|
|
6
6
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
7
7
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
8
|
-
import { fitImageBuildMemory } from './chunk-
|
|
8
|
+
import { fitImageBuildMemory } from './chunk-6C2YWM6N.js';
|
|
9
9
|
import { RUNNER_PROTOCOL } from './chunk-YKYCE4HY.js';
|
|
10
|
-
import { writePendingUpdate } from './chunk-
|
|
11
|
-
import { currentSkillCommand, formerSkillProblem, realBlockedProbes, checkBlocked } from './chunk-
|
|
12
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, entryIn, versionDir, startedThroughCurrent, switchCurrent, isInLayout, cleanVersions, stagingDir } from './chunk-
|
|
10
|
+
import { writePendingUpdate } from './chunk-JEKENLLA.js';
|
|
11
|
+
import { currentSkillCommand, formerSkillProblem, realBlockedProbes, checkBlocked } from './chunk-V3MMJT4T.js';
|
|
12
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, entryIn, versionDir, startedThroughCurrent, switchCurrent, isInLayout, cleanVersions, stagingDir } from './chunk-OWDSO3PE.js';
|
|
13
13
|
import { RepoFilter } from './chunk-TBT347UY.js';
|
|
14
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, LEASE_SECONDS, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, lifecycleSteps, lifecycleFailureReason, prepareBranch, containerCommandExec, setUpRunnerCgroup, sweepImageBuilders, measureDisk, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, gitRemoteFor, startServicesFor, createLeaseChannel } from './chunk-
|
|
15
|
-
import { claimPidFile, writePidFile, readPidFile, releasePidFile } from './chunk-
|
|
14
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, LEASE_SECONDS, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, lifecycleSteps, lifecycleFailureReason, prepareBranch, containerCommandExec, setUpRunnerCgroup, sweepImageBuilders, measureDisk, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, gitRemoteFor, startServicesFor, createLeaseChannel } from './chunk-SVXFSQRD.js';
|
|
15
|
+
import { claimPidFile, writePidFile, readPidFile, releasePidFile } from './chunk-DDS2ISML.js';
|
|
16
16
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
17
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
18
|
-
import { tagToPull, pullInstruction, imageTag, writeUpdateStatus } from './chunk-
|
|
17
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-RAHE2AYU.js';
|
|
18
|
+
import { tagToPull, pullInstruction, imageTag, writeUpdateStatus } from './chunk-SK4TWCN3.js';
|
|
19
19
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
20
20
|
import { freeBytes, formatBytes } from './chunk-YYYRBYWG.js';
|
|
21
|
-
import { writeJobFile, ensureRunnerIdentity, readJobFile, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, BUILD_LABEL, RUNNER_LABEL, readJobFileChecked } from './chunk-
|
|
22
|
-
import { isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-
|
|
21
|
+
import { writeJobFile, ensureRunnerIdentity, readJobFile, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, BUILD_LABEL, RUNNER_LABEL, readJobFileChecked } from './chunk-43PV5KDB.js';
|
|
22
|
+
import { isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-5BNWAIHN.js';
|
|
23
23
|
import { exceedsDisk } from './chunk-YJLHUKYS.js';
|
|
24
|
-
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-
|
|
25
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
26
|
-
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, spoolDir, imagesDir, rootfsDir, builderCacheDiskPath } from './chunk-
|
|
27
|
-
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT, takeClaudeCredential, heldClaudeCredential, currentClaudeCredential } from './chunk-
|
|
24
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-TDVG6MCO.js';
|
|
25
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-AA6LYZC4.js';
|
|
26
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, spoolDir, imagesDir, rootfsDir, builderCacheDiskPath } from './chunk-AGZNCIIJ.js';
|
|
27
|
+
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT, takeClaudeCredential, heldClaudeCredential, currentClaudeCredential } from './chunk-BCCI32ME.js';
|
|
28
28
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
29
29
|
import { fdName } from './chunk-HACGUL52.js';
|
|
30
30
|
import { COMMAND_LOST_REASON, CONTAINER_STOPPED_REASON } from './chunk-MESOOLF4.js';
|
|
@@ -1837,7 +1837,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
1837
1837
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
1838
1838
|
);
|
|
1839
1839
|
async function tryClaimAndStart(state, item, queue) {
|
|
1840
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
1840
|
+
const { postJson: postJson2 } = await import('./work-cmd-H7LLCT2W.js');
|
|
1841
1841
|
const log = logOf(state);
|
|
1842
1842
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
1843
1843
|
const claim = await retrySend(
|
|
@@ -2018,6 +2018,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2018
2018
|
attemptLogsOf(state).note(item.number, claimLine);
|
|
2019
2019
|
const hookLimits = () => hookLimitsFor(state.config, startedAt.getTime(), state.deps.now);
|
|
2020
2020
|
const tag = `#${item.number}`;
|
|
2021
|
+
const noteOnce = attemptNote(log, tag);
|
|
2021
2022
|
const containerMode = isBuiltinContainer(state.config.hooks.provision);
|
|
2022
2023
|
const vmMode = isBuiltinVm(state.config.hooks.provision);
|
|
2023
2024
|
let tokens;
|
|
@@ -2280,8 +2281,11 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2280
2281
|
}
|
|
2281
2282
|
active.job.environment = hostEnvironment(named, cliVersion);
|
|
2282
2283
|
writeJobFile(jobFilePath, active.job);
|
|
2284
|
+
await deliverExecMaven(build?.state, provisioned.workdir, jobEnv(state.config, item.number, itemKey, dirPath, process.env, branch, identity?.author), runWithSpawn(state.deps.spawnFn), noteOnce);
|
|
2285
|
+
if (active.ending) return;
|
|
2286
|
+
writeJobFile(jobFilePath, active.job);
|
|
2283
2287
|
if (named.exec !== void 0 && named.recipe !== void 0) {
|
|
2284
|
-
const lifecycleEnv = hostCommandEnvironment(jobEnv(state.config, item.number, itemKey, dirPath, process.env, branch, identity?.author), build.state, state.config);
|
|
2288
|
+
const lifecycleEnv = hostCommandEnvironment(jobEnv(state.config, item.number, itemKey, dirPath, process.env, branch, identity?.author), build.state, state.config, void 0, noteOnce);
|
|
2285
2289
|
for (const step of lifecycleSteps(named.recipe.apply.lifecycle)) {
|
|
2286
2290
|
if (active.ending) return;
|
|
2287
2291
|
log.line(`${tag} lifecycle ${step.name} (${step.source})`);
|
|
@@ -2363,7 +2367,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2363
2367
|
}
|
|
2364
2368
|
} else {
|
|
2365
2369
|
const build = job.build;
|
|
2366
|
-
const commandEnv = hostCommandEnvironment(jobEnv(state.config, item.number, itemKey, dirPath, process.env, branch, identity?.author), build, state.config, identity?.hooksPath);
|
|
2370
|
+
const commandEnv = hostCommandEnvironment(jobEnv(state.config, item.number, itemKey, dirPath, process.env, branch, identity?.author), build, state.config, identity?.hooksPath, noteOnce);
|
|
2367
2371
|
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);
|
|
2368
2372
|
}
|
|
2369
2373
|
} catch (err) {
|
|
@@ -3033,7 +3037,7 @@ async function start(configPath, deps = { fetchImpl: fetch }) {
|
|
|
3033
3037
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3034
3038
|
const held = heldClaudeCredential();
|
|
3035
3039
|
const env = held === void 0 ? process.env : { ...process.env, [held.variable]: held.value };
|
|
3036
|
-
return (await import('./check-
|
|
3040
|
+
return (await import('./check-KD5PLAVL.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3037
3041
|
},
|
|
3038
3042
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3039
3043
|
log
|
|
@@ -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-AGZNCIIJ.js';
|
|
5
5
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
4
|
-
import { readDefaultBranchHead, cloneRepository, buildRepositoryImage, prepareImageBuild, KEY_PREFIX, FETCHED_DIR, toolsDockerfile, TAG_HOST, metadataFromLabels, writeRecord, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_VOICE_DIR } from './chunk-
|
|
4
|
+
import { readDefaultBranchHead, cloneRepository, buildRepositoryImage, prepareImageBuild, KEY_PREFIX, FETCHED_DIR, toolsDockerfile, TAG_HOST, metadataFromLabels, writeRecord, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_VOICE_DIR } from './chunk-KLXWS5Z7.js';
|
|
5
5
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
6
6
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
7
|
-
import { runExec, execCapture, waitForAgent } from './chunk-
|
|
8
|
-
import { GUEST_CID, linkVsockSockets } from './chunk-
|
|
9
|
-
import { describeCallFailure, keepStagedContext, controlPlaneTokenFailure, refusalCode, resolveGoverningSource, removeStagedContext, stageGovernedContext, pinnedSourceOf, commandWithShim, shimScript, WORKFLOW_PERMISSION_REASON } from './chunk-
|
|
10
|
-
import { runnerImageVersion } from './chunk-
|
|
7
|
+
import { runExec, execCapture, waitForAgent } from './chunk-6NWS455T.js';
|
|
8
|
+
import { GUEST_CID, linkVsockSockets } from './chunk-LWTBE5J6.js';
|
|
9
|
+
import { describeCallFailure, keepStagedContext, controlPlaneTokenFailure, refusalCode, resolveGoverningSource, removeStagedContext, stageGovernedContext, pinnedSourceOf, commandWithShim, shimScript, WORKFLOW_PERMISSION_REASON } from './chunk-RAHE2AYU.js';
|
|
10
|
+
import { runnerImageVersion } from './chunk-SK4TWCN3.js';
|
|
11
11
|
import { formatBytes } from './chunk-YYYRBYWG.js';
|
|
12
|
-
import { createDockerHost, builderSpec, runnerLabelValue, RUNNER_LABEL, BUILD_LABEL, prepareRunArgs, containerRunArgs, HASH_ARGV, parseProgramHash, JUDGE_PROGRAM, containerExecArgs, childEnvironment, JUDGE_DIR, MAX_ITEMS_BYTES, JUDGE_ITEMS, MAX_REPORT_BYTES, JUDGE_REPORT, spawnRun } from './chunk-
|
|
12
|
+
import { createDockerHost, builderSpec, runnerLabelValue, RUNNER_LABEL, BUILD_LABEL, prepareRunArgs, containerRunArgs, HASH_ARGV, parseProgramHash, JUDGE_PROGRAM, containerExecArgs, childEnvironment, JUDGE_DIR, MAX_ITEMS_BYTES, JUDGE_ITEMS, MAX_REPORT_BYTES, JUDGE_REPORT, spawnRun } from './chunk-43PV5KDB.js';
|
|
13
13
|
import { RecipeError, DOCKER_FEATURE, writeSanitizedRecipe, classifyProperties } from './chunk-3Z3MPR55.js';
|
|
14
|
-
import { FIRECRACKER_VERSION, hostHelperPinned, firecrackerArch, MICROVM_ARCHES, CLAUDE_CODE_VERSION, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, builderDiskPinned, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE } from './chunk-
|
|
14
|
+
import { FIRECRACKER_VERSION, hostHelperPinned, firecrackerArch, MICROVM_ARCHES, CLAUDE_CODE_VERSION, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, builderDiskPinned, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE } from './chunk-TGHBOXKJ.js';
|
|
15
15
|
import { hostAllowed } from './chunk-UXYLWVTQ.js';
|
|
16
16
|
import { readDu } from './chunk-YJLHUKYS.js';
|
|
17
|
-
import { WorkCommandError } from './chunk-
|
|
17
|
+
import { WorkCommandError } from './chunk-TDVG6MCO.js';
|
|
18
18
|
import { setCustomScrubbers, setLocalIdentity, setRepoRoot, parseTranscript, scrubDeep, scrubText } from './chunk-5DNCFOXA.js';
|
|
19
|
-
import { rootfsPathFor, diskTemplatesDir, RUNNER_FILE_MODE, buildsDir, buildDir, vmAssetsDir, RUNNER_DIR_MODE, deliveryDir, ghConfigDir, runnerDirOfBuild, spoolDir, mirrorDir, SHIM_DIR, runnerDir, vsockPath, builderCacheDiskPath, builderConsolePath } from './chunk-
|
|
20
|
-
import { repositoriesOf, primaryOf, RELAY_PORT, repositoryPath, CHECKOUT_DIR, lifecycleWorkdir, claudeCredential, buildEnvironment, startBuildServices, checkEnvironment, AGENT_CREDENTIAL_MISSING, checkoutPath, JOB_MOUNT } from './chunk-
|
|
19
|
+
import { rootfsPathFor, diskTemplatesDir, RUNNER_FILE_MODE, buildsDir, buildDir, vmAssetsDir, RUNNER_DIR_MODE, deliveryDir, ghConfigDir, runnerDirOfBuild, spoolDir, mirrorDir, SHIM_DIR, runnerDir, vsockPath, builderCacheDiskPath, builderConsolePath } from './chunk-AGZNCIIJ.js';
|
|
20
|
+
import { repositoriesOf, primaryOf, RELAY_PORT, repositoryPath, CHECKOUT_DIR, lifecycleWorkdir, claudeCredential, buildEnvironment, writeBuildMavenSettings, startBuildServices, checkEnvironment, AGENT_CREDENTIAL_MISSING, checkoutPath, JOB_MOUNT } from './chunk-BCCI32ME.js';
|
|
21
21
|
import { sharedSkillNames, skillConflictMessage } from './chunk-FGF52V4V.js';
|
|
22
22
|
import { versionAtLeast, MINIMUM_CLAUDE_VERSION } from './chunk-HCVLP7XA.js';
|
|
23
23
|
import { orderSessions, extractFacts, sessionsToTimeline } from './chunk-LJG6EMLJ.js';
|
|
@@ -2288,6 +2288,7 @@ var RECEIVE_ARGV = ["/opt/outerlayer/bin/node", "/opt/outerlayer/cli/dist/index.
|
|
|
2288
2288
|
var REASON_LINE_MAX = 240;
|
|
2289
2289
|
var STEPS = {
|
|
2290
2290
|
gh: "the build's gh configuration",
|
|
2291
|
+
maven: "the build's Maven settings",
|
|
2291
2292
|
"git-hooks": "the commit hooks",
|
|
2292
2293
|
context: "the staged context",
|
|
2293
2294
|
"eval-input": "the checks' input"
|
|
@@ -3665,6 +3666,11 @@ async function provisionContainer(input) {
|
|
|
3665
3666
|
err instanceof WorkCommandError ? `the build's read token could not be had: ${refusalCode(err)}` : `the build's gh configuration could not be written: ${describeCallFailure(err)}`
|
|
3666
3667
|
);
|
|
3667
3668
|
}
|
|
3669
|
+
try {
|
|
3670
|
+
writeBuildMavenSettings(buildDir2);
|
|
3671
|
+
} catch (err) {
|
|
3672
|
+
return bail(`the build's Maven settings could not be written: ${describeCallFailure(err)}`);
|
|
3673
|
+
}
|
|
3668
3674
|
for (const entry of repositories) {
|
|
3669
3675
|
if (entry.repository === primary.repository) continue;
|
|
3670
3676
|
try {
|
|
@@ -3709,7 +3715,7 @@ async function provisionContainer(input) {
|
|
|
3709
3715
|
joinBuild(runtime, state, services, (line) => log.line(`${tag} ${line}`));
|
|
3710
3716
|
if (input.aborted()) return bail("", true);
|
|
3711
3717
|
if (!await waitForRelay(runtime, state)) return bail("the relay in the build's container did not start");
|
|
3712
|
-
const ghDelivered = await
|
|
3718
|
+
const ghDelivered = await deliverJobFiles(runtime, state, ["gh", "maven"], secrets);
|
|
3713
3719
|
if (!ghDelivered.ok) return bail(ghDelivered.reason);
|
|
3714
3720
|
keepGhConfigCurrent(tokens, buildDir2, (err) => log.error(`${tag} the read token could not be written for gh: ${describeCallFailure(err)}`), {
|
|
3715
3721
|
runtime,
|
|
@@ -3744,6 +3750,7 @@ async function provisionContainer(input) {
|
|
|
3744
3750
|
if (hashed !== void 0) state.judgeProgram = { path: JUDGE_PROGRAM, sha256: hashed };
|
|
3745
3751
|
input.save(state, environment);
|
|
3746
3752
|
const execEnv = buildEnvironment({ ...envInput, imageEnv: state.imageEnv });
|
|
3753
|
+
for (const notice of execEnv.notices) log.line(`${tag} ${notice}`);
|
|
3747
3754
|
const exec = (argv, workdir, opts) => host.exec({ container: name, user: agentUser, workdir, env: execEnv, argv }, opts?.quiet === true ? void 0 : { logPath });
|
|
3748
3755
|
const steps = await runBuildSteps({
|
|
3749
3756
|
repository,
|
|
@@ -3926,7 +3933,7 @@ async function ensureTunnel(runtime, state, jobDir, config, itemKey, branch, rep
|
|
|
3926
3933
|
}
|
|
3927
3934
|
async function redeliver(runtime, state, jobDir) {
|
|
3928
3935
|
if (!filesAreCopied(state)) return { ok: true };
|
|
3929
|
-
const parts = ["gh", "git-hooks", "context"];
|
|
3936
|
+
const parts = ["gh", "maven", "git-hooks", "context"];
|
|
3930
3937
|
return deliverJobFiles(runtime, state, parts, secretsOf(runtime, jobDir));
|
|
3931
3938
|
}
|
|
3932
3939
|
async function deliverContainerHooks(runtime, state, jobDir) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession, autoConnect } from './chunk-
|
|
4
|
-
import { workPageUrl } from './chunk-
|
|
3
|
+
import { detectActiveSession, autoConnect } from './chunk-2QT4JUW3.js';
|
|
4
|
+
import { workPageUrl } from './chunk-ZQOSIMKU.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-EWVYQLD3.js';
|
|
6
6
|
import { resolveRepoIdentity } from './chunk-5DNCFOXA.js';
|
|
7
7
|
import { C } from './chunk-ANPNT6PM.js';
|
|
8
|
-
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-
|
|
9
|
-
import { signRunnerRequest } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-WPGBDY73.js';
|
|
9
|
+
import { signRunnerRequest } from './chunk-AA6LYZC4.js';
|
|
10
10
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
@@ -441,7 +441,7 @@ async function runWorkLinkSession(opts) {
|
|
|
441
441
|
return await linkSession(opts);
|
|
442
442
|
} catch (err) {
|
|
443
443
|
if (opts.logFailures) {
|
|
444
|
-
const { logHookError } = await import('./hook-fast-
|
|
444
|
+
const { logHookError } = await import('./hook-fast-6GE5LEJI.js');
|
|
445
445
|
const reason = err instanceof Error ? err.message : String(err);
|
|
446
446
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
447
447
|
}
|
|
@@ -29,13 +29,13 @@ var FIRECRACKER_SHA256 = {
|
|
|
29
29
|
var FIRECRACKER_BINARY_SHA256 = {
|
|
30
30
|
x86_64: "99ad0f5cd0514a88aad0e9ae8cfdb3cc3b4ab9d190e1194602406c786b5de7a5"
|
|
31
31
|
};
|
|
32
|
-
var GUEST_ASSETS_VERSION = "
|
|
32
|
+
var GUEST_ASSETS_VERSION = "12";
|
|
33
33
|
var GUEST_ASSETS_BASE_URL = `https://github.com/outerlayerai/guest-assets/releases/download/guest-${GUEST_ASSETS_VERSION}`;
|
|
34
34
|
var GUEST_KERNEL_SHA256 = {
|
|
35
35
|
x86_64: "8552fad4bdea1d49f3e7d2aa500ce3f8918fcd2fc66779fd83235949688a39bb"
|
|
36
36
|
};
|
|
37
37
|
var GUEST_HELPER_SHA256 = {
|
|
38
|
-
x86_64: "
|
|
38
|
+
x86_64: "bf16e8d832d4ed6e3498fb8f59b521a1f9ce0431d05a1309a4a6cf89e354d2e5"
|
|
39
39
|
};
|
|
40
40
|
function guestAssetsPinned(arch) {
|
|
41
41
|
const zero = "0".repeat(64);
|
|
@@ -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-AGZNCIIJ.js';
|
|
4
4
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|