@outerlayer/cli 0.40.0-next.20261116222734 → 0.40.0-next.20261117012945
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/dist/{agent-setup-ITG2WLQK.js → agent-setup-BP6CVC2M.js} +7 -7
- package/dist/{agent-subcommand-T4M5PE5I.js → agent-subcommand-VD5C5ZWX.js} +1 -1
- package/dist/{bridge-AUDVCIXF.js → bridge-XVA4KQLV.js} +2 -2
- package/dist/{build-63TJO4RL.js → build-VLHNIM7K.js} +7 -7
- package/dist/{build-disk-ZGHQ6OLM.js → build-disk-C3YS565A.js} +5 -5
- package/dist/build-info.json +1 -1
- package/dist/{builder-CA34F56P.js → builder-6JUYA6GH.js} +4 -4
- package/dist/{caller-MVRKFUPB.js → caller-DH4RYBWQ.js} +7 -7
- package/dist/{check-WLMKHMCL.js → check-LTWRTMWC.js} +42 -41
- package/dist/{chunk-R6KZTHIW.js → chunk-2MRD6DR3.js} +2 -2
- package/dist/{chunk-BDB3DZ7X.js → chunk-2THRR6Z2.js} +1 -1
- package/dist/{chunk-BGRPYWUU.js → chunk-3KFHI5V2.js} +1 -1
- package/dist/{chunk-3UK6W752.js → chunk-3MIYTEPW.js} +1 -1
- package/dist/{chunk-3XGZLUEU.js → chunk-4OLIJCT2.js} +5 -5
- package/dist/{chunk-Z5BXBH6M.js → chunk-5L6KJDL7.js} +6 -6
- package/dist/{chunk-O6OWUZ3V.js → chunk-5MRB5ZGK.js} +2 -2
- package/dist/{chunk-YRF7F2TQ.js → chunk-5RJDLVQJ.js} +2 -2
- package/dist/{chunk-VJWRB7BK.js → chunk-6C7WHPGM.js} +1 -1
- package/dist/{chunk-NUJE7OQ6.js → chunk-7KJK4I4H.js} +7 -7
- package/dist/{chunk-WD23Q7ML.js → chunk-AUUDRYMJ.js} +25 -25
- package/dist/{chunk-AUCEBDHF.js → chunk-AYWC5P43.js} +5 -5
- package/dist/{chunk-27RFAEUO.js → chunk-CNV5EOSS.js} +9 -9
- package/dist/{chunk-VAXBKKG4.js → chunk-D3Y5MZ3H.js} +3 -3
- package/dist/{chunk-KFUCIJF7.js → chunk-DYL4R2GO.js} +1 -1
- package/dist/{chunk-SAMELQW5.js → chunk-EBCHAHAR.js} +2 -2
- package/dist/{chunk-DS7GC2JB.js → chunk-EHYSQJM5.js} +1 -1
- package/dist/{chunk-DFAXUIG6.js → chunk-F2N6LZL5.js} +1 -1
- package/dist/{chunk-ARQEDDVJ.js → chunk-FMBPRXHT.js} +2 -2
- package/dist/{chunk-EU4BCIV5.js → chunk-FRUYDEET.js} +3 -3
- package/dist/{chunk-JUZYSHHA.js → chunk-GMGMEXXK.js} +2 -2
- package/dist/{chunk-OXI2EYW2.js → chunk-HUHGLALM.js} +7 -7
- package/dist/{chunk-5CJHLY2E.js → chunk-IB2E4GIP.js} +3 -3
- package/dist/{chunk-AXDEXXW7.js → chunk-MWCIVIJD.js} +134 -58
- package/dist/{chunk-IX2ELMBR.js → chunk-N2ACTZT6.js} +1 -1
- package/dist/{chunk-HR2GYDDL.js → chunk-OCYDGALH.js} +2 -2
- package/dist/{chunk-3EK3YMRS.js → chunk-OUFKMKDB.js} +5 -5
- package/dist/{chunk-D3IU5TVW.js → chunk-OXSQAKIY.js} +4 -4
- package/dist/{chunk-XB46SR6E.js → chunk-P5GEBY4C.js} +3 -3
- package/dist/{chunk-4OGHZ2PG.js → chunk-PJ6AY5TZ.js} +3 -3
- package/dist/{chunk-F7YGXLOV.js → chunk-PJWGLJFB.js} +5 -5
- package/dist/{chunk-V7ENVZZR.js → chunk-PN7SCZEN.js} +3 -3
- package/dist/{chunk-EXRGYNAG.js → chunk-QHYRNIBB.js} +2 -2
- package/dist/{chunk-35MTVD6X.js → chunk-QM4R745Y.js} +1 -1
- package/dist/{chunk-5QF3CFE3.js → chunk-QSN67PAP.js} +2 -2
- package/dist/{chunk-VLA3DLFW.js → chunk-QTTZ455D.js} +2 -2
- package/dist/{chunk-THAESND6.js → chunk-RME4AALZ.js} +1 -1
- package/dist/{chunk-UQD76TOU.js → chunk-S33WRZ4U.js} +3 -3
- package/dist/{chunk-QNIUSZLK.js → chunk-SO4WL3NE.js} +1 -1
- package/dist/{chunk-K6BIAGPB.js → chunk-SWPJWQTW.js} +2 -2
- package/dist/{chunk-W4QHG6VM.js → chunk-SXSJKTXN.js} +1 -1
- package/dist/{chunk-VPD2TY6U.js → chunk-TKHQAEE4.js} +1 -1
- package/dist/{chunk-ENVJDHAN.js → chunk-UO5ZXQCS.js} +1 -1
- package/dist/{chunk-BPAVTBGG.js → chunk-URDI2R7Z.js} +1 -1
- package/dist/{chunk-KN7XHG74.js → chunk-VGR27BYJ.js} +1 -1
- package/dist/{chunk-SU6GA65D.js → chunk-WE2JKEK7.js} +1 -1
- package/dist/{chunk-JS2AM7BN.js → chunk-WO3RLQ7Z.js} +1 -1
- package/dist/{chunk-H2SUWKUA.js → chunk-WOSDWWBI.js} +6 -7
- package/dist/{chunk-BGMIZJII.js → chunk-WT7VZYAO.js} +2 -2
- package/dist/{chunk-NOHI3MBC.js → chunk-XAS7GSSM.js} +2 -2
- package/dist/{chunk-ZZTHYE3Q.js → chunk-XSXSLUQL.js} +3 -3
- package/dist/{chunk-RSD4TQOD.js → chunk-YGLTXCI5.js} +3 -3
- package/dist/{chunk-TU4PQ4CD.js → chunk-YPN4PW2D.js} +1 -1
- package/dist/{claude-launcher-WFYFNHUQ.js → claude-launcher-GZUZCS2W.js} +1 -1
- package/dist/{cli-YT6KBDV3.js → cli-RYOARVXS.js} +141 -151
- package/dist/{command-4AEE7LZV.js → command-LDIXSC5Q.js} +33 -33
- package/dist/{config-AOOU7S5D.js → config-EYUZTNWS.js} +6 -6
- package/dist/{connect-cmd-E3M2RQB5.js → connect-cmd-WFACE4NX.js} +5 -5
- package/dist/{container-start-2YFB7N2U.js → container-start-UXHOGFPK.js} +30 -30
- package/dist/{context-show-cmd-H45BCDZO.js → context-show-cmd-GXUPNW3Z.js} +6 -6
- package/dist/{control-plane-launch-6FHKEZIQ.js → control-plane-launch-ZRJA7W24.js} +5 -5
- package/dist/{demo-record-cmd-7GYNIICA.js → demo-record-cmd-6T2P2Z64.js} +2 -2
- package/dist/{demo-voice-cmd-2NGBXD6Y.js → demo-voice-cmd-BYSMAY3R.js} +11 -11
- package/dist/{docker-M4TE7I2E.js → docker-7EH4LDVU.js} +4 -4
- package/dist/{doctor-B3H3ZEL4.js → doctor-J2OWI6GY.js} +32 -32
- package/dist/{emit-artifact-cmd-UHQG2FQS.js → emit-artifact-cmd-4X3J35G3.js} +10 -10
- package/dist/{emit-criteria-cmd-ETJPON5K.js → emit-criteria-cmd-DS3W7WKU.js} +7 -7
- package/dist/{emit-demo-cmd-IPK53FHD.js → emit-demo-cmd-ZJIVFPHW.js} +11 -11
- package/dist/{emit-finding-cmd-DL6E6AQL.js → emit-finding-cmd-QVXW6AOG.js} +7 -7
- package/dist/{emit-result-cmd-ILPPSI3K.js → emit-result-cmd-LK6WL5EX.js} +9 -9
- package/dist/{emit-step-cmd-CMB56E3C.js → emit-step-cmd-FFN6RK5U.js} +7 -7
- package/dist/{exec-client-XTXZSGIK.js → exec-client-6BJIQ5LO.js} +3 -3
- package/dist/{find-unit-HWDRJ75M.js → find-unit-LUVD3FM2.js} +8 -8
- package/dist/{findings-cmd-C2D4QIYY.js → findings-cmd-3QJ3ZWQI.js} +7 -7
- package/dist/{fleet-readiness-UPQAAMPP.js → fleet-readiness-YNJ6OSDF.js} +5 -5
- package/dist/{governing-source-4UMCWAEA.js → governing-source-QR62MSH2.js} +9 -9
- package/dist/{guest-init-OGZDDA45.js → guest-init-XQPD7GMT.js} +4 -4
- package/dist/{hook-fast-XCGO72FK.js → hook-fast-O46AILAO.js} +1 -1
- package/dist/{host-checks-2RGIXCFD.js → host-checks-OP266QAP.js} +28 -28
- package/dist/{pending-YVKVMPAW.js → host-key-QSSOG7YP.js} +3 -3
- package/dist/{image-tag-TG7HRWDA.js → image-tag-4OF2ALEL.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/{init-N4KXWTN7.js → init-L2H5O2BX.js} +28 -28
- package/dist/{init-BPYRQ2ZW.js → init-OZ5S44CD.js} +28 -28
- package/dist/{init-agent-H6CRATMS.js → init-agent-YRZI6EFV.js} +28 -28
- package/dist/{init-cmd-QSWFPSGC.js → init-cmd-7I6WANKZ.js} +11 -11
- package/dist/{init-update-BJN7CPRA.js → init-update-YWDYID5W.js} +8 -8
- package/dist/{install-cmd-UJCTAZW5.js → install-cmd-3QQBTWJA.js} +9 -9
- package/dist/{launch-agent-6PFFYQQQ.js → launch-agent-NJ3S22WS.js} +9 -9
- package/dist/{logs-TBIGZPKG.js → logs-F7A7A3WS.js} +2 -2
- package/dist/{loop-UW2AVKUY.js → loop-TOLNJX3I.js} +36 -36
- package/dist/{machine-N3PCQXIZ.js → machine-KVOFJDOR.js} +28 -28
- package/dist/{mcp-serve-cmd-Z3GKR5MP.js → mcp-serve-cmd-T5LKPDNV.js} +4 -4
- package/dist/{paths-GRJGT5AP.js → paths-HPZ3ETKQ.js} +2 -2
- package/dist/{host-key-UYIZS52D.js → pending-7BSPROGA.js} +3 -3
- package/dist/{pidfile-2KPDN5A6.js → pidfile-W57IVEOM.js} +3 -3
- package/dist/{record-Y2T2OEET.js → record-ALYV6NMK.js} +3 -3
- package/dist/{run-cmd-VHTEX3XS.js → run-cmd-QDTPPHEH.js} +7 -7
- package/dist/{runner-env-JVFGDYQJ.js → runner-env-QVZNYUSN.js} +8 -8
- package/dist/{runner-identity-5NE5577P.js → runner-identity-GOC6IDFS.js} +4 -4
- package/dist/{runner-key-CHVGBBF6.js → runner-key-HH7VHEVM.js} +28 -28
- package/dist/{session-sender-5KIOBYZM.js → session-sender-P3MGBUS3.js} +10 -10
- package/dist/{setup-cmd-67VCWV63.js → setup-cmd-IL2IXNEA.js} +6 -6
- package/dist/{setup-wiring-UABJKAG2.js → setup-wiring-RGYF2BPS.js} +32 -32
- package/dist/{spec-cmd-6XK7JVGC.js → spec-cmd-TOAB7QLG.js} +8 -8
- package/dist/{state-6UA4AE4Q.js → state-7REXJETC.js} +3 -3
- package/dist/{status-AWDOSN4J.js → status-G6B5OYW6.js} +28 -28
- package/dist/{sync-cmd-65JX5EJ4.js → sync-cmd-SZMQ62CY.js} +9 -9
- package/dist/{update-steps-5GB4G27J.js → update-steps-GTRCJKFL.js} +29 -29
- package/dist/{watch-L7IVSO5D.js → watch-2NFUY7FB.js} +9 -9
- package/dist/{work-claim-cmd-77RLQXAT.js → work-claim-cmd-FF2CGVB2.js} +12 -12
- package/dist/{work-cmd-UTP5PXOP.js → work-cmd-TBN3PSPX.js} +7 -7
- package/dist/{work-comment-cmd-45BYGZ7Z.js → work-comment-cmd-STKRIVHG.js} +9 -9
- package/dist/{work-demo-cmd-NDJC3HEO.js → work-demo-cmd-VT43BELH.js} +7 -7
- package/dist/{work-logs-cmd-XGYISYHV.js → work-logs-cmd-NSPSFB3I.js} +7 -7
- package/dist/{work-mock-cmd-2E4B2ACI.js → work-mock-cmd-J6UYSYN5.js} +7 -7
- package/dist/{work-needs-attention-cmd-G7ILFISE.js → work-needs-attention-cmd-XIEY4UUW.js} +7 -7
- package/dist/{work-no-change-cmd-7SW5ZEGP.js → work-no-change-cmd-7EEGZLWP.js} +7 -7
- package/dist/{work-open-pr-cmd-XOFSHSP2.js → work-open-pr-cmd-LZFPKU7L.js} +8 -8
- package/dist/{work-pr-cmd-WYQOLDP4.js → work-pr-cmd-6RBAVTRU.js} +7 -7
- package/dist/{work-proofs-cmd-EKDMBBAJ.js → work-proofs-cmd-7AUJDNKH.js} +8 -8
- package/dist/{work-proofs-record-ARWWRX2W.js → work-proofs-record-NGOOFFIZ.js} +14 -14
- package/dist/{work-stop-cmd-KME3DAW2.js → work-stop-cmd-DRFPP3EH.js} +7 -7
- package/package.json +1 -1
|
@@ -4,34 +4,34 @@ import { RUNNER_PROTOCOL } from './chunk-6YKJ2RKQ.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-46D7LPS3.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-QTTZ455D.js';
|
|
8
8
|
import { upgradedStarterText } from './chunk-UU3A53VB.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-D3Y5MZ3H.js';
|
|
10
|
+
import { writeDockerClientConfig } from './chunk-QM4R745Y.js';
|
|
11
|
+
import { senderPidfile } from './chunk-SWPJWQTW.js';
|
|
12
|
+
import { installScrubContext } from './chunk-PJWGLJFB.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-3MIYTEPW.js';
|
|
15
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-QHYRNIBB.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-OUFKMKDB.js';
|
|
18
|
+
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-2THRR6Z2.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-
|
|
21
|
+
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-YPN4PW2D.js';
|
|
22
|
+
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-RME4AALZ.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-5L6KJDL7.js';
|
|
24
|
+
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-4OLIJCT2.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-WOSDWWBI.js';
|
|
26
|
+
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-QSN67PAP.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-YGLTXCI5.js';
|
|
28
28
|
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-47NQTKLX.js';
|
|
29
29
|
import { sanitizeTerminal, planArtifactUpload } from './chunk-DV44KCM6.js';
|
|
30
30
|
import { sharedSkillNames, skillConflictMessage } from './chunk-ETP7IGQI.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, STAND_IN, 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-
|
|
32
|
+
import { signerFor } from './chunk-DYL4R2GO.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-WO3RLQ7Z.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, STAND_IN, 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-TKHQAEE4.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-5XEO7FJW.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-MHXUQI67.js';
|
|
@@ -1420,7 +1420,7 @@ function createMicroVmPorts(over = {}) {
|
|
|
1420
1420
|
// src/runner/sandbox/gateway-client.ts
|
|
1421
1421
|
var ATTEMPTS = 3;
|
|
1422
1422
|
var RETRY_MS = 1e3;
|
|
1423
|
-
var
|
|
1423
|
+
var READ_TIMEOUT_MS = 1e4;
|
|
1424
1424
|
function sandboxErrorOf(err, nowMs) {
|
|
1425
1425
|
return new SandboxError(err.message, err.status ?? 0, err.code, err.reason, retryAfterMsOf(err.retryAfter ?? null, nowMs));
|
|
1426
1426
|
}
|
|
@@ -1461,7 +1461,8 @@ function createGatewaySandboxClient(opts) {
|
|
|
1461
1461
|
dataPlaneUrl,
|
|
1462
1462
|
secret: typeof raw.secret === "string" ? raw.secret : "",
|
|
1463
1463
|
urlToken: typeof raw.urlToken === "string" ? raw.urlToken : "",
|
|
1464
|
-
metadata: typeof raw.metadata === "object" && raw.metadata !== null ? raw.metadata : {}
|
|
1464
|
+
metadata: typeof raw.metadata === "object" && raw.metadata !== null ? raw.metadata : {},
|
|
1465
|
+
...raw.machine === "small" || raw.machine === "large" ? { machine: raw.machine } : {}
|
|
1465
1466
|
};
|
|
1466
1467
|
}
|
|
1467
1468
|
async function gateway(factory, send) {
|
|
@@ -1479,6 +1480,15 @@ function createGatewaySandboxClient(opts) {
|
|
|
1479
1480
|
}
|
|
1480
1481
|
const post = (factory, path, body) => gateway(factory, async (creds, signer) => (await postJson(creds.url, path, creds.apiKey, creds.appId, body, fetchImpl, void 0, signer)).data);
|
|
1481
1482
|
const get = (factory, path) => gateway(factory, async (creds, signer) => (await getJson(creds.url, path, creds.apiKey, creds.appId, fetchImpl, signer)).data);
|
|
1483
|
+
const read = (factory, path) => gateway(factory, async (creds, signer) => {
|
|
1484
|
+
const limit = new AbortController();
|
|
1485
|
+
const timer = setTimeout(() => limit.abort(), READ_TIMEOUT_MS);
|
|
1486
|
+
try {
|
|
1487
|
+
return (await getJson(creds.url, path, creds.apiKey, creds.appId, fetchImpl, signer, { signal: limit.signal })).data;
|
|
1488
|
+
} finally {
|
|
1489
|
+
clearTimeout(timer);
|
|
1490
|
+
}
|
|
1491
|
+
});
|
|
1482
1492
|
const factoryOfSandbox = (id) => factories.get(id) ?? opts.factoryOf?.(id);
|
|
1483
1493
|
const listUnder = async (factory) => {
|
|
1484
1494
|
const listed = await get(factory, "/v1/managed-sandboxes");
|
|
@@ -1489,15 +1499,22 @@ function createGatewaySandboxClient(opts) {
|
|
|
1489
1499
|
return {
|
|
1490
1500
|
async create(input) {
|
|
1491
1501
|
if (input.workItem === void 0) throw new SandboxError("the build names no work item, and OuterLayer makes a sandbox only for the claim on one", 0);
|
|
1492
|
-
const machine = input.machine
|
|
1502
|
+
const machine = input.machine === void 0 ? {} : { machine: input.machine };
|
|
1493
1503
|
return sandboxOf(
|
|
1494
|
-
await post(input.factory, claimed(input.workItem), {
|
|
1504
|
+
await post(input.factory, claimed(input.workItem), {
|
|
1505
|
+
...machine,
|
|
1506
|
+
waits: true,
|
|
1507
|
+
idleMinutes: input.idleMinutes,
|
|
1508
|
+
timeLimitMinutes: input.timeLimitMinutes,
|
|
1509
|
+
metadata: input.metadata,
|
|
1510
|
+
...input.resume === void 0 ? {} : { resume: input.resume }
|
|
1511
|
+
}),
|
|
1495
1512
|
input.factory
|
|
1496
1513
|
);
|
|
1497
1514
|
},
|
|
1498
1515
|
async get(id) {
|
|
1499
1516
|
const factory = factoryOfSandbox(id);
|
|
1500
|
-
return sandboxOf(await
|
|
1517
|
+
return sandboxOf(await read(factory, own(id)), factory);
|
|
1501
1518
|
},
|
|
1502
1519
|
async list() {
|
|
1503
1520
|
if (opts.factories === void 0) return listUnder(void 0);
|
|
@@ -1516,11 +1533,10 @@ function createGatewaySandboxClient(opts) {
|
|
|
1516
1533
|
if (typeof url !== "string") throw new SandboxError("the gateway's answer holds no address", 0);
|
|
1517
1534
|
return url;
|
|
1518
1535
|
},
|
|
1519
|
-
async pause() {
|
|
1520
|
-
|
|
1536
|
+
async pause(id) {
|
|
1537
|
+
await post(factoryOfSandbox(id), `${own(id)}/keep`, {});
|
|
1521
1538
|
},
|
|
1522
1539
|
async restartTimeLimit() {
|
|
1523
|
-
throw new SandboxError(NOT_KEPT, 0, "sandbox_not_kept");
|
|
1524
1540
|
},
|
|
1525
1541
|
...dataPlaneOf(sandboxCallOf(fetchImpl), (sandbox) => {
|
|
1526
1542
|
const header = headers.get(sandbox.dataPlaneUrl);
|
|
@@ -1560,7 +1576,6 @@ function createSandboxPorts(opts, hostEnv) {
|
|
|
1560
1576
|
factoryOf: (id) => heldClaims().find((claim) => claim.sandboxId === id)?.factory,
|
|
1561
1577
|
factories: () => heldClaims().map((claim) => claim.factory)
|
|
1562
1578
|
} : {},
|
|
1563
|
-
machine: () => runnerConfig().sandbox?.machine ?? "small",
|
|
1564
1579
|
sleep: (ms) => ports.sleep(ms)
|
|
1565
1580
|
});
|
|
1566
1581
|
return viaGateway;
|
|
@@ -2241,7 +2256,6 @@ var RunnerInitError = class extends Error {
|
|
|
2241
2256
|
var UNMARKED_PLACEHOLDER_COMMAND = "echo 'edit runner.commands in this config file: it must start your agent on item $OUTERLAYER_WORK' >&2; exit 1";
|
|
2242
2257
|
var PLACEHOLDER_MARKER = "outerlayer-placeholder";
|
|
2243
2258
|
var PLACEHOLDER_COMMAND = `${UNMARKED_PLACEHOLDER_COMMAND} # ${PLACEHOLDER_MARKER}`;
|
|
2244
|
-
var SANDBOX_MACHINES = ["small", "large"];
|
|
2245
2259
|
function nativeWindowsSandboxRefusal(machine) {
|
|
2246
2260
|
if (machine.platform !== "windows") return void 0;
|
|
2247
2261
|
return "--sandbox is for Linux, WSL2 and macOS: the runner's service does not install on native Windows, so a runner set up with --sandbox would have nothing to keep it running. Run this again from a WSL2 shell.";
|
|
@@ -2306,7 +2320,7 @@ function runRunnerInit(configPath, opts = {}) {
|
|
|
2306
2320
|
return writeRunnerInit(prepareRunnerInit(configPath, opts));
|
|
2307
2321
|
}
|
|
2308
2322
|
function prepareRunnerInit(configPath, opts = {}) {
|
|
2309
|
-
if (opts.sandbox
|
|
2323
|
+
if (opts.sandbox === true) {
|
|
2310
2324
|
if (opts.configFromStdin !== void 0) throw new RunnerInitError("--sandbox cannot be used with the VM-side hand-off: that runner builds in containers.");
|
|
2311
2325
|
if (opts.requireContainer === true) throw new RunnerInitError("--sandbox cannot be used with a runner that requires container builds.");
|
|
2312
2326
|
}
|
|
@@ -2321,7 +2335,7 @@ function prepareRunnerInit(configPath, opts = {}) {
|
|
|
2321
2335
|
if (config.runner !== void 0) {
|
|
2322
2336
|
throw new RunnerInitError(`${configPath}: a runner block is already here. Edit it, or remove it and run this again.`);
|
|
2323
2337
|
}
|
|
2324
|
-
if (opts.sandbox
|
|
2338
|
+
if (opts.sandbox === true && config.runnerVm !== void 0) {
|
|
2325
2339
|
throw new RunnerInitError(`${configPath}: this file sets up a runner in a Linux VM, and --sandbox sets up another kind. Name another file with --config, then run this again.`);
|
|
2326
2340
|
}
|
|
2327
2341
|
needsKey = opts.keyFromLogin === true && config.apiKey === void 0;
|
|
@@ -2334,7 +2348,7 @@ function prepareRunnerInit(configPath, opts = {}) {
|
|
|
2334
2348
|
agent ??= handed.agent;
|
|
2335
2349
|
}
|
|
2336
2350
|
const machine = opts.machine ?? detectMachine();
|
|
2337
|
-
if (opts.sandbox
|
|
2351
|
+
if (opts.sandbox === true) {
|
|
2338
2352
|
const refusal = nativeWindowsSandboxRefusal(machine);
|
|
2339
2353
|
if (refusal !== void 0) throw new RunnerInitError(refusal);
|
|
2340
2354
|
}
|
|
@@ -2342,7 +2356,7 @@ function prepareRunnerInit(configPath, opts = {}) {
|
|
|
2342
2356
|
const fix = reachDockerStep(machine) ?? `install Docker Engine ${MIN_ENGINE_MAJOR} or later in the VM`;
|
|
2343
2357
|
throw new RunnerInitError(`the VM has ${describeMachineDocker(machine)}, but the runner in it needs container builds: ${fix}, then run this again.`);
|
|
2344
2358
|
}
|
|
2345
|
-
const hooks = opts.sandbox
|
|
2359
|
+
const hooks = opts.sandbox === true ? "builtin:sandbox" : opts.requireContainer !== true && supportsMicroVmBuilds(machine) ? "builtin:vm" : supportsContainerBuilds(machine) ? "builtin:container" : void 0;
|
|
2346
2360
|
if (hooks === void 0) throw new RunnerInitError(isolationRefusal(machine));
|
|
2347
2361
|
const named = agent === void 0 ? void 0 : runnerAgentNamed(agent, agents);
|
|
2348
2362
|
if (named !== void 0 && credential === void 0 && opts.credentialInEnvironment !== true && !hasStoredCredential(configPath, agents)) {
|
|
@@ -2387,7 +2401,7 @@ function writeRunnerInit(prepared, runnerKey) {
|
|
|
2387
2401
|
// The agent was named on this command line, so its commands win over any the hand-off carried.
|
|
2388
2402
|
...agent === void 0 ? {} : { commands: { ...agentCommands(agent, agents) } },
|
|
2389
2403
|
hooks: { provision: hooks, cleanup: hooks },
|
|
2390
|
-
...sandbox ===
|
|
2404
|
+
...sandbox === true ? { sandbox: { provider: "outerlayer", docker: true } } : {}
|
|
2391
2405
|
};
|
|
2392
2406
|
if (host !== void 0) delete config.runner.host;
|
|
2393
2407
|
mkdirSync(dirname(configPath), { recursive: true });
|
|
@@ -4085,6 +4099,7 @@ function itemDiskDecision(input) {
|
|
|
4085
4099
|
if (kept.record.imageId !== input.imageId) return { state: { restored: false, reason: "other_image" } };
|
|
4086
4100
|
if (kept.record.diskBytes !== input.diskBytes) return { state: { restored: false, reason: "other_disk_size" } };
|
|
4087
4101
|
if (kept.record.kind !== input.backend) return { state: { restored: false, reason: "disk_not_restored" } };
|
|
4102
|
+
if (kept.record.managed === true !== (input.managed === true)) return { state: { restored: false, reason: "other_image" } };
|
|
4088
4103
|
return { kept, state: { restored: true, fromClaimId: kept.record.claimId } };
|
|
4089
4104
|
}
|
|
4090
4105
|
async function discardItemDisk(kept, removeVolume, onError, endSandbox) {
|
|
@@ -4217,6 +4232,9 @@ function waited(ms) {
|
|
|
4217
4232
|
function hasStarted(state) {
|
|
4218
4233
|
return state !== "starting" && state !== "" && state !== "ended";
|
|
4219
4234
|
}
|
|
4235
|
+
function canBuildIn(sandbox) {
|
|
4236
|
+
return hasStarted(sandbox.state) && sandbox.secret !== "" && sandbox.dataPlaneUrl !== "";
|
|
4237
|
+
}
|
|
4220
4238
|
async function awaitStartById(input) {
|
|
4221
4239
|
const { client: client2, log, id } = input;
|
|
4222
4240
|
const waitMs2 = input.waitMs ?? SLOW_START_WAIT_MS;
|
|
@@ -4230,10 +4248,11 @@ async function awaitStartById(input) {
|
|
|
4230
4248
|
if (err instanceof SandboxError && err.status === 404) return { kind: "ended", id };
|
|
4231
4249
|
}
|
|
4232
4250
|
if (now !== void 0 && now.state === "ended") return { kind: "ended", id, ...typeof now.endedReason === "string" ? { reason: now.endedReason } : {} };
|
|
4233
|
-
if (now !== void 0 &&
|
|
4251
|
+
if (now !== void 0 && canBuildIn(now)) {
|
|
4234
4252
|
log(`sandbox ${id} started after ${waited(waitedMs)} of waiting`);
|
|
4235
4253
|
return { kind: "started", sandbox: now, waitedMs };
|
|
4236
4254
|
}
|
|
4255
|
+
if (input.aborted()) return { kind: "aborted", id };
|
|
4237
4256
|
if (waitedMs >= waitMs2) return { kind: "timed_out", id, waitedMs };
|
|
4238
4257
|
await input.sleep(SLOW_START_ASK_MS);
|
|
4239
4258
|
}
|
|
@@ -4700,12 +4719,14 @@ async function cleanupSandbox(runtime, state, keepDisk) {
|
|
|
4700
4719
|
runtime.relayFatal.delete(state.buildId);
|
|
4701
4720
|
runtime.leases.get(state.buildId)?.close();
|
|
4702
4721
|
runtime.leases.delete(state.buildId);
|
|
4703
|
-
if (keepDisk
|
|
4722
|
+
if (keepDisk?.keptAlready() === true) {
|
|
4723
|
+
kept = true;
|
|
4724
|
+
} else if (keepDisk !== void 0) {
|
|
4704
4725
|
try {
|
|
4705
4726
|
await keepSandboxDisk(runtime, state, keepDisk);
|
|
4706
4727
|
kept = true;
|
|
4707
4728
|
} catch (err) {
|
|
4708
|
-
keepDisk.warn(`the build's disk was not kept: ${err instanceof SandboxError ? describeSandboxError(err) : describeCallFailure(err)}
|
|
4729
|
+
keepDisk.warn(`the build's disk was not kept: ${err instanceof SandboxError ? describeSandboxError(err) : describeCallFailure(err)}`, err);
|
|
4709
4730
|
}
|
|
4710
4731
|
}
|
|
4711
4732
|
if (state.sandboxId !== "" && !kept) {
|
|
@@ -4729,7 +4750,7 @@ async function cleanupSandbox(runtime, state, keepDisk) {
|
|
|
4729
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, or build on a runner with builtin:vm hooks";
|
|
4730
4751
|
function sandboxSizeFor(config, jobDir) {
|
|
4731
4752
|
const settings = managedBuildSettingsFor(jobDir);
|
|
4732
|
-
if (settings === void 0 && config.sandbox?.
|
|
4753
|
+
if (settings === void 0 && config.sandbox?.provider === "outerlayer") return { ok: true, size: machineSizeOf("small") };
|
|
4733
4754
|
if (settings === void 0) {
|
|
4734
4755
|
const sized2 = sandboxSizeOf(config.build);
|
|
4735
4756
|
return sized2.ok ? sized2 : { ok: false, reason: `${sized2.field} ${sized2.problem}` };
|
|
@@ -4738,6 +4759,12 @@ function sandboxSizeFor(config, jobDir) {
|
|
|
4738
4759
|
const sized = sandboxSizeOf({ cpus: limits2.cpus, memory: String(limits2.memoryBytes), disk: String(limits2.diskBytes) });
|
|
4739
4760
|
return sized.ok ? sized : { ok: false, reason: `the factory's ${settings.machine.size} machine does not fit a sandbox: ${sized.field.replace("runner.build.", "its ")} ${sized.problem}` };
|
|
4740
4761
|
}
|
|
4762
|
+
function containerLimitsOf(size, build) {
|
|
4763
|
+
return { memory: `${Math.max(512, size.memoryMib - SANDBOX_RESERVE_MIB)}m`, cpus: size.vcpu, pids: build?.pids ?? 4096 };
|
|
4764
|
+
}
|
|
4765
|
+
function containerSizeOf(sandbox, asked) {
|
|
4766
|
+
return sandbox.machine === void 0 ? asked : machineSizeOf(sandbox.machine);
|
|
4767
|
+
}
|
|
4741
4768
|
function sandboxClaimOf(config, item, workItemId, settings) {
|
|
4742
4769
|
const workItem = claimItem(config, { item, workItemId, appId: config.appId });
|
|
4743
4770
|
if (config.fleet !== true || settings === void 0) return { workItem, factory: config.appId };
|
|
@@ -4860,14 +4887,16 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
4860
4887
|
log.line(`${tag} not applied from ${recipe.path} of ${recipeRepository}: ${ignoredProperties.map(({ property }) => property).join(", ")} \xB7 a sandbox build runs the image runner.sandbox.image names`);
|
|
4861
4888
|
}
|
|
4862
4889
|
const diskKey = { imageId: diskImageOf(own, sized.size), diskBytes: sized.size.diskGib * GIB2 };
|
|
4863
|
-
const
|
|
4864
|
-
const
|
|
4890
|
+
const managed = own.provider === "outerlayer";
|
|
4891
|
+
const itemDisk = input.workItemId === void 0 || input.queue === "review" ? { state: void 0 } : itemDiskFailed !== void 0 ? { state: { restored: false, reason: itemDiskFailed } } : itemDiskDecision({ fresh: input.fresh, heldElsewhere: input.diskHeldElsewhere, builtin: true, backend: "sandbox", configPath: config.configPath, organizationId: input.organizationId, workItemId: input.workItemId, repository, ...diskKey, managed });
|
|
4892
|
+
let keptDisk = itemDisk.kept;
|
|
4893
|
+
let diskState = itemDisk.state;
|
|
4865
4894
|
if (itemDisk.state?.restored === false) log.line(`${tag} this job starts without a kept disk: ${DISK_REASON_TEXT[itemDisk.state.reason]}`);
|
|
4866
4895
|
const buildId = randomBytes(6).toString("hex");
|
|
4867
4896
|
const runnerId = runnerLabelValue(config.configPath);
|
|
4868
4897
|
const name = sandboxNameOf(runnerId, buildId);
|
|
4869
4898
|
const container = `outerlayer-build-${buildId}`;
|
|
4870
|
-
|
|
4899
|
+
let volumeName = keptDisk?.record.volume ?? container;
|
|
4871
4900
|
const buildDir2 = buildDir(config.configPath, buildId);
|
|
4872
4901
|
const image = own.image;
|
|
4873
4902
|
const containerState = {
|
|
@@ -4923,6 +4952,11 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
4923
4952
|
await bail(reason);
|
|
4924
4953
|
return discardUnusableItemDisk({ kept: keptDisk, reason, why, removeVolume: async () => void 0, endSandbox: (id) => sandboxClient.end(id), onError: (line2) => log.error(`${tag} ${line2}`) });
|
|
4925
4954
|
};
|
|
4955
|
+
const forgetManagedDisk = async (id, err) => {
|
|
4956
|
+
const reason = `the kept sandbox ${id} could not be resumed: ${err.reason ?? describeSandboxError(err)}`;
|
|
4957
|
+
await bail(reason);
|
|
4958
|
+
return discardUnusableItemDisk({ kept: keptDisk, reason, why: "disk_not_restored", removeVolume: async () => void 0, endSandbox: async () => void 0, onError: (line2) => log.error(`${tag} ${line2}`) });
|
|
4959
|
+
};
|
|
4926
4960
|
if (input.aborted()) return bail("", true);
|
|
4927
4961
|
mkdirSync(buildDir2, { recursive: true });
|
|
4928
4962
|
const ghDir = ghConfigDir(buildDir2);
|
|
@@ -4957,13 +4991,16 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
4957
4991
|
const keptSandbox = keptDisk?.record.sandbox;
|
|
4958
4992
|
if (keptSandbox !== void 0) {
|
|
4959
4993
|
runtime.sandbox.resuming.add(keptSandbox);
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4994
|
+
if (!managed) {
|
|
4995
|
+
try {
|
|
4996
|
+
resumed = await resumeKeptSandbox(sandboxClient, keptSandbox, sandboxTimeLimitMinutes(config.timeLimitMinutes));
|
|
4997
|
+
} catch (err) {
|
|
4998
|
+
runtime.sandbox.resuming.delete(keptSandbox);
|
|
4999
|
+
return giveUpItemDisk(`the kept sandbox ${keptSandbox} could not be resumed: ${err instanceof SandboxError ? describeSandboxError(err) : describeCallFailure(err)}`, "disk_not_restored");
|
|
5000
|
+
}
|
|
4965
5001
|
}
|
|
4966
5002
|
}
|
|
5003
|
+
const resume = managed ? keptSandbox : void 0;
|
|
4967
5004
|
let sandbox;
|
|
4968
5005
|
runtime.sandbox.creating.add(buildId);
|
|
4969
5006
|
try {
|
|
@@ -4977,17 +5014,23 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
4977
5014
|
timeLimitMinutes: sandboxTimeLimitMinutes(config.timeLimitMinutes),
|
|
4978
5015
|
network: networkOf(own.allowHosts),
|
|
4979
5016
|
metadata: { [RUNNER_METADATA]: runnerId, [BUILD_METADATA]: buildId },
|
|
4980
|
-
...sandboxClaimOf(config, item.number, input.workItemId, managedBuildSettingsFor(jobDir))
|
|
5017
|
+
...sandboxClaimOf(config, item.number, input.workItemId, managedBuildSettingsFor(jobDir)),
|
|
5018
|
+
...resume === void 0 ? {} : { resume }
|
|
4981
5019
|
}),
|
|
4982
5020
|
sleep: runtime.sandbox.sleep,
|
|
4983
5021
|
aborted: input.aborted,
|
|
4984
5022
|
log: (line2) => log.line(`${tag} ${line2}`)
|
|
4985
5023
|
});
|
|
4986
5024
|
} catch (err) {
|
|
5025
|
+
if (resume !== void 0) runtime.sandbox.resuming.delete(resume);
|
|
4987
5026
|
if (err instanceof ProvisionAborted) {
|
|
4988
5027
|
runtime.sandbox.creating.delete(buildId);
|
|
4989
5028
|
return bail("", true);
|
|
4990
5029
|
}
|
|
5030
|
+
if (resume !== void 0 && err instanceof SandboxError && (err.code === "sandbox_not_resumable" || err.code === "sandbox_provider_refused")) {
|
|
5031
|
+
runtime.sandbox.creating.delete(buildId);
|
|
5032
|
+
return forgetManagedDisk(resume, err);
|
|
5033
|
+
}
|
|
4991
5034
|
const late = err instanceof SandboxError && err.status === 0 ? await lateSandbox(sandboxClient, runnerId, buildId, runtime.sandbox.sleep, input.aborted, (line2) => log.line(`${tag} ${line2}`)) : void 0;
|
|
4992
5035
|
if (late?.kind !== "started") {
|
|
4993
5036
|
runtime.sandbox.creating.delete(buildId);
|
|
@@ -5003,6 +5046,16 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
5003
5046
|
}
|
|
5004
5047
|
sandbox = late.sandbox;
|
|
5005
5048
|
}
|
|
5049
|
+
if (resume !== void 0 && sandbox.id === resume) {
|
|
5050
|
+
resumed = sandbox;
|
|
5051
|
+
} else if (resume !== void 0) {
|
|
5052
|
+
runtime.sandbox.resuming.delete(resume);
|
|
5053
|
+
log.line(`${tag} the gateway answered with sandbox ${sandbox.id}, not the kept sandbox ${resume} \xB7 this job starts without a kept disk`);
|
|
5054
|
+
keptDisk = void 0;
|
|
5055
|
+
diskState = { restored: false, reason: "disk_not_restored" };
|
|
5056
|
+
volumeName = container;
|
|
5057
|
+
containerState.volume = container;
|
|
5058
|
+
}
|
|
5006
5059
|
if (resumed === void 0 && !hasStarted(sandbox.state)) {
|
|
5007
5060
|
const started2 = await awaitStartById({
|
|
5008
5061
|
client: sandboxClient,
|
|
@@ -5064,7 +5117,7 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
5064
5117
|
}
|
|
5065
5118
|
const engine = await host.version();
|
|
5066
5119
|
if (engine === null) return bail("Docker is not available in the sandbox: `docker version` failed");
|
|
5067
|
-
const limits2 =
|
|
5120
|
+
const limits2 = containerLimitsOf(containerSizeOf(sandbox, sized.size), config.build);
|
|
5068
5121
|
const volume = await host.createVolume(volumeName, { [BUILD_LABEL]: buildId, [RUNNER_LABEL]: runnerId });
|
|
5069
5122
|
if (volume.status !== 0) return dockerFailed("creating the build's volume", volume);
|
|
5070
5123
|
const runInput = {
|
|
@@ -5173,7 +5226,7 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
5173
5226
|
keepMissingSetupScripts(containerState, steps);
|
|
5174
5227
|
if (steps.controlPlane !== void 0) environment.controlPlane = steps.controlPlane;
|
|
5175
5228
|
input.save(state, environment);
|
|
5176
|
-
return { ok: true, workdir: CHECKOUT_DIR, state, environment, ...
|
|
5229
|
+
return { ok: true, workdir: CHECKOUT_DIR, state, environment, ...diskState === void 0 ? {} : { disk: diskState } };
|
|
5177
5230
|
}
|
|
5178
5231
|
function asContainerJob(job) {
|
|
5179
5232
|
return { ...job, container: job.sandbox.container };
|
|
@@ -8577,6 +8630,9 @@ async function keepContainerDisk(input) {
|
|
|
8577
8630
|
function saidBy(err) {
|
|
8578
8631
|
return err instanceof SandboxError ? describeSandboxError(err) : describeCallFailure(err);
|
|
8579
8632
|
}
|
|
8633
|
+
function notFound(err) {
|
|
8634
|
+
return err instanceof SandboxError && err.code === "sandbox_not_found";
|
|
8635
|
+
}
|
|
8580
8636
|
async function keepSandboxDisk2(input) {
|
|
8581
8637
|
let dir;
|
|
8582
8638
|
try {
|
|
@@ -8588,19 +8644,20 @@ async function keepSandboxDisk2(input) {
|
|
|
8588
8644
|
try {
|
|
8589
8645
|
await client2.pause(sandboxId);
|
|
8590
8646
|
} catch (err) {
|
|
8591
|
-
return { ok: false, reason: `the sandbox could not be paused: ${saidBy(err)}
|
|
8647
|
+
return { ok: false, reason: `the sandbox could not be paused: ${saidBy(err)}`, ...err instanceof SandboxError && err.status === 404 ? { notFound: true } : {} };
|
|
8592
8648
|
}
|
|
8593
8649
|
const older = readItemDisk(dir)?.record.sandbox;
|
|
8594
8650
|
if (older !== void 0 && older !== sandboxId) {
|
|
8595
8651
|
try {
|
|
8596
8652
|
await client2.end(older);
|
|
8597
8653
|
} catch (err) {
|
|
8598
|
-
return { ok: false, reason: `the work item's older disk could not be replaced: its sandbox ${older} was not ended (${saidBy(err)})` };
|
|
8654
|
+
if (!(input.managed === true && notFound(err))) return { ok: false, reason: `the work item's older disk could not be replaced: its sandbox ${older} was not ended (${saidBy(err)})` };
|
|
8655
|
+
input.log(`the work item's older kept sandbox ${older} was not ended: OuterLayer has no such sandbox \xB7 the new record replaces its record`);
|
|
8599
8656
|
}
|
|
8600
8657
|
}
|
|
8601
8658
|
let staging;
|
|
8602
8659
|
try {
|
|
8603
|
-
const record = { ...recordOf(input, "sandbox", 0, input.buildVolume), sandbox: sandboxId };
|
|
8660
|
+
const record = { ...recordOf(input, "sandbox", 0, input.buildVolume), sandbox: sandboxId, ...input.managed === true ? { managed: true } : {} };
|
|
8604
8661
|
staging = stagingItemDiskDir(dir);
|
|
8605
8662
|
finish(input, dir, staging, record);
|
|
8606
8663
|
staging = void 0;
|
|
@@ -8615,7 +8672,6 @@ async function keepSandboxDisk2(input) {
|
|
|
8615
8672
|
// src/runner/workspace/finish.ts
|
|
8616
8673
|
function noDiskReason(job, config) {
|
|
8617
8674
|
if (job.workItemId === void 0) return "the job names no work item";
|
|
8618
|
-
if (config.sandbox?.provider === "outerlayer") return "a sandbox that OuterLayer provides ends with its build, so the next job starts in a new one";
|
|
8619
8675
|
if (job.queue === "review") return "a code review reads one commit and leaves nothing to continue";
|
|
8620
8676
|
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`;
|
|
8621
8677
|
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,6 +8734,13 @@ function containerDiskKeeper(input) {
|
|
|
8678
8734
|
input.log.line(`${input.tag} kept the build disk for the work item: ${formatBytes(kept.record.bytes)} allocated`);
|
|
8679
8735
|
};
|
|
8680
8736
|
}
|
|
8737
|
+
var SandboxNotKept = class extends Error {
|
|
8738
|
+
constructor(message, plain3) {
|
|
8739
|
+
super(message);
|
|
8740
|
+
this.plain = plain3;
|
|
8741
|
+
this.name = "SandboxNotKept";
|
|
8742
|
+
}
|
|
8743
|
+
};
|
|
8681
8744
|
function sandboxDiskKeeper(input) {
|
|
8682
8745
|
const state = input.job.sandbox;
|
|
8683
8746
|
if (state === void 0) return void 0;
|
|
@@ -8689,10 +8752,13 @@ function sandboxDiskKeeper(input) {
|
|
|
8689
8752
|
if (state.sandboxId === "" || state.diskKey === void 0 || state.container.imageId === void 0) return void 0;
|
|
8690
8753
|
const { imageId, diskBytes } = state.diskKey;
|
|
8691
8754
|
const { sandboxId } = state;
|
|
8755
|
+
const managed = input.config.sandbox?.provider === "outerlayer";
|
|
8692
8756
|
const keep = async () => {
|
|
8693
|
-
const kept = await keepSandboxDisk2({ ...target(input, imageId, diskBytes), client: input.client(), sandboxId, buildVolume: state.container.volume });
|
|
8694
|
-
if (!kept.ok) throw new
|
|
8695
|
-
input.log.line(
|
|
8757
|
+
const kept = await keepSandboxDisk2({ ...target(input, imageId, diskBytes), client: input.client(), sandboxId, buildVolume: state.container.volume, managed });
|
|
8758
|
+
if (!kept.ok) throw new SandboxNotKept(kept.reason, managed && kept.notFound === true);
|
|
8759
|
+
input.log.line(
|
|
8760
|
+
managed ? `${input.tag} kept sandbox ${sandboxId} for the work item: it is paused, and the work item's next job resumes it` : `${input.tag} kept the build disk for the work item: sandbox ${sandboxId} is paused`
|
|
8761
|
+
);
|
|
8696
8762
|
};
|
|
8697
8763
|
return {
|
|
8698
8764
|
container: state.container.container,
|
|
@@ -8700,9 +8766,19 @@ function sandboxDiskKeeper(input) {
|
|
|
8700
8766
|
imageId: state.container.imageId,
|
|
8701
8767
|
runnerId: runnerLabelValue(input.config.configPath),
|
|
8702
8768
|
keep,
|
|
8703
|
-
|
|
8769
|
+
keptAlready: () => keptByThisJob(input, sandboxId),
|
|
8770
|
+
warn: (text2, err) => err instanceof SandboxNotKept && err.plain ? input.log.line(`${input.tag} ${text2}`) : input.log.error(`${input.tag} ${text2}`)
|
|
8704
8771
|
};
|
|
8705
8772
|
}
|
|
8773
|
+
function keptByThisJob(input, sandboxId) {
|
|
8774
|
+
let record;
|
|
8775
|
+
try {
|
|
8776
|
+
record = readItemDisk(itemDiskDir(input.config.configPath, input.job.organizationId, input.job.workItemId))?.record;
|
|
8777
|
+
} catch {
|
|
8778
|
+
return false;
|
|
8779
|
+
}
|
|
8780
|
+
return record?.sandbox === sandboxId && record.claimId === input.job.claimId;
|
|
8781
|
+
}
|
|
8706
8782
|
var MAX_WORK_BYTES = 67108864;
|
|
8707
8783
|
var WORK_COPY_MS = 3e5;
|
|
8708
8784
|
var NO_CHECKOUT = 3;
|
|
@@ -14147,4 +14223,4 @@ async function runHostChecks(input) {
|
|
|
14147
14223
|
}
|
|
14148
14224
|
}
|
|
14149
14225
|
|
|
14150
|
-
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,
|
|
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, usableCpus, vmAlive, withJobTimeLimit, withTunnelLog, workRestoredEnv, workdirProblem, writeGuestGhConfig, writeRunnerInit };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
4
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
4
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-WO3RLQ7Z.js';
|
|
5
5
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
6
6
|
import { dirname } from 'path';
|
|
7
7
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
4
|
import { detectActiveSession, transcriptPathForSession } from './chunk-A7M4QXVX.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-5RJDLVQJ.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-VGR27BYJ.js';
|
|
8
8
|
import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { toolsDockerfile } from './chunk-
|
|
4
|
-
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-
|
|
3
|
+
import { toolsDockerfile } from './chunk-2THRR6Z2.js';
|
|
4
|
+
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-N2ACTZT6.js';
|
|
5
5
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
6
6
|
import { withNewTokenRetry, REFUSED_BY_REMOTE } from './chunk-FJGYU2EK.js';
|
|
7
|
-
import { runnerLabelValue } from './chunk-
|
|
7
|
+
import { runnerLabelValue } from './chunk-YGLTXCI5.js';
|
|
8
8
|
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-47NQTKLX.js';
|
|
9
9
|
import { removeLeftoverGitLocks } from './chunk-A2WPWZJA.js';
|
|
10
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-
|
|
11
|
-
import { withGitConfig, tokenHeader } from './chunk-
|
|
10
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-WO3RLQ7Z.js';
|
|
11
|
+
import { withGitConfig, tokenHeader } from './chunk-TKHQAEE4.js';
|
|
12
12
|
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-MHXUQI67.js';
|
|
13
13
|
import { mkdirSync, writeFileSync, existsSync, mkdtempSync, rmSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
|
|
14
14
|
import { tmpdir } from 'os';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-
|
|
4
|
-
import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-
|
|
3
|
+
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-6C7WHPGM.js';
|
|
4
|
+
import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-WE2JKEK7.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { defaultRunnerConfigPath } from './chunk-
|
|
7
|
-
import { runnerDir, RUNNER_DIR_MODE } from './chunk-
|
|
6
|
+
import { defaultRunnerConfigPath } from './chunk-WOSDWWBI.js';
|
|
7
|
+
import { runnerDir, RUNNER_DIR_MODE } from './chunk-WO3RLQ7Z.js';
|
|
8
8
|
import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
|
|
9
9
|
import { dirname, sep, join, resolve } from 'path';
|
|
10
10
|
import { spawnSync } from 'child_process';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { stripTerminalControls } from './chunk-
|
|
4
|
-
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-MWCIVIJD.js';
|
|
4
|
+
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-3MIYTEPW.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-7EH4LDVU.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,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-
|
|
3
|
+
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-PJWGLJFB.js';
|
|
4
4
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
5
5
|
import { detectActiveSession } from './chunk-A7M4QXVX.js';
|
|
6
|
-
import { autoConnect } from './chunk-
|
|
6
|
+
import { autoConnect } from './chunk-5RJDLVQJ.js';
|
|
7
7
|
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-DV44KCM6.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-VGR27BYJ.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
12
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-JIMISJV2.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { uploadSpooledSteps } from './chunk-
|
|
3
|
+
import { uploadSpooledSteps } from './chunk-GMGMEXXK.js';
|
|
4
4
|
import { LaunchFilter } from './chunk-C2PZOLN7.js';
|
|
5
5
|
import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-DV44KCM6.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-VGR27BYJ.js';
|
|
8
8
|
import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-HWVMRETT.js';
|
|
9
|
-
import { signerFor, signRunnerRequest } from './chunk-
|
|
10
|
-
import { SCRUB_ENV_VARIABLE } from './chunk-
|
|
11
|
-
import { writeSyncStatus, logHookError, spoolDir } from './chunk-
|
|
9
|
+
import { signerFor, signRunnerRequest } from './chunk-DYL4R2GO.js';
|
|
10
|
+
import { SCRUB_ENV_VARIABLE } from './chunk-TKHQAEE4.js';
|
|
11
|
+
import { writeSyncStatus, logHookError, spoolDir } from './chunk-F2N6LZL5.js';
|
|
12
12
|
import { readLatestProvenanceForSession, readContextProvenance } from './chunk-545P7JY7.js';
|
|
13
13
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
14
14
|
import { hookExecSpoolPath } from './chunk-2ZF62BAK.js';
|