@joshuafolkken/kit 1.2116.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 +56 -14
- package/.github/workflows/sonar-qube.yml +28 -1
- package/.prettierignore +2 -0
- package/AGENTS.md +1 -2
- package/CLAUDE.md +8 -8
- package/GEMINI.md +1 -2
- package/README.md +1 -1
- package/SECURITY.md +11 -1
- package/cspell/index.yaml +11 -0
- package/dist/.inputs-verified.json +1 -0
- package/dist/CLAUDE.md +8 -8
- package/dist/commands/adopt.js +222 -0
- package/dist/commands/auth-setup-cli.js +127 -0
- package/dist/commands/auto-ok-judge-cli.js +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 +584 -401
- 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 +15 -13
- 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,1795 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PLATFORM_TEMP_ROOT,
|
|
3
|
+
PROBE_TIMEOUT_MS,
|
|
4
|
+
durable_state_root,
|
|
5
|
+
external_exports,
|
|
6
|
+
git_command,
|
|
7
|
+
git_common_directory,
|
|
8
|
+
json_value,
|
|
9
|
+
stamp_file
|
|
10
|
+
} from "./chunk-CY3ADSDR.js";
|
|
11
|
+
|
|
12
|
+
// scripts/josh/agent-session-environment.ts
|
|
13
|
+
var SESSION_ID_KEY = "CLAUDE_CODE_SESSION_ID";
|
|
14
|
+
var AGENT_PID_KEY = "CLAUDE_PID";
|
|
15
|
+
function session_pid(environment = process.env) {
|
|
16
|
+
const pid = Number(environment[AGENT_PID_KEY]);
|
|
17
|
+
return Number.isSafeInteger(pid) && pid > 0 ? pid : void 0;
|
|
18
|
+
}
|
|
19
|
+
function own_session_pid(environment = process.env) {
|
|
20
|
+
return environment[SESSION_ID_KEY] === void 0 ? void 0 : session_pid(environment);
|
|
21
|
+
}
|
|
22
|
+
var PARENT_SESSION_KEYS = [
|
|
23
|
+
"CLAUDE_CODE_MESSAGING_SOCKET",
|
|
24
|
+
"CLAUDE_CODE_MESSAGING_TOKEN",
|
|
25
|
+
SESSION_ID_KEY,
|
|
26
|
+
"CLAUDE_CODE_CHILD_SESSION"
|
|
27
|
+
];
|
|
28
|
+
var PROXY_KEYS = [
|
|
29
|
+
"ALL_PROXY",
|
|
30
|
+
"HTTP_PROXY",
|
|
31
|
+
"HTTPS_PROXY",
|
|
32
|
+
"all_proxy",
|
|
33
|
+
"http_proxy",
|
|
34
|
+
"https_proxy",
|
|
35
|
+
"GLOBAL_AGENT_HTTP_PROXY",
|
|
36
|
+
"GLOBAL_AGENT_HTTPS_PROXY"
|
|
37
|
+
];
|
|
38
|
+
var PROXY_CERTIFICATE_KEY = "NODE_EXTRA_CA_CERTS";
|
|
39
|
+
var LOOPBACK_HOSTS = ["localhost", "ip6-localhost", "[::1]"];
|
|
40
|
+
var LOOPBACK_PREFIX = "127.";
|
|
41
|
+
var NO_HOST = "";
|
|
42
|
+
function parsed_host(value) {
|
|
43
|
+
try {
|
|
44
|
+
return new URL(value).hostname;
|
|
45
|
+
} catch {
|
|
46
|
+
return NO_HOST;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function proxy_host(value) {
|
|
50
|
+
const direct = parsed_host(value);
|
|
51
|
+
return direct === NO_HOST ? parsed_host(`http://${value}`) : direct;
|
|
52
|
+
}
|
|
53
|
+
function is_loopback_host(host) {
|
|
54
|
+
return host.startsWith(LOOPBACK_PREFIX) || LOOPBACK_HOSTS.includes(host);
|
|
55
|
+
}
|
|
56
|
+
function is_loopback_proxy(value) {
|
|
57
|
+
if (value === void 0 || value === NO_HOST) return false;
|
|
58
|
+
return is_loopback_host(proxy_host(value));
|
|
59
|
+
}
|
|
60
|
+
function is_declared(value) {
|
|
61
|
+
return value !== void 0 && value !== NO_HOST;
|
|
62
|
+
}
|
|
63
|
+
function loopback_proxy_keys(source, is_removed = is_loopback_proxy) {
|
|
64
|
+
const declared = PROXY_KEYS.filter((key) => is_declared(source[key]));
|
|
65
|
+
const matched = declared.filter((key) => is_removed(source[key]));
|
|
66
|
+
const is_certificate_included = matched.length > 0 && matched.length === declared.length;
|
|
67
|
+
return is_certificate_included ? [...matched, PROXY_CERTIFICATE_KEY] : matched;
|
|
68
|
+
}
|
|
69
|
+
function to_removed(keys) {
|
|
70
|
+
return Object.fromEntries(keys.map((key) => [key, void 0]));
|
|
71
|
+
}
|
|
72
|
+
function removed_environment(source = process.env) {
|
|
73
|
+
return to_removed([...PARENT_SESSION_KEYS, ...loopback_proxy_keys(source)]);
|
|
74
|
+
}
|
|
75
|
+
var SCANNER_DIRECTORY = ".safe-chain";
|
|
76
|
+
var PATH_SEPARATOR = /[/\\]/u;
|
|
77
|
+
function is_scanner_certificate(value) {
|
|
78
|
+
return value?.split(PATH_SEPARATOR).includes(SCANNER_DIRECTORY) ?? false;
|
|
79
|
+
}
|
|
80
|
+
var SCANNER_PROXY_KEY = "HTTPS_PROXY";
|
|
81
|
+
function is_scanner_proxy(source) {
|
|
82
|
+
const scanner_proxy = source[SCANNER_PROXY_KEY];
|
|
83
|
+
return function is_match(value) {
|
|
84
|
+
return value === scanner_proxy && is_loopback_proxy(value);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function removed_proxy_environment(source = process.env) {
|
|
88
|
+
if (!is_scanner_certificate(source[PROXY_CERTIFICATE_KEY])) return {};
|
|
89
|
+
return to_removed(loopback_proxy_keys(source, is_scanner_proxy(source)));
|
|
90
|
+
}
|
|
91
|
+
var agent_session_environment = {
|
|
92
|
+
AGENT_PID_KEY,
|
|
93
|
+
LOOPBACK_HOSTS,
|
|
94
|
+
PARENT_SESSION_KEYS,
|
|
95
|
+
PROXY_CERTIFICATE_KEY,
|
|
96
|
+
PROXY_KEYS,
|
|
97
|
+
SESSION_ID_KEY,
|
|
98
|
+
own_session_pid,
|
|
99
|
+
removed_environment,
|
|
100
|
+
removed_proxy_environment,
|
|
101
|
+
session_pid
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
// scripts/agent/agent-provider.ts
|
|
105
|
+
var EMPTY_LENGTH = 0;
|
|
106
|
+
var PROVIDER_SCHEMA = external_exports.enum(["anthropic", "openai"]);
|
|
107
|
+
var ANTHROPIC_PROVIDER = "anthropic";
|
|
108
|
+
var OPENAI_PROVIDER = "openai";
|
|
109
|
+
var CODEX_SESSION_KEY = "CODEX_THREAD_ID";
|
|
110
|
+
function trimmed(value) {
|
|
111
|
+
const result = value?.trim();
|
|
112
|
+
return result === void 0 || result.length === EMPTY_LENGTH ? void 0 : result;
|
|
113
|
+
}
|
|
114
|
+
function rejection(key, value, expected) {
|
|
115
|
+
return { kind: "rejected", note: `${key}=${value} ${expected}, so the agent was not started` };
|
|
116
|
+
}
|
|
117
|
+
function has_session(environment, keys) {
|
|
118
|
+
return keys.some((key) => trimmed(environment[key]) !== void 0);
|
|
119
|
+
}
|
|
120
|
+
var CONFLICTING_SESSIONS = {
|
|
121
|
+
kind: "rejected",
|
|
122
|
+
note: "both Codex and Claude Code sessions were detected"
|
|
123
|
+
};
|
|
124
|
+
var HANDED_PROVIDER_KEY = "JOSH_AGENT_PROVIDER";
|
|
125
|
+
var DEFAULT_PROVIDER = {
|
|
126
|
+
kind: "provider",
|
|
127
|
+
provider: ANTHROPIC_PROVIDER,
|
|
128
|
+
is_default: true
|
|
129
|
+
};
|
|
130
|
+
var DEFAULT_NOTICE = ` No agent session or ${HANDED_PROVIDER_KEY} was found, so the provider defaulted to ${ANTHROPIC_PROVIDER} (Claude Code).`;
|
|
131
|
+
function handed_provider(environment) {
|
|
132
|
+
const value = trimmed(environment[HANDED_PROVIDER_KEY]);
|
|
133
|
+
if (value === void 0) return DEFAULT_PROVIDER;
|
|
134
|
+
const parsed = PROVIDER_SCHEMA.safeParse(value);
|
|
135
|
+
return parsed.success ? { kind: "provider", provider: parsed.data } : rejection(HANDED_PROVIDER_KEY, value, "is not an allowed provider");
|
|
136
|
+
}
|
|
137
|
+
function detected_provider(environment) {
|
|
138
|
+
const has_codex = has_session(environment, [CODEX_SESSION_KEY]);
|
|
139
|
+
const has_claude = has_session(environment, agent_session_environment.PARENT_SESSION_KEYS);
|
|
140
|
+
if (has_codex === has_claude) return has_codex ? CONFLICTING_SESSIONS : void 0;
|
|
141
|
+
return { kind: "provider", provider: has_codex ? OPENAI_PROVIDER : ANTHROPIC_PROVIDER };
|
|
142
|
+
}
|
|
143
|
+
function resolve_provider(environment = process.env) {
|
|
144
|
+
return detected_provider(environment) ?? handed_provider(environment);
|
|
145
|
+
}
|
|
146
|
+
function default_notice(environment = process.env) {
|
|
147
|
+
const selected = resolve_provider(environment);
|
|
148
|
+
return selected.kind === "provider" && selected.is_default === true ? DEFAULT_NOTICE : "";
|
|
149
|
+
}
|
|
150
|
+
function warn_of_default(environment = process.env) {
|
|
151
|
+
const notice = default_notice(environment).trim();
|
|
152
|
+
if (notice !== "") console.error(notice);
|
|
153
|
+
}
|
|
154
|
+
function has_completion_callback(environment = process.env) {
|
|
155
|
+
const selected = resolve_provider(environment);
|
|
156
|
+
return selected.kind !== "provider" || selected.provider !== OPENAI_PROVIDER;
|
|
157
|
+
}
|
|
158
|
+
function handoff_environment(environment = process.env) {
|
|
159
|
+
const selected = resolve_provider(environment);
|
|
160
|
+
return selected.kind === "provider" ? { [HANDED_PROVIDER_KEY]: selected.provider } : {};
|
|
161
|
+
}
|
|
162
|
+
var agent_provider = {
|
|
163
|
+
ANTHROPIC_PROVIDER,
|
|
164
|
+
CODEX_SESSION_KEY,
|
|
165
|
+
HANDED_PROVIDER_KEY,
|
|
166
|
+
OPENAI_PROVIDER,
|
|
167
|
+
PROVIDER_SCHEMA,
|
|
168
|
+
default_notice,
|
|
169
|
+
handoff_environment,
|
|
170
|
+
has_completion_callback,
|
|
171
|
+
rejection,
|
|
172
|
+
resolve_provider,
|
|
173
|
+
trimmed,
|
|
174
|
+
warn_of_default
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
// scripts/josh/durable-state.ts
|
|
178
|
+
import { mkdirSync } from "node:fs";
|
|
179
|
+
import path2 from "node:path";
|
|
180
|
+
|
|
181
|
+
// scripts/josh/durable-state-migrate.ts
|
|
182
|
+
import { constants, copyFileSync, lstatSync, readdirSync, rmSync, writeFileSync } from "node:fs";
|
|
183
|
+
import path from "node:path";
|
|
184
|
+
var COPIED_MARKER = ".legacy-copied";
|
|
185
|
+
var MARKER_MODE = 384;
|
|
186
|
+
var LOG_RETENTION_DAYS = 14;
|
|
187
|
+
var DAY_MS = 864e5;
|
|
188
|
+
var LOG_SUFFIX = ".log";
|
|
189
|
+
var NOTE_SUFFIX = ".md";
|
|
190
|
+
var RECORD_SUFFIXES = [".json", ".jsonl", LOG_SUFFIX, NOTE_SUFFIX];
|
|
191
|
+
var PRUNED_SUFFIXES = [LOG_SUFFIX, NOTE_SUFFIX];
|
|
192
|
+
function is_record_name(name, prefixes) {
|
|
193
|
+
const has_prefix = prefixes.some((prefix) => name.startsWith(prefix));
|
|
194
|
+
return has_prefix && RECORD_SUFFIXES.some((suffix) => name.endsWith(suffix));
|
|
195
|
+
}
|
|
196
|
+
function list_names(directory) {
|
|
197
|
+
try {
|
|
198
|
+
return readdirSync(directory);
|
|
199
|
+
} catch {
|
|
200
|
+
return [];
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
function copy_record(from, to) {
|
|
204
|
+
try {
|
|
205
|
+
if (!stamp_file.is_own_regular_file(from)) return;
|
|
206
|
+
copyFileSync(from, to, constants.COPYFILE_EXCL);
|
|
207
|
+
} catch {
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
function copy_legacy(from, to, prefixes) {
|
|
211
|
+
if (from === to) return;
|
|
212
|
+
for (const name of list_names(from)) {
|
|
213
|
+
if (is_record_name(name, prefixes)) copy_record(path.join(from, name), path.join(to, name));
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
function claim_copy(directory) {
|
|
217
|
+
try {
|
|
218
|
+
writeFileSync(path.join(directory, COPIED_MARKER), "", { flag: "wx", mode: MARKER_MODE });
|
|
219
|
+
return true;
|
|
220
|
+
} catch {
|
|
221
|
+
return false;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
function copy_once(from, to, prefixes) {
|
|
225
|
+
if (claim_copy(to)) copy_legacy(from, to, prefixes);
|
|
226
|
+
}
|
|
227
|
+
function is_stale(target2, now_ms) {
|
|
228
|
+
const age_ms = now_ms - lstatSync(target2).mtimeMs;
|
|
229
|
+
return age_ms > LOG_RETENTION_DAYS * DAY_MS && stamp_file.is_own_regular_file(target2);
|
|
230
|
+
}
|
|
231
|
+
function prune_log(target2, now_ms) {
|
|
232
|
+
try {
|
|
233
|
+
if (is_stale(target2, now_ms)) rmSync(target2, { force: true });
|
|
234
|
+
} catch {
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
function prune_stale_logs(directory, prefixes, now_ms) {
|
|
238
|
+
for (const name of list_names(directory)) {
|
|
239
|
+
const is_pruned = PRUNED_SUFFIXES.some((suffix) => name.endsWith(suffix));
|
|
240
|
+
if (is_pruned && is_record_name(name, prefixes)) {
|
|
241
|
+
prune_log(path.join(directory, name), now_ms);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
var durable_state_migrate = { LOG_RETENTION_DAYS, copy_once, is_record_name, prune_stale_logs };
|
|
246
|
+
|
|
247
|
+
// scripts/josh/durable-state.ts
|
|
248
|
+
var STATE_DIRECTORY_MODE = 448;
|
|
249
|
+
var { PREFIX, STATE_ROOT_OVERRIDE, state_root } = durable_state_root;
|
|
250
|
+
function root() {
|
|
251
|
+
return state_root(STATE_ROOT_OVERRIDE, git_common_directory.repository);
|
|
252
|
+
}
|
|
253
|
+
var PREFIXES = Object.values(PREFIX);
|
|
254
|
+
var ensured = /* @__PURE__ */ new Set();
|
|
255
|
+
function prepare(directory) {
|
|
256
|
+
mkdirSync(directory, { recursive: true, mode: STATE_DIRECTORY_MODE });
|
|
257
|
+
durable_state_migrate.copy_once(PLATFORM_TEMP_ROOT, directory, PREFIXES);
|
|
258
|
+
durable_state_migrate.prune_stale_logs(directory, PREFIXES, Date.now());
|
|
259
|
+
}
|
|
260
|
+
function ensure(directory) {
|
|
261
|
+
if (ensured.has(directory)) return directory;
|
|
262
|
+
try {
|
|
263
|
+
prepare(directory);
|
|
264
|
+
} catch {
|
|
265
|
+
return PLATFORM_TEMP_ROOT;
|
|
266
|
+
}
|
|
267
|
+
ensured.add(directory);
|
|
268
|
+
return directory;
|
|
269
|
+
}
|
|
270
|
+
function durable_path(prefix, key_root, suffix) {
|
|
271
|
+
return path2.join(ensure(root()), stamp_file.stamp_name(prefix, key_root, suffix));
|
|
272
|
+
}
|
|
273
|
+
var durable_state = {
|
|
274
|
+
PREFIX,
|
|
275
|
+
ensure,
|
|
276
|
+
path: durable_path,
|
|
277
|
+
root,
|
|
278
|
+
state_root
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
// scripts/josh/process-identity.ts
|
|
282
|
+
import { execFileSync, spawnSync } from "node:child_process";
|
|
283
|
+
import { randomUUID } from "node:crypto";
|
|
284
|
+
import { readFileSync, rmSync as rmSync2 } from "node:fs";
|
|
285
|
+
import { createServer } from "node:net";
|
|
286
|
+
import path3 from "node:path";
|
|
287
|
+
var PS_COMMAND = "/bin/ps";
|
|
288
|
+
var FORMAT_FLAG = "-o";
|
|
289
|
+
var START_TIME_FORMAT = "lstart=";
|
|
290
|
+
var PID_FLAG = "-p";
|
|
291
|
+
var PROBE_ENVIRONMENT = { TZ: "UTC", LC_ALL: "C" };
|
|
292
|
+
var LIVENESS_SIGNAL = 0;
|
|
293
|
+
var NO_SUCH_PROCESS = "ESRCH";
|
|
294
|
+
var LOWEST_REAL_PID = 1;
|
|
295
|
+
var PROC_START_FIELD_INDEX = 19;
|
|
296
|
+
var BEACON_SCHEME = "socket:";
|
|
297
|
+
var BEACON_SUFFIX = ".sock";
|
|
298
|
+
var BEACON_PREFIX = `josh-process-identity-${String(process.getuid?.() ?? "")}-`;
|
|
299
|
+
var BEACON_ID_LENGTH = 36;
|
|
300
|
+
var BEACON_ID_PATTERN = /^[\da-f-]+$/u;
|
|
301
|
+
var WINDOWS_PLATFORM = "win32";
|
|
302
|
+
var BEACON_LIVE_STATUS = 0;
|
|
303
|
+
var BEACON_UNKNOWN_STATUS = 1;
|
|
304
|
+
var BEACON_GONE_STATUS = 2;
|
|
305
|
+
var SOCKET_PROBE_SOURCE = `const net=require('node:net');const socket=net.createConnection(process.argv[1]);socket.once('connect',()=>process.exit(${String(BEACON_LIVE_STATUS)}));socket.once('error',(error)=>process.exit(['ECONNREFUSED','ENOENT'].includes(error.code)?${String(BEACON_GONE_STATUS)}:${String(BEACON_UNKNOWN_STATUS)}));socket.setTimeout(1000,()=>process.exit(${String(BEACON_UNKNOWN_STATUS)}));`;
|
|
306
|
+
var beacons = /* @__PURE__ */ new Map();
|
|
307
|
+
var exit_cleanup = { is_registered: false };
|
|
308
|
+
function signal_refusal(pid) {
|
|
309
|
+
try {
|
|
310
|
+
process.kill(pid, LIVENESS_SIGNAL);
|
|
311
|
+
return void 0;
|
|
312
|
+
} catch (error) {
|
|
313
|
+
return error.code ?? NO_SUCH_PROCESS;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
function is_live_pid(pid) {
|
|
317
|
+
return pid >= LOWEST_REAL_PID && signal_refusal(pid) === void 0;
|
|
318
|
+
}
|
|
319
|
+
function is_present_pid(pid) {
|
|
320
|
+
return pid >= LOWEST_REAL_PID && signal_refusal(pid) !== NO_SUCH_PROCESS;
|
|
321
|
+
}
|
|
322
|
+
function read_proc_start(pid) {
|
|
323
|
+
try {
|
|
324
|
+
const stat = readFileSync(`/proc/${String(pid)}/stat`, "utf8");
|
|
325
|
+
const fields = stat.slice(stat.lastIndexOf(")") + 1).trim().split(/\s+/u);
|
|
326
|
+
const start = fields[PROC_START_FIELD_INDEX];
|
|
327
|
+
return start === void 0 ? void 0 : `proc:${start}`;
|
|
328
|
+
} catch {
|
|
329
|
+
return void 0;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
function read_ps_start(pid) {
|
|
333
|
+
try {
|
|
334
|
+
const printed = execFileSync(
|
|
335
|
+
PS_COMMAND,
|
|
336
|
+
[FORMAT_FLAG, START_TIME_FORMAT, PID_FLAG, String(pid)],
|
|
337
|
+
{
|
|
338
|
+
encoding: "utf8",
|
|
339
|
+
timeout: PROBE_TIMEOUT_MS,
|
|
340
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
341
|
+
env: PROBE_ENVIRONMENT
|
|
342
|
+
}
|
|
343
|
+
).trim();
|
|
344
|
+
return printed.length > 0 ? printed : void 0;
|
|
345
|
+
} catch {
|
|
346
|
+
return void 0;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
var START_PROBES = { read_proc_start, read_ps_start };
|
|
350
|
+
function safe_probe(probe, pid) {
|
|
351
|
+
try {
|
|
352
|
+
return probe(pid);
|
|
353
|
+
} catch {
|
|
354
|
+
return void 0;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
function read_start(pid, probes = START_PROBES) {
|
|
358
|
+
return safe_probe(probes.read_proc_start, pid) ?? safe_probe(probes.read_ps_start, pid);
|
|
359
|
+
}
|
|
360
|
+
function close_beacon(token) {
|
|
361
|
+
const server = beacons.get(token);
|
|
362
|
+
if (server === void 0) return;
|
|
363
|
+
beacons.delete(token);
|
|
364
|
+
server.close();
|
|
365
|
+
rmSync2(token.slice(BEACON_SCHEME.length), { force: true });
|
|
366
|
+
}
|
|
367
|
+
function close_beacons() {
|
|
368
|
+
for (const token of beacons.keys()) close_beacon(token);
|
|
369
|
+
}
|
|
370
|
+
function ensure_exit_cleanup() {
|
|
371
|
+
if (exit_cleanup.is_registered) return;
|
|
372
|
+
exit_cleanup.is_registered = true;
|
|
373
|
+
process.once("exit", close_beacons);
|
|
374
|
+
}
|
|
375
|
+
function ignore_beacon_error() {
|
|
376
|
+
}
|
|
377
|
+
function bind_beacon(target2) {
|
|
378
|
+
return createServer().on("error", ignore_beacon_error).listen(target2);
|
|
379
|
+
}
|
|
380
|
+
function try_bind_beacon(bind, target2) {
|
|
381
|
+
try {
|
|
382
|
+
const server = bind(target2);
|
|
383
|
+
return server.listening ? server : void 0;
|
|
384
|
+
} catch {
|
|
385
|
+
return void 0;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
function open_beacon(bind = bind_beacon) {
|
|
389
|
+
const target2 = path3.join(PLATFORM_TEMP_ROOT, `${BEACON_PREFIX}${randomUUID()}${BEACON_SUFFIX}`);
|
|
390
|
+
const token = `${BEACON_SCHEME}${target2}`;
|
|
391
|
+
const server = try_bind_beacon(bind, target2);
|
|
392
|
+
if (server === void 0) return void 0;
|
|
393
|
+
server.unref();
|
|
394
|
+
beacons.set(token, server);
|
|
395
|
+
ensure_exit_cleanup();
|
|
396
|
+
return token;
|
|
397
|
+
}
|
|
398
|
+
function resolve_own_start(probes = START_PROBES, platform = process.platform) {
|
|
399
|
+
const start = read_start(process.pid, probes);
|
|
400
|
+
if (start !== void 0 || platform === WINDOWS_PLATFORM) return start;
|
|
401
|
+
return open_beacon();
|
|
402
|
+
}
|
|
403
|
+
function is_valid_beacon_name(name) {
|
|
404
|
+
if (!name.startsWith(BEACON_PREFIX) || !name.endsWith(BEACON_SUFFIX)) return false;
|
|
405
|
+
const id = name.slice(BEACON_PREFIX.length, -BEACON_SUFFIX.length);
|
|
406
|
+
return id.length === BEACON_ID_LENGTH && BEACON_ID_PATTERN.test(id);
|
|
407
|
+
}
|
|
408
|
+
function beacon_target(token) {
|
|
409
|
+
if (!token.startsWith(BEACON_SCHEME)) return void 0;
|
|
410
|
+
const target2 = token.slice(BEACON_SCHEME.length);
|
|
411
|
+
if (path3.dirname(target2) !== PLATFORM_TEMP_ROOT) return void 0;
|
|
412
|
+
return is_valid_beacon_name(path3.basename(target2)) ? target2 : void 0;
|
|
413
|
+
}
|
|
414
|
+
function run_socket_probe(target2, kill_after_ms = PROBE_TIMEOUT_MS) {
|
|
415
|
+
return spawnSync(process.execPath, ["-e", SOCKET_PROBE_SOURCE, target2], {
|
|
416
|
+
stdio: "ignore",
|
|
417
|
+
timeout: kill_after_ms
|
|
418
|
+
}).status ?? void 0;
|
|
419
|
+
}
|
|
420
|
+
function is_live_beacon(target2, probe = run_socket_probe) {
|
|
421
|
+
const own = beacons.get(`${BEACON_SCHEME}${target2}`);
|
|
422
|
+
if (own !== void 0) return own.listening;
|
|
423
|
+
const status = probe(target2);
|
|
424
|
+
if (status === BEACON_LIVE_STATUS) return true;
|
|
425
|
+
return status === BEACON_GONE_STATUS ? false : void 0;
|
|
426
|
+
}
|
|
427
|
+
function has_matching_start(pid, recorded_start, read) {
|
|
428
|
+
const observed = read(pid);
|
|
429
|
+
return observed === void 0 ? void 0 : observed === recorded_start;
|
|
430
|
+
}
|
|
431
|
+
function matches_recorded_start(pid, recorded_start, read) {
|
|
432
|
+
const target2 = beacon_target(recorded_start);
|
|
433
|
+
return target2 === void 0 ? has_matching_start(pid, recorded_start, read) : is_live_beacon(target2);
|
|
434
|
+
}
|
|
435
|
+
var own_probe = /* @__PURE__ */ new Map();
|
|
436
|
+
function own_start() {
|
|
437
|
+
if (!own_probe.has(process.pid)) own_probe.set(process.pid, resolve_own_start());
|
|
438
|
+
return own_probe.get(process.pid);
|
|
439
|
+
}
|
|
440
|
+
function own_fields() {
|
|
441
|
+
const start = own_start();
|
|
442
|
+
return { pid: process.pid, ...start !== void 0 && { process_start: start } };
|
|
443
|
+
}
|
|
444
|
+
function is_same_process(pid, recorded_start, read = read_start) {
|
|
445
|
+
if (pid === void 0 || !is_live_pid(pid)) return false;
|
|
446
|
+
if (recorded_start === void 0) return void 0;
|
|
447
|
+
return matches_recorded_start(pid, recorded_start, read);
|
|
448
|
+
}
|
|
449
|
+
function is_present_process(pid, recorded_start, read = read_start) {
|
|
450
|
+
if (!is_present_pid(pid)) return false;
|
|
451
|
+
if (recorded_start === void 0) return void 0;
|
|
452
|
+
return matches_recorded_start(pid, recorded_start, read);
|
|
453
|
+
}
|
|
454
|
+
function is_own_process(pid, recorded_start) {
|
|
455
|
+
return pid === process.pid && recorded_start === own_start();
|
|
456
|
+
}
|
|
457
|
+
var process_identity = {
|
|
458
|
+
PROBE_ENVIRONMENT,
|
|
459
|
+
START_PROBES,
|
|
460
|
+
START_TIME_FORMAT,
|
|
461
|
+
close_beacon,
|
|
462
|
+
is_live_beacon,
|
|
463
|
+
is_live_pid,
|
|
464
|
+
is_own_process,
|
|
465
|
+
is_present_pid,
|
|
466
|
+
is_present_process,
|
|
467
|
+
is_same_process,
|
|
468
|
+
open_beacon,
|
|
469
|
+
own_fields,
|
|
470
|
+
own_start,
|
|
471
|
+
read_start,
|
|
472
|
+
resolve_own_start,
|
|
473
|
+
run_socket_probe
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
// scripts/issue/issue-number-shape.ts
|
|
477
|
+
var ISSUE_NUMBER_PATTERN = /^[1-9]\d*$/u;
|
|
478
|
+
var BAD_ISSUE_MESSAGE = "Not an issue number: ";
|
|
479
|
+
var ISSUE_PREFIX = "#";
|
|
480
|
+
function is_issue_number(value) {
|
|
481
|
+
return ISSUE_NUMBER_PATTERN.test(value);
|
|
482
|
+
}
|
|
483
|
+
function require_issue_number(issue) {
|
|
484
|
+
if (!is_issue_number(issue)) throw new Error(`${BAD_ISSUE_MESSAGE}${issue}`);
|
|
485
|
+
}
|
|
486
|
+
function single_of(positionals) {
|
|
487
|
+
const [issue_number, ...rest] = positionals;
|
|
488
|
+
const is_single = rest.length === 0 && issue_number !== void 0;
|
|
489
|
+
return is_single && ISSUE_NUMBER_PATTERN.test(issue_number) ? issue_number : void 0;
|
|
490
|
+
}
|
|
491
|
+
function issue_token(token) {
|
|
492
|
+
return ISSUE_NUMBER_PATTERN.test(token) ? `${ISSUE_PREFIX}${token}` : token;
|
|
493
|
+
}
|
|
494
|
+
var issue_number_shape = {
|
|
495
|
+
ISSUE_NUMBER_PATTERN,
|
|
496
|
+
is_issue_number,
|
|
497
|
+
issue_token,
|
|
498
|
+
require_issue_number,
|
|
499
|
+
single_of
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
// scripts/lib/cli-flags.ts
|
|
503
|
+
import { parseArgs } from "node:util";
|
|
504
|
+
var HELP_FLAGS = /* @__PURE__ */ new Set(["--help", "-h"]);
|
|
505
|
+
function usage_line(known_flags, command) {
|
|
506
|
+
if (known_flags.length === 0) return `Usage: josh ${command}`;
|
|
507
|
+
return `Usage: josh ${command} [${known_flags.join("] [")}]`;
|
|
508
|
+
}
|
|
509
|
+
function refuse_unknown_flags(argv, known_flags, command) {
|
|
510
|
+
const unknown = argv.filter((argument) => !known_flags.includes(argument));
|
|
511
|
+
if (unknown.length === 0) return void 0;
|
|
512
|
+
return `Unknown argument(s): ${unknown.join(" ")}
|
|
513
|
+
${usage_line(known_flags, command)}`;
|
|
514
|
+
}
|
|
515
|
+
function answer_help_or_unknown(argv, known_flags, command) {
|
|
516
|
+
if (argv.some((argument) => HELP_FLAGS.has(argument))) {
|
|
517
|
+
console.info(usage_line(known_flags, command));
|
|
518
|
+
return 0;
|
|
519
|
+
}
|
|
520
|
+
const refusal = refuse_unknown_flags(argv, known_flags, command);
|
|
521
|
+
if (refusal === void 0) return void 0;
|
|
522
|
+
console.error(refusal);
|
|
523
|
+
return 1;
|
|
524
|
+
}
|
|
525
|
+
function parse_or_undefined(config) {
|
|
526
|
+
try {
|
|
527
|
+
return parseArgs(config);
|
|
528
|
+
} catch {
|
|
529
|
+
return void 0;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
function values_of(argv, options) {
|
|
533
|
+
return parse_or_undefined({ args: [...argv], options })?.values;
|
|
534
|
+
}
|
|
535
|
+
function arguments_of(argv, options) {
|
|
536
|
+
return parse_or_undefined({ args: [...argv], options, allowPositionals: true });
|
|
537
|
+
}
|
|
538
|
+
function string_of(value) {
|
|
539
|
+
return typeof value === "string" ? value : void 0;
|
|
540
|
+
}
|
|
541
|
+
var LONG_FLAG_PREFIX = "--";
|
|
542
|
+
var SHORT_FLAG_PREFIX = "-";
|
|
543
|
+
function option_name(flag) {
|
|
544
|
+
return flag.slice(LONG_FLAG_PREFIX.length);
|
|
545
|
+
}
|
|
546
|
+
function is_unusable_value(value) {
|
|
547
|
+
if (typeof value === "boolean" || value.length === 0) return true;
|
|
548
|
+
return value !== SHORT_FLAG_PREFIX && value.startsWith(SHORT_FLAG_PREFIX);
|
|
549
|
+
}
|
|
550
|
+
function given_values(argv, flag) {
|
|
551
|
+
const name = option_name(flag);
|
|
552
|
+
const given = parse_or_undefined({
|
|
553
|
+
args: [...argv],
|
|
554
|
+
options: { [name]: { type: "string", multiple: true } },
|
|
555
|
+
strict: false,
|
|
556
|
+
allowPositionals: true
|
|
557
|
+
})?.values[name];
|
|
558
|
+
return Array.isArray(given) ? given : [];
|
|
559
|
+
}
|
|
560
|
+
function is_value_unusable(argv, flag) {
|
|
561
|
+
return given_values(argv, flag).some((value) => is_unusable_value(value));
|
|
562
|
+
}
|
|
563
|
+
function attach_one(attached, argument, flags) {
|
|
564
|
+
const previous = attached.at(-1);
|
|
565
|
+
if (previous !== void 0 && flags.includes(previous)) {
|
|
566
|
+
attached[attached.length - 1] = `${previous}=${argument}`;
|
|
567
|
+
} else attached.push(argument);
|
|
568
|
+
}
|
|
569
|
+
function attach_values(argv, flags) {
|
|
570
|
+
const attached = [];
|
|
571
|
+
for (const argument of argv) attach_one(attached, argument, flags);
|
|
572
|
+
return attached;
|
|
573
|
+
}
|
|
574
|
+
var COUNT_PATTERN = /^\d+$/u;
|
|
575
|
+
var POSITIVE_PATTERN = /^[1-9]\d*$/u;
|
|
576
|
+
function to_integer(raw, pattern) {
|
|
577
|
+
if (raw === void 0 || !pattern.test(raw)) return void 0;
|
|
578
|
+
const parsed = Number(raw);
|
|
579
|
+
return Number.isSafeInteger(parsed) ? parsed : void 0;
|
|
580
|
+
}
|
|
581
|
+
function to_count(raw) {
|
|
582
|
+
return to_integer(raw, COUNT_PATTERN);
|
|
583
|
+
}
|
|
584
|
+
function to_positive(raw) {
|
|
585
|
+
return to_integer(raw, POSITIVE_PATTERN);
|
|
586
|
+
}
|
|
587
|
+
function read_positive_setting(raw, name, fallback) {
|
|
588
|
+
const trimmed2 = raw?.trim() ?? "";
|
|
589
|
+
if (trimmed2 === "") return { kind: "limit", limit: fallback };
|
|
590
|
+
const limit = to_positive(trimmed2);
|
|
591
|
+
if (limit !== void 0) return { kind: "limit", limit };
|
|
592
|
+
return { kind: "problem", problem: `${name} must be a positive integer, not "${trimmed2}"` };
|
|
593
|
+
}
|
|
594
|
+
var cli_flags = {
|
|
595
|
+
to_count,
|
|
596
|
+
to_positive,
|
|
597
|
+
read_positive_setting,
|
|
598
|
+
attach_values,
|
|
599
|
+
usage_line,
|
|
600
|
+
refuse_unknown_flags,
|
|
601
|
+
answer_help_or_unknown,
|
|
602
|
+
parse_or_undefined,
|
|
603
|
+
values_of,
|
|
604
|
+
arguments_of,
|
|
605
|
+
string_of,
|
|
606
|
+
option_name,
|
|
607
|
+
given_values,
|
|
608
|
+
is_value_unusable
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
// scripts/run/run-invocation.ts
|
|
612
|
+
var BACKLOG_COMMAND = "backlogrun";
|
|
613
|
+
var KNOWN_FLAGS = ["--max", "--idle"];
|
|
614
|
+
var ONLY_FLAG = "--only";
|
|
615
|
+
var OPTIONS = {
|
|
616
|
+
max: { type: "string" },
|
|
617
|
+
idle: { type: "string" },
|
|
618
|
+
only: { type: "boolean" }
|
|
619
|
+
};
|
|
620
|
+
var ISSUE_PREFIX2 = "#";
|
|
621
|
+
var FLAG_PREFIX = "-";
|
|
622
|
+
var TOKEN_SEPARATOR = " ";
|
|
623
|
+
var FIRST_TOKEN = 0;
|
|
624
|
+
var FIRST_ARGUMENT_INDEX = 1;
|
|
625
|
+
var EMPTY_LENGTH2 = 0;
|
|
626
|
+
var NOT_FOUND = -1;
|
|
627
|
+
function tokens_of(invocation) {
|
|
628
|
+
return invocation.split(TOKEN_SEPARATOR).filter((token) => token.length > EMPTY_LENGTH2);
|
|
629
|
+
}
|
|
630
|
+
function render_option(token) {
|
|
631
|
+
if (token.name === cli_flags.option_name(ONLY_FLAG)) return ONLY_FLAG;
|
|
632
|
+
const flag = KNOWN_FLAGS.find((known) => cli_flags.option_name(known) === token.name);
|
|
633
|
+
const value = cli_flags.to_count(token.value);
|
|
634
|
+
if (flag === void 0 || value === void 0) return void 0;
|
|
635
|
+
return `${flag} ${String(value)}`;
|
|
636
|
+
}
|
|
637
|
+
function rendered_options(tokens) {
|
|
638
|
+
const rendered = [];
|
|
639
|
+
for (const token of tokens) {
|
|
640
|
+
const part = render_option(token);
|
|
641
|
+
if (part === void 0) return void 0;
|
|
642
|
+
rendered.push(part);
|
|
643
|
+
}
|
|
644
|
+
return rendered;
|
|
645
|
+
}
|
|
646
|
+
function issue_of(token) {
|
|
647
|
+
if (!token.startsWith(ISSUE_PREFIX2)) return void 0;
|
|
648
|
+
const digits = token.slice(ISSUE_PREFIX2.length);
|
|
649
|
+
if (!issue_number_shape.ISSUE_NUMBER_PATTERN.test(digits)) return void 0;
|
|
650
|
+
const issue = Number(digits);
|
|
651
|
+
return Number.isSafeInteger(issue) ? issue : void 0;
|
|
652
|
+
}
|
|
653
|
+
function issues_of(tokens) {
|
|
654
|
+
const issues = [];
|
|
655
|
+
for (const token of tokens) {
|
|
656
|
+
const issue = issue_of(token.value ?? "");
|
|
657
|
+
if (issue === void 0) return void 0;
|
|
658
|
+
issues.push(issue);
|
|
659
|
+
}
|
|
660
|
+
return issues;
|
|
661
|
+
}
|
|
662
|
+
function argument_tokens(invocation) {
|
|
663
|
+
const tokens = tokens_of(invocation);
|
|
664
|
+
if (tokens[FIRST_TOKEN] !== BACKLOG_COMMAND) return void 0;
|
|
665
|
+
return cli_flags.parse_or_undefined({
|
|
666
|
+
args: tokens.slice(FIRST_ARGUMENT_INDEX),
|
|
667
|
+
options: OPTIONS,
|
|
668
|
+
allowPositionals: true,
|
|
669
|
+
tokens: true
|
|
670
|
+
})?.tokens;
|
|
671
|
+
}
|
|
672
|
+
function parse(invocation) {
|
|
673
|
+
const tokens = argument_tokens(invocation);
|
|
674
|
+
if (tokens === void 0) return void 0;
|
|
675
|
+
const stop = tokens.findIndex((token) => token.kind !== "positional");
|
|
676
|
+
const split_at = stop === NOT_FOUND ? tokens.length : stop;
|
|
677
|
+
const issues = issues_of(tokens.slice(FIRST_TOKEN, split_at));
|
|
678
|
+
const flags = rendered_options(tokens.slice(split_at));
|
|
679
|
+
if (issues === void 0 || flags === void 0) return void 0;
|
|
680
|
+
return { issues, flags };
|
|
681
|
+
}
|
|
682
|
+
function issue_token2(issue) {
|
|
683
|
+
return `${ISSUE_PREFIX2}${String(issue)}`;
|
|
684
|
+
}
|
|
685
|
+
function joined(command, rendered) {
|
|
686
|
+
return [command, ...rendered].join(TOKEN_SEPARATOR);
|
|
687
|
+
}
|
|
688
|
+
function rebuild(invocation) {
|
|
689
|
+
const parsed = parse(invocation);
|
|
690
|
+
if (parsed === void 0) return void 0;
|
|
691
|
+
return joined(BACKLOG_COMMAND, [
|
|
692
|
+
...parsed.issues.map((issue) => issue_token2(issue)),
|
|
693
|
+
...parsed.flags
|
|
694
|
+
]);
|
|
695
|
+
}
|
|
696
|
+
function issue_numbers(invocation) {
|
|
697
|
+
const tokens = tokens_of(invocation);
|
|
698
|
+
const stop = tokens.findIndex((token) => token.startsWith(FLAG_PREFIX));
|
|
699
|
+
const leading = stop === NOT_FOUND ? tokens : tokens.slice(FIRST_TOKEN, stop);
|
|
700
|
+
const issues = parse(leading.join(TOKEN_SEPARATOR))?.issues;
|
|
701
|
+
if (issues === void 0 || issues.length === EMPTY_LENGTH2) return void 0;
|
|
702
|
+
return issues;
|
|
703
|
+
}
|
|
704
|
+
function has_only(invocation) {
|
|
705
|
+
return parse(invocation)?.flags.includes(ONLY_FLAG) === true;
|
|
706
|
+
}
|
|
707
|
+
var run_invocation = {
|
|
708
|
+
has_only,
|
|
709
|
+
issue_numbers,
|
|
710
|
+
rebuild
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
// scripts/run/carry/run-carry-added.ts
|
|
714
|
+
function issues_of2(added, is_priority) {
|
|
715
|
+
return added.filter((entry) => entry.is_priority === is_priority).map((entry) => entry.issue);
|
|
716
|
+
}
|
|
717
|
+
function ordered(declared, added = []) {
|
|
718
|
+
const sequence = [...issues_of2(added, true), ...declared, ...issues_of2(added, false)];
|
|
719
|
+
return sequence.filter((issue, index) => sequence.indexOf(issue) === index);
|
|
720
|
+
}
|
|
721
|
+
function next_added(carry, additions) {
|
|
722
|
+
const next = [...carry.added ?? []];
|
|
723
|
+
for (const addition of additions) {
|
|
724
|
+
if (next.every((entry) => entry.issue !== addition.issue)) next.push(addition);
|
|
725
|
+
}
|
|
726
|
+
return next;
|
|
727
|
+
}
|
|
728
|
+
function add_issues(target2, carry, additions, retries = []) {
|
|
729
|
+
const next = {
|
|
730
|
+
...carry,
|
|
731
|
+
added: additions.length === 0 ? carry.added : next_added(carry, additions),
|
|
732
|
+
done: carry.done?.filter((issue) => !retries.includes(issue))
|
|
733
|
+
};
|
|
734
|
+
stamp_file.replace_stamp(target2, next);
|
|
735
|
+
return next;
|
|
736
|
+
}
|
|
737
|
+
var run_carry_added = { add_issues, ordered };
|
|
738
|
+
|
|
739
|
+
// scripts/run/carry/run-carry-streak.ts
|
|
740
|
+
var NO_INCREMENT = 0;
|
|
741
|
+
var OUTAGE_FOLD_WINDOW_MS = 12e4;
|
|
742
|
+
function has_increment(value) {
|
|
743
|
+
return (value ?? NO_INCREMENT) > NO_INCREMENT;
|
|
744
|
+
}
|
|
745
|
+
function next_failures(carry, change) {
|
|
746
|
+
if (has_increment(change.merged)) return NO_INCREMENT;
|
|
747
|
+
return carry.failures + (change.failures ?? NO_INCREMENT);
|
|
748
|
+
}
|
|
749
|
+
function is_within_fold_window(last_outage_at, now) {
|
|
750
|
+
if (last_outage_at === void 0) return false;
|
|
751
|
+
const last = Date.parse(last_outage_at);
|
|
752
|
+
if (Number.isNaN(last)) return false;
|
|
753
|
+
return now.getTime() - last <= OUTAGE_FOLD_WINDOW_MS;
|
|
754
|
+
}
|
|
755
|
+
function folded_outage(carry) {
|
|
756
|
+
return { outages: carry.outages, last_outage_at: carry.last_outage_at };
|
|
757
|
+
}
|
|
758
|
+
function counted_outage(carry, change, now) {
|
|
759
|
+
const outages = carry.outages + (change.outages ?? NO_INCREMENT);
|
|
760
|
+
return { outages, last_outage_at: now.toISOString() };
|
|
761
|
+
}
|
|
762
|
+
function next_outage(carry, change, now) {
|
|
763
|
+
if (has_increment(change.outages)) {
|
|
764
|
+
return is_within_fold_window(carry.last_outage_at, now) ? folded_outage(carry) : counted_outage(carry, change, now);
|
|
765
|
+
}
|
|
766
|
+
const is_reachable = has_increment(change.merged) || has_increment(change.failures);
|
|
767
|
+
return is_reachable ? { outages: NO_INCREMENT, last_outage_at: void 0 } : folded_outage(carry);
|
|
768
|
+
}
|
|
769
|
+
function next_state(carry, change, now) {
|
|
770
|
+
const outage = next_outage(carry, change, now);
|
|
771
|
+
return {
|
|
772
|
+
failures: next_failures(carry, change),
|
|
773
|
+
outages: outage.outages,
|
|
774
|
+
last_outage_at: outage.last_outage_at
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
var run_carry_streak = { next_state };
|
|
778
|
+
|
|
779
|
+
// scripts/run/carry/run-carry-change.ts
|
|
780
|
+
var NO_INCREMENT2 = 0;
|
|
781
|
+
function next_done(carry, done) {
|
|
782
|
+
if (done === void 0) return carry.done;
|
|
783
|
+
const current = carry.done ?? [];
|
|
784
|
+
return current.includes(done) ? current : [...current, done];
|
|
785
|
+
}
|
|
786
|
+
function next_merged_issues(carry, issue) {
|
|
787
|
+
if (issue === void 0) return carry.merged_issues;
|
|
788
|
+
const current = carry.merged_issues ?? [];
|
|
789
|
+
return current.includes(issue) ? current : [...current, issue];
|
|
790
|
+
}
|
|
791
|
+
function is_duplicate_merge(carry, change) {
|
|
792
|
+
const issue = change.merged_issue;
|
|
793
|
+
return issue !== void 0 && carry.merged_issues?.includes(issue) === true;
|
|
794
|
+
}
|
|
795
|
+
function has_other_change(change) {
|
|
796
|
+
const amounts = [change.filed, change.cuts, change.failures, change.outages];
|
|
797
|
+
const has_amount = amounts.some((amount) => (amount ?? NO_INCREMENT2) > NO_INCREMENT2);
|
|
798
|
+
return has_amount || change.done !== void 0 || change.retrospective === true;
|
|
799
|
+
}
|
|
800
|
+
function effective_change(carry, change) {
|
|
801
|
+
if (!is_duplicate_merge(carry, change)) return change;
|
|
802
|
+
return has_other_change(change) ? { ...change, merged: NO_INCREMENT2 } : void 0;
|
|
803
|
+
}
|
|
804
|
+
function next_counts(carry, change) {
|
|
805
|
+
const cuts = change.cuts ?? NO_INCREMENT2;
|
|
806
|
+
return {
|
|
807
|
+
merged: carry.merged + (change.merged ?? NO_INCREMENT2),
|
|
808
|
+
filed: carry.filed + (change.filed ?? NO_INCREMENT2),
|
|
809
|
+
cuts: carry.cuts + cuts,
|
|
810
|
+
is_handed_off: cuts > NO_INCREMENT2
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
function apply_change(target2, carry, change, now = /* @__PURE__ */ new Date()) {
|
|
814
|
+
const effective = effective_change(carry, change);
|
|
815
|
+
if (effective === void 0) return carry;
|
|
816
|
+
const streak = run_carry_streak.next_state(carry, effective, now);
|
|
817
|
+
const next = {
|
|
818
|
+
...carry,
|
|
819
|
+
...next_counts(carry, effective),
|
|
820
|
+
merged_issues: next_merged_issues(carry, effective.merged_issue),
|
|
821
|
+
failures: streak.failures,
|
|
822
|
+
outages: streak.outages,
|
|
823
|
+
last_outage_at: streak.last_outage_at,
|
|
824
|
+
done: next_done(carry, effective.done),
|
|
825
|
+
retrospective: effective.retrospective === true || carry.retrospective
|
|
826
|
+
};
|
|
827
|
+
stamp_file.replace_stamp(target2, next);
|
|
828
|
+
return next;
|
|
829
|
+
}
|
|
830
|
+
var run_carry_change = { apply_change };
|
|
831
|
+
|
|
832
|
+
// scripts/run/carry/run-carry-conversation.ts
|
|
833
|
+
import { existsSync, statSync as statSync2 } from "node:fs";
|
|
834
|
+
import path6 from "node:path";
|
|
835
|
+
|
|
836
|
+
// scripts/cost-runtime/cost-transcript.ts
|
|
837
|
+
import { readdirSync as readdirSync2, readFileSync as readFileSync3, statSync } from "node:fs";
|
|
838
|
+
import { homedir } from "node:os";
|
|
839
|
+
import path5 from "node:path";
|
|
840
|
+
|
|
841
|
+
// scripts/lane/lane-paths.ts
|
|
842
|
+
import path4 from "node:path";
|
|
843
|
+
var LANE_ROOT_KEY = "JOSH_LANE_ROOT";
|
|
844
|
+
var LANE_DIRECTORY_SUFFIX = "-lanes";
|
|
845
|
+
var LANE_BRANCH_SUFFIX = "-lane";
|
|
846
|
+
function default_lane_root(repository_root) {
|
|
847
|
+
const name = path4.basename(repository_root);
|
|
848
|
+
return path4.join(path4.dirname(repository_root), `.${name}${LANE_DIRECTORY_SUFFIX}`);
|
|
849
|
+
}
|
|
850
|
+
function lane_root(repository_root, environment = process.env) {
|
|
851
|
+
const configured = environment[LANE_ROOT_KEY]?.trim() ?? "";
|
|
852
|
+
return configured.length === 0 ? default_lane_root(repository_root) : path4.resolve(configured);
|
|
853
|
+
}
|
|
854
|
+
function lane_directory(root2, issue) {
|
|
855
|
+
return path4.join(root2, issue);
|
|
856
|
+
}
|
|
857
|
+
var DEFAULT_LANE_ROOT_PATTERN = new RegExp(String.raw`^\..+${LANE_DIRECTORY_SUFFIX}$`, "u");
|
|
858
|
+
var DEFAULT_LANE_FILE_PATTERN = new RegExp(
|
|
859
|
+
String.raw`([/\\])\.([^/\\]+)${LANE_DIRECTORY_SUFFIX}[/\\]\d+(?=[/\\]|$)`,
|
|
860
|
+
"u"
|
|
861
|
+
);
|
|
862
|
+
function main_checkout_path(file) {
|
|
863
|
+
return file.replace(DEFAULT_LANE_FILE_PATTERN, "$1$2");
|
|
864
|
+
}
|
|
865
|
+
function is_lane_root(directory, environment) {
|
|
866
|
+
const configured = environment[LANE_ROOT_KEY]?.trim() ?? "";
|
|
867
|
+
if (configured.length > 0) return path4.resolve(configured) === directory;
|
|
868
|
+
return DEFAULT_LANE_ROOT_PATTERN.test(path4.basename(directory));
|
|
869
|
+
}
|
|
870
|
+
var CLAUDE_WORKTREES_PATTERN = /[/\\]\.claude[/\\]worktrees[/\\][^/\\]+(?:[/\\].*)?$/u;
|
|
871
|
+
function checkout_of(directory) {
|
|
872
|
+
return directory.replace(CLAUDE_WORKTREES_PATTERN, "");
|
|
873
|
+
}
|
|
874
|
+
function lane_issue_of(directory, environment = process.env) {
|
|
875
|
+
const resolved = checkout_of(path4.resolve(directory));
|
|
876
|
+
const issue = path4.basename(resolved);
|
|
877
|
+
if (!issue_number_shape.ISSUE_NUMBER_PATTERN.test(issue)) return void 0;
|
|
878
|
+
return is_lane_root(path4.dirname(resolved), environment) ? issue : void 0;
|
|
879
|
+
}
|
|
880
|
+
function lanes_root_of(checkout, environment = process.env) {
|
|
881
|
+
const resolved = checkout_of(path4.resolve(checkout));
|
|
882
|
+
if (lane_issue_of(resolved, environment) === void 0) return lane_root(resolved, environment);
|
|
883
|
+
return path4.dirname(resolved);
|
|
884
|
+
}
|
|
885
|
+
function issue_here(directory = process.cwd(), environment = process.env) {
|
|
886
|
+
const lane = lane_issue_of(directory, environment);
|
|
887
|
+
return lane === void 0 ? void 0 : Number(lane);
|
|
888
|
+
}
|
|
889
|
+
function lane_branch(issue) {
|
|
890
|
+
return `${issue}${LANE_BRANCH_SUFFIX}`;
|
|
891
|
+
}
|
|
892
|
+
var SEAT_LOCK_DIR = ".seat-locks";
|
|
893
|
+
function is_lane_entry(name) {
|
|
894
|
+
return issue_number_shape.ISSUE_NUMBER_PATTERN.test(name) || DEFAULT_LANE_ROOT_PATTERN.test(name);
|
|
895
|
+
}
|
|
896
|
+
var lane_paths = {
|
|
897
|
+
LANE_BRANCH_SUFFIX,
|
|
898
|
+
LANE_ROOT_KEY,
|
|
899
|
+
SEAT_LOCK_DIR,
|
|
900
|
+
checkout_of,
|
|
901
|
+
default_lane_root,
|
|
902
|
+
is_lane_entry,
|
|
903
|
+
issue_here,
|
|
904
|
+
lane_branch,
|
|
905
|
+
lane_directory,
|
|
906
|
+
lane_issue_of,
|
|
907
|
+
lane_root,
|
|
908
|
+
lanes_root_of,
|
|
909
|
+
main_checkout_path
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
// scripts/lib/read-file.ts
|
|
913
|
+
import { readFileSync as readFileSync2 } from "node:fs";
|
|
914
|
+
var ABSENT_CODE = "ENOENT";
|
|
915
|
+
function is_absent(error) {
|
|
916
|
+
return error instanceof Error && "code" in error && error.code === ABSENT_CODE;
|
|
917
|
+
}
|
|
918
|
+
function read_optional(path7) {
|
|
919
|
+
try {
|
|
920
|
+
return readFileSync2(path7, "utf8");
|
|
921
|
+
} catch (error) {
|
|
922
|
+
if (is_absent(error)) return void 0;
|
|
923
|
+
throw error;
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
function read_file_or_empty(path7) {
|
|
927
|
+
return read_optional(path7) ?? "";
|
|
928
|
+
}
|
|
929
|
+
function read_if_readable(path7) {
|
|
930
|
+
try {
|
|
931
|
+
return readFileSync2(path7, "utf8");
|
|
932
|
+
} catch {
|
|
933
|
+
return void 0;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
var file_reader = { is_absent, read_optional, read_file_or_empty, read_if_readable };
|
|
937
|
+
|
|
938
|
+
// scripts/time-runtime/time-instant.ts
|
|
939
|
+
function parse_instant(raw) {
|
|
940
|
+
if (raw === null || raw === void 0) return void 0;
|
|
941
|
+
const parsed = Date.parse(raw);
|
|
942
|
+
return Number.isNaN(parsed) ? void 0 : parsed;
|
|
943
|
+
}
|
|
944
|
+
var time_instant = { parse_instant };
|
|
945
|
+
|
|
946
|
+
// scripts/cost-runtime/cost-usage.ts
|
|
947
|
+
var CACHE_CREATION_SCHEMA = external_exports.object({
|
|
948
|
+
ephemeral_1h_input_tokens: external_exports.number().nullish(),
|
|
949
|
+
ephemeral_5m_input_tokens: external_exports.number().nullish()
|
|
950
|
+
});
|
|
951
|
+
var USAGE_SCHEMA = external_exports.object({
|
|
952
|
+
input_tokens: external_exports.number(),
|
|
953
|
+
cache_creation_input_tokens: external_exports.number().nullish(),
|
|
954
|
+
cache_read_input_tokens: external_exports.number().nullish(),
|
|
955
|
+
output_tokens: external_exports.number(),
|
|
956
|
+
output_tokens_details: external_exports.object({ thinking_tokens: external_exports.number().nullish() }).nullish(),
|
|
957
|
+
cache_creation: CACHE_CREATION_SCHEMA.nullish()
|
|
958
|
+
});
|
|
959
|
+
var MESSAGE_SCHEMA = external_exports.object({
|
|
960
|
+
id: external_exports.string().nullish(),
|
|
961
|
+
model: external_exports.string().nullish(),
|
|
962
|
+
usage: USAGE_SCHEMA.nullish()
|
|
963
|
+
});
|
|
964
|
+
var LINE_SCHEMA = external_exports.object({
|
|
965
|
+
type: external_exports.string(),
|
|
966
|
+
requestId: external_exports.string().nullish(),
|
|
967
|
+
uuid: external_exports.string().nullish(),
|
|
968
|
+
gitBranch: external_exports.string().nullish(),
|
|
969
|
+
timestamp: external_exports.string().nullish(),
|
|
970
|
+
message: MESSAGE_SCHEMA.nullish()
|
|
971
|
+
});
|
|
972
|
+
var SYNTHETIC_MODEL = "<synthetic>";
|
|
973
|
+
var EMPTY_TOTALS = {
|
|
974
|
+
input_tokens: 0,
|
|
975
|
+
cache_write_5m_tokens: 0,
|
|
976
|
+
cache_write_1h_tokens: 0,
|
|
977
|
+
cache_read_tokens: 0,
|
|
978
|
+
output_tokens: 0,
|
|
979
|
+
thinking_tokens: 0,
|
|
980
|
+
thinking_measured: false
|
|
981
|
+
};
|
|
982
|
+
var UNKNOWN_MODEL = "unknown";
|
|
983
|
+
var UNKNOWN_BRANCH = "";
|
|
984
|
+
function split_cache_write(usage) {
|
|
985
|
+
const total = usage.cache_creation_input_tokens ?? 0;
|
|
986
|
+
const detail = usage.cache_creation;
|
|
987
|
+
if (!detail) return { write_5m: total, write_1h: 0 };
|
|
988
|
+
const write_1h = detail.ephemeral_1h_input_tokens ?? 0;
|
|
989
|
+
return { write_5m: detail.ephemeral_5m_input_tokens ?? total - write_1h, write_1h };
|
|
990
|
+
}
|
|
991
|
+
function thinking_usage(usage) {
|
|
992
|
+
const raw = usage.output_tokens_details?.thinking_tokens;
|
|
993
|
+
return { tokens: raw ?? 0, measured: raw !== null && raw !== void 0 };
|
|
994
|
+
}
|
|
995
|
+
function to_totals(usage) {
|
|
996
|
+
const { write_5m, write_1h } = split_cache_write(usage);
|
|
997
|
+
const thinking = thinking_usage(usage);
|
|
998
|
+
return {
|
|
999
|
+
input_tokens: usage.input_tokens,
|
|
1000
|
+
cache_write_5m_tokens: write_5m,
|
|
1001
|
+
cache_write_1h_tokens: write_1h,
|
|
1002
|
+
cache_read_tokens: usage.cache_read_input_tokens ?? 0,
|
|
1003
|
+
output_tokens: usage.output_tokens,
|
|
1004
|
+
thinking_tokens: thinking.tokens,
|
|
1005
|
+
thinking_measured: thinking.measured
|
|
1006
|
+
};
|
|
1007
|
+
}
|
|
1008
|
+
function declared_id(data) {
|
|
1009
|
+
return data.requestId ?? data.message?.id ?? data.uuid ?? void 0;
|
|
1010
|
+
}
|
|
1011
|
+
function request_id_of(data, usage) {
|
|
1012
|
+
const fallback = `${data.timestamp ?? ""}-${String(usage.output_tokens)}`;
|
|
1013
|
+
return declared_id(data) ?? fallback;
|
|
1014
|
+
}
|
|
1015
|
+
function to_record(data, usage) {
|
|
1016
|
+
return {
|
|
1017
|
+
request_id: request_id_of(data, usage),
|
|
1018
|
+
model: data.message?.model ?? UNKNOWN_MODEL,
|
|
1019
|
+
branch: data.gitBranch ?? UNKNOWN_BRANCH,
|
|
1020
|
+
at_ms: time_instant.parse_instant(data.timestamp),
|
|
1021
|
+
totals: to_totals(usage)
|
|
1022
|
+
};
|
|
1023
|
+
}
|
|
1024
|
+
var ASSISTANT_TYPE = "assistant";
|
|
1025
|
+
function is_priced_line(data) {
|
|
1026
|
+
return data.type === ASSISTANT_TYPE && data.message?.model !== SYNTHETIC_MODEL;
|
|
1027
|
+
}
|
|
1028
|
+
function classify(data) {
|
|
1029
|
+
if (!is_priced_line(data)) return { kind: "skipped" };
|
|
1030
|
+
const usage = data.message?.usage;
|
|
1031
|
+
return usage ? { kind: "record", record: to_record(data, usage) } : { kind: "no_usage" };
|
|
1032
|
+
}
|
|
1033
|
+
function parse_line(line) {
|
|
1034
|
+
if (line.trim() === "") return { kind: "skipped" };
|
|
1035
|
+
const parsed = LINE_SCHEMA.safeParse(json_value.parse_or_undefined(line));
|
|
1036
|
+
return parsed.success ? classify(parsed.data) : { kind: "malformed" };
|
|
1037
|
+
}
|
|
1038
|
+
function later_instant(left, right) {
|
|
1039
|
+
if (left === void 0) return right;
|
|
1040
|
+
if (right === void 0) return left;
|
|
1041
|
+
return Math.max(left, right);
|
|
1042
|
+
}
|
|
1043
|
+
function dedupe(records) {
|
|
1044
|
+
const by_id = /* @__PURE__ */ new Map();
|
|
1045
|
+
for (const record2 of records) {
|
|
1046
|
+
const seen = by_id.get(record2.request_id);
|
|
1047
|
+
const at_ms = later_instant(seen?.at_ms, record2.at_ms);
|
|
1048
|
+
by_id.set(record2.request_id, { ...seen ?? record2, at_ms });
|
|
1049
|
+
}
|
|
1050
|
+
return [...by_id.values()];
|
|
1051
|
+
}
|
|
1052
|
+
function add_totals(left, right) {
|
|
1053
|
+
return {
|
|
1054
|
+
input_tokens: left.input_tokens + right.input_tokens,
|
|
1055
|
+
cache_write_5m_tokens: left.cache_write_5m_tokens + right.cache_write_5m_tokens,
|
|
1056
|
+
cache_write_1h_tokens: left.cache_write_1h_tokens + right.cache_write_1h_tokens,
|
|
1057
|
+
cache_read_tokens: left.cache_read_tokens + right.cache_read_tokens,
|
|
1058
|
+
output_tokens: left.output_tokens + right.output_tokens,
|
|
1059
|
+
thinking_tokens: left.thinking_tokens + right.thinking_tokens,
|
|
1060
|
+
thinking_measured: left.thinking_measured || right.thinking_measured
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
function sum_totals(records) {
|
|
1064
|
+
let total = EMPTY_TOTALS;
|
|
1065
|
+
for (const record2 of records) total = add_totals(total, record2.totals);
|
|
1066
|
+
return total;
|
|
1067
|
+
}
|
|
1068
|
+
function billed_input(totals) {
|
|
1069
|
+
return totals.input_tokens + totals.cache_write_5m_tokens + totals.cache_write_1h_tokens + totals.cache_read_tokens;
|
|
1070
|
+
}
|
|
1071
|
+
var cost_usage = {
|
|
1072
|
+
EMPTY_TOTALS,
|
|
1073
|
+
UNKNOWN_MODEL,
|
|
1074
|
+
SYNTHETIC_MODEL,
|
|
1075
|
+
parse_line,
|
|
1076
|
+
dedupe,
|
|
1077
|
+
add_totals,
|
|
1078
|
+
sum_totals,
|
|
1079
|
+
billed_input
|
|
1080
|
+
};
|
|
1081
|
+
|
|
1082
|
+
// scripts/cost-runtime/cost-transcript.ts
|
|
1083
|
+
var TRANSCRIPT_ROOT = path5.join(".claude", "projects");
|
|
1084
|
+
var TRANSCRIPT_EXTENSION = ".jsonl";
|
|
1085
|
+
var SLUG_PATTERN = /[^a-zA-Z0-9-]/gu;
|
|
1086
|
+
var UNIT_DIRECTORY = "subagents";
|
|
1087
|
+
var UNIT_ID_SEPARATOR = "/";
|
|
1088
|
+
function project_slug(cwd) {
|
|
1089
|
+
return cwd.replaceAll(SLUG_PATTERN, "-");
|
|
1090
|
+
}
|
|
1091
|
+
function transcript_directory(cwd, home = homedir()) {
|
|
1092
|
+
return path5.join(home, TRANSCRIPT_ROOT, project_slug(cwd));
|
|
1093
|
+
}
|
|
1094
|
+
var GIT_ENTRY = ".git";
|
|
1095
|
+
var GITDIR_PREFIX = "gitdir:";
|
|
1096
|
+
var WORKTREE_SEGMENT = `/${GIT_ENTRY}/worktrees/`;
|
|
1097
|
+
var NOT_FOUND2 = -1;
|
|
1098
|
+
function linked_worktree_gitdir(cwd) {
|
|
1099
|
+
try {
|
|
1100
|
+
const contents = readFileSync3(path5.join(cwd, GIT_ENTRY), "utf8").trim();
|
|
1101
|
+
return contents.startsWith(GITDIR_PREFIX) ? contents.slice(GITDIR_PREFIX.length).trim() : "";
|
|
1102
|
+
} catch {
|
|
1103
|
+
return "";
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
function session_cwd(cwd) {
|
|
1107
|
+
const gitdir = linked_worktree_gitdir(cwd);
|
|
1108
|
+
const absolute = gitdir === "" ? "" : path5.resolve(cwd, gitdir);
|
|
1109
|
+
const segment = absolute.indexOf(WORKTREE_SEGMENT);
|
|
1110
|
+
return segment === NOT_FOUND2 ? cwd : absolute.slice(0, segment);
|
|
1111
|
+
}
|
|
1112
|
+
function read_directory(directory) {
|
|
1113
|
+
try {
|
|
1114
|
+
return readdirSync2(directory);
|
|
1115
|
+
} catch {
|
|
1116
|
+
return [];
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
function lane_transcript_directories(main_cwd, home) {
|
|
1120
|
+
const projects = path5.join(home, TRANSCRIPT_ROOT);
|
|
1121
|
+
const prefix = `${project_slug(lane_paths.lane_root(main_cwd))}-`;
|
|
1122
|
+
return read_directory(projects).filter(
|
|
1123
|
+
(name) => name.startsWith(prefix) && issue_number_shape.ISSUE_NUMBER_PATTERN.test(name.slice(prefix.length))
|
|
1124
|
+
).map((name) => path5.join(projects, name));
|
|
1125
|
+
}
|
|
1126
|
+
function transcript_directories(cwd, home = homedir()) {
|
|
1127
|
+
const own = transcript_directory(cwd, home);
|
|
1128
|
+
const lanes = session_cwd(cwd) === cwd ? lane_transcript_directories(cwd, home) : [];
|
|
1129
|
+
return [.../* @__PURE__ */ new Set([own, ...lanes])];
|
|
1130
|
+
}
|
|
1131
|
+
var OWN_DEPTH = 0;
|
|
1132
|
+
function home_directory() {
|
|
1133
|
+
return homedir();
|
|
1134
|
+
}
|
|
1135
|
+
function to_session_file(full_path, session_id, depth) {
|
|
1136
|
+
try {
|
|
1137
|
+
return {
|
|
1138
|
+
session_id,
|
|
1139
|
+
path: full_path,
|
|
1140
|
+
modified_ms: statSync(full_path).mtimeMs,
|
|
1141
|
+
is_delegated: depth > OWN_DEPTH,
|
|
1142
|
+
depth
|
|
1143
|
+
};
|
|
1144
|
+
} catch {
|
|
1145
|
+
return void 0;
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
function is_transcript(name) {
|
|
1149
|
+
return name.endsWith(TRANSCRIPT_EXTENSION);
|
|
1150
|
+
}
|
|
1151
|
+
function without_extension(name) {
|
|
1152
|
+
return name.slice(0, -TRANSCRIPT_EXTENSION.length);
|
|
1153
|
+
}
|
|
1154
|
+
function own_files(directory, names) {
|
|
1155
|
+
return names.filter((name) => is_transcript(name)).map((name) => to_session_file(path5.join(directory, name), without_extension(name), OWN_DEPTH)).filter((file) => file !== void 0);
|
|
1156
|
+
}
|
|
1157
|
+
function unit_directory(directory, session_id) {
|
|
1158
|
+
return path5.join(directory, session_id, UNIT_DIRECTORY);
|
|
1159
|
+
}
|
|
1160
|
+
var UNIT_DEPTH = 1;
|
|
1161
|
+
function level_units(subagents_directory, prefix, depth) {
|
|
1162
|
+
return read_directory(subagents_directory).filter((name) => is_transcript(name)).map(
|
|
1163
|
+
(name) => to_session_file(
|
|
1164
|
+
path5.join(subagents_directory, name),
|
|
1165
|
+
`${prefix}${UNIT_ID_SEPARATOR}${without_extension(name)}`,
|
|
1166
|
+
depth
|
|
1167
|
+
)
|
|
1168
|
+
).filter((file) => file !== void 0);
|
|
1169
|
+
}
|
|
1170
|
+
function collect_units(subagents_directory, prefix, depth) {
|
|
1171
|
+
const nested = read_directory(subagents_directory).filter((name) => !is_transcript(name)).flatMap(
|
|
1172
|
+
(name) => collect_units(
|
|
1173
|
+
unit_directory(subagents_directory, name),
|
|
1174
|
+
`${prefix}${UNIT_ID_SEPARATOR}${name}`,
|
|
1175
|
+
depth + 1
|
|
1176
|
+
)
|
|
1177
|
+
);
|
|
1178
|
+
return [...level_units(subagents_directory, prefix, depth), ...nested];
|
|
1179
|
+
}
|
|
1180
|
+
function unit_files(directory, session_name) {
|
|
1181
|
+
return collect_units(unit_directory(directory, session_name), session_name, UNIT_DEPTH);
|
|
1182
|
+
}
|
|
1183
|
+
function list_sessions(directory) {
|
|
1184
|
+
const names = read_directory(directory);
|
|
1185
|
+
const units = names.filter((name) => !is_transcript(name)).flatMap((name) => unit_files(directory, name));
|
|
1186
|
+
return [...own_files(directory, names), ...units].toSorted(
|
|
1187
|
+
(left, right) => right.modified_ms - left.modified_ms
|
|
1188
|
+
);
|
|
1189
|
+
}
|
|
1190
|
+
function list_sessions_across(directories) {
|
|
1191
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1192
|
+
const merged = directories.flatMap((directory) => list_sessions(directory));
|
|
1193
|
+
const newest_first = merged.toSorted((left, right) => right.modified_ms - left.modified_ms);
|
|
1194
|
+
const kept = [];
|
|
1195
|
+
for (const file of newest_first) {
|
|
1196
|
+
if (seen.has(file.session_id)) continue;
|
|
1197
|
+
seen.add(file.session_id);
|
|
1198
|
+
kept.push(file);
|
|
1199
|
+
}
|
|
1200
|
+
return kept;
|
|
1201
|
+
}
|
|
1202
|
+
function owning_session_id(file) {
|
|
1203
|
+
const [owner] = file.session_id.split(UNIT_ID_SEPARATOR);
|
|
1204
|
+
return owner ?? file.session_id;
|
|
1205
|
+
}
|
|
1206
|
+
function parent_session_id(file) {
|
|
1207
|
+
const separator = file.session_id.lastIndexOf(UNIT_ID_SEPARATOR);
|
|
1208
|
+
return separator === NOT_FOUND2 ? file.session_id : file.session_id.slice(0, separator);
|
|
1209
|
+
}
|
|
1210
|
+
function latest_own_index(files) {
|
|
1211
|
+
const index = files.findIndex((file) => !file.is_delegated);
|
|
1212
|
+
return index === -1 ? 0 : index;
|
|
1213
|
+
}
|
|
1214
|
+
function empty_session() {
|
|
1215
|
+
return {
|
|
1216
|
+
records: [],
|
|
1217
|
+
no_usage_lines: 0,
|
|
1218
|
+
malformed_lines: 0,
|
|
1219
|
+
is_readable: false,
|
|
1220
|
+
baseline_tokens: 0
|
|
1221
|
+
};
|
|
1222
|
+
}
|
|
1223
|
+
function tally(content) {
|
|
1224
|
+
const outcomes = content.split("\n").map((line) => cost_usage.parse_line(line));
|
|
1225
|
+
const records = outcomes.flatMap(
|
|
1226
|
+
(outcome) => outcome.kind === "record" ? [outcome.record] : []
|
|
1227
|
+
);
|
|
1228
|
+
const unique = cost_usage.dedupe(records);
|
|
1229
|
+
const [first] = unique;
|
|
1230
|
+
return {
|
|
1231
|
+
records: unique,
|
|
1232
|
+
no_usage_lines: outcomes.filter((outcome) => outcome.kind === "no_usage").length,
|
|
1233
|
+
malformed_lines: outcomes.filter((outcome) => outcome.kind === "malformed").length,
|
|
1234
|
+
is_readable: true,
|
|
1235
|
+
baseline_tokens: first === void 0 ? 0 : cost_usage.billed_input(first.totals)
|
|
1236
|
+
};
|
|
1237
|
+
}
|
|
1238
|
+
function read_session(file) {
|
|
1239
|
+
const content = file_reader.read_if_readable(file.path);
|
|
1240
|
+
if (content === void 0) return { session_id: file.session_id, ...empty_session() };
|
|
1241
|
+
return { session_id: file.session_id, ...tally(content) };
|
|
1242
|
+
}
|
|
1243
|
+
function read_raw(file) {
|
|
1244
|
+
return file_reader.read_if_readable(file.path) ?? "";
|
|
1245
|
+
}
|
|
1246
|
+
function read_optional2(file) {
|
|
1247
|
+
return file_reader.read_if_readable(file.path);
|
|
1248
|
+
}
|
|
1249
|
+
function directory_exists(directory) {
|
|
1250
|
+
try {
|
|
1251
|
+
return statSync(directory).isDirectory();
|
|
1252
|
+
} catch {
|
|
1253
|
+
return false;
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
function searched_directories(directories) {
|
|
1257
|
+
return directories.map((directory) => ({
|
|
1258
|
+
path: directory,
|
|
1259
|
+
exists: directory_exists(directory)
|
|
1260
|
+
}));
|
|
1261
|
+
}
|
|
1262
|
+
function describe_searched(directory) {
|
|
1263
|
+
return ` ${directory.path} \u2014 ${directory.exists ? "no transcripts here" : "no such directory"}`;
|
|
1264
|
+
}
|
|
1265
|
+
function missing_message(searched, session_id) {
|
|
1266
|
+
const lead = session_id === void 0 ? "No transcripts found. Searched:" : `No transcript named ${session_id}. Searched:`;
|
|
1267
|
+
const listed = searched.map((directory) => describe_searched(directory));
|
|
1268
|
+
if (session_id !== void 0) return [lead, ...listed];
|
|
1269
|
+
return [
|
|
1270
|
+
lead,
|
|
1271
|
+
...listed,
|
|
1272
|
+
"Claude Code writes them per project; run this from the project it ran in."
|
|
1273
|
+
];
|
|
1274
|
+
}
|
|
1275
|
+
var cost_transcript = {
|
|
1276
|
+
TRANSCRIPT_EXTENSION,
|
|
1277
|
+
TRANSCRIPT_ROOT,
|
|
1278
|
+
UNIT_DIRECTORY,
|
|
1279
|
+
project_slug,
|
|
1280
|
+
transcript_directory,
|
|
1281
|
+
transcript_directories,
|
|
1282
|
+
session_cwd,
|
|
1283
|
+
lane_transcript_directories,
|
|
1284
|
+
unit_directory,
|
|
1285
|
+
list_sessions,
|
|
1286
|
+
list_sessions_across,
|
|
1287
|
+
searched_directories,
|
|
1288
|
+
owning_session_id,
|
|
1289
|
+
parent_session_id,
|
|
1290
|
+
latest_own_index,
|
|
1291
|
+
tally,
|
|
1292
|
+
read_session,
|
|
1293
|
+
read_raw,
|
|
1294
|
+
read_optional: read_optional2,
|
|
1295
|
+
missing_message,
|
|
1296
|
+
home_directory
|
|
1297
|
+
};
|
|
1298
|
+
|
|
1299
|
+
// scripts/cost-runtime/own-session.ts
|
|
1300
|
+
var NOT_FOUND3 = -1;
|
|
1301
|
+
function session_id_of(environment) {
|
|
1302
|
+
const value = environment[agent_session_environment.SESSION_ID_KEY];
|
|
1303
|
+
return value === void 0 || value === "" ? void 0 : value;
|
|
1304
|
+
}
|
|
1305
|
+
function select_own_session(files, environment) {
|
|
1306
|
+
const session_id = session_id_of(environment);
|
|
1307
|
+
if (session_id === void 0) {
|
|
1308
|
+
return { kind: "own", index: cost_transcript.latest_own_index(files) };
|
|
1309
|
+
}
|
|
1310
|
+
const index = files.findIndex((file) => file.session_id === session_id);
|
|
1311
|
+
return index === NOT_FOUND3 ? { kind: "absent", session_id } : { kind: "own", index };
|
|
1312
|
+
}
|
|
1313
|
+
var own_session = {
|
|
1314
|
+
session_id_of,
|
|
1315
|
+
select_own_session
|
|
1316
|
+
};
|
|
1317
|
+
|
|
1318
|
+
// scripts/run/carry/run-carry-conversation.ts
|
|
1319
|
+
var CONVERSATION_QUIET_MS = 6e5;
|
|
1320
|
+
function transcript_of(session_id, directory) {
|
|
1321
|
+
return path6.join(directory, `${session_id}${cost_transcript.TRANSCRIPT_EXTENSION}`);
|
|
1322
|
+
}
|
|
1323
|
+
function own_transcript(environment = process.env, directories = cost_transcript.transcript_directories(process.cwd())) {
|
|
1324
|
+
const session_id = own_session.session_id_of(environment);
|
|
1325
|
+
if (session_id === void 0) return void 0;
|
|
1326
|
+
return directories.map((directory) => transcript_of(session_id, directory)).find((file) => existsSync(file));
|
|
1327
|
+
}
|
|
1328
|
+
function modified_ms(transcript) {
|
|
1329
|
+
try {
|
|
1330
|
+
return statSync2(transcript).mtimeMs;
|
|
1331
|
+
} catch {
|
|
1332
|
+
return void 0;
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
function is_recent(modified, now) {
|
|
1336
|
+
return modified !== void 0 && now.getTime() - modified <= CONVERSATION_QUIET_MS;
|
|
1337
|
+
}
|
|
1338
|
+
function is_conversation_live(carry, now = /* @__PURE__ */ new Date(), read_modified = modified_ms) {
|
|
1339
|
+
if (carry.is_handed_off === true || carry.owner_transcript === void 0) return false;
|
|
1340
|
+
return is_recent(read_modified(carry.owner_transcript), now);
|
|
1341
|
+
}
|
|
1342
|
+
function is_same_conversation(carry, owner) {
|
|
1343
|
+
return owner.transcript !== void 0 && owner.transcript === carry.owner_transcript;
|
|
1344
|
+
}
|
|
1345
|
+
function reclaim_owner(carry, owner) {
|
|
1346
|
+
if (carry.is_handed_off === true || !is_same_conversation(carry, owner) || owner.pid === carry.owner_pid) {
|
|
1347
|
+
return carry;
|
|
1348
|
+
}
|
|
1349
|
+
return { ...carry, owner_pid: owner.pid, owner_start: owner.start };
|
|
1350
|
+
}
|
|
1351
|
+
var run_carry_conversation = {
|
|
1352
|
+
CONVERSATION_QUIET_MS,
|
|
1353
|
+
transcript_of,
|
|
1354
|
+
own_transcript,
|
|
1355
|
+
is_conversation_live,
|
|
1356
|
+
is_same_conversation,
|
|
1357
|
+
reclaim_owner
|
|
1358
|
+
};
|
|
1359
|
+
|
|
1360
|
+
// scripts/run/carry/run-carry.ts
|
|
1361
|
+
var CARRY_PREFIX = durable_state.PREFIX.CARRY;
|
|
1362
|
+
var REPOSITORY_DIRECTORY_INDEX = 1;
|
|
1363
|
+
var NO_INCREMENT3 = 0;
|
|
1364
|
+
var MAX_CUTS = 6;
|
|
1365
|
+
var END_COMMAND = "pnpm josh run:carry --end";
|
|
1366
|
+
var RESUME_COMMAND = "pnpm josh run:carry --resume";
|
|
1367
|
+
var READ_COMMAND = "pnpm josh run:carry --json";
|
|
1368
|
+
var NO_OWNER = {};
|
|
1369
|
+
var carry_addition_schema = external_exports.object({ issue: external_exports.number(), is_priority: external_exports.boolean() });
|
|
1370
|
+
var run_carry_schema = external_exports.object({
|
|
1371
|
+
scheduler_provider: agent_provider.PROVIDER_SCHEMA.optional(),
|
|
1372
|
+
invocation: external_exports.string(),
|
|
1373
|
+
started_at: external_exports.string(),
|
|
1374
|
+
merged: external_exports.number(),
|
|
1375
|
+
merged_issues: external_exports.array(external_exports.number()).optional(),
|
|
1376
|
+
filed: external_exports.number(),
|
|
1377
|
+
cuts: external_exports.number(),
|
|
1378
|
+
// Defaulted, so a record that lacks the streak parses with a zero streak rather than failing to read.
|
|
1379
|
+
failures: external_exports.number().default(0),
|
|
1380
|
+
outages: external_exports.number().default(0),
|
|
1381
|
+
last_outage_at: external_exports.string().optional(),
|
|
1382
|
+
// An absent owner reads as "no owner declared", which is the not-provably-live answer rather than a
|
|
1383
|
+
// live one.
|
|
1384
|
+
owner_pid: external_exports.number().optional(),
|
|
1385
|
+
owner_start: external_exports.string().optional(),
|
|
1386
|
+
owner_transcript: external_exports.string().optional(),
|
|
1387
|
+
is_owner_headless: external_exports.boolean().optional(),
|
|
1388
|
+
is_handed_off: external_exports.boolean().optional(),
|
|
1389
|
+
done: external_exports.array(external_exports.number()).optional(),
|
|
1390
|
+
retrospective: external_exports.boolean().optional(),
|
|
1391
|
+
added: external_exports.array(carry_addition_schema).optional(),
|
|
1392
|
+
lane_limit: external_exports.number().int().positive().optional(),
|
|
1393
|
+
launch_limit: external_exports.number().int().positive().optional()
|
|
1394
|
+
});
|
|
1395
|
+
function carry_path(git_directory) {
|
|
1396
|
+
return durable_state.path(CARRY_PREFIX, git_directory);
|
|
1397
|
+
}
|
|
1398
|
+
async function repository_directory() {
|
|
1399
|
+
const directories = await git_command.git_directories();
|
|
1400
|
+
return directories[REPOSITORY_DIRECTORY_INDEX];
|
|
1401
|
+
}
|
|
1402
|
+
function parse_carry(raw) {
|
|
1403
|
+
return json_value.parse_with(raw, run_carry_schema);
|
|
1404
|
+
}
|
|
1405
|
+
function classify2(raw) {
|
|
1406
|
+
if (raw === void 0) return { kind: "none" };
|
|
1407
|
+
const carry = parse_carry(raw);
|
|
1408
|
+
if (carry === void 0 || Number.isNaN(Date.parse(carry.started_at))) {
|
|
1409
|
+
return { kind: "unreadable" };
|
|
1410
|
+
}
|
|
1411
|
+
return { kind: "carried", carry };
|
|
1412
|
+
}
|
|
1413
|
+
function read_carry(target2) {
|
|
1414
|
+
return classify2(stamp_file.read_stamp_text(target2));
|
|
1415
|
+
}
|
|
1416
|
+
function owner_of(pid, read = process_identity.read_start, transcript = run_carry_conversation.own_transcript()) {
|
|
1417
|
+
return { pid, start: read(pid), transcript };
|
|
1418
|
+
}
|
|
1419
|
+
function session_owner() {
|
|
1420
|
+
const pid = agent_session_environment.own_session_pid();
|
|
1421
|
+
return pid === void 0 ? NO_OWNER : owner_of(pid);
|
|
1422
|
+
}
|
|
1423
|
+
function fresh_carry(invocation, owner, now) {
|
|
1424
|
+
return {
|
|
1425
|
+
...owner.provider && { scheduler_provider: owner.provider },
|
|
1426
|
+
invocation,
|
|
1427
|
+
started_at: now.toISOString(),
|
|
1428
|
+
merged: NO_INCREMENT3,
|
|
1429
|
+
filed: NO_INCREMENT3,
|
|
1430
|
+
cuts: NO_INCREMENT3,
|
|
1431
|
+
failures: NO_INCREMENT3,
|
|
1432
|
+
outages: NO_INCREMENT3,
|
|
1433
|
+
owner_pid: owner.pid,
|
|
1434
|
+
owner_start: owner.start,
|
|
1435
|
+
owner_transcript: owner.transcript,
|
|
1436
|
+
is_owner_headless: owner.is_headless
|
|
1437
|
+
};
|
|
1438
|
+
}
|
|
1439
|
+
function begin_carry(target2, invocation, owner = NO_OWNER, now = /* @__PURE__ */ new Date()) {
|
|
1440
|
+
const carry = fresh_carry(invocation, owner, now);
|
|
1441
|
+
return stamp_file.create_stamp(target2, carry) ? carry : void 0;
|
|
1442
|
+
}
|
|
1443
|
+
function adopt_carry(target2, carry, owner = NO_OWNER) {
|
|
1444
|
+
const next = {
|
|
1445
|
+
...carry,
|
|
1446
|
+
scheduler_provider: owner.provider,
|
|
1447
|
+
owner_pid: owner.pid,
|
|
1448
|
+
owner_start: owner.start,
|
|
1449
|
+
owner_transcript: owner.transcript,
|
|
1450
|
+
is_owner_headless: owner.is_headless,
|
|
1451
|
+
is_handed_off: false
|
|
1452
|
+
};
|
|
1453
|
+
stamp_file.remove_stamp(target2);
|
|
1454
|
+
return stamp_file.create_stamp(target2, next) ? next : void 0;
|
|
1455
|
+
}
|
|
1456
|
+
function is_owner_live(carry, now = /* @__PURE__ */ new Date(), same_process = process_identity.is_same_process) {
|
|
1457
|
+
if (same_process(carry.owner_pid, carry.owner_start) !== false) return true;
|
|
1458
|
+
return carry.is_owner_headless !== true && run_carry_conversation.is_conversation_live(carry, now);
|
|
1459
|
+
}
|
|
1460
|
+
function is_owned_by(carry, owner) {
|
|
1461
|
+
if (run_carry_conversation.is_same_conversation(carry, owner)) return true;
|
|
1462
|
+
return carry.owner_pid === owner.pid && carry.owner_start === owner.start;
|
|
1463
|
+
}
|
|
1464
|
+
function is_foreign_live_owner(carry, owner) {
|
|
1465
|
+
return is_owner_live(carry) && !is_owned_by(carry, owner);
|
|
1466
|
+
}
|
|
1467
|
+
function is_held_by_another(carry, is_live = is_owner_live) {
|
|
1468
|
+
const caller = owner_of(process.pid);
|
|
1469
|
+
const is_own = carry.owner_pid === caller.pid && carry.owner_start === caller.start;
|
|
1470
|
+
return !is_own && is_live(carry);
|
|
1471
|
+
}
|
|
1472
|
+
function is_handed_off_to(carry, invocation) {
|
|
1473
|
+
return carry.is_handed_off === true && carry.invocation === invocation;
|
|
1474
|
+
}
|
|
1475
|
+
function classify_claim(carry, request) {
|
|
1476
|
+
if (is_handed_off_to(carry, request.invocation)) return "resume";
|
|
1477
|
+
if (is_foreign_live_owner(carry, request.owner)) return "busy";
|
|
1478
|
+
if (carry.invocation !== request.invocation) return "mismatch";
|
|
1479
|
+
return request.is_adoption ? "resume" : "standing";
|
|
1480
|
+
}
|
|
1481
|
+
function is_count_refused(carry, owner) {
|
|
1482
|
+
return carry.is_handed_off === true || is_foreign_live_owner(carry, owner);
|
|
1483
|
+
}
|
|
1484
|
+
function is_at_cut_cap(carry) {
|
|
1485
|
+
return carry.cuts >= MAX_CUTS;
|
|
1486
|
+
}
|
|
1487
|
+
function end_carry(target2) {
|
|
1488
|
+
stamp_file.remove_stamp(target2);
|
|
1489
|
+
}
|
|
1490
|
+
function retrospective_done_of(read) {
|
|
1491
|
+
return read.kind === "carried" && read.carry.retrospective === true;
|
|
1492
|
+
}
|
|
1493
|
+
function left_of(carry, declared) {
|
|
1494
|
+
const done = carry.done ?? [];
|
|
1495
|
+
return run_carry_added.ordered(declared, carry.added).filter((issue) => !done.includes(issue));
|
|
1496
|
+
}
|
|
1497
|
+
function remaining_of(carry) {
|
|
1498
|
+
if (carry === void 0) return void 0;
|
|
1499
|
+
const declared = run_invocation.issue_numbers(carry.invocation);
|
|
1500
|
+
const left = left_of(carry, declared ?? []);
|
|
1501
|
+
return declared === void 0 && left.length === 0 ? void 0 : left;
|
|
1502
|
+
}
|
|
1503
|
+
function done_note(carry) {
|
|
1504
|
+
const done = carry.done ?? [];
|
|
1505
|
+
return done.length === 0 ? "" : `, issues ${done.join(", ")} done`;
|
|
1506
|
+
}
|
|
1507
|
+
function describe_carry(carry) {
|
|
1508
|
+
return `${carry.invocation} started ${carry.started_at}; ${String(carry.merged)} merged, ${String(carry.filed)} filed, ${String(carry.failures)} failed in a row, ${String(carry.outages)} outage(s) in a row, ${String(carry.cuts)} cut(s) crossed${done_note(carry)}`;
|
|
1509
|
+
}
|
|
1510
|
+
function mismatch_message(carry, invocation) {
|
|
1511
|
+
return `A different invocation is carried here \u2014 ${describe_carry(carry)}. This one is \`${invocation}\`. End the standing record with \`${END_COMMAND}\` once you know its run is over, then begin again.`;
|
|
1512
|
+
}
|
|
1513
|
+
function busy_message(carry) {
|
|
1514
|
+
return `A live run holds this budget \u2014 ${describe_carry(carry)}, owner pid ${String(carry.owner_pid)} still running. Nothing was established. Wait for that run, or end its record with \`${END_COMMAND}\` once you know it is over.`;
|
|
1515
|
+
}
|
|
1516
|
+
function claim_command(invocation) {
|
|
1517
|
+
return `${RESUME_COMMAND} "${invocation}"`;
|
|
1518
|
+
}
|
|
1519
|
+
function standing_message(carry) {
|
|
1520
|
+
return `A run record is standing here that no cut handed off \u2014 ${describe_carry(carry)}. Nothing was established. Carry that budget with \`${claim_command(carry.invocation)}\`, or discard it with \`${END_COMMAND}\` and begin again.`;
|
|
1521
|
+
}
|
|
1522
|
+
function count_refused_message(carry) {
|
|
1523
|
+
if (carry.is_handed_off === true) {
|
|
1524
|
+
return `This budget was handed off at a cut and is waiting for its successor \u2014 ${describe_carry(carry)}. Nothing was counted; the cutting session must not advance a handed-off budget.`;
|
|
1525
|
+
}
|
|
1526
|
+
return `A live run owns this budget \u2014 ${describe_carry(carry)}, owner pid ${String(carry.owner_pid)} still running. Nothing was counted; only its owner advances the budget.`;
|
|
1527
|
+
}
|
|
1528
|
+
function lost_message() {
|
|
1529
|
+
return `Another process established a run record here first, so nothing was established. Read it with \`${READ_COMMAND}\`.`;
|
|
1530
|
+
}
|
|
1531
|
+
function nothing_to_resume_message() {
|
|
1532
|
+
return `Nothing is carried here, so there is no budget to resume. Begin one with \`pnpm josh run:carry --begin "<invocation>"\`.`;
|
|
1533
|
+
}
|
|
1534
|
+
function unreadable_message() {
|
|
1535
|
+
return `A run record is here but could not be read; clear it with \`${END_COMMAND}\` once you know no run is using it.`;
|
|
1536
|
+
}
|
|
1537
|
+
function unknown_message() {
|
|
1538
|
+
return "This repository\u2019s git directory could not be read, so no run record was established.";
|
|
1539
|
+
}
|
|
1540
|
+
var run_carry = {
|
|
1541
|
+
END_COMMAND,
|
|
1542
|
+
MAX_CUTS,
|
|
1543
|
+
NO_OWNER,
|
|
1544
|
+
RESUME_COMMAND,
|
|
1545
|
+
adopt_carry,
|
|
1546
|
+
apply_change: run_carry_change.apply_change,
|
|
1547
|
+
begin_carry,
|
|
1548
|
+
busy_message,
|
|
1549
|
+
carry_path,
|
|
1550
|
+
claim_command,
|
|
1551
|
+
classify: classify2,
|
|
1552
|
+
classify_claim,
|
|
1553
|
+
count_refused_message,
|
|
1554
|
+
is_at_cut_cap,
|
|
1555
|
+
describe_carry,
|
|
1556
|
+
end_carry,
|
|
1557
|
+
mismatch_message,
|
|
1558
|
+
fresh_carry,
|
|
1559
|
+
is_count_refused,
|
|
1560
|
+
is_foreign_live_owner,
|
|
1561
|
+
is_held_by_another,
|
|
1562
|
+
is_owner_live,
|
|
1563
|
+
lost_message,
|
|
1564
|
+
nothing_to_resume_message,
|
|
1565
|
+
owner_of,
|
|
1566
|
+
parse_carry,
|
|
1567
|
+
read_carry,
|
|
1568
|
+
remaining_of,
|
|
1569
|
+
repository_directory,
|
|
1570
|
+
retrospective_done_of,
|
|
1571
|
+
session_owner,
|
|
1572
|
+
standing_message,
|
|
1573
|
+
unknown_message,
|
|
1574
|
+
unreadable_message
|
|
1575
|
+
};
|
|
1576
|
+
|
|
1577
|
+
// scripts/lane/lane-ledger-write.ts
|
|
1578
|
+
import { closeSync, constants as constants2, openSync, writeSync } from "node:fs";
|
|
1579
|
+
|
|
1580
|
+
// scripts/lane/lane-ledger-kind.ts
|
|
1581
|
+
var KIND = {
|
|
1582
|
+
MERGE: "merge",
|
|
1583
|
+
GATE: "gate",
|
|
1584
|
+
LOAD: "load",
|
|
1585
|
+
DISPATCH: "dispatch",
|
|
1586
|
+
STAGE: "stage",
|
|
1587
|
+
STOP: "stop",
|
|
1588
|
+
CHAIN: "chain",
|
|
1589
|
+
OVERLAP: "overlap",
|
|
1590
|
+
HELD: "held",
|
|
1591
|
+
RELEASED: "released",
|
|
1592
|
+
ROUND_ONE: "round-one",
|
|
1593
|
+
ROUND_TWO: "round-two",
|
|
1594
|
+
OFFERABLE: "offerable",
|
|
1595
|
+
OFFER: "offer",
|
|
1596
|
+
CORE_WAIT: "core-wait",
|
|
1597
|
+
UNIT_FILES: "unit-files",
|
|
1598
|
+
TEST_RELATED: "test-related",
|
|
1599
|
+
TEST_PINNED: "test-pinned",
|
|
1600
|
+
SPLIT_NOTICE: "split-notice",
|
|
1601
|
+
SPLIT_FILED: "split-filed",
|
|
1602
|
+
UNPLANNED_NOTICE: "unplanned-notice",
|
|
1603
|
+
LANE_STATE: "lane-state",
|
|
1604
|
+
PUSH_MISS: "push-miss",
|
|
1605
|
+
EARLY_PUSH: "early-push",
|
|
1606
|
+
SHIP_LAP: "ship-lap",
|
|
1607
|
+
SIZE: "size",
|
|
1608
|
+
LIMIT: "limit"
|
|
1609
|
+
};
|
|
1610
|
+
var lane_ledger_kind = { KIND };
|
|
1611
|
+
|
|
1612
|
+
// scripts/lane/lane-ledger-write.ts
|
|
1613
|
+
var LEDGER_PREFIX = durable_state.PREFIX.LANE_LEDGER;
|
|
1614
|
+
var LEDGER_SUFFIX = ".jsonl";
|
|
1615
|
+
var LINE_SEPARATOR = "\n";
|
|
1616
|
+
var CI_WAIT_STAGE = "ci-wait";
|
|
1617
|
+
var CODERABBIT_WAIT_STAGE = "coderabbit-wait";
|
|
1618
|
+
var CODERABBIT_RATE_LIMIT_STAGE = "coderabbit-rate-limit";
|
|
1619
|
+
var CODERABBIT_RETRIGGER_STAGE = "coderabbit-retriggered";
|
|
1620
|
+
var PRE_DETACH_STAGE = "pre-detach";
|
|
1621
|
+
var ROUND_ONE_REUSED = "reused";
|
|
1622
|
+
var LEDGER_FILE_MODE = 384;
|
|
1623
|
+
var { O_APPEND, O_CREAT, O_NOFOLLOW, O_WRONLY } = constants2;
|
|
1624
|
+
var APPEND_FLAGS = O_WRONLY | O_APPEND | O_CREAT | O_NOFOLLOW;
|
|
1625
|
+
var { KIND: KIND2 } = lane_ledger_kind;
|
|
1626
|
+
function target_of(repository) {
|
|
1627
|
+
return durable_state.path(LEDGER_PREFIX, repository, LEDGER_SUFFIX);
|
|
1628
|
+
}
|
|
1629
|
+
async function target() {
|
|
1630
|
+
if (process.env["VITEST"] !== void 0) return void 0;
|
|
1631
|
+
try {
|
|
1632
|
+
const repository = await run_carry.repository_directory();
|
|
1633
|
+
return repository === void 0 ? void 0 : target_of(repository);
|
|
1634
|
+
} catch {
|
|
1635
|
+
return void 0;
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
function append(path7, entry) {
|
|
1639
|
+
const descriptor = openSync(path7, APPEND_FLAGS, LEDGER_FILE_MODE);
|
|
1640
|
+
try {
|
|
1641
|
+
if (!stamp_file.is_own_regular_file(path7)) {
|
|
1642
|
+
throw new Error("Ledger is not an owned regular file");
|
|
1643
|
+
}
|
|
1644
|
+
writeSync(descriptor, `${JSON.stringify(entry)}${LINE_SEPARATOR}`);
|
|
1645
|
+
} finally {
|
|
1646
|
+
closeSync(descriptor);
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
async function record(entry, path7) {
|
|
1650
|
+
try {
|
|
1651
|
+
const destination = path7 ?? await target();
|
|
1652
|
+
if (destination !== void 0) append(destination, entry);
|
|
1653
|
+
} catch {
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
function now_iso() {
|
|
1657
|
+
return (/* @__PURE__ */ new Date()).toISOString();
|
|
1658
|
+
}
|
|
1659
|
+
async function record_gate(path7, gate) {
|
|
1660
|
+
await record({ kind: KIND2.GATE, at: now_iso(), ...gate }, path7);
|
|
1661
|
+
}
|
|
1662
|
+
async function record_merge(issue, at = /* @__PURE__ */ new Date()) {
|
|
1663
|
+
await record({ kind: KIND2.MERGE, at: at.toISOString(), issue });
|
|
1664
|
+
}
|
|
1665
|
+
async function record_dispatch(issue, path7) {
|
|
1666
|
+
await record({ kind: KIND2.DISPATCH, at: now_iso(), issue }, path7);
|
|
1667
|
+
}
|
|
1668
|
+
async function record_stage(stage, path7) {
|
|
1669
|
+
await record({ kind: KIND2.STAGE, at: now_iso(), ...stage }, path7);
|
|
1670
|
+
}
|
|
1671
|
+
async function record_stop(stop, path7) {
|
|
1672
|
+
await record({ kind: KIND2.STOP, at: now_iso(), ...stop }, path7);
|
|
1673
|
+
}
|
|
1674
|
+
async function record_chain(chain, path7) {
|
|
1675
|
+
await record({ kind: KIND2.CHAIN, at: now_iso(), ...chain }, path7);
|
|
1676
|
+
}
|
|
1677
|
+
async function record_overlap(overlap, path7) {
|
|
1678
|
+
await record({ kind: KIND2.OVERLAP, at: now_iso(), ...overlap }, path7);
|
|
1679
|
+
}
|
|
1680
|
+
async function record_held(held, path7) {
|
|
1681
|
+
const waiting = held.waiting ?? [];
|
|
1682
|
+
const named = waiting.length > 0 ? { waiting: [...waiting] } : {};
|
|
1683
|
+
await record({ kind: KIND2.HELD, at: now_iso(), reason: held.reason, ...named }, path7);
|
|
1684
|
+
}
|
|
1685
|
+
async function record_released(path7) {
|
|
1686
|
+
await record({ kind: KIND2.RELEASED, at: now_iso() }, path7);
|
|
1687
|
+
}
|
|
1688
|
+
async function record_lane_state(change, path7) {
|
|
1689
|
+
await record({ kind: KIND2.LANE_STATE, at: now_iso(), ...change }, path7);
|
|
1690
|
+
}
|
|
1691
|
+
async function record_offerable(is_offerable, path7) {
|
|
1692
|
+
await record({ kind: KIND2.OFFERABLE, at: now_iso(), is_offerable }, path7);
|
|
1693
|
+
}
|
|
1694
|
+
async function record_offer(offer, path7) {
|
|
1695
|
+
await record({ kind: KIND2.OFFER, at: now_iso(), ...offer }, path7);
|
|
1696
|
+
}
|
|
1697
|
+
async function record_round_one(round_one, path7) {
|
|
1698
|
+
await record({ kind: KIND2.ROUND_ONE, at: now_iso(), ...round_one }, path7);
|
|
1699
|
+
}
|
|
1700
|
+
async function record_round_two(round_two, path7) {
|
|
1701
|
+
await record({ kind: KIND2.ROUND_TWO, at: now_iso(), ...round_two }, path7);
|
|
1702
|
+
}
|
|
1703
|
+
async function record_core_wait(wait, path7) {
|
|
1704
|
+
await record({ kind: KIND2.CORE_WAIT, at: now_iso(), ...wait }, path7);
|
|
1705
|
+
}
|
|
1706
|
+
async function record_unit_files(files, path7) {
|
|
1707
|
+
await record({ kind: KIND2.UNIT_FILES, at: now_iso(), files: [...files] }, path7);
|
|
1708
|
+
}
|
|
1709
|
+
async function record_test_related(run, path7) {
|
|
1710
|
+
await record({ kind: KIND2.TEST_RELATED, at: now_iso(), ...run }, path7);
|
|
1711
|
+
}
|
|
1712
|
+
async function record_test_pinned(run, path7) {
|
|
1713
|
+
await record({ kind: KIND2.TEST_PINNED, at: now_iso(), ...run }, path7);
|
|
1714
|
+
}
|
|
1715
|
+
async function record_split_notice(notice, path7) {
|
|
1716
|
+
await record({ kind: KIND2.SPLIT_NOTICE, at: now_iso(), ...notice }, path7);
|
|
1717
|
+
}
|
|
1718
|
+
async function record_split_filed(filed, path7) {
|
|
1719
|
+
const destination = path7 ?? await target();
|
|
1720
|
+
if (destination === void 0) throw new Error("Could not resolve the split-child ledger");
|
|
1721
|
+
append(destination, { kind: KIND2.SPLIT_FILED, at: now_iso(), ...filed });
|
|
1722
|
+
}
|
|
1723
|
+
async function record_push_miss(miss, path7) {
|
|
1724
|
+
await record({ kind: KIND2.PUSH_MISS, at: now_iso(), ...miss }, path7);
|
|
1725
|
+
}
|
|
1726
|
+
async function record_early_push(push, path7) {
|
|
1727
|
+
await record({ kind: KIND2.EARLY_PUSH, at: now_iso(), ...push }, path7);
|
|
1728
|
+
}
|
|
1729
|
+
async function record_ship_lap(lap, path7) {
|
|
1730
|
+
await record({ kind: KIND2.SHIP_LAP, at: now_iso(), ...lap }, path7);
|
|
1731
|
+
}
|
|
1732
|
+
async function record_size(size, path7) {
|
|
1733
|
+
await record({ kind: KIND2.SIZE, at: now_iso(), ...size }, path7);
|
|
1734
|
+
}
|
|
1735
|
+
async function record_unplanned_notice(notice, path7) {
|
|
1736
|
+
await record({ kind: KIND2.UNPLANNED_NOTICE, at: now_iso(), ...notice }, path7);
|
|
1737
|
+
}
|
|
1738
|
+
var lane_ledger_write = {
|
|
1739
|
+
CI_WAIT_STAGE,
|
|
1740
|
+
CODERABBIT_RATE_LIMIT_STAGE,
|
|
1741
|
+
CODERABBIT_RETRIGGER_STAGE,
|
|
1742
|
+
CODERABBIT_WAIT_STAGE,
|
|
1743
|
+
KIND: KIND2,
|
|
1744
|
+
LINE_SEPARATOR,
|
|
1745
|
+
PRE_DETACH_STAGE,
|
|
1746
|
+
ROUND_ONE_REUSED,
|
|
1747
|
+
append,
|
|
1748
|
+
record,
|
|
1749
|
+
record_chain,
|
|
1750
|
+
record_core_wait,
|
|
1751
|
+
record_dispatch,
|
|
1752
|
+
record_gate,
|
|
1753
|
+
record_held,
|
|
1754
|
+
record_lane_state,
|
|
1755
|
+
record_released,
|
|
1756
|
+
record_merge,
|
|
1757
|
+
record_overlap,
|
|
1758
|
+
record_offer,
|
|
1759
|
+
record_offerable,
|
|
1760
|
+
record_push_miss,
|
|
1761
|
+
record_early_push,
|
|
1762
|
+
record_round_one,
|
|
1763
|
+
record_round_two,
|
|
1764
|
+
record_ship_lap,
|
|
1765
|
+
record_size,
|
|
1766
|
+
record_split_filed,
|
|
1767
|
+
record_split_notice,
|
|
1768
|
+
record_stage,
|
|
1769
|
+
record_stop,
|
|
1770
|
+
record_test_pinned,
|
|
1771
|
+
record_test_related,
|
|
1772
|
+
record_unit_files,
|
|
1773
|
+
record_unplanned_notice,
|
|
1774
|
+
target,
|
|
1775
|
+
target_of
|
|
1776
|
+
};
|
|
1777
|
+
|
|
1778
|
+
export {
|
|
1779
|
+
issue_number_shape,
|
|
1780
|
+
durable_state,
|
|
1781
|
+
agent_session_environment,
|
|
1782
|
+
agent_provider,
|
|
1783
|
+
process_identity,
|
|
1784
|
+
cli_flags,
|
|
1785
|
+
run_invocation,
|
|
1786
|
+
lane_paths,
|
|
1787
|
+
file_reader,
|
|
1788
|
+
time_instant,
|
|
1789
|
+
cost_usage,
|
|
1790
|
+
cost_transcript,
|
|
1791
|
+
own_session,
|
|
1792
|
+
run_carry,
|
|
1793
|
+
lane_ledger_kind,
|
|
1794
|
+
lane_ledger_write
|
|
1795
|
+
};
|