@outerlayer/cli 0.36.0-next.20261102211600 → 0.36.0-next.20261102213701
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 +4 -13
- package/dist/{agent-setup-OYOTPYAR.js → agent-setup-2WL54CA2.js} +8 -8
- package/dist/{agent-subcommand-3VJ6PKAT.js → agent-subcommand-Z4UDDCLB.js} +1 -1
- package/dist/{bridge-RECR25EL.js → bridge-LVTX4DVM.js} +3 -3
- package/dist/{build-NIKF353A.js → build-W5LRG2AO.js} +9 -9
- package/dist/{build-disk-GKLJQNYQ.js → build-disk-3KTQZ6N5.js} +7 -7
- package/dist/build-info.json +1 -1
- package/dist/{builder-THQ62YNF.js → builder-UMCVSMDY.js} +6 -6
- package/dist/{caller-6EKJ6C43.js → caller-DYXZCUF2.js} +9 -9
- package/dist/{check-WODTIKPR.js → check-NFLR5CGS.js} +39 -39
- package/dist/{chunk-5QMSZFA2.js → chunk-23SNF2LN.js} +2 -2
- package/dist/{chunk-MZQAYZY4.js → chunk-2E2WWMRX.js} +28 -60
- package/dist/{chunk-NAQWMYQ2.js → chunk-35OBGZYO.js} +1 -1
- package/dist/{chunk-NJMJHUJL.js → chunk-36ML3NIO.js} +15 -15
- package/dist/{chunk-3PDRASIP.js → chunk-3EEUQZQU.js} +2 -2
- package/dist/{chunk-UKQCIZ3R.js → chunk-46FKHE74.js} +1 -1
- package/dist/{chunk-D2SEASHI.js → chunk-4Y7IEPQH.js} +1 -1
- package/dist/{chunk-OATJFN2P.js → chunk-4YGPLC5Y.js} +7 -7
- package/dist/{chunk-HOHY6ORJ.js → chunk-52RRBTZ5.js} +1 -1
- package/dist/{chunk-MDP3QN7U.js → chunk-72EOJJVT.js} +1 -1
- package/dist/{chunk-PJ3KUE3L.js → chunk-AACYODIT.js} +2 -2
- package/dist/{chunk-HYDNEYVD.js → chunk-AZTTOBJ5.js} +2 -2
- package/dist/{chunk-MFLIYXNY.js → chunk-B5GDCCOZ.js} +1 -1
- package/dist/{chunk-I6GHP6U7.js → chunk-CBMEWHAR.js} +1 -1
- package/dist/{chunk-2QXA7T6F.js → chunk-CXMXXRNS.js} +1 -1
- package/dist/{chunk-PLB2IBJV.js → chunk-DCOQWKLK.js} +1 -1
- package/dist/{chunk-2ICED253.js → chunk-E2U7BBAT.js} +2 -2
- package/dist/{chunk-QU4FBCRH.js → chunk-EM4QCRI6.js} +5 -5
- package/dist/{chunk-IBFBBUBJ.js → chunk-F7ODYKBA.js} +3 -3
- package/dist/{chunk-ZSHBICCL.js → chunk-FVIDZ3GK.js} +5 -5
- package/dist/{chunk-S3GZ74UE.js → chunk-GFSS3FRE.js} +3 -3
- package/dist/{chunk-4UADHJ6P.js → chunk-HGOJ67KV.js} +10 -21
- package/dist/{chunk-ZPFBNCXW.js → chunk-HHKVXKQI.js} +5 -5
- package/dist/{chunk-7AVQ67PS.js → chunk-HXSU4JLV.js} +1 -1
- package/dist/{chunk-L6GYPZEV.js → chunk-IFLD3WEB.js} +3 -3
- package/dist/{chunk-SFPDEBBO.js → chunk-ILP4ABFG.js} +3 -3
- package/dist/{chunk-V7ZAPEVS.js → chunk-IOFEDCTL.js} +1 -1
- package/dist/{chunk-ZFDUXKTM.js → chunk-JU5SQNFB.js} +2 -2
- package/dist/{chunk-FH4CX3CS.js → chunk-JUQ52FZI.js} +3 -3
- package/dist/{chunk-HHD5P4TU.js → chunk-JZBFR6JB.js} +7 -7
- package/dist/{chunk-LJNFUD3U.js → chunk-KKI3POPP.js} +1 -1
- package/dist/{chunk-UJD3DINB.js → chunk-MKGJ7TTH.js} +3 -3
- package/dist/{chunk-L6OJH3E5.js → chunk-NTK7RUVE.js} +4 -4
- package/dist/{chunk-MSEDA6A2.js → chunk-OPUJGPPT.js} +2 -2
- package/dist/{chunk-IJC4JL6B.js → chunk-OROFFYEM.js} +4 -4
- package/dist/{chunk-VK4MMRYC.js → chunk-PMXVWQ4T.js} +1 -1
- package/dist/{chunk-BF7P3J2H.js → chunk-QE7L5PJV.js} +2 -2
- package/dist/{chunk-GQ4GMFHO.js → chunk-QJHXX2HG.js} +5 -5
- package/dist/{chunk-JFPDRFAR.js → chunk-RSPTOS4S.js} +3 -3
- package/dist/{chunk-XCXBR74S.js → chunk-UASEIXDB.js} +41 -148
- package/dist/{chunk-77MUGWQT.js → chunk-UKDKM6Y6.js} +1 -1
- package/dist/{chunk-P7W7SXX7.js → chunk-V5S6CVGP.js} +3 -10
- package/dist/{chunk-H5QZSOBB.js → chunk-VHX2C7DU.js} +1 -1
- package/dist/{chunk-FB7HGLRK.js → chunk-VUINLLWP.js} +2 -2
- package/dist/{chunk-4K3VEJEE.js → chunk-VWMQA7FN.js} +5 -5
- package/dist/{chunk-6IDMWODX.js → chunk-W3CY6H56.js} +2 -2
- package/dist/{chunk-DLHOKPNF.js → chunk-WGZOLJPP.js} +1 -1
- package/dist/{chunk-DUGZCKCF.js → chunk-X2M2G376.js} +9 -9
- package/dist/{chunk-STNWA5ZZ.js → chunk-XILGXRHT.js} +2 -2
- package/dist/{chunk-3FZVQRTC.js → chunk-YIDWZYDY.js} +2 -2
- package/dist/{chunk-YPVJ46Y3.js → chunk-YJQBL6SD.js} +2 -2
- package/dist/{chunk-44B523ZQ.js → chunk-YQGYZB6Y.js} +2 -2
- package/dist/{claude-launcher-Z6WBFSRK.js → claude-launcher-LXCRQNU3.js} +1 -1
- package/dist/{cli-KBXHOMUN.js → cli-WGFTREIM.js} +122 -134
- package/dist/{command-FPLHTT7R.js → command-BZDNRIFI.js} +34 -34
- package/dist/{config-RKV7FRY5.js → config-VV4J2DMW.js} +8 -8
- package/dist/{connect-cmd-ZG7BPIXQ.js → connect-cmd-UDYTPV2S.js} +6 -6
- package/dist/{container-start-3NWIL4A3.js → container-start-BQD6IAKZ.js} +32 -32
- package/dist/{context-show-cmd-AM46ZKCT.js → context-show-cmd-FXIYFC6Q.js} +7 -7
- package/dist/{control-plane-launch-HW2Y53YI.js → control-plane-launch-6HIHBOHF.js} +6 -6
- package/dist/{demo-record-cmd-T4227FWF.js → demo-record-cmd-JTIK5WI3.js} +4 -4
- package/dist/{demo-voice-cmd-YSESUTE5.js → demo-voice-cmd-5HV4AHY4.js} +12 -12
- package/dist/{docker-JC6S6KH3.js → docker-RB7YFA52.js} +6 -6
- package/dist/{doctor-U3MU6GP5.js → doctor-BNL5J2NG.js} +35 -61
- package/dist/{emit-artifact-cmd-J643XZ46.js → emit-artifact-cmd-VF6PO7NJ.js} +11 -11
- package/dist/{emit-criteria-cmd-BARZ3MBZ.js → emit-criteria-cmd-QGCS6RCB.js} +8 -8
- package/dist/{emit-demo-cmd-OAC6RTSK.js → emit-demo-cmd-O7YLI4ZL.js} +12 -12
- package/dist/{emit-finding-cmd-BUTFI2GD.js → emit-finding-cmd-GO2C5QCS.js} +8 -8
- package/dist/{emit-result-cmd-4E4KX3QZ.js → emit-result-cmd-LQ4EW7ML.js} +10 -10
- package/dist/{emit-step-cmd-7CAJHMEQ.js → emit-step-cmd-JWUNEZ4N.js} +8 -8
- package/dist/{exec-client-G6B7G3IN.js → exec-client-725NVWZ5.js} +4 -4
- package/dist/find-unit-U5U52ASA.js +23 -0
- package/dist/{findings-cmd-N66FJR3J.js → findings-cmd-JN67G7EG.js} +8 -8
- package/dist/{fleet-readiness-KFTMEUAI.js → fleet-readiness-7P5NN3RT.js} +6 -6
- package/dist/{governing-source-TO6RRWYS.js → governing-source-NC7N3PKM.js} +10 -10
- package/dist/{guest-init-J3TELWJG.js → guest-init-N65WE3XP.js} +5 -5
- package/dist/{hook-fast-Y4LO3YE7.js → hook-fast-VZDS3U7L.js} +1 -1
- package/dist/{host-checks-AGWZAK4R.js → host-checks-5HVG67AR.js} +30 -30
- package/dist/{pending-3EMMPNC7.js → host-key-KPUIJK4Q.js} +4 -4
- package/dist/{image-tag-VHP22FMX.js → image-tag-RAVG4ZXU.js} +4 -4
- package/dist/index.js +4 -4
- package/dist/{init-B575TM3R.js → init-J5XW2VNL.js} +30 -31
- package/dist/{init-LADDJ3MR.js → init-MN4R6USQ.js} +30 -30
- package/dist/{init-cmd-5Q2ICZBK.js → init-cmd-INPWUFWW.js} +11 -11
- package/dist/{init-update-AJF4YJ6I.js → init-update-7BA2HEZD.js} +9 -9
- package/dist/{install-cmd-GO3D5F6X.js → install-cmd-UUEJWTHG.js} +6 -6
- package/dist/{logs-QV3LNNUJ.js → logs-2NBI76N2.js} +3 -3
- package/dist/{loop-5CEZVTIU.js → loop-G7HCDVIP.js} +38 -38
- package/dist/{machine-CSH5K23R.js → machine-WQCCGKOP.js} +30 -30
- package/dist/{mcp-serve-cmd-7USDWMS4.js → mcp-serve-cmd-JVND6WYT.js} +5 -5
- package/dist/{paths-L3SEA2QQ.js → paths-S6KJMQSQ.js} +3 -3
- package/dist/{host-key-EOTN4362.js → pending-BBPET4YL.js} +4 -4
- package/dist/{pidfile-ROXIFSGN.js → pidfile-QDFTWZP4.js} +4 -4
- package/dist/{record-7OMLXGTG.js → record-AJSJBMOG.js} +4 -4
- package/dist/{relay-663SG53Q.js → relay-X7EBGNZW.js} +1 -1
- package/dist/{relay-protocol-4V3F6HSZ.js → relay-protocol-TAXUFBSM.js} +1 -1
- package/dist/{runner-env-YMBCAQXO.js → runner-env-XKUW67Y4.js} +10 -10
- package/dist/{runner-identity-QBFVMEXN.js → runner-identity-7RYI6PS4.js} +6 -6
- package/dist/{runner-key-SUZKSV54.js → runner-key-R4QPZDDR.js} +30 -30
- package/dist/{session-sender-RI5VITPP.js → session-sender-FQARNO3V.js} +11 -11
- package/dist/{spec-cmd-IPFZNBCZ.js → spec-cmd-WOSYBAKL.js} +9 -9
- package/dist/{state-ZWCWEDKQ.js → state-IGLONCPS.js} +4 -4
- package/dist/{status-KSO5RNWL.js → status-BUHMAGRI.js} +30 -30
- package/dist/{sync-cmd-DML4SI6Y.js → sync-cmd-2DR7HOVJ.js} +10 -10
- package/dist/{update-steps-OVKM7RAH.js → update-steps-GDNIKWWH.js} +31 -31
- package/dist/{watch-X3AKYTTF.js → watch-3I4ZN52F.js} +10 -10
- package/dist/{work-claim-cmd-SIHUKNW4.js → work-claim-cmd-M6ACVTNM.js} +14 -14
- package/dist/{work-cmd-Z2JX53KE.js → work-cmd-HLNFJWQQ.js} +8 -8
- package/dist/{work-comment-cmd-D2OQTFBW.js → work-comment-cmd-JTCAB3DG.js} +10 -10
- package/dist/{work-demo-cmd-Z2PRJSY3.js → work-demo-cmd-XLNJYGCL.js} +8 -8
- package/dist/{work-logs-cmd-4UICP6PY.js → work-logs-cmd-Q3UUIOQI.js} +8 -8
- package/dist/{work-open-pr-cmd-BZOYVVM6.js → work-open-pr-cmd-H74M4ZXC.js} +9 -9
- package/dist/{work-pr-cmd-6PQLQD66.js → work-pr-cmd-M3X2D5MC.js} +8 -8
- package/dist/{work-proofs-cmd-SWESTSKA.js → work-proofs-cmd-ZRPPBFDL.js} +9 -9
- package/dist/{work-proofs-record-55B24QNH.js → work-proofs-record-PF2JRTWE.js} +15 -15
- package/dist/{work-stop-cmd-6JXCQ277.js → work-stop-cmd-2NO2F2BD.js} +8 -8
- package/package.json +1 -1
- package/dist/find-unit-MX6XITYC.js +0 -23
|
@@ -3,36 +3,36 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, criterionInputs, uncitedIds, planCriteria, parseJudgeAnswer, inCriteriaOrder, oneLineReason, judgedItems, IdScan, firstInPathOrder, isSearchCandidate } from './chunk-X4QHDRXT.js';
|
|
4
4
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
5
5
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
6
|
-
import { hasStoredCredential, AGENT_COMMANDS, storeAgentCredential, credentialFromStdin, isAgentName } from './chunk-
|
|
6
|
+
import { hasStoredCredential, AGENT_COMMANDS, storeAgentCredential, credentialFromStdin, isAgentName } from './chunk-GFSS3FRE.js';
|
|
7
7
|
import { upgradedStarterText } from './chunk-UQ2YFDGP.js';
|
|
8
|
-
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-
|
|
9
|
-
import { senderPidfile } from './chunk-
|
|
10
|
-
import { installScrubContext } from './chunk-
|
|
8
|
+
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-F7ODYKBA.js';
|
|
9
|
+
import { senderPidfile } from './chunk-AACYODIT.js';
|
|
10
|
+
import { installScrubContext } from './chunk-FVIDZ3GK.js';
|
|
11
11
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
12
|
-
import { runnerImageVersion } from './chunk-
|
|
13
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-
|
|
12
|
+
import { runnerImageVersion } from './chunk-UKDKM6Y6.js';
|
|
13
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-XILGXRHT.js';
|
|
14
14
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
15
|
-
import { readDefaultBranchFiles, readDefaultBranchHead,
|
|
16
|
-
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-
|
|
15
|
+
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-HGOJ67KV.js';
|
|
16
|
+
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-QE7L5PJV.js';
|
|
17
17
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
18
18
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
19
|
-
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-
|
|
20
|
-
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-
|
|
21
|
-
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-
|
|
22
|
-
import { writeDockerClientConfig } from './chunk-
|
|
23
|
-
import { runnerCredentialProblem, builtinKind, keyRunnerFactory, optionalEgress, isBuiltinContainer,
|
|
24
|
-
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-
|
|
25
|
-
import { writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, containerExecArgs, childEnvironment, readDu, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, parseSize, runnerLabelValue, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, prepareRunArgs, containerRunArgs, JUDGE_MAX_TURNS, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_DIR, HASH_ARGV, parseProgramHash, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, JUDGE_PROGRAM, MAX_ITEMS_BYTES, JUDGE_ITEMS, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-
|
|
26
|
-
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-
|
|
27
|
-
import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-
|
|
19
|
+
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-IOFEDCTL.js';
|
|
20
|
+
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-JU5SQNFB.js';
|
|
21
|
+
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-QJHXX2HG.js';
|
|
22
|
+
import { writeDockerClientConfig } from './chunk-52RRBTZ5.js';
|
|
23
|
+
import { runnerCredentialProblem, builtinKind, keyRunnerFactory, optionalEgress, isBuiltinContainer, isBuiltinVm, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-36ML3NIO.js';
|
|
24
|
+
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-YJQBL6SD.js';
|
|
25
|
+
import { writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, containerExecArgs, childEnvironment, readDu, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, parseSize, runnerLabelValue, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, prepareRunArgs, containerRunArgs, JUDGE_MAX_TURNS, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_DIR, HASH_ARGV, parseProgramHash, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, JUDGE_PROGRAM, MAX_ITEMS_BYTES, JUDGE_ITEMS, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-HHKVXKQI.js';
|
|
26
|
+
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-46FKHE74.js';
|
|
27
|
+
import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-EM4QCRI6.js';
|
|
28
28
|
import { sanitizeTerminal, planArtifactUpload } from './chunk-F3T5QJ24.js';
|
|
29
29
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
30
|
-
import { signerFor } from './chunk-
|
|
31
|
-
import { vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir,
|
|
32
|
-
import { CHECKOUT_DIR, JOB_MOUNT, buildEnvironment, parseIsolation,
|
|
30
|
+
import { signerFor } from './chunk-CBMEWHAR.js';
|
|
31
|
+
import { vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, sessionsDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, workspacesDir, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-CXMXXRNS.js';
|
|
32
|
+
import { CHECKOUT_DIR, JOB_MOUNT, buildEnvironment, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, repositoriesOf, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, proxyEnvironment, checkEnvironment, withMiseVariables, checkoutPath, EVAL_INPUT_DIR, isMiseVariableAllowed, BUILD_HOME, primaryOf } from './chunk-V5S6CVGP.js';
|
|
33
33
|
import { sharedSkillNames, skillConflictMessage } from './chunk-32GBZ7HD.js';
|
|
34
34
|
import { versionAtLeast, MINIMUM_CLAUDE_VERSION } from './chunk-IEFSDAVW.js';
|
|
35
|
-
import { firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, credentialAgent, agentCredential,
|
|
35
|
+
import { firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, credentialAgent, agentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, 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, currentAgentCredential, removedAgentCredentialValues, managedAgentCredential, RELAY_USER, realFdStorePort, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, builtInNames, UNIVERSAL_IMAGE, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, 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, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, agentVersionOf, AGENT_CREDENTIAL_MISSING, buildAgent, fdName, RELAY_ID, DOCKER_DESKTOP_REASON } from './chunk-23SNF2LN.js';
|
|
36
36
|
import { defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, resolvePackRoot, legacyAgent, orderSessions, extractFacts, sessionsToTimeline } from './chunk-TOP4K2T6.js';
|
|
37
37
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
38
38
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
@@ -40,7 +40,7 @@ import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
|
40
40
|
import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, scrubDeep } from './chunk-M7AIU22N.js';
|
|
41
41
|
import { CheckItemsSchema, downconvertSession } from './chunk-WUKLQWGY.js';
|
|
42
42
|
import { randomUUID, randomBytes, createHash } from 'crypto';
|
|
43
|
-
import { rmSync, mkdirSync, existsSync, readFileSync, mkdtempSync, statSync, appendFileSync, writeFileSync, readdirSync, accessSync, constants, openSync, closeSync,
|
|
43
|
+
import { rmSync, mkdirSync, existsSync, readFileSync, mkdtempSync, statSync, appendFileSync, writeFileSync, readdirSync, accessSync, constants, openSync, closeSync, renameSync, rmdirSync, createReadStream, lstatSync, unlinkSync, chmodSync, realpathSync, writeSync, truncateSync, cpSync, fstatSync, readSync, createWriteStream, copyFileSync, linkSync } from 'fs';
|
|
44
44
|
import { join, dirname, isAbsolute, delimiter, sep, basename, relative, resolve } from 'path';
|
|
45
45
|
import { Readable, Transform, Duplex, PassThrough } from 'stream';
|
|
46
46
|
import { spawn, spawnSync } from 'child_process';
|
|
@@ -1707,18 +1707,10 @@ var RunnerInitError = class extends Error {
|
|
|
1707
1707
|
var UNMARKED_PLACEHOLDER_COMMAND = "echo 'edit runner.commands in this config file: it must start your agent on item $OUTERLAYER_WORK' >&2; exit 1";
|
|
1708
1708
|
var PLACEHOLDER_MARKER = "outerlayer-placeholder";
|
|
1709
1709
|
var PLACEHOLDER_COMMAND = `${UNMARKED_PLACEHOLDER_COMMAND} # ${PLACEHOLDER_MARKER}`;
|
|
1710
|
-
function
|
|
1711
|
-
const has = describeMachineDocker(machine);
|
|
1710
|
+
function isolationRefusal(machine) {
|
|
1712
1711
|
const reach = reachDockerStep(machine);
|
|
1713
|
-
const needs = reach !== void 0 ? `Isolated builds need Docker Engine ${MIN_ENGINE_MAJOR} or later: ${reach}, then
|
|
1714
|
-
return `This machine has ${
|
|
1715
|
-
}
|
|
1716
|
-
function processRefusal(machine, agents) {
|
|
1717
|
-
const agent = credentialAgent(agents);
|
|
1718
|
-
const credential = agent === void 0 ? "credential" : `${credentialForms(agent.descriptor).label} credential`;
|
|
1719
|
-
const reach = reachDockerStep(machine);
|
|
1720
|
-
const needs = machine.platform === "darwin" ? "Isolated builds on a Mac run in the runner image on Docker Desktop (https://docs.outerlayer.ai/run-the-runner-in-a-container) or in a Linux VM: run this again with --vm." : reach !== void 0 ? `Isolated builds need Docker Engine ${MIN_ENGINE_MAJOR} or later: ${reach}, then run this again.` : machine.platform === "windows" ? `Isolated builds need Docker Engine ${MIN_ENGINE_MAJOR} or later inside WSL2: install it there, then run this again from a WSL2 shell.` : `Isolated builds need Docker Engine ${MIN_ENGINE_MAJOR} or later on Linux or WSL2: install it, then run this again.`;
|
|
1721
|
-
return `This machine has ${describeMachineDocker(machine)}, so it cannot isolate a build. ${needs} To run builds as processes under this user instead, where a build can read this user's files and the runner's ${credential}, run this again with --allow-process-builds.`;
|
|
1712
|
+
const needs = machine.platform === "darwin" ? "Isolated builds on a Mac run in the runner image on Docker Desktop (https://docs.outerlayer.ai/run-the-runner-in-a-container) or in a Linux VM: run this again with --vm." : reach !== void 0 ? `Isolated builds need Docker Engine ${MIN_ENGINE_MAJOR} or later: ${reach}, then run this again.` : machine.platform === "windows" ? `Isolated builds need Docker Engine ${MIN_ENGINE_MAJOR} or later inside WSL2: install it there, then run this again from a WSL2 shell. Or run the runner image on Docker Desktop (https://docs.outerlayer.ai/run-the-runner-in-a-container).` : `Isolated builds need Docker Engine ${MIN_ENGINE_MAJOR} or later on Linux or WSL2: install it, then run this again.`;
|
|
1713
|
+
return `This machine has ${describeMachineDocker(machine)}, so it cannot isolate a build. ${needs}`;
|
|
1722
1714
|
}
|
|
1723
1715
|
function isPlaceholderCommand(command) {
|
|
1724
1716
|
return command === UNMARKED_PLACEHOLDER_COMMAND || command.includes(PLACEHOLDER_MARKER);
|
|
@@ -1798,8 +1790,8 @@ function prepareRunnerInit(configPath, opts = {}) {
|
|
|
1798
1790
|
const fix = reachDockerStep(machine) ?? `install Docker Engine ${MIN_ENGINE_MAJOR} or later in the VM`;
|
|
1799
1791
|
throw new RunnerInitError(`the VM has ${describeMachineDocker(machine)}, but the runner in it needs container builds: ${fix}, then run this again.`);
|
|
1800
1792
|
}
|
|
1801
|
-
const hooks = opts.requireContainer !== true && supportsMicroVmBuilds(machine) ? "builtin:vm" : supportsContainerBuilds(machine) ? "builtin:container" :
|
|
1802
|
-
if (hooks ===
|
|
1793
|
+
const hooks = opts.requireContainer !== true && supportsMicroVmBuilds(machine) ? "builtin:vm" : supportsContainerBuilds(machine) ? "builtin:container" : void 0;
|
|
1794
|
+
if (hooks === void 0) throw new RunnerInitError(isolationRefusal(machine));
|
|
1803
1795
|
const named = agent === void 0 ? void 0 : runnerAgentNamed(agent, agents);
|
|
1804
1796
|
if (named !== void 0 && credential === void 0 && opts.credentialInEnvironment !== true && !hasStoredCredential(configPath, agents)) {
|
|
1805
1797
|
const forms = credentialForms(named.descriptor);
|
|
@@ -1810,7 +1802,7 @@ function prepareRunnerInit(configPath, opts = {}) {
|
|
|
1810
1802
|
return { configPath, config, carried, credential, agent, agents, machine, hooks, needsKey, host: opts.host };
|
|
1811
1803
|
}
|
|
1812
1804
|
function writeRunnerInit(prepared, runnerKey) {
|
|
1813
|
-
const { configPath, config, carried, credential, agent, agents,
|
|
1805
|
+
const { configPath, config, carried, credential, agent, agents, hooks, host } = prepared;
|
|
1814
1806
|
if (prepared.needsKey && runnerKey === void 0) {
|
|
1815
1807
|
throw new RunnerInitError(`${configPath}: apiKey is missing, and no runner key was pasted.`);
|
|
1816
1808
|
}
|
|
@@ -1840,7 +1832,7 @@ function writeRunnerInit(prepared, runnerKey) {
|
|
|
1840
1832
|
const stored = credential === void 0 ? void 0 : { variable: credential.variable, path: storeAgentCredential(configPath, credential, agents) };
|
|
1841
1833
|
writeFileSync(configPath, `${JSON.stringify(config, null, 2)}
|
|
1842
1834
|
`, { mode: RUNNER_FILE_MODE });
|
|
1843
|
-
return { configPath, hooks,
|
|
1835
|
+
return { configPath, hooks, credential: stored };
|
|
1844
1836
|
}
|
|
1845
1837
|
|
|
1846
1838
|
// src/runner/host-setup.ts
|
|
@@ -5442,10 +5434,9 @@ ${body}`);
|
|
|
5442
5434
|
})
|
|
5443
5435
|
};
|
|
5444
5436
|
}
|
|
5445
|
-
|
|
5446
|
-
|
|
5437
|
+
|
|
5438
|
+
// src/runner/maven-proxy.ts
|
|
5447
5439
|
var MAVEN_NO_PROXY_NOTE = "MAVEN_ARGS names its own global settings file, so the build's Maven gets no proxy from the runner";
|
|
5448
|
-
var MAVEN_SPACE_NOTE = "the build's directory has whitespace in its path, which Maven cannot read from MAVEN_ARGS, so its Maven gets no proxy from the runner";
|
|
5449
5440
|
function namesGlobalSettings(args) {
|
|
5450
5441
|
return args.split(/\s+/).some((token) => token === "--global-settings" || token.startsWith("--global-settings=") || token === "-gs" || token.startsWith("-gs="));
|
|
5451
5442
|
}
|
|
@@ -5477,13 +5468,6 @@ function mavenSettingsXml(proxyUrl, noProxy) {
|
|
|
5477
5468
|
""
|
|
5478
5469
|
].join("\n");
|
|
5479
5470
|
}
|
|
5480
|
-
function writeMavenSettings(buildDir2, proxyUrl, noProxy) {
|
|
5481
|
-
const dir = join(buildDir2, MAVEN_DIR);
|
|
5482
|
-
mkdirSync(dir, { recursive: true });
|
|
5483
|
-
const file = join(dir, MAVEN_SETTINGS_FILE);
|
|
5484
|
-
writeFileSync(file, mavenSettingsXml(proxyUrl, noProxy));
|
|
5485
|
-
return file;
|
|
5486
|
-
}
|
|
5487
5471
|
function mavenArgs(settingsFile, team) {
|
|
5488
5472
|
const own = team?.trim() ?? "";
|
|
5489
5473
|
if (own !== "" && namesGlobalSettings(own)) return { value: team, skipped: true };
|
|
@@ -5594,19 +5578,6 @@ function withMavenArgs(env, settingsFile, note) {
|
|
|
5594
5578
|
}
|
|
5595
5579
|
if (settingsFile !== void 0) env.MAVEN_ARGS = mavenArgs(settingsFile, team).value;
|
|
5596
5580
|
}
|
|
5597
|
-
function hostMavenSettings(env, buildDir2, note) {
|
|
5598
|
-
if (/\s/.test(buildDir2)) {
|
|
5599
|
-
note?.(MAVEN_SPACE_NOTE);
|
|
5600
|
-
return void 0;
|
|
5601
|
-
}
|
|
5602
|
-
if (!existsSync(buildDir2)) return void 0;
|
|
5603
|
-
try {
|
|
5604
|
-
return writeMavenSettings(buildDir2, env.HTTPS_PROXY, env.NO_PROXY);
|
|
5605
|
-
} catch (err) {
|
|
5606
|
-
note?.(`the build's Maven settings could not be written, so its Maven gets no proxy from the runner: ${describeCallFailure(err)}`);
|
|
5607
|
-
return void 0;
|
|
5608
|
-
}
|
|
5609
|
-
}
|
|
5610
5581
|
function execProxyEnvironment(build) {
|
|
5611
5582
|
const brokerHost = build.broker === void 0 ? void 0 : build.broker.slice(0, build.broker.lastIndexOf(":")).replace(/^\[|\]$/g, "");
|
|
5612
5583
|
return proxyEnvironment(proxyUrlFor(build), brokerHost);
|
|
@@ -5677,15 +5648,11 @@ function onceNote(write) {
|
|
|
5677
5648
|
function attemptNote(log, tag) {
|
|
5678
5649
|
return onceNote((line2) => log.line(`${tag} ${line2}`));
|
|
5679
5650
|
}
|
|
5680
|
-
function hostCommandEnvironment(base, build, config, hooksPath, note
|
|
5651
|
+
function hostCommandEnvironment(base, build, config, hooksPath, note) {
|
|
5681
5652
|
let env = { ...base };
|
|
5682
5653
|
if (build.exec !== void 0) {
|
|
5683
5654
|
Object.assign(env, execProxyEnvironment(build));
|
|
5684
5655
|
withMavenArgs(env, build.mavenSettings, note);
|
|
5685
|
-
} else if (build.proxyPort !== void 0) {
|
|
5686
|
-
Object.assign(env, proxyEnvironment(`http://127.0.0.1:${build.proxyPort}`));
|
|
5687
|
-
env.NODE_OPTIONS = withProxyWarningHidden(env.NODE_OPTIONS);
|
|
5688
|
-
withMavenArgs(env, hostMavenSettings(env, build.buildDir, note), note);
|
|
5689
5656
|
}
|
|
5690
5657
|
const ports = build.destinations ?? [];
|
|
5691
5658
|
const portOf = (name) => ports.find((entry) => entry.name === name)?.port;
|
|
@@ -5694,18 +5661,12 @@ function hostCommandEnvironment(base, build, config, hooksPath, note, agents = d
|
|
|
5694
5661
|
const address = build.exec !== void 0 ? containerLocalAddress(index) : port === void 0 ? void 0 : `http://127.0.0.1:${port}/`;
|
|
5695
5662
|
if (address !== void 0) Object.assign(env, destinationEnvironment([destination], () => address));
|
|
5696
5663
|
});
|
|
5697
|
-
if (build.builtIns === true) {
|
|
5698
|
-
const credential = agentCredential(base, {}, agents);
|
|
5699
|
-
for (const name of strippedVariables(agents)) delete env[name];
|
|
5700
|
-
Object.assign(env, builtInEnvironment((name) => `http://127.0.0.1:${portOf(name) ?? 0}`, credential, agents));
|
|
5701
|
-
}
|
|
5702
5664
|
if (build.exec === void 0 && hooksPath !== void 0) env = withHooksPath(env, hooksPath);
|
|
5703
5665
|
return env;
|
|
5704
5666
|
}
|
|
5705
5667
|
async function startHostServices(input) {
|
|
5706
5668
|
const { runtime, config, build } = input;
|
|
5707
5669
|
const destinations = config.build?.destinations ?? [];
|
|
5708
|
-
const builtIns = builtInNames(runtime.agents);
|
|
5709
5670
|
const services = await startBuildServices({
|
|
5710
5671
|
startTunnel: runtime.startTunnel,
|
|
5711
5672
|
tunnelOptions: runtime.tunnelOptions,
|
|
@@ -5714,24 +5675,13 @@ async function startHostServices(input) {
|
|
|
5714
5675
|
destinations,
|
|
5715
5676
|
allowHosts: config.build?.allowHosts,
|
|
5716
5677
|
...optionalEgress(config),
|
|
5717
|
-
serve:
|
|
5718
|
-
|
|
5719
|
-
...input.process ? { builtIns: { gatewayUrl: config.url, itemKey: input.itemKey, upstreams: runtime.upstreams, agents: runtime.agents } } : {},
|
|
5720
|
-
ports: {
|
|
5721
|
-
proxy: build.proxyPort,
|
|
5722
|
-
destinations: build.destinations?.filter((d) => !builtIns.includes(d.name)).map((d) => d.port),
|
|
5723
|
-
builtIns: Object.fromEntries((build.destinations ?? []).filter((d) => builtIns.includes(d.name)).map((d) => [d.name, d.port]))
|
|
5724
|
-
},
|
|
5678
|
+
serve: "both",
|
|
5679
|
+
ports: { destinations: build.destinations?.map((d) => d.port) },
|
|
5725
5680
|
hostEnv: runtime.hostEnv,
|
|
5726
5681
|
destinationOptions: runtime.destinationOptions,
|
|
5727
5682
|
...input.routeLog === void 0 ? {} : { log: input.routeLog }
|
|
5728
5683
|
});
|
|
5729
|
-
build.
|
|
5730
|
-
build.destinations = [
|
|
5731
|
-
...destinations.map((destination, index) => ({ name: destination.name, port: services.destinationPorts[index] })),
|
|
5732
|
-
...Object.entries(services.builtInPorts).map(([name, port]) => ({ name, port }))
|
|
5733
|
-
];
|
|
5734
|
-
if (input.process) build.builtIns = true;
|
|
5684
|
+
build.destinations = destinations.map((destination, index) => ({ name: destination.name, port: services.destinationPorts[index] }));
|
|
5735
5685
|
runtime.tunnels.set(build.buildId, services);
|
|
5736
5686
|
if (build.broker !== void 0) await listenOnBroker(services, build.broker);
|
|
5737
5687
|
return services;
|
|
@@ -5748,7 +5698,6 @@ async function closeHostBuild(runtime, build) {
|
|
|
5748
5698
|
await tunnel.close();
|
|
5749
5699
|
}
|
|
5750
5700
|
rmSync(build.buildDir, { recursive: true, force: true });
|
|
5751
|
-
if (build.workDir !== void 0) rmSync(build.workDir, { recursive: true, force: true });
|
|
5752
5701
|
}
|
|
5753
5702
|
|
|
5754
5703
|
// src/runner/sender.ts
|
|
@@ -6031,47 +5980,6 @@ function buildReleaseLog(jobDirPath, endStage, scrub) {
|
|
|
6031
5980
|
if (parts.length === 0) return void 0;
|
|
6032
5981
|
return capRunnerLog(scrub(parts.join("\n")) + "\n");
|
|
6033
5982
|
}
|
|
6034
|
-
var ENDED = "ended before provision finished";
|
|
6035
|
-
async function provisionProcess(input) {
|
|
6036
|
-
const { config, runtime, item, repository, jobDir } = input;
|
|
6037
|
-
if (buildAgent(runtime.agents)?.adapter.credentials !== void 0 && agentCredential(runtime.hostEnv, {}, runtime.agents) === void 0) return { ok: false, reason: AGENT_CREDENTIAL_MISSING };
|
|
6038
|
-
if (repository === void 0 || repository === null || repository === "") {
|
|
6039
|
-
return { ok: false, reason: "the work item names no repository to clone" };
|
|
6040
|
-
}
|
|
6041
|
-
const buildId = randomBytes(6).toString("hex");
|
|
6042
|
-
const buildDir2 = buildDir(config.configPath, buildId);
|
|
6043
|
-
const workDir = join(jobDir, "work");
|
|
6044
|
-
const state = { buildId, buildDir: buildDir2, workDir };
|
|
6045
|
-
const environment = sharedUserEnvironment(input.cliVersion);
|
|
6046
|
-
input.save(state, environment);
|
|
6047
|
-
const bail = async (reason) => {
|
|
6048
|
-
try {
|
|
6049
|
-
await cleanupProcess(runtime, state);
|
|
6050
|
-
} catch (err) {
|
|
6051
|
-
input.log.error(`#${item.number} cleanup failed: ${describeCallFailure(err)}`);
|
|
6052
|
-
}
|
|
6053
|
-
return { ok: false, reason };
|
|
6054
|
-
};
|
|
6055
|
-
if (input.aborted()) return bail(ENDED);
|
|
6056
|
-
mkdirSync(buildDir2, { recursive: true });
|
|
6057
|
-
chmodSync(buildDir2, 493);
|
|
6058
|
-
try {
|
|
6059
|
-
await startHostServices({ runtime, config, build: state, jobDir, itemKey: input.itemKey, process: true, routeLog: (line2) => input.log.line(`#${item.number} ${line2}`) });
|
|
6060
|
-
} catch (err) {
|
|
6061
|
-
return bail(`the tunnel could not start: ${describeCallFailure(err)}`);
|
|
6062
|
-
}
|
|
6063
|
-
input.save(state, environment);
|
|
6064
|
-
if (input.aborted()) return bail(ENDED);
|
|
6065
|
-
const checkout = join(workDir, "checkout");
|
|
6066
|
-
const remote = runtime.remoteFor?.(repository) ?? `https://github.com/${repository}.git`;
|
|
6067
|
-
const cloned = await runtime.clone({ remote, dest: checkout });
|
|
6068
|
-
if (!cloned.ok) return bail(cloned.reason);
|
|
6069
|
-
if (input.aborted()) return bail(ENDED);
|
|
6070
|
-
return { ok: true, workdir: checkout, state, environment };
|
|
6071
|
-
}
|
|
6072
|
-
function cleanupProcess(runtime, state) {
|
|
6073
|
-
return closeHostBuild(runtime, state);
|
|
6074
|
-
}
|
|
6075
5983
|
var SAVED_FOLDERS = ["home", "work"];
|
|
6076
5984
|
function stopProcessesScript() {
|
|
6077
5985
|
return [
|
|
@@ -7618,7 +7526,7 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
|
|
|
7618
7526
|
}
|
|
7619
7527
|
log.line(`${tag} cleanup started`);
|
|
7620
7528
|
const cleanupStartedMs = now().getTime();
|
|
7621
|
-
const hostMade = job.build !== void 0
|
|
7529
|
+
const hostMade = job.build !== void 0;
|
|
7622
7530
|
if (vmBuild !== void 0) {
|
|
7623
7531
|
let cleanedUp = true;
|
|
7624
7532
|
tunnelRecord = vmBuild.runtime.tunnels.get(vmBuild.state.buildId)?.record();
|
|
@@ -7653,21 +7561,8 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
|
|
|
7653
7561
|
}
|
|
7654
7562
|
}
|
|
7655
7563
|
if (cleanedUp) log.line(`${tag} cleanup ok (${formatDuration(now().getTime() - cleanupStartedMs)})`);
|
|
7656
|
-
} else if (!hostMade && (job.build !== void 0 || isBuiltinProcess(config.hooks.cleanup))) {
|
|
7657
|
-
let cleanedUp = true;
|
|
7658
|
-
if (job.build !== void 0) {
|
|
7659
|
-
const runtime = deps.container ?? createContainerRuntime();
|
|
7660
|
-
tunnelRecord = runtime.tunnels.get(job.build.buildId)?.record();
|
|
7661
|
-
try {
|
|
7662
|
-
await cleanupProcess(runtime, job.build);
|
|
7663
|
-
} catch (err) {
|
|
7664
|
-
cleanedUp = false;
|
|
7665
|
-
log.error(`${tag} cleanup failed: ${describeCallFailure(err)} \xB7 continuing`);
|
|
7666
|
-
}
|
|
7667
|
-
}
|
|
7668
|
-
if (cleanedUp) log.line(`${tag} cleanup ok (${formatDuration(now().getTime() - cleanupStartedMs)})`);
|
|
7669
7564
|
} else {
|
|
7670
|
-
if (!isBuiltinContainer(config.hooks.cleanup) && !
|
|
7565
|
+
if (!isBuiltinContainer(config.hooks.cleanup) && !isBuiltinVm(config.hooks.cleanup)) {
|
|
7671
7566
|
const cleanupEnv = {
|
|
7672
7567
|
...jobEnv(claimCalls(config, job), job.item, job.itemKey, jobDirPath, process.env, job.branch, job.commitIdentity?.author, spoolHomeFor(config, job)),
|
|
7673
7568
|
...job.build === void 0 ? {} : { OUTERLAYER_BUILD_DIR: job.build.buildDir },
|
|
@@ -10248,7 +10143,6 @@ function createContainerRuntime(opts = {}) {
|
|
|
10248
10143
|
remoteFor,
|
|
10249
10144
|
readHead: opts.readHead ?? readDefaultBranchHead,
|
|
10250
10145
|
readKeyFiles: opts.readKeyFiles ?? readDefaultBranchFiles,
|
|
10251
|
-
clone: opts.clone ?? ((input) => cloneRepository(input.remote, input.dest)),
|
|
10252
10146
|
destinationOptions: opts.destinationOptions,
|
|
10253
10147
|
upstreams: opts.upstreams,
|
|
10254
10148
|
agents: opts.agents,
|
|
@@ -11438,9 +11332,8 @@ function timeoutAfter(ms, sleep) {
|
|
|
11438
11332
|
});
|
|
11439
11333
|
return { done, cancel: () => clearTimeout(timer) };
|
|
11440
11334
|
}
|
|
11441
|
-
function noCleanEnvironment(
|
|
11442
|
-
|
|
11443
|
-
return `the host has no clean environment for checks: this build ran under ${ran}, and checks run only in a new container or microVM from a build's image`;
|
|
11335
|
+
function noCleanEnvironment() {
|
|
11336
|
+
return "the host has no clean environment for checks: this build ran under a provision hook of the host's own, and checks run only in a new container or microVM from a build's image";
|
|
11444
11337
|
}
|
|
11445
11338
|
function makeRecorder(input) {
|
|
11446
11339
|
const { config, job, deps, jobDir } = input;
|
|
@@ -11519,7 +11412,7 @@ async function runHostChecks(input) {
|
|
|
11519
11412
|
for (const check of checks) await record(check, "fail", reason, keyTail);
|
|
11520
11413
|
};
|
|
11521
11414
|
try {
|
|
11522
|
-
if (job.container === void 0 && job.microvm === void 0) return await failAll(noCleanEnvironment(
|
|
11415
|
+
if (job.container === void 0 && job.microvm === void 0) return await failAll(noCleanEnvironment());
|
|
11523
11416
|
if (tokens === void 0) return await failAll("the build's repository tokens are no longer held, so the branch cannot be fetched");
|
|
11524
11417
|
if (job.branch === void 0) return await failAll("the build pushed no branch: the claim names none");
|
|
11525
11418
|
const claimed = repositoriesOf({ repositories: job.repositories, repository, branch: job.branch });
|
|
@@ -11768,4 +11661,4 @@ async function runHostChecks(input) {
|
|
|
11768
11661
|
}
|
|
11769
11662
|
}
|
|
11770
11663
|
|
|
11771
|
-
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, agentCredentialCheck, appendCommandLog, attemptNote, checksIn, claimPermissionProblem, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, firstLine3 as firstLine, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gitRemoteFor, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inTeardown, isContainerTracked, isGroupAlive, isIdle, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, judgeProbe, keepGhConfigCurrent, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, provisionContainer, provisionEnvironment, provisionMicroVm,
|
|
11664
|
+
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, agentCredentialCheck, appendCommandLog, attemptNote, checksIn, claimPermissionProblem, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, firstLine3 as firstLine, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gitRemoteFor, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inTeardown, isContainerTracked, isGroupAlive, isIdle, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, judgeProbe, keepGhConfigCurrent, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, provisionContainer, provisionEnvironment, provisionMicroVm, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, recoverLostJobs, releaseLease, removeOldestUntil, renewLease, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, retryFailedReleases, runCommand, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, testProofIn, timeoutAfter, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workdirProblem, writeGuestGhConfig, writeRunnerInit };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { isVersion, compareVersions } from './chunk-TQMI335S.js';
|
|
4
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
4
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-CXMXXRNS.js';
|
|
5
5
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, strippedVariables, builtInEnvironment, managedAgentCredential, agentCredential, destinationPort } from './chunk-
|
|
3
|
+
import { builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, strippedVariables, builtInEnvironment, managedAgentCredential, agentCredential, destinationPort } from './chunk-23SNF2LN.js';
|
|
4
4
|
import { defaultAgents } from './chunk-TOP4K2T6.js';
|
|
5
5
|
import { PROVIDERS } from './chunk-G3BUOMCF.js';
|
|
6
6
|
import { existsSync, unlinkSync, chmodSync } from 'fs';
|
|
@@ -282,8 +282,6 @@ async function startBuildServices(input) {
|
|
|
282
282
|
await tunnel.close();
|
|
283
283
|
};
|
|
284
284
|
try {
|
|
285
|
-
let proxyPort;
|
|
286
|
-
if (input.proxy === true) proxyPort = (await tunnel.listenTcp({ host: "127.0.0.1", port: input.ports?.proxy ?? 0 })).port;
|
|
287
285
|
const destinationPorts = [];
|
|
288
286
|
const builtInPorts = {};
|
|
289
287
|
for (const [index, destination] of input.destinations.entries()) {
|
|
@@ -333,7 +331,7 @@ async function startBuildServices(input) {
|
|
|
333
331
|
serve(stream);
|
|
334
332
|
return true;
|
|
335
333
|
}
|
|
336
|
-
},
|
|
334
|
+
}, destinationPorts, builtInPorts, listeners, close: closeAll };
|
|
337
335
|
} catch (err) {
|
|
338
336
|
await closeAll();
|
|
339
337
|
throw err;
|
|
@@ -486,11 +484,6 @@ function proxyEnvironment(proxyUrl, alsoNoProxy) {
|
|
|
486
484
|
};
|
|
487
485
|
}
|
|
488
486
|
var PROXY_WARNING_FLAG = "--disable-warning=UNDICI-EHPA";
|
|
489
|
-
function withProxyWarningHidden(options) {
|
|
490
|
-
const given = options?.trim() ?? "";
|
|
491
|
-
if (given.split(/\s+/).includes(PROXY_WARNING_FLAG)) return given;
|
|
492
|
-
return given === "" ? PROXY_WARNING_FLAG : `${given} ${PROXY_WARNING_FLAG}`;
|
|
493
|
-
}
|
|
494
487
|
function runnerLiterals(repository, repositories = [], unpinnedRuntimes, missingSetupScripts) {
|
|
495
488
|
return {
|
|
496
489
|
OUTERLAYER_JOB_DIR: JOB_MOUNT,
|
|
@@ -677,4 +670,4 @@ function routesOf(counts) {
|
|
|
677
670
|
return routes.length === 0 ? {} : { routes };
|
|
678
671
|
}
|
|
679
672
|
|
|
680
|
-
export { BUILD_HOME, CHECKOUT_DIR, CHECK_ITEMS_FILE, DESTINATION_BASE_PORT, EVAL_INPUT_DIR, JOB_MOUNT, PROXY_WARNING_FLAG, RELAY_PORT, SCRUB_ENV_VARIABLE, authorEnvironment, buildEnvironment, checkEnvironment, checkoutPath, commitIdentityRecord, containerLocalAddress, destinationEnvironment, headerVariables, isMiseVariableAllowed, isRefusedInConfig, isReservedVariable, lifecycleWorkdir, parseClaimIdentity, parseClaimedRepositories, parseIsolation, parseUnreachable, primaryOf, proxyEnvironment, repositoriesOf, repositoryPath, resolveDestinations, sharedUserEnvironment, startBuildServices, tokenHeader, withGitConfig, withHooksPath, withMiseVariables,
|
|
673
|
+
export { BUILD_HOME, CHECKOUT_DIR, CHECK_ITEMS_FILE, DESTINATION_BASE_PORT, EVAL_INPUT_DIR, JOB_MOUNT, PROXY_WARNING_FLAG, RELAY_PORT, SCRUB_ENV_VARIABLE, authorEnvironment, buildEnvironment, checkEnvironment, checkoutPath, commitIdentityRecord, containerLocalAddress, destinationEnvironment, headerVariables, isMiseVariableAllowed, isRefusedInConfig, isReservedVariable, lifecycleWorkdir, parseClaimIdentity, parseClaimedRepositories, parseIsolation, parseUnreachable, primaryOf, proxyEnvironment, repositoriesOf, repositoryPath, resolveDestinations, sharedUserEnvironment, startBuildServices, tokenHeader, withGitConfig, withHooksPath, withMiseVariables, withTokenHeader, withTunnelRecord };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-CXMXXRNS.js';
|
|
4
4
|
import { mkdirSync, writeFileSync, renameSync, existsSync, readFileSync } from 'fs';
|
|
5
5
|
import { dirname, join } from 'path';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-
|
|
4
|
-
import { resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-4Y7IEPQH.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-35OBGZYO.js';
|
|
5
5
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
6
6
|
import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { criteriaOf, loadCitationFinder, hostItemsOf, criterionInputs, NO_CITING_TEST_REASON, NO_TEST_FILES_REASON, NO_VERDICT_REASON, isFoundInReason, uncitedIds, planCriteria, pickSearchable, IdScan, testFileMatcher, foundInReason, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, groupBySize } from './chunk-X4QHDRXT.js';
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-EM4QCRI6.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-35OBGZYO.js';
|
|
8
8
|
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
|
|
@@ -217,14 +217,14 @@ function governingDir(cwd) {
|
|
|
217
217
|
async function testProofMode(cwd) {
|
|
218
218
|
const dir = governingDir(cwd);
|
|
219
219
|
if (dir === void 0) return "any";
|
|
220
|
-
const { testProofIn } = await import('./host-checks-
|
|
220
|
+
const { testProofIn } = await import('./host-checks-5HVG67AR.js');
|
|
221
221
|
return testProofIn(dir);
|
|
222
222
|
}
|
|
223
223
|
async function judgeCheckName(cwd) {
|
|
224
224
|
const dir = governingDir(cwd);
|
|
225
225
|
if (dir === void 0) return {};
|
|
226
226
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
227
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
227
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-5HVG67AR.js');
|
|
228
228
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
229
229
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
230
230
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -369,7 +369,7 @@ async function runWorkProofs(opts) {
|
|
|
369
369
|
async function runWorkProofsCommand(opts) {
|
|
370
370
|
try {
|
|
371
371
|
if (opts.record) {
|
|
372
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
372
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-PF2JRTWE.js');
|
|
373
373
|
const result2 = await runWorkProofsRecord(opts);
|
|
374
374
|
process.exitCode = result2.exitCode;
|
|
375
375
|
return;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-V6V3NN5G.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-VUINLLWP.js';
|
|
6
6
|
import { acquireSpoolLockAt } from './chunk-F3T5QJ24.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-35OBGZYO.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-4OD45RBP.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-CXMXXRNS.js';
|
|
4
4
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { checkStarterFiles, contextIsGoverned } from './chunk-UQ2YFDGP.js';
|
|
4
|
-
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-
|
|
5
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
6
|
-
import { isLinkedRepository } from './chunk-
|
|
4
|
+
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-72EOJJVT.js';
|
|
5
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-EM4QCRI6.js';
|
|
6
|
+
import { isLinkedRepository } from './chunk-4Y7IEPQH.js';
|
|
7
7
|
import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
9
|
import { checkFormerSkillNames } from './chunk-KIY2AUHY.js';
|
|
10
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
11
|
-
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-
|
|
10
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-35OBGZYO.js';
|
|
11
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-KKI3POPP.js';
|
|
12
12
|
import { readStatuslineState, STATE_FRESH_MS } from './chunk-LTAMZ36E.js';
|
|
13
13
|
import { withInjectedPrograms } from './chunk-KTL7GFQ3.js';
|
|
14
14
|
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-IEFSDAVW.js';
|
|
@@ -1050,8 +1050,8 @@ function doctorExitCode(checks) {
|
|
|
1050
1050
|
|
|
1051
1051
|
// src/doctor-report.ts
|
|
1052
1052
|
async function gatherDoctorChecks() {
|
|
1053
|
-
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-
|
|
1054
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1053
|
+
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-3KTQZ6N5.js');
|
|
1054
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-VV4J2DMW.js');
|
|
1055
1055
|
const configPath = defaultRunnerConfigPath();
|
|
1056
1056
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1057
1057
|
const hooks = (() => {
|
|
@@ -1079,7 +1079,7 @@ async function gatherDoctorChecks() {
|
|
|
1079
1079
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1080
1080
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1081
1081
|
} else if (hasRunnerBlock(configPath)) {
|
|
1082
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1082
|
+
const { runnerHostChecks } = await import('./doctor-BNL5J2NG.js');
|
|
1083
1083
|
const gateway = (() => {
|
|
1084
1084
|
try {
|
|
1085
1085
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1107,7 +1107,7 @@ async function gatherDoctorChecks() {
|
|
|
1107
1107
|
const service = await (async () => {
|
|
1108
1108
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1109
1109
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1110
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1110
|
+
const { inspectRunnerService } = await import('./find-unit-U5U52ASA.js');
|
|
1111
1111
|
return inspectRunnerService(configPath);
|
|
1112
1112
|
})();
|
|
1113
1113
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { keyRunnerFactory, RunnerConfigError } from './chunk-
|
|
4
|
-
import { orgHomeDir } from './chunk-
|
|
3
|
+
import { keyRunnerFactory, RunnerConfigError } from './chunk-36ML3NIO.js';
|
|
4
|
+
import { orgHomeDir } from './chunk-CXMXXRNS.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { detectActiveSession } from './chunk-V6V3NN5G.js';
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { autoConnect } from './chunk-VUINLLWP.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-35OBGZYO.js';
|
|
7
7
|
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
8
8
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
9
9
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-
|
|
4
|
-
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-
|
|
3
|
+
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-HHKVXKQI.js';
|
|
4
|
+
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-CXMXXRNS.js';
|
|
5
5
|
import { spawnSync } from 'child_process';
|
|
6
6
|
import { statfsSync, statSync, existsSync, readdirSync } from 'fs';
|
|
7
7
|
import { dirname, join } from 'path';
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
|
|
4
4
|
import { detectActiveSession, transcriptPathForSession } from './chunk-V6V3NN5G.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-VUINLLWP.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-35OBGZYO.js';
|
|
8
8
|
import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-4OD45RBP.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
@@ -325,7 +325,7 @@ async function runAgentLauncher(agentId, args, deps = {}) {
|
|
|
325
325
|
return 1;
|
|
326
326
|
}
|
|
327
327
|
} else {
|
|
328
|
-
const { resolveLaunchPlane } = await import('./control-plane-launch-
|
|
328
|
+
const { resolveLaunchPlane } = await import('./control-plane-launch-6HIHBOHF.js');
|
|
329
329
|
const plane = env[GOVERNANCE_VARIABLE] === "self" ? { kind: "none" } : await resolveLaunchPlane({ cwd, env, home, fetchImpl: deps.fetchImpl, stderr });
|
|
330
330
|
if (plane.kind === "none") {
|
|
331
331
|
const own2 = ownSkillsDirFor(prefix, cwd, home, /* @__PURE__ */ new Set(), stderr);
|