@outerlayer/cli 0.38.0-next.20261106190200 → 0.38.0-next.20261106232046
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 +3 -3
- 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-BNDMAAVS.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-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-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-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-7B4A6PBC.js → chunk-GMLYSAKU.js} +3 -3
- package/dist/{chunk-NMCRJ7NZ.js → chunk-HCIOUSUX.js} +2 -3
- package/dist/{chunk-IOURL3LH.js → chunk-HI5FSBWD.js} +10 -10
- package/dist/{chunk-JKYCEXZX.js → chunk-ICKFR2DB.js} +7 -7
- package/dist/{chunk-RFBJKK2L.js → chunk-IQHREL5T.js} +8 -8
- 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-6ZSUJ3ES.js → chunk-NMSWL2N3.js} +3 -3
- 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-QHOC32DP.js → chunk-S35KTDTM.js} +10 -10
- 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-5QBTW367.js → chunk-TWWAV67F.js} +5 -5
- package/dist/{chunk-ZYQT6Q5R.js → chunk-V26DDAWZ.js} +142 -74
- package/dist/{chunk-ZOWUJUSF.js → chunk-V43NFQE3.js} +1 -1
- package/dist/{chunk-5BDYRHZZ.js → chunk-VLAVNWM4.js} +7 -7
- package/dist/{chunk-RDPLNQFI.js → chunk-VW5NG2AR.js} +16 -16
- 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-F2PTLH3J.js → chunk-XDURUWQP.js} +29 -28
- package/dist/{chunk-ZPCUXCQX.js → chunk-XKJZHY4J.js} +1 -1
- package/dist/{chunk-TDBP62O2.js → chunk-XSEAGCYW.js} +7 -7
- package/dist/{chunk-3E65OLJ4.js → chunk-YFARFA4Y.js} +3 -3
- 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-GJQGNNFM.js} +147 -147
- package/dist/{command-DBBEP7VM.js → command-3QXN5ZTK.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-FZCTPBZG.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-5PTO2DN7.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-ANVIJJZI.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-5ZTKM5KM.js} +46 -46
- package/dist/init-6AAXECDJ.js +79 -0
- package/dist/{init-agent-7UQZFG5E.js → init-agent-FOR3XGZ2.js} +46 -46
- package/dist/{init-cmd-TNJXWFQU.js → init-cmd-7X22EFRG.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-DFDQQC2Q.js +90 -0
- package/dist/machine-W3R5I6EM.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-NS5C5TTT.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-5YK3LOVJ.js} +46 -46
- package/dist/{sync-cmd-FNATZ5VL.js → sync-cmd-JHFRUMM5.js} +18 -18
- package/dist/update-steps-KFULBARX.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-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-FXSVPQZC.js} +18 -18
- package/dist/{work-proofs-record-CYIZ2RDH.js → work-proofs-record-KPRP3UAQ.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 +3 -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';
|
|
@@ -7696,7 +7696,7 @@ ${input.extraHead ?? ""}
|
|
|
7696
7696
|
<p>${escape(summary)}.${input.reason === void 0 ? "" : ` ${escape(input.reason)}.`}</p>
|
|
7697
7697
|
<p class="meta">Judged at commit <code>${escape(input.commit)}</code>.</p>
|
|
7698
7698
|
<table>
|
|
7699
|
-
<thead><tr><th>Item</th><th>Result</th><th>Reason</th><th>
|
|
7699
|
+
<thead><tr><th>Item</th><th>Result</th><th>Reason</th><th>Where</th></tr></thead>
|
|
7700
7700
|
<tbody>
|
|
7701
7701
|
${rows}
|
|
7702
7702
|
</tbody>
|
|
@@ -7711,6 +7711,16 @@ var LIMIT_KEY_TAIL = " (runner.checks.timeLimitMinutes)";
|
|
|
7711
7711
|
var MAX_DIFF_BYTES = 4 * 1024 * 1024;
|
|
7712
7712
|
var noAgentProgram = (label) => `the image has no ${label} for the judge`;
|
|
7713
7713
|
var REPORT_CAPTION = "The host's criteria judge, each criterion judged against the tests that prove it";
|
|
7714
|
+
var WHOLE_REPORT_CAPTION = "The host's judge of the change as a whole";
|
|
7715
|
+
var CODE_REVIEW_BRIEF = "code-review-judge.md";
|
|
7716
|
+
function codeReviewCheck() {
|
|
7717
|
+
let text2;
|
|
7718
|
+
try {
|
|
7719
|
+
text2 = readFileSync(join(resolvePackRoot(), "maintained", "outerlayer-build", "references", CODE_REVIEW_BRIEF), "utf8");
|
|
7720
|
+
} catch {
|
|
7721
|
+
}
|
|
7722
|
+
return { name: CODE_REVIEW_NAME, builtIn: true, judge: { brief: CODE_REVIEW_BRIEF, text: text2, subjects: "none" } };
|
|
7723
|
+
}
|
|
7714
7724
|
function treeFileText(root, path) {
|
|
7715
7725
|
const segments = path.split("/");
|
|
7716
7726
|
if (segments.some((segment) => segment === "" || segment === "." || segment === "..")) return void 0;
|
|
@@ -7738,23 +7748,33 @@ function proofsFileIn(root) {
|
|
|
7738
7748
|
return void 0;
|
|
7739
7749
|
}
|
|
7740
7750
|
}
|
|
7741
|
-
async function
|
|
7742
|
-
const workItemId = Object(
|
|
7751
|
+
async function* resultsOf(config, workItem, fetchImpl) {
|
|
7752
|
+
const workItemId = Object(workItem).workItemId;
|
|
7743
7753
|
if (typeof workItemId !== "string") throw new WorkCommandError("the work item read named no id");
|
|
7744
7754
|
const signer = await signerFor(config.configPath);
|
|
7745
|
-
const latest = /* @__PURE__ */ new Map();
|
|
7746
7755
|
let since = null;
|
|
7747
7756
|
do {
|
|
7748
7757
|
const query = since === null ? "" : `?since=${encodeURIComponent(since)}`;
|
|
7749
7758
|
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
|
-
}
|
|
7759
|
+
for (const entry of Array.isArray(page.data) ? page.data : []) yield Object(entry);
|
|
7754
7760
|
since = page.pagination?.cursor ?? null;
|
|
7755
7761
|
} while (since !== null);
|
|
7762
|
+
}
|
|
7763
|
+
async function hostPassedNames(config, item, fetchImpl) {
|
|
7764
|
+
const latest = /* @__PURE__ */ new Map();
|
|
7765
|
+
for await (const { name, result, source } of resultsOf(config, await readWorkItem(config, item, fetchImpl), fetchImpl)) {
|
|
7766
|
+
if (source === "host" && typeof name === "string" && name !== CODE_REVIEW_NAME && typeof result === "string") latest.set(name, result);
|
|
7767
|
+
}
|
|
7756
7768
|
return [...latest].filter(([, result]) => result === "pass").map(([name]) => name);
|
|
7757
7769
|
}
|
|
7770
|
+
async function hostReviewed(config, workItem, commit, fetchImpl) {
|
|
7771
|
+
for await (const { name, source, items } of resultsOf(config, workItem, fetchImpl)) {
|
|
7772
|
+
if (name !== CODE_REVIEW_NAME || source !== "host" || !Array.isArray(items)) continue;
|
|
7773
|
+
const parts = items.map((item) => Object(item));
|
|
7774
|
+
if (parts.some((part) => part.commit === commit) && !parts.some((part) => part.id === JUDGE_NOT_RUN_ITEM_ID)) return true;
|
|
7775
|
+
}
|
|
7776
|
+
return false;
|
|
7777
|
+
}
|
|
7758
7778
|
function environmentFor(input) {
|
|
7759
7779
|
const { config, job, jobDir, deps } = input;
|
|
7760
7780
|
if (deps.judgeEnvironment !== void 0) return deps.judgeEnvironment;
|
|
@@ -7770,11 +7790,14 @@ async function runJudge(input) {
|
|
|
7770
7790
|
const repository = job.repository ?? job.container?.repository;
|
|
7771
7791
|
if (repository === void 0) return;
|
|
7772
7792
|
const repo = repository;
|
|
7793
|
+
const remoteOf = () => runtime.remoteFor?.(repo) ?? `${runtime.github.gitUrl}/${repo}.git`;
|
|
7773
7794
|
let itemRead;
|
|
7774
7795
|
const readItem = () => itemRead ??= readWorkItem(itemCalls(config, job), job.item, deps.fetchImpl).catch((err) => {
|
|
7775
7796
|
itemRead = void 0;
|
|
7776
7797
|
throw err;
|
|
7777
7798
|
});
|
|
7799
|
+
const cleanReason = (text2) => scrubReason(text2, config, void 0, jobDir, CHECK_ITEM_REASON_MAX_LENGTH) ?? "";
|
|
7800
|
+
const notRunItems = (reason) => [{ id: JUDGE_NOT_RUN_ITEM_ID, result: "fail", reason: oneLineReason(cleanReason(reason)) ?? "the judge did not run" }];
|
|
7778
7801
|
const tokens = runtime.credentials.get(jobDir);
|
|
7779
7802
|
let readToken;
|
|
7780
7803
|
try {
|
|
@@ -7794,23 +7817,25 @@ async function runJudge(input) {
|
|
|
7794
7817
|
} finally {
|
|
7795
7818
|
removeStagedContext(definitionsDir);
|
|
7796
7819
|
}
|
|
7797
|
-
|
|
7798
|
-
|
|
7820
|
+
let checks = [];
|
|
7821
|
+
if (definitions.ok) {
|
|
7822
|
+
for (const id of definitions.unrecorded) {
|
|
7823
|
+
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`);
|
|
7824
|
+
}
|
|
7825
|
+
checks = definitions.checks.filter(isJudgeCheck);
|
|
7826
|
+
} else {
|
|
7799
7827
|
log.line(`${tag} judge not run: the definitions could not be read: ${definitions.reason}`);
|
|
7800
7828
|
job.judgeNotRun = `the definitions could not be read: ${definitions.reason}`;
|
|
7801
7829
|
const passed = await retrySend(() => hostPassedNames(itemCalls(config, job), job.item, deps.fetchImpl), { now: deps.now });
|
|
7802
|
-
if (
|
|
7830
|
+
if (passed.ok) {
|
|
7831
|
+
const record2 = makeRecorder({ config, job, jobDir, deps });
|
|
7832
|
+
const reason = `the definitions could not be read: ${definitions.reason}`;
|
|
7833
|
+
for (const name of passed.value) await record2(name, "fail", reason, { idTag: "judge-unread", ...name === CRITERIA_CHECK ? {} : { items: notRunItems(reason) } });
|
|
7834
|
+
} else {
|
|
7803
7835
|
log.error(`${tag} the item's host results could not be read, so none was failed: ${passed.reason}`);
|
|
7804
|
-
return;
|
|
7805
7836
|
}
|
|
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
7837
|
}
|
|
7813
|
-
|
|
7838
|
+
if (job.codeReview === true) checks = [...checks, codeReviewCheck()];
|
|
7814
7839
|
if (checks.length === 0) {
|
|
7815
7840
|
rmSync(scratch, { recursive: true, force: true });
|
|
7816
7841
|
return;
|
|
@@ -7820,7 +7845,7 @@ async function runJudge(input) {
|
|
|
7820
7845
|
const record = makeRecorder({ config, job, jobDir, deps });
|
|
7821
7846
|
const fail = (check, reason) => {
|
|
7822
7847
|
log.error(`${tag} judge failed: ${reason}`);
|
|
7823
|
-
return record(check.name, "fail", reason);
|
|
7848
|
+
return record(check.name, "fail", reason, check.judge.subjects === "none" ? { items: notRunItems(reason) } : {});
|
|
7824
7849
|
};
|
|
7825
7850
|
try {
|
|
7826
7851
|
for (const check of checks) {
|
|
@@ -7834,7 +7859,37 @@ async function runJudge(input) {
|
|
|
7834
7859
|
rmSync(scratch, { recursive: true, force: true });
|
|
7835
7860
|
log.line(`${tag} judge done (${formatDuration(now().getTime() - startedMs)})`);
|
|
7836
7861
|
}
|
|
7862
|
+
async function noReview() {
|
|
7863
|
+
const started = job.container ?? job.microvm;
|
|
7864
|
+
if (started === void 0) return "this build ran under a provision hook of the host's own";
|
|
7865
|
+
const workItem = await readItem();
|
|
7866
|
+
const open = openPullRequests(workItem);
|
|
7867
|
+
if (open.length > 1) return "the item has more than one open pull request";
|
|
7868
|
+
if (open.length === 1 && open[0].toLowerCase() !== repo.toLowerCase()) return "the item's open pull request is in another repository";
|
|
7869
|
+
if (job.branch === void 0) return void 0;
|
|
7870
|
+
const read = await (deps.readBranch ?? readBranchHead)({ remote: remoteOf(), dir: scratch, branch: job.branch, token: readToken });
|
|
7871
|
+
if (read.kind === "unreadable") return void 0;
|
|
7872
|
+
if (read.kind === "absent" || read.sha === started.startCommit) return "the branch holds nothing to review";
|
|
7873
|
+
try {
|
|
7874
|
+
return await hostReviewed(itemCalls(config, job), workItem, read.sha, deps.fetchImpl) ? "a host result already covers the branch head" : void 0;
|
|
7875
|
+
} catch (err) {
|
|
7876
|
+
log.line(`${tag} the item's results could not be read, so the head is reviewed: ${describeCallFailure(err)}`);
|
|
7877
|
+
return void 0;
|
|
7878
|
+
}
|
|
7879
|
+
}
|
|
7837
7880
|
async function judgeOne(check) {
|
|
7881
|
+
if (check.builtIn === true) {
|
|
7882
|
+
let skipped;
|
|
7883
|
+
try {
|
|
7884
|
+
skipped = await noReview();
|
|
7885
|
+
} catch (err) {
|
|
7886
|
+
return await fail(check, `the item could not be read: ${describeCallFailure(err)}`);
|
|
7887
|
+
}
|
|
7888
|
+
if (skipped !== void 0) {
|
|
7889
|
+
log.line(`${tag} no code review: ${skipped}`);
|
|
7890
|
+
return;
|
|
7891
|
+
}
|
|
7892
|
+
}
|
|
7838
7893
|
const agent = judgeAgent(runtime.agents);
|
|
7839
7894
|
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
7895
|
const missing = noAgentProgram(agent.descriptor.label);
|
|
@@ -7843,13 +7898,13 @@ async function runJudge(input) {
|
|
|
7843
7898
|
const expected = (job.container ?? job.microvm)?.judgeProgram;
|
|
7844
7899
|
if (expected === void 0) return await fail(check, missing);
|
|
7845
7900
|
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`);
|
|
7901
|
+
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
7902
|
if (tokens === void 0) return await fail(check, "the build's repository tokens are no longer held, so the branch cannot be fetched");
|
|
7848
7903
|
const credential = config.managed === true && managedClaudeKeyFor(jobDir) !== void 0 ? managedAgentCredential(runtime.agents) : agentCredential(runtime.hostEnv, {}, runtime.agents);
|
|
7849
7904
|
if (credential === void 0) return await fail(check, `the host holds no ${agent.descriptor.credentials.label} credential for the judge`);
|
|
7850
7905
|
const branch = job.branch;
|
|
7851
7906
|
if (branch === void 0) return await fail(check, "the build pushed no branch: the claim names none");
|
|
7852
|
-
const remote =
|
|
7907
|
+
const remote = remoteOf();
|
|
7853
7908
|
try {
|
|
7854
7909
|
await environment.stop();
|
|
7855
7910
|
} catch (err) {
|
|
@@ -7942,6 +7997,16 @@ async function runJudge(input) {
|
|
|
7942
7997
|
const run = outcome === "timeout" ? { kind: "timeout" } : { kind: "exited", status: outcome.status, stdout: outcome.stdout, stderr: outcome.stderr };
|
|
7943
7998
|
return { reply: readJudgeReply(run, minutes, runtime.agents), answer: parseJudgeAnswer(answerText), report };
|
|
7944
7999
|
};
|
|
8000
|
+
const linkTo = (path, line2) => {
|
|
8001
|
+
const href = finder.testHref(repo, head, path, line2 ?? 1);
|
|
8002
|
+
return href !== null && href.length <= CHECK_ITEM_HREF_MAX_LENGTH && /^https:\/\/\S+$/.test(href) ? { href } : {};
|
|
8003
|
+
};
|
|
8004
|
+
let ownTree = false;
|
|
8005
|
+
try {
|
|
8006
|
+
lstatSync(join(branchDir, "tree"));
|
|
8007
|
+
ownTree = true;
|
|
8008
|
+
} catch {
|
|
8009
|
+
}
|
|
7945
8010
|
if (criteria === void 0) {
|
|
7946
8011
|
let ran;
|
|
7947
8012
|
try {
|
|
@@ -7949,20 +8014,15 @@ async function runJudge(input) {
|
|
|
7949
8014
|
} catch (err) {
|
|
7950
8015
|
return await fail(check, `the judge could not be run: ${describeCallFailure(err)}`);
|
|
7951
8016
|
}
|
|
7952
|
-
|
|
8017
|
+
const place = (path, line2) => treeFileText(branchDir, path) === void 0 ? {} : linkTo(path, line2);
|
|
8018
|
+
const items2 = ran.answer?.ok === true ? wholeItems({ answer: ran.answer.answer, commit: head, treeRoot: JUDGE_TREE, place, ownTree, patch: diff, clean: cleanReason }) : void 0;
|
|
8019
|
+
return await finishWhole(check, { ...ran, items: items2, head, branch });
|
|
7953
8020
|
}
|
|
7954
8021
|
const testAt = (path, line2) => {
|
|
7955
8022
|
if (treeFileText(branchDir, path) === void 0) return void 0;
|
|
7956
8023
|
if (!isTest(path)) return "not-a-test";
|
|
7957
|
-
|
|
7958
|
-
return href !== null && href.length <= CHECK_ITEM_HREF_MAX_LENGTH && /^https:\/\/\S+$/.test(href) ? { href } : {};
|
|
8024
|
+
return linkTo(path, line2);
|
|
7959
8025
|
};
|
|
7960
|
-
let ownTree = false;
|
|
7961
|
-
try {
|
|
7962
|
-
lstatSync(join(branchDir, "tree"));
|
|
7963
|
-
ownTree = true;
|
|
7964
|
-
} catch {
|
|
7965
|
-
}
|
|
7966
8026
|
const groups = judgeGroups(plan.toJudge);
|
|
7967
8027
|
const items = [...plan.settled];
|
|
7968
8028
|
const unanswered = [];
|
|
@@ -8018,25 +8078,31 @@ async function runJudge(input) {
|
|
|
8018
8078
|
async function finishWhole(check, at) {
|
|
8019
8079
|
const where = { head: at.head, branch: at.branch };
|
|
8020
8080
|
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" });
|
|
8081
|
+
const answered = at.items ?? [];
|
|
8082
|
+
const failing = itemsSentence(answered, { one: "check item", many: "check items" });
|
|
8026
8083
|
const said2 = at.answer.answer.result ?? (at.reply.kind === "answered" ? at.reply.verdict : void 0);
|
|
8027
8084
|
const result = said2 === "pass" && failing === void 0 ? "pass" : "fail";
|
|
8028
8085
|
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);
|
|
8086
|
+
const items = said2 === void 0 && failing === void 0 ? [...answered, ...notRunItems(reason ?? "the judge gave no result")] : answered;
|
|
8029
8087
|
const report = renderJudgeReport({ check: check.name, result, reason, items, commit: at.head });
|
|
8030
8088
|
return await recordWhole(check, { ...where, result, reason, items, report });
|
|
8031
8089
|
}
|
|
8032
|
-
if (at.reply.kind === "none")
|
|
8033
|
-
|
|
8090
|
+
if (at.reply.kind === "none") {
|
|
8091
|
+
const limitKey = at.reply.limitKey === true;
|
|
8092
|
+
const items = notRunItems(`${at.reply.reason}${limitKey ? LIMIT_KEY_TAIL : ""}`);
|
|
8093
|
+
return await recordWhole(check, { ...where, result: "fail", reason: at.reply.reason, items, report: at.report, limitKey });
|
|
8094
|
+
}
|
|
8095
|
+
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
8096
|
const failed = at.reply.verdict === "fail";
|
|
8035
8097
|
return await recordWhole(check, { ...where, result: at.reply.verdict, reason: failed ? "the judge failed the change" : void 0, report: at.report });
|
|
8036
8098
|
}
|
|
8037
8099
|
async function recordWhole(check, at) {
|
|
8038
8100
|
const link = at.report === void 0 ? void 0 : await uploadReport(check, at.report, { branch: at.branch, head: at.head });
|
|
8039
|
-
|
|
8101
|
+
const named = at.items ?? [];
|
|
8102
|
+
const notRun = named.some((item) => item.id === JUDGE_NOT_RUN_ITEM_ID);
|
|
8103
|
+
const complete = at.result === "fail" ? named.some((item) => item.result === "fail") : named.some((item) => item.commit !== void 0);
|
|
8104
|
+
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;
|
|
8105
|
+
await record(check.name, at.result, at.reason, { keyTail: at.limitKey === true ? LIMIT_KEY_TAIL : "", link, items: sendable(items) });
|
|
8040
8106
|
}
|
|
8041
8107
|
function sendable(items) {
|
|
8042
8108
|
if (items === void 0) return void 0;
|
|
@@ -8065,11 +8131,11 @@ async function runJudge(input) {
|
|
|
8065
8131
|
schemaVersion: 1,
|
|
8066
8132
|
artifact: {
|
|
8067
8133
|
clientArtifactId,
|
|
8068
|
-
filename: "criteria-judge-report.html",
|
|
8134
|
+
filename: check.judge.subjects === "none" ? "judge-report.html" : "criteria-judge-report.html",
|
|
8069
8135
|
mediaType: "text/html",
|
|
8070
8136
|
bytes: bytes.length,
|
|
8071
8137
|
sha256: createHash("sha256").update(bytes).digest("hex"),
|
|
8072
|
-
caption: REPORT_CAPTION,
|
|
8138
|
+
caption: check.judge.subjects === "none" ? WHOLE_REPORT_CAPTION : REPORT_CAPTION,
|
|
8073
8139
|
criterionId: check.name,
|
|
8074
8140
|
emittedAt: now().toISOString(),
|
|
8075
8141
|
repository: repo,
|
|
@@ -8321,10 +8387,10 @@ function readReasonLine(jobDirPath, config, home = homeFromEnv()) {
|
|
|
8321
8387
|
}
|
|
8322
8388
|
return scrubReason(raw.split(/\r\n|\r|\n/)[0] ?? "", config, home, jobDirPath);
|
|
8323
8389
|
}
|
|
8324
|
-
function scrubReason(line2, config, home = homeFromEnv(), jobDir) {
|
|
8390
|
+
function scrubReason(line2, config, home = homeFromEnv(), jobDir, max = REASON_MAX2) {
|
|
8325
8391
|
installScrubContext(home, releaseScrub(config, home, jobDir));
|
|
8326
8392
|
const oneLine = scrubText(stripUnsendableReasonChars(line2)).replace(/[\r\n]+/g, " ");
|
|
8327
|
-
const trimmed = cutReasonLine(oneLine).trim();
|
|
8393
|
+
const trimmed = cutReasonLine(oneLine, max).trim();
|
|
8328
8394
|
return trimmed.length > 0 ? trimmed : void 0;
|
|
8329
8395
|
}
|
|
8330
8396
|
function scrubTunnelRecord(record, config, jobDir) {
|
|
@@ -12314,7 +12380,9 @@ function checksIn(root, log, tag) {
|
|
|
12314
12380
|
const policy = policyText === void 0 ? null : asHostReads({ path: POLICY_FILE, content: policyText }, base, log, tag);
|
|
12315
12381
|
const loaded = parsePolicy(policy, validatorFilesIn(root).map((file) => asHostReads(file, base, log, tag)));
|
|
12316
12382
|
for (const problem of loaded.problems) log.error(`${tag} ${problem.file}: ${problem.problem}`);
|
|
12317
|
-
const hostChecks = loaded.customs.filter(
|
|
12383
|
+
const hostChecks = loaded.customs.filter(
|
|
12384
|
+
(def) => def.runWhere === "host" && def.level !== "off" && def.declaresEmit !== null && def.declaresEmit !== CODE_REVIEW_NAME
|
|
12385
|
+
);
|
|
12318
12386
|
const checks = [];
|
|
12319
12387
|
for (const def of hostChecks) {
|
|
12320
12388
|
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 +12768,4 @@ async function runHostChecks(input) {
|
|
|
12700
12768
|
}
|
|
12701
12769
|
}
|
|
12702
12770
|
|
|
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 };
|
|
12771
|
+
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 { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-
|
|
3
|
+
import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-OO33S4AF.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,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { toolsDockerfile } from './chunk-
|
|
4
|
-
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-
|
|
3
|
+
import { toolsDockerfile } from './chunk-WDJPGE6K.js';
|
|
4
|
+
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-VYAFSV43.js';
|
|
5
5
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
6
|
-
import { runnerLabelValue } from './chunk-
|
|
7
|
-
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-
|
|
8
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-
|
|
9
|
-
import { withGitConfig, tokenHeader } from './chunk-
|
|
10
|
-
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-
|
|
6
|
+
import { runnerLabelValue } from './chunk-FZD6GIW5.js';
|
|
7
|
+
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-XKJZHY4J.js';
|
|
8
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-LYORNXIT.js';
|
|
9
|
+
import { withGitConfig, tokenHeader } from './chunk-QHT6PIFP.js';
|
|
10
|
+
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-PJNOTSB5.js';
|
|
11
11
|
import { mkdirSync, writeFileSync, existsSync, mkdtempSync, rmSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
|
|
12
12
|
import { tmpdir } from 'os';
|
|
13
13
|
import { join } from 'path';
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { checkStarterFiles, contextIsGoverned } from './chunk-
|
|
4
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
5
|
-
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-
|
|
6
|
-
import { withInjectedPrograms } from './chunk-
|
|
7
|
-
import { isLinkedRepository } from './chunk-
|
|
8
|
-
import { sanitizeTerminal } from './chunk-
|
|
3
|
+
import { checkStarterFiles, contextIsGoverned } from './chunk-TWWAV67F.js';
|
|
4
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-IQHREL5T.js';
|
|
5
|
+
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-SOB4KVRZ.js';
|
|
6
|
+
import { withInjectedPrograms } from './chunk-DRUM7NWK.js';
|
|
7
|
+
import { isLinkedRepository } from './chunk-7VVTZNUP.js';
|
|
8
|
+
import { sanitizeTerminal } from './chunk-OCQ5FQZR.js';
|
|
9
9
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
10
|
-
import { checkFormerSkillNames } from './chunk-
|
|
11
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
12
|
-
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-
|
|
10
|
+
import { checkFormerSkillNames } from './chunk-2IVRTP6M.js';
|
|
11
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-NOBB3LEO.js';
|
|
12
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-O3TOA2KE.js';
|
|
13
13
|
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-SF2TBJBP.js';
|
|
14
14
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
15
15
|
import { readStatuslineState, STATE_FRESH_MS } from './chunk-M53UNEO6.js';
|
|
16
16
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
17
|
-
import { installAgents, withSettingsText } from './chunk-
|
|
17
|
+
import { installAgents, withSettingsText } from './chunk-RZXP427Z.js';
|
|
18
18
|
import { cliForInstall, cliBinResolvable } from './chunk-ZHQC43NH.js';
|
|
19
19
|
import { readDeliveryRecord, readDegraded, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
20
20
|
import { deadHooksState, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
|
|
21
|
-
import { defaultAgents, legacyAgent, contextAgents } from './chunk-
|
|
21
|
+
import { defaultAgents, legacyAgent, contextAgents } from './chunk-OO33S4AF.js';
|
|
22
22
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
23
|
-
import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-
|
|
23
|
+
import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-X25VXXCF.js';
|
|
24
24
|
import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, accessSync, constants, statSync } from 'fs';
|
|
25
25
|
import { sep, join, dirname, resolve, delimiter } from 'path';
|
|
26
26
|
import { execFileSync } from 'child_process';
|
|
@@ -1051,8 +1051,8 @@ function doctorExitCode(checks) {
|
|
|
1051
1051
|
|
|
1052
1052
|
// src/doctor-report.ts
|
|
1053
1053
|
async function gatherDoctorChecks(options = {}) {
|
|
1054
|
-
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-
|
|
1055
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1054
|
+
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-EO2VG3MF.js');
|
|
1055
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-4YPIDOHH.js');
|
|
1056
1056
|
const configPath = options.configPath ?? defaultRunnerConfigPath();
|
|
1057
1057
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1058
1058
|
const hooks = (() => {
|
|
@@ -1080,7 +1080,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1080
1080
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1081
1081
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1082
1082
|
} else if (hasRunnerBlock(configPath)) {
|
|
1083
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1083
|
+
const { runnerHostChecks } = await import('./doctor-5PTO2DN7.js');
|
|
1084
1084
|
const gateway = (() => {
|
|
1085
1085
|
try {
|
|
1086
1086
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1108,7 +1108,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1108
1108
|
const service = await (async () => {
|
|
1109
1109
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1110
1110
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1111
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1111
|
+
const { inspectRunnerService } = await import('./find-unit-F3Q54LLR.js');
|
|
1112
1112
|
return inspectRunnerService(configPath);
|
|
1113
1113
|
})();
|
|
1114
1114
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
4
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
4
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-LYORNXIT.js';
|
|
5
5
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
6
6
|
import { dirname } from 'path';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { defaultAgents } from './chunk-OO33S4AF.js';
|
|
4
4
|
import { openSync, fstatSync, readSync, closeSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { RUNNER_FILE_MODE } from './chunk-
|
|
5
|
-
import { parseRunnerEnv, withoutCredentialLines } from './chunk-
|
|
6
|
-
import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-
|
|
7
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-SZQKS4QK.js';
|
|
4
|
+
import { RUNNER_FILE_MODE } from './chunk-LYORNXIT.js';
|
|
5
|
+
import { parseRunnerEnv, withoutCredentialLines } from './chunk-BU25W7GF.js';
|
|
6
|
+
import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-PJNOTSB5.js';
|
|
7
|
+
import { defaultAgents } from './chunk-OO33S4AF.js';
|
|
8
8
|
import { existsSync, readFileSync, writeFileSync, renameSync, rmSync } from 'fs';
|
|
9
9
|
import { join, dirname } from 'path';
|
|
10
10
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession } from './chunk-
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
3
|
+
import { detectActiveSession } from './chunk-VZGTPITG.js';
|
|
4
|
+
import { autoConnect } from './chunk-RWNVQSGX.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-NOBB3LEO.js';
|
|
7
7
|
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
8
8
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
9
9
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
10
|
-
import { resolveRepoIdentity } from './chunk-
|
|
10
|
+
import { resolveRepoIdentity } from './chunk-X25VXXCF.js';
|
|
11
11
|
|
|
12
12
|
createRequire(import.meta.url);
|
|
13
13
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { PROXY_WARNING_FLAG } from './chunk-
|
|
4
|
-
import { RELAY_ID, RELAY_USER } from './chunk-
|
|
5
|
-
import { imageInstalls, GH_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL_REVISION, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, HEADLESS_SHELL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_VERSION } from './chunk-
|
|
6
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { PROXY_WARNING_FLAG } from './chunk-QHT6PIFP.js';
|
|
4
|
+
import { RELAY_ID, RELAY_USER } from './chunk-BU25W7GF.js';
|
|
5
|
+
import { imageInstalls, GH_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL_REVISION, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, HEADLESS_SHELL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_VERSION } from './chunk-PJNOTSB5.js';
|
|
6
|
+
import { defaultAgents } from './chunk-OO33S4AF.js';
|
|
7
7
|
|
|
8
8
|
createRequire(import.meta.url);
|
|
9
9
|
|
|
@@ -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-LYORNXIT.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 { inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-
|
|
3
|
+
import { inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-2VNT47DG.js';
|
|
4
4
|
import { readFileSync, mkdirSync, statSync, copyFileSync, renameSync, unlinkSync, writeFileSync, readdirSync, realpathSync, watch as watch$1 } from 'fs';
|
|
5
5
|
import * as sp5 from 'path';
|
|
6
6
|
import { join, relative, dirname, resolve, sep } from 'path';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-
|
|
3
|
+
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-FSYEDSSA.js';
|
|
4
4
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
5
|
-
import { invalidConfigMessage } from './chunk-
|
|
6
|
-
import { retiredSkillPaths, removeRetiredSkills } from './chunk-
|
|
5
|
+
import { invalidConfigMessage } from './chunk-C3P637LO.js';
|
|
6
|
+
import { retiredSkillPaths, removeRetiredSkills } from './chunk-2IVRTP6M.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
-
import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-
|
|
8
|
+
import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-OO33S4AF.js';
|
|
9
9
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
10
10
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, copyFileSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
|
|
11
11
|
import { join, dirname } from 'path';
|