@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,1797 @@
|
|
|
1
|
+
#!/usr/bin/env tsx
|
|
2
|
+
import {
|
|
3
|
+
lane_cut_stats
|
|
4
|
+
} from "./chunk-LZNYHWRO.js";
|
|
5
|
+
import {
|
|
6
|
+
lane_why,
|
|
7
|
+
lane_why_causes
|
|
8
|
+
} from "./chunk-D4HNS43Q.js";
|
|
9
|
+
import {
|
|
10
|
+
lane_hand_back_held,
|
|
11
|
+
run_ship_pre_detach
|
|
12
|
+
} from "./chunk-OTZJXU2R.js";
|
|
13
|
+
import {
|
|
14
|
+
lane_implement_signals
|
|
15
|
+
} from "./chunk-TS4ZK46L.js";
|
|
16
|
+
import "./chunk-BJA5U4Q7.js";
|
|
17
|
+
import {
|
|
18
|
+
lane_value_missing
|
|
19
|
+
} from "./chunk-AJWR7D3H.js";
|
|
20
|
+
import {
|
|
21
|
+
lane_held_stats
|
|
22
|
+
} from "./chunk-KQWSENCT.js";
|
|
23
|
+
import {
|
|
24
|
+
lane_limit_history
|
|
25
|
+
} from "./chunk-2VLHFILE.js";
|
|
26
|
+
import {
|
|
27
|
+
lane_breakdown_text,
|
|
28
|
+
lane_check_stats,
|
|
29
|
+
lane_ci_path_stats
|
|
30
|
+
} from "./chunk-CYQ3ZF7R.js";
|
|
31
|
+
import {
|
|
32
|
+
split_resolution
|
|
33
|
+
} from "./chunk-DRCTDVI2.js";
|
|
34
|
+
import "./chunk-LWAXXZPS.js";
|
|
35
|
+
import {
|
|
36
|
+
lane_stats_request
|
|
37
|
+
} from "./chunk-73EBNBUW.js";
|
|
38
|
+
import {
|
|
39
|
+
lane_sinks,
|
|
40
|
+
lane_sinks_issues
|
|
41
|
+
} from "./chunk-EK2Y6B4X.js";
|
|
42
|
+
import "./chunk-DXZW4V7J.js";
|
|
43
|
+
import {
|
|
44
|
+
lane_breakdown_implement,
|
|
45
|
+
lane_implement_stats,
|
|
46
|
+
lane_paused_spans,
|
|
47
|
+
lane_transcript_stats
|
|
48
|
+
} from "./chunk-JGTLNFFE.js";
|
|
49
|
+
import {
|
|
50
|
+
lane_breakdown,
|
|
51
|
+
lane_yield_split
|
|
52
|
+
} from "./chunk-VZCQZFPH.js";
|
|
53
|
+
import "./chunk-TXXYC7EV.js";
|
|
54
|
+
import "./chunk-ZAAHZY2A.js";
|
|
55
|
+
import {
|
|
56
|
+
lane_net_read
|
|
57
|
+
} from "./chunk-VZSJCFRT.js";
|
|
58
|
+
import "./chunk-YPNTORQD.js";
|
|
59
|
+
import {
|
|
60
|
+
lane_ledger_archive
|
|
61
|
+
} from "./chunk-JOARHU3M.js";
|
|
62
|
+
import "./chunk-6NGNMIMT.js";
|
|
63
|
+
import "./chunk-7ZECP3J6.js";
|
|
64
|
+
import "./chunk-2IESYBZH.js";
|
|
65
|
+
import "./chunk-5PAEXYIY.js";
|
|
66
|
+
import {
|
|
67
|
+
lane_stage_budget
|
|
68
|
+
} from "./chunk-RQRLW4XK.js";
|
|
69
|
+
import {
|
|
70
|
+
lane_implement_rate,
|
|
71
|
+
lane_size_stats
|
|
72
|
+
} from "./chunk-TPKFVVJQ.js";
|
|
73
|
+
import {
|
|
74
|
+
lane_net_time,
|
|
75
|
+
lane_stop_stats
|
|
76
|
+
} from "./chunk-EKCKCX5S.js";
|
|
77
|
+
import "./chunk-LUMCYDGE.js";
|
|
78
|
+
import "./chunk-EH3LVYOX.js";
|
|
79
|
+
import {
|
|
80
|
+
lane_stage_stats
|
|
81
|
+
} from "./chunk-HOSZITJM.js";
|
|
82
|
+
import "./chunk-ESQEEL4O.js";
|
|
83
|
+
import "./chunk-VD5674LW.js";
|
|
84
|
+
import "./chunk-2FJJYCBD.js";
|
|
85
|
+
import "./chunk-BY3POLIQ.js";
|
|
86
|
+
import "./chunk-GU5ML3Y3.js";
|
|
87
|
+
import "./chunk-4Z5723GA.js";
|
|
88
|
+
import "./chunk-HBNB3TLG.js";
|
|
89
|
+
import "./chunk-BJKEXXY6.js";
|
|
90
|
+
import "./chunk-KUJQWO6M.js";
|
|
91
|
+
import "./chunk-6I2JM5UX.js";
|
|
92
|
+
import "./chunk-GPMSYXYO.js";
|
|
93
|
+
import "./chunk-E2ZCUKHT.js";
|
|
94
|
+
import "./chunk-WVR4RUFP.js";
|
|
95
|
+
import "./chunk-5GBZ43UA.js";
|
|
96
|
+
import "./chunk-O5FVBIRI.js";
|
|
97
|
+
import "./chunk-SV4FHQE7.js";
|
|
98
|
+
import "./chunk-6SKMZGER.js";
|
|
99
|
+
import "./chunk-LCEJXF7A.js";
|
|
100
|
+
import "./chunk-HE5S4XRE.js";
|
|
101
|
+
import "./chunk-ENLWXAHD.js";
|
|
102
|
+
import "./chunk-NOXLKIPR.js";
|
|
103
|
+
import "./chunk-E3CXOVPQ.js";
|
|
104
|
+
import "./chunk-GA6E4VGO.js";
|
|
105
|
+
import "./chunk-7EAMUVIO.js";
|
|
106
|
+
import {
|
|
107
|
+
run_ship_lap
|
|
108
|
+
} from "./chunk-PE7B7242.js";
|
|
109
|
+
import "./chunk-WG6GYBRJ.js";
|
|
110
|
+
import "./chunk-CRNPPKP2.js";
|
|
111
|
+
import "./chunk-LAKVPOJQ.js";
|
|
112
|
+
import {
|
|
113
|
+
metrics_totals
|
|
114
|
+
} from "./chunk-UU6GCJGM.js";
|
|
115
|
+
import "./chunk-W4J6YTFE.js";
|
|
116
|
+
import "./chunk-BK6Q4VCA.js";
|
|
117
|
+
import "./chunk-P6RGQXHI.js";
|
|
118
|
+
import "./chunk-KB3OQWDT.js";
|
|
119
|
+
import "./chunk-FGL6DBZU.js";
|
|
120
|
+
import {
|
|
121
|
+
since_green
|
|
122
|
+
} from "./chunk-SNO7CY2B.js";
|
|
123
|
+
import "./chunk-RUIBQMOV.js";
|
|
124
|
+
import "./chunk-OZZWRJQI.js";
|
|
125
|
+
import "./chunk-L6LU2633.js";
|
|
126
|
+
import "./chunk-IXX4SXIP.js";
|
|
127
|
+
import "./chunk-CGLLAEKZ.js";
|
|
128
|
+
import "./chunk-WL5JHB3I.js";
|
|
129
|
+
import "./chunk-4BEIYKI2.js";
|
|
130
|
+
import "./chunk-LE2T3FGJ.js";
|
|
131
|
+
import "./chunk-LQXFVZTS.js";
|
|
132
|
+
import "./chunk-F2HFWLQR.js";
|
|
133
|
+
import "./chunk-WN7NK3NY.js";
|
|
134
|
+
import "./chunk-6NV2F7QH.js";
|
|
135
|
+
import "./chunk-REMKUFAC.js";
|
|
136
|
+
import "./chunk-VGHSZLYQ.js";
|
|
137
|
+
import "./chunk-7LJQMM2K.js";
|
|
138
|
+
import "./chunk-FROACLVU.js";
|
|
139
|
+
import "./chunk-MGF64OHV.js";
|
|
140
|
+
import "./chunk-RK4HE5NW.js";
|
|
141
|
+
import "./chunk-O26Y2FOJ.js";
|
|
142
|
+
import "./chunk-XH6BGVVP.js";
|
|
143
|
+
import "./chunk-RXAZJMSZ.js";
|
|
144
|
+
import "./chunk-3PEXBHRN.js";
|
|
145
|
+
import "./chunk-RZ4OKKPM.js";
|
|
146
|
+
import "./chunk-PBOS7MTW.js";
|
|
147
|
+
import "./chunk-2NSB5ZYQ.js";
|
|
148
|
+
import "./chunk-2MJ4OCDL.js";
|
|
149
|
+
import "./chunk-IW6NWCSN.js";
|
|
150
|
+
import "./chunk-UCI4AL3Q.js";
|
|
151
|
+
import {
|
|
152
|
+
lane_sampler,
|
|
153
|
+
lane_stats,
|
|
154
|
+
lane_tail_stats
|
|
155
|
+
} from "./chunk-QS5USD4T.js";
|
|
156
|
+
import "./chunk-WWC5L3AO.js";
|
|
157
|
+
import {
|
|
158
|
+
lane_ledger
|
|
159
|
+
} from "./chunk-XYAK53TK.js";
|
|
160
|
+
import {
|
|
161
|
+
run_event_setup
|
|
162
|
+
} from "./chunk-BNXE3NVB.js";
|
|
163
|
+
import "./chunk-E33LSO2W.js";
|
|
164
|
+
import "./chunk-Y2RNUX4W.js";
|
|
165
|
+
import "./chunk-F22G3VDB.js";
|
|
166
|
+
import "./chunk-W4YH2DF3.js";
|
|
167
|
+
import "./chunk-LHKXJD6L.js";
|
|
168
|
+
import "./chunk-ROJXMBXP.js";
|
|
169
|
+
import "./chunk-FCINBCKB.js";
|
|
170
|
+
import "./chunk-Q5Q2QYVU.js";
|
|
171
|
+
import "./chunk-GO3GH7FG.js";
|
|
172
|
+
import "./chunk-KVHNQHX3.js";
|
|
173
|
+
import "./chunk-7HCPRVMB.js";
|
|
174
|
+
import "./chunk-RUWV4INF.js";
|
|
175
|
+
import "./chunk-JTU5A4JI.js";
|
|
176
|
+
import "./chunk-FNQW6NY7.js";
|
|
177
|
+
import "./chunk-DBKTFB5V.js";
|
|
178
|
+
import "./chunk-UCQJDYE3.js";
|
|
179
|
+
import "./chunk-TCBUX52E.js";
|
|
180
|
+
import "./chunk-KXHXMERX.js";
|
|
181
|
+
import "./chunk-MDLOETXL.js";
|
|
182
|
+
import "./chunk-65E4OZJ7.js";
|
|
183
|
+
import "./chunk-NFKULY26.js";
|
|
184
|
+
import "./chunk-LRS2OS5J.js";
|
|
185
|
+
import "./chunk-AI5K4QJO.js";
|
|
186
|
+
import "./chunk-7S6VRZOH.js";
|
|
187
|
+
import "./chunk-LULJUD6P.js";
|
|
188
|
+
import "./chunk-TBNQIFWL.js";
|
|
189
|
+
import "./chunk-P4CWLRT2.js";
|
|
190
|
+
import "./chunk-XFPEUYDV.js";
|
|
191
|
+
import "./chunk-5ZTQX7OS.js";
|
|
192
|
+
import "./chunk-HCA5QG2U.js";
|
|
193
|
+
import "./chunk-C2SEDMZ3.js";
|
|
194
|
+
import "./chunk-LRA3PXHS.js";
|
|
195
|
+
import "./chunk-6OP63TBT.js";
|
|
196
|
+
import "./chunk-TVZXG4Y4.js";
|
|
197
|
+
import "./chunk-FIUCHMCF.js";
|
|
198
|
+
import "./chunk-XXNEY4B3.js";
|
|
199
|
+
import "./chunk-4PUKDAXL.js";
|
|
200
|
+
import "./chunk-EWVR5AEX.js";
|
|
201
|
+
import "./chunk-C6QSVO5K.js";
|
|
202
|
+
import "./chunk-W3FX7FYN.js";
|
|
203
|
+
import "./chunk-ZBFNQUY7.js";
|
|
204
|
+
import "./chunk-U3IVVR4W.js";
|
|
205
|
+
import "./chunk-O3NDWYNT.js";
|
|
206
|
+
import {
|
|
207
|
+
lane_spans
|
|
208
|
+
} from "./chunk-34LAULSC.js";
|
|
209
|
+
import "./chunk-5Y7QQYTU.js";
|
|
210
|
+
import "./chunk-34DND4BA.js";
|
|
211
|
+
import {
|
|
212
|
+
run_event_stream
|
|
213
|
+
} from "./chunk-NSAVEXVR.js";
|
|
214
|
+
import "./chunk-P4KIQRSL.js";
|
|
215
|
+
import "./chunk-QQBMVC5W.js";
|
|
216
|
+
import "./chunk-TUIFS5E7.js";
|
|
217
|
+
import "./chunk-QAHFPCFR.js";
|
|
218
|
+
import "./chunk-66TGK5XL.js";
|
|
219
|
+
import {
|
|
220
|
+
agent_profile_schema
|
|
221
|
+
} from "./chunk-EZSO25UZ.js";
|
|
222
|
+
import "./chunk-2DJLAUYB.js";
|
|
223
|
+
import "./chunk-EW4NPUMQ.js";
|
|
224
|
+
import "./chunk-BF6YX4HE.js";
|
|
225
|
+
import "./chunk-3LZXX5GL.js";
|
|
226
|
+
import "./chunk-W2IA2LV3.js";
|
|
227
|
+
import {
|
|
228
|
+
run_ship_stage
|
|
229
|
+
} from "./chunk-OHNP3QL2.js";
|
|
230
|
+
import {
|
|
231
|
+
session_cite
|
|
232
|
+
} from "./chunk-X7PN54LZ.js";
|
|
233
|
+
import "./chunk-MDKDJF2K.js";
|
|
234
|
+
import "./chunk-HQ2HSZBN.js";
|
|
235
|
+
import "./chunk-WQ6FS544.js";
|
|
236
|
+
import "./chunk-6HRRZANN.js";
|
|
237
|
+
import {
|
|
238
|
+
lane_ledger_kind
|
|
239
|
+
} from "./chunk-I63RNFFR.js";
|
|
240
|
+
import "./chunk-MPGJ4ONJ.js";
|
|
241
|
+
import {
|
|
242
|
+
cost_transcript
|
|
243
|
+
} from "./chunk-6WKJ3GDA.js";
|
|
244
|
+
import "./chunk-YIA6FC3K.js";
|
|
245
|
+
import "./chunk-JQXPLMCO.js";
|
|
246
|
+
import {
|
|
247
|
+
issue_number_shape
|
|
248
|
+
} from "./chunk-66NX6EXR.js";
|
|
249
|
+
import "./chunk-3NWAGIA6.js";
|
|
250
|
+
import {
|
|
251
|
+
cli_flags
|
|
252
|
+
} from "./chunk-2FE3C4PH.js";
|
|
253
|
+
import "./chunk-HLUS2M3D.js";
|
|
254
|
+
import "./chunk-SBGTCT2C.js";
|
|
255
|
+
import "./chunk-AKK56GNX.js";
|
|
256
|
+
import "./chunk-TBIX5FRN.js";
|
|
257
|
+
import "./chunk-IGD6QJPH.js";
|
|
258
|
+
import "./chunk-FFHEGWPK.js";
|
|
259
|
+
import "./chunk-R6QE5VJG.js";
|
|
260
|
+
import "./chunk-4ZHWTTQW.js";
|
|
261
|
+
import "./chunk-RDRN56E4.js";
|
|
262
|
+
import "./chunk-XDF25GSU.js";
|
|
263
|
+
import "./chunk-EBVS2LKX.js";
|
|
264
|
+
import "./chunk-AQ3PMSXK.js";
|
|
265
|
+
import "./chunk-QVOFWFWC.js";
|
|
266
|
+
import "./chunk-G6BXCWPH.js";
|
|
267
|
+
import "./chunk-CDY4NFQG.js";
|
|
268
|
+
import "./chunk-OKYFQJW3.js";
|
|
269
|
+
import "./chunk-HHBC6QZE.js";
|
|
270
|
+
import "./chunk-QWWTC3XR.js";
|
|
271
|
+
import "./chunk-ILGPZ47M.js";
|
|
272
|
+
import "./chunk-3CCGKX7Y.js";
|
|
273
|
+
import "./chunk-KSR23NYN.js";
|
|
274
|
+
import "./chunk-D5TAR6TV.js";
|
|
275
|
+
import "./chunk-V5FD7DVV.js";
|
|
276
|
+
import "./chunk-36LOGVJ7.js";
|
|
277
|
+
import "./chunk-ENFPR7J2.js";
|
|
278
|
+
import "./chunk-F7XLEK55.js";
|
|
279
|
+
import "./chunk-UGCUSRZF.js";
|
|
280
|
+
import "./chunk-AKQYYHP2.js";
|
|
281
|
+
import "./chunk-CJKPF5DJ.js";
|
|
282
|
+
import "./chunk-RBU2NKHF.js";
|
|
283
|
+
import "./chunk-NKKH3PBE.js";
|
|
284
|
+
import "./chunk-B77ZMVHS.js";
|
|
285
|
+
import "./chunk-B5GXZK3E.js";
|
|
286
|
+
import "./chunk-KTLR4Y32.js";
|
|
287
|
+
import "./chunk-ZNX2LJCQ.js";
|
|
288
|
+
import "./chunk-VJE3RJAX.js";
|
|
289
|
+
import {
|
|
290
|
+
MS_PER_MINUTE,
|
|
291
|
+
MS_PER_SECOND
|
|
292
|
+
} from "./chunk-WPAQUMHC.js";
|
|
293
|
+
import "./chunk-HIU2WXB6.js";
|
|
294
|
+
|
|
295
|
+
// scripts/lane/lane-measure-cli.ts
|
|
296
|
+
import { dirname as __josh_dirname } from "node:path";
|
|
297
|
+
import { fileURLToPath as __josh_file_path } from "node:url";
|
|
298
|
+
import { setInterval as every } from "node:timers/promises";
|
|
299
|
+
import { fileURLToPath } from "node:url";
|
|
300
|
+
|
|
301
|
+
// scripts/lane/lane-over-causes.ts
|
|
302
|
+
import path from "node:path";
|
|
303
|
+
|
|
304
|
+
// scripts/lane/lane-over.ts
|
|
305
|
+
var COLUMNS = ["lane", "net min", "wait min", "chain", "over budget", "top stage", "open issues"];
|
|
306
|
+
var SEPARATOR = " \xB7 ";
|
|
307
|
+
var NO_CHAIN = "-";
|
|
308
|
+
var GAP_OPEN = "gap open";
|
|
309
|
+
var DISPATCHED_FIRST = "dispatched before holder end";
|
|
310
|
+
var { KIND } = lane_ledger_kind;
|
|
311
|
+
function of_kind(entries, kind, issue) {
|
|
312
|
+
return entries.filter(
|
|
313
|
+
(entry) => entry.kind === kind && "issue" in entry && entry.issue === issue
|
|
314
|
+
);
|
|
315
|
+
}
|
|
316
|
+
function counted(label, count) {
|
|
317
|
+
return count === 0 ? [] : [`${label} \xD7${String(count)}`];
|
|
318
|
+
}
|
|
319
|
+
function split_part({ entries }, issue) {
|
|
320
|
+
const children = of_kind(entries, KIND.SPLIT_FILED, issue).map((entry) => entry.child);
|
|
321
|
+
const filed = children.length === 0 ? [] : [`${KIND.SPLIT_FILED} ${children.join(", ")}`];
|
|
322
|
+
const notices = of_kind(entries, KIND.SPLIT_NOTICE, issue).length;
|
|
323
|
+
return [...counted(KIND.SPLIT_NOTICE, notices), ...filed];
|
|
324
|
+
}
|
|
325
|
+
function round_part({ entries }, issue) {
|
|
326
|
+
const rounds = of_kind(entries, KIND.ROUND_ONE, issue);
|
|
327
|
+
return rounds.some((round) => round.verdict === "blocking") ? ["round 1 blocking"] : [];
|
|
328
|
+
}
|
|
329
|
+
function unplanned_part({ entries }, issue) {
|
|
330
|
+
return counted(KIND.UNPLANNED_NOTICE, of_kind(entries, KIND.UNPLANNED_NOTICE, issue).length);
|
|
331
|
+
}
|
|
332
|
+
function gap_text({ gap_ms, is_early }) {
|
|
333
|
+
if (gap_ms !== void 0) return `gap ${String(Math.round(gap_ms / MS_PER_MINUTE))} min`;
|
|
334
|
+
return is_early ? DISPATCHED_FIRST : GAP_OPEN;
|
|
335
|
+
}
|
|
336
|
+
function yield_text(taken) {
|
|
337
|
+
const { holder } = taken;
|
|
338
|
+
const target = holder === void 0 ? "yield" : `yield \u2192 ${session_cite.issue(holder)}`;
|
|
339
|
+
return `${target} ${gap_text(taken)}`;
|
|
340
|
+
}
|
|
341
|
+
function yield_part({ entries, events }, issue) {
|
|
342
|
+
return lane_yield_split.of_issue(entries, events, issue).map((taken) => yield_text(taken));
|
|
343
|
+
}
|
|
344
|
+
function hub_part({ entries }, issue) {
|
|
345
|
+
return lane_sinks.hubs_of(entries, [issue]).map((hub) => `hub over cap ${hub}`);
|
|
346
|
+
}
|
|
347
|
+
var CHAIN_PARTS = [
|
|
348
|
+
split_part,
|
|
349
|
+
round_part,
|
|
350
|
+
unplanned_part,
|
|
351
|
+
yield_part,
|
|
352
|
+
hub_part
|
|
353
|
+
];
|
|
354
|
+
function chain_of(records, issue) {
|
|
355
|
+
const parts = CHAIN_PARTS.flatMap((part) => part(records, issue));
|
|
356
|
+
return parts.length === 0 ? NO_CHAIN : parts.join(SEPARATOR);
|
|
357
|
+
}
|
|
358
|
+
function budget_text({ name, ms }) {
|
|
359
|
+
const budget = lane_breakdown_text.budget_of(name);
|
|
360
|
+
if (budget === void 0 || lane_stage_budget.over_minutes(budget, ms) === void 0) return [];
|
|
361
|
+
const minutes = (ms / MS_PER_MINUTE).toFixed(1);
|
|
362
|
+
return [`${name} ${minutes}/${String(lane_stage_budget.BUDGET_MINUTES[budget])}`];
|
|
363
|
+
}
|
|
364
|
+
function over_budget_of({ entries, events }, issue) {
|
|
365
|
+
const stages = lane_breakdown_implement.breakdown_of(entries, events, issue)?.stages ?? [];
|
|
366
|
+
const parts = stages.flatMap((stage) => budget_text(stage));
|
|
367
|
+
return parts.length === 0 ? NO_CHAIN : parts.join(SEPARATOR);
|
|
368
|
+
}
|
|
369
|
+
function wait_ms(records, issue, net_ms) {
|
|
370
|
+
const span = lane_net_time.span_of(records.entries, issue);
|
|
371
|
+
return span === void 0 ? void 0 : span.to_ms - span.from_ms - net_ms;
|
|
372
|
+
}
|
|
373
|
+
function net_of(records, issue) {
|
|
374
|
+
return lane_net_time.net_ms(records.entries, records.events, issue) ?? 0;
|
|
375
|
+
}
|
|
376
|
+
function lane_row(records, issue, issues) {
|
|
377
|
+
const net_ms = net_of(records, issue);
|
|
378
|
+
const [top] = lane_sinks.sinks_of(records, [issue]);
|
|
379
|
+
const stage = top?.name ?? NO_CHAIN;
|
|
380
|
+
return lane_stats.to_row([
|
|
381
|
+
session_cite.issue(issue),
|
|
382
|
+
lane_stage_stats.cell(net_ms),
|
|
383
|
+
lane_stage_stats.cell(wait_ms(records, issue, net_ms)),
|
|
384
|
+
chain_of(records, issue),
|
|
385
|
+
over_budget_of(records, issue),
|
|
386
|
+
stage,
|
|
387
|
+
top === void 0 ? lane_sinks_issues.NONE : lane_sinks.issues_cell(stage, issues, lane_sinks.hubs_of(records.entries, [issue]))
|
|
388
|
+
]);
|
|
389
|
+
}
|
|
390
|
+
function table(records, window, minutes, issues) {
|
|
391
|
+
const lanes = lane_sinks.over_issues(records, window, minutes).toSorted((left, right) => net_of(records, right) - net_of(records, left));
|
|
392
|
+
return [
|
|
393
|
+
lane_stats.to_row(COLUMNS),
|
|
394
|
+
lane_stats.to_row(COLUMNS.map(() => "---")),
|
|
395
|
+
...lanes.map((issue) => lane_row(records, issue, issues))
|
|
396
|
+
].join("\n");
|
|
397
|
+
}
|
|
398
|
+
var lane_over = { chain_of, over_budget_of, table };
|
|
399
|
+
|
|
400
|
+
// scripts/lane/lane-over-causes.ts
|
|
401
|
+
var KIND2 = { HUB: "hub", JOB: "ci job" };
|
|
402
|
+
var COLUMNS2 = ["kind", "cause", "lanes", "over min", "open issues"];
|
|
403
|
+
var CANDIDATES = "filing candidates: ";
|
|
404
|
+
var NAME_SEPARATOR = ", ";
|
|
405
|
+
function lane_causes(records, issue) {
|
|
406
|
+
const hubs = lane_sinks.hubs_of(records.entries, [issue]).map((hub) => ({ kind: KIND2.HUB, key: hub, word: path.basename(hub) }));
|
|
407
|
+
const jobs = lane_why_causes.keys_of(records.entries, issue, void 0).map((job) => ({ kind: KIND2.JOB, key: job, word: job }));
|
|
408
|
+
return [...hubs, ...jobs];
|
|
409
|
+
}
|
|
410
|
+
function add_lane(groups, records, issue, threshold_ms) {
|
|
411
|
+
const over_ms = (lane_net_time.net_ms(records.entries, records.events, issue) ?? 0) - threshold_ms;
|
|
412
|
+
for (const cause of lane_causes(records, issue)) {
|
|
413
|
+
const id = `${cause.kind}:${cause.key}`;
|
|
414
|
+
const group2 = groups.get(id) ?? { ...cause, lanes: /* @__PURE__ */ new Set(), over_ms: 0 };
|
|
415
|
+
group2.lanes.add(issue);
|
|
416
|
+
group2.over_ms += over_ms;
|
|
417
|
+
groups.set(id, group2);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
function causes_of(records, window, minutes) {
|
|
421
|
+
const groups = /* @__PURE__ */ new Map();
|
|
422
|
+
for (const issue of lane_sinks.over_issues(records, window, minutes)) {
|
|
423
|
+
add_lane(groups, records, issue, minutes * MS_PER_MINUTE);
|
|
424
|
+
}
|
|
425
|
+
return [...groups.values()].toSorted((left, right) => right.over_ms - left.over_ms);
|
|
426
|
+
}
|
|
427
|
+
function row_of(cause, issues) {
|
|
428
|
+
return lane_stats.to_row([
|
|
429
|
+
cause.kind,
|
|
430
|
+
cause.key,
|
|
431
|
+
String(cause.lanes.size),
|
|
432
|
+
lane_stage_stats.cell(cause.over_ms),
|
|
433
|
+
lane_why_causes.open_cell([cause.word], issues)
|
|
434
|
+
]);
|
|
435
|
+
}
|
|
436
|
+
function candidates_line(causes, issues) {
|
|
437
|
+
if (issues === void 0) return `${CANDIDATES}${lane_sinks_issues.UNREAD}`;
|
|
438
|
+
const unfiled = causes.filter((cause) => lane_why_causes.issues_of(cause.word, issues).length === 0).map((cause) => `${cause.kind} ${cause.key}`);
|
|
439
|
+
return `${CANDIDATES}${unfiled.length === 0 ? lane_sinks_issues.NONE : unfiled.join(NAME_SEPARATOR)}`;
|
|
440
|
+
}
|
|
441
|
+
function table2(records, window, minutes, issues) {
|
|
442
|
+
const causes = causes_of(records, window, minutes);
|
|
443
|
+
return [
|
|
444
|
+
lane_stats.to_row(COLUMNS2),
|
|
445
|
+
lane_stats.to_row(COLUMNS2.map(() => "---")),
|
|
446
|
+
...causes.map((cause) => row_of(cause, issues)),
|
|
447
|
+
"",
|
|
448
|
+
candidates_line(causes, issues)
|
|
449
|
+
].join("\n");
|
|
450
|
+
}
|
|
451
|
+
function view(records, window, minutes, issues) {
|
|
452
|
+
return [
|
|
453
|
+
lane_over.table(records, window, minutes, issues),
|
|
454
|
+
table2(records, window, minutes, issues)
|
|
455
|
+
].join("\n\n");
|
|
456
|
+
}
|
|
457
|
+
var lane_over_causes = { table: table2, view };
|
|
458
|
+
|
|
459
|
+
// scripts/lane/lane-pairs.ts
|
|
460
|
+
var COLUMNS3 = ["group", "row", "runs", "total min"];
|
|
461
|
+
var NAMED_GROUP = "named files";
|
|
462
|
+
var UNSPLIT_GROUP = "unsplit";
|
|
463
|
+
var HUB_GROUP = "over-cap hub";
|
|
464
|
+
var FEW_FILES = 50;
|
|
465
|
+
var MANY_FILES = 1e3;
|
|
466
|
+
var DETAIL_LEAD = ": ";
|
|
467
|
+
function is_few(named) {
|
|
468
|
+
return named < FEW_FILES;
|
|
469
|
+
}
|
|
470
|
+
function is_many(named) {
|
|
471
|
+
return named > MANY_FILES;
|
|
472
|
+
}
|
|
473
|
+
function is_between(named) {
|
|
474
|
+
return !is_few(named) && !is_many(named);
|
|
475
|
+
}
|
|
476
|
+
var BUCKETS = [
|
|
477
|
+
{ label: `<${String(FEW_FILES)}`, holds: is_few },
|
|
478
|
+
{ label: `${String(FEW_FILES)}-${String(MANY_FILES)}`, holds: is_between },
|
|
479
|
+
{ label: `>${String(MANY_FILES)}`, holds: is_many }
|
|
480
|
+
];
|
|
481
|
+
function is_pair_lap(entry) {
|
|
482
|
+
return entry.kind === lane_ledger.KIND.SHIP_LAP && entry.step === run_ship_lap.STEP.SCOPED_PAIR;
|
|
483
|
+
}
|
|
484
|
+
function is_capped(entry) {
|
|
485
|
+
return entry.kind === lane_ledger.KIND.TEST_RELATED && entry.over_cap_hub !== void 0;
|
|
486
|
+
}
|
|
487
|
+
function bucket_of({ named }) {
|
|
488
|
+
if (named === void 0) return void 0;
|
|
489
|
+
return BUCKETS.find((bucket) => bucket.holds(named))?.label;
|
|
490
|
+
}
|
|
491
|
+
function reason_of({ unsplit }) {
|
|
492
|
+
return unsplit?.split(DETAIL_LEAD)[0];
|
|
493
|
+
}
|
|
494
|
+
function hub_of({ over_cap_hub }) {
|
|
495
|
+
return over_cap_hub;
|
|
496
|
+
}
|
|
497
|
+
function added(was, ms) {
|
|
498
|
+
return { runs: (was?.runs ?? 0) + 1, ms: (was?.ms ?? 0) + ms };
|
|
499
|
+
}
|
|
500
|
+
function tally(rows, key_of, seed = []) {
|
|
501
|
+
const tallies = new Map(seed.map((name) => [name, { runs: 0, ms: 0 }]));
|
|
502
|
+
for (const row of rows) {
|
|
503
|
+
const key = key_of(row);
|
|
504
|
+
if (key !== void 0) tallies.set(key, added(tallies.get(key), row.elapsed_ms));
|
|
505
|
+
}
|
|
506
|
+
return tallies;
|
|
507
|
+
}
|
|
508
|
+
function ranked(tallies) {
|
|
509
|
+
return new Map([...tallies].toSorted((left, right) => right[1].ms - left[1].ms));
|
|
510
|
+
}
|
|
511
|
+
function group_rows(group2, tallies) {
|
|
512
|
+
return [...tallies].map(
|
|
513
|
+
([name, { runs, ms }]) => lane_stats.to_row([group2, name, String(runs), lane_stage_stats.cell(ms)])
|
|
514
|
+
);
|
|
515
|
+
}
|
|
516
|
+
function table3(entries, window) {
|
|
517
|
+
const period = lane_stats.in_window(entries, window);
|
|
518
|
+
const laps = period.filter((entry) => is_pair_lap(entry));
|
|
519
|
+
const capped = period.filter((entry) => is_capped(entry));
|
|
520
|
+
const labels = BUCKETS.map((bucket) => bucket.label);
|
|
521
|
+
return [
|
|
522
|
+
lane_stats.to_row(COLUMNS3),
|
|
523
|
+
lane_stats.to_row(COLUMNS3.map(() => "---")),
|
|
524
|
+
...group_rows(NAMED_GROUP, tally(laps, bucket_of, labels)),
|
|
525
|
+
...group_rows(UNSPLIT_GROUP, ranked(tally(laps, reason_of))),
|
|
526
|
+
...group_rows(HUB_GROUP, ranked(tally(capped, hub_of)))
|
|
527
|
+
].join("\n");
|
|
528
|
+
}
|
|
529
|
+
var lane_pairs = { table: table3 };
|
|
530
|
+
|
|
531
|
+
// scripts/lane/lane-chain-stop-stats.ts
|
|
532
|
+
var COLUMNS4 = ["stopped at", "stops", "to re-run (min)", "median (min)", "not re-run"];
|
|
533
|
+
var JOIN_SUFFIX = " --join";
|
|
534
|
+
var { NOT_MEASURED, is_number } = lane_stage_stats;
|
|
535
|
+
var NONE_ROW = ["none", "0", NOT_MEASURED, NOT_MEASURED, "0"];
|
|
536
|
+
function is_chain(entry) {
|
|
537
|
+
return entry.kind === lane_ledger.KIND.CHAIN;
|
|
538
|
+
}
|
|
539
|
+
function started_ms(chain) {
|
|
540
|
+
return Date.parse(chain.at) - chain.elapsed_ms;
|
|
541
|
+
}
|
|
542
|
+
function wait_ms2(stop, runs) {
|
|
543
|
+
const stopped_ms = Date.parse(stop.at);
|
|
544
|
+
const starts = runs.filter((run2) => run2.issue === stop.issue).map((run2) => started_ms(run2)).filter((at) => at >= stopped_ms);
|
|
545
|
+
return starts.length === 0 ? void 0 : Math.min(...starts) - stopped_ms;
|
|
546
|
+
}
|
|
547
|
+
function cause_of(chain) {
|
|
548
|
+
if (chain.stage === void 0 || chain.reason === void 0) return void 0;
|
|
549
|
+
return `${chain.stage}${chain.join ? JOIN_SUFFIX : ""} (${chain.reason})`;
|
|
550
|
+
}
|
|
551
|
+
function stops_of(period, runs) {
|
|
552
|
+
return period.flatMap((chain) => {
|
|
553
|
+
const cause = cause_of(chain);
|
|
554
|
+
return cause === void 0 ? [] : { cause, wait_ms: wait_ms2(chain, runs) };
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
function total(values) {
|
|
558
|
+
return values.reduce((sum2, value3) => sum2 + value3, 0);
|
|
559
|
+
}
|
|
560
|
+
function waits_of(stops, cause) {
|
|
561
|
+
return stops.filter((stop) => stop.cause === cause).map((stop) => stop.wait_ms).filter((value3) => is_number(value3));
|
|
562
|
+
}
|
|
563
|
+
function cause_row(cause, stops) {
|
|
564
|
+
const waits = waits_of(stops, cause);
|
|
565
|
+
const count = stops.filter((stop) => stop.cause === cause).length;
|
|
566
|
+
return lane_stats.to_row([
|
|
567
|
+
cause,
|
|
568
|
+
String(count),
|
|
569
|
+
lane_stage_stats.cell(waits.length === 0 ? void 0 : total(waits)),
|
|
570
|
+
lane_stage_stats.cell(lane_stats.median(waits)),
|
|
571
|
+
String(count - waits.length)
|
|
572
|
+
]);
|
|
573
|
+
}
|
|
574
|
+
function causes_of2(stops) {
|
|
575
|
+
const causes = [...new Set(stops.map((stop) => stop.cause))];
|
|
576
|
+
return causes.toSorted(
|
|
577
|
+
(left, right) => total(waits_of(stops, right)) - total(waits_of(stops, left))
|
|
578
|
+
);
|
|
579
|
+
}
|
|
580
|
+
function table4(entries, window) {
|
|
581
|
+
const stops = stops_of(
|
|
582
|
+
lane_stats.in_window(entries, window).filter(is_chain),
|
|
583
|
+
entries.filter(is_chain)
|
|
584
|
+
);
|
|
585
|
+
const rows = causes_of2(stops).map((cause) => cause_row(cause, stops));
|
|
586
|
+
return [
|
|
587
|
+
lane_stats.to_row(COLUMNS4),
|
|
588
|
+
lane_stats.to_row(COLUMNS4.map(() => "---")),
|
|
589
|
+
...rows.length === 0 ? [lane_stats.to_row(NONE_ROW)] : rows
|
|
590
|
+
].join("\n");
|
|
591
|
+
}
|
|
592
|
+
var lane_chain_stop_stats = { table: table4 };
|
|
593
|
+
|
|
594
|
+
// scripts/lane/lane-claim-stats.ts
|
|
595
|
+
var DECIMALS = 1;
|
|
596
|
+
var COLUMNS5 = [
|
|
597
|
+
"check",
|
|
598
|
+
"claim",
|
|
599
|
+
"runs",
|
|
600
|
+
"cores median",
|
|
601
|
+
"cores p90",
|
|
602
|
+
"cores max",
|
|
603
|
+
"wait (s)"
|
|
604
|
+
];
|
|
605
|
+
var { NOT_MEASURED: NOT_MEASURED2 } = lane_stage_stats;
|
|
606
|
+
function is_gate(entry) {
|
|
607
|
+
return entry.kind === lane_ledger.KIND.GATE;
|
|
608
|
+
}
|
|
609
|
+
function is_measured(check) {
|
|
610
|
+
return check.is_reused !== true && check.cpu_ms !== void 0 && check.elapsed_ms > 0;
|
|
611
|
+
}
|
|
612
|
+
function number_cell(value3) {
|
|
613
|
+
return value3 === void 0 ? NOT_MEASURED2 : value3.toFixed(DECIMALS);
|
|
614
|
+
}
|
|
615
|
+
function seconds_cell(milliseconds) {
|
|
616
|
+
return number_cell(milliseconds === void 0 ? void 0 : milliseconds / MS_PER_SECOND);
|
|
617
|
+
}
|
|
618
|
+
function total2(values) {
|
|
619
|
+
return values.reduce((sum2, value3) => sum2 + value3, 0);
|
|
620
|
+
}
|
|
621
|
+
function check_row(label, checks) {
|
|
622
|
+
const runs = checks.filter((check) => check.label === label);
|
|
623
|
+
const cores2 = runs.map((check) => check.cpu_ms / check.elapsed_ms);
|
|
624
|
+
const claims = runs.map((check) => check.claim).filter((claim) => claim !== void 0);
|
|
625
|
+
const requested = claims.map((claim) => claim.requested);
|
|
626
|
+
const waited_ms = claims.length === 0 ? void 0 : total2(claims.map((claim) => claim.waited_ms));
|
|
627
|
+
return lane_stats.to_row([
|
|
628
|
+
label,
|
|
629
|
+
number_cell(lane_stats.median(requested)),
|
|
630
|
+
String(runs.length),
|
|
631
|
+
number_cell(lane_stats.median(cores2)),
|
|
632
|
+
number_cell(lane_tail_stats.tail_minutes(cores2)),
|
|
633
|
+
number_cell(lane_stats.peak(cores2)),
|
|
634
|
+
seconds_cell(waited_ms)
|
|
635
|
+
]);
|
|
636
|
+
}
|
|
637
|
+
function table5(entries, window) {
|
|
638
|
+
const gates = lane_stats.in_window(entries, window).filter(is_gate);
|
|
639
|
+
const checks = gates.flatMap((gate) => gate.checks ?? []).filter(is_measured);
|
|
640
|
+
const labels = [...new Set(checks.map((check) => check.label))];
|
|
641
|
+
const header = [lane_stats.to_row(COLUMNS5), lane_stats.to_row(COLUMNS5.map(() => "---"))];
|
|
642
|
+
return [...header, ...labels.map((label) => check_row(label, checks))].join("\n");
|
|
643
|
+
}
|
|
644
|
+
var lane_claim_stats = { table: table5 };
|
|
645
|
+
|
|
646
|
+
// scripts/lane/lane-concurrency-stats.ts
|
|
647
|
+
var TIMED_COMMANDS = ["lint:related", "test:related"];
|
|
648
|
+
var SAMPLE_MAX_AGE_MINUTES = 5;
|
|
649
|
+
var SAMPLE_MAX_AGE_MS = SAMPLE_MAX_AGE_MINUTES * MS_PER_MINUTE;
|
|
650
|
+
var DECIMALS2 = 1;
|
|
651
|
+
var COLUMNS6 = [
|
|
652
|
+
"concurrent lanes",
|
|
653
|
+
...TIMED_COMMANDS.flatMap((name) => [`${name} runs`, `${name} median (s)`])
|
|
654
|
+
];
|
|
655
|
+
function is_counted(entry) {
|
|
656
|
+
return entry.kind === lane_ledger.KIND.LOAD && entry.lanes !== void 0;
|
|
657
|
+
}
|
|
658
|
+
function samples_of(entries) {
|
|
659
|
+
return entries.filter(is_counted).map((entry) => ({ at_ms: Date.parse(entry.at), lanes: entry.lanes })).toSorted((left, right) => left.at_ms - right.at_ms);
|
|
660
|
+
}
|
|
661
|
+
function lanes_at(samples, started_ms2) {
|
|
662
|
+
const sample = samples.findLast((candidate) => candidate.at_ms <= started_ms2);
|
|
663
|
+
return sample !== void 0 && started_ms2 - sample.at_ms <= SAMPLE_MAX_AGE_MS ? sample.lanes : void 0;
|
|
664
|
+
}
|
|
665
|
+
function timed_run(name, call, lanes) {
|
|
666
|
+
if (lanes === void 0 || call.duration_ms === void 0) return [];
|
|
667
|
+
return [{ name, lanes, ms: call.duration_ms }];
|
|
668
|
+
}
|
|
669
|
+
function timed_runs(calls, samples) {
|
|
670
|
+
return TIMED_COMMANDS.flatMap(
|
|
671
|
+
(name) => lane_transcript_stats.solo_calls(calls, name).flatMap((call) => timed_run(name, call, lanes_at(samples, call.started_ms)))
|
|
672
|
+
);
|
|
673
|
+
}
|
|
674
|
+
function seconds_cell2(values) {
|
|
675
|
+
const median = lane_stats.median(values);
|
|
676
|
+
return median === void 0 ? lane_stage_stats.NOT_MEASURED : (median / MS_PER_SECOND).toFixed(DECIMALS2);
|
|
677
|
+
}
|
|
678
|
+
function lane_row2(lanes, runs) {
|
|
679
|
+
const at_count = runs.filter((run2) => run2.lanes === lanes);
|
|
680
|
+
const cells = TIMED_COMMANDS.flatMap((name) => {
|
|
681
|
+
const durations = at_count.filter((run2) => run2.name === name).map((run2) => run2.ms);
|
|
682
|
+
return [String(durations.length), seconds_cell2(durations)];
|
|
683
|
+
});
|
|
684
|
+
return lane_stats.to_row([String(lanes), ...cells]);
|
|
685
|
+
}
|
|
686
|
+
function table6(entries, calls, window) {
|
|
687
|
+
const runs = timed_runs(lane_transcript_stats.in_period(calls, window), samples_of(entries));
|
|
688
|
+
const counts = [...new Set(runs.map((run2) => run2.lanes))].toSorted((left, right) => left - right);
|
|
689
|
+
return [
|
|
690
|
+
lane_stats.to_row(COLUMNS6),
|
|
691
|
+
lane_stats.to_row(COLUMNS6.map(() => "---")),
|
|
692
|
+
...counts.map((lanes) => lane_row2(lanes, runs))
|
|
693
|
+
].join("\n");
|
|
694
|
+
}
|
|
695
|
+
var lane_concurrency_stats = { table: table6 };
|
|
696
|
+
|
|
697
|
+
// scripts/lane/lane-core-wait-stats.ts
|
|
698
|
+
var COLUMNS7 = ["lane", "total (min)", "median (min)", "waits"];
|
|
699
|
+
var OUTSIDE_A_LANE = "outside a lane";
|
|
700
|
+
var { NOT_MEASURED: NOT_MEASURED3 } = lane_stage_stats;
|
|
701
|
+
var NONE_ROW2 = ["none", NOT_MEASURED3, NOT_MEASURED3, "0"];
|
|
702
|
+
function is_core_wait(entry) {
|
|
703
|
+
return entry.kind === lane_ledger.KIND.CORE_WAIT;
|
|
704
|
+
}
|
|
705
|
+
function lane_of(wait) {
|
|
706
|
+
return wait.issue === void 0 ? OUTSIDE_A_LANE : String(wait.issue);
|
|
707
|
+
}
|
|
708
|
+
function total3(values) {
|
|
709
|
+
return values.reduce((sum2, value3) => sum2 + value3, 0);
|
|
710
|
+
}
|
|
711
|
+
function waits_of2(waits, lane) {
|
|
712
|
+
return waits.filter((wait) => lane_of(wait) === lane).map((wait) => wait.waited_ms);
|
|
713
|
+
}
|
|
714
|
+
function lane_row3(lane, waits) {
|
|
715
|
+
const waited = waits_of2(waits, lane);
|
|
716
|
+
return lane_stats.to_row([
|
|
717
|
+
lane,
|
|
718
|
+
lane_stage_stats.cell(total3(waited)),
|
|
719
|
+
lane_stage_stats.cell(lane_stats.median(waited)),
|
|
720
|
+
String(waited.length)
|
|
721
|
+
]);
|
|
722
|
+
}
|
|
723
|
+
function lanes_of(waits) {
|
|
724
|
+
const lanes = [...new Set(waits.map((wait) => lane_of(wait)))];
|
|
725
|
+
return lanes.toSorted(
|
|
726
|
+
(left, right) => total3(waits_of2(waits, right)) - total3(waits_of2(waits, left))
|
|
727
|
+
);
|
|
728
|
+
}
|
|
729
|
+
function table7(entries, window) {
|
|
730
|
+
const waits = lane_stats.in_window(entries, window).filter((entry) => is_core_wait(entry));
|
|
731
|
+
const rows = lanes_of(waits).map((lane) => lane_row3(lane, waits));
|
|
732
|
+
return [
|
|
733
|
+
lane_stats.to_row(COLUMNS7),
|
|
734
|
+
lane_stats.to_row(COLUMNS7.map(() => "---")),
|
|
735
|
+
...rows.length === 0 ? [lane_stats.to_row(NONE_ROW2)] : rows
|
|
736
|
+
].join("\n");
|
|
737
|
+
}
|
|
738
|
+
var lane_core_wait_stats = { table: table7 };
|
|
739
|
+
|
|
740
|
+
// scripts/lane/lane-early-push-stats.ts
|
|
741
|
+
var COLUMNS8 = ["early push", "result", "decisions"];
|
|
742
|
+
function table8(entries, window) {
|
|
743
|
+
const counts = /* @__PURE__ */ new Map();
|
|
744
|
+
for (const entry of lane_stats.in_window(entries, window)) {
|
|
745
|
+
if (entry.kind !== "early-push") continue;
|
|
746
|
+
const key = lane_stats.to_row([entry.source, entry.result]);
|
|
747
|
+
counts.set(key, (counts.get(key) ?? 0) + 1);
|
|
748
|
+
}
|
|
749
|
+
const rows = [...counts].map(([key, count]) => `${key} ${String(count)} |`);
|
|
750
|
+
return [lane_stats.to_row(COLUMNS8), lane_stats.to_row(COLUMNS8.map(() => "---")), ...rows].join(
|
|
751
|
+
"\n"
|
|
752
|
+
);
|
|
753
|
+
}
|
|
754
|
+
var lane_early_push_stats = { table: table8 };
|
|
755
|
+
|
|
756
|
+
// scripts/lane/lane-gap-stats.ts
|
|
757
|
+
var COLUMNS9 = ["gap", "count", "median (s)", "max (s)", "not ended"];
|
|
758
|
+
var RELAUNCH = "cut \u2192 resume";
|
|
759
|
+
var OUTAGE = "outage \u2192 relaunch";
|
|
760
|
+
var PARK = "park \u2192 offer";
|
|
761
|
+
var YIELD = "yield \u2192 redispatch";
|
|
762
|
+
var YIELD_PART = {
|
|
763
|
+
HOLDER: "yield: holder running",
|
|
764
|
+
OFFER: "yield: offer wait",
|
|
765
|
+
LAUNCH: "yield: launch",
|
|
766
|
+
UNKNOWN: "yield: holder unknown"
|
|
767
|
+
};
|
|
768
|
+
var MERGE = "followup \u2192 merge";
|
|
769
|
+
var FIRST_LANE = "start \u2192 first lane";
|
|
770
|
+
var FOLLOWUP_STAGE = "followup";
|
|
771
|
+
var IMPLEMENTATION_CUT = `cut (${agent_profile_schema.IMPLEMENTATION_PHASE})`;
|
|
772
|
+
var { NOT_MEASURED: NOT_MEASURED4, is_dispatch, is_merge, is_number: is_number2, is_stage } = lane_stage_stats;
|
|
773
|
+
var { EVENT_KIND } = run_event_stream;
|
|
774
|
+
var OFFER_ANSWERS = /* @__PURE__ */ new Set([
|
|
775
|
+
lane_ledger.KIND.HELD,
|
|
776
|
+
lane_ledger.KIND.RELEASED
|
|
777
|
+
]);
|
|
778
|
+
function implementation_cuts(events) {
|
|
779
|
+
return events.filter((event) => event.text.endsWith(IMPLEMENTATION_CUT));
|
|
780
|
+
}
|
|
781
|
+
function relaunch_spans(events) {
|
|
782
|
+
return lane_spans.issue_spans({
|
|
783
|
+
starts: lane_stop_stats.events_of(implementation_cuts(events), EVENT_KIND.CUT),
|
|
784
|
+
bounds: lane_stop_stats.events_of(events, EVENT_KIND.CUT),
|
|
785
|
+
ends: lane_stop_stats.events_of(events, EVENT_KIND.RESUME)
|
|
786
|
+
});
|
|
787
|
+
}
|
|
788
|
+
function outage_spans(events) {
|
|
789
|
+
const outages = lane_stop_stats.events_of(events, EVENT_KIND.OUTAGE);
|
|
790
|
+
return lane_spans.issue_spans({
|
|
791
|
+
starts: outages,
|
|
792
|
+
bounds: outages,
|
|
793
|
+
ends: lane_stop_stats.events_of(events, EVENT_KIND.CHILD_LAUNCH)
|
|
794
|
+
});
|
|
795
|
+
}
|
|
796
|
+
function is_offer_answer(entry) {
|
|
797
|
+
if (entry.kind === lane_ledger.KIND.HELD) return !lane_hand_back_held.is_driverless(entry.reason);
|
|
798
|
+
return is_dispatch(entry) || OFFER_ANSWERS.has(entry.kind);
|
|
799
|
+
}
|
|
800
|
+
function offer_times(entries) {
|
|
801
|
+
return entries.filter((entry) => is_offer_answer(entry)).map((entry) => Date.parse(entry.at)).toSorted((left, right) => left - right);
|
|
802
|
+
}
|
|
803
|
+
function park_spans(entries, events) {
|
|
804
|
+
const offers = offer_times(entries);
|
|
805
|
+
return lane_stop_stats.events_of(events, EVENT_KIND.PARK).map((park) => ({ from_ms: park.at_ms, end_ms: offers.find((at) => at > park.at_ms) }));
|
|
806
|
+
}
|
|
807
|
+
function is_followup_of(entry, merge) {
|
|
808
|
+
return is_stage(entry) && entry.stage === FOLLOWUP_STAGE && entry.issue === merge.issue && entry.at <= merge.at;
|
|
809
|
+
}
|
|
810
|
+
function merge_span(entries, merge) {
|
|
811
|
+
const followup = entries.findLast((entry) => is_followup_of(entry, merge));
|
|
812
|
+
return followup === void 0 ? void 0 : { from_ms: Date.parse(followup.at), end_ms: Date.parse(merge.at) };
|
|
813
|
+
}
|
|
814
|
+
function merge_spans(entries) {
|
|
815
|
+
return entries.filter((entry) => is_merge(entry)).map((merge) => merge_span(entries, merge)).filter((span) => span !== void 0);
|
|
816
|
+
}
|
|
817
|
+
function seconds(milliseconds) {
|
|
818
|
+
return milliseconds === void 0 ? NOT_MEASURED4 : String(Math.round(milliseconds / MS_PER_SECOND));
|
|
819
|
+
}
|
|
820
|
+
function is_in(span, window) {
|
|
821
|
+
return span.from_ms >= window.since_ms && span.from_ms <= window.until_ms;
|
|
822
|
+
}
|
|
823
|
+
function span_row(name, started) {
|
|
824
|
+
const ended = started.map((span) => span.end_ms === void 0 ? void 0 : span.end_ms - span.from_ms).filter((value3) => is_number2(value3));
|
|
825
|
+
return lane_stats.to_row([
|
|
826
|
+
name,
|
|
827
|
+
String(started.length),
|
|
828
|
+
seconds(lane_stats.median(ended)),
|
|
829
|
+
seconds(lane_stats.peak(ended)),
|
|
830
|
+
String(started.length - ended.length)
|
|
831
|
+
]);
|
|
832
|
+
}
|
|
833
|
+
function gap_row(name, spans, window) {
|
|
834
|
+
return span_row(
|
|
835
|
+
name,
|
|
836
|
+
spans.filter((span) => is_in(span, window))
|
|
837
|
+
);
|
|
838
|
+
}
|
|
839
|
+
function waits_of3(parts) {
|
|
840
|
+
return parts.map((part) => part.wait);
|
|
841
|
+
}
|
|
842
|
+
function yield_rows(entries, events, window) {
|
|
843
|
+
const inside = lane_yield_split.parts(entries, events).filter((part) => is_in(part.wait, window));
|
|
844
|
+
const unknown = inside.filter((part) => part.holder === void 0);
|
|
845
|
+
return [
|
|
846
|
+
span_row(YIELD, waits_of3(inside)),
|
|
847
|
+
span_row(
|
|
848
|
+
YIELD_PART.HOLDER,
|
|
849
|
+
inside.flatMap((part) => part.holder ?? [])
|
|
850
|
+
),
|
|
851
|
+
span_row(
|
|
852
|
+
YIELD_PART.OFFER,
|
|
853
|
+
inside.flatMap((part) => part.offer ?? [])
|
|
854
|
+
),
|
|
855
|
+
span_row(
|
|
856
|
+
YIELD_PART.LAUNCH,
|
|
857
|
+
inside.flatMap((part) => part.launch ?? [])
|
|
858
|
+
),
|
|
859
|
+
span_row(YIELD_PART.UNKNOWN, waits_of3(unknown))
|
|
860
|
+
];
|
|
861
|
+
}
|
|
862
|
+
function table9(entries, window, events = []) {
|
|
863
|
+
return [
|
|
864
|
+
lane_stats.to_row(COLUMNS9),
|
|
865
|
+
lane_stats.to_row(COLUMNS9.map(() => "---")),
|
|
866
|
+
gap_row(RELAUNCH, relaunch_spans(events), window),
|
|
867
|
+
gap_row(OUTAGE, outage_spans(events), window),
|
|
868
|
+
gap_row(PARK, park_spans(entries, events), window),
|
|
869
|
+
...yield_rows(entries, events, window),
|
|
870
|
+
gap_row(MERGE, merge_spans(entries), window),
|
|
871
|
+
gap_row(FIRST_LANE, run_event_setup.first_lane_spans(events), window)
|
|
872
|
+
].join("\n");
|
|
873
|
+
}
|
|
874
|
+
var lane_gap_stats = { table: table9 };
|
|
875
|
+
|
|
876
|
+
// scripts/lane/lane-implement-read.ts
|
|
877
|
+
var READ_STAGE = "read";
|
|
878
|
+
var READ_TOOL = "Read";
|
|
879
|
+
var INVESTIGATOR = "investigator";
|
|
880
|
+
var WORD_BOUNDARY = /[\s`'"()[\]{}<>*,;]+/u;
|
|
881
|
+
var CURRENT_DIRECTORY = "./";
|
|
882
|
+
var LINE_START = /^~?\d/u;
|
|
883
|
+
var FILE_NAME = /\.[a-z]+$/iu;
|
|
884
|
+
var SEPARATOR2 = "/";
|
|
885
|
+
var COLUMNS10 = [
|
|
886
|
+
"implement read",
|
|
887
|
+
"lanes",
|
|
888
|
+
"tool (min)",
|
|
889
|
+
"thinking (min)",
|
|
890
|
+
"files read",
|
|
891
|
+
"investigator-cited"
|
|
892
|
+
];
|
|
893
|
+
function is_investigator(call) {
|
|
894
|
+
return call.subagent?.type.endsWith(INVESTIGATOR) === true;
|
|
895
|
+
}
|
|
896
|
+
function citation_of(word) {
|
|
897
|
+
const colon = word.indexOf(":");
|
|
898
|
+
const cited = word.slice(0, Math.max(0, colon));
|
|
899
|
+
const path3 = cited.startsWith(CURRENT_DIRECTORY) ? cited.slice(CURRENT_DIRECTORY.length) : cited;
|
|
900
|
+
return FILE_NAME.test(path3) && LINE_START.test(word.slice(colon + 1)) ? path3 : void 0;
|
|
901
|
+
}
|
|
902
|
+
function cited_paths(calls) {
|
|
903
|
+
return calls.filter((call) => is_investigator(call)).flatMap((call) => call.output.split(WORD_BOUNDARY)).flatMap((word) => citation_of(word) ?? []);
|
|
904
|
+
}
|
|
905
|
+
function is_cited(file, cited) {
|
|
906
|
+
return cited.some((path3) => file === path3 || file.endsWith(`${SEPARATOR2}${path3}`));
|
|
907
|
+
}
|
|
908
|
+
function files_read(reads) {
|
|
909
|
+
const paths = reads.flatMap(({ call }) => call.tool === READ_TOOL ? call.file_path ?? [] : []);
|
|
910
|
+
return [...new Set(paths)];
|
|
911
|
+
}
|
|
912
|
+
function tool_ms(entry) {
|
|
913
|
+
return Math.min(entry.call.duration_ms ?? 0, entry.active_ms);
|
|
914
|
+
}
|
|
915
|
+
function sum(values) {
|
|
916
|
+
return values.reduce((total4, value3) => total4 + value3, 0);
|
|
917
|
+
}
|
|
918
|
+
function breakdown(lane) {
|
|
919
|
+
const reads = lane_implement_stats.staged(lane.calls, lane.paused).filter((entry) => entry.stage === READ_STAGE);
|
|
920
|
+
const tool = sum(reads.map((entry) => tool_ms(entry)));
|
|
921
|
+
const files = files_read(reads);
|
|
922
|
+
const cited = cited_paths(lane.calls);
|
|
923
|
+
return {
|
|
924
|
+
tool_ms: tool,
|
|
925
|
+
thinking_ms: sum(reads.map((entry) => entry.active_ms)) - tool,
|
|
926
|
+
files: files.length,
|
|
927
|
+
cited: files.filter((file) => is_cited(file, cited)).length
|
|
928
|
+
};
|
|
929
|
+
}
|
|
930
|
+
function count_cell(values) {
|
|
931
|
+
return String(lane_stats.median(values) ?? lane_stats.MISSING);
|
|
932
|
+
}
|
|
933
|
+
function read_row(breakdowns) {
|
|
934
|
+
return [
|
|
935
|
+
READ_STAGE,
|
|
936
|
+
String(breakdowns.length),
|
|
937
|
+
lane_stage_stats.cell(lane_stats.median(breakdowns.map((lane) => lane.tool_ms))),
|
|
938
|
+
lane_stage_stats.cell(lane_stats.median(breakdowns.map((lane) => lane.thinking_ms))),
|
|
939
|
+
count_cell(breakdowns.map((lane) => lane.files)),
|
|
940
|
+
count_cell(breakdowns.map((lane) => lane.cited))
|
|
941
|
+
];
|
|
942
|
+
}
|
|
943
|
+
function table10(calls, window, paused) {
|
|
944
|
+
const breakdowns = lane_implement_stats.implement_lanes(calls, window, paused).map((lane) => breakdown(lane));
|
|
945
|
+
return [
|
|
946
|
+
lane_stats.to_row(COLUMNS10),
|
|
947
|
+
lane_stats.to_row(COLUMNS10.map(() => "---")),
|
|
948
|
+
lane_stats.to_row(read_row(breakdowns))
|
|
949
|
+
].join("\n");
|
|
950
|
+
}
|
|
951
|
+
var lane_implement_read = { table: table10 };
|
|
952
|
+
|
|
953
|
+
// scripts/lane/lane-process-stats.ts
|
|
954
|
+
var RSS_PEAK = "rss peak (GB)";
|
|
955
|
+
var SAMPLES = "samples";
|
|
956
|
+
var COLUMNS11 = [
|
|
957
|
+
"process",
|
|
958
|
+
"cpu mean (cores)",
|
|
959
|
+
"cpu peak (cores)",
|
|
960
|
+
RSS_PEAK,
|
|
961
|
+
"footprint peak (GB)",
|
|
962
|
+
SAMPLES
|
|
963
|
+
];
|
|
964
|
+
var RESIDENT_COLUMNS = ["resident apps", "rss median (GB)", RSS_PEAK, SAMPLES];
|
|
965
|
+
var RESIDENT_LABEL = "summed";
|
|
966
|
+
var PERCENT_PER_CORE = 100;
|
|
967
|
+
var MB_PER_GB = 1024;
|
|
968
|
+
var DECIMALS3 = 1;
|
|
969
|
+
function is_load(entry) {
|
|
970
|
+
return entry.kind === "load";
|
|
971
|
+
}
|
|
972
|
+
function group(samples) {
|
|
973
|
+
const rows = /* @__PURE__ */ new Map();
|
|
974
|
+
const readings = samples.flatMap((sample) => sample.processes ?? []);
|
|
975
|
+
for (const reading of readings) {
|
|
976
|
+
const row = rows.get(reading.kind) ?? { kind: reading.kind, readings: [] };
|
|
977
|
+
row.readings.push(reading);
|
|
978
|
+
rows.set(reading.kind, row);
|
|
979
|
+
}
|
|
980
|
+
return [...rows.values()];
|
|
981
|
+
}
|
|
982
|
+
function cores(readings) {
|
|
983
|
+
return readings.map((reading) => reading.cpu_percent / PERCENT_PER_CORE);
|
|
984
|
+
}
|
|
985
|
+
function mean_cores(row) {
|
|
986
|
+
return lane_stats.mean(cores(row.readings)) ?? 0;
|
|
987
|
+
}
|
|
988
|
+
function cell(value3) {
|
|
989
|
+
return value3 === void 0 ? lane_stats.MISSING : value3.toFixed(DECIMALS3);
|
|
990
|
+
}
|
|
991
|
+
function peak_gb(sizes) {
|
|
992
|
+
const peak = lane_stats.peak(sizes);
|
|
993
|
+
return peak === void 0 ? void 0 : peak / MB_PER_GB;
|
|
994
|
+
}
|
|
995
|
+
function kind_cells(row) {
|
|
996
|
+
return [
|
|
997
|
+
row.kind,
|
|
998
|
+
cell(mean_cores(row)),
|
|
999
|
+
cell(lane_stats.peak(cores(row.readings))),
|
|
1000
|
+
cell(peak_gb(row.readings.map((reading) => reading.rss_mb))),
|
|
1001
|
+
cell(peak_gb(row.readings.flatMap((reading) => reading.footprint_mb ?? []))),
|
|
1002
|
+
String(row.readings.length)
|
|
1003
|
+
];
|
|
1004
|
+
}
|
|
1005
|
+
function by_mean_cpu(left, right) {
|
|
1006
|
+
return mean_cores(right) - mean_cores(left);
|
|
1007
|
+
}
|
|
1008
|
+
function to_table(columns, rows) {
|
|
1009
|
+
return [
|
|
1010
|
+
lane_stats.to_row(columns),
|
|
1011
|
+
lane_stats.to_row(columns.map(() => "---")),
|
|
1012
|
+
...rows.map((row) => lane_stats.to_row(row))
|
|
1013
|
+
].join("\n");
|
|
1014
|
+
}
|
|
1015
|
+
function resident_tables(samples) {
|
|
1016
|
+
const sizes = samples.flatMap((sample) => sample.resident_mb ?? []);
|
|
1017
|
+
if (sizes.length === 0) return [];
|
|
1018
|
+
const gigabytes = sizes.map((size) => size / MB_PER_GB);
|
|
1019
|
+
const row = [RESIDENT_LABEL, cell(lane_stats.median(gigabytes)), cell(lane_stats.peak(gigabytes))];
|
|
1020
|
+
return [to_table(RESIDENT_COLUMNS, [[...row, String(sizes.length)]])];
|
|
1021
|
+
}
|
|
1022
|
+
function table11(entries, window) {
|
|
1023
|
+
const samples = lane_stats.in_window(entries, window).filter(is_load);
|
|
1024
|
+
const rows = group(samples).toSorted(by_mean_cpu);
|
|
1025
|
+
return [
|
|
1026
|
+
to_table(
|
|
1027
|
+
COLUMNS11,
|
|
1028
|
+
rows.map((row) => kind_cells(row))
|
|
1029
|
+
),
|
|
1030
|
+
...resident_tables(samples)
|
|
1031
|
+
].join("\n\n");
|
|
1032
|
+
}
|
|
1033
|
+
var lane_process_stats = { table: table11 };
|
|
1034
|
+
|
|
1035
|
+
// scripts/lane/lane-round-one-stats.ts
|
|
1036
|
+
var COLUMNS12 = ["round 1", "rounds", "share"];
|
|
1037
|
+
var VERDICTS = ["clean", "fixed", "blocking"];
|
|
1038
|
+
var { ROUND_ONE_REUSED: REUSED } = lane_ledger;
|
|
1039
|
+
var NO_SHARE = "-";
|
|
1040
|
+
var PERCENT = 100;
|
|
1041
|
+
function is_round_one(entry) {
|
|
1042
|
+
return entry.kind === lane_ledger.KIND.ROUND_ONE;
|
|
1043
|
+
}
|
|
1044
|
+
function count_of(rounds, verdict) {
|
|
1045
|
+
return rounds.filter((round) => round.verdict === verdict).length;
|
|
1046
|
+
}
|
|
1047
|
+
function share_of(count, ran) {
|
|
1048
|
+
if (ran === 0) return NO_SHARE;
|
|
1049
|
+
return `${String(Math.round(count * PERCENT / ran))}%`;
|
|
1050
|
+
}
|
|
1051
|
+
function table12(entries, window) {
|
|
1052
|
+
const rounds = lane_stats.in_window(entries, window).filter(is_round_one);
|
|
1053
|
+
const counts = VERDICTS.map((verdict) => count_of(rounds, verdict));
|
|
1054
|
+
const ran = counts.reduce((sum2, count) => sum2 + count, 0);
|
|
1055
|
+
const rows = VERDICTS.map((verdict, index) => {
|
|
1056
|
+
const count = counts[index] ?? 0;
|
|
1057
|
+
return lane_stats.to_row([verdict, String(count), share_of(count, ran)]);
|
|
1058
|
+
});
|
|
1059
|
+
return [
|
|
1060
|
+
lane_stats.to_row(COLUMNS12),
|
|
1061
|
+
lane_stats.to_row(COLUMNS12.map(() => "---")),
|
|
1062
|
+
...rows,
|
|
1063
|
+
lane_stats.to_row([REUSED, String(count_of(rounds, REUSED)), NO_SHARE]),
|
|
1064
|
+
lane_stats.to_row(["skipped", String(count_of(rounds, "skipped")), NO_SHARE])
|
|
1065
|
+
].join("\n");
|
|
1066
|
+
}
|
|
1067
|
+
var lane_round_one_stats = { table: table12 };
|
|
1068
|
+
|
|
1069
|
+
// scripts/lane/lane-round-two-stats.ts
|
|
1070
|
+
var COLUMNS13 = ["round 2", "code", "decisions"];
|
|
1071
|
+
var KEY_SEPARATOR = " ";
|
|
1072
|
+
var NONE_ROW3 = ["none", "none", "0"];
|
|
1073
|
+
function is_round_two(entry) {
|
|
1074
|
+
return entry.kind === lane_ledger.KIND.ROUND_TWO;
|
|
1075
|
+
}
|
|
1076
|
+
function counts_of(decisions) {
|
|
1077
|
+
const counts = /* @__PURE__ */ new Map();
|
|
1078
|
+
for (const decision of decisions) {
|
|
1079
|
+
const key = `${decision.verdict}${KEY_SEPARATOR}${decision.code}`;
|
|
1080
|
+
counts.set(key, (counts.get(key) ?? 0) + 1);
|
|
1081
|
+
}
|
|
1082
|
+
return counts;
|
|
1083
|
+
}
|
|
1084
|
+
function rows_of(counts) {
|
|
1085
|
+
return [...counts].toSorted(([, left], [, right]) => right - left).map(([key, count]) => lane_stats.to_row([...key.split(KEY_SEPARATOR), String(count)]));
|
|
1086
|
+
}
|
|
1087
|
+
function table13(entries, window) {
|
|
1088
|
+
const rows = rows_of(counts_of(lane_stats.in_window(entries, window).filter(is_round_two)));
|
|
1089
|
+
return [
|
|
1090
|
+
lane_stats.to_row(COLUMNS13),
|
|
1091
|
+
lane_stats.to_row(COLUMNS13.map(() => "---")),
|
|
1092
|
+
...rows.length === 0 ? [lane_stats.to_row(NONE_ROW3)] : rows
|
|
1093
|
+
].join("\n");
|
|
1094
|
+
}
|
|
1095
|
+
var lane_round_two_stats = { table: table13 };
|
|
1096
|
+
|
|
1097
|
+
// scripts/lane/lane-ship-lap-stats.ts
|
|
1098
|
+
var COLUMNS14 = ["ship step", "median (min)", "max (min)", "runs"];
|
|
1099
|
+
var STAGE_ORDER = lane_stage_stats.STAGES;
|
|
1100
|
+
function is_ship_lap(entry) {
|
|
1101
|
+
return entry.kind === lane_ledger.KIND.SHIP_LAP && entry.reused_tree === void 0;
|
|
1102
|
+
}
|
|
1103
|
+
function groups_of(laps) {
|
|
1104
|
+
const keys = [...new Map(laps.map((lap) => [`${lap.stage}
|
|
1105
|
+
${lap.step}`, lap])).values()];
|
|
1106
|
+
return keys.map(({ stage, step }) => ({
|
|
1107
|
+
stage,
|
|
1108
|
+
step,
|
|
1109
|
+
elapsed: laps.filter((lap) => lap.stage === stage && lap.step === step).map((lap) => lap.elapsed_ms)
|
|
1110
|
+
}));
|
|
1111
|
+
}
|
|
1112
|
+
function stage_rank(stage) {
|
|
1113
|
+
const index = STAGE_ORDER.indexOf(stage);
|
|
1114
|
+
return index === -1 ? STAGE_ORDER.length : index;
|
|
1115
|
+
}
|
|
1116
|
+
function compare(left, right) {
|
|
1117
|
+
const by_stage = stage_rank(left.stage) - stage_rank(right.stage);
|
|
1118
|
+
if (by_stage !== 0) return by_stage;
|
|
1119
|
+
return (lane_stats.median(right.elapsed) ?? 0) - (lane_stats.median(left.elapsed) ?? 0);
|
|
1120
|
+
}
|
|
1121
|
+
function row_of2(group2) {
|
|
1122
|
+
return lane_stats.to_row([
|
|
1123
|
+
`${group2.stage}: ${group2.step}`,
|
|
1124
|
+
lane_stage_stats.cell(lane_stats.median(group2.elapsed)),
|
|
1125
|
+
lane_stage_stats.cell(lane_stats.peak(group2.elapsed)),
|
|
1126
|
+
String(group2.elapsed.length)
|
|
1127
|
+
]);
|
|
1128
|
+
}
|
|
1129
|
+
function table14(entries, window) {
|
|
1130
|
+
const laps = lane_stats.in_window(entries, window).filter(is_ship_lap);
|
|
1131
|
+
const rows = groups_of(laps).toSorted(compare).map((group2) => row_of2(group2));
|
|
1132
|
+
return [...lane_check_stats.header(COLUMNS14), ...rows].join("\n");
|
|
1133
|
+
}
|
|
1134
|
+
var lane_ship_lap_stats = { table: table14 };
|
|
1135
|
+
|
|
1136
|
+
// scripts/lane/lane-split-stats.ts
|
|
1137
|
+
var COLUMNS15 = ["reason", "noticed lanes", "split"];
|
|
1138
|
+
var REASONS = ["files", "hunks", "lines", "hub", "diff", "budget"];
|
|
1139
|
+
var ALL = "all";
|
|
1140
|
+
function reason_of2(entry) {
|
|
1141
|
+
return entry.reason ?? "diff";
|
|
1142
|
+
}
|
|
1143
|
+
function row_of3(label, noticed, split) {
|
|
1144
|
+
const split_count = [...noticed].filter((issue) => split.has(issue)).length;
|
|
1145
|
+
return lane_stats.to_row([label, String(noticed.size), String(split_count)]);
|
|
1146
|
+
}
|
|
1147
|
+
function issues_of(notices, reason) {
|
|
1148
|
+
return new Set(
|
|
1149
|
+
notices.filter((entry) => reason === ALL || reason_of2(entry) === reason).map(({ issue }) => issue)
|
|
1150
|
+
);
|
|
1151
|
+
}
|
|
1152
|
+
function table15(entries, window) {
|
|
1153
|
+
const in_period = split_resolution.notices(lane_stats.in_window(entries, window));
|
|
1154
|
+
const split = split_resolution.split_issues(entries);
|
|
1155
|
+
const rows = [ALL, ...REASONS].map(
|
|
1156
|
+
(reason) => row_of3(reason, issues_of(in_period, reason), split)
|
|
1157
|
+
);
|
|
1158
|
+
return [lane_stats.to_row(COLUMNS15), lane_stats.to_row(COLUMNS15.map(() => "---")), ...rows].join(
|
|
1159
|
+
"\n"
|
|
1160
|
+
);
|
|
1161
|
+
}
|
|
1162
|
+
var lane_split_stats = { table: table15 };
|
|
1163
|
+
|
|
1164
|
+
// scripts/lane/lane-test-related-stats.ts
|
|
1165
|
+
var DECIMALS4 = 1;
|
|
1166
|
+
var RUNS_COLUMN = "runs";
|
|
1167
|
+
var SECONDS_COLUMN = "median (s)";
|
|
1168
|
+
var COLUMNS16 = [
|
|
1169
|
+
"test:related scope",
|
|
1170
|
+
RUNS_COLUMN,
|
|
1171
|
+
"changed",
|
|
1172
|
+
"synced",
|
|
1173
|
+
"since map",
|
|
1174
|
+
"readers",
|
|
1175
|
+
"test files",
|
|
1176
|
+
"select (s)",
|
|
1177
|
+
SECONDS_COLUMN
|
|
1178
|
+
];
|
|
1179
|
+
var TRIGGER_COLUMNS = ["test:related whole-suite trigger", RUNS_COLUMN, SECONDS_COLUMN];
|
|
1180
|
+
function is_test_related(entry) {
|
|
1181
|
+
return entry.kind === lane_ledger.KIND.TEST_RELATED;
|
|
1182
|
+
}
|
|
1183
|
+
function count_cell2(values) {
|
|
1184
|
+
const median = lane_stats.median(values);
|
|
1185
|
+
return median === void 0 ? lane_stage_stats.NOT_MEASURED : String(median);
|
|
1186
|
+
}
|
|
1187
|
+
function seconds_cell3(values) {
|
|
1188
|
+
const median = lane_stats.median(values);
|
|
1189
|
+
return median === void 0 ? lane_stage_stats.NOT_MEASURED : (median / MS_PER_SECOND).toFixed(DECIMALS4);
|
|
1190
|
+
}
|
|
1191
|
+
function median_of(runs, field) {
|
|
1192
|
+
return count_cell2(runs.map((run2) => run2[field]));
|
|
1193
|
+
}
|
|
1194
|
+
function scope_row(scope, entries) {
|
|
1195
|
+
const runs = entries.filter((entry) => entry.scope === scope);
|
|
1196
|
+
const test_files = runs.map((run2) => run2.test_files).filter((files) => files !== void 0);
|
|
1197
|
+
const selects = runs.map((run2) => run2.select_elapsed_ms).filter((ms) => ms !== void 0);
|
|
1198
|
+
return lane_stats.to_row([
|
|
1199
|
+
scope,
|
|
1200
|
+
String(runs.length),
|
|
1201
|
+
median_of(runs, "changed"),
|
|
1202
|
+
median_of(runs, "synced"),
|
|
1203
|
+
median_of(runs, "since_map"),
|
|
1204
|
+
median_of(runs, "readers"),
|
|
1205
|
+
count_cell2(test_files),
|
|
1206
|
+
seconds_cell3(selects),
|
|
1207
|
+
seconds_cell3(runs.map((run2) => run2.elapsed_ms))
|
|
1208
|
+
]);
|
|
1209
|
+
}
|
|
1210
|
+
function rows_under(columns, rows) {
|
|
1211
|
+
return [lane_stats.to_row(columns), lane_stats.to_row(columns.map(() => "---")), ...rows].join(
|
|
1212
|
+
"\n"
|
|
1213
|
+
);
|
|
1214
|
+
}
|
|
1215
|
+
function runs_in(entries, window) {
|
|
1216
|
+
return lane_stats.in_window(entries, window).filter(is_test_related);
|
|
1217
|
+
}
|
|
1218
|
+
function table16(entries, window) {
|
|
1219
|
+
const runs = runs_in(entries, window);
|
|
1220
|
+
const scopes = [...new Set(runs.map((run2) => run2.scope))];
|
|
1221
|
+
return rows_under(
|
|
1222
|
+
COLUMNS16,
|
|
1223
|
+
scopes.map((scope) => scope_row(scope, runs))
|
|
1224
|
+
);
|
|
1225
|
+
}
|
|
1226
|
+
function runs_sent_by(file, runs) {
|
|
1227
|
+
return { file, runs: runs.filter((run2) => run2.trigger_files?.includes(file) === true) };
|
|
1228
|
+
}
|
|
1229
|
+
function trigger_row({ file, runs }) {
|
|
1230
|
+
return lane_stats.to_row([
|
|
1231
|
+
file,
|
|
1232
|
+
String(runs.length),
|
|
1233
|
+
seconds_cell3(runs.map((run2) => run2.elapsed_ms))
|
|
1234
|
+
]);
|
|
1235
|
+
}
|
|
1236
|
+
function trigger_table(entries, window) {
|
|
1237
|
+
const runs = runs_in(entries, window);
|
|
1238
|
+
const files = [...new Set(runs.flatMap((run2) => run2.trigger_files ?? []))];
|
|
1239
|
+
const triggers = files.map((file) => runs_sent_by(file, runs)).toSorted((left, right) => right.runs.length - left.runs.length);
|
|
1240
|
+
return rows_under(
|
|
1241
|
+
TRIGGER_COLUMNS,
|
|
1242
|
+
triggers.map((trigger) => trigger_row(trigger))
|
|
1243
|
+
);
|
|
1244
|
+
}
|
|
1245
|
+
var lane_test_related_stats = { table: table16, trigger_table };
|
|
1246
|
+
|
|
1247
|
+
// scripts/lane/lane-turn-stats.ts
|
|
1248
|
+
var BETWEEN = "between stages";
|
|
1249
|
+
var NO_TRANSCRIPT = "no transcript";
|
|
1250
|
+
var NO_VALUE = "-";
|
|
1251
|
+
var COLUMNS17 = [
|
|
1252
|
+
"stage turns",
|
|
1253
|
+
"calls per lane (median)",
|
|
1254
|
+
"stops per lane (median)",
|
|
1255
|
+
"lanes"
|
|
1256
|
+
];
|
|
1257
|
+
var ROWS = [...lane_stage_stats.STAGES, BETWEEN];
|
|
1258
|
+
function is_issue_stage(entry) {
|
|
1259
|
+
return lane_stage_stats.is_stage(entry) && entry.issue !== void 0;
|
|
1260
|
+
}
|
|
1261
|
+
function is_lane_call(call) {
|
|
1262
|
+
return call.issue !== void 0;
|
|
1263
|
+
}
|
|
1264
|
+
function stage_intervals(entries) {
|
|
1265
|
+
return entries.filter((entry) => is_issue_stage(entry)).map((stage) => ({
|
|
1266
|
+
issue: stage.issue,
|
|
1267
|
+
stage: stage.stage,
|
|
1268
|
+
from_ms: lane_stage_stats.started_ms(stage),
|
|
1269
|
+
to_ms: Date.parse(stage.at)
|
|
1270
|
+
}));
|
|
1271
|
+
}
|
|
1272
|
+
function intervals_of(entries) {
|
|
1273
|
+
const implement = lane_stage_stats.implement_spans(entries).map(({ issue, from_ms, to_ms }) => ({
|
|
1274
|
+
issue,
|
|
1275
|
+
stage: lane_stage_stats.IMPLEMENT,
|
|
1276
|
+
from_ms,
|
|
1277
|
+
to_ms
|
|
1278
|
+
}));
|
|
1279
|
+
return [...implement, ...stage_intervals(entries)];
|
|
1280
|
+
}
|
|
1281
|
+
function span_ms(interval) {
|
|
1282
|
+
return interval.to_ms - interval.from_ms;
|
|
1283
|
+
}
|
|
1284
|
+
function stage_of(at_ms, issue, intervals) {
|
|
1285
|
+
const holding = intervals.filter(
|
|
1286
|
+
(interval) => interval.issue === issue && at_ms >= interval.from_ms && at_ms <= interval.to_ms
|
|
1287
|
+
);
|
|
1288
|
+
return holding.toSorted((left, right) => span_ms(left) - span_ms(right))[0]?.stage ?? BETWEEN;
|
|
1289
|
+
}
|
|
1290
|
+
function issue_stages(calls, intervals) {
|
|
1291
|
+
return calls.map((call) => ({ issue: lane_paused_spans.issue_of_lane(call.lane), at_ms: call.started_ms })).filter((call) => is_lane_call(call)).map(({ issue, at_ms }) => ({ issue, stage: stage_of(at_ms, issue, intervals) }));
|
|
1292
|
+
}
|
|
1293
|
+
function lane_stops(entries, issue) {
|
|
1294
|
+
return entries.filter((entry) => entry.kind === lane_ledger.KIND.STOP).filter((stop) => stop.issue === issue).map(
|
|
1295
|
+
(stop) => stop.reason === run_ship_stage.CONFLICT ? run_ship_stage.STAGE.SYNC : stop.reason
|
|
1296
|
+
);
|
|
1297
|
+
}
|
|
1298
|
+
function lanes_of2(entries, calls) {
|
|
1299
|
+
const stages = issue_stages(calls, intervals_of(entries));
|
|
1300
|
+
const dispatches = entries.filter((entry) => lane_stage_stats.is_dispatch(entry));
|
|
1301
|
+
const dispatched = new Set(dispatches.map(({ issue }) => issue));
|
|
1302
|
+
const measured = [...dispatched].map((issue) => stages.filter((call) => call.issue === issue).map(({ stage }) => stage)).filter((lane) => lane.length > 0);
|
|
1303
|
+
const stops = [...dispatched].map((issue) => lane_stops(entries, issue));
|
|
1304
|
+
return { measured, stops, without: dispatched.size - measured.length };
|
|
1305
|
+
}
|
|
1306
|
+
function median_count(stage, lanes) {
|
|
1307
|
+
const counts = lanes.map((lane) => lane.filter((name) => name === stage).length);
|
|
1308
|
+
const median = lane_stats.median(counts);
|
|
1309
|
+
return median === void 0 ? lane_stage_stats.NOT_MEASURED : String(median);
|
|
1310
|
+
}
|
|
1311
|
+
function stage_row(stage, lanes) {
|
|
1312
|
+
return lane_stats.to_row([
|
|
1313
|
+
stage,
|
|
1314
|
+
median_count(stage, lanes.measured),
|
|
1315
|
+
median_count(stage, lanes.stops),
|
|
1316
|
+
String(lanes.measured.length)
|
|
1317
|
+
]);
|
|
1318
|
+
}
|
|
1319
|
+
function table17(entries, calls, window) {
|
|
1320
|
+
const lanes = lanes_of2(
|
|
1321
|
+
lane_stats.in_window(entries, window),
|
|
1322
|
+
lane_transcript_stats.in_period(calls, window)
|
|
1323
|
+
);
|
|
1324
|
+
return [
|
|
1325
|
+
lane_stats.to_row(COLUMNS17),
|
|
1326
|
+
lane_stats.to_row(COLUMNS17.map(() => "---")),
|
|
1327
|
+
...ROWS.map((stage) => stage_row(stage, lanes)),
|
|
1328
|
+
lane_stats.to_row([NO_TRANSCRIPT, NO_VALUE, NO_VALUE, String(lanes.without)])
|
|
1329
|
+
].join("\n");
|
|
1330
|
+
}
|
|
1331
|
+
var lane_turn_stats = { table: table17 };
|
|
1332
|
+
|
|
1333
|
+
// scripts/lane/lane-stats-tables.ts
|
|
1334
|
+
function call_tables(entries, calls, window) {
|
|
1335
|
+
const paused = lane_paused_spans.by_lane(entries);
|
|
1336
|
+
return [
|
|
1337
|
+
lane_implement_stats.table(calls, window, paused),
|
|
1338
|
+
lane_implement_read.table(calls, window, paused),
|
|
1339
|
+
lane_turn_stats.table(entries, calls, window)
|
|
1340
|
+
];
|
|
1341
|
+
}
|
|
1342
|
+
function stop_tables(entries, events, window) {
|
|
1343
|
+
return [
|
|
1344
|
+
lane_stop_stats.table(entries, window, events),
|
|
1345
|
+
lane_chain_stop_stats.table(entries, window),
|
|
1346
|
+
lane_gap_stats.table(entries, window, events),
|
|
1347
|
+
lane_cut_stats.table(entries, window, events)
|
|
1348
|
+
];
|
|
1349
|
+
}
|
|
1350
|
+
function tables_of({ entries, events, calls }, window) {
|
|
1351
|
+
return [
|
|
1352
|
+
lane_stage_stats.table(entries, window),
|
|
1353
|
+
lane_ship_lap_stats.table(entries, window),
|
|
1354
|
+
lane_ci_path_stats.table(entries, window),
|
|
1355
|
+
...call_tables(entries, calls, window),
|
|
1356
|
+
...stop_tables(entries, events, window),
|
|
1357
|
+
lane_round_one_stats.table(entries, window),
|
|
1358
|
+
lane_round_two_stats.table(entries, window),
|
|
1359
|
+
lane_early_push_stats.table(entries, window),
|
|
1360
|
+
lane_split_stats.table(entries, window),
|
|
1361
|
+
lane_size_stats.table(entries, window),
|
|
1362
|
+
lane_implement_rate.table(entries, window),
|
|
1363
|
+
lane_held_stats.table(entries, window),
|
|
1364
|
+
lane_core_wait_stats.table(entries, window),
|
|
1365
|
+
lane_process_stats.table(entries, window),
|
|
1366
|
+
lane_check_stats.table(entries, window),
|
|
1367
|
+
lane_claim_stats.table(entries, window),
|
|
1368
|
+
lane_test_related_stats.table(entries, window),
|
|
1369
|
+
lane_test_related_stats.trigger_table(entries, window),
|
|
1370
|
+
lane_transcript_stats.table(calls, window),
|
|
1371
|
+
lane_concurrency_stats.table(entries, calls, window)
|
|
1372
|
+
];
|
|
1373
|
+
}
|
|
1374
|
+
var lane_stats_tables = { tables_of };
|
|
1375
|
+
|
|
1376
|
+
// scripts/lane/lane-value.ts
|
|
1377
|
+
var LINT_RELATED = "lint:related";
|
|
1378
|
+
var SHIP = "ship";
|
|
1379
|
+
var EDIT_TOOL = "Edit";
|
|
1380
|
+
var METRICS_STOPS = [
|
|
1381
|
+
metrics_totals.METRICS_RERECORD_COMMAND,
|
|
1382
|
+
metrics_totals.METRICS_TOTALS_COMMAND
|
|
1383
|
+
].map((list) => run_ship_pre_detach.failure_prefix(list));
|
|
1384
|
+
function seconds_of(ms) {
|
|
1385
|
+
return ms === void 0 ? void 0 : ms / MS_PER_SECOND;
|
|
1386
|
+
}
|
|
1387
|
+
function per_lane(count, calls) {
|
|
1388
|
+
const lanes = new Set(calls.map((call) => call.lane)).size;
|
|
1389
|
+
return lanes === 0 ? void 0 : count / lanes;
|
|
1390
|
+
}
|
|
1391
|
+
function lint_unmoved({ calls }) {
|
|
1392
|
+
const unmoved = lane_transcript_stats.solo_calls(calls, LINT_RELATED).filter((call) => call.output.includes(since_green.UNMOVED_REASON));
|
|
1393
|
+
return seconds_of(lane_stats.median(lane_transcript_stats.durations(unmoved)));
|
|
1394
|
+
}
|
|
1395
|
+
function metrics_stops({ calls }) {
|
|
1396
|
+
const stops = calls.filter(
|
|
1397
|
+
(call) => lane_transcript_stats.verification_commands(call.command).includes(SHIP) && METRICS_STOPS.some((stop) => call.output.includes(stop))
|
|
1398
|
+
);
|
|
1399
|
+
return per_lane(stops.length, calls);
|
|
1400
|
+
}
|
|
1401
|
+
function is_lint_wait(entry) {
|
|
1402
|
+
return entry.kind === lane_ledger.KIND.CORE_WAIT && entry.command === LINT_RELATED && entry.issue !== void 0;
|
|
1403
|
+
}
|
|
1404
|
+
function lint_core_wait({ entries, calls }) {
|
|
1405
|
+
const waited = entries.filter((entry) => is_lint_wait(entry));
|
|
1406
|
+
const total_ms2 = waited.reduce((sum2, wait) => sum2 + wait.waited_ms, 0);
|
|
1407
|
+
return per_lane(total_ms2 / MS_PER_MINUTE, calls);
|
|
1408
|
+
}
|
|
1409
|
+
function edit({ calls }) {
|
|
1410
|
+
const edits = calls.filter((call) => call.tool === EDIT_TOOL);
|
|
1411
|
+
return seconds_of(lane_stats.median(lane_transcript_stats.durations(edits)));
|
|
1412
|
+
}
|
|
1413
|
+
var METRICS = {
|
|
1414
|
+
"lint-unmoved": lint_unmoved,
|
|
1415
|
+
"metrics-stops": metrics_stops,
|
|
1416
|
+
"lint-core-wait": lint_core_wait,
|
|
1417
|
+
edit
|
|
1418
|
+
};
|
|
1419
|
+
var NAMES = Object.keys(METRICS);
|
|
1420
|
+
function is_metric(name) {
|
|
1421
|
+
return Object.hasOwn(METRICS, name);
|
|
1422
|
+
}
|
|
1423
|
+
function value(name, records, window) {
|
|
1424
|
+
const metric = is_metric(name) ? METRICS[name] : void 0;
|
|
1425
|
+
const period = {
|
|
1426
|
+
entries: lane_stats.in_window(records.entries, window),
|
|
1427
|
+
calls: lane_transcript_stats.in_period(records.calls, window)
|
|
1428
|
+
};
|
|
1429
|
+
return metric === void 0 ? void 0 : metric(period);
|
|
1430
|
+
}
|
|
1431
|
+
var lane_value = { NAMES, is_metric, value };
|
|
1432
|
+
|
|
1433
|
+
// scripts/lane/lane-value-cell.ts
|
|
1434
|
+
var ROW_OPEN = "| ";
|
|
1435
|
+
var ROW_CLOSE = " |";
|
|
1436
|
+
var CELL_SEPARATOR = " | ";
|
|
1437
|
+
var BLOCK_SEPARATOR = /\n\s*\n/u;
|
|
1438
|
+
var NUMBER_PATTERN = /^-?\d+(?:\.\d+)?$/u;
|
|
1439
|
+
var HEADER_ROWS = 2;
|
|
1440
|
+
var LIST_SEPARATOR = ", ";
|
|
1441
|
+
var EMPTY_LIST = "-";
|
|
1442
|
+
var ITEM_PATTERN = /^(?<label>.+) (?<count>\d+)$/u;
|
|
1443
|
+
var ABSENT_COUNT = "0";
|
|
1444
|
+
function cells_of(line) {
|
|
1445
|
+
const text = line.trim();
|
|
1446
|
+
if (!text.startsWith(ROW_OPEN) || !text.endsWith(ROW_CLOSE)) return void 0;
|
|
1447
|
+
return text.slice(ROW_OPEN.length, -ROW_CLOSE.length).split(CELL_SEPARATOR);
|
|
1448
|
+
}
|
|
1449
|
+
function rows_of2(block) {
|
|
1450
|
+
return block.split("\n").map((line) => cells_of(line)).filter((row) => row !== void 0);
|
|
1451
|
+
}
|
|
1452
|
+
function blocks_of(tables) {
|
|
1453
|
+
return tables.flatMap((table19) => table19.split(BLOCK_SEPARATOR)).map((block) => rows_of2(block)).filter((rows) => rows.length > 0);
|
|
1454
|
+
}
|
|
1455
|
+
function is_addressed(cells, header, address) {
|
|
1456
|
+
const { row, where } = address;
|
|
1457
|
+
if (row !== void 0 && cells[0] !== row) return false;
|
|
1458
|
+
return where === void 0 || cells[header.indexOf(where.column)] === where.text;
|
|
1459
|
+
}
|
|
1460
|
+
function is_table(rows, address) {
|
|
1461
|
+
const [header = []] = rows;
|
|
1462
|
+
const columns = [address.column, address.where?.column ?? address.column];
|
|
1463
|
+
return header[0] === address.table && columns.every((column) => header.includes(column));
|
|
1464
|
+
}
|
|
1465
|
+
function texts_in(rows, address) {
|
|
1466
|
+
const [header = []] = rows;
|
|
1467
|
+
const column = header.indexOf(address.column);
|
|
1468
|
+
return rows.slice(HEADER_ROWS).filter((cells) => is_addressed(cells, header, address)).map((cells) => cells[column] ?? "");
|
|
1469
|
+
}
|
|
1470
|
+
function item_count(text, item) {
|
|
1471
|
+
if (text === EMPTY_LIST) return ABSENT_COUNT;
|
|
1472
|
+
const entries = text.split(LIST_SEPARATOR).map((entry) => ITEM_PATTERN.exec(entry)?.groups);
|
|
1473
|
+
if (entries.includes(void 0)) return void 0;
|
|
1474
|
+
return entries.find((groups) => groups?.["label"] === item)?.["count"] ?? ABSENT_COUNT;
|
|
1475
|
+
}
|
|
1476
|
+
function read_text(text, item) {
|
|
1477
|
+
return item === void 0 ? text : item_count(text, item);
|
|
1478
|
+
}
|
|
1479
|
+
function numbers_in(texts, item) {
|
|
1480
|
+
return texts.map((text) => read_text(text, item)).filter((text) => text !== void 0 && NUMBER_PATTERN.test(text));
|
|
1481
|
+
}
|
|
1482
|
+
function addressed(tables, address) {
|
|
1483
|
+
const named = blocks_of(tables).filter((rows) => is_table(rows, address));
|
|
1484
|
+
return { named, texts: named.flatMap((rows) => texts_in(rows, address)) };
|
|
1485
|
+
}
|
|
1486
|
+
function value2(tables, address) {
|
|
1487
|
+
const { named, texts } = addressed(tables, address);
|
|
1488
|
+
if (address.zero === true && named.length > 0 && texts.length === 0) return 0;
|
|
1489
|
+
const numbers = numbers_in(texts, address.item);
|
|
1490
|
+
return numbers.length === 1 ? Number(numbers[0]) : void 0;
|
|
1491
|
+
}
|
|
1492
|
+
function is_several(tables, address) {
|
|
1493
|
+
return numbers_in(addressed(tables, address).texts, address.item).length > 1;
|
|
1494
|
+
}
|
|
1495
|
+
var lane_value_cell = { value: value2, is_several };
|
|
1496
|
+
|
|
1497
|
+
// scripts/lane/lane-why-period.ts
|
|
1498
|
+
import path2 from "node:path";
|
|
1499
|
+
var CAUSE = {
|
|
1500
|
+
IMPLEMENT: "implement (attribution unverified)",
|
|
1501
|
+
IMPLEMENT_CLEAR: "implement (no signal over its bar)",
|
|
1502
|
+
DRIVER: "driver followup over budget (outside lane net)",
|
|
1503
|
+
PAUSE: "pause",
|
|
1504
|
+
HUB: "hub over cap",
|
|
1505
|
+
OTHER: "other"
|
|
1506
|
+
};
|
|
1507
|
+
var COLUMNS18 = ["cause", "lanes", "total net min", "open issues"];
|
|
1508
|
+
var KEY_SEPARATOR2 = ": ";
|
|
1509
|
+
var NO_KEYS = { ship: [] };
|
|
1510
|
+
function keyed_rows(budget, keys, fallback, name) {
|
|
1511
|
+
if (keys.length === 0) return [[fallback, [name]]];
|
|
1512
|
+
return keys.map((key) => [`${budget}${KEY_SEPARATOR2}${key}`, [key]]);
|
|
1513
|
+
}
|
|
1514
|
+
function rows_of3(budget, name, keys) {
|
|
1515
|
+
if (budget === "followup") return [[CAUSE.DRIVER, [name]]];
|
|
1516
|
+
if (budget === "ship") return keyed_rows(budget, keys.ship, budget, name);
|
|
1517
|
+
if (budget !== "implement") return [[budget, [name]]];
|
|
1518
|
+
if (keys.implement === void 0) return [[CAUSE.IMPLEMENT, [name]]];
|
|
1519
|
+
return keyed_rows(budget, keys.implement, CAUSE.IMPLEMENT_CLEAR, name);
|
|
1520
|
+
}
|
|
1521
|
+
function add_names(groups, cause, names) {
|
|
1522
|
+
groups.set(cause, [...groups.get(cause) ?? [], ...names]);
|
|
1523
|
+
}
|
|
1524
|
+
function add_signals(groups, breakdown2, hubs) {
|
|
1525
|
+
const names = hubs.map((hub) => path2.basename(hub));
|
|
1526
|
+
if ((breakdown2.pauses?.length ?? 0) > 0) add_names(groups, CAUSE.PAUSE, ["pause"]);
|
|
1527
|
+
if (names.length > 0) groups.set(CAUSE.HUB, names);
|
|
1528
|
+
}
|
|
1529
|
+
function add_driver_keys(groups, keys) {
|
|
1530
|
+
const names = groups.get(CAUSE.DRIVER);
|
|
1531
|
+
if (names !== void 0) groups.set(CAUSE.DRIVER, [...names, ...keys]);
|
|
1532
|
+
}
|
|
1533
|
+
function causes_of3(breakdown2, hubs, keys = NO_KEYS) {
|
|
1534
|
+
const groups = /* @__PURE__ */ new Map();
|
|
1535
|
+
const rows = lane_why.over_stages(breakdown2).flatMap(({ stage, budget }) => rows_of3(budget, lane_sinks.base_name(stage.name), keys));
|
|
1536
|
+
for (const [cause, names] of rows) add_names(groups, cause, names);
|
|
1537
|
+
add_driver_keys(groups, keys.ship);
|
|
1538
|
+
add_signals(groups, breakdown2, hubs);
|
|
1539
|
+
if (groups.size === Number(groups.has(CAUSE.DRIVER))) groups.set(CAUSE.OTHER, []);
|
|
1540
|
+
return groups;
|
|
1541
|
+
}
|
|
1542
|
+
function keys_of(records, issue) {
|
|
1543
|
+
const signals = lane_implement_signals.signals_of(records.events, issue);
|
|
1544
|
+
return {
|
|
1545
|
+
ship: lane_why_causes.keys_of(records.entries, issue, void 0),
|
|
1546
|
+
implement: signals === void 0 ? void 0 : lane_implement_signals.keys_of(signals)
|
|
1547
|
+
};
|
|
1548
|
+
}
|
|
1549
|
+
function collect_lane(groups, records, issue) {
|
|
1550
|
+
const breakdown2 = lane_breakdown.of(records.entries, records.events, issue);
|
|
1551
|
+
if (breakdown2 === void 0) return;
|
|
1552
|
+
const ms = breakdown2.stages.reduce((sum2, stage) => sum2 + stage.ms, 0);
|
|
1553
|
+
const causes = causes_of3(
|
|
1554
|
+
breakdown2,
|
|
1555
|
+
lane_sinks.hubs_of(records.entries, [issue]),
|
|
1556
|
+
keys_of(records, issue)
|
|
1557
|
+
);
|
|
1558
|
+
for (const [cause, names] of causes) {
|
|
1559
|
+
groups.set(cause, [...groups.get(cause) ?? [], { ms, names }]);
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
function total_ms(lanes) {
|
|
1563
|
+
return lanes.reduce((sum2, lane) => sum2 + lane.ms, 0);
|
|
1564
|
+
}
|
|
1565
|
+
function row_of4(cause, lanes, issues) {
|
|
1566
|
+
return lane_stats.to_row([
|
|
1567
|
+
cause,
|
|
1568
|
+
String(lanes.length),
|
|
1569
|
+
lane_stage_stats.cell(total_ms(lanes)),
|
|
1570
|
+
lane_why_causes.open_cell(
|
|
1571
|
+
lanes.flatMap((lane) => lane.names),
|
|
1572
|
+
issues
|
|
1573
|
+
)
|
|
1574
|
+
]);
|
|
1575
|
+
}
|
|
1576
|
+
function table18(records, window, minutes, issues) {
|
|
1577
|
+
const groups = /* @__PURE__ */ new Map();
|
|
1578
|
+
for (const issue of lane_sinks.over_issues(records, window, minutes)) {
|
|
1579
|
+
collect_lane(groups, records, issue);
|
|
1580
|
+
}
|
|
1581
|
+
const ranked2 = [...groups].toSorted((left, right) => total_ms(right[1]) - total_ms(left[1]));
|
|
1582
|
+
return [
|
|
1583
|
+
lane_stats.to_row(COLUMNS18),
|
|
1584
|
+
lane_stats.to_row(COLUMNS18.map(() => "---")),
|
|
1585
|
+
...ranked2.map(([cause, lanes]) => row_of4(cause, lanes, issues))
|
|
1586
|
+
].join("\n");
|
|
1587
|
+
}
|
|
1588
|
+
var lane_why_period = { CAUSE, causes_of: causes_of3, table: table18 };
|
|
1589
|
+
|
|
1590
|
+
// scripts/lane/lane-measure-cli.ts
|
|
1591
|
+
var __josh_meta = import.meta;
|
|
1592
|
+
var __josh_source_url = new URL("../../scripts/lane/lane-measure-cli.ts", __josh_meta.url).href;
|
|
1593
|
+
var __josh_source_filename = __josh_file_path(__josh_source_url);
|
|
1594
|
+
var __josh_source_dirname = __josh_dirname(__josh_source_filename);
|
|
1595
|
+
var ARGV_OFFSET = 2;
|
|
1596
|
+
var FAILURE_EXIT_CODE = 1;
|
|
1597
|
+
var SAMPLE_VERB = "sample";
|
|
1598
|
+
var STATS_VERB = "stats";
|
|
1599
|
+
var VALUE_VERB = "value";
|
|
1600
|
+
var NET_VERB = "net";
|
|
1601
|
+
var CELL_METRIC = "cell";
|
|
1602
|
+
var VALUE_DIGITS = 2;
|
|
1603
|
+
var USAGE = [
|
|
1604
|
+
"Usage: josh lane:sample [--every <seconds>]",
|
|
1605
|
+
" josh lane:stats --period <days> [--limit <lane-limit>]",
|
|
1606
|
+
" josh lane:stats --period <days> --sinks [<minutes>]",
|
|
1607
|
+
" josh lane:stats --period <days> --over <minutes>",
|
|
1608
|
+
" josh lane:stats --period <days> --why <minutes>",
|
|
1609
|
+
" josh lane:stats --period <days> --pairs",
|
|
1610
|
+
" josh lane:stats --since <instant> \u2026 \u2014 any form above, the window opened at the instant",
|
|
1611
|
+
` josh lane:value <${lane_value.NAMES.join("|")}> --since <instant>`,
|
|
1612
|
+
` josh lane:value ${CELL_METRIC} --table <title> [--row <label>] [--where <header>=<text>] --column <header> [--item <label>] [--zero] --since <instant>`,
|
|
1613
|
+
" josh lane:net <issue>"
|
|
1614
|
+
].join("\n");
|
|
1615
|
+
var SAMPLE_OPTIONS = { every: { type: "string" } };
|
|
1616
|
+
var VALUE_OPTIONS = {
|
|
1617
|
+
since: { type: "string" },
|
|
1618
|
+
table: { type: "string" },
|
|
1619
|
+
row: { type: "string" },
|
|
1620
|
+
column: { type: "string" },
|
|
1621
|
+
where: { type: "string" },
|
|
1622
|
+
item: { type: "string" },
|
|
1623
|
+
zero: { type: "boolean" }
|
|
1624
|
+
};
|
|
1625
|
+
var WHERE_SEPARATOR = "=";
|
|
1626
|
+
function refuse() {
|
|
1627
|
+
console.error(USAGE);
|
|
1628
|
+
return FAILURE_EXIT_CODE;
|
|
1629
|
+
}
|
|
1630
|
+
function sample_interval(rest) {
|
|
1631
|
+
const values = cli_flags.values_of(rest, SAMPLE_OPTIONS);
|
|
1632
|
+
if (values === void 0) return void 0;
|
|
1633
|
+
if (values.every === void 0) return { seconds: void 0 };
|
|
1634
|
+
const seconds2 = lane_stats_request.positive(values.every);
|
|
1635
|
+
return seconds2 === void 0 ? void 0 : { seconds: seconds2 };
|
|
1636
|
+
}
|
|
1637
|
+
async function keep_sampling(context, seconds2) {
|
|
1638
|
+
const ticks = every(seconds2 * MS_PER_SECOND, context);
|
|
1639
|
+
for await (const tick_context of ticks) await lane_sampler.take(tick_context);
|
|
1640
|
+
}
|
|
1641
|
+
async function sample_command(rest, context) {
|
|
1642
|
+
const interval = sample_interval(rest);
|
|
1643
|
+
if (interval === void 0) return refuse();
|
|
1644
|
+
await lane_sampler.take(context);
|
|
1645
|
+
if (interval.seconds !== void 0) await keep_sampling(context, interval.seconds);
|
|
1646
|
+
return 0;
|
|
1647
|
+
}
|
|
1648
|
+
function transcript_directories(context) {
|
|
1649
|
+
if (context.transcript_directories !== void 0) return context.transcript_directories;
|
|
1650
|
+
const main_cwd = cost_transcript.session_cwd(process.cwd());
|
|
1651
|
+
return cost_transcript.lane_transcript_directories(main_cwd, cost_transcript.home_directory());
|
|
1652
|
+
}
|
|
1653
|
+
async function period_records(context, window) {
|
|
1654
|
+
return {
|
|
1655
|
+
entries: await lane_ledger_archive.read_history(context),
|
|
1656
|
+
events: await lane_net_read.read_events(context),
|
|
1657
|
+
calls: lane_transcript_stats.read_calls(transcript_directories(context), window)
|
|
1658
|
+
};
|
|
1659
|
+
}
|
|
1660
|
+
function table_choice(request) {
|
|
1661
|
+
if (request.why !== void 0) return { table: lane_why_period.table, minutes: request.why };
|
|
1662
|
+
if (request.over !== void 0) return { table: lane_over_causes.view, minutes: request.over };
|
|
1663
|
+
return request.sinks === void 0 ? void 0 : { table: lane_sinks.table, minutes: request.sinks };
|
|
1664
|
+
}
|
|
1665
|
+
async function threshold_text(choice, context, window) {
|
|
1666
|
+
const sources = {
|
|
1667
|
+
entries: await lane_ledger_archive.read_history(context),
|
|
1668
|
+
events: await lane_net_read.read_events(context)
|
|
1669
|
+
};
|
|
1670
|
+
const issues = await lane_sinks_issues.read();
|
|
1671
|
+
return session_cite.text(choice.table(sources, window, choice.minutes, issues));
|
|
1672
|
+
}
|
|
1673
|
+
async function stats_text(request, context, window) {
|
|
1674
|
+
const choice = table_choice(request);
|
|
1675
|
+
if (choice !== void 0) return await threshold_text(choice, context, window);
|
|
1676
|
+
if (request.is_pairs) {
|
|
1677
|
+
return lane_pairs.table(await lane_ledger_archive.read_history(context), window);
|
|
1678
|
+
}
|
|
1679
|
+
const records = await period_records(context, window);
|
|
1680
|
+
const limit = await lane_limit_history.label(request.limit, records.entries, window);
|
|
1681
|
+
const row = lane_stats.row(records.entries, window, { limit });
|
|
1682
|
+
const tables = lane_stats_tables.tables_of(records, window);
|
|
1683
|
+
return [`${lane_stats.header()}
|
|
1684
|
+
${row}`, ...tables].join("\n\n");
|
|
1685
|
+
}
|
|
1686
|
+
function window_of(start, now_ms) {
|
|
1687
|
+
if ("since_ms" in start) return { since_ms: start.since_ms, until_ms: now_ms };
|
|
1688
|
+
return lane_stats.window_of(start.period_days, now_ms);
|
|
1689
|
+
}
|
|
1690
|
+
async function stats_command(rest, context) {
|
|
1691
|
+
const request = lane_stats_request.stats_request(rest);
|
|
1692
|
+
if (request === void 0) return refuse();
|
|
1693
|
+
const window = window_of(request.start, context.now_ms ?? Date.now());
|
|
1694
|
+
console.info(await stats_text(request, context, window));
|
|
1695
|
+
return 0;
|
|
1696
|
+
}
|
|
1697
|
+
function is_known(name) {
|
|
1698
|
+
return name === CELL_METRIC || lane_value.is_metric(name);
|
|
1699
|
+
}
|
|
1700
|
+
function metric_of(positionals) {
|
|
1701
|
+
const [name] = positionals;
|
|
1702
|
+
return name !== void 0 && positionals.length === 1 && is_known(name) ? name : void 0;
|
|
1703
|
+
}
|
|
1704
|
+
function where_of(text) {
|
|
1705
|
+
if (text === void 0) return { filter: void 0 };
|
|
1706
|
+
const at = text.indexOf(WHERE_SEPARATOR);
|
|
1707
|
+
if (at < 1) return void 0;
|
|
1708
|
+
return { filter: { column: text.slice(0, at), text: text.slice(at + WHERE_SEPARATOR.length) } };
|
|
1709
|
+
}
|
|
1710
|
+
function address_of(flags) {
|
|
1711
|
+
const { table: table19, column } = flags;
|
|
1712
|
+
const where = where_of(flags.where);
|
|
1713
|
+
if (table19 === void 0 || column === void 0 || where === void 0) return void 0;
|
|
1714
|
+
return { table: table19, column, row: flags.row, where: where.filter, item: flags.item, zero: flags.zero };
|
|
1715
|
+
}
|
|
1716
|
+
function request_of(metric, since_ms) {
|
|
1717
|
+
return metric === void 0 || since_ms === void 0 ? void 0 : { metric, since_ms };
|
|
1718
|
+
}
|
|
1719
|
+
function value_request(rest) {
|
|
1720
|
+
const parsed = cli_flags.arguments_of(rest, VALUE_OPTIONS);
|
|
1721
|
+
if (parsed === void 0) return void 0;
|
|
1722
|
+
const request = request_of(
|
|
1723
|
+
metric_of(parsed.positionals),
|
|
1724
|
+
lane_stats_request.since_of(parsed.values.since)
|
|
1725
|
+
);
|
|
1726
|
+
if (request?.metric !== CELL_METRIC) return request;
|
|
1727
|
+
const address = address_of(parsed.values);
|
|
1728
|
+
return address === void 0 ? void 0 : { ...request, address };
|
|
1729
|
+
}
|
|
1730
|
+
function print_value(request, measured) {
|
|
1731
|
+
const { value: value3, missing } = measured;
|
|
1732
|
+
if (value3 === void 0) {
|
|
1733
|
+
const since = new Date(request.since_ms).toISOString();
|
|
1734
|
+
console.error(`josh lane:value ${request.metric}: ${missing} since ${since}`);
|
|
1735
|
+
return FAILURE_EXIT_CODE;
|
|
1736
|
+
}
|
|
1737
|
+
console.info(value3.toFixed(VALUE_DIGITS));
|
|
1738
|
+
return 0;
|
|
1739
|
+
}
|
|
1740
|
+
async function cell_value(address, window, context) {
|
|
1741
|
+
const tables = lane_stats_tables.tables_of(await period_records(context, window), window);
|
|
1742
|
+
const { MISSING } = lane_value_missing;
|
|
1743
|
+
const is_several2 = lane_value_cell.is_several(tables, address);
|
|
1744
|
+
return {
|
|
1745
|
+
value: lane_value_cell.value(tables, address),
|
|
1746
|
+
missing: is_several2 ? MISSING.SEVERAL : MISSING.CELL
|
|
1747
|
+
};
|
|
1748
|
+
}
|
|
1749
|
+
async function value_command(rest, context) {
|
|
1750
|
+
const request = value_request(rest);
|
|
1751
|
+
if (request === void 0) return refuse();
|
|
1752
|
+
const window = { since_ms: request.since_ms, until_ms: context.now_ms ?? Date.now() };
|
|
1753
|
+
if (request.address !== void 0) {
|
|
1754
|
+
return print_value(request, await cell_value(request.address, window, context));
|
|
1755
|
+
}
|
|
1756
|
+
const records = {
|
|
1757
|
+
entries: await lane_ledger_archive.read_history(context),
|
|
1758
|
+
calls: lane_transcript_stats.read_calls(transcript_directories(context), window)
|
|
1759
|
+
};
|
|
1760
|
+
const value3 = lane_value.value(request.metric, records, window);
|
|
1761
|
+
return print_value(request, { value: value3, missing: lane_value_missing.MISSING.SAMPLE });
|
|
1762
|
+
}
|
|
1763
|
+
async function net_command(rest, context) {
|
|
1764
|
+
const [issue = ""] = rest;
|
|
1765
|
+
if (rest.length !== 1 || !issue_number_shape.is_issue_number(issue)) return refuse();
|
|
1766
|
+
const net = await lane_net_read.net_minutes_of(Number(issue), context);
|
|
1767
|
+
if (net === void 0) {
|
|
1768
|
+
console.error(
|
|
1769
|
+
`josh lane:net ${issue}: the ledger holds no dispatch and merge of ${session_cite.issue(issue)}`
|
|
1770
|
+
);
|
|
1771
|
+
return FAILURE_EXIT_CODE;
|
|
1772
|
+
}
|
|
1773
|
+
console.info(String(net));
|
|
1774
|
+
return 0;
|
|
1775
|
+
}
|
|
1776
|
+
var VERBS = {
|
|
1777
|
+
[SAMPLE_VERB]: sample_command,
|
|
1778
|
+
[STATS_VERB]: stats_command,
|
|
1779
|
+
[VALUE_VERB]: value_command,
|
|
1780
|
+
[NET_VERB]: net_command
|
|
1781
|
+
};
|
|
1782
|
+
async function run(argv, context = {}) {
|
|
1783
|
+
const [verb = "", ...rest] = argv;
|
|
1784
|
+
const command = Object.hasOwn(VERBS, verb) ? VERBS[verb] : void 0;
|
|
1785
|
+
return command === void 0 ? refuse() : await command(rest, context);
|
|
1786
|
+
}
|
|
1787
|
+
async function main(argv) {
|
|
1788
|
+
process.exitCode = await run(argv);
|
|
1789
|
+
}
|
|
1790
|
+
var lane_measure_cli = {
|
|
1791
|
+
USAGE,
|
|
1792
|
+
run
|
|
1793
|
+
};
|
|
1794
|
+
if (process.argv[1] === fileURLToPath(__josh_source_url)) await main(process.argv.slice(ARGV_OFFSET));
|
|
1795
|
+
export {
|
|
1796
|
+
lane_measure_cli
|
|
1797
|
+
};
|