@outerlayer/cli 0.40.0-next.20261117022943 → 0.40.0-next.20261117031847
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-5UMGRTAY.js → agent-setup-E3NJKG6H.js} +7 -7
- package/dist/{agent-subcommand-JGANAEB4.js → agent-subcommand-SNGOSV4D.js} +1 -1
- package/dist/{bridge-YHCQBKZC.js → bridge-C5FNHUYF.js} +2 -2
- package/dist/{build-SSIBPHPA.js → build-YFKCYJR6.js} +7 -7
- package/dist/{build-disk-KI2JOKAK.js → build-disk-ZRWIYYVO.js} +5 -5
- package/dist/build-info.json +1 -1
- package/dist/{builder-I562HT2D.js → builder-334EUQCE.js} +4 -4
- package/dist/{caller-VTVQPOGC.js → caller-6PMFDU4O.js} +7 -7
- package/dist/{check-YDBHBTOS.js → check-LGB3BWZ7.js} +39 -42
- package/dist/{chunk-DMWGWD26.js → chunk-2F3RZT5L.js} +3 -3
- package/dist/{chunk-C6EPHJIV.js → chunk-2MSLNM5V.js} +1 -1
- package/dist/{chunk-DQV2XTBD.js → chunk-2VVSAKM3.js} +54 -172
- package/dist/{chunk-JE23PLDE.js → chunk-3IHZYNZW.js} +1 -1
- package/dist/{chunk-6367NG5G.js → chunk-3TQVQKQ2.js} +5 -5
- package/dist/{chunk-BB73O6OW.js → chunk-4WRECUUH.js} +3 -3
- package/dist/{chunk-UMFSHU72.js → chunk-5LDYQLE3.js} +2 -2
- package/dist/{chunk-XAOZFBXK.js → chunk-5SAJ23BY.js} +1 -1
- package/dist/{chunk-JSN2DMPB.js → chunk-62EOPMMA.js} +1 -1
- package/dist/{chunk-XDWJOYC4.js → chunk-6JRDP6O4.js} +2 -2
- package/dist/{chunk-DLYCHCKQ.js → chunk-6MF44FPF.js} +1 -1
- package/dist/{chunk-PWHKJ24U.js → chunk-A72OH6K3.js} +7 -7
- package/dist/{chunk-DUQIP32K.js → chunk-AAOM7S3Z.js} +2 -2
- package/dist/{chunk-P2I6YVJV.js → chunk-CGYKQEPN.js} +4 -4
- package/dist/{chunk-AL6CJD2X.js → chunk-CJCGE7TW.js} +6 -6
- package/dist/{chunk-YI2HDVUL.js → chunk-CVSREZEZ.js} +2 -2
- package/dist/{chunk-IOUBTUS2.js → chunk-DOJGTDZU.js} +5 -5
- package/dist/{chunk-3WMULGB4.js → chunk-DQQID2EX.js} +2 -2
- package/dist/{chunk-QI6YUQWR.js → chunk-DRF45IQZ.js} +1 -1
- package/dist/{chunk-D5JM2VPO.js → chunk-EO7KUUKZ.js} +2 -2
- package/dist/{chunk-UELSHBQH.js → chunk-ERFVB3TJ.js} +2 -2
- package/dist/{chunk-3YMOSZRN.js → chunk-F2I2GQMF.js} +1 -1
- package/dist/{chunk-7H5JQFWQ.js → chunk-F7EYCXY4.js} +2 -2
- package/dist/{chunk-732WJDYG.js → chunk-FPUFOQEH.js} +5 -5
- package/dist/{chunk-6DO34552.js → chunk-GZLNKW2J.js} +1 -1
- package/dist/{chunk-Q6MCI3BQ.js → chunk-IQTMXXKU.js} +5 -5
- package/dist/{chunk-IEDCYMPH.js → chunk-IWPU2TDY.js} +2 -2
- package/dist/{chunk-DG7525WL.js → chunk-J6WQ6POX.js} +1 -1
- package/dist/{chunk-77JLN6GC.js → chunk-JDAH6YHU.js} +2 -3
- package/dist/{chunk-2EJED3QQ.js → chunk-JGSIVQVE.js} +2 -2
- package/dist/{chunk-4FUTEM37.js → chunk-KDKMVWHJ.js} +1 -1
- package/dist/{chunk-PEN7Y4PB.js → chunk-M7RI6IMR.js} +3 -3
- package/dist/{chunk-MCJRTOAL.js → chunk-NLOUOUZV.js} +1 -1
- package/dist/{chunk-BCBZHDMW.js → chunk-NO3JPGJW.js} +1 -1
- package/dist/{chunk-TL5HRSMD.js → chunk-NWYQ7PKS.js} +18 -76
- package/dist/{chunk-NE5PE3Q7.js → chunk-OCXVMUXA.js} +3 -3
- package/dist/{chunk-UQWBHNTZ.js → chunk-OIAWDKSR.js} +2 -2
- package/dist/{chunk-PC2FA62W.js → chunk-OUVDFJ3T.js} +3 -3
- package/dist/{chunk-BBJC4R6E.js → chunk-OVF475U5.js} +1 -1
- package/dist/{chunk-JBGASRRE.js → chunk-PIJWOPSG.js} +3 -3
- package/dist/{chunk-VJCILU3C.js → chunk-QAZOUTEM.js} +1 -1
- package/dist/{chunk-UAOLY4EP.js → chunk-QIO2NIX2.js} +1 -1
- package/dist/{chunk-J4F4V3G2.js → chunk-QVQWIKDP.js} +1 -1
- package/dist/{chunk-YSHMGQRD.js → chunk-R4IC7BKJ.js} +3 -3
- package/dist/{chunk-FKC5D6CA.js → chunk-ROMZCAG7.js} +1 -1
- package/dist/{chunk-DSUD4K5N.js → chunk-T3NBGNP5.js} +41 -94
- package/dist/{chunk-UXAB2OEM.js → chunk-WNQMNFJG.js} +2 -2
- package/dist/{chunk-CFIYOLCT.js → chunk-WT74ZSRC.js} +3 -3
- package/dist/{chunk-TWUEZPWP.js → chunk-WYD6XWET.js} +2 -2
- package/dist/{chunk-SCI6U7CV.js → chunk-WZRXXOWB.js} +11 -11
- package/dist/{chunk-NB2BDENG.js → chunk-Z3IDEUCC.js} +3 -3
- package/dist/{chunk-45JV3EMA.js → chunk-ZTZFWQBG.js} +5 -7
- package/dist/{claude-launcher-TWKHBR6F.js → claude-launcher-3H5XSXVA.js} +1 -1
- package/dist/{cli-SSHQSIPV.js → cli-FRR5Q3IX.js} +136 -136
- package/dist/{command-W6BEIPAJ.js → command-Y5FG3FWC.js} +33 -33
- package/dist/{config-HYSU7MD3.js → config-V6VQOSHM.js} +6 -6
- package/dist/{connect-cmd-O4ATJTQV.js → connect-cmd-AU2IGAYG.js} +5 -5
- package/dist/{container-start-4KRTW3QU.js → container-start-Z6OCZPUC.js} +30 -30
- package/dist/{context-show-cmd-D3GXL65K.js → context-show-cmd-Z6YW2XPG.js} +6 -6
- package/dist/{control-plane-launch-KVROM6BY.js → control-plane-launch-CNGKWYLK.js} +5 -5
- package/dist/{demo-record-cmd-UMHWHDZ4.js → demo-record-cmd-VEMSRUVR.js} +2 -2
- package/dist/{demo-voice-cmd-GBI52Y73.js → demo-voice-cmd-ABNZ6H7V.js} +11 -11
- package/dist/{docker-B76MDGCW.js → docker-UHQ4LAJE.js} +4 -4
- package/dist/{doctor-QV3BJKRZ.js → doctor-B7XTBO53.js} +42 -47
- package/dist/{emit-artifact-cmd-X4AKVBS2.js → emit-artifact-cmd-WLBQOFGX.js} +10 -10
- package/dist/{emit-criteria-cmd-UKZBMIK6.js → emit-criteria-cmd-S533NEY4.js} +7 -7
- package/dist/{emit-demo-cmd-QC56Y6P2.js → emit-demo-cmd-K4JY5PDP.js} +11 -11
- package/dist/{emit-finding-cmd-DL2Y7BEV.js → emit-finding-cmd-C7RZGGVJ.js} +7 -7
- package/dist/{emit-result-cmd-VPWAJBN6.js → emit-result-cmd-5NLUDBXM.js} +9 -9
- package/dist/{emit-step-cmd-REP4IS3F.js → emit-step-cmd-Q7VIXGYQ.js} +7 -7
- package/dist/{exec-client-KBOKVUU5.js → exec-client-RR6F42IB.js} +3 -3
- package/dist/{chunk-6TF4QU7M.js → find-unit-WRHK3H5X.js} +18 -1
- package/dist/{findings-cmd-BXAXOQB6.js → findings-cmd-74MN2Q7K.js} +7 -7
- package/dist/{fleet-readiness-EDJDDAEB.js → fleet-readiness-R6B3PYU7.js} +5 -5
- package/dist/{governing-source-AG7KDIIG.js → governing-source-M2HYH7ZN.js} +9 -9
- package/dist/{guest-init-DUOJUQFY.js → guest-init-QEWU2H7W.js} +4 -4
- package/dist/{hook-fast-ZVZWP7OQ.js → hook-fast-GPW7D4MD.js} +1 -1
- package/dist/{host-checks-AS2C5HR2.js → host-checks-PKOVCAGU.js} +28 -28
- package/dist/{pending-Y62PXWTU.js → host-key-HICYSAZ5.js} +3 -3
- package/dist/{image-tag-BTK5342G.js → image-tag-LKOD5GRQ.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/{init-H2GOMKCC.js → init-DFC5GUE5.js} +28 -28
- package/dist/{init-OZ4JNNOI.js → init-UO4SOY57.js} +28 -28
- package/dist/{init-agent-GNX5OIZX.js → init-agent-JVMIDIXN.js} +28 -28
- package/dist/{init-cmd-CM7UKGRG.js → init-cmd-WTJ7KOQ5.js} +11 -11
- package/dist/{init-update-ZJSTM46T.js → init-update-BRUFAWCA.js} +8 -8
- package/dist/{install-cmd-U4PP4YQE.js → install-cmd-2H4QK5O7.js} +9 -9
- package/dist/{launch-agent-BIAPDAVB.js → launch-agent-HPWRSGXZ.js} +9 -9
- package/dist/{logs-L5GX5BWF.js → logs-WNZZNFA3.js} +2 -2
- package/dist/{loop-3F3PNYOH.js → loop-WO37TJ5C.js} +36 -36
- package/dist/{machine-CCB2PQIM.js → machine-ZXCUPCDS.js} +28 -28
- package/dist/{mcp-serve-cmd-3B3KWYHN.js → mcp-serve-cmd-4D4P6IA7.js} +4 -4
- package/dist/{paths-26SZBIOA.js → paths-I7LDWR3Q.js} +2 -2
- package/dist/{host-key-MNYYPKBU.js → pending-L65HTOAV.js} +3 -3
- package/dist/{pidfile-22HCQHLJ.js → pidfile-SNTRLZ2Z.js} +3 -3
- package/dist/{record-HFUJLNOV.js → record-QJPGOWYX.js} +3 -3
- package/dist/{run-cmd-G4LA2YZR.js → run-cmd-YY34QRDU.js} +7 -7
- package/dist/{runner-env-RQ3SKLKL.js → runner-env-ACRSRRBW.js} +8 -8
- package/dist/{runner-identity-V4IUTSCJ.js → runner-identity-2374JAQF.js} +4 -4
- package/dist/{runner-key-FQDBMYII.js → runner-key-JRZ5N4IM.js} +28 -28
- package/dist/{session-sender-AAQXJLNE.js → session-sender-CUM4SRT7.js} +10 -10
- package/dist/{setup-cmd-4CKPSEJD.js → setup-cmd-5ICCOGTJ.js} +6 -6
- package/dist/{setup-wiring-INA66DBJ.js → setup-wiring-CEGNPVS5.js} +32 -32
- package/dist/{spec-cmd-V2FPAZJ7.js → spec-cmd-6ACWBET6.js} +8 -8
- package/dist/{state-PSFO26DS.js → state-TUO74X72.js} +3 -3
- package/dist/{status-MC2SJQ57.js → status-H677WBLM.js} +28 -28
- package/dist/{sync-cmd-2TLRGEXR.js → sync-cmd-5UMBZRKI.js} +9 -9
- package/dist/{update-steps-JZE3OGKB.js → update-steps-XCDL66FA.js} +29 -29
- package/dist/{watch-GQAIYCFW.js → watch-34LOYMEQ.js} +9 -9
- package/dist/{work-claim-cmd-SI3UTDLB.js → work-claim-cmd-NRHTDJC3.js} +12 -12
- package/dist/{work-cmd-LA5ZBMBQ.js → work-cmd-NBYW3LBP.js} +7 -7
- package/dist/{work-comment-cmd-NP6USSKX.js → work-comment-cmd-J4CG33NA.js} +9 -9
- package/dist/{work-demo-cmd-KZDTXCYM.js → work-demo-cmd-APJDOTHV.js} +7 -7
- package/dist/{work-logs-cmd-3BX5MK2E.js → work-logs-cmd-FL7DOHUU.js} +7 -7
- package/dist/{work-mock-cmd-IT3IKALB.js → work-mock-cmd-4MAYOAQS.js} +7 -7
- package/dist/{work-needs-attention-cmd-BDIFC7I4.js → work-needs-attention-cmd-LG5MFGPW.js} +7 -7
- package/dist/{work-no-change-cmd-A65QOBQ2.js → work-no-change-cmd-QATDFQ46.js} +7 -7
- package/dist/{work-open-pr-cmd-CGSCDYHI.js → work-open-pr-cmd-FV43THW5.js} +8 -8
- package/dist/{work-pr-cmd-DZKJLYLF.js → work-pr-cmd-53VAE7HD.js} +7 -7
- package/dist/{work-proofs-cmd-OJXWHUMP.js → work-proofs-cmd-4SF7WZC3.js} +8 -8
- package/dist/{work-proofs-record-J6WOOW3R.js → work-proofs-record-IGKVQOLA.js} +14 -14
- package/dist/{work-stop-cmd-RJESQDZN.js → work-stop-cmd-V5SPVTY4.js} +7 -7
- package/package.json +1 -1
- package/dist/find-unit-5PUEPP5J.js +0 -24
|
@@ -4,34 +4,34 @@ import { RUNNER_PROTOCOL } from './chunk-HQPB4ZMS.js';
|
|
|
4
4
|
import { MAX_TEST_FILE_BYTES, itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems } from './chunk-MJGBRYDH.js';
|
|
5
5
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
6
6
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
7
|
-
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-
|
|
7
|
+
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-6JRDP6O4.js';
|
|
8
8
|
import { upgradedStarterText } from './chunk-YUR7GV5L.js';
|
|
9
|
-
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-
|
|
10
|
-
import { writeDockerClientConfig } from './chunk-
|
|
11
|
-
import { senderPidfile } from './chunk-
|
|
12
|
-
import { installScrubContext } from './chunk-
|
|
9
|
+
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-M7RI6IMR.js';
|
|
10
|
+
import { writeDockerClientConfig } from './chunk-62EOPMMA.js';
|
|
11
|
+
import { senderPidfile } from './chunk-JGSIVQVE.js';
|
|
12
|
+
import { installScrubContext } from './chunk-FPUFOQEH.js';
|
|
13
13
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
14
|
-
import { runnerImageVersion } from './chunk-
|
|
15
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-
|
|
14
|
+
import { runnerImageVersion } from './chunk-6MF44FPF.js';
|
|
15
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-WYD6XWET.js';
|
|
16
16
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
17
|
-
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, 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, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-3TQVQKQ2.js';
|
|
18
|
+
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-OVF475U5.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 { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-
|
|
23
|
-
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-
|
|
24
|
-
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-
|
|
25
|
-
import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-
|
|
26
|
-
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-
|
|
27
|
-
import { said, NETWORK_HELPER_MEMORY, firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, NETWORK_READY_FILE, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, JUDGE_REPORT, withAnswerProtocol, JUDGE_TREE, runnerLabelValue, parseSize, readJobFileChecked, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, identityRunArgs, SAVED_STATE_LABEL } from './chunk-
|
|
28
|
-
import { universalImagePending,
|
|
21
|
+
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-F2I2GQMF.js';
|
|
22
|
+
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-KDKMVWHJ.js';
|
|
23
|
+
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-CJCGE7TW.js';
|
|
24
|
+
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-DOJGTDZU.js';
|
|
25
|
+
import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-ZTZFWQBG.js';
|
|
26
|
+
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-5LDYQLE3.js';
|
|
27
|
+
import { said, NETWORK_HELPER_MEMORY, firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, NETWORK_READY_FILE, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, JUDGE_REPORT, withAnswerProtocol, JUDGE_TREE, runnerLabelValue, parseSize, readJobFileChecked, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, identityRunArgs, SAVED_STATE_LABEL } from './chunk-R4IC7BKJ.js';
|
|
28
|
+
import { universalImagePending, writeSanitizedRecipe, classifyProperties, RecipeError, DOCKER_FEATURE } from './chunk-ONDONSBT.js';
|
|
29
29
|
import { sanitizeTerminal, planArtifactUpload } from './chunk-DV44KCM6.js';
|
|
30
30
|
import { sharedSkillNames, skillConflictMessage } from './chunk-RO5YUUN2.js';
|
|
31
31
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
32
|
-
import { signerFor } from './chunk-
|
|
33
|
-
import { sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-
|
|
34
|
-
import { BUILD_HOME, dataPlaneOf, sandboxCallOf, SandboxError, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, checkoutPath, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, readBundleScript, applyTrust,
|
|
32
|
+
import { signerFor } from './chunk-NLOUOUZV.js';
|
|
33
|
+
import { sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-3IHZYNZW.js';
|
|
34
|
+
import { BUILD_HOME, dataPlaneOf, sandboxCallOf, SandboxError, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, checkoutPath, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, readBundleScript, applyTrust, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, retryAfterMsOf, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, providerMayAnswerLater, toolProxyEnvironment } from './chunk-JDAH6YHU.js';
|
|
35
35
|
import { agentCredential, managedAgentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, builtInNames, currentAgentCredential, removedAgentCredentialValues, realFdStorePort, 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, fdName, RELAY_ID, DOCKER_DESKTOP_REASON } from './chunk-QVTGSGQ5.js';
|
|
36
36
|
import { versionAtLeast } from './chunk-F3J4UKBF.js';
|
|
37
37
|
import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, defaultCommandLine, credentialAgent, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, credentialHandOffKey, strippedVariables, runnerAgents, judgeAgent, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, UNIVERSAL_IMAGE, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE, agentVersionOf } from './chunk-OF6XMZHO.js';
|
|
@@ -398,7 +398,7 @@ function managedClaudeKeyValuesFor(jobDir) {
|
|
|
398
398
|
}
|
|
399
399
|
function hasClaudeCredential(config, hostEnv, jobDir, agents, job) {
|
|
400
400
|
if (jobAgent(job, agents)?.adapter.credentials === void 0) return true;
|
|
401
|
-
return config.
|
|
401
|
+
return config.fleet === true ? managedClaudeKeyFor(jobDir) !== void 0 : agentCredential(hostEnv, {}, agents) !== void 0;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
404
|
// src/runner/managed-build-settings.ts
|
|
@@ -461,14 +461,6 @@ function dropManagedBuildSettings(jobDir) {
|
|
|
461
461
|
held2.delete(jobDir);
|
|
462
462
|
dropBuildAuthority(jobDir);
|
|
463
463
|
}
|
|
464
|
-
function ensureBuildAuthority(jobDir) {
|
|
465
|
-
if (jobDir !== void 0 && (held2.get(jobDir)?.proxied?.length ?? 0) > 0) buildAuthorityFor(jobDir);
|
|
466
|
-
}
|
|
467
|
-
function proxiedEnvironment(jobDir) {
|
|
468
|
-
const env = {};
|
|
469
|
-
for (const variable of held2.get(jobDir)?.proxied ?? []) env[variable.name] = STAND_IN;
|
|
470
|
-
return env;
|
|
471
|
-
}
|
|
472
464
|
function managedBuildSettingValuesFor(jobDir) {
|
|
473
465
|
const settings = held2.get(jobDir);
|
|
474
466
|
return [...new Set([...settings?.variables ?? [], ...settings?.proxied ?? []].map(({ value }) => value))];
|
|
@@ -476,7 +468,7 @@ function managedBuildSettingValuesFor(jobDir) {
|
|
|
476
468
|
function factoryVariablesOf(config, jobDir) {
|
|
477
469
|
const variables = held2.get(jobDir)?.variables;
|
|
478
470
|
if (variables !== void 0) return variables;
|
|
479
|
-
return config.
|
|
471
|
+
return config.fleet === true ? [] : void 0;
|
|
480
472
|
}
|
|
481
473
|
function managedMachineLimits(settings) {
|
|
482
474
|
const { vcpus, memoryGiB, diskGB } = settings.machine;
|
|
@@ -1767,7 +1759,7 @@ function createLeaseChannel(valueMs) {
|
|
|
1767
1759
|
|
|
1768
1760
|
// src/runner/run-job.ts
|
|
1769
1761
|
function runIsolation(config) {
|
|
1770
|
-
if (config.fleet === true ||
|
|
1762
|
+
if (config.fleet === true || !config.queues.includes("implement")) return void 0;
|
|
1771
1763
|
if (config.sandbox?.provider === "outerlayer") return void 0;
|
|
1772
1764
|
if (isBuiltinContainer(config.hooks.provision)) return "container";
|
|
1773
1765
|
if (isBuiltinVm(config.hooks.provision) || isBuiltinSandbox(config.hooks.provision)) return "vm";
|
|
@@ -4747,7 +4739,7 @@ async function cleanupSandbox(runtime, state, keepDisk) {
|
|
|
4747
4739
|
if (failures.length > 0) throw new Error(failures.join("; "));
|
|
4748
4740
|
return kept;
|
|
4749
4741
|
}
|
|
4750
|
-
var PROXIED_IN_SANDBOX_REASON = "the factory has a proxied variable, and a sandbox build cannot use one yet. Remove the proxied variable from the factory's build settings
|
|
4742
|
+
var PROXIED_IN_SANDBOX_REASON = "the factory has a proxied variable, and a sandbox build cannot use one yet. Remove the proxied variable from the factory's build settings";
|
|
4751
4743
|
function sandboxSizeFor(config, jobDir) {
|
|
4752
4744
|
const settings = managedBuildSettingsFor(jobDir);
|
|
4753
4745
|
if (settings === void 0 && config.sandbox?.provider === "outerlayer") return { ok: true, size: machineSizeOf("small") };
|
|
@@ -5877,7 +5869,6 @@ function makeBuildsDirPrivate(buildDir2) {
|
|
|
5877
5869
|
const stat = statSync(builds);
|
|
5878
5870
|
if (stat.uid === process.getuid?.() && (stat.mode & 18) !== 0) chmodSync(builds, 448);
|
|
5879
5871
|
}
|
|
5880
|
-
var MANAGED_UNJAILED_REASON = "the root helper does not answer, and a managed runner starts no build without the jailer. The build did not start; restore the helper with `outerlayer runner install --service --replace`";
|
|
5881
5872
|
var MAX_TREE_FILES = 2e4;
|
|
5882
5873
|
var MAX_TREE_FILE_BYTES = 1024 * 1024;
|
|
5883
5874
|
function copyJudgeTree(from, to, limits2 = { files: MAX_TREE_FILES, bytes: MAX_TREE_FILE_BYTES }) {
|
|
@@ -5902,7 +5893,6 @@ function copyJudgeTree(from, to, limits2 = { files: MAX_TREE_FILES, bytes: MAX_T
|
|
|
5902
5893
|
}
|
|
5903
5894
|
|
|
5904
5895
|
// src/runner/microvm/hooks.ts
|
|
5905
|
-
var MANAGED_NO_BUILDER_DISK_REASON = "this release of the CLI pins no builder root disk, and a managed runner builds its images in a builder microVM, never on the host. The build did not start; update the CLI";
|
|
5906
5896
|
var DEFAULT_MEMORY = "8g";
|
|
5907
5897
|
var DEFAULT_DISK = "40g";
|
|
5908
5898
|
var DEFAULT_CPUS = 4;
|
|
@@ -5920,9 +5910,7 @@ var GUEST_PATH2 = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
|
5920
5910
|
function buildMemoryBytes(config) {
|
|
5921
5911
|
return parseSize(config.build?.memory ?? DEFAULT_MEMORY) ?? parseSize(DEFAULT_MEMORY);
|
|
5922
5912
|
}
|
|
5923
|
-
function machineLimits(config
|
|
5924
|
-
const settings = managedBuildSettingsFor(jobDir);
|
|
5925
|
-
if (settings !== void 0) return managedMachineLimits(settings);
|
|
5913
|
+
function machineLimits(config) {
|
|
5926
5914
|
return {
|
|
5927
5915
|
cpus: config.build?.cpus ?? DEFAULT_CPUS,
|
|
5928
5916
|
memoryBytes: buildMemoryBytes(config),
|
|
@@ -5932,18 +5920,14 @@ function machineLimits(config, jobDir) {
|
|
|
5932
5920
|
function recordedLimits(limits2) {
|
|
5933
5921
|
return { memoryBytes: limits2.memoryBytes, diskBytes: limits2.diskBytes };
|
|
5934
5922
|
}
|
|
5935
|
-
function
|
|
5936
|
-
return managedBuildSettingsFor(jobDir) === void 0 ? config.build?.memory : `${limits2.memoryBytes / 1024 ** 3}g`;
|
|
5937
|
-
}
|
|
5938
|
-
function builderMachineFor(config, jobDir, assets, limits2) {
|
|
5923
|
+
function builderMachineFor(config, assets, limits2) {
|
|
5939
5924
|
return {
|
|
5940
5925
|
kernel: assets.kernel,
|
|
5941
5926
|
firecracker: assets.firecracker,
|
|
5942
5927
|
limits: { ...limits2, cacheDiskBytes: parseSize(config.build?.cacheDisk ?? DEFAULT_CACHE_DISK) ?? parseSize(DEFAULT_CACHE_DISK) },
|
|
5943
|
-
memory:
|
|
5944
|
-
allowHosts:
|
|
5928
|
+
memory: config.build?.memory,
|
|
5929
|
+
allowHosts: config.build?.allowHosts,
|
|
5945
5930
|
...optionalEgress(config),
|
|
5946
|
-
managed: config.managed === true,
|
|
5947
5931
|
timeLimitMinutes: config.timeLimitMinutes
|
|
5948
5932
|
};
|
|
5949
5933
|
}
|
|
@@ -6063,13 +6047,12 @@ function vmAlive(runtime, state) {
|
|
|
6063
6047
|
if (state.jailed !== void 0) return runtime.vm.helper.alive(state.jailed.unit);
|
|
6064
6048
|
return state.firecracker !== void 0 && runtime.vm.firecracker.alive(state.firecracker);
|
|
6065
6049
|
}
|
|
6066
|
-
async function helperFor(runtime, log
|
|
6050
|
+
async function helperFor(runtime, log) {
|
|
6067
6051
|
const probe = await runtime.vm.helper.probe();
|
|
6068
6052
|
if (probe.ok) {
|
|
6069
6053
|
if (probe.firecracker !== FIRECRACKER_VERSION) log(`${helperFirecrackerNote(probe.firecracker)}; run \`outerlayer runner install --service --replace\` to update it`);
|
|
6070
6054
|
return probe.client;
|
|
6071
6055
|
}
|
|
6072
|
-
if (managed) return void 0;
|
|
6073
6056
|
if (probe.reason === "unsupported") log(probe.detail);
|
|
6074
6057
|
else if (probe.unreachable === true) log(`${probe.detail}, so this build runs without the jailer`);
|
|
6075
6058
|
return void 0;
|
|
@@ -6123,7 +6106,6 @@ async function provisionMicroVm(input) {
|
|
|
6123
6106
|
}
|
|
6124
6107
|
async function provisionMicroVmOnce(input, allowRestore, itemDiskFailed) {
|
|
6125
6108
|
const { config, runtime, item, itemKey, jobDir, log, tokens } = input;
|
|
6126
|
-
const managed = config.managed === true;
|
|
6127
6109
|
const { vm } = runtime;
|
|
6128
6110
|
const tag = itemTag({ item: item.number, organizationId: input.organizationId, claimId: input.claimId });
|
|
6129
6111
|
const logPath = join(jobDir, "provision.log");
|
|
@@ -6159,11 +6141,10 @@ async function provisionMicroVmOnce(input, allowRestore, itemDiskFailed) {
|
|
|
6159
6141
|
});
|
|
6160
6142
|
if (unfetched !== void 0) return { ok: false, reason: unfetched.reason, ...unfetched.transient ? { transient: true } : {} };
|
|
6161
6143
|
}
|
|
6162
|
-
const limits2 = machineLimits(config
|
|
6163
|
-
const memoryText =
|
|
6144
|
+
const limits2 = machineLimits(config);
|
|
6145
|
+
const memoryText = config.build?.memory;
|
|
6164
6146
|
let buildsInBuilder = imageBuildOf(config) === "vm";
|
|
6165
6147
|
if (buildsInBuilder && !vm.builderDiskPinned()) {
|
|
6166
|
-
if (config.managed === true) return fail(MANAGED_NO_BUILDER_DISK_REASON);
|
|
6167
6148
|
log.line(`${tag} this release of the CLI pins no builder root disk, so the image builds on the host, as it does with runner.build.imageBuild set to host`);
|
|
6168
6149
|
buildsInBuilder = false;
|
|
6169
6150
|
}
|
|
@@ -6181,7 +6162,7 @@ async function provisionMicroVmOnce(input, allowRestore, itemDiskFailed) {
|
|
|
6181
6162
|
deadlineMs: input.deadlineMs,
|
|
6182
6163
|
now: input.now,
|
|
6183
6164
|
guestHelper: { path: assets.helper, sha256: assets.helperSha256 },
|
|
6184
|
-
...buildsInBuilder ? { inBuilder: builderMachineFor(config,
|
|
6165
|
+
...buildsInBuilder ? { inBuilder: builderMachineFor(config, assets, limits2) } : {},
|
|
6185
6166
|
...input.queue === "review" ? { universal: true } : {}
|
|
6186
6167
|
});
|
|
6187
6168
|
if (!obtained.ok) return obtained.aborted === true ? { ok: false, reason: obtained.reason, aborted: true } : fail(obtained.reason);
|
|
@@ -6217,7 +6198,6 @@ async function provisionMicroVmOnce(input, allowRestore, itemDiskFailed) {
|
|
|
6217
6198
|
...governingSource.kind === "governed" ? { governing: { repository: governingSource.repository, ref: governingSource.ref, commit: governingSource.sha } } : {},
|
|
6218
6199
|
...report.docker === true ? { docker: true } : {}
|
|
6219
6200
|
};
|
|
6220
|
-
ensureBuildAuthority(jobDir);
|
|
6221
6201
|
const envInput = {
|
|
6222
6202
|
config,
|
|
6223
6203
|
item: item.number,
|
|
@@ -6230,8 +6210,6 @@ async function provisionMicroVmOnce(input, allowRestore, itemDiskFailed) {
|
|
|
6230
6210
|
...input.job === void 0 ? {} : { job: input.job },
|
|
6231
6211
|
containerEnv: report.apply.containerEnv,
|
|
6232
6212
|
builtIns: true,
|
|
6233
|
-
factoryVariables: factoryVariablesOf(config, jobDir),
|
|
6234
|
-
proxiedEnvironment: proxiedEnvironment(jobDir),
|
|
6235
6213
|
trustEnvironment: trustEnvironment(jobDir)
|
|
6236
6214
|
};
|
|
6237
6215
|
const env = buildEnvironment(envInput);
|
|
@@ -6314,8 +6292,7 @@ async function provisionMicroVmOnce(input, allowRestore, itemDiskFailed) {
|
|
|
6314
6292
|
}
|
|
6315
6293
|
}
|
|
6316
6294
|
const configPath = join(buildDir2, "vm.json");
|
|
6317
|
-
const helper = await helperFor(runtime, (line2) => log.line(`${tag} ${line2}`)
|
|
6318
|
-
if (helper === void 0 && config.managed === true) return bail(MANAGED_UNJAILED_REASON);
|
|
6295
|
+
const helper = await helperFor(runtime, (line2) => log.line(`${tag} ${line2}`));
|
|
6319
6296
|
try {
|
|
6320
6297
|
if (helper === void 0) linkVsockSockets({ buildDir: buildDir2, vsockPath: state.vsockPath, links: served });
|
|
6321
6298
|
const restore = plan.restore?.record;
|
|
@@ -6414,8 +6391,6 @@ async function provisionMicroVmOnce(input, allowRestore, itemDiskFailed) {
|
|
|
6414
6391
|
return bail(`the build's read token for ${entry.repository} could not be had: ${refusalCode(err)}`);
|
|
6415
6392
|
}
|
|
6416
6393
|
}
|
|
6417
|
-
let ghHeld = managed;
|
|
6418
|
-
let heldToken;
|
|
6419
6394
|
const pushGhConfig = (token, onFailure) => {
|
|
6420
6395
|
pushes = pushes.then(async () => {
|
|
6421
6396
|
if (!vmAlive(runtime, state)) return;
|
|
@@ -6424,10 +6399,6 @@ async function provisionMicroVmOnce(input, allowRestore, itemDiskFailed) {
|
|
|
6424
6399
|
return pushes;
|
|
6425
6400
|
};
|
|
6426
6401
|
tokens.onRead((token) => {
|
|
6427
|
-
if (ghHeld) {
|
|
6428
|
-
heldToken = token;
|
|
6429
|
-
return;
|
|
6430
|
-
}
|
|
6431
6402
|
void pushGhConfig(token, reportWrite);
|
|
6432
6403
|
});
|
|
6433
6404
|
await pushes;
|
|
@@ -6435,17 +6406,6 @@ async function provisionMicroVmOnce(input, allowRestore, itemDiskFailed) {
|
|
|
6435
6406
|
if (firstWriteFailure !== void 0) return bail(`the build's gh configuration could not be written: ${describeCallFailure(firstWriteFailure)}`);
|
|
6436
6407
|
tokens.markUsed("read");
|
|
6437
6408
|
environment.credentials = tokens.used();
|
|
6438
|
-
const releaseGhConfig = async () => {
|
|
6439
|
-
ghHeld = false;
|
|
6440
|
-
if (heldToken === void 0) return { ok: true };
|
|
6441
|
-
let failure3;
|
|
6442
|
-
await pushGhConfig(heldToken, (err) => {
|
|
6443
|
-
failure3 = err;
|
|
6444
|
-
reportWrite(err);
|
|
6445
|
-
});
|
|
6446
|
-
heldToken = void 0;
|
|
6447
|
-
return failure3 === void 0 ? { ok: true } : { ok: false, reason: `the build's gh configuration could not be written: ${describeCallFailure(failure3)}` };
|
|
6448
|
-
};
|
|
6449
6409
|
const uidOf = async (user) => {
|
|
6450
6410
|
const probe = await asRoot(runtime, state, ["id", "-u", user]);
|
|
6451
6411
|
return uidFromProbe(probe);
|
|
@@ -6505,12 +6465,11 @@ async function provisionMicroVmOnce(input, allowRestore, itemDiskFailed) {
|
|
|
6505
6465
|
removeVolume: async () => void 0,
|
|
6506
6466
|
log: tagged
|
|
6507
6467
|
});
|
|
6508
|
-
const stepEnv = managed ? buildEnvironment({ ...envInput, factoryVariables: [] }) : env;
|
|
6509
6468
|
const request = (argv, workdir, variables) => ({
|
|
6510
6469
|
argv,
|
|
6511
6470
|
user: agentUser,
|
|
6512
6471
|
cwd: workdir,
|
|
6513
|
-
env: execEnvironment(state.imageEnv, withMiseVariables(
|
|
6472
|
+
env: execEnvironment(state.imageEnv, withMiseVariables(env, variables))
|
|
6514
6473
|
});
|
|
6515
6474
|
const steps = await runBuildSteps({
|
|
6516
6475
|
repository,
|
|
@@ -6552,8 +6511,7 @@ async function provisionMicroVmOnce(input, allowRestore, itemDiskFailed) {
|
|
|
6552
6511
|
...input.requireBuildSkill === true ? { requireBuildSkill: true } : {},
|
|
6553
6512
|
// A build on the universal image, or on an image built from it, chooses and installs its runtimes.
|
|
6554
6513
|
...runtimeStepInput(report, services),
|
|
6555
|
-
setup: setupInputFor({ setupMinutes: config.build?.setupMinutes, plan, saveState,
|
|
6556
|
-
afterSave: releaseGhConfig
|
|
6514
|
+
setup: setupInputFor({ setupMinutes: config.build?.setupMinutes, plan, saveState, fromItemDisk: keptDisk !== void 0 })
|
|
6557
6515
|
});
|
|
6558
6516
|
if (!steps.ok) return settleFailedSteps(steps, { giveUp: (reason, fromItemDisk) => fromItemDisk ? giveUpItemDisk(reason, "checkout_not_switched") : giveUpState(reason), bail });
|
|
6559
6517
|
state.startCommit = steps.startCommit;
|
|
@@ -6603,8 +6561,6 @@ function vmExecFor(input, argv) {
|
|
|
6603
6561
|
miseVariables: state.miseVariables,
|
|
6604
6562
|
builtIns: state.builtIns === true,
|
|
6605
6563
|
identity: input.job.commitIdentity,
|
|
6606
|
-
factoryVariables: factoryVariablesOf(input.config, input.jobDir),
|
|
6607
|
-
proxiedEnvironment: proxiedEnvironment(input.jobDir),
|
|
6608
6564
|
trustEnvironment: trustEnvironment(input.jobDir)
|
|
6609
6565
|
});
|
|
6610
6566
|
const env = applyTrust(withExtraEnv(built, input.extraEnv), state.imageEnv);
|
|
@@ -6654,8 +6610,6 @@ async function startMicroVmCommand(input) {
|
|
|
6654
6610
|
miseVariables: state.miseVariables,
|
|
6655
6611
|
builtIns: state.builtIns === true,
|
|
6656
6612
|
identity: input.job.commitIdentity,
|
|
6657
|
-
factoryVariables: factoryVariablesOf(input.config, input.jobDir),
|
|
6658
|
-
proxiedEnvironment: proxiedEnvironment(input.jobDir),
|
|
6659
6613
|
trustEnvironment: trustEnvironment(input.jobDir)
|
|
6660
6614
|
}), input.extraEnv);
|
|
6661
6615
|
const commandDir = state.commandDir ?? MICROVM_COMMAND_DIR;
|
|
@@ -6712,8 +6666,6 @@ async function runCliInMicroVm(input, argv, logName, goneReason2) {
|
|
|
6712
6666
|
miseVariables: state.miseVariables,
|
|
6713
6667
|
builtIns: state.builtIns === true,
|
|
6714
6668
|
identity: job.commitIdentity,
|
|
6715
|
-
factoryVariables: factoryVariablesOf(input.config, input.jobDir),
|
|
6716
|
-
proxiedEnvironment: proxiedEnvironment(input.jobDir),
|
|
6717
6669
|
trustEnvironment: trustEnvironment(input.jobDir)
|
|
6718
6670
|
});
|
|
6719
6671
|
const result = await runtime.vm.exec(state.vsockPath, {
|
|
@@ -6836,7 +6788,7 @@ async function startCheckMicroVm(input) {
|
|
|
6836
6788
|
const { config, runtime, job, jobDir, tokens, log } = input;
|
|
6837
6789
|
const { vm } = runtime;
|
|
6838
6790
|
const tag = `${itemTag(job)}`;
|
|
6839
|
-
const limits2 = machineLimits(config
|
|
6791
|
+
const limits2 = machineLimits(config);
|
|
6840
6792
|
const built = job.microvm;
|
|
6841
6793
|
const repository = built?.repository ?? job.repository;
|
|
6842
6794
|
if (built === void 0 || built.imageId === void 0 || repository === void 0 || job.branch === void 0) {
|
|
@@ -6913,8 +6865,7 @@ async function startCheckMicroVm(input) {
|
|
|
6913
6865
|
if (abandoned()) return fail(ABANDONED);
|
|
6914
6866
|
const links = vsockLinks({ destinations: config.build?.destinations?.length ?? 0, builtIns: false });
|
|
6915
6867
|
const configPath = join(buildDir2, "vm.json");
|
|
6916
|
-
const helper = await helperFor(runtime, (line2) => log.line(`${tag} ${line2}`)
|
|
6917
|
-
if (helper === void 0 && config.managed === true) return fail(MANAGED_UNJAILED_REASON);
|
|
6868
|
+
const helper = await helperFor(runtime, (line2) => log.line(`${tag} ${line2}`));
|
|
6918
6869
|
try {
|
|
6919
6870
|
if (helper === void 0) linkVsockSockets({ buildDir: buildDir2, vsockPath: state.vsockPath, links });
|
|
6920
6871
|
await createBuildDisk({ host: vm.rootfs, runnerDir: runnerDirPath, bytes: limits2.diskBytes, dest: state.buildDisk, memoryBytes: limits2.memoryBytes });
|
|
@@ -6988,9 +6939,6 @@ async function startCheckMicroVm(input) {
|
|
|
6988
6939
|
repository,
|
|
6989
6940
|
hostEnv: runtime.hostEnv,
|
|
6990
6941
|
containerEnv: built.containerEnv ?? {},
|
|
6991
|
-
// The checks of a managed build get its factory's variables, as its command did, and none of the runner's own.
|
|
6992
|
-
factoryVariables: factoryVariablesOf(config, jobDir),
|
|
6993
|
-
proxiedEnvironment: proxiedEnvironment(jobDir),
|
|
6994
6942
|
trustEnvironment: trustEnvironment(jobDir)
|
|
6995
6943
|
});
|
|
6996
6944
|
const evalInput = { dir: join(checksDir, EVAL_INPUT_NAME), delivered: false };
|
|
@@ -8675,7 +8623,7 @@ function noDiskReason(job, config) {
|
|
|
8675
8623
|
if (job.queue === "review") return "a code review reads one commit and leaves nothing to continue";
|
|
8676
8624
|
if (readsOnly(job.queue)) return `${job.queue === "criteria" ? "a criteria job" : "a revision"} reads each repository at its default branch and leaves nothing to continue`;
|
|
8677
8625
|
if (job.reason === "disk_limit_exceeded" || job.reason === "disk_check_failed") return "the build passed its disk limit, so a rerun would start from a full disk";
|
|
8678
|
-
if (config.
|
|
8626
|
+
if (config.fleet === true && (job.managedVariables?.length ?? 0) > 0) return "the build held a factory build variable, and the runner cannot remove a value that a command stored in an encoded form";
|
|
8679
8627
|
return void 0;
|
|
8680
8628
|
}
|
|
8681
8629
|
function target(input, imageId, diskBytes) {
|
|
@@ -8794,7 +8742,7 @@ function isCommit(text2) {
|
|
|
8794
8742
|
return /^(?:[0-9a-f]{40}|[0-9a-f]{64})$/.test(text2);
|
|
8795
8743
|
}
|
|
8796
8744
|
function keepsWork(job, config) {
|
|
8797
|
-
return !(config.
|
|
8745
|
+
return !(config.fleet === true && (job.managedVariables?.length ?? 0) > 0);
|
|
8798
8746
|
}
|
|
8799
8747
|
function homeLine() {
|
|
8800
8748
|
return `HOME="\${HOME:-${BUILD_HOME}}"; export HOME`;
|
|
@@ -9228,7 +9176,7 @@ async function hostPassedNames(config, item, fetchImpl) {
|
|
|
9228
9176
|
return [...latest].filter(([, result]) => result === "pass").map(([name]) => name);
|
|
9229
9177
|
}
|
|
9230
9178
|
function judgeCredential(config, jobDir, runtime) {
|
|
9231
|
-
return config.
|
|
9179
|
+
return config.fleet === true && managedClaudeKeyFor(jobDir) !== void 0 ? managedAgentCredential(runtime.agents) : agentCredential(runtime.hostEnv, {}, runtime.agents);
|
|
9232
9180
|
}
|
|
9233
9181
|
function environmentFor(input) {
|
|
9234
9182
|
const { config, job, jobDir, deps } = input;
|
|
@@ -11734,7 +11682,6 @@ async function buildInBuilder(opts, deps, prepared) {
|
|
|
11734
11682
|
const toolFilesDir = await ports.toolFiles(runner);
|
|
11735
11683
|
const probe = await ports.helper.probe();
|
|
11736
11684
|
const helper = probe.ok ? probe.client : void 0;
|
|
11737
|
-
if (helper === void 0 && opts.managed === true) throw new RecipeError("image_builder_unavailable", MANAGED_UNJAILED_REASON);
|
|
11738
11685
|
const id = randomBytes(6).toString("hex");
|
|
11739
11686
|
const dir = buildDir(opts.configPath, id);
|
|
11740
11687
|
const state = { buildId: id, buildDir: dir, vsockPath: vsockPath(dir) };
|
|
@@ -14223,4 +14170,4 @@ async function runHostChecks(input) {
|
|
|
14223
14170
|
}
|
|
14224
14171
|
}
|
|
14225
14172
|
|
|
14226
|
-
export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MAX_CHECK_ITEMS_BYTES, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, SandboxContainerStoppedError, SandboxGoneError, agentCredentialCheck, appendCommandLog, attemptNote, builtOf, checksIn, claimPermissionProblem, claimRun, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createGatewaySandboxClient, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, environmentFor, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gatewayRefusalReason, gitRemoteFor, heldSandboxClaimsOf, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inSandbox, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, jobTimeLimitMinutes, judgeCredential, judgeProbe, keepGhConfigCurrent, keptCommitsLine, keptSandboxIds, keptSessionDir, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, nativeWindowsSandboxRefusal, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, readWorkItem, recordsProofsOnly, recoverLostJobs, rejoinSandboxBuild, releaseLease, removeOldestUntil, removeRunnerBlock, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, restoreSessionIntoSandbox, restoreWork, retryFailedReleases, runCommand, runCommandOf, runDecision, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, sessionGuestOfContainer, sessionGuestOfMicroVm, sessionGuestOfSandbox, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, testProofIn, timeoutAfter, treeFileText, unfinishedJobs,
|
|
14173
|
+
export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MAX_CHECK_ITEMS_BYTES, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, SandboxContainerStoppedError, SandboxGoneError, agentCredentialCheck, appendCommandLog, attemptNote, builtOf, checksIn, claimPermissionProblem, claimRun, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createGatewaySandboxClient, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, environmentFor, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gatewayRefusalReason, gitRemoteFor, heldSandboxClaimsOf, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inSandbox, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, jobTimeLimitMinutes, judgeCredential, judgeProbe, keepGhConfigCurrent, keptCommitsLine, keptSandboxIds, keptSessionDir, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, nativeWindowsSandboxRefusal, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, readWorkItem, recordsProofsOnly, recoverLostJobs, rejoinSandboxBuild, releaseLease, removeOldestUntil, removeRunnerBlock, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, restoreSessionIntoSandbox, restoreWork, retryFailedReleases, runCommand, runCommandOf, runDecision, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, sessionGuestOfContainer, sessionGuestOfMicroVm, sessionGuestOfSandbox, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, testProofIn, timeoutAfter, treeFileText, unfinishedJobs, vmAlive, withJobTimeLimit, withTunnelLog, workRestoredEnv, workdirProblem, writeGuestGhConfig, writeRunnerInit };
|
|
@@ -3,8 +3,8 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { RemovedTargetError, removedTargetError } from './chunk-6RJBLCPV.js';
|
|
4
4
|
import { removeRetiredSkills } from './chunk-O2324X34.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-J6WQ6POX.js';
|
|
7
|
+
import { withTokenHeader } from './chunk-JDAH6YHU.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';
|
|
@@ -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-ZTZFWQBG.js';
|
|
4
|
+
import { parseSize } from './chunk-R4IC7BKJ.js';
|
|
5
|
+
import { runnerDir } from './chunk-3IHZYNZW.js';
|
|
6
6
|
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-QVTGSGQ5.js';
|
|
7
7
|
import { credentialAgent, credentialNames, credentialForms } from './chunk-OF6XMZHO.js';
|
|
8
8
|
import { defaultAgents } from './chunk-CEHT2FCU.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { keyRunnerFactory, RunnerConfigError } from './chunk-
|
|
4
|
-
import { orgHomeDir } from './chunk-
|
|
3
|
+
import { keyRunnerFactory, RunnerConfigError } from './chunk-ZTZFWQBG.js';
|
|
4
|
+
import { orgHomeDir } from './chunk-3IHZYNZW.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
7
7
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { checkStarterFiles, contextIsGoverned } from './chunk-YUR7GV5L.js';
|
|
4
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
5
|
-
import { fleetCheck, checkBuildSkill, checkSpecSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-
|
|
4
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-DOJGTDZU.js';
|
|
5
|
+
import { fleetCheck, checkBuildSkill, checkSpecSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-QVQWIKDP.js';
|
|
6
6
|
import { withInjectedPrograms } from './chunk-SBSH253O.js';
|
|
7
|
-
import { isLinkedRepository } from './chunk-
|
|
7
|
+
import { isLinkedRepository } from './chunk-GZLNKW2J.js';
|
|
8
8
|
import { sanitizeTerminal } from './chunk-DV44KCM6.js';
|
|
9
9
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
10
10
|
import { checkFormerSkillNames } from './chunk-O2324X34.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-J6WQ6POX.js';
|
|
12
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-DRF45IQZ.js';
|
|
13
13
|
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-F3J4UKBF.js';
|
|
14
14
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
15
15
|
import { readStatuslineState, STATE_FRESH_MS } from './chunk-LA66NWUO.js';
|
|
@@ -1094,8 +1094,8 @@ 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-
|
|
1098
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1097
|
+
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-ZRWIYYVO.js');
|
|
1098
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-V6VQOSHM.js');
|
|
1099
1099
|
const configPath = options.configPath ?? defaultRunnerConfigPath();
|
|
1100
1100
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1101
1101
|
const hooks = (() => {
|
|
@@ -1123,7 +1123,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1123
1123
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1124
1124
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1125
1125
|
} else if (hasRunnerBlock(configPath)) {
|
|
1126
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1126
|
+
const { runnerHostChecks } = await import('./doctor-B7XTBO53.js');
|
|
1127
1127
|
const gateway = (() => {
|
|
1128
1128
|
try {
|
|
1129
1129
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1142,8 +1142,8 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1142
1142
|
})();
|
|
1143
1143
|
const runner = (() => {
|
|
1144
1144
|
try {
|
|
1145
|
-
const { concurrency, build, housekeeping,
|
|
1146
|
-
return { concurrency, buildMemory: build?.memory ?? "8g", buildDisk: build?.disk ?? DEFAULT_BUILD_DISK, cacheDisk: build?.cacheDisk ?? DEFAULT_CACHE_DISK, minFreeDisk: housekeeping?.minFreeDisk, allowHosts: build?.allowHosts, ...build?.egress === void 0 ? {} : { egress: build.egress }, ...build?.imageBuild === void 0 ? {} : { imageBuild: build.imageBuild }, ...
|
|
1145
|
+
const { concurrency, build, housekeeping, fleet } = loadRunnerConfig(configPath);
|
|
1146
|
+
return { concurrency, buildMemory: build?.memory ?? "8g", buildDisk: build?.disk ?? DEFAULT_BUILD_DISK, cacheDisk: build?.cacheDisk ?? DEFAULT_CACHE_DISK, minFreeDisk: housekeeping?.minFreeDisk, allowHosts: build?.allowHosts, ...build?.egress === void 0 ? {} : { egress: build.egress }, ...build?.imageBuild === void 0 ? {} : { imageBuild: build.imageBuild }, ...fleet === true ? { fleet } : {} };
|
|
1147
1147
|
} catch {
|
|
1148
1148
|
return void 0;
|
|
1149
1149
|
}
|
|
@@ -1151,7 +1151,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1151
1151
|
const service = await (async () => {
|
|
1152
1152
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1153
1153
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1154
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1154
|
+
const { inspectRunnerService } = await import('./find-unit-WRHK3H5X.js');
|
|
1155
1155
|
return inspectRunnerService(configPath);
|
|
1156
1156
|
})();
|
|
1157
1157
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { stripTerminalControls } from './chunk-
|
|
4
|
-
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-T3NBGNP5.js';
|
|
4
|
+
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-6MF44FPF.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-UHQ4LAJE.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,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-5LDYQLE3.js';
|
|
4
|
+
import { parseSize } from './chunk-R4IC7BKJ.js';
|
|
5
|
+
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-JDAH6YHU.js';
|
|
6
6
|
import { builderDiskPinned } from './chunk-OF6XMZHO.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { existsSync, statSync, accessSync, constants, readFileSync } from 'fs';
|
|
@@ -499,9 +499,7 @@ function loadRunnerConfig(configPath) {
|
|
|
499
499
|
// provision alone tells which.
|
|
500
500
|
autoUpdate: runner.autoUpdate ?? builtinKind(runner.hooks.provision) !== "own",
|
|
501
501
|
wait: runner.wait ?? true,
|
|
502
|
-
deliverComments: runner.deliverComments ?? true
|
|
503
|
-
// A fleet runner is a managed runner: its builds run under the jailer with the managed checks.
|
|
504
|
-
...fleet ? { managed: true } : {}
|
|
502
|
+
deliverComments: runner.deliverComments ?? true
|
|
505
503
|
};
|
|
506
504
|
}
|
|
507
505
|
function checkBuiltinHooks(configPath, hooks) {
|
|
@@ -694,7 +692,7 @@ function optionalEgress(config) {
|
|
|
694
692
|
return egress === void 0 ? {} : { egress };
|
|
695
693
|
}
|
|
696
694
|
function egressLimitsOf(config) {
|
|
697
|
-
return resolveEgress(config.build?.egress, config.
|
|
695
|
+
return resolveEgress(config.build?.egress, config.fleet === true);
|
|
698
696
|
}
|
|
699
697
|
|
|
700
698
|
export { DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_SETUP_MINUTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, DEFAULT_WORKSPACE_KEEP_DAYS, EGRESS_SWITCHABLE_KEYS, MAX_ALLOW_HOSTS, RunnerConfigError, allowHostProblem, builtinKind, checkHooks, defaultRunnerConfigPath, egressSummary, emptyEgressCounts, hasRunnerBlock, hostAllowed, imageBuildOf, isBuiltinContainer, isBuiltinSandbox, isBuiltinVm, keepsHostBuilder, keyRunnerFactory, loadRunnerConfig, machineSizeOf, networkOf, optionalEgress, readOnlyOption, readOnlyRemoteOf, readsOnly, resolveBuild, resolveHousekeeping, runnerCredentialProblem, runnerDeliversComments, runnerVmOf, sandboxSizeOf, sandboxTimeLimitMinutes, systemClock };
|
|
@@ -342,7 +342,7 @@ async function runAgentLauncher(agentId, args, deps = {}) {
|
|
|
342
342
|
return 1;
|
|
343
343
|
}
|
|
344
344
|
} else {
|
|
345
|
-
const { resolveLaunchPlane } = await import('./control-plane-launch-
|
|
345
|
+
const { resolveLaunchPlane } = await import('./control-plane-launch-CNGKWYLK.js');
|
|
346
346
|
const plane = env[GOVERNANCE_VARIABLE] === "self" ? { kind: "none" } : await resolveLaunchPlane({ cwd, env, home, fetchImpl: deps.fetchImpl, stderr });
|
|
347
347
|
if (plane.kind === "none") {
|
|
348
348
|
const own2 = ownSkillsDirFor(prefix, cwd, home, /* @__PURE__ */ new Set(), stderr);
|