@outerlayer/cli 0.40.0-next.20261116150436 → 0.40.0-next.20261116164749
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-WO2OJYRM.js → agent-setup-C4SP76RQ.js} +7 -7
- package/dist/{agent-subcommand-627NTYCT.js → agent-subcommand-RIHIZDJL.js} +1 -1
- package/dist/{bridge-ND2CAJZ5.js → bridge-LUFXLKB3.js} +2 -2
- package/dist/{build-F6YPIWXX.js → build-IOMZSFXX.js} +7 -7
- package/dist/{build-disk-NUB2IQLK.js → build-disk-GDBXPKVU.js} +5 -5
- package/dist/build-info.json +1 -1
- package/dist/{builder-2SO7EBSA.js → builder-FZCJZRB5.js} +4 -4
- package/dist/{caller-EPKVV4XS.js → caller-BYIS3VLG.js} +7 -7
- package/dist/{check-TEABORIU.js → check-B7GD472D.js} +38 -38
- package/dist/{chunk-DQ77PKPL.js → chunk-2NMP6JTW.js} +3 -3
- package/dist/{chunk-4BPYPPWG.js → chunk-2TOYDBQE.js} +1 -1
- package/dist/{chunk-S2FSJ7H2.js → chunk-3DUYDFZS.js} +5 -5
- package/dist/{chunk-Q7AUTP6Z.js → chunk-3VORJPTM.js} +6 -6
- package/dist/{chunk-J74SL6JI.js → chunk-46D7LPS3.js} +3 -2
- package/dist/{chunk-PZAI36UE.js → chunk-4OLHKE6K.js} +2 -2
- package/dist/{chunk-QXKFQDV2.js → chunk-5BNP3YPA.js} +2 -2
- package/dist/{chunk-Z7OGU6UD.js → chunk-5IDATPRL.js} +1 -1
- package/dist/{chunk-EY5PK33O.js → chunk-5MSUF63A.js} +7 -11
- package/dist/{chunk-XAATEDXK.js → chunk-6UFFSMQG.js} +2 -2
- package/dist/{chunk-RZRR2IUL.js → chunk-7DM2GBSI.js} +1 -1
- package/dist/{chunk-7MVTX74D.js → chunk-7VW73CPS.js} +1 -1
- package/dist/{chunk-QZ3QG4FE.js → chunk-AEGLAS4Y.js} +1 -1
- package/dist/{chunk-OTB63HQF.js → chunk-AFSJ4GHZ.js} +1 -1
- package/dist/{chunk-5XAV7LGB.js → chunk-ALJMNIHW.js} +1 -1
- package/dist/{chunk-QZBZQVZK.js → chunk-BKN5HQCX.js} +3 -3
- package/dist/{chunk-L7MCKDRU.js → chunk-BQUUKECC.js} +5 -5
- package/dist/{chunk-7TZ6N25K.js → chunk-BXDQFZAO.js} +1 -1
- package/dist/{chunk-LAMPJU6V.js → chunk-C2ZGJRMQ.js} +1 -1
- package/dist/{chunk-EOTRNAXM.js → chunk-CNFP7ZXP.js} +2 -2
- package/dist/{chunk-ZX6NQ4TE.js → chunk-DIF5NMRF.js} +1 -1
- package/dist/{chunk-SBEUAS2P.js → chunk-DXFE3GY5.js} +2 -2
- package/dist/{chunk-YW35ZKUI.js → chunk-E6CZJDZN.js} +25 -31
- package/dist/{chunk-HHMFCT5K.js → chunk-EHF2UWZC.js} +1 -1
- package/dist/{chunk-ETXP6DPT.js → chunk-F5DIRRMG.js} +1 -1
- package/dist/{chunk-XDVNW7TR.js → chunk-FNH6OTJ7.js} +6 -6
- package/dist/{chunk-XJTA4GJE.js → chunk-FNPCVOB5.js} +5 -5
- package/dist/{chunk-T3YVHCKG.js → chunk-FVTNWJPF.js} +3 -3
- package/dist/{chunk-GNQF6XLZ.js → chunk-HLUTL43W.js} +68 -37
- package/dist/{chunk-6ZHZXUFW.js → chunk-IVJQXA3H.js} +3 -3
- package/dist/{chunk-C5TJZMYS.js → chunk-KJCEJOJI.js} +1 -1
- package/dist/{chunk-JOED4C6S.js → chunk-KKNOKOS3.js} +7 -7
- package/dist/{chunk-UEK65YH6.js → chunk-KXFHHQ2L.js} +3 -3
- package/dist/{chunk-3BA7WFT5.js → chunk-LFGVSVZD.js} +3 -3
- package/dist/{chunk-XEV7LRU3.js → chunk-MDWAL6FD.js} +1 -1
- package/dist/{chunk-PKIXRFB2.js → chunk-MP4PWSAP.js} +2 -2
- package/dist/{chunk-U7CJ6EPP.js → chunk-NFFFLKX4.js} +3 -3
- package/dist/{chunk-G4TG7RBM.js → chunk-NIHE7WJ6.js} +1 -1
- package/dist/{chunk-7V6MCI6A.js → chunk-OWIG6HOF.js} +2 -2
- package/dist/{chunk-XJVLKMQS.js → chunk-P3FWVFSF.js} +3 -3
- package/dist/{chunk-JR347MV3.js → chunk-PGF36SYX.js} +2 -2
- package/dist/{chunk-TT6C65II.js → chunk-QMQH5MAW.js} +4 -4
- package/dist/{chunk-SQMXHLMF.js → chunk-SCG7JYAQ.js} +3 -3
- package/dist/{chunk-SVJKVEUF.js → chunk-T26E7YR6.js} +2 -2
- package/dist/{chunk-5KM5STHU.js → chunk-T75OODXK.js} +7 -7
- package/dist/{chunk-LUDRPWCQ.js → chunk-TI76I6GK.js} +9 -9
- package/dist/{chunk-VCPR7TRU.js → chunk-TQN2NY2A.js} +1 -1
- package/dist/{chunk-54J6P6BH.js → chunk-TTBMGPDH.js} +2 -2
- package/dist/{chunk-V3Y2LSIQ.js → chunk-TVSEBOHW.js} +2 -2
- package/dist/{chunk-YDZV2E5U.js → chunk-UTZWCNFV.js} +11 -2
- package/dist/{chunk-43GWGP2Z.js → chunk-VEA3VSYK.js} +1 -1
- package/dist/{chunk-65VG7TV5.js → chunk-WTX57JCA.js} +2 -2
- package/dist/{chunk-H32FCHB5.js → chunk-XYJHIH4N.js} +1 -1
- package/dist/{chunk-EZ4DZGES.js → chunk-ZOUXFTGZ.js} +2 -2
- package/dist/{claude-launcher-JUGEXMO7.js → claude-launcher-6JBILMIB.js} +1 -1
- package/dist/{cli-6ZKRVTHP.js → cli-BOV37MES.js} +136 -136
- package/dist/{command-GUYK5W3K.js → command-BLF35JLS.js} +34 -34
- package/dist/{config-XZL5SJFQ.js → config-OKFK2D2R.js} +6 -6
- package/dist/{connect-cmd-SVTZFSRL.js → connect-cmd-DLQVEKAR.js} +5 -5
- package/dist/{container-start-OP4KPMQD.js → container-start-UTZNUW57.js} +31 -31
- package/dist/{context-show-cmd-G2DK7GH3.js → context-show-cmd-WHX2TVDI.js} +6 -6
- package/dist/{control-plane-launch-BWUJZAO2.js → control-plane-launch-FC2CG2WV.js} +5 -5
- package/dist/{demo-record-cmd-DASYPH54.js → demo-record-cmd-TAX3IVEZ.js} +2 -2
- package/dist/{demo-voice-cmd-42WXU6GF.js → demo-voice-cmd-UZ5REOVQ.js} +11 -11
- package/dist/{docker-5IU4WLT5.js → docker-K3AROT4N.js} +4 -4
- package/dist/{doctor-NP25CNXL.js → doctor-W3PWMLJM.js} +33 -33
- package/dist/{emit-artifact-cmd-SVSLY7HB.js → emit-artifact-cmd-QKOYWMHX.js} +10 -10
- package/dist/{emit-criteria-cmd-AOQHGCV3.js → emit-criteria-cmd-UOCPNUZ2.js} +7 -7
- package/dist/{emit-demo-cmd-AIK3WB2Z.js → emit-demo-cmd-7ZP44OBX.js} +11 -11
- package/dist/{emit-finding-cmd-6I4F4UWJ.js → emit-finding-cmd-YNET3JQC.js} +7 -7
- package/dist/{emit-result-cmd-4QS4GPH2.js → emit-result-cmd-YN4UVIR7.js} +9 -9
- package/dist/{emit-step-cmd-3GFMIVRY.js → emit-step-cmd-O67GTOGF.js} +7 -7
- package/dist/{exec-client-ZZQSNFIT.js → exec-client-NCY4LVTP.js} +3 -3
- package/dist/{find-unit-WQBMZAYJ.js → find-unit-6FDRYJ4Q.js} +8 -8
- package/dist/{findings-cmd-CECQLYVP.js → findings-cmd-RVZTJ7F4.js} +7 -7
- package/dist/{fleet-readiness-EQLBI2IT.js → fleet-readiness-XACYKJYF.js} +5 -5
- package/dist/{governing-source-ZZTOBIRP.js → governing-source-GQ3CVSHE.js} +9 -9
- package/dist/{guest-init-K5475ZQO.js → guest-init-VATBVGYG.js} +4 -4
- package/dist/{hook-fast-TBCK3I4E.js → hook-fast-IBQM3XCM.js} +1 -1
- package/dist/{host-checks-5QZYFP37.js → host-checks-IOUQSSNT.js} +29 -29
- package/dist/{pending-I5AP7IJ6.js → host-key-DLFYQJXS.js} +3 -3
- package/dist/{image-tag-DTTH4Z6T.js → image-tag-ZQDFHNOV.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/{init-IXL4YFO3.js → init-5S5HLDZS.js} +29 -29
- package/dist/{init-FP3RUUA5.js → init-YARWGWWK.js} +29 -29
- package/dist/{init-agent-ZUTFIH6K.js → init-agent-NEKBQSKC.js} +29 -29
- package/dist/{init-cmd-CXIVHTCB.js → init-cmd-K4YAB435.js} +11 -11
- package/dist/{init-update-NYCGYG6A.js → init-update-Q35POT3A.js} +8 -8
- package/dist/{install-cmd-BMXDDBPN.js → install-cmd-BMRV5AGB.js} +9 -9
- package/dist/{launch-agent-DPDGHYIW.js → launch-agent-7PKKCS3Y.js} +9 -9
- package/dist/{logs-I4VXXTV5.js → logs-IDRVZ6GR.js} +2 -2
- package/dist/{loop-GFVQWJZ3.js → loop-V6PMHRHF.js} +37 -37
- package/dist/{machine-OTZR4ZMD.js → machine-I4JVJABS.js} +29 -29
- package/dist/{mcp-serve-cmd-5AMUEGSA.js → mcp-serve-cmd-CTLLRVD7.js} +4 -4
- package/dist/{paths-OYHBXFV4.js → paths-JQDBTC6Z.js} +2 -2
- package/dist/{host-key-ZXRIIWZC.js → pending-75AP4OWO.js} +3 -3
- package/dist/{pidfile-PN5VYXTM.js → pidfile-4KKLC5XX.js} +3 -3
- package/dist/{record-H5TSGSHS.js → record-OG5XJVNK.js} +3 -3
- package/dist/{run-cmd-ZWHGXBEN.js → run-cmd-NY7CLM47.js} +7 -7
- package/dist/{runner-env-PS42B5IJ.js → runner-env-J4VFHBTX.js} +8 -8
- package/dist/{runner-identity-WSL54Z2Q.js → runner-identity-MUO7ZRHD.js} +4 -4
- package/dist/{runner-key-UK6POYN4.js → runner-key-YFXERIBI.js} +29 -29
- package/dist/{session-sender-UML25ESX.js → session-sender-YJ7PMFFN.js} +10 -10
- package/dist/{setup-cmd-YE6FV6GI.js → setup-cmd-O4ECRHWY.js} +6 -6
- package/dist/{setup-wiring-W4LVR7LO.js → setup-wiring-OP2LZVND.js} +33 -33
- package/dist/{spec-cmd-IKHLMKLA.js → spec-cmd-ZMB3QZOY.js} +8 -8
- package/dist/{state-ZG4F7Q6L.js → state-HEF6DI57.js} +3 -3
- package/dist/{status-EXAXEXJ7.js → status-PX4MKUNA.js} +29 -29
- package/dist/{sync-cmd-WJCLQ7JV.js → sync-cmd-UR5TLWPA.js} +9 -9
- package/dist/{update-steps-K2TLHXOV.js → update-steps-VNQU2XXZ.js} +30 -30
- package/dist/{watch-BHICLNXC.js → watch-7AEKFGS5.js} +9 -9
- package/dist/{work-claim-cmd-TE65ALQ3.js → work-claim-cmd-N6W62ZKY.js} +12 -12
- package/dist/{work-cmd-ISLS6N6K.js → work-cmd-IYLWLPZJ.js} +7 -7
- package/dist/{work-comment-cmd-2B646ZAR.js → work-comment-cmd-H5RZ4KDR.js} +9 -9
- package/dist/{work-demo-cmd-GF57UCBF.js → work-demo-cmd-JFHZVTFE.js} +7 -7
- package/dist/{work-logs-cmd-YQYCC3UG.js → work-logs-cmd-EEQKE7ES.js} +7 -7
- package/dist/{work-mock-cmd-BLEOHNZZ.js → work-mock-cmd-B6XM6Z4K.js} +7 -7
- package/dist/{work-needs-attention-cmd-E645DC2W.js → work-needs-attention-cmd-NE57YDJ3.js} +7 -7
- package/dist/{work-no-change-cmd-GABW5JNM.js → work-no-change-cmd-S5OLIU64.js} +7 -7
- package/dist/{work-open-pr-cmd-WBVUB7PW.js → work-open-pr-cmd-FXWO45AI.js} +8 -8
- package/dist/{work-pr-cmd-SSYN6MZO.js → work-pr-cmd-4RQHDMGM.js} +7 -7
- package/dist/{work-proofs-cmd-IBJ4EUN3.js → work-proofs-cmd-NLPHORL7.js} +9 -9
- package/dist/{work-proofs-record-QJB44PQV.js → work-proofs-record-5JMCIUAR.js} +15 -15
- package/dist/{work-stop-cmd-75IPCSPF.js → work-stop-cmd-NMECBYHT.js} +7 -7
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-review/SKILL.md +8 -5
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { RUNNER_PROTOCOL } from './chunk-JXZ3LIHN.js';
|
|
4
|
-
import { MAX_TEST_FILE_BYTES, itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems } from './chunk-
|
|
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-5BNP3YPA.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-FVTNWJPF.js';
|
|
10
|
+
import { writeDockerClientConfig } from './chunk-MDWAL6FD.js';
|
|
11
|
+
import { senderPidfile } from './chunk-PGF36SYX.js';
|
|
12
|
+
import { installScrubContext } from './chunk-3DUYDFZS.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-DIF5NMRF.js';
|
|
15
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-OWIG6HOF.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-BQUUKECC.js';
|
|
18
|
+
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-5IDATPRL.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-EHF2UWZC.js';
|
|
22
|
+
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-2TOYDBQE.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-3VORJPTM.js';
|
|
24
|
+
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-FNPCVOB5.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-5MSUF63A.js';
|
|
26
|
+
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-WTX57JCA.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-BKN5HQCX.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, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, providerMayAnswerLater, toolProxyEnvironment } from './chunk-
|
|
32
|
+
import { signerFor } from './chunk-AFSJ4GHZ.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-AEGLAS4Y.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, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, providerMayAnswerLater, toolProxyEnvironment } from './chunk-UTZWCNFV.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';
|
|
@@ -392,9 +392,6 @@ function managedClaudeKeyFor(jobDir) {
|
|
|
392
392
|
function dropManagedClaudeKey(jobDir) {
|
|
393
393
|
held.delete(jobDir);
|
|
394
394
|
}
|
|
395
|
-
function managedClaudeKeyValues() {
|
|
396
|
-
return [...everHeld];
|
|
397
|
-
}
|
|
398
395
|
function managedClaudeKeyValuesFor(jobDir) {
|
|
399
396
|
const key = everHeldBy.get(jobDir);
|
|
400
397
|
return key === void 0 ? [] : [key];
|
|
@@ -472,9 +469,6 @@ function proxiedEnvironment(jobDir) {
|
|
|
472
469
|
for (const variable of held2.get(jobDir)?.proxied ?? []) env[variable.name] = STAND_IN;
|
|
473
470
|
return env;
|
|
474
471
|
}
|
|
475
|
-
function managedBuildSettingValues() {
|
|
476
|
-
return [...new Set([...held2.values()].flatMap((settings) => [...settings.variables, ...settings.proxied ?? []].map(({ value }) => value)))];
|
|
477
|
-
}
|
|
478
472
|
function managedBuildSettingValuesFor(jobDir) {
|
|
479
473
|
const settings = held2.get(jobDir);
|
|
480
474
|
return [...new Set([...settings?.variables ?? [], ...settings?.proxied ?? []].map(({ value }) => value))];
|
|
@@ -4789,7 +4783,7 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
4789
4783
|
const { config, runtime, item, itemKey, jobDir, log, tokens } = input;
|
|
4790
4784
|
const tag = itemTag({ item: item.number, organizationId: input.organizationId, claimId: input.claimId });
|
|
4791
4785
|
const logPath = join(jobDir, "provision.log");
|
|
4792
|
-
const fail = (reason, transient = false) => ({ ok: false, reason, ...transient ? { transient: true } : {} });
|
|
4786
|
+
const fail = (reason, transient = false, retryAfterMs) => ({ ok: false, reason, ...transient ? { transient: true } : {}, ...transient && retryAfterMs !== void 0 ? { retryAfterMs } : {} });
|
|
4793
4787
|
const own = config.sandbox;
|
|
4794
4788
|
if (own === void 0) return fail("runner.sandbox is not set in the config file");
|
|
4795
4789
|
const repositories = repositoriesOf({ repositories: input.repositories, repository: item.specRepository, branch: input.branch });
|
|
@@ -4884,13 +4878,13 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
4884
4878
|
variables: env.variables,
|
|
4885
4879
|
cliVersion: input.cliVersion
|
|
4886
4880
|
};
|
|
4887
|
-
const bail = async (reason, aborted2 = false, transient = false) => {
|
|
4881
|
+
const bail = async (reason, aborted2 = false, transient = false, retryAfterMs) => {
|
|
4888
4882
|
try {
|
|
4889
4883
|
await cleanupSandbox(runtime, { buildId, sandboxId: state.sandboxId, container: containerState });
|
|
4890
4884
|
} catch (err) {
|
|
4891
4885
|
log.error(`${tag} cleanup failed: ${describeCallFailure(err)}`);
|
|
4892
4886
|
}
|
|
4893
|
-
return aborted2 ? { ok: false, reason: "ended before provision finished", aborted: true } : fail(reason, transient);
|
|
4887
|
+
return aborted2 ? { ok: false, reason: "ended before provision finished", aborted: true } : fail(reason, transient, retryAfterMs);
|
|
4894
4888
|
};
|
|
4895
4889
|
const giveUpItemDisk = async (reason, why) => {
|
|
4896
4890
|
await bail(reason);
|
|
@@ -4972,7 +4966,7 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
4972
4966
|
return { ok: false, reason: held3, held: true };
|
|
4973
4967
|
}
|
|
4974
4968
|
const transient = late?.kind !== "timed_out" && late?.kind !== "ended" && err instanceof SandboxError && providerMayAnswerLater(err);
|
|
4975
|
-
return bail(`The provider refused to create the sandbox: ${slowStartReason(late) ?? (err instanceof SandboxError ? describeSandboxError(err) : describeCallFailure(err))}`, false, transient);
|
|
4969
|
+
return bail(`The provider refused to create the sandbox: ${slowStartReason(late) ?? (err instanceof SandboxError ? describeSandboxError(err) : describeCallFailure(err))}`, false, transient, err instanceof SandboxError ? err.retryAfterMs : void 0);
|
|
4976
4970
|
}
|
|
4977
4971
|
sandbox = late.sandbox;
|
|
4978
4972
|
}
|
|
@@ -9695,7 +9689,7 @@ function mergeScrubConfig(a, b) {
|
|
|
9695
9689
|
function releaseScrub(config, home, jobDir, agents = defaultAgents()) {
|
|
9696
9690
|
const merged = mergeScrubConfig(config.scrub, readCloudConfig(home).scrub);
|
|
9697
9691
|
const secrets = [...headerVariables(config.build?.destinations), ...strippedVariables(agents)].map((name) => process.env[name] ?? "");
|
|
9698
|
-
const managed = config.fleet === true
|
|
9692
|
+
const managed = config.fleet === true && jobDir !== void 0 ? [...managedClaudeKeyValuesFor(jobDir), ...managedBuildSettingValuesFor(jobDir)] : [];
|
|
9699
9693
|
const held3 = [...runnerAgents(agents).map((agent) => currentAgentCredential(process.env, agent.descriptor.id, agents)?.value), ...removedAgentCredentialValues(), ...managed].filter((value) => value !== void 0);
|
|
9700
9694
|
return { literals: [...scrubList(merged?.literals), ...secrets, ...held3], patterns: scrubList(merged?.patterns) };
|
|
9701
9695
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-AEGLAS4Y.js';
|
|
4
4
|
import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
|
|
5
5
|
import { join, basename, sep, resolve } from 'path';
|
|
6
6
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
3
|
+
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-46D7LPS3.js';
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-FNPCVOB5.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-DV44KCM6.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-NIHE7WJ6.js';
|
|
8
8
|
import { parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
|
|
@@ -129,14 +129,14 @@ function governingDir(cwd) {
|
|
|
129
129
|
async function testProofMode(cwd) {
|
|
130
130
|
const dir = governingDir(cwd);
|
|
131
131
|
if (dir === void 0) return "any";
|
|
132
|
-
const { testProofIn } = await import('./host-checks-
|
|
132
|
+
const { testProofIn } = await import('./host-checks-IOUQSSNT.js');
|
|
133
133
|
return testProofIn(dir);
|
|
134
134
|
}
|
|
135
135
|
async function judgeCheckName(cwd) {
|
|
136
136
|
const dir = governingDir(cwd);
|
|
137
137
|
if (dir === void 0) return {};
|
|
138
138
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
139
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
139
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-IOUQSSNT.js');
|
|
140
140
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
141
141
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
142
142
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -372,7 +372,7 @@ async function runWorkProofs(opts) {
|
|
|
372
372
|
async function runWorkProofsCommand(opts) {
|
|
373
373
|
try {
|
|
374
374
|
if (opts.record || opts.check) {
|
|
375
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
375
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-5JMCIUAR.js');
|
|
376
376
|
const result2 = await runWorkProofsRecord(opts);
|
|
377
377
|
process.exitCode = result2.exitCode;
|
|
378
378
|
return;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { detectActiveSession } from './chunk-A7M4QXVX.js';
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
5
|
-
import { workPageUrl } from './chunk-
|
|
4
|
+
import { autoConnect } from './chunk-4OLHKE6K.js';
|
|
5
|
+
import { workPageUrl } from './chunk-7DM2GBSI.js';
|
|
6
6
|
import { sanitizeTerminal } from './chunk-DV44KCM6.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-
|
|
9
|
-
import { signRunnerRequest } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-NIHE7WJ6.js';
|
|
9
|
+
import { signRunnerRequest } from './chunk-AFSJ4GHZ.js';
|
|
10
10
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-JIMISJV2.js';
|
|
@@ -563,7 +563,7 @@ async function runWorkLinkSession(opts) {
|
|
|
563
563
|
return await linkSession(opts);
|
|
564
564
|
} catch (err) {
|
|
565
565
|
if (opts.logFailures) {
|
|
566
|
-
const { logHookError } = await import('./hook-fast-
|
|
566
|
+
const { logHookError } = await import('./hook-fast-IBQM3XCM.js');
|
|
567
567
|
const reason = err instanceof Error ? err.message : String(err);
|
|
568
568
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
569
569
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-
|
|
3
|
+
import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-MDWAL6FD.js';
|
|
4
4
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
5
|
-
import { EXEC_PORT } from './chunk-
|
|
6
|
-
import { RELAY_PORT } from './chunk-
|
|
5
|
+
import { EXEC_PORT } from './chunk-2TOYDBQE.js';
|
|
6
|
+
import { RELAY_PORT } from './chunk-UTZWCNFV.js';
|
|
7
7
|
import { spawn, spawnSync } from 'child_process';
|
|
8
8
|
import { symlinkSync, lstatSync, writeFileSync, chmodSync, mkdirSync, existsSync } from 'fs';
|
|
9
9
|
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
3
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-7VW73CPS.js';
|
|
4
4
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
5
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
6
|
-
import { renderUpdateSteps } from './chunk-
|
|
5
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-T75OODXK.js';
|
|
6
|
+
import { renderUpdateSteps } from './chunk-P3FWVFSF.js';
|
|
7
7
|
import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
|
|
8
|
-
import { writeFleetState } from './chunk-
|
|
9
|
-
import { writePendingUpdate } from './chunk-
|
|
10
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
11
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-
|
|
12
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, withJobTimeLimit, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-
|
|
8
|
+
import { writeFleetState } from './chunk-ALJMNIHW.js';
|
|
9
|
+
import { writePendingUpdate } from './chunk-XYJHIH4N.js';
|
|
10
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-KKNOKOS3.js';
|
|
11
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-F5DIRRMG.js';
|
|
12
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, withJobTimeLimit, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-E6CZJDZN.js';
|
|
13
13
|
import { RUNNER_PROTOCOL } from './chunk-JXZ3LIHN.js';
|
|
14
|
-
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-
|
|
15
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
16
|
-
import { RepoFilter } from './chunk-
|
|
14
|
+
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-46D7LPS3.js';
|
|
15
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-LFGVSVZD.js';
|
|
16
|
+
import { RepoFilter } from './chunk-3DUYDFZS.js';
|
|
17
17
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
18
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
18
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-DIF5NMRF.js';
|
|
19
19
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
20
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-
|
|
21
|
-
import { fetchCommit, readBranchHead, diffBetween } from './chunk-
|
|
22
|
-
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-
|
|
20
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-OWIG6HOF.js';
|
|
21
|
+
import { fetchCommit, readBranchHead, diffBetween } from './chunk-BQUUKECC.js';
|
|
22
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-C2ZGJRMQ.js';
|
|
23
23
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
24
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
25
|
-
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-
|
|
26
|
-
import { keyRunnerFactory, readsOnly, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-
|
|
27
|
-
import { allocatedBytes, freeBytes, formatBytes } from './chunk-
|
|
28
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-
|
|
29
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
30
|
-
import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-
|
|
31
|
-
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-
|
|
24
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-3VORJPTM.js';
|
|
25
|
+
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-FNPCVOB5.js';
|
|
26
|
+
import { keyRunnerFactory, readsOnly, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-5MSUF63A.js';
|
|
27
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-WTX57JCA.js';
|
|
28
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-BKN5HQCX.js';
|
|
29
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-AFSJ4GHZ.js';
|
|
30
|
+
import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-AEGLAS4Y.js';
|
|
31
|
+
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-UTZWCNFV.js';
|
|
32
32
|
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-5XEO7FJW.js';
|
|
33
|
-
import { cleanAttachmentName } from './chunk-
|
|
33
|
+
import { cleanAttachmentName } from './chunk-VEA3VSYK.js';
|
|
34
34
|
import { jobAgent, jobCommandEnv, runnerAgents, judgeAgent } from './chunk-MHXUQI67.js';
|
|
35
35
|
import { defaultAgents, resolvePackRoot } from './chunk-MB6OS6TU.js';
|
|
36
36
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
@@ -1248,14 +1248,14 @@ var PROVISION_RETRY_WAIT_MS = 3e5;
|
|
|
1248
1248
|
function retryKeyOf(job) {
|
|
1249
1249
|
return `${job.appId ?? ""}:${job.workItemId ?? String(job.item)}`;
|
|
1250
1250
|
}
|
|
1251
|
-
function noteProvisionRetry(counts, key, reason, nowMs) {
|
|
1251
|
+
function noteProvisionRetry(counts, key, reason, nowMs, askedWaitMs = 0) {
|
|
1252
1252
|
const failures = (counts.get(key) ?? 0) + 1;
|
|
1253
1253
|
if (failures >= PROVISION_RETRY_LIMIT) {
|
|
1254
1254
|
counts.delete(key);
|
|
1255
1255
|
return { kind: "give_up", failures, reason: `${reason} (provision failed this way ${failures} times in a row)` };
|
|
1256
1256
|
}
|
|
1257
1257
|
counts.set(key, failures);
|
|
1258
|
-
const waitMs = PROVISION_RETRY_WAIT_MS * 2 ** (failures - 1);
|
|
1258
|
+
const waitMs = Math.max(PROVISION_RETRY_WAIT_MS * 2 ** (failures - 1), askedWaitMs);
|
|
1259
1259
|
return { kind: "retry", failures, waitMs, hold: { untilMs: nowMs + waitMs, reason } };
|
|
1260
1260
|
}
|
|
1261
1261
|
function provisionRetryHoldActive(hold, nowMs) {
|
|
@@ -1413,7 +1413,7 @@ function mergeAnswers(answers) {
|
|
|
1413
1413
|
const earlier = /* @__PURE__ */ new Set();
|
|
1414
1414
|
const keyOf = (entry) => {
|
|
1415
1415
|
const place = entry.refs?.[0];
|
|
1416
|
-
return [entry.id, entry.result, place?.path ?? ""
|
|
1416
|
+
return [entry.id, entry.result, place?.path ?? ""].join("\0");
|
|
1417
1417
|
};
|
|
1418
1418
|
for (const answer of answers) {
|
|
1419
1419
|
const kept = answer.items.filter((entry) => !earlier.has(keyOf(entry)));
|
|
@@ -1424,14 +1424,39 @@ function mergeAnswers(answers) {
|
|
|
1424
1424
|
const reviewed = lists.length === 0 ? void 0 : [...new Set(lists.flat())];
|
|
1425
1425
|
const verdicts = /* @__PURE__ */ new Map();
|
|
1426
1426
|
for (const answer of answers) {
|
|
1427
|
-
for (const { id, verdict } of answer.previous ?? [])
|
|
1427
|
+
for (const { id, verdict, line } of answer.previous ?? []) {
|
|
1428
|
+
const held = verdicts.get(id);
|
|
1429
|
+
if (held?.verdict !== "open") verdicts.set(id, verdict === "open" && line !== void 0 ? { verdict, line } : { verdict });
|
|
1430
|
+
else if (verdict === "open" && held.line === void 0 && line !== void 0) held.line = line;
|
|
1431
|
+
}
|
|
1428
1432
|
}
|
|
1429
|
-
const previous = answers.some((answer) => answer.previous !== void 0) ? [...verdicts].map(([id,
|
|
1433
|
+
const previous = answers.some((answer) => answer.previous !== void 0) ? [...verdicts].map(([id, said2]) => ({ id, ...said2 })) : void 0;
|
|
1430
1434
|
const failed2 = answers.some((answer) => answer.result === "fail") || items.some((entry) => entry.result === "fail");
|
|
1431
1435
|
const said = answers.filter((answer) => answer.result !== void 0);
|
|
1432
1436
|
const result = failed2 ? "fail" : said.length > 0 && said.every((answer) => answer.result === "pass") ? "pass" : void 0;
|
|
1433
1437
|
return { ...result === void 0 ? {} : { result }, items, ...reviewed === void 0 ? {} : { reviewed }, ...previous === void 0 ? {} : { previous } };
|
|
1434
1438
|
}
|
|
1439
|
+
function carryProblems(merged, stored) {
|
|
1440
|
+
const verdicts = new Map((merged.previous ?? []).map((entry) => [entry.id, entry]));
|
|
1441
|
+
const kept = [];
|
|
1442
|
+
const decided = /* @__PURE__ */ new Set();
|
|
1443
|
+
for (const problem of stored) {
|
|
1444
|
+
if (problem.status === "fixed" || decided.has(problem.id)) continue;
|
|
1445
|
+
decided.add(problem.id);
|
|
1446
|
+
const said = verdicts.get(problem.id);
|
|
1447
|
+
if (problem.status === "not_a_problem" || said?.verdict === "fixed") continue;
|
|
1448
|
+
const line = said?.line ?? problem.line ?? void 0;
|
|
1449
|
+
kept.push({
|
|
1450
|
+
id: problem.id,
|
|
1451
|
+
result: "fail",
|
|
1452
|
+
kind: problem.kind,
|
|
1453
|
+
...problem.title === "" ? {} : { title: problem.title },
|
|
1454
|
+
...problem.reason === "" ? {} : { reason: problem.reason },
|
|
1455
|
+
...problem.path === "" ? {} : { refs: [{ path: problem.path, ...line === void 0 ? {} : { line } }] }
|
|
1456
|
+
});
|
|
1457
|
+
}
|
|
1458
|
+
return { ...merged, items: [...kept, ...merged.items.filter((entry) => !decided.has(entry.id))] };
|
|
1459
|
+
}
|
|
1435
1460
|
function unreviewedFiles(changed, reviewed) {
|
|
1436
1461
|
if (reviewed === void 0) return void 0;
|
|
1437
1462
|
const read = [...new Set(reviewed.map((path) => path.replace(/^\/+/, "").replace(/^outerlayer\/judge\/tree\//, "")))];
|
|
@@ -1501,7 +1526,8 @@ function reviewRecord(input) {
|
|
|
1501
1526
|
reviewers: input.runs.map((run) => ({ name: run.name, turns: run.turns ?? null, seconds: Math.round(run.seconds * 10) / 10, costUsd: run.costUsd ?? null, answered: run.answered })),
|
|
1502
1527
|
files: { read: (files?.read ?? []).slice(0, FILES_MAX), notRead: (files?.missed ?? []).slice(0, FILES_MAX) },
|
|
1503
1528
|
problems,
|
|
1504
|
-
|
|
1529
|
+
// The gateway takes a verdict's id and word. The line a verdict names is the host's, for the problem it keeps.
|
|
1530
|
+
verdicts: (input.merged.previous ?? []).slice(0, CODE_REVIEW_PROBLEMS_MAX).map(({ id, verdict }) => ({ id, verdict }))
|
|
1505
1531
|
};
|
|
1506
1532
|
}
|
|
1507
1533
|
|
|
@@ -1537,6 +1563,7 @@ function readStoredProblems(data) {
|
|
|
1537
1563
|
{
|
|
1538
1564
|
id: row.id,
|
|
1539
1565
|
status: row.status,
|
|
1566
|
+
kind: problemKind(row.kind),
|
|
1540
1567
|
title: typeof row.title === "string" ? row.title : "",
|
|
1541
1568
|
reason: typeof row.reason === "string" ? row.reason : "",
|
|
1542
1569
|
path: typeof row.path === "string" ? row.path : "",
|
|
@@ -1603,7 +1630,7 @@ function reviewAnswerProtocol(brief, answer) {
|
|
|
1603
1630
|
|
|
1604
1631
|
This section comes from the factory host and overrides any other answer format above. \`${JUDGE_DIR}/files.md\` lists the changed files, \`${JUDGE_DIR}/diff.patch\` holds the change and \`${JUDGE_TREE}/\` the files of the commit under review.
|
|
1605
1632
|
|
|
1606
|
-
Write your answer as JSON to \`${answer}\`: \`{"reviewed":["<changed file path>"],"previous":[{"id":"<id in previous.json>","verdict":"fixed"|"open"}],"problems":[{"id":"<a short name>","kind":"bug"|"security"|"data"|"test"|"docs"|"comment","title":"<a short name>","reason":"<one to three sentences>","refs":[{"path":"<path relative to ${JUDGE_TREE}/>","line":<the line in the commit>}]}]}\`. Each problem is unique by its id in the answer, and names in \`refs\` the file and line it is about. \`reviewed\` lists each changed file you read in full, by its path in the repository. \`previous\` gives a verdict on each defect in \`previous.json\`, when the file exists. \`kind\` is what the problem is about, and \`bug\` when none fits. A reason quotes the decisive line or names what is missing. An answer with no problems lists none.
|
|
1633
|
+
Write your answer as JSON to \`${answer}\`: \`{"reviewed":["<changed file path>"],"previous":[{"id":"<id in previous.json>","verdict":"fixed"|"open","line":<its line in the commit, when open>}],"problems":[{"id":"<a short name>","kind":"bug"|"security"|"data"|"test"|"docs"|"comment","title":"<a short name>","reason":"<one to three sentences>","refs":[{"path":"<path relative to ${JUDGE_TREE}/>","line":<the line in the commit>}]}]}\`. Each problem is unique by its id in the answer, and names in \`refs\` the file and line it is about. \`reviewed\` lists each changed file you read in full, by its path in the repository. \`previous\` gives a verdict on each defect in \`previous.json\`, when the file exists. Never list a defect of \`previous.json\` in \`problems\`: the host keeps each one that is still open. \`kind\` is what the problem is about, and \`bug\` when none fits. A reason quotes the decisive line or names what is missing. An answer with no problems lists none.
|
|
1607
1634
|
`;
|
|
1608
1635
|
}
|
|
1609
1636
|
function parseReviewAnswer(text) {
|
|
@@ -1714,7 +1741,7 @@ async function runReviewJob(input) {
|
|
|
1714
1741
|
const first = reviewed.runs[0];
|
|
1715
1742
|
return await notRun(first.answer?.ok === false ? first.answer.reason : first.end.finished ? "the review wrote no answer file" : first.end.reason);
|
|
1716
1743
|
}
|
|
1717
|
-
const merged = mergeAnswers(answers);
|
|
1744
|
+
const merged = carryProblems(mergeAnswers(answers), stored ?? []);
|
|
1718
1745
|
const finder = await loadCitationFinder();
|
|
1719
1746
|
let ownTree = false;
|
|
1720
1747
|
try {
|
|
@@ -2826,7 +2853,8 @@ async function fleetHeld(state) {
|
|
|
2826
2853
|
}
|
|
2827
2854
|
const jailer = state.config.managed === true && state.deps.blocked?.jailer === void 0 ? await jailerState(state) : void 0;
|
|
2828
2855
|
if (holdWhenBlocked(state, jailer)) return true;
|
|
2829
|
-
|
|
2856
|
+
if (await holdOffForDisk(state)) return true;
|
|
2857
|
+
return holdAfterProvisionRetry(state);
|
|
2830
2858
|
}
|
|
2831
2859
|
function fleetFactsOf(state) {
|
|
2832
2860
|
const probes = {
|
|
@@ -3199,7 +3227,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
3199
3227
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
3200
3228
|
);
|
|
3201
3229
|
async function tryClaimAndStart(state, item, queue) {
|
|
3202
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
3230
|
+
const { postJson: postJson2 } = await import('./work-cmd-IYLWLPZJ.js');
|
|
3203
3231
|
const log = logOf(state);
|
|
3204
3232
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
3205
3233
|
const claim = await retrySend(
|
|
@@ -4071,6 +4099,9 @@ async function endOnTokenRefusal(state, active, err, repository) {
|
|
|
4071
4099
|
await endJob(state, active, "failed", { stage: "provision", reason });
|
|
4072
4100
|
}
|
|
4073
4101
|
}
|
|
4102
|
+
function waitText(waitMs) {
|
|
4103
|
+
return `${Math.round(waitMs / 6e3) / 10} minutes`;
|
|
4104
|
+
}
|
|
4074
4105
|
async function endOnProvisionFailure(state, active, tokens, took, failure) {
|
|
4075
4106
|
const { reason } = failure;
|
|
4076
4107
|
const log = logOf(state);
|
|
@@ -4087,7 +4118,7 @@ async function endOnProvisionFailure(state, active, tokens, took, failure) {
|
|
|
4087
4118
|
await endJob(state, active, "failed", { stage: "provision", reason });
|
|
4088
4119
|
return;
|
|
4089
4120
|
}
|
|
4090
|
-
const decision = noteProvisionRetry(state.provisionRetries ??= /* @__PURE__ */ new Map(), key, reason, nowOf(state).getTime());
|
|
4121
|
+
const decision = noteProvisionRetry(state.provisionRetries ??= /* @__PURE__ */ new Map(), key, reason, nowOf(state).getTime(), failure.retryAfterMs);
|
|
4091
4122
|
if (decision.kind === "give_up") {
|
|
4092
4123
|
log.error(`${tag} provision failed (${took}): ${reason} \xB7 it failed this way ${decision.failures} times in a row \xB7 ending job as failed`);
|
|
4093
4124
|
await endJob(state, active, "failed", { stage: "provision", reason: decision.reason });
|
|
@@ -4095,7 +4126,7 @@ async function endOnProvisionFailure(state, active, tokens, took, failure) {
|
|
|
4095
4126
|
}
|
|
4096
4127
|
state.provisionRetryHold = decision.hold;
|
|
4097
4128
|
log.error(
|
|
4098
|
-
`${tag} provision failed (${took}): ${reason} \xB7 this can clear by itself, so the runner releases the claim and takes no work for ${decision.waitMs
|
|
4129
|
+
`${tag} provision failed (${took}): ${reason} \xB7 this can clear by itself, so the runner releases the claim and takes no work for ${waitText(decision.waitMs)} (try ${decision.failures} of ${PROVISION_RETRY_LIMIT})`
|
|
4099
4130
|
);
|
|
4100
4131
|
await endJob(state, active, void 0);
|
|
4101
4132
|
}
|
|
@@ -4827,7 +4858,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
4827
4858
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
4828
4859
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
4829
4860
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
4830
|
-
return (await import('./check-
|
|
4861
|
+
return (await import('./check-B7GD472D.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
4831
4862
|
},
|
|
4832
4863
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
4833
4864
|
log
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
4
|
-
import { UNIT_MARKER } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-E6CZJDZN.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-LFGVSVZD.js';
|
|
5
|
+
import { runnerDir } from './chunk-AEGLAS4Y.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { currentLink } from './chunk-
|
|
3
|
+
import { currentLink } from './chunk-F5DIRRMG.js';
|
|
4
4
|
import { readFileSync, statSync, chmodSync, mkdirSync, writeFileSync, renameSync, rmSync, existsSync, lstatSync, accessSync, constants, realpathSync } from 'fs';
|
|
5
5
|
import { randomBytes } from 'crypto';
|
|
6
6
|
import { join, dirname, delimiter, resolve } from 'path';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { getJson, WorkCommandError } from './chunk-
|
|
6
|
-
import { isBuiltinVm, isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-
|
|
7
|
-
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
8
|
-
import { ensureHostKey } from './chunk-
|
|
9
|
-
import { sandboxSettingsFrom } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-E6CZJDZN.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-LFGVSVZD.js';
|
|
5
|
+
import { getJson, WorkCommandError } from './chunk-FNPCVOB5.js';
|
|
6
|
+
import { isBuiltinVm, isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-5MSUF63A.js';
|
|
7
|
+
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-WTX57JCA.js';
|
|
8
|
+
import { ensureHostKey } from './chunk-AFSJ4GHZ.js';
|
|
9
|
+
import { sandboxSettingsFrom } from './chunk-UTZWCNFV.js';
|
|
10
10
|
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-5XEO7FJW.js';
|
|
11
11
|
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-MHXUQI67.js';
|
|
12
12
|
import { defaultAgents } from './chunk-MB6OS6TU.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { LAUNCH_AGENT_ENV } from './chunk-TXKHD4Q6.js';
|
|
4
|
-
import { execStartArgv } from './chunk-
|
|
5
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
6
|
-
import { runnerDir } from './chunk-
|
|
4
|
+
import { execStartArgv } from './chunk-F5DIRRMG.js';
|
|
5
|
+
import { DEFAULT_UNIT_NAME } from './chunk-LFGVSVZD.js';
|
|
6
|
+
import { runnerDir } from './chunk-AEGLAS4Y.js';
|
|
7
7
|
import { join, dirname } from 'path';
|
|
8
8
|
|
|
9
9
|
createRequire(import.meta.url);
|
|
@@ -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-5MSUF63A.js';
|
|
4
|
+
import { parseSize } from './chunk-BKN5HQCX.js';
|
|
5
|
+
import { runnerDir } from './chunk-AEGLAS4Y.js';
|
|
6
6
|
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-5XEO7FJW.js';
|
|
7
7
|
import { credentialAgent, credentialNames, credentialForms } from './chunk-MHXUQI67.js';
|
|
8
8
|
import { defaultAgents } from './chunk-MB6OS6TU.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, BUILD_HOME } from './chunk-
|
|
3
|
+
import { RELAY_PORT, BUILD_HOME } from './chunk-UTZWCNFV.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { detectActiveSession } from './chunk-A7M4QXVX.js';
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { autoConnect } from './chunk-4OLHKE6K.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-NIHE7WJ6.js';
|
|
7
7
|
import { parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
8
8
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
9
9
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
|
4
|
-
import { runEmitArtifact } from './chunk-
|
|
4
|
+
import { runEmitArtifact } from './chunk-SCG7JYAQ.js';
|
|
5
5
|
import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
|
|
6
6
|
import { detectActiveSession } from './chunk-A7M4QXVX.js';
|
|
7
|
-
import { autoConnect } from './chunk-
|
|
7
|
+
import { autoConnect } from './chunk-4OLHKE6K.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
9
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-NIHE7WJ6.js';
|
|
10
10
|
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
11
11
|
import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-MHXUQI67.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readCloudConfigStrict, readCloudConfig, cloudConfigPath } from './chunk-HWVMRETT.js';
|
|
4
|
-
import { signRunnerRequest, signerFor } from './chunk-
|
|
4
|
+
import { signRunnerRequest, signerFor } from './chunk-AFSJ4GHZ.js';
|
|
5
5
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
6
|
import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-Z7J7JWGF.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -1,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-5MSUF63A.js';
|
|
4
|
+
import { orgHomeDir } from './chunk-AEGLAS4Y.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
7
7
|
|