@outerlayer/cli 0.38.0-next.20261106190200 → 0.38.0-next.20261107023135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/dist/agent-setup-IJNDJ4XL.js +40 -0
- package/dist/{agent-subcommand-PSI3BAXM.js → agent-subcommand-XECZFIAS.js} +4 -4
- package/dist/{artifact-link-cmd-QP6VO7AJ.js → artifact-link-cmd-F6M2BDT7.js} +2 -2
- package/dist/{bridge-3WAVT5SX.js → bridge-LDKKFAHH.js} +7 -7
- package/dist/{build-4KG7H2XK.js → build-PTFRHSXI.js} +13 -13
- package/dist/{build-disk-GGGJ237B.js → build-disk-EO2VG3MF.js} +11 -11
- package/dist/build-info.json +1 -1
- package/dist/{builder-HV7PUSZZ.js → builder-LCIBBOWQ.js} +10 -10
- package/dist/caller-Y3RGYXHU.js +23 -0
- package/dist/{check-LENGOFUF.js → check-U2CFIW42.js} +56 -56
- package/dist/{chunk-2MA2KWHN.js → chunk-2IVRTP6M.js} +1 -1
- package/dist/{chunk-NEEMG462.js → chunk-2KL345FW.js} +1 -1
- package/dist/{chunk-YXXJBHHF.js → chunk-2VNT47DG.js} +10 -2
- package/dist/{chunk-2VN36ZPA.js → chunk-3HEBSWNE.js} +1 -1
- package/dist/{chunk-ZYQT6Q5R.js → chunk-3RFREMDQ.js} +148 -77
- package/dist/{chunk-ZGN3NOVS.js → chunk-3UKDQNFF.js} +1 -1
- package/dist/{chunk-ANFGBAWY.js → chunk-6AKP3FBS.js} +5 -5
- package/dist/{chunk-KMUERD5F.js → chunk-6IXZHORY.js} +4 -4
- package/dist/{chunk-UF3YTRGU.js → chunk-6Y4ZE74I.js} +4 -4
- package/dist/{chunk-G2ITKUX4.js → chunk-7GQE5D72.js} +1 -1
- package/dist/{chunk-3KVYSJAL.js → chunk-7VVTZNUP.js} +6 -6
- package/dist/{chunk-6ZSUJ3ES.js → chunk-ABPIZHXI.js} +3 -3
- package/dist/{chunk-27P5FSZT.js → chunk-B7CAUXSV.js} +6 -6
- package/dist/{chunk-76Y35TWH.js → chunk-BEQYO2VO.js} +1 -1
- package/dist/{chunk-GM3H4ZHG.js → chunk-BJYX3PMU.js} +1 -1
- package/dist/{chunk-HTQFAHXD.js → chunk-BU25W7GF.js} +2 -2
- package/dist/{chunk-MCLSXTLY.js → chunk-C3P637LO.js} +1 -1
- package/dist/{chunk-6744TXEY.js → chunk-DDPCKTVN.js} +7 -7
- package/dist/{chunk-U4ZHNHCF.js → chunk-DRUM7NWK.js} +1 -1
- package/dist/{chunk-M4JFGNG7.js → chunk-EOXQCUFJ.js} +2 -2
- package/dist/{chunk-TDBP62O2.js → chunk-FPEZB7CD.js} +7 -7
- package/dist/{chunk-USJVENIV.js → chunk-FPPBL7ZC.js} +1 -1
- package/dist/{chunk-TOVSIUEJ.js → chunk-FSQDS7A6.js} +1 -1
- package/dist/{chunk-CFTSVW7W.js → chunk-FSYEDSSA.js} +1 -1
- package/dist/{chunk-6BPCEGJL.js → chunk-FZD6GIW5.js} +9 -9
- package/dist/{chunk-IOURL3LH.js → chunk-G3NMES6L.js} +10 -10
- package/dist/{chunk-NMCRJ7NZ.js → chunk-HCIOUSUX.js} +2 -3
- package/dist/{chunk-JKYCEXZX.js → chunk-ICKFR2DB.js} +7 -7
- package/dist/{chunk-RFBJKK2L.js → chunk-IQHREL5T.js} +8 -8
- package/dist/{chunk-RDPLNQFI.js → chunk-KM77NSXE.js} +16 -16
- package/dist/{chunk-VRSUCU2N.js → chunk-LPTMKPCD.js} +1 -1
- package/dist/{chunk-7ATHSAAT.js → chunk-LQEI4HZF.js} +1 -1
- package/dist/{chunk-5MWE5IOO.js → chunk-LYBHKNEG.js} +1 -1
- package/dist/{chunk-YZ5M7S7U.js → chunk-LYORNXIT.js} +1 -1
- package/dist/{chunk-OVHBDADU.js → chunk-MLM4BYK2.js} +1 -1
- package/dist/{chunk-DF6ZHOIA.js → chunk-MXSQINKG.js} +7 -7
- package/dist/{chunk-BEKYNGLH.js → chunk-NDLWXIVK.js} +1 -1
- package/dist/{chunk-T7KETYNW.js → chunk-NOBB3LEO.js} +1 -1
- package/dist/{chunk-OMCDOJO2.js → chunk-O3TOA2KE.js} +3 -3
- package/dist/{chunk-XDVLF6OT.js → chunk-OAOZDJYT.js} +3 -3
- package/dist/{chunk-IXB2IIEW.js → chunk-OCQ5FQZR.js} +1 -1
- package/dist/{chunk-GM4TY5H2.js → chunk-OO33S4AF.js} +7 -5
- package/dist/{chunk-ML3O3A3Q.js → chunk-OSHKKESX.js} +77 -8
- package/dist/{chunk-TDUBZ4FR.js → chunk-PJNOTSB5.js} +1 -1
- package/dist/{chunk-FBBI6K7D.js → chunk-PVLDVUNJ.js} +2 -2
- package/dist/{chunk-G2EWER4K.js → chunk-QF6US5YN.js} +2 -2
- package/dist/{chunk-FCU7WSCV.js → chunk-QHT6PIFP.js} +4 -4
- package/dist/{chunk-JW25JVK4.js → chunk-QQSXVGVH.js} +6 -6
- package/dist/{chunk-TMYBADTM.js → chunk-QZAZPRDW.js} +5 -5
- package/dist/{chunk-JKQAOSSX.js → chunk-RWNVQSGX.js} +3 -3
- package/dist/{chunk-4PH3KXDP.js → chunk-RZXP427Z.js} +1 -1
- package/dist/{chunk-LRE4QIMD.js → chunk-SDUCKX46.js} +9 -9
- package/dist/{chunk-NTRXOTO7.js → chunk-SEAVWMW2.js} +6 -6
- package/dist/{chunk-SUMXGPSG.js → chunk-SOB4KVRZ.js} +6 -6
- package/dist/{chunk-E2ZWGLNZ.js → chunk-SYENSVOK.js} +3 -3
- package/dist/{chunk-VOSC32UF.js → chunk-SZQKS4QK.js} +6 -6
- package/dist/{chunk-QHOC32DP.js → chunk-TMQKDFKO.js} +10 -10
- package/dist/{chunk-5QBTW367.js → chunk-TWWAV67F.js} +5 -5
- package/dist/{chunk-ZOWUJUSF.js → chunk-V43NFQE3.js} +1 -1
- package/dist/{chunk-5BDYRHZZ.js → chunk-VLAVNWM4.js} +7 -7
- package/dist/{chunk-7KF36CVC.js → chunk-VYAFSV43.js} +1 -1
- package/dist/{chunk-GQEVQIS6.js → chunk-VZGTPITG.js} +1 -1
- package/dist/{chunk-LFBQL4AP.js → chunk-WCBLLIPD.js} +5 -5
- package/dist/{chunk-TFBNHDPT.js → chunk-WCQJNDQC.js} +4 -4
- package/dist/{chunk-YSIVKYLW.js → chunk-WDJPGE6K.js} +4 -4
- package/dist/{chunk-677TCNML.js → chunk-WX7XACEU.js} +1 -1
- package/dist/{chunk-H2L5NB5U.js → chunk-X25VXXCF.js} +1 -1
- package/dist/{chunk-A24MNKYN.js → chunk-X32HZMMA.js} +4 -4
- package/dist/{chunk-7B4A6PBC.js → chunk-XGPFDFDU.js} +3 -3
- package/dist/{chunk-ZPCUXCQX.js → chunk-XKJZHY4J.js} +1 -1
- package/dist/{chunk-3E65OLJ4.js → chunk-YFARFA4Y.js} +3 -3
- package/dist/{chunk-F2PTLH3J.js → chunk-YRCFINIR.js} +29 -28
- package/dist/{chunk-YL6GWLK5.js → chunk-YSCRMX2T.js} +8 -8
- package/dist/{claude-launcher-G73I5AGW.js → claude-launcher-62NZAUKT.js} +7 -7
- package/dist/{cli-5SILU2LX.js → cli-UWN7LDID.js} +171 -147
- package/dist/{command-DBBEP7VM.js → command-WVYT7OZA.js} +50 -50
- package/dist/{config-KOSTQZXG.js → config-4YPIDOHH.js} +12 -12
- package/dist/{connect-cmd-UNBJYFYM.js → connect-cmd-GAWR7QSH.js} +13 -13
- package/dist/{container-start-AAOLPVAH.js → container-start-ZMIAMEQC.js} +48 -48
- package/dist/{context-cleanup-MKVMFRNR.js → context-cleanup-L3ZKG6EU.js} +4 -4
- package/dist/{context-show-cmd-P3LBILMP.js → context-show-cmd-YJ4IJ2WI.js} +14 -14
- package/dist/{control-plane-launch-2GOJKA53.js → control-plane-launch-GOKEVTPX.js} +14 -14
- package/dist/{demo-record-cmd-BPINCNYS.js → demo-record-cmd-AZSEQXO4.js} +8 -8
- package/dist/{demo-voice-cmd-HBK3TWM5.js → demo-voice-cmd-KHEMTR5T.js} +20 -20
- package/dist/{dist-MUOHO52Q.js → dist-RMEOTTVL.js} +2 -2
- package/dist/{docker-NUPVSMVQ.js → docker-QMKIWXHF.js} +10 -10
- package/dist/{doctor-GHRSOZLB.js → doctor-VCAXH6RM.js} +50 -50
- package/dist/{emit-artifact-cmd-CULA5AM4.js → emit-artifact-cmd-72QEOEJH.js} +19 -19
- package/dist/{emit-cmd-746N7PYR.js → emit-cmd-X5F5HUTQ.js} +7 -7
- package/dist/{emit-criteria-cmd-NY4RPUPD.js → emit-criteria-cmd-HTHETRH6.js} +16 -16
- package/dist/{emit-demo-cmd-MYXTGMJI.js → emit-demo-cmd-LFYJURFC.js} +20 -20
- package/dist/{emit-finding-cmd-ZGGMPQFT.js → emit-finding-cmd-GFWCMJFY.js} +16 -16
- package/dist/{emit-result-cmd-GNEQHIIZ.js → emit-result-cmd-FTWLKM6G.js} +18 -18
- package/dist/{emit-step-cmd-NYCJ3XFQ.js → emit-step-cmd-J4L2OAWE.js} +16 -16
- package/dist/{exec-client-QHB62OZ6.js → exec-client-YQH4ZSRM.js} +8 -8
- package/dist/find-unit-F3Q54LLR.js +24 -0
- package/dist/{findings-cmd-ZINCPCAB.js → findings-cmd-VFE7VINC.js} +16 -16
- package/dist/{fleet-readiness-FZCSJ7FY.js → fleet-readiness-FGQPCFSP.js} +14 -14
- package/dist/{governing-source-CQML5N2D.js → governing-source-NMZSHEHR.js} +21 -21
- package/dist/{guest-init-C6FWJVAQ.js → guest-init-DPZAVCWH.js} +9 -9
- package/dist/{hook-fast-6IOLZ45F.js → hook-fast-3VMKCCUO.js} +1 -1
- package/dist/{hook-install-VL4CEO4S.js → hook-install-TTF6LASI.js} +4 -4
- package/dist/host-checks-5SPBYP6O.js +79 -0
- package/dist/host-key-QZWN6ECO.js +18 -0
- package/dist/{image-tag-IBAYH5XH.js → image-tag-5TZ7MF5H.js} +8 -8
- package/dist/index.js +4 -4
- package/dist/{init-EIQFBAZI.js → init-RUAPRUFX.js} +46 -46
- package/dist/init-TFGPUVUU.js +79 -0
- package/dist/{init-agent-7UQZFG5E.js → init-agent-TT25322F.js} +46 -46
- package/dist/{init-cmd-TNJXWFQU.js → init-cmd-6A3PHOXB.js} +27 -27
- package/dist/{init-update-KJWMEKR3.js → init-update-JLOPXC5U.js} +24 -24
- package/dist/{install-cmd-UXH2LGVA.js → install-cmd-JDA4CNYW.js} +10 -10
- package/dist/{layout-YVTZDKVU.js → layout-AKKICGLZ.js} +4 -4
- package/dist/{login-browser-I6CWBA7K.js → login-browser-VNPN4FVO.js} +2 -2
- package/dist/{logs-22Y7QG42.js → logs-WPNNAY5E.js} +7 -7
- package/dist/loop-2SYWWJHW.js +90 -0
- package/dist/machine-GD2UAX6F.js +79 -0
- package/dist/{machine-skills-6PJOJU5J.js → machine-skills-GGLBQANZ.js} +4 -4
- package/dist/{mcp-install-cmd-LJ7AYDDT.js → mcp-install-cmd-3NHDPAML.js} +4 -4
- package/dist/{mcp-serve-cmd-34LDKQSR.js → mcp-serve-cmd-CLVZFL37.js} +9 -9
- package/dist/{paths-2KOZGV5U.js → paths-PSLRVOVY.js} +7 -7
- package/dist/pending-GWDAXQSA.js +18 -0
- package/dist/{pidfile-FQBXIHX7.js → pidfile-5E4YPCTC.js} +8 -8
- package/dist/{record-7ENQ7Y5M.js → record-7ZMZA5QE.js} +8 -8
- package/dist/{relay-JLU7RTFS.js → relay-UUIHK5TY.js} +5 -5
- package/dist/{relay-protocol-AEIZCA3K.js → relay-protocol-MQVXSFN4.js} +5 -5
- package/dist/{runner-agents-I5YLJY7G.js → runner-agents-M5CMF2ZA.js} +4 -4
- package/dist/runner-env-3S64BNCU.js +24 -0
- package/dist/{runner-identity-MW53HCYG.js → runner-identity-3GMF6FKI.js} +10 -10
- package/dist/{runner-key-GERK5EV3.js → runner-key-KZGNIOHI.js} +46 -46
- package/dist/{session-sender-65X5PR7Q.js → session-sender-M325MH5U.js} +19 -19
- package/dist/{spec-cmd-3TNVJBN7.js → spec-cmd-QIVFOHR4.js} +17 -17
- package/dist/{starter-pack-PLSMFXBU.js → starter-pack-P5BRWSAP.js} +5 -5
- package/dist/state-5H5LGYWN.js +18 -0
- package/dist/{status-KGSQF55G.js → status-QQZT6HHZ.js} +46 -46
- package/dist/{sync-cmd-FNATZ5VL.js → sync-cmd-JHFRUMM5.js} +18 -18
- package/dist/update-steps-KDMOFCVB.js +80 -0
- package/dist/{watch-FEBBRV22.js → watch-TVHFOLVK.js} +18 -18
- package/dist/{work-claim-cmd-2EPUH3KT.js → work-claim-cmd-LTIAXIWH.js} +23 -23
- package/dist/{work-cmd-V5A3MDXV.js → work-cmd-VC353JLU.js} +16 -16
- package/dist/{work-comment-cmd-PUE47SUV.js → work-comment-cmd-SRQXRRJT.js} +18 -18
- package/dist/{work-demo-cmd-7Q3KW2OO.js → work-demo-cmd-INUFIHU4.js} +16 -16
- package/dist/{work-logs-cmd-SQBJX6MC.js → work-logs-cmd-TMJC7RRS.js} +16 -16
- package/dist/work-no-change-cmd-7NI4FKCC.js +85 -0
- package/dist/{work-open-pr-cmd-PNDF2CR5.js → work-open-pr-cmd-O6XW2YGD.js} +17 -17
- package/dist/{work-pr-cmd-U7WL7KYE.js → work-pr-cmd-QSE3BH3Z.js} +16 -16
- package/dist/{work-proofs-cmd-YHOM2NIH.js → work-proofs-cmd-MHSLSBDV.js} +18 -18
- package/dist/{work-proofs-record-CYIZ2RDH.js → work-proofs-record-FU2Y6FBF.js} +24 -24
- package/dist/{work-stop-cmd-ENRSBWFT.js → work-stop-cmd-J77H7RLL.js} +16 -16
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +20 -6
- package/skill-pack/maintained/outerlayer-build/references/code-review-judge.md +80 -0
- package/skill-pack/maintained/outerlayer-build/references/release.md +0 -15
- package/skill-pack/maintained/outerlayer-build/references/review-loop.md +1 -3
- package/skill-pack/maintained/outerlayer-evidence/SKILL.md +3 -7
- package/dist/agent-setup-RO2DJUF3.js +0 -40
- package/dist/caller-3P3AEY7W.js +0 -23
- package/dist/find-unit-UVS2FM7E.js +0 -24
- package/dist/host-checks-HPCMZ7XT.js +0 -79
- package/dist/host-key-5APXLMY2.js +0 -18
- package/dist/init-YD4MNH5U.js +0 -79
- package/dist/loop-SVE6TL6G.js +0 -90
- package/dist/machine-RQIO5VRG.js +0 -79
- package/dist/pending-RYWBDJCE.js +0 -18
- package/dist/runner-env-GXY2VMNH.js +0 -24
- package/dist/state-EKXXOPA5.js +0 -18
- package/dist/update-steps-3LOJ377U.js +0 -80
- package/skill-pack/validators/code-review.yaml +0 -30
|
@@ -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, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems, 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-OSHKKESX.js';
|
|
4
4
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
5
5
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
6
|
-
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-
|
|
7
|
-
import { upgradedStarterText } from './chunk-
|
|
8
|
-
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-
|
|
9
|
-
import { writeDockerClientConfig } from './chunk-
|
|
10
|
-
import { senderPidfile } from './chunk-
|
|
11
|
-
import { installScrubContext } from './chunk-
|
|
6
|
+
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-WCBLLIPD.js';
|
|
7
|
+
import { upgradedStarterText } from './chunk-TWWAV67F.js';
|
|
8
|
+
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-OAOZDJYT.js';
|
|
9
|
+
import { writeDockerClientConfig } from './chunk-7GQE5D72.js';
|
|
10
|
+
import { senderPidfile } from './chunk-6IXZHORY.js';
|
|
11
|
+
import { installScrubContext } from './chunk-SDUCKX46.js';
|
|
12
12
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
13
|
-
import { runnerImageVersion } from './chunk-
|
|
14
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-
|
|
13
|
+
import { runnerImageVersion } from './chunk-BEQYO2VO.js';
|
|
14
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-PVLDVUNJ.js';
|
|
15
15
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
16
|
-
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-
|
|
17
|
-
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-
|
|
16
|
+
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-VLAVNWM4.js';
|
|
17
|
+
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-WDJPGE6K.js';
|
|
18
18
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
19
19
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
20
|
-
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-
|
|
21
|
-
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-
|
|
22
|
-
import { describeCallFailure, shortClaim, retrySend, resolveGoverningSource, prefetchGovernedContext, refusalCode, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, keepStagedContext, pinnedSourceOf, WORKFLOW_PERMISSION_REASON, shimScript, controlPlaneTokenFailure } from './chunk-
|
|
23
|
-
import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-
|
|
24
|
-
import { runnerCredentialProblem, builtinKind, keyRunnerFactory, sandboxSizeOf, networkOf, sandboxTimeLimitMinutes, DEFAULT_SETUP_MINUTES, optionalEgress, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, DEFAULT_CHECK_TIME_LIMIT_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-
|
|
25
|
-
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-
|
|
26
|
-
import { runnerLabelValue, said, RUNNER_LABEL, BUILD_LABEL, prepareRunArgs, containerRunArgs, firstLine, writeJobFile, readJobFile, spawnRun, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, mountableHome, homeCopyRunArgs, containerExecArgs, childEnvironment, readDu, identityRunArgs, parseIdentity, withAnswerProtocol, MAX_REPORT_BYTES, parseSize, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, judgeCommand,
|
|
27
|
-
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-
|
|
28
|
-
import { sanitizeTerminal, planArtifactUpload } from './chunk-
|
|
29
|
-
import { sharedSkillNames, skillConflictMessage } from './chunk-
|
|
20
|
+
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-LQEI4HZF.js';
|
|
21
|
+
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-SYENSVOK.js';
|
|
22
|
+
import { describeCallFailure, shortClaim, retrySend, resolveGoverningSource, prefetchGovernedContext, refusalCode, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, keepStagedContext, pinnedSourceOf, WORKFLOW_PERMISSION_REASON, shimScript, controlPlaneTokenFailure } from './chunk-ICKFR2DB.js';
|
|
23
|
+
import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-IQHREL5T.js';
|
|
24
|
+
import { runnerCredentialProblem, builtinKind, keyRunnerFactory, sandboxSizeOf, networkOf, sandboxTimeLimitMinutes, DEFAULT_SETUP_MINUTES, optionalEgress, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, DEFAULT_CHECK_TIME_LIMIT_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-6Y4ZE74I.js';
|
|
25
|
+
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-QF6US5YN.js';
|
|
26
|
+
import { runnerLabelValue, said, RUNNER_LABEL, BUILD_LABEL, prepareRunArgs, containerRunArgs, firstLine, writeJobFile, readJobFile, spawnRun, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, mountableHome, homeCopyRunArgs, containerExecArgs, childEnvironment, readDu, identityRunArgs, parseIdentity, withAnswerProtocol, JUDGE_TREE, MAX_REPORT_BYTES, parseSize, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, judgeCommand, WORKSPACE_LABEL, networkHelperRunArgs, JUDGE_MAX_TURNS, JUDGE_DIR, hashJudgeProgram, identityScript, identityArgs, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, MAX_ITEMS_BYTES, JUDGE_ITEMS, JUDGE_REPORT, SAVED_STATE_LABEL } from './chunk-FZD6GIW5.js';
|
|
27
|
+
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-XKJZHY4J.js';
|
|
28
|
+
import { sanitizeTerminal, planArtifactUpload } from './chunk-OCQ5FQZR.js';
|
|
29
|
+
import { sharedSkillNames, skillConflictMessage } from './chunk-BJYX3PMU.js';
|
|
30
30
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
31
|
-
import { signerFor } from './chunk-
|
|
32
|
-
import { vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, buildDir, ghConfigDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, sessionsDir, builderCacheDiskPath, buildsDir, runnerDirOfBuild, mirrorDir, orgHomeDir, deliveryDir, jobConsolePath, vsockPath, SHIM_DIR, builderConsolePath, rootfsPathFor, diskTemplatesDir } from './chunk-
|
|
33
|
-
import { BUILD_HOME, repositoriesOf, primaryOf, SandboxError, describeSandboxError, buildEnvironment, CHECKOUT_DIR, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, trustEnvironment, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, toolProxyEnvironment, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, checkoutPath, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf } from './chunk-
|
|
34
|
-
import { agentCredential, builtInNames, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, currentAgentCredential, removedAgentCredentialValues, managedAgentCredential, realFdStorePort, RELAY_ID, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, fdName, DOCKER_DESKTOP_REASON } from './chunk-
|
|
31
|
+
import { signerFor } from './chunk-FSQDS7A6.js';
|
|
32
|
+
import { vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, buildDir, ghConfigDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, sessionsDir, builderCacheDiskPath, buildsDir, runnerDirOfBuild, mirrorDir, orgHomeDir, deliveryDir, jobConsolePath, vsockPath, SHIM_DIR, builderConsolePath, rootfsPathFor, diskTemplatesDir } from './chunk-LYORNXIT.js';
|
|
33
|
+
import { BUILD_HOME, repositoriesOf, primaryOf, SandboxError, describeSandboxError, buildEnvironment, CHECKOUT_DIR, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, trustEnvironment, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, toolProxyEnvironment, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, checkoutPath, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf } from './chunk-QHT6PIFP.js';
|
|
34
|
+
import { agentCredential, builtInNames, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, currentAgentCredential, removedAgentCredentialValues, managedAgentCredential, realFdStorePort, RELAY_ID, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, fdName, DOCKER_DESKTOP_REASON } from './chunk-BU25W7GF.js';
|
|
35
35
|
import { versionAtLeast } from './chunk-SF2TBJBP.js';
|
|
36
|
-
import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, defaultCommandLine, credentialAgent, agentVersionOf, 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 } from './chunk-
|
|
37
|
-
import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, orderSessions, extractFacts, sessionsToTimeline, resolvePackRoot } from './chunk-
|
|
36
|
+
import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, defaultCommandLine, credentialAgent, agentVersionOf, 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 } from './chunk-PJNOTSB5.js';
|
|
37
|
+
import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, orderSessions, extractFacts, sessionsToTimeline, resolvePackRoot } from './chunk-OO33S4AF.js';
|
|
38
38
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
39
39
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
40
40
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
41
|
-
import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, scrubDeep } from './chunk-
|
|
42
|
-
import { CheckItemsSchema, CHECK_ITEM_HREF_MAX_LENGTH, downconvertSession } from './chunk-
|
|
41
|
+
import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, scrubDeep } from './chunk-X25VXXCF.js';
|
|
42
|
+
import { CheckItemsSchema, CODE_REVIEW_NAME, JUDGE_NOT_RUN_ITEM_ID, REVIEWED_COMMIT_ITEM_ID, CHECK_ITEM_REASON_MAX_LENGTH, CHECK_ITEM_HREF_MAX_LENGTH, downconvertSession } from './chunk-2VNT47DG.js';
|
|
43
43
|
import { randomUUID, randomBytes, createHash } from 'crypto';
|
|
44
44
|
import { rmSync, mkdirSync, existsSync, readFileSync, mkdtempSync, statSync, appendFileSync, writeFileSync, readdirSync, accessSync, constants, openSync, closeSync, renameSync, rmdirSync, chmodSync, createReadStream, lstatSync, unlinkSync, realpathSync, writeSync, truncateSync, cpSync, fstatSync, readSync, createWriteStream, copyFileSync, linkSync } from 'fs';
|
|
45
45
|
import { join, dirname, isAbsolute, delimiter, basename, sep, relative, resolve } from 'path';
|
|
@@ -1482,11 +1482,13 @@ function declaredPullRequest(workItem, repository) {
|
|
|
1482
1482
|
const chosen = matching.find((entry) => entry.state === "open") ?? matching[0];
|
|
1483
1483
|
return chosen === void 0 ? void 0 : chosen.prNumber;
|
|
1484
1484
|
}
|
|
1485
|
-
async function readItemEvaluation(config, item, fetchImpl) {
|
|
1485
|
+
async function readItemEvaluation(config, item, fetchImpl, claimId) {
|
|
1486
1486
|
try {
|
|
1487
1487
|
const body = fields(await readWorkItem(config, item, fetchImpl));
|
|
1488
1488
|
const hasPullRequest = Array.isArray(body.pullRequests) ? body.pullRequests.length > 0 : void 0;
|
|
1489
|
-
|
|
1489
|
+
const noChangeClaim = fields(body.noChange).claimId;
|
|
1490
|
+
const noChangeRecorded = claimId !== void 0 && typeof noChangeClaim === "string" && noChangeClaim === claimId;
|
|
1491
|
+
return { ok: true, evaluation: parseEvaluation(body.evaluation, body.checks), hasPullRequest, noChangeRecorded };
|
|
1490
1492
|
} catch (err) {
|
|
1491
1493
|
return { ok: false, reason: describeCallFailure(err) };
|
|
1492
1494
|
}
|
|
@@ -1508,6 +1510,7 @@ function fit(prefix, parts) {
|
|
|
1508
1510
|
}
|
|
1509
1511
|
function decideFromEvaluation(read) {
|
|
1510
1512
|
if (!read.ok) return { outcome: "incomplete", reason: fit("the item's status could not be read: ", [read.reason]) };
|
|
1513
|
+
if (read.noChangeRecorded === true && read.hasPullRequest !== true) return { outcome: "ok" };
|
|
1511
1514
|
if (read.hasPullRequest === false) {
|
|
1512
1515
|
return { outcome: "incomplete", reason: "the build opened no pull request for the item" };
|
|
1513
1516
|
}
|
|
@@ -7696,7 +7699,7 @@ ${input.extraHead ?? ""}
|
|
|
7696
7699
|
<p>${escape(summary)}.${input.reason === void 0 ? "" : ` ${escape(input.reason)}.`}</p>
|
|
7697
7700
|
<p class="meta">Judged at commit <code>${escape(input.commit)}</code>.</p>
|
|
7698
7701
|
<table>
|
|
7699
|
-
<thead><tr><th>Item</th><th>Result</th><th>Reason</th><th>
|
|
7702
|
+
<thead><tr><th>Item</th><th>Result</th><th>Reason</th><th>Where</th></tr></thead>
|
|
7700
7703
|
<tbody>
|
|
7701
7704
|
${rows}
|
|
7702
7705
|
</tbody>
|
|
@@ -7711,6 +7714,16 @@ var LIMIT_KEY_TAIL = " (runner.checks.timeLimitMinutes)";
|
|
|
7711
7714
|
var MAX_DIFF_BYTES = 4 * 1024 * 1024;
|
|
7712
7715
|
var noAgentProgram = (label) => `the image has no ${label} for the judge`;
|
|
7713
7716
|
var REPORT_CAPTION = "The host's criteria judge, each criterion judged against the tests that prove it";
|
|
7717
|
+
var WHOLE_REPORT_CAPTION = "The host's judge of the change as a whole";
|
|
7718
|
+
var CODE_REVIEW_BRIEF = "code-review-judge.md";
|
|
7719
|
+
function codeReviewCheck() {
|
|
7720
|
+
let text2;
|
|
7721
|
+
try {
|
|
7722
|
+
text2 = readFileSync(join(resolvePackRoot(), "maintained", "outerlayer-build", "references", CODE_REVIEW_BRIEF), "utf8");
|
|
7723
|
+
} catch {
|
|
7724
|
+
}
|
|
7725
|
+
return { name: CODE_REVIEW_NAME, builtIn: true, judge: { brief: CODE_REVIEW_BRIEF, text: text2, subjects: "none" } };
|
|
7726
|
+
}
|
|
7714
7727
|
function treeFileText(root, path) {
|
|
7715
7728
|
const segments = path.split("/");
|
|
7716
7729
|
if (segments.some((segment) => segment === "" || segment === "." || segment === "..")) return void 0;
|
|
@@ -7738,23 +7751,33 @@ function proofsFileIn(root) {
|
|
|
7738
7751
|
return void 0;
|
|
7739
7752
|
}
|
|
7740
7753
|
}
|
|
7741
|
-
async function
|
|
7742
|
-
const workItemId = Object(
|
|
7754
|
+
async function* resultsOf(config, workItem, fetchImpl) {
|
|
7755
|
+
const workItemId = Object(workItem).workItemId;
|
|
7743
7756
|
if (typeof workItemId !== "string") throw new WorkCommandError("the work item read named no id");
|
|
7744
7757
|
const signer = await signerFor(config.configPath);
|
|
7745
|
-
const latest = /* @__PURE__ */ new Map();
|
|
7746
7758
|
let since = null;
|
|
7747
7759
|
do {
|
|
7748
7760
|
const query = since === null ? "" : `?since=${encodeURIComponent(since)}`;
|
|
7749
7761
|
const page = await getJson(config.url, `/v1/work-items/${encodeURIComponent(workItemId)}/changes${query}`, config.apiKey, config.appId, fetchImpl, signer);
|
|
7750
|
-
for (const entry of Array.isArray(page.data) ? page.data : [])
|
|
7751
|
-
const { name, result, source } = Object(entry);
|
|
7752
|
-
if (source === "host" && typeof name === "string" && typeof result === "string") latest.set(name, result);
|
|
7753
|
-
}
|
|
7762
|
+
for (const entry of Array.isArray(page.data) ? page.data : []) yield Object(entry);
|
|
7754
7763
|
since = page.pagination?.cursor ?? null;
|
|
7755
7764
|
} while (since !== null);
|
|
7765
|
+
}
|
|
7766
|
+
async function hostPassedNames(config, item, fetchImpl) {
|
|
7767
|
+
const latest = /* @__PURE__ */ new Map();
|
|
7768
|
+
for await (const { name, result, source } of resultsOf(config, await readWorkItem(config, item, fetchImpl), fetchImpl)) {
|
|
7769
|
+
if (source === "host" && typeof name === "string" && name !== CODE_REVIEW_NAME && typeof result === "string") latest.set(name, result);
|
|
7770
|
+
}
|
|
7756
7771
|
return [...latest].filter(([, result]) => result === "pass").map(([name]) => name);
|
|
7757
7772
|
}
|
|
7773
|
+
async function hostReviewed(config, workItem, commit, fetchImpl) {
|
|
7774
|
+
for await (const { name, source, items } of resultsOf(config, workItem, fetchImpl)) {
|
|
7775
|
+
if (name !== CODE_REVIEW_NAME || source !== "host" || !Array.isArray(items)) continue;
|
|
7776
|
+
const parts = items.map((item) => Object(item));
|
|
7777
|
+
if (parts.some((part) => part.commit === commit) && !parts.some((part) => part.id === JUDGE_NOT_RUN_ITEM_ID)) return true;
|
|
7778
|
+
}
|
|
7779
|
+
return false;
|
|
7780
|
+
}
|
|
7758
7781
|
function environmentFor(input) {
|
|
7759
7782
|
const { config, job, jobDir, deps } = input;
|
|
7760
7783
|
if (deps.judgeEnvironment !== void 0) return deps.judgeEnvironment;
|
|
@@ -7770,11 +7793,14 @@ async function runJudge(input) {
|
|
|
7770
7793
|
const repository = job.repository ?? job.container?.repository;
|
|
7771
7794
|
if (repository === void 0) return;
|
|
7772
7795
|
const repo = repository;
|
|
7796
|
+
const remoteOf = () => runtime.remoteFor?.(repo) ?? `${runtime.github.gitUrl}/${repo}.git`;
|
|
7773
7797
|
let itemRead;
|
|
7774
7798
|
const readItem = () => itemRead ??= readWorkItem(itemCalls(config, job), job.item, deps.fetchImpl).catch((err) => {
|
|
7775
7799
|
itemRead = void 0;
|
|
7776
7800
|
throw err;
|
|
7777
7801
|
});
|
|
7802
|
+
const cleanReason = (text2) => scrubReason(text2, config, void 0, jobDir, CHECK_ITEM_REASON_MAX_LENGTH) ?? "";
|
|
7803
|
+
const notRunItems = (reason) => [{ id: JUDGE_NOT_RUN_ITEM_ID, result: "fail", reason: oneLineReason(cleanReason(reason)) ?? "the judge did not run" }];
|
|
7778
7804
|
const tokens = runtime.credentials.get(jobDir);
|
|
7779
7805
|
let readToken;
|
|
7780
7806
|
try {
|
|
@@ -7794,23 +7820,25 @@ async function runJudge(input) {
|
|
|
7794
7820
|
} finally {
|
|
7795
7821
|
removeStagedContext(definitionsDir);
|
|
7796
7822
|
}
|
|
7797
|
-
|
|
7798
|
-
|
|
7823
|
+
let checks = [];
|
|
7824
|
+
if (definitions.ok) {
|
|
7825
|
+
for (const id of definitions.unrecorded) {
|
|
7826
|
+
log.line(`${tag} judge not run for ${id}: the check is not run.where: host with a judge or a command, so this host records no result for it`);
|
|
7827
|
+
}
|
|
7828
|
+
checks = definitions.checks.filter(isJudgeCheck);
|
|
7829
|
+
} else {
|
|
7799
7830
|
log.line(`${tag} judge not run: the definitions could not be read: ${definitions.reason}`);
|
|
7800
7831
|
job.judgeNotRun = `the definitions could not be read: ${definitions.reason}`;
|
|
7801
7832
|
const passed = await retrySend(() => hostPassedNames(itemCalls(config, job), job.item, deps.fetchImpl), { now: deps.now });
|
|
7802
|
-
if (
|
|
7833
|
+
if (passed.ok) {
|
|
7834
|
+
const record2 = makeRecorder({ config, job, jobDir, deps });
|
|
7835
|
+
const reason = `the definitions could not be read: ${definitions.reason}`;
|
|
7836
|
+
for (const name of passed.value) await record2(name, "fail", reason, { idTag: "judge-unread", ...name === CRITERIA_CHECK ? {} : { items: notRunItems(reason) } });
|
|
7837
|
+
} else {
|
|
7803
7838
|
log.error(`${tag} the item's host results could not be read, so none was failed: ${passed.reason}`);
|
|
7804
|
-
return;
|
|
7805
7839
|
}
|
|
7806
|
-
const record2 = makeRecorder({ config, job, jobDir, deps });
|
|
7807
|
-
for (const name of passed.value) await record2(name, "fail", `the definitions could not be read: ${definitions.reason}`, { idTag: "judge-unread" });
|
|
7808
|
-
return;
|
|
7809
|
-
}
|
|
7810
|
-
for (const id of definitions.unrecorded) {
|
|
7811
|
-
log.line(`${tag} judge not run for ${id}: the check is not run.where: host with a judge or a command, so this host records no result for it`);
|
|
7812
7840
|
}
|
|
7813
|
-
|
|
7841
|
+
if (job.codeReview === true) checks = [...checks, codeReviewCheck()];
|
|
7814
7842
|
if (checks.length === 0) {
|
|
7815
7843
|
rmSync(scratch, { recursive: true, force: true });
|
|
7816
7844
|
return;
|
|
@@ -7820,7 +7848,7 @@ async function runJudge(input) {
|
|
|
7820
7848
|
const record = makeRecorder({ config, job, jobDir, deps });
|
|
7821
7849
|
const fail = (check, reason) => {
|
|
7822
7850
|
log.error(`${tag} judge failed: ${reason}`);
|
|
7823
|
-
return record(check.name, "fail", reason);
|
|
7851
|
+
return record(check.name, "fail", reason, check.judge.subjects === "none" ? { items: notRunItems(reason) } : {});
|
|
7824
7852
|
};
|
|
7825
7853
|
try {
|
|
7826
7854
|
for (const check of checks) {
|
|
@@ -7834,7 +7862,37 @@ async function runJudge(input) {
|
|
|
7834
7862
|
rmSync(scratch, { recursive: true, force: true });
|
|
7835
7863
|
log.line(`${tag} judge done (${formatDuration(now().getTime() - startedMs)})`);
|
|
7836
7864
|
}
|
|
7865
|
+
async function noReview() {
|
|
7866
|
+
const started = job.container ?? job.microvm;
|
|
7867
|
+
if (started === void 0) return "this build ran under a provision hook of the host's own";
|
|
7868
|
+
const workItem = await readItem();
|
|
7869
|
+
const open = openPullRequests(workItem);
|
|
7870
|
+
if (open.length > 1) return "the item has more than one open pull request";
|
|
7871
|
+
if (open.length === 1 && open[0].toLowerCase() !== repo.toLowerCase()) return "the item's open pull request is in another repository";
|
|
7872
|
+
if (job.branch === void 0) return void 0;
|
|
7873
|
+
const read = await (deps.readBranch ?? readBranchHead)({ remote: remoteOf(), dir: scratch, branch: job.branch, token: readToken });
|
|
7874
|
+
if (read.kind === "unreadable") return void 0;
|
|
7875
|
+
if (read.kind === "absent" || read.sha === started.startCommit) return "the branch holds nothing to review";
|
|
7876
|
+
try {
|
|
7877
|
+
return await hostReviewed(itemCalls(config, job), workItem, read.sha, deps.fetchImpl) ? "a host result already covers the branch head" : void 0;
|
|
7878
|
+
} catch (err) {
|
|
7879
|
+
log.line(`${tag} the item's results could not be read, so the head is reviewed: ${describeCallFailure(err)}`);
|
|
7880
|
+
return void 0;
|
|
7881
|
+
}
|
|
7882
|
+
}
|
|
7837
7883
|
async function judgeOne(check) {
|
|
7884
|
+
if (check.builtIn === true) {
|
|
7885
|
+
let skipped;
|
|
7886
|
+
try {
|
|
7887
|
+
skipped = await noReview();
|
|
7888
|
+
} catch (err) {
|
|
7889
|
+
return await fail(check, `the item could not be read: ${describeCallFailure(err)}`);
|
|
7890
|
+
}
|
|
7891
|
+
if (skipped !== void 0) {
|
|
7892
|
+
log.line(`${tag} no code review: ${skipped}`);
|
|
7893
|
+
return;
|
|
7894
|
+
}
|
|
7895
|
+
}
|
|
7838
7896
|
const agent = judgeAgent(runtime.agents);
|
|
7839
7897
|
if (agent?.adapter.headless === void 0) return await fail(check, `${agent?.descriptor.label ?? "the agent list"} has no headless part, so it cannot run the judge`);
|
|
7840
7898
|
const missing = noAgentProgram(agent.descriptor.label);
|
|
@@ -7843,13 +7901,13 @@ async function runJudge(input) {
|
|
|
7843
7901
|
const expected = (job.container ?? job.microvm)?.judgeProgram;
|
|
7844
7902
|
if (expected === void 0) return await fail(check, missing);
|
|
7845
7903
|
const brief = check.judge.text;
|
|
7846
|
-
if (brief === void 0) return await fail(check, `the brief ${check.judge.brief} is not in the definitions repository`);
|
|
7904
|
+
if (brief === void 0) return await fail(check, check.builtIn === true ? `this CLI holds no ${check.judge.brief}` : `the brief ${check.judge.brief} is not in the definitions repository`);
|
|
7847
7905
|
if (tokens === void 0) return await fail(check, "the build's repository tokens are no longer held, so the branch cannot be fetched");
|
|
7848
7906
|
const credential = config.managed === true && managedClaudeKeyFor(jobDir) !== void 0 ? managedAgentCredential(runtime.agents) : agentCredential(runtime.hostEnv, {}, runtime.agents);
|
|
7849
7907
|
if (credential === void 0) return await fail(check, `the host holds no ${agent.descriptor.credentials.label} credential for the judge`);
|
|
7850
7908
|
const branch = job.branch;
|
|
7851
7909
|
if (branch === void 0) return await fail(check, "the build pushed no branch: the claim names none");
|
|
7852
|
-
const remote =
|
|
7910
|
+
const remote = remoteOf();
|
|
7853
7911
|
try {
|
|
7854
7912
|
await environment.stop();
|
|
7855
7913
|
} catch (err) {
|
|
@@ -7942,6 +8000,16 @@ async function runJudge(input) {
|
|
|
7942
8000
|
const run = outcome === "timeout" ? { kind: "timeout" } : { kind: "exited", status: outcome.status, stdout: outcome.stdout, stderr: outcome.stderr };
|
|
7943
8001
|
return { reply: readJudgeReply(run, minutes, runtime.agents), answer: parseJudgeAnswer(answerText), report };
|
|
7944
8002
|
};
|
|
8003
|
+
const linkTo = (path, line2) => {
|
|
8004
|
+
const href = finder.testHref(repo, head, path, line2 ?? 1);
|
|
8005
|
+
return href !== null && href.length <= CHECK_ITEM_HREF_MAX_LENGTH && /^https:\/\/\S+$/.test(href) ? { href } : {};
|
|
8006
|
+
};
|
|
8007
|
+
let ownTree = false;
|
|
8008
|
+
try {
|
|
8009
|
+
lstatSync(join(branchDir, "tree"));
|
|
8010
|
+
ownTree = true;
|
|
8011
|
+
} catch {
|
|
8012
|
+
}
|
|
7945
8013
|
if (criteria === void 0) {
|
|
7946
8014
|
let ran;
|
|
7947
8015
|
try {
|
|
@@ -7949,20 +8017,15 @@ async function runJudge(input) {
|
|
|
7949
8017
|
} catch (err) {
|
|
7950
8018
|
return await fail(check, `the judge could not be run: ${describeCallFailure(err)}`);
|
|
7951
8019
|
}
|
|
7952
|
-
|
|
8020
|
+
const place = (path, line2) => treeFileText(branchDir, path) === void 0 ? {} : linkTo(path, line2);
|
|
8021
|
+
const items2 = ran.answer?.ok === true ? wholeItems({ answer: ran.answer.answer, commit: head, treeRoot: JUDGE_TREE, place, ownTree, patch: diff, clean: cleanReason }) : void 0;
|
|
8022
|
+
return await finishWhole(check, { ...ran, items: items2, head, branch });
|
|
7953
8023
|
}
|
|
7954
8024
|
const testAt = (path, line2) => {
|
|
7955
8025
|
if (treeFileText(branchDir, path) === void 0) return void 0;
|
|
7956
8026
|
if (!isTest(path)) return "not-a-test";
|
|
7957
|
-
|
|
7958
|
-
return href !== null && href.length <= CHECK_ITEM_HREF_MAX_LENGTH && /^https:\/\/\S+$/.test(href) ? { href } : {};
|
|
8027
|
+
return linkTo(path, line2);
|
|
7959
8028
|
};
|
|
7960
|
-
let ownTree = false;
|
|
7961
|
-
try {
|
|
7962
|
-
lstatSync(join(branchDir, "tree"));
|
|
7963
|
-
ownTree = true;
|
|
7964
|
-
} catch {
|
|
7965
|
-
}
|
|
7966
8029
|
const groups = judgeGroups(plan.toJudge);
|
|
7967
8030
|
const items = [...plan.settled];
|
|
7968
8031
|
const unanswered = [];
|
|
@@ -8018,25 +8081,31 @@ async function runJudge(input) {
|
|
|
8018
8081
|
async function finishWhole(check, at) {
|
|
8019
8082
|
const where = { head: at.head, branch: at.branch };
|
|
8020
8083
|
if (at.answer?.ok === true) {
|
|
8021
|
-
const
|
|
8022
|
-
|
|
8023
|
-
return { id: entry.id, result: entry.result, ...reason2 === void 0 ? {} : { reason: reason2 } };
|
|
8024
|
-
});
|
|
8025
|
-
const failing = itemsSentence(items, { one: "check item", many: "check items" });
|
|
8084
|
+
const answered = at.items ?? [];
|
|
8085
|
+
const failing = itemsSentence(answered, { one: "check item", many: "check items" });
|
|
8026
8086
|
const said2 = at.answer.answer.result ?? (at.reply.kind === "answered" ? at.reply.verdict : void 0);
|
|
8027
8087
|
const result = said2 === "pass" && failing === void 0 ? "pass" : "fail";
|
|
8028
8088
|
const reason = failing ?? (said2 === "fail" ? "the judge failed the change" : said2 === void 0 ? at.reply.kind === "none" ? at.reply.reason : "the judge gave no result" : void 0);
|
|
8089
|
+
const items = said2 === void 0 && failing === void 0 ? [...answered, ...notRunItems(reason ?? "the judge gave no result")] : answered;
|
|
8029
8090
|
const report = renderJudgeReport({ check: check.name, result, reason, items, commit: at.head });
|
|
8030
8091
|
return await recordWhole(check, { ...where, result, reason, items, report });
|
|
8031
8092
|
}
|
|
8032
|
-
if (at.reply.kind === "none")
|
|
8033
|
-
|
|
8093
|
+
if (at.reply.kind === "none") {
|
|
8094
|
+
const limitKey = at.reply.limitKey === true;
|
|
8095
|
+
const items = notRunItems(`${at.reply.reason}${limitKey ? LIMIT_KEY_TAIL : ""}`);
|
|
8096
|
+
return await recordWhole(check, { ...where, result: "fail", reason: at.reply.reason, items, report: at.report, limitKey });
|
|
8097
|
+
}
|
|
8098
|
+
if (at.answer !== void 0) return await recordWhole(check, { ...where, result: "fail", reason: at.answer.reason, items: notRunItems(at.answer.reason), report: at.report });
|
|
8034
8099
|
const failed = at.reply.verdict === "fail";
|
|
8035
8100
|
return await recordWhole(check, { ...where, result: at.reply.verdict, reason: failed ? "the judge failed the change" : void 0, report: at.report });
|
|
8036
8101
|
}
|
|
8037
8102
|
async function recordWhole(check, at) {
|
|
8038
8103
|
const link = at.report === void 0 ? void 0 : await uploadReport(check, at.report, { branch: at.branch, head: at.head });
|
|
8039
|
-
|
|
8104
|
+
const named = at.items ?? [];
|
|
8105
|
+
const notRun = named.some((item) => item.id === JUDGE_NOT_RUN_ITEM_ID);
|
|
8106
|
+
const complete = at.result === "fail" ? named.some((item) => item.result === "fail") : named.some((item) => item.commit !== void 0);
|
|
8107
|
+
const items = check.builtIn === true && !notRun && !complete ? [...named, { id: REVIEWED_COMMIT_ITEM_ID, result: at.result, commit: at.head, ...at.reason === void 0 ? {} : { reason: at.reason } }] : at.items;
|
|
8108
|
+
await record(check.name, at.result, at.reason, { keyTail: at.limitKey === true ? LIMIT_KEY_TAIL : "", link, items: sendable(items) });
|
|
8040
8109
|
}
|
|
8041
8110
|
function sendable(items) {
|
|
8042
8111
|
if (items === void 0) return void 0;
|
|
@@ -8065,11 +8134,11 @@ async function runJudge(input) {
|
|
|
8065
8134
|
schemaVersion: 1,
|
|
8066
8135
|
artifact: {
|
|
8067
8136
|
clientArtifactId,
|
|
8068
|
-
filename: "criteria-judge-report.html",
|
|
8137
|
+
filename: check.judge.subjects === "none" ? "judge-report.html" : "criteria-judge-report.html",
|
|
8069
8138
|
mediaType: "text/html",
|
|
8070
8139
|
bytes: bytes.length,
|
|
8071
8140
|
sha256: createHash("sha256").update(bytes).digest("hex"),
|
|
8072
|
-
caption: REPORT_CAPTION,
|
|
8141
|
+
caption: check.judge.subjects === "none" ? WHOLE_REPORT_CAPTION : REPORT_CAPTION,
|
|
8073
8142
|
criterionId: check.name,
|
|
8074
8143
|
emittedAt: now().toISOString(),
|
|
8075
8144
|
repository: repo,
|
|
@@ -8321,10 +8390,10 @@ function readReasonLine(jobDirPath, config, home = homeFromEnv()) {
|
|
|
8321
8390
|
}
|
|
8322
8391
|
return scrubReason(raw.split(/\r\n|\r|\n/)[0] ?? "", config, home, jobDirPath);
|
|
8323
8392
|
}
|
|
8324
|
-
function scrubReason(line2, config, home = homeFromEnv(), jobDir) {
|
|
8393
|
+
function scrubReason(line2, config, home = homeFromEnv(), jobDir, max = REASON_MAX2) {
|
|
8325
8394
|
installScrubContext(home, releaseScrub(config, home, jobDir));
|
|
8326
8395
|
const oneLine = scrubText(stripUnsendableReasonChars(line2)).replace(/[\r\n]+/g, " ");
|
|
8327
|
-
const trimmed = cutReasonLine(oneLine).trim();
|
|
8396
|
+
const trimmed = cutReasonLine(oneLine, max).trim();
|
|
8328
8397
|
return trimmed.length > 0 ? trimmed : void 0;
|
|
8329
8398
|
}
|
|
8330
8399
|
function scrubTunnelRecord(record, config, jobDir) {
|
|
@@ -8940,7 +9009,7 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
|
|
|
8940
9009
|
let verdictReason;
|
|
8941
9010
|
if (outcome === "ok") {
|
|
8942
9011
|
const decision = await settleVerdict({
|
|
8943
|
-
read: () => readItemEvaluation(itemCalls(config, job), job.item, deps.fetchImpl),
|
|
9012
|
+
read: () => readItemEvaluation(itemCalls(config, job), job.item, deps.fetchImpl, job.claimId),
|
|
8944
9013
|
now,
|
|
8945
9014
|
sleep: deps.sleep ?? waitMs
|
|
8946
9015
|
});
|
|
@@ -12314,7 +12383,9 @@ function checksIn(root, log, tag) {
|
|
|
12314
12383
|
const policy = policyText === void 0 ? null : asHostReads({ path: POLICY_FILE, content: policyText }, base, log, tag);
|
|
12315
12384
|
const loaded = parsePolicy(policy, validatorFilesIn(root).map((file) => asHostReads(file, base, log, tag)));
|
|
12316
12385
|
for (const problem of loaded.problems) log.error(`${tag} ${problem.file}: ${problem.problem}`);
|
|
12317
|
-
const hostChecks = loaded.customs.filter(
|
|
12386
|
+
const hostChecks = loaded.customs.filter(
|
|
12387
|
+
(def) => def.runWhere === "host" && def.level !== "off" && def.declaresEmit !== null && def.declaresEmit !== CODE_REVIEW_NAME
|
|
12388
|
+
);
|
|
12318
12389
|
const checks = [];
|
|
12319
12390
|
for (const def of hostChecks) {
|
|
12320
12391
|
if (def.judge !== void 0) checks.push({ name: def.declaresEmit, judge: { brief: def.judge.brief, text: readBrief(root, def.judge.brief, log, tag), subjects: def.judge.subjects } });
|
|
@@ -12700,4 +12771,4 @@ async function runHostChecks(input) {
|
|
|
12700
12771
|
}
|
|
12701
12772
|
}
|
|
12702
12773
|
|
|
12703
|
-
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, SandboxGoneError, agentCredentialCheck, appendCommandLog, attemptNote, checksIn, claimPermissionProblem, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gitRemoteFor, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, judgeProbe, keepGhConfigCurrent, keptCommitsLine, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, recoverLostJobs, releaseLease, removeOldestUntil, renewLease, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, retryFailedReleases, runCommand, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, testProofIn, timeoutAfter, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workdirProblem, writeGuestGhConfig, writeRunnerInit };
|
|
12774
|
+
export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, CRITERIA_CHECK, 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, SandboxGoneError, agentCredentialCheck, appendCommandLog, attemptNote, checksIn, claimPermissionProblem, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gitRemoteFor, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, judgeProbe, keepGhConfigCurrent, keptCommitsLine, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, recoverLostJobs, releaseLease, removeOldestUntil, renewLease, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, retryFailedReleases, runCommand, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, testProofIn, timeoutAfter, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workdirProblem, writeGuestGhConfig, writeRunnerInit };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { currentLink } from './chunk-
|
|
3
|
+
import { currentLink } from './chunk-LYBHKNEG.js';
|
|
4
4
|
import { readFileSync, statSync, chmodSync, mkdirSync, writeFileSync, renameSync, rmSync, existsSync, lstatSync, accessSync, constants, realpathSync } from 'fs';
|
|
5
5
|
import { randomBytes } from 'crypto';
|
|
6
6
|
import { join, dirname, delimiter, resolve } from 'path';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { detectActiveSession } from './chunk-VZGTPITG.js';
|
|
5
|
+
import { autoConnect } from './chunk-RWNVQSGX.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-NOBB3LEO.js';
|
|
8
8
|
import { launchedItemForSession } from './chunk-4OD45RBP.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
11
|
-
import { resolveRepoIdentity } from './chunk-
|
|
12
|
-
import { CriteriaListSchema } from './chunk-
|
|
11
|
+
import { resolveRepoIdentity } from './chunk-X25VXXCF.js';
|
|
12
|
+
import { CriteriaListSchema } from './chunk-2VNT47DG.js';
|
|
13
13
|
import { readFileSync } from 'fs';
|
|
14
14
|
|
|
15
15
|
createRequire(import.meta.url);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
4
|
-
import { spoolDir } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-SDUCKX46.js';
|
|
4
|
+
import { spoolDir } from './chunk-O3TOA2KE.js';
|
|
5
5
|
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
6
|
-
import { sessionFolderIn, legacyAgent } from './chunk-
|
|
6
|
+
import { sessionFolderIn, legacyAgent } from './chunk-OO33S4AF.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
|
-
import { CaptureDaemon } from './chunk-
|
|
8
|
+
import { CaptureDaemon } from './chunk-X25VXXCF.js';
|
|
9
9
|
import { mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
10
10
|
import { join } from 'path';
|
|
11
11
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
5
|
-
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-
|
|
6
|
-
import { builderDiskPinned } from './chunk-
|
|
3
|
+
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-QF6US5YN.js';
|
|
4
|
+
import { parseSize } from './chunk-FZD6GIW5.js';
|
|
5
|
+
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-QHT6PIFP.js';
|
|
6
|
+
import { builderDiskPinned } from './chunk-PJNOTSB5.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { existsSync, statSync, accessSync, constants, readFileSync } from 'fs';
|
|
9
9
|
import { hostname } from 'os';
|
|
@@ -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-QHT6PIFP.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-
|
|
5
|
-
import { DEFAULT_DASHBOARD } from './chunk-
|
|
6
|
-
import { cliFetch, resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-OCQ5FQZR.js';
|
|
4
|
+
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-FSYEDSSA.js';
|
|
5
|
+
import { DEFAULT_DASHBOARD } from './chunk-2KL345FW.js';
|
|
6
|
+
import { cliFetch, resolveGatewayCredentials } from './chunk-NOBB3LEO.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-OO33S4AF.js';
|
|
11
|
+
import { remoteLookupFailed } from './chunk-X25VXXCF.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
13
13
|
import { lstatSync } from 'fs';
|
|
14
14
|
import { join, relative } from 'path';
|
|
@@ -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-3RFREMDQ.js';
|
|
4
|
+
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-BEQYO2VO.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-QMKIWXHF.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,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveCredentials, postJson, getJson } from './chunk-
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
5
|
-
import { sanitizeTerminal } from './chunk-
|
|
3
|
+
import { resolveCredentials, postJson, getJson } from './chunk-IQHREL5T.js';
|
|
4
|
+
import { detectActiveSession } from './chunk-VZGTPITG.js';
|
|
5
|
+
import { sanitizeTerminal } from './chunk-OCQ5FQZR.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
8
|
-
import { logHookError } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-NOBB3LEO.js';
|
|
8
|
+
import { logHookError } from './chunk-O3TOA2KE.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
11
|
-
import { resolveRepoIdentity } from './chunk-
|
|
11
|
+
import { resolveRepoIdentity } from './chunk-X25VXXCF.js';
|
|
12
12
|
import { randomUUID } from 'crypto';
|
|
13
13
|
|
|
14
14
|
createRequire(import.meta.url);
|
|
@@ -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-LYORNXIT.js';
|
|
5
5
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -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-OO33S4AF.js';
|
|
5
5
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
6
6
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
7
7
|
import { lstatSync, readFileSync } from 'fs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-
|
|
4
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-PJNOTSB5.js';
|
|
4
|
+
import { defaultAgents } from './chunk-OO33S4AF.js';
|
|
5
5
|
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
6
6
|
import { statSync, readFileSync } from 'fs';
|
|
7
7
|
import { join } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-
|
|
3
|
+
import { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-OO33S4AF.js';
|
|
4
4
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|