@outerlayer/cli 0.40.0-next.20261117034333 → 0.40.0-next.20261117055025

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.
Files changed (186) hide show
  1. package/README.md +5 -1
  2. package/dist/agent-setup-4J2JL5EB.js +41 -0
  3. package/dist/{agent-subcommand-MW4TF4SG.js → agent-subcommand-64YO6FE4.js} +4 -4
  4. package/dist/{artifact-link-cmd-XUHNVFVU.js → artifact-link-cmd-HYEM4X5U.js} +2 -2
  5. package/dist/{bridge-WEK2IMAD.js → bridge-H72K6N7O.js} +7 -7
  6. package/dist/{build-LJSUCORB.js → build-PBQIJPCC.js} +13 -13
  7. package/dist/{build-disk-S2XHWSDH.js → build-disk-3COAKTPF.js} +11 -11
  8. package/dist/build-info.json +1 -1
  9. package/dist/{builder-TCRJKB2W.js → builder-GOJQQOIV.js} +10 -10
  10. package/dist/caller-BZBHMIA2.js +23 -0
  11. package/dist/{check-Z6GAY2C4.js → check-Y5CTVK5F.js} +55 -55
  12. package/dist/{chunk-UAZBE4O3.js → chunk-2AEXGFFJ.js} +10 -10
  13. package/dist/{chunk-ZQTMWBLA.js → chunk-2L2LLHQW.js} +1 -1
  14. package/dist/{chunk-PB4QDL6Q.js → chunk-3FZXSMIL.js} +4 -4
  15. package/dist/{chunk-V77IQKWK.js → chunk-3QNW4M64.js} +17 -17
  16. package/dist/{chunk-4FTRLX6A.js → chunk-3RG2ZR3J.js} +5 -5
  17. package/dist/{chunk-MEZVLRJK.js → chunk-3RSCWOYQ.js} +10 -10
  18. package/dist/{chunk-ABY722KN.js → chunk-3TEE7JVW.js} +1 -1
  19. package/dist/{chunk-7QIQ7QR3.js → chunk-52CTFVXD.js} +1 -1
  20. package/dist/{chunk-BZFRU6M7.js → chunk-6FWHB4TW.js} +8 -8
  21. package/dist/{chunk-CH3PO7UY.js → chunk-6IGOHB3O.js} +3 -2
  22. package/dist/{chunk-BEK2BZAI.js → chunk-7CK4Z6VC.js} +6 -6
  23. package/dist/{chunk-NWWED36F.js → chunk-7QDRLTFW.js} +1 -1
  24. package/dist/{chunk-TZNIDZGI.js → chunk-AAGXH2FR.js} +1 -1
  25. package/dist/{chunk-QJI56HI2.js → chunk-AQS3AG4T.js} +7 -7
  26. package/dist/{chunk-UUVURKWB.js → chunk-ATK2MNGU.js} +4 -4
  27. package/dist/{chunk-3ETI7MKK.js → chunk-BIBHD4KJ.js} +4 -4
  28. package/dist/{chunk-GQI5N56J.js → chunk-BIXO533I.js} +2 -2
  29. package/dist/{chunk-TTBG7YZW.js → chunk-CKS7B2ZJ.js} +7 -7
  30. package/dist/{chunk-KCLFDN26.js → chunk-CZYUSXAR.js} +3 -3
  31. package/dist/{chunk-D2QNQOFX.js → chunk-D3PPI7I4.js} +1 -1
  32. package/dist/{chunk-3PXV4I75.js → chunk-DMW22UQE.js} +3 -3
  33. package/dist/{chunk-RUSF2YGL.js → chunk-EBSN6K35.js} +6 -6
  34. package/dist/{chunk-MBOQJTOS.js → chunk-FBFYIEHC.js} +4 -4
  35. package/dist/{chunk-H6L6SWMN.js → chunk-FRQLJUID.js} +2 -2
  36. package/dist/{chunk-H4JQKCVP.js → chunk-FUNAQRMN.js} +9 -9
  37. package/dist/{chunk-5EWESACE.js → chunk-FYL2RFHI.js} +3 -3
  38. package/dist/{chunk-PZZS6DHY.js → chunk-G2KLJMPR.js} +8 -8
  39. package/dist/{chunk-K6THWLSJ.js → chunk-H37HSQGH.js} +1 -1
  40. package/dist/{chunk-UFGV3JZ5.js → chunk-H73CCPAW.js} +1 -1
  41. package/dist/{chunk-FLHDVJAV.js → chunk-H7BNWYIA.js} +5 -5
  42. package/dist/{chunk-EBWA6KIE.js → chunk-HHOFP647.js} +1 -1
  43. package/dist/{chunk-AGKUDDIN.js → chunk-HQEPFG5U.js} +1 -1
  44. package/dist/{chunk-D3CALDGC.js → chunk-IHMGZWOB.js} +1 -1
  45. package/dist/{chunk-ABXHYH2Y.js → chunk-ISTSELPU.js} +6 -6
  46. package/dist/{chunk-CNMC4OXO.js → chunk-IXHMDBXY.js} +7 -7
  47. package/dist/{chunk-F4PRZBBJ.js → chunk-J4EPJMU6.js} +2 -2
  48. package/dist/{chunk-33RKRHJG.js → chunk-J7UWKTRV.js} +1 -1
  49. package/dist/{chunk-HI6R4XYD.js → chunk-JMQDGBAF.js} +2 -2
  50. package/dist/{chunk-HSGZ4JEV.js → chunk-K3IO22FH.js} +1 -1
  51. package/dist/{chunk-MG2Y5XYV.js → chunk-K7RHVH7G.js} +218 -59
  52. package/dist/{chunk-PHC24VUU.js → chunk-KPCGSGZS.js} +5 -5
  53. package/dist/{chunk-X6BGCNE3.js → chunk-KZEZBZ4W.js} +8 -8
  54. package/dist/{chunk-WEPLWKV6.js → chunk-L4T6CI57.js} +3 -3
  55. package/dist/{chunk-7PIUTUXI.js → chunk-LX4GPGNE.js} +3 -3
  56. package/dist/{chunk-ZASDJ7F5.js → chunk-MAWSNLSZ.js} +4 -4
  57. package/dist/{chunk-GBLNHZ3E.js → chunk-MN73QQDA.js} +4 -4
  58. package/dist/{chunk-LYHR47YE.js → chunk-O6YRZ4CP.js} +2 -2
  59. package/dist/{chunk-AH2BO6Q6.js → chunk-OA2KHMXX.js} +6 -6
  60. package/dist/{chunk-ZYIVNB6B.js → chunk-PC6BJDBE.js} +4 -4
  61. package/dist/{chunk-6NODVJGM.js → chunk-PIP32M2V.js} +3 -3
  62. package/dist/{chunk-WZ6K327V.js → chunk-PKYJMXRB.js} +8 -8
  63. package/dist/{chunk-CW6H5JXV.js → chunk-PVDIDOKH.js} +40 -9
  64. package/dist/{chunk-V6UDJVVD.js → chunk-QKMVEQXO.js} +3 -3
  65. package/dist/{chunk-FG2E3HES.js → chunk-QMC2MM2S.js} +1 -1
  66. package/dist/{chunk-6ZBUQIJA.js → chunk-QMOE5Y4X.js} +1 -1
  67. package/dist/{chunk-EU6JHHES.js → chunk-QYJYYF3J.js} +247 -61
  68. package/dist/{chunk-P7OXJ3ZD.js → chunk-RC5WWCUS.js} +5 -5
  69. package/dist/{chunk-UE42G3QY.js → chunk-SS3SQYDS.js} +1 -1
  70. package/dist/{chunk-SK4BESZM.js → chunk-SSVM6C5N.js} +1 -1
  71. package/dist/{chunk-UN7RXMOB.js → chunk-T4SVE4O4.js} +4 -4
  72. package/dist/{chunk-I7ZQKMKG.js → chunk-TPLMLNME.js} +1 -1
  73. package/dist/{chunk-VG6FUXGK.js → chunk-UAGUV74T.js} +1 -1
  74. package/dist/{chunk-KDVQGQXM.js → chunk-V56S4A34.js} +1 -1
  75. package/dist/{chunk-S4CX66JO.js → chunk-V65YF5VP.js} +1 -1
  76. package/dist/{chunk-5O7P6VXS.js → chunk-VEW4BPVJ.js} +1 -1
  77. package/dist/{chunk-6QXGAGQY.js → chunk-VH7P6XUP.js} +1 -1
  78. package/dist/{chunk-6GJMRVMX.js → chunk-VUSPSY6N.js} +1 -1
  79. package/dist/{chunk-ZIN6G7DS.js → chunk-WAI7EGGE.js} +1 -1
  80. package/dist/{chunk-H2THCHUP.js → chunk-WHIAOWEN.js} +1 -1
  81. package/dist/{chunk-F6J3ACXH.js → chunk-XVE7HD6X.js} +6 -6
  82. package/dist/{chunk-YICV7DAE.js → chunk-XVTDFLRQ.js} +3 -3
  83. package/dist/{chunk-IQYAPM4S.js → chunk-Y73IIGAU.js} +7 -7
  84. package/dist/{chunk-33DTLCL6.js → chunk-YAB2SVSI.js} +2 -2
  85. package/dist/{chunk-2QFZBWBP.js → chunk-YVLGGDYK.js} +1 -1
  86. package/dist/{chunk-XT6LWXJ2.js → chunk-ZHXBFXG2.js} +1 -1
  87. package/dist/{claude-launcher-HWC5S5HD.js → claude-launcher-43RD6G3Y.js} +7 -7
  88. package/dist/{cli-TWF7CU3E.js → cli-YSZ2PWXK.js} +169 -169
  89. package/dist/{command-KGYVPB7B.js → command-NBKHR4MM.js} +52 -52
  90. package/dist/{config-J4VSNOH4.js → config-OJTLS62B.js} +12 -12
  91. package/dist/{connect-cmd-LPC6J27D.js → connect-cmd-L5KO3U67.js} +13 -13
  92. package/dist/{container-start-O6BAIQGT.js → container-start-NRCXZWBS.js} +49 -49
  93. package/dist/{context-cleanup-VWJSWUJB.js → context-cleanup-REXSRAU6.js} +4 -4
  94. package/dist/{context-show-cmd-B427F3M4.js → context-show-cmd-DAVFJJHX.js} +14 -14
  95. package/dist/{control-plane-launch-WV253P7I.js → control-plane-launch-TARK67QP.js} +14 -14
  96. package/dist/{demo-record-cmd-YRND2HVT.js → demo-record-cmd-BRBXTCSL.js} +8 -8
  97. package/dist/{demo-voice-cmd-TUIXJ7CY.js → demo-voice-cmd-67ZE46PS.js} +20 -20
  98. package/dist/{dist-UV2JOW3N.js → dist-3AH72O53.js} +2 -2
  99. package/dist/{docker-6NO5B657.js → docker-FEOTGBDS.js} +10 -10
  100. package/dist/{doctor-V3Z5CR5Q.js → doctor-3QBRH4YU.js} +51 -51
  101. package/dist/{emit-artifact-cmd-MWDEBRB2.js → emit-artifact-cmd-ZDQ5PPRN.js} +19 -19
  102. package/dist/{emit-cmd-2ADJWBJP.js → emit-cmd-MY3TTOV7.js} +7 -7
  103. package/dist/{emit-criteria-cmd-35O7KR37.js → emit-criteria-cmd-SED3RVYR.js} +16 -16
  104. package/dist/{emit-demo-cmd-HJCW3JEA.js → emit-demo-cmd-VBHIORA3.js} +20 -20
  105. package/dist/{emit-finding-cmd-Q4SN3OA7.js → emit-finding-cmd-NQRNWPFW.js} +16 -16
  106. package/dist/{emit-result-cmd-7VEMDT2P.js → emit-result-cmd-CA3FQUGR.js} +18 -18
  107. package/dist/{emit-step-cmd-DYQM5OQA.js → emit-step-cmd-EZQD56H5.js} +16 -16
  108. package/dist/{exec-client-6WGSNY56.js → exec-client-JEOB57LW.js} +8 -8
  109. package/dist/{find-unit-6BX4K4WV.js → find-unit-HJRHPB3Y.js} +13 -13
  110. package/dist/{findings-cmd-WHQBJZNA.js → findings-cmd-4HKGMYM7.js} +16 -16
  111. package/dist/{fleet-readiness-A67D5OP4.js → fleet-readiness-SPPQPJZI.js} +14 -14
  112. package/dist/{governing-source-C4BMFNFZ.js → governing-source-URY2L5EI.js} +21 -21
  113. package/dist/{guest-init-ZWEJGXQS.js → guest-init-KXWFAIS5.js} +9 -9
  114. package/dist/{hook-fast-SZ5L3ZJK.js → hook-fast-3EMC5BR5.js} +1 -1
  115. package/dist/{hook-install-63GJ3OUI.js → hook-install-2S7NZOBO.js} +4 -4
  116. package/dist/host-checks-527RRKUD.js +82 -0
  117. package/dist/host-key-JGKWDEN7.js +18 -0
  118. package/dist/{image-tag-6HQDPX45.js → image-tag-DJ2DYY75.js} +8 -8
  119. package/dist/index.js +4 -4
  120. package/dist/{init-KOG5S5KX.js → init-6KSNBYRM.js} +47 -47
  121. package/dist/init-ILAIAVL7.js +82 -0
  122. package/dist/{init-agent-XIDQULDZ.js → init-agent-D7K7PKUI.js} +47 -47
  123. package/dist/init-cmd-ZEM335MG.js +53 -0
  124. package/dist/{init-update-7SBDG65Z.js → init-update-2PHTQUR6.js} +24 -24
  125. package/dist/install-cmd-2SO5XQMZ.js +26 -0
  126. package/dist/launch-agent-ZCE2MKWW.js +26 -0
  127. package/dist/{layout-2MIQCJ3U.js → layout-4GFI5FUZ.js} +4 -4
  128. package/dist/{login-browser-ZYWUIEOQ.js → login-browser-G3NBTYT6.js} +2 -2
  129. package/dist/{logs-SP6RPVCP.js → logs-IGY3Z45I.js} +7 -7
  130. package/dist/loop-OY7YZMHJ.js +92 -0
  131. package/dist/machine-HJUWRAJ4.js +82 -0
  132. package/dist/{machine-skills-UYWZXOZI.js → machine-skills-FJPUFZ7N.js} +4 -4
  133. package/dist/{mcp-install-cmd-U2SEWH66.js → mcp-install-cmd-DWN6GODI.js} +4 -4
  134. package/dist/{mcp-serve-cmd-VAQL3CJB.js → mcp-serve-cmd-3ACPN3DK.js} +9 -9
  135. package/dist/{paths-G7LFPGQQ.js → paths-KPYCKVEO.js} +7 -7
  136. package/dist/pending-LR3J3B32.js +18 -0
  137. package/dist/{pidfile-FIVR2HKB.js → pidfile-2TYTTJAD.js} +8 -8
  138. package/dist/{record-K3I7V46A.js → record-SXQN3F2G.js} +8 -8
  139. package/dist/{relay-AQBBQJ5I.js → relay-XUWU6YJA.js} +5 -5
  140. package/dist/{relay-protocol-XZ7WESQL.js → relay-protocol-2ELEUOSS.js} +5 -5
  141. package/dist/{run-cmd-BRUSQKEA.js → run-cmd-ZC6H5JMT.js} +16 -16
  142. package/dist/{runner-agents-KF6EECFW.js → runner-agents-RKBGYF6D.js} +4 -4
  143. package/dist/runner-env-7AZQ443N.js +24 -0
  144. package/dist/{runner-identity-JM3ZQ2PJ.js → runner-identity-IA53MENM.js} +10 -10
  145. package/dist/{runner-key-P6FUFO6Y.js → runner-key-DQG25VKO.js} +47 -47
  146. package/dist/{session-sender-N3U3ZTL3.js → session-sender-HUD6KDQS.js} +19 -19
  147. package/dist/{setup-cmd-F7Y4SFTK.js → setup-cmd-6BBZWFJX.js} +14 -14
  148. package/dist/{setup-wiring-LU6AY2QA.js → setup-wiring-M3NSQHVV.js} +54 -54
  149. package/dist/{spec-cmd-ZNXNMAYA.js → spec-cmd-VKL4K2QQ.js} +17 -17
  150. package/dist/{starter-pack-NEQLRMTX.js → starter-pack-ETRBBABF.js} +5 -5
  151. package/dist/state-5QGIGKBB.js +18 -0
  152. package/dist/{status-N326EK5I.js → status-HSUAGN6D.js} +47 -47
  153. package/dist/{sync-cmd-KG7YQGM6.js → sync-cmd-EPN6VJ4R.js} +18 -18
  154. package/dist/update-steps-CF2EKH43.js +83 -0
  155. package/dist/{watch-3VJ363V2.js → watch-YSSMGF7F.js} +18 -18
  156. package/dist/{work-claim-cmd-MXWB5NG6.js → work-claim-cmd-TV4TJNBE.js} +23 -23
  157. package/dist/{work-cmd-X55AAJG2.js → work-cmd-VWXZLMF4.js} +16 -16
  158. package/dist/{work-comment-cmd-7AL5KEVJ.js → work-comment-cmd-A6OMDNWD.js} +18 -18
  159. package/dist/{work-demo-cmd-6UFGGEMI.js → work-demo-cmd-RO2MNERR.js} +16 -16
  160. package/dist/{work-logs-cmd-DCAV3J7A.js → work-logs-cmd-FNVY6PFY.js} +16 -16
  161. package/dist/{work-mock-cmd-O7KFTS65.js → work-mock-cmd-AC2Z3W7V.js} +16 -16
  162. package/dist/{work-needs-attention-cmd-OD5PTHLX.js → work-needs-attention-cmd-2IEXGHHV.js} +16 -16
  163. package/dist/{work-no-change-cmd-ABYXIOZT.js → work-no-change-cmd-VN5YDUZZ.js} +16 -16
  164. package/dist/{work-open-pr-cmd-WRFHZXVM.js → work-open-pr-cmd-GX3AEJMQ.js} +17 -17
  165. package/dist/{work-pr-cmd-VEH4HP7P.js → work-pr-cmd-PU7YFJDD.js} +16 -16
  166. package/dist/{work-proofs-cmd-TKA3J2II.js → work-proofs-cmd-SM2GQTEF.js} +18 -18
  167. package/dist/{work-proofs-record-WTBSJLET.js → work-proofs-record-RTWRGKIG.js} +24 -24
  168. package/dist/{work-stop-cmd-WF7R6ILK.js → work-stop-cmd-4PKBXINK.js} +16 -16
  169. package/package.json +1 -1
  170. package/skill-pack/maintained/outerlayer-review/SKILL.md +4 -1
  171. package/skill-pack/shipped.json +3 -0
  172. package/skill-pack/template/review/SKILL.md +14 -0
  173. package/dist/agent-setup-UU3NQZ3A.js +0 -41
  174. package/dist/caller-VJBDXZXG.js +0 -23
  175. package/dist/host-checks-SYD7WFUN.js +0 -82
  176. package/dist/host-key-AYXCAME4.js +0 -18
  177. package/dist/init-ULMPF7MK.js +0 -82
  178. package/dist/init-cmd-P7FYHTLS.js +0 -53
  179. package/dist/install-cmd-TWYZTNRV.js +0 -26
  180. package/dist/launch-agent-5MCXT6QN.js +0 -26
  181. package/dist/loop-OU2U7SUJ.js +0 -92
  182. package/dist/machine-NE34TJIO.js +0 -82
  183. package/dist/pending-OEAYMKZO.js +0 -18
  184. package/dist/runner-env-XAO7EBCK.js +0 -24
  185. package/dist/state-VXN7EX2K.js +0 -18
  186. 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-TZNIDZGI.js';
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-QJI56HI2.js';
6
- import { renderUpdateSteps } from './chunk-7PIUTUXI.js';
5
+ import { reportFailedStart, fitImageBuildMemory } from './chunk-AQS3AG4T.js';
6
+ import { renderUpdateSteps } from './chunk-LX4GPGNE.js';
7
7
  import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
