@outerlayer/cli 0.38.0-next.20261109030637 → 0.38.0-next.20261109042440
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/dist/agent-setup-MLSWF7RF.js +40 -0
- package/dist/{agent-subcommand-OCMCCFSB.js → agent-subcommand-DCOPM2NX.js} +4 -4
- package/dist/{artifact-link-cmd-F6M2BDT7.js → artifact-link-cmd-RUGAK5EX.js} +2 -2
- package/dist/{bridge-YLEFQNIS.js → bridge-HZRJYECQ.js} +7 -7
- package/dist/{build-KLJ77WKQ.js → build-3LXKCCJF.js} +13 -13
- package/dist/{build-disk-3L3SLREW.js → build-disk-TYX6DU5R.js} +11 -11
- package/dist/build-info.json +1 -1
- package/dist/{builder-XKYFIIFR.js → builder-VYKWHAUQ.js} +10 -10
- package/dist/caller-VU7QBFHQ.js +23 -0
- package/dist/{check-PUIAZQDB.js → check-V7O237A4.js} +55 -55
- package/dist/{chunk-357XJHAI.js → chunk-22QIA7SH.js} +1 -1
- package/dist/{chunk-OCQ5FQZR.js → chunk-2DVQHK37.js} +1 -1
- package/dist/{chunk-N36RPTGJ.js → chunk-2J3X2Z4F.js} +18 -13
- package/dist/{chunk-4JU3ICKR.js → chunk-2XEQCSCQ.js} +4 -4
- package/dist/{chunk-XJE67R7O.js → chunk-4EQQS3VJ.js} +1 -1
- package/dist/{chunk-SPGMETJ6.js → chunk-4K2EMRJP.js} +6 -6
- package/dist/{chunk-VUNNIYLD.js → chunk-4LUHKCDO.js} +9 -9
- package/dist/{chunk-OZOLXCLE.js → chunk-5OBQBINA.js} +1 -1
- package/dist/{chunk-EMZHIR3I.js → chunk-6EN72I2O.js} +1 -1
- package/dist/{chunk-XGFXQRIO.js → chunk-7TM2E4RI.js} +8 -8
- package/dist/{chunk-7V2LUZA4.js → chunk-B3ILHK4Q.js} +7 -7
- package/dist/{chunk-MKGLYKVW.js → chunk-BDTFO5S7.js} +3 -3
- package/dist/{chunk-KUVKEP7N.js → chunk-BFWZGLUU.js} +1 -1
- package/dist/{chunk-PT7JH3LM.js → chunk-C3K54KRU.js} +5 -5
- package/dist/{chunk-KJA6Z3WV.js → chunk-CCEP5WBI.js} +7 -7
- package/dist/{chunk-UESGZQXE.js → chunk-CFJTX2QF.js} +10 -10
- package/dist/{chunk-Q4FE47JA.js → chunk-D7KYG37D.js} +3 -3
- package/dist/{chunk-D4MF3VYW.js → chunk-DEWD22FA.js} +1 -1
- package/dist/{chunk-EDQFP6WC.js → chunk-DX27B42J.js} +1 -1
- package/dist/{chunk-LKSDYSAN.js → chunk-EGKYININ.js} +5 -5
- package/dist/{chunk-YQ5NN522.js → chunk-EI6JYZ42.js} +3 -3
- package/dist/{chunk-WTUZDY5N.js → chunk-F3MEL6B6.js} +4 -4
- package/dist/{chunk-2OD5IXRW.js → chunk-GECHL3NC.js} +4 -4
- package/dist/{chunk-2Z7JU2LO.js → chunk-GTKR2YEZ.js} +1 -1
- package/dist/{chunk-4K6FPM2H.js → chunk-GVK7AKFX.js} +4 -4
- package/dist/{chunk-RUBFKBGT.js → chunk-H3YHAO7L.js} +1 -1
- package/dist/{chunk-2VNT47DG.js → chunk-HE53NIRE.js} +2 -1
- package/dist/{chunk-LCZO4Y7A.js → chunk-HGWDBTQ3.js} +2 -2
- package/dist/{chunk-3BMUYCRC.js → chunk-HQMSXIDX.js} +8 -7
- package/dist/{chunk-2AZRPXHK.js → chunk-IEKXNDKX.js} +249 -35
- package/dist/{chunk-2DLAG5WR.js → chunk-IG5ZZG7R.js} +3 -3
- package/dist/{chunk-2KL345FW.js → chunk-IJ4DF5QS.js} +1 -1
- package/dist/{chunk-FB3TGNSZ.js → chunk-IOSY5ZYJ.js} +10 -10
- package/dist/{chunk-ZFQ4XHLK.js → chunk-JAURZKSE.js} +5 -5
- package/dist/{chunk-XMW4DMHT.js → chunk-JKRVSEK7.js} +8 -8
- package/dist/{chunk-CLTLDVGO.js → chunk-JMWCPEKP.js} +1 -1
- package/dist/{chunk-ZAZYP75I.js → chunk-JSWKSMVE.js} +3 -3
- package/dist/{chunk-7NQWXGC5.js → chunk-KFHF3GBH.js} +6 -6
- package/dist/{chunk-PCJYDS7C.js → chunk-KIYP5TML.js} +1 -1
- package/dist/{chunk-MNWQT63C.js → chunk-KX4JKW4Z.js} +4 -4
- package/dist/{chunk-VKNQBWAN.js → chunk-KZNIQUOC.js} +25 -25
- package/dist/{chunk-DZIOUCMI.js → chunk-LA5UO6LI.js} +2 -2
- package/dist/{chunk-R7XFHG67.js → chunk-LIMJRKIU.js} +5 -5
- package/dist/{chunk-UKYKWVZM.js → chunk-LLVBDIQJ.js} +7 -7
- package/dist/{chunk-AI25ZRE3.js → chunk-LO3PSFNT.js} +1 -1
- package/dist/{chunk-ULHJZ4HQ.js → chunk-LOG4LBUY.js} +2 -2
- package/dist/{chunk-ANDCQGUH.js → chunk-LYWLBZ37.js} +2 -2
- package/dist/{chunk-7IHAWJRT.js → chunk-MM4B7IZK.js} +3 -3
- package/dist/{chunk-ISNZJI45.js → chunk-MMSFADKC.js} +1 -1
- package/dist/{chunk-JZF5AA6N.js → chunk-N2QYP3NQ.js} +1 -1
- package/dist/{chunk-W2IJ3E5O.js → chunk-N3KJY74V.js} +16 -16
- package/dist/{chunk-N7ILSHWT.js → chunk-NHT7RHAI.js} +3 -3
- package/dist/{chunk-AOPMNZT5.js → chunk-OKELGJNN.js} +3 -2
- package/dist/{chunk-TUA57BFL.js → chunk-OPGF3FUY.js} +1 -1
- package/dist/{chunk-XGY5XNTJ.js → chunk-OYBBYENC.js} +7 -7
- package/dist/{chunk-L2D465QT.js → chunk-PM4YDVAX.js} +1 -1
- package/dist/{chunk-Y4IY7NI2.js → chunk-Q6ANHBJK.js} +1 -1
- package/dist/{chunk-ZACEJPSM.js → chunk-QP6SPQU5.js} +4 -4
- package/dist/{chunk-6QKXP6FD.js → chunk-RMXRQ3OC.js} +1 -1
- package/dist/{chunk-NAJYLQH3.js → chunk-RVYMYTXX.js} +1 -1
- package/dist/{chunk-SELIZ5DP.js → chunk-SLR6QAOE.js} +1 -1
- package/dist/{chunk-J56NXZPC.js → chunk-T63WTVGY.js} +6 -6
- package/dist/{chunk-SQILPZYC.js → chunk-TNAUQADA.js} +1 -1
- package/dist/{chunk-UILU5DEI.js → chunk-TTG6Y7G7.js} +1 -1
- package/dist/{chunk-SLLLDS3C.js → chunk-U463IFDK.js} +6 -6
- package/dist/{chunk-EVJCOO4S.js → chunk-UCDCPQXU.js} +1 -1
- package/dist/{chunk-ACPZJKSY.js → chunk-UNA4YIHE.js} +6 -6
- package/dist/{chunk-YPWMV3CQ.js → chunk-X45WDWSV.js} +1 -1
- package/dist/{chunk-X6GNGB54.js → chunk-X56UUEHE.js} +2 -2
- package/dist/{chunk-N5PVMTR5.js → chunk-Z4R73UUH.js} +6 -6
- package/dist/{chunk-4OKYCBVB.js → chunk-ZLJD2AY3.js} +7 -7
- package/dist/{chunk-UMEGPDPT.js → chunk-ZWWU7COR.js} +1 -1
- package/dist/{claude-launcher-A2PB52O6.js → claude-launcher-YDSG5XIN.js} +7 -7
- package/dist/{cli-AONUOJJY.js → cli-DLRZZO5D.js} +150 -150
- package/dist/{command-SFDMAHJ5.js → command-323XICE4.js} +50 -50
- package/dist/{config-P6MQT7CU.js → config-O2LJAZJZ.js} +12 -12
- package/dist/{connect-cmd-AECCKAP5.js → connect-cmd-3DBWVCUL.js} +13 -13
- package/dist/{container-start-4BZGFE2N.js → container-start-2EZGXAQ2.js} +48 -48
- package/dist/{context-cleanup-YMDLQ3PL.js → context-cleanup-Z23RX7JT.js} +4 -4
- package/dist/{context-show-cmd-KRWENGTR.js → context-show-cmd-OGRCR5OT.js} +14 -14
- package/dist/{control-plane-launch-YRDBVQHE.js → control-plane-launch-JZPULKCL.js} +14 -14
- package/dist/{demo-record-cmd-J5XQAPMI.js → demo-record-cmd-YPWPHDAN.js} +8 -8
- package/dist/{demo-voice-cmd-VTRAXIFJ.js → demo-voice-cmd-TNZ2G5CJ.js} +20 -20
- package/dist/{dist-MONMYZQI.js → dist-OMJJT636.js} +2 -2
- package/dist/{docker-54RFCNP4.js → docker-MOESJVCB.js} +10 -10
- package/dist/{doctor-ACNO3WNY.js → doctor-GHJ7EPRT.js} +50 -50
- package/dist/{emit-artifact-cmd-LNJHMF5X.js → emit-artifact-cmd-W7YBXLA7.js} +19 -19
- package/dist/{emit-cmd-Y2Y5CL3A.js → emit-cmd-3YOUQCID.js} +7 -7
- package/dist/{emit-criteria-cmd-7OTT6XYU.js → emit-criteria-cmd-KZW275Q2.js} +16 -16
- package/dist/{emit-demo-cmd-YPHFID3H.js → emit-demo-cmd-3UBPYRAM.js} +20 -20
- package/dist/{emit-finding-cmd-XAAK2CGC.js → emit-finding-cmd-NL6H2PBJ.js} +16 -16
- package/dist/{emit-result-cmd-BWUD4ROC.js → emit-result-cmd-KRUV7V74.js} +18 -18
- package/dist/{emit-step-cmd-GOUUJSSN.js → emit-step-cmd-SHBIO2JI.js} +16 -16
- package/dist/{exec-client-GIV4BDKO.js → exec-client-WJLO2KWS.js} +8 -8
- package/dist/find-unit-YNIILXQK.js +24 -0
- package/dist/{findings-cmd-ZNZMNBCT.js → findings-cmd-3JP4GYD3.js} +16 -16
- package/dist/{fleet-readiness-MKOTLDJM.js → fleet-readiness-U4IZZV52.js} +14 -14
- package/dist/{governing-source-KMQOZB7H.js → governing-source-VZFU65KP.js} +21 -21
- package/dist/{guest-init-RDO2IE5C.js → guest-init-HIKD3MHJ.js} +9 -9
- package/dist/{hook-fast-IKXTT3OX.js → hook-fast-2ENS5AKU.js} +1 -1
- package/dist/{hook-install-FUZ2Z3L4.js → hook-install-JTYPE5ZQ.js} +4 -4
- package/dist/host-checks-CSAVTTJ5.js +79 -0
- package/dist/host-key-V2VVCBGR.js +18 -0
- package/dist/{image-tag-SJN4JJFB.js → image-tag-EX2R462S.js} +8 -8
- package/dist/index.js +4 -4
- package/dist/init-F4CGGR62.js +79 -0
- package/dist/{init-PEW7WYNZ.js → init-RXTPXCHN.js} +46 -46
- package/dist/{init-agent-4SYRCOGH.js → init-agent-RT45WGLM.js} +46 -46
- package/dist/{init-cmd-BQW4EMJA.js → init-cmd-HMPM33KI.js} +27 -27
- package/dist/{init-update-BEE32DYS.js → init-update-ZWSICDTJ.js} +24 -24
- package/dist/{install-cmd-Y33MOS4U.js → install-cmd-LX76Y7NB.js} +10 -10
- package/dist/{layout-VTYYGLBF.js → layout-4FLIBRPO.js} +4 -4
- package/dist/{login-browser-VNPN4FVO.js → login-browser-ZEOXKIQ2.js} +2 -2
- package/dist/{logs-D6VDVMWB.js → logs-BWGJ2BVT.js} +7 -7
- package/dist/loop-DINF6WGB.js +90 -0
- package/dist/machine-KBGKKY6E.js +79 -0
- package/dist/{machine-skills-BXKXRG6F.js → machine-skills-UEQA3AUX.js} +4 -4
- package/dist/{mcp-install-cmd-DAU25PTN.js → mcp-install-cmd-DBKKGLHW.js} +4 -4
- package/dist/{mcp-serve-cmd-WI2TVERC.js → mcp-serve-cmd-LFXU5UGJ.js} +9 -9
- package/dist/{paths-XSZV6RIP.js → paths-CSZZQK3X.js} +7 -7
- package/dist/pending-BHRSEFXV.js +18 -0
- package/dist/{pidfile-ZXYUJUD2.js → pidfile-TTIUEDXW.js} +8 -8
- package/dist/{record-KTFMHAAJ.js → record-U7DU6IVT.js} +8 -8
- package/dist/{relay-LE7ORFOR.js → relay-KZTGUSFJ.js} +5 -5
- package/dist/{relay-protocol-MJKBXBGB.js → relay-protocol-LG4J5K63.js} +5 -5
- package/dist/{runner-agents-SVCAGQHJ.js → runner-agents-32J743FJ.js} +4 -4
- package/dist/runner-env-RGYTHURZ.js +24 -0
- package/dist/{runner-identity-NEIPECZQ.js → runner-identity-VQCIKNBK.js} +10 -10
- package/dist/{runner-key-U77G3TQC.js → runner-key-W76LSC57.js} +46 -46
- package/dist/{session-sender-JF4UZHMV.js → session-sender-3VFTMIM3.js} +19 -19
- package/dist/{spec-cmd-76WIDFVM.js → spec-cmd-RQFIJ75J.js} +17 -17
- package/dist/{starter-pack-HNBEDTIH.js → starter-pack-LO3D6CPP.js} +5 -5
- package/dist/state-IH6JOEJZ.js +18 -0
- package/dist/{status-CZKVHMS2.js → status-J5BVCENR.js} +46 -46
- package/dist/{sync-cmd-2PU64AZ3.js → sync-cmd-4RSCWFAF.js} +18 -18
- package/dist/update-steps-U7KB2PPF.js +80 -0
- package/dist/{watch-6C4G5JOF.js → watch-NH5QZJLE.js} +18 -18
- package/dist/{work-claim-cmd-YYUNJGFI.js → work-claim-cmd-ANXDKSAU.js} +22 -22
- package/dist/{work-cmd-4CK4W3N5.js → work-cmd-32J5UQJO.js} +16 -16
- package/dist/{work-comment-cmd-C52THEHZ.js → work-comment-cmd-ZUZEAIIH.js} +18 -18
- package/dist/{work-demo-cmd-MJQ6USSW.js → work-demo-cmd-56C6JQD3.js} +16 -16
- package/dist/{work-logs-cmd-UYJZBCLC.js → work-logs-cmd-XKVZ2UY6.js} +16 -16
- package/dist/{work-needs-attention-cmd-HEVZ5RHU.js → work-needs-attention-cmd-DYD3AIRU.js} +16 -16
- package/dist/{work-no-change-cmd-LFMIGD2R.js → work-no-change-cmd-QVD67UG5.js} +16 -16
- package/dist/{work-open-pr-cmd-XSGPLXZA.js → work-open-pr-cmd-3SSJPKHW.js} +17 -17
- package/dist/{work-pr-cmd-YCBNEEI3.js → work-pr-cmd-DF6Q5XHU.js} +16 -16
- package/dist/{work-proofs-cmd-V5GFPGRX.js → work-proofs-cmd-B6JFSXPH.js} +18 -18
- package/dist/{work-proofs-record-33O3X7C7.js → work-proofs-record-PWYMY3XW.js} +24 -24
- package/dist/{work-stop-cmd-IMFJIH6B.js → work-stop-cmd-4KNMURDC.js} +16 -16
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/references/code-review-judge.md +52 -14
- package/dist/agent-setup-PYMUWCRP.js +0 -40
- package/dist/caller-SYFUJ4MP.js +0 -23
- package/dist/find-unit-Y3WVYANJ.js +0 -24
- package/dist/host-checks-D7VF7YBE.js +0 -79
- package/dist/host-key-GSXTEJA5.js +0 -18
- package/dist/init-K5NS7O57.js +0 -79
- package/dist/loop-EEKADJWO.js +0 -90
- package/dist/machine-N3IE2UTH.js +0 -79
- package/dist/pending-DZI33SGU.js +0 -18
- package/dist/runner-env-Q6OGDJAI.js +0 -24
- package/dist/state-REW53DKI.js +0 -18
- package/dist/update-steps-NOZ5JGCV.js +0 -80
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems, openPullRequests, MAX_TEST_FILE_BYTES } from './chunk-
|
|
3
|
+
import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems, openPullRequests, MAX_TEST_FILE_BYTES } from './chunk-HQMSXIDX.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-EGKYININ.js';
|
|
7
|
+
import { upgradedStarterText } from './chunk-LIMJRKIU.js';
|
|
8
|
+
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-EI6JYZ42.js';
|
|
9
|
+
import { writeDockerClientConfig } from './chunk-SLR6QAOE.js';
|
|
10
|
+
import { senderPidfile } from './chunk-GVK7AKFX.js';
|
|
11
|
+
import { installScrubContext } from './chunk-4LUHKCDO.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-6EN72I2O.js';
|
|
14
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-X56UUEHE.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-LLVBDIQJ.js';
|
|
17
|
+
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-GECHL3NC.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, JUDGE_TREE, MAX_REPORT_BYTES, parseSize, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, judgeCommand, WORKSPACE_LABEL, networkHelperRunArgs, JUDGE_MAX_TURNS,
|
|
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-BFWZGLUU.js';
|
|
21
|
+
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-NHT7RHAI.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-CCEP5WBI.js';
|
|
23
|
+
import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-7TM2E4RI.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-KX4JKW4Z.js';
|
|
25
|
+
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-LOG4LBUY.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, JUDGE_DIR, WORKSPACE_LABEL, networkHelperRunArgs, JUDGE_MAX_TURNS, JUDGE_ITEMS, answerFileName, hashJudgeProgram, identityScript, identityArgs, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, MAX_ITEMS_BYTES, JUDGE_REPORT, SAVED_STATE_LABEL } from './chunk-2J3X2Z4F.js';
|
|
27
|
+
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-5OBQBINA.js';
|
|
28
|
+
import { sanitizeTerminal, planArtifactUpload } from './chunk-2DVQHK37.js';
|
|
29
|
+
import { sharedSkillNames, skillConflictMessage } from './chunk-TTG6Y7G7.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-RVYMYTXX.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-LO3PSFNT.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-QP6SPQU5.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-LA5UO6LI.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-GTKR2YEZ.js';
|
|
37
|
+
import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, orderSessions, extractFacts, sessionsToTimeline, resolvePackRoot } from './chunk-OKELGJNN.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, 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-
|
|
41
|
+
import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, scrubDeep } from './chunk-N2QYP3NQ.js';
|
|
42
|
+
import { CheckItemsSchema, CODE_REVIEW_NAME, JUDGE_NOT_RUN_ITEM_ID, REVIEWED_COMMIT_ITEM_ID, CHECK_ITEM_REASON_MAX_LENGTH, UNREVIEWED_FILES_ITEM_ID, CHECK_ITEM_HREF_MAX_LENGTH, downconvertSession } from './chunk-HE53NIRE.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';
|
|
@@ -5662,7 +5662,7 @@ function microVmJudgeEnvironment(input) {
|
|
|
5662
5662
|
return ran;
|
|
5663
5663
|
},
|
|
5664
5664
|
readReport: () => readJudgeFile("report.html", MAX_REPORT_BYTES),
|
|
5665
|
-
readItems: (
|
|
5665
|
+
readItems: (name = "items.json") => readJudgeFile(answerFileName(name), MAX_ITEMS_BYTES)
|
|
5666
5666
|
};
|
|
5667
5667
|
}
|
|
5668
5668
|
async function startCheckMicroVm(input) {
|
|
@@ -7720,6 +7720,128 @@ ${rows}
|
|
|
7720
7720
|
`;
|
|
7721
7721
|
}
|
|
7722
7722
|
|
|
7723
|
+
// src/runner/code-review-plan.ts
|
|
7724
|
+
var SMALL_CHANGE_LINES = 40;
|
|
7725
|
+
var LARGE_CHANGE_LINES = 800;
|
|
7726
|
+
var GENERATED = /(^|\/)(openapi\.ya?ml|gateway-types\.ts|yarn\.lock|package-lock\.json|pnpm-lock\.yaml)$|\.golden$|\.snap$|(^|\/)generated\/|(^|\/)db-types\//;
|
|
7727
|
+
var FLOOR = /\.sql$|(^|\/)migrations\/|auth|secret|permission|webhook|token|(^|\/)rls/i;
|
|
7728
|
+
function markdownSection(text2, heading) {
|
|
7729
|
+
const lines = text2.split("\n");
|
|
7730
|
+
const start = lines.findIndex((line2) => line2.trim() === `## ${heading}`);
|
|
7731
|
+
if (start === -1) return void 0;
|
|
7732
|
+
const end = lines.findIndex((line2, index) => index > start && line2.startsWith("## "));
|
|
7733
|
+
const body = lines.slice(start + 1, end === -1 ? void 0 : end).join("\n").trim();
|
|
7734
|
+
return body === "" ? void 0 : body;
|
|
7735
|
+
}
|
|
7736
|
+
function splitDiff(patch) {
|
|
7737
|
+
const parts = [];
|
|
7738
|
+
const starts = [...patch.matchAll(/^diff --git /gm)].map((match) => match.index);
|
|
7739
|
+
for (const [index, start] of starts.entries()) {
|
|
7740
|
+
const text2 = patch.slice(start, starts[index + 1] ?? patch.length);
|
|
7741
|
+
const path = /^diff --git a\/\S+ b\/(\S+)/.exec(text2)?.[1] ?? "?";
|
|
7742
|
+
let added = 0;
|
|
7743
|
+
let removed = 0;
|
|
7744
|
+
for (const line2 of text2.split("\n")) {
|
|
7745
|
+
if (line2.startsWith("+") && !line2.startsWith("+++")) added += 1;
|
|
7746
|
+
else if (line2.startsWith("-") && !line2.startsWith("---")) removed += 1;
|
|
7747
|
+
}
|
|
7748
|
+
parts.push({ path, text: text2, added, removed });
|
|
7749
|
+
}
|
|
7750
|
+
return parts;
|
|
7751
|
+
}
|
|
7752
|
+
function reviewFiles(patch) {
|
|
7753
|
+
const files = { "diff.patch": patch };
|
|
7754
|
+
const changed = [];
|
|
7755
|
+
const index = ["# Changed files", "", "| File | Added | Removed | Its part of the change |", "|---|---|---|---|"];
|
|
7756
|
+
for (const [position, part] of splitDiff(patch).entries()) {
|
|
7757
|
+
const name = `diff-${String(position + 1).padStart(3, "0")}.patch`;
|
|
7758
|
+
const generated = GENERATED.test(part.path);
|
|
7759
|
+
files[name] = part.text;
|
|
7760
|
+
changed.push({ path: part.path, added: part.added, removed: part.removed, name, generated });
|
|
7761
|
+
index.push(`| \`${part.path.replace(/[`|]/g, "_")}\` | ${part.added} | ${part.removed} | \`${name}\`${generated ? " (generated: skim it)" : ""} |`);
|
|
7762
|
+
}
|
|
7763
|
+
files["files.md"] = `${index.join("\n")}
|
|
7764
|
+
`;
|
|
7765
|
+
return { files, changed };
|
|
7766
|
+
}
|
|
7767
|
+
function territories(changed, briefs) {
|
|
7768
|
+
const lines = changed.filter((file) => !file.generated).reduce((sum, file) => sum + file.added + file.removed, 0);
|
|
7769
|
+
const generalist = { name: "generalist", text: "Review the full change with no restriction, and favor the seams no other reviewer names as its own." };
|
|
7770
|
+
const full = lines > LARGE_CHANGE_LINES || changed.some((file) => FLOOR.test(file.path));
|
|
7771
|
+
if (!full && lines < SMALL_CHANGE_LINES) return [generalist];
|
|
7772
|
+
const names = [
|
|
7773
|
+
["contracts", "Contracts reviewer"],
|
|
7774
|
+
["test-strength", "Test-strength reviewer"]
|
|
7775
|
+
];
|
|
7776
|
+
if (full) names.push(["security", "Security reviewer"], ["failure-path", "Failure-path reviewer"]);
|
|
7777
|
+
const focused = names.flatMap(([name, heading]) => {
|
|
7778
|
+
const text2 = briefs === void 0 ? void 0 : markdownSection(briefs, heading);
|
|
7779
|
+
return text2 === void 0 ? [] : [{ name, text: text2 }];
|
|
7780
|
+
});
|
|
7781
|
+
return [generalist, ...focused];
|
|
7782
|
+
}
|
|
7783
|
+
function territoryBrief(brief, territory) {
|
|
7784
|
+
return `${brief.trimEnd()}
|
|
7785
|
+
|
|
7786
|
+
## Your territory
|
|
7787
|
+
|
|
7788
|
+
${territory.text}
|
|
7789
|
+
`;
|
|
7790
|
+
}
|
|
7791
|
+
function issueText(workItem, criteria) {
|
|
7792
|
+
const issue = Object(Object(workItem).issue);
|
|
7793
|
+
const title = Object(workItem).title;
|
|
7794
|
+
const parts = [];
|
|
7795
|
+
if (typeof title === "string" && title.trim() !== "") parts.push(`# ${title.trim()}`);
|
|
7796
|
+
if (typeof issue.body === "string" && issue.body.trim() !== "") parts.push(issue.body.trim());
|
|
7797
|
+
if (criteria !== void 0 && criteria.length > 0) parts.push(["## Recorded criteria", "", ...criteria.map((criterion) => `- \`${criterion.id}\` ${criterion.text}`)].join("\n"));
|
|
7798
|
+
return parts.length === 0 ? void 0 : `${parts.join("\n\n")}
|
|
7799
|
+
`;
|
|
7800
|
+
}
|
|
7801
|
+
function previousText(items) {
|
|
7802
|
+
const open = items.filter((item) => item.result === "fail" && item.id !== JUDGE_NOT_RUN_ITEM_ID && item.id !== REVIEWED_COMMIT_ITEM_ID);
|
|
7803
|
+
if (open.length === 0) return void 0;
|
|
7804
|
+
const defects = open.map((item) => ({ id: item.id, ...item.reason === void 0 ? {} : { reason: item.reason }, refs: (item.refs ?? []).map((ref) => ({ path: ref.path, ...ref.line === void 0 ? {} : { line: ref.line } })) }));
|
|
7805
|
+
return `${JSON.stringify({ commit: open[0].commit ?? null, defects }, null, 2)}
|
|
7806
|
+
`;
|
|
7807
|
+
}
|
|
7808
|
+
function mergeAnswers(answers) {
|
|
7809
|
+
const items = [];
|
|
7810
|
+
const earlier = /* @__PURE__ */ new Set();
|
|
7811
|
+
const keyOf2 = (entry) => {
|
|
7812
|
+
const place = entry.refs?.[0];
|
|
7813
|
+
return [entry.id, entry.result, place?.path ?? "", place?.line ?? ""].join("\0");
|
|
7814
|
+
};
|
|
7815
|
+
for (const answer of answers) {
|
|
7816
|
+
const kept = answer.items.filter((entry) => !earlier.has(keyOf2(entry)));
|
|
7817
|
+
for (const entry of kept) earlier.add(keyOf2(entry));
|
|
7818
|
+
items.push(...kept);
|
|
7819
|
+
}
|
|
7820
|
+
const lists = answers.flatMap((answer) => answer.reviewed === void 0 ? [] : [answer.reviewed]);
|
|
7821
|
+
const reviewed = lists.length === 0 ? void 0 : [...new Set(lists.flat())];
|
|
7822
|
+
const failed = answers.some((answer) => answer.result === "fail") || items.some((entry) => entry.result === "fail");
|
|
7823
|
+
const result = failed ? "fail" : answers.every((answer) => answer.result === "pass") ? "pass" : void 0;
|
|
7824
|
+
return { ...result === void 0 ? {} : { result }, items, ...reviewed === void 0 ? {} : { reviewed } };
|
|
7825
|
+
}
|
|
7826
|
+
function unreviewedItem(changed, reviewed, commit) {
|
|
7827
|
+
if (reviewed === void 0) return void 0;
|
|
7828
|
+
const read = new Set(reviewed.map((path) => path.replace(/^\/+/, "").replace(/^outerlayer\/judge\/tree\//, "")));
|
|
7829
|
+
const counted = changed.filter((file) => !file.generated && file.path !== "?");
|
|
7830
|
+
const missed = counted.filter((file) => !read.has(file.path));
|
|
7831
|
+
if (missed.length === 0) return void 0;
|
|
7832
|
+
const room = CHECK_ITEM_REASON_MAX_LENGTH - 40;
|
|
7833
|
+
let reason = `${missed.length} of ${counted.length} changed files were not reviewed: `;
|
|
7834
|
+
let listed = 0;
|
|
7835
|
+
for (const file of missed) {
|
|
7836
|
+
const next = `${listed === 0 ? "" : ", "}${file.path}`;
|
|
7837
|
+
if (reason.length + next.length > room) break;
|
|
7838
|
+
reason += next;
|
|
7839
|
+
listed += 1;
|
|
7840
|
+
}
|
|
7841
|
+
if (listed < missed.length) reason += ` and ${missed.length - listed} more`;
|
|
7842
|
+
return { id: UNREVIEWED_FILES_ITEM_ID, result: "skipped", commit, reason: `${reason}.` };
|
|
7843
|
+
}
|
|
7844
|
+
|
|
7723
7845
|
// src/runner/judge.ts
|
|
7724
7846
|
var LIMIT_KEY_TAIL = " (runner.checks.timeLimitMinutes)";
|
|
7725
7847
|
var MAX_DIFF_BYTES = 4 * 1024 * 1024;
|
|
@@ -7727,13 +7849,17 @@ var noAgentProgram = (label) => `the image has no ${label} for the judge`;
|
|
|
7727
7849
|
var REPORT_CAPTION = "The host's criteria judge, each criterion judged against the tests that prove it";
|
|
7728
7850
|
var WHOLE_REPORT_CAPTION = "The host's judge of the change as a whole";
|
|
7729
7851
|
var CODE_REVIEW_BRIEF = "code-review-judge.md";
|
|
7730
|
-
|
|
7731
|
-
|
|
7852
|
+
var REVIEW_TERRITORIES = "review-briefs.md";
|
|
7853
|
+
var CODE_REVIEW_EFFORT = "high";
|
|
7854
|
+
function buildReference(name) {
|
|
7732
7855
|
try {
|
|
7733
|
-
|
|
7856
|
+
return readFileSync(join(resolvePackRoot(), "maintained", "outerlayer-build", "references", name), "utf8");
|
|
7734
7857
|
} catch {
|
|
7858
|
+
return void 0;
|
|
7735
7859
|
}
|
|
7736
|
-
|
|
7860
|
+
}
|
|
7861
|
+
function codeReviewCheck() {
|
|
7862
|
+
return { name: CODE_REVIEW_NAME, builtIn: true, judge: { brief: CODE_REVIEW_BRIEF, text: buildReference(CODE_REVIEW_BRIEF), subjects: "none" } };
|
|
7737
7863
|
}
|
|
7738
7864
|
function treeFileText(root, path) {
|
|
7739
7865
|
const segments = path.split("/");
|
|
@@ -7781,6 +7907,16 @@ async function hostPassedNames(config, item, fetchImpl) {
|
|
|
7781
7907
|
}
|
|
7782
7908
|
return [...latest].filter(([, result]) => result === "pass").map(([name]) => name);
|
|
7783
7909
|
}
|
|
7910
|
+
async function earlierReview(config, workItem, fetchImpl) {
|
|
7911
|
+
let newest = [];
|
|
7912
|
+
for await (const { name, source, items } of resultsOf(config, workItem, fetchImpl)) {
|
|
7913
|
+
if (name !== CODE_REVIEW_NAME || source !== "host") continue;
|
|
7914
|
+
const parsed = CheckItemsSchema.safeParse(items);
|
|
7915
|
+
if (!parsed.success || parsed.data.some((item) => item.id === JUDGE_NOT_RUN_ITEM_ID)) continue;
|
|
7916
|
+
newest = parsed.data;
|
|
7917
|
+
}
|
|
7918
|
+
return newest;
|
|
7919
|
+
}
|
|
7784
7920
|
async function hostReviewed(config, workItem, commit, fetchImpl) {
|
|
7785
7921
|
for await (const { name, source, items } of resultsOf(config, workItem, fetchImpl)) {
|
|
7786
7922
|
if (name !== CODE_REVIEW_NAME || source !== "host" || !Array.isArray(items)) continue;
|
|
@@ -8011,6 +8147,56 @@ async function runJudge(input) {
|
|
|
8011
8147
|
const run = outcome === "timeout" ? { kind: "timeout" } : { kind: "exited", status: outcome.status, stdout: outcome.stdout, stderr: outcome.stderr };
|
|
8012
8148
|
return { reply: readJudgeReply(run, minutes, runtime.agents), answer: parseJudgeAnswer(answerText), report };
|
|
8013
8149
|
};
|
|
8150
|
+
const reviewSideBySide = async (files, runs) => {
|
|
8151
|
+
try {
|
|
8152
|
+
await environment.prepare(files, branchDir);
|
|
8153
|
+
} catch (err) {
|
|
8154
|
+
return { ok: false, reason: `the judge could not be run: ${describeCallFailure(err)}` };
|
|
8155
|
+
}
|
|
8156
|
+
const started = runs.map((territory, index) => {
|
|
8157
|
+
const answerName = index === 0 ? "items.json" : `items-${territory.name}.json`;
|
|
8158
|
+
const answer = `${JUDGE_DIR}/${answerName}`;
|
|
8159
|
+
const command = judgeCommand(
|
|
8160
|
+
{ brief: withAnswerProtocol(territoryBrief(brief, territory), "none", { reviewed: true, answer }), credential, effort: CODE_REVIEW_EFFORT, answer },
|
|
8161
|
+
runtime.agents
|
|
8162
|
+
);
|
|
8163
|
+
const settled = environment.run(command, { logPath: join(jobDir, index === 0 ? "judge.log" : `judge-${territory.name}.log`) }).then(
|
|
8164
|
+
(result) => result,
|
|
8165
|
+
(err) => err instanceof Error ? err : new Error(String(err))
|
|
8166
|
+
);
|
|
8167
|
+
return { territory, answerName, settled, outcome: void 0 };
|
|
8168
|
+
});
|
|
8169
|
+
for (const run of started) void run.settled.then((outcome) => run.outcome = outcome);
|
|
8170
|
+
const timer = timeoutAfter(limitMinutes * 6e4, deps.sleep);
|
|
8171
|
+
let timedOut;
|
|
8172
|
+
try {
|
|
8173
|
+
timedOut = await Promise.race([Promise.all(started.map((run) => run.settled)).then(() => "done"), timer.done]) === "timeout";
|
|
8174
|
+
} finally {
|
|
8175
|
+
timer.cancel();
|
|
8176
|
+
}
|
|
8177
|
+
const answers = await Promise.all(
|
|
8178
|
+
started.map(async (run) => {
|
|
8179
|
+
try {
|
|
8180
|
+
return parseJudgeAnswer(await environment.readItems(run.answerName));
|
|
8181
|
+
} catch (err) {
|
|
8182
|
+
log.error(`${tag} the ${run.territory.name} review's answer could not be read: ${describeCallFailure(err)}`);
|
|
8183
|
+
return void 0;
|
|
8184
|
+
}
|
|
8185
|
+
})
|
|
8186
|
+
);
|
|
8187
|
+
if (timedOut) await environment.stop().catch((err) => log.error(`${tag} the judge could not be stopped after its time ran out: ${describeCallFailure(err)}`));
|
|
8188
|
+
await environment.clear?.().catch((err) => log.error(`${tag} what the judge left in its folder could not be removed: ${describeCallFailure(err)}`));
|
|
8189
|
+
if (started[0].outcome instanceof Error) return { ok: false, reason: `the judge could not be run: ${describeCallFailure(started[0].outcome)}` };
|
|
8190
|
+
return {
|
|
8191
|
+
ok: true,
|
|
8192
|
+
runs: started.map((run, index) => {
|
|
8193
|
+
const outcome = run.outcome;
|
|
8194
|
+
if (outcome instanceof Error) log.error(`${tag} the ${run.territory.name} review could not be run: ${describeCallFailure(outcome)}`);
|
|
8195
|
+
const ran = outcome === void 0 ? { kind: "timeout" } : outcome instanceof Error ? { kind: "exited", status: 1, stdout: "", stderr: outcome.message } : { kind: "exited", status: outcome.status, stdout: outcome.stdout, stderr: outcome.stderr };
|
|
8196
|
+
return { territory: run.territory, reply: readJudgeReply(ran, minutes, runtime.agents), answer: answers[index] };
|
|
8197
|
+
})
|
|
8198
|
+
};
|
|
8199
|
+
};
|
|
8014
8200
|
const linkTo = (path, line2) => {
|
|
8015
8201
|
const href = finder.testHref(repo, head, path, line2 ?? 1);
|
|
8016
8202
|
return href !== null && href.length <= CHECK_ITEM_HREF_MAX_LENGTH && /^https:\/\/\S+$/.test(href) ? { href } : {};
|
|
@@ -8021,6 +8207,34 @@ async function runJudge(input) {
|
|
|
8021
8207
|
ownTree = true;
|
|
8022
8208
|
} catch {
|
|
8023
8209
|
}
|
|
8210
|
+
if (criteria === void 0 && check.builtIn === true) {
|
|
8211
|
+
const place = (path, line2) => treeFileText(branchDir, path) === void 0 ? {} : linkTo(path, line2);
|
|
8212
|
+
const { files, changed } = reviewFiles(diff);
|
|
8213
|
+
const workItem = await readItem();
|
|
8214
|
+
const issue = issueText(workItem, criteriaOf(workItem));
|
|
8215
|
+
if (issue !== void 0) files["issue.md"] = issue;
|
|
8216
|
+
try {
|
|
8217
|
+
const earlier = previousText(await earlierReview(itemCalls(config, job), workItem, deps.fetchImpl));
|
|
8218
|
+
if (earlier !== void 0) files["previous.json"] = earlier;
|
|
8219
|
+
} catch (err) {
|
|
8220
|
+
log.line(`${tag} the item's earlier code review could not be read, so the review runs without it: ${describeCallFailure(err)}`);
|
|
8221
|
+
}
|
|
8222
|
+
const runs = territories(changed, buildReference(REVIEW_TERRITORIES));
|
|
8223
|
+
log.line(`${tag} code review: ${changed.length} changed ${changed.length === 1 ? "file" : "files"}, reviewers ${runs.map((run) => run.name).join(", ")}`);
|
|
8224
|
+
const reviewed = await reviewSideBySide(files, runs);
|
|
8225
|
+
if (!reviewed.ok) return await fail(check, reviewed.reason);
|
|
8226
|
+
const answers = [];
|
|
8227
|
+
for (const { territory, reply, answer } of reviewed.runs) {
|
|
8228
|
+
if (answer?.ok === true) answers.push(answer.answer);
|
|
8229
|
+
else log.line(`${tag} the ${territory.name} review gave no answer: ${answer?.ok === false ? answer.reason : reply.kind === "none" ? reply.reason : "it wrote no answer file"}`);
|
|
8230
|
+
}
|
|
8231
|
+
const first = reviewed.runs[0];
|
|
8232
|
+
if (answers.length === 0) return await finishWhole(check, { reply: first.reply, answer: first.answer, items: void 0, report: void 0, head, branch });
|
|
8233
|
+
const merged = mergeAnswers(answers);
|
|
8234
|
+
const items2 = wholeItems({ answer: merged, commit: head, treeRoot: JUDGE_TREE, place, ownTree, patch: diff, clean: cleanReason });
|
|
8235
|
+
const unreviewed = unreviewedItem(changed, merged.reviewed, head);
|
|
8236
|
+
return await finishWhole(check, { reply: first.reply, answer: { ok: true, answer: merged }, items: unreviewed === void 0 ? items2 : [...items2, unreviewed], report: void 0, head, branch });
|
|
8237
|
+
}
|
|
8024
8238
|
if (criteria === void 0) {
|
|
8025
8239
|
let ran;
|
|
8026
8240
|
try {
|
|
@@ -12152,7 +12366,7 @@ function containerJudgeEnvironment(input) {
|
|
|
12152
12366
|
},
|
|
12153
12367
|
run: (command, opts) => runtime.host.exec({ container: state.container, user, workdir: command.cwd, env: { literals: command.env, passed: {} }, argv: command.argv }, { logPath: opts.logPath }),
|
|
12154
12368
|
readReport: () => readJudgeFile(JUDGE_REPORT, "report.html", MAX_REPORT_BYTES),
|
|
12155
|
-
readItems: () => readJudgeFile(
|
|
12369
|
+
readItems: (name = "items.json") => readJudgeFile(name === "items.json" ? JUDGE_ITEMS : `${JUDGE_DIR}/${answerFileName(name)}`, name, MAX_ITEMS_BYTES),
|
|
12156
12370
|
// The judge's files belong to the build's user, and Claude Code makes some of its folders private to it, so the runner's user cannot remove them from the
|
|
12157
12371
|
// host. Every capability is dropped in the container, so root there could not either; the build's user removes its own, and the runner removes the rest.
|
|
12158
12372
|
clear: async () => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-
|
|
4
|
-
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-
|
|
3
|
+
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-RMXRQ3OC.js';
|
|
4
|
+
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-X45WDWSV.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { runnerDir, RUNNER_DIR_MODE } from './chunk-
|
|
6
|
+
import { runnerDir, RUNNER_DIR_MODE } from './chunk-LO3PSFNT.js';
|
|
7
7
|
import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
|
|
8
8
|
import { dirname, sep, join } from 'path';
|
|
9
9
|
import { spawnSync } from 'child_process';
|
|
@@ -6,7 +6,7 @@ import { readCloudConfigStrict, CloudConfigError, readCloudConfig, writeCloudCon
|
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
8
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
9
|
-
import { CLI_LOGIN_MACHINE_NAME_MAX, CliLoginPollResponseSchema, CLI_LOGIN_KIND, CliLoginRefusalSchema, CliLoginStartedSchema } from './chunk-
|
|
9
|
+
import { CLI_LOGIN_MACHINE_NAME_MAX, CliLoginPollResponseSchema, CLI_LOGIN_KIND, CliLoginRefusalSchema, CliLoginStartedSchema } from './chunk-HE53NIRE.js';
|
|
10
10
|
import { generateKeyPairSync, privateDecrypt, constants, createPrivateKey } from 'crypto';
|
|
11
11
|
import { spawn } from 'child_process';
|
|
12
12
|
import { fstatSync, existsSync, readdirSync, readFileSync, rmSync, mkdirSync, chmodSync, writeFileSync } from 'fs';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
5
|
-
import { sanitizeTerminal } from './chunk-
|
|
3
|
+
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-HQMSXIDX.js';
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-7TM2E4RI.js';
|
|
5
|
+
import { sanitizeTerminal } from './chunk-2DVQHK37.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-OPGF3FUY.js';
|
|
8
8
|
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
|
|
11
|
-
import { parseProofsConfig } from './chunk-
|
|
12
|
-
import { resolveRepoIdentity } from './chunk-
|
|
13
|
-
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, parseJunit, isTestSourcePath } from './chunk-
|
|
11
|
+
import { parseProofsConfig } from './chunk-OKELGJNN.js';
|
|
12
|
+
import { resolveRepoIdentity } from './chunk-N2QYP3NQ.js';
|
|
13
|
+
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, parseJunit, isTestSourcePath } from './chunk-HE53NIRE.js';
|
|
14
14
|
import { spawnSync } from 'child_process';
|
|
15
15
|
import { createHash } from 'crypto';
|
|
16
16
|
import { readFileSync, readdirSync, lstatSync, statSync, existsSync } from 'fs';
|
|
@@ -129,14 +129,14 @@ function governingDir(cwd) {
|
|
|
129
129
|
async function testProofMode(cwd) {
|
|
130
130
|
const dir = governingDir(cwd);
|
|
131
131
|
if (dir === void 0) return "any";
|
|
132
|
-
const { testProofIn } = await import('./host-checks-
|
|
132
|
+
const { testProofIn } = await import('./host-checks-CSAVTTJ5.js');
|
|
133
133
|
return testProofIn(dir);
|
|
134
134
|
}
|
|
135
135
|
async function judgeCheckName(cwd) {
|
|
136
136
|
const dir = governingDir(cwd);
|
|
137
137
|
if (dir === void 0) return {};
|
|
138
138
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
139
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
139
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-CSAVTTJ5.js');
|
|
140
140
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
141
141
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
142
142
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -372,7 +372,7 @@ async function runWorkProofs(opts) {
|
|
|
372
372
|
async function runWorkProofsCommand(opts) {
|
|
373
373
|
try {
|
|
374
374
|
if (opts.record) {
|
|
375
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
375
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-PWYMY3XW.js');
|
|
376
376
|
const result2 = await runWorkProofsRecord(opts);
|
|
377
377
|
process.exitCode = result2.exitCode;
|
|
378
378
|
return;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RemovedTargetError, removedTargetError } from './chunk-
|
|
4
|
-
import { removeRetiredSkills } from './chunk-
|
|
5
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
6
|
-
import { withTokenHeader } from './chunk-
|
|
3
|
+
import { RemovedTargetError, removedTargetError } from './chunk-PM4YDVAX.js';
|
|
4
|
+
import { removeRetiredSkills } from './chunk-UCDCPQXU.js';
|
|
5
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-OPGF3FUY.js';
|
|
6
|
+
import { withTokenHeader } from './chunk-QP6SPQU5.js';
|
|
7
7
|
import { appendContextProvenance } from './chunk-545P7JY7.js';
|
|
8
8
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
9
9
|
import { writeDegraded, writeSourceCache, SOURCE_CACHE_TTL_RETRY_MS, writeContextManifest, SOURCE_CACHE_TTL_SUCCESS_MS, readSourceCache, isSourceCacheFresh, clearDegraded } from './chunk-YQR6E6OV.js';
|
|
10
|
-
import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-
|
|
10
|
+
import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-OKELGJNN.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
13
13
|
import { existsSync, mkdirSync, writeFileSync, chmodSync, lstatSync, readFileSync, copyFileSync } from 'fs';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runEmit } from './chunk-
|
|
4
|
-
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-
|
|
5
|
-
import { installStarterPack } from './chunk-
|
|
6
|
-
import { listWithAnd } from './chunk-
|
|
7
|
-
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-
|
|
3
|
+
import { runEmit } from './chunk-2XEQCSCQ.js';
|
|
4
|
+
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-ZWWU7COR.js';
|
|
5
|
+
import { installStarterPack } from './chunk-HGWDBTQ3.js';
|
|
6
|
+
import { listWithAnd } from './chunk-KFHF3GBH.js';
|
|
7
|
+
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-Q6ANHBJK.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGitCommonDir, defaultGitRunner } from './chunk-
|
|
9
|
+
import { resolveGitCommonDir, defaultGitRunner } from './chunk-JAURZKSE.js';
|
|
10
10
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
|
-
import { linkedAgentsPath } from './chunk-
|
|
11
|
+
import { linkedAgentsPath } from './chunk-TNAUQADA.js';
|
|
12
12
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
13
|
-
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-
|
|
13
|
+
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-OKELGJNN.js';
|
|
14
14
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
15
15
|
import { execFileSync } from 'child_process';
|
|
16
16
|
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
@@ -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-OKELGJNN.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,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
4
|
-
import { UNIT_MARKER } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-IEKXNDKX.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-4K2EMRJP.js';
|
|
5
|
+
import { runnerDir } from './chunk-LO3PSFNT.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
|
|
@@ -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-2DVQHK37.js';
|
|
4
|
+
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-Q6ANHBJK.js';
|
|
5
|
+
import { DEFAULT_DASHBOARD } from './chunk-IJ4DF5QS.js';
|
|
6
|
+
import { cliFetch, resolveGatewayCredentials } from './chunk-OPGF3FUY.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-OKELGJNN.js';
|
|
11
|
+
import { remoteLookupFailed } from './chunk-N2QYP3NQ.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
13
13
|
import { lstatSync } from 'fs';
|
|
14
14
|
import { join, relative } from 'path';
|
|
@@ -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-OKELGJNN.js';
|
|
4
4
|
import { openSync, fstatSync, readSync, closeSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -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-LOG4LBUY.js';
|
|
4
|
+
import { parseSize } from './chunk-2J3X2Z4F.js';
|
|
5
|
+
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-QP6SPQU5.js';
|
|
6
|
+
import { builderDiskPinned } from './chunk-GTKR2YEZ.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';
|