@joshuafolkken/kit 1.2114.0 → 1.3000.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 +25 -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 +59 -16
- 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 +223 -0
- package/dist/commands/auto-ok-main.js +136 -0
- package/dist/commands/backlog-budget-main.js +146 -0
- package/dist/commands/backlog-drive-cli.js +1935 -0
- package/dist/commands/backlog-next-main.js +186 -0
- package/dist/commands/backlog-offer-main.js +190 -0
- package/dist/commands/backlog-plan-cli.js +329 -0
- package/dist/commands/backlog-triage-cli.js +642 -0
- package/dist/commands/backlogrun-cli.js +829 -0
- package/dist/commands/behavior-cli.js +216 -0
- package/dist/commands/bump-version-main.js +22 -0
- package/dist/commands/bytes-command.js +208 -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 +551 -0
- package/dist/commands/chunk-23GH6B3D.js +333 -0
- package/dist/commands/chunk-2ADQ5XRD.js +36 -0
- package/dist/commands/chunk-2CXAVVST.js +20 -0
- package/dist/commands/chunk-2DJLAUYB.js +109 -0
- package/dist/commands/chunk-2FE3C4PH.js +112 -0
- package/dist/commands/chunk-2FJJYCBD.js +149 -0
- package/dist/commands/chunk-2IESYBZH.js +34 -0
- package/dist/commands/chunk-2MJ4OCDL.js +188 -0
- package/dist/commands/chunk-2NSB5ZYQ.js +26 -0
- package/dist/commands/chunk-2OIX4JLA.js +37 -0
- package/dist/commands/chunk-2TQXCH2K.js +145 -0
- package/dist/commands/chunk-2VLHFILE.js +52 -0
- package/dist/commands/chunk-2VRITY55.js +41 -0
- package/dist/commands/chunk-2YCKPX3A.js +25 -0
- package/dist/commands/chunk-32SNWQJP.js +99 -0
- package/dist/commands/chunk-337QQM4C.js +136 -0
- package/dist/commands/chunk-34DND4BA.js +104 -0
- package/dist/commands/chunk-34LAULSC.js +352 -0
- package/dist/commands/chunk-36LOGVJ7.js +38 -0
- package/dist/commands/chunk-36M2UV6C.js +80 -0
- package/dist/commands/chunk-3BNNMJOT.js +702 -0
- package/dist/commands/chunk-3CCGKX7Y.js +20 -0
- package/dist/commands/chunk-3EO2XN3A.js +124 -0
- package/dist/commands/chunk-3GF52L5F.js +271 -0
- package/dist/commands/chunk-3HU3LPIF.js +113 -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-3UKJFWKS.js +170 -0
- package/dist/commands/chunk-3WRQP3QE.js +47 -0
- package/dist/commands/chunk-3WWQFCGX.js +18 -0
- package/dist/commands/chunk-3ZEO3KOM.js +35 -0
- package/dist/commands/chunk-4BEIYKI2.js +76 -0
- package/dist/commands/chunk-4D5KWMFL.js +461 -0
- package/dist/commands/chunk-4DVM57T7.js +86 -0
- package/dist/commands/chunk-4EADHJVC.js +247 -0
- package/dist/commands/chunk-4G7NKNAZ.js +114 -0
- package/dist/commands/chunk-4HBVHYNL.js +73 -0
- package/dist/commands/chunk-4LWRCPS5.js +114 -0
- package/dist/commands/chunk-4P2LCVGO.js +211 -0
- package/dist/commands/chunk-4PES3BAA.js +263 -0
- package/dist/commands/chunk-4PUKDAXL.js +42 -0
- package/dist/commands/chunk-4Q4FXBUQ.js +99 -0
- package/dist/commands/chunk-4QYW2IL7.js +82 -0
- package/dist/commands/chunk-4YI4SLRJ.js +161 -0
- package/dist/commands/chunk-4Z5723GA.js +350 -0
- package/dist/commands/chunk-4ZHWTTQW.js +99 -0
- package/dist/commands/chunk-55I7OYHI.js +98 -0
- package/dist/commands/chunk-5GBZ43UA.js +58 -0
- package/dist/commands/chunk-5HCPSV45.js +800 -0
- package/dist/{hooks/chunk-OPSRGWFU.js → commands/chunk-5HVYOIIK.js} +1 -1
- package/dist/commands/chunk-5HWZFL4D.js +4175 -0
- package/dist/commands/chunk-5PAEXYIY.js +234 -0
- package/dist/commands/chunk-5SB37YDW.js +321 -0
- package/dist/commands/chunk-5TMAPYQD.js +19 -0
- package/dist/commands/chunk-5WIZR5SC.js +313 -0
- package/dist/commands/chunk-5Y7QQYTU.js +232 -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-6CJXLPRI.js +72 -0
- package/dist/commands/chunk-6EU5ZCDP.js +402 -0
- package/dist/commands/chunk-6FWV56B3.js +40 -0
- package/dist/commands/chunk-6HRRZANN.js +55 -0
- package/dist/commands/chunk-6I2JM5UX.js +134 -0
- package/dist/commands/chunk-6JVNRY5A.js +29 -0
- package/dist/commands/chunk-6NGNMIMT.js +20 -0
- package/dist/commands/chunk-6NRTLH6I.js +51 -0
- package/dist/commands/chunk-6NV2F7QH.js +47 -0
- package/dist/commands/chunk-6OP63TBT.js +78 -0
- package/dist/commands/chunk-6Q3XUCLM.js +204 -0
- package/dist/commands/chunk-6SKMZGER.js +148 -0
- package/dist/commands/chunk-6TESOL3L.js +173 -0
- package/dist/commands/chunk-6UGFS3EU.js +704 -0
- package/dist/commands/chunk-6VTJO5L2.js +38 -0
- package/dist/commands/chunk-6WEVLIZE.js +29 -0
- package/dist/commands/chunk-6WKJ3GDA.js +408 -0
- package/dist/commands/chunk-6WTVAL4D.js +115 -0
- package/dist/commands/chunk-72EW7AVI.js +59 -0
- package/dist/commands/chunk-72J2G2E7.js +1189 -0
- package/dist/commands/chunk-73EBNBUW.js +90 -0
- package/dist/commands/chunk-73JOEKIC.js +169 -0
- package/dist/commands/chunk-73KBUQKI.js +41 -0
- package/dist/commands/chunk-7CHCZBNF.js +555 -0
- package/dist/commands/chunk-7EAMUVIO.js +326 -0
- package/dist/commands/chunk-7GHOFHUS.js +48 -0
- package/dist/commands/chunk-7GMTJDO2.js +469 -0
- package/dist/commands/chunk-7HCPRVMB.js +76 -0
- package/dist/commands/chunk-7IT23HIR.js +306 -0
- package/dist/commands/chunk-7IZJ5MG2.js +72 -0
- package/dist/commands/chunk-7LJQMM2K.js +102 -0
- package/dist/commands/chunk-7MOZEEFJ.js +350 -0
- package/dist/commands/chunk-7P4X4TQL.js +507 -0
- package/dist/commands/chunk-7S6VRZOH.js +223 -0
- package/dist/commands/chunk-7V5UVKFG.js +20 -0
- package/dist/commands/chunk-7W3D3WRW.js +171 -0
- package/dist/commands/chunk-7ZECP3J6.js +212 -0
- package/dist/commands/chunk-A3D2XHOJ.js +387 -0
- package/dist/commands/chunk-A4HOQKOG.js +85 -0
- package/dist/commands/chunk-A5V7EWIX.js +85 -0
- package/dist/commands/chunk-A6T2N7VC.js +159 -0
- package/dist/commands/chunk-AI5K4QJO.js +72 -0
- package/dist/commands/chunk-AJWR7D3H.js +15 -0
- package/dist/commands/chunk-AKK56GNX.js +205 -0
- package/dist/commands/chunk-AKQYYHP2.js +461 -0
- package/dist/commands/chunk-AM44D7NF.js +52 -0
- package/dist/commands/chunk-ANUTT56I.js +85 -0
- package/dist/commands/chunk-AQ3PMSXK.js +76 -0
- package/dist/commands/chunk-AS3GWVAN.js +45 -0
- package/dist/commands/chunk-ATRMETHT.js +23 -0
- package/dist/commands/chunk-AVUGMOHZ.js +210 -0
- package/dist/commands/chunk-AWLYN2SP.js +64 -0
- package/dist/commands/chunk-AZUE65NT.js +77 -0
- package/dist/commands/chunk-B2EA2HCY.js +119 -0
- package/dist/commands/chunk-B33BTNB4.js +87 -0
- package/dist/commands/chunk-B3XFOHDX.js +71 -0
- package/dist/commands/chunk-B5GXZK3E.js +34 -0
- package/dist/commands/chunk-B77ZMVHS.js +80 -0
- package/dist/commands/chunk-BCK5LW4F.js +45 -0
- package/dist/commands/chunk-BEE7OAQ5.js +210 -0
- package/dist/commands/chunk-BF6YX4HE.js +70 -0
- package/dist/commands/chunk-BFLFPKQQ.js +46 -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-BK6Q4VCA.js +128 -0
- package/dist/commands/chunk-BNXE3NVB.js +107 -0
- package/dist/commands/chunk-BPSJSHYD.js +209 -0
- package/dist/commands/chunk-BRFQBJ5Y.js +132 -0
- package/dist/commands/chunk-BY3POLIQ.js +104 -0
- package/dist/commands/chunk-BYSPYVLD.js +130 -0
- package/dist/commands/chunk-C26LKDBE.js +60 -0
- package/dist/commands/chunk-C2SEDMZ3.js +238 -0
- package/dist/commands/chunk-C6QSVO5K.js +56 -0
- package/dist/commands/chunk-CA6F5OXK.js +809 -0
- package/dist/commands/chunk-CADFBQJJ.js +75 -0
- package/dist/commands/chunk-CDY4NFQG.js +15 -0
- package/dist/commands/chunk-CGLLAEKZ.js +110 -0
- package/dist/commands/chunk-CHX4QTP4.js +133 -0
- package/dist/commands/chunk-CJAA5GAF.js +418 -0
- package/dist/commands/chunk-CJKPF5DJ.js +156 -0
- package/dist/commands/chunk-CJSFC5YI.js +158 -0
- package/dist/commands/chunk-CRNPPKP2.js +99 -0
- package/dist/commands/chunk-CUR2WNYB.js +42 -0
- package/dist/commands/chunk-CYQ3ZF7R.js +372 -0
- package/dist/commands/chunk-D3SHCUBC.js +64 -0
- package/dist/commands/chunk-D4HNS43Q.js +208 -0
- package/dist/commands/chunk-D4SZK7H2.js +34 -0
- package/dist/commands/chunk-D5HIP4HT.js +289 -0
- package/dist/commands/chunk-D5TAR6TV.js +71 -0
- package/dist/commands/chunk-DAJCUSPG.js +127 -0
- package/dist/commands/chunk-DBKTFB5V.js +18 -0
- package/dist/commands/chunk-DIB2Z2OS.js +307 -0
- package/dist/commands/chunk-DJVMC3U2.js +131 -0
- package/dist/commands/chunk-DKM4UJQU.js +10 -0
- package/dist/commands/chunk-DMD74E3F.js +39 -0
- package/dist/commands/chunk-DNJC7X73.js +84 -0
- package/dist/commands/chunk-DP7WIGQ4.js +298 -0
- package/dist/commands/chunk-DPJVKTO4.js +41 -0
- package/dist/commands/chunk-DRCTDVI2.js +83 -0
- package/dist/commands/chunk-DSBK66US.js +67 -0
- package/dist/commands/chunk-DXJQHJQ4.js +73 -0
- package/dist/commands/chunk-DXZW4V7J.js +114 -0
- package/dist/commands/chunk-E2ZCUKHT.js +274 -0
- package/dist/commands/chunk-E33LSO2W.js +20 -0
- package/dist/commands/chunk-E3CXOVPQ.js +258 -0
- package/dist/commands/chunk-EBI2BAKQ.js +47 -0
- package/dist/commands/chunk-EBNIX2TC.js +81 -0
- package/dist/commands/chunk-EBVS2LKX.js +60 -0
- package/dist/commands/chunk-EFHSCUFN.js +170 -0
- package/dist/commands/chunk-EH3LVYOX.js +72 -0
- package/dist/commands/chunk-EI6JG5DF.js +92 -0
- package/dist/commands/chunk-EK2Y6B4X.js +140 -0
- package/dist/commands/chunk-EK327QOS.js +260 -0
- package/dist/commands/chunk-EKCKCX5S.js +291 -0
- package/dist/commands/chunk-ELWNRE6E.js +93 -0
- package/dist/commands/chunk-ENFPR7J2.js +53 -0
- package/dist/commands/chunk-ENLWXAHD.js +80 -0
- package/dist/commands/chunk-ERGZPWKP.js +102 -0
- package/dist/commands/chunk-ESQEEL4O.js +58 -0
- package/dist/commands/chunk-EW4NPUMQ.js +363 -0
- package/dist/commands/chunk-EWA72KO7.js +241 -0
- package/dist/commands/chunk-EWVR5AEX.js +140 -0
- package/dist/commands/chunk-EZSO25UZ.js +80 -0
- package/dist/commands/chunk-F22G3VDB.js +183 -0
- package/dist/commands/chunk-F2HFWLQR.js +32 -0
- package/dist/commands/chunk-F2J6DGDM.js +302 -0
- package/dist/commands/chunk-F3WBEEYC.js +68 -0
- package/dist/commands/chunk-F6OWP2AY.js +750 -0
- package/dist/commands/chunk-F7XLEK55.js +62 -0
- package/dist/commands/chunk-FB3D7CX5.js +241 -0
- package/dist/commands/chunk-FC33R5UN.js +516 -0
- package/dist/commands/chunk-FCINBCKB.js +77 -0
- package/dist/commands/chunk-FFHEGWPK.js +91 -0
- package/dist/commands/chunk-FGL6DBZU.js +71 -0
- package/dist/commands/chunk-FGZQSSGH.js +210 -0
- package/dist/{hooks/chunk-VVNYJWEI.js → commands/chunk-FIUCHMCF.js} +4 -2
- package/dist/commands/chunk-FNOSSXLG.js +61 -0
- package/dist/commands/chunk-FNQW6NY7.js +154 -0
- package/dist/commands/chunk-FROACLVU.js +525 -0
- package/dist/commands/chunk-FVVZIJUC.js +425 -0
- package/dist/commands/chunk-G47ZNQVG.js +17 -0
- package/dist/commands/chunk-G6BXCWPH.js +141 -0
- package/dist/commands/chunk-GA4VIFHD.js +224 -0
- package/dist/commands/chunk-GA6E4VGO.js +328 -0
- package/dist/commands/chunk-GDUK5YPO.js +185 -0
- package/dist/commands/chunk-GIGKMIPQ.js +72 -0
- package/dist/commands/chunk-GJYMI2CM.js +48 -0
- package/dist/commands/chunk-GK2KY4MO.js +67 -0
- package/dist/commands/chunk-GM3XLC4W.js +63 -0
- package/dist/commands/chunk-GO3GH7FG.js +75 -0
- package/dist/commands/chunk-GPMSYXYO.js +378 -0
- package/dist/commands/chunk-GPTO6IZG.js +29 -0
- package/dist/commands/chunk-GQHUFNXN.js +54 -0
- package/dist/commands/chunk-GU5ML3Y3.js +263 -0
- package/dist/commands/chunk-GW4UWR3O.js +126 -0
- package/dist/commands/chunk-H4LYG37R.js +716 -0
- package/dist/commands/chunk-HBNB3TLG.js +122 -0
- package/dist/commands/chunk-HCA5QG2U.js +299 -0
- package/dist/commands/chunk-HE5S4XRE.js +21 -0
- package/dist/commands/chunk-HESMKHEB.js +105 -0
- package/dist/commands/chunk-HG2NZQD5.js +135 -0
- package/dist/commands/chunk-HH2KDLTP.js +161 -0
- package/dist/commands/chunk-HHBC6QZE.js +95 -0
- package/dist/commands/chunk-HIB5G2X6.js +426 -0
- package/dist/commands/chunk-HIPO6HUG.js +45 -0
- package/dist/commands/chunk-HIU2WXB6.js +26 -0
- package/dist/commands/chunk-HJKZDDDI.js +62 -0
- package/dist/commands/chunk-HLKAFSN4.js +76 -0
- package/dist/commands/chunk-HLUS2M3D.js +7 -0
- package/dist/commands/chunk-HO52D6JY.js +278 -0
- package/dist/commands/chunk-HOGFJHBT.js +412 -0
- package/dist/commands/chunk-HOSZITJM.js +156 -0
- package/dist/commands/chunk-HPVLI26Z.js +123 -0
- package/dist/commands/chunk-HQ2HSZBN.js +69 -0
- package/dist/commands/chunk-HRLGFRAV.js +21 -0
- package/dist/commands/chunk-HRT4KWP4.js +178 -0
- package/dist/commands/chunk-HTIDHEEN.js +108 -0
- package/dist/commands/chunk-HXCZ3KWS.js +41 -0
- package/dist/commands/chunk-HZBTXKT2.js +61 -0
- package/dist/commands/chunk-HZSQI6TD.js +18 -0
- package/dist/commands/chunk-I63RNFFR.js +213 -0
- package/dist/commands/chunk-IBEKFLWG.js +137 -0
- package/dist/commands/chunk-ICEMFE2V.js +139 -0
- package/dist/commands/chunk-IG22Y5MA.js +56 -0
- package/dist/commands/chunk-IGD6QJPH.js +91 -0
- package/dist/commands/chunk-ILGPZ47M.js +33 -0
- package/dist/commands/chunk-ILQZFUDC.js +65 -0
- package/dist/commands/chunk-ISPBJVXM.js +238 -0
- package/dist/commands/chunk-IW6NWCSN.js +10 -0
- package/dist/commands/chunk-IXX4SXIP.js +53 -0
- package/dist/commands/chunk-IZVM2TTH.js +84 -0
- package/dist/commands/chunk-J3G2R64I.js +88 -0
- package/dist/commands/chunk-J3TKZLHA.js +11 -0
- package/dist/commands/chunk-J6GIVMXI.js +59 -0
- package/dist/commands/chunk-JB7R3A4A.js +204 -0
- package/dist/commands/chunk-JGTLNFFE.js +803 -0
- package/dist/commands/chunk-JHN6RCE6.js +123 -0
- package/dist/commands/chunk-JJRKTWLK.js +64 -0
- package/dist/commands/chunk-JLREFWJ4.js +244 -0
- package/dist/commands/chunk-JLYW7CP6.js +43 -0
- package/dist/commands/chunk-JNWHX25C.js +36 -0
- package/dist/commands/chunk-JOARHU3M.js +137 -0
- package/dist/commands/chunk-JQXPLMCO.js +81 -0
- package/dist/commands/chunk-JTU5A4JI.js +55 -0
- package/dist/commands/chunk-JUJFIATR.js +121 -0
- package/dist/commands/chunk-JUUBDYFZ.js +61 -0
- package/dist/commands/chunk-JZOTCPX2.js +115 -0
- package/dist/commands/chunk-K2WVYHCP.js +18 -0
- package/dist/commands/chunk-K7GL3BGI.js +419 -0
- package/dist/commands/chunk-KB3OQWDT.js +71 -0
- package/dist/commands/chunk-KHWTJ4F7.js +132 -0
- package/dist/commands/chunk-KIILCKQR.js +220 -0
- package/dist/commands/chunk-KIVOZY2J.js +1864 -0
- package/dist/commands/chunk-KQWSENCT.js +94 -0
- package/dist/commands/chunk-KSR23NYN.js +33 -0
- package/dist/commands/chunk-KTLR4Y32.js +21 -0
- package/dist/commands/chunk-KUJQWO6M.js +119 -0
- package/dist/commands/chunk-KVHNQHX3.js +100 -0
- package/dist/commands/chunk-KVJDDECB.js +51 -0
- package/dist/commands/chunk-KVSSLDA3.js +1062 -0
- package/dist/commands/chunk-KVURNO74.js +187 -0
- package/dist/commands/chunk-KXHXMERX.js +214 -0
- package/dist/commands/chunk-KXRFGPZD.js +69 -0
- package/dist/commands/chunk-KZSM5M5P.js +89 -0
- package/dist/commands/chunk-L6LU2633.js +91 -0
- package/dist/commands/chunk-L6TU7FC2.js +103 -0
- package/dist/commands/chunk-L6XN3EXI.js +138 -0
- package/dist/commands/chunk-LA5WTOAM.js +319 -0
- package/dist/commands/chunk-LAKVPOJQ.js +59 -0
- package/dist/commands/chunk-LAYSCY4L.js +6 -0
- package/dist/commands/chunk-LBLII7BS.js +14 -0
- package/dist/commands/chunk-LC7SBONO.js +98 -0
- package/dist/commands/chunk-LCEJXF7A.js +101 -0
- package/dist/commands/chunk-LE2T3FGJ.js +302 -0
- package/dist/commands/chunk-LE7TFPMU.js +88 -0
- package/dist/commands/chunk-LHKXJD6L.js +303 -0
- package/dist/commands/chunk-LMS6N6GE.js +332 -0
- package/dist/commands/chunk-LMSS4ARB.js +32 -0
- package/dist/commands/chunk-LNBUIOK6.js +133 -0
- package/dist/commands/chunk-LOSOLCCW.js +119 -0
- package/dist/commands/chunk-LQXFVZTS.js +13 -0
- package/dist/commands/chunk-LRA3PXHS.js +472 -0
- package/dist/commands/chunk-LRS2OS5J.js +395 -0
- package/dist/commands/chunk-LULJUD6P.js +131 -0
- package/dist/commands/chunk-LUMCYDGE.js +141 -0
- package/dist/commands/chunk-LWAXXZPS.js +118 -0
- package/dist/commands/chunk-LYEKT3IN.js +77 -0
- package/dist/commands/chunk-LZNYHWRO.js +78 -0
- package/dist/commands/chunk-M3ZDYCUF.js +117 -0
- package/dist/commands/chunk-M42SLJCD.js +97 -0
- package/dist/commands/chunk-M4PEC7YW.js +349 -0
- package/dist/commands/chunk-MAGJFH5T.js +77 -0
- package/dist/commands/chunk-MDKDJF2K.js +160 -0
- package/dist/commands/chunk-MDLOETXL.js +211 -0
- package/dist/commands/chunk-MGF64OHV.js +32 -0
- package/dist/commands/chunk-MMTVQOCP.js +211 -0
- package/dist/commands/chunk-MMXZKLDU.js +115 -0
- package/dist/commands/chunk-MPGJ4ONJ.js +634 -0
- package/dist/commands/chunk-MS6Q3Z7V.js +870 -0
- package/dist/commands/chunk-MSPIR3OA.js +32 -0
- package/dist/commands/chunk-MVPUQLN5.js +183 -0
- package/dist/commands/chunk-MXC4IBZ7.js +104 -0
- package/dist/commands/chunk-MY3RSOS5.js +52 -0
- package/dist/commands/chunk-MYNM3YMR.js +347 -0
- package/dist/commands/chunk-MYWRGF5A.js +177 -0
- package/dist/commands/chunk-MZHOPRI6.js +529 -0
- package/dist/commands/chunk-N4O5I55P.js +655 -0
- package/dist/commands/chunk-N6TYL3B2.js +250 -0
- package/dist/commands/chunk-NFEBQED3.js +179 -0
- package/dist/commands/chunk-NFKULY26.js +48 -0
- package/dist/commands/chunk-NGKB632X.js +92 -0
- package/dist/commands/chunk-NJ53AWJU.js +122 -0
- package/dist/commands/chunk-NJT5L6IC.js +126 -0
- package/dist/commands/chunk-NKKH3PBE.js +87 -0
- package/dist/commands/chunk-NKOET4FB.js +44 -0
- package/dist/commands/chunk-NMLCPYBN.js +134 -0
- package/dist/commands/chunk-NOXLKIPR.js +114 -0
- package/dist/commands/chunk-NSAVEXVR.js +353 -0
- package/dist/commands/chunk-NSZTSCBW.js +1263 -0
- package/dist/commands/chunk-NYWGJLBU.js +19 -0
- package/dist/commands/chunk-O26Y2FOJ.js +134 -0
- package/dist/commands/chunk-O27H6NN6.js +163 -0
- package/dist/commands/chunk-O3NDWYNT.js +68 -0
- package/dist/commands/chunk-O4WBADCX.js +88 -0
- package/dist/commands/chunk-O5FVBIRI.js +271 -0
- package/dist/commands/chunk-O5QZ2S6X.js +98 -0
- package/dist/commands/chunk-OGNTJ5JB.js +47 -0
- package/dist/commands/chunk-OHNP3QL2.js +186 -0
- package/dist/commands/chunk-OHVAEJSM.js +184 -0
- package/dist/commands/chunk-OI7KM4K3.js +43 -0
- package/dist/commands/chunk-OIDMJASD.js +62 -0
- package/dist/commands/chunk-OJ4LGBVD.js +126 -0
- package/dist/commands/chunk-OKKQI4ZG.js +49 -0
- package/dist/commands/chunk-OKYFQJW3.js +22 -0
- package/dist/commands/chunk-ORSI7Y55.js +133 -0
- package/dist/commands/chunk-OT3UMEWK.js +47 -0
- package/dist/commands/chunk-OTZJXU2R.js +170 -0
- package/dist/commands/chunk-OVA7STGP.js +578 -0
- package/dist/commands/chunk-OWR2TCOY.js +269 -0
- package/dist/commands/chunk-OZZWRJQI.js +246 -0
- package/dist/commands/chunk-P4CWLRT2.js +213 -0
- package/dist/commands/chunk-P4D5RESF.js +88 -0
- package/dist/commands/chunk-P4KIQRSL.js +119 -0
- package/dist/commands/chunk-P4O67FP5.js +488 -0
- package/dist/commands/chunk-P6RGQXHI.js +391 -0
- package/dist/commands/chunk-P7FPXAHP.js +29 -0
- package/dist/commands/chunk-PBOS7MTW.js +6 -0
- package/dist/commands/chunk-PDAY76AN.js +47 -0
- package/dist/commands/chunk-PDDKRHHS.js +128 -0
- package/dist/commands/chunk-PE7B7242.js +84 -0
- package/dist/commands/chunk-PF22VUWB.js +723 -0
- package/dist/commands/chunk-PFO7EYAP.js +45 -0
- package/dist/commands/chunk-PR3JCPP7.js +126 -0
- package/dist/commands/chunk-PWYXY46Y.js +1150 -0
- package/dist/commands/chunk-PYOK73QE.js +44 -0
- package/dist/commands/chunk-PZ4ITSLG.js +80 -0
- package/dist/commands/chunk-PZ6VWHOO.js +144 -0
- package/dist/commands/chunk-PZTWQYRI.js +44 -0
- package/dist/commands/chunk-PZU6FZO6.js +17 -0
- package/dist/commands/chunk-Q3463XNL.js +198 -0
- package/dist/commands/chunk-Q5N2J2UF.js +78 -0
- package/dist/commands/chunk-Q5Q2QYVU.js +112 -0
- package/dist/commands/chunk-Q6SKKQVJ.js +34 -0
- package/dist/commands/chunk-Q7TV3OV6.js +218 -0
- package/dist/commands/chunk-QA22PBCJ.js +165 -0
- package/dist/commands/chunk-QAHFPCFR.js +50 -0
- package/dist/commands/chunk-QDFDB4CF.js +478 -0
- package/dist/commands/chunk-QEIO2ZNQ.js +324 -0
- package/dist/commands/chunk-QF4WC2AE.js +10 -0
- package/dist/commands/chunk-QGAERR7D.js +99 -0
- package/dist/commands/chunk-QHWJJ6X5.js +53 -0
- package/dist/commands/chunk-QQ4CIYMF.js +132 -0
- package/dist/commands/chunk-QQBMVC5W.js +227 -0
- package/dist/commands/chunk-QQZOQ7AM.js +32 -0
- package/dist/commands/chunk-QS5USD4T.js +540 -0
- package/dist/commands/chunk-QVOFWFWC.js +134 -0
- package/dist/commands/chunk-QWWTC3XR.js +109 -0
- package/dist/commands/chunk-QWX7EBC6.js +112 -0
- package/dist/commands/chunk-QX2R6UJG.js +15 -0
- package/dist/commands/chunk-QXQ56E56.js +27 -0
- package/dist/commands/chunk-R2CF6VZE.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-REMKUFAC.js +304 -0
- package/dist/commands/chunk-REPANBLS.js +168 -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-RHII5XI6.js +492 -0
- package/dist/commands/chunk-RI7EQYKL.js +60 -0
- package/dist/commands/chunk-RINVPTA2.js +1310 -0
- package/dist/commands/chunk-RIQ75QWR.js +233 -0
- package/dist/commands/chunk-RIUPRMLW.js +63 -0
- package/dist/commands/chunk-RK4HE5NW.js +172 -0
- package/dist/commands/chunk-ROJXMBXP.js +85 -0
- package/dist/commands/chunk-RPDWFUQO.js +239 -0
- package/dist/commands/chunk-RQRLW4XK.js +20 -0
- package/dist/commands/chunk-RRQFITJE.js +40 -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-RUWV4INF.js +245 -0
- package/dist/commands/chunk-RVHBWSIG.js +114 -0
- package/dist/commands/chunk-RVUJ6F5L.js +181 -0
- package/dist/commands/chunk-RX5JSPPH.js +1153 -0
- package/dist/commands/chunk-RXAZJMSZ.js +18 -0
- package/dist/commands/chunk-RY6ZDHKB.js +1218 -0
- package/dist/commands/chunk-RYZ3RQRH.js +16 -0
- package/dist/commands/chunk-RZ4OKKPM.js +1722 -0
- package/dist/commands/chunk-RZJAUVMI.js +69 -0
- package/dist/commands/chunk-S4X5PJV7.js +40 -0
- package/dist/commands/chunk-S6SXMBF2.js +66 -0
- package/dist/commands/chunk-S7XWXG4M.js +3893 -0
- package/dist/commands/chunk-SADJPNDB.js +67 -0
- package/dist/commands/chunk-SBGTCT2C.js +89 -0
- package/dist/commands/chunk-SFNBUB6D.js +110 -0
- package/dist/commands/chunk-SK2LJBFS.js +168 -0
- package/dist/commands/chunk-SNFLV7VV.js +45 -0
- package/dist/commands/chunk-SNO7CY2B.js +69 -0
- package/dist/commands/chunk-ST32OGPY.js +82 -0
- package/dist/commands/chunk-SV4FHQE7.js +995 -0
- package/dist/commands/chunk-SVAKCXZ7.js +44 -0
- package/dist/commands/chunk-SXULS6DX.js +112 -0
- package/dist/commands/chunk-T25S4QHL.js +52 -0
- package/dist/commands/chunk-T2E724HN.js +117 -0
- package/dist/commands/chunk-T2IO4LEB.js +285 -0
- package/dist/commands/chunk-T33QDAWD.js +16 -0
- package/dist/commands/chunk-T3FD3Q73.js +49 -0
- package/dist/commands/chunk-T4UYEHWG.js +50 -0
- package/dist/commands/chunk-T57W3UWK.js +88 -0
- package/dist/commands/chunk-TAPDXK34.js +48 -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-TIXJY22D.js +90 -0
- package/dist/commands/chunk-TKGBF75Y.js +88 -0
- package/dist/commands/chunk-TMLNI3YW.js +95 -0
- package/dist/commands/chunk-TPKFVVJQ.js +125 -0
- package/dist/commands/chunk-TS4ZK46L.js +116 -0
- package/dist/commands/chunk-TUIFS5E7.js +72 -0
- package/dist/commands/chunk-TVJE67O2.js +179 -0
- package/dist/commands/chunk-TVZXG4Y4.js +197 -0
- package/dist/commands/chunk-TXXYC7EV.js +74 -0
- package/dist/commands/chunk-U2UH4VM4.js +229 -0
- package/dist/commands/chunk-U3IVVR4W.js +33 -0
- package/dist/commands/chunk-U5HQQWRE.js +20 -0
- package/dist/commands/chunk-U7XU5RG3.js +86 -0
- package/dist/commands/chunk-UCI4AL3Q.js +35 -0
- package/dist/commands/chunk-UCQJDYE3.js +21 -0
- package/dist/commands/chunk-UCUSCLEK.js +90 -0
- package/dist/commands/chunk-UEURNXE5.js +280 -0
- package/dist/commands/chunk-UGCUSRZF.js +17 -0
- package/dist/commands/chunk-UIWAMLQH.js +49 -0
- package/dist/commands/chunk-UJOZ2MGX.js +705 -0
- package/dist/commands/chunk-ULVVGGTY.js +64 -0
- package/dist/commands/chunk-UOAG2XQT.js +37 -0
- package/dist/commands/chunk-US6X7JXC.js +120 -0
- package/dist/commands/chunk-UTBVTCQN.js +7401 -0
- package/dist/commands/chunk-UU6GCJGM.js +56 -0
- package/dist/commands/chunk-UWLLZQJB.js +110 -0
- package/dist/commands/chunk-UZAU6UI6.js +33 -0
- package/dist/commands/chunk-V4Z7G4UH.js +73 -0
- package/dist/commands/chunk-V5FD7DVV.js +48 -0
- package/dist/commands/chunk-V5OIPYA6.js +109 -0
- package/dist/commands/chunk-VCR77BHO.js +8 -0
- package/dist/commands/chunk-VD5674LW.js +127 -0
- package/dist/commands/chunk-VD72V5VX.js +230 -0
- package/dist/commands/chunk-VDGNXSP3.js +174 -0
- package/dist/commands/chunk-VFJYOAOQ.js +339 -0
- package/dist/commands/chunk-VGHSZLYQ.js +85 -0
- package/dist/commands/chunk-VHRNXWVP.js +28 -0
- package/dist/commands/chunk-VJE3RJAX.js +23 -0
- package/dist/commands/chunk-VJLZ3IQQ.js +151 -0
- package/dist/commands/chunk-VTLL6CKO.js +269 -0
- package/dist/commands/chunk-VW5SGE7A.js +18 -0
- package/dist/commands/chunk-VZCQZFPH.js +378 -0
- package/dist/commands/chunk-VZHC2I3T.js +1208 -0
- package/dist/commands/chunk-VZSJCFRT.js +44 -0
- package/dist/commands/chunk-W2IA2LV3.js +15 -0
- package/dist/commands/chunk-W32DIQEP.js +43 -0
- package/dist/commands/chunk-W3FX7FYN.js +84 -0
- package/dist/commands/chunk-W47I2KDY.js +47 -0
- package/dist/commands/chunk-W4J6YTFE.js +74 -0
- package/dist/commands/chunk-W4YH2DF3.js +58 -0
- package/dist/commands/chunk-W6MVQEMO.js +109 -0
- package/dist/commands/chunk-W6V4DWC5.js +70 -0
- package/dist/commands/chunk-WG6GYBRJ.js +271 -0
- package/dist/commands/chunk-WGULS5DA.js +129 -0
- package/dist/commands/chunk-WIE7VUBE.js +122 -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-WN7NK3NY.js +24 -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-WQJ7O3C3.js +229 -0
- package/dist/commands/chunk-WRX3MINT.js +60 -0
- package/dist/commands/chunk-WSOF74K4.js +30 -0
- package/dist/commands/chunk-WTRDWEUQ.js +533 -0
- package/dist/commands/chunk-WVR4RUFP.js +327 -0
- package/dist/commands/chunk-WW3TX742.js +122 -0
- package/dist/commands/chunk-WWC5L3AO.js +177 -0
- package/dist/commands/chunk-X5XYKDOD.js +7 -0
- package/dist/commands/chunk-X7PN54LZ.js +143 -0
- package/dist/commands/chunk-XBRD2BDL.js +74 -0
- package/dist/commands/chunk-XDF25GSU.js +536 -0
- package/dist/commands/chunk-XDQOWUVT.js +51 -0
- package/dist/commands/chunk-XFPEUYDV.js +67 -0
- package/dist/commands/chunk-XGMRAKSL.js +85 -0
- package/dist/commands/chunk-XH6BGVVP.js +1639 -0
- package/dist/commands/chunk-XMBRXCIE.js +89 -0
- package/dist/commands/chunk-XSKB6ZUA.js +123 -0
- package/dist/commands/chunk-XXNEY4B3.js +110 -0
- package/dist/commands/chunk-XYAK53TK.js +443 -0
- package/dist/commands/chunk-Y2RNUX4W.js +8 -0
- package/dist/commands/chunk-Y5ZW3KN5.js +58 -0
- package/dist/commands/chunk-YGDNUTTI.js +120 -0
- package/dist/commands/chunk-YIA6FC3K.js +78 -0
- package/dist/commands/chunk-YPNTORQD.js +121 -0
- package/dist/commands/chunk-YT342DRV.js +143 -0
- package/dist/commands/chunk-YVH2OLDS.js +104 -0
- package/dist/commands/chunk-Z4HYBFZD.js +1160 -0
- package/dist/commands/chunk-ZA3W73PF.js +192 -0
- package/dist/commands/chunk-ZAAHZY2A.js +19 -0
- package/dist/commands/chunk-ZAJD6T6E.js +38 -0
- package/dist/commands/chunk-ZBFNQUY7.js +12 -0
- package/dist/commands/chunk-ZDSDPKCD.js +88 -0
- package/dist/commands/chunk-ZECFKW7D.js +60 -0
- package/dist/commands/chunk-ZHZSZNE2.js +173 -0
- package/dist/commands/chunk-ZNX2LJCQ.js +29 -0
- package/dist/commands/chunk-ZQ3CKRMP.js +99 -0
- package/dist/commands/chunk-ZVAIIHBE.js +63 -0
- package/dist/commands/chunk-ZYGOZT4J.js +39 -0
- package/dist/commands/chunk-ZYIMQHCB.js +81 -0
- package/dist/commands/chunk-ZZAH3YQP.js +170 -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 +357 -0
- package/dist/commands/command-derive.js +802 -0
- package/dist/commands/cost-audit-main.js +207 -0
- package/dist/commands/cost-main.js +28 -0
- package/dist/commands/cspell-cached.js +158 -0
- package/dist/commands/defect-origin-main.js +221 -0
- package/dist/commands/defect-report-main.js +288 -0
- package/dist/commands/delegation-cli.js +65 -0
- package/dist/commands/diff-summary-cli.js +147 -0
- package/dist/commands/disposition-cli.js +408 -0
- package/dist/commands/doctor.js +267 -0
- package/dist/commands/document-read-cli.js +39 -844
- package/dist/commands/document-section-main.js +26 -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 +319 -0
- package/dist/commands/epic-audit-main.js +158 -0
- package/dist/commands/epic-bundle-main.js +199 -0
- package/dist/commands/epic-check.js +90 -0
- package/dist/commands/epic-main.js +222 -0
- package/dist/commands/epic-next-main.js +157 -0
- package/dist/commands/eval-run.js +838 -0
- package/dist/commands/fanout-cli.js +86 -0
- package/dist/commands/format-edited-cli.js +120 -0
- package/dist/commands/format.js +139 -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 +2012 -0
- package/dist/commands/git-gh-checks-failed-main.js +156 -0
- package/dist/commands/git-workflow.js +602 -0
- package/dist/commands/github-release-cli.js +253 -0
- package/dist/commands/hook-ledger-cli.js +416 -0
- package/dist/commands/init-main.js +98 -0
- package/dist/commands/inputs.json +2764 -0
- package/dist/commands/issue-ack-cli.js +106 -0
- package/dist/commands/issue-already-done-cli.js +305 -0
- package/dist/commands/issue-body-cli.js +184 -0
- package/dist/commands/issue-cite-main.js +162 -0
- package/dist/commands/issue-comment-main.js +72 -0
- package/dist/commands/issue-consolidate-cli.js +329 -0
- package/dist/commands/issue-file-main.js +419 -0
- package/dist/commands/issue-fold-existing-cli.js +506 -0
- package/dist/commands/issue-fold-main.js +113 -0
- package/dist/commands/issue-lint-main.js +126 -0
- package/dist/commands/issue-measured-cli.js +205 -0
- package/dist/commands/issue-plan-cli.js +352 -0
- package/dist/commands/issue-premise-unmet-cli.js +268 -0
- package/dist/commands/issue-priority-cli.js +184 -0
- package/dist/commands/issue-read-main.js +79 -0
- package/dist/commands/issue-release-class-cli.js +119 -0
- package/dist/commands/issue-release-main.js +71 -0
- package/dist/commands/issue-scout-main.js +203 -0
- package/dist/commands/issue-spill-main.js +564 -0
- package/dist/commands/issue-state-main.js +76 -0
- package/dist/commands/issue-tick-cli.js +112 -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 +703 -0
- package/dist/commands/lane-cli.js +863 -0
- package/dist/commands/lane-launch-main.js +103 -0
- package/dist/commands/lane-limit-cli.js +286 -0
- package/dist/commands/lane-measure-cli.js +1797 -0
- package/dist/commands/lane-pause-cli.js +255 -0
- package/dist/commands/lane-plan-cli.js +322 -0
- package/dist/commands/lane-resolve-cli.js +300 -0
- package/dist/commands/lane-restart-cli.js +387 -0
- package/dist/commands/lane-why-cli.js +307 -0
- package/dist/commands/lane-withdraw-cli.js +191 -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 +134 -0
- package/dist/commands/lint-related.js +565 -0
- package/dist/commands/lint-rule.js +305 -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 +859 -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 +115 -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 +496 -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 +367 -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 +163 -0
- package/dist/commands/pre-commit-type-check.js +210 -0
- package/dist/commands/pre-push-unit.js +271 -0
- package/dist/commands/pretool-guard-cli.js +205 -0
- package/dist/commands/prevent-main-commit.js +42 -0
- package/dist/commands/project-profile-cli.js +58 -0
- package/dist/commands/propagate.js +368 -0
- package/dist/commands/prose-stale-cli.js +128 -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 +121 -1745
- package/dist/commands/reconcile-templates.js +135 -0
- package/dist/commands/refactor-scan-cli.js +175 -0
- package/dist/commands/release-cli.js +724 -0
- package/dist/commands/release-scope-main.js +81 -0
- package/dist/commands/rename-cli.js +432 -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 +555 -0
- package/dist/commands/review-attest-cli.js +118 -0
- package/dist/commands/review-brief-main.js +247 -0
- package/dist/commands/review-findings-cli.js +114 -0
- package/dist/commands/review-pair-cli.js +366 -0
- package/dist/commands/review-record-main.js +222 -0
- package/dist/commands/review-round2-cli.js +349 -0
- package/dist/commands/review-stops-cli.js +149 -0
- package/dist/commands/review-submit-cli.js +610 -0
- package/dist/commands/rule-list.js +184 -0
- package/dist/commands/rule-value-cli.js +908 -0
- package/dist/commands/ruleset-check-cli.js +67 -0
- package/dist/commands/run-add-cli.js +273 -0
- package/dist/commands/run-board-main.js +272 -0
- package/dist/commands/run-carry-cli.js +641 -0
- package/dist/commands/run-chain-cli.js +537 -0
- package/dist/commands/run-cut-cli.js +709 -0
- package/dist/commands/run-ending-cli.js +169 -0
- package/dist/commands/run-entry-cli.js +1060 -0
- package/dist/commands/run-event-cli.js +298 -0
- package/dist/commands/run-handoff-cli.js +344 -0
- package/dist/commands/run-handoff-lanes-cli.js +233 -0
- package/dist/commands/run-hold-main.js +203 -0
- package/dist/commands/run-liveness-cli.js +190 -0
- package/dist/commands/run-merge-main.js +246 -0
- package/dist/commands/run-next-cli.js +240 -0
- package/dist/commands/run-park-cli.js +393 -0
- package/dist/commands/run-pause-cli.js +334 -0
- package/dist/commands/run-pickup-cli.js +196 -0
- package/dist/commands/run-prep-main.js +209 -21168
- package/dist/commands/run-prime-cli.js +281 -0
- package/dist/commands/run-progress-main.js +655 -0
- package/dist/commands/run-report-cli.js +376 -0
- package/dist/commands/run-review-cli.js +777 -0
- package/dist/commands/run-ship-cli.js +2615 -0
- package/dist/commands/run-ship-evidence-cli.js +288 -0
- package/dist/commands/run-ship-lap-W5T2VHFC.js +30 -0
- package/dist/commands/run-ship-wait-main.js +145 -0
- package/dist/commands/run-split-cli.js +525 -0
- package/dist/commands/run-stale-main.js +254 -0
- package/dist/commands/run-status-cli.js +216 -0
- package/dist/commands/run-step-cli.js +419 -27653
- package/dist/commands/run-tail-cli.js +119 -0
- package/dist/commands/run-tidy-main.js +402 -0
- package/dist/commands/run-wake-main.js +272 -0
- package/dist/commands/run-watcher-guard-cli.js +128 -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 +409 -0
- package/dist/commands/session-language-main.js +120 -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 +138 -0
- package/dist/commands/split-child-recover-cli.js +168 -0
- package/dist/commands/start.js +707 -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 +567 -0
- package/dist/commands/sync-main.js +57 -0
- package/dist/commands/telegram-test-main.js +64 -0
- package/dist/commands/test-declared.js +255 -0
- package/dist/commands/test-e2e-guard.js +200 -0
- package/dist/commands/test-pinned-main.js +189 -0
- package/dist/commands/test-reach-cli.js +111 -0
- package/dist/commands/test-red-main.js +46 -0
- package/dist/commands/test-related-ZT2AO62I.js +113 -0
- package/dist/commands/test-related-main.js +223 -0
- package/dist/commands/test-unit-guard-main.js +87 -0
- package/dist/commands/time-cli.js +356 -0
- package/dist/commands/time-density-cli.js +183 -0
- package/dist/commands/tree-status-cli.js +172 -0
- package/dist/commands/type-check-command.js +74 -0
- package/dist/commands/ui-routes-cli.js +135 -0
- package/dist/commands/ui-shot-cli.js +131 -0
- package/dist/commands/uninstall.js +424 -0
- package/dist/commands/unused-members-STULPRBU.js +331 -0
- package/dist/commands/unused-members-cli.js +54 -0
- package/dist/commands/upstream-interrupt-main.js +449 -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-UJ3FPMMM.js → chunk-4YXV2REH.js} +444 -141
- package/dist/hooks/chunk-6RR6JZSB.js +12367 -0
- package/dist/hooks/chunk-6YGMIODI.js +86 -0
- package/dist/hooks/chunk-CICKRHTB.js +7586 -0
- package/dist/hooks/chunk-CY3ADSDR.js +28580 -0
- package/dist/hooks/chunk-FOW4B7OQ.js +1795 -0
- package/dist/hooks/chunk-LKQBEKBI.js +232 -0
- package/dist/hooks/chunk-LRD2ERRI.js +299 -0
- package/dist/hooks/chunk-LWD43Z3C.js +6793 -0
- package/dist/hooks/chunk-NUPVO7RI.js +3054 -0
- package/dist/hooks/chunk-P7BPAU26.js +1082 -0
- package/dist/hooks/chunk-RQXECHAS.js +309 -0
- package/dist/hooks/chunk-SAAPRHTK.js +43 -0
- package/dist/hooks/chunk-U3ON2GBN.js +12 -0
- package/dist/hooks/{chunk-CQD4LJE6.js → chunk-UU4PTPEZ.js} +3143 -1257
- package/dist/hooks/chunk-YEURBB4L.js +32 -0
- package/dist/hooks/codex-hook-adapter.js +61 -25
- package/dist/hooks/daemon.js +67304 -0
- package/dist/hooks/format-edited.js +15 -5
- package/dist/hooks/inputs.json +555 -372
- 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 +226 -121
- package/dist/hooks/stop-guard.js +9188 -4508
- package/dist/inputs.json +169 -0
- package/dist/josh.js +9617 -6711
- package/dist/self-sync-guard/index.js +68 -14
- package/dist/version/index.js +642 -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 +16 -14
- package/pnpm-workspace.yaml +15 -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 +125 -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 +11 -4
- 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-profile-schema.ts +98 -0
- package/scripts/agent/agent-role-profile.ts +105 -82
- package/scripts/agent/agent-safe-text.ts +2 -2
- package/scripts/agent/agent-session-role.ts +25 -3
- package/scripts/agent/answer-judge.ts +174 -0
- package/scripts/agent/answer-verdict.ts +122 -0
- package/scripts/agent/claude-agent-argv.ts +12 -6
- 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 +4 -1
- 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 +7 -14
- package/scripts/auto-ok/auto-ok-judge-read.ts +3 -3
- package/scripts/auto-ok/auto-ok-judge-write.ts +18 -16
- 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-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 +194 -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 +2 -5
- 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-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.ts +344 -0
- package/scripts/hooks/implementation-shell-nested.ts +148 -0
- package/scripts/hooks/implementation-shell.ts +253 -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 +52 -14
- package/scripts/hooks/stop-actions.ts +10 -3
- 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 +23 -6
- package/scripts/issue/issue-body-cli.ts +75 -0
- package/scripts/issue/issue-body-keys.ts +223 -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-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 +6 -3
- 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 +147 -208
- 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 +242 -0
- package/scripts/issue/issue-file.ts +24 -5
- 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-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 +20 -5
- 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 +22 -7
- 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 +25 -8
- 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 +190 -18
- 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 +8 -5
- package/scripts/josh/josh-commands-review.ts +83 -5
- package/scripts/josh/josh-commands-run.ts +20 -31
- 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 +41 -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 +77 -9
- 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 +129 -15
- package/scripts/lane/lane-breakdown.ts +194 -30
- 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.ts +25 -20
- package/scripts/lane/lane-early-push-stats.ts +25 -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 +70 -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 +103 -18
- 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 +37 -10
- 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 +389 -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 +113 -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 +32 -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 +27 -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 +44 -3
- package/scripts/lane/lane-stats.ts +9 -2
- package/scripts/lane/lane-stop-stats.ts +3 -2
- 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 +102 -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 +19 -3
- package/scripts/lane/openai-lane-supervisor.ts +26 -4
- 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/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 +54 -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-home.ts +14 -7
- package/scripts/observations/observations-flush-landing.ts +1 -1
- 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 +125 -0
- package/scripts/plan/plan-scaffold.ts +112 -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.ts +10 -10
- package/scripts/release/publish-tag-cli.ts +13 -3
- package/scripts/release/release-cli.ts +2 -0
- package/scripts/release/release-progress.ts +44 -36
- 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/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-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/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 +9 -1
- 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 +9 -0
- 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/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/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 +62 -54
- package/scripts/rules/rule-value-prose.ts +186 -0
- package/scripts/rules/rule-value-runs.ts +171 -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 +54 -0
- package/scripts/rules/shell-segments.ts +3 -2
- package/scripts/rules/stop-decision.ts +7 -1
- package/scripts/rules/stop-rules.ts +1 -1
- package/scripts/rules/unasked-filing.ts +158 -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 +68 -10
- package/scripts/run/board/run-board-decision-graphql.ts +136 -0
- package/scripts/run/board/run-board-decision-read.ts +195 -0
- package/scripts/run/board/run-board-decision.ts +92 -0
- package/scripts/run/board/run-board-earlier.ts +27 -3
- package/scripts/run/board/run-board-ending-reason.ts +98 -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 +117 -29
- 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 +64 -74
- package/scripts/run/board/run-board-link.ts +42 -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 +8 -5
- package/scripts/run/board/run-board-plan-shared.ts +3 -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 +18 -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 +26 -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 +33 -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 +7 -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 +86 -99
- 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 +88 -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 +37 -12
- 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 +75 -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 +41 -7
- 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 +52 -1
- 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 +220 -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 +10 -5
- package/scripts/test/test-related-verdict.ts +127 -0
- package/scripts/test/test-related-whole.ts +22 -0
- package/scripts/test/test-related.ts +123 -146
- 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,1208 @@
|
|
|
1
|
+
import {
|
|
2
|
+
test_red
|
|
3
|
+
} from "./chunk-N6TYL3B2.js";
|
|
4
|
+
import {
|
|
5
|
+
related_heavy_tests
|
|
6
|
+
} from "./chunk-ENLWXAHD.js";
|
|
7
|
+
import {
|
|
8
|
+
direct_importers
|
|
9
|
+
} from "./chunk-NOXLKIPR.js";
|
|
10
|
+
import {
|
|
11
|
+
test_pinned_logic,
|
|
12
|
+
test_pinned_stage
|
|
13
|
+
} from "./chunk-E3CXOVPQ.js";
|
|
14
|
+
import {
|
|
15
|
+
test_pinned_cache_logic,
|
|
16
|
+
test_pinned_reach
|
|
17
|
+
} from "./chunk-GA6E4VGO.js";
|
|
18
|
+
import {
|
|
19
|
+
related_scope
|
|
20
|
+
} from "./chunk-7EAMUVIO.js";
|
|
21
|
+
import {
|
|
22
|
+
review_code_tree
|
|
23
|
+
} from "./chunk-EWA72KO7.js";
|
|
24
|
+
import {
|
|
25
|
+
test_unit_guard
|
|
26
|
+
} from "./chunk-P6RGQXHI.js";
|
|
27
|
+
import {
|
|
28
|
+
gate_log
|
|
29
|
+
} from "./chunk-FGL6DBZU.js";
|
|
30
|
+
import {
|
|
31
|
+
run_record_path
|
|
32
|
+
} from "./chunk-WL5JHB3I.js";
|
|
33
|
+
import {
|
|
34
|
+
import_graph
|
|
35
|
+
} from "./chunk-FROACLVU.js";
|
|
36
|
+
import {
|
|
37
|
+
input_fingerprint
|
|
38
|
+
} from "./chunk-MGF64OHV.js";
|
|
39
|
+
import {
|
|
40
|
+
base_tree
|
|
41
|
+
} from "./chunk-DXJQHJQ4.js";
|
|
42
|
+
import {
|
|
43
|
+
lane_ledger_pinned_origin
|
|
44
|
+
} from "./chunk-Y2RNUX4W.js";
|
|
45
|
+
import {
|
|
46
|
+
test_declared_logic
|
|
47
|
+
} from "./chunk-7HCPRVMB.js";
|
|
48
|
+
import {
|
|
49
|
+
unit_worker_share
|
|
50
|
+
} from "./chunk-MDLOETXL.js";
|
|
51
|
+
import {
|
|
52
|
+
lane_ledger_write
|
|
53
|
+
} from "./chunk-I63RNFFR.js";
|
|
54
|
+
import {
|
|
55
|
+
lane_paths
|
|
56
|
+
} from "./chunk-YIA6FC3K.js";
|
|
57
|
+
import {
|
|
58
|
+
stamp_file
|
|
59
|
+
} from "./chunk-QWWTC3XR.js";
|
|
60
|
+
import {
|
|
61
|
+
PROJECT_ROOT
|
|
62
|
+
} from "./chunk-3CCGKX7Y.js";
|
|
63
|
+
import {
|
|
64
|
+
atomic_write
|
|
65
|
+
} from "./chunk-KSR23NYN.js";
|
|
66
|
+
import {
|
|
67
|
+
changed_paths
|
|
68
|
+
} from "./chunk-V5FD7DVV.js";
|
|
69
|
+
import {
|
|
70
|
+
change_base
|
|
71
|
+
} from "./chunk-36LOGVJ7.js";
|
|
72
|
+
import {
|
|
73
|
+
git_spawn
|
|
74
|
+
} from "./chunk-CJKPF5DJ.js";
|
|
75
|
+
import {
|
|
76
|
+
git_spawn_sync
|
|
77
|
+
} from "./chunk-B77ZMVHS.js";
|
|
78
|
+
import {
|
|
79
|
+
json_value
|
|
80
|
+
} from "./chunk-HIU2WXB6.js";
|
|
81
|
+
|
|
82
|
+
// scripts/test/test-pinned-snapshot.ts
|
|
83
|
+
import { existsSync } from "node:fs";
|
|
84
|
+
import { rm } from "node:fs/promises";
|
|
85
|
+
import path from "node:path";
|
|
86
|
+
var PREFIX = "josh-pinned-snapshot-";
|
|
87
|
+
var CACHE_NAME = "josh-test-pinned-verdicts.json";
|
|
88
|
+
var IDENTITY = ["-c", "user.name=Snapshot", "-c", "user.email=snapshot@localhost"];
|
|
89
|
+
function read(args, options) {
|
|
90
|
+
const result = git_spawn_sync.run(args, options);
|
|
91
|
+
if (result.exit_code !== 0) throw new Error(`Snapshot git failed: ${result.stderr}`);
|
|
92
|
+
return result.stdout.trimEnd();
|
|
93
|
+
}
|
|
94
|
+
function identity(root, head, index) {
|
|
95
|
+
const tracked = read(["diff", "--name-only", "-z", head, "--"], { cwd: root });
|
|
96
|
+
const untracked = read(["ls-files", "--others", "--exclude-standard", "-z"], { cwd: root });
|
|
97
|
+
const paths = `${tracked}\0${untracked}`.split("\0").filter((file) => file !== "");
|
|
98
|
+
const contents = input_fingerprint.of_files(root, paths);
|
|
99
|
+
return input_fingerprint.of_entries([head, index, JSON.stringify(contents)]);
|
|
100
|
+
}
|
|
101
|
+
function current_hash(root) {
|
|
102
|
+
try {
|
|
103
|
+
return identity(
|
|
104
|
+
root,
|
|
105
|
+
read(["rev-parse", "HEAD"], { cwd: root }),
|
|
106
|
+
read(["ls-files", "--stage", "-z"], { cwd: root })
|
|
107
|
+
);
|
|
108
|
+
} catch {
|
|
109
|
+
return void 0;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
async function in_tree(tree, action) {
|
|
113
|
+
const original = process.cwd();
|
|
114
|
+
process.chdir(tree);
|
|
115
|
+
try {
|
|
116
|
+
return await action();
|
|
117
|
+
} finally {
|
|
118
|
+
process.chdir(original);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
async function copy_changes(tree, head) {
|
|
122
|
+
const paths = await changed_paths.read_changed_since(head);
|
|
123
|
+
const present = paths.filter((file) => existsSync(file));
|
|
124
|
+
const deleted = paths.filter((file) => !existsSync(file));
|
|
125
|
+
await base_tree.copy_in(tree, present);
|
|
126
|
+
await Promise.all(
|
|
127
|
+
deleted.map(async (file) => {
|
|
128
|
+
await rm(path.join(tree, file), { force: true });
|
|
129
|
+
})
|
|
130
|
+
);
|
|
131
|
+
if (present.length > 0) read(["add", "--force", "--", ...present], { cwd: tree });
|
|
132
|
+
}
|
|
133
|
+
function seal(root, head, index, cache_file) {
|
|
134
|
+
const tree_hash = identity(root, head, index);
|
|
135
|
+
read(["add", "--all"], { cwd: root });
|
|
136
|
+
const tree = read(["write-tree"], { cwd: root });
|
|
137
|
+
const commit = read([...IDENTITY, "commit-tree", tree, "-p", head, "-m", "Pinned snapshot"], {
|
|
138
|
+
cwd: root
|
|
139
|
+
});
|
|
140
|
+
read(["update-ref", "HEAD", commit], { cwd: root });
|
|
141
|
+
return { head, tree, tree_hash, cache_file };
|
|
142
|
+
}
|
|
143
|
+
async function with_snapshot(action) {
|
|
144
|
+
const root = process.cwd();
|
|
145
|
+
const head = read(["rev-parse", "HEAD"], { cwd: root });
|
|
146
|
+
const index = read(["ls-files", "--stage", "-z"], { cwd: root });
|
|
147
|
+
const cache_file = path.resolve(
|
|
148
|
+
root,
|
|
149
|
+
read(["rev-parse", "--git-path", CACHE_NAME], { cwd: root })
|
|
150
|
+
);
|
|
151
|
+
return await base_tree.with_tree(PREFIX, head, async (tree) => {
|
|
152
|
+
await copy_changes(tree.tree, head);
|
|
153
|
+
const snapshot = seal(tree.tree, head, index, cache_file);
|
|
154
|
+
return await in_tree(tree.tree, async () => await action(snapshot));
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
var test_pinned_snapshot = { current_hash, with_snapshot };
|
|
158
|
+
|
|
159
|
+
// scripts/test/test-pinned-record.ts
|
|
160
|
+
var RECORD_PREFIX = "josh-test-pinned-record-";
|
|
161
|
+
var TOKEN_KEY_LENGTH = 16;
|
|
162
|
+
var SITE_KEY_LENGTH = 16;
|
|
163
|
+
var NOT_RUN_NOTE = "`josh test:pinned` could not run, so nothing was checked: ";
|
|
164
|
+
var FIRST_UNPINNED_FLAG = "--first-unpinned";
|
|
165
|
+
var LIST_PREFIX = "josh-test-pinned-list-";
|
|
166
|
+
var LIST_SUFFIX = ".log";
|
|
167
|
+
var LIST_HEADER = "josh test:pinned \u2014 every unpinned and unchecked place";
|
|
168
|
+
var UNCHECKED_NOTE = "Unchecked places are not verified: map each listed place to its related regression test before ship; reuse the pending probe or cached verdicts, and fix unresolved places with the round-1 findings.\n";
|
|
169
|
+
function site_of(hunk) {
|
|
170
|
+
if (hunk.parts !== void 0) {
|
|
171
|
+
return stamp_file.digest(
|
|
172
|
+
JSON.stringify(hunk.parts.map((part) => site_of({ ...part, is_green: hunk.is_green })))
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
const body = JSON.stringify([hunk.new_count, hunk.old_lines, hunk.new_lines ?? []]);
|
|
176
|
+
const key = stamp_file.digest(body).slice(0, SITE_KEY_LENGTH);
|
|
177
|
+
const place = hunk.function_name === void 0 ? hunk.file : `${hunk.file} ${hunk.function_name}`;
|
|
178
|
+
return `${place} ${key}`;
|
|
179
|
+
}
|
|
180
|
+
function kept_log(report2, root) {
|
|
181
|
+
if (!test_pinned_logic.has_unchecked(report2)) return void 0;
|
|
182
|
+
const output = test_pinned_logic.format(report2);
|
|
183
|
+
const target = stamp_file.stamp_path(LIST_PREFIX, root, LIST_SUFFIX);
|
|
184
|
+
return { path: gate_log.write_gate_log([{ header: LIST_HEADER, output }], target) };
|
|
185
|
+
}
|
|
186
|
+
function summary_with(report2, log) {
|
|
187
|
+
const summary = {
|
|
188
|
+
...test_pinned_logic.report_parts(report2),
|
|
189
|
+
...test_pinned_logic.has_unchecked(report2) && { is_unchecked: true },
|
|
190
|
+
log,
|
|
191
|
+
unpinned: test_pinned_cache_logic.distinct(report2.unpinned.map((hunk) => site_of(hunk)))
|
|
192
|
+
};
|
|
193
|
+
return report2.cut === void 0 ? summary : { ...summary, is_cut: true, remaining: report2.cut.length };
|
|
194
|
+
}
|
|
195
|
+
function summary_of(report2, root = PROJECT_ROOT) {
|
|
196
|
+
return summary_with(report2, kept_log(report2, root));
|
|
197
|
+
}
|
|
198
|
+
function partial_summary(report2, note) {
|
|
199
|
+
const summary = summary_with(report2, void 0);
|
|
200
|
+
const places = test_pinned_logic.format(report2);
|
|
201
|
+
const next = summary.is_unchecked === true ? UNCHECKED_NOTE : "";
|
|
202
|
+
return { ...summary, text: `${note}
|
|
203
|
+
${places}
|
|
204
|
+
${next}`, is_partial: true };
|
|
205
|
+
}
|
|
206
|
+
function not_run_summary(error) {
|
|
207
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
208
|
+
return { text: `${NOT_RUN_NOTE}${message}
|
|
209
|
+
`, unpinned: [], is_unchecked: true };
|
|
210
|
+
}
|
|
211
|
+
function record_path(token, root = PROJECT_ROOT) {
|
|
212
|
+
const key = stamp_file.digest(token).slice(0, TOKEN_KEY_LENGTH);
|
|
213
|
+
return stamp_file.stamp_path(`${RECORD_PREFIX}${key}-`, root);
|
|
214
|
+
}
|
|
215
|
+
function write(token, summary, root = PROJECT_ROOT) {
|
|
216
|
+
stamp_file.write_stamp(record_path(token, root), { token, ...summary });
|
|
217
|
+
}
|
|
218
|
+
function is_text_list(value) {
|
|
219
|
+
return Array.isArray(value) && value.every((item) => typeof item === "string");
|
|
220
|
+
}
|
|
221
|
+
function log_of(value) {
|
|
222
|
+
if (typeof value !== "object" || value === null) return void 0;
|
|
223
|
+
const kept = value;
|
|
224
|
+
return { path: typeof kept["path"] === "string" ? kept["path"] : void 0 };
|
|
225
|
+
}
|
|
226
|
+
function tail_of(record3) {
|
|
227
|
+
const { counts, log } = record3;
|
|
228
|
+
return typeof counts === "string" ? { counts, log: log_of(log) } : {};
|
|
229
|
+
}
|
|
230
|
+
function remaining_of(record3) {
|
|
231
|
+
const { remaining } = record3;
|
|
232
|
+
return typeof remaining === "number" ? { remaining } : {};
|
|
233
|
+
}
|
|
234
|
+
function snapshot_of(record3) {
|
|
235
|
+
return typeof record3["tree_hash"] === "string" ? { tree_hash: record3["tree_hash"] } : {};
|
|
236
|
+
}
|
|
237
|
+
function to_summary(record3) {
|
|
238
|
+
const { text, unpinned, is_cut } = record3;
|
|
239
|
+
if (typeof text !== "string" || !is_text_list(unpinned)) return void 0;
|
|
240
|
+
const unchecked = record3["is_unchecked"] === true ? { is_unchecked: true } : {};
|
|
241
|
+
const summary = { text, unpinned, ...tail_of(record3), ...unchecked, ...snapshot_of(record3) };
|
|
242
|
+
return is_cut === true ? { ...summary, is_cut, ...remaining_of(record3) } : summary;
|
|
243
|
+
}
|
|
244
|
+
function parsed(raw) {
|
|
245
|
+
try {
|
|
246
|
+
const value = JSON.parse(raw);
|
|
247
|
+
return typeof value === "object" && value !== null ? value : void 0;
|
|
248
|
+
} catch {
|
|
249
|
+
return void 0;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
function read_summary(token, root) {
|
|
253
|
+
const raw = stamp_file.read_stamp_text(record_path(token, root));
|
|
254
|
+
const record3 = raw === void 0 ? void 0 : parsed(raw);
|
|
255
|
+
if (record3?.["token"] !== token) return void 0;
|
|
256
|
+
return to_summary(record3);
|
|
257
|
+
}
|
|
258
|
+
function fresh_summary(summary, root) {
|
|
259
|
+
if (summary.tree_hash === void 0) return summary;
|
|
260
|
+
return { ...summary, is_stale: test_pinned_snapshot.current_hash(root) !== summary.tree_hash };
|
|
261
|
+
}
|
|
262
|
+
function read2(token, root = PROJECT_ROOT) {
|
|
263
|
+
const summary = read_summary(token, root);
|
|
264
|
+
return summary === void 0 ? void 0 : fresh_summary(summary, root);
|
|
265
|
+
}
|
|
266
|
+
function clear(token, root = PROJECT_ROOT) {
|
|
267
|
+
stamp_file.remove_stamp(record_path(token, root));
|
|
268
|
+
}
|
|
269
|
+
function launch_argv(token, reason, origin, is_whole = false) {
|
|
270
|
+
const cut = reason === void 0 && !is_whole ? [FIRST_UNPINNED_FLAG] : [];
|
|
271
|
+
return ["test:pinned", ...cut, "--origin", origin, "--record", token];
|
|
272
|
+
}
|
|
273
|
+
var test_pinned_record = {
|
|
274
|
+
UNCHECKED_NOTE,
|
|
275
|
+
clear,
|
|
276
|
+
launch_argv,
|
|
277
|
+
is_text_list,
|
|
278
|
+
not_run_summary,
|
|
279
|
+
parsed,
|
|
280
|
+
partial_summary,
|
|
281
|
+
read: read2,
|
|
282
|
+
record_path,
|
|
283
|
+
summary_of,
|
|
284
|
+
write
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
// scripts/test/test-pinned-ledger.ts
|
|
288
|
+
function time_of(hunk, verdict, elapsed_ms) {
|
|
289
|
+
const time = { file: hunk.file, tests: verdict.ran, elapsed_ms };
|
|
290
|
+
return verdict.pinned_by === void 0 ? time : { ...time, pinned_by: verdict.pinned_by };
|
|
291
|
+
}
|
|
292
|
+
var MANUAL_ORIGIN = "manual";
|
|
293
|
+
var BACKGROUND_ORIGIN = "run-review";
|
|
294
|
+
function origin_of(raw) {
|
|
295
|
+
if (raw === void 0) return MANUAL_ORIGIN;
|
|
296
|
+
const parsed2 = lane_ledger_pinned_origin.pinned_origin_schema.safeParse(raw);
|
|
297
|
+
return parsed2.success ? parsed2.data : void 0;
|
|
298
|
+
}
|
|
299
|
+
async function record(skipped, probes, elapsed_ms) {
|
|
300
|
+
await lane_ledger_write.record_test_pinned({
|
|
301
|
+
issue: lane_paths.issue_here(PROJECT_ROOT),
|
|
302
|
+
held: skipped.held,
|
|
303
|
+
rewired: skipped.rewired,
|
|
304
|
+
over_cap: skipped.over_cap ?? 0,
|
|
305
|
+
probes: [...probes],
|
|
306
|
+
elapsed_ms,
|
|
307
|
+
origin: skipped.origin ?? MANUAL_ORIGIN
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
async function record_discarded(elapsed_ms, origin = BACKGROUND_ORIGIN) {
|
|
311
|
+
await lane_ledger_write.record_test_pinned({
|
|
312
|
+
issue: lane_paths.issue_here(PROJECT_ROOT),
|
|
313
|
+
held: 0,
|
|
314
|
+
probes: [],
|
|
315
|
+
elapsed_ms,
|
|
316
|
+
origin,
|
|
317
|
+
discarded: true
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
var test_pinned_ledger = { BACKGROUND_ORIGIN, origin_of, record, record_discarded, time_of };
|
|
321
|
+
|
|
322
|
+
// scripts/test/test-pinned.ts
|
|
323
|
+
import { existsSync as existsSync3 } from "node:fs";
|
|
324
|
+
import { readFile as readFile4 } from "node:fs/promises";
|
|
325
|
+
|
|
326
|
+
// scripts/test/test-pinned-cache.ts
|
|
327
|
+
import { existsSync as existsSync2 } from "node:fs";
|
|
328
|
+
import { readFile } from "node:fs/promises";
|
|
329
|
+
import path2 from "node:path";
|
|
330
|
+
|
|
331
|
+
// scripts/test/test-pinned-prune-logic.ts
|
|
332
|
+
function is_line_hunk(hunk) {
|
|
333
|
+
return hunk.function_name === void 0 && hunk.parts === void 0;
|
|
334
|
+
}
|
|
335
|
+
function greens_reached(hunks, verdicts) {
|
|
336
|
+
return hunks.filter((hunk, index) => verdicts[index] === "green" && is_line_hunk(hunk));
|
|
337
|
+
}
|
|
338
|
+
function record_of(hunk) {
|
|
339
|
+
return { file: hunk.file, old_lines: hunk.old_lines, new_lines: hunk.new_lines ?? [] };
|
|
340
|
+
}
|
|
341
|
+
function is_subsequence(part, whole) {
|
|
342
|
+
const remaining = [...whole];
|
|
343
|
+
return part.every((line) => remaining.splice(0, remaining.indexOf(line) + 1).at(-1) === line);
|
|
344
|
+
}
|
|
345
|
+
function is_same_lines(left, right) {
|
|
346
|
+
return JSON.stringify(left) === JSON.stringify(right);
|
|
347
|
+
}
|
|
348
|
+
function is_remnant(hunk, green) {
|
|
349
|
+
if (!is_line_hunk(hunk) || hunk.file !== green.file) return false;
|
|
350
|
+
return is_same_lines(hunk.old_lines, green.old_lines) && is_subsequence(hunk.new_lines ?? [], green.new_lines);
|
|
351
|
+
}
|
|
352
|
+
function reverted(content, hunks) {
|
|
353
|
+
const order = hunks.toSorted((left, right) => right.new_start - left.new_start);
|
|
354
|
+
let text = content;
|
|
355
|
+
for (const hunk of order) {
|
|
356
|
+
text = test_pinned_logic.revert(text, hunk);
|
|
357
|
+
}
|
|
358
|
+
return text;
|
|
359
|
+
}
|
|
360
|
+
function remnants_of(hunks, greens) {
|
|
361
|
+
return hunks.filter((hunk) => greens.some((green) => is_remnant(hunk, green)));
|
|
362
|
+
}
|
|
363
|
+
function pruned_digests(contents, reverts, greens) {
|
|
364
|
+
const files = [...new Set(greens.map((green) => green.file))];
|
|
365
|
+
const pairs = files.flatMap((file) => {
|
|
366
|
+
const content = contents.get(file);
|
|
367
|
+
if (content === void 0) return [];
|
|
368
|
+
const own = reverts.filter((hunk) => hunk.file === file);
|
|
369
|
+
return [[file, test_pinned_cache_logic.digest_of(reverted(content, own))]];
|
|
370
|
+
});
|
|
371
|
+
return new Map(pairs);
|
|
372
|
+
}
|
|
373
|
+
function pruned_of(code, contents, reverts, greens) {
|
|
374
|
+
const pruned = pruned_digests(contents, reverts, greens);
|
|
375
|
+
const digests = new Map([...code.digests, ...pruned]);
|
|
376
|
+
const paths = [.../* @__PURE__ */ new Set([...code.code, ...pruned.keys()])];
|
|
377
|
+
return test_pinned_cache_logic.change_of(code.commit, paths, digests);
|
|
378
|
+
}
|
|
379
|
+
var test_pinned_prune_logic = { greens_reached, record_of, is_remnant, remnants_of, pruned_of };
|
|
380
|
+
|
|
381
|
+
// scripts/test/test-pinned-cache.ts
|
|
382
|
+
var CACHE_NAME2 = "josh-test-pinned-verdicts.json";
|
|
383
|
+
var LINE_BREAK = "\n";
|
|
384
|
+
var AS_COMMIT = "^{commit}";
|
|
385
|
+
async function read_text(file) {
|
|
386
|
+
return existsSync2(file) ? await readFile(file, "utf8") : "";
|
|
387
|
+
}
|
|
388
|
+
async function contents_of(files) {
|
|
389
|
+
const existing = [...new Set(files)].filter((file) => existsSync2(file));
|
|
390
|
+
const texts = await Promise.all(existing.map(async (file) => await readFile(file, "utf8")));
|
|
391
|
+
return new Map(existing.map((file, index) => [file, texts[index] ?? ""]));
|
|
392
|
+
}
|
|
393
|
+
async function test_files() {
|
|
394
|
+
const listed = await test_pinned_reach.work_tree_files();
|
|
395
|
+
return listed.filter((file) => test_declared_logic.is_test_file(file));
|
|
396
|
+
}
|
|
397
|
+
async function digests_of(files) {
|
|
398
|
+
const contents = await contents_of(files);
|
|
399
|
+
return new Map(
|
|
400
|
+
[...contents].map(([file, text]) => [file, test_pinned_cache_logic.digest_of(text)])
|
|
401
|
+
);
|
|
402
|
+
}
|
|
403
|
+
async function test_digests_of() {
|
|
404
|
+
return await digests_of(await test_files());
|
|
405
|
+
}
|
|
406
|
+
function contents_digest(digests) {
|
|
407
|
+
return test_pinned_cache_logic.test_set_of(
|
|
408
|
+
[...digests].map(([file, digest]) => `${file} ${digest}`)
|
|
409
|
+
);
|
|
410
|
+
}
|
|
411
|
+
async function code_change(base) {
|
|
412
|
+
const [commit, paths] = await Promise.all([
|
|
413
|
+
git_spawn.read(["rev-parse", "--verify", `${base}${AS_COMMIT}`]),
|
|
414
|
+
changed_paths.read_changed_since(base)
|
|
415
|
+
]);
|
|
416
|
+
const code = paths.filter(
|
|
417
|
+
(file) => !test_declared_logic.is_test_file(file) && !run_record_path.is_run_record(file)
|
|
418
|
+
);
|
|
419
|
+
return { commit: commit.trim(), code, digests: await digests_of(code) };
|
|
420
|
+
}
|
|
421
|
+
async function read_tree(base) {
|
|
422
|
+
const [test_digests, code] = await Promise.all([test_digests_of(), code_change(base)]);
|
|
423
|
+
const test_contents = contents_digest(test_digests);
|
|
424
|
+
const change = test_pinned_cache_logic.change_of(code.commit, code.code, code.digests);
|
|
425
|
+
return { test_digests, code, test_contents, change };
|
|
426
|
+
}
|
|
427
|
+
async function read_all(file, base, hunks) {
|
|
428
|
+
const text = await read_text(file);
|
|
429
|
+
const greens = test_pinned_cache_logic.greens_of(text);
|
|
430
|
+
const files = [...hunks, ...greens].map((hunk) => hunk.file);
|
|
431
|
+
return [text, ...await Promise.all([read_tree(base), contents_of(files)])];
|
|
432
|
+
}
|
|
433
|
+
async function load(base, hunks, cache_file) {
|
|
434
|
+
const file = cache_file ?? path2.resolve(await git_spawn.read(["rev-parse", "--git-path", CACHE_NAME2]));
|
|
435
|
+
const [text, tree, contents] = await read_all(file, base, hunks);
|
|
436
|
+
const { test_digests, code, test_contents, change } = tree;
|
|
437
|
+
const greens = test_pinned_cache_logic.greens_of(text);
|
|
438
|
+
const remnants = test_pinned_prune_logic.remnants_of(hunks, greens);
|
|
439
|
+
const pruned = test_pinned_prune_logic.pruned_of(code, contents, remnants, greens);
|
|
440
|
+
const freshness = test_pinned_cache_logic.freshness_of(text, { change, pruned, test_contents });
|
|
441
|
+
const reach = test_pinned_reach.create({ ...code, test_digests });
|
|
442
|
+
const entries = test_pinned_cache_logic.entries_of(text);
|
|
443
|
+
return { file, base, ...tree, entries, freshness, reach, hunks, contents };
|
|
444
|
+
}
|
|
445
|
+
async function basis_of(cache, probe, file) {
|
|
446
|
+
if (probe.verdict !== "red") {
|
|
447
|
+
const tests = await cache.reach.related(file);
|
|
448
|
+
return tests && test_pinned_cache_logic.related_basis(tests, cache.test_digests);
|
|
449
|
+
}
|
|
450
|
+
const digest = await cache.reach.failed(probe.failed);
|
|
451
|
+
return digest === void 0 ? void 0 : { digest };
|
|
452
|
+
}
|
|
453
|
+
async function known_by_basis(cache, entry, file) {
|
|
454
|
+
const { freshness, test_digests } = cache;
|
|
455
|
+
const stored = { verdict: entry.verdict, failed: Object.keys(entry.tests) };
|
|
456
|
+
const basis = await basis_of(cache, stored, file);
|
|
457
|
+
const held = test_pinned_cache_logic.fresh_verdict(entry, freshness, test_digests, basis?.digest);
|
|
458
|
+
return held ?? test_pinned_cache_logic.recheck_of(entry, freshness, basis, test_digests);
|
|
459
|
+
}
|
|
460
|
+
async function known_one(cache, key, file) {
|
|
461
|
+
const { freshness, test_digests } = cache;
|
|
462
|
+
const entry = cache.entries[key];
|
|
463
|
+
const kept = test_pinned_cache_logic.fresh_verdict(entry, freshness, test_digests);
|
|
464
|
+
if (kept !== void 0 || entry === void 0) return kept;
|
|
465
|
+
if (entry.basis === void 0) {
|
|
466
|
+
return test_pinned_cache_logic.recheck_of(entry, freshness, void 0, test_digests);
|
|
467
|
+
}
|
|
468
|
+
return await known_by_basis(cache, entry, file);
|
|
469
|
+
}
|
|
470
|
+
async function known(cache, keys2, files) {
|
|
471
|
+
return await Promise.all(
|
|
472
|
+
keys2.map(async (key, index) => await known_one(cache, key, files[index] ?? ""))
|
|
473
|
+
);
|
|
474
|
+
}
|
|
475
|
+
async function stored_basis(cache, key, probe, file) {
|
|
476
|
+
const entry = cache.entries[key];
|
|
477
|
+
const kept = test_pinned_cache_logic.fresh_verdict(entry, cache.freshness, cache.test_digests);
|
|
478
|
+
if (kept?.verdict === probe.verdict && entry?.basis !== void 0) {
|
|
479
|
+
return { digest: entry.basis, related: entry.related };
|
|
480
|
+
}
|
|
481
|
+
const failed = Object.keys(test_pinned_cache_logic.tests_of(probe.failed, cache.test_digests));
|
|
482
|
+
return await basis_of(cache, { ...probe, failed }, file);
|
|
483
|
+
}
|
|
484
|
+
async function is_steady(cache) {
|
|
485
|
+
const now = await read_tree(cache.base);
|
|
486
|
+
return now.change === cache.change && now.test_contents === cache.test_contents;
|
|
487
|
+
}
|
|
488
|
+
function write2(cache, entries, probes) {
|
|
489
|
+
const { code, contents, hunks } = cache;
|
|
490
|
+
const reached = test_pinned_prune_logic.greens_reached(
|
|
491
|
+
hunks,
|
|
492
|
+
probes.map((probe) => probe?.verdict)
|
|
493
|
+
);
|
|
494
|
+
const green = reached.map((hunk) => test_pinned_prune_logic.record_of(hunk));
|
|
495
|
+
const pruned = test_pinned_prune_logic.pruned_of(code, contents, reached, green);
|
|
496
|
+
const content = {
|
|
497
|
+
test_contents: cache.test_contents,
|
|
498
|
+
change: cache.change,
|
|
499
|
+
entries,
|
|
500
|
+
pruned,
|
|
501
|
+
green
|
|
502
|
+
};
|
|
503
|
+
atomic_write.replace_file(cache.file, `${JSON.stringify(content)}${LINE_BREAK}`);
|
|
504
|
+
}
|
|
505
|
+
async function settle(state, reached) {
|
|
506
|
+
const { cache, keys: keys2, files, probes, bases } = state;
|
|
507
|
+
const read3 = await Promise.all(
|
|
508
|
+
reached.map(
|
|
509
|
+
async ([index, probe]) => await stored_basis(cache, keys2[index] ?? "", probe, files[index] ?? "")
|
|
510
|
+
)
|
|
511
|
+
);
|
|
512
|
+
const is_kept = await is_steady(cache);
|
|
513
|
+
for (const [position, [index, probe]] of reached.entries()) {
|
|
514
|
+
probes[index] = probe;
|
|
515
|
+
bases[index] = is_kept ? read3[position] : void 0;
|
|
516
|
+
}
|
|
517
|
+
write2(cache, test_pinned_cache_logic.stored(keys2, probes, cache.test_digests, bases), probes);
|
|
518
|
+
}
|
|
519
|
+
function writer(cache, keys2) {
|
|
520
|
+
const files = cache.hunks.map((hunk) => hunk.file);
|
|
521
|
+
const state = { cache, keys: keys2, files, probes: [], bases: [] };
|
|
522
|
+
const queue = { last: Promise.resolve() };
|
|
523
|
+
async function record3(reached) {
|
|
524
|
+
const previous = queue.last;
|
|
525
|
+
const current = (async () => {
|
|
526
|
+
await previous;
|
|
527
|
+
await settle(state, reached);
|
|
528
|
+
})();
|
|
529
|
+
queue.last = current;
|
|
530
|
+
await current;
|
|
531
|
+
}
|
|
532
|
+
return { record: record3 };
|
|
533
|
+
}
|
|
534
|
+
var test_pinned_cache = { known, load, writer };
|
|
535
|
+
|
|
536
|
+
// scripts/test/test-pinned-carry.ts
|
|
537
|
+
import { readFile as readFile2 } from "node:fs/promises";
|
|
538
|
+
import path3 from "node:path";
|
|
539
|
+
import { z } from "zod";
|
|
540
|
+
var CARRY_NAME = "josh-test-pinned-carry.json";
|
|
541
|
+
var SCHEMA = z.object({ tree: z.string(), pending: z.array(z.string()) });
|
|
542
|
+
function tree_of(cache) {
|
|
543
|
+
return test_pinned_cache_logic.digest_of(`${cache.change}:${cache.test_contents}`);
|
|
544
|
+
}
|
|
545
|
+
function file_of(cache) {
|
|
546
|
+
return path3.join(path3.dirname(cache.file), CARRY_NAME);
|
|
547
|
+
}
|
|
548
|
+
async function pending_of(cache) {
|
|
549
|
+
try {
|
|
550
|
+
const text = await readFile2(file_of(cache), "utf8");
|
|
551
|
+
const stored = json_value.parse_with(text, SCHEMA);
|
|
552
|
+
return stored?.tree === tree_of(cache) ? stored.pending : [];
|
|
553
|
+
} catch {
|
|
554
|
+
return [];
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
function keys_of(cache) {
|
|
558
|
+
return test_pinned_cache_logic.distinct(
|
|
559
|
+
cache.hunks.map(
|
|
560
|
+
(hunk) => test_pinned_cache_logic.hunk_key(hunk, cache.contents.get(hunk.file) ?? "")
|
|
561
|
+
)
|
|
562
|
+
);
|
|
563
|
+
}
|
|
564
|
+
function is_held(known2) {
|
|
565
|
+
return known2 !== void 0 && !test_pinned_cache_logic.is_recheck(known2);
|
|
566
|
+
}
|
|
567
|
+
function keyed_of(cache) {
|
|
568
|
+
const identifiers = keys_of(cache);
|
|
569
|
+
return new Map(cache.hunks.map((hunk, index) => [hunk, identifiers[index] ?? ""]));
|
|
570
|
+
}
|
|
571
|
+
function keys(cache, hunks) {
|
|
572
|
+
const keyed = keyed_of(cache);
|
|
573
|
+
return hunks.map((hunk) => keyed.get(hunk) ?? "");
|
|
574
|
+
}
|
|
575
|
+
function ordered_of(cache, pending) {
|
|
576
|
+
const keyed = keyed_of(cache);
|
|
577
|
+
return cache.hunks.toSorted(
|
|
578
|
+
(left, right) => Number(pending.has(keyed.get(right) ?? "")) - Number(pending.has(keyed.get(left) ?? ""))
|
|
579
|
+
);
|
|
580
|
+
}
|
|
581
|
+
async function select(cache, max_hunks) {
|
|
582
|
+
const identifiers = keys_of(cache);
|
|
583
|
+
const pending = new Set(await pending_of(cache));
|
|
584
|
+
const known2 = await test_pinned_cache.known(
|
|
585
|
+
cache,
|
|
586
|
+
identifiers,
|
|
587
|
+
cache.hunks.map((hunk) => hunk.file)
|
|
588
|
+
);
|
|
589
|
+
const held = cache.hunks.filter((_hunk, index) => is_held(known2[index]));
|
|
590
|
+
const held_set = new Set(held);
|
|
591
|
+
const ordered = ordered_of(cache, pending).filter((hunk) => !held_set.has(hunk));
|
|
592
|
+
const split = test_pinned_logic.split(ordered, max_hunks);
|
|
593
|
+
return { checked: [...held, ...split.checked], unchecked: split.unchecked };
|
|
594
|
+
}
|
|
595
|
+
function record2(cache, hunks) {
|
|
596
|
+
const pending = keys(cache, hunks);
|
|
597
|
+
atomic_write.replace_file(file_of(cache), JSON.stringify({ tree: tree_of(cache), pending }));
|
|
598
|
+
}
|
|
599
|
+
var test_pinned_carry = { select, record: record2, keys };
|
|
600
|
+
|
|
601
|
+
// scripts/test/test-pinned-functions.ts
|
|
602
|
+
var STUB_BODY = "{ throw new Error('josh test:pinned') }";
|
|
603
|
+
var SCRIPT_FILE = /\.[cm]?[jt]sx?$/u;
|
|
604
|
+
var LINE_BREAK2 = "\n";
|
|
605
|
+
var DEFAULT_NAME = "default";
|
|
606
|
+
function is_script(file) {
|
|
607
|
+
return SCRIPT_FILE.test(file);
|
|
608
|
+
}
|
|
609
|
+
function is_function_value(api, node) {
|
|
610
|
+
if (node === void 0) return false;
|
|
611
|
+
return api.isArrowFunction(node) || api.isFunctionExpression(node);
|
|
612
|
+
}
|
|
613
|
+
function member_site(api, owner, member) {
|
|
614
|
+
if (api.isMethodDeclaration(member) && member.body !== void 0) {
|
|
615
|
+
return [{ name: `${owner}.${member.name.getText()}`, extent: member, body: member.body }];
|
|
616
|
+
}
|
|
617
|
+
if (!api.isPropertyAssignment(member) || !is_function_value(api, member.initializer)) return [];
|
|
618
|
+
return [
|
|
619
|
+
{ name: `${owner}.${member.name.getText()}`, extent: member, body: member.initializer.body }
|
|
620
|
+
];
|
|
621
|
+
}
|
|
622
|
+
function declaration_sites(api, declaration) {
|
|
623
|
+
const { initializer } = declaration;
|
|
624
|
+
const name = declaration.name.getText();
|
|
625
|
+
if (is_function_value(api, initializer)) {
|
|
626
|
+
return [{ name, extent: declaration, body: initializer.body }];
|
|
627
|
+
}
|
|
628
|
+
if (initializer === void 0 || !api.isObjectLiteralExpression(initializer)) return [];
|
|
629
|
+
return initializer.properties.flatMap((member) => member_site(api, name, member));
|
|
630
|
+
}
|
|
631
|
+
function function_site(statement) {
|
|
632
|
+
if (statement.body === void 0) return [];
|
|
633
|
+
return [{ name: statement.name?.text ?? DEFAULT_NAME, extent: statement, body: statement.body }];
|
|
634
|
+
}
|
|
635
|
+
function statement_sites(api, statement) {
|
|
636
|
+
if (api.isFunctionDeclaration(statement)) return function_site(statement);
|
|
637
|
+
if (!api.isVariableStatement(statement)) return [];
|
|
638
|
+
return statement.declarationList.declarations.flatMap(
|
|
639
|
+
(declaration) => declaration_sites(api, declaration)
|
|
640
|
+
);
|
|
641
|
+
}
|
|
642
|
+
function stub_hunk(file, source, site) {
|
|
643
|
+
const start = site.extent.getStart(source);
|
|
644
|
+
const first = source.getLineAndCharacterOfPosition(start).line;
|
|
645
|
+
const last = source.getLineAndCharacterOfPosition(site.extent.getEnd()).line;
|
|
646
|
+
const offset = start - source.getLineAndCharacterOfPosition(start).character;
|
|
647
|
+
const lines = source.text.slice(offset, source.getLineEndOfPosition(site.extent.getEnd()));
|
|
648
|
+
const before = lines.slice(0, site.body.getStart(source) - offset);
|
|
649
|
+
const stubbed = `${before}${STUB_BODY}${lines.slice(site.body.getEnd() - offset)}`;
|
|
650
|
+
return {
|
|
651
|
+
file,
|
|
652
|
+
new_start: first + 1,
|
|
653
|
+
new_count: last - first + 1,
|
|
654
|
+
old_lines: stubbed.split(LINE_BREAK2),
|
|
655
|
+
new_lines: lines.split(LINE_BREAK2),
|
|
656
|
+
function_name: site.name
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
function stub_hunks(api, file, content) {
|
|
660
|
+
const source = api.createSourceFile(file, content, api.ScriptTarget.Latest, true);
|
|
661
|
+
return source.statements.flatMap((statement) => statement_sites(api, statement)).map((site) => stub_hunk(file, source, site));
|
|
662
|
+
}
|
|
663
|
+
var test_pinned_functions = { STUB_BODY, is_script, stub_hunks };
|
|
664
|
+
|
|
665
|
+
// scripts/test/test-pinned-rewire.ts
|
|
666
|
+
function is_called(api, parent, node) {
|
|
667
|
+
if (!api.isCallExpression(parent) && !api.isNewExpression(parent)) return false;
|
|
668
|
+
return parent.expression === node || parent.arguments?.includes(node) === true;
|
|
669
|
+
}
|
|
670
|
+
function is_use(api, node) {
|
|
671
|
+
const { parent } = node;
|
|
672
|
+
if (api.isPropertyAccessExpression(parent)) return parent.expression === node;
|
|
673
|
+
return is_called(api, parent, node);
|
|
674
|
+
}
|
|
675
|
+
function is_import(api, parent) {
|
|
676
|
+
return api.isImportSpecifier(parent) || api.isImportClause(parent) || api.isNamespaceImport(parent);
|
|
677
|
+
}
|
|
678
|
+
function add_name(api, node, names) {
|
|
679
|
+
const { parent } = node;
|
|
680
|
+
if (is_use(api, node)) names.used.add(node.text);
|
|
681
|
+
if (!("name" in parent) || parent.name !== node) return;
|
|
682
|
+
names.bound.add(node.text);
|
|
683
|
+
if (is_import(api, parent)) names.imported.add(node.text);
|
|
684
|
+
}
|
|
685
|
+
function names_in(api, node, names) {
|
|
686
|
+
if (api.isIdentifier(node)) add_name(api, node, names);
|
|
687
|
+
api.forEachChild(node, (child) => {
|
|
688
|
+
names_in(api, child, names);
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
function names_of(api, file, content) {
|
|
692
|
+
const names = { bound: /* @__PURE__ */ new Set(), used: /* @__PURE__ */ new Set(), imported: /* @__PURE__ */ new Set() };
|
|
693
|
+
names_in(api, api.createSourceFile(file, content, api.ScriptTarget.ESNext, true), names);
|
|
694
|
+
return names;
|
|
695
|
+
}
|
|
696
|
+
function unbound_of(names) {
|
|
697
|
+
return [...names.used].filter(
|
|
698
|
+
(name) => !names.bound.has(name) && !Object.hasOwn(globalThis, name)
|
|
699
|
+
);
|
|
700
|
+
}
|
|
701
|
+
function tokens_of(api, text) {
|
|
702
|
+
const target = api.ScriptTarget.ESNext;
|
|
703
|
+
const scanner = api.createScanner(target, true, api.LanguageVariant.Standard, text);
|
|
704
|
+
const end = api.SyntaxKind.EndOfFileToken;
|
|
705
|
+
const tokens = [];
|
|
706
|
+
for (let kind = scanner.scan(); kind !== end; kind = scanner.scan()) {
|
|
707
|
+
tokens.push({ kind, text: scanner.getTokenText() });
|
|
708
|
+
}
|
|
709
|
+
return tokens;
|
|
710
|
+
}
|
|
711
|
+
function is_same_token(token, other, swap) {
|
|
712
|
+
if (other?.kind !== token.kind) return false;
|
|
713
|
+
return token.text === other.text || swap.from.has(token.text) && swap.to.has(other.text);
|
|
714
|
+
}
|
|
715
|
+
function is_renamed_only(olds, news, swap) {
|
|
716
|
+
if (olds.length !== news.length) return false;
|
|
717
|
+
return olds.every((token, index) => is_same_token(token, news[index], swap));
|
|
718
|
+
}
|
|
719
|
+
function is_import_only(api, file, text) {
|
|
720
|
+
const source = api.createSourceFile(file, text, api.ScriptTarget.ESNext, true);
|
|
721
|
+
return source.statements.every((statement) => api.isImportDeclaration(statement));
|
|
722
|
+
}
|
|
723
|
+
function new_text_of(content, hunk) {
|
|
724
|
+
const start = hunk.new_start - 1;
|
|
725
|
+
return content.split("\n").slice(start, start + hunk.new_count).join("\n");
|
|
726
|
+
}
|
|
727
|
+
function is_name_swap(api, hunk, new_text, swap) {
|
|
728
|
+
const old_text = hunk.old_lines.join("\n");
|
|
729
|
+
const is_imports = is_import_only(api, hunk.file, old_text);
|
|
730
|
+
if (is_imports && is_import_only(api, hunk.file, new_text)) return true;
|
|
731
|
+
return is_renamed_only(tokens_of(api, old_text), tokens_of(api, new_text), swap);
|
|
732
|
+
}
|
|
733
|
+
function is_rewire(api, content, hunk) {
|
|
734
|
+
if (!test_pinned_functions.is_script(hunk.file)) return false;
|
|
735
|
+
const after = names_of(api, hunk.file, content);
|
|
736
|
+
const before = names_of(api, hunk.file, test_pinned_logic.revert(content, hunk));
|
|
737
|
+
const unbound_now = new Set(unbound_of(after));
|
|
738
|
+
const unbound = unbound_of(before).filter((name) => !unbound_now.has(name));
|
|
739
|
+
if (unbound.length === 0) return false;
|
|
740
|
+
const swap = { from: new Set(unbound), to: after.imported };
|
|
741
|
+
return is_name_swap(api, hunk, new_text_of(content, hunk), swap);
|
|
742
|
+
}
|
|
743
|
+
var test_pinned_rewire = { is_rewire };
|
|
744
|
+
|
|
745
|
+
// scripts/test/test-pinned-emit.ts
|
|
746
|
+
function emitted(api, file, content) {
|
|
747
|
+
const compiler_options = { removeComments: true, target: api.ScriptTarget.ESNext };
|
|
748
|
+
return api.transpileModule(content, { compilerOptions: compiler_options, fileName: file }).outputText;
|
|
749
|
+
}
|
|
750
|
+
function changes_runtime(api, content, hunk) {
|
|
751
|
+
if (!test_pinned_functions.is_script(hunk.file)) return true;
|
|
752
|
+
const reverted2 = test_pinned_logic.revert(content, hunk);
|
|
753
|
+
return emitted(api, hunk.file, reverted2) !== emitted(api, hunk.file, content);
|
|
754
|
+
}
|
|
755
|
+
function probed_of(api, hunks, contents) {
|
|
756
|
+
const runtime = hunks.map((hunk, index) => ({ hunk, content: contents[index] ?? "" })).filter((read3) => changes_runtime(api, read3.content, read3.hunk));
|
|
757
|
+
const probed = runtime.filter(
|
|
758
|
+
(read3) => read3.hunk.parts !== void 0 || !test_pinned_rewire.is_rewire(api, read3.content, read3.hunk)
|
|
759
|
+
);
|
|
760
|
+
return { hunks: probed.map((read3) => read3.hunk), rewired: runtime.length - probed.length };
|
|
761
|
+
}
|
|
762
|
+
var test_pinned_emit = { changes_runtime, probed_of };
|
|
763
|
+
|
|
764
|
+
// scripts/test/test-pinned-moves.ts
|
|
765
|
+
function is_deletion(hunk) {
|
|
766
|
+
return hunk.new_count === 0 && hunk.old_lines.length > 0;
|
|
767
|
+
}
|
|
768
|
+
function moves_between(deletion, insertion) {
|
|
769
|
+
if (deletion.file !== insertion.file || !is_deletion(deletion)) return false;
|
|
770
|
+
return insertion.old_lines.length === 0 && JSON.stringify(deletion.old_lines) === JSON.stringify(insertion.new_lines);
|
|
771
|
+
}
|
|
772
|
+
function is_move(first, second) {
|
|
773
|
+
return moves_between(first, second) || moves_between(second, first);
|
|
774
|
+
}
|
|
775
|
+
function take_pair(hunk, remaining) {
|
|
776
|
+
const index = remaining.findIndex((candidate) => is_move(hunk, candidate));
|
|
777
|
+
if (index === -1) return hunk;
|
|
778
|
+
const partner = remaining.splice(index, 1).at(0);
|
|
779
|
+
return partner === void 0 ? hunk : { ...hunk, parts: [hunk, partner] };
|
|
780
|
+
}
|
|
781
|
+
function group(hunks) {
|
|
782
|
+
const result = [];
|
|
783
|
+
const remaining = [...hunks];
|
|
784
|
+
while (remaining.length > 0) {
|
|
785
|
+
const hunk = remaining.shift();
|
|
786
|
+
if (hunk !== void 0) result.push(take_pair(hunk, remaining));
|
|
787
|
+
}
|
|
788
|
+
return result;
|
|
789
|
+
}
|
|
790
|
+
var test_pinned_moves = { group };
|
|
791
|
+
|
|
792
|
+
// scripts/test/test-pinned-probe.ts
|
|
793
|
+
import { readFile as readFile3, writeFile as writeFile2 } from "node:fs/promises";
|
|
794
|
+
import path5 from "node:path";
|
|
795
|
+
|
|
796
|
+
// scripts/test/test-pinned-pool.ts
|
|
797
|
+
var MAX_TREES = 4;
|
|
798
|
+
var UNREAD_BUDGET = 1;
|
|
799
|
+
function lane_plan(count, budget = UNREAD_BUDGET) {
|
|
800
|
+
const lanes = Math.max(1, Math.min(count, budget, MAX_TREES));
|
|
801
|
+
return { lanes, workers: Math.max(1, Math.floor(budget / lanes)) };
|
|
802
|
+
}
|
|
803
|
+
function deal(items, lanes) {
|
|
804
|
+
const groups = Array.from({ length: lanes }, () => []);
|
|
805
|
+
for (const [index, item] of items.entries()) groups[index % lanes]?.push(item);
|
|
806
|
+
return groups.filter((group2) => group2.length > 0);
|
|
807
|
+
}
|
|
808
|
+
function settled(outcomes) {
|
|
809
|
+
const failed = outcomes.find((outcome) => outcome.status === "rejected");
|
|
810
|
+
if (failed !== void 0) throw failed.reason;
|
|
811
|
+
return outcomes.flatMap((outcome) => outcome.status === "fulfilled" ? [outcome.value] : []);
|
|
812
|
+
}
|
|
813
|
+
async function run_lanes(items, lanes, run_lane) {
|
|
814
|
+
return settled(
|
|
815
|
+
await Promise.allSettled(deal(items, lanes).map(async (group2) => await run_lane(group2)))
|
|
816
|
+
);
|
|
817
|
+
}
|
|
818
|
+
function at(index, lanes) {
|
|
819
|
+
const position = Math.floor(index / lanes);
|
|
820
|
+
return [position, position + 1];
|
|
821
|
+
}
|
|
822
|
+
async function run_pool(items, lanes, run_lane) {
|
|
823
|
+
const results = await run_lanes(items, lanes, run_lane);
|
|
824
|
+
return items.flatMap((_item, index) => results[index % lanes]?.slice(...at(index, lanes)) ?? []);
|
|
825
|
+
}
|
|
826
|
+
var test_pinned_pool = { MAX_TREES, deal, lane_plan, run_pool };
|
|
827
|
+
|
|
828
|
+
// scripts/test/test-pinned-type-check.ts
|
|
829
|
+
import { writeFile } from "node:fs/promises";
|
|
830
|
+
import path4 from "node:path";
|
|
831
|
+
import { execa } from "execa";
|
|
832
|
+
var CONFIG_NAME = "tsconfig.josh-pinned.json";
|
|
833
|
+
var BASE_CONFIG = "./tsconfig.json";
|
|
834
|
+
var BUILD_INFO = "josh-pinned.tsbuildinfo";
|
|
835
|
+
var TSC_BIN = path4.join("node_modules", ".bin", "tsc");
|
|
836
|
+
var TYPED_FILE = /\.[cm]?tsx?$/u;
|
|
837
|
+
var TYPE_ERROR = /error TS\d+/u;
|
|
838
|
+
var LINT_OPTIONS_OFF = {
|
|
839
|
+
noUnusedLocals: false,
|
|
840
|
+
noUnusedParameters: false,
|
|
841
|
+
allowUnreachableCode: true
|
|
842
|
+
};
|
|
843
|
+
function is_typed(file) {
|
|
844
|
+
return TYPED_FILE.test(file);
|
|
845
|
+
}
|
|
846
|
+
async function scope_of(file) {
|
|
847
|
+
if (!is_typed(file)) return [];
|
|
848
|
+
const graph = await import_graph.create(process.cwd());
|
|
849
|
+
if (graph === void 0) return [];
|
|
850
|
+
const target = path4.resolve(file);
|
|
851
|
+
const universe = await test_pinned_reach.code_universe();
|
|
852
|
+
const readers = universe.filter(
|
|
853
|
+
(reader) => is_typed(reader) && graph.imports(reader).includes(target)
|
|
854
|
+
);
|
|
855
|
+
return [file, ...readers.map((reader) => path4.relative(process.cwd(), reader))];
|
|
856
|
+
}
|
|
857
|
+
function config_text(scope, build_info) {
|
|
858
|
+
const compiler_options = {
|
|
859
|
+
...LINT_OPTIONS_OFF,
|
|
860
|
+
noEmit: true,
|
|
861
|
+
incremental: true,
|
|
862
|
+
tsBuildInfoFile: build_info
|
|
863
|
+
};
|
|
864
|
+
const config = {
|
|
865
|
+
extends: BASE_CONFIG,
|
|
866
|
+
compilerOptions: compiler_options,
|
|
867
|
+
include: [],
|
|
868
|
+
files: scope
|
|
869
|
+
};
|
|
870
|
+
return `${JSON.stringify(config, void 0, " ")}
|
|
871
|
+
`;
|
|
872
|
+
}
|
|
873
|
+
async function check(tree, scope) {
|
|
874
|
+
const build_info = path4.join(tree.parent, BUILD_INFO);
|
|
875
|
+
await writeFile(path4.join(tree.tree, CONFIG_NAME), config_text(scope, build_info));
|
|
876
|
+
const result = await execa(
|
|
877
|
+
path4.join(tree.tree, TSC_BIN),
|
|
878
|
+
["-p", CONFIG_NAME, "--pretty", "false"],
|
|
879
|
+
{
|
|
880
|
+
cwd: tree.tree,
|
|
881
|
+
reject: false,
|
|
882
|
+
all: true
|
|
883
|
+
}
|
|
884
|
+
);
|
|
885
|
+
return { ran: result.exitCode !== void 0, red: TYPE_ERROR.test(result.all) };
|
|
886
|
+
}
|
|
887
|
+
async function is_red(tree, scope) {
|
|
888
|
+
if (scope.length === 0) return false;
|
|
889
|
+
const outcome = await check(tree, scope);
|
|
890
|
+
return outcome.red;
|
|
891
|
+
}
|
|
892
|
+
var test_pinned_type_check = { check, config_text, is_red, scope_of, CONFIG_NAME };
|
|
893
|
+
|
|
894
|
+
// scripts/test/test-pinned-probe.ts
|
|
895
|
+
var TREE_PREFIX = "josh-test-pinned-";
|
|
896
|
+
var HEAD = "HEAD";
|
|
897
|
+
var NO_TEST = { verdict: "no-test", failed: [], ran: 0 };
|
|
898
|
+
async function direct_of(root, file) {
|
|
899
|
+
const importers = await direct_importers.importers_of(root, [file]);
|
|
900
|
+
return importers.get(file) ?? [];
|
|
901
|
+
}
|
|
902
|
+
async function import_plan(root, probe) {
|
|
903
|
+
const { file } = probe.hunk;
|
|
904
|
+
if (direct_importers.every_test_imports_of([file]).length > 0) {
|
|
905
|
+
return { reach: await direct_of(root, file) };
|
|
906
|
+
}
|
|
907
|
+
if (probe.reach === void 0) return { reach: [file] };
|
|
908
|
+
return test_pinned_stage.plan_over(file, await direct_of(root, file), probe.reach);
|
|
909
|
+
}
|
|
910
|
+
async function plan_of(root, probe) {
|
|
911
|
+
const plan = await import_plan(root, probe);
|
|
912
|
+
const spawned = probe.spawned ?? [];
|
|
913
|
+
return {
|
|
914
|
+
...plan,
|
|
915
|
+
direct: plan.direct?.concat(spawned),
|
|
916
|
+
reach: [.../* @__PURE__ */ new Set([...plan.reach, ...spawned])]
|
|
917
|
+
};
|
|
918
|
+
}
|
|
919
|
+
function selection_over(root, files, workers) {
|
|
920
|
+
if (files.length === 0) return void 0;
|
|
921
|
+
const scope = { mode: "related", files, reason: "" };
|
|
922
|
+
const placed = { ...scope, files: files.map((test) => path5.join(root, test)) };
|
|
923
|
+
const flags = related_heavy_tests.exclude_flags(placed, root);
|
|
924
|
+
return [
|
|
925
|
+
...related_scope.vitest_arguments(scope, flags),
|
|
926
|
+
...unit_worker_share.worker_arguments([], workers)
|
|
927
|
+
];
|
|
928
|
+
}
|
|
929
|
+
function recheck_selection(recheck, workers) {
|
|
930
|
+
return ["run", ...recheck.recheck, ...unit_worker_share.worker_arguments([], workers)];
|
|
931
|
+
}
|
|
932
|
+
async function selection_of(root, probe, workers) {
|
|
933
|
+
if (probe.recheck !== void 0) return recheck_selection(probe.recheck, workers);
|
|
934
|
+
const plan = await plan_of(root, probe);
|
|
935
|
+
return selection_over(root, plan.direct ?? plan.reach, workers);
|
|
936
|
+
}
|
|
937
|
+
async function with_revert(tree, hunk, action) {
|
|
938
|
+
const target = path5.join(tree.tree, hunk.file);
|
|
939
|
+
const content = await readFile3(target, "utf8");
|
|
940
|
+
await writeFile2(target, test_pinned_logic.revert(content, hunk));
|
|
941
|
+
try {
|
|
942
|
+
return await action();
|
|
943
|
+
} finally {
|
|
944
|
+
await writeFile2(target, content);
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
async function reverted_run(tree, hunk, selection) {
|
|
948
|
+
if (selection === void 0) return NO_TEST;
|
|
949
|
+
return await with_revert(tree, hunk, async () => await test_red.probe_in(tree, selection));
|
|
950
|
+
}
|
|
951
|
+
async function is_reverted_type_red(tree, hunk) {
|
|
952
|
+
const scope = await test_pinned_type_check.scope_of(hunk.file);
|
|
953
|
+
if (scope.length === 0 || await test_pinned_type_check.is_red(tree, scope)) return false;
|
|
954
|
+
return await with_revert(tree, hunk, async () => await test_pinned_type_check.is_red(tree, scope));
|
|
955
|
+
}
|
|
956
|
+
async function fresh_verdict(tree, probe, lane) {
|
|
957
|
+
const plan = await plan_of(tree.tree, probe);
|
|
958
|
+
async function run2(files) {
|
|
959
|
+
return await reverted_run(tree, probe.hunk, selection_over(tree.tree, files, lane.workers));
|
|
960
|
+
}
|
|
961
|
+
async function is_type_red() {
|
|
962
|
+
return await is_reverted_type_red(tree, probe.hunk);
|
|
963
|
+
}
|
|
964
|
+
return await test_pinned_stage.staged_verdict(plan, run2, is_type_red, lane.staged);
|
|
965
|
+
}
|
|
966
|
+
async function verdict_of(tree, probe, lane) {
|
|
967
|
+
if (probe.recheck === void 0) return await fresh_verdict(tree, probe, lane);
|
|
968
|
+
const selection = recheck_selection(probe.recheck, lane.workers);
|
|
969
|
+
const run2 = await reverted_run(tree, probe.hunk, selection);
|
|
970
|
+
return test_pinned_cache_logic.rechecked(probe.recheck, run2) ?? await fresh_verdict(tree, probe, lane);
|
|
971
|
+
}
|
|
972
|
+
function halt_on(lane, verdict) {
|
|
973
|
+
if (lane.halt !== void 0 && test_pinned_logic.is_unpinned(verdict)) lane.halt.is_set = true;
|
|
974
|
+
}
|
|
975
|
+
async function timed_verdict(tree, probe, lane) {
|
|
976
|
+
const started = Date.now();
|
|
977
|
+
const verdict = await verdict_of(tree, probe, lane);
|
|
978
|
+
lane.times.push(test_pinned_ledger.time_of(probe.hunk, verdict, Date.now() - started));
|
|
979
|
+
return verdict;
|
|
980
|
+
}
|
|
981
|
+
async function verdicts_in(tree, probes, lane) {
|
|
982
|
+
const verdicts = [];
|
|
983
|
+
for (const probe of probes) {
|
|
984
|
+
if (lane.halt?.is_set === true) break;
|
|
985
|
+
const verdict = await timed_verdict(tree, probe, lane);
|
|
986
|
+
halt_on(lane, verdict);
|
|
987
|
+
await lane.on_verdict(probe.index, verdict);
|
|
988
|
+
verdicts.push(verdict);
|
|
989
|
+
}
|
|
990
|
+
return verdicts;
|
|
991
|
+
}
|
|
992
|
+
async function pooled(paths, probes, lane) {
|
|
993
|
+
if (probes.length === 0) return [];
|
|
994
|
+
const plan = test_pinned_pool.lane_plan(probes.length, await test_unit_guard.vitest_share([]));
|
|
995
|
+
return await test_pinned_pool.run_pool(
|
|
996
|
+
probes,
|
|
997
|
+
plan.lanes,
|
|
998
|
+
async (group2) => await base_tree.with_tree(TREE_PREFIX, HEAD, async (tree) => {
|
|
999
|
+
await base_tree.copy_in(tree.tree, paths);
|
|
1000
|
+
return await verdicts_in(tree, group2, { ...lane, workers: plan.workers });
|
|
1001
|
+
})
|
|
1002
|
+
);
|
|
1003
|
+
}
|
|
1004
|
+
function skipped_of(options) {
|
|
1005
|
+
return {
|
|
1006
|
+
held: options.held ?? 0,
|
|
1007
|
+
rewired: options.rewired ?? 0,
|
|
1008
|
+
over_cap: options.over_cap ?? 0,
|
|
1009
|
+
origin: options.origin
|
|
1010
|
+
};
|
|
1011
|
+
}
|
|
1012
|
+
async function checked_on(paths, probes, on_verdict, options = {}) {
|
|
1013
|
+
const started = Date.now();
|
|
1014
|
+
const times = [];
|
|
1015
|
+
const staged = test_pinned_stage.none();
|
|
1016
|
+
const halt = options.is_first_unpinned === true ? { is_set: false } : void 0;
|
|
1017
|
+
const verdicts = await pooled(paths, probes, { on_verdict, times, staged, halt });
|
|
1018
|
+
await test_pinned_ledger.record(skipped_of(options), times, Date.now() - started);
|
|
1019
|
+
return { verdicts, staged };
|
|
1020
|
+
}
|
|
1021
|
+
var test_pinned_probe = { checked_on, selection_of };
|
|
1022
|
+
|
|
1023
|
+
// scripts/test/test-pinned.ts
|
|
1024
|
+
var HEAD2 = "HEAD";
|
|
1025
|
+
var NO_OUTCOME = { unpinned: [], stopped: [] };
|
|
1026
|
+
var NO_REPORT = { ...NO_OUTCOME, unchecked: [], unparsed: [] };
|
|
1027
|
+
async function read_hunks(base, files) {
|
|
1028
|
+
if (files.length === 0) return [];
|
|
1029
|
+
const diff_args = ["diff", "-U0", "--no-color", "--no-ext-diff", "--diff-filter=M"];
|
|
1030
|
+
const prefix_args = ["--src-prefix=a/", "--dst-prefix=b/", base, "--"];
|
|
1031
|
+
return test_pinned_logic.parse_hunks(
|
|
1032
|
+
await git_spawn.read([...diff_args, ...prefix_args, ...files])
|
|
1033
|
+
);
|
|
1034
|
+
}
|
|
1035
|
+
function held_of(known2) {
|
|
1036
|
+
return test_pinned_cache_logic.is_recheck(known2) ? void 0 : known2;
|
|
1037
|
+
}
|
|
1038
|
+
function recheck_of(known2) {
|
|
1039
|
+
return test_pinned_cache_logic.is_recheck(known2) ? known2 : void 0;
|
|
1040
|
+
}
|
|
1041
|
+
function probes_of(hunks, known2) {
|
|
1042
|
+
return hunks.map((hunk, index) => ({ hunk, index, recheck: recheck_of(known2[index]) })).filter((probe) => held_of(known2[probe.index]) === void 0);
|
|
1043
|
+
}
|
|
1044
|
+
async function counts_of(hunks, reach) {
|
|
1045
|
+
const files = test_pinned_cache_logic.distinct(hunks.map((hunk) => hunk.file));
|
|
1046
|
+
const related = await Promise.all(files.map(async (file) => await reach.related(file)));
|
|
1047
|
+
return new Map(files.map((file, index) => [file, related[index]?.length ?? 0]));
|
|
1048
|
+
}
|
|
1049
|
+
function by_reach(probes, counts) {
|
|
1050
|
+
const counted = probes.map((probe) => ({ ...probe, reach: counts.get(probe.hunk.file) }));
|
|
1051
|
+
return test_pinned_logic.by_reach(counted, counts);
|
|
1052
|
+
}
|
|
1053
|
+
function reached_of(verdicts) {
|
|
1054
|
+
return verdicts.flatMap((verdict, index) => verdict === void 0 ? [] : [[index, verdict]]);
|
|
1055
|
+
}
|
|
1056
|
+
function check_options(held, options) {
|
|
1057
|
+
return {
|
|
1058
|
+
held,
|
|
1059
|
+
rewired: options.rewired ?? 0,
|
|
1060
|
+
over_cap: options.over_cap ?? 0,
|
|
1061
|
+
is_first_unpinned: options.is_first_unpinned === true,
|
|
1062
|
+
origin: options.origin
|
|
1063
|
+
};
|
|
1064
|
+
}
|
|
1065
|
+
async function with_spawned(probes, reach) {
|
|
1066
|
+
const files = [...new Set(probes.map((probe) => probe.hunk.file))];
|
|
1067
|
+
const spawned = await Promise.all(files.map(async (file) => await reach.spawned(file)));
|
|
1068
|
+
const by_file = new Map(files.map((file, index) => [file, spawned[index]]));
|
|
1069
|
+
return probes.map((probe) => ({ ...probe, spawned: by_file.get(probe.hunk.file) }));
|
|
1070
|
+
}
|
|
1071
|
+
async function verdicts_on(paths, probing) {
|
|
1072
|
+
const verdicts = probing.known.map((entry) => held_of(entry));
|
|
1073
|
+
const reached = reached_of(verdicts);
|
|
1074
|
+
const probes = await with_spawned(
|
|
1075
|
+
by_reach(probes_of(probing.hunks, probing.known), probing.counts),
|
|
1076
|
+
probing.cache.reach
|
|
1077
|
+
);
|
|
1078
|
+
const writer2 = test_pinned_cache.writer({ ...probing.cache, hunks: probing.hunks }, probing.keys);
|
|
1079
|
+
const options = check_options(reached.length, probing.options);
|
|
1080
|
+
await writer2.record(reached);
|
|
1081
|
+
const checked = await test_pinned_probe.checked_on(
|
|
1082
|
+
paths,
|
|
1083
|
+
probes,
|
|
1084
|
+
async (index, verdict) => {
|
|
1085
|
+
verdicts[index] = verdict;
|
|
1086
|
+
await writer2.record([[index, verdict]]);
|
|
1087
|
+
},
|
|
1088
|
+
options
|
|
1089
|
+
);
|
|
1090
|
+
return { verdicts, staged: checked.staged };
|
|
1091
|
+
}
|
|
1092
|
+
function outcome_of(hunks, verdicts) {
|
|
1093
|
+
const is_held2 = verdicts.every((verdict) => verdict !== void 0);
|
|
1094
|
+
return { ...test_pinned_logic.outcome(hunks, verdicts), is_held: is_held2 };
|
|
1095
|
+
}
|
|
1096
|
+
function cut_of(hunks, verdicts) {
|
|
1097
|
+
const cut = hunks.filter((_hunk, index) => verdicts[index] === void 0);
|
|
1098
|
+
return cut.length === 0 ? {} : { cut };
|
|
1099
|
+
}
|
|
1100
|
+
function over_cap_of(over_cap) {
|
|
1101
|
+
return over_cap.length === 0 ? {} : { over_cap };
|
|
1102
|
+
}
|
|
1103
|
+
async function checked_outcome(paths, read3, options) {
|
|
1104
|
+
const { hunks, cache } = read3;
|
|
1105
|
+
const keys2 = test_pinned_carry.keys(cache, hunks);
|
|
1106
|
+
const known2 = await test_pinned_cache.known(
|
|
1107
|
+
cache,
|
|
1108
|
+
keys2,
|
|
1109
|
+
hunks.map((hunk) => hunk.file)
|
|
1110
|
+
);
|
|
1111
|
+
if (options.is_cached_only) {
|
|
1112
|
+
return outcome_of(
|
|
1113
|
+
hunks,
|
|
1114
|
+
known2.map((entry) => held_of(entry))
|
|
1115
|
+
);
|
|
1116
|
+
}
|
|
1117
|
+
const { verdicts, staged } = await verdicts_on(paths, { ...read3, known: known2, keys: keys2, options });
|
|
1118
|
+
return { ...outcome_of(hunks, verdicts), ...cut_of(hunks, verdicts), staged };
|
|
1119
|
+
}
|
|
1120
|
+
async function hinted_hunks(outcome, reach) {
|
|
1121
|
+
return await Promise.all(
|
|
1122
|
+
outcome.unpinned.map(async (hunk) => ({
|
|
1123
|
+
...hunk,
|
|
1124
|
+
related_tests: await reach.related(hunk.file)
|
|
1125
|
+
}))
|
|
1126
|
+
);
|
|
1127
|
+
}
|
|
1128
|
+
async function outcome_on(cache, paths, changed, options) {
|
|
1129
|
+
if (changed.length === 0) return NO_OUTCOME;
|
|
1130
|
+
const counts = await counts_of(changed, cache.reach);
|
|
1131
|
+
const { checked, unchecked } = test_pinned_logic.capped(changed, counts);
|
|
1132
|
+
const capped_options = { ...options, over_cap: unchecked.length };
|
|
1133
|
+
const outcome = await checked_outcome(paths, { hunks: checked, counts, cache }, capped_options);
|
|
1134
|
+
const unpinned = await hinted_hunks(outcome, cache.reach);
|
|
1135
|
+
return { ...outcome, unpinned, ...over_cap_of(unchecked) };
|
|
1136
|
+
}
|
|
1137
|
+
async function added_scripts(base, targets) {
|
|
1138
|
+
const held = new Set(await changed_paths.read_held_at(base, targets));
|
|
1139
|
+
return targets.filter((file) => !held.has(file) && test_pinned_functions.is_script(file));
|
|
1140
|
+
}
|
|
1141
|
+
async function stub_hunks_of(added) {
|
|
1142
|
+
const api = review_code_tree.load_typescript(process.cwd());
|
|
1143
|
+
if (api === void 0) return { hunks: [], unparsed: added };
|
|
1144
|
+
const contents = await Promise.all(added.map(async (file) => await readFile4(file, "utf8")));
|
|
1145
|
+
const hunks = added.flatMap(
|
|
1146
|
+
(file, index) => test_pinned_functions.stub_hunks(api, file, contents[index] ?? "")
|
|
1147
|
+
);
|
|
1148
|
+
return { hunks, unparsed: [] };
|
|
1149
|
+
}
|
|
1150
|
+
async function runtime_hunks(hunks) {
|
|
1151
|
+
const grouped = test_pinned_moves.group(hunks);
|
|
1152
|
+
const api = review_code_tree.load_typescript(process.cwd());
|
|
1153
|
+
if (api === void 0) return { hunks: grouped, unparsed: [], rewired: 0 };
|
|
1154
|
+
const contents = await Promise.all(grouped.map(async (hunk) => await readFile4(hunk.file, "utf8")));
|
|
1155
|
+
return { ...test_pinned_emit.probed_of(api, grouped, contents), unparsed: [] };
|
|
1156
|
+
}
|
|
1157
|
+
async function read_probes(base, targets) {
|
|
1158
|
+
const stubs = await stub_hunks_of(await added_scripts(base, targets));
|
|
1159
|
+
const changed = await runtime_hunks(await read_hunks(base, targets));
|
|
1160
|
+
const hunks = [...changed.hunks, ...stubs.hunks];
|
|
1161
|
+
return { hunks, unparsed: stubs.unparsed, rewired: changed.rewired };
|
|
1162
|
+
}
|
|
1163
|
+
async function existing_since(commit) {
|
|
1164
|
+
const changed = await changed_paths.read_changed_since(commit);
|
|
1165
|
+
return changed.filter((file) => existsSync3(file));
|
|
1166
|
+
}
|
|
1167
|
+
async function report_on(base, options, has_runner) {
|
|
1168
|
+
const { max_hunks } = options;
|
|
1169
|
+
const paths = await existing_since(HEAD2);
|
|
1170
|
+
const changed = await existing_since(base);
|
|
1171
|
+
const targets = await test_pinned_reach.probed_files(
|
|
1172
|
+
changed.filter((file) => test_pinned_logic.is_target(file))
|
|
1173
|
+
);
|
|
1174
|
+
const probes = await read_probes(base, targets);
|
|
1175
|
+
const cache = await test_pinned_cache.load(base, probes.hunks, options.cache_file);
|
|
1176
|
+
const { checked, unchecked } = await test_pinned_carry.select(cache, has_runner ? max_hunks : 0);
|
|
1177
|
+
if (!options.is_cached_only) test_pinned_carry.record(cache, unchecked);
|
|
1178
|
+
const outcome = await outcome_on(cache, paths, checked, { ...options, rewired: probes.rewired });
|
|
1179
|
+
return { ...outcome, unchecked, unparsed: probes.unparsed, max_hunks, has_runner };
|
|
1180
|
+
}
|
|
1181
|
+
async function report(options) {
|
|
1182
|
+
const base = await change_base.resolved_through_merge();
|
|
1183
|
+
const has_runner = test_red.has_runner();
|
|
1184
|
+
if (base === void 0) return { ...NO_REPORT, max_hunks: options.max_hunks, has_runner };
|
|
1185
|
+
const root = process.cwd();
|
|
1186
|
+
const result = await test_pinned_snapshot.with_snapshot(async (snapshot) => ({
|
|
1187
|
+
...await report_on(base, { ...options, cache_file: snapshot.cache_file }, has_runner),
|
|
1188
|
+
tree_hash: snapshot.tree_hash
|
|
1189
|
+
}));
|
|
1190
|
+
return { ...result, is_stale: test_pinned_snapshot.current_hash(root) !== result.tree_hash };
|
|
1191
|
+
}
|
|
1192
|
+
async function run(max_hunks, is_first_unpinned = false, origin) {
|
|
1193
|
+
return await report({ max_hunks, is_cached_only: false, is_first_unpinned, origin });
|
|
1194
|
+
}
|
|
1195
|
+
async function cached(max_hunks) {
|
|
1196
|
+
return await report({ max_hunks, is_cached_only: true });
|
|
1197
|
+
}
|
|
1198
|
+
async function held_report(max_hunks) {
|
|
1199
|
+
const read3 = await cached(max_hunks);
|
|
1200
|
+
return read3.is_held === true ? read3 : void 0;
|
|
1201
|
+
}
|
|
1202
|
+
var test_pinned = { cached, held_report, run };
|
|
1203
|
+
|
|
1204
|
+
export {
|
|
1205
|
+
test_pinned_record,
|
|
1206
|
+
test_pinned_ledger,
|
|
1207
|
+
test_pinned
|
|
1208
|
+
};
|