@outerlayer/cli 0.40.0-next.20261117034333 → 0.40.0-next.20261117043041
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 +5 -1
- package/dist/agent-setup-4J2JL5EB.js +41 -0
- package/dist/{agent-subcommand-MW4TF4SG.js → agent-subcommand-64YO6FE4.js} +4 -4
- package/dist/{artifact-link-cmd-XUHNVFVU.js → artifact-link-cmd-HYEM4X5U.js} +2 -2
- package/dist/{bridge-WEK2IMAD.js → bridge-H72K6N7O.js} +7 -7
- package/dist/{build-LJSUCORB.js → build-PBQIJPCC.js} +13 -13
- package/dist/{build-disk-S2XHWSDH.js → build-disk-3COAKTPF.js} +11 -11
- package/dist/build-info.json +1 -1
- package/dist/{builder-TCRJKB2W.js → builder-GOJQQOIV.js} +10 -10
- package/dist/caller-BZBHMIA2.js +23 -0
- package/dist/{check-Z6GAY2C4.js → check-TRV42MHY.js} +55 -55
- package/dist/{chunk-ZQTMWBLA.js → chunk-2L2LLHQW.js} +1 -1
- package/dist/{chunk-PB4QDL6Q.js → chunk-3FZXSMIL.js} +4 -4
- package/dist/{chunk-4FTRLX6A.js → chunk-3RG2ZR3J.js} +5 -5
- package/dist/{chunk-ABY722KN.js → chunk-3TEE7JVW.js} +1 -1
- package/dist/{chunk-7QIQ7QR3.js → chunk-52CTFVXD.js} +1 -1
- package/dist/{chunk-BZFRU6M7.js → chunk-6FWHB4TW.js} +8 -8
- package/dist/{chunk-CH3PO7UY.js → chunk-6IGOHB3O.js} +3 -2
- package/dist/{chunk-BEK2BZAI.js → chunk-7CK4Z6VC.js} +6 -6
- package/dist/{chunk-NWWED36F.js → chunk-7QDRLTFW.js} +1 -1
- package/dist/{chunk-TZNIDZGI.js → chunk-AAGXH2FR.js} +1 -1
- package/dist/{chunk-UUVURKWB.js → chunk-ATK2MNGU.js} +4 -4
- package/dist/{chunk-3ETI7MKK.js → chunk-BIBHD4KJ.js} +4 -4
- package/dist/{chunk-GQI5N56J.js → chunk-BIXO533I.js} +2 -2
- package/dist/{chunk-V77IQKWK.js → chunk-BVKLR7GA.js} +17 -17
- package/dist/{chunk-TTBG7YZW.js → chunk-CKS7B2ZJ.js} +7 -7
- package/dist/{chunk-KCLFDN26.js → chunk-CZYUSXAR.js} +3 -3
- package/dist/{chunk-D2QNQOFX.js → chunk-D3PPI7I4.js} +1 -1
- package/dist/{chunk-3PXV4I75.js → chunk-DMW22UQE.js} +3 -3
- package/dist/{chunk-RUSF2YGL.js → chunk-EBSN6K35.js} +6 -6
- package/dist/{chunk-MBOQJTOS.js → chunk-FBFYIEHC.js} +4 -4
- package/dist/{chunk-H6L6SWMN.js → chunk-FRQLJUID.js} +2 -2
- package/dist/{chunk-H4JQKCVP.js → chunk-FUNAQRMN.js} +9 -9
- package/dist/{chunk-5EWESACE.js → chunk-FYL2RFHI.js} +3 -3
- package/dist/{chunk-PZZS6DHY.js → chunk-G2KLJMPR.js} +8 -8
- package/dist/{chunk-K6THWLSJ.js → chunk-H37HSQGH.js} +1 -1
- package/dist/{chunk-UFGV3JZ5.js → chunk-H73CCPAW.js} +1 -1
- package/dist/{chunk-FLHDVJAV.js → chunk-H7BNWYIA.js} +5 -5
- package/dist/{chunk-EBWA6KIE.js → chunk-HHOFP647.js} +1 -1
- package/dist/{chunk-AGKUDDIN.js → chunk-HQEPFG5U.js} +1 -1
- package/dist/{chunk-WEPLWKV6.js → chunk-I6PDJEYQ.js} +3 -3
- package/dist/{chunk-D3CALDGC.js → chunk-IHMGZWOB.js} +1 -1
- package/dist/{chunk-ABXHYH2Y.js → chunk-ISTSELPU.js} +6 -6
- package/dist/{chunk-CNMC4OXO.js → chunk-IXHMDBXY.js} +7 -7
- package/dist/{chunk-F4PRZBBJ.js → chunk-J4EPJMU6.js} +2 -2
- package/dist/{chunk-33RKRHJG.js → chunk-J7UWKTRV.js} +1 -1
- package/dist/{chunk-HI6R4XYD.js → chunk-JMQDGBAF.js} +2 -2
- package/dist/{chunk-HSGZ4JEV.js → chunk-K3IO22FH.js} +1 -1
- package/dist/{chunk-PHC24VUU.js → chunk-KPCGSGZS.js} +5 -5
- package/dist/{chunk-X6BGCNE3.js → chunk-KZEZBZ4W.js} +8 -8
- package/dist/{chunk-EU6JHHES.js → chunk-LDTLGJ5F.js} +247 -61
- package/dist/{chunk-ZASDJ7F5.js → chunk-MAWSNLSZ.js} +4 -4
- package/dist/{chunk-GBLNHZ3E.js → chunk-MN73QQDA.js} +4 -4
- package/dist/{chunk-LYHR47YE.js → chunk-O2JKZTP3.js} +2 -2
- package/dist/{chunk-AH2BO6Q6.js → chunk-OA2KHMXX.js} +6 -6
- package/dist/{chunk-ZYIVNB6B.js → chunk-PC6BJDBE.js} +4 -4
- package/dist/{chunk-6NODVJGM.js → chunk-PIP32M2V.js} +3 -3
- package/dist/{chunk-WZ6K327V.js → chunk-PKYJMXRB.js} +8 -8
- package/dist/{chunk-CW6H5JXV.js → chunk-PVDIDOKH.js} +40 -9
- package/dist/{chunk-QJI56HI2.js → chunk-QJ3AJNRP.js} +7 -7
- package/dist/{chunk-V6UDJVVD.js → chunk-QKMVEQXO.js} +3 -3
- package/dist/{chunk-FG2E3HES.js → chunk-QMC2MM2S.js} +1 -1
- package/dist/{chunk-6ZBUQIJA.js → chunk-QMOE5Y4X.js} +1 -1
- package/dist/{chunk-P7OXJ3ZD.js → chunk-RC5WWCUS.js} +5 -5
- package/dist/{chunk-MG2Y5XYV.js → chunk-RZSGNO7S.js} +30 -30
- package/dist/{chunk-MEZVLRJK.js → chunk-SLZSJRLS.js} +10 -10
- package/dist/{chunk-UE42G3QY.js → chunk-SS3SQYDS.js} +1 -1
- package/dist/{chunk-SK4BESZM.js → chunk-SSVM6C5N.js} +1 -1
- package/dist/{chunk-UN7RXMOB.js → chunk-T4SVE4O4.js} +4 -4
- package/dist/{chunk-I7ZQKMKG.js → chunk-TPLMLNME.js} +1 -1
- package/dist/{chunk-VG6FUXGK.js → chunk-UAGUV74T.js} +1 -1
- package/dist/{chunk-7PIUTUXI.js → chunk-ULI64TQ5.js} +3 -3
- package/dist/{chunk-KDVQGQXM.js → chunk-V56S4A34.js} +1 -1
- package/dist/{chunk-S4CX66JO.js → chunk-V65YF5VP.js} +1 -1
- package/dist/{chunk-5O7P6VXS.js → chunk-VEW4BPVJ.js} +1 -1
- package/dist/{chunk-6QXGAGQY.js → chunk-VH7P6XUP.js} +1 -1
- package/dist/{chunk-6GJMRVMX.js → chunk-VUSPSY6N.js} +1 -1
- package/dist/{chunk-ZIN6G7DS.js → chunk-WAI7EGGE.js} +1 -1
- package/dist/{chunk-H2THCHUP.js → chunk-WHIAOWEN.js} +1 -1
- package/dist/{chunk-F6J3ACXH.js → chunk-XVE7HD6X.js} +6 -6
- package/dist/{chunk-YICV7DAE.js → chunk-XVTDFLRQ.js} +3 -3
- package/dist/{chunk-IQYAPM4S.js → chunk-Y73IIGAU.js} +7 -7
- package/dist/{chunk-33DTLCL6.js → chunk-YAB2SVSI.js} +2 -2
- package/dist/{chunk-UAZBE4O3.js → chunk-YOQ3GBJK.js} +10 -10
- package/dist/{chunk-2QFZBWBP.js → chunk-YVLGGDYK.js} +1 -1
- package/dist/{chunk-XT6LWXJ2.js → chunk-ZHXBFXG2.js} +1 -1
- package/dist/{claude-launcher-HWC5S5HD.js → claude-launcher-43RD6G3Y.js} +7 -7
- package/dist/{cli-TWF7CU3E.js → cli-DRPVOAEG.js} +169 -169
- package/dist/{command-KGYVPB7B.js → command-FMNZSGIX.js} +52 -52
- package/dist/{config-J4VSNOH4.js → config-OJTLS62B.js} +12 -12
- package/dist/{connect-cmd-LPC6J27D.js → connect-cmd-L5KO3U67.js} +13 -13
- package/dist/{container-start-O6BAIQGT.js → container-start-OPQZF4LH.js} +49 -49
- package/dist/{context-cleanup-VWJSWUJB.js → context-cleanup-REXSRAU6.js} +4 -4
- package/dist/{context-show-cmd-B427F3M4.js → context-show-cmd-DAVFJJHX.js} +14 -14
- package/dist/{control-plane-launch-WV253P7I.js → control-plane-launch-TARK67QP.js} +14 -14
- package/dist/{demo-record-cmd-YRND2HVT.js → demo-record-cmd-BRBXTCSL.js} +8 -8
- package/dist/{demo-voice-cmd-TUIXJ7CY.js → demo-voice-cmd-67ZE46PS.js} +20 -20
- package/dist/{dist-UV2JOW3N.js → dist-3AH72O53.js} +2 -2
- package/dist/{docker-6NO5B657.js → docker-FEOTGBDS.js} +10 -10
- package/dist/{doctor-V3Z5CR5Q.js → doctor-22YI6EJN.js} +51 -51
- package/dist/{emit-artifact-cmd-MWDEBRB2.js → emit-artifact-cmd-ZDQ5PPRN.js} +19 -19
- package/dist/{emit-cmd-2ADJWBJP.js → emit-cmd-MY3TTOV7.js} +7 -7
- package/dist/{emit-criteria-cmd-35O7KR37.js → emit-criteria-cmd-SED3RVYR.js} +16 -16
- package/dist/{emit-demo-cmd-HJCW3JEA.js → emit-demo-cmd-VBHIORA3.js} +20 -20
- package/dist/{emit-finding-cmd-Q4SN3OA7.js → emit-finding-cmd-NQRNWPFW.js} +16 -16
- package/dist/{emit-result-cmd-7VEMDT2P.js → emit-result-cmd-CA3FQUGR.js} +18 -18
- package/dist/{emit-step-cmd-DYQM5OQA.js → emit-step-cmd-EZQD56H5.js} +16 -16
- package/dist/{exec-client-6WGSNY56.js → exec-client-JEOB57LW.js} +8 -8
- package/dist/{find-unit-6BX4K4WV.js → find-unit-HJRHPB3Y.js} +13 -13
- package/dist/{findings-cmd-WHQBJZNA.js → findings-cmd-4HKGMYM7.js} +16 -16
- package/dist/{fleet-readiness-A67D5OP4.js → fleet-readiness-SPPQPJZI.js} +14 -14
- package/dist/{governing-source-C4BMFNFZ.js → governing-source-URY2L5EI.js} +21 -21
- package/dist/{guest-init-ZWEJGXQS.js → guest-init-KXWFAIS5.js} +9 -9
- package/dist/{hook-fast-SZ5L3ZJK.js → hook-fast-3EMC5BR5.js} +1 -1
- package/dist/{hook-install-63GJ3OUI.js → hook-install-2S7NZOBO.js} +4 -4
- package/dist/host-checks-MVOAIBQA.js +82 -0
- package/dist/host-key-JGKWDEN7.js +18 -0
- package/dist/{image-tag-6HQDPX45.js → image-tag-DJ2DYY75.js} +8 -8
- package/dist/index.js +4 -4
- package/dist/{init-KOG5S5KX.js → init-F6XEU4VR.js} +47 -47
- package/dist/init-JEXSFOFP.js +82 -0
- package/dist/{init-agent-XIDQULDZ.js → init-agent-BLC6ART6.js} +47 -47
- package/dist/init-cmd-ISFN4IXL.js +53 -0
- package/dist/{init-update-7SBDG65Z.js → init-update-2PHTQUR6.js} +24 -24
- package/dist/install-cmd-2SO5XQMZ.js +26 -0
- package/dist/launch-agent-ZCE2MKWW.js +26 -0
- package/dist/{layout-2MIQCJ3U.js → layout-4GFI5FUZ.js} +4 -4
- package/dist/{login-browser-ZYWUIEOQ.js → login-browser-G3NBTYT6.js} +2 -2
- package/dist/{logs-SP6RPVCP.js → logs-IGY3Z45I.js} +7 -7
- package/dist/loop-A3LCREAQ.js +92 -0
- package/dist/machine-P5OCN6FJ.js +82 -0
- package/dist/{machine-skills-UYWZXOZI.js → machine-skills-FJPUFZ7N.js} +4 -4
- package/dist/{mcp-install-cmd-U2SEWH66.js → mcp-install-cmd-DWN6GODI.js} +4 -4
- package/dist/{mcp-serve-cmd-VAQL3CJB.js → mcp-serve-cmd-3ACPN3DK.js} +9 -9
- package/dist/{paths-G7LFPGQQ.js → paths-KPYCKVEO.js} +7 -7
- package/dist/pending-LR3J3B32.js +18 -0
- package/dist/{pidfile-FIVR2HKB.js → pidfile-2TYTTJAD.js} +8 -8
- package/dist/{record-K3I7V46A.js → record-SXQN3F2G.js} +8 -8
- package/dist/{relay-AQBBQJ5I.js → relay-XUWU6YJA.js} +5 -5
- package/dist/{relay-protocol-XZ7WESQL.js → relay-protocol-2ELEUOSS.js} +5 -5
- package/dist/{run-cmd-BRUSQKEA.js → run-cmd-ZC6H5JMT.js} +16 -16
- package/dist/{runner-agents-KF6EECFW.js → runner-agents-RKBGYF6D.js} +4 -4
- package/dist/runner-env-7AZQ443N.js +24 -0
- package/dist/{runner-identity-JM3ZQ2PJ.js → runner-identity-IA53MENM.js} +10 -10
- package/dist/{runner-key-P6FUFO6Y.js → runner-key-K6SJMQ6I.js} +47 -47
- package/dist/{session-sender-N3U3ZTL3.js → session-sender-HUD6KDQS.js} +19 -19
- package/dist/{setup-cmd-F7Y4SFTK.js → setup-cmd-6BBZWFJX.js} +14 -14
- package/dist/{setup-wiring-LU6AY2QA.js → setup-wiring-AE2RFMC4.js} +54 -54
- package/dist/{spec-cmd-ZNXNMAYA.js → spec-cmd-VKL4K2QQ.js} +17 -17
- package/dist/{starter-pack-NEQLRMTX.js → starter-pack-ETRBBABF.js} +5 -5
- package/dist/state-5QGIGKBB.js +18 -0
- package/dist/{status-N326EK5I.js → status-TJWQ5EIM.js} +47 -47
- package/dist/{sync-cmd-KG7YQGM6.js → sync-cmd-EPN6VJ4R.js} +18 -18
- package/dist/update-steps-RDYVUTKN.js +83 -0
- package/dist/{watch-3VJ363V2.js → watch-YSSMGF7F.js} +18 -18
- package/dist/{work-claim-cmd-MXWB5NG6.js → work-claim-cmd-TV4TJNBE.js} +23 -23
- package/dist/{work-cmd-X55AAJG2.js → work-cmd-VWXZLMF4.js} +16 -16
- package/dist/{work-comment-cmd-7AL5KEVJ.js → work-comment-cmd-A6OMDNWD.js} +18 -18
- package/dist/{work-demo-cmd-6UFGGEMI.js → work-demo-cmd-RO2MNERR.js} +16 -16
- package/dist/{work-logs-cmd-DCAV3J7A.js → work-logs-cmd-FNVY6PFY.js} +16 -16
- package/dist/{work-mock-cmd-O7KFTS65.js → work-mock-cmd-AC2Z3W7V.js} +16 -16
- package/dist/{work-needs-attention-cmd-OD5PTHLX.js → work-needs-attention-cmd-2IEXGHHV.js} +16 -16
- package/dist/{work-no-change-cmd-ABYXIOZT.js → work-no-change-cmd-VN5YDUZZ.js} +16 -16
- package/dist/{work-open-pr-cmd-WRFHZXVM.js → work-open-pr-cmd-GX3AEJMQ.js} +17 -17
- package/dist/{work-pr-cmd-VEH4HP7P.js → work-pr-cmd-PU7YFJDD.js} +16 -16
- package/dist/{work-proofs-cmd-TKA3J2II.js → work-proofs-cmd-XOIAKWF2.js} +18 -18
- package/dist/{work-proofs-record-WTBSJLET.js → work-proofs-record-7DEOYNST.js} +24 -24
- package/dist/{work-stop-cmd-WF7R6ILK.js → work-stop-cmd-4PKBXINK.js} +16 -16
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-review/SKILL.md +4 -1
- package/skill-pack/shipped.json +3 -0
- package/skill-pack/template/review/SKILL.md +14 -0
- package/dist/agent-setup-UU3NQZ3A.js +0 -41
- package/dist/caller-VJBDXZXG.js +0 -23
- package/dist/host-checks-SYD7WFUN.js +0 -82
- package/dist/host-key-AYXCAME4.js +0 -18
- package/dist/init-ULMPF7MK.js +0 -82
- package/dist/init-cmd-P7FYHTLS.js +0 -53
- package/dist/install-cmd-TWYZTNRV.js +0 -26
- package/dist/launch-agent-5MCXT6QN.js +0 -26
- package/dist/loop-OU2U7SUJ.js +0 -92
- package/dist/machine-NE34TJIO.js +0 -82
- package/dist/pending-OEAYMKZO.js +0 -18
- package/dist/runner-env-XAO7EBCK.js +0 -24
- package/dist/state-VXN7EX2K.js +0 -18
- package/dist/update-steps-YQQXESUZ.js +0 -83
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
3
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-AAGXH2FR.js';
|
|
4
4
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
5
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
6
|
-
import { renderUpdateSteps } from './chunk-
|
|
5
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-QJ3AJNRP.js';
|
|
6
|
+
import { renderUpdateSteps } from './chunk-ULI64TQ5.js';
|
|
7
7
|
import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
|
|
8
|
-
import { writeFleetState } from './chunk-
|
|
9
|
-
import { writePendingUpdate } from './chunk-
|
|
10
|
-
import { fleetConfigProblem, realBlockedProbes, checkBlockedWithSlots, askFleetMachine } from './chunk-
|
|
11
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-
|
|
12
|
-
import { leaseTimeLeftMs, createContainerRuntime, heldSandboxClaimsOf, unfinishedJobs, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, withJobTimeLimit, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, holdsHostDisk, removeOldestUntil, treeFileText,
|
|
13
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
14
|
-
import { criteriaOf, diffLines, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, parseJudgeAnswer, wholeEntries, treePath, lineInDiff } from './chunk-
|
|
15
|
-
import { RepoFilter } from './chunk-
|
|
8
|
+
import { writeFleetState } from './chunk-UAGUV74T.js';
|
|
9
|
+
import { writePendingUpdate } from './chunk-VEW4BPVJ.js';
|
|
10
|
+
import { fleetConfigProblem, realBlockedProbes, checkBlockedWithSlots, askFleetMachine } from './chunk-SLZSJRLS.js';
|
|
11
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-TPLMLNME.js';
|
|
12
|
+
import { leaseTimeLeftMs, createContainerRuntime, heldSandboxClaimsOf, unfinishedJobs, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, withJobTimeLimit, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, holdsHostDisk, removeOldestUntil, treeFileText, scrubReason, timeoutAfter, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-RZSGNO7S.js';
|
|
13
|
+
import { RUNNER_PROTOCOL } from './chunk-HHOFP647.js';
|
|
14
|
+
import { criteriaOf, diffLines, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, parseJudgeAnswer, wholeEntries, treePath, lineInDiff } from './chunk-FBFYIEHC.js';
|
|
15
|
+
import { RepoFilter } from './chunk-FUNAQRMN.js';
|
|
16
16
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
17
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
17
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-SS3SQYDS.js';
|
|
18
18
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
19
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-
|
|
20
|
-
import { fetchCommit, readBranchHead, diffBetween } from './chunk-
|
|
21
|
-
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-
|
|
19
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-JMQDGBAF.js';
|
|
20
|
+
import { fetchCommit, readBranchHead, diffBetween, readDefaultBranchFiles } from './chunk-PKYJMXRB.js';
|
|
21
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-VH7P6XUP.js';
|
|
22
22
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
23
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
24
|
-
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-
|
|
25
|
-
import { keyRunnerFactory, readsOnly, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-
|
|
26
|
-
import { formatBytes, freeBytes } from './chunk-
|
|
27
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, JUDGE_DIR, judgeCommand, JUDGE_MAX_TURNS } from './chunk-
|
|
28
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
29
|
-
import { jobsDir, RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, pidFilePath, storeScopes } from './chunk-
|
|
30
|
-
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-
|
|
31
|
-
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-
|
|
32
|
-
import { cleanAttachmentName } from './chunk-
|
|
33
|
-
import { jobAgent, jobCommandEnv, runnerAgents, judgeAgent } from './chunk-
|
|
34
|
-
import { defaultAgents, resolvePackRoot } from './chunk-
|
|
23
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock, readGovernedFiles } from './chunk-PVDIDOKH.js';
|
|
24
|
+
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-KZEZBZ4W.js';
|
|
25
|
+
import { keyRunnerFactory, readsOnly, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-MAWSNLSZ.js';
|
|
26
|
+
import { formatBytes, freeBytes } from './chunk-YAB2SVSI.js';
|
|
27
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, JUDGE_DIR, judgeCommand, JUDGE_MAX_TURNS } from './chunk-G2KLJMPR.js';
|
|
28
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-QMOE5Y4X.js';
|
|
29
|
+
import { jobsDir, RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, pidFilePath, storeScopes } from './chunk-WHIAOWEN.js';
|
|
30
|
+
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-PC6BJDBE.js';
|
|
31
|
+
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-BIXO533I.js';
|
|
32
|
+
import { cleanAttachmentName } from './chunk-PIP32M2V.js';
|
|
33
|
+
import { jobAgent, jobCommandEnv, runnerAgents, judgeAgent } from './chunk-52CTFVXD.js';
|
|
34
|
+
import { defaultAgents, resolvePackRoot } from './chunk-FYL2RFHI.js';
|
|
35
35
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
36
|
-
import { CheckItemsSchema, CODE_REVIEW_NAME, CHECK_ITEM_HREF_MAX_LENGTH, CHECK_ITEM_REASON_MAX_LENGTH, UNREVIEWED_FILES_ITEM_ID, problemKind, CODE_REVIEW_PROBLEMS_MAX, REVIEWED_COMMIT_ITEM_ID, PROBLEM_KINDS, problemSeverity } from './chunk-
|
|
36
|
+
import { CheckItemsSchema, CODE_REVIEW_NAME, CHECK_ITEM_HREF_MAX_LENGTH, CHECK_ITEM_REASON_MAX_LENGTH, UNREVIEWED_FILES_ITEM_ID, problemKind, CODE_REVIEW_PROBLEMS_MAX, TEAM_RULES_ITEM_ID, REVIEWED_COMMIT_ITEM_ID, PROBLEM_KINDS, problemSeverity } from './chunk-6IGOHB3O.js';
|
|
37
37
|
import { randomBytes, createHash } from 'crypto';
|
|
38
38
|
import { mkdirSync, existsSync, writeFileSync, chmodSync, renameSync, statSync, readdirSync, rmSync, readFileSync, lstatSync, closeSync } from 'fs';
|
|
39
39
|
import { totalmem, userInfo, constants } from 'os';
|
|
@@ -1379,7 +1379,7 @@ function mergeAnswers(answers) {
|
|
|
1379
1379
|
items.push(kept);
|
|
1380
1380
|
continue;
|
|
1381
1381
|
}
|
|
1382
|
-
if (entry.reviewer !== void 0 && !
|
|
1382
|
+
if (entry.reviewer !== void 0 && !held.foundBy?.includes(entry.reviewer)) held.foundBy = [...held.foundBy ?? [], entry.reviewer];
|
|
1383
1383
|
}
|
|
1384
1384
|
for (const [key, entry] of own) if (!earlier.has(key)) earlier.set(key, entry);
|
|
1385
1385
|
}
|
|
@@ -1463,24 +1463,27 @@ function shouldConsolidate(reviewers, fresh) {
|
|
|
1463
1463
|
if (fresh === 0) return false;
|
|
1464
1464
|
return reviewers > 1 || fresh > 1;
|
|
1465
1465
|
}
|
|
1466
|
-
|
|
1467
|
-
|
|
1466
|
+
function keyAt(index) {
|
|
1467
|
+
return `p${index + 1}`;
|
|
1468
|
+
}
|
|
1469
|
+
function finders(entry) {
|
|
1470
|
+
return entry.foundBy ?? (entry.reviewer === void 0 ? [] : [entry.reviewer]);
|
|
1471
|
+
}
|
|
1468
1472
|
function consolidationInput(fresh, reviewers) {
|
|
1469
1473
|
const problems = fresh.map((entry, index) => ({
|
|
1470
1474
|
key: keyAt(index),
|
|
1471
1475
|
reviewers: finders(entry),
|
|
1472
1476
|
id: entry.id,
|
|
1473
1477
|
kind: entry.kind ?? "bug",
|
|
1474
|
-
|
|
1475
|
-
|
|
1478
|
+
title: entry.title,
|
|
1479
|
+
reason: entry.reason,
|
|
1476
1480
|
refs: entry.refs ?? []
|
|
1477
1481
|
}));
|
|
1478
1482
|
return `${JSON.stringify({ reviewers, problems }, null, 2)}
|
|
1479
1483
|
`;
|
|
1480
1484
|
}
|
|
1481
|
-
var RULES = ["What the review covers", "What is a problem", "What is never a problem", "Repository text"];
|
|
1482
1485
|
function consolidationBrief(consolidation, brief) {
|
|
1483
|
-
const rules =
|
|
1486
|
+
const rules = ["What the review covers", "What is a problem", "What is never a problem", "Repository text"].flatMap((heading) => {
|
|
1484
1487
|
const body = markdownSection(brief, heading);
|
|
1485
1488
|
return body === void 0 ? [] : [`## ${heading}
|
|
1486
1489
|
|
|
@@ -1488,14 +1491,16 @@ ${body}`];
|
|
|
1488
1491
|
});
|
|
1489
1492
|
return [consolidation.trimEnd(), ...rules.length === 0 ? [] : ["# The rules of the review", ...rules]].join("\n\n");
|
|
1490
1493
|
}
|
|
1491
|
-
function consolidationProtocol(instructions, answer) {
|
|
1494
|
+
function consolidationProtocol(instructions, answer, teamRules = false) {
|
|
1495
|
+
const kinds = `"bug"|"security"|"data"|"test"|"docs"|"comment"${teamRules ? '|"rule"' : ""}`;
|
|
1496
|
+
const ruleKind = teamRules ? " A problem that only one of this repository's rules makes a problem keeps the kind `rule`. It is in scope, so never drop it as `out-of-scope`. Its `trigger` is what the change does, and its `result` names the rule that the change breaks." : "";
|
|
1492
1497
|
return `${instructions.trimEnd()}
|
|
1493
1498
|
|
|
1494
1499
|
## How to answer
|
|
1495
1500
|
|
|
1496
1501
|
This section comes from the factory host and overrides any other answer format above. \`${JUDGE_DIR}/${CONSOLIDATION_INPUT}\` lists the new problems, each under a \`key\`. \`${JUDGE_DIR}/files.md\` lists the changed files, the \`diff-<n>.patch\` files hold the change and \`${JUDGE_TREE}/\` the files of the commit under review.
|
|
1497
1502
|
|
|
1498
|
-
Write your answer as JSON to \`${answer}\`: \`{"problems":[{"from":["<key>"],"id":"<a short name>","kind"
|
|
1503
|
+
Write your answer as JSON to \`${answer}\`: \`{"problems":[{"from":["<key>"],"id":"<a short name>","kind":${kinds},"severity":"blocking"|"advisory","title":"<a short name>","reason":"<one to three sentences>","trigger":"<the input or state that triggers it>","result":"<the wrong result>","changed":{"path":"<changed file>","line":<the changed line that adds or causes it>},"refs":[{"path":"<path relative to ${JUDGE_TREE}/>","line":<the line in the commit>}]}],"dropped":[{"key":"<key>","why":"duplicate"|"out-of-scope"|"not-shown"|"wrong","of":"<key it repeats, for a duplicate>","reason":"<one sentence>"}]}\`. \`from\` lists every key the kept problem joins. Give each key once: in the \`from\` of one kept problem, or in \`dropped\`. Never keep a problem that no key names. The host drops a kept problem with no \`trigger\`, \`result\` or \`changed\` line of the change.${ruleKind}
|
|
1499
1504
|
`;
|
|
1500
1505
|
}
|
|
1501
1506
|
function knownPlaces(raw, known) {
|
|
@@ -1503,10 +1508,12 @@ function knownPlaces(raw, known) {
|
|
|
1503
1508
|
return raw.flatMap((entry) => {
|
|
1504
1509
|
const { path, line } = typeof entry === "object" && entry !== null ? entry : {};
|
|
1505
1510
|
if (typeof path !== "string" || path === "" || path.length > 1024 || !known(path)) return [];
|
|
1506
|
-
return [{ path, ...
|
|
1511
|
+
return [{ path, ...Number.isInteger(line) && line > 0 ? { line } : {} }];
|
|
1507
1512
|
});
|
|
1508
1513
|
}
|
|
1509
|
-
|
|
1514
|
+
function text(raw, max) {
|
|
1515
|
+
return typeof raw === "string" && raw.trim() !== "" && raw.length <= max ? raw : void 0;
|
|
1516
|
+
}
|
|
1510
1517
|
function severityOf(kind, lowered) {
|
|
1511
1518
|
if (kind === "test" || kind === "docs" || kind === "comment") return "advisory";
|
|
1512
1519
|
if (kind === "security" || kind === "data") return "blocking";
|
|
@@ -1514,7 +1521,7 @@ function severityOf(kind, lowered) {
|
|
|
1514
1521
|
}
|
|
1515
1522
|
function shown(said, inChange) {
|
|
1516
1523
|
const changed = Object(said.changed);
|
|
1517
|
-
const placed = typeof changed.path === "string" &&
|
|
1524
|
+
const placed = typeof changed.path === "string" && Number.isInteger(changed.line) && changed.line > 0 && inChange(changed.path, changed.line);
|
|
1518
1525
|
return placed && text(said.trigger, 2e3) !== void 0 && text(said.result, 2e3) !== void 0;
|
|
1519
1526
|
}
|
|
1520
1527
|
var UNSHOWN_REASON = "The consolidator kept it without naming the trigger, the wrong result and a changed line.";
|
|
@@ -1536,7 +1543,7 @@ function readConsolidation(raw, fresh, known, inChange) {
|
|
|
1536
1543
|
const droppedKeys = /* @__PURE__ */ new Set();
|
|
1537
1544
|
for (const [index, item] of answer.problems.entries()) {
|
|
1538
1545
|
const said = Object(item);
|
|
1539
|
-
const keys =
|
|
1546
|
+
const keys = Array.isArray(said.from) ? said.from.map(String).filter((key) => sources.has(key) && !used.has(key)) : [];
|
|
1540
1547
|
if (keys.length === 0) {
|
|
1541
1548
|
notes.push(`problem ${index + 1} of the answer names no reported problem, so it is ignored`);
|
|
1542
1549
|
continue;
|
|
@@ -1568,13 +1575,13 @@ function readConsolidation(raw, fresh, known, inChange) {
|
|
|
1568
1575
|
}
|
|
1569
1576
|
});
|
|
1570
1577
|
}
|
|
1571
|
-
const keptKey = (key) => kept.find((problem) => problem.keys.
|
|
1578
|
+
const keptKey = (key) => kept.find((problem) => problem.keys.some((held) => held === key));
|
|
1572
1579
|
const drops = Array.isArray(answer.dropped) ? answer.dropped : [];
|
|
1573
1580
|
const ordered = [...drops.filter((drop) => Object(drop).why !== "duplicate"), ...drops.filter((drop) => Object(drop).why === "duplicate")];
|
|
1574
1581
|
for (const drop of ordered) {
|
|
1575
1582
|
const said = Object(drop);
|
|
1576
|
-
const key = said.key;
|
|
1577
|
-
if (
|
|
1583
|
+
const key = String(said.key);
|
|
1584
|
+
if (!sources.has(key) || used.has(key)) continue;
|
|
1578
1585
|
if (!DROP_REASONS.includes(said.why)) {
|
|
1579
1586
|
notes.push(`the drop of ${key} gives no known reason, so ${key} is kept`);
|
|
1580
1587
|
continue;
|
|
@@ -1582,8 +1589,8 @@ function readConsolidation(raw, fresh, known, inChange) {
|
|
|
1582
1589
|
const why = said.why;
|
|
1583
1590
|
const of = typeof said.of === "string" ? said.of : void 0;
|
|
1584
1591
|
if (why === "duplicate") {
|
|
1585
|
-
const target =
|
|
1586
|
-
if (target === void 0 &&
|
|
1592
|
+
const target = keptKey(of);
|
|
1593
|
+
if (target === void 0 && !droppedKeys.has(of)) {
|
|
1587
1594
|
notes.push(`${key} is called a duplicate of ${of ?? "nothing"}, which is no kept or dropped problem, so ${key} is kept`);
|
|
1588
1595
|
continue;
|
|
1589
1596
|
}
|
|
@@ -1665,6 +1672,11 @@ function reviewRecord(input) {
|
|
|
1665
1672
|
// src/runner/code-review-report.ts
|
|
1666
1673
|
var REPORT_RETRY_WINDOW_MS = 2e4;
|
|
1667
1674
|
var MAX_REASON_LENGTH = 2e3;
|
|
1675
|
+
function withoutRuleKind(report) {
|
|
1676
|
+
if (report.result !== "reviewed" || report.review === void 0) return void 0;
|
|
1677
|
+
if (!report.review.problems.some((problem) => problem.kind === "rule")) return void 0;
|
|
1678
|
+
return { ...report, review: { ...report.review, problems: report.review.problems.map((problem) => problem.kind === "rule" ? { ...problem, kind: "bug" } : problem) } };
|
|
1679
|
+
}
|
|
1668
1680
|
async function reportCodeReview(config, job, report, deps) {
|
|
1669
1681
|
if (job.queue !== "review") return;
|
|
1670
1682
|
const tag = itemTag(job);
|
|
@@ -1673,12 +1685,22 @@ async function reportCodeReview(config, job, report, deps) {
|
|
|
1673
1685
|
const item = claimItem(config, job);
|
|
1674
1686
|
const body = report.result === "failed" ? { ...report, runnerReason: report.runnerReason.slice(0, MAX_REASON_LENGTH) } : report;
|
|
1675
1687
|
const signer = await signerFor(calls.configPath);
|
|
1676
|
-
const
|
|
1688
|
+
const send = (payload) => retrySend(() => postJson(calls.url, `/v1/work-items/${item}/claim/code-review`, calls.apiKey, calls.appId, payload, deps.fetchImpl, void 0, signer), {
|
|
1677
1689
|
now: deps.now,
|
|
1678
1690
|
sleep: deps.sleep,
|
|
1679
1691
|
windowMs: REPORT_RETRY_WINDOW_MS
|
|
1680
1692
|
});
|
|
1681
|
-
|
|
1693
|
+
const sent = await send(body);
|
|
1694
|
+
if (sent.ok) return;
|
|
1695
|
+
const older = sent.retryable ? void 0 : withoutRuleKind(body);
|
|
1696
|
+
if (older !== void 0) {
|
|
1697
|
+
const again = await send(older);
|
|
1698
|
+
if (again.ok) {
|
|
1699
|
+
deps.log.line(`${tag} the gateway refused the code review's report, and took it with each team rule problem as a bug: ${sent.reason}`);
|
|
1700
|
+
return;
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
deps.log.line(`${tag} the code review's report was not recorded: ${sent.reason}`);
|
|
1682
1704
|
} catch (err) {
|
|
1683
1705
|
deps.log.line(`${tag} the code review's report was not sent: ${describeCallFailure(err)}`);
|
|
1684
1706
|
}
|
|
@@ -1694,7 +1716,8 @@ function readStoredProblems(data) {
|
|
|
1694
1716
|
{
|
|
1695
1717
|
id: row.id,
|
|
1696
1718
|
status: row.status,
|
|
1697
|
-
kind
|
|
1719
|
+
// A gateway gives a problem of kind `rule` as a bug with `teamRule` set, for a runner that predates the kind.
|
|
1720
|
+
kind: row.teamRule === true ? "rule" : problemKind(row.kind),
|
|
1698
1721
|
title: typeof row.title === "string" ? row.title : "",
|
|
1699
1722
|
reason: typeof row.reason === "string" ? row.reason : "",
|
|
1700
1723
|
path: typeof row.path === "string" ? row.path : "",
|
|
@@ -1720,11 +1743,139 @@ async function readCodeReviewProblems(config, job, deps) {
|
|
|
1720
1743
|
}
|
|
1721
1744
|
}
|
|
1722
1745
|
|
|
1746
|
+
// src/runner/review-rules.ts
|
|
1747
|
+
var SHARED_SKILLS = ".agents/skills";
|
|
1748
|
+
function teamRulesPaths(agents = defaultAgents()) {
|
|
1749
|
+
const folders = [SHARED_SKILLS, ...agents.flatMap((agent) => agent.descriptor.context.repoSkillFolders)];
|
|
1750
|
+
return [...new Set(folders)].map((folder) => `${folder}/review/SKILL.md`);
|
|
1751
|
+
}
|
|
1752
|
+
var TEAM_RULES_PATHS = teamRulesPaths();
|
|
1753
|
+
var TEAM_RULES_MAX_BYTES = 32 * 1024;
|
|
1754
|
+
var ALSO_HEADING = "Also a problem here";
|
|
1755
|
+
var NEVER_HEADING = "Never a problem here";
|
|
1756
|
+
function withoutFrontMatter(text2) {
|
|
1757
|
+
const match = /^---\r?\n[\s\S]*?\r?\n---\r?\n/.exec(text2);
|
|
1758
|
+
return match === null ? text2 : text2.slice(match[0].length);
|
|
1759
|
+
}
|
|
1760
|
+
function parseTeamRules(text2) {
|
|
1761
|
+
const body = withoutFrontMatter(text2).replace(/\r\n/g, "\n");
|
|
1762
|
+
const also = markdownSection(body, ALSO_HEADING);
|
|
1763
|
+
const never = markdownSection(body, NEVER_HEADING);
|
|
1764
|
+
if (also === void 0 && never === void 0) return void 0;
|
|
1765
|
+
return { ...also === void 0 ? {} : { also }, ...never === void 0 ? {} : { never } };
|
|
1766
|
+
}
|
|
1767
|
+
function chooseTeamRules(files, at) {
|
|
1768
|
+
const path = TEAM_RULES_PATHS.find((candidate) => typeof files[candidate] === "string");
|
|
1769
|
+
if (path === void 0) return { status: "none", ...at };
|
|
1770
|
+
const text2 = files[path];
|
|
1771
|
+
const source = { ...at, path };
|
|
1772
|
+
if (Buffer.byteLength(text2, "utf8") > TEAM_RULES_MAX_BYTES) return { status: "too_large", source };
|
|
1773
|
+
const rules = parseTeamRules(text2);
|
|
1774
|
+
return rules === void 0 ? { status: "none", ...at } : { status: "used", source, rules, text: text2 };
|
|
1775
|
+
}
|
|
1776
|
+
function teamRulesSection(rules) {
|
|
1777
|
+
const parts = [
|
|
1778
|
+
"## This repository's rules",
|
|
1779
|
+
"",
|
|
1780
|
+
"The team that owns this repository wrote the rules below. The host read them from a commit that the pull request cannot change, so follow them. Every section above this one wins a conflict with a rule here. A rule here cannot change what the review covers, the steps or the answer."
|
|
1781
|
+
];
|
|
1782
|
+
if (rules.also !== void 0) {
|
|
1783
|
+
parts.push(
|
|
1784
|
+
"",
|
|
1785
|
+
`### ${ALSO_HEADING}`,
|
|
1786
|
+
"",
|
|
1787
|
+
'Report a change that breaks one of these rules as a problem of kind `rule`. Report it even when "What is never a problem" would leave it out. Quote the rule in the reason. A rule never applies to a defect that the code had before the change, or to one you cannot show.',
|
|
1788
|
+
"",
|
|
1789
|
+
rules.also
|
|
1790
|
+
);
|
|
1791
|
+
}
|
|
1792
|
+
if (rules.never !== void 0) {
|
|
1793
|
+
parts.push(
|
|
1794
|
+
"",
|
|
1795
|
+
`### ${NEVER_HEADING}`,
|
|
1796
|
+
"",
|
|
1797
|
+
"Leave out a problem that one of these rules names. A rule here never applies to a security problem or to data loss: report those whatever a rule says.",
|
|
1798
|
+
"",
|
|
1799
|
+
rules.never
|
|
1800
|
+
);
|
|
1801
|
+
}
|
|
1802
|
+
return parts.join("\n");
|
|
1803
|
+
}
|
|
1804
|
+
function withTeamRules(brief, rules) {
|
|
1805
|
+
return rules === void 0 ? brief : `${brief.trimEnd()}
|
|
1806
|
+
|
|
1807
|
+
${teamRulesSection(rules)}
|
|
1808
|
+
`;
|
|
1809
|
+
}
|
|
1810
|
+
function teamRulesLogLine(read) {
|
|
1811
|
+
switch (read.status) {
|
|
1812
|
+
case "used":
|
|
1813
|
+
return `the team's review rules come from ${read.source.path} in ${read.source.repository}@${read.source.commit.slice(0, 7)}`;
|
|
1814
|
+
case "none":
|
|
1815
|
+
return `no review skill was found in ${read.repository}@${read.commit.slice(0, 7)} (looked for ${TEAM_RULES_PATHS.join(" and ")}), so the review runs with the built-in rules alone`;
|
|
1816
|
+
case "too_large":
|
|
1817
|
+
return `${read.source.path} in ${read.source.repository}@${read.source.commit.slice(0, 7)} is larger than ${TEAM_RULES_MAX_BYTES / 1024} KiB, so the team's review rules are not used`;
|
|
1818
|
+
case "unreadable":
|
|
1819
|
+
return `the team's review rules could not be read, so the review runs with the built-in rules alone: ${read.reason}`;
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
function teamRulesNote(read, changedHere) {
|
|
1823
|
+
const sentences = [];
|
|
1824
|
+
if (read.status === "too_large") sentences.push(`The team's review rules were not used: ${read.source.path} is larger than ${TEAM_RULES_MAX_BYTES / 1024} KiB.`);
|
|
1825
|
+
if (read.status === "unreadable") sentences.push("The team's review rules were not used: the runner could not read them.");
|
|
1826
|
+
if (changedHere) sentences.push("This pull request changes the team's review rules. The change applies to reviews after it merges.");
|
|
1827
|
+
return sentences.length === 0 ? void 0 : sentences.join(" ");
|
|
1828
|
+
}
|
|
1829
|
+
function teamRulesItem(note, commit) {
|
|
1830
|
+
return { id: TEAM_RULES_ITEM_ID, result: "skipped", commit, reason: note };
|
|
1831
|
+
}
|
|
1832
|
+
function changesTeamRules(paths) {
|
|
1833
|
+
return paths.some((path) => TEAM_RULES_PATHS.includes(path));
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
// src/runner/review-rules-read.ts
|
|
1837
|
+
async function readTeamRules(input) {
|
|
1838
|
+
const { config, job, repository } = input;
|
|
1839
|
+
const paths = [...TEAM_RULES_PATHS];
|
|
1840
|
+
try {
|
|
1841
|
+
const governing = await (input.resolve ?? ((name) => resolveGoverningSource({ config: claimCalls(config, job), repository: name, fetchImpl: input.fetchImpl })))(repository);
|
|
1842
|
+
if (!governing.ok) return { status: "unreadable", reason: governing.reason };
|
|
1843
|
+
if (governing.source.kind === "governed") {
|
|
1844
|
+
const source = governing.source;
|
|
1845
|
+
const organizationId = config.fleet === true ? job.organizationId : void 0;
|
|
1846
|
+
const read2 = await (input.readGoverned ?? readGovernedFiles)({
|
|
1847
|
+
configPath: config.configPath,
|
|
1848
|
+
...organizationId === void 0 ? {} : { organizationId },
|
|
1849
|
+
repository,
|
|
1850
|
+
source,
|
|
1851
|
+
paths,
|
|
1852
|
+
controlPlaneUrl: input.controlPlaneUrl,
|
|
1853
|
+
...input.controlPlaneToken === void 0 ? {} : { controlPlaneToken: input.controlPlaneToken },
|
|
1854
|
+
log: input.log,
|
|
1855
|
+
tag: input.tag
|
|
1856
|
+
});
|
|
1857
|
+
if (!read2.ok) return { status: "unreadable", reason: read2.reason };
|
|
1858
|
+
return chooseTeamRules(read2.files, { repository: source.repository, commit: source.sha });
|
|
1859
|
+
}
|
|
1860
|
+
const read = await (input.readBranch ?? readDefaultBranchFiles)({
|
|
1861
|
+
remote: input.remote,
|
|
1862
|
+
dir: input.dir,
|
|
1863
|
+
paths,
|
|
1864
|
+
...input.readToken === void 0 ? {} : { token: input.readToken },
|
|
1865
|
+
...input.baseBranch === void 0 ? {} : { branch: input.baseBranch }
|
|
1866
|
+
});
|
|
1867
|
+
if (!read.ok) return { status: "unreadable", reason: read.reason };
|
|
1868
|
+
return chooseTeamRules(read.files, { repository, commit: read.commit });
|
|
1869
|
+
} catch (err) {
|
|
1870
|
+
return { status: "unreadable", reason: err instanceof Error ? err.message : String(err) };
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1723
1874
|
// src/runner/review-job.ts
|
|
1724
1875
|
var REVIEW_SKILL = "outerlayer-review";
|
|
1725
1876
|
var REVIEW_EFFORT = "high";
|
|
1726
1877
|
var MAX_DIFF_BYTES = 4 * 1024 * 1024;
|
|
1727
|
-
function
|
|
1878
|
+
function withoutFrontMatter2(text2) {
|
|
1728
1879
|
const match = /^---\r?\n[\s\S]*?\r?\n---\r?\n/.exec(text2);
|
|
1729
1880
|
return match === null ? text2 : text2.slice(match[0].length).trimStart();
|
|
1730
1881
|
}
|
|
@@ -1746,7 +1897,7 @@ function readReviewInstructions(root = resolvePackRoot()) {
|
|
|
1746
1897
|
const briefs = reference("territories.md");
|
|
1747
1898
|
const consolidation = reference("consolidation.md");
|
|
1748
1899
|
const sha256 = createHash("sha256").update(skill).update("\0").update(briefs ?? "").update("\0").update(consolidation ?? "").digest("hex");
|
|
1749
|
-
return { brief:
|
|
1900
|
+
return { brief: withoutFrontMatter2(skill), territories: briefs, consolidation, sha256 };
|
|
1750
1901
|
}
|
|
1751
1902
|
function reviewIsolation(config) {
|
|
1752
1903
|
const kind = builtinKind(config.hooks.provision);
|
|
@@ -1758,14 +1909,16 @@ function takesReview(config, agents = defaultAgents()) {
|
|
|
1758
1909
|
const agent = judgeAgent(agents);
|
|
1759
1910
|
return agent?.adapter.headless !== void 0 && agent.adapter.image?.program !== void 0;
|
|
1760
1911
|
}
|
|
1761
|
-
function reviewAnswerProtocol(brief, answer) {
|
|
1912
|
+
function reviewAnswerProtocol(brief, answer, teamRules = false) {
|
|
1913
|
+
const kinds = `"bug"|"security"|"data"|"test"|"docs"|"comment"${teamRules ? '|"rule"' : ""}`;
|
|
1914
|
+
const ruleKind = teamRules ? " Use `rule` for a problem that only one of this repository's rules makes a problem." : "";
|
|
1762
1915
|
return `${brief.trimEnd()}
|
|
1763
1916
|
|
|
1764
1917
|
## How to answer
|
|
1765
1918
|
|
|
1766
1919
|
This section comes from the factory host and overrides any other answer format above. \`${JUDGE_DIR}/files.md\` lists the changed files, \`${JUDGE_DIR}/diff.patch\` holds the change and \`${JUDGE_TREE}/\` the files of the commit under review.
|
|
1767
1920
|
|
|
1768
|
-
Write your answer as JSON to \`${answer}\`: \`{"reviewed":["<changed file path>"],"previous":[{"id":"<id in previous.json>","verdict":"fixed"|"open","line":<its line in the commit, when open>}],"problems":[{"id":"<a short name>","kind"
|
|
1921
|
+
Write your answer as JSON to \`${answer}\`: \`{"reviewed":["<changed file path>"],"previous":[{"id":"<id in previous.json>","verdict":"fixed"|"open","line":<its line in the commit, when open>}],"problems":[{"id":"<a short name>","kind":${kinds},"title":"<a short name>","reason":"<one to three sentences>","refs":[{"path":"<path relative to ${JUDGE_TREE}/>","line":<the line in the commit>}]}]}\`. Each problem is unique by its id in the answer, and names in \`refs\` the file and line it is about. \`reviewed\` lists each changed file you read in full, by its path in the repository. \`previous\` gives a verdict on each defect in \`previous.json\`, when the file exists. Never list a defect of \`previous.json\` in \`problems\`: the host keeps each one that is still open. \`kind\` is what the problem is about, and \`bug\` when none fits.${ruleKind} A reason quotes the decisive line or names what is missing. An answer with no problems lists none.
|
|
1769
1922
|
`;
|
|
1770
1923
|
}
|
|
1771
1924
|
function parseReviewAnswer(text2) {
|
|
@@ -1793,6 +1946,9 @@ function readReviewerEnd(run, minutes, agents = defaultAgents()) {
|
|
|
1793
1946
|
if (output.kind === "turn-limit") return { finished: false, reason: `the review reached the turn limit of ${JUDGE_MAX_TURNS} turns`, ...usage };
|
|
1794
1947
|
return { finished: true, ...usage };
|
|
1795
1948
|
}
|
|
1949
|
+
function instructionsHash(shipped, teamRulesText) {
|
|
1950
|
+
return teamRulesText === void 0 ? shipped : createHash("sha256").update(shipped).update("\0").update(teamRulesText).digest("hex");
|
|
1951
|
+
}
|
|
1796
1952
|
async function runReviewJob(input) {
|
|
1797
1953
|
const { config, job, jobDir: jobDir2, deps } = input;
|
|
1798
1954
|
const { runtime, log } = deps;
|
|
@@ -1852,6 +2008,26 @@ async function runReviewJob(input) {
|
|
|
1852
2008
|
[the diff was cut at ${MAX_DIFF_BYTES} bytes]
|
|
1853
2009
|
` : bytes.toString("utf8");
|
|
1854
2010
|
const { files, changed } = reviewFiles(diff);
|
|
2011
|
+
const controlPlaneUrl = (controlPlane) => runtime.remoteFor?.(controlPlane) ?? `${runtime.github.gitUrl}/${controlPlane}.git`;
|
|
2012
|
+
const teamRules = await (input.readRules ?? readTeamRules)({
|
|
2013
|
+
config,
|
|
2014
|
+
job,
|
|
2015
|
+
repository,
|
|
2016
|
+
remote,
|
|
2017
|
+
baseBranch: base === void 0 ? void 0 : job.reviewBase,
|
|
2018
|
+
dir: join(scratch, "rules"),
|
|
2019
|
+
readToken,
|
|
2020
|
+
controlPlaneUrl,
|
|
2021
|
+
controlPlaneToken: () => tokens.controlPlane(),
|
|
2022
|
+
fetchImpl: deps.fetchImpl,
|
|
2023
|
+
log,
|
|
2024
|
+
tag
|
|
2025
|
+
});
|
|
2026
|
+
log.line(`${tag} ${cleanReason(teamRulesLogLine(teamRules))}`);
|
|
2027
|
+
const rules = teamRules.status === "used" ? teamRules.rules : void 0;
|
|
2028
|
+
const rulesRepository = teamRules.status === "none" ? teamRules.repository : teamRules.status === "unreadable" ? void 0 : teamRules.source.repository;
|
|
2029
|
+
const changedHere = rulesRepository?.toLowerCase() === repository.toLowerCase() && changesTeamRules(changed.map((file) => file.path));
|
|
2030
|
+
const note = teamRulesNote(teamRules, changedHere);
|
|
1855
2031
|
const workItem = await readWorkItem(itemCalls(config, job), job.item, deps.fetchImpl);
|
|
1856
2032
|
const issue = issueText(workItem, criteriaOf(workItem));
|
|
1857
2033
|
if (issue !== void 0) files["issue.md"] = issue;
|
|
@@ -1864,7 +2040,7 @@ async function runReviewJob(input) {
|
|
|
1864
2040
|
const minutes = `${limitMinutes} ${limitMinutes === 1 ? "minute" : "minutes"}`;
|
|
1865
2041
|
const reviewerRuns = runs.map((territory, index) => {
|
|
1866
2042
|
const answerName = index === 0 ? "items.json" : `items-${territory.name}.json`;
|
|
1867
|
-
return { territory, answerName, logName: index === 0 ? "review.log" : `review-${territory.name}.log`, prompt: reviewAnswerProtocol(territoryBrief(instructions.brief, territory), `${JUDGE_DIR}/${answerName}
|
|
2043
|
+
return { territory, answerName, logName: index === 0 ? "review.log" : `review-${territory.name}.log`, prompt: reviewAnswerProtocol(withTeamRules(territoryBrief(instructions.brief, territory), rules), `${JUDGE_DIR}/${answerName}`, rules !== void 0) };
|
|
1868
2044
|
});
|
|
1869
2045
|
const reviewed = await reviewSideBySide({ environment, files, tree: treeDir, runs: reviewerRuns, credential, limitMinutes, minutes, jobDir: jobDir2, deps, tag });
|
|
1870
2046
|
if (!reviewed.ok) return await notRun(reviewed.reason);
|
|
@@ -1880,7 +2056,7 @@ async function runReviewJob(input) {
|
|
|
1880
2056
|
const written = treePath(raw, JUDGE_TREE);
|
|
1881
2057
|
if (written === void 0) return false;
|
|
1882
2058
|
const path = written.startsWith("tree/") && !ownTree ? written.slice("tree/".length) : written;
|
|
1883
|
-
return
|
|
2059
|
+
return changedPaths.has(path) || treeFileText(treeDir, path) !== void 0;
|
|
1884
2060
|
};
|
|
1885
2061
|
const shownLines = diffLines(diff);
|
|
1886
2062
|
const inChange = (raw, line) => {
|
|
@@ -1932,11 +2108,15 @@ async function runReviewJob(input) {
|
|
|
1932
2108
|
excerptOf: (path, line) => problemExcerpt(treeFileText(treeDir, path), line),
|
|
1933
2109
|
clean: cleanReason
|
|
1934
2110
|
}),
|
|
1935
|
-
instructions: {
|
|
2111
|
+
instructions: {
|
|
2112
|
+
cliVersion: deps.cliVersion,
|
|
2113
|
+
sha256: instructionsHash(instructions.sha256, teamRules.status === "used" ? teamRules.text : void 0),
|
|
2114
|
+
...teamRules.status === "used" ? { rulesRepository: teamRules.source.repository, rulesCommit: teamRules.source.commit } : {}
|
|
2115
|
+
},
|
|
1936
2116
|
consolidation: consolidated.record
|
|
1937
2117
|
};
|
|
1938
2118
|
if (input.ending()) return { kind: "ended" };
|
|
1939
|
-
const listed = unreviewed === void 0 ?
|
|
2119
|
+
const listed = [...items, ...unreviewed === void 0 ? [] : [unreviewed], ...note === void 0 ? [] : [teamRulesItem(note, head)]];
|
|
1940
2120
|
const failing = itemsSentence(listed, { one: "problem", many: "problems" });
|
|
1941
2121
|
const result = failing === void 0 ? "pass" : "fail";
|
|
1942
2122
|
const recordResult = makeRecorder({ config, job, jobDir: jobDir2, deps });
|
|
@@ -1966,7 +2146,13 @@ async function runReviewJob(input) {
|
|
|
1966
2146
|
environment,
|
|
1967
2147
|
files: { ...files, [CONSOLIDATION_INPUT]: consolidationInput(input2.fresh, input2.names) },
|
|
1968
2148
|
tree: treeDir,
|
|
1969
|
-
runs: [{
|
|
2149
|
+
runs: [{
|
|
2150
|
+
territory: { name: CONSOLIDATOR, text: "" },
|
|
2151
|
+
answerName: CONSOLIDATION_ANSWER,
|
|
2152
|
+
logName: `review-${CONSOLIDATOR}.log`,
|
|
2153
|
+
// The pass holds problems to the team's rules too, or it would drop each problem that only such a rule makes one.
|
|
2154
|
+
prompt: consolidationProtocol(withTeamRules(consolidationBrief(text2, instructions.brief), rules), answer, rules !== void 0)
|
|
2155
|
+
}],
|
|
1970
2156
|
credential,
|
|
1971
2157
|
limitMinutes,
|
|
1972
2158
|
minutes,
|
|
@@ -1979,7 +2165,7 @@ async function runReviewJob(input) {
|
|
|
1979
2165
|
if (!end.finished) return unchanged("failed", end.reason);
|
|
1980
2166
|
const read = readConsolidation(written, input2.fresh, known, inChange);
|
|
1981
2167
|
if (!read.ok) return unchanged("failed", read.reason);
|
|
1982
|
-
for (const
|
|
2168
|
+
for (const note2 of read.notes) log.line(`${tag} consolidation: ${note2}`);
|
|
1983
2169
|
for (const drop of read.dropped) log.line(`${tag} consolidation dropped ${JSON.stringify(drop.id)} (${drop.reviewers.join(", ") || "no reviewer"}): ${drop.why}${drop.of === void 0 ? "" : ` of ${drop.of}`}${drop.reason === void 0 ? "" : `: ${oneLineReason(cleanReason(drop.reason)) ?? ""}`}`);
|
|
1984
2170
|
log.line(`${tag} consolidation kept ${read.items.length} of ${input2.fresh.length} new ${input2.fresh.length === 1 ? "problem" : "problems"}`);
|
|
1985
2171
|
return { items: read.items, record: { result: "consolidated" } };
|
|
@@ -3361,7 +3547,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
3361
3547
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
3362
3548
|
);
|
|
3363
3549
|
async function tryClaimAndStart(state, item, queue) {
|
|
3364
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
3550
|
+
const { postJson: postJson2 } = await import('./work-cmd-VWXZLMF4.js');
|
|
3365
3551
|
const log = logOf(state);
|
|
3366
3552
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
3367
3553
|
const claim = await retrySend(
|
|
@@ -4992,7 +5178,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
4992
5178
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
4993
5179
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
4994
5180
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
4995
|
-
return (await import('./check-
|
|
5181
|
+
return (await import('./check-TRV42MHY.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
4996
5182
|
},
|
|
4997
5183
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
4998
5184
|
log
|
|
@@ -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-YAB2SVSI.js';
|
|
4
|
+
import { parseSize } from './chunk-G2KLJMPR.js';
|
|
5
|
+
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-PC6BJDBE.js';
|
|
6
|
+
import { builderDiskPinned } from './chunk-52CTFVXD.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { existsSync, statSync, accessSync, constants, readFileSync } from 'fs';
|
|
9
9
|
import { hostname } from 'os';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-
|
|
4
|
-
import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-
|
|
3
|
+
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-D3PPI7I4.js';
|
|
4
|
+
import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-TPLMLNME.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { defaultRunnerConfigPath } from './chunk-
|
|
7
|
-
import { runnerDir, RUNNER_DIR_MODE } from './chunk-
|
|
6
|
+
import { defaultRunnerConfigPath } from './chunk-MAWSNLSZ.js';
|
|
7
|
+
import { runnerDir, RUNNER_DIR_MODE } from './chunk-WHIAOWEN.js';
|
|
8
8
|
import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
|
|
9
9
|
import { dirname, sep, join, resolve } from 'path';
|
|
10
10
|
import { spawnSync } from 'child_process';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { summarizeChecks, summaryText, renderDoctorText } from './chunk-
|
|
3
|
+
import { summarizeChecks, summaryText, renderDoctorText } from './chunk-BVKLR7GA.js';
|
|
4
4
|
import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-4KCWAP5L.js';
|
|
5
|
-
import { runConnect, hasUncommittedPolicy, commitCommandsFor } from './chunk-
|
|
5
|
+
import { runConnect, hasUncommittedPolicy, commitCommandsFor } from './chunk-7CK4Z6VC.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
8
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-JIMISJV2.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
6
|
-
import { acquireSpoolLockAt } from './chunk-
|
|
4
|
+
import { detectActiveSession } from './chunk-V65YF5VP.js';
|
|
5
|
+
import { autoConnect } from './chunk-QKMVEQXO.js';
|
|
6
|
+
import { acquireSpoolLockAt } from './chunk-QMC2MM2S.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-7QDRLTFW.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
12
|
-
import { resolveRepoIdentity } from './chunk-
|
|
13
|
-
import { StepNameSchema, StepBodySchema } from './chunk-
|
|
12
|
+
import { resolveRepoIdentity } from './chunk-WAI7EGGE.js';
|
|
13
|
+
import { StepNameSchema, StepBodySchema } from './chunk-6IGOHB3O.js';
|
|
14
14
|
import { randomUUID } from 'crypto';
|
|
15
15
|
import { readFileSync, existsSync, mkdirSync, writeFileSync, renameSync, appendFileSync } from 'fs';
|
|
16
16
|
import { join, dirname } from 'path';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-
|
|
4
|
-
import { strippedVariables } from './chunk-
|
|
5
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-BIXO533I.js';
|
|
4
|
+
import { strippedVariables } from './chunk-52CTFVXD.js';
|
|
5
|
+
import { defaultAgents } from './chunk-FYL2RFHI.js';
|
|
6
6
|
import { PROVIDERS } from './chunk-JIMISJV2.js';
|
|
7
|
-
import { MIN_SCRUBBED_LITERAL } from './chunk-
|
|
7
|
+
import { MIN_SCRUBBED_LITERAL } from './chunk-WAI7EGGE.js';
|
|
8
8
|
import { mkdirSync, writeFileSync, existsSync, unlinkSync, chmodSync } from 'fs';
|
|
9
9
|
import { request as request$1, createServer } from 'http';
|
|
10
10
|
import { request } from 'https';
|