@outerlayer/cli 0.36.0-next.20261102195652 → 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-2WL54CA2.js +39 -0
- package/dist/{agent-subcommand-4TEUJJNL.js → agent-subcommand-Z4UDDCLB.js} +6 -5
- package/dist/{artifact-link-cmd-ZCMQIT5Y.js → artifact-link-cmd-ZPQXVG5O.js} +2 -2
- package/dist/{bridge-4KPODDN7.js → bridge-LVTX4DVM.js} +8 -7
- package/dist/{build-3CEFKWGY.js → build-W5LRG2AO.js} +14 -14
- package/dist/{build-disk-DLW3WKC5.js → build-disk-3KTQZ6N5.js} +12 -12
- package/dist/build-info.json +1 -1
- package/dist/{builder-ALMQ5AWP.js → builder-UMCVSMDY.js} +11 -11
- package/dist/caller-DYXZCUF2.js +22 -0
- package/dist/{check-AEDFTYH6.js → check-NFLR5CGS.js} +58 -58
- package/dist/{chunk-DTQPDMHG.js → chunk-23SNF2LN.js} +4 -4
- package/dist/{chunk-DL2RYNXQ.js → chunk-2E2WWMRX.js} +28 -60
- package/dist/{chunk-6JLYU322.js → chunk-32GBZ7HD.js} +3 -3
- package/dist/{chunk-LZS5EYZ6.js → chunk-35OBGZYO.js} +1 -1
- package/dist/{chunk-BACWWK3E.js → chunk-36ML3NIO.js} +15 -15
- package/dist/{chunk-73E33ZA2.js → chunk-3EEUQZQU.js} +9 -9
- package/dist/{chunk-BZSJ77MO.js → chunk-46FKHE74.js} +1 -1
- package/dist/{chunk-HRBSEXYC.js → chunk-4Y7IEPQH.js} +6 -6
- package/dist/{chunk-Y5S2G2EZ.js → chunk-4YGPLC5Y.js} +7 -7
- package/dist/{chunk-2YC3TXWX.js → chunk-52RRBTZ5.js} +1 -1
- package/dist/{chunk-B5SWBFVE.js → chunk-66UG5SL4.js} +3 -3
- package/dist/{chunk-Z3MB7SV7.js → chunk-72EOJJVT.js} +7 -7
- package/dist/{chunk-FWKQHKCR.js → chunk-AACYODIT.js} +7 -5
- package/dist/{chunk-7XTLS5PG.js → chunk-AZTTOBJ5.js} +5 -5
- package/dist/{chunk-6QSIK5VA.js → chunk-B5GDCCOZ.js} +1 -1
- package/dist/{chunk-42DBDDHP.js → chunk-CBMEWHAR.js} +1 -1
- package/dist/{chunk-G35Y4LN5.js → chunk-CXMXXRNS.js} +1 -1
- package/dist/{chunk-J6VC3JCG.js → chunk-DCOQWKLK.js} +1 -1
- package/dist/{chunk-A24PDRNU.js → chunk-E2U7BBAT.js} +5 -5
- package/dist/{chunk-IX6CFXSW.js → chunk-EM4QCRI6.js} +9 -9
- package/dist/{chunk-J2OMKFYB.js → chunk-F7ODYKBA.js} +3 -3
- package/dist/{chunk-WVAXJOWG.js → chunk-FCMEWS3G.js} +5 -5
- package/dist/{chunk-7UGMB5VS.js → chunk-FVIDZ3GK.js} +34 -37
- package/dist/{chunk-LSLK4RS4.js → chunk-G3BUOMCF.js} +1 -0
- package/dist/{chunk-CA4OE2QT.js → chunk-GFSS3FRE.js} +4 -4
- package/dist/{chunk-KN3TDNF7.js → chunk-HGOJ67KV.js} +10 -21
- package/dist/{chunk-J6HWRVN2.js → chunk-HHKVXKQI.js} +8 -8
- package/dist/{chunk-PIZA7OG2.js → chunk-HKJCNBUB.js} +1 -1
- package/dist/{chunk-D74RGORK.js → chunk-HXSU4JLV.js} +1 -1
- package/dist/{chunk-BSPJI5T7.js → chunk-IEFSDAVW.js} +1 -1
- package/dist/{chunk-4UUKUOS7.js → chunk-IFLD3WEB.js} +3 -3
- package/dist/{chunk-M4HH2F64.js → chunk-ILP4ABFG.js} +6 -6
- package/dist/{chunk-HRHWA6TZ.js → chunk-IOFEDCTL.js} +1 -1
- package/dist/{chunk-H2NJG3TE.js → chunk-JU5SQNFB.js} +4 -4
- package/dist/{chunk-2XN34EKQ.js → chunk-JUQ52FZI.js} +3 -3
- package/dist/{chunk-JBPVEXHQ.js → chunk-JZBFR6JB.js} +8 -8
- package/dist/{chunk-T5QBWM6M.js → chunk-KG5BQFSO.js} +1 -1
- package/dist/{chunk-B36NSEUM.js → chunk-KIY2AUHY.js} +1 -1
- package/dist/{chunk-JVHWWJ2J.js → chunk-KKI3POPP.js} +6 -6
- package/dist/{chunk-4DLJ343I.js → chunk-KTL7GFQ3.js} +1 -1
- package/dist/{chunk-I4DM7SNX.js → chunk-LTAMZ36E.js} +1 -1
- package/dist/{chunk-6KH3NMIT.js → chunk-M7AIU22N.js} +124 -1099
- package/dist/{chunk-BN5U4RJU.js → chunk-MKGJ7TTH.js} +8 -8
- package/dist/{chunk-HZVS4MGL.js → chunk-NTK7RUVE.js} +7 -7
- package/dist/{chunk-UCMIS74X.js → chunk-OPUJGPPT.js} +2 -2
- package/dist/{chunk-PBGNX3PS.js → chunk-OQZ2B5AN.js} +1 -1
- package/dist/{chunk-PSQEGJPN.js → chunk-OROFFYEM.js} +5 -5
- package/dist/{chunk-Z66CKWOM.js → chunk-PMXVWQ4T.js} +1 -1
- package/dist/{chunk-ZSRMJOAK.js → chunk-QE7L5PJV.js} +3 -3
- package/dist/{chunk-6Z7R24XA.js → chunk-QJHXX2HG.js} +8 -8
- package/dist/{chunk-LO4CK734.js → chunk-REXQKAY7.js} +1 -1
- package/dist/{chunk-NMBXA3AT.js → chunk-RSPTOS4S.js} +3 -3
- package/dist/{chunk-HTRDL42C.js → chunk-TI32Q3VB.js} +1 -1
- package/dist/{chunk-I6U6QPN6.js → chunk-TOP4K2T6.js} +1138 -80
- package/dist/{chunk-XIDDJSQU.js → chunk-U37FB7ER.js} +2 -2
- package/dist/{chunk-F36EKGMP.js → chunk-UASEIXDB.js} +75 -159
- package/dist/{chunk-ML5YKV3B.js → chunk-UKDKM6Y6.js} +1 -1
- package/dist/{chunk-LHHDX7FB.js → chunk-UQ2YFDGP.js} +5 -5
- package/dist/{chunk-CXJC3JLN.js → chunk-V5S6CVGP.js} +5 -12
- package/dist/{chunk-FWSVWPMS.js → chunk-V6V3NN5G.js} +1 -1
- package/dist/{chunk-VKKKVYA4.js → chunk-VHX2C7DU.js} +1 -1
- package/dist/{chunk-LSZUTI6O.js → chunk-VNXITMKE.js} +1 -1
- package/dist/{chunk-T2KBHW6P.js → chunk-VUINLLWP.js} +3 -3
- package/dist/{chunk-5XX75FJ6.js → chunk-VWMQA7FN.js} +8 -8
- package/dist/{chunk-GBGJGYEE.js → chunk-W3CY6H56.js} +6 -6
- package/dist/{chunk-H23JP73I.js → chunk-WGZOLJPP.js} +1 -1
- package/dist/{chunk-A2U7T4ZH.js → chunk-X2M2G376.js} +18 -18
- package/dist/{chunk-FOSYM7TQ.js → chunk-X4QHDRXT.js} +2 -2
- package/dist/{chunk-SBZ545DH.js → chunk-XILGXRHT.js} +2 -2
- package/dist/{chunk-FIUUESD4.js → chunk-YIDWZYDY.js} +4 -4
- package/dist/{chunk-CI5LFLKH.js → chunk-YJQBL6SD.js} +2 -2
- package/dist/{chunk-Y2P3HWUG.js → chunk-YQGYZB6Y.js} +28 -20
- package/dist/{chunk-MVPOYQQY.js → chunk-Z4ASKZKN.js} +1 -1
- package/dist/{chunk-D6EXW4EB.js → chunk-ZM2SKQJD.js} +2 -2
- package/dist/{claude-launcher-NJGZUB3P.js → claude-launcher-LXCRQNU3.js} +10 -9
- package/dist/{cli-POIDBCZA.js → cli-WGFTREIM.js} +153 -165
- package/dist/{command-ZLBFX553.js → command-BZDNRIFI.js} +53 -53
- package/dist/config-VV4J2DMW.js +21 -0
- package/dist/{connect-cmd-6YKNFJJR.js → connect-cmd-UDYTPV2S.js} +14 -14
- package/dist/{container-start-55QELXPJ.js → container-start-BQD6IAKZ.js} +51 -51
- package/dist/{context-cleanup-3K2AOECJ.js → context-cleanup-ZKAL6X5I.js} +6 -5
- package/dist/{context-show-cmd-FGMRJ7IG.js → context-show-cmd-FXIYFC6Q.js} +15 -15
- package/dist/{control-plane-launch-DGPA3ONU.js → control-plane-launch-6HIHBOHF.js} +16 -15
- package/dist/{demo-record-cmd-2OKCGST7.js → demo-record-cmd-JTIK5WI3.js} +9 -8
- package/dist/{demo-voice-cmd-BPTSL7JA.js → demo-voice-cmd-5HV4AHY4.js} +23 -23
- package/dist/dist-64LM4JF4.js +7 -0
- package/dist/{docker-GFEEV42Z.js → docker-RB7YFA52.js} +11 -11
- package/dist/{doctor-ZOQSI3HL.js → doctor-BNL5J2NG.js} +54 -80
- package/dist/emit-artifact-cmd-VF6PO7NJ.js +43 -0
- package/dist/{emit-cmd-RO4L4PFZ.js → emit-cmd-PTOSSDQK.js} +9 -8
- package/dist/emit-criteria-cmd-QGCS6RCB.js +34 -0
- package/dist/{emit-demo-cmd-5KL64L74.js → emit-demo-cmd-O7YLI4ZL.js} +23 -23
- package/dist/{emit-finding-cmd-R4OEWQQR.js → emit-finding-cmd-GO2C5QCS.js} +17 -17
- package/dist/{emit-result-cmd-5YNQDTYG.js → emit-result-cmd-LQ4EW7ML.js} +21 -21
- package/dist/{emit-step-cmd-Z5WC7UEQ.js → emit-step-cmd-JWUNEZ4N.js} +17 -17
- package/dist/{exec-client-54XKNPTI.js → exec-client-725NVWZ5.js} +9 -8
- package/dist/find-unit-U5U52ASA.js +23 -0
- package/dist/{findings-cmd-J5ZCY2AT.js → findings-cmd-JN67G7EG.js} +17 -17
- package/dist/{fleet-readiness-DKCFOUYP.js → fleet-readiness-7P5NN3RT.js} +16 -15
- package/dist/governing-source-NC7N3PKM.js +40 -0
- package/dist/{guest-init-5QZRGP62.js → guest-init-N65WE3XP.js} +10 -9
- package/dist/{hook-fast-ICT2PRQX.js → hook-fast-VZDS3U7L.js} +4 -4
- package/dist/{hook-install-GDNRMML4.js → hook-install-DOEXRPO5.js} +6 -5
- package/dist/{hook-wrap-fast-LWWKKPGK.js → hook-wrap-fast-L5PCBVNI.js} +3 -3
- package/dist/host-checks-5HVG67AR.js +78 -0
- package/dist/host-key-KPUIJK4Q.js +17 -0
- package/dist/{image-tag-RX4WTHJH.js → image-tag-RAVG4ZXU.js} +9 -8
- package/dist/index.js +6 -6
- package/dist/{init-BZXVQO22.js → init-J5XW2VNL.js} +49 -50
- package/dist/init-MN4R6USQ.js +78 -0
- package/dist/{init-cmd-3LWFEKHD.js → init-cmd-INPWUFWW.js} +31 -31
- package/dist/{init-update-THEHC25C.js → init-update-7BA2HEZD.js} +26 -26
- package/dist/{install-cmd-WBVTTE5Z.js → install-cmd-UUEJWTHG.js} +11 -10
- package/dist/{layout-7XMC7S6K.js → layout-KSD373US.js} +6 -5
- package/dist/{login-browser-QH4KYG3F.js → login-browser-NUQQYH5J.js} +2 -2
- package/dist/{logs-7YIXBO2K.js → logs-2NBI76N2.js} +8 -7
- package/dist/loop-G7HCDVIP.js +89 -0
- package/dist/machine-WQCCGKOP.js +78 -0
- package/dist/{machine-skills-HR4RNRNR.js → machine-skills-IMGN27M7.js} +6 -5
- package/dist/{mcp-install-cmd-SMPLT43Q.js → mcp-install-cmd-25PA5RAI.js} +6 -5
- package/dist/{mcp-serve-cmd-HLS24XCG.js → mcp-serve-cmd-JVND6WYT.js} +10 -9
- package/dist/{paths-2YTU4QIO.js → paths-S6KJMQSQ.js} +8 -7
- package/dist/pending-BBPET4YL.js +17 -0
- package/dist/{pidfile-SPBTMTCJ.js → pidfile-QDFTWZP4.js} +9 -8
- package/dist/{record-3KXRFK5C.js → record-AJSJBMOG.js} +9 -8
- package/dist/{relay-I2T43PPB.js → relay-X7EBGNZW.js} +6 -5
- package/dist/{relay-protocol-GI2GC2AM.js → relay-protocol-TAXUFBSM.js} +6 -5
- package/dist/runner-env-XKUW67Y4.js +23 -0
- package/dist/{runner-identity-32MTGA2F.js → runner-identity-7RYI6PS4.js} +11 -11
- package/dist/{runner-key-FXYWHMMO.js → runner-key-R4QPZDDR.js} +49 -49
- package/dist/{session-sender-B6INUY7G.js → session-sender-FQARNO3V.js} +22 -22
- package/dist/{shell-function-GYD2ZQQG.js → shell-function-D2T55XFG.js} +2 -2
- package/dist/{spec-cmd-ZEZFMC4A.js → spec-cmd-WOSYBAKL.js} +18 -18
- package/dist/{starter-pack-IMKIUA56.js → starter-pack-OLH6O4YX.js} +7 -6
- package/dist/state-IGLONCPS.js +17 -0
- package/dist/{status-VPFIIHOZ.js → status-BUHMAGRI.js} +49 -49
- package/dist/{statusline-fast-NUVHCNRX.js → statusline-fast-36U3TOCL.js} +3 -3
- package/dist/{sync-cmd-W756BQWX.js → sync-cmd-2DR7HOVJ.js} +21 -21
- package/dist/update-steps-GDNIKWWH.js +79 -0
- package/dist/{watch-6EDRJZMG.js → watch-3I4ZN52F.js} +29 -26
- package/dist/{work-claim-cmd-7HR4AVCT.js → work-claim-cmd-M6ACVTNM.js} +23 -23
- package/dist/{work-cmd-ZP4UIHBT.js → work-cmd-HLNFJWQQ.js} +17 -17
- package/dist/work-comment-cmd-JTCAB3DG.js +37 -0
- package/dist/{work-demo-cmd-3A7Z3VVS.js → work-demo-cmd-XLNJYGCL.js} +17 -17
- package/dist/{work-logs-cmd-NDPSRSCM.js → work-logs-cmd-Q3UUIOQI.js} +17 -17
- package/dist/{work-open-pr-cmd-Z5B3ERAU.js → work-open-pr-cmd-H74M4ZXC.js} +18 -18
- package/dist/{work-pr-cmd-ZVPGCDWD.js → work-pr-cmd-M3X2D5MC.js} +17 -17
- package/dist/{work-proofs-cmd-VAXJ5UBF.js → work-proofs-cmd-ZRPPBFDL.js} +19 -19
- package/dist/{work-proofs-record-K467JH24.js → work-proofs-record-PF2JRTWE.js} +27 -27
- package/dist/{work-stop-cmd-J45Q2QT7.js → work-stop-cmd-2NO2F2BD.js} +17 -17
- package/package.json +1 -1
- package/dist/agent-setup-5UWZZMZM.js +0 -39
- package/dist/caller-XNBGW4SP.js +0 -22
- package/dist/config-GKSSGMXD.js +0 -21
- package/dist/dist-VVZIGSAF.js +0 -7
- package/dist/emit-artifact-cmd-3LDJ4VRW.js +0 -43
- package/dist/emit-criteria-cmd-V3ERJXHB.js +0 -34
- package/dist/find-unit-OI56YEX5.js +0 -23
- package/dist/governing-source-7PD4ISRN.js +0 -40
- package/dist/host-checks-GADKYJFN.js +0 -78
- package/dist/host-key-FI6KWMJC.js +0 -16
- package/dist/init-EKF4ILHF.js +0 -78
- package/dist/loop-RUQQ4L5A.js +0 -89
- package/dist/machine-IGHZW3IO.js +0 -78
- package/dist/pending-S2SKIBCB.js +0 -16
- package/dist/runner-env-HOWRS6I6.js +0 -23
- package/dist/state-DVKFUWB3.js +0 -16
- package/dist/update-steps-D6L6AG6E.js +0 -79
- package/dist/work-comment-cmd-CYDOEMW3.js +0 -37
- package/dist/{chunk-TPMLB3VZ.js → chunk-A6RI6KTI.js} +1 -1
- package/dist/{chunk-P6PHY33P.js → chunk-F3T5QJ24.js} +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-
|
|
4
|
-
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-
|
|
3
|
+
import { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-TOP4K2T6.js';
|
|
4
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-G3BUOMCF.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
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-
|
|
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-
|
|
7
|
-
import { upgradedStarterText } from './chunk-
|
|
8
|
-
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-
|
|
9
|
-
import { senderPidfile } from './chunk-
|
|
10
|
-
import { installScrubContext } from './chunk-
|
|
6
|
+
import { hasStoredCredential, AGENT_COMMANDS, storeAgentCredential, credentialFromStdin, isAgentName } from './chunk-GFSS3FRE.js';
|
|
7
|
+
import { upgradedStarterText } from './chunk-UQ2YFDGP.js';
|
|
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-
|
|
28
|
-
import { sanitizeTerminal, planArtifactUpload } from './chunk-
|
|
29
|
-
import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, parseTranscript, scrubDeep } from './chunk-6KH3NMIT.js';
|
|
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
|
+
import { sanitizeTerminal, planArtifactUpload } from './chunk-F3T5QJ24.js';
|
|
30
29
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
31
|
-
import { signerFor } from './chunk-
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, credentialAgent, agentCredential,
|
|
37
|
-
import { defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, resolvePackRoot, orderSessions, extractFacts, sessionsToTimeline } from './chunk-
|
|
38
|
-
import { CheckItemsSchema, downconvertSession } from './chunk-WUKLQWGY.js';
|
|
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
|
+
import { sharedSkillNames, skillConflictMessage } from './chunk-32GBZ7HD.js';
|
|
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, 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
|
+
import { defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, resolvePackRoot, legacyAgent, orderSessions, extractFacts, sessionsToTimeline } from './chunk-TOP4K2T6.js';
|
|
39
37
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
40
38
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
41
39
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
40
|
+
import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, scrubDeep } from './chunk-M7AIU22N.js';
|
|
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
|
|
@@ -3299,9 +3291,13 @@ async function writeEvalInput(request) {
|
|
|
3299
3291
|
const parsed = [];
|
|
3300
3292
|
const copiedByTrace = /* @__PURE__ */ new Map();
|
|
3301
3293
|
let sessionsUnavailable;
|
|
3294
|
+
const capture = legacyAgent(request.agents).adapter.capture;
|
|
3302
3295
|
if (!request.transcripts.ok) {
|
|
3303
3296
|
sessionsUnavailable = request.transcripts.reason;
|
|
3304
3297
|
log.error(`${tag} the sessions could not be copied for the checks' input: ${sessionsUnavailable}`);
|
|
3298
|
+
} else if (capture === void 0) {
|
|
3299
|
+
sessionsUnavailable = "the legacy agent has no capture part to read the transcripts with";
|
|
3300
|
+
log.error(`${tag} the sessions could not be read for the checks' input: ${sessionsUnavailable}`);
|
|
3305
3301
|
} else {
|
|
3306
3302
|
const { copied, missed } = request.transcripts;
|
|
3307
3303
|
scrubbing(request.scrub, request.job.commitIdentity?.author, () => {
|
|
@@ -3313,7 +3309,7 @@ async function writeEvalInput(request) {
|
|
|
3313
3309
|
const stem = options.fallbackId ?? transcript.path;
|
|
3314
3310
|
let session = null;
|
|
3315
3311
|
try {
|
|
3316
|
-
session =
|
|
3312
|
+
session = capture.parseText(transcript.content, options).session;
|
|
3317
3313
|
} catch {
|
|
3318
3314
|
}
|
|
3319
3315
|
const traceId = traceIdForSession(session?.id ?? stem);
|
|
@@ -5438,10 +5434,9 @@ ${body}`);
|
|
|
5438
5434
|
})
|
|
5439
5435
|
};
|
|
5440
5436
|
}
|
|
5441
|
-
|
|
5442
|
-
|
|
5437
|
+
|
|
5438
|
+
// src/runner/maven-proxy.ts
|
|
5443
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";
|
|
5444
|
-
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";
|
|
5445
5440
|
function namesGlobalSettings(args) {
|
|
5446
5441
|
return args.split(/\s+/).some((token) => token === "--global-settings" || token.startsWith("--global-settings=") || token === "-gs" || token.startsWith("-gs="));
|
|
5447
5442
|
}
|
|
@@ -5473,13 +5468,6 @@ function mavenSettingsXml(proxyUrl, noProxy) {
|
|
|
5473
5468
|
""
|
|
5474
5469
|
].join("\n");
|
|
5475
5470
|
}
|
|
5476
|
-
function writeMavenSettings(buildDir2, proxyUrl, noProxy) {
|
|
5477
|
-
const dir = join(buildDir2, MAVEN_DIR);
|
|
5478
|
-
mkdirSync(dir, { recursive: true });
|
|
5479
|
-
const file = join(dir, MAVEN_SETTINGS_FILE);
|
|
5480
|
-
writeFileSync(file, mavenSettingsXml(proxyUrl, noProxy));
|
|
5481
|
-
return file;
|
|
5482
|
-
}
|
|
5483
5471
|
function mavenArgs(settingsFile, team) {
|
|
5484
5472
|
const own = team?.trim() ?? "";
|
|
5485
5473
|
if (own !== "" && namesGlobalSettings(own)) return { value: team, skipped: true };
|
|
@@ -5590,19 +5578,6 @@ function withMavenArgs(env, settingsFile, note) {
|
|
|
5590
5578
|
}
|
|
5591
5579
|
if (settingsFile !== void 0) env.MAVEN_ARGS = mavenArgs(settingsFile, team).value;
|
|
5592
5580
|
}
|
|
5593
|
-
function hostMavenSettings(env, buildDir2, note) {
|
|
5594
|
-
if (/\s/.test(buildDir2)) {
|
|
5595
|
-
note?.(MAVEN_SPACE_NOTE);
|
|
5596
|
-
return void 0;
|
|
5597
|
-
}
|
|
5598
|
-
if (!existsSync(buildDir2)) return void 0;
|
|
5599
|
-
try {
|
|
5600
|
-
return writeMavenSettings(buildDir2, env.HTTPS_PROXY, env.NO_PROXY);
|
|
5601
|
-
} catch (err) {
|
|
5602
|
-
note?.(`the build's Maven settings could not be written, so its Maven gets no proxy from the runner: ${describeCallFailure(err)}`);
|
|
5603
|
-
return void 0;
|
|
5604
|
-
}
|
|
5605
|
-
}
|
|
5606
5581
|
function execProxyEnvironment(build) {
|
|
5607
5582
|
const brokerHost = build.broker === void 0 ? void 0 : build.broker.slice(0, build.broker.lastIndexOf(":")).replace(/^\[|\]$/g, "");
|
|
5608
5583
|
return proxyEnvironment(proxyUrlFor(build), brokerHost);
|
|
@@ -5673,15 +5648,11 @@ function onceNote(write) {
|
|
|
5673
5648
|
function attemptNote(log, tag) {
|
|
5674
5649
|
return onceNote((line2) => log.line(`${tag} ${line2}`));
|
|
5675
5650
|
}
|
|
5676
|
-
function hostCommandEnvironment(base, build, config, hooksPath, note
|
|
5651
|
+
function hostCommandEnvironment(base, build, config, hooksPath, note) {
|
|
5677
5652
|
let env = { ...base };
|
|
5678
5653
|
if (build.exec !== void 0) {
|
|
5679
5654
|
Object.assign(env, execProxyEnvironment(build));
|
|
5680
5655
|
withMavenArgs(env, build.mavenSettings, note);
|
|
5681
|
-
} else if (build.proxyPort !== void 0) {
|
|
5682
|
-
Object.assign(env, proxyEnvironment(`http://127.0.0.1:${build.proxyPort}`));
|
|
5683
|
-
env.NODE_OPTIONS = withProxyWarningHidden(env.NODE_OPTIONS);
|
|
5684
|
-
withMavenArgs(env, hostMavenSettings(env, build.buildDir, note), note);
|
|
5685
5656
|
}
|
|
5686
5657
|
const ports = build.destinations ?? [];
|
|
5687
5658
|
const portOf = (name) => ports.find((entry) => entry.name === name)?.port;
|
|
@@ -5690,18 +5661,12 @@ function hostCommandEnvironment(base, build, config, hooksPath, note, agents = d
|
|
|
5690
5661
|
const address = build.exec !== void 0 ? containerLocalAddress(index) : port === void 0 ? void 0 : `http://127.0.0.1:${port}/`;
|
|
5691
5662
|
if (address !== void 0) Object.assign(env, destinationEnvironment([destination], () => address));
|
|
5692
5663
|
});
|
|
5693
|
-
if (build.builtIns === true) {
|
|
5694
|
-
const credential = agentCredential(base, {}, agents);
|
|
5695
|
-
for (const name of strippedVariables(agents)) delete env[name];
|
|
5696
|
-
Object.assign(env, builtInEnvironment((name) => `http://127.0.0.1:${portOf(name) ?? 0}`, credential, agents));
|
|
5697
|
-
}
|
|
5698
5664
|
if (build.exec === void 0 && hooksPath !== void 0) env = withHooksPath(env, hooksPath);
|
|
5699
5665
|
return env;
|
|
5700
5666
|
}
|
|
5701
5667
|
async function startHostServices(input) {
|
|
5702
5668
|
const { runtime, config, build } = input;
|
|
5703
5669
|
const destinations = config.build?.destinations ?? [];
|
|
5704
|
-
const builtIns = builtInNames(runtime.agents);
|
|
5705
5670
|
const services = await startBuildServices({
|
|
5706
5671
|
startTunnel: runtime.startTunnel,
|
|
5707
5672
|
tunnelOptions: runtime.tunnelOptions,
|
|
@@ -5710,24 +5675,13 @@ async function startHostServices(input) {
|
|
|
5710
5675
|
destinations,
|
|
5711
5676
|
allowHosts: config.build?.allowHosts,
|
|
5712
5677
|
...optionalEgress(config),
|
|
5713
|
-
serve:
|
|
5714
|
-
|
|
5715
|
-
...input.process ? { builtIns: { gatewayUrl: config.url, itemKey: input.itemKey, upstreams: runtime.upstreams, agents: runtime.agents } } : {},
|
|
5716
|
-
ports: {
|
|
5717
|
-
proxy: build.proxyPort,
|
|
5718
|
-
destinations: build.destinations?.filter((d) => !builtIns.includes(d.name)).map((d) => d.port),
|
|
5719
|
-
builtIns: Object.fromEntries((build.destinations ?? []).filter((d) => builtIns.includes(d.name)).map((d) => [d.name, d.port]))
|
|
5720
|
-
},
|
|
5678
|
+
serve: "both",
|
|
5679
|
+
ports: { destinations: build.destinations?.map((d) => d.port) },
|
|
5721
5680
|
hostEnv: runtime.hostEnv,
|
|
5722
5681
|
destinationOptions: runtime.destinationOptions,
|
|
5723
5682
|
...input.routeLog === void 0 ? {} : { log: input.routeLog }
|
|
5724
5683
|
});
|
|
5725
|
-
build.
|
|
5726
|
-
build.destinations = [
|
|
5727
|
-
...destinations.map((destination, index) => ({ name: destination.name, port: services.destinationPorts[index] })),
|
|
5728
|
-
...Object.entries(services.builtInPorts).map(([name, port]) => ({ name, port }))
|
|
5729
|
-
];
|
|
5730
|
-
if (input.process) build.builtIns = true;
|
|
5684
|
+
build.destinations = destinations.map((destination, index) => ({ name: destination.name, port: services.destinationPorts[index] }));
|
|
5731
5685
|
runtime.tunnels.set(build.buildId, services);
|
|
5732
5686
|
if (build.broker !== void 0) await listenOnBroker(services, build.broker);
|
|
5733
5687
|
return services;
|
|
@@ -5744,7 +5698,6 @@ async function closeHostBuild(runtime, build) {
|
|
|
5744
5698
|
await tunnel.close();
|
|
5745
5699
|
}
|
|
5746
5700
|
rmSync(build.buildDir, { recursive: true, force: true });
|
|
5747
|
-
if (build.workDir !== void 0) rmSync(build.workDir, { recursive: true, force: true });
|
|
5748
5701
|
}
|
|
5749
5702
|
|
|
5750
5703
|
// src/runner/sender.ts
|
|
@@ -6027,47 +5980,6 @@ function buildReleaseLog(jobDirPath, endStage, scrub) {
|
|
|
6027
5980
|
if (parts.length === 0) return void 0;
|
|
6028
5981
|
return capRunnerLog(scrub(parts.join("\n")) + "\n");
|
|
6029
5982
|
}
|
|
6030
|
-
var ENDED = "ended before provision finished";
|
|
6031
|
-
async function provisionProcess(input) {
|
|
6032
|
-
const { config, runtime, item, repository, jobDir } = input;
|
|
6033
|
-
if (buildAgent(runtime.agents)?.adapter.credentials !== void 0 && agentCredential(runtime.hostEnv, {}, runtime.agents) === void 0) return { ok: false, reason: AGENT_CREDENTIAL_MISSING };
|
|
6034
|
-
if (repository === void 0 || repository === null || repository === "") {
|
|
6035
|
-
return { ok: false, reason: "the work item names no repository to clone" };
|
|
6036
|
-
}
|
|
6037
|
-
const buildId = randomBytes(6).toString("hex");
|
|
6038
|
-
const buildDir2 = buildDir(config.configPath, buildId);
|
|
6039
|
-
const workDir = join(jobDir, "work");
|
|
6040
|
-
const state = { buildId, buildDir: buildDir2, workDir };
|
|
6041
|
-
const environment = sharedUserEnvironment(input.cliVersion);
|
|
6042
|
-
input.save(state, environment);
|
|
6043
|
-
const bail = async (reason) => {
|
|
6044
|
-
try {
|
|
6045
|
-
await cleanupProcess(runtime, state);
|
|
6046
|
-
} catch (err) {
|
|
6047
|
-
input.log.error(`#${item.number} cleanup failed: ${describeCallFailure(err)}`);
|
|
6048
|
-
}
|
|
6049
|
-
return { ok: false, reason };
|
|
6050
|
-
};
|
|
6051
|
-
if (input.aborted()) return bail(ENDED);
|
|
6052
|
-
mkdirSync(buildDir2, { recursive: true });
|
|
6053
|
-
chmodSync(buildDir2, 493);
|
|
6054
|
-
try {
|
|
6055
|
-
await startHostServices({ runtime, config, build: state, jobDir, itemKey: input.itemKey, process: true, routeLog: (line2) => input.log.line(`#${item.number} ${line2}`) });
|
|
6056
|
-
} catch (err) {
|
|
6057
|
-
return bail(`the tunnel could not start: ${describeCallFailure(err)}`);
|
|
6058
|
-
}
|
|
6059
|
-
input.save(state, environment);
|
|
6060
|
-
if (input.aborted()) return bail(ENDED);
|
|
6061
|
-
const checkout = join(workDir, "checkout");
|
|
6062
|
-
const remote = runtime.remoteFor?.(repository) ?? `https://github.com/${repository}.git`;
|
|
6063
|
-
const cloned = await runtime.clone({ remote, dest: checkout });
|
|
6064
|
-
if (!cloned.ok) return bail(cloned.reason);
|
|
6065
|
-
if (input.aborted()) return bail(ENDED);
|
|
6066
|
-
return { ok: true, workdir: checkout, state, environment };
|
|
6067
|
-
}
|
|
6068
|
-
function cleanupProcess(runtime, state) {
|
|
6069
|
-
return closeHostBuild(runtime, state);
|
|
6070
|
-
}
|
|
6071
5983
|
var SAVED_FOLDERS = ["home", "work"];
|
|
6072
5984
|
function stopProcessesScript() {
|
|
6073
5985
|
return [
|
|
@@ -7614,7 +7526,7 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
|
|
|
7614
7526
|
}
|
|
7615
7527
|
log.line(`${tag} cleanup started`);
|
|
7616
7528
|
const cleanupStartedMs = now().getTime();
|
|
7617
|
-
const hostMade = job.build !== void 0
|
|
7529
|
+
const hostMade = job.build !== void 0;
|
|
7618
7530
|
if (vmBuild !== void 0) {
|
|
7619
7531
|
let cleanedUp = true;
|
|
7620
7532
|
tunnelRecord = vmBuild.runtime.tunnels.get(vmBuild.state.buildId)?.record();
|
|
@@ -7649,21 +7561,8 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
|
|
|
7649
7561
|
}
|
|
7650
7562
|
}
|
|
7651
7563
|
if (cleanedUp) log.line(`${tag} cleanup ok (${formatDuration(now().getTime() - cleanupStartedMs)})`);
|
|
7652
|
-
} else if (!hostMade && (job.build !== void 0 || isBuiltinProcess(config.hooks.cleanup))) {
|
|
7653
|
-
let cleanedUp = true;
|
|
7654
|
-
if (job.build !== void 0) {
|
|
7655
|
-
const runtime = deps.container ?? createContainerRuntime();
|
|
7656
|
-
tunnelRecord = runtime.tunnels.get(job.build.buildId)?.record();
|
|
7657
|
-
try {
|
|
7658
|
-
await cleanupProcess(runtime, job.build);
|
|
7659
|
-
} catch (err) {
|
|
7660
|
-
cleanedUp = false;
|
|
7661
|
-
log.error(`${tag} cleanup failed: ${describeCallFailure(err)} \xB7 continuing`);
|
|
7662
|
-
}
|
|
7663
|
-
}
|
|
7664
|
-
if (cleanedUp) log.line(`${tag} cleanup ok (${formatDuration(now().getTime() - cleanupStartedMs)})`);
|
|
7665
7564
|
} else {
|
|
7666
|
-
if (!isBuiltinContainer(config.hooks.cleanup) && !
|
|
7565
|
+
if (!isBuiltinContainer(config.hooks.cleanup) && !isBuiltinVm(config.hooks.cleanup)) {
|
|
7667
7566
|
const cleanupEnv = {
|
|
7668
7567
|
...jobEnv(claimCalls(config, job), job.item, job.itemKey, jobDirPath, process.env, job.branch, job.commitIdentity?.author, spoolHomeFor(config, job)),
|
|
7669
7568
|
...job.build === void 0 ? {} : { OUTERLAYER_BUILD_DIR: job.build.buildDir },
|
|
@@ -8900,11 +8799,18 @@ async function buildInBuilder(opts, deps, prepared) {
|
|
|
8900
8799
|
let tunnel;
|
|
8901
8800
|
let sanitized;
|
|
8902
8801
|
let timedOut = false;
|
|
8802
|
+
let ended = false;
|
|
8903
8803
|
const controller = new AbortController();
|
|
8904
8804
|
const timer = opts.deadlineMs === void 0 ? void 0 : setTimeout(() => {
|
|
8905
8805
|
timedOut = true;
|
|
8906
8806
|
controller.abort();
|
|
8907
8807
|
}, Math.max(0, opts.deadlineMs - Date.now()));
|
|
8808
|
+
const onEnded = () => {
|
|
8809
|
+
ended = true;
|
|
8810
|
+
controller.abort();
|
|
8811
|
+
};
|
|
8812
|
+
if (opts.signal?.aborted === true) onEnded();
|
|
8813
|
+
else opts.signal?.addEventListener("abort", onEnded, { once: true });
|
|
8908
8814
|
const tail = [];
|
|
8909
8815
|
let result;
|
|
8910
8816
|
let enginePanic;
|
|
@@ -8948,7 +8854,7 @@ async function buildInBuilder(opts, deps, prepared) {
|
|
|
8948
8854
|
const exec = (argv) => ({ argv, user: "root", cwd: "/", env: { PATH: ROOT_PATH2 } });
|
|
8949
8855
|
const check = (status, what) => {
|
|
8950
8856
|
if (hostFailure !== void 0) throw new StepFailed(`${what} stopped: ${hostFailure}`);
|
|
8951
|
-
if (controller.signal.aborted) throw new StepFailed(`${what} was stopped at the time limit`);
|
|
8857
|
+
if (controller.signal.aborted) throw new StepFailed(ended ? `${what} was stopped because its build ended` : `${what} was stopped at the time limit`);
|
|
8952
8858
|
if (status !== 0) throw new StepFailed(`${what} failed (exit ${status})`);
|
|
8953
8859
|
};
|
|
8954
8860
|
const cacheSpace = async () => {
|
|
@@ -9109,6 +9015,7 @@ async function buildInBuilder(opts, deps, prepared) {
|
|
|
9109
9015
|
failure3 = await explain(err);
|
|
9110
9016
|
} finally {
|
|
9111
9017
|
if (timer !== void 0) clearTimeout(timer);
|
|
9018
|
+
opts.signal?.removeEventListener("abort", onEnded);
|
|
9112
9019
|
for (const { stream } of inputs) stream.destroy();
|
|
9113
9020
|
const stopped = await stopBuilder();
|
|
9114
9021
|
await tunnel?.close().catch(() => void 0);
|
|
@@ -9145,6 +9052,7 @@ async function buildInBuilder(opts, deps, prepared) {
|
|
|
9145
9052
|
async function explain(err) {
|
|
9146
9053
|
if (err instanceof RecipeError) return err;
|
|
9147
9054
|
if (hostFailure !== void 0) return new RecipeError("image_builder_failed", `the image build stopped: ${hostFailure}`, logPath);
|
|
9055
|
+
if (ended) return new RecipeError("image_builder_failed", `the build ended, so its image build was stopped. The build log is at ${logPath}`, logPath);
|
|
9148
9056
|
if (timedOut) {
|
|
9149
9057
|
const limit = opts.timeLimitMinutes === void 0 ? "runner.timeLimitMinutes" : `runner.timeLimitMinutes (${opts.timeLimitMinutes} minutes)`;
|
|
9150
9058
|
return new RecipeError("image_builder_failed", `the image build ran past ${limit} and the builder microVM was stopped. The build log is at ${logPath}`, logPath);
|
|
@@ -10235,7 +10143,6 @@ function createContainerRuntime(opts = {}) {
|
|
|
10235
10143
|
remoteFor,
|
|
10236
10144
|
readHead: opts.readHead ?? readDefaultBranchHead,
|
|
10237
10145
|
readKeyFiles: opts.readKeyFiles ?? readDefaultBranchFiles,
|
|
10238
|
-
clone: opts.clone ?? ((input) => cloneRepository(input.remote, input.dest)),
|
|
10239
10146
|
destinationOptions: opts.destinationOptions,
|
|
10240
10147
|
upstreams: opts.upstreams,
|
|
10241
10148
|
agents: opts.agents,
|
|
@@ -10352,6 +10259,7 @@ async function waitForRelay(runtime, state) {
|
|
|
10352
10259
|
}
|
|
10353
10260
|
return false;
|
|
10354
10261
|
}
|
|
10262
|
+
var ABORT_POLL_MS = 1e3;
|
|
10355
10263
|
async function obtainImage(input) {
|
|
10356
10264
|
const { config, runtime, tokens, repository, tag, log } = input;
|
|
10357
10265
|
for (; ; ) {
|
|
@@ -10369,10 +10277,19 @@ async function obtainImage(input) {
|
|
|
10369
10277
|
try {
|
|
10370
10278
|
const common = { repository, configPath: config.configPath, ...input.organizationId === void 0 ? {} : { organizationId: input.organizationId }, readToken, pinned: input.pinned, log: (line2) => log.line(`${tag} ${line2}`) };
|
|
10371
10279
|
if (input.inBuilder !== void 0) {
|
|
10372
|
-
|
|
10280
|
+
const ended = new AbortController();
|
|
10281
|
+
const watch = setInterval(() => {
|
|
10282
|
+
if (input.aborted()) ended.abort();
|
|
10283
|
+
}, ABORT_POLL_MS);
|
|
10284
|
+
try {
|
|
10285
|
+
return { ok: true, built: await runtime.buildRootDisk({ ...input.inBuilder, ...common, guestHelper: input.guestHelper, deadlineMs: input.deadlineMs, signal: ended.signal }) };
|
|
10286
|
+
} finally {
|
|
10287
|
+
clearInterval(watch);
|
|
10288
|
+
}
|
|
10373
10289
|
}
|
|
10374
10290
|
return { ok: true, built: await runtime.buildImage({ ...common, buildMemory: config.build?.memory ?? "8g", guestHelper: input.guestHelper }) };
|
|
10375
10291
|
} catch (err) {
|
|
10292
|
+
if (input.aborted()) return { ok: false, reason: "ended before provision finished", aborted: true };
|
|
10376
10293
|
if (err instanceof RecipeError && err.code === "build_in_progress" && (input.now?.() ?? /* @__PURE__ */ new Date()).getTime() < input.deadlineMs) {
|
|
10377
10294
|
log.line(`${tag} waiting for another build of ${repository}'s image`);
|
|
10378
10295
|
await runtime.sleep(BUSY_IMAGE_WAIT_MS);
|
|
@@ -11415,9 +11332,8 @@ function timeoutAfter(ms, sleep) {
|
|
|
11415
11332
|
});
|
|
11416
11333
|
return { done, cancel: () => clearTimeout(timer) };
|
|
11417
11334
|
}
|
|
11418
|
-
function noCleanEnvironment(
|
|
11419
|
-
|
|
11420
|
-
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";
|
|
11421
11337
|
}
|
|
11422
11338
|
function makeRecorder(input) {
|
|
11423
11339
|
const { config, job, deps, jobDir } = input;
|
|
@@ -11496,7 +11412,7 @@ async function runHostChecks(input) {
|
|
|
11496
11412
|
for (const check of checks) await record(check, "fail", reason, keyTail);
|
|
11497
11413
|
};
|
|
11498
11414
|
try {
|
|
11499
|
-
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());
|
|
11500
11416
|
if (tokens === void 0) return await failAll("the build's repository tokens are no longer held, so the branch cannot be fetched");
|
|
11501
11417
|
if (job.branch === void 0) return await failAll("the build pushed no branch: the claim names none");
|
|
11502
11418
|
const claimed = repositoriesOf({ repositories: job.repositories, repository, branch: job.branch });
|
|
@@ -11745,4 +11661,4 @@ async function runHostChecks(input) {
|
|
|
11745
11661
|
}
|
|
11746
11662
|
}
|
|
11747
11663
|
|
|
11748
|
-
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,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { mcpTargetPath, INIT_STDIO_ENTRY, INIT_DOCS_ENTRY, DOCS_MCP_SERVER_NAME } from './chunk-
|
|
4
|
-
import { VALIDATOR_FILES, VALIDATORS_DIR, POLICY_PATH, POLICY_CONTENT } from './chunk-
|
|
5
|
-
import { skillsBaseFor } from './chunk-
|
|
3
|
+
import { mcpTargetPath, INIT_STDIO_ENTRY, INIT_DOCS_ENTRY, DOCS_MCP_SERVER_NAME } from './chunk-Z4ASKZKN.js';
|
|
4
|
+
import { VALIDATOR_FILES, VALIDATORS_DIR, POLICY_PATH, POLICY_CONTENT } from './chunk-66UG5SL4.js';
|
|
5
|
+
import { skillsBaseFor } from './chunk-ZM2SKQJD.js';
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
-
import { hasSymlinkComponent } from './chunk-
|
|
8
|
+
import { hasSymlinkComponent } from './chunk-OQZ2B5AN.js';
|
|
9
9
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
10
|
-
import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-
|
|
10
|
+
import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-TOP4K2T6.js';
|
|
11
11
|
import { createHash } from 'crypto';
|
|
12
12
|
import { existsSync, readFileSync } from 'fs';
|
|
13
13
|
import { join } from 'path';
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
4
|
-
import { defaultAgents } from './chunk-
|
|
5
|
-
import { PROVIDERS } from './chunk-
|
|
3
|
+
import { builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, strippedVariables, builtInEnvironment, managedAgentCredential, agentCredential, destinationPort } from './chunk-23SNF2LN.js';
|
|
4
|
+
import { defaultAgents } from './chunk-TOP4K2T6.js';
|
|
5
|
+
import { PROVIDERS } from './chunk-G3BUOMCF.js';
|
|
6
6
|
import { existsSync, unlinkSync, chmodSync } from 'fs';
|
|
7
7
|
import { request as request$1, createServer } from 'http';
|
|
8
8
|
import { request } from 'https';
|
|
@@ -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 { defaultAgents } from './chunk-
|
|
3
|
+
import { defaultAgents } from './chunk-TOP4K2T6.js';
|
|
4
4
|
import { openSync, fstatSync, readSync, closeSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { contextAgents, defaultAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-
|
|
3
|
+
import { contextAgents, defaultAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-TOP4K2T6.js';
|
|
4
4
|
import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-CDDED64E.js';
|
|
5
5
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
6
6
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-
|
|
4
|
-
import {
|
|
5
|
-
import { resolveGatewayCredentials } from './chunk-LZS5EYZ6.js';
|
|
3
|
+
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-4Y7IEPQH.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-35OBGZYO.js';
|
|
6
5
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
7
6
|
import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
8
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
9
8
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
9
|
+
import { resolveRepoIdentity } from './chunk-M7AIU22N.js';
|
|
10
10
|
|
|
11
11
|
createRequire(import.meta.url);
|
|
12
12
|
|