@outerlayer/cli 0.38.0-next.20261111024231 → 0.38.0-next.20261111113945
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 +8 -0
- package/dist/{agent-setup-T2VITZUY.js → agent-setup-OJETTF3R.js} +18 -18
- package/dist/{agent-subcommand-KV3JO5YD.js → agent-subcommand-GDVH463X.js} +3 -3
- package/dist/{bridge-7MCKZXCR.js → bridge-D3L6JK6X.js} +6 -6
- package/dist/{build-N2MRLYFW.js → build-CBPURIYL.js} +12 -12
- package/dist/{build-disk-IJZYZ2K5.js → build-disk-ANS4SYJ3.js} +10 -10
- package/dist/build-info.json +1 -1
- package/dist/{builder-ATKIRCDJ.js → builder-7TYKMRTJ.js} +9 -9
- package/dist/caller-ZROOH73G.js +23 -0
- package/dist/{check-F7RN65GG.js → check-XFV3VI2N.js} +52 -52
- package/dist/{chunk-FT5NDSSG.js → chunk-2APZSZWP.js} +6 -6
- package/dist/{chunk-IEX5FXEU.js → chunk-36M66QKN.js} +1 -1
- package/dist/{chunk-BY2YRJSC.js → chunk-36XCKMNB.js} +4 -4
- package/dist/{chunk-PG33WPRF.js → chunk-3BEMKOFH.js} +1 -1
- package/dist/{chunk-3VEPVZV4.js → chunk-3WNKIXAJ.js} +6 -6
- package/dist/{chunk-LXREVZX7.js → chunk-4GJPOZXO.js} +5 -5
- package/dist/{chunk-T5CN56UE.js → chunk-5YJWKIIO.js} +1 -1
- package/dist/{chunk-E5G6K7C4.js → chunk-6XORUAR7.js} +390 -9
- package/dist/{chunk-IB2UHXZ7.js → chunk-7IV7XZ6C.js} +8 -8
- package/dist/{chunk-7LWASV77.js → chunk-7YDMHWVK.js} +3 -3
- package/dist/{chunk-ECMQNH2H.js → chunk-AABLA7NP.js} +3 -3
- package/dist/{chunk-EWGHEMEO.js → chunk-BCP3LGUV.js} +2 -2
- package/dist/{chunk-U5YHNSSI.js → chunk-CEDWGLK5.js} +7 -7
- package/dist/{chunk-OBSWWJJ3.js → chunk-DHLEYFNL.js} +3 -3
- package/dist/{chunk-FB2UT5XA.js → chunk-EFIMO5HF.js} +26 -26
- package/dist/{chunk-J4DTF5MN.js → chunk-F3RBGMHL.js} +1 -1
- package/dist/{chunk-YI2XPK7A.js → chunk-FAFHCIJN.js} +1 -1
- package/dist/{chunk-2FUJ5PSV.js → chunk-FQPGZOH3.js} +1 -1
- package/dist/{chunk-6T2X2JI6.js → chunk-GNJVUQYO.js} +3 -3
- package/dist/{chunk-KM2IMFAG.js → chunk-HKP33YSC.js} +1 -1
- package/dist/{chunk-M5DYOU5G.js → chunk-HWUCTGDI.js} +5 -5
- package/dist/{chunk-W2H6JURI.js → chunk-I6PMRDHZ.js} +4 -4
- package/dist/{chunk-YFMVZBLO.js → chunk-I6RBMWDV.js} +7 -7
- package/dist/{chunk-OBXRHBOM.js → chunk-ICXSMGJF.js} +4 -4
- package/dist/{chunk-64ROJ5LD.js → chunk-IKT2MOY6.js} +1 -1
- package/dist/{chunk-WPGGRTF4.js → chunk-JDOEEKPN.js} +1 -1
- package/dist/{chunk-GPP5EZV7.js → chunk-JOFYKUCM.js} +5 -5
- package/dist/{chunk-O53PVAUY.js → chunk-JZJNPNNW.js} +8 -6
- package/dist/{chunk-RWXLTF3K.js → chunk-KR34GXEH.js} +1 -1
- package/dist/{chunk-MPF7CVQM.js → chunk-L2VXYF66.js} +1 -1
- package/dist/{chunk-NWSKP5VI.js → chunk-LIHVAX2O.js} +4 -4
- package/dist/{chunk-CSFMIUYS.js → chunk-LW5RIKAV.js} +1 -1
- package/dist/{chunk-QM3M7QN3.js → chunk-LXEXWLCW.js} +1 -1
- package/dist/{chunk-ASCXEXYJ.js → chunk-MJEP4EFZ.js} +8 -8
- package/dist/{chunk-2HLMGVK6.js → chunk-MOA4PGYL.js} +1 -1
- package/dist/{chunk-OUKSF3LK.js → chunk-MOFT7QCR.js} +5 -5
- package/dist/{chunk-7U43B2UB.js → chunk-NFPJ2XC2.js} +2 -2
- package/dist/{chunk-NC6HUEMI.js → chunk-NIMQJTUR.js} +10 -10
- package/dist/{chunk-HWXBOHEA.js → chunk-NJ6IJFKR.js} +1 -1
- package/dist/{chunk-R35KRBTS.js → chunk-O67Y46CY.js} +7 -7
- package/dist/{chunk-XSVZFWZ4.js → chunk-O7TYQC2D.js} +7 -7
- package/dist/{chunk-R7BS36HP.js → chunk-OFZ5A2A5.js} +1 -1
- package/dist/{chunk-7GYY7RHR.js → chunk-OKAAVLLW.js} +4 -4
- package/dist/{chunk-GGKXYHT5.js → chunk-OZWB73EH.js} +2 -2
- package/dist/{chunk-G2CRPYFO.js → chunk-PDPBWX67.js} +1 -1
- package/dist/{chunk-RPIYENP2.js → chunk-PFNFXK5B.js} +4 -4
- package/dist/{chunk-7HYXJVU6.js → chunk-QHRH3BPI.js} +1 -1
- package/dist/{chunk-NAKFPE2V.js → chunk-QMCWSBQO.js} +1 -1
- package/dist/{chunk-YB3M2TM3.js → chunk-RHPEAVKR.js} +1 -1
- package/dist/{chunk-REZNW2YV.js → chunk-S6VT3TNG.js} +8 -8
- package/dist/{chunk-2KUFDLLY.js → chunk-SASWFX22.js} +1 -1
- package/dist/{chunk-KGJAYD7F.js → chunk-SGZCU6L3.js} +73 -30
- package/dist/{chunk-ICW75TS5.js → chunk-TXRMWSFE.js} +5 -5
- package/dist/{chunk-6U3UTAWQ.js → chunk-U527OJJO.js} +1 -1
- package/dist/{chunk-XMIL73Y2.js → chunk-UBZTPZJF.js} +1 -1
- package/dist/{chunk-YFQIK6LZ.js → chunk-UEAEKTK5.js} +7 -7
- package/dist/{chunk-OVJSVC5U.js → chunk-USINHGZI.js} +2 -2
- package/dist/{chunk-K6KUWUUT.js → chunk-VASOYLWE.js} +5 -5
- package/dist/{chunk-I5C667TJ.js → chunk-WBUOD2CU.js} +15 -15
- package/dist/{chunk-4HUYH65P.js → chunk-WL333KYF.js} +1 -1
- package/dist/{chunk-PP7MPUX7.js → chunk-WTPL4B4G.js} +3 -3
- package/dist/{chunk-MRSN67FY.js → chunk-WV4T6ZOQ.js} +1 -1
- package/dist/{chunk-ZGCIFD5Y.js → chunk-XEFOBPG3.js} +3 -3
- package/dist/{chunk-AB4GMYIH.js → chunk-XF2HRP6A.js} +4 -4
- package/dist/{chunk-5NJ367OD.js → chunk-XJJIVGJB.js} +5 -5
- package/dist/{chunk-7G2HRTSG.js → chunk-YE6EE4RC.js} +3 -3
- package/dist/{chunk-JPAO6HRN.js → chunk-YTZYFWJQ.js} +2 -2
- package/dist/{chunk-2PRDLE4L.js → chunk-ZTH5HHYS.js} +1 -1
- package/dist/{chunk-4YAFIOIV.js → chunk-ZW36EULQ.js} +4 -4
- package/dist/{claude-launcher-ZC664P33.js → claude-launcher-YYBDHFKP.js} +6 -6
- package/dist/{cli-XWXX6PJD.js → cli-KUDROKJT.js} +161 -151
- package/dist/{command-D656K4AE.js → command-6EO3Z7BW.js} +47 -47
- package/dist/{config-U2OR7MQW.js → config-6EOFYJWZ.js} +11 -11
- package/dist/{connect-cmd-73BBTTU5.js → connect-cmd-OTYUH5EY.js} +10 -10
- package/dist/{container-start-JFJYC4GQ.js → container-start-B6UCYRAZ.js} +45 -45
- package/dist/{context-cleanup-JPPSK7DE.js → context-cleanup-FIQMPC6F.js} +3 -3
- package/dist/{context-show-cmd-ETWKBHXZ.js → context-show-cmd-U7NEJRQH.js} +11 -11
- package/dist/{control-plane-launch-JOH7FS5U.js → control-plane-launch-SXAXGPCQ.js} +13 -13
- package/dist/{demo-record-cmd-GBHPIYJA.js → demo-record-cmd-WJJWOVEV.js} +7 -7
- package/dist/{demo-voice-cmd-GUYFA2NG.js → demo-voice-cmd-CDVRH7RS.js} +17 -17
- package/dist/{dist-5VKIP767.js → dist-JSSJSW2B.js} +1 -1
- package/dist/{docker-RC4CFNKI.js → docker-G46NSNAE.js} +9 -9
- package/dist/{doctor-TW6VREAT.js → doctor-6TS6Y6DI.js} +47 -47
- package/dist/{emit-artifact-cmd-CQLCPM4R.js → emit-artifact-cmd-QET3MR7Y.js} +16 -16
- package/dist/{emit-cmd-AIAY4WTW.js → emit-cmd-QGVMVSLS.js} +6 -6
- package/dist/{emit-criteria-cmd-VM7AO3E3.js → emit-criteria-cmd-Z3NGUOQ3.js} +13 -13
- package/dist/{emit-demo-cmd-3NSODQTO.js → emit-demo-cmd-VN5TLP6X.js} +17 -17
- package/dist/{emit-finding-cmd-4CRLSMOK.js → emit-finding-cmd-NN6TLRV4.js} +13 -13
- package/dist/{emit-result-cmd-GM43QMCM.js → emit-result-cmd-XCU6WVMT.js} +15 -15
- package/dist/{emit-step-cmd-J7KS2QXL.js → emit-step-cmd-3B3SN2DX.js} +13 -13
- package/dist/{exec-client-DY7673SD.js → exec-client-55XHR4PH.js} +7 -7
- package/dist/find-unit-RPIWIOJ2.js +24 -0
- package/dist/{findings-cmd-25F44AB4.js → findings-cmd-HDH4Y5ON.js} +13 -13
- package/dist/{fleet-readiness-Z4C6W7XN.js → fleet-readiness-3HC5JKYS.js} +12 -12
- package/dist/{governing-source-IURJZXUR.js → governing-source-B3RBMTCL.js} +18 -18
- package/dist/{guest-init-4B5MMXIQ.js → guest-init-KGFEH6IZ.js} +8 -8
- package/dist/{hook-fast-LB3VTEIW.js → hook-fast-BH7W6WZV.js} +1 -1
- package/dist/{hook-install-QQXREIMI.js → hook-install-6H6W4UM2.js} +3 -3
- package/dist/host-checks-VQ4C5U6W.js +80 -0
- package/dist/{host-key-ZWMN7VIH.js → host-key-HQQLUWQB.js} +7 -7
- package/dist/{image-tag-4DKLSTO6.js → image-tag-DBU2FVYO.js} +7 -7
- package/dist/index.js +4 -4
- package/dist/init-PNXWQIPT.js +80 -0
- package/dist/{init-XYFDIEOA.js → init-ZSLVVOTK.js} +43 -43
- package/dist/{init-agent-EGNFBPM5.js → init-agent-J6RUWY5O.js} +43 -43
- package/dist/{init-cmd-C2I22ZJA.js → init-cmd-DX66HZ6D.js} +24 -24
- package/dist/{init-update-H4LSR7H4.js → init-update-GZM2FZRC.js} +21 -21
- package/dist/{install-cmd-BI4C3MGF.js → install-cmd-L5GEWLRY.js} +9 -9
- package/dist/{layout-CE6QLPNH.js → layout-MBCG2IHB.js} +3 -3
- package/dist/{logs-7DD6J3M6.js → logs-JZF44C7F.js} +6 -6
- package/dist/loop-IWOVUNVC.js +90 -0
- package/dist/machine-HMMOQT46.js +80 -0
- package/dist/{machine-skills-YJLPUAYZ.js → machine-skills-RPKQK52T.js} +3 -3
- package/dist/{mcp-install-cmd-VSWX5BSZ.js → mcp-install-cmd-GN2K2JM3.js} +3 -3
- package/dist/{mcp-serve-cmd-HK2ODMHU.js → mcp-serve-cmd-X5FNE5WG.js} +8 -8
- package/dist/{paths-EHWU5QWB.js → paths-TQEUR7ET.js} +6 -6
- package/dist/pending-QUWRYGA3.js +18 -0
- package/dist/{pidfile-PG3L2CVV.js → pidfile-KOZAOHSS.js} +7 -7
- package/dist/{record-PXCRTDQU.js → record-6TPL2BNW.js} +7 -7
- package/dist/{relay-2MJY25BV.js → relay-ZOWT4YLQ.js} +4 -4
- package/dist/{relay-protocol-VBCRA347.js → relay-protocol-FDFEVLQT.js} +4 -4
- package/dist/{run-cmd-F7ANZPSX.js → run-cmd-DE6LEJ4S.js} +13 -13
- package/dist/{runner-agents-HZ5FIFPU.js → runner-agents-3NUGNJD6.js} +3 -3
- package/dist/{runner-env-5AM2XYEN.js → runner-env-QO43XEFB.js} +13 -13
- package/dist/{runner-identity-CL2KMFGC.js → runner-identity-L4RMVVQ3.js} +9 -9
- package/dist/{runner-key-CJ66VZE3.js → runner-key-JPAT3ERV.js} +43 -43
- package/dist/{session-sender-RSAHCLL6.js → session-sender-KXFNZ7QR.js} +16 -16
- package/dist/{spec-cmd-ED6DKB54.js → spec-cmd-B44VHKSR.js} +14 -14
- package/dist/{starter-pack-IT2KYFWU.js → starter-pack-7QA7J5FT.js} +4 -4
- package/dist/{state-MV53BATE.js → state-NBUID6K5.js} +7 -7
- package/dist/{status-CZTCYZLU.js → status-MQVZT3Z4.js} +43 -43
- package/dist/{sync-cmd-PQZD77PE.js → sync-cmd-ELGJ5MHU.js} +15 -15
- package/dist/update-steps-MXCEJOCG.js +81 -0
- package/dist/{watch-FAQXAAUA.js → watch-FJYJQXBK.js} +15 -15
- package/dist/{work-claim-cmd-XPXHRV74.js → work-claim-cmd-VRTQB3TO.js} +19 -19
- package/dist/{work-cmd-ME7DWBI6.js → work-cmd-EDGMD2VX.js} +13 -13
- package/dist/{work-comment-cmd-ZT4O56QR.js → work-comment-cmd-YKGQ7WPG.js} +15 -15
- package/dist/{work-demo-cmd-YV22MZXG.js → work-demo-cmd-GWKHJGHE.js} +13 -13
- package/dist/{work-logs-cmd-LUK7THB2.js → work-logs-cmd-4RA6SF2Z.js} +13 -13
- package/dist/{work-needs-attention-cmd-KTLWMBJV.js → work-needs-attention-cmd-SHFYBESF.js} +13 -13
- package/dist/{work-no-change-cmd-TWGW5ZOO.js → work-no-change-cmd-AMSJX7MG.js} +13 -13
- package/dist/{work-open-pr-cmd-VEM5MEUS.js → work-open-pr-cmd-G5VF5AA2.js} +14 -14
- package/dist/{work-pr-cmd-M4G35ZIV.js → work-pr-cmd-CX2QSIJN.js} +13 -13
- package/dist/{work-proofs-cmd-7EZ4QZUR.js → work-proofs-cmd-5PC334U6.js} +15 -15
- package/dist/{work-proofs-record-AY72YKNC.js → work-proofs-record-EHZDEFKH.js} +21 -21
- package/dist/{work-stop-cmd-FX5QTUYJ.js → work-stop-cmd-E7OUJHBJ.js} +13 -13
- package/package.json +1 -1
- package/dist/caller-OWXJDYPI.js +0 -23
- package/dist/find-unit-ZVHHFTL2.js +0 -24
- package/dist/host-checks-AQTZ7IKK.js +0 -80
- package/dist/init-P2PDGLTU.js +0 -80
- package/dist/loop-KEGBBAV4.js +0 -90
- package/dist/machine-JK27TGT6.js +0 -80
- package/dist/pending-K4A23JIC.js +0 -18
- package/dist/update-steps-DCFEKNW2.js +0 -81
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems, openPullRequests, MAX_TEST_FILE_BYTES } from './chunk-
|
|
3
|
+
import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems, openPullRequests, MAX_TEST_FILE_BYTES } from './chunk-JDOEEKPN.js';
|
|
4
4
|
import { RUNNER_PROTOCOL } from './chunk-6XMC6R4W.js';
|
|
5
5
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
6
6
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
7
|
-
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-
|
|
8
|
-
import { upgradedStarterText } from './chunk-
|
|
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-
|
|
7
|
+
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-TXRMWSFE.js';
|
|
8
|
+
import { upgradedStarterText } from './chunk-MOFT7QCR.js';
|
|
9
|
+
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-7YDMHWVK.js';
|
|
10
|
+
import { writeDockerClientConfig } from './chunk-ZTH5HHYS.js';
|
|
11
|
+
import { senderPidfile } from './chunk-LIHVAX2O.js';
|
|
12
|
+
import { installScrubContext } from './chunk-CEDWGLK5.js';
|
|
13
13
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
14
|
-
import { runnerImageVersion } from './chunk-
|
|
15
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-
|
|
14
|
+
import { runnerImageVersion } from './chunk-IKT2MOY6.js';
|
|
15
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-YTZYFWJQ.js';
|
|
16
16
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
17
|
-
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, 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, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-UEAEKTK5.js';
|
|
18
|
+
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-I6PMRDHZ.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, WorkCommandError, isSignatureRefusal, getJson } from './chunk-
|
|
25
|
-
import { isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, keyRunnerFactory, runnerCredentialProblem, builtinKind, optionalEgress, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxSizeOf, networkOf, sandboxTimeLimitMinutes, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-
|
|
26
|
-
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-
|
|
27
|
-
import { firstLine, writeJobFile, runnerLabelValue, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, said, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, containerExecArgs, childEnvironment, readDu, withAnswerProtocol, JUDGE_TREE, MAX_REPORT_BYTES, parseSize, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, JUDGE_DIR, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, JUDGE_ITEMS, answerFileName, hashJudgeProgram, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, MAX_ITEMS_BYTES, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-
|
|
28
|
-
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-
|
|
21
|
+
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-QHRH3BPI.js';
|
|
22
|
+
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-XEFOBPG3.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-O67Y46CY.js';
|
|
24
|
+
import { postJson, WorkCommandError, isSignatureRefusal, getJson } from './chunk-I6RBMWDV.js';
|
|
25
|
+
import { isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, keyRunnerFactory, runnerCredentialProblem, builtinKind, optionalEgress, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxSizeOf, networkOf, sandboxTimeLimitMinutes, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-JZJNPNNW.js';
|
|
26
|
+
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-OZWB73EH.js';
|
|
27
|
+
import { firstLine, writeJobFile, runnerLabelValue, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, said, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, containerExecArgs, childEnvironment, readDu, withAnswerProtocol, JUDGE_TREE, MAX_REPORT_BYTES, parseSize, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, JUDGE_DIR, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, JUDGE_ITEMS, answerFileName, hashJudgeProgram, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, MAX_ITEMS_BYTES, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-S6VT3TNG.js';
|
|
28
|
+
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-FQPGZOH3.js';
|
|
29
29
|
import { sanitizeTerminal, planArtifactUpload } from './chunk-QHYCF36K.js';
|
|
30
|
-
import { sharedSkillNames, skillConflictMessage } from './chunk-
|
|
30
|
+
import { sharedSkillNames, skillConflictMessage } from './chunk-WV4T6ZOQ.js';
|
|
31
31
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
32
|
-
import { signerFor } from './chunk-
|
|
33
|
-
import { vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, sessionsDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-
|
|
34
|
-
import { BUILD_HOME, SandboxError, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, repositoriesOf, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, checkoutPath, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, toolProxyEnvironment } from './chunk-
|
|
35
|
-
import { agentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, currentAgentCredential, removedAgentCredentialValues, managedAgentCredential, realFdStorePort, builtInNames, 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-
|
|
32
|
+
import { signerFor } from './chunk-HKP33YSC.js';
|
|
33
|
+
import { vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, sessionsDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-5YJWKIIO.js';
|
|
34
|
+
import { BUILD_HOME, SandboxError, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, repositoriesOf, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, checkoutPath, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, toolProxyEnvironment } from './chunk-ZW36EULQ.js';
|
|
35
|
+
import { agentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, currentAgentCredential, removedAgentCredentialValues, managedAgentCredential, realFdStorePort, builtInNames, 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-NFPJ2XC2.js';
|
|
36
36
|
import { versionAtLeast } from './chunk-SF2TBJBP.js';
|
|
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-
|
|
38
|
-
import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, orderSessions, extractFacts, sessionsToTimeline, resolvePackRoot } from './chunk-
|
|
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-36M66QKN.js';
|
|
38
|
+
import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, orderSessions, extractFacts, sessionsToTimeline, resolvePackRoot } from './chunk-PDPBWX67.js';
|
|
39
39
|
import { MAINTAINED_SKILLS } from './chunk-ATEMEVFF.js';
|
|
40
40
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
41
41
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
42
|
-
import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, scrubDeep } from './chunk-
|
|
42
|
+
import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, scrubDeep } from './chunk-6XORUAR7.js';
|
|
43
43
|
import { CheckItemsSchema, CODE_REVIEW_NAME, JUDGE_NOT_RUN_ITEM_ID, REVIEWED_COMMIT_ITEM_ID, CHECK_ITEM_REASON_MAX_LENGTH, UNREVIEWED_FILES_ITEM_ID, CHECK_ITEM_HREF_MAX_LENGTH, downconvertSession } from './chunk-NEXKR5RR.js';
|
|
44
44
|
import { randomUUID, randomBytes, createHash } from 'crypto';
|
|
45
45
|
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';
|
|
@@ -4131,6 +4131,13 @@ async function endUnansweredSandbox(sandboxClient, runnerId, buildId, warn) {
|
|
|
4131
4131
|
warn(`could not end a sandbox that a lost create may have made: ${describeCallFailure(err)} \xB7 the next sweep ends it`);
|
|
4132
4132
|
}
|
|
4133
4133
|
}
|
|
4134
|
+
async function commandIn(sandboxClient, sandbox, line2) {
|
|
4135
|
+
try {
|
|
4136
|
+
return await sandboxClient.command(sandbox, line2);
|
|
4137
|
+
} catch (err) {
|
|
4138
|
+
return { exitCode: null, stdout: "", stderr: err instanceof SandboxError ? describeSandboxError(err) : describeCallFailure(err) };
|
|
4139
|
+
}
|
|
4140
|
+
}
|
|
4134
4141
|
function client(runtime) {
|
|
4135
4142
|
return runtime.sandbox.client();
|
|
4136
4143
|
}
|
|
@@ -4170,6 +4177,23 @@ async function goneReason(runtime, state) {
|
|
|
4170
4177
|
return err instanceof SandboxError && err.status === 404 ? new SandboxGoneError(state.sandboxId) : void 0;
|
|
4171
4178
|
}
|
|
4172
4179
|
}
|
|
4180
|
+
var DOCKER_SOCKET = "/var/run/docker.sock";
|
|
4181
|
+
var HOST_BUILD_DIR = "/build";
|
|
4182
|
+
function daemonProxyConfig() {
|
|
4183
|
+
const proxy = `http://127.0.0.1:${RELAY_PORT}`;
|
|
4184
|
+
return JSON.stringify({ proxies: { "http-proxy": proxy, "https-proxy": proxy, "no-proxy": "localhost,127.0.0.1" } });
|
|
4185
|
+
}
|
|
4186
|
+
function daemonSetupLine() {
|
|
4187
|
+
const config = daemonProxyConfig();
|
|
4188
|
+
return `if [ "$(sudo cat /etc/docker/daemon.json 2>/dev/null)" != ${quote(config)} ]; then sudo mkdir -p /etc/docker && printf %s ${quote(config)} | sudo tee /etc/docker/daemon.json >/dev/null && sudo systemctl restart docker; fi`;
|
|
4189
|
+
}
|
|
4190
|
+
function hostMountLine(volume) {
|
|
4191
|
+
return `sudo mkdir -p ${HOST_BUILD_DIR} && { mountpoint -q ${HOST_BUILD_DIR} || sudo mount --bind "$(sudo docker volume inspect -f '{{.Mountpoint}}' ${quote(volume)})" ${HOST_BUILD_DIR}; }`;
|
|
4192
|
+
}
|
|
4193
|
+
function removeBuildContainersLine(keep) {
|
|
4194
|
+
const others = keep === void 0 ? "" : ` | grep -v ${quote(` ${keep}$`)}`;
|
|
4195
|
+
return `ids=$(sudo docker ps -a --format '{{.ID}} {{.Names}}' | grep -v ' buildx_buildkit_'${others} | cut -d' ' -f1); [ -z "$ids" ] || sudo docker rm -f $ids`;
|
|
4196
|
+
}
|
|
4173
4197
|
function sandboxRunArgs(args, opts = {}) {
|
|
4174
4198
|
const out = [...args];
|
|
4175
4199
|
const network = out.indexOf("--network");
|
|
@@ -4183,6 +4207,7 @@ function sandboxRunArgs(args, opts = {}) {
|
|
|
4183
4207
|
...opts.skillPack === true ? ["--mount", `type=bind,src=${SKILL_PACK_DIR},dst=/opt/outerlayer/cli/skill-pack,readonly`] : [],
|
|
4184
4208
|
"--mount",
|
|
4185
4209
|
`type=bind,src=${SECRET_FILE},dst=${CONTAINER_SECRET_FILE},readonly`,
|
|
4210
|
+
...opts.dockerGroup === void 0 ? [] : ["--mount", `type=bind,src=${DOCKER_SOCKET},dst=${DOCKER_SOCKET}`, "--group-add", opts.dockerGroup],
|
|
4186
4211
|
...Object.entries(toolProxyEnvironment()).flatMap(([name, value]) => ["--env", `${name}=${value}`])
|
|
4187
4212
|
);
|
|
4188
4213
|
out.push("--join-ws", String(JOIN_WS_PORT), "--join-secret-file", CONTAINER_SECRET_FILE);
|
|
@@ -4222,8 +4247,12 @@ async function keepSandboxDisk(runtime, state, kept) {
|
|
|
4222
4247
|
const { host } = runtimeInSandbox(runtime, sandbox);
|
|
4223
4248
|
const removed = await host.remove(kept.container);
|
|
4224
4249
|
if (removed.status !== 0 && !/no such container/i.test(removed.stderr)) throw new Error(`container ${kept.container} was not removed${said(removed.stderr)}`);
|
|
4250
|
+
const siblings = await client(runtime).command(sandbox, removeBuildContainersLine());
|
|
4251
|
+
if (siblings.exitCode !== 0) throw new Error(`the containers the build started were not removed (exit ${siblings.exitCode ?? "none"})${said(siblings.stderr)}`);
|
|
4225
4252
|
const emptied = await host.run(clearOneBuildArgs({ image: kept.imageId, volume: kept.volume, runnerId: kept.runnerId }));
|
|
4226
4253
|
if (emptied.status !== 0) throw new Error(`the build's command state was not removed from the volume (exit ${emptied.status})${said(emptied.stderr)}`);
|
|
4254
|
+
const unmounted = await client(runtime).command(sandbox, `if mountpoint -q ${HOST_BUILD_DIR}; then sudo umount ${HOST_BUILD_DIR}; fi`);
|
|
4255
|
+
if (unmounted.exitCode !== 0) throw new Error(`${HOST_BUILD_DIR} was not unmounted in the sandbox (exit ${unmounted.exitCode ?? "none"})${said(unmounted.stderr)}`);
|
|
4227
4256
|
const cleared = await client(runtime).command(sandbox, `sudo rm -rf ${SANDBOX_DIR} ${SANDBOX_RUN_DIR}`);
|
|
4228
4257
|
if (cleared.exitCode !== 0) throw new Error(`the runner's files were not removed from the sandbox (exit ${cleared.exitCode ?? "none"})${said(cleared.stderr)}`);
|
|
4229
4258
|
await kept.keep();
|
|
@@ -4441,6 +4470,10 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
4441
4470
|
} catch (err) {
|
|
4442
4471
|
return bail(`putting the CLI in the sandbox failed: ${err instanceof SandboxError ? describeSandboxError(err) : describeCallFailure(err)}`);
|
|
4443
4472
|
}
|
|
4473
|
+
if (own.docker) {
|
|
4474
|
+
const set = await commandIn(sandboxClient, sandbox, daemonSetupLine());
|
|
4475
|
+
if (set.exitCode !== 0) return bail(`setting the Docker daemon's proxy in the sandbox failed (exit ${set.exitCode ?? "none"})${said(set.stderr)}`);
|
|
4476
|
+
}
|
|
4444
4477
|
const engine = await host.version();
|
|
4445
4478
|
if (engine === null) return bail("Docker is not available in the sandbox: `docker version` failed");
|
|
4446
4479
|
const limits2 = { memory: `${Math.max(512, sized.size.memoryMib - SANDBOX_RESERVE_MIB)}m`, cpus: sized.size.vcpu, pids: config.build?.pids ?? 4096 };
|
|
@@ -4461,6 +4494,14 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
4461
4494
|
};
|
|
4462
4495
|
const prepared = await host.run(prepareRunArgs(runInput), { logPath });
|
|
4463
4496
|
if (prepared.status !== 0) return dockerFailed("preparing the build's volume", prepared);
|
|
4497
|
+
let dockerGroup;
|
|
4498
|
+
if (own.docker) {
|
|
4499
|
+
const mounted = await commandIn(sandboxClient, sandbox, hostMountLine(volumeName));
|
|
4500
|
+
if (mounted.exitCode !== 0) return bail(`mounting the build's volume at ${HOST_BUILD_DIR} in the sandbox failed (exit ${mounted.exitCode ?? "none"})${said(mounted.stderr)}`);
|
|
4501
|
+
const group = await commandIn(sandboxClient, sandbox, `stat -c %g ${DOCKER_SOCKET}`);
|
|
4502
|
+
dockerGroup = group.stdout.trim();
|
|
4503
|
+
if (group.exitCode !== 0 || !/^\d+$/.test(dockerGroup)) return bail(`reading the group of the Docker socket in the sandbox failed (exit ${group.exitCode ?? "none"})${said(group.stderr)}`);
|
|
4504
|
+
}
|
|
4464
4505
|
const imageConfig = await host.imageConfig(image);
|
|
4465
4506
|
const resolved = await resolveBuildUser(sandboxed, runInput, { imageUser: imageConfig.user }, logPath);
|
|
4466
4507
|
if (!resolved.ok) return bail(resolved.reason);
|
|
@@ -4469,7 +4510,7 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
4469
4510
|
const agentUser = resolved.user;
|
|
4470
4511
|
input.save(state, environment);
|
|
4471
4512
|
if (input.aborted()) return bail("", true);
|
|
4472
|
-
const started = await host.run(sandboxRunArgs(containerRunArgs({ ...runInput, home: containerState.home }, runtime.agents), { skillPack: skillPack !== void 0 }), { logPath });
|
|
4513
|
+
const started = await host.run(sandboxRunArgs(containerRunArgs({ ...runInput, home: containerState.home }, runtime.agents), { skillPack: skillPack !== void 0, ...dockerGroup === void 0 ? {} : { dockerGroup } }), { logPath });
|
|
4473
4514
|
if (started.status !== 0) return dockerFailed("starting the build's container", started);
|
|
4474
4515
|
joinRelay(runtime, sandbox, { buildId, container }, services.streams, joinSecret, (line2) => log.line(`${tag} ${line2}`));
|
|
4475
4516
|
if (input.aborted()) return bail("", true);
|
|
@@ -4561,6 +4602,8 @@ function sandboxJudgeEnvironment(input) {
|
|
|
4561
4602
|
runtime.relays.delete(state.buildId);
|
|
4562
4603
|
await relay.close();
|
|
4563
4604
|
}
|
|
4605
|
+
const removed = await client(runtime).command(sandbox, removeBuildContainersLine(state.container));
|
|
4606
|
+
if (removed.exitCode !== 0) throw new Error(`the containers the build started could not be removed (exit ${removed.exitCode ?? "none"})`);
|
|
4564
4607
|
await sandboxed.host.stop(state.container);
|
|
4565
4608
|
const started = await sandboxed.host.start(state.container);
|
|
4566
4609
|
if (started.status !== 0) throw new Error(`the build's container could not be started again (exit ${started.status})`);
|
|
@@ -5070,7 +5113,7 @@ var BOOT_POLL_MS = 500;
|
|
|
5070
5113
|
var HOOK_ERRORS_LIMIT = 1024 * 1024;
|
|
5071
5114
|
var HOOK_ERRORS_IN_GUEST = "/build/home/.outerlayer/spool/hook-errors.log";
|
|
5072
5115
|
var DOCKER_WAIT_SECONDS = 60;
|
|
5073
|
-
var
|
|
5116
|
+
var DOCKER_SOCKET2 = "/var/run/docker.sock";
|
|
5074
5117
|
var DOCKER_LOG_LINES = 20;
|
|
5075
5118
|
var GUEST_GH_DIR = `${JOB_MOUNT}/gh`;
|
|
5076
5119
|
var GUEST_HOOKS_DIR = `${JOB_MOUNT}/git-hooks`;
|
|
@@ -5725,7 +5768,7 @@ async function provisionMicroVmOnce(input, allowRestore, itemDiskFailed) {
|
|
|
5725
5768
|
return { ok: true, workdir: CHECKOUT_DIR, state, environment, ...itemDisk.state === void 0 ? {} : { disk: itemDisk.state } };
|
|
5726
5769
|
}
|
|
5727
5770
|
async function waitForDocker(runtime, state, agentUser, now) {
|
|
5728
|
-
const grant = `[ -S ${
|
|
5771
|
+
const grant = `[ -S ${DOCKER_SOCKET2} ] && chgrp "$(id -g ${shellQuote(agentUser)})" ${DOCKER_SOCKET2} && chmod 660 ${DOCKER_SOCKET2}`;
|
|
5729
5772
|
const request = { argv: ["timeout", "5", "docker", "info"], user: agentUser, cwd: "/", env: { PATH: ROOT_PATH } };
|
|
5730
5773
|
const deadline = now().getTime() + DOCKER_WAIT_SECONDS * 1e3;
|
|
5731
5774
|
let lastError = "";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { RUNNER_FILE_MODE } from './chunk-
|
|
5
|
-
import { parseRunnerEnv, withoutCredentialLines } from './chunk-
|
|
6
|
-
import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-
|
|
7
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-3WNKIXAJ.js';
|
|
4
|
+
import { RUNNER_FILE_MODE } from './chunk-5YJWKIIO.js';
|
|
5
|
+
import { parseRunnerEnv, withoutCredentialLines } from './chunk-NFPJ2XC2.js';
|
|
6
|
+
import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-36M66QKN.js';
|
|
7
|
+
import { defaultAgents } from './chunk-PDPBWX67.js';
|
|
8
8
|
import { existsSync, readFileSync, writeFileSync, renameSync, rmSync } from 'fs';
|
|
9
9
|
import { join, dirname } from 'path';
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
4
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
4
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-5YJWKIIO.js';
|
|
5
5
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
6
6
|
import { dirname } from 'path';
|
|
7
7
|
|
|
@@ -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-5YJWKIIO.js';
|
|
4
4
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { toolsDockerfile } from './chunk-
|
|
4
|
-
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-
|
|
3
|
+
import { toolsDockerfile } from './chunk-I6PMRDHZ.js';
|
|
4
|
+
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-U527OJJO.js';
|
|
5
5
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
6
|
-
import { runnerLabelValue } from './chunk-
|
|
7
|
-
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-
|
|
8
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-
|
|
9
|
-
import { withGitConfig, tokenHeader } from './chunk-
|
|
10
|
-
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-
|
|
6
|
+
import { runnerLabelValue } from './chunk-S6VT3TNG.js';
|
|
7
|
+
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-FQPGZOH3.js';
|
|
8
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-5YJWKIIO.js';
|
|
9
|
+
import { withGitConfig, tokenHeader } from './chunk-ZW36EULQ.js';
|
|
10
|
+
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-36M66QKN.js';
|
|
11
11
|
import { mkdirSync, writeFileSync, existsSync, mkdtempSync, rmSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
|
|
12
12
|
import { tmpdir } from 'os';
|
|
13
13
|
import { join } from 'path';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
4
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
5
|
-
import { linkedAgentsPath } from './chunk-
|
|
6
|
-
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-
|
|
5
|
+
import { linkedAgentsPath } from './chunk-LW5RIKAV.js';
|
|
6
|
+
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-PDPBWX67.js';
|
|
7
7
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
8
8
|
import { MAINTAINED_SKILLS } from './chunk-ATEMEVFF.js';
|
|
9
9
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-QHYCF36K.js';
|
|
4
|
-
import { isAgentsMdLayout } from './chunk-
|
|
5
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
4
|
+
import { isAgentsMdLayout } from './chunk-3BEMKOFH.js';
|
|
5
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-OFZ5A2A5.js';
|
|
6
6
|
import { versionAtLeast } from './chunk-SF2TBJBP.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
|
-
import { machineSkillsState, staleAgentSkills } from './chunk-
|
|
8
|
+
import { machineSkillsState, staleAgentSkills } from './chunk-QMCWSBQO.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
10
|
-
import { hasSymlinkComponent } from './chunk-
|
|
11
|
-
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-
|
|
10
|
+
import { hasSymlinkComponent } from './chunk-LW5RIKAV.js';
|
|
11
|
+
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-PDPBWX67.js';
|
|
12
12
|
import { MAINTAINED_SKILLS } from './chunk-ATEMEVFF.js';
|
|
13
13
|
import { execFileSync } from 'child_process';
|
|
14
14
|
import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { checkStarterFiles, contextIsGoverned } from './chunk-
|
|
4
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
5
|
-
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-
|
|
6
|
-
import { withInjectedPrograms } from './chunk-
|
|
7
|
-
import { isLinkedRepository } from './chunk-
|
|
3
|
+
import { checkStarterFiles, contextIsGoverned } from './chunk-MOFT7QCR.js';
|
|
4
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-I6RBMWDV.js';
|
|
5
|
+
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-VASOYLWE.js';
|
|
6
|
+
import { withInjectedPrograms } from './chunk-F3RBGMHL.js';
|
|
7
|
+
import { isLinkedRepository } from './chunk-XF2HRP6A.js';
|
|
8
8
|
import { sanitizeTerminal } from './chunk-QHYCF36K.js';
|
|
9
9
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
10
|
-
import { checkFormerSkillNames } from './chunk-
|
|
11
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
12
|
-
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-
|
|
10
|
+
import { checkFormerSkillNames } from './chunk-SASWFX22.js';
|
|
11
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-OFZ5A2A5.js';
|
|
12
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-DHLEYFNL.js';
|
|
13
13
|
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-SF2TBJBP.js';
|
|
14
14
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
15
15
|
import { readStatuslineState, STATE_FRESH_MS } from './chunk-M53UNEO6.js';
|
|
16
16
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
17
|
-
import { installAgents, withSettingsText } from './chunk-
|
|
17
|
+
import { installAgents, withSettingsText } from './chunk-KR34GXEH.js';
|
|
18
18
|
import { cliForInstall, cliBinResolvable } from './chunk-ZHQC43NH.js';
|
|
19
19
|
import { readDeliveryRecord, readDegraded, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
20
20
|
import { deadHooksState, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
|
|
21
|
-
import { defaultAgents, legacyAgent, contextAgents } from './chunk-
|
|
21
|
+
import { defaultAgents, legacyAgent, contextAgents } from './chunk-PDPBWX67.js';
|
|
22
22
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
23
|
-
import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-
|
|
23
|
+
import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-6XORUAR7.js';
|
|
24
24
|
import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, accessSync, constants, statSync } from 'fs';
|
|
25
25
|
import { sep, join, dirname, resolve, delimiter } from 'path';
|
|
26
26
|
import { execFileSync } from 'child_process';
|
|
@@ -1051,8 +1051,8 @@ function doctorExitCode(checks) {
|
|
|
1051
1051
|
|
|
1052
1052
|
// src/doctor-report.ts
|
|
1053
1053
|
async function gatherDoctorChecks(options = {}) {
|
|
1054
|
-
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-
|
|
1055
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1054
|
+
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-ANS4SYJ3.js');
|
|
1055
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-6EOFYJWZ.js');
|
|
1056
1056
|
const configPath = options.configPath ?? defaultRunnerConfigPath();
|
|
1057
1057
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1058
1058
|
const hooks = (() => {
|
|
@@ -1080,7 +1080,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1080
1080
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1081
1081
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1082
1082
|
} else if (hasRunnerBlock(configPath)) {
|
|
1083
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1083
|
+
const { runnerHostChecks } = await import('./doctor-6TS6Y6DI.js');
|
|
1084
1084
|
const gateway = (() => {
|
|
1085
1085
|
try {
|
|
1086
1086
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1108,7 +1108,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1108
1108
|
const service = await (async () => {
|
|
1109
1109
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1110
1110
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1111
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1111
|
+
const { inspectRunnerService } = await import('./find-unit-RPIWIOJ2.js');
|
|
1112
1112
|
return inspectRunnerService(configPath);
|
|
1113
1113
|
})();
|
|
1114
1114
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -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-5YJWKIIO.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,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-SGZCU6L3.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-3WNKIXAJ.js';
|
|
5
|
+
import { runnerDir } from './chunk-5YJWKIIO.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { CONTROL_PLANE_DIR_VARIABLE, SUPPORTED_CONTROL_PLANE_LAYOUT } from './chunk-SF2TBJBP.js';
|
|
4
|
-
import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-
|
|
4
|
+
import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-PDPBWX67.js';
|
|
5
5
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
6
6
|
import { MAINTAINED_SKILLS } from './chunk-ATEMEVFF.js';
|
|
7
7
|
import { lstatSync, readFileSync } from 'fs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
4
|
-
import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-
|
|
5
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-ZW36EULQ.js';
|
|
4
|
+
import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-NFPJ2XC2.js';
|
|
5
|
+
import { defaultAgents } from './chunk-PDPBWX67.js';
|
|
6
6
|
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
7
7
|
import { symlinkSync, unlinkSync } from 'fs';
|
|
8
8
|
import { join } from 'path';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-QHYCF36K.js';
|
|
4
|
-
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-
|
|
4
|
+
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-3BEMKOFH.js';
|
|
5
5
|
import { DEFAULT_DASHBOARD } from './chunk-N3KGXHV4.js';
|
|
6
|
-
import { cliFetch, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { cliFetch, resolveGatewayCredentials } from './chunk-OFZ5A2A5.js';
|
|
7
7
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
8
8
|
import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
10
|
-
import { defaultAgents } from './chunk-
|
|
11
|
-
import { remoteLookupFailed } from './chunk-
|
|
10
|
+
import { defaultAgents } from './chunk-PDPBWX67.js';
|
|
11
|
+
import { remoteLookupFailed } from './chunk-6XORUAR7.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
13
13
|
import { lstatSync } from 'fs';
|
|
14
14
|
import { join, relative } from 'path';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
|
-
import { detectActiveSession, transcriptPathForSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { detectActiveSession, transcriptPathForSession } from './chunk-MOA4PGYL.js';
|
|
5
|
+
import { autoConnect } from './chunk-AABLA7NP.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-OFZ5A2A5.js';
|
|
8
8
|
import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
|
-
import { legacyAgent, captureAgents, sessionFolderIn } from './chunk-
|
|
12
|
+
import { legacyAgent, captureAgents, sessionFolderIn } from './chunk-PDPBWX67.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
-
import { resolveRepoIdentity, scrubText } from './chunk-
|
|
14
|
+
import { resolveRepoIdentity, scrubText } from './chunk-6XORUAR7.js';
|
|
15
15
|
import { FindingBatchSchema, findingGaps, FindingsResponseSchema, FINDING_CODE_EXCERPT_MAX_LENGTH, SAME_PROBLEM_RULES, FINDING_TRANSCRIPT_EXCERPT_MAX_LENGTH } from './chunk-NEXKR5RR.js';
|
|
16
16
|
import { readFileSync, existsSync } from 'fs';
|
|
17
17
|
import { homedir } from 'os';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { stripTerminalControls } from './chunk-
|
|
4
|
-
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-SGZCU6L3.js';
|
|
4
|
+
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-IKT2MOY6.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
7
7
|
createRequire(import.meta.url);
|
|
@@ -55,7 +55,7 @@ function envNamesOf(row, imageEnv) {
|
|
|
55
55
|
return [...new Set(names)].sort();
|
|
56
56
|
}
|
|
57
57
|
async function readOwnContainer(deps = {}) {
|
|
58
|
-
const run = deps.run ?? (await import('./docker-
|
|
58
|
+
const run = deps.run ?? (await import('./docker-G46NSNAE.js')).spawnRun;
|
|
59
59
|
const ids = candidateIds(deps.env ?? process.env, deps.readFile ?? ((path) => readFileSync(path, "utf8")));
|
|
60
60
|
if (ids.length === 0) return { ok: false, reason: "the runner cannot tell which container it runs in: HOSTNAME is empty and /proc/self/mountinfo names none" };
|
|
61
61
|
let problem = "";
|
|
@@ -1,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-JZJNPNNW.js';
|
|
4
|
+
import { orgHomeDir } from './chunk-5YJWKIIO.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
7
7
|
|
|
@@ -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-ZW36EULQ.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-
|
|
4
|
-
import { strippedVariables } from './chunk-
|
|
5
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-NFPJ2XC2.js';
|
|
4
|
+
import { strippedVariables } from './chunk-36M66QKN.js';
|
|
5
|
+
import { defaultAgents } from './chunk-PDPBWX67.js';
|
|
6
6
|
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
7
|
-
import { MIN_SCRUBBED_LITERAL } from './chunk-
|
|
7
|
+
import { MIN_SCRUBBED_LITERAL } from './chunk-6XORUAR7.js';
|
|
8
8
|
import { mkdirSync, writeFileSync, existsSync, unlinkSync, chmodSync } from 'fs';
|
|
9
9
|
import { request as request$1, createServer } from 'http';
|
|
10
10
|
import { request } from 'https';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { withInjectedPrograms } from './chunk-
|
|
4
|
-
import { sharedSkillNames } from './chunk-
|
|
3
|
+
import { withInjectedPrograms } from './chunk-F3RBGMHL.js';
|
|
4
|
+
import { sharedSkillNames } from './chunk-WV4T6ZOQ.js';
|
|
5
5
|
import { GOVERNANCE_VARIABLE, versionAtLeast, CONTROL_PLANE_DIR_VARIABLE } from './chunk-SF2TBJBP.js';
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
|
-
import { setupMachineSkills } from './chunk-
|
|
8
|
-
import { defaultAgents, agentById, legacyAgent } from './chunk-
|
|
7
|
+
import { setupMachineSkills } from './chunk-QMCWSBQO.js';
|
|
8
|
+
import { defaultAgents, agentById, legacyAgent } from './chunk-PDPBWX67.js';
|
|
9
9
|
import './chunk-PLVHIQJN.js';
|
|
10
10
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
11
11
|
import './chunk-ATEMEVFF.js';
|
|
12
12
|
import './chunk-RA3O54FC.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
-
import './chunk-
|
|
14
|
+
import './chunk-6XORUAR7.js';
|
|
15
15
|
import './chunk-NEXKR5RR.js';
|
|
16
16
|
import './chunk-Z5GEFMRW.js';
|
|
17
17
|
import { spawn, execFileSync } from 'child_process';
|
|
@@ -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-SXAXGPCQ.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);
|