8
- import { writeFleetState } from './chunk-VG6FUXGK.js';
9
- import { writePendingUpdate } from './chunk-5O7P6VXS.js';
10
- import { fleetConfigProblem, realBlockedProbes, checkBlockedWithSlots, askFleetMachine } from './chunk-MEZVLRJK.js';
11
- import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-I7ZQKMKG.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, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-MG2Y5XYV.js';
13
- import { RUNNER_PROTOCOL } from './chunk-EBWA6KIE.js';
14
- import { criteriaOf, diffLines, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, parseJudgeAnswer, wholeEntries, treePath, lineInDiff } from './chunk-MBOQJTOS.js';
15
- import { RepoFilter } from './chunk-H4JQKCVP.js';
8
+ import { writeFleetState } from './chunk-UAGUV74T.js';
9
+ import { writePendingUpdate } from './chunk-VEW4BPVJ.js';
10
+ import { fleetConfigProblem, realBlockedProbes, checkBlockedWithSlots, askFleetMachine } from './chunk-3RSCWOYQ.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-K7RHVH7G.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-UE42G3QY.js';
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-HI6R4XYD.js';
20
- import { fetchCommit, readBranchHead, diffBetween } from './chunk-WZ6K327V.js';
21
- import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-6QXGAGQY.js';
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-CW6H5JXV.js';
24
- import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-X6BGCNE3.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-ZASDJ7F5.js';
26
- import { formatBytes, freeBytes } from './chunk-33DTLCL6.js';
27
- import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, JUDGE_DIR, judgeCommand, JUDGE_MAX_TURNS } from './chunk-PZZS6DHY.js';
28
- import { loadHostKey, ensureHostKey, signerFor } from './chunk-6ZBUQIJA.js';
29
- import { jobsDir, RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, pidFilePath, storeScopes } from './chunk-H2THCHUP.js';
30
- import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-ZYIVNB6B.js';
31
- import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-GQI5N56J.js';
32
- import { cleanAttachmentName } from './chunk-6NODVJGM.js';
33
- import { jobAgent, jobCommandEnv, runnerAgents, judgeAgent } from './chunk-7QIQ7QR3.js';
34
- import { defaultAgents, resolvePackRoot } from './chunk-5EWESACE.js';
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-CH3PO7UY.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, 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 && !(held.foundBy ?? []).includes(entry.reviewer)) held.foundBy = [...held.foundBy ?? [], entry.reviewer];
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
- var keyAt = (index) => `p${index + 1}`;
1467
- var finders = (entry) => entry.foundBy ?? (entry.reviewer === void 0 ? [] : [entry.reviewer]);
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
- ...entry.title === void 0 ? {} : { title: entry.title },
1475
- ...entry.reason === void 0 ? {} : { reason: entry.reason },
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 = RULES.flatMap((heading) => {
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":"bug"|"security"|"data"|"test"|"docs"|"comment","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.
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, ...typeof line === "number" && Number.isInteger(line) && line > 0 ? { line } : {} }];
1511
+ return [{ path, ...Number.isInteger(line) && line > 0 ? { line } : {} }];
1507
1512
  });
