@joshuafolkken/kit 1.2116.0 → 1.3041.0
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/.claude/agents/design-consultant.md +19 -0
- package/.claude/agents/investigator.md +12 -2
- package/.claude/agents/reviewer-verification.md +13 -2
- package/.claude/agents/reviewer.md +13 -2
- package/.claude/settings.json +32 -9
- package/.claude/skills/dependency-update/SKILL.md +11 -14
- package/.claude/skills/epic-commands/SKILL.md +8 -6
- package/.claude/skills/epic-commands/epic-bundle.md +6 -7
- package/.claude/skills/verify-ui/SKILL.md +13 -23
- package/.claude/skills/workflow-commands/SKILL.md +19 -18
- package/.claude/skills/workflow-commands/background-commands.md +7 -4
- package/.claude/skills/workflow-commands/backlogrun-child.md +31 -64
- package/.claude/skills/workflow-commands/backlogrun-lanes.md +54 -62
- package/.claude/skills/workflow-commands/backlogrun-park.md +65 -64
- package/.claude/skills/workflow-commands/backlogrun-progress.md +30 -44
- package/.claude/skills/workflow-commands/backlogrun-recovery.md +18 -33
- package/.claude/skills/workflow-commands/backlogrun-steps.md +62 -50
- package/.claude/skills/workflow-commands/backlogrun.md +13 -18
- package/.claude/skills/workflow-commands/chain-rule.md +54 -53
- package/.claude/skills/workflow-commands/delegation.md +11 -11
- package/.claude/skills/workflow-commands/entry-sequence.md +23 -34
- package/.claude/skills/workflow-commands/followup.md +19 -17
- package/.claude/skills/workflow-commands/fullrun-lane.md +11 -0
- package/.claude/skills/workflow-commands/fullrun-steps.md +27 -34
- package/.claude/skills/workflow-commands/fullrun.md +5 -6
- package/.claude/skills/workflow-commands/halfrun.md +4 -7
- package/.claude/skills/workflow-commands/issue-comments.md +29 -15
- package/.claude/skills/workflow-commands/issue-fold-existing.md +9 -14
- package/.claude/skills/workflow-commands/issue-scout.md +5 -8
- package/.claude/skills/workflow-commands/kickoff.md +31 -34
- package/.claude/skills/workflow-commands/latest-gate.md +6 -14
- package/.claude/skills/workflow-commands/needs-human-review.md +3 -3
- package/.claude/skills/workflow-commands/observation-filing.md +9 -7
- package/.claude/skills/workflow-commands/observation-ledger.md +4 -1
- package/.claude/skills/workflow-commands/pre-gate-cut.md +21 -26
- package/.claude/skills/workflow-commands/prerequisite.md +21 -6
- package/.claude/skills/workflow-commands/progress-watcher.md +8 -18
- package/.claude/skills/workflow-commands/prrun.md +1 -1
- package/.claude/skills/workflow-commands/retrospective.md +16 -15
- package/.claude/skills/workflow-commands/split-assessment.md +32 -22
- package/.claude/skills/workflow-commands/target-repository.md +2 -2
- package/.claude/skills/workflow-commands/working-tree-hold.md +3 -2
- package/.codex/hooks.json +18 -8
- package/.cursorrules +1 -2
- package/.github/actions/change-scope/action.yml +19 -0
- package/.github/actions/setup-pnpm/action.yml +87 -14
- package/.github/dependabot.yml +1 -0
- package/.github/workflows/ci.yml +74 -30
- package/.github/workflows/publish.yml +56 -14
- package/.github/workflows/sonar-qube.yml +28 -1
- package/.prettierignore +2 -0
- package/AGENTS.md +1 -2
- package/CLAUDE.md +8 -8
- package/GEMINI.md +1 -2
- package/README.md +1 -1
- package/SECURITY.md +11 -1
- package/cspell/index.yaml +11 -0
- package/dist/.inputs-verified.json +1 -0
- package/dist/CLAUDE.md +8 -8
- package/dist/commands/adopt.js +222 -0
- package/dist/commands/auth-setup-cli.js +127 -0
- package/dist/commands/auto-ok-judge-cli.js +227 -0
- package/dist/commands/auto-ok-main.js +138 -0
- package/dist/commands/backlog-budget-main.js +146 -0
- package/dist/commands/backlog-drive-cli.js +2023 -0
- package/dist/commands/backlog-next-main.js +188 -0
- package/dist/commands/backlog-offer-main.js +192 -0
- package/dist/commands/backlog-plan-cli.js +328 -0
- package/dist/commands/backlog-triage-cli.js +644 -0
- package/dist/commands/backlogrun-cli.js +835 -0
- package/dist/commands/behavior-cli.js +215 -0
- package/dist/commands/bump-version-main.js +22 -0
- package/dist/commands/bytes-command.js +247 -0
- package/dist/commands/cases-cli.js +57 -0
- package/dist/commands/check-commit-message-main.js +22 -0
- package/dist/commands/check-related.js +552 -0
- package/dist/commands/chunk-22DVQCP6.js +153 -0
- package/dist/commands/chunk-23GH6B3D.js +333 -0
- package/dist/commands/chunk-24ZDAWML.js +48 -0
- package/dist/commands/chunk-2ADQ5XRD.js +36 -0
- package/dist/commands/chunk-2BB5ZR2F.js +128 -0
- package/dist/commands/chunk-2BC33QPY.js +183 -0
- package/dist/commands/chunk-2BJJUTZA.js +59 -0
- package/dist/commands/chunk-2CXT6MBR.js +51 -0
- package/dist/commands/chunk-2DJLAUYB.js +109 -0
- package/dist/commands/chunk-2EZTYLO4.js +179 -0
- package/dist/commands/chunk-2FE3C4PH.js +112 -0
- package/dist/commands/chunk-2FJJYCBD.js +149 -0
- package/dist/commands/chunk-2NSB5ZYQ.js +26 -0
- package/dist/commands/chunk-2PHOLX62.js +43 -0
- package/dist/commands/chunk-2QM72JCJ.js +338 -0
- package/dist/commands/chunk-2VFPUPSG.js +170 -0
- package/dist/commands/chunk-2VRITY55.js +41 -0
- package/dist/commands/chunk-2XAH3MHV.js +23 -0
- package/dist/commands/chunk-34DND4BA.js +104 -0
- package/dist/commands/chunk-34JJYCIY.js +117 -0
- package/dist/commands/chunk-34KZDKQJ.js +304 -0
- package/dist/commands/chunk-352KLSFX.js +67 -0
- package/dist/commands/chunk-36LOGVJ7.js +38 -0
- package/dist/commands/chunk-3AEDZZNL.js +223 -0
- package/dist/commands/chunk-3B2HEFNO.js +51 -0
- package/dist/commands/chunk-3CCGKX7Y.js +20 -0
- package/dist/commands/chunk-3LZXX5GL.js +50 -0
- package/dist/commands/chunk-3NWAGIA6.js +39 -0
- package/dist/commands/chunk-3PEXBHRN.js +33 -0
- package/dist/commands/chunk-3RIQ36LH.js +110 -0
- package/dist/commands/chunk-3WRQP3QE.js +47 -0
- package/dist/commands/chunk-3WWQFCGX.js +18 -0
- package/dist/commands/chunk-3Z425MM3.js +61 -0
- package/dist/commands/chunk-3ZEO3KOM.js +35 -0
- package/dist/commands/chunk-3ZOX4G4U.js +88 -0
- package/dist/commands/chunk-452HWOJ7.js +395 -0
- package/dist/commands/chunk-475EFIJV.js +178 -0
- package/dist/commands/chunk-47UZB54M.js +73 -0
- package/dist/commands/chunk-4DN4XVPL.js +716 -0
- package/dist/commands/chunk-4DVM57T7.js +86 -0
- package/dist/commands/chunk-4EADHJVC.js +247 -0
- package/dist/commands/chunk-4HERA2GY.js +95 -0
- package/dist/commands/chunk-4JI35CVO.js +70 -0
- package/dist/commands/chunk-4L4LNWZ7.js +143 -0
- package/dist/commands/chunk-4N32QKJZ.js +170 -0
- package/dist/commands/chunk-4NRSFLG7.js +185 -0
- package/dist/commands/chunk-4OKRPAUT.js +98 -0
- package/dist/commands/chunk-4PUKDAXL.js +42 -0
- package/dist/commands/chunk-4Q64PG46.js +478 -0
- package/dist/commands/chunk-4UDTQVDD.js +278 -0
- package/dist/commands/chunk-4WR2LEZL.js +123 -0
- package/dist/commands/chunk-4ZHWTTQW.js +99 -0
- package/dist/commands/chunk-4ZJOC6OK.js +298 -0
- package/dist/commands/chunk-4ZQM4I7R.js +533 -0
- package/dist/commands/chunk-54X37JEJ.js +170 -0
- package/dist/commands/chunk-56KW5EOK.js +85 -0
- package/dist/commands/chunk-5CG3XU3O.js +74 -0
- package/dist/commands/chunk-5ESZLHDZ.js +514 -0
- package/dist/commands/chunk-5FBRMARM.js +578 -0
- package/dist/{hooks/chunk-OPSRGWFU.js → commands/chunk-5HVYOIIK.js} +1 -1
- package/dist/commands/chunk-5PCK53WP.js +168 -0
- package/dist/commands/chunk-5RG4S66L.js +47 -0
- package/dist/commands/chunk-5TMAPYQD.js +19 -0
- package/dist/commands/chunk-5UJGACVN.js +137 -0
- package/dist/commands/chunk-5Y7B7FDL.js +44 -0
- package/dist/commands/chunk-5Z6E5ZUV.js +89 -0
- package/dist/commands/chunk-5ZNUH4LV.js +1722 -0
- package/dist/commands/chunk-5ZTQX7OS.js +125 -0
- package/dist/commands/chunk-65E4OZJ7.js +9 -0
- package/dist/commands/chunk-66NX6EXR.js +29 -0
- package/dist/commands/chunk-66TGK5XL.js +84 -0
- package/dist/commands/chunk-6CFHLMKM.js +555 -0
- package/dist/commands/chunk-6CJXLPRI.js +72 -0
- package/dist/commands/chunk-6DDK5XWK.js +74 -0
- package/dist/commands/chunk-6FWV56B3.js +40 -0
- package/dist/commands/chunk-6GQX752S.js +145 -0
- package/dist/commands/chunk-6HRRZANN.js +55 -0
- package/dist/commands/chunk-6I2JM5UX.js +134 -0
- package/dist/commands/chunk-6MAZ55GF.js +1241 -0
- package/dist/commands/chunk-6NGNMIMT.js +20 -0
- package/dist/commands/chunk-6OP63TBT.js +78 -0
- package/dist/commands/chunk-6Q3XUCLM.js +204 -0
- package/dist/commands/chunk-6RUWU2SB.js +45 -0
- package/dist/commands/chunk-6TIVDEKG.js +34 -0
- package/dist/commands/chunk-6UCWAFQY.js +245 -0
- package/dist/commands/chunk-6WKJ3GDA.js +408 -0
- package/dist/commands/chunk-6YURRFRU.js +461 -0
- package/dist/commands/chunk-6YVURZAJ.js +350 -0
- package/dist/commands/chunk-6Z4YZG7P.js +169 -0
- package/dist/commands/chunk-77BIN247.js +122 -0
- package/dist/commands/chunk-7ABHNNY3.js +529 -0
- package/dist/commands/chunk-7C7FOKJK.js +115 -0
- package/dist/commands/chunk-7HAGC6SW.js +1062 -0
- package/dist/commands/chunk-7HCPRVMB.js +76 -0
- package/dist/commands/chunk-7IZJ5MG2.js +72 -0
- package/dist/commands/chunk-7KKUFLH5.js +56 -0
- package/dist/commands/chunk-7LJQMM2K.js +102 -0
- package/dist/commands/chunk-7MJYLUF4.js +99 -0
- package/dist/commands/chunk-7NHZCI5Y.js +704 -0
- package/dist/commands/chunk-7OQ56DVW.js +239 -0
- package/dist/commands/chunk-7VWPGTZO.js +260 -0
- package/dist/commands/chunk-7YZXS3AK.js +30 -0
- package/dist/commands/chunk-A4HOQKOG.js +85 -0
- package/dist/commands/chunk-A6T2N7VC.js +159 -0
- package/dist/commands/chunk-AAUDI7WJ.js +250 -0
- package/dist/commands/chunk-AC26ZUG5.js +259 -0
- package/dist/commands/chunk-ACZ52JPI.js +140 -0
- package/dist/commands/chunk-AJ65WNJB.js +230 -0
- package/dist/commands/chunk-AJWR7D3H.js +15 -0
- package/dist/commands/chunk-AK7SEO4Y.js +177 -0
- package/dist/commands/chunk-AKK56GNX.js +205 -0
- package/dist/commands/chunk-AKQYYHP2.js +461 -0
- package/dist/commands/chunk-ALDAS2WG.js +137 -0
- package/dist/commands/chunk-ANUTT56I.js +85 -0
- package/dist/commands/chunk-AQ3PMSXK.js +76 -0
- package/dist/commands/chunk-ARFBIJFS.js +43 -0
- package/dist/commands/chunk-AVVMDVGO.js +68 -0
- package/dist/commands/chunk-AWLYN2SP.js +64 -0
- package/dist/commands/chunk-AXXEMVRJ.js +23 -0
- package/dist/commands/chunk-B3M5WSGN.js +72 -0
- package/dist/commands/chunk-B5GXZK3E.js +34 -0
- package/dist/commands/chunk-B77ZMVHS.js +80 -0
- package/dist/commands/chunk-B7ZNIEDV.js +351 -0
- package/dist/commands/chunk-BCUDQWYK.js +77 -0
- package/dist/commands/chunk-BF6YX4HE.js +70 -0
- package/dist/commands/chunk-BHRS7HAM.js +272 -0
- package/dist/commands/chunk-BIKGPT52.js +29 -0
- package/dist/commands/chunk-BJA5U4Q7.js +75 -0
- package/dist/commands/chunk-BJKEXXY6.js +15 -0
- package/dist/commands/chunk-BMKWSWWE.js +126 -0
- package/dist/commands/chunk-BMM4RHCG.js +69 -0
- package/dist/commands/chunk-BMTYUJNT.js +59 -0
- package/dist/commands/chunk-BRFQBJ5Y.js +132 -0
- package/dist/commands/chunk-BRHPRDDV.js +127 -0
- package/dist/commands/chunk-BRUBX64M.js +33 -0
- package/dist/commands/chunk-BTZJDHQT.js +46 -0
- package/dist/commands/chunk-BYFC6MD2.js +72 -0
- package/dist/commands/chunk-BYGJ3BCJ.js +803 -0
- package/dist/commands/chunk-BYSPYVLD.js +130 -0
- package/dist/commands/chunk-C2SEDMZ3.js +238 -0
- package/dist/commands/chunk-C54QXJD6.js +4208 -0
- package/dist/commands/chunk-C6QSVO5K.js +56 -0
- package/dist/commands/chunk-CBAKBWSZ.js +332 -0
- package/dist/commands/chunk-CDY4NFQG.js +15 -0
- package/dist/commands/chunk-CFHRNTE5.js +326 -0
- package/dist/commands/chunk-CGLLAEKZ.js +110 -0
- package/dist/commands/chunk-CGYDIYHD.js +49 -0
- package/dist/commands/chunk-CHKYPF5O.js +82 -0
- package/dist/commands/chunk-CJBW6BWG.js +800 -0
- package/dist/commands/chunk-CJKPF5DJ.js +156 -0
- package/dist/commands/chunk-CKUKK7JG.js +252 -0
- package/dist/commands/chunk-CMHGDCGN.js +263 -0
- package/dist/commands/chunk-CNGTHSUS.js +750 -0
- package/dist/commands/chunk-COGKULQH.js +119 -0
- package/dist/commands/chunk-CP2J4RV2.js +3987 -0
- package/dist/commands/chunk-CQUZ6TNQ.js +120 -0
- package/dist/commands/chunk-CQZI7RIK.js +72 -0
- package/dist/commands/chunk-CVJHQOI3.js +153 -0
- package/dist/commands/chunk-CWCKCZS6.js +188 -0
- package/dist/commands/chunk-D5HIP4HT.js +289 -0
- package/dist/commands/chunk-D5OHVIPM.js +17 -0
- package/dist/commands/chunk-D6D6WQR6.js +125 -0
- package/dist/commands/chunk-D7JRJI44.js +297 -0
- package/dist/commands/chunk-D7OAU32Z.js +119 -0
- package/dist/commands/chunk-DAAX7XDS.js +1208 -0
- package/dist/commands/chunk-DBKTFB5V.js +18 -0
- package/dist/commands/chunk-DEZF7QZZ.js +184 -0
- package/dist/commands/chunk-DKM4UJQU.js +10 -0
- package/dist/commands/chunk-DMD74E3F.js +39 -0
- package/dist/commands/chunk-DPJVKTO4.js +41 -0
- package/dist/commands/chunk-DXJQHJQ4.js +73 -0
- package/dist/commands/chunk-DYZOOWVW.js +912 -0
- package/dist/commands/chunk-E33LSO2W.js +20 -0
- package/dist/commands/chunk-EBI2BAKQ.js +47 -0
- package/dist/commands/chunk-EBVS2LKX.js +60 -0
- package/dist/commands/chunk-EDKOSZ3K.js +88 -0
- package/dist/commands/chunk-EFDVE5P5.js +121 -0
- package/dist/commands/chunk-EGIHAEMT.js +72 -0
- package/dist/commands/chunk-EKLU6QR7.js +507 -0
- package/dist/commands/chunk-ELY76WAR.js +65 -0
- package/dist/commands/chunk-EM3HAZF6.js +52 -0
- package/dist/commands/chunk-EMTZAGT5.js +51 -0
- package/dist/commands/chunk-ENFPR7J2.js +53 -0
- package/dist/commands/chunk-ENKFCOVY.js +472 -0
- package/dist/commands/chunk-ERG4QRNG.js +224 -0
- package/dist/commands/chunk-EUGNQCYK.js +139 -0
- package/dist/commands/chunk-EW4NPUMQ.js +363 -0
- package/dist/commands/chunk-EWVR5AEX.js +140 -0
- package/dist/commands/chunk-EXDFKKMH.js +113 -0
- package/dist/commands/chunk-EXWB34R2.js +238 -0
- package/dist/commands/chunk-EYMPBHDN.js +61 -0
- package/dist/commands/chunk-EZ7IPKIH.js +20 -0
- package/dist/commands/chunk-EZSO25UZ.js +80 -0
- package/dist/commands/chunk-F6IQHZYY.js +94 -0
- package/dist/commands/chunk-FCINBCKB.js +77 -0
- package/dist/commands/chunk-FDS65XOJ.js +212 -0
- package/dist/commands/chunk-FFHEGWPK.js +91 -0
- package/dist/commands/chunk-FGG7V473.js +85 -0
- package/dist/commands/chunk-FGL6DBZU.js +71 -0
- package/dist/commands/chunk-FHFWNNUC.js +144 -0
- package/dist/{hooks/chunk-VVNYJWEI.js → commands/chunk-FIUCHMCF.js} +4 -2
- package/dist/commands/chunk-FJX7AENO.js +74 -0
- package/dist/commands/chunk-FKZ5E4JD.js +97 -0
- package/dist/commands/chunk-FMZWRDKH.js +302 -0
- package/dist/commands/chunk-FOKCRIAN.js +67 -0
- package/dist/commands/chunk-FQGWO2ZH.js +43 -0
- package/dist/commands/chunk-FROACLVU.js +525 -0
- package/dist/commands/chunk-FURNDIT3.js +34 -0
- package/dist/commands/chunk-FVDQNMP6.js +93 -0
- package/dist/commands/chunk-FVVZIJUC.js +425 -0
- package/dist/commands/chunk-FWU3H4TX.js +17 -0
- package/dist/commands/chunk-G3HBYHFA.js +16 -0
- package/dist/commands/chunk-G4E4M2P4.js +299 -0
- package/dist/commands/chunk-G5KSL2Q2.js +151 -0
- package/dist/commands/chunk-G6BXCWPH.js +141 -0
- package/dist/commands/chunk-G6XC7V6Y.js +58 -0
- package/dist/commands/chunk-GCPP5XIG.js +90 -0
- package/dist/commands/chunk-GITT5A5A.js +198 -0
- package/dist/commands/chunk-GJYMI2CM.js +48 -0
- package/dist/commands/chunk-GLC47H7I.js +285 -0
- package/dist/commands/chunk-GM3XLC4W.js +63 -0
- package/dist/commands/chunk-GO3GH7FG.js +75 -0
- package/dist/commands/chunk-GPTO6IZG.js +29 -0
- package/dist/commands/chunk-GUR54ELE.js +328 -0
- package/dist/commands/chunk-GW4UWR3O.js +126 -0
- package/dist/commands/chunk-GY4DMCKS.js +306 -0
- package/dist/commands/chunk-H6JQRHDC.js +80 -0
- package/dist/commands/chunk-HATKF6VX.js +173 -0
- package/dist/commands/chunk-HE5S4XRE.js +21 -0
- package/dist/commands/chunk-HG2NZQD5.js +135 -0
- package/dist/commands/chunk-HH3CVIFU.js +93 -0
- package/dist/commands/chunk-HHBC6QZE.js +95 -0
- package/dist/commands/chunk-HHMMGDMP.js +469 -0
- package/dist/commands/chunk-HI5WPM6C.js +127 -0
- package/dist/commands/chunk-HIU2WXB6.js +26 -0
- package/dist/commands/chunk-HLKAFSN4.js +76 -0
- package/dist/commands/chunk-HLUS2M3D.js +7 -0
- package/dist/commands/chunk-HQ2HSZBN.js +69 -0
- package/dist/commands/chunk-HQGNXR6I.js +245 -0
- package/dist/commands/chunk-HQSWPRUF.js +61 -0
- package/dist/commands/chunk-HRLGFRAV.js +21 -0
- package/dist/commands/chunk-HTIDHEEN.js +108 -0
- package/dist/commands/chunk-HVCQYZVD.js +38 -0
- package/dist/commands/chunk-HWEZRNPL.js +66 -0
- package/dist/commands/chunk-HX3FFIO5.js +74 -0
- package/dist/commands/chunk-HXCZ3KWS.js +41 -0
- package/dist/commands/chunk-HXDTA5VU.js +208 -0
- package/dist/commands/chunk-I2KCGKJI.js +107 -0
- package/dist/commands/chunk-I63RNFFR.js +213 -0
- package/dist/commands/chunk-IAD4WLLI.js +98 -0
- package/dist/commands/chunk-IB5TT73I.js +177 -0
- package/dist/commands/chunk-IBAYXCMU.js +156 -0
- package/dist/commands/chunk-IF3EIFK4.js +7515 -0
- package/dist/commands/chunk-IGD6QJPH.js +91 -0
- package/dist/commands/chunk-IGDJNXX2.js +49 -0
- package/dist/commands/chunk-ILGPZ47M.js +33 -0
- package/dist/commands/chunk-ILIITIMQ.js +126 -0
- package/dist/commands/chunk-IRGDMSTI.js +42 -0
- package/dist/commands/chunk-IW6NWCSN.js +10 -0
- package/dist/commands/chunk-IYJEBWW5.js +44 -0
- package/dist/commands/chunk-J22PSIXR.js +418 -0
- package/dist/commands/chunk-J3TKZLHA.js +11 -0
- package/dist/commands/chunk-J66YBAAM.js +161 -0
- package/dist/commands/chunk-J6WKZRV2.js +391 -0
- package/dist/commands/chunk-J7IO3AYH.js +179 -0
- package/dist/commands/chunk-JAKC2BHX.js +88 -0
- package/dist/commands/chunk-JCAQ7B6J.js +124 -0
- package/dist/commands/chunk-JFLFGLE4.js +32 -0
- package/dist/commands/chunk-JHN6RCE6.js +123 -0
- package/dist/commands/chunk-JIGBNCDR.js +88 -0
- package/dist/commands/chunk-JJHWTFWQ.js +76 -0
- package/dist/commands/chunk-JJRKTWLK.js +64 -0
- package/dist/commands/chunk-JKOGWGQM.js +92 -0
- package/dist/commands/chunk-JM6EVOFN.js +172 -0
- package/dist/commands/chunk-JQXPLMCO.js +81 -0
- package/dist/commands/chunk-JTU5A4JI.js +55 -0
- package/dist/commands/chunk-JV24VP2O.js +81 -0
- package/dist/commands/chunk-JVKXJ763.js +45 -0
- package/dist/commands/chunk-JZHY7D6D.js +71 -0
- package/dist/commands/chunk-JZK33TA5.js +99 -0
- package/dist/commands/chunk-JZOTCPX2.js +115 -0
- package/dist/commands/chunk-K275REYP.js +37 -0
- package/dist/commands/chunk-K2WVYHCP.js +18 -0
- package/dist/commands/chunk-K4G3HOKS.js +105 -0
- package/dist/commands/chunk-K64EIHD2.js +138 -0
- package/dist/commands/chunk-KB3OQWDT.js +71 -0
- package/dist/commands/chunk-KCFOP5RI.js +1310 -0
- package/dist/commands/chunk-KGE4AS2Y.js +134 -0
- package/dist/commands/chunk-KIILCKQR.js +220 -0
- package/dist/commands/chunk-KK2SL42W.js +241 -0
- package/dist/commands/chunk-KK7TEL5G.js +121 -0
- package/dist/commands/chunk-KKIMVXAP.js +280 -0
- package/dist/commands/chunk-KODXWMBX.js +77 -0
- package/dist/commands/chunk-KPSKWTOS.js +208 -0
- package/dist/commands/chunk-KSR23NYN.js +33 -0
- package/dist/commands/chunk-KTLR4Y32.js +21 -0
- package/dist/commands/chunk-KTV2HNWB.js +339 -0
- package/dist/commands/chunk-KVHNQHX3.js +100 -0
- package/dist/commands/chunk-KVURNO74.js +187 -0
- package/dist/commands/chunk-KWYQR5MK.js +269 -0
- package/dist/commands/chunk-KXHXMERX.js +214 -0
- package/dist/commands/chunk-KXK2A2HB.js +158 -0
- package/dist/commands/chunk-KZ5BBBMO.js +271 -0
- package/dist/commands/chunk-KZ7HD37E.js +121 -0
- package/dist/commands/chunk-KZSM5M5P.js +89 -0
- package/dist/commands/chunk-KZZWPUJW.js +25 -0
- package/dist/commands/chunk-L7DAL54N.js +347 -0
- package/dist/commands/chunk-LAR76BFA.js +114 -0
- package/dist/commands/chunk-LAYSCY4L.js +6 -0
- package/dist/commands/chunk-LB557AHJ.js +192 -0
- package/dist/commands/chunk-LBLII7BS.js +14 -0
- package/dist/commands/chunk-LEB2VP7F.js +77 -0
- package/dist/commands/chunk-LHKXJD6L.js +303 -0
- package/dist/commands/chunk-LJXKVLYI.js +229 -0
- package/dist/commands/chunk-LJZERYLG.js +133 -0
- package/dist/commands/chunk-LOOFYHUM.js +773 -0
- package/dist/commands/chunk-LPSULLNK.js +45 -0
- package/dist/commands/chunk-LQXFVZTS.js +13 -0
- package/dist/commands/chunk-LR22UK5W.js +17 -0
- package/dist/commands/chunk-LT7QSHR4.js +995 -0
- package/dist/commands/chunk-LULJUD6P.js +131 -0
- package/dist/commands/chunk-LUXWDMKI.js +426 -0
- package/dist/commands/chunk-LWAXXZPS.js +118 -0
- package/dist/commands/chunk-LX7TIEMI.js +1612 -0
- package/dist/commands/chunk-LYO6TX5L.js +47 -0
- package/dist/commands/chunk-LZ5QXE5N.js +244 -0
- package/dist/commands/chunk-M3ZDYCUF.js +117 -0
- package/dist/commands/chunk-M4UV3BEV.js +313 -0
- package/dist/commands/chunk-M6JDU5EK.js +133 -0
- package/dist/commands/chunk-MDKDJF2K.js +160 -0
- package/dist/commands/chunk-MDLOETXL.js +211 -0
- package/dist/commands/chunk-MFBNNTBM.js +44 -0
- package/dist/commands/chunk-MGF64OHV.js +32 -0
- package/dist/commands/chunk-MI2OS6TL.js +132 -0
- package/dist/commands/chunk-MLW4S35K.js +389 -0
- package/dist/commands/chunk-MMTVQOCP.js +211 -0
- package/dist/commands/chunk-MN425CU6.js +63 -0
- package/dist/commands/chunk-MOIOSCZM.js +171 -0
- package/dist/commands/chunk-MPGJ4ONJ.js +634 -0
- package/dist/commands/chunk-MRORPFSO.js +402 -0
- package/dist/commands/chunk-MSPIR3OA.js +32 -0
- package/dist/commands/chunk-MUGTOJUL.js +319 -0
- package/dist/commands/chunk-MVHPRYHE.js +91 -0
- package/dist/commands/chunk-MWO6FOSZ.js +393 -0
- package/dist/commands/chunk-MXC4IBZ7.js +104 -0
- package/dist/commands/chunk-MY3RSOS5.js +52 -0
- package/dist/commands/chunk-N7QTMTST.js +210 -0
- package/dist/commands/chunk-NDBX7LSS.js +32 -0
- package/dist/commands/chunk-NDWZTWXV.js +229 -0
- package/dist/commands/chunk-NEGJ77RV.js +173 -0
- package/dist/commands/chunk-NEGRE5VW.js +101 -0
- package/dist/commands/chunk-NFKULY26.js +48 -0
- package/dist/commands/chunk-NFPD2P3V.js +53 -0
- package/dist/commands/chunk-NHIW7JE6.js +335 -0
- package/dist/commands/chunk-NILSN7A4.js +158 -0
- package/dist/commands/chunk-NOLFSPOB.js +74 -0
- package/dist/commands/chunk-NSAVEXVR.js +353 -0
- package/dist/commands/chunk-NT67QTZO.js +65 -0
- package/dist/commands/chunk-NU7W6QGT.js +155 -0
- package/dist/commands/chunk-NUR4FQHM.js +21 -0
- package/dist/commands/chunk-NYWGJLBU.js +19 -0
- package/dist/commands/chunk-O3NDWYNT.js +68 -0
- package/dist/commands/chunk-OAAVY2JK.js +49 -0
- package/dist/commands/chunk-OF4BY4N7.js +32 -0
- package/dist/commands/chunk-OGS2DK7I.js +47 -0
- package/dist/commands/chunk-OHNP3QL2.js +186 -0
- package/dist/commands/chunk-OIPV3PWW.js +870 -0
- package/dist/commands/chunk-OIX2363L.js +16 -0
- package/dist/commands/chunk-OJ65BZBV.js +646 -0
- package/dist/commands/chunk-OKYFQJW3.js +22 -0
- package/dist/commands/chunk-OKZWEVR4.js +352 -0
- package/dist/commands/chunk-OL6IF4JC.js +20 -0
- package/dist/commands/chunk-OMPRILFH.js +29 -0
- package/dist/commands/chunk-OOWGH2RG.js +85 -0
- package/dist/commands/chunk-OP2RFVLS.js +102 -0
- package/dist/commands/chunk-ORKVN2LO.js +56 -0
- package/dist/commands/chunk-OSBWXZJ4.js +492 -0
- package/dist/commands/chunk-OT3UMEWK.js +47 -0
- package/dist/commands/chunk-OVWPZDWP.js +64 -0
- package/dist/commands/chunk-OWYK2BEJ.js +1222 -0
- package/dist/commands/chunk-OX3VQLV2.js +488 -0
- package/dist/commands/chunk-OZJP77UM.js +103 -0
- package/dist/commands/chunk-OZZWRJQI.js +246 -0
- package/dist/commands/chunk-P3H3DKTE.js +69 -0
- package/dist/commands/chunk-P4D5RESF.js +88 -0
- package/dist/commands/chunk-P4KIQRSL.js +119 -0
- package/dist/commands/chunk-P5SOYWH2.js +37 -0
- package/dist/commands/chunk-P7FPXAHP.js +29 -0
- package/dist/commands/chunk-PBOS7MTW.js +6 -0
- package/dist/commands/chunk-PE7B7242.js +84 -0
- package/dist/commands/chunk-PFO7EYAP.js +45 -0
- package/dist/commands/chunk-PHLOTUB7.js +366 -0
- package/dist/commands/chunk-PTNQCCIB.js +41 -0
- package/dist/commands/chunk-PTZEFQUX.js +211 -0
- package/dist/commands/chunk-PYOK73QE.js +44 -0
- package/dist/commands/chunk-Q426ZSZ4.js +131 -0
- package/dist/commands/chunk-Q5Q2QYVU.js +112 -0
- package/dist/commands/chunk-Q6SKKQVJ.js +34 -0
- package/dist/commands/chunk-Q7EEIOAD.js +120 -0
- package/dist/commands/chunk-QABRNGQV.js +88 -0
- package/dist/commands/chunk-QAHFPCFR.js +50 -0
- package/dist/commands/chunk-QDFVVRQP.js +92 -0
- package/dist/commands/chunk-QF4WC2AE.js +10 -0
- package/dist/commands/chunk-QGAERR7D.js +99 -0
- package/dist/commands/chunk-QGATHT4S.js +114 -0
- package/dist/commands/chunk-QHWJJ6X5.js +53 -0
- package/dist/commands/chunk-QJRVDE7T.js +307 -0
- package/dist/commands/chunk-QKTTKAXM.js +119 -0
- package/dist/commands/chunk-QMDKDQKW.js +114 -0
- package/dist/commands/chunk-QOSC5RKD.js +18 -0
- package/dist/commands/chunk-QQ4CIYMF.js +132 -0
- package/dist/commands/chunk-QQBMVC5W.js +227 -0
- package/dist/commands/chunk-QV5FKMOU.js +80 -0
- package/dist/commands/chunk-QVOFWFWC.js +134 -0
- package/dist/commands/chunk-QWWTC3XR.js +109 -0
- package/dist/commands/chunk-QX2R6UJG.js +15 -0
- package/dist/commands/chunk-QXQ56E56.js +27 -0
- package/dist/commands/chunk-R2THGPI3.js +99 -0
- package/dist/commands/chunk-R54Z2Z3X.js +114 -0
- package/dist/commands/chunk-R6QE5VJG.js +46 -0
- package/dist/commands/chunk-R7IT5VOL.js +27 -0
- package/dist/commands/chunk-RBU2NKHF.js +44 -0
- package/dist/commands/chunk-RDRN56E4.js +92 -0
- package/dist/commands/chunk-RG53UFNW.js +418 -0
- package/dist/commands/chunk-RGDFWJPZ.js +135 -0
- package/dist/commands/chunk-RGGEQM6G.js +140 -0
- package/dist/commands/chunk-RH6ZWJOA.js +77 -0
- package/dist/commands/chunk-RHKCWJQX.js +62 -0
- package/dist/commands/chunk-RKIAX4DZ.js +191 -0
- package/dist/commands/chunk-RLBFEHHC.js +300 -0
- package/dist/commands/chunk-RMDLFLPE.js +58 -0
- package/dist/commands/chunk-RN2YDNLF.js +229 -0
- package/dist/commands/chunk-ROJXMBXP.js +85 -0
- package/dist/commands/chunk-RRAIRS2T.js +54 -0
- package/dist/commands/chunk-RS764ZMU.js +46 -0
- package/dist/commands/chunk-RSSJWMQS.js +30 -0
- package/dist/commands/chunk-RUIBQMOV.js +38 -0
- package/dist/commands/chunk-RUQY5TS3.js +83 -0
- package/dist/commands/chunk-RVUJ6F5L.js +181 -0
- package/dist/commands/chunk-RW64VHEB.js +130 -0
- package/dist/commands/chunk-RXAZJMSZ.js +18 -0
- package/dist/commands/chunk-RXYMJPJB.js +114 -0
- package/dist/commands/chunk-S4M6UWR2.js +103 -0
- package/dist/commands/chunk-S4X5PJV7.js +40 -0
- package/dist/commands/chunk-SADJPNDB.js +67 -0
- package/dist/commands/chunk-SASX3W2M.js +99 -0
- package/dist/commands/chunk-SBGTCT2C.js +89 -0
- package/dist/commands/chunk-SFNBUB6D.js +110 -0
- package/dist/commands/chunk-SJ2ZN575.js +90 -0
- package/dist/commands/chunk-SP7DKYGU.js +1263 -0
- package/dist/commands/chunk-SRG6PKVS.js +49 -0
- package/dist/commands/chunk-SSL6A3Y4.js +165 -0
- package/dist/commands/chunk-SV4FZR24.js +78 -0
- package/dist/commands/chunk-SVAKCXZ7.js +44 -0
- package/dist/commands/chunk-SVTS7ACS.js +18 -0
- package/dist/commands/chunk-SVV4U5AR.js +62 -0
- package/dist/commands/chunk-SXJM4DZ5.js +40 -0
- package/dist/commands/chunk-SXULS6DX.js +112 -0
- package/dist/commands/chunk-SYB3M632.js +62 -0
- package/dist/commands/chunk-SYOXIKB7.js +705 -0
- package/dist/commands/chunk-SZG5HDNP.js +321 -0
- package/dist/commands/chunk-T25S4QHL.js +52 -0
- package/dist/commands/chunk-T4F33UKZ.js +114 -0
- package/dist/commands/chunk-T4UYEHWG.js +50 -0
- package/dist/commands/chunk-TAEGXID2.js +58 -0
- package/dist/commands/chunk-TBIX5FRN.js +106 -0
- package/dist/commands/chunk-TBNQIFWL.js +101 -0
- package/dist/commands/chunk-TCBUX52E.js +701 -0
- package/dist/commands/chunk-TEPYEUYG.js +585 -0
- package/dist/commands/chunk-TFLHYC2F.js +141 -0
- package/dist/commands/chunk-TJKM56WJ.js +109 -0
- package/dist/commands/chunk-TLAB552K.js +445 -0
- package/dist/commands/chunk-TP6L4W3W.js +82 -0
- package/dist/commands/chunk-TR7WWYD5.js +60 -0
- package/dist/commands/chunk-TUIFS5E7.js +72 -0
- package/dist/commands/chunk-TVZXG4Y4.js +197 -0
- package/dist/commands/chunk-TYNH2R66.js +1150 -0
- package/dist/commands/chunk-U3IVVR4W.js +33 -0
- package/dist/commands/chunk-U5HQQWRE.js +20 -0
- package/dist/commands/chunk-U5P6G3UV.js +77 -0
- package/dist/commands/chunk-U7XU5RG3.js +86 -0
- package/dist/commands/chunk-U7Y6RKLK.js +168 -0
- package/dist/commands/chunk-UCI4AL3Q.js +35 -0
- package/dist/commands/chunk-UCUSCLEK.js +90 -0
- package/dist/commands/chunk-UGCUSRZF.js +17 -0
- package/dist/commands/chunk-UIMMWH7U.js +98 -0
- package/dist/commands/chunk-UKBBWMLE.js +1189 -0
- package/dist/commands/chunk-ULVVGGTY.js +64 -0
- package/dist/commands/chunk-UNMSZGSG.js +269 -0
- package/dist/commands/chunk-UOVUUVDK.js +18 -0
- package/dist/commands/chunk-URDT2O2K.js +36 -0
- package/dist/commands/chunk-UREXZJDB.js +210 -0
- package/dist/commands/chunk-UTHUX7VU.js +88 -0
- package/dist/commands/chunk-UWLLZQJB.js +110 -0
- package/dist/commands/chunk-V4Z7G4UH.js +73 -0
- package/dist/commands/chunk-V5FD7DVV.js +48 -0
- package/dist/commands/chunk-V5OUZFWK.js +128 -0
- package/dist/commands/chunk-VCPGFBMN.js +655 -0
- package/dist/commands/chunk-VCR77BHO.js +8 -0
- package/dist/commands/chunk-VDGNXSP3.js +174 -0
- package/dist/commands/chunk-VGPIQNDB.js +24 -0
- package/dist/commands/chunk-VHRNXWVP.js +28 -0
- package/dist/commands/chunk-VJE3RJAX.js +23 -0
- package/dist/commands/chunk-VJS2MCLA.js +412 -0
- package/dist/commands/chunk-VK6D5CWA.js +161 -0
- package/dist/commands/chunk-VOF3N4WO.js +114 -0
- package/dist/commands/chunk-VQRT32JB.js +52 -0
- package/dist/commands/chunk-VQVPAVQ3.js +45 -0
- package/dist/commands/chunk-VV4TQYGD.js +38 -0
- package/dist/commands/chunk-W2IA2LV3.js +15 -0
- package/dist/commands/chunk-W3FX7FYN.js +84 -0
- package/dist/commands/chunk-W6MVQEMO.js +109 -0
- package/dist/commands/chunk-W7DRUOF7.js +122 -0
- package/dist/commands/chunk-WAEN2RTT.js +161 -0
- package/dist/commands/chunk-WB4T3VY2.js +104 -0
- package/dist/commands/chunk-WCEUMOKK.js +84 -0
- package/dist/commands/chunk-WJ4NEDNI.js +288 -0
- package/dist/commands/chunk-WL5JHB3I.js +12 -0
- package/dist/commands/chunk-WMMGXJXP.js +92 -0
- package/dist/commands/chunk-WOFLW2LX.js +26 -0
- package/dist/commands/chunk-WPAQUMHC.js +28 -0
- package/dist/commands/chunk-WQ6FS544.js +35 -0
- package/dist/commands/chunk-WTH6NTXU.js +128 -0
- package/dist/commands/chunk-WVR4RUFP.js +327 -0
- package/dist/commands/chunk-WWVYEHQT.js +272 -0
- package/dist/commands/chunk-X3TNPALI.js +213 -0
- package/dist/commands/chunk-X5XYKDOD.js +7 -0
- package/dist/commands/chunk-XC6GG5JR.js +78 -0
- package/dist/commands/chunk-XDF25GSU.js +536 -0
- package/dist/commands/chunk-XFPEUYDV.js +67 -0
- package/dist/commands/chunk-XFWI6WHH.js +60 -0
- package/dist/commands/chunk-XGMRAKSL.js +85 -0
- package/dist/commands/chunk-XHGWMD3L.js +104 -0
- package/dist/commands/chunk-XI2ABCRX.js +209 -0
- package/dist/commands/chunk-XKSUBUIH.js +116 -0
- package/dist/commands/chunk-XPBF5DG3.js +419 -0
- package/dist/commands/chunk-XSKB6ZUA.js +123 -0
- package/dist/commands/chunk-XUMYPESL.js +160 -0
- package/dist/commands/chunk-XXC32PVL.js +541 -0
- package/dist/commands/chunk-XXN2EZBY.js +133 -0
- package/dist/commands/chunk-XXNEY4B3.js +110 -0
- package/dist/commands/chunk-XZQWEVR3.js +84 -0
- package/dist/commands/chunk-Y27PTXXI.js +258 -0
- package/dist/commands/chunk-Y2RNUX4W.js +8 -0
- package/dist/commands/chunk-Y4EBUI6M.js +237 -0
- package/dist/commands/chunk-YAU3LYNF.js +60 -0
- package/dist/commands/chunk-YDURQICF.js +204 -0
- package/dist/commands/chunk-YGFOGA7C.js +1153 -0
- package/dist/commands/chunk-YHJ2AJMA.js +66 -0
- package/dist/commands/chunk-YIA6FC3K.js +78 -0
- package/dist/commands/chunk-YM77CF4D.js +183 -0
- package/dist/commands/chunk-YNPRJCEO.js +81 -0
- package/dist/commands/chunk-YTBQAD5W.js +170 -0
- package/dist/commands/chunk-YVH2OLDS.js +104 -0
- package/dist/commands/chunk-Z3WGHIVB.js +122 -0
- package/dist/commands/chunk-ZAAHZY2A.js +19 -0
- package/dist/commands/chunk-ZBFNQUY7.js +12 -0
- package/dist/commands/chunk-ZBZ5DDCH.js +1866 -0
- package/dist/commands/chunk-ZECFKW7D.js +60 -0
- package/dist/commands/chunk-ZLRUHSOP.js +48 -0
- package/dist/commands/chunk-ZNR75OXP.js +444 -0
- package/dist/commands/chunk-ZNX2LJCQ.js +29 -0
- package/dist/commands/chunk-ZSOR4ISJ.js +75 -0
- package/dist/commands/chunk-ZVAIIHBE.js +63 -0
- package/dist/commands/chunk-ZYFHYQA7.js +51 -0
- package/dist/commands/chunk-ZYGOZT4J.js +39 -0
- package/dist/commands/chunk-ZZFFSQF4.js +218 -0
- package/dist/commands/chunk-ZZULXNC2.js +47 -0
- package/dist/commands/chunk-ZZXO6TFH.js +232 -0
- package/dist/commands/ci-timing-cli.js +76 -0
- package/dist/commands/clone-scan-cli.js +189 -0
- package/dist/commands/code-symbol-cli.js +185 -0
- package/dist/commands/codex-hook-adapter.js +356 -0
- package/dist/commands/command-derive.js +802 -0
- package/dist/commands/cost-audit-main.js +209 -0
- package/dist/commands/cost-main.js +28 -0
- package/dist/commands/cspell-cached.js +159 -0
- package/dist/commands/defect-origin-main.js +222 -0
- package/dist/commands/defect-report-main.js +289 -0
- package/dist/commands/delegation-cli.js +65 -0
- package/dist/commands/diff-summary-cli.js +147 -0
- package/dist/commands/disposition-cli.js +411 -0
- package/dist/commands/doctor.js +267 -0
- package/dist/commands/document-read-cli.js +119 -844
- package/dist/commands/document-section-main.js +106 -835
- package/dist/commands/dogfood-commit-cli.js +102 -0
- package/dist/commands/e2e-retry-check.js +79 -0
- package/dist/commands/edit-files-cli.js +147 -0
- package/dist/commands/effect-audit-cli.js +320 -0
- package/dist/commands/epic-audit-main.js +160 -0
- package/dist/commands/epic-bundle-main.js +201 -0
- package/dist/commands/epic-check.js +91 -0
- package/dist/commands/epic-main.js +224 -0
- package/dist/commands/epic-next-main.js +159 -0
- package/dist/commands/eval-run.js +838 -0
- package/dist/commands/fanout-cli.js +86 -0
- package/dist/commands/format-edited-cli.js +118 -0
- package/dist/commands/format.js +140 -0
- package/dist/commands/fresh-machine-cli.js +691 -0
- package/dist/commands/gh-usage-cli.js +224 -0
- package/dist/commands/git-followup-workflow.js +2027 -0
- package/dist/commands/git-gh-checks-failed-main.js +156 -0
- package/dist/commands/git-workflow.js +603 -0
- package/dist/commands/github-release-cli.js +276 -0
- package/dist/commands/hook-ledger-cli.js +364 -0
- package/dist/commands/init-main.js +99 -0
- package/dist/commands/inputs.json +2795 -0
- package/dist/commands/issue-ack-cli.js +106 -0
- package/dist/commands/issue-already-done-cli.js +310 -0
- package/dist/commands/issue-body-cli.js +186 -0
- package/dist/commands/issue-cite-main.js +163 -0
- package/dist/commands/issue-comment-main.js +76 -0
- package/dist/commands/issue-consolidate-cli.js +330 -0
- package/dist/commands/issue-file-main.js +423 -0
- package/dist/commands/issue-fold-existing-cli.js +508 -0
- package/dist/commands/issue-fold-main.js +114 -0
- package/dist/commands/issue-lint-main.js +127 -0
- package/dist/commands/issue-measured-cli.js +210 -0
- package/dist/commands/issue-plan-cli.js +354 -0
- package/dist/commands/issue-premise-unmet-cli.js +273 -0
- package/dist/commands/issue-priority-cli.js +185 -0
- package/dist/commands/issue-read-main.js +80 -0
- package/dist/commands/issue-release-class-cli.js +120 -0
- package/dist/commands/issue-release-main.js +72 -0
- package/dist/commands/issue-scout-main.js +205 -0
- package/dist/commands/issue-spill-main.js +568 -0
- package/dist/commands/issue-state-main.js +77 -0
- package/dist/commands/issue-tick-cli.js +113 -0
- package/dist/commands/josh-completion.js +153 -0
- package/dist/commands/lane-adopt-cli.js +275 -0
- package/dist/commands/lane-breakdown-cli.js +731 -0
- package/dist/commands/lane-cli.js +869 -0
- package/dist/commands/lane-launch-main.js +103 -0
- package/dist/commands/lane-limit-cli.js +288 -0
- package/dist/commands/lane-measure-cli.js +1913 -0
- package/dist/commands/lane-pause-cli.js +255 -0
- package/dist/commands/lane-plan-cli.js +329 -0
- package/dist/commands/lane-resolve-cli.js +301 -0
- package/dist/commands/lane-restart-cli.js +393 -0
- package/dist/commands/lane-why-cli.js +310 -0
- package/dist/commands/lane-withdraw-cli.js +192 -0
- package/dist/commands/latest-corepack.js +278 -0
- package/dist/commands/latest-if-required-cli.js +124 -0
- package/dist/commands/latest-lane-guard-main.js +16 -0
- package/dist/commands/latest-scope-main.js +38 -0
- package/dist/commands/latest-update.js +449 -0
- package/dist/commands/lines-command.js +121 -0
- package/dist/commands/lint-parallel-main.js +135 -0
- package/dist/commands/lint-related.js +584 -0
- package/dist/commands/lint-rule.js +306 -0
- package/dist/commands/lockfile-policy.js +107 -0
- package/dist/commands/main-merge-main.js +61 -0
- package/dist/commands/main-sync-main.js +60 -0
- package/dist/commands/managed-config-scope-cli.js +66 -0
- package/dist/commands/measure-rerun-cli.js +124 -0
- package/dist/commands/metrics-command.js +892 -0
- package/dist/commands/observation-depth-cli.js +109 -0
- package/dist/commands/observation-record-cli.js +87 -0
- package/dist/commands/observations-flush-cli.js +117 -0
- package/dist/commands/oracle-list-cli.js +73 -0
- package/dist/commands/overrides-check.js +112 -0
- package/dist/commands/package-scout-cli.js +537 -0
- package/dist/commands/pin-verify-cli.js +88 -0
- package/dist/commands/plan-consumers-main.js +49 -0
- package/dist/commands/plan-scaffold-cli.js +408 -0
- package/dist/commands/port-command.js +64 -0
- package/dist/commands/pr-classification-main.js +37 -0
- package/dist/commands/pre-commit-lint.js +162 -0
- package/dist/commands/pre-commit-type-check.js +211 -0
- package/dist/commands/pre-push-unit.js +271 -0
- package/dist/commands/pretool-guard-cli.js +204 -0
- package/dist/commands/prevent-main-commit.js +42 -0
- package/dist/commands/project-profile-cli.js +59 -0
- package/dist/commands/propagate.js +368 -0
- package/dist/commands/prose-stale-cli.js +129 -0
- package/dist/commands/publish-tag-cli.js +30 -0
- package/dist/commands/publishable-range-check.js +191 -0
- package/dist/commands/read-files-cli.js +81 -0
- package/dist/commands/read-set-cli.js +158 -1745
- package/dist/commands/reconcile-templates.js +135 -0
- package/dist/commands/refactor-scan-cli.js +175 -0
- package/dist/commands/release-cli.js +752 -0
- package/dist/commands/release-scope-main.js +82 -0
- package/dist/commands/rename-cli.js +430 -0
- package/dist/commands/repo-party-cli.js +58 -0
- package/dist/commands/report-lint-cli.js +124 -0
- package/dist/commands/report-template-cli.js +69 -0
- package/dist/commands/reserved-run.js +127 -0
- package/dist/commands/retrospective-cli.js +557 -0
- package/dist/commands/review-attest-cli.js +118 -0
- package/dist/commands/review-brief-main.js +265 -0
- package/dist/commands/review-findings-cli.js +114 -0
- package/dist/commands/review-pair-cli.js +392 -0
- package/dist/commands/review-record-main.js +247 -0
- package/dist/commands/review-round2-cli.js +350 -0
- package/dist/commands/review-stops-cli.js +149 -0
- package/dist/commands/review-submit-cli.js +628 -0
- package/dist/commands/rule-list.js +182 -0
- package/dist/commands/rule-value-cli.js +1060 -0
- package/dist/commands/ruleset-check-cli.js +67 -0
- package/dist/commands/run-add-cli.js +274 -0
- package/dist/commands/run-board-main.js +276 -0
- package/dist/commands/run-carry-cli.js +644 -0
- package/dist/commands/run-chain-cli.js +560 -0
- package/dist/commands/run-cut-cli.js +714 -0
- package/dist/commands/run-ending-cli.js +166 -0
- package/dist/commands/run-entry-cli.js +1063 -0
- package/dist/commands/run-event-cli.js +298 -0
- package/dist/commands/run-handoff-cli.js +368 -0
- package/dist/commands/run-handoff-lanes-cli.js +233 -0
- package/dist/commands/run-hold-main.js +205 -0
- package/dist/commands/run-liveness-cli.js +190 -0
- package/dist/commands/run-merge-main.js +249 -0
- package/dist/commands/run-next-cli.js +241 -0
- package/dist/commands/run-park-cli.js +412 -0
- package/dist/commands/run-pause-cli.js +348 -0
- package/dist/commands/run-pickup-cli.js +196 -0
- package/dist/commands/run-prep-main.js +210 -21168
- package/dist/commands/run-prime-cli.js +301 -0
- package/dist/commands/run-progress-main.js +671 -0
- package/dist/commands/run-report-cli.js +377 -0
- package/dist/commands/run-review-cli.js +796 -0
- package/dist/commands/run-ship-cli.js +2620 -0
- package/dist/commands/run-ship-evidence-cli.js +289 -0
- package/dist/commands/run-ship-lap-W5T2VHFC.js +30 -0
- package/dist/commands/run-ship-wait-main.js +148 -0
- package/dist/commands/run-split-cli.js +527 -0
- package/dist/commands/run-stale-main.js +255 -0
- package/dist/commands/run-status-cli.js +217 -0
- package/dist/commands/run-step-cli.js +428 -27653
- package/dist/commands/run-tail-cli.js +119 -0
- package/dist/commands/run-tidy-main.js +403 -0
- package/dist/commands/run-wake-main.js +290 -0
- package/dist/commands/run-watcher-guard-cli.js +129 -0
- package/dist/commands/secretlint-scan.js +84 -0
- package/dist/commands/security-audit-main.js +151 -0
- package/dist/commands/security-audit-provision-main.js +52 -0
- package/dist/commands/selfcheck-cli.js +410 -0
- package/dist/commands/session-language-main.js +140 -0
- package/dist/commands/sonar-hotspots-cli.js +133 -0
- package/dist/commands/sonar-new-code-cli.js +143 -0
- package/dist/commands/split-assess-cli.js +139 -0
- package/dist/commands/split-child-recover-cli.js +169 -0
- package/dist/commands/start.js +709 -0
- package/dist/commands/stash-pop-main.js +26 -0
- package/dist/commands/stash-push-main.js +30 -0
- package/dist/commands/stop-guard.js +568 -0
- package/dist/commands/sync-main.js +58 -0
- package/dist/commands/telegram-test-main.js +64 -0
- package/dist/commands/test-declared.js +256 -0
- package/dist/commands/test-e2e-guard.js +201 -0
- package/dist/commands/test-pinned-main.js +190 -0
- package/dist/commands/test-reach-cli.js +112 -0
- package/dist/commands/test-red-main.js +46 -0
- package/dist/commands/test-related-ZCNC46MS.js +113 -0
- package/dist/commands/test-related-main.js +224 -0
- package/dist/commands/test-unit-guard-main.js +88 -0
- package/dist/commands/time-cli.js +353 -0
- package/dist/commands/time-density-cli.js +182 -0
- package/dist/commands/tree-status-cli.js +172 -0
- package/dist/commands/type-check-command.js +75 -0
- package/dist/commands/ui-routes-cli.js +135 -0
- package/dist/commands/ui-shot-cli.js +131 -0
- package/dist/commands/uninstall.js +425 -0
- package/dist/commands/unused-members-STULPRBU.js +331 -0
- package/dist/commands/unused-members-cli.js +55 -0
- package/dist/commands/upstream-interrupt-main.js +453 -0
- package/dist/commands/usage-tee-cli.js +60 -0
- package/dist/commands/verification-gate.js +808 -0
- package/dist/commands/version-check.js +497 -0
- package/dist/hooks/audit-provision.js +20 -9
- package/dist/hooks/chunk-5CUXGQT6.js +8353 -0
- package/dist/hooks/{chunk-UJ3FPMMM.js → chunk-5R5YFQR5.js} +445 -142
- package/dist/hooks/chunk-6RLY27FT.js +232 -0
- package/dist/hooks/chunk-6YGMIODI.js +86 -0
- package/dist/hooks/chunk-AO4TOV4V.js +5026 -0
- package/dist/hooks/chunk-CY3ADSDR.js +28580 -0
- package/dist/hooks/chunk-FOW4B7OQ.js +1795 -0
- package/dist/hooks/chunk-G5WSPYJ6.js +5663 -0
- package/dist/hooks/{chunk-CQD4LJE6.js → chunk-HHIVWGHX.js} +3290 -1279
- package/dist/hooks/chunk-IURJANNZ.js +1082 -0
- package/dist/hooks/chunk-LRD2ERRI.js +299 -0
- package/dist/hooks/chunk-OV22V63P.js +10980 -0
- package/dist/hooks/chunk-SAAPRHTK.js +43 -0
- package/dist/hooks/chunk-SXABK6UV.js +321 -0
- package/dist/hooks/chunk-U3ON2GBN.js +12 -0
- package/dist/hooks/chunk-YEURBB4L.js +32 -0
- package/dist/hooks/codex-hook-adapter.js +61 -25
- package/dist/hooks/daemon.js +67667 -0
- package/dist/hooks/format-edited.js +15 -5
- package/dist/hooks/inputs.json +601 -403
- package/dist/hooks/pretool-guard.js +11 -7
- package/dist/hooks/ready.js +300 -0
- package/dist/hooks/run-ship-lap-VCEOUHQI.js +8 -0
- package/dist/hooks/session-lang.js +515 -133
- package/dist/hooks/stop-guard.js +9370 -4513
- package/dist/inputs.json +169 -0
- package/dist/josh.js +9753 -6793
- package/dist/self-sync-guard/index.js +85 -14
- package/dist/version/index.js +659 -85
- package/eslint/base.js +36 -11
- package/eslint/config-fingerprint.js +164 -21
- package/eslint/rules/code-quality.js +6 -0
- package/eslint/rules/comment-why-only.js +40 -16
- package/eslint/rules/english-only-prose.js +10 -3
- package/eslint/rules/import.js +3 -17
- package/eslint/rules/test-helper-bans.js +34 -0
- package/eslint/untyped-environment.js +21 -0
- package/eslint/untyped.js +60 -0
- package/lefthook/base.yml +4 -5
- package/package.json +17 -15
- package/pnpm-workspace.yaml +7 -0
- package/ports/index.js +8 -15
- package/prompts/coding-standards.md +4 -43
- package/prompts/collaboration-workflow/file-edits.md +10 -10
- package/prompts/collaboration-workflow/gh-rest.md +14 -7
- package/prompts/collaboration-workflow/issue-template.en.md +129 -0
- package/prompts/collaboration-workflow/issue-template.md +49 -56
- package/prompts/collaboration-workflow/lane-instructions.md +1 -0
- package/prompts/collaboration-workflow/measurement.md +13 -17
- package/prompts/collaboration-workflow/operating-rules.md +10 -7
- package/prompts/collaboration-workflow/output-bounds.md +3 -3
- package/prompts/collaboration-workflow/overview.md +8 -17
- package/prompts/collaboration-workflow/plan-comment.md +1 -1
- package/prompts/collaboration-workflow/principles.md +17 -19
- package/prompts/collaboration-workflow/report-format.md +6 -5
- package/prompts/collaboration-workflow/residency.md +1 -0
- package/prompts/collaboration-workflow/rule-delivery.md +4 -12
- package/prompts/collaboration-workflow/shell-body.md +7 -7
- package/prompts/collaboration-workflow/turn-batching.md +2 -2
- package/prompts/collaboration-workflow/upstream-interrupt.md +8 -8
- package/prompts/collaboration-workflow/wip-cap.md +3 -3
- package/prompts/refactoring.md +4 -3
- package/prompts/review-rubric.md +8 -21
- package/prompts/review.md +52 -80
- package/prompts/sonar-hotspot-handling.md +1 -1
- package/prompts/testing-guide.md +15 -2
- package/scripts/agent/agent-argv.ts +30 -9
- package/scripts/agent/agent-consultation-model.ts +47 -0
- package/scripts/agent/agent-event.ts +11 -2
- package/scripts/agent/agent-launch-environment.ts +6 -57
- package/scripts/agent/agent-model-alias.ts +19 -0
- package/scripts/agent/agent-phase-profile.ts +89 -0
- package/scripts/agent/agent-profile-schema.ts +98 -0
- package/scripts/agent/agent-role-profile.ts +88 -133
- package/scripts/agent/agent-safe-text.ts +2 -2
- package/scripts/agent/agent-session-role.ts +25 -3
- package/scripts/agent/agent-ship-cap.ts +44 -0
- package/scripts/agent/agent-worker-profile.ts +154 -0
- package/scripts/agent/answer-judge.ts +174 -0
- package/scripts/agent/answer-verdict.ts +122 -0
- package/scripts/agent/claude-agent-argv.ts +13 -7
- package/scripts/agent/codex-agent-argv.ts +17 -143
- package/scripts/agent/codex-home-source.ts +1 -1
- package/scripts/agent/codex-hooks.ts +29 -6
- package/scripts/agent/judgment-agent-argv.ts +49 -0
- package/scripts/agent/lane-instructions.ts +33 -4
- package/scripts/auto-ok/auto-ok-author.ts +14 -3
- package/scripts/auto-ok/auto-ok-cli.ts +20 -12
- package/scripts/auto-ok/auto-ok-judge-cli.ts +10 -14
- package/scripts/auto-ok/auto-ok-judge-read.ts +3 -3
- package/scripts/auto-ok/auto-ok-judge-write.ts +20 -17
- package/scripts/auto-ok/auto-ok-judge.ts +4 -2
- package/scripts/backlog/backlog-arrival-added.ts +47 -11
- package/scripts/backlog/backlog-arrival.ts +90 -23
- package/scripts/backlog/backlog-auto-triage.ts +130 -0
- package/scripts/backlog/backlog-budget-cli.ts +2 -1
- package/scripts/backlog/backlog-budget.ts +31 -5
- package/scripts/backlog/backlog-defect-priority.ts +32 -19
- package/scripts/backlog/backlog-drain-flush.ts +22 -0
- package/scripts/backlog/backlog-drive-adopt.ts +2 -2
- package/scripts/backlog/backlog-drive-after-merge.ts +123 -0
- package/scripts/backlog/backlog-drive-args.ts +60 -7
- package/scripts/backlog/backlog-drive-cli.ts +69 -64
- package/scripts/backlog/backlog-drive-collect.ts +46 -0
- package/scripts/backlog/backlog-drive-epic.ts +1 -1
- package/scripts/backlog/backlog-drive-escalate.ts +115 -0
- package/scripts/backlog/backlog-drive-hold.ts +32 -8
- package/scripts/backlog/backlog-drive-idle.ts +21 -10
- package/scripts/backlog/backlog-drive-launch-pass.ts +79 -23
- package/scripts/backlog/backlog-drive-launch.ts +73 -7
- package/scripts/backlog/backlog-drive-listing.ts +59 -0
- package/scripts/backlog/backlog-drive-memory.ts +4 -5
- package/scripts/backlog/backlog-drive-named-offer.ts +112 -22
- package/scripts/backlog/backlog-drive-named.ts +11 -4
- package/scripts/backlog/backlog-drive-offer-argv.ts +10 -2
- package/scripts/backlog/backlog-drive-park-triage.ts +57 -0
- package/scripts/backlog/backlog-drive-paused.ts +2 -1
- package/scripts/backlog/backlog-drive-rate-limit.ts +29 -0
- package/scripts/backlog/backlog-drive-rate.ts +73 -0
- package/scripts/backlog/backlog-drive-record.ts +58 -0
- package/scripts/backlog/backlog-drive-restore.ts +38 -8
- package/scripts/backlog/backlog-drive-retrospective-unit.ts +80 -0
- package/scripts/backlog/backlog-drive-retrospective.ts +35 -1
- package/scripts/backlog/backlog-drive-retry.ts +85 -0
- package/scripts/backlog/backlog-drive-seats.ts +4 -7
- package/scripts/backlog/backlog-drive-split-unit.ts +108 -0
- package/scripts/backlog/backlog-drive-stalled-retry.ts +232 -0
- package/scripts/backlog/backlog-drive-state.ts +28 -0
- package/scripts/backlog/backlog-drive-tick.ts +77 -0
- package/scripts/backlog/backlog-drive-token-handling.ts +2 -2
- package/scripts/backlog/backlog-drive-trace.ts +45 -0
- package/scripts/backlog/backlog-drive-unit.ts +54 -0
- package/scripts/backlog/backlog-drive-unread.ts +1 -1
- package/scripts/backlog/backlog-drive.ts +142 -99
- package/scripts/backlog/backlog-gate-scope.ts +15 -3
- package/scripts/backlog/backlog-hold-codes.ts +23 -0
- package/scripts/backlog/backlog-hold-text.ts +107 -0
- package/scripts/backlog/backlog-measure-close.ts +61 -31
- package/scripts/backlog/backlog-named.ts +1 -1
- package/scripts/backlog/backlog-next-offer.ts +138 -0
- package/scripts/backlog/backlog-next-report.ts +221 -0
- package/scripts/backlog/backlog-next-shared.ts +22 -4
- package/scripts/backlog/backlog-next-size.ts +108 -0
- package/scripts/backlog/backlog-next.ts +52 -187
- package/scripts/backlog/backlog-occupied.ts +7 -7
- package/scripts/backlog/backlog-offer-cli.ts +13 -2
- package/scripts/backlog/backlog-offer-timing.ts +141 -0
- package/scripts/backlog/backlog-offer.ts +26 -6
- package/scripts/backlog/backlog-overlap.ts +7 -1
- package/scripts/backlog/backlog-plan-cli.ts +27 -3
- package/scripts/backlog/backlog-plan-comment.ts +36 -14
- package/scripts/backlog/backlog-plan-words.ts +69 -0
- package/scripts/backlog/backlog-plan.ts +63 -46
- package/scripts/backlog/backlog-pool.ts +42 -13
- package/scripts/backlog/backlog-preflight.ts +67 -0
- package/scripts/backlog/backlog-ready.ts +7 -69
- package/scripts/backlog/backlog-resumable.ts +65 -0
- package/scripts/backlog/backlog-resume-reads.ts +119 -0
- package/scripts/backlog/backlog-stalled-detect.ts +4 -3
- package/scripts/backlog/backlog-stalled.ts +3 -2
- package/scripts/backlog/backlog-triage-adopt.ts +239 -0
- package/scripts/backlog/backlog-triage-approval.ts +94 -0
- package/scripts/backlog/backlog-triage-cli.ts +270 -0
- package/scripts/backlog/backlog-triage-decision.ts +49 -0
- package/scripts/backlog/backlog-triage-park.ts +53 -0
- package/scripts/backlog/backlog-triage-pass.ts +113 -0
- package/scripts/backlog/backlog-triage-unblock.ts +68 -0
- package/scripts/backlog/backlog-wait-cause.ts +76 -16
- package/scripts/backlog/backlog-yield-cap.ts +108 -0
- package/scripts/backlog/backlogrun-args.ts +45 -16
- package/scripts/backlog/backlogrun-cli.ts +82 -18
- package/scripts/backlog/backlogrun-launch.ts +12 -4
- package/scripts/backlog/backlogrun-replace.ts +44 -4
- package/scripts/build/build-bin.ts +25 -2
- package/scripts/build/build-codex-hooks.ts +2 -2
- package/scripts/build/build-commands.ts +27 -19
- package/scripts/build/build-hooks.ts +117 -22
- package/scripts/build/hook-bundle-stamp.ts +15 -5
- package/scripts/build/local-bin.ts +27 -1
- package/scripts/build/source-location.ts +82 -0
- package/scripts/ci/ci-timing-cli.ts +73 -0
- package/scripts/ci/ci-timing-table.ts +84 -0
- package/scripts/ci/ci-timing.ts +104 -0
- package/scripts/ci/composite-actions.ts +1 -1
- package/scripts/ci/pr-classification.ts +89 -11
- package/scripts/code/code-symbol-cli.ts +121 -0
- package/scripts/code/code-symbol.ts +127 -0
- package/scripts/config-merge/patch-json-key.ts +4 -7
- package/scripts/cost-runtime/cost-blocks.ts +3 -4
- package/scripts/cost-runtime/cost-cli.ts +4 -7
- package/scripts/cost-runtime/cost-pricing.ts +2 -2
- package/scripts/cost-runtime/cost-tokens.ts +7 -6
- package/scripts/delegation/delegation-policy.ts +2 -2
- package/scripts/delegation/duplicate-read-guard.ts +41 -28
- package/scripts/delegation/investigation-guard.ts +13 -5
- package/scripts/delegation/investigation-reads.ts +52 -34
- package/scripts/delegation/large-read-guard.ts +150 -0
- package/scripts/discovery/git-directory.ts +61 -0
- package/scripts/discovery/pin-verify-cli.ts +115 -0
- package/scripts/discovery/repo-discovery.ts +10 -58
- package/scripts/discovery/repo-party.ts +1 -0
- package/scripts/document/backlogrun-parent-read-set.ts +37 -6
- package/scripts/document/capped-print.ts +3 -3
- package/scripts/document/command-reference-line-budget.ts +4 -1
- package/scripts/document/document-byte-budget.ts +34 -16
- package/scripts/document/document-byte-check.ts +1 -1
- package/scripts/document/document-reachability.ts +4 -3
- package/scripts/document/document-scan.ts +37 -6
- package/scripts/document/document-section-cli.ts +13 -1
- package/scripts/document/edit-files-cli.ts +3 -7
- package/scripts/document/entry-read-budget.ts +12 -4
- package/scripts/document/entry-read-set.ts +9 -2
- package/scripts/document/issue-citation-budget.ts +3 -3
- package/scripts/document/lane-child-read-set.ts +21 -29
- package/scripts/document/read-set-cli.ts +17 -10
- package/scripts/document/read-set-point-of-use.ts +13 -9
- package/scripts/document/read-set-trim.ts +42 -2
- package/scripts/epic/epic-audit-checks.ts +1 -1
- package/scripts/epic/epic-audit-cli.ts +19 -21
- package/scripts/epic/epic-audit-main.ts +17 -0
- package/scripts/epic/epic-audit-orphans.ts +1 -1
- package/scripts/epic/epic-audit.ts +6 -3
- package/scripts/epic/epic-blocked-by.ts +198 -0
- package/scripts/epic/epic-body.ts +6 -6
- package/scripts/epic/epic-bundle-apply.ts +41 -10
- package/scripts/epic/epic-bundle-cli.ts +40 -99
- package/scripts/epic/epic-bundle-evidence.ts +2 -2
- package/scripts/epic/epic-bundle-format.ts +21 -7
- package/scripts/epic/epic-bundle-recommend.ts +56 -0
- package/scripts/epic/epic-bundle-referenced.ts +42 -17
- package/scripts/epic/epic-bundle.ts +31 -4
- package/scripts/epic/epic-busy.ts +11 -9
- package/scripts/epic/epic-chains.ts +59 -23
- package/scripts/epic/epic-child-source.ts +111 -0
- package/scripts/epic/epic-cli-untrack.ts +38 -0
- package/scripts/epic/epic-cli.ts +26 -7
- package/scripts/epic/epic-close-comment.ts +4 -2
- package/scripts/epic/epic-close.ts +25 -11
- package/scripts/epic/epic-decide.ts +39 -3
- package/scripts/epic/epic-fetch.ts +116 -24
- package/scripts/epic/epic-graph.ts +1 -0
- package/scripts/epic/epic-label-age.ts +55 -13
- package/scripts/epic/epic-lane-occupancy.ts +75 -0
- package/scripts/epic/epic-lane-offer.ts +49 -13
- package/scripts/epic/epic-main.ts +23 -0
- package/scripts/epic/epic-next-main.ts +2 -4
- package/scripts/epic/epic-next-read.ts +12 -3
- package/scripts/epic/epic-next-views.ts +1 -1
- package/scripts/epic/epic-notify.ts +72 -0
- package/scripts/epic/epic-parse.ts +1 -1
- package/scripts/epic/epic-rank.ts +6 -2
- package/scripts/epic/epic-reference.ts +1 -1
- package/scripts/epic/epic-run.ts +14 -1
- package/scripts/epic/epic-shape.ts +2 -2
- package/scripts/epic/epic-solo-stale.ts +1 -1
- package/scripts/epic/epic-solo.ts +11 -5
- package/scripts/epic/epic-split-reach.ts +107 -0
- package/scripts/epic/epic-triage.ts +29 -5
- package/scripts/epic/epic-untrack-plan.ts +75 -0
- package/scripts/epic/epic-untrack.ts +42 -0
- package/scripts/epic/epic.ts +65 -31
- package/scripts/followup/followup-check-report.ts +70 -0
- package/scripts/followup/followup-ci-path.ts +27 -7
- package/scripts/followup/followup-coderabbit-retrigger.ts +61 -23
- package/scripts/followup/followup-failed-tests.ts +4 -0
- package/scripts/followup/followup-human-merge.ts +109 -0
- package/scripts/followup/followup-job-needs.ts +92 -14
- package/scripts/followup/followup-job-rerun.ts +162 -43
- package/scripts/followup/followup-run-rerun.ts +183 -0
- package/scripts/followup/followup-section.ts +30 -0
- package/scripts/followup/followup-ship-environment.ts +17 -0
- package/scripts/followup/git-followup-finish.ts +52 -1
- package/scripts/followup/git-followup-flush.ts +6 -8
- package/scripts/followup/git-followup-stages.ts +3 -0
- package/scripts/followup/git-followup-workflow.ts +29 -9
- package/scripts/followup/git-pr-followup-checks.ts +65 -8
- package/scripts/followup/git-pr-followup-wrapup.ts +11 -9
- package/scripts/followup/git-pr-followup.ts +18 -12
- package/scripts/fresh-machine/fresh-machine-cli.ts +2 -1
- package/scripts/fresh-machine/fresh-machine-image.ts +3 -1
- package/scripts/fresh-machine/fresh-machine-patterns.ts +25 -4
- package/scripts/fresh-machine/fresh-machine-registry.ts +85 -0
- package/scripts/fresh-machine/fresh-machine-script.ts +3 -1
- package/scripts/fresh-machine/fresh-machine-spec.ts +2 -2
- package/scripts/fresh-machine/specs/kit-test-backlogrun-python.json +0 -1
- package/scripts/fresh-machine/specs/kit-test-backlogrun.json +0 -1
- package/scripts/gate/busy-average.ts +26 -3
- package/scripts/gate/change-scope-action.ts +101 -0
- package/scripts/gate/check-inputs.ts +1 -1
- package/scripts/gate/check-related-order.ts +65 -0
- package/scripts/gate/check-related-pinned.ts +3 -2
- package/scripts/gate/check-related-reuse.ts +34 -6
- package/scripts/gate/check-related-section.ts +8 -1
- package/scripts/gate/check-related-unplanned.ts +11 -1
- package/scripts/gate/check-related.ts +122 -34
- package/scripts/gate/check-reuse.ts +63 -31
- package/scripts/gate/command-memory.ts +10 -4
- package/scripts/gate/core-admission.ts +34 -8
- package/scripts/gate/core-budget.ts +55 -65
- package/scripts/gate/core-priority.ts +28 -0
- package/scripts/gate/core-reservation.ts +85 -0
- package/scripts/gate/core-wait.ts +90 -19
- package/scripts/gate/core-weights.ts +25 -16
- package/scripts/gate/gate-checks.ts +196 -0
- package/scripts/gate/gate-labels.ts +4 -0
- package/scripts/gate/gate-plan.ts +34 -164
- package/scripts/gate/gate-report.ts +14 -10
- package/scripts/gate/gate-run-steps.ts +38 -6
- package/scripts/gate/gate-skip.ts +1 -1
- package/scripts/gate/gate-static-group.ts +35 -6
- package/scripts/gate/machine-capacity.ts +20 -25
- package/scripts/gate/metrics-totals.ts +30 -4
- package/scripts/gate/path-glob.ts +15 -0
- package/scripts/gate/pre-commit-type-check.ts +2 -6
- package/scripts/gate/project-checks.ts +33 -2
- package/scripts/gate/project-gate-steps.ts +206 -0
- package/scripts/gate/project-step-reuse.ts +69 -0
- package/scripts/gate/scoped-green.ts +10 -4
- package/scripts/gate/since-green.ts +76 -20
- package/scripts/gate/tree-verdict.ts +111 -0
- package/scripts/gate/tsc-arguments.ts +9 -0
- package/scripts/gate/type-check-command.ts +4 -7
- package/scripts/gate/type-check-step.ts +4 -1
- package/scripts/gate/type-program-serial.ts +52 -0
- package/scripts/gate/verification-gate.ts +47 -17
- package/scripts/gate/verification-inputs.ts +46 -11
- package/scripts/gate/whole-tree-reuse.ts +24 -0
- package/scripts/gh/gh-author-association.ts +40 -14
- package/scripts/gh/gh-call-kind.ts +97 -0
- package/scripts/gh/gh-comment-input.ts +26 -0
- package/scripts/gh/gh-core-rate-limit.ts +151 -0
- package/scripts/gh/gh-permission-cache.ts +44 -0
- package/scripts/gh/gh-request-tally.ts +143 -0
- package/scripts/gh/gh-spawn.ts +2 -2
- package/scripts/gh/gh-usage-cli.ts +71 -0
- package/scripts/gh/gh-usage-event.ts +82 -0
- package/scripts/gh/gh-usage-log.ts +48 -0
- package/scripts/gh/gh-usage-tally.ts +209 -0
- package/scripts/gh/git-gh-api-path.ts +17 -2
- package/scripts/gh/git-gh-blocked-by-graphql.ts +107 -0
- package/scripts/gh/git-gh-checks-failed-main.ts +24 -0
- package/scripts/gh/git-gh-checks-failed.ts +141 -0
- package/scripts/gh/git-gh-code-scanning.ts +81 -0
- package/scripts/gh/git-gh-conditional.ts +36 -4
- package/scripts/gh/git-gh-etag-read.ts +107 -0
- package/scripts/gh/git-gh-exec.ts +74 -25
- package/scripts/gh/git-gh-failure.ts +16 -2
- package/scripts/gh/git-gh-helpers.ts +2 -6
- package/scripts/gh/git-gh-issue-alias-graphql.ts +113 -0
- package/scripts/gh/git-gh-issue-batch-graphql.ts +155 -0
- package/scripts/gh/git-gh-issue-batch-read.ts +66 -0
- package/scripts/gh/git-gh-issue-graphql.ts +229 -0
- package/scripts/gh/git-gh-issue-list-graphql.ts +103 -0
- package/scripts/gh/git-gh-issue-list.ts +126 -34
- package/scripts/gh/git-gh-issue-memo.ts +53 -0
- package/scripts/gh/git-gh-issue-read.ts +87 -14
- package/scripts/gh/git-gh-issue-rest.ts +5 -8
- package/scripts/gh/git-gh-issue-write.ts +31 -10
- package/scripts/gh/git-gh-issue.ts +25 -4
- package/scripts/gh/git-gh-poll-read.ts +43 -18
- package/scripts/gh/git-gh-pr-auto-merge.ts +1 -4
- package/scripts/gh/git-gh-pr-graphql-snapshot.ts +369 -0
- package/scripts/gh/git-gh-pr-graphql-state.ts +21 -26
- package/scripts/gh/git-gh-pr-read.ts +4 -1
- package/scripts/gh/git-gh-pr-rollup.ts +10 -3
- package/scripts/gh/git-gh-pr-snapshot.ts +78 -22
- package/scripts/gh/git-gh-pr.ts +51 -17
- package/scripts/gh/git-gh-rate-limit.ts +91 -0
- package/scripts/gh/git-gh-repo.ts +37 -20
- package/scripts/gh/git-gh-retry.ts +60 -24
- package/scripts/gh/git-gh-spawn-width.ts +6 -0
- package/scripts/gh/git-gh-transport.ts +213 -0
- package/scripts/gh/git-pr-ai-review.ts +8 -5
- package/scripts/gh/git-pr-checks-eval.ts +16 -17
- package/scripts/gh/git-pr-checks-failed.ts +24 -0
- package/scripts/gh/git-pr-checks-gate.ts +129 -0
- package/scripts/gh/git-pr-checks-missing.ts +165 -0
- package/scripts/gh/git-pr-checks-parse.ts +4 -0
- package/scripts/gh/git-pr-checks-watch.ts +22 -6
- package/scripts/gh/git-pr-checks.ts +105 -76
- package/scripts/gh/git-pr-merge-checked.ts +26 -12
- package/scripts/gh/git-pr.ts +9 -23
- package/scripts/git/base-tree.ts +18 -10
- package/scripts/git/changed-paths-sync.ts +4 -12
- package/scripts/git/changed-paths.ts +31 -6
- package/scripts/git/git-command.ts +9 -1
- package/scripts/git/git-common-directory.ts +17 -3
- package/scripts/git/git-issue.ts +3 -3
- package/scripts/git/git-merge-conflicts.ts +8 -3
- package/scripts/git/git-path-quoting.ts +54 -0
- package/scripts/git/git-push-transport.ts +8 -10
- package/scripts/git/git-schemas.ts +1 -0
- package/scripts/git/git-spawn-sync.ts +11 -7
- package/scripts/git/git-spawn.ts +1 -1
- package/scripts/git/git-ssh-keepalive.ts +3 -3
- package/scripts/git/git-workflow.ts +32 -9
- package/scripts/git/git-worktree.ts +12 -4
- package/scripts/git/main-merge.ts +3 -36
- package/scripts/git/main-sync.ts +2 -13
- package/scripts/git/repository-lock.ts +8 -7
- package/scripts/git/stash/git-stash.ts +38 -5
- package/scripts/git/stash/stash-pop-cli.ts +43 -6
- package/scripts/hooks/bash-revert.ts +253 -0
- package/scripts/hooks/batch-guard.ts +28 -16
- package/scripts/hooks/check-commit-message.ts +5 -7
- package/scripts/hooks/codex-hook-adapter.ts +58 -13
- package/scripts/hooks/direct-gh-usage.ts +130 -0
- package/scripts/hooks/edited-cspell.ts +8 -11
- package/scripts/hooks/fixtures/claude-Agent.json +16 -0
- package/scripts/hooks/fixtures/claude-Bash.json +12 -0
- package/scripts/hooks/fixtures/claude-Edit.json +17 -0
- package/scripts/hooks/fixtures/claude-Read.json +12 -0
- package/scripts/hooks/fixtures/claude-Write.json +12 -0
- package/scripts/hooks/fixtures/codex-Bash-cat.json +12 -0
- package/scripts/hooks/fixtures/codex-Bash.json +12 -0
- package/scripts/hooks/fixtures/codex-apply_patch.json +14 -0
- package/scripts/hooks/format-edited-cli.ts +8 -1
- package/scripts/hooks/format-edited-file.ts +33 -27
- package/scripts/hooks/hook-context.ts +22 -0
- package/scripts/hooks/hook-demoted.ts +84 -0
- package/scripts/hooks/hook-lap.ts +61 -0
- package/scripts/hooks/hook-ledger-cli.ts +246 -0
- package/scripts/hooks/hook-ledger-demote.ts +58 -0
- package/scripts/hooks/hook-ledger-issues.ts +61 -0
- package/scripts/hooks/hook-ledger-read.ts +97 -0
- package/scripts/hooks/hook-ledger.ts +163 -0
- package/scripts/hooks/implementation-authority.ts +48 -0
- package/scripts/hooks/implementation-shell-deny-expansion.ts +20 -0
- package/scripts/hooks/implementation-shell-deny-git.ts +128 -0
- package/scripts/hooks/implementation-shell-deny.ts +220 -0
- package/scripts/hooks/implementation-shell-nested.ts +148 -0
- package/scripts/hooks/implementation-shell.ts +276 -0
- package/scripts/hooks/lane-plan-guard.ts +1 -1
- package/scripts/hooks/pre-commit-lint.ts +10 -5
- package/scripts/hooks/pre-push-unit.ts +49 -13
- package/scripts/hooks/pretool-guard.ts +184 -70
- package/scripts/hooks/reserved-run.ts +13 -13
- package/scripts/hooks/run-hook.sh +84 -30
- package/scripts/hooks/step-zero-notice.ts +58 -17
- package/scripts/hooks/stop-actions.ts +14 -5
- package/scripts/hooks/stop-guard.ts +29 -8
- package/scripts/init/claude-kit-only-settings.ts +1 -1
- package/scripts/init/hook-command-rewrite.ts +90 -65
- package/scripts/init/hook-launch.ts +27 -22
- package/scripts/init/init-ai-copy.ts +14 -4
- package/scripts/init/init-bootstrap.ts +40 -8
- package/scripts/init/init-copy-content.ts +2 -2
- package/scripts/init/init-install.ts +9 -1
- package/scripts/init/init-logic-deploy-vps.ts +5 -3
- package/scripts/init/init-logic-workspace.ts +16 -1
- package/scripts/init/init-logic.ts +11 -18
- package/scripts/init/npm-publish-files.ts +25 -0
- package/scripts/init/start-setup-pr.ts +1 -1
- package/scripts/init/tsconfig-preset-migration.ts +5 -10
- package/scripts/issue/aggregation-split.ts +4 -2
- package/scripts/issue/already-done-citation.ts +103 -0
- package/scripts/issue/baseline-measure.ts +2 -1
- package/scripts/issue/behavior-change-lint.ts +5 -4
- package/scripts/issue/defect-origin-line.ts +11 -10
- package/scripts/issue/defect-origin.ts +4 -3
- package/scripts/issue/defect-rate.ts +2 -1
- package/scripts/issue/defect-report-format.ts +1 -1
- package/scripts/issue/effect-audit.ts +12 -11
- package/scripts/issue/enforcement-lint.ts +48 -0
- package/scripts/issue/expected-effect-lint.ts +6 -5
- package/scripts/issue/figure-source-lint.ts +59 -0
- package/scripts/issue/git-next-issues.ts +15 -17
- package/scripts/issue/issue-already-done-cli.ts +24 -4
- package/scripts/issue/issue-auto-ok.ts +65 -9
- package/scripts/issue/issue-body-cli.ts +75 -0
- package/scripts/issue/issue-body-keys.ts +227 -0
- package/scripts/issue/issue-body-or-comment.ts +1 -1
- package/scripts/issue/issue-bug-label.ts +5 -2
- package/scripts/issue/issue-cap-files.ts +111 -0
- package/scripts/issue/issue-cite-cli.ts +2 -2
- package/scripts/issue/issue-cite.ts +20 -3
- package/scripts/issue/issue-classification.ts +66 -7
- package/scripts/issue/issue-closing-pr.ts +51 -16
- package/scripts/issue/issue-comment-cli.ts +15 -2
- package/scripts/issue/issue-consolidate-cli.ts +81 -0
- package/scripts/issue/issue-consolidate.ts +246 -0
- package/scripts/issue/issue-declared-size.ts +21 -0
- package/scripts/issue/issue-evidence-exit.ts +12 -5
- package/scripts/issue/issue-file-batch-entries.ts +107 -0
- package/scripts/issue/issue-file-batch.ts +206 -0
- package/scripts/issue/issue-file-cli.ts +152 -209
- package/scripts/issue/issue-file-fold.ts +4 -8
- package/scripts/issue/issue-file-interrupt.ts +68 -9
- package/scripts/issue/issue-file-lane-hint.ts +3 -2
- package/scripts/issue/issue-file-main.ts +17 -0
- package/scripts/issue/issue-file-pass.ts +249 -0
- package/scripts/issue/issue-file-worker.ts +95 -0
- package/scripts/issue/issue-file.ts +25 -6
- package/scripts/issue/issue-fold-apply.ts +102 -0
- package/scripts/issue/issue-fold-existing-cli.ts +226 -19
- package/scripts/issue/issue-human-stops.ts +102 -0
- package/scripts/issue/issue-labels.ts +14 -3
- package/scripts/issue/issue-lint-cli.ts +20 -6
- package/scripts/issue/issue-lint.ts +4 -6
- package/scripts/issue/issue-merged.ts +75 -9
- package/scripts/issue/issue-not-before.ts +34 -4
- package/scripts/issue/issue-number-shape.ts +8 -0
- package/scripts/issue/issue-outcome.ts +107 -0
- package/scripts/issue/issue-plan-cli.ts +33 -5
- package/scripts/issue/issue-plan-notify.ts +100 -0
- package/scripts/issue/issue-premise-unmet-cli.ts +110 -0
- package/scripts/issue/issue-priority-cli.ts +103 -16
- package/scripts/issue/issue-priority-instructed.ts +55 -0
- package/scripts/issue/issue-priority-raise.ts +70 -12
- package/scripts/issue/issue-priority.ts +56 -16
- package/scripts/issue/issue-rank.ts +48 -15
- package/scripts/issue/issue-read-cli.ts +66 -33
- package/scripts/issue/issue-read.ts +30 -10
- package/scripts/issue/issue-release-class-cli.ts +79 -0
- package/scripts/issue/issue-report-failures.ts +14 -5
- package/scripts/issue/issue-run-hold.ts +13 -0
- package/scripts/issue/issue-run-verdict.ts +68 -0
- package/scripts/issue/issue-sample-gate.ts +18 -7
- package/scripts/issue/issue-sample-required.ts +20 -3
- package/scripts/issue/issue-sample-source.ts +2 -1
- package/scripts/issue/issue-scout-cli.ts +34 -18
- package/scripts/issue/issue-scout.ts +25 -4
- package/scripts/issue/issue-search.ts +3 -0
- package/scripts/issue/issue-sources.ts +98 -0
- package/scripts/issue/issue-spill-cli.ts +292 -0
- package/scripts/issue/issue-spill-main.ts +11 -0
- package/scripts/issue/issue-spill.ts +193 -0
- package/scripts/issue/issue-state-cli.ts +9 -17
- package/scripts/issue/issue-template-section.ts +8 -3
- package/scripts/issue/issue-tick-cli.ts +59 -0
- package/scripts/issue/issue-watch-diff.ts +24 -8
- package/scripts/issue/issue-watch-hook.ts +11 -9
- package/scripts/issue/issue-watch.ts +25 -5
- package/scripts/issue/issue-wip.ts +44 -9
- package/scripts/issue/markdown-section.ts +66 -10
- package/scripts/issue/measure-declaration.ts +70 -13
- package/scripts/issue/measure-rerun-cli.ts +9 -8
- package/scripts/issue/measure-twin.ts +37 -0
- package/scripts/issue/reproduction-measure.ts +2 -1
- package/scripts/issue/session-cite.ts +1 -1
- package/scripts/issue/size-estimate.ts +317 -22
- package/scripts/issue/trusted-measure-source.ts +43 -0
- package/scripts/issue/trusted-measure.ts +79 -35
- package/scripts/issue/upstream-interrupt-cli.ts +280 -0
- package/scripts/issue/upstream-interrupt-main.ts +11 -0
- package/scripts/josh/agent-session-environment.ts +19 -1
- package/scripts/josh/cli-body.ts +46 -9
- package/scripts/josh/command-usage.ts +3 -0
- package/scripts/josh/durable-state-migrate.ts +11 -4
- package/scripts/josh/durable-state-root.ts +60 -0
- package/scripts/josh/durable-state.ts +9 -44
- package/scripts/josh/hook-decision.ts +55 -113
- package/scripts/josh/hook-envelope.ts +62 -0
- package/scripts/josh/hook-payload-capture.ts +78 -0
- package/scripts/josh/hook-tool-payload.ts +15 -0
- package/scripts/josh/josh-aliases.ts +7 -0
- package/scripts/josh/josh-command-map.ts +15 -0
- package/scripts/josh/josh-command-types.ts +28 -4
- package/scripts/josh/josh-commands-agent-hooks.ts +39 -7
- package/scripts/josh/josh-commands-ai.ts +420 -9
- package/scripts/josh/josh-commands-backlog.ts +79 -11
- package/scripts/josh/josh-commands-clone.ts +2 -5
- package/scripts/josh/josh-commands-development.ts +45 -12
- package/scripts/josh/josh-commands-document.ts +22 -10
- package/scripts/josh/josh-commands-epic.ts +30 -11
- package/scripts/josh/josh-commands-hooks.ts +0 -1
- package/scripts/josh/josh-commands-issue-write.ts +193 -20
- package/scripts/josh/josh-commands-issue.ts +57 -17
- package/scripts/josh/josh-commands-lint.ts +52 -19
- package/scripts/josh/josh-commands-maintenance.ts +37 -4
- package/scripts/josh/josh-commands-pause.ts +53 -5
- package/scripts/josh/josh-commands-prime.ts +28 -0
- package/scripts/josh/josh-commands-progress.ts +59 -7
- package/scripts/josh/josh-commands-project.ts +15 -7
- package/scripts/josh/josh-commands-review.ts +83 -5
- package/scripts/josh/josh-commands-run.ts +30 -33
- package/scripts/josh/josh-commands-ship.ts +95 -13
- package/scripts/josh/josh-commands-test-check.ts +0 -2
- package/scripts/josh/josh-commands-versioning.ts +11 -2
- package/scripts/josh/josh-commands-workflow.ts +46 -11
- package/scripts/josh/josh-completion-scripts.ts +81 -0
- package/scripts/josh/josh-completion.ts +29 -0
- package/scripts/josh/josh-environment-file.ts +8 -10
- package/scripts/josh/josh-gh-usage.ts +53 -0
- package/scripts/josh/josh-in-process.ts +21 -21
- package/scripts/josh/josh-logic.ts +22 -46
- package/scripts/josh/josh-read-only.ts +51 -0
- package/scripts/josh/josh-run.ts +30 -6
- package/scripts/josh/josh.ts +9 -11
- package/scripts/josh/path-decision.ts +2 -2
- package/scripts/josh/process-identity.ts +5 -0
- package/scripts/josh/session-handoff-line.ts +88 -0
- package/scripts/josh/session-language-cli.ts +18 -4
- package/scripts/josh/session-model-record.ts +62 -0
- package/scripts/lane/historical-evidence.ts +136 -0
- package/scripts/lane/historical-log-evidence.ts +47 -0
- package/scripts/lane/lane-adopt-cli.ts +1 -1
- package/scripts/lane/lane-await.ts +8 -3
- package/scripts/lane/lane-breakdown-calls.ts +165 -0
- package/scripts/lane/lane-breakdown-cli.ts +88 -10
- package/scripts/lane/lane-breakdown-estimate.ts +136 -0
- package/scripts/lane/lane-breakdown-implement.ts +166 -29
- package/scripts/lane/lane-breakdown-laps.ts +116 -24
- package/scripts/lane/lane-breakdown-pause.ts +127 -0
- package/scripts/lane/lane-breakdown-pinned.ts +19 -3
- package/scripts/lane/lane-breakdown-related.ts +40 -0
- package/scripts/lane/lane-breakdown-text.ts +136 -15
- package/scripts/lane/lane-breakdown.ts +215 -31
- package/scripts/lane/lane-broker-server.ts +1 -1
- package/scripts/lane/lane-capacity.ts +27 -16
- package/scripts/lane/lane-chain-stop-stats.ts +110 -0
- package/scripts/lane/lane-check-stats.ts +25 -5
- package/scripts/lane/lane-child-invocation.ts +9 -9
- package/scripts/lane/lane-ci-path-stats.ts +15 -4
- package/scripts/lane/lane-cli.ts +2 -2
- package/scripts/lane/lane-concurrency-stats.ts +110 -0
- package/scripts/lane/lane-cut-stats.ts +101 -0
- package/scripts/lane/lane-dispatch-prepare.ts +83 -0
- package/scripts/lane/lane-dispatch.ts +27 -72
- package/scripts/lane/lane-early-push-stats.ts +25 -0
- package/scripts/lane/lane-elapsed-time.ts +118 -0
- package/scripts/lane/lane-environment.ts +2 -2
- package/scripts/lane/lane-gap-stats.ts +69 -8
- package/scripts/lane/lane-guard-policy.ts +1 -1
- package/scripts/lane/lane-hand-back-held.ts +51 -0
- package/scripts/lane/lane-hand-back-hold.ts +103 -0
- package/scripts/lane/lane-held-stats.ts +13 -1
- package/scripts/lane/lane-implement-rate-read.ts +50 -0
- package/scripts/lane/lane-implement-rate.ts +74 -0
- package/scripts/lane/lane-implement-read.ts +129 -0
- package/scripts/lane/lane-implement-signals-record.ts +56 -0
- package/scripts/lane/lane-implement-signals.ts +161 -0
- package/scripts/lane/lane-implement-stats.ts +93 -18
- package/scripts/lane/lane-launch-admission.ts +61 -0
- package/scripts/lane/lane-launch-cli.ts +63 -27
- package/scripts/lane/lane-launch-pending.ts +44 -0
- package/scripts/lane/lane-ledger-archive.ts +200 -0
- package/scripts/lane/lane-ledger-kind.ts +5 -0
- package/scripts/lane/lane-ledger-pinned-origin.ts +10 -0
- package/scripts/lane/lane-ledger-schema-load.ts +45 -0
- package/scripts/lane/lane-ledger-schema-offer.ts +30 -0
- package/scripts/lane/lane-ledger-schema-ship.ts +73 -4
- package/scripts/lane/lane-ledger-schema.ts +53 -30
- package/scripts/lane/lane-ledger-tail.ts +124 -0
- package/scripts/lane/lane-ledger-write.ts +60 -27
- package/scripts/lane/lane-ledger.ts +6 -31
- package/scripts/lane/lane-limit-cli.ts +11 -1
- package/scripts/lane/lane-limit-history.ts +77 -0
- package/scripts/lane/lane-limit-override.ts +49 -8
- package/scripts/lane/lane-listening-ports.ts +77 -0
- package/scripts/lane/lane-load.ts +62 -2
- package/scripts/lane/lane-measure-cli.ts +134 -55
- package/scripts/lane/lane-net-read.ts +22 -10
- package/scripts/lane/lane-net-time.ts +134 -21
- package/scripts/lane/lane-open.ts +19 -113
- package/scripts/lane/lane-over-causes.ts +130 -0
- package/scripts/lane/lane-over.ts +177 -0
- package/scripts/lane/lane-overrun-prompt.ts +4 -3
- package/scripts/lane/lane-overrun.ts +22 -9
- package/scripts/lane/lane-pairs.ts +128 -0
- package/scripts/lane/lane-paths.ts +26 -0
- package/scripts/lane/lane-pause-cli.ts +4 -2
- package/scripts/lane/lane-paused-spans.ts +11 -4
- package/scripts/lane/lane-phase.ts +36 -7
- package/scripts/lane/lane-plan-approval.ts +113 -0
- package/scripts/lane/lane-plan-auto.ts +53 -0
- package/scripts/lane/lane-plan-check.ts +196 -54
- package/scripts/lane/lane-plan-cli.ts +41 -10
- package/scripts/lane/lane-plan-estimate.ts +57 -0
- package/scripts/lane/lane-plan-imports.ts +53 -0
- package/scripts/lane/lane-plan-premise.ts +83 -0
- package/scripts/lane/lane-plan-probe.ts +115 -0
- package/scripts/lane/lane-plan-signals.ts +119 -0
- package/scripts/lane/lane-plan-size.ts +380 -0
- package/scripts/lane/lane-plan-wait-event.ts +124 -0
- package/scripts/lane/lane-plan-wait-until.ts +22 -0
- package/scripts/lane/lane-plan-wait.ts +125 -0
- package/scripts/lane/lane-plan.ts +114 -14
- package/scripts/lane/lane-preserve.ts +58 -13
- package/scripts/lane/lane-process-load.ts +130 -19
- package/scripts/lane/lane-process-stats.ts +51 -10
- package/scripts/lane/lane-reap.ts +4 -2
- package/scripts/lane/lane-registry.ts +19 -14
- package/scripts/lane/lane-relaunch.ts +37 -14
- package/scripts/lane/lane-report.ts +2 -0
- package/scripts/lane/lane-resolve-cli.ts +88 -0
- package/scripts/lane/lane-resolve-hunks.ts +63 -0
- package/scripts/lane/lane-resolve-record.ts +59 -0
- package/scripts/lane/lane-resolve.ts +122 -0
- package/scripts/lane/lane-restart.ts +1 -1
- package/scripts/lane/lane-room.ts +58 -0
- package/scripts/lane/lane-round-one-stats.ts +2 -1
- package/scripts/lane/lane-sampler.ts +53 -3
- package/scripts/lane/lane-seat-ownership.ts +57 -0
- package/scripts/lane/lane-seat-start.ts +52 -0
- package/scripts/lane/lane-seat-stop.ts +20 -0
- package/scripts/lane/lane-seat.ts +174 -0
- package/scripts/lane/lane-seed.ts +2 -5
- package/scripts/lane/lane-session-action.ts +26 -10
- package/scripts/lane/lane-session-broker.ts +1 -1
- package/scripts/lane/lane-session-reread.ts +2 -1
- package/scripts/lane/lane-setup.ts +59 -0
- package/scripts/lane/lane-ship-lap-stats.ts +3 -1
- package/scripts/lane/lane-sinks-issues.ts +52 -0
- package/scripts/lane/lane-sinks.ts +165 -0
- package/scripts/lane/lane-size-record.ts +39 -0
- package/scripts/lane/lane-size-stats.ts +111 -0
- package/scripts/lane/lane-split-stats.ts +33 -9
- package/scripts/lane/lane-stage-budget.ts +32 -0
- package/scripts/lane/lane-stage-events.ts +103 -0
- package/scripts/lane/lane-stage-stats.ts +94 -25
- package/scripts/lane/lane-state-record.ts +74 -0
- package/scripts/lane/lane-state.ts +21 -33
- package/scripts/lane/lane-stats-request.ts +163 -0
- package/scripts/lane/lane-stats-tables.ts +47 -3
- package/scripts/lane/lane-stats.ts +9 -2
- package/scripts/lane/lane-stop-check-stats.ts +117 -0
- package/scripts/lane/lane-stop-stats.ts +33 -8
- package/scripts/lane/lane-test-related-stats.ts +5 -2
- package/scripts/lane/lane-timeline.ts +251 -0
- package/scripts/lane/lane-transcript-calls.ts +73 -4
- package/scripts/lane/lane-transcript-stats.ts +8 -3
- package/scripts/lane/lane-turn-stats.ts +171 -0
- package/scripts/lane/lane-value-cell.ts +87 -13
- package/scripts/lane/lane-value-missing.ts +21 -0
- package/scripts/lane/lane-why-causes.ts +94 -0
- package/scripts/lane/lane-why-ci.ts +50 -0
- package/scripts/lane/lane-why-cli.ts +83 -0
- package/scripts/lane/lane-why-period.ts +187 -0
- package/scripts/lane/lane-why-ship.ts +67 -0
- package/scripts/lane/lane-why.ts +192 -0
- package/scripts/lane/lane-withdraw.ts +12 -1
- package/scripts/lane/lane-yield-split.ts +218 -0
- package/scripts/lane/lane-yield.ts +38 -4
- package/scripts/lane/openai-lane-ship.ts +2 -2
- package/scripts/lane/openai-lane-supervisor-cli.ts +17 -8
- package/scripts/lane/openai-lane-supervisor-decision.ts +10 -4
- package/scripts/lane/openai-lane-supervisor-entry.ts +6 -0
- package/scripts/lane/openai-lane-supervisor-owner.ts +31 -3
- package/scripts/lane/openai-lane-supervisor.ts +62 -5
- package/scripts/lane/process-directories.ts +3 -1
- package/scripts/lane/process-lane-marks.ts +11 -5
- package/scripts/lane/process-linux.ts +81 -0
- package/scripts/lane/process-tools.ts +2 -5
- package/scripts/lib/bounded-pool.ts +38 -7
- package/scripts/lib/buffered-process.ts +34 -9
- package/scripts/lib/claude-installer.ts +29 -0
- package/scripts/lib/home-tilde.ts +24 -0
- package/scripts/lib/import-closure.ts +72 -0
- package/scripts/lib/josh-temporary-directory.ts +7 -0
- package/scripts/lib/main-guard.ts +29 -0
- package/scripts/lib/package-manifest.ts +80 -3
- package/scripts/lib/pnpm-installer.ts +16 -0
- package/scripts/lib/poll.ts +130 -20
- package/scripts/lib/schemas.ts +1 -1
- package/scripts/lib/stamped-memo.ts +1 -1
- package/scripts/lib/stamped-store.ts +82 -0
- package/scripts/lib/stdin-text.ts +68 -0
- package/scripts/lib/timeouts.ts +4 -4
- package/scripts/lib/transcript-record.ts +4 -0
- package/scripts/lib/verified-download.ts +17 -0
- package/scripts/lines/bytes-command.ts +1 -1
- package/scripts/lint/cspell-cached.ts +1 -1
- package/scripts/lint/eslint-cache-dependencies.ts +38 -8
- package/scripts/lint/eslint-daemon-calls.ts +83 -0
- package/scripts/lint/eslint-daemon.ts +101 -13
- package/scripts/lint/eslint-heap.ts +50 -0
- package/scripts/lint/eslint-memory.js +45 -0
- package/scripts/lint/eslint-trim.ts +44 -0
- package/scripts/lint/eslint-warm.ts +5 -2
- package/scripts/lint/format.ts +30 -5
- package/scripts/lint/import-graph-store.ts +245 -0
- package/scripts/lint/import-graph.ts +54 -65
- package/scripts/lint/import-move.ts +275 -0
- package/scripts/lint/import-test-inputs.ts +97 -0
- package/scripts/lint/lint-gate-scope.ts +1 -0
- package/scripts/lint/lint-parallel.ts +148 -43
- package/scripts/lint/lint-related-scope.ts +6 -1
- package/scripts/lint/lint-related.ts +66 -25
- package/scripts/lint/lint-rule.ts +293 -0
- package/scripts/lint/lint-shard.ts +91 -0
- package/scripts/lint/lint-timing.ts +39 -0
- package/scripts/lint/rename-cli.ts +36 -10
- package/scripts/lint/rename-identifier.ts +2 -2
- package/scripts/lint/type-only-imports.ts +20 -1
- package/scripts/notify/git-notify.ts +3 -1
- package/scripts/notify/telegram-notify.ts +33 -35
- package/scripts/notify/telegram-test.ts +9 -4
- package/scripts/observations/observation-depth-cli.ts +78 -0
- package/scripts/observations/observation-depth.ts +85 -0
- package/scripts/observations/observation-ledger-archive.ts +180 -0
- package/scripts/observations/observation-ledger-home.ts +15 -7
- package/scripts/observations/observation-ledger.ts +5 -0
- package/scripts/observations/observations-flush-landing.ts +1 -1
- package/scripts/observations/observations-flush-transaction.ts +358 -0
- package/scripts/observations/observations-flush.ts +72 -172
- package/scripts/overrides/overrides-check.ts +33 -10
- package/scripts/overrides/overrides-diff-report.ts +91 -0
- package/scripts/overrides/overrides-diff.ts +98 -0
- package/scripts/package/package-scout-cli.ts +37 -11
- package/scripts/package/package-scout-format.ts +20 -6
- package/scripts/package/package-scout-reuse.ts +207 -0
- package/scripts/plan/plan-scaffold-cli.ts +136 -0
- package/scripts/plan/plan-scaffold.ts +123 -0
- package/scripts/ports/port-command.ts +2 -5
- package/scripts/propagate/propagate-git.ts +3 -3
- package/scripts/propagate/propagate-publish.ts +8 -7
- package/scripts/propagate/propagate-steps.ts +2 -3
- package/scripts/refactor/import-graph.ts +2 -4
- package/scripts/refactor/refactor-lint.ts +47 -30
- package/scripts/refactor/refactor-scan.ts +16 -9
- package/scripts/refactor/refactor-targets.ts +2 -3
- package/scripts/release/github-release-notes.ts +24 -0
- package/scripts/release/github-release-runs.ts +32 -6
- package/scripts/release/github-release.ts +20 -12
- package/scripts/release/publish-tag-cli.ts +13 -3
- package/scripts/release/release-cli.ts +2 -0
- package/scripts/release/release-progress.ts +66 -46
- package/scripts/release/release-publish-run.ts +39 -6
- package/scripts/release/release-request.ts +42 -0
- package/scripts/release/release-scope-cli.ts +31 -2
- package/scripts/release/release-workflow-check.ts +59 -0
- package/scripts/repo/repository-labels.ts +23 -11
- package/scripts/report/markdown-shape.ts +2 -1
- package/scripts/report/report-template-cli.ts +2 -2
- package/scripts/report/report-template.ts +17 -4
- package/scripts/review/acceptance-map.ts +87 -8
- package/scripts/review/diff-summary-cli.ts +81 -0
- package/scripts/review/diff-summary.ts +109 -0
- package/scripts/review/disposition-batch-filing.ts +150 -0
- package/scripts/review/disposition-batch.ts +103 -0
- package/scripts/review/disposition-cli.ts +35 -1
- package/scripts/review/import-specifiers.ts +38 -0
- package/scripts/review/prose-stale-cli.ts +7 -37
- package/scripts/review/prose-stale-read.ts +105 -0
- package/scripts/review/prose-stale-scan.ts +121 -17
- package/scripts/review/removed-tests-check.ts +28 -4
- package/scripts/review/review-brief-cli.ts +69 -71
- package/scripts/review/review-brief.ts +38 -42
- package/scripts/review/review-code-tree.ts +80 -16
- package/scripts/review/review-comment-carry.ts +30 -0
- package/scripts/review/review-comment-round.ts +10 -5
- package/scripts/review/review-diff-pack.ts +70 -0
- package/scripts/review/review-diff-write.ts +23 -22
- package/scripts/review/review-final-record.ts +47 -0
- package/scripts/review/review-finding-ledger.ts +72 -10
- package/scripts/review/review-findings-cli.ts +88 -8
- package/scripts/review/review-fix-hunks.ts +115 -0
- package/scripts/review/review-fix-round.ts +144 -0
- package/scripts/review/review-gate-mode.ts +25 -0
- package/scripts/review/review-interaction.ts +69 -11
- package/scripts/review/review-lane-handover.ts +29 -4
- package/scripts/review/review-level.ts +35 -34
- package/scripts/review/review-lint-findings.ts +3 -3
- package/scripts/review/review-lint-sections.ts +2 -2
- package/scripts/review/review-lint.ts +7 -1
- package/scripts/review/review-pair-cli.ts +157 -0
- package/scripts/review/review-pair-log.ts +75 -0
- package/scripts/review/review-pair-session.ts +98 -0
- package/scripts/review/review-pair.ts +112 -0
- package/scripts/review/review-prior-findings.ts +2 -4
- package/scripts/review/review-prompt-level.ts +28 -0
- package/scripts/review/review-readers-scan.ts +25 -3
- package/scripts/review/review-record-cli.ts +46 -68
- package/scripts/review/review-record-interaction.ts +2 -2
- package/scripts/review/review-record-main.ts +7 -2
- package/scripts/review/review-record-pinned.ts +5 -0
- package/scripts/review/review-record-slot.ts +155 -0
- package/scripts/review/review-reviewed-tree.ts +60 -13
- package/scripts/review/review-round-one-blobs.ts +43 -9
- package/scripts/review/review-round-one-skip.ts +72 -0
- package/scripts/review/review-round-reuse.ts +13 -6
- package/scripts/review/review-round.ts +57 -0
- package/scripts/review/review-round2-cli.ts +5 -0
- package/scripts/review/review-round2-skip-comment.ts +3 -1
- package/scripts/review/review-round2.ts +18 -6
- package/scripts/review/review-size.ts +92 -0
- package/scripts/review/review-stamps.ts +8 -0
- package/scripts/review/review-submit-args.ts +91 -0
- package/scripts/review/review-submit-cli.ts +55 -29
- package/scripts/review/selfcheck-cli.ts +193 -0
- package/scripts/review/selfcheck-commands.ts +175 -0
- package/scripts/review/selfcheck-report.ts +98 -0
- package/scripts/rules/bash-triggers.ts +24 -13
- package/scripts/rules/broad-investigation-shell.ts +183 -0
- package/scripts/rules/broad-investigation.ts +116 -0
- package/scripts/rules/codex-prompt.ts +63 -0
- package/scripts/rules/consultation-handoff.ts +81 -0
- package/scripts/rules/consultation-investigation.ts +99 -0
- package/scripts/rules/decision-oracle.ts +1 -1
- package/scripts/rules/delivered-rules-guard.ts +94 -0
- package/scripts/rules/delivered-rules.ts +46 -87
- package/scripts/rules/destructive-command.ts +2 -1
- package/scripts/rules/direct-git-status.ts +81 -0
- package/scripts/rules/direct-issue-comment.ts +71 -3
- package/scripts/rules/direct-issue-read.ts +55 -2
- package/scripts/rules/direct-vitest-run.ts +98 -0
- package/scripts/rules/egress-guard.ts +308 -0
- package/scripts/rules/firing-point.ts +9 -12
- package/scripts/rules/gh-api.ts +19 -4
- package/scripts/rules/gh-repo-selector.ts +1 -1
- package/scripts/rules/git-argv.ts +57 -10
- package/scripts/rules/guard-remedy.ts +18 -3
- package/scripts/rules/guard-rule-rows.ts +13 -0
- package/scripts/rules/implementation-cut-verdict.ts +1 -1
- package/scripts/rules/implementation-cut.ts +94 -31
- package/scripts/rules/interpreter-options.ts +179 -0
- package/scripts/rules/investigator-foreground.ts +13 -7
- package/scripts/rules/issue-citation.ts +20 -9
- package/scripts/rules/josh-git-bare.ts +1 -1
- package/scripts/rules/keychain-read.ts +73 -0
- package/scripts/rules/lane-background.ts +15 -14
- package/scripts/rules/lane-carry-conflict.ts +15 -8
- package/scripts/rules/lane-direct-tool.ts +18 -11
- package/scripts/rules/lane-interactive-ask.ts +3 -5
- package/scripts/rules/lane-park.ts +25 -10
- package/scripts/rules/lane-spilled-read.ts +3 -5
- package/scripts/rules/lane-split-park.ts +7 -6
- package/scripts/rules/lane-switch-main.ts +10 -3
- package/scripts/rules/last-prompt.ts +8 -4
- package/scripts/rules/launched-call.ts +135 -0
- package/scripts/rules/main-model.ts +54 -0
- package/scripts/rules/nested-commands.ts +71 -0
- package/scripts/rules/permission-guards.ts +6 -2
- package/scripts/rules/pr-merge.ts +1 -1
- package/scripts/rules/pre-gate-cut.ts +20 -11
- package/scripts/rules/protected-files.ts +34 -98
- package/scripts/rules/repeat-check-related.ts +66 -0
- package/scripts/rules/reviewer-foreground.ts +11 -7
- package/scripts/rules/round-one-check-related.ts +59 -19
- package/scripts/rules/rule-list.ts +3 -4
- package/scripts/rules/rule-rephrase.ts +43 -0
- package/scripts/rules/rule-rewrite.ts +16 -6
- package/scripts/rules/rule-value-cache.ts +10 -1
- package/scripts/rules/rule-value-cli.ts +143 -54
- package/scripts/rules/rule-value-prose.ts +186 -0
- package/scripts/rules/rule-value-runs.ts +171 -0
- package/scripts/rules/rule-value-trend.ts +108 -0
- package/scripts/rules/rule-value.ts +38 -13
- package/scripts/rules/run-tail-rule.ts +19 -2
- package/scripts/rules/secret-paths.ts +92 -0
- package/scripts/rules/sed-in-place.ts +1 -1
- package/scripts/rules/shell-permissions.ts +91 -0
- package/scripts/rules/shell-redirects.ts +66 -0
- package/scripts/rules/shell-segments.ts +148 -22
- package/scripts/rules/shell-tokens.ts +66 -0
- package/scripts/rules/standalone-gh-call.ts +63 -0
- package/scripts/rules/stop-decision.ts +7 -1
- package/scripts/rules/stop-rules.ts +1 -1
- package/scripts/rules/unasked-filing.ts +166 -0
- package/scripts/run/add/run-add-cli.ts +114 -36
- package/scripts/run/add/run-add-epic.ts +45 -0
- package/scripts/run/add/run-add-issue.ts +17 -0
- package/scripts/run/add/run-add.ts +159 -21
- package/scripts/run/attached-log.ts +38 -0
- package/scripts/run/board/run-board-cli.ts +34 -9
- package/scripts/run/board/run-board-closed-graphql.ts +129 -0
- package/scripts/run/board/run-board-closed.ts +78 -11
- package/scripts/run/board/run-board-decision-graphql.ts +136 -0
- package/scripts/run/board/run-board-decision-read.ts +235 -0
- package/scripts/run/board/run-board-decision.ts +97 -0
- package/scripts/run/board/run-board-earlier.ts +27 -3
- package/scripts/run/board/run-board-ending-reason.ts +112 -9
- package/scripts/run/board/run-board-ending-states.ts +34 -0
- package/scripts/run/board/run-board-every.ts +19 -9
- package/scripts/run/board/run-board-first-lane.ts +26 -0
- package/scripts/run/board/run-board-fit.ts +47 -11
- package/scripts/run/board/run-board-fold-store.ts +62 -0
- package/scripts/run/board/run-board-fold.ts +41 -9
- package/scripts/run/board/run-board-gather-live.ts +2 -0
- package/scripts/run/board/run-board-gather-thread.ts +14 -3
- package/scripts/run/board/run-board-gather-worker.ts +10 -8
- package/scripts/run/board/run-board-gather.ts +10 -3
- package/scripts/run/board/run-board-github.ts +125 -30
- package/scripts/run/board/run-board-header.ts +33 -24
- package/scripts/run/board/run-board-held.ts +53 -0
- package/scripts/run/board/run-board-human-merge.ts +113 -0
- package/scripts/run/board/run-board-human.ts +37 -0
- package/scripts/run/board/run-board-idle.ts +9 -6
- package/scripts/run/board/run-board-issue-count.ts +101 -0
- package/scripts/run/board/run-board-keys.ts +19 -4
- package/scripts/run/board/run-board-labels.ts +20 -4
- package/scripts/run/board/run-board-lane-event.ts +23 -2
- package/scripts/run/board/run-board-lane-result.ts +58 -0
- package/scripts/run/board/run-board-lane-state.ts +52 -7
- package/scripts/run/board/run-board-lane-stop.ts +108 -0
- package/scripts/run/board/run-board-lane-time.ts +1 -0
- package/scripts/run/board/run-board-layout.ts +68 -76
- package/scripts/run/board/run-board-link.ts +44 -2
- package/scripts/run/board/run-board-notes.ts +1 -1
- package/scripts/run/board/run-board-now.ts +1 -1
- package/scripts/run/board/run-board-operation-codex.ts +37 -0
- package/scripts/run/board/run-board-operation-read.ts +2 -2
- package/scripts/run/board/run-board-operation.ts +14 -7
- package/scripts/run/board/run-board-pause-fixture.json +12 -0
- package/scripts/run/board/run-board-pause.ts +87 -0
- package/scripts/run/board/run-board-plan-shared.ts +5 -0
- package/scripts/run/board/run-board-plan.ts +6 -1
- package/scripts/run/board/run-board-process-groups.ts +1 -1
- package/scripts/run/board/run-board-quota-held.ts +319 -0
- package/scripts/run/board/run-board-quota-lane.ts +23 -0
- package/scripts/run/board/run-board-quota-read.ts +422 -0
- package/scripts/run/board/run-board-quota-spent.ts +162 -0
- package/scripts/run/board/run-board-quota-status.ts +67 -0
- package/scripts/run/board/run-board-read.ts +112 -36
- package/scripts/run/board/run-board-reason.ts +40 -20
- package/scripts/run/board/run-board-render-condition.ts +27 -2
- package/scripts/run/board/run-board-render-drawn.ts +5 -1
- package/scripts/run/board/run-board-render-foot.ts +5 -1
- package/scripts/run/board/run-board-render-found.ts +21 -2
- package/scripts/run/board/run-board-render-icon.ts +3 -6
- package/scripts/run/board/run-board-render-lanes.ts +49 -9
- package/scripts/run/board/run-board-render-lead.ts +20 -1
- package/scripts/run/board/run-board-render-legend.ts +4 -0
- package/scripts/run/board/run-board-render-none.ts +35 -0
- package/scripts/run/board/run-board-render-notes.ts +5 -3
- package/scripts/run/board/run-board-render-processes.ts +6 -5
- package/scripts/run/board/run-board-render-quota-cell.ts +81 -0
- package/scripts/run/board/run-board-render-quota-github.ts +112 -0
- package/scripts/run/board/run-board-render-quota.ts +285 -0
- package/scripts/run/board/run-board-render-section.ts +50 -6
- package/scripts/run/board/run-board-render-tail.ts +53 -7
- package/scripts/run/board/run-board-render-throughput.ts +140 -0
- package/scripts/run/board/run-board-render-title.ts +33 -4
- package/scripts/run/board/run-board-render.ts +59 -57
- package/scripts/run/board/run-board-row-yield.ts +1 -0
- package/scripts/run/board/run-board-scope.ts +13 -6
- package/scripts/run/board/run-board-seat.ts +107 -0
- package/scripts/run/board/run-board-settle.ts +47 -0
- package/scripts/run/board/run-board-setup.ts +30 -15
- package/scripts/run/board/run-board-single.ts +123 -0
- package/scripts/run/board/run-board-snapshot.ts +11 -1
- package/scripts/run/board/run-board-span.ts +18 -3
- package/scripts/run/board/run-board-spin.ts +12 -6
- package/scripts/run/board/run-board-standing-waits.ts +52 -0
- package/scripts/run/board/run-board-state.ts +23 -0
- package/scripts/run/board/run-board-status.ts +97 -100
- package/scripts/run/board/run-board-throughput.ts +215 -0
- package/scripts/run/board/run-board-tick.ts +76 -30
- package/scripts/run/board/run-board-usage-read.ts +3 -3
- package/scripts/run/board/run-board-usage-top.ts +12 -35
- package/scripts/run/board/run-board-usual.ts +18 -1
- package/scripts/run/carry/run-carry-added.ts +6 -1
- package/scripts/run/carry/run-carry-args.ts +22 -8
- package/scripts/run/carry/run-carry-cli.ts +31 -1
- package/scripts/run/carry/run-carry-conversation.ts +12 -4
- package/scripts/run/carry/run-carry-ended.ts +3 -0
- package/scripts/run/carry/run-carry-reclaim.ts +2 -1
- package/scripts/run/carry/run-carry.ts +40 -20
- package/scripts/run/cut/run-cut-adoption.ts +67 -0
- package/scripts/run/cut/run-cut-cli.ts +89 -34
- package/scripts/run/cut/run-cut-decline.ts +1 -1
- package/scripts/run/cut/run-cut-handoff.ts +2 -1
- package/scripts/run/cut/run-cut-next.ts +20 -0
- package/scripts/run/cut/run-cut-ready.ts +7 -5
- package/scripts/run/cut/run-cut-report.ts +13 -14
- package/scripts/run/cut/run-cut-resume.ts +1 -1
- package/scripts/run/cut/run-cut.ts +36 -23
- package/scripts/run/detached-launch.ts +12 -7
- package/scripts/run/early-push-record.ts +22 -0
- package/scripts/run/entry/run-entry-children.ts +126 -0
- package/scripts/run/entry/run-entry-cli.ts +126 -82
- package/scripts/run/entry/run-entry-dispatch.ts +20 -0
- package/scripts/run/entry/run-entry-lane-plan.ts +39 -0
- package/scripts/run/entry/run-entry-spill.ts +67 -22
- package/scripts/run/entry/run-entry-stop.ts +9 -8
- package/scripts/run/entry/run-entry-sync.ts +149 -0
- package/scripts/run/entry/run-entry-trust.ts +1 -1
- package/scripts/run/entry/run-entry.ts +9 -0
- package/scripts/run/event/run-event-checks.ts +1 -1
- package/scripts/run/event/run-event-filed.ts +1 -1
- package/scripts/run/event/run-event-follow.ts +9 -5
- package/scripts/run/event/run-event-overrun.ts +7 -7
- package/scripts/run/event/run-event-plan.ts +1 -1
- package/scripts/run/event/run-event-render.ts +5 -0
- package/scripts/run/event/run-event-retry.ts +34 -0
- package/scripts/run/event/run-event-scope.ts +4 -1
- package/scripts/run/event/run-event-setup.ts +55 -5
- package/scripts/run/event/run-event-step.ts +81 -0
- package/scripts/run/event/run-event-stream-emit.ts +63 -23
- package/scripts/run/event/run-event-stream.ts +69 -21
- package/scripts/run/event/run-event-tail.ts +122 -0
- package/scripts/run/event/run-event-watch.ts +12 -7
- package/scripts/run/handoff/run-handoff-args.ts +93 -0
- package/scripts/run/handoff/run-handoff-cli.ts +320 -0
- package/scripts/run/handoff/run-handoff-final.ts +38 -0
- package/scripts/run/handoff/run-handoff-launch.ts +113 -0
- package/scripts/run/handoff/run-handoff-retrospective.ts +48 -0
- package/scripts/run/handoff-lanes/run-handoff-lanes-cli.ts +31 -0
- package/scripts/run/handoff-lanes/run-handoff-lanes.ts +183 -0
- package/scripts/run/hold/run-hold-block.ts +35 -0
- package/scripts/run/hold/run-hold-cli.ts +20 -36
- package/scripts/run/hold/run-hold-main.ts +16 -1
- package/scripts/run/hold/run-hold.ts +12 -8
- package/scripts/run/hold/run-stop-notify.ts +1 -1
- package/scripts/run/launch-priority.ts +4 -7
- package/scripts/run/merge/run-merge-auth.ts +38 -13
- package/scripts/run/merge/run-merge-cap.ts +11 -6
- package/scripts/run/merge/run-merge-cli.ts +55 -58
- package/scripts/run/merge/run-merge-dated.ts +64 -0
- package/scripts/run/merge/run-merge-decision.ts +183 -0
- package/scripts/run/merge/run-merge-driver.ts +2 -0
- package/scripts/run/merge/run-merge-github-limit.ts +98 -0
- package/scripts/run/merge/run-merge-health.ts +137 -0
- package/scripts/run/merge/run-merge-human-review.ts +26 -0
- package/scripts/run/merge/run-merge-restart.ts +10 -3
- package/scripts/run/merge/run-merge-signals.ts +34 -9
- package/scripts/run/merge/run-merge-steps.ts +49 -50
- package/scripts/run/merge/run-merge-token.ts +3 -4
- package/scripts/run/merge/run-merge-usage-limit.ts +22 -9
- package/scripts/run/merge/run-merge-withdrawn.ts +4 -3
- package/scripts/run/merge/run-merge.ts +36 -18
- package/scripts/run/park/run-park-answered.ts +84 -0
- package/scripts/run/park/run-park-body.ts +346 -0
- package/scripts/run/park/run-park-cli.ts +49 -12
- package/scripts/run/park/run-park-escalate.ts +102 -0
- package/scripts/run/park/run-park-lane.ts +41 -0
- package/scripts/run/park/run-park-release.ts +61 -0
- package/scripts/run/park/run-park-write.ts +41 -0
- package/scripts/run/park/run-park.ts +2 -4
- package/scripts/run/park/run-stalled-park.ts +32 -0
- package/scripts/run/park/run-stalled.ts +97 -12
- package/scripts/run/pause/run-pause-cli.ts +4 -3
- package/scripts/run/pause/run-pause-comment.ts +30 -0
- package/scripts/run/pause/run-pause.ts +35 -223
- package/scripts/run/pause/run-set-aside-commit.ts +52 -0
- package/scripts/run/pause/run-set-aside.ts +139 -0
- package/scripts/run/prime/run-prime-cli.ts +105 -0
- package/scripts/run/progress/run-progress-cli.ts +44 -27
- package/scripts/run/progress/run-progress-config.ts +7 -18
- package/scripts/run/progress/run-progress.ts +16 -7
- package/scripts/run/review/run-chain-cli.ts +162 -0
- package/scripts/run/review/run-chain-join.ts +108 -0
- package/scripts/run/review/run-chain-review-fix.ts +70 -0
- package/scripts/run/review/run-chain.ts +167 -0
- package/scripts/run/review/run-review-cli.ts +127 -53
- package/scripts/run/review/run-review-early-push.ts +46 -12
- package/scripts/run/review/run-review-join-ready.ts +88 -0
- package/scripts/run/review/run-review-pinned-accepted.ts +15 -1
- package/scripts/run/review/run-review-pinned-join.ts +8 -4
- package/scripts/run/review/run-review-pinned-steps.ts +12 -7
- package/scripts/run/review/run-review-pinned.ts +8 -3
- package/scripts/run/review/run-review-steps.ts +29 -14
- package/scripts/run/review/run-review-unplanned.ts +75 -0
- package/scripts/run/review/run-review.ts +4 -4
- package/scripts/run/run-halfrun-resume.ts +9 -1
- package/scripts/run/run-headless-keys.ts +23 -0
- package/scripts/run/run-headless.ts +77 -13
- package/scripts/run/run-investigation-record.ts +66 -0
- package/scripts/run/run-label-main.ts +55 -0
- package/scripts/run/run-label.ts +20 -4
- package/scripts/run/run-liveness-cli.ts +1 -1
- package/scripts/run/run-liveness.ts +6 -5
- package/scripts/run/run-maintenance.ts +66 -0
- package/scripts/run/run-open-pr.ts +19 -0
- package/scripts/run/run-parent-cut-hook.ts +17 -9
- package/scripts/run/run-pickup-cli.ts +86 -0
- package/scripts/run/run-pickup-launch.ts +85 -0
- package/scripts/run/run-poll-hook.ts +14 -7
- package/scripts/run/run-pr-return.ts +99 -0
- package/scripts/run/run-prep-cli.ts +54 -7
- package/scripts/run/run-prep-locate.ts +8 -3
- package/scripts/run/run-prep-summary.ts +55 -0
- package/scripts/run/run-prep.ts +37 -1
- package/scripts/run/run-report-cli.ts +13 -2
- package/scripts/run/run-report-end.ts +133 -0
- package/scripts/run/run-report-handoff.ts +1 -1
- package/scripts/run/run-report.ts +7 -1
- package/scripts/run/run-stage-read.ts +38 -4
- package/scripts/run/run-stage.ts +18 -6
- package/scripts/run/run-status.ts +2 -1
- package/scripts/run/run-step-cli.ts +38 -10
- package/scripts/run/run-step-lane-plan.ts +26 -12
- package/scripts/run/run-step-progress.ts +61 -0
- package/scripts/run/run-step-section-driver.ts +27 -0
- package/scripts/run/run-step-section-once.ts +83 -0
- package/scripts/run/run-step-section-table.ts +120 -0
- package/scripts/run/run-step-section.ts +39 -53
- package/scripts/run/run-step.ts +4 -3
- package/scripts/run/run-stop-notify.ts +1 -1
- package/scripts/run/run-tail-cli.ts +14 -6
- package/scripts/run/run-tail.ts +22 -0
- package/scripts/run/run-watcher-guard.ts +15 -5
- package/scripts/run/run-watcher-hook.ts +12 -6
- package/scripts/run/ship/run-ship-args.ts +8 -1
- package/scripts/run/ship/run-ship-cli.ts +68 -65
- package/scripts/run/ship/run-ship-conflict-probe.ts +12 -14
- package/scripts/run/ship/run-ship-detach-wait.ts +25 -0
- package/scripts/run/ship/run-ship-detach.ts +29 -35
- package/scripts/run/ship/run-ship-early-push.ts +34 -0
- package/scripts/run/ship/run-ship-evidence-cli.ts +133 -0
- package/scripts/run/ship/run-ship-evidence.ts +71 -0
- package/scripts/run/ship/run-ship-final-review.ts +28 -0
- package/scripts/run/ship/run-ship-gate-runs.ts +58 -0
- package/scripts/run/ship/run-ship-group.ts +38 -0
- package/scripts/run/ship/run-ship-handover.ts +1 -1
- package/scripts/run/ship/run-ship-lap.ts +100 -12
- package/scripts/run/ship/run-ship-narrowed.ts +104 -0
- package/scripts/run/ship/run-ship-next.ts +3 -3
- package/scripts/run/ship/run-ship-pair-runs.ts +127 -0
- package/scripts/run/ship/run-ship-place.ts +9 -8
- package/scripts/run/ship/run-ship-planned.ts +1 -1
- package/scripts/run/ship/run-ship-pre-detach-pinned.ts +7 -1
- package/scripts/run/ship/run-ship-pre-detach.ts +18 -12
- package/scripts/run/ship/run-ship-preflight-reuse.ts +53 -0
- package/scripts/run/ship/run-ship-preflight.ts +21 -2
- package/scripts/run/ship/run-ship-probe.ts +5 -15
- package/scripts/run/ship/run-ship-record-wait.ts +30 -0
- package/scripts/run/ship/run-ship-relaunch-cap.ts +107 -14
- package/scripts/run/ship/run-ship-relaunch.ts +7 -1
- package/scripts/run/ship/run-ship-removed-rows.ts +34 -10
- package/scripts/run/ship/run-ship-reship.ts +125 -0
- package/scripts/run/ship/run-ship-return.ts +68 -22
- package/scripts/run/ship/run-ship-review-checkpoint.ts +112 -0
- package/scripts/run/ship/run-ship-review-reason.ts +3 -1
- package/scripts/run/ship/run-ship-review-steps.ts +80 -31
- package/scripts/run/ship/run-ship-review.ts +13 -9
- package/scripts/run/ship/run-ship-reviewer.ts +59 -7
- package/scripts/run/ship/run-ship-scoped.ts +232 -21
- package/scripts/run/ship/run-ship-stage.ts +3 -5
- package/scripts/run/ship/run-ship-steps.ts +65 -20
- package/scripts/run/ship/run-ship-stop-cause.ts +64 -2
- package/scripts/run/ship/run-ship-stop-context.ts +5 -5
- package/scripts/run/ship/run-ship-stop-text.ts +1 -1
- package/scripts/run/ship/run-ship-supervised.ts +38 -0
- package/scripts/run/ship/run-ship-sync.ts +114 -19
- package/scripts/run/ship/run-ship-synced-scope.ts +162 -58
- package/scripts/run/ship/run-ship-tree-stamp.ts +35 -0
- package/scripts/run/ship/run-ship-wait-cli.ts +23 -25
- package/scripts/run/ship/run-ship-wait-main.ts +12 -0
- package/scripts/run/ship/run-ship-waiter.ts +8 -6
- package/scripts/run/ship/run-ship.ts +12 -0
- package/scripts/run/split/run-split-cli.ts +134 -0
- package/scripts/run/split/run-split-prerequisite.ts +75 -0
- package/scripts/run/split/run-split.ts +213 -0
- package/scripts/run/stale/run-stale-cli.ts +86 -0
- package/scripts/run/stale/run-stale-main.ts +7 -0
- package/scripts/run/stale/run-stale.ts +117 -0
- package/scripts/run/tidy/run-tidy-cli.ts +24 -2
- package/scripts/run/tree-status-cli.ts +131 -0
- package/scripts/run/tree-status.ts +77 -0
- package/scripts/run/ts-entry-loader.ts +34 -0
- package/scripts/run/wake/run-wake-await.ts +22 -2
- package/scripts/run/wake/run-wake-cli.ts +3 -3
- package/scripts/run/wake/run-wake-describe.ts +1 -1
- package/scripts/run/wake/run-wake-driver.ts +158 -61
- package/scripts/run/wake/run-wake-handoff.ts +65 -14
- package/scripts/run/wake/run-wake-loop.ts +63 -23
- package/scripts/run/wake/run-wake-ports.ts +99 -17
- package/scripts/run/wake/run-wake-resume.ts +98 -0
- package/scripts/run/wake/run-wake-session.ts +16 -14
- package/scripts/run/wake/run-wake-window.ts +15 -0
- package/scripts/run/wake/run-wake.ts +7 -6
- package/scripts/safe-chain/preinstall-command.ts +3 -6
- package/scripts/safe-chain/project-config.ts +2 -2
- package/scripts/security/security-audit-cache.ts +157 -0
- package/scripts/security/security-audit-main.ts +4 -2
- package/scripts/security/security-audit-provision-logic.ts +4 -4
- package/scripts/security/security-audit-provision-main.ts +19 -5
- package/scripts/split/declared-growth.ts +22 -0
- package/scripts/split/split-assess.ts +229 -37
- package/scripts/split/split-child-recover-cli.ts +118 -0
- package/scripts/split/split-direction.ts +172 -0
- package/scripts/split/split-measure.ts +28 -14
- package/scripts/split/split-relocations.ts +108 -0
- package/scripts/split/split-resolution.ts +63 -61
- package/scripts/sync/claude-settings-merge.ts +8 -4
- package/scripts/sync/managed-config-scope.ts +13 -1
- package/scripts/sync/sync-ai-files.ts +2 -2
- package/scripts/sync/sync-configs.ts +3 -5
- package/scripts/test/test-e2e-guard.ts +2 -1
- package/scripts/test/test-inputs.ts +119 -0
- package/scripts/test/test-no-base.ts +35 -16
- package/scripts/test/test-pinned-cache-logic.ts +4 -0
- package/scripts/test/test-pinned-cache.ts +8 -15
- package/scripts/test/test-pinned-carry.ts +93 -0
- package/scripts/test/test-pinned-emit.ts +2 -1
- package/scripts/test/test-pinned-ledger.ts +15 -9
- package/scripts/test/test-pinned-logic.ts +66 -4
- package/scripts/test/test-pinned-main.ts +6 -30
- package/scripts/test/test-pinned-moves.ts +43 -0
- package/scripts/test/test-pinned-probe.ts +61 -17
- package/scripts/test/test-pinned-prune-logic.ts +2 -1
- package/scripts/test/test-pinned-reach.ts +11 -3
- package/scripts/test/test-pinned-record.ts +36 -4
- package/scripts/test/test-pinned-snapshot.ts +110 -0
- package/scripts/test/test-pinned-spawn.ts +32 -7
- package/scripts/test/test-pinned-stage.ts +43 -16
- package/scripts/test/test-pinned-type-check.ts +110 -0
- package/scripts/test/test-pinned.ts +92 -35
- package/scripts/test/test-red-logic.ts +40 -2
- package/scripts/test/test-red.ts +131 -19
- package/scripts/test/test-related-cap.ts +182 -0
- package/scripts/test/test-related-main.ts +2 -4
- package/scripts/test/test-related-pins.ts +33 -0
- package/scripts/test/test-related-record.ts +84 -8
- package/scripts/test/test-related-red.ts +218 -0
- package/scripts/test/test-related-reuse.ts +167 -0
- package/scripts/test/test-related-run.ts +144 -0
- package/scripts/test/test-related-synced.ts +31 -8
- package/scripts/test/test-related-touched.ts +29 -6
- package/scripts/test/test-related-verdict.ts +127 -0
- package/scripts/test/test-related-whole.ts +22 -0
- package/scripts/test/test-related.ts +124 -147
- package/scripts/test/test-type-logic.ts +1 -2
- package/scripts/test/test-unit-guard.ts +12 -3
- package/scripts/test/unit-count-file.ts +25 -1
- package/scripts/test/unit-lane-count.ts +63 -0
- package/scripts/test/unit-run-marker.ts +11 -1
- package/scripts/test/unit-update-arguments.ts +73 -0
- package/scripts/test/unit-worker-share.ts +28 -13
- package/scripts/test/whole-suite-files.ts +2 -0
- package/scripts/time-runtime/guard-rephrase.ts +66 -0
- package/scripts/time-runtime/time-agent-bundles.ts +5 -5
- package/scripts/time-runtime/time-bundle-call.ts +2 -2
- package/scripts/time-runtime/time-bundles.ts +2 -2
- package/scripts/time-runtime/time-command-key.ts +2 -5
- package/scripts/time-runtime/time-density-hook.ts +2 -31
- package/scripts/time-runtime/time-format.ts +4 -4
- package/scripts/time-runtime/time-josh-names.ts +51 -0
- package/scripts/time-runtime/time-markers.ts +4 -4
- package/scripts/time-runtime/time-phase-names.ts +2 -2
- package/scripts/time-runtime/time-shell.ts +28 -17
- package/scripts/time-runtime/time-single-check.ts +4 -4
- package/scripts/time-runtime/time-spans.ts +8 -8
- package/scripts/time-runtime/time-tool-call.ts +4 -3
- package/scripts/time-runtime/time-transcript-block.ts +172 -0
- package/scripts/time-runtime/time-transcript-line.ts +26 -158
- package/scripts/time-runtime/transcript-tail.ts +39 -0
- package/scripts/ui/ui-shot-cli.ts +90 -0
- package/scripts/ui/ui-shot.ts +95 -0
- package/scripts/usage/usage-state-path.ts +22 -0
- package/scripts/usage/usage-tee-cli.ts +5 -0
- package/scripts/usage/usage-tee.ts +48 -0
- package/scripts/version/development-engines-verdict.ts +7 -1
- package/scripts/version/fresh-metadata-cache.ts +4 -3
- package/scripts/version/latest-corepack.ts +3 -3
- package/scripts/version/latest-if-required-cli.ts +32 -4
- package/scripts/version/latest-scope-cli.ts +12 -2
- package/scripts/version/latest-stamp.ts +5 -4
- package/scripts/version/npm-registry.ts +19 -0
- package/scripts/version/playwright-browsers.ts +1 -1
- package/scripts/version/release-hold.ts +2 -2
- package/scripts/version/upgrade-command-guard.ts +1 -1
- package/templates/prettierignore.basic +3 -0
- package/templates/sonar-project.properties +2 -1
- package/templates/workflows/ci.yml +5 -4
- package/tsconfig/base.json +1 -0
- package/dist/hooks/chunk-3GKE653K.js +0 -6204
- package/dist/hooks/chunk-45CJJOO7.js +0 -1243
- package/dist/hooks/chunk-5PM2JRGV.js +0 -7780
- package/dist/hooks/chunk-7SIUNQXK.js +0 -3591
- package/dist/hooks/chunk-Z6DQJKH3.js +0 -2806
- package/prompts/collaboration-workflow.md +0 -28
- package/scripts/epic/epic-bundle-poll.ts +0 -41
- package/scripts/josh/josh-commands-lane.ts +0 -310
- package/scripts/josh/josh-commands-split.ts +0 -28
- package/scripts/review/review-lint-cli.ts +0 -57
- package/scripts/split/split-early-notice.ts +0 -116
|
@@ -0,0 +1,2023 @@
|
|
|
1
|
+
#!/usr/bin/env tsx
|
|
2
|
+
import {
|
|
3
|
+
lane_hand_back_hold
|
|
4
|
+
} from "./chunk-BJA5U4Q7.js";
|
|
5
|
+
import {
|
|
6
|
+
backlog_arrival_added,
|
|
7
|
+
backlog_drive_listing
|
|
8
|
+
} from "./chunk-UTHUX7VU.js";
|
|
9
|
+
import {
|
|
10
|
+
backlog_drive_launch,
|
|
11
|
+
backlog_drive_launch_pass,
|
|
12
|
+
backlog_drive_owner,
|
|
13
|
+
backlog_drive_seats,
|
|
14
|
+
backlog_drive_trace,
|
|
15
|
+
backlog_drive_unit
|
|
16
|
+
} from "./chunk-6YURRFRU.js";
|
|
17
|
+
import "./chunk-AJWR7D3H.js";
|
|
18
|
+
import {
|
|
19
|
+
lane_launch_cli
|
|
20
|
+
} from "./chunk-LB557AHJ.js";
|
|
21
|
+
import {
|
|
22
|
+
run_add,
|
|
23
|
+
run_add_issue
|
|
24
|
+
} from "./chunk-YTBQAD5W.js";
|
|
25
|
+
import {
|
|
26
|
+
run_park_release
|
|
27
|
+
} from "./chunk-OGS2DK7I.js";
|
|
28
|
+
import {
|
|
29
|
+
backlog_offer,
|
|
30
|
+
backlog_offer_cli
|
|
31
|
+
} from "./chunk-KWYQR5MK.js";
|
|
32
|
+
import "./chunk-KODXWMBX.js";
|
|
33
|
+
import {
|
|
34
|
+
auto_ok_judge_read
|
|
35
|
+
} from "./chunk-W7DRUOF7.js";
|
|
36
|
+
import {
|
|
37
|
+
backlog_drive_retrospective
|
|
38
|
+
} from "./chunk-P5SOYWH2.js";
|
|
39
|
+
import {
|
|
40
|
+
backlog_drive_memory,
|
|
41
|
+
backlog_drive_named,
|
|
42
|
+
issue_human_stops
|
|
43
|
+
} from "./chunk-4DN4XVPL.js";
|
|
44
|
+
import {
|
|
45
|
+
backlog_drive_adopt
|
|
46
|
+
} from "./chunk-24ZDAWML.js";
|
|
47
|
+
import {
|
|
48
|
+
run_merge_driver
|
|
49
|
+
} from "./chunk-4JI35CVO.js";
|
|
50
|
+
import {
|
|
51
|
+
gh_core_rate_limit,
|
|
52
|
+
run_merge_token,
|
|
53
|
+
run_merge_usage_limit
|
|
54
|
+
} from "./chunk-FHFWNNUC.js";
|
|
55
|
+
import "./chunk-VV4TQYGD.js";
|
|
56
|
+
import {
|
|
57
|
+
backlog_drive_args
|
|
58
|
+
} from "./chunk-JHN6RCE6.js";
|
|
59
|
+
import {
|
|
60
|
+
run_park_body
|
|
61
|
+
} from "./chunk-UREXZJDB.js";
|
|
62
|
+
import "./chunk-ZYGOZT4J.js";
|
|
63
|
+
import "./chunk-QGATHT4S.js";
|
|
64
|
+
import {
|
|
65
|
+
lane_plan_probe
|
|
66
|
+
} from "./chunk-2QM72JCJ.js";
|
|
67
|
+
import "./chunk-BTZJDHQT.js";
|
|
68
|
+
import "./chunk-BCUDQWYK.js";
|
|
69
|
+
import "./chunk-5CG3XU3O.js";
|
|
70
|
+
import "./chunk-RUQY5TS3.js";
|
|
71
|
+
import "./chunk-OP2RFVLS.js";
|
|
72
|
+
import "./chunk-FWU3H4TX.js";
|
|
73
|
+
import {
|
|
74
|
+
issue_state_cli
|
|
75
|
+
} from "./chunk-BRHPRDDV.js";
|
|
76
|
+
import "./chunk-M6JDU5EK.js";
|
|
77
|
+
import "./chunk-4ZJOC6OK.js";
|
|
78
|
+
import "./chunk-2CXT6MBR.js";
|
|
79
|
+
import "./chunk-ZVAIIHBE.js";
|
|
80
|
+
import "./chunk-4ZQM4I7R.js";
|
|
81
|
+
import "./chunk-KZZWPUJW.js";
|
|
82
|
+
import "./chunk-HRLGFRAV.js";
|
|
83
|
+
import "./chunk-T4F33UKZ.js";
|
|
84
|
+
import "./chunk-SASX3W2M.js";
|
|
85
|
+
import {
|
|
86
|
+
backlog_ready
|
|
87
|
+
} from "./chunk-M4UV3BEV.js";
|
|
88
|
+
import {
|
|
89
|
+
backlog_hold_codes
|
|
90
|
+
} from "./chunk-ZAAHZY2A.js";
|
|
91
|
+
import "./chunk-ELY76WAR.js";
|
|
92
|
+
import "./chunk-KCFOP5RI.js";
|
|
93
|
+
import "./chunk-EYMPBHDN.js";
|
|
94
|
+
import "./chunk-MFBNNTBM.js";
|
|
95
|
+
import "./chunk-TYNH2R66.js";
|
|
96
|
+
import "./chunk-EFDVE5P5.js";
|
|
97
|
+
import {
|
|
98
|
+
epic_triage
|
|
99
|
+
} from "./chunk-VQRT32JB.js";
|
|
100
|
+
import "./chunk-77BIN247.js";
|
|
101
|
+
import "./chunk-ANUTT56I.js";
|
|
102
|
+
import "./chunk-OX3VQLV2.js";
|
|
103
|
+
import {
|
|
104
|
+
backlog_plan_comment
|
|
105
|
+
} from "./chunk-AVVMDVGO.js";
|
|
106
|
+
import "./chunk-5UJGACVN.js";
|
|
107
|
+
import {
|
|
108
|
+
auto_ok_author,
|
|
109
|
+
auto_ok_cli
|
|
110
|
+
} from "./chunk-FMZWRDKH.js";
|
|
111
|
+
import "./chunk-SRG6PKVS.js";
|
|
112
|
+
import "./chunk-7MJYLUF4.js";
|
|
113
|
+
import {
|
|
114
|
+
issue_not_before
|
|
115
|
+
} from "./chunk-FKZ5E4JD.js";
|
|
116
|
+
import "./chunk-A4HOQKOG.js";
|
|
117
|
+
import "./chunk-SSL6A3Y4.js";
|
|
118
|
+
import "./chunk-COGKULQH.js";
|
|
119
|
+
import "./chunk-QDFVVRQP.js";
|
|
120
|
+
import "./chunk-KZSM5M5P.js";
|
|
121
|
+
import "./chunk-CQUZ6TNQ.js";
|
|
122
|
+
import {
|
|
123
|
+
epic_issue
|
|
124
|
+
} from "./chunk-IAD4WLLI.js";
|
|
125
|
+
import "./chunk-6NGNMIMT.js";
|
|
126
|
+
import "./chunk-34JJYCIY.js";
|
|
127
|
+
import "./chunk-BMM4RHCG.js";
|
|
128
|
+
import "./chunk-JAKC2BHX.js";
|
|
129
|
+
import "./chunk-B3M5WSGN.js";
|
|
130
|
+
import "./chunk-SADJPNDB.js";
|
|
131
|
+
import "./chunk-6RUWU2SB.js";
|
|
132
|
+
import {
|
|
133
|
+
josh_command
|
|
134
|
+
} from "./chunk-2VRITY55.js";
|
|
135
|
+
import "./chunk-HH3CVIFU.js";
|
|
136
|
+
import "./chunk-HLKAFSN4.js";
|
|
137
|
+
import "./chunk-FDS65XOJ.js";
|
|
138
|
+
import "./chunk-EXDFKKMH.js";
|
|
139
|
+
import "./chunk-OL6IF4JC.js";
|
|
140
|
+
import "./chunk-J3TKZLHA.js";
|
|
141
|
+
import "./chunk-XZQWEVR3.js";
|
|
142
|
+
import "./chunk-FURNDIT3.js";
|
|
143
|
+
import "./chunk-D7JRJI44.js";
|
|
144
|
+
import "./chunk-AXXEMVRJ.js";
|
|
145
|
+
import "./chunk-D6D6WQR6.js";
|
|
146
|
+
import "./chunk-XI2ABCRX.js";
|
|
147
|
+
import "./chunk-VDGNXSP3.js";
|
|
148
|
+
import "./chunk-AK7SEO4Y.js";
|
|
149
|
+
import {
|
|
150
|
+
telegram_notify
|
|
151
|
+
} from "./chunk-WJ4NEDNI.js";
|
|
152
|
+
import "./chunk-7YZXS3AK.js";
|
|
153
|
+
import "./chunk-S4X5PJV7.js";
|
|
154
|
+
import "./chunk-5HVYOIIK.js";
|
|
155
|
+
import "./chunk-6TIVDEKG.js";
|
|
156
|
+
import "./chunk-ILIITIMQ.js";
|
|
157
|
+
import "./chunk-3RIQ36LH.js";
|
|
158
|
+
import "./chunk-2ADQ5XRD.js";
|
|
159
|
+
import "./chunk-7IZJ5MG2.js";
|
|
160
|
+
import "./chunk-HXCZ3KWS.js";
|
|
161
|
+
import "./chunk-QGAERR7D.js";
|
|
162
|
+
import "./chunk-MWO6FOSZ.js";
|
|
163
|
+
import {
|
|
164
|
+
backlog_drive_restore,
|
|
165
|
+
backlog_offer_exclude,
|
|
166
|
+
run_event_retry
|
|
167
|
+
} from "./chunk-TFLHYC2F.js";
|
|
168
|
+
import {
|
|
169
|
+
lane_yield
|
|
170
|
+
} from "./chunk-EGIHAEMT.js";
|
|
171
|
+
import "./chunk-IBAYXCMU.js";
|
|
172
|
+
import "./chunk-TAEGXID2.js";
|
|
173
|
+
import "./chunk-HI5WPM6C.js";
|
|
174
|
+
import "./chunk-2FJJYCBD.js";
|
|
175
|
+
import "./chunk-QABRNGQV.js";
|
|
176
|
+
import "./chunk-QX2R6UJG.js";
|
|
177
|
+
import {
|
|
178
|
+
git_gh_command,
|
|
179
|
+
git_gh_pr_snapshot
|
|
180
|
+
} from "./chunk-YGFOGA7C.js";
|
|
181
|
+
import "./chunk-U7XU5RG3.js";
|
|
182
|
+
import {
|
|
183
|
+
git_gh_repo
|
|
184
|
+
} from "./chunk-GJYMI2CM.js";
|
|
185
|
+
import "./chunk-AJ65WNJB.js";
|
|
186
|
+
import "./chunk-23GH6B3D.js";
|
|
187
|
+
import "./chunk-HXDTA5VU.js";
|
|
188
|
+
import "./chunk-CQZI7RIK.js";
|
|
189
|
+
import {
|
|
190
|
+
backlog_overlap,
|
|
191
|
+
lane_plan
|
|
192
|
+
} from "./chunk-B7ZNIEDV.js";
|
|
193
|
+
import {
|
|
194
|
+
issue_read
|
|
195
|
+
} from "./chunk-2BB5ZR2F.js";
|
|
196
|
+
import "./chunk-BJKEXXY6.js";
|
|
197
|
+
import "./chunk-UWLLZQJB.js";
|
|
198
|
+
import "./chunk-WAEN2RTT.js";
|
|
199
|
+
import "./chunk-NEGRE5VW.js";
|
|
200
|
+
import "./chunk-HE5S4XRE.js";
|
|
201
|
+
import "./chunk-LAR76BFA.js";
|
|
202
|
+
import "./chunk-Y27PTXXI.js";
|
|
203
|
+
import "./chunk-GUR54ELE.js";
|
|
204
|
+
import "./chunk-CFHRNTE5.js";
|
|
205
|
+
import "./chunk-EKLU6QR7.js";
|
|
206
|
+
import "./chunk-BMKWSWWE.js";
|
|
207
|
+
import "./chunk-WMMGXJXP.js";
|
|
208
|
+
import "./chunk-W6MVQEMO.js";
|
|
209
|
+
import "./chunk-T25S4QHL.js";
|
|
210
|
+
import "./chunk-TJKM56WJ.js";
|
|
211
|
+
import "./chunk-RVUJ6F5L.js";
|
|
212
|
+
import "./chunk-MY3RSOS5.js";
|
|
213
|
+
import "./chunk-KVURNO74.js";
|
|
214
|
+
import "./chunk-QHWJJ6X5.js";
|
|
215
|
+
import "./chunk-U7Y6RKLK.js";
|
|
216
|
+
import "./chunk-Q6SKKQVJ.js";
|
|
217
|
+
import "./chunk-KK2SL42W.js";
|
|
218
|
+
import "./chunk-PE7B7242.js";
|
|
219
|
+
import "./chunk-KIILCKQR.js";
|
|
220
|
+
import "./chunk-WWVYEHQT.js";
|
|
221
|
+
import "./chunk-JZK33TA5.js";
|
|
222
|
+
import "./chunk-QOSC5RKD.js";
|
|
223
|
+
import "./chunk-JFLFGLE4.js";
|
|
224
|
+
import "./chunk-K64EIHD2.js";
|
|
225
|
+
import "./chunk-FGL6DBZU.js";
|
|
226
|
+
import "./chunk-P3H3DKTE.js";
|
|
227
|
+
import "./chunk-RUIBQMOV.js";
|
|
228
|
+
import "./chunk-OZZWRJQI.js";
|
|
229
|
+
import "./chunk-MVHPRYHE.js";
|
|
230
|
+
import "./chunk-NFPD2P3V.js";
|
|
231
|
+
import "./chunk-CGLLAEKZ.js";
|
|
232
|
+
import "./chunk-WL5JHB3I.js";
|
|
233
|
+
import "./chunk-SV4FZR24.js";
|
|
234
|
+
import "./chunk-34KZDKQJ.js";
|
|
235
|
+
import "./chunk-OOWGH2RG.js";
|
|
236
|
+
import "./chunk-7LJQMM2K.js";
|
|
237
|
+
import "./chunk-FROACLVU.js";
|
|
238
|
+
import "./chunk-MGF64OHV.js";
|
|
239
|
+
import "./chunk-JM6EVOFN.js";
|
|
240
|
+
import "./chunk-KGE4AS2Y.js";
|
|
241
|
+
import "./chunk-LX7TIEMI.js";
|
|
242
|
+
import "./chunk-OF4BY4N7.js";
|
|
243
|
+
import "./chunk-RXAZJMSZ.js";
|
|
244
|
+
import "./chunk-3PEXBHRN.js";
|
|
245
|
+
import "./chunk-5ZNUH4LV.js";
|
|
246
|
+
import "./chunk-PBOS7MTW.js";
|
|
247
|
+
import "./chunk-2NSB5ZYQ.js";
|
|
248
|
+
import "./chunk-CWCKCZS6.js";
|
|
249
|
+
import "./chunk-IW6NWCSN.js";
|
|
250
|
+
import "./chunk-UCI4AL3Q.js";
|
|
251
|
+
import "./chunk-2EZTYLO4.js";
|
|
252
|
+
import "./chunk-NU7W6QGT.js";
|
|
253
|
+
import "./chunk-DEZF7QZZ.js";
|
|
254
|
+
import {
|
|
255
|
+
lane_sampler
|
|
256
|
+
} from "./chunk-XXC32PVL.js";
|
|
257
|
+
import {
|
|
258
|
+
lane_await
|
|
259
|
+
} from "./chunk-IB5TT73I.js";
|
|
260
|
+
import "./chunk-ZNR75OXP.js";
|
|
261
|
+
import {
|
|
262
|
+
run_event_setup
|
|
263
|
+
} from "./chunk-I2KCGKJI.js";
|
|
264
|
+
import "./chunk-E33LSO2W.js";
|
|
265
|
+
import "./chunk-Y2RNUX4W.js";
|
|
266
|
+
import "./chunk-7C7FOKJK.js";
|
|
267
|
+
import "./chunk-CBAKBWSZ.js";
|
|
268
|
+
import "./chunk-DPJVKTO4.js";
|
|
269
|
+
import "./chunk-C54QXJD6.js";
|
|
270
|
+
import "./chunk-FCINBCKB.js";
|
|
271
|
+
import "./chunk-Q5Q2QYVU.js";
|
|
272
|
+
import "./chunk-GO3GH7FG.js";
|
|
273
|
+
import "./chunk-KVHNQHX3.js";
|
|
274
|
+
import "./chunk-7HCPRVMB.js";
|
|
275
|
+
import "./chunk-RSSJWMQS.js";
|
|
276
|
+
import "./chunk-HQGNXR6I.js";
|
|
277
|
+
import "./chunk-KXK2A2HB.js";
|
|
278
|
+
import {
|
|
279
|
+
run_stalled_park
|
|
280
|
+
} from "./chunk-Y4EBUI6M.js";
|
|
281
|
+
import {
|
|
282
|
+
issue_park
|
|
283
|
+
} from "./chunk-OIX2363L.js";
|
|
284
|
+
import {
|
|
285
|
+
run_stalled
|
|
286
|
+
} from "./chunk-S4M6UWR2.js";
|
|
287
|
+
import {
|
|
288
|
+
agent_worker_profile
|
|
289
|
+
} from "./chunk-FVDQNMP6.js";
|
|
290
|
+
import {
|
|
291
|
+
git_gh_issue_write
|
|
292
|
+
} from "./chunk-RN2YDNLF.js";
|
|
293
|
+
import "./chunk-RW64VHEB.js";
|
|
294
|
+
import "./chunk-6UCWAFQY.js";
|
|
295
|
+
import "./chunk-DYZOOWVW.js";
|
|
296
|
+
import "./chunk-6I2JM5UX.js";
|
|
297
|
+
import {
|
|
298
|
+
backlog_budget
|
|
299
|
+
} from "./chunk-BYSPYVLD.js";
|
|
300
|
+
import "./chunk-NDWZTWXV.js";
|
|
301
|
+
import "./chunk-3WWQFCGX.js";
|
|
302
|
+
import "./chunk-LAYSCY4L.js";
|
|
303
|
+
import "./chunk-N7QTMTST.js";
|
|
304
|
+
import "./chunk-7HAGC6SW.js";
|
|
305
|
+
import "./chunk-6CJXLPRI.js";
|
|
306
|
+
import "./chunk-OJ65BZBV.js";
|
|
307
|
+
import "./chunk-LHKXJD6L.js";
|
|
308
|
+
import {
|
|
309
|
+
REQUIRED_CHECKS,
|
|
310
|
+
absent_required,
|
|
311
|
+
collect_blocking_failures,
|
|
312
|
+
is_mergeable_state,
|
|
313
|
+
parse_pr_state_snapshot
|
|
314
|
+
} from "./chunk-WVR4RUFP.js";
|
|
315
|
+
import "./chunk-ROJXMBXP.js";
|
|
316
|
+
import "./chunk-DBKTFB5V.js";
|
|
317
|
+
import {
|
|
318
|
+
hook_decision
|
|
319
|
+
} from "./chunk-RLBFEHHC.js";
|
|
320
|
+
import "./chunk-LQXFVZTS.js";
|
|
321
|
+
import "./chunk-EMTZAGT5.js";
|
|
322
|
+
import "./chunk-TCBUX52E.js";
|
|
323
|
+
import "./chunk-KXHXMERX.js";
|
|
324
|
+
import "./chunk-MDLOETXL.js";
|
|
325
|
+
import "./chunk-NFKULY26.js";
|
|
326
|
+
import "./chunk-JTU5A4JI.js";
|
|
327
|
+
import "./chunk-65E4OZJ7.js";
|
|
328
|
+
import {
|
|
329
|
+
lane_process_table,
|
|
330
|
+
lane_registry,
|
|
331
|
+
lane_snapshot_trace
|
|
332
|
+
} from "./chunk-452HWOJ7.js";
|
|
333
|
+
import "./chunk-BYFC6MD2.js";
|
|
334
|
+
import {
|
|
335
|
+
DEFAULT_SILENT_MINUTES,
|
|
336
|
+
PROCESS_ALIVE
|
|
337
|
+
} from "./chunk-3AEDZZNL.js";
|
|
338
|
+
import "./chunk-LULJUD6P.js";
|
|
339
|
+
import "./chunk-TBNQIFWL.js";
|
|
340
|
+
import "./chunk-XFPEUYDV.js";
|
|
341
|
+
import "./chunk-5ZTQX7OS.js";
|
|
342
|
+
import "./chunk-G4E4M2P4.js";
|
|
343
|
+
import "./chunk-C2SEDMZ3.js";
|
|
344
|
+
import {
|
|
345
|
+
git_gh_issue_read
|
|
346
|
+
} from "./chunk-ENKFCOVY.js";
|
|
347
|
+
import "./chunk-6OP63TBT.js";
|
|
348
|
+
import "./chunk-TVZXG4Y4.js";
|
|
349
|
+
import "./chunk-FIUCHMCF.js";
|
|
350
|
+
import "./chunk-4PUKDAXL.js";
|
|
351
|
+
import "./chunk-W3FX7FYN.js";
|
|
352
|
+
import "./chunk-ZBFNQUY7.js";
|
|
353
|
+
import "./chunk-X3TNPALI.js";
|
|
354
|
+
import "./chunk-XXNEY4B3.js";
|
|
355
|
+
import "./chunk-EWVR5AEX.js";
|
|
356
|
+
import "./chunk-C6QSVO5K.js";
|
|
357
|
+
import "./chunk-U3IVVR4W.js";
|
|
358
|
+
import "./chunk-5RG4S66L.js";
|
|
359
|
+
import "./chunk-O3NDWYNT.js";
|
|
360
|
+
import {
|
|
361
|
+
run_event_scope,
|
|
362
|
+
run_event_stream_emit
|
|
363
|
+
} from "./chunk-OKZWEVR4.js";
|
|
364
|
+
import {
|
|
365
|
+
run_event_stream
|
|
366
|
+
} from "./chunk-NSAVEXVR.js";
|
|
367
|
+
import {
|
|
368
|
+
lane_state
|
|
369
|
+
} from "./chunk-ZZXO6TFH.js";
|
|
370
|
+
import "./chunk-34DND4BA.js";
|
|
371
|
+
import "./chunk-P4KIQRSL.js";
|
|
372
|
+
import {
|
|
373
|
+
EPIC_LABEL,
|
|
374
|
+
IN_PROGRESS_LABEL,
|
|
375
|
+
NEEDS_DECISION_LABEL,
|
|
376
|
+
RUN_STALLED_LABEL,
|
|
377
|
+
has_any_label,
|
|
378
|
+
has_label_name,
|
|
379
|
+
has_parked_label,
|
|
380
|
+
parked_label_of
|
|
381
|
+
} from "./chunk-QQBMVC5W.js";
|
|
382
|
+
import "./chunk-TUIFS5E7.js";
|
|
383
|
+
import "./chunk-QAHFPCFR.js";
|
|
384
|
+
import "./chunk-66TGK5XL.js";
|
|
385
|
+
import "./chunk-EZSO25UZ.js";
|
|
386
|
+
import "./chunk-2DJLAUYB.js";
|
|
387
|
+
import "./chunk-EW4NPUMQ.js";
|
|
388
|
+
import "./chunk-BF6YX4HE.js";
|
|
389
|
+
import "./chunk-3LZXX5GL.js";
|
|
390
|
+
import "./chunk-W2IA2LV3.js";
|
|
391
|
+
import {
|
|
392
|
+
run_ship_stage
|
|
393
|
+
} from "./chunk-OHNP3QL2.js";
|
|
394
|
+
import "./chunk-22DVQCP6.js";
|
|
395
|
+
import "./chunk-MDKDJF2K.js";
|
|
396
|
+
import {
|
|
397
|
+
issue_cite
|
|
398
|
+
} from "./chunk-HQ2HSZBN.js";
|
|
399
|
+
import "./chunk-WQ6FS544.js";
|
|
400
|
+
import "./chunk-6HRRZANN.js";
|
|
401
|
+
import {
|
|
402
|
+
lane_ledger_write
|
|
403
|
+
} from "./chunk-I63RNFFR.js";
|
|
404
|
+
import {
|
|
405
|
+
run_carry
|
|
406
|
+
} from "./chunk-MPGJ4ONJ.js";
|
|
407
|
+
import "./chunk-6WKJ3GDA.js";
|
|
408
|
+
import {
|
|
409
|
+
lane_paths
|
|
410
|
+
} from "./chunk-YIA6FC3K.js";
|
|
411
|
+
import "./chunk-JQXPLMCO.js";
|
|
412
|
+
import {
|
|
413
|
+
issue_number_shape
|
|
414
|
+
} from "./chunk-66NX6EXR.js";
|
|
415
|
+
import "./chunk-3NWAGIA6.js";
|
|
416
|
+
import "./chunk-2FE3C4PH.js";
|
|
417
|
+
import "./chunk-HLUS2M3D.js";
|
|
418
|
+
import {
|
|
419
|
+
poll
|
|
420
|
+
} from "./chunk-SBGTCT2C.js";
|
|
421
|
+
import {
|
|
422
|
+
process_identity
|
|
423
|
+
} from "./chunk-AKK56GNX.js";
|
|
424
|
+
import "./chunk-TBIX5FRN.js";
|
|
425
|
+
import "./chunk-IGD6QJPH.js";
|
|
426
|
+
import "./chunk-FFHEGWPK.js";
|
|
427
|
+
import "./chunk-R6QE5VJG.js";
|
|
428
|
+
import "./chunk-4ZHWTTQW.js";
|
|
429
|
+
import "./chunk-RDRN56E4.js";
|
|
430
|
+
import "./chunk-XDF25GSU.js";
|
|
431
|
+
import "./chunk-EBVS2LKX.js";
|
|
432
|
+
import "./chunk-AQ3PMSXK.js";
|
|
433
|
+
import "./chunk-QVOFWFWC.js";
|
|
434
|
+
import "./chunk-G6BXCWPH.js";
|
|
435
|
+
import {
|
|
436
|
+
error_text
|
|
437
|
+
} from "./chunk-CDY4NFQG.js";
|
|
438
|
+
import "./chunk-OKYFQJW3.js";
|
|
439
|
+
import "./chunk-HHBC6QZE.js";
|
|
440
|
+
import "./chunk-KKIMVXAP.js";
|
|
441
|
+
import "./chunk-QWWTC3XR.js";
|
|
442
|
+
import "./chunk-ILGPZ47M.js";
|
|
443
|
+
import "./chunk-3CCGKX7Y.js";
|
|
444
|
+
import "./chunk-KSR23NYN.js";
|
|
445
|
+
import "./chunk-LR22UK5W.js";
|
|
446
|
+
import "./chunk-V5FD7DVV.js";
|
|
447
|
+
import "./chunk-36LOGVJ7.js";
|
|
448
|
+
import "./chunk-ENFPR7J2.js";
|
|
449
|
+
import "./chunk-SVV4U5AR.js";
|
|
450
|
+
import "./chunk-UGCUSRZF.js";
|
|
451
|
+
import "./chunk-AKQYYHP2.js";
|
|
452
|
+
import "./chunk-CJKPF5DJ.js";
|
|
453
|
+
import "./chunk-RBU2NKHF.js";
|
|
454
|
+
import "./chunk-WB4T3VY2.js";
|
|
455
|
+
import "./chunk-B77ZMVHS.js";
|
|
456
|
+
import "./chunk-B5GXZK3E.js";
|
|
457
|
+
import "./chunk-KTLR4Y32.js";
|
|
458
|
+
import "./chunk-ZNX2LJCQ.js";
|
|
459
|
+
import "./chunk-VJE3RJAX.js";
|
|
460
|
+
import {
|
|
461
|
+
MS_PER_MINUTE
|
|
462
|
+
} from "./chunk-WPAQUMHC.js";
|
|
463
|
+
import {
|
|
464
|
+
json_value
|
|
465
|
+
} from "./chunk-HIU2WXB6.js";
|
|
466
|
+
|
|
467
|
+
// scripts/backlog/backlog-drive-cli.ts
|
|
468
|
+
import { dirname as __josh_dirname } from "node:path";
|
|
469
|
+
import { fileURLToPath as __josh_file_path } from "node:url";
|
|
470
|
+
import { setTimeout as sleep } from "node:timers/promises";
|
|
471
|
+
import { fileURLToPath } from "node:url";
|
|
472
|
+
import { z } from "zod";
|
|
473
|
+
|
|
474
|
+
// scripts/backlog/backlog-drive-hold.ts
|
|
475
|
+
var NO_FREE_LANES = 0;
|
|
476
|
+
var { OFFER_PREFIX, HAND_BACK_PREFIX, REASON_SEPARATOR } = backlog_hold_codes;
|
|
477
|
+
var STOP_VERDICT = "stop";
|
|
478
|
+
var FINISHED_REASONS = /* @__PURE__ */ new Set([STOP_VERDICT, "watch", "retrospective"]);
|
|
479
|
+
function offer_reason(read2) {
|
|
480
|
+
if (read2.verdict === STOP_VERDICT) return void 0;
|
|
481
|
+
const detail = read2.cause ?? read2.answer;
|
|
482
|
+
const parts = [OFFER_PREFIX, read2.verdict, ...detail === void 0 ? [] : [detail]];
|
|
483
|
+
return parts.join(REASON_SEPARATOR);
|
|
484
|
+
}
|
|
485
|
+
async function held(result, read2, ports) {
|
|
486
|
+
if (result.kind === "continue") await ports.hold(offer_reason(read2), read2.waiting);
|
|
487
|
+
return result;
|
|
488
|
+
}
|
|
489
|
+
async function stopped(before, after, ports) {
|
|
490
|
+
if (after.is_stopping && !before.is_stopping) await ports.hold(void 0);
|
|
491
|
+
}
|
|
492
|
+
function hand_back_reason(end) {
|
|
493
|
+
if (FINISHED_REASONS.has(end.reason)) return void 0;
|
|
494
|
+
return [HAND_BACK_PREFIX, end.reason].join(REASON_SEPARATOR);
|
|
495
|
+
}
|
|
496
|
+
async function free_count(free_lanes, reason) {
|
|
497
|
+
if (reason === void 0) return NO_FREE_LANES;
|
|
498
|
+
try {
|
|
499
|
+
return await free_lanes();
|
|
500
|
+
} catch {
|
|
501
|
+
return void 0;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
async function release(ledger) {
|
|
505
|
+
ledger.is_open = false;
|
|
506
|
+
await lane_ledger_write.record_released();
|
|
507
|
+
await lane_hand_back_hold.clear();
|
|
508
|
+
}
|
|
509
|
+
async function release_open(ledger) {
|
|
510
|
+
if (ledger.is_open) await release(ledger);
|
|
511
|
+
}
|
|
512
|
+
async function record(ledger, draft, count) {
|
|
513
|
+
if (count === void 0) return;
|
|
514
|
+
if (draft.reason === void 0) {
|
|
515
|
+
await release(ledger);
|
|
516
|
+
return;
|
|
517
|
+
}
|
|
518
|
+
if (count === NO_FREE_LANES) {
|
|
519
|
+
await release_open(ledger);
|
|
520
|
+
return;
|
|
521
|
+
}
|
|
522
|
+
ledger.is_open = true;
|
|
523
|
+
await lane_ledger_write.record_held({ reason: draft.reason, waiting: draft.waiting });
|
|
524
|
+
await lane_hand_back_hold.clear();
|
|
525
|
+
}
|
|
526
|
+
async function hand_back(ledger, reason, count) {
|
|
527
|
+
if (reason === void 0 || count !== NO_FREE_LANES) {
|
|
528
|
+
await record(ledger, { reason }, count);
|
|
529
|
+
return;
|
|
530
|
+
}
|
|
531
|
+
await release_open(ledger);
|
|
532
|
+
await lane_hand_back_hold.mark(reason);
|
|
533
|
+
}
|
|
534
|
+
function recorder(free_lanes = backlog_ready.drive_free_lane_count) {
|
|
535
|
+
const ledger = { is_open: true };
|
|
536
|
+
async function write(reason, waiting) {
|
|
537
|
+
await record(ledger, { reason, waiting }, await free_count(free_lanes, reason));
|
|
538
|
+
}
|
|
539
|
+
return {
|
|
540
|
+
hold: write,
|
|
541
|
+
end: async (end) => {
|
|
542
|
+
const reason = hand_back_reason(end);
|
|
543
|
+
await hand_back(ledger, reason, await free_count(free_lanes, reason));
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
var backlog_drive_hold = { hand_back_reason, held, recorder, stopped };
|
|
548
|
+
|
|
549
|
+
// scripts/backlog/backlog-drive-idle.ts
|
|
550
|
+
var WATCH_VERDICT = "watch";
|
|
551
|
+
var BLOCKED_ANSWER = "blocked";
|
|
552
|
+
var STALLED_HEADING = `Stalled mechanically (${RUN_STALLED_LABEL}):`;
|
|
553
|
+
var IDLE_HEAD = "No child running and nothing left to dispatch.";
|
|
554
|
+
var IDLE_RECOVERY = "Act on each issue under its heading, fix and release the stalled ones, or start the next run with `backlogrun`.";
|
|
555
|
+
function is_idle(result, read2) {
|
|
556
|
+
if (read2.answer === BLOCKED_ANSWER) return false;
|
|
557
|
+
return read2.verdict === WATCH_VERDICT && result.state.in_flight.length === 0;
|
|
558
|
+
}
|
|
559
|
+
async function noticed(result, read2, ports) {
|
|
560
|
+
if (is_idle(result, read2)) await ports.idle(result.state);
|
|
561
|
+
return result;
|
|
562
|
+
}
|
|
563
|
+
function cited(issue, suffix = "") {
|
|
564
|
+
return `- ${issue_cite.plain_for("telegram", issue.number)} ${issue.title}${suffix}`;
|
|
565
|
+
}
|
|
566
|
+
function labelled_lines(issues, label) {
|
|
567
|
+
return issues.filter((issue) => has_any_label(issue.labels, /* @__PURE__ */ new Set([label]))).map((issue) => cited(issue));
|
|
568
|
+
}
|
|
569
|
+
function untrusted_lines(issues) {
|
|
570
|
+
return issues.filter((issue) => !auto_ok_author.is_author_trusted(issue)).map((issue) => cited(issue));
|
|
571
|
+
}
|
|
572
|
+
function dated_lines(issues, now_ms) {
|
|
573
|
+
const lines = [];
|
|
574
|
+
for (const issue of issues) {
|
|
575
|
+
const reason = issue_not_before.waiting_reason(issue.body, now_ms);
|
|
576
|
+
if (reason !== void 0) lines.push(cited(issue, ` \u2014 ${reason}`));
|
|
577
|
+
}
|
|
578
|
+
return lines;
|
|
579
|
+
}
|
|
580
|
+
function section(heading, lines) {
|
|
581
|
+
return lines.length === 0 ? [] : [heading, ...lines];
|
|
582
|
+
}
|
|
583
|
+
function waiting_lines(issues, stop) {
|
|
584
|
+
if (stop.label !== void 0) return labelled_lines(issues, stop.label);
|
|
585
|
+
return stop.key === issue_human_stops.UNTRUSTED_AUTHOR_KEY ? untrusted_lines(issues) : [];
|
|
586
|
+
}
|
|
587
|
+
function person_lines(issues) {
|
|
588
|
+
return issue_human_stops.idle_stops().flatMap((stop) => section(stop.idle_heading ?? stop.key, waiting_lines(issues, stop)));
|
|
589
|
+
}
|
|
590
|
+
function remaining_lines(reading) {
|
|
591
|
+
if (reading.issues === void 0) return ["Remaining issues: unreadable"];
|
|
592
|
+
const lines = [
|
|
593
|
+
...person_lines(reading.issues),
|
|
594
|
+
...section(STALLED_HEADING, labelled_lines(reading.issues, RUN_STALLED_LABEL)),
|
|
595
|
+
...section("Waiting on a date:", dated_lines(reading.issues, reading.now_ms))
|
|
596
|
+
];
|
|
597
|
+
return lines.length === 0 ? ["Nothing parked or dated is left."] : lines;
|
|
598
|
+
}
|
|
599
|
+
function describe(reading) {
|
|
600
|
+
const merged = `Merged this run: ${String(reading.merged)}`;
|
|
601
|
+
return [IDLE_HEAD, merged, ...remaining_lines(reading)].join("\n");
|
|
602
|
+
}
|
|
603
|
+
async function read_pool() {
|
|
604
|
+
const read2 = await auto_ok_cli.fetch_opted_in();
|
|
605
|
+
return read2.kind === "read" ? read2.issues : void 0;
|
|
606
|
+
}
|
|
607
|
+
async function emit_idle(compose) {
|
|
608
|
+
const { IDLE_NOTICE, CHILD_LAUNCH } = run_event_stream.EVENT_KIND;
|
|
609
|
+
return await run_event_stream_emit.emit_once_since_with(IDLE_NOTICE, CHILD_LAUNCH, compose);
|
|
610
|
+
}
|
|
611
|
+
async function send_idle(body) {
|
|
612
|
+
return await telegram_notify.idle({ body, recovery: IDLE_RECOVERY });
|
|
613
|
+
}
|
|
614
|
+
var DEFAULT_PORTS = {
|
|
615
|
+
read_issues: read_pool,
|
|
616
|
+
emit: emit_idle,
|
|
617
|
+
send: send_idle,
|
|
618
|
+
now_ms: () => Date.now()
|
|
619
|
+
};
|
|
620
|
+
async function notify(state, ports = DEFAULT_PORTS) {
|
|
621
|
+
try {
|
|
622
|
+
const body = await ports.emit(
|
|
623
|
+
async () => describe({
|
|
624
|
+
merged: state.exclude.length,
|
|
625
|
+
issues: await ports.read_issues(),
|
|
626
|
+
now_ms: ports.now_ms()
|
|
627
|
+
})
|
|
628
|
+
);
|
|
629
|
+
if (body !== void 0) await ports.send(body);
|
|
630
|
+
} catch {
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
var backlog_drive_idle = { describe, noticed, notify, read_pool };
|
|
634
|
+
|
|
635
|
+
// scripts/backlog/backlog-drive-judge.ts
|
|
636
|
+
var WATCH_VERDICT2 = "watch";
|
|
637
|
+
var EXHAUSTED_ANSWER = "exhausted";
|
|
638
|
+
var NO_FREE_LANES2 = 0;
|
|
639
|
+
async function is_owed(read2, ports) {
|
|
640
|
+
const is_exhausted = read2.verdict === WATCH_VERDICT2 && read2.answer === EXHAUSTED_ANSWER;
|
|
641
|
+
if (!is_exhausted || await ports.free_lanes() <= NO_FREE_LANES2) return false;
|
|
642
|
+
return await ports.judgement_owed() > 0;
|
|
643
|
+
}
|
|
644
|
+
var backlog_drive_judge = { is_owed };
|
|
645
|
+
|
|
646
|
+
// scripts/backlog/backlog-drive-park-triage.ts
|
|
647
|
+
var TRIAGE_TOKEN = epic_triage.TRIAGE_VERDICT;
|
|
648
|
+
function is_beside(state) {
|
|
649
|
+
return process_identity.is_same_process(state.triage_pid, state.triage_start) !== false;
|
|
650
|
+
}
|
|
651
|
+
function settled(state) {
|
|
652
|
+
return state.triage_pid === void 0 || is_beside(state) ? state : { ...state, triage_pid: void 0, triage_start: void 0 };
|
|
653
|
+
}
|
|
654
|
+
function is_owed2(state) {
|
|
655
|
+
return state.is_triage_owed === true && !state.is_stopping && !is_beside(state);
|
|
656
|
+
}
|
|
657
|
+
function triaged(result, is_triage_owed) {
|
|
658
|
+
if (!is_triage_owed || result.kind === "end" || is_beside(result.state)) return result;
|
|
659
|
+
return {
|
|
660
|
+
kind: "end",
|
|
661
|
+
end: { reason: TRIAGE_TOKEN, token: TRIAGE_TOKEN, issue: void 0 },
|
|
662
|
+
state: { ...result.state, is_triage_owed: false }
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
function hand_back2(state) {
|
|
666
|
+
if (is_beside(state) && !state.is_stopping) return { kind: "continue", state };
|
|
667
|
+
return is_owed2(state) ? triaged({ kind: "continue", state }, true) : void 0;
|
|
668
|
+
}
|
|
669
|
+
var backlog_drive_park_triage = { is_owed: is_owed2, triaged, hand_back: hand_back2, settled };
|
|
670
|
+
|
|
671
|
+
// scripts/backlog/backlog-drive-paused.ts
|
|
672
|
+
var HOLDING_VERDICTS = /* @__PURE__ */ new Set(["watch", "wait"]);
|
|
673
|
+
var BLOCKED_ANSWER2 = "blocked";
|
|
674
|
+
var PAUSED_TITLE = "backlogrun held by paused lanes";
|
|
675
|
+
var PAUSED_HEAD = "No child of this run is running, and these paused lanes hold back work overlapping their paths:";
|
|
676
|
+
var PAUSED_RECOVERY = "Resume a lane with `pnpm josh lane:resume <N>`, or close it with `pnpm josh lane:close <N>`.";
|
|
677
|
+
var SILENT_WINDOW_MS = DEFAULT_SILENT_MINUTES * MS_PER_MINUTE;
|
|
678
|
+
var SET_ASIDE_LABELS = /* @__PURE__ */ new Set([NEEDS_DECISION_LABEL, RUN_STALLED_LABEL]);
|
|
679
|
+
function is_held(result, read2) {
|
|
680
|
+
if (read2.answer === BLOCKED_ANSWER2) return false;
|
|
681
|
+
return HOLDING_VERDICTS.has(read2.verdict) && result.state.in_flight.length === 0;
|
|
682
|
+
}
|
|
683
|
+
async function noticed2(result, read2, ports) {
|
|
684
|
+
if (is_held(result, read2)) await ports.paused();
|
|
685
|
+
return result;
|
|
686
|
+
}
|
|
687
|
+
function long_paused(records, now_ms) {
|
|
688
|
+
return records.filter(
|
|
689
|
+
(record2) => record2.state === "paused" && now_ms - Date.parse(record2.changed_at) >= SILENT_WINDOW_MS
|
|
690
|
+
);
|
|
691
|
+
}
|
|
692
|
+
function waiting_of(issues, records) {
|
|
693
|
+
const lanes = new Set(records.map((record2) => record2.issue));
|
|
694
|
+
return issues.filter((issue) => !lanes.has(String(issue.number))).filter((issue) => !has_any_label(issue.labels, SET_ASIDE_LABELS)).map((issue) => issue.number);
|
|
695
|
+
}
|
|
696
|
+
async function holding(paused, issues, records) {
|
|
697
|
+
const declared = await backlog_plan_comment.declared_of(issues, process.cwd());
|
|
698
|
+
const waiting = waiting_of(issues, records);
|
|
699
|
+
return paused.filter(
|
|
700
|
+
(record2) => waiting.some((number) => backlog_overlap.holds(declared, Number(record2.issue), number))
|
|
701
|
+
);
|
|
702
|
+
}
|
|
703
|
+
async function held_by(ports) {
|
|
704
|
+
const records = await ports.read_records();
|
|
705
|
+
const paused = long_paused(records, ports.now_ms());
|
|
706
|
+
if (paused.length === 0) return [];
|
|
707
|
+
const issues = await ports.read_issues();
|
|
708
|
+
return issues === void 0 ? [] : await holding(paused, issues, records);
|
|
709
|
+
}
|
|
710
|
+
function describe2(records) {
|
|
711
|
+
const lines = records.map(
|
|
712
|
+
(record2) => `- ${issue_cite.plain_for("telegram", record2.issue)} \u2014 ${lane_state.paused_note(record2) ?? ""}`
|
|
713
|
+
);
|
|
714
|
+
return [PAUSED_HEAD, ...lines].join("\n");
|
|
715
|
+
}
|
|
716
|
+
async function read_lane_records() {
|
|
717
|
+
const lanes = await lane_registry.list_lanes();
|
|
718
|
+
const records = await lane_state.read_states(lanes.map((lane) => lane.issue));
|
|
719
|
+
return [...records.values()];
|
|
720
|
+
}
|
|
721
|
+
async function emit_paused(compose) {
|
|
722
|
+
const { PAUSED_NOTICE, LANE_STATE } = run_event_stream.EVENT_KIND;
|
|
723
|
+
return await run_event_stream_emit.emit_once_since_with(PAUSED_NOTICE, LANE_STATE, compose);
|
|
724
|
+
}
|
|
725
|
+
async function send_paused(body) {
|
|
726
|
+
return await telegram_notify.confirm({
|
|
727
|
+
issue_title: PAUSED_TITLE,
|
|
728
|
+
body,
|
|
729
|
+
recovery: PAUSED_RECOVERY,
|
|
730
|
+
recommended: "Resume the paused lanes with `pnpm josh lane:resume <N>`",
|
|
731
|
+
alternatives: ["Close the paused lanes with `pnpm josh lane:close <N>`"]
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
var DEFAULT_PORTS2 = {
|
|
735
|
+
read_records: read_lane_records,
|
|
736
|
+
read_issues: backlog_drive_idle.read_pool,
|
|
737
|
+
emit: emit_paused,
|
|
738
|
+
send: send_paused,
|
|
739
|
+
now_ms: () => Date.now()
|
|
740
|
+
};
|
|
741
|
+
async function notify2(ports = DEFAULT_PORTS2) {
|
|
742
|
+
try {
|
|
743
|
+
const paused = await held_by(ports);
|
|
744
|
+
if (paused.length === 0) return;
|
|
745
|
+
const body = await ports.emit(async () => describe2(paused));
|
|
746
|
+
if (body !== void 0) await ports.send(body);
|
|
747
|
+
} catch {
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
var backlog_drive_paused = { noticed: noticed2, notify: notify2 };
|
|
751
|
+
|
|
752
|
+
// scripts/backlog/backlog-drive-state.ts
|
|
753
|
+
function initial_state(in_flight, active) {
|
|
754
|
+
return {
|
|
755
|
+
in_flight: [...in_flight],
|
|
756
|
+
exclude: [],
|
|
757
|
+
active,
|
|
758
|
+
retries: 0,
|
|
759
|
+
is_stopping: false
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
function merge_stopped(issue, state) {
|
|
763
|
+
if (state.is_stopping) return state;
|
|
764
|
+
return {
|
|
765
|
+
...state,
|
|
766
|
+
is_stopping: true,
|
|
767
|
+
stop_reason: `run:merge ${issue_cite.plain_for("terminal", issue)} answered stop`,
|
|
768
|
+
stopped_by: issue
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
var backlog_drive_state = { initial_state, merge_stopped };
|
|
772
|
+
|
|
773
|
+
// scripts/backlog/backlog-drive-token-handling.ts
|
|
774
|
+
var { MERGE_TOKEN } = run_merge_token;
|
|
775
|
+
var TOKEN_HANDLING = {
|
|
776
|
+
[MERGE_TOKEN.OVER]: "hand-back",
|
|
777
|
+
[MERGE_TOKEN.HUMAN_REVIEW]: "hand-back",
|
|
778
|
+
[MERGE_TOKEN.ENVIRONMENT]: "hand-back",
|
|
779
|
+
[MERGE_TOKEN.BUSY]: "hand-back",
|
|
780
|
+
[MERGE_TOKEN.RETRY]: "hand-back",
|
|
781
|
+
[MERGE_TOKEN.STOP]: "stop",
|
|
782
|
+
[MERGE_TOKEN.RESUMED]: "await"
|
|
783
|
+
};
|
|
784
|
+
function tokens_handled(...handlings) {
|
|
785
|
+
const entries = Object.entries(TOKEN_HANDLING);
|
|
786
|
+
return new Set(entries.filter(([, handling]) => handlings.includes(handling)).map(([key]) => key));
|
|
787
|
+
}
|
|
788
|
+
var IMMEDIATE_TOKENS = tokens_handled("hand-back");
|
|
789
|
+
var HANDOFF_TOKENS = tokens_handled("hand-back", "stop");
|
|
790
|
+
var backlog_drive_token_handling = { HANDOFF_TOKENS, IMMEDIATE_TOKENS, TOKEN_HANDLING };
|
|
791
|
+
|
|
792
|
+
// scripts/backlog/backlog-offer-timing.ts
|
|
793
|
+
function first_run(state, now_ms) {
|
|
794
|
+
return { state, started_ms: now_ms, offered_ms: -Infinity, checked_ms: -Infinity };
|
|
795
|
+
}
|
|
796
|
+
function is_window_spent(run3, config, now_ms) {
|
|
797
|
+
if (config.window_ms === void 0) return false;
|
|
798
|
+
return now_ms - run3.started_ms >= config.window_ms;
|
|
799
|
+
}
|
|
800
|
+
function due_ms(deadline, offered_ms, interval_ms) {
|
|
801
|
+
return deadline !== void 0 && deadline > offered_ms ? deadline : offered_ms + interval_ms;
|
|
802
|
+
}
|
|
803
|
+
function deadline_of(state) {
|
|
804
|
+
if (state.is_stopping || state.not_before_ms === void 0) return void 0;
|
|
805
|
+
return Math.min(state.not_before_ms, state.idle_until_ms ?? Infinity);
|
|
806
|
+
}
|
|
807
|
+
function interval_of(state, config, is_named_left2) {
|
|
808
|
+
return is_named_left2 && state.in_flight.length === 0 ? config.idle_offer_ms : config.offer_ms;
|
|
809
|
+
}
|
|
810
|
+
async function interval_for(run3, config, ports) {
|
|
811
|
+
const is_named_left2 = run3.state.in_flight.length === 0 && await ports.named_left();
|
|
812
|
+
return interval_of(run3.state, config, is_named_left2);
|
|
813
|
+
}
|
|
814
|
+
function is_check_due(run3, config, now_ms) {
|
|
815
|
+
return now_ms >= run3.checked_ms + config.check_ms;
|
|
816
|
+
}
|
|
817
|
+
async function is_listing_changed(run3, config, ports, now_ms) {
|
|
818
|
+
if (!is_check_due(run3, config, now_ms) || await ports.free_lanes() === 0) return false;
|
|
819
|
+
return await ports.listing_changed();
|
|
820
|
+
}
|
|
821
|
+
async function is_signalled(run3, ports) {
|
|
822
|
+
return await backlog_drive_memory.is_cleared(run3.state, ports) || await ports.added_since(run3.offered_ms) || await ports.raised_since(run3.offered_ms);
|
|
823
|
+
}
|
|
824
|
+
async function is_due(run3, config, ports, now_ms) {
|
|
825
|
+
const interval_ms = await interval_for(run3, config, ports);
|
|
826
|
+
if (now_ms >= due_ms(deadline_of(run3.state), run3.offered_ms, interval_ms)) return true;
|
|
827
|
+
return await is_signalled(run3, ports) || await is_listing_changed(run3, config, ports, now_ms);
|
|
828
|
+
}
|
|
829
|
+
function advanced(run3, step, config, now_ms) {
|
|
830
|
+
const { state, is_asked } = step;
|
|
831
|
+
const is_checked = is_asked || is_check_due(run3, config, now_ms);
|
|
832
|
+
const offered_ms = is_asked ? now_ms : run3.offered_ms;
|
|
833
|
+
return { ...run3, state, offered_ms, checked_ms: is_checked ? now_ms : run3.checked_ms };
|
|
834
|
+
}
|
|
835
|
+
function sleep_ms(deadline, milliseconds, now_ms) {
|
|
836
|
+
const remaining = (deadline ?? Infinity) - now_ms;
|
|
837
|
+
return remaining > 0 ? Math.min(milliseconds, remaining) : milliseconds;
|
|
838
|
+
}
|
|
839
|
+
function sleeper(deadline, ports) {
|
|
840
|
+
return async function wait(milliseconds) {
|
|
841
|
+
const duration = sleep_ms(deadline(), milliseconds, ports.now().getTime());
|
|
842
|
+
await ports.sleep(duration);
|
|
843
|
+
};
|
|
844
|
+
}
|
|
845
|
+
var backlog_offer_timing = {
|
|
846
|
+
advanced,
|
|
847
|
+
deadline_of,
|
|
848
|
+
due_ms,
|
|
849
|
+
first_run,
|
|
850
|
+
interval_of,
|
|
851
|
+
is_due,
|
|
852
|
+
is_window_spent,
|
|
853
|
+
sleep_ms,
|
|
854
|
+
sleeper
|
|
855
|
+
};
|
|
856
|
+
|
|
857
|
+
// scripts/backlog/backlog-yield-cap.ts
|
|
858
|
+
var YIELD_CAP = 3;
|
|
859
|
+
var WINDOW_MINUTES = 15;
|
|
860
|
+
var WINDOW_MS = WINDOW_MINUTES * MS_PER_MINUTE;
|
|
861
|
+
var YIELDED_OUTCOME = "yielded";
|
|
862
|
+
var TRIP_CAUSE = "yield cap";
|
|
863
|
+
function is_tripped(times, now) {
|
|
864
|
+
const since_ms = now.getTime() - WINDOW_MS;
|
|
865
|
+
return times.filter((at) => Date.parse(at) >= since_ms).length >= YIELD_CAP;
|
|
866
|
+
}
|
|
867
|
+
function times_of(events, issue) {
|
|
868
|
+
return events.filter(
|
|
869
|
+
(event) => lane_yield.is_yield_note(event) && run_event_scope.issue_named(event) === issue
|
|
870
|
+
).map((event) => event.at);
|
|
871
|
+
}
|
|
872
|
+
function trip_text(issue) {
|
|
873
|
+
return `${issue_cite.plain_for("program", issue)} parked by backlog:drive: it gave its lane back ${String(YIELD_CAP)} times within ${String(WINDOW_MINUTES)} minutes`;
|
|
874
|
+
}
|
|
875
|
+
function body_of(issue) {
|
|
876
|
+
return [
|
|
877
|
+
`Parked with \`${RUN_STALLED_LABEL}\`: ${trip_text(issue)}, so the run stopped re-dispatching it.`,
|
|
878
|
+
`- Next: the drive re-offers it itself once ${String(WINDOW_MINUTES)} minutes pass, up to its auto-retry cap; past the cap, find why \`lane:plan\` keeps reading a holder, ${run_stalled.next_step(issue)}.`
|
|
879
|
+
].join("\n");
|
|
880
|
+
}
|
|
881
|
+
async function is_capped(issue, outcome, ports) {
|
|
882
|
+
return outcome === YIELDED_OUTCOME && is_tripped(await ports.yields(issue), ports.now());
|
|
883
|
+
}
|
|
884
|
+
async function capped(issue, outcome, state, ports) {
|
|
885
|
+
if (!await is_capped(issue, outcome, ports)) return state;
|
|
886
|
+
await ports.park(issue, body_of(issue));
|
|
887
|
+
return { ...state, exclude: [...state.exclude, issue] };
|
|
888
|
+
}
|
|
889
|
+
async function yields(issue) {
|
|
890
|
+
return times_of(await run_event_stream_emit.current_events(), issue);
|
|
891
|
+
}
|
|
892
|
+
async function park(issue, body) {
|
|
893
|
+
if (await run_stalled_park.apply(issue, body, TRIP_CAUSE)) await run_park_release.release(issue);
|
|
894
|
+
}
|
|
895
|
+
var PORTS = { yields, park };
|
|
896
|
+
var backlog_yield_cap = {
|
|
897
|
+
PORTS,
|
|
898
|
+
TRIP_CAUSE,
|
|
899
|
+
WINDOW_MS,
|
|
900
|
+
YIELD_CAP,
|
|
901
|
+
body_of,
|
|
902
|
+
capped,
|
|
903
|
+
is_tripped,
|
|
904
|
+
times_of
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
// scripts/backlog/backlog-drive.ts
|
|
908
|
+
var { MERGE_TOKEN: MERGE_TOKEN2 } = run_merge_token;
|
|
909
|
+
var { HANDOFF_TOKENS: HANDOFF_TOKENS2, IMMEDIATE_TOKENS: IMMEDIATE_TOKENS2, TOKEN_HANDLING: TOKEN_HANDLING2 } = backlog_drive_token_handling;
|
|
910
|
+
var RUN_VERDICT = "run";
|
|
911
|
+
var STOP_VERDICT2 = "stop";
|
|
912
|
+
var EXCLUDED_OUTCOMES = /* @__PURE__ */ new Set(["merged", "withdrawn"]);
|
|
913
|
+
var WATCH_VERDICT3 = "watch";
|
|
914
|
+
var KNOWN_VERDICTS = /* @__PURE__ */ new Set([
|
|
915
|
+
RUN_VERDICT,
|
|
916
|
+
STOP_VERDICT2,
|
|
917
|
+
WATCH_VERDICT3,
|
|
918
|
+
"wait"
|
|
919
|
+
]);
|
|
920
|
+
var JUDGE_REASON = "judge";
|
|
921
|
+
var { launch_all } = backlog_drive_launch_pass;
|
|
922
|
+
var { is_drain_owed } = backlog_drive_retrospective;
|
|
923
|
+
var { initial_state: initial_state2, merge_stopped: merge_stopped2 } = backlog_drive_state;
|
|
924
|
+
function ended(reason, state, token, issue) {
|
|
925
|
+
const detail = reason === STOP_VERDICT2 ? state.stop_reason : void 0;
|
|
926
|
+
return {
|
|
927
|
+
kind: "end",
|
|
928
|
+
end: {
|
|
929
|
+
reason,
|
|
930
|
+
token,
|
|
931
|
+
issue,
|
|
932
|
+
...detail !== void 0 && { detail },
|
|
933
|
+
...reason === STOP_VERDICT2 && { is_finish: state.stop_is_finish }
|
|
934
|
+
},
|
|
935
|
+
state
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
function excluded(issue, outcome, state) {
|
|
939
|
+
if (!EXCLUDED_OUTCOMES.has(outcome) || state.exclude.includes(issue)) return state.exclude;
|
|
940
|
+
return [...state.exclude, issue];
|
|
941
|
+
}
|
|
942
|
+
function was_parked(collected2) {
|
|
943
|
+
return collected2.outcome === "parked" || collected2.is_parked === true;
|
|
944
|
+
}
|
|
945
|
+
function collected_state(issue, collected2, state, active) {
|
|
946
|
+
const in_flight = collected2.token === MERGE_TOKEN2.RESUMED ? state.in_flight : state.in_flight.filter((item) => item !== issue);
|
|
947
|
+
const exclude = excluded(issue, collected2.outcome, state);
|
|
948
|
+
const is_triage_owed = state.is_triage_owed === true || was_parked(collected2);
|
|
949
|
+
return { ...state, in_flight, exclude, active, is_triage_owed };
|
|
950
|
+
}
|
|
951
|
+
async function collect(issue, state, ports) {
|
|
952
|
+
const collected2 = await ports.merge(issue);
|
|
953
|
+
const { token, is_offer } = collected2;
|
|
954
|
+
if (token === "") return ended("merge", state, void 0, issue);
|
|
955
|
+
if (!is_offer && IMMEDIATE_TOKENS2.has(token)) return ended("merge", state, token, issue);
|
|
956
|
+
const active = ports.now().toISOString();
|
|
957
|
+
const next = await backlog_yield_cap.capped(
|
|
958
|
+
issue,
|
|
959
|
+
collected2.outcome,
|
|
960
|
+
collected_state(issue, collected2, state, active),
|
|
961
|
+
ports
|
|
962
|
+
);
|
|
963
|
+
return {
|
|
964
|
+
kind: "continue",
|
|
965
|
+
state: run_merge_token.is_control_stop(collected2) ? merge_stopped2(issue, next) : next
|
|
966
|
+
};
|
|
967
|
+
}
|
|
968
|
+
async function collect_finished(state, ports) {
|
|
969
|
+
const finished = state.in_flight.filter((item) => ports.is_finished(item));
|
|
970
|
+
let current = state;
|
|
971
|
+
for (const issue of finished) {
|
|
972
|
+
const result = await collect(issue, current, ports);
|
|
973
|
+
if (result.kind === "end") return { ...result, state: current };
|
|
974
|
+
current = result.state;
|
|
975
|
+
}
|
|
976
|
+
await backlog_drive_hold.stopped(state, current, ports);
|
|
977
|
+
return { kind: "continue", state: current };
|
|
978
|
+
}
|
|
979
|
+
function on_verdict(read2, state) {
|
|
980
|
+
if (!KNOWN_VERDICTS.has(read2.verdict)) return ended(read2.verdict, state, read2.verdict);
|
|
981
|
+
if (read2.verdict === STOP_VERDICT2) {
|
|
982
|
+
return {
|
|
983
|
+
kind: "continue",
|
|
984
|
+
state: {
|
|
985
|
+
...state,
|
|
986
|
+
is_stopping: true,
|
|
987
|
+
stop_reason: read2.reason,
|
|
988
|
+
stop_is_finish: read2.is_finish
|
|
989
|
+
}
|
|
990
|
+
};
|
|
991
|
+
}
|
|
992
|
+
if (is_drain_owed(read2, state, WATCH_VERDICT3)) return ended(WATCH_VERDICT3, state, WATCH_VERDICT3);
|
|
993
|
+
return { kind: "continue", state };
|
|
994
|
+
}
|
|
995
|
+
async function usage_held(state, ports) {
|
|
996
|
+
await ports.hold(backlog_hold_codes.USAGE_LIMIT_REASON);
|
|
997
|
+
return { kind: "continue", state };
|
|
998
|
+
}
|
|
999
|
+
async function run_offered(issues, state, ports) {
|
|
1000
|
+
if (await ports.usage_limited()) return await usage_held(state, ports);
|
|
1001
|
+
if (await ports.memory_held()) return await backlog_drive_memory.held(state, ports);
|
|
1002
|
+
return await launch_all(issues, state, ports);
|
|
1003
|
+
}
|
|
1004
|
+
async function run_then_judge(read2, state, ports) {
|
|
1005
|
+
const result = await run_offered(read2.issues, state, ports);
|
|
1006
|
+
return backlog_drive_park_triage.triaged(result, read2.is_judgment_owed === true || backlog_drive_park_triage.is_owed(state));
|
|
1007
|
+
}
|
|
1008
|
+
async function answered(read2, next, ports) {
|
|
1009
|
+
if (await backlog_drive_judge.is_owed(read2, ports)) return ended(JUDGE_REASON, next, JUDGE_REASON);
|
|
1010
|
+
const verdict = await backlog_drive_retrospective.ran(on_verdict(read2, next), read2, ports);
|
|
1011
|
+
const idle = await backlog_drive_idle.noticed(verdict, read2, ports);
|
|
1012
|
+
const result = await backlog_drive_paused.noticed(idle, read2, ports);
|
|
1013
|
+
return await backlog_drive_hold.held(result, read2, ports);
|
|
1014
|
+
}
|
|
1015
|
+
async function ask_offer(state, ports) {
|
|
1016
|
+
const read2 = await ports.offer(state);
|
|
1017
|
+
if (read2 === void 0) return backlog_drive_park_triage.hand_back(state) ?? ended("offer", state);
|
|
1018
|
+
const next = {
|
|
1019
|
+
...state,
|
|
1020
|
+
retries: read2.retries,
|
|
1021
|
+
is_memory_held: false,
|
|
1022
|
+
not_before_ms: read2.not_before_ms,
|
|
1023
|
+
idle_until_ms: read2.idle_until_ms
|
|
1024
|
+
};
|
|
1025
|
+
if (read2.verdict === RUN_VERDICT) return await run_then_judge(read2, next, ports);
|
|
1026
|
+
return backlog_drive_park_triage.hand_back(next) ?? await answered(read2, next, ports);
|
|
1027
|
+
}
|
|
1028
|
+
function is_offering(before, after, should_offer) {
|
|
1029
|
+
const is_collected = after.in_flight.length !== before.in_flight.length;
|
|
1030
|
+
return !after.is_stopping && (should_offer || is_collected || backlog_drive_park_triage.is_owed(after));
|
|
1031
|
+
}
|
|
1032
|
+
async function offered(state, ports) {
|
|
1033
|
+
if (await ports.free_lanes() === 0) {
|
|
1034
|
+
return backlog_drive_park_triage.hand_back(state) ?? { kind: "continue", state };
|
|
1035
|
+
}
|
|
1036
|
+
return await ask_offer(state, ports);
|
|
1037
|
+
}
|
|
1038
|
+
function settle(result) {
|
|
1039
|
+
if (result.kind === "end") return result;
|
|
1040
|
+
const is_done = result.state.is_stopping && result.state.in_flight.length === 0;
|
|
1041
|
+
return is_done ? ended(STOP_VERDICT2, result.state, STOP_VERDICT2) : result;
|
|
1042
|
+
}
|
|
1043
|
+
async function run_pass(state, should_offer, ports) {
|
|
1044
|
+
const held3 = await backlog_drive_adopt.held(backlog_drive_park_triage.settled(state), should_offer, ports);
|
|
1045
|
+
const collected2 = await collect_finished(held3, ports);
|
|
1046
|
+
if (collected2.kind === "end") return collected2;
|
|
1047
|
+
if (!is_offering(held3, collected2.state, should_offer)) return settle(collected2);
|
|
1048
|
+
return settle(await offered(collected2.state, ports));
|
|
1049
|
+
}
|
|
1050
|
+
var WINDOW_END = { reason: "window", token: void 0, issue: void 0 };
|
|
1051
|
+
async function loop_step(run3, config, ports) {
|
|
1052
|
+
await ports.begin_tick(run3.state.in_flight);
|
|
1053
|
+
const now_ms = ports.now().getTime();
|
|
1054
|
+
const is_due3 = await backlog_offer_timing.is_due(run3, config, ports, now_ms);
|
|
1055
|
+
const result = await run_pass(run3.state, is_due3, ports);
|
|
1056
|
+
ports.on_state(result.state);
|
|
1057
|
+
if (result.kind === "end") return result;
|
|
1058
|
+
const step = { state: result.state, is_asked: is_due3 };
|
|
1059
|
+
const next = backlog_offer_timing.advanced(run3, step, config, now_ms);
|
|
1060
|
+
return backlog_offer_timing.is_window_spent(next, config, ports.now().getTime()) ? { kind: "end", end: WINDOW_END } : { kind: "next", run: next };
|
|
1061
|
+
}
|
|
1062
|
+
async function run_loop(state, config, ports) {
|
|
1063
|
+
const progress = { run: backlog_offer_timing.first_run(state, ports.now().getTime()) };
|
|
1064
|
+
const end = await poll.wait_for(
|
|
1065
|
+
async () => {
|
|
1066
|
+
const step = await loop_step(progress.run, config, ports);
|
|
1067
|
+
if (step.kind === "next") Object.assign(progress, { run: step.run });
|
|
1068
|
+
return step.kind === "end" ? step.end : void 0;
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
interval_ms: config.poll_ms,
|
|
1072
|
+
sleeper: backlog_offer_timing.sleeper(
|
|
1073
|
+
() => backlog_offer_timing.deadline_of(progress.run.state),
|
|
1074
|
+
ports
|
|
1075
|
+
)
|
|
1076
|
+
}
|
|
1077
|
+
);
|
|
1078
|
+
if (end.reason === STOP_VERDICT2) await ports.finish(end);
|
|
1079
|
+
return end;
|
|
1080
|
+
}
|
|
1081
|
+
var backlog_drive = {
|
|
1082
|
+
HANDOFF_TOKENS: HANDOFF_TOKENS2,
|
|
1083
|
+
TOKEN_HANDLING: TOKEN_HANDLING2,
|
|
1084
|
+
initial_state: initial_state2,
|
|
1085
|
+
merge_stopped: merge_stopped2,
|
|
1086
|
+
run_loop,
|
|
1087
|
+
run_pass
|
|
1088
|
+
};
|
|
1089
|
+
|
|
1090
|
+
// scripts/backlog/backlog-drive-carried.ts
|
|
1091
|
+
async function is_claimed(issue) {
|
|
1092
|
+
const read2 = await issue_state_cli.read_issue(issue);
|
|
1093
|
+
if (read2.kind !== "state") return false;
|
|
1094
|
+
return has_label_name(read2.state.labels, IN_PROGRESS_LABEL) && !read2.state.is_human_review;
|
|
1095
|
+
}
|
|
1096
|
+
async function carried(lanes) {
|
|
1097
|
+
const dispatched = lanes.filter((lane) => lane.output !== void 0).map((lane) => lane.issue);
|
|
1098
|
+
const claims = await Promise.all(dispatched.map(async (issue) => await is_claimed(issue)));
|
|
1099
|
+
return dispatched.filter((_issue, index) => claims[index] === true);
|
|
1100
|
+
}
|
|
1101
|
+
var backlog_drive_carried = { carried };
|
|
1102
|
+
|
|
1103
|
+
// scripts/backlog/backlog-drive-retry.ts
|
|
1104
|
+
function is_ready(issue, cause, repo) {
|
|
1105
|
+
const references = epic_issue.blocker_references_of(issue, repo);
|
|
1106
|
+
const is_dependent = references.some(
|
|
1107
|
+
(reference) => reference.number === cause && reference.repo.toLowerCase() === repo.toLowerCase()
|
|
1108
|
+
);
|
|
1109
|
+
return epic_issue.is_open(issue.state) && is_dependent && (issue.blockedBy?.nodes ?? []).every(
|
|
1110
|
+
(blocker) => epic_issue.normalize_state(blocker.state ?? "") === epic_issue.CLOSED
|
|
1111
|
+
);
|
|
1112
|
+
}
|
|
1113
|
+
async function park_protected(issue, cause, label) {
|
|
1114
|
+
await run_event_stream_emit.emit(
|
|
1115
|
+
run_event_stream.EVENT_KIND.PARK,
|
|
1116
|
+
`${issue_cite.plain_for("program", issue)} parked (${label}; blocker ${issue_cite.plain_for("program", cause)} closed)`
|
|
1117
|
+
);
|
|
1118
|
+
}
|
|
1119
|
+
async function add_retry(issue, what) {
|
|
1120
|
+
const result = await josh_command.josh_run(["run:add", String(issue), "--retry"], true);
|
|
1121
|
+
if (result.code !== 0) throw new Error(`Could not retry ${what}.`);
|
|
1122
|
+
}
|
|
1123
|
+
async function retry_one(issue, cause, repo) {
|
|
1124
|
+
const read2 = await run_add_issue.read(issue);
|
|
1125
|
+
const citation = issue_cite.reference(repo, String(issue), void 0);
|
|
1126
|
+
if (read2 === void 0) throw new Error(`Could not read all dependencies of ${citation}.`);
|
|
1127
|
+
if (!is_ready(read2, cause, repo)) return;
|
|
1128
|
+
const label = run_add.protected_label(epic_issue.label_names(read2));
|
|
1129
|
+
if (label !== void 0) {
|
|
1130
|
+
await park_protected(issue, cause, label);
|
|
1131
|
+
return;
|
|
1132
|
+
}
|
|
1133
|
+
await add_retry(issue, `${citation} after its cause merged`);
|
|
1134
|
+
}
|
|
1135
|
+
async function retry_all(issues, cause, repo) {
|
|
1136
|
+
const [issue, ...rest] = issues;
|
|
1137
|
+
if (issue === void 0) return;
|
|
1138
|
+
await retry_one(issue, cause, repo);
|
|
1139
|
+
await retry_all(rest, cause, repo);
|
|
1140
|
+
}
|
|
1141
|
+
async function after_merge(cause) {
|
|
1142
|
+
const events = await run_event_stream_emit.current_events(true);
|
|
1143
|
+
const parked = backlog_drive_restore.parked_issues(events);
|
|
1144
|
+
if (parked.size === 0) return;
|
|
1145
|
+
const repo = await git_gh_command.repo_get_name_with_owner();
|
|
1146
|
+
if (repo === void 0) throw new Error("Could not resolve the repository for dependent retries.");
|
|
1147
|
+
await retry_all([...parked], cause, repo);
|
|
1148
|
+
}
|
|
1149
|
+
var backlog_drive_retry = { add_retry, after_merge };
|
|
1150
|
+
|
|
1151
|
+
// scripts/backlog/backlog-drive-after-merge.ts
|
|
1152
|
+
var DECISION_HEADING = "## Decision (backlog:drive)";
|
|
1153
|
+
var SUCCESS_EXIT_CODE = 0;
|
|
1154
|
+
var DEFAULT_REASON = "because the park had no recommendation and it is the first reversible option with the smallest change (not tier C, no permission, no size approval)";
|
|
1155
|
+
async function trusted_bodies(issue) {
|
|
1156
|
+
const json = await git_gh_issue_read.issue_list_comments(issue);
|
|
1157
|
+
const comments = await issue_read.parse_comments(json);
|
|
1158
|
+
return issue_read.trusted_bodies(comments ?? []);
|
|
1159
|
+
}
|
|
1160
|
+
async function run_josh(argv) {
|
|
1161
|
+
const result = await josh_command.josh_run(argv, true);
|
|
1162
|
+
return result.code;
|
|
1163
|
+
}
|
|
1164
|
+
async function notify_decided(line) {
|
|
1165
|
+
return await telegram_notify.decided({
|
|
1166
|
+
body: line,
|
|
1167
|
+
recovery: `the "${DECISION_HEADING}" comment`
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1170
|
+
var PORTS2 = { bodies: trusted_bodies, run: run_josh, notify: notify_decided };
|
|
1171
|
+
function recommended(pick) {
|
|
1172
|
+
return {
|
|
1173
|
+
text: `Taking recommended option ${String(pick)}: tier A, no person's permission needed.`
|
|
1174
|
+
};
|
|
1175
|
+
}
|
|
1176
|
+
function defaulted(issue, park2) {
|
|
1177
|
+
const pick = run_park_body.default_pick(park2);
|
|
1178
|
+
if (pick === void 0) return void 0;
|
|
1179
|
+
const over = pick.over.length === 0 ? "no other option" : `option ${pick.over.join(", ")}`;
|
|
1180
|
+
const choice = `Auto-decided: option ${String(pick.number)} over ${over}`;
|
|
1181
|
+
return {
|
|
1182
|
+
text: `${choice} ${DEFAULT_REASON}.`,
|
|
1183
|
+
notice: `${issue_cite.plain_for("program", issue)}: ${choice}`
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
function decision_of(issue, bodies) {
|
|
1187
|
+
if (bodies.some((body) => body.startsWith(DECISION_HEADING))) return void 0;
|
|
1188
|
+
const park2 = bodies.findLast((body) => run_park_body.problem_of(body) === void 0);
|
|
1189
|
+
if (park2 === void 0) return void 0;
|
|
1190
|
+
const pick = run_park_body.auto_pick(park2);
|
|
1191
|
+
return pick === void 0 ? defaulted(issue, park2) : recommended(pick);
|
|
1192
|
+
}
|
|
1193
|
+
async function is_recorded(issue, text, ports) {
|
|
1194
|
+
const body = `${DECISION_HEADING}
|
|
1195
|
+
|
|
1196
|
+
${text}`;
|
|
1197
|
+
const commented = await ports.run(["issue:comment", issue, "--body", body]);
|
|
1198
|
+
if (commented !== SUCCESS_EXIT_CODE) return false;
|
|
1199
|
+
return await ports.run(["run:park", issue, "--clear"]) === SUCCESS_EXIT_CODE;
|
|
1200
|
+
}
|
|
1201
|
+
async function resolve(issue, ports = PORTS2) {
|
|
1202
|
+
const decision = decision_of(issue, await ports.bodies(issue));
|
|
1203
|
+
if (decision === void 0 || !await is_recorded(issue, decision.text, ports)) return false;
|
|
1204
|
+
if (decision.notice !== void 0) await ports.notify(decision.notice);
|
|
1205
|
+
return true;
|
|
1206
|
+
}
|
|
1207
|
+
async function after_merge2(issue, result, owner, ports = PORTS2) {
|
|
1208
|
+
if (result.outcome === "parked" && await resolve(issue, ports)) return;
|
|
1209
|
+
await backlog_drive_named.mark_done(issue, result, owner);
|
|
1210
|
+
if (result.outcome === "merged") await backlog_drive_retry.after_merge(Number(issue));
|
|
1211
|
+
}
|
|
1212
|
+
var backlog_drive_after_merge = { DECISION_HEADING, after_merge: after_merge2, resolve };
|
|
1213
|
+
|
|
1214
|
+
// scripts/backlog/backlog-drive-collect.ts
|
|
1215
|
+
var should_forward_stderr = true;
|
|
1216
|
+
function unprinted(code) {
|
|
1217
|
+
return { token: "", code, is_offer: true, outcome: "unresolved" };
|
|
1218
|
+
}
|
|
1219
|
+
async function collected(issue, owner) {
|
|
1220
|
+
await backlog_drive_owner.assert_current(owner);
|
|
1221
|
+
const lane = await lane_registry.find_open_lane(issue);
|
|
1222
|
+
const argv = run_merge_driver.argv_of({ child: issue, owner, output: lane?.output });
|
|
1223
|
+
const ran = await josh_command.josh_run(argv, should_forward_stderr);
|
|
1224
|
+
const result = run_merge_driver.read(ran.out) ?? unprinted(ran.code);
|
|
1225
|
+
await backlog_drive_after_merge.after_merge(issue, result, owner);
|
|
1226
|
+
return result;
|
|
1227
|
+
}
|
|
1228
|
+
async function merge(issue, owner) {
|
|
1229
|
+
return await backlog_drive_trace.traced(
|
|
1230
|
+
issue,
|
|
1231
|
+
backlog_drive_trace.STEP.COLLECT,
|
|
1232
|
+
async () => await collected(issue, owner)
|
|
1233
|
+
);
|
|
1234
|
+
}
|
|
1235
|
+
var backlog_drive_collect = { merge };
|
|
1236
|
+
|
|
1237
|
+
// scripts/backlog/backlog-drive-finish.ts
|
|
1238
|
+
var SUCCESS_EXIT_CODE2 = 0;
|
|
1239
|
+
var should_forward_stderr2 = true;
|
|
1240
|
+
function end_args(end) {
|
|
1241
|
+
if (end.is_finish === true) return ["run:carry", "--end"];
|
|
1242
|
+
return ["run:carry", "--end", "--stopped", end.detail ?? "stopped"];
|
|
1243
|
+
}
|
|
1244
|
+
async function finish(end) {
|
|
1245
|
+
const report = await josh_command.josh_run(["run:report"], should_forward_stderr2);
|
|
1246
|
+
if (report.code !== SUCCESS_EXIT_CODE2) throw new Error("run:report failed");
|
|
1247
|
+
console.error(report.out);
|
|
1248
|
+
const ended2 = await josh_command.josh_run(end_args(end), should_forward_stderr2);
|
|
1249
|
+
if (ended2.code !== SUCCESS_EXIT_CODE2) throw new Error("run:carry --end failed");
|
|
1250
|
+
}
|
|
1251
|
+
var backlog_drive_finish = { finish };
|
|
1252
|
+
|
|
1253
|
+
// scripts/backlog/backlog-drive-epic.ts
|
|
1254
|
+
var NO_RETRIES = 0;
|
|
1255
|
+
var SUCCESS_EXIT_CODE3 = 0;
|
|
1256
|
+
var FIRST_LINE = 0;
|
|
1257
|
+
var WAIT = { verdict: "wait", issues: [], retries: NO_RETRIES };
|
|
1258
|
+
var TRIAGE = { ...WAIT, verdict: epic_triage.TRIAGE_VERDICT };
|
|
1259
|
+
async function ask_next(epic) {
|
|
1260
|
+
const repo = await git_gh_repo.repo_get_name_with_owner();
|
|
1261
|
+
if (repo === void 0) return void 0;
|
|
1262
|
+
const result = await josh_command.josh_run(["epic:next", epic, "--repo", repo, "--lanes"], true);
|
|
1263
|
+
return result.code === SUCCESS_EXIT_CODE3 ? result.out.trim().split("\n") : void 0;
|
|
1264
|
+
}
|
|
1265
|
+
function handed_back(epic) {
|
|
1266
|
+
return { ...WAIT, verdict: `epic ${issue_cite.plain_for("program", epic)}` };
|
|
1267
|
+
}
|
|
1268
|
+
function failed_offer(epic, state) {
|
|
1269
|
+
const retries = state.retries + 1;
|
|
1270
|
+
return retries >= backlog_offer.RETRY_LIMIT ? handed_back(epic) : { ...WAIT, retries };
|
|
1271
|
+
}
|
|
1272
|
+
function child_offer(children, state) {
|
|
1273
|
+
const child = children.find(
|
|
1274
|
+
(item) => !state.in_flight.includes(item) && !state.exclude.includes(item)
|
|
1275
|
+
);
|
|
1276
|
+
return child === void 0 ? WAIT : { verdict: "run", issues: [child], retries: NO_RETRIES };
|
|
1277
|
+
}
|
|
1278
|
+
function judgment_offer(epic, token) {
|
|
1279
|
+
if (token === "stop") return handed_back(epic);
|
|
1280
|
+
return token === epic_triage.TRIAGE_VERDICT ? TRIAGE : void 0;
|
|
1281
|
+
}
|
|
1282
|
+
async function answered_offer(epic, answers, state, owner) {
|
|
1283
|
+
const token = answers[FIRST_LINE] ?? "";
|
|
1284
|
+
if (issue_number_shape.ISSUE_NUMBER_PATTERN.test(token)) return child_offer(answers, state);
|
|
1285
|
+
const judgment = judgment_offer(epic, token);
|
|
1286
|
+
if (judgment !== void 0) return judgment;
|
|
1287
|
+
if (token === "complete") {
|
|
1288
|
+
await backlog_drive_named.mark_done(
|
|
1289
|
+
epic,
|
|
1290
|
+
{ outcome: "merged", code: 0, token: "none", is_offer: true },
|
|
1291
|
+
owner
|
|
1292
|
+
);
|
|
1293
|
+
}
|
|
1294
|
+
return WAIT;
|
|
1295
|
+
}
|
|
1296
|
+
async function offer(epic, state, owner) {
|
|
1297
|
+
const answers = await ask_next(epic);
|
|
1298
|
+
return answers === void 0 ? failed_offer(epic, state) : await answered_offer(epic, answers, state, owner);
|
|
1299
|
+
}
|
|
1300
|
+
var backlog_drive_epic = { offer };
|
|
1301
|
+
|
|
1302
|
+
// scripts/backlog/backlog-drive-rate-limit.ts
|
|
1303
|
+
var REMAINING_FLOOR = 100;
|
|
1304
|
+
var WAIT_VERDICT = "wait";
|
|
1305
|
+
async function held2(state, read_core = gh_core_rate_limit.read_core) {
|
|
1306
|
+
const core = await read_core();
|
|
1307
|
+
if (core === void 0 || core.remaining >= REMAINING_FLOOR) return void 0;
|
|
1308
|
+
return { verdict: WAIT_VERDICT, issues: [], retries: state.retries, not_before_ms: core.reset_ms };
|
|
1309
|
+
}
|
|
1310
|
+
var backlog_drive_rate_limit = { REMAINING_FLOOR, held: held2 };
|
|
1311
|
+
|
|
1312
|
+
// scripts/backlog/backlog-drive-escalate.ts
|
|
1313
|
+
function label_of(worker) {
|
|
1314
|
+
return `${agent_worker_profile.LABEL_PREFIX}${worker.name}`;
|
|
1315
|
+
}
|
|
1316
|
+
function enabled_settings(directory) {
|
|
1317
|
+
const result = agent_worker_profile.read(directory);
|
|
1318
|
+
if (result.kind !== "settings") return void 0;
|
|
1319
|
+
return result.settings.escalate ? result.settings : void 0;
|
|
1320
|
+
}
|
|
1321
|
+
async function current_worker(settings, read_labels) {
|
|
1322
|
+
const labels = await read_labels();
|
|
1323
|
+
if (labels === void 0) return void 0;
|
|
1324
|
+
const result = agent_worker_profile.for_labels(settings, labels);
|
|
1325
|
+
return result.kind === "worker" ? result.worker : void 0;
|
|
1326
|
+
}
|
|
1327
|
+
async function relabel(issue, move) {
|
|
1328
|
+
if (!await git_gh_issue_write.issue_add_label(issue, label_of(move.to))) return false;
|
|
1329
|
+
return await git_gh_issue_write.issue_clear_label(issue, label_of(move.from));
|
|
1330
|
+
}
|
|
1331
|
+
function agent_of(worker) {
|
|
1332
|
+
return `${worker.agent.model} / ${worker.agent.effort}`;
|
|
1333
|
+
}
|
|
1334
|
+
function step_note(move, reason) {
|
|
1335
|
+
return [
|
|
1336
|
+
`Escalated the worker from \`${label_of(move.from)}\` (${agent_of(move.from)}) to \`${label_of(move.to)}\` (${agent_of(move.to)}); the lane resumes in the same worktree.`,
|
|
1337
|
+
`- Reason: ${reason}`
|
|
1338
|
+
].join("\n");
|
|
1339
|
+
}
|
|
1340
|
+
async function step_up(issue, move, reason, retry) {
|
|
1341
|
+
if (!await relabel(String(issue), move)) {
|
|
1342
|
+
console.error(
|
|
1343
|
+
`Could not move ${issue_cite.plain_for("program", issue)} to ${label_of(move.to)}. Left for a person.`
|
|
1344
|
+
);
|
|
1345
|
+
return;
|
|
1346
|
+
}
|
|
1347
|
+
await git_gh_issue_write.issue_try_comment(String(issue), step_note(move, reason));
|
|
1348
|
+
await retry(issue);
|
|
1349
|
+
}
|
|
1350
|
+
function top_note(top, reason) {
|
|
1351
|
+
return [
|
|
1352
|
+
`Parked with \`${NEEDS_DECISION_LABEL}\`: the worker asked for a stronger profile, but \`${label_of(top)}\` is the top of josh.worker.profiles.`,
|
|
1353
|
+
`- Reason: ${reason}`,
|
|
1354
|
+
"- Next: a person decides how to go on."
|
|
1355
|
+
].join("\n");
|
|
1356
|
+
}
|
|
1357
|
+
async function hand_over(issue, top, reason) {
|
|
1358
|
+
await issue_park.apply(String(issue), NEEDS_DECISION_LABEL, top_note(top, reason));
|
|
1359
|
+
}
|
|
1360
|
+
async function escalate(issue, reason, ports, directory = process.cwd()) {
|
|
1361
|
+
const settings = enabled_settings(directory);
|
|
1362
|
+
if (settings === void 0) return;
|
|
1363
|
+
const from = await current_worker(settings, ports.labels);
|
|
1364
|
+
if (from === void 0) return;
|
|
1365
|
+
const to = agent_worker_profile.next(settings, from);
|
|
1366
|
+
await (to === void 0 ? hand_over(issue, from, reason) : step_up(issue, { from, to }, reason, ports.retry));
|
|
1367
|
+
}
|
|
1368
|
+
var backlog_drive_escalate = { escalate };
|
|
1369
|
+
|
|
1370
|
+
// scripts/backlog/backlog-drive-stalled-retry.ts
|
|
1371
|
+
var RETRY_CAP = 2;
|
|
1372
|
+
var CAP_NOTE = `auto-retry cap ${String(RETRY_CAP)} reached`;
|
|
1373
|
+
var RESUME_REFUSED = "escalated one profile up, but run:add refused the resume";
|
|
1374
|
+
var { PARK } = run_event_stream.EVENT_KIND;
|
|
1375
|
+
var last_sweep = { at: -Infinity };
|
|
1376
|
+
async function is_followup_clear(issue) {
|
|
1377
|
+
try {
|
|
1378
|
+
const branch = lane_paths.lane_branch(String(issue));
|
|
1379
|
+
const { snapshot_json } = await git_gh_pr_snapshot.pr_get_checks_snapshot(branch);
|
|
1380
|
+
const snapshot = parse_pr_state_snapshot(snapshot_json);
|
|
1381
|
+
return absent_required(snapshot, REQUIRED_CHECKS).length === 0 && collect_blocking_failures(snapshot).length === 0 && is_mergeable_state(snapshot);
|
|
1382
|
+
} catch {
|
|
1383
|
+
return false;
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
async function is_next_sweep() {
|
|
1387
|
+
return true;
|
|
1388
|
+
}
|
|
1389
|
+
async function is_window_passed(_issue, park2, now) {
|
|
1390
|
+
return Date.parse(park2.at) + backlog_yield_cap.WINDOW_MS <= now;
|
|
1391
|
+
}
|
|
1392
|
+
var STAGE_CHECKS = /* @__PURE__ */ new Map([
|
|
1393
|
+
[run_ship_stage.STAGE.FOLLOWUP, is_followup_clear]
|
|
1394
|
+
]);
|
|
1395
|
+
var CAUSE_CHECKS = /* @__PURE__ */ new Map([
|
|
1396
|
+
[run_stalled.SESSION_UNFINISHED.short, is_next_sweep],
|
|
1397
|
+
[run_stalled.CUT_NOT_RELAUNCHED.short, is_next_sweep],
|
|
1398
|
+
[run_stalled.STALE_HANDOFF.short, is_next_sweep],
|
|
1399
|
+
[backlog_yield_cap.TRIP_CAUSE, is_window_passed]
|
|
1400
|
+
]);
|
|
1401
|
+
function latest_parks(events) {
|
|
1402
|
+
const parks = /* @__PURE__ */ new Map();
|
|
1403
|
+
for (const event of run_event_retry.current_attempts(events)) {
|
|
1404
|
+
const issue = run_event_scope.issue_named(event);
|
|
1405
|
+
if (issue !== void 0 && event.kind === PARK) parks.set(Number(issue), event);
|
|
1406
|
+
}
|
|
1407
|
+
return parks;
|
|
1408
|
+
}
|
|
1409
|
+
async function stalled_labels(issue) {
|
|
1410
|
+
const read2 = await run_add_issue.read(issue);
|
|
1411
|
+
if (read2 === void 0) return void 0;
|
|
1412
|
+
const labels = epic_issue.label_names(read2);
|
|
1413
|
+
const is_stalled = epic_issue.is_open(read2.state) && has_label_name(labels, RUN_STALLED_LABEL) && run_add.protected_label(labels) === void 0;
|
|
1414
|
+
return is_stalled ? labels : void 0;
|
|
1415
|
+
}
|
|
1416
|
+
async function is_still_stalled(issue) {
|
|
1417
|
+
return await stalled_labels(issue) !== void 0;
|
|
1418
|
+
}
|
|
1419
|
+
function check_of(park2) {
|
|
1420
|
+
if (park2.text.includes(CAP_NOTE)) return void 0;
|
|
1421
|
+
if (park2.stop !== void 0) return STAGE_CHECKS.get(park2.stop.stage);
|
|
1422
|
+
return CAUSE_CHECKS.get(run_stalled.class_of(run_stalled.cause_in(park2.text) ?? ""));
|
|
1423
|
+
}
|
|
1424
|
+
function cap_cause(park2) {
|
|
1425
|
+
const cause = run_stalled.cause_in(park2.text) ?? "";
|
|
1426
|
+
return cause === "" ? CAP_NOTE : `${CAP_NOTE} \u2014 ${cause}`;
|
|
1427
|
+
}
|
|
1428
|
+
async function note_cap(issue, park2) {
|
|
1429
|
+
const text = run_stalled.park_event(issue, cap_cause(park2));
|
|
1430
|
+
const { stop } = park2;
|
|
1431
|
+
await run_event_stream_emit.emit(PARK, text, /* @__PURE__ */ new Date(), { ...stop && { stop } });
|
|
1432
|
+
}
|
|
1433
|
+
async function retry_cleared(issue) {
|
|
1434
|
+
try {
|
|
1435
|
+
await backlog_drive_retry.add_retry(
|
|
1436
|
+
issue,
|
|
1437
|
+
`${issue_cite.plain_for("program", issue)} automatically`
|
|
1438
|
+
);
|
|
1439
|
+
return true;
|
|
1440
|
+
} catch (error) {
|
|
1441
|
+
console.error(`${String(error)} Left for a person.`);
|
|
1442
|
+
return false;
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
async function is_due2(issue, park2, is_cleared, due) {
|
|
1446
|
+
if (!due.is_capped && !await is_cleared(issue, park2, due.now)) return false;
|
|
1447
|
+
return await is_still_stalled(issue);
|
|
1448
|
+
}
|
|
1449
|
+
async function retry_park(issue, park2, context) {
|
|
1450
|
+
const cause_check = check_of(park2);
|
|
1451
|
+
if (cause_check === void 0) return;
|
|
1452
|
+
const is_capped2 = run_event_retry.count_of(context.history, issue) >= RETRY_CAP;
|
|
1453
|
+
if (!await is_due2(issue, park2, cause_check, { is_capped: is_capped2, now: context.now })) return;
|
|
1454
|
+
await (is_capped2 ? note_cap(issue, park2) : retry_cleared(issue));
|
|
1455
|
+
}
|
|
1456
|
+
function is_escalation(park2) {
|
|
1457
|
+
const cause = run_stalled.cause_in(park2.text) ?? "";
|
|
1458
|
+
return run_stalled.class_of(cause) === run_stalled.ESCALATION_REQUESTED.short;
|
|
1459
|
+
}
|
|
1460
|
+
async function resume_escalated(issue) {
|
|
1461
|
+
if (await retry_cleared(issue)) return;
|
|
1462
|
+
await run_event_stream_emit.emit(PARK, run_stalled.park_event(issue, RESUME_REFUSED));
|
|
1463
|
+
}
|
|
1464
|
+
async function escalate_park(issue, park2) {
|
|
1465
|
+
await backlog_drive_escalate.escalate(issue, run_stalled.cause_in(park2.text) ?? "", {
|
|
1466
|
+
labels: async () => await stalled_labels(issue),
|
|
1467
|
+
retry: resume_escalated
|
|
1468
|
+
});
|
|
1469
|
+
}
|
|
1470
|
+
async function settle_park(issue, park2, context) {
|
|
1471
|
+
await (is_escalation(park2) ? escalate_park(issue, park2) : retry_park(issue, park2, context));
|
|
1472
|
+
}
|
|
1473
|
+
async function retry_all2(parks, context) {
|
|
1474
|
+
const [first, ...rest] = parks;
|
|
1475
|
+
if (first === void 0) return;
|
|
1476
|
+
await settle_park(first[0], first[1], context);
|
|
1477
|
+
await retry_all2(rest, context);
|
|
1478
|
+
}
|
|
1479
|
+
async function sweep(now = Date.now()) {
|
|
1480
|
+
if (now - last_sweep.at < backlog_budget.OFFER_INTERVAL_MS) return;
|
|
1481
|
+
last_sweep.at = now;
|
|
1482
|
+
const parks = latest_parks(await run_event_stream_emit.current_events());
|
|
1483
|
+
if (parks.size === 0) return;
|
|
1484
|
+
await retry_all2([...parks], { history: await run_event_stream_emit.all_events(), now });
|
|
1485
|
+
}
|
|
1486
|
+
var backlog_drive_stalled_retry = { CAP_NOTE, RETRY_CAP, sweep };
|
|
1487
|
+
|
|
1488
|
+
// scripts/backlog/backlog-drive-unread.ts
|
|
1489
|
+
var NO_RETRIES2 = 0;
|
|
1490
|
+
var HANDED_BACK = "offer";
|
|
1491
|
+
var UNKNOWN_REASON = "unknown reason";
|
|
1492
|
+
function cause_of(read2) {
|
|
1493
|
+
if (read2.kind === "missing") return "the number does not resolve";
|
|
1494
|
+
const status = read2.status === void 0 ? [] : [`status ${String(read2.status)}`];
|
|
1495
|
+
return [read2.reason ?? UNKNOWN_REASON, ...status].join(", ");
|
|
1496
|
+
}
|
|
1497
|
+
function note_of(issue, read2) {
|
|
1498
|
+
return `The state of named issue ${issue_cite.plain_for("terminal", issue)} could not be read (${cause_of(read2)})`;
|
|
1499
|
+
}
|
|
1500
|
+
function handed_back2(note) {
|
|
1501
|
+
console.error(note);
|
|
1502
|
+
return { verdict: HANDED_BACK, issues: [], retries: NO_RETRIES2 };
|
|
1503
|
+
}
|
|
1504
|
+
function offer2(issue, read2, retries) {
|
|
1505
|
+
const note = note_of(issue, read2);
|
|
1506
|
+
if (read2.kind === "missing") return handed_back2(`${note}; check the number and the repository.`);
|
|
1507
|
+
const failures = retries + 1;
|
|
1508
|
+
if (failures >= backlog_offer.RETRY_LIMIT) {
|
|
1509
|
+
return handed_back2(`${note}; the offer failed ${String(failures)} times in a row.`);
|
|
1510
|
+
}
|
|
1511
|
+
console.error(`${note}; reading it again.`);
|
|
1512
|
+
return { verdict: "wait", issues: [], retries: failures };
|
|
1513
|
+
}
|
|
1514
|
+
var backlog_drive_unread = { HANDED_BACK, offer: offer2 };
|
|
1515
|
+
|
|
1516
|
+
// scripts/backlog/backlog-drive-named-offer.ts
|
|
1517
|
+
var NO_RETRIES3 = 0;
|
|
1518
|
+
function max_of(forwarded) {
|
|
1519
|
+
const index = forwarded.indexOf("--max");
|
|
1520
|
+
return index === -1 ? void 0 : Number(forwarded[index + 1]);
|
|
1521
|
+
}
|
|
1522
|
+
function budget_offer(carry, state, forwarded) {
|
|
1523
|
+
const budget = backlog_budget.decide({
|
|
1524
|
+
answer: "candidates",
|
|
1525
|
+
merged: carry.merged,
|
|
1526
|
+
running: state.in_flight.length,
|
|
1527
|
+
started_at_ms: Date.parse(carry.started_at),
|
|
1528
|
+
active_at_ms: Date.parse(state.active),
|
|
1529
|
+
now_ms: Date.now(),
|
|
1530
|
+
max_issues: max_of(forwarded),
|
|
1531
|
+
idle_budget_ms: backlog_budget.DEFAULT_IDLE_MS
|
|
1532
|
+
});
|
|
1533
|
+
return {
|
|
1534
|
+
verdict: budget.verdict,
|
|
1535
|
+
issues: [],
|
|
1536
|
+
retries: NO_RETRIES3,
|
|
1537
|
+
reason: budget.reason,
|
|
1538
|
+
is_finish: budget.verdict === "stop"
|
|
1539
|
+
};
|
|
1540
|
+
}
|
|
1541
|
+
function is_settled(state) {
|
|
1542
|
+
return state.state.toUpperCase() === "CLOSED" || has_parked_label(state.labels);
|
|
1543
|
+
}
|
|
1544
|
+
async function classify(issue, named, state, owner) {
|
|
1545
|
+
const result = await issue_state_cli.read_issue(issue);
|
|
1546
|
+
if (result.kind !== "state") return backlog_drive_unread.offer(issue, result, state.retries);
|
|
1547
|
+
if (is_settled(result.state)) {
|
|
1548
|
+
await backlog_drive_named.mark_settled(issue, owner);
|
|
1549
|
+
return { verdict: "wait", issues: [], retries: NO_RETRIES3 };
|
|
1550
|
+
}
|
|
1551
|
+
return has_label_name(result.state.labels, EPIC_LABEL) ? await backlog_drive_epic.offer(issue, state, owner) : named;
|
|
1552
|
+
}
|
|
1553
|
+
async function unmerged_reason(issue, merged) {
|
|
1554
|
+
if (merged.includes(issue)) return void 0;
|
|
1555
|
+
const result = await issue_state_cli.read_issue(String(issue));
|
|
1556
|
+
if (result.kind !== "state") return "state unreadable";
|
|
1557
|
+
if (result.state.state.toUpperCase() === "CLOSED") return void 0;
|
|
1558
|
+
return parked_label_of(result.state.labels) ?? "open";
|
|
1559
|
+
}
|
|
1560
|
+
function cite(issue, reason) {
|
|
1561
|
+
return reason === void 0 ? void 0 : `${issue_cite.plain_for("program", issue)} (${reason})`;
|
|
1562
|
+
}
|
|
1563
|
+
async function unmerged_of(carry) {
|
|
1564
|
+
const declared = backlog_drive_named.named_issues(carry);
|
|
1565
|
+
const merged = carry.merged_issues ?? [];
|
|
1566
|
+
const reasons = await Promise.all(
|
|
1567
|
+
declared.map(async (issue) => await unmerged_reason(issue, merged))
|
|
1568
|
+
);
|
|
1569
|
+
const cited2 = declared.map((issue, index) => cite(issue, reasons[index]));
|
|
1570
|
+
return cited2.filter((line) => line !== void 0);
|
|
1571
|
+
}
|
|
1572
|
+
async function only_end(carry, named) {
|
|
1573
|
+
const unmerged = await unmerged_of(carry);
|
|
1574
|
+
if (unmerged.length === 0) return named;
|
|
1575
|
+
return {
|
|
1576
|
+
...named,
|
|
1577
|
+
reason: `only: ${unmerged.join(", ")} ended without a merge`,
|
|
1578
|
+
is_finish: false
|
|
1579
|
+
};
|
|
1580
|
+
}
|
|
1581
|
+
async function not_run(carry, named) {
|
|
1582
|
+
return named?.is_finish === true ? await only_end(carry, named) : named;
|
|
1583
|
+
}
|
|
1584
|
+
async function declared_among(numbers, listed) {
|
|
1585
|
+
const pool = [...new Set(numbers)].map(
|
|
1586
|
+
(number) => listed.find((issue) => issue.number === number) ?? { number }
|
|
1587
|
+
);
|
|
1588
|
+
return await backlog_plan_comment.declared_of(pool, process.cwd());
|
|
1589
|
+
}
|
|
1590
|
+
async function holding2(carry, in_flight) {
|
|
1591
|
+
const yielded = backlog_drive_named.named_issues(carry).filter((issue) => lane_plan.is_yielded(issue, process.cwd()));
|
|
1592
|
+
if (yielded.length === 0) return [...in_flight];
|
|
1593
|
+
const listing = await auto_ok_cli.fetch_opted_in();
|
|
1594
|
+
const listed = listing.kind === "read" ? listing.issues : [];
|
|
1595
|
+
const running = lane_plan_probe.running_of(listed).map((issue) => issue.number);
|
|
1596
|
+
const declared = await declared_among([...in_flight.map(Number), ...running], listed);
|
|
1597
|
+
const scopes = await declared_among(yielded, listed);
|
|
1598
|
+
const held3 = yielded.filter(
|
|
1599
|
+
(issue) => lane_plan.is_yield_held(issue, declared, process.cwd(), scopes.get(issue))
|
|
1600
|
+
);
|
|
1601
|
+
return [.../* @__PURE__ */ new Set([...in_flight, ...held3.map(String)])];
|
|
1602
|
+
}
|
|
1603
|
+
async function launch(issue, named, state, owner) {
|
|
1604
|
+
if (issue === void 0) return void 0;
|
|
1605
|
+
const held3 = await backlog_drive_rate_limit.held(state);
|
|
1606
|
+
return held3 ?? await classify(issue, named, state, owner);
|
|
1607
|
+
}
|
|
1608
|
+
function is_passed(carry, issue, offered2) {
|
|
1609
|
+
if (issue === void 0 || offered2?.verdict !== "wait") return false;
|
|
1610
|
+
return offered2.retries === NO_RETRIES3 && !backlog_drive_named.is_declared(carry, issue);
|
|
1611
|
+
}
|
|
1612
|
+
async function offer_of(carry, state, waiting, context) {
|
|
1613
|
+
const named = backlog_drive_named.offer(carry, waiting, context.is_only);
|
|
1614
|
+
if (named?.verdict !== "run") return { offer: await not_run(carry, named), passed: [] };
|
|
1615
|
+
const budget = budget_offer(carry, state, context.forwarded);
|
|
1616
|
+
if (budget.verdict !== "run") return { offer: budget, passed: [] };
|
|
1617
|
+
const [issue] = named.issues;
|
|
1618
|
+
const offered2 = await launch(issue, named, state, context.owner);
|
|
1619
|
+
if (!is_passed(carry, issue, offered2)) return { offer: offered2, passed: [] };
|
|
1620
|
+
const past = await offer_of(
|
|
1621
|
+
carry,
|
|
1622
|
+
state,
|
|
1623
|
+
{ ...waiting, in_flight: [...waiting.in_flight, issue] },
|
|
1624
|
+
context
|
|
1625
|
+
);
|
|
1626
|
+
return { ...past, passed: [issue, ...past.passed] };
|
|
1627
|
+
}
|
|
1628
|
+
function held_alone(state, waiting) {
|
|
1629
|
+
if (state.in_flight.length > 0 || waiting.in_flight.length === 0) return void 0;
|
|
1630
|
+
return { verdict: "wait", issues: [], retries: NO_RETRIES3 };
|
|
1631
|
+
}
|
|
1632
|
+
async function read(carry, state, context) {
|
|
1633
|
+
await backlog_drive_stalled_retry.sweep();
|
|
1634
|
+
const waiting = { ...state, in_flight: await holding2(carry, state.in_flight) };
|
|
1635
|
+
const { offer: offer3, passed } = await offer_of(carry, state, waiting, context);
|
|
1636
|
+
const pool = {
|
|
1637
|
+
...state,
|
|
1638
|
+
in_flight: [...state.in_flight, ...passed],
|
|
1639
|
+
exclude: [...state.exclude, ...waiting.in_flight]
|
|
1640
|
+
};
|
|
1641
|
+
return { offer: offer3 ?? held_alone(state, waiting), pool };
|
|
1642
|
+
}
|
|
1643
|
+
var backlog_drive_named_offer = { read };
|
|
1644
|
+
|
|
1645
|
+
// scripts/backlog/backlog-drive-offer-argv.ts
|
|
1646
|
+
function running_of(state) {
|
|
1647
|
+
return state.in_flight.length + (backlog_drive_park_triage.is_owed(state) ? 1 : 0);
|
|
1648
|
+
}
|
|
1649
|
+
function offer_argv(state, carry, forwarded) {
|
|
1650
|
+
const settled2 = [...state.exclude, ...state.waiting ?? []];
|
|
1651
|
+
const exclude = backlog_offer_exclude.exclude_of(settled2, state.in_flight);
|
|
1652
|
+
return [
|
|
1653
|
+
"backlog:offer",
|
|
1654
|
+
"--json",
|
|
1655
|
+
"--started",
|
|
1656
|
+
carry.started_at,
|
|
1657
|
+
"--active",
|
|
1658
|
+
state.active,
|
|
1659
|
+
"--merged",
|
|
1660
|
+
String(carry.merged),
|
|
1661
|
+
"--running",
|
|
1662
|
+
String(running_of(state)),
|
|
1663
|
+
"--retries",
|
|
1664
|
+
String(state.retries),
|
|
1665
|
+
...backlog_offer_exclude.exclude_argv(exclude),
|
|
1666
|
+
...forwarded
|
|
1667
|
+
];
|
|
1668
|
+
}
|
|
1669
|
+
var backlog_drive_offer_argv = { offer_argv };
|
|
1670
|
+
|
|
1671
|
+
// scripts/backlog/backlog-drive-rate.ts
|
|
1672
|
+
var { EVENT_KIND } = run_event_stream;
|
|
1673
|
+
var PRUNE_COMMAND = "lane:prune";
|
|
1674
|
+
function used_delta(before, after) {
|
|
1675
|
+
return before.reset_ms === after.reset_ms ? after.used - before.used : after.used;
|
|
1676
|
+
}
|
|
1677
|
+
function record_of(before, after) {
|
|
1678
|
+
if (before === void 0 || after === void 0) return { is_missing: true };
|
|
1679
|
+
return {
|
|
1680
|
+
used_delta: used_delta(before, after),
|
|
1681
|
+
remaining: after.remaining,
|
|
1682
|
+
reset: new Date(after.reset_ms).toISOString()
|
|
1683
|
+
};
|
|
1684
|
+
}
|
|
1685
|
+
async function measured(cycle) {
|
|
1686
|
+
const before = await gh_core_rate_limit.read_allowance();
|
|
1687
|
+
const result = await cycle();
|
|
1688
|
+
const after = await gh_core_rate_limit.read_allowance();
|
|
1689
|
+
await run_event_stream_emit.emit(EVENT_KIND.RATE_LIMIT, JSON.stringify(record_of(before, after)));
|
|
1690
|
+
return result;
|
|
1691
|
+
}
|
|
1692
|
+
async function offer_run(argv) {
|
|
1693
|
+
return await measured(async () => {
|
|
1694
|
+
await josh_command.josh_run([PRUNE_COMMAND], true);
|
|
1695
|
+
return await josh_command.josh_run(argv, true);
|
|
1696
|
+
});
|
|
1697
|
+
}
|
|
1698
|
+
var backlog_drive_rate = { measured, offer_run };
|
|
1699
|
+
|
|
1700
|
+
// scripts/backlog/backlog-drive-record.ts
|
|
1701
|
+
async function read_record() {
|
|
1702
|
+
const target = await run_carry.repository_directory();
|
|
1703
|
+
if (target === void 0) return void 0;
|
|
1704
|
+
const read2 = run_carry.read_carry(run_carry.carry_path(target));
|
|
1705
|
+
return read2.kind === "carried" ? read2.carry : void 0;
|
|
1706
|
+
}
|
|
1707
|
+
async function is_named_left() {
|
|
1708
|
+
const remaining = run_carry.remaining_of(await read_record()) ?? [];
|
|
1709
|
+
return remaining.length > 0;
|
|
1710
|
+
}
|
|
1711
|
+
async function stall(issue, outcome) {
|
|
1712
|
+
const comment = [
|
|
1713
|
+
`Parked by \`backlog:drive\`: \`lane:launch\` answered \`${outcome}\` for ${issue_cite.plain_for("program", issue)}.`,
|
|
1714
|
+
"",
|
|
1715
|
+
`Read the lane's log, then ${run_stalled.next_step(issue)}.`
|
|
1716
|
+
].join("\n");
|
|
1717
|
+
await run_stalled_park.apply(issue, comment, `launch ${outcome}`);
|
|
1718
|
+
}
|
|
1719
|
+
function record_ports(read2) {
|
|
1720
|
+
return {
|
|
1721
|
+
added_since: async (since_ms) => await backlog_arrival_added.is_added_since(since_ms, read2),
|
|
1722
|
+
raised_since: async (since_ms) => await backlog_arrival_added.is_raised_since(since_ms, read2),
|
|
1723
|
+
named_left: is_named_left,
|
|
1724
|
+
...backlog_yield_cap.PORTS,
|
|
1725
|
+
stall
|
|
1726
|
+
};
|
|
1727
|
+
}
|
|
1728
|
+
var backlog_drive_record = { read_record, record_ports };
|
|
1729
|
+
|
|
1730
|
+
// scripts/backlog/backlog-drive-retrospective-unit.ts
|
|
1731
|
+
function brief_of(owner) {
|
|
1732
|
+
return [
|
|
1733
|
+
"Run the backlogrun retrospective as the run parent would: `pnpm josh doc:read retrospective.md`;",
|
|
1734
|
+
"its digest is `pnpm josh retrospective`.",
|
|
1735
|
+
`Close with \`pnpm josh run:carry --retrospective --summary "<result>" --owner ${owner}\`:`,
|
|
1736
|
+
"the run record is held by that process, not this session.",
|
|
1737
|
+
"Nobody answers this session: a question for a person ends it, written as the final message."
|
|
1738
|
+
].join(" ");
|
|
1739
|
+
}
|
|
1740
|
+
var LOG_LABEL = "retrospective";
|
|
1741
|
+
function request_of(ports, git_directory, owner) {
|
|
1742
|
+
const log = backlog_drive_unit.log_path(git_directory, LOG_LABEL, ports.now());
|
|
1743
|
+
return backlog_drive_unit.request_of(brief_of(owner), ports, log);
|
|
1744
|
+
}
|
|
1745
|
+
function production_ports() {
|
|
1746
|
+
return {
|
|
1747
|
+
repository_directory: run_carry.repository_directory,
|
|
1748
|
+
emit: run_event_setup.emit,
|
|
1749
|
+
launch_attached: backlog_drive_unit.launch_attached,
|
|
1750
|
+
is_marked: (git_directory) => run_carry.retrospective_done_of(run_carry.read_carry(run_carry.carry_path(git_directory))),
|
|
1751
|
+
environment: process.env,
|
|
1752
|
+
cwd: process.cwd(),
|
|
1753
|
+
now: () => Date.now()
|
|
1754
|
+
};
|
|
1755
|
+
}
|
|
1756
|
+
async function run(owner, ports = production_ports()) {
|
|
1757
|
+
const git_directory = await ports.repository_directory();
|
|
1758
|
+
if (git_directory === void 0) return false;
|
|
1759
|
+
const request = request_of(ports, git_directory, owner);
|
|
1760
|
+
if (request === void 0) return false;
|
|
1761
|
+
await ports.emit(run_event_setup.STAGE.RETROSPECTIVE);
|
|
1762
|
+
await ports.launch_attached(request);
|
|
1763
|
+
return ports.is_marked(git_directory);
|
|
1764
|
+
}
|
|
1765
|
+
var backlog_drive_retrospective_unit = { run };
|
|
1766
|
+
|
|
1767
|
+
// scripts/backlog/backlog-drive-tick.ts
|
|
1768
|
+
async function snapshot_of(issues, table) {
|
|
1769
|
+
if (issues.length === 0) return void 0;
|
|
1770
|
+
const rows = await table();
|
|
1771
|
+
if (rows === void 0) return void 0;
|
|
1772
|
+
const trace = await lane_snapshot_trace.traces_of(issues, rows);
|
|
1773
|
+
const covered = new Set(issues);
|
|
1774
|
+
return (issue) => covered.has(issue) ? trace(issue) === PROCESS_ALIVE : void 0;
|
|
1775
|
+
}
|
|
1776
|
+
function liveness(table = lane_process_table.read_table, is_probed_running = lane_await.is_process_running_default) {
|
|
1777
|
+
const current = { snapshot: void 0 };
|
|
1778
|
+
return {
|
|
1779
|
+
is_running: (issue) => current.snapshot?.(issue) ?? is_probed_running(issue),
|
|
1780
|
+
take: async (issues) => {
|
|
1781
|
+
current.snapshot = await snapshot_of(issues, table);
|
|
1782
|
+
}
|
|
1783
|
+
};
|
|
1784
|
+
}
|
|
1785
|
+
function tick_share(lanes = liveness(), stream = backlog_arrival_added.tick_reader()) {
|
|
1786
|
+
return {
|
|
1787
|
+
is_running: lanes.is_running,
|
|
1788
|
+
read: stream.read,
|
|
1789
|
+
begin_tick: async (in_flight) => {
|
|
1790
|
+
stream.begin_tick();
|
|
1791
|
+
await lanes.take(in_flight);
|
|
1792
|
+
}
|
|
1793
|
+
};
|
|
1794
|
+
}
|
|
1795
|
+
var backlog_drive_tick = { liveness, tick_share };
|
|
1796
|
+
|
|
1797
|
+
// scripts/backlog/backlog-drive-cli.ts
|
|
1798
|
+
var __josh_meta = import.meta;
|
|
1799
|
+
var __josh_source_url = new URL("../../scripts/backlog/backlog-drive-cli.ts", __josh_meta.url).href;
|
|
1800
|
+
var __josh_source_filename = __josh_file_path(__josh_source_url);
|
|
1801
|
+
var __josh_source_dirname = __josh_dirname(__josh_source_filename);
|
|
1802
|
+
var ARGV_OFFSET = 2;
|
|
1803
|
+
var SUCCESS_EXIT_CODE4 = 0;
|
|
1804
|
+
var FAILURE_EXIT_CODE = 1;
|
|
1805
|
+
var POLL_MS = 5e3;
|
|
1806
|
+
var FIRST_LINE2 = 0;
|
|
1807
|
+
var offer_read_schema = z.object({
|
|
1808
|
+
verdict: z.string(),
|
|
1809
|
+
issues: z.array(z.string()),
|
|
1810
|
+
retries: z.number(),
|
|
1811
|
+
answer: z.string().optional(),
|
|
1812
|
+
cause: z.string().optional(),
|
|
1813
|
+
waiting: z.array(z.number()).optional(),
|
|
1814
|
+
not_before_ms: z.number().optional(),
|
|
1815
|
+
idle_until_ms: z.number().optional(),
|
|
1816
|
+
is_judgment_owed: z.boolean().optional(),
|
|
1817
|
+
reason: z.string().optional(),
|
|
1818
|
+
is_finish: z.boolean().optional()
|
|
1819
|
+
});
|
|
1820
|
+
var offer_schema = z.object({ [backlog_offer_cli.JSON_KEY]: offer_read_schema });
|
|
1821
|
+
function to_offer(out) {
|
|
1822
|
+
return json_value.parse_with(out, offer_schema)?.[backlog_offer_cli.JSON_KEY];
|
|
1823
|
+
}
|
|
1824
|
+
async function read_offer(state, context) {
|
|
1825
|
+
const carry = await backlog_drive_owner.assert_current(context.owner);
|
|
1826
|
+
const { offer: named, pool } = await backlog_drive_named_offer.read(carry, state, context);
|
|
1827
|
+
const answered2 = named ?? await backlog_drive_rate_limit.held(state);
|
|
1828
|
+
if (answered2 !== void 0) return answered2;
|
|
1829
|
+
const argv = backlog_drive_offer_argv.offer_argv(pool, carry, context.forwarded);
|
|
1830
|
+
const result = await backlog_drive_rate.offer_run(argv);
|
|
1831
|
+
const offer3 = result.code === SUCCESS_EXIT_CODE4 ? to_offer(result.out) : void 0;
|
|
1832
|
+
return offer3 === void 0 ? void 0 : { ...offer3, is_retrospective_owed: backlog_drive_retrospective.is_owed(carry) };
|
|
1833
|
+
}
|
|
1834
|
+
function merge_token(out, code) {
|
|
1835
|
+
const token = out.split("\n", FIRST_LINE2 + 1)[FIRST_LINE2] ?? "";
|
|
1836
|
+
if (code === SUCCESS_EXIT_CODE4 || backlog_drive.HANDOFF_TOKENS.has(token)) return token;
|
|
1837
|
+
return "";
|
|
1838
|
+
}
|
|
1839
|
+
function finished_checker(seeded, is_running) {
|
|
1840
|
+
const states = /* @__PURE__ */ new Map();
|
|
1841
|
+
const config = {
|
|
1842
|
+
is_running,
|
|
1843
|
+
is_shipped: lane_await.is_shipped_default,
|
|
1844
|
+
reconfirm_ms: lane_await.RECONFIRM_MS,
|
|
1845
|
+
never_appeared_timeout_ms: lane_await.NEVER_APPEARED_TIMEOUT_MS
|
|
1846
|
+
};
|
|
1847
|
+
return (issue) => {
|
|
1848
|
+
const state = states.get(issue) ?? {
|
|
1849
|
+
appeared: seeded.has(issue),
|
|
1850
|
+
disappeared_at: void 0,
|
|
1851
|
+
first_polled_at: void 0
|
|
1852
|
+
};
|
|
1853
|
+
states.set(issue, state);
|
|
1854
|
+
try {
|
|
1855
|
+
return lane_await.check_issue(issue, state, Date.now(), config) !== void 0;
|
|
1856
|
+
} catch {
|
|
1857
|
+
return true;
|
|
1858
|
+
}
|
|
1859
|
+
};
|
|
1860
|
+
}
|
|
1861
|
+
async function open_lanes() {
|
|
1862
|
+
const lanes = await lane_registry.list_lanes();
|
|
1863
|
+
return lanes.filter((lane) => !lane.is_stranded);
|
|
1864
|
+
}
|
|
1865
|
+
function end_line(end) {
|
|
1866
|
+
const token = end.token === void 0 || end.token === end.reason ? [] : [end.token];
|
|
1867
|
+
const issue = end.issue === void 0 ? [] : [issue_cite.plain_for("program", end.issue)];
|
|
1868
|
+
const base = [end.reason, ...token, ...issue].join(" ");
|
|
1869
|
+
return end.detail === void 0 ? base : `${base} ${end.detail}`;
|
|
1870
|
+
}
|
|
1871
|
+
function judgement_reader() {
|
|
1872
|
+
const cache = /* @__PURE__ */ new Map();
|
|
1873
|
+
return async () => {
|
|
1874
|
+
const owed = await auto_ok_judge_read.owed(cache);
|
|
1875
|
+
return owed?.length ?? 0;
|
|
1876
|
+
};
|
|
1877
|
+
}
|
|
1878
|
+
function reporters(holds) {
|
|
1879
|
+
return {
|
|
1880
|
+
hold: holds.hold,
|
|
1881
|
+
idle: backlog_drive_idle.notify,
|
|
1882
|
+
paused: backlog_drive_paused.notify
|
|
1883
|
+
};
|
|
1884
|
+
}
|
|
1885
|
+
function room_ports() {
|
|
1886
|
+
return {
|
|
1887
|
+
free_lanes: backlog_ready.drive_free_lane_count,
|
|
1888
|
+
listing_changed: backlog_drive_listing.watcher(),
|
|
1889
|
+
limit_room: backlog_ready.drive_limit_room,
|
|
1890
|
+
has_lane: backlog_drive_seats.has_kept_lane,
|
|
1891
|
+
memory_held: backlog_drive_memory.gauge(),
|
|
1892
|
+
usage_limited: async () => await run_merge_usage_limit.is_held(Date.now())
|
|
1893
|
+
};
|
|
1894
|
+
}
|
|
1895
|
+
function child_ports(seeded, owner, is_running) {
|
|
1896
|
+
const known = new Set(seeded);
|
|
1897
|
+
return {
|
|
1898
|
+
is_finished: finished_checker(known, is_running),
|
|
1899
|
+
merge: async (issue) => await backlog_drive_collect.merge(issue, owner),
|
|
1900
|
+
adoptable: async (in_flight) => {
|
|
1901
|
+
const adopting = await backlog_drive_adopt.adoptable(in_flight);
|
|
1902
|
+
for (const issue of adopting) known.add(issue);
|
|
1903
|
+
return adopting;
|
|
1904
|
+
}
|
|
1905
|
+
};
|
|
1906
|
+
}
|
|
1907
|
+
async function offer_for(state, context) {
|
|
1908
|
+
const read2 = await read_offer(state, context);
|
|
1909
|
+
lane_launch_cli.keep_pending(read2?.verdict === "run" ? read2.issues : []);
|
|
1910
|
+
return read2;
|
|
1911
|
+
}
|
|
1912
|
+
function ports_of(context, seeded, last, holds) {
|
|
1913
|
+
const tick = backlog_drive_tick.tick_share();
|
|
1914
|
+
return {
|
|
1915
|
+
...child_ports(seeded, context.owner, tick.is_running),
|
|
1916
|
+
begin_tick: tick.begin_tick,
|
|
1917
|
+
offer: async (state) => await offer_for(state, context),
|
|
1918
|
+
launch: async (issue) => await backlog_drive_launch.launch(issue, context.owner),
|
|
1919
|
+
...room_ports(),
|
|
1920
|
+
judgement_owed: judgement_reader(),
|
|
1921
|
+
...reporters(holds),
|
|
1922
|
+
now: () => /* @__PURE__ */ new Date(),
|
|
1923
|
+
sleep,
|
|
1924
|
+
...backlog_drive_record.record_ports(tick.read),
|
|
1925
|
+
finish: backlog_drive_finish.finish,
|
|
1926
|
+
retrospective: async () => await backlog_drive_retrospective_unit.run(context.owner),
|
|
1927
|
+
on_state: (state) => {
|
|
1928
|
+
last.state = state;
|
|
1929
|
+
}
|
|
1930
|
+
};
|
|
1931
|
+
}
|
|
1932
|
+
async function seeded_lanes(context) {
|
|
1933
|
+
const carry = await backlog_drive_record.read_record();
|
|
1934
|
+
if (carry === void 0) return void 0;
|
|
1935
|
+
const events = await run_event_stream_emit.current_events();
|
|
1936
|
+
await backlog_drive_named.reconcile(carry, events, context.owner);
|
|
1937
|
+
const open = await open_lanes();
|
|
1938
|
+
const lanes = [.../* @__PURE__ */ new Set([...open.map((lane) => lane.issue), ...context.awaited])];
|
|
1939
|
+
const carried2 = await backlog_drive_carried.carried(open);
|
|
1940
|
+
const dispatched = backlog_drive_named.own_carried(carry, carried2, context.is_only);
|
|
1941
|
+
return {
|
|
1942
|
+
lanes: backlog_drive_restore.restore(lanes, events, carry.merged_issues ?? [], dispatched),
|
|
1943
|
+
left_out: backlog_drive_restore.left_out(events, context.exclude)
|
|
1944
|
+
};
|
|
1945
|
+
}
|
|
1946
|
+
function loop_config(window_ms) {
|
|
1947
|
+
return {
|
|
1948
|
+
poll_ms: POLL_MS,
|
|
1949
|
+
offer_ms: backlog_budget.OFFER_INTERVAL_MS,
|
|
1950
|
+
idle_offer_ms: backlog_budget.IDLE_OFFER_INTERVAL_MS,
|
|
1951
|
+
check_ms: backlog_budget.LISTING_CHECK_INTERVAL_MS,
|
|
1952
|
+
window_ms
|
|
1953
|
+
};
|
|
1954
|
+
}
|
|
1955
|
+
async function report_end(end, state, context, holds) {
|
|
1956
|
+
await holds.end(end);
|
|
1957
|
+
console.info(end_line(end));
|
|
1958
|
+
console.info(backlog_drive_args.resume_line(state, context));
|
|
1959
|
+
}
|
|
1960
|
+
function seeded_state(seeded, context) {
|
|
1961
|
+
const fresh = backlog_drive.initial_state(
|
|
1962
|
+
seeded.lanes,
|
|
1963
|
+
context.active ?? (/* @__PURE__ */ new Date()).toISOString()
|
|
1964
|
+
);
|
|
1965
|
+
const initial = context.stopped === void 0 ? fresh : backlog_drive.merge_stopped(context.stopped, fresh);
|
|
1966
|
+
initial.is_triage_owed = context.is_triage_owed;
|
|
1967
|
+
initial.triage_pid = context.triage_pid;
|
|
1968
|
+
initial.triage_start = context.triage_start;
|
|
1969
|
+
return { ...initial, ...seeded.left_out };
|
|
1970
|
+
}
|
|
1971
|
+
async function drive(context) {
|
|
1972
|
+
const seeded = await seeded_lanes(context);
|
|
1973
|
+
if (seeded === void 0) return FAILURE_EXIT_CODE;
|
|
1974
|
+
const last = { state: seeded_state(seeded, context) };
|
|
1975
|
+
const holds = backlog_drive_hold.recorder();
|
|
1976
|
+
const ports = ports_of(context, seeded.lanes, last, holds);
|
|
1977
|
+
const end = await backlog_drive.run_loop(last.state, loop_config(context.window_ms), ports);
|
|
1978
|
+
await report_end(end, last.state, context, holds);
|
|
1979
|
+
return SUCCESS_EXIT_CODE4;
|
|
1980
|
+
}
|
|
1981
|
+
async function run_safe(context) {
|
|
1982
|
+
const stop_sampling = lane_sampler.start();
|
|
1983
|
+
try {
|
|
1984
|
+
return await drive(context);
|
|
1985
|
+
} catch (error) {
|
|
1986
|
+
console.info(`error ${error_text.message_of(error)}`);
|
|
1987
|
+
return FAILURE_EXIT_CODE;
|
|
1988
|
+
} finally {
|
|
1989
|
+
lane_launch_cli.keep_pending([]);
|
|
1990
|
+
stop_sampling();
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
async function run2(argv) {
|
|
1994
|
+
const context = backlog_drive_args.parse(argv);
|
|
1995
|
+
if (context === void 0) {
|
|
1996
|
+
console.error(backlog_drive_args.USAGE);
|
|
1997
|
+
return FAILURE_EXIT_CODE;
|
|
1998
|
+
}
|
|
1999
|
+
return await run_safe(context);
|
|
2000
|
+
}
|
|
2001
|
+
async function main(argv) {
|
|
2002
|
+
hook_decision.load_environment_file();
|
|
2003
|
+
process.exitCode = await run2(argv);
|
|
2004
|
+
}
|
|
2005
|
+
var backlog_drive_cli = {
|
|
2006
|
+
child_ports,
|
|
2007
|
+
end_line,
|
|
2008
|
+
loop_config,
|
|
2009
|
+
merge: backlog_drive_collect.merge,
|
|
2010
|
+
merge_token,
|
|
2011
|
+
offer_argv: backlog_drive_offer_argv.offer_argv,
|
|
2012
|
+
parse: backlog_drive_args.parse,
|
|
2013
|
+
ports_of,
|
|
2014
|
+
read_offer,
|
|
2015
|
+
resume_line: backlog_drive_args.resume_line,
|
|
2016
|
+
run: run2,
|
|
2017
|
+
seeded_state,
|
|
2018
|
+
to_offer
|
|
2019
|
+
};
|
|
2020
|
+
if (process.argv[1] === fileURLToPath(__josh_source_url)) await main(process.argv.slice(ARGV_OFFSET));
|
|
2021
|
+
export {
|
|
2022
|
+
backlog_drive_cli
|
|
2023
|
+
};
|