1508
1513
  }
1509
- var text = (raw, max) => typeof raw === "string" && raw.trim() !== "" && raw.length <= max ? raw : void 0;
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" && typeof changed.line === "number" && Number.isInteger(changed.line) && changed.line > 0 && inChange(changed.path, changed.line);
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 = (Array.isArray(said.from) ? said.from : []).filter((key) => typeof key === "string" && sources.has(key) && !used.has(key));
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.includes(key));
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 (typeof key !== "string" || !sources.has(key) || used.has(key)) continue;
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 = of === void 0 ? void 0 : keptKey(of);
1586
- if (target === void 0 && (of === void 0 || !droppedKeys.has(of))) {
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 sent = await retrySend(() => postJson(calls.url, `/v1/work-items/${item}/claim/code-review`, calls.apiKey, calls.appId, body, deps.fetchImpl, void 0, signer), {
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
- if (!sent.ok) deps.log.line(`${tag} the code review's report was not recorded: ${sent.reason}`);
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: problemKind(row.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 withoutFrontMatter(text2) {
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: withoutFrontMatter(skill), territories: briefs, consolidation, sha256 };
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":"bug"|"security"|"data"|"test"|"docs"|"comment","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. A reason quotes the decisive line or names what is missing. An answer with no problems lists none.
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 path !== "" && (changedPaths.has(path) || treeFileText(treeDir, path) !== void 0);
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: { cliVersion: deps.cliVersion, sha256: instructions.sha256 },
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 ? items : [...items, unreviewed];
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: [{ territory: { name: CONSOLIDATOR, text: "" }, answerName: CONSOLIDATION_ANSWER, logName: `review-${CONSOLIDATOR}.log`, prompt: consolidationProtocol(consolidationBrief(text2, instructions.brief), answer) }],
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 note of read.notes) log.line(`${tag} consolidation: ${note}`);
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-X55AAJG2.js');
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-Z6GAY2C4.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
5181
+ return (await import('./check-Y5CTVK5F.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
4996
5182
  },
4997
5183
  now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
4998
5184
  log
@@ -1,15 +1,15 @@
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-S4CX66JO.js';
5
- import { autoConnect } from './chunk-V6UDJVVD.js';
4
+ import { detectActiveSession } from './chunk-V65YF5VP.js';
5
+ import { autoConnect } from './chunk-QKMVEQXO.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-NWWED36F.js';
7
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-7QDRLTFW.js';
8
8
  import { launchedItemForSession } from './chunk-LGJ56FCM.js';
9
9
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
10
10
  import { homeFromEnv } from './chunk-352DHUTP.js';
11
- import { resolveRepoIdentity } from './chunk-ZIN6G7DS.js';
12
- import { CriteriaListSchema } from './chunk-CH3PO7UY.js';
11
+ import { resolveRepoIdentity } from './chunk-WAI7EGGE.js';
12
+ import { CriteriaListSchema } from './chunk-6IGOHB3O.js';
13
13
  import { readFileSync } from 'fs';
14
14
 
15
15
  createRequire(import.meta.url);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { isVersion, compareVersions } from './chunk-TQMI335S.js';
4
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-H2THCHUP.js';
4
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-WHIAOWEN.js';
5
5
  import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
6
6
  import { join } from 'path';
7
7
 
@@ -2,7 +2,7 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { readContextManifest, removeContextManifest } from './chunk-YQR6E6OV.js';
4
4
  import { removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
5
- import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-5EWESACE.js';
5
+ import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-FYL2RFHI.js';
6
6
  import { execFileSync } from 'child_process';
7
7
  import { lstatSync, existsSync, unlinkSync, readdirSync, rmdirSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
8
8
  import { join, dirname, isAbsolute } from 'path';
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { LiveUploader } from './chunk-H4JQKCVP.js';
4
- import { spoolDir } from './chunk-6NODVJGM.js';
3
+ import { LiveUploader } from './chunk-FUNAQRMN.js';
4
+ import { spoolDir } from './chunk-PIP32M2V.js';
5
5
  import { parseRunEnv, parseWorkItemEnv } from './chunk-LGJ56FCM.js';
6
- import { sessionFolderIn, legacyAgent } from './chunk-5EWESACE.js';
6
+ import { sessionFolderIn, legacyAgent } from './chunk-FYL2RFHI.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
8
- import { CaptureDaemon } from './chunk-ZIN6G7DS.js';
8
+ import { CaptureDaemon } from './chunk-WAI7EGGE.js';
9
9
  import { mkdirSync, writeFileSync, rmSync } from 'fs';
10
10
  import { join } from 'path';
11
11
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-H2THCHUP.js';
3
+ import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-WHIAOWEN.js';
4
4
  import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
5
5
  import { join, basename, sep, resolve } from 'path';
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-H2THCHUP.js';
3
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-WHIAOWEN.js';
4
4
  import { mkdirSync, writeFileSync, renameSync, existsSync, readFileSync } from 'fs';
5
5
  import { dirname, join } from 'path';
6
6
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { readSettingsText, SettingsParseError, cliForInstall } from './chunk-ZHQC43NH.js';
4
- import { legacyAgent, defaultAgents, HookTextError } from './chunk-5EWESACE.js';
4
+ import { legacyAgent, defaultAgents, HookTextError } from './chunk-FYL2RFHI.js';
5
5
 
6
6
  createRequire(import.meta.url);
7
7