@joshuafolkken/kit 1.2116.0 → 1.3041.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/design-consultant.md +19 -0
- package/.claude/agents/investigator.md +12 -2
- package/.claude/agents/reviewer-verification.md +13 -2
- package/.claude/agents/reviewer.md +13 -2
- package/.claude/settings.json +32 -9
- package/.claude/skills/dependency-update/SKILL.md +11 -14
- package/.claude/skills/epic-commands/SKILL.md +8 -6
- package/.claude/skills/epic-commands/epic-bundle.md +6 -7
- package/.claude/skills/verify-ui/SKILL.md +13 -23
- package/.claude/skills/workflow-commands/SKILL.md +19 -18
- package/.claude/skills/workflow-commands/background-commands.md +7 -4
- package/.claude/skills/workflow-commands/backlogrun-child.md +31 -64
- package/.claude/skills/workflow-commands/backlogrun-lanes.md +54 -62
- package/.claude/skills/workflow-commands/backlogrun-park.md +65 -64
- package/.claude/skills/workflow-commands/backlogrun-progress.md +30 -44
- package/.claude/skills/workflow-commands/backlogrun-recovery.md +18 -33
- package/.claude/skills/workflow-commands/backlogrun-steps.md +62 -50
- package/.claude/skills/workflow-commands/backlogrun.md +13 -18
- package/.claude/skills/workflow-commands/chain-rule.md +54 -53
- package/.claude/skills/workflow-commands/delegation.md +11 -11
- package/.claude/skills/workflow-commands/entry-sequence.md +23 -34
- package/.claude/skills/workflow-commands/followup.md +19 -17
- package/.claude/skills/workflow-commands/fullrun-lane.md +11 -0
- package/.claude/skills/workflow-commands/fullrun-steps.md +27 -34
- package/.claude/skills/workflow-commands/fullrun.md +5 -6
- package/.claude/skills/workflow-commands/halfrun.md +4 -7
- package/.claude/skills/workflow-commands/issue-comments.md +29 -15
- package/.claude/skills/workflow-commands/issue-fold-existing.md +9 -14
- package/.claude/skills/workflow-commands/issue-scout.md +5 -8
- package/.claude/skills/workflow-commands/kickoff.md +31 -34
- package/.claude/skills/workflow-commands/latest-gate.md +6 -14
- package/.claude/skills/workflow-commands/needs-human-review.md +3 -3
- package/.claude/skills/workflow-commands/observation-filing.md +9 -7
- package/.claude/skills/workflow-commands/observation-ledger.md +4 -1
- package/.claude/skills/workflow-commands/pre-gate-cut.md +21 -26
- package/.claude/skills/workflow-commands/prerequisite.md +21 -6
- package/.claude/skills/workflow-commands/progress-watcher.md +8 -18
- package/.claude/skills/workflow-commands/prrun.md +1 -1
- package/.claude/skills/workflow-commands/retrospective.md +16 -15
- package/.claude/skills/workflow-commands/split-assessment.md +32 -22
- package/.claude/skills/workflow-commands/target-repository.md +2 -2
- package/.claude/skills/workflow-commands/working-tree-hold.md +3 -2
- package/.codex/hooks.json +18 -8
- package/.cursorrules +1 -2
- package/.github/actions/change-scope/action.yml +19 -0
- package/.github/actions/setup-pnpm/action.yml +87 -14
- package/.github/dependabot.yml +1 -0
- package/.github/workflows/ci.yml +74 -30
- package/.github/workflows/publish.yml +56 -14
- package/.github/workflows/sonar-qube.yml +28 -1
- package/.prettierignore +2 -0
- package/AGENTS.md +1 -2
- package/CLAUDE.md +8 -8
- package/GEMINI.md +1 -2
- package/README.md +1 -1
- package/SECURITY.md +11 -1
- package/cspell/index.yaml +11 -0
- package/dist/.inputs-verified.json +1 -0
- package/dist/CLAUDE.md +8 -8
- package/dist/commands/adopt.js +222 -0
- package/dist/commands/auth-setup-cli.js +127 -0
- package/dist/commands/auto-ok-judge-cli.js +227 -0
- package/dist/commands/auto-ok-main.js +138 -0
- package/dist/commands/backlog-budget-main.js +146 -0
- package/dist/commands/backlog-drive-cli.js +2023 -0
- package/dist/commands/backlog-next-main.js +188 -0
- package/dist/commands/backlog-offer-main.js +192 -0
- package/dist/commands/backlog-plan-cli.js +328 -0
- package/dist/commands/backlog-triage-cli.js +644 -0
- package/dist/commands/backlogrun-cli.js +835 -0
- package/dist/commands/behavior-cli.js +215 -0
- package/dist/commands/bump-version-main.js +22 -0
- package/dist/commands/bytes-command.js +247 -0
- package/dist/commands/cases-cli.js +57 -0
- package/dist/commands/check-commit-message-main.js +22 -0
- package/dist/commands/check-related.js +552 -0
- package/dist/commands/chunk-22DVQCP6.js +153 -0
- package/dist/commands/chunk-23GH6B3D.js +333 -0
- package/dist/commands/chunk-24ZDAWML.js +48 -0
- package/dist/commands/chunk-2ADQ5XRD.js +36 -0
- package/dist/commands/chunk-2BB5ZR2F.js +128 -0
- package/dist/commands/chunk-2BC33QPY.js +183 -0
- package/dist/commands/chunk-2BJJUTZA.js +59 -0
- package/dist/commands/chunk-2CXT6MBR.js +51 -0
- package/dist/commands/chunk-2DJLAUYB.js +109 -0
- package/dist/commands/chunk-2EZTYLO4.js +179 -0
- package/dist/commands/chunk-2FE3C4PH.js +112 -0
- package/dist/commands/chunk-2FJJYCBD.js +149 -0
- package/dist/commands/chunk-2NSB5ZYQ.js +26 -0
- package/dist/commands/chunk-2PHOLX62.js +43 -0
- package/dist/commands/chunk-2QM72JCJ.js +338 -0
- package/dist/commands/chunk-2VFPUPSG.js +170 -0
- package/dist/commands/chunk-2VRITY55.js +41 -0
- package/dist/commands/chunk-2XAH3MHV.js +23 -0
- package/dist/commands/chunk-34DND4BA.js +104 -0
- package/dist/commands/chunk-34JJYCIY.js +117 -0
- package/dist/commands/chunk-34KZDKQJ.js +304 -0
- package/dist/commands/chunk-352KLSFX.js +67 -0
- package/dist/commands/chunk-36LOGVJ7.js +38 -0
- package/dist/commands/chunk-3AEDZZNL.js +223 -0
- package/dist/commands/chunk-3B2HEFNO.js +51 -0
- package/dist/commands/chunk-3CCGKX7Y.js +20 -0
- package/dist/commands/chunk-3LZXX5GL.js +50 -0
- package/dist/commands/chunk-3NWAGIA6.js +39 -0
- package/dist/commands/chunk-3PEXBHRN.js +33 -0
- package/dist/commands/chunk-3RIQ36LH.js +110 -0
- package/dist/commands/chunk-3WRQP3QE.js +47 -0
- package/dist/commands/chunk-3WWQFCGX.js +18 -0
- package/dist/commands/chunk-3Z425MM3.js +61 -0
- package/dist/commands/chunk-3ZEO3KOM.js +35 -0
- package/dist/commands/chunk-3ZOX4G4U.js +88 -0
- package/dist/commands/chunk-452HWOJ7.js +395 -0
- package/dist/commands/chunk-475EFIJV.js +178 -0
- package/dist/commands/chunk-47UZB54M.js +73 -0
- package/dist/commands/chunk-4DN4XVPL.js +716 -0
- package/dist/commands/chunk-4DVM57T7.js +86 -0
- package/dist/commands/chunk-4EADHJVC.js +247 -0
- package/dist/commands/chunk-4HERA2GY.js +95 -0
- package/dist/commands/chunk-4JI35CVO.js +70 -0
- package/dist/commands/chunk-4L4LNWZ7.js +143 -0
- package/dist/commands/chunk-4N32QKJZ.js +170 -0
- package/dist/commands/chunk-4NRSFLG7.js +185 -0
- package/dist/commands/chunk-4OKRPAUT.js +98 -0
- package/dist/commands/chunk-4PUKDAXL.js +42 -0
- package/dist/commands/chunk-4Q64PG46.js +478 -0
- package/dist/commands/chunk-4UDTQVDD.js +278 -0
- package/dist/commands/chunk-4WR2LEZL.js +123 -0
- package/dist/commands/chunk-4ZHWTTQW.js +99 -0
- package/dist/commands/chunk-4ZJOC6OK.js +298 -0
- package/dist/commands/chunk-4ZQM4I7R.js +533 -0
- package/dist/commands/chunk-54X37JEJ.js +170 -0
- package/dist/commands/chunk-56KW5EOK.js +85 -0
- package/dist/commands/chunk-5CG3XU3O.js +74 -0
- package/dist/commands/chunk-5ESZLHDZ.js +514 -0
- package/dist/commands/chunk-5FBRMARM.js +578 -0
- package/dist/{hooks/chunk-OPSRGWFU.js → commands/chunk-5HVYOIIK.js} +1 -1
- package/dist/commands/chunk-5PCK53WP.js +168 -0
- package/dist/commands/chunk-5RG4S66L.js +47 -0
- package/dist/commands/chunk-5TMAPYQD.js +19 -0
- package/dist/commands/chunk-5UJGACVN.js +137 -0
- package/dist/commands/chunk-5Y7B7FDL.js +44 -0
- package/dist/commands/chunk-5Z6E5ZUV.js +89 -0
- package/dist/commands/chunk-5ZNUH4LV.js +1722 -0
- package/dist/commands/chunk-5ZTQX7OS.js +125 -0
- package/dist/commands/chunk-65E4OZJ7.js +9 -0
- package/dist/commands/chunk-66NX6EXR.js +29 -0
- package/dist/commands/chunk-66TGK5XL.js +84 -0
- package/dist/commands/chunk-6CFHLMKM.js +555 -0
- package/dist/commands/chunk-6CJXLPRI.js +72 -0
- package/dist/commands/chunk-6DDK5XWK.js +74 -0
- package/dist/commands/chunk-6FWV56B3.js +40 -0
- package/dist/commands/chunk-6GQX752S.js +145 -0
- package/dist/commands/chunk-6HRRZANN.js +55 -0
- package/dist/commands/chunk-6I2JM5UX.js +134 -0
- package/dist/commands/chunk-6MAZ55GF.js +1241 -0
- package/dist/commands/chunk-6NGNMIMT.js +20 -0
- package/dist/commands/chunk-6OP63TBT.js +78 -0
- package/dist/commands/chunk-6Q3XUCLM.js +204 -0
- package/dist/commands/chunk-6RUWU2SB.js +45 -0
- package/dist/commands/chunk-6TIVDEKG.js +34 -0
- package/dist/commands/chunk-6UCWAFQY.js +245 -0
- package/dist/commands/chunk-6WKJ3GDA.js +408 -0
- package/dist/commands/chunk-6YURRFRU.js +461 -0
- package/dist/commands/chunk-6YVURZAJ.js +350 -0
- package/dist/commands/chunk-6Z4YZG7P.js +169 -0
- package/dist/commands/chunk-77BIN247.js +122 -0
- package/dist/commands/chunk-7ABHNNY3.js +529 -0
- package/dist/commands/chunk-7C7FOKJK.js +115 -0
- package/dist/commands/chunk-7HAGC6SW.js +1062 -0
- package/dist/commands/chunk-7HCPRVMB.js +76 -0
- package/dist/commands/chunk-7IZJ5MG2.js +72 -0
- package/dist/commands/chunk-7KKUFLH5.js +56 -0
- package/dist/commands/chunk-7LJQMM2K.js +102 -0
- package/dist/commands/chunk-7MJYLUF4.js +99 -0
- package/dist/commands/chunk-7NHZCI5Y.js +704 -0
- package/dist/commands/chunk-7OQ56DVW.js +239 -0
- package/dist/commands/chunk-7VWPGTZO.js +260 -0
- package/dist/commands/chunk-7YZXS3AK.js +30 -0
- package/dist/commands/chunk-A4HOQKOG.js +85 -0
- package/dist/commands/chunk-A6T2N7VC.js +159 -0
- package/dist/commands/chunk-AAUDI7WJ.js +250 -0
- package/dist/commands/chunk-AC26ZUG5.js +259 -0
- package/dist/commands/chunk-ACZ52JPI.js +140 -0
- package/dist/commands/chunk-AJ65WNJB.js +230 -0
- package/dist/commands/chunk-AJWR7D3H.js +15 -0
- package/dist/commands/chunk-AK7SEO4Y.js +177 -0
- package/dist/commands/chunk-AKK56GNX.js +205 -0
- package/dist/commands/chunk-AKQYYHP2.js +461 -0
- package/dist/commands/chunk-ALDAS2WG.js +137 -0
- package/dist/commands/chunk-ANUTT56I.js +85 -0
- package/dist/commands/chunk-AQ3PMSXK.js +76 -0
- package/dist/commands/chunk-ARFBIJFS.js +43 -0
- package/dist/commands/chunk-AVVMDVGO.js +68 -0
- package/dist/commands/chunk-AWLYN2SP.js +64 -0
- package/dist/commands/chunk-AXXEMVRJ.js +23 -0
- package/dist/commands/chunk-B3M5WSGN.js +72 -0
- package/dist/commands/chunk-B5GXZK3E.js +34 -0
- package/dist/commands/chunk-B77ZMVHS.js +80 -0
- package/dist/commands/chunk-B7ZNIEDV.js +351 -0
- package/dist/commands/chunk-BCUDQWYK.js +77 -0
- package/dist/commands/chunk-BF6YX4HE.js +70 -0
- package/dist/commands/chunk-BHRS7HAM.js +272 -0
- package/dist/commands/chunk-BIKGPT52.js +29 -0
- package/dist/commands/chunk-BJA5U4Q7.js +75 -0
- package/dist/commands/chunk-BJKEXXY6.js +15 -0
- package/dist/commands/chunk-BMKWSWWE.js +126 -0
- package/dist/commands/chunk-BMM4RHCG.js +69 -0
- package/dist/commands/chunk-BMTYUJNT.js +59 -0
- package/dist/commands/chunk-BRFQBJ5Y.js +132 -0
- package/dist/commands/chunk-BRHPRDDV.js +127 -0
- package/dist/commands/chunk-BRUBX64M.js +33 -0
- package/dist/commands/chunk-BTZJDHQT.js +46 -0
- package/dist/commands/chunk-BYFC6MD2.js +72 -0
- package/dist/commands/chunk-BYGJ3BCJ.js +803 -0
- package/dist/commands/chunk-BYSPYVLD.js +130 -0
- package/dist/commands/chunk-C2SEDMZ3.js +238 -0
- package/dist/commands/chunk-C54QXJD6.js +4208 -0
- package/dist/commands/chunk-C6QSVO5K.js +56 -0
- package/dist/commands/chunk-CBAKBWSZ.js +332 -0
- package/dist/commands/chunk-CDY4NFQG.js +15 -0
- package/dist/commands/chunk-CFHRNTE5.js +326 -0
- package/dist/commands/chunk-CGLLAEKZ.js +110 -0
- package/dist/commands/chunk-CGYDIYHD.js +49 -0
- package/dist/commands/chunk-CHKYPF5O.js +82 -0
- package/dist/commands/chunk-CJBW6BWG.js +800 -0
- package/dist/commands/chunk-CJKPF5DJ.js +156 -0
- package/dist/commands/chunk-CKUKK7JG.js +252 -0
- package/dist/commands/chunk-CMHGDCGN.js +263 -0
- package/dist/commands/chunk-CNGTHSUS.js +750 -0
- package/dist/commands/chunk-COGKULQH.js +119 -0
- package/dist/commands/chunk-CP2J4RV2.js +3987 -0
- package/dist/commands/chunk-CQUZ6TNQ.js +120 -0
- package/dist/commands/chunk-CQZI7RIK.js +72 -0
- package/dist/commands/chunk-CVJHQOI3.js +153 -0
- package/dist/commands/chunk-CWCKCZS6.js +188 -0
- package/dist/commands/chunk-D5HIP4HT.js +289 -0
- package/dist/commands/chunk-D5OHVIPM.js +17 -0
- package/dist/commands/chunk-D6D6WQR6.js +125 -0
- package/dist/commands/chunk-D7JRJI44.js +297 -0
- package/dist/commands/chunk-D7OAU32Z.js +119 -0
- package/dist/commands/chunk-DAAX7XDS.js +1208 -0
- package/dist/commands/chunk-DBKTFB5V.js +18 -0
- package/dist/commands/chunk-DEZF7QZZ.js +184 -0
- package/dist/commands/chunk-DKM4UJQU.js +10 -0
- package/dist/commands/chunk-DMD74E3F.js +39 -0
- package/dist/commands/chunk-DPJVKTO4.js +41 -0
- package/dist/commands/chunk-DXJQHJQ4.js +73 -0
- package/dist/commands/chunk-DYZOOWVW.js +912 -0
- package/dist/commands/chunk-E33LSO2W.js +20 -0
- package/dist/commands/chunk-EBI2BAKQ.js +47 -0
- package/dist/commands/chunk-EBVS2LKX.js +60 -0
- package/dist/commands/chunk-EDKOSZ3K.js +88 -0
- package/dist/commands/chunk-EFDVE5P5.js +121 -0
- package/dist/commands/chunk-EGIHAEMT.js +72 -0
- package/dist/commands/chunk-EKLU6QR7.js +507 -0
- package/dist/commands/chunk-ELY76WAR.js +65 -0
- package/dist/commands/chunk-EM3HAZF6.js +52 -0
- package/dist/commands/chunk-EMTZAGT5.js +51 -0
- package/dist/commands/chunk-ENFPR7J2.js +53 -0
- package/dist/commands/chunk-ENKFCOVY.js +472 -0
- package/dist/commands/chunk-ERG4QRNG.js +224 -0
- package/dist/commands/chunk-EUGNQCYK.js +139 -0
- package/dist/commands/chunk-EW4NPUMQ.js +363 -0
- package/dist/commands/chunk-EWVR5AEX.js +140 -0
- package/dist/commands/chunk-EXDFKKMH.js +113 -0
- package/dist/commands/chunk-EXWB34R2.js +238 -0
- package/dist/commands/chunk-EYMPBHDN.js +61 -0
- package/dist/commands/chunk-EZ7IPKIH.js +20 -0
- package/dist/commands/chunk-EZSO25UZ.js +80 -0
- package/dist/commands/chunk-F6IQHZYY.js +94 -0
- package/dist/commands/chunk-FCINBCKB.js +77 -0
- package/dist/commands/chunk-FDS65XOJ.js +212 -0
- package/dist/commands/chunk-FFHEGWPK.js +91 -0
- package/dist/commands/chunk-FGG7V473.js +85 -0
- package/dist/commands/chunk-FGL6DBZU.js +71 -0
- package/dist/commands/chunk-FHFWNNUC.js +144 -0
- package/dist/{hooks/chunk-VVNYJWEI.js → commands/chunk-FIUCHMCF.js} +4 -2
- package/dist/commands/chunk-FJX7AENO.js +74 -0
- package/dist/commands/chunk-FKZ5E4JD.js +97 -0
- package/dist/commands/chunk-FMZWRDKH.js +302 -0
- package/dist/commands/chunk-FOKCRIAN.js +67 -0
- package/dist/commands/chunk-FQGWO2ZH.js +43 -0
- package/dist/commands/chunk-FROACLVU.js +525 -0
- package/dist/commands/chunk-FURNDIT3.js +34 -0
- package/dist/commands/chunk-FVDQNMP6.js +93 -0
- package/dist/commands/chunk-FVVZIJUC.js +425 -0
- package/dist/commands/chunk-FWU3H4TX.js +17 -0
- package/dist/commands/chunk-G3HBYHFA.js +16 -0
- package/dist/commands/chunk-G4E4M2P4.js +299 -0
- package/dist/commands/chunk-G5KSL2Q2.js +151 -0
- package/dist/commands/chunk-G6BXCWPH.js +141 -0
- package/dist/commands/chunk-G6XC7V6Y.js +58 -0
- package/dist/commands/chunk-GCPP5XIG.js +90 -0
- package/dist/commands/chunk-GITT5A5A.js +198 -0
- package/dist/commands/chunk-GJYMI2CM.js +48 -0
- package/dist/commands/chunk-GLC47H7I.js +285 -0
- package/dist/commands/chunk-GM3XLC4W.js +63 -0
- package/dist/commands/chunk-GO3GH7FG.js +75 -0
- package/dist/commands/chunk-GPTO6IZG.js +29 -0
- package/dist/commands/chunk-GUR54ELE.js +328 -0
- package/dist/commands/chunk-GW4UWR3O.js +126 -0
- package/dist/commands/chunk-GY4DMCKS.js +306 -0
- package/dist/commands/chunk-H6JQRHDC.js +80 -0
- package/dist/commands/chunk-HATKF6VX.js +173 -0
- package/dist/commands/chunk-HE5S4XRE.js +21 -0
- package/dist/commands/chunk-HG2NZQD5.js +135 -0
- package/dist/commands/chunk-HH3CVIFU.js +93 -0
- package/dist/commands/chunk-HHBC6QZE.js +95 -0
- package/dist/commands/chunk-HHMMGDMP.js +469 -0
- package/dist/commands/chunk-HI5WPM6C.js +127 -0
- package/dist/commands/chunk-HIU2WXB6.js +26 -0
- package/dist/commands/chunk-HLKAFSN4.js +76 -0
- package/dist/commands/chunk-HLUS2M3D.js +7 -0
- package/dist/commands/chunk-HQ2HSZBN.js +69 -0
- package/dist/commands/chunk-HQGNXR6I.js +245 -0
- package/dist/commands/chunk-HQSWPRUF.js +61 -0
- package/dist/commands/chunk-HRLGFRAV.js +21 -0
- package/dist/commands/chunk-HTIDHEEN.js +108 -0
- package/dist/commands/chunk-HVCQYZVD.js +38 -0
- package/dist/commands/chunk-HWEZRNPL.js +66 -0
- package/dist/commands/chunk-HX3FFIO5.js +74 -0
- package/dist/commands/chunk-HXCZ3KWS.js +41 -0
- package/dist/commands/chunk-HXDTA5VU.js +208 -0
- package/dist/commands/chunk-I2KCGKJI.js +107 -0
- package/dist/commands/chunk-I63RNFFR.js +213 -0
- package/dist/commands/chunk-IAD4WLLI.js +98 -0
- package/dist/commands/chunk-IB5TT73I.js +177 -0
- package/dist/commands/chunk-IBAYXCMU.js +156 -0
- package/dist/commands/chunk-IF3EIFK4.js +7515 -0
- package/dist/commands/chunk-IGD6QJPH.js +91 -0
- package/dist/commands/chunk-IGDJNXX2.js +49 -0
- package/dist/commands/chunk-ILGPZ47M.js +33 -0
- package/dist/commands/chunk-ILIITIMQ.js +126 -0
- package/dist/commands/chunk-IRGDMSTI.js +42 -0
- package/dist/commands/chunk-IW6NWCSN.js +10 -0
- package/dist/commands/chunk-IYJEBWW5.js +44 -0
- package/dist/commands/chunk-J22PSIXR.js +418 -0
- package/dist/commands/chunk-J3TKZLHA.js +11 -0
- package/dist/commands/chunk-J66YBAAM.js +161 -0
- package/dist/commands/chunk-J6WKZRV2.js +391 -0
- package/dist/commands/chunk-J7IO3AYH.js +179 -0
- package/dist/commands/chunk-JAKC2BHX.js +88 -0
- package/dist/commands/chunk-JCAQ7B6J.js +124 -0
- package/dist/commands/chunk-JFLFGLE4.js +32 -0
- package/dist/commands/chunk-JHN6RCE6.js +123 -0
- package/dist/commands/chunk-JIGBNCDR.js +88 -0
- package/dist/commands/chunk-JJHWTFWQ.js +76 -0
- package/dist/commands/chunk-JJRKTWLK.js +64 -0
- package/dist/commands/chunk-JKOGWGQM.js +92 -0
- package/dist/commands/chunk-JM6EVOFN.js +172 -0
- package/dist/commands/chunk-JQXPLMCO.js +81 -0
- package/dist/commands/chunk-JTU5A4JI.js +55 -0
- package/dist/commands/chunk-JV24VP2O.js +81 -0
- package/dist/commands/chunk-JVKXJ763.js +45 -0
- package/dist/commands/chunk-JZHY7D6D.js +71 -0
- package/dist/commands/chunk-JZK33TA5.js +99 -0
- package/dist/commands/chunk-JZOTCPX2.js +115 -0
- package/dist/commands/chunk-K275REYP.js +37 -0
- package/dist/commands/chunk-K2WVYHCP.js +18 -0
- package/dist/commands/chunk-K4G3HOKS.js +105 -0
- package/dist/commands/chunk-K64EIHD2.js +138 -0
- package/dist/commands/chunk-KB3OQWDT.js +71 -0
- package/dist/commands/chunk-KCFOP5RI.js +1310 -0
- package/dist/commands/chunk-KGE4AS2Y.js +134 -0
- package/dist/commands/chunk-KIILCKQR.js +220 -0
- package/dist/commands/chunk-KK2SL42W.js +241 -0
- package/dist/commands/chunk-KK7TEL5G.js +121 -0
- package/dist/commands/chunk-KKIMVXAP.js +280 -0
- package/dist/commands/chunk-KODXWMBX.js +77 -0
- package/dist/commands/chunk-KPSKWTOS.js +208 -0
- package/dist/commands/chunk-KSR23NYN.js +33 -0
- package/dist/commands/chunk-KTLR4Y32.js +21 -0
- package/dist/commands/chunk-KTV2HNWB.js +339 -0
- package/dist/commands/chunk-KVHNQHX3.js +100 -0
- package/dist/commands/chunk-KVURNO74.js +187 -0
- package/dist/commands/chunk-KWYQR5MK.js +269 -0
- package/dist/commands/chunk-KXHXMERX.js +214 -0
- package/dist/commands/chunk-KXK2A2HB.js +158 -0
- package/dist/commands/chunk-KZ5BBBMO.js +271 -0
- package/dist/commands/chunk-KZ7HD37E.js +121 -0
- package/dist/commands/chunk-KZSM5M5P.js +89 -0
- package/dist/commands/chunk-KZZWPUJW.js +25 -0
- package/dist/commands/chunk-L7DAL54N.js +347 -0
- package/dist/commands/chunk-LAR76BFA.js +114 -0
- package/dist/commands/chunk-LAYSCY4L.js +6 -0
- package/dist/commands/chunk-LB557AHJ.js +192 -0
- package/dist/commands/chunk-LBLII7BS.js +14 -0
- package/dist/commands/chunk-LEB2VP7F.js +77 -0
- package/dist/commands/chunk-LHKXJD6L.js +303 -0
- package/dist/commands/chunk-LJXKVLYI.js +229 -0
- package/dist/commands/chunk-LJZERYLG.js +133 -0
- package/dist/commands/chunk-LOOFYHUM.js +773 -0
- package/dist/commands/chunk-LPSULLNK.js +45 -0
- package/dist/commands/chunk-LQXFVZTS.js +13 -0
- package/dist/commands/chunk-LR22UK5W.js +17 -0
- package/dist/commands/chunk-LT7QSHR4.js +995 -0
- package/dist/commands/chunk-LULJUD6P.js +131 -0
- package/dist/commands/chunk-LUXWDMKI.js +426 -0
- package/dist/commands/chunk-LWAXXZPS.js +118 -0
- package/dist/commands/chunk-LX7TIEMI.js +1612 -0
- package/dist/commands/chunk-LYO6TX5L.js +47 -0
- package/dist/commands/chunk-LZ5QXE5N.js +244 -0
- package/dist/commands/chunk-M3ZDYCUF.js +117 -0
- package/dist/commands/chunk-M4UV3BEV.js +313 -0
- package/dist/commands/chunk-M6JDU5EK.js +133 -0
- package/dist/commands/chunk-MDKDJF2K.js +160 -0
- package/dist/commands/chunk-MDLOETXL.js +211 -0
- package/dist/commands/chunk-MFBNNTBM.js +44 -0
- package/dist/commands/chunk-MGF64OHV.js +32 -0
- package/dist/commands/chunk-MI2OS6TL.js +132 -0
- package/dist/commands/chunk-MLW4S35K.js +389 -0
- package/dist/commands/chunk-MMTVQOCP.js +211 -0
- package/dist/commands/chunk-MN425CU6.js +63 -0
- package/dist/commands/chunk-MOIOSCZM.js +171 -0
- package/dist/commands/chunk-MPGJ4ONJ.js +634 -0
- package/dist/commands/chunk-MRORPFSO.js +402 -0
- package/dist/commands/chunk-MSPIR3OA.js +32 -0
- package/dist/commands/chunk-MUGTOJUL.js +319 -0
- package/dist/commands/chunk-MVHPRYHE.js +91 -0
- package/dist/commands/chunk-MWO6FOSZ.js +393 -0
- package/dist/commands/chunk-MXC4IBZ7.js +104 -0
- package/dist/commands/chunk-MY3RSOS5.js +52 -0
- package/dist/commands/chunk-N7QTMTST.js +210 -0
- package/dist/commands/chunk-NDBX7LSS.js +32 -0
- package/dist/commands/chunk-NDWZTWXV.js +229 -0
- package/dist/commands/chunk-NEGJ77RV.js +173 -0
- package/dist/commands/chunk-NEGRE5VW.js +101 -0
- package/dist/commands/chunk-NFKULY26.js +48 -0
- package/dist/commands/chunk-NFPD2P3V.js +53 -0
- package/dist/commands/chunk-NHIW7JE6.js +335 -0
- package/dist/commands/chunk-NILSN7A4.js +158 -0
- package/dist/commands/chunk-NOLFSPOB.js +74 -0
- package/dist/commands/chunk-NSAVEXVR.js +353 -0
- package/dist/commands/chunk-NT67QTZO.js +65 -0
- package/dist/commands/chunk-NU7W6QGT.js +155 -0
- package/dist/commands/chunk-NUR4FQHM.js +21 -0
- package/dist/commands/chunk-NYWGJLBU.js +19 -0
- package/dist/commands/chunk-O3NDWYNT.js +68 -0
- package/dist/commands/chunk-OAAVY2JK.js +49 -0
- package/dist/commands/chunk-OF4BY4N7.js +32 -0
- package/dist/commands/chunk-OGS2DK7I.js +47 -0
- package/dist/commands/chunk-OHNP3QL2.js +186 -0
- package/dist/commands/chunk-OIPV3PWW.js +870 -0
- package/dist/commands/chunk-OIX2363L.js +16 -0
- package/dist/commands/chunk-OJ65BZBV.js +646 -0
- package/dist/commands/chunk-OKYFQJW3.js +22 -0
- package/dist/commands/chunk-OKZWEVR4.js +352 -0
- package/dist/commands/chunk-OL6IF4JC.js +20 -0
- package/dist/commands/chunk-OMPRILFH.js +29 -0
- package/dist/commands/chunk-OOWGH2RG.js +85 -0
- package/dist/commands/chunk-OP2RFVLS.js +102 -0
- package/dist/commands/chunk-ORKVN2LO.js +56 -0
- package/dist/commands/chunk-OSBWXZJ4.js +492 -0
- package/dist/commands/chunk-OT3UMEWK.js +47 -0
- package/dist/commands/chunk-OVWPZDWP.js +64 -0
- package/dist/commands/chunk-OWYK2BEJ.js +1222 -0
- package/dist/commands/chunk-OX3VQLV2.js +488 -0
- package/dist/commands/chunk-OZJP77UM.js +103 -0
- package/dist/commands/chunk-OZZWRJQI.js +246 -0
- package/dist/commands/chunk-P3H3DKTE.js +69 -0
- package/dist/commands/chunk-P4D5RESF.js +88 -0
- package/dist/commands/chunk-P4KIQRSL.js +119 -0
- package/dist/commands/chunk-P5SOYWH2.js +37 -0
- package/dist/commands/chunk-P7FPXAHP.js +29 -0
- package/dist/commands/chunk-PBOS7MTW.js +6 -0
- package/dist/commands/chunk-PE7B7242.js +84 -0
- package/dist/commands/chunk-PFO7EYAP.js +45 -0
- package/dist/commands/chunk-PHLOTUB7.js +366 -0
- package/dist/commands/chunk-PTNQCCIB.js +41 -0
- package/dist/commands/chunk-PTZEFQUX.js +211 -0
- package/dist/commands/chunk-PYOK73QE.js +44 -0
- package/dist/commands/chunk-Q426ZSZ4.js +131 -0
- package/dist/commands/chunk-Q5Q2QYVU.js +112 -0
- package/dist/commands/chunk-Q6SKKQVJ.js +34 -0
- package/dist/commands/chunk-Q7EEIOAD.js +120 -0
- package/dist/commands/chunk-QABRNGQV.js +88 -0
- package/dist/commands/chunk-QAHFPCFR.js +50 -0
- package/dist/commands/chunk-QDFVVRQP.js +92 -0
- package/dist/commands/chunk-QF4WC2AE.js +10 -0
- package/dist/commands/chunk-QGAERR7D.js +99 -0
- package/dist/commands/chunk-QGATHT4S.js +114 -0
- package/dist/commands/chunk-QHWJJ6X5.js +53 -0
- package/dist/commands/chunk-QJRVDE7T.js +307 -0
- package/dist/commands/chunk-QKTTKAXM.js +119 -0
- package/dist/commands/chunk-QMDKDQKW.js +114 -0
- package/dist/commands/chunk-QOSC5RKD.js +18 -0
- package/dist/commands/chunk-QQ4CIYMF.js +132 -0
- package/dist/commands/chunk-QQBMVC5W.js +227 -0
- package/dist/commands/chunk-QV5FKMOU.js +80 -0
- package/dist/commands/chunk-QVOFWFWC.js +134 -0
- package/dist/commands/chunk-QWWTC3XR.js +109 -0
- package/dist/commands/chunk-QX2R6UJG.js +15 -0
- package/dist/commands/chunk-QXQ56E56.js +27 -0
- package/dist/commands/chunk-R2THGPI3.js +99 -0
- package/dist/commands/chunk-R54Z2Z3X.js +114 -0
- package/dist/commands/chunk-R6QE5VJG.js +46 -0
- package/dist/commands/chunk-R7IT5VOL.js +27 -0
- package/dist/commands/chunk-RBU2NKHF.js +44 -0
- package/dist/commands/chunk-RDRN56E4.js +92 -0
- package/dist/commands/chunk-RG53UFNW.js +418 -0
- package/dist/commands/chunk-RGDFWJPZ.js +135 -0
- package/dist/commands/chunk-RGGEQM6G.js +140 -0
- package/dist/commands/chunk-RH6ZWJOA.js +77 -0
- package/dist/commands/chunk-RHKCWJQX.js +62 -0
- package/dist/commands/chunk-RKIAX4DZ.js +191 -0
- package/dist/commands/chunk-RLBFEHHC.js +300 -0
- package/dist/commands/chunk-RMDLFLPE.js +58 -0
- package/dist/commands/chunk-RN2YDNLF.js +229 -0
- package/dist/commands/chunk-ROJXMBXP.js +85 -0
- package/dist/commands/chunk-RRAIRS2T.js +54 -0
- package/dist/commands/chunk-RS764ZMU.js +46 -0
- package/dist/commands/chunk-RSSJWMQS.js +30 -0
- package/dist/commands/chunk-RUIBQMOV.js +38 -0
- package/dist/commands/chunk-RUQY5TS3.js +83 -0
- package/dist/commands/chunk-RVUJ6F5L.js +181 -0
- package/dist/commands/chunk-RW64VHEB.js +130 -0
- package/dist/commands/chunk-RXAZJMSZ.js +18 -0
- package/dist/commands/chunk-RXYMJPJB.js +114 -0
- package/dist/commands/chunk-S4M6UWR2.js +103 -0
- package/dist/commands/chunk-S4X5PJV7.js +40 -0
- package/dist/commands/chunk-SADJPNDB.js +67 -0
- package/dist/commands/chunk-SASX3W2M.js +99 -0
- package/dist/commands/chunk-SBGTCT2C.js +89 -0
- package/dist/commands/chunk-SFNBUB6D.js +110 -0
- package/dist/commands/chunk-SJ2ZN575.js +90 -0
- package/dist/commands/chunk-SP7DKYGU.js +1263 -0
- package/dist/commands/chunk-SRG6PKVS.js +49 -0
- package/dist/commands/chunk-SSL6A3Y4.js +165 -0
- package/dist/commands/chunk-SV4FZR24.js +78 -0
- package/dist/commands/chunk-SVAKCXZ7.js +44 -0
- package/dist/commands/chunk-SVTS7ACS.js +18 -0
- package/dist/commands/chunk-SVV4U5AR.js +62 -0
- package/dist/commands/chunk-SXJM4DZ5.js +40 -0
- package/dist/commands/chunk-SXULS6DX.js +112 -0
- package/dist/commands/chunk-SYB3M632.js +62 -0
- package/dist/commands/chunk-SYOXIKB7.js +705 -0
- package/dist/commands/chunk-SZG5HDNP.js +321 -0
- package/dist/commands/chunk-T25S4QHL.js +52 -0
- package/dist/commands/chunk-T4F33UKZ.js +114 -0
- package/dist/commands/chunk-T4UYEHWG.js +50 -0
- package/dist/commands/chunk-TAEGXID2.js +58 -0
- package/dist/commands/chunk-TBIX5FRN.js +106 -0
- package/dist/commands/chunk-TBNQIFWL.js +101 -0
- package/dist/commands/chunk-TCBUX52E.js +701 -0
- package/dist/commands/chunk-TEPYEUYG.js +585 -0
- package/dist/commands/chunk-TFLHYC2F.js +141 -0
- package/dist/commands/chunk-TJKM56WJ.js +109 -0
- package/dist/commands/chunk-TLAB552K.js +445 -0
- package/dist/commands/chunk-TP6L4W3W.js +82 -0
- package/dist/commands/chunk-TR7WWYD5.js +60 -0
- package/dist/commands/chunk-TUIFS5E7.js +72 -0
- package/dist/commands/chunk-TVZXG4Y4.js +197 -0
- package/dist/commands/chunk-TYNH2R66.js +1150 -0
- package/dist/commands/chunk-U3IVVR4W.js +33 -0
- package/dist/commands/chunk-U5HQQWRE.js +20 -0
- package/dist/commands/chunk-U5P6G3UV.js +77 -0
- package/dist/commands/chunk-U7XU5RG3.js +86 -0
- package/dist/commands/chunk-U7Y6RKLK.js +168 -0
- package/dist/commands/chunk-UCI4AL3Q.js +35 -0
- package/dist/commands/chunk-UCUSCLEK.js +90 -0
- package/dist/commands/chunk-UGCUSRZF.js +17 -0
- package/dist/commands/chunk-UIMMWH7U.js +98 -0
- package/dist/commands/chunk-UKBBWMLE.js +1189 -0
- package/dist/commands/chunk-ULVVGGTY.js +64 -0
- package/dist/commands/chunk-UNMSZGSG.js +269 -0
- package/dist/commands/chunk-UOVUUVDK.js +18 -0
- package/dist/commands/chunk-URDT2O2K.js +36 -0
- package/dist/commands/chunk-UREXZJDB.js +210 -0
- package/dist/commands/chunk-UTHUX7VU.js +88 -0
- package/dist/commands/chunk-UWLLZQJB.js +110 -0
- package/dist/commands/chunk-V4Z7G4UH.js +73 -0
- package/dist/commands/chunk-V5FD7DVV.js +48 -0
- package/dist/commands/chunk-V5OUZFWK.js +128 -0
- package/dist/commands/chunk-VCPGFBMN.js +655 -0
- package/dist/commands/chunk-VCR77BHO.js +8 -0
- package/dist/commands/chunk-VDGNXSP3.js +174 -0
- package/dist/commands/chunk-VGPIQNDB.js +24 -0
- package/dist/commands/chunk-VHRNXWVP.js +28 -0
- package/dist/commands/chunk-VJE3RJAX.js +23 -0
- package/dist/commands/chunk-VJS2MCLA.js +412 -0
- package/dist/commands/chunk-VK6D5CWA.js +161 -0
- package/dist/commands/chunk-VOF3N4WO.js +114 -0
- package/dist/commands/chunk-VQRT32JB.js +52 -0
- package/dist/commands/chunk-VQVPAVQ3.js +45 -0
- package/dist/commands/chunk-VV4TQYGD.js +38 -0
- package/dist/commands/chunk-W2IA2LV3.js +15 -0
- package/dist/commands/chunk-W3FX7FYN.js +84 -0
- package/dist/commands/chunk-W6MVQEMO.js +109 -0
- package/dist/commands/chunk-W7DRUOF7.js +122 -0
- package/dist/commands/chunk-WAEN2RTT.js +161 -0
- package/dist/commands/chunk-WB4T3VY2.js +104 -0
- package/dist/commands/chunk-WCEUMOKK.js +84 -0
- package/dist/commands/chunk-WJ4NEDNI.js +288 -0
- package/dist/commands/chunk-WL5JHB3I.js +12 -0
- package/dist/commands/chunk-WMMGXJXP.js +92 -0
- package/dist/commands/chunk-WOFLW2LX.js +26 -0
- package/dist/commands/chunk-WPAQUMHC.js +28 -0
- package/dist/commands/chunk-WQ6FS544.js +35 -0
- package/dist/commands/chunk-WTH6NTXU.js +128 -0
- package/dist/commands/chunk-WVR4RUFP.js +327 -0
- package/dist/commands/chunk-WWVYEHQT.js +272 -0
- package/dist/commands/chunk-X3TNPALI.js +213 -0
- package/dist/commands/chunk-X5XYKDOD.js +7 -0
- package/dist/commands/chunk-XC6GG5JR.js +78 -0
- package/dist/commands/chunk-XDF25GSU.js +536 -0
- package/dist/commands/chunk-XFPEUYDV.js +67 -0
- package/dist/commands/chunk-XFWI6WHH.js +60 -0
- package/dist/commands/chunk-XGMRAKSL.js +85 -0
- package/dist/commands/chunk-XHGWMD3L.js +104 -0
- package/dist/commands/chunk-XI2ABCRX.js +209 -0
- package/dist/commands/chunk-XKSUBUIH.js +116 -0
- package/dist/commands/chunk-XPBF5DG3.js +419 -0
- package/dist/commands/chunk-XSKB6ZUA.js +123 -0
- package/dist/commands/chunk-XUMYPESL.js +160 -0
- package/dist/commands/chunk-XXC32PVL.js +541 -0
- package/dist/commands/chunk-XXN2EZBY.js +133 -0
- package/dist/commands/chunk-XXNEY4B3.js +110 -0
- package/dist/commands/chunk-XZQWEVR3.js +84 -0
- package/dist/commands/chunk-Y27PTXXI.js +258 -0
- package/dist/commands/chunk-Y2RNUX4W.js +8 -0
- package/dist/commands/chunk-Y4EBUI6M.js +237 -0
- package/dist/commands/chunk-YAU3LYNF.js +60 -0
- package/dist/commands/chunk-YDURQICF.js +204 -0
- package/dist/commands/chunk-YGFOGA7C.js +1153 -0
- package/dist/commands/chunk-YHJ2AJMA.js +66 -0
- package/dist/commands/chunk-YIA6FC3K.js +78 -0
- package/dist/commands/chunk-YM77CF4D.js +183 -0
- package/dist/commands/chunk-YNPRJCEO.js +81 -0
- package/dist/commands/chunk-YTBQAD5W.js +170 -0
- package/dist/commands/chunk-YVH2OLDS.js +104 -0
- package/dist/commands/chunk-Z3WGHIVB.js +122 -0
- package/dist/commands/chunk-ZAAHZY2A.js +19 -0
- package/dist/commands/chunk-ZBFNQUY7.js +12 -0
- package/dist/commands/chunk-ZBZ5DDCH.js +1866 -0
- package/dist/commands/chunk-ZECFKW7D.js +60 -0
- package/dist/commands/chunk-ZLRUHSOP.js +48 -0
- package/dist/commands/chunk-ZNR75OXP.js +444 -0
- package/dist/commands/chunk-ZNX2LJCQ.js +29 -0
- package/dist/commands/chunk-ZSOR4ISJ.js +75 -0
- package/dist/commands/chunk-ZVAIIHBE.js +63 -0
- package/dist/commands/chunk-ZYFHYQA7.js +51 -0
- package/dist/commands/chunk-ZYGOZT4J.js +39 -0
- package/dist/commands/chunk-ZZFFSQF4.js +218 -0
- package/dist/commands/chunk-ZZULXNC2.js +47 -0
- package/dist/commands/chunk-ZZXO6TFH.js +232 -0
- package/dist/commands/ci-timing-cli.js +76 -0
- package/dist/commands/clone-scan-cli.js +189 -0
- package/dist/commands/code-symbol-cli.js +185 -0
- package/dist/commands/codex-hook-adapter.js +356 -0
- package/dist/commands/command-derive.js +802 -0
- package/dist/commands/cost-audit-main.js +209 -0
- package/dist/commands/cost-main.js +28 -0
- package/dist/commands/cspell-cached.js +159 -0
- package/dist/commands/defect-origin-main.js +222 -0
- package/dist/commands/defect-report-main.js +289 -0
- package/dist/commands/delegation-cli.js +65 -0
- package/dist/commands/diff-summary-cli.js +147 -0
- package/dist/commands/disposition-cli.js +411 -0
- package/dist/commands/doctor.js +267 -0
- package/dist/commands/document-read-cli.js +119 -844
- package/dist/commands/document-section-main.js +106 -835
- package/dist/commands/dogfood-commit-cli.js +102 -0
- package/dist/commands/e2e-retry-check.js +79 -0
- package/dist/commands/edit-files-cli.js +147 -0
- package/dist/commands/effect-audit-cli.js +320 -0
- package/dist/commands/epic-audit-main.js +160 -0
- package/dist/commands/epic-bundle-main.js +201 -0
- package/dist/commands/epic-check.js +91 -0
- package/dist/commands/epic-main.js +224 -0
- package/dist/commands/epic-next-main.js +159 -0
- package/dist/commands/eval-run.js +838 -0
- package/dist/commands/fanout-cli.js +86 -0
- package/dist/commands/format-edited-cli.js +118 -0
- package/dist/commands/format.js +140 -0
- package/dist/commands/fresh-machine-cli.js +691 -0
- package/dist/commands/gh-usage-cli.js +224 -0
- package/dist/commands/git-followup-workflow.js +2027 -0
- package/dist/commands/git-gh-checks-failed-main.js +156 -0
- package/dist/commands/git-workflow.js +603 -0
- package/dist/commands/github-release-cli.js +276 -0
- package/dist/commands/hook-ledger-cli.js +364 -0
- package/dist/commands/init-main.js +99 -0
- package/dist/commands/inputs.json +2795 -0
- package/dist/commands/issue-ack-cli.js +106 -0
- package/dist/commands/issue-already-done-cli.js +310 -0
- package/dist/commands/issue-body-cli.js +186 -0
- package/dist/commands/issue-cite-main.js +163 -0
- package/dist/commands/issue-comment-main.js +76 -0
- package/dist/commands/issue-consolidate-cli.js +330 -0
- package/dist/commands/issue-file-main.js +423 -0
- package/dist/commands/issue-fold-existing-cli.js +508 -0
- package/dist/commands/issue-fold-main.js +114 -0
- package/dist/commands/issue-lint-main.js +127 -0
- package/dist/commands/issue-measured-cli.js +210 -0
- package/dist/commands/issue-plan-cli.js +354 -0
- package/dist/commands/issue-premise-unmet-cli.js +273 -0
- package/dist/commands/issue-priority-cli.js +185 -0
- package/dist/commands/issue-read-main.js +80 -0
- package/dist/commands/issue-release-class-cli.js +120 -0
- package/dist/commands/issue-release-main.js +72 -0
- package/dist/commands/issue-scout-main.js +205 -0
- package/dist/commands/issue-spill-main.js +568 -0
- package/dist/commands/issue-state-main.js +77 -0
- package/dist/commands/issue-tick-cli.js +113 -0
- package/dist/commands/josh-completion.js +153 -0
- package/dist/commands/lane-adopt-cli.js +275 -0
- package/dist/commands/lane-breakdown-cli.js +731 -0
- package/dist/commands/lane-cli.js +869 -0
- package/dist/commands/lane-launch-main.js +103 -0
- package/dist/commands/lane-limit-cli.js +288 -0
- package/dist/commands/lane-measure-cli.js +1913 -0
- package/dist/commands/lane-pause-cli.js +255 -0
- package/dist/commands/lane-plan-cli.js +329 -0
- package/dist/commands/lane-resolve-cli.js +301 -0
- package/dist/commands/lane-restart-cli.js +393 -0
- package/dist/commands/lane-why-cli.js +310 -0
- package/dist/commands/lane-withdraw-cli.js +192 -0
- package/dist/commands/latest-corepack.js +278 -0
- package/dist/commands/latest-if-required-cli.js +124 -0
- package/dist/commands/latest-lane-guard-main.js +16 -0
- package/dist/commands/latest-scope-main.js +38 -0
- package/dist/commands/latest-update.js +449 -0
- package/dist/commands/lines-command.js +121 -0
- package/dist/commands/lint-parallel-main.js +135 -0
- package/dist/commands/lint-related.js +584 -0
- package/dist/commands/lint-rule.js +306 -0
- package/dist/commands/lockfile-policy.js +107 -0
- package/dist/commands/main-merge-main.js +61 -0
- package/dist/commands/main-sync-main.js +60 -0
- package/dist/commands/managed-config-scope-cli.js +66 -0
- package/dist/commands/measure-rerun-cli.js +124 -0
- package/dist/commands/metrics-command.js +892 -0
- package/dist/commands/observation-depth-cli.js +109 -0
- package/dist/commands/observation-record-cli.js +87 -0
- package/dist/commands/observations-flush-cli.js +117 -0
- package/dist/commands/oracle-list-cli.js +73 -0
- package/dist/commands/overrides-check.js +112 -0
- package/dist/commands/package-scout-cli.js +537 -0
- package/dist/commands/pin-verify-cli.js +88 -0
- package/dist/commands/plan-consumers-main.js +49 -0
- package/dist/commands/plan-scaffold-cli.js +408 -0
- package/dist/commands/port-command.js +64 -0
- package/dist/commands/pr-classification-main.js +37 -0
- package/dist/commands/pre-commit-lint.js +162 -0
- package/dist/commands/pre-commit-type-check.js +211 -0
- package/dist/commands/pre-push-unit.js +271 -0
- package/dist/commands/pretool-guard-cli.js +204 -0
- package/dist/commands/prevent-main-commit.js +42 -0
- package/dist/commands/project-profile-cli.js +59 -0
- package/dist/commands/propagate.js +368 -0
- package/dist/commands/prose-stale-cli.js +129 -0
- package/dist/commands/publish-tag-cli.js +30 -0
- package/dist/commands/publishable-range-check.js +191 -0
- package/dist/commands/read-files-cli.js +81 -0
- package/dist/commands/read-set-cli.js +158 -1745
- package/dist/commands/reconcile-templates.js +135 -0
- package/dist/commands/refactor-scan-cli.js +175 -0
- package/dist/commands/release-cli.js +752 -0
- package/dist/commands/release-scope-main.js +82 -0
- package/dist/commands/rename-cli.js +430 -0
- package/dist/commands/repo-party-cli.js +58 -0
- package/dist/commands/report-lint-cli.js +124 -0
- package/dist/commands/report-template-cli.js +69 -0
- package/dist/commands/reserved-run.js +127 -0
- package/dist/commands/retrospective-cli.js +557 -0
- package/dist/commands/review-attest-cli.js +118 -0
- package/dist/commands/review-brief-main.js +265 -0
- package/dist/commands/review-findings-cli.js +114 -0
- package/dist/commands/review-pair-cli.js +392 -0
- package/dist/commands/review-record-main.js +247 -0
- package/dist/commands/review-round2-cli.js +350 -0
- package/dist/commands/review-stops-cli.js +149 -0
- package/dist/commands/review-submit-cli.js +628 -0
- package/dist/commands/rule-list.js +182 -0
- package/dist/commands/rule-value-cli.js +1060 -0
- package/dist/commands/ruleset-check-cli.js +67 -0
- package/dist/commands/run-add-cli.js +274 -0
- package/dist/commands/run-board-main.js +276 -0
- package/dist/commands/run-carry-cli.js +644 -0
- package/dist/commands/run-chain-cli.js +560 -0
- package/dist/commands/run-cut-cli.js +714 -0
- package/dist/commands/run-ending-cli.js +166 -0
- package/dist/commands/run-entry-cli.js +1063 -0
- package/dist/commands/run-event-cli.js +298 -0
- package/dist/commands/run-handoff-cli.js +368 -0
- package/dist/commands/run-handoff-lanes-cli.js +233 -0
- package/dist/commands/run-hold-main.js +205 -0
- package/dist/commands/run-liveness-cli.js +190 -0
- package/dist/commands/run-merge-main.js +249 -0
- package/dist/commands/run-next-cli.js +241 -0
- package/dist/commands/run-park-cli.js +412 -0
- package/dist/commands/run-pause-cli.js +348 -0
- package/dist/commands/run-pickup-cli.js +196 -0
- package/dist/commands/run-prep-main.js +210 -21168
- package/dist/commands/run-prime-cli.js +301 -0
- package/dist/commands/run-progress-main.js +671 -0
- package/dist/commands/run-report-cli.js +377 -0
- package/dist/commands/run-review-cli.js +796 -0
- package/dist/commands/run-ship-cli.js +2620 -0
- package/dist/commands/run-ship-evidence-cli.js +289 -0
- package/dist/commands/run-ship-lap-W5T2VHFC.js +30 -0
- package/dist/commands/run-ship-wait-main.js +148 -0
- package/dist/commands/run-split-cli.js +527 -0
- package/dist/commands/run-stale-main.js +255 -0
- package/dist/commands/run-status-cli.js +217 -0
- package/dist/commands/run-step-cli.js +428 -27653
- package/dist/commands/run-tail-cli.js +119 -0
- package/dist/commands/run-tidy-main.js +403 -0
- package/dist/commands/run-wake-main.js +290 -0
- package/dist/commands/run-watcher-guard-cli.js +129 -0
- package/dist/commands/secretlint-scan.js +84 -0
- package/dist/commands/security-audit-main.js +151 -0
- package/dist/commands/security-audit-provision-main.js +52 -0
- package/dist/commands/selfcheck-cli.js +410 -0
- package/dist/commands/session-language-main.js +140 -0
- package/dist/commands/sonar-hotspots-cli.js +133 -0
- package/dist/commands/sonar-new-code-cli.js +143 -0
- package/dist/commands/split-assess-cli.js +139 -0
- package/dist/commands/split-child-recover-cli.js +169 -0
- package/dist/commands/start.js +709 -0
- package/dist/commands/stash-pop-main.js +26 -0
- package/dist/commands/stash-push-main.js +30 -0
- package/dist/commands/stop-guard.js +568 -0
- package/dist/commands/sync-main.js +58 -0
- package/dist/commands/telegram-test-main.js +64 -0
- package/dist/commands/test-declared.js +256 -0
- package/dist/commands/test-e2e-guard.js +201 -0
- package/dist/commands/test-pinned-main.js +190 -0
- package/dist/commands/test-reach-cli.js +112 -0
- package/dist/commands/test-red-main.js +46 -0
- package/dist/commands/test-related-ZCNC46MS.js +113 -0
- package/dist/commands/test-related-main.js +224 -0
- package/dist/commands/test-unit-guard-main.js +88 -0
- package/dist/commands/time-cli.js +353 -0
- package/dist/commands/time-density-cli.js +182 -0
- package/dist/commands/tree-status-cli.js +172 -0
- package/dist/commands/type-check-command.js +75 -0
- package/dist/commands/ui-routes-cli.js +135 -0
- package/dist/commands/ui-shot-cli.js +131 -0
- package/dist/commands/uninstall.js +425 -0
- package/dist/commands/unused-members-STULPRBU.js +331 -0
- package/dist/commands/unused-members-cli.js +55 -0
- package/dist/commands/upstream-interrupt-main.js +453 -0
- package/dist/commands/usage-tee-cli.js +60 -0
- package/dist/commands/verification-gate.js +808 -0
- package/dist/commands/version-check.js +497 -0
- package/dist/hooks/audit-provision.js +20 -9
- package/dist/hooks/chunk-5CUXGQT6.js +8353 -0
- package/dist/hooks/{chunk-UJ3FPMMM.js → chunk-5R5YFQR5.js} +445 -142
- package/dist/hooks/chunk-6RLY27FT.js +232 -0
- package/dist/hooks/chunk-6YGMIODI.js +86 -0
- package/dist/hooks/chunk-AO4TOV4V.js +5026 -0
- package/dist/hooks/chunk-CY3ADSDR.js +28580 -0
- package/dist/hooks/chunk-FOW4B7OQ.js +1795 -0
- package/dist/hooks/chunk-G5WSPYJ6.js +5663 -0
- package/dist/hooks/{chunk-CQD4LJE6.js → chunk-HHIVWGHX.js} +3290 -1279
- package/dist/hooks/chunk-IURJANNZ.js +1082 -0
- package/dist/hooks/chunk-LRD2ERRI.js +299 -0
- package/dist/hooks/chunk-OV22V63P.js +10980 -0
- package/dist/hooks/chunk-SAAPRHTK.js +43 -0
- package/dist/hooks/chunk-SXABK6UV.js +321 -0
- package/dist/hooks/chunk-U3ON2GBN.js +12 -0
- package/dist/hooks/chunk-YEURBB4L.js +32 -0
- package/dist/hooks/codex-hook-adapter.js +61 -25
- package/dist/hooks/daemon.js +67667 -0
- package/dist/hooks/format-edited.js +15 -5
- package/dist/hooks/inputs.json +601 -403
- package/dist/hooks/pretool-guard.js +11 -7
- package/dist/hooks/ready.js +300 -0
- package/dist/hooks/run-ship-lap-VCEOUHQI.js +8 -0
- package/dist/hooks/session-lang.js +515 -133
- package/dist/hooks/stop-guard.js +9370 -4513
- package/dist/inputs.json +169 -0
- package/dist/josh.js +9753 -6793
- package/dist/self-sync-guard/index.js +85 -14
- package/dist/version/index.js +659 -85
- package/eslint/base.js +36 -11
- package/eslint/config-fingerprint.js +164 -21
- package/eslint/rules/code-quality.js +6 -0
- package/eslint/rules/comment-why-only.js +40 -16
- package/eslint/rules/english-only-prose.js +10 -3
- package/eslint/rules/import.js +3 -17
- package/eslint/rules/test-helper-bans.js +34 -0
- package/eslint/untyped-environment.js +21 -0
- package/eslint/untyped.js +60 -0
- package/lefthook/base.yml +4 -5
- package/package.json +17 -15
- package/pnpm-workspace.yaml +7 -0
- package/ports/index.js +8 -15
- package/prompts/coding-standards.md +4 -43
- package/prompts/collaboration-workflow/file-edits.md +10 -10
- package/prompts/collaboration-workflow/gh-rest.md +14 -7
- package/prompts/collaboration-workflow/issue-template.en.md +129 -0
- package/prompts/collaboration-workflow/issue-template.md +49 -56
- package/prompts/collaboration-workflow/lane-instructions.md +1 -0
- package/prompts/collaboration-workflow/measurement.md +13 -17
- package/prompts/collaboration-workflow/operating-rules.md +10 -7
- package/prompts/collaboration-workflow/output-bounds.md +3 -3
- package/prompts/collaboration-workflow/overview.md +8 -17
- package/prompts/collaboration-workflow/plan-comment.md +1 -1
- package/prompts/collaboration-workflow/principles.md +17 -19
- package/prompts/collaboration-workflow/report-format.md +6 -5
- package/prompts/collaboration-workflow/residency.md +1 -0
- package/prompts/collaboration-workflow/rule-delivery.md +4 -12
- package/prompts/collaboration-workflow/shell-body.md +7 -7
- package/prompts/collaboration-workflow/turn-batching.md +2 -2
- package/prompts/collaboration-workflow/upstream-interrupt.md +8 -8
- package/prompts/collaboration-workflow/wip-cap.md +3 -3
- package/prompts/refactoring.md +4 -3
- package/prompts/review-rubric.md +8 -21
- package/prompts/review.md +52 -80
- package/prompts/sonar-hotspot-handling.md +1 -1
- package/prompts/testing-guide.md +15 -2
- package/scripts/agent/agent-argv.ts +30 -9
- package/scripts/agent/agent-consultation-model.ts +47 -0
- package/scripts/agent/agent-event.ts +11 -2
- package/scripts/agent/agent-launch-environment.ts +6 -57
- package/scripts/agent/agent-model-alias.ts +19 -0
- package/scripts/agent/agent-phase-profile.ts +89 -0
- package/scripts/agent/agent-profile-schema.ts +98 -0
- package/scripts/agent/agent-role-profile.ts +88 -133
- package/scripts/agent/agent-safe-text.ts +2 -2
- package/scripts/agent/agent-session-role.ts +25 -3
- package/scripts/agent/agent-ship-cap.ts +44 -0
- package/scripts/agent/agent-worker-profile.ts +154 -0
- package/scripts/agent/answer-judge.ts +174 -0
- package/scripts/agent/answer-verdict.ts +122 -0
- package/scripts/agent/claude-agent-argv.ts +13 -7
- package/scripts/agent/codex-agent-argv.ts +17 -143
- package/scripts/agent/codex-home-source.ts +1 -1
- package/scripts/agent/codex-hooks.ts +29 -6
- package/scripts/agent/judgment-agent-argv.ts +49 -0
- package/scripts/agent/lane-instructions.ts +33 -4
- package/scripts/auto-ok/auto-ok-author.ts +14 -3
- package/scripts/auto-ok/auto-ok-cli.ts +20 -12
- package/scripts/auto-ok/auto-ok-judge-cli.ts +10 -14
- package/scripts/auto-ok/auto-ok-judge-read.ts +3 -3
- package/scripts/auto-ok/auto-ok-judge-write.ts +20 -17
- package/scripts/auto-ok/auto-ok-judge.ts +4 -2
- package/scripts/backlog/backlog-arrival-added.ts +47 -11
- package/scripts/backlog/backlog-arrival.ts +90 -23
- package/scripts/backlog/backlog-auto-triage.ts +130 -0
- package/scripts/backlog/backlog-budget-cli.ts +2 -1
- package/scripts/backlog/backlog-budget.ts +31 -5
- package/scripts/backlog/backlog-defect-priority.ts +32 -19
- package/scripts/backlog/backlog-drain-flush.ts +22 -0
- package/scripts/backlog/backlog-drive-adopt.ts +2 -2
- package/scripts/backlog/backlog-drive-after-merge.ts +123 -0
- package/scripts/backlog/backlog-drive-args.ts +60 -7
- package/scripts/backlog/backlog-drive-cli.ts +69 -64
- package/scripts/backlog/backlog-drive-collect.ts +46 -0
- package/scripts/backlog/backlog-drive-epic.ts +1 -1
- package/scripts/backlog/backlog-drive-escalate.ts +115 -0
- package/scripts/backlog/backlog-drive-hold.ts +32 -8
- package/scripts/backlog/backlog-drive-idle.ts +21 -10
- package/scripts/backlog/backlog-drive-launch-pass.ts +79 -23
- package/scripts/backlog/backlog-drive-launch.ts +73 -7
- package/scripts/backlog/backlog-drive-listing.ts +59 -0
- package/scripts/backlog/backlog-drive-memory.ts +4 -5
- package/scripts/backlog/backlog-drive-named-offer.ts +112 -22
- package/scripts/backlog/backlog-drive-named.ts +11 -4
- package/scripts/backlog/backlog-drive-offer-argv.ts +10 -2
- package/scripts/backlog/backlog-drive-park-triage.ts +57 -0
- package/scripts/backlog/backlog-drive-paused.ts +2 -1
- package/scripts/backlog/backlog-drive-rate-limit.ts +29 -0
- package/scripts/backlog/backlog-drive-rate.ts +73 -0
- package/scripts/backlog/backlog-drive-record.ts +58 -0
- package/scripts/backlog/backlog-drive-restore.ts +38 -8
- package/scripts/backlog/backlog-drive-retrospective-unit.ts +80 -0
- package/scripts/backlog/backlog-drive-retrospective.ts +35 -1
- package/scripts/backlog/backlog-drive-retry.ts +85 -0
- package/scripts/backlog/backlog-drive-seats.ts +4 -7
- package/scripts/backlog/backlog-drive-split-unit.ts +108 -0
- package/scripts/backlog/backlog-drive-stalled-retry.ts +232 -0
- package/scripts/backlog/backlog-drive-state.ts +28 -0
- package/scripts/backlog/backlog-drive-tick.ts +77 -0
- package/scripts/backlog/backlog-drive-token-handling.ts +2 -2
- package/scripts/backlog/backlog-drive-trace.ts +45 -0
- package/scripts/backlog/backlog-drive-unit.ts +54 -0
- package/scripts/backlog/backlog-drive-unread.ts +1 -1
- package/scripts/backlog/backlog-drive.ts +142 -99
- package/scripts/backlog/backlog-gate-scope.ts +15 -3
- package/scripts/backlog/backlog-hold-codes.ts +23 -0
- package/scripts/backlog/backlog-hold-text.ts +107 -0
- package/scripts/backlog/backlog-measure-close.ts +61 -31
- package/scripts/backlog/backlog-named.ts +1 -1
- package/scripts/backlog/backlog-next-offer.ts +138 -0
- package/scripts/backlog/backlog-next-report.ts +221 -0
- package/scripts/backlog/backlog-next-shared.ts +22 -4
- package/scripts/backlog/backlog-next-size.ts +108 -0
- package/scripts/backlog/backlog-next.ts +52 -187
- package/scripts/backlog/backlog-occupied.ts +7 -7
- package/scripts/backlog/backlog-offer-cli.ts +13 -2
- package/scripts/backlog/backlog-offer-timing.ts +141 -0
- package/scripts/backlog/backlog-offer.ts +26 -6
- package/scripts/backlog/backlog-overlap.ts +7 -1
- package/scripts/backlog/backlog-plan-cli.ts +27 -3
- package/scripts/backlog/backlog-plan-comment.ts +36 -14
- package/scripts/backlog/backlog-plan-words.ts +69 -0
- package/scripts/backlog/backlog-plan.ts +63 -46
- package/scripts/backlog/backlog-pool.ts +42 -13
- package/scripts/backlog/backlog-preflight.ts +67 -0
- package/scripts/backlog/backlog-ready.ts +7 -69
- package/scripts/backlog/backlog-resumable.ts +65 -0
- package/scripts/backlog/backlog-resume-reads.ts +119 -0
- package/scripts/backlog/backlog-stalled-detect.ts +4 -3
- package/scripts/backlog/backlog-stalled.ts +3 -2
- package/scripts/backlog/backlog-triage-adopt.ts +239 -0
- package/scripts/backlog/backlog-triage-approval.ts +94 -0
- package/scripts/backlog/backlog-triage-cli.ts +270 -0
- package/scripts/backlog/backlog-triage-decision.ts +49 -0
- package/scripts/backlog/backlog-triage-park.ts +53 -0
- package/scripts/backlog/backlog-triage-pass.ts +113 -0
- package/scripts/backlog/backlog-triage-unblock.ts +68 -0
- package/scripts/backlog/backlog-wait-cause.ts +76 -16
- package/scripts/backlog/backlog-yield-cap.ts +108 -0
- package/scripts/backlog/backlogrun-args.ts +45 -16
- package/scripts/backlog/backlogrun-cli.ts +82 -18
- package/scripts/backlog/backlogrun-launch.ts +12 -4
- package/scripts/backlog/backlogrun-replace.ts +44 -4
- package/scripts/build/build-bin.ts +25 -2
- package/scripts/build/build-codex-hooks.ts +2 -2
- package/scripts/build/build-commands.ts +27 -19
- package/scripts/build/build-hooks.ts +117 -22
- package/scripts/build/hook-bundle-stamp.ts +15 -5
- package/scripts/build/local-bin.ts +27 -1
- package/scripts/build/source-location.ts +82 -0
- package/scripts/ci/ci-timing-cli.ts +73 -0
- package/scripts/ci/ci-timing-table.ts +84 -0
- package/scripts/ci/ci-timing.ts +104 -0
- package/scripts/ci/composite-actions.ts +1 -1
- package/scripts/ci/pr-classification.ts +89 -11
- package/scripts/code/code-symbol-cli.ts +121 -0
- package/scripts/code/code-symbol.ts +127 -0
- package/scripts/config-merge/patch-json-key.ts +4 -7
- package/scripts/cost-runtime/cost-blocks.ts +3 -4
- package/scripts/cost-runtime/cost-cli.ts +4 -7
- package/scripts/cost-runtime/cost-pricing.ts +2 -2
- package/scripts/cost-runtime/cost-tokens.ts +7 -6
- package/scripts/delegation/delegation-policy.ts +2 -2
- package/scripts/delegation/duplicate-read-guard.ts +41 -28
- package/scripts/delegation/investigation-guard.ts +13 -5
- package/scripts/delegation/investigation-reads.ts +52 -34
- package/scripts/delegation/large-read-guard.ts +150 -0
- package/scripts/discovery/git-directory.ts +61 -0
- package/scripts/discovery/pin-verify-cli.ts +115 -0
- package/scripts/discovery/repo-discovery.ts +10 -58
- package/scripts/discovery/repo-party.ts +1 -0
- package/scripts/document/backlogrun-parent-read-set.ts +37 -6
- package/scripts/document/capped-print.ts +3 -3
- package/scripts/document/command-reference-line-budget.ts +4 -1
- package/scripts/document/document-byte-budget.ts +34 -16
- package/scripts/document/document-byte-check.ts +1 -1
- package/scripts/document/document-reachability.ts +4 -3
- package/scripts/document/document-scan.ts +37 -6
- package/scripts/document/document-section-cli.ts +13 -1
- package/scripts/document/edit-files-cli.ts +3 -7
- package/scripts/document/entry-read-budget.ts +12 -4
- package/scripts/document/entry-read-set.ts +9 -2
- package/scripts/document/issue-citation-budget.ts +3 -3
- package/scripts/document/lane-child-read-set.ts +21 -29
- package/scripts/document/read-set-cli.ts +17 -10
- package/scripts/document/read-set-point-of-use.ts +13 -9
- package/scripts/document/read-set-trim.ts +42 -2
- package/scripts/epic/epic-audit-checks.ts +1 -1
- package/scripts/epic/epic-audit-cli.ts +19 -21
- package/scripts/epic/epic-audit-main.ts +17 -0
- package/scripts/epic/epic-audit-orphans.ts +1 -1
- package/scripts/epic/epic-audit.ts +6 -3
- package/scripts/epic/epic-blocked-by.ts +198 -0
- package/scripts/epic/epic-body.ts +6 -6
- package/scripts/epic/epic-bundle-apply.ts +41 -10
- package/scripts/epic/epic-bundle-cli.ts +40 -99
- package/scripts/epic/epic-bundle-evidence.ts +2 -2
- package/scripts/epic/epic-bundle-format.ts +21 -7
- package/scripts/epic/epic-bundle-recommend.ts +56 -0
- package/scripts/epic/epic-bundle-referenced.ts +42 -17
- package/scripts/epic/epic-bundle.ts +31 -4
- package/scripts/epic/epic-busy.ts +11 -9
- package/scripts/epic/epic-chains.ts +59 -23
- package/scripts/epic/epic-child-source.ts +111 -0
- package/scripts/epic/epic-cli-untrack.ts +38 -0
- package/scripts/epic/epic-cli.ts +26 -7
- package/scripts/epic/epic-close-comment.ts +4 -2
- package/scripts/epic/epic-close.ts +25 -11
- package/scripts/epic/epic-decide.ts +39 -3
- package/scripts/epic/epic-fetch.ts +116 -24
- package/scripts/epic/epic-graph.ts +1 -0
- package/scripts/epic/epic-label-age.ts +55 -13
- package/scripts/epic/epic-lane-occupancy.ts +75 -0
- package/scripts/epic/epic-lane-offer.ts +49 -13
- package/scripts/epic/epic-main.ts +23 -0
- package/scripts/epic/epic-next-main.ts +2 -4
- package/scripts/epic/epic-next-read.ts +12 -3
- package/scripts/epic/epic-next-views.ts +1 -1
- package/scripts/epic/epic-notify.ts +72 -0
- package/scripts/epic/epic-parse.ts +1 -1
- package/scripts/epic/epic-rank.ts +6 -2
- package/scripts/epic/epic-reference.ts +1 -1
- package/scripts/epic/epic-run.ts +14 -1
- package/scripts/epic/epic-shape.ts +2 -2
- package/scripts/epic/epic-solo-stale.ts +1 -1
- package/scripts/epic/epic-solo.ts +11 -5
- package/scripts/epic/epic-split-reach.ts +107 -0
- package/scripts/epic/epic-triage.ts +29 -5
- package/scripts/epic/epic-untrack-plan.ts +75 -0
- package/scripts/epic/epic-untrack.ts +42 -0
- package/scripts/epic/epic.ts +65 -31
- package/scripts/followup/followup-check-report.ts +70 -0
- package/scripts/followup/followup-ci-path.ts +27 -7
- package/scripts/followup/followup-coderabbit-retrigger.ts +61 -23
- package/scripts/followup/followup-failed-tests.ts +4 -0
- package/scripts/followup/followup-human-merge.ts +109 -0
- package/scripts/followup/followup-job-needs.ts +92 -14
- package/scripts/followup/followup-job-rerun.ts +162 -43
- package/scripts/followup/followup-run-rerun.ts +183 -0
- package/scripts/followup/followup-section.ts +30 -0
- package/scripts/followup/followup-ship-environment.ts +17 -0
- package/scripts/followup/git-followup-finish.ts +52 -1
- package/scripts/followup/git-followup-flush.ts +6 -8
- package/scripts/followup/git-followup-stages.ts +3 -0
- package/scripts/followup/git-followup-workflow.ts +29 -9
- package/scripts/followup/git-pr-followup-checks.ts +65 -8
- package/scripts/followup/git-pr-followup-wrapup.ts +11 -9
- package/scripts/followup/git-pr-followup.ts +18 -12
- package/scripts/fresh-machine/fresh-machine-cli.ts +2 -1
- package/scripts/fresh-machine/fresh-machine-image.ts +3 -1
- package/scripts/fresh-machine/fresh-machine-patterns.ts +25 -4
- package/scripts/fresh-machine/fresh-machine-registry.ts +85 -0
- package/scripts/fresh-machine/fresh-machine-script.ts +3 -1
- package/scripts/fresh-machine/fresh-machine-spec.ts +2 -2
- package/scripts/fresh-machine/specs/kit-test-backlogrun-python.json +0 -1
- package/scripts/fresh-machine/specs/kit-test-backlogrun.json +0 -1
- package/scripts/gate/busy-average.ts +26 -3
- package/scripts/gate/change-scope-action.ts +101 -0
- package/scripts/gate/check-inputs.ts +1 -1
- package/scripts/gate/check-related-order.ts +65 -0
- package/scripts/gate/check-related-pinned.ts +3 -2
- package/scripts/gate/check-related-reuse.ts +34 -6
- package/scripts/gate/check-related-section.ts +8 -1
- package/scripts/gate/check-related-unplanned.ts +11 -1
- package/scripts/gate/check-related.ts +122 -34
- package/scripts/gate/check-reuse.ts +63 -31
- package/scripts/gate/command-memory.ts +10 -4
- package/scripts/gate/core-admission.ts +34 -8
- package/scripts/gate/core-budget.ts +55 -65
- package/scripts/gate/core-priority.ts +28 -0
- package/scripts/gate/core-reservation.ts +85 -0
- package/scripts/gate/core-wait.ts +90 -19
- package/scripts/gate/core-weights.ts +25 -16
- package/scripts/gate/gate-checks.ts +196 -0
- package/scripts/gate/gate-labels.ts +4 -0
- package/scripts/gate/gate-plan.ts +34 -164
- package/scripts/gate/gate-report.ts +14 -10
- package/scripts/gate/gate-run-steps.ts +38 -6
- package/scripts/gate/gate-skip.ts +1 -1
- package/scripts/gate/gate-static-group.ts +35 -6
- package/scripts/gate/machine-capacity.ts +20 -25
- package/scripts/gate/metrics-totals.ts +30 -4
- package/scripts/gate/path-glob.ts +15 -0
- package/scripts/gate/pre-commit-type-check.ts +2 -6
- package/scripts/gate/project-checks.ts +33 -2
- package/scripts/gate/project-gate-steps.ts +206 -0
- package/scripts/gate/project-step-reuse.ts +69 -0
- package/scripts/gate/scoped-green.ts +10 -4
- package/scripts/gate/since-green.ts +76 -20
- package/scripts/gate/tree-verdict.ts +111 -0
- package/scripts/gate/tsc-arguments.ts +9 -0
- package/scripts/gate/type-check-command.ts +4 -7
- package/scripts/gate/type-check-step.ts +4 -1
- package/scripts/gate/type-program-serial.ts +52 -0
- package/scripts/gate/verification-gate.ts +47 -17
- package/scripts/gate/verification-inputs.ts +46 -11
- package/scripts/gate/whole-tree-reuse.ts +24 -0
- package/scripts/gh/gh-author-association.ts +40 -14
- package/scripts/gh/gh-call-kind.ts +97 -0
- package/scripts/gh/gh-comment-input.ts +26 -0
- package/scripts/gh/gh-core-rate-limit.ts +151 -0
- package/scripts/gh/gh-permission-cache.ts +44 -0
- package/scripts/gh/gh-request-tally.ts +143 -0
- package/scripts/gh/gh-spawn.ts +2 -2
- package/scripts/gh/gh-usage-cli.ts +71 -0
- package/scripts/gh/gh-usage-event.ts +82 -0
- package/scripts/gh/gh-usage-log.ts +48 -0
- package/scripts/gh/gh-usage-tally.ts +209 -0
- package/scripts/gh/git-gh-api-path.ts +17 -2
- package/scripts/gh/git-gh-blocked-by-graphql.ts +107 -0
- package/scripts/gh/git-gh-checks-failed-main.ts +24 -0
- package/scripts/gh/git-gh-checks-failed.ts +141 -0
- package/scripts/gh/git-gh-code-scanning.ts +81 -0
- package/scripts/gh/git-gh-conditional.ts +36 -4
- package/scripts/gh/git-gh-etag-read.ts +107 -0
- package/scripts/gh/git-gh-exec.ts +74 -25
- package/scripts/gh/git-gh-failure.ts +16 -2
- package/scripts/gh/git-gh-helpers.ts +2 -6
- package/scripts/gh/git-gh-issue-alias-graphql.ts +113 -0
- package/scripts/gh/git-gh-issue-batch-graphql.ts +155 -0
- package/scripts/gh/git-gh-issue-batch-read.ts +66 -0
- package/scripts/gh/git-gh-issue-graphql.ts +229 -0
- package/scripts/gh/git-gh-issue-list-graphql.ts +103 -0
- package/scripts/gh/git-gh-issue-list.ts +126 -34
- package/scripts/gh/git-gh-issue-memo.ts +53 -0
- package/scripts/gh/git-gh-issue-read.ts +87 -14
- package/scripts/gh/git-gh-issue-rest.ts +5 -8
- package/scripts/gh/git-gh-issue-write.ts +31 -10
- package/scripts/gh/git-gh-issue.ts +25 -4
- package/scripts/gh/git-gh-poll-read.ts +43 -18
- package/scripts/gh/git-gh-pr-auto-merge.ts +1 -4
- package/scripts/gh/git-gh-pr-graphql-snapshot.ts +369 -0
- package/scripts/gh/git-gh-pr-graphql-state.ts +21 -26
- package/scripts/gh/git-gh-pr-read.ts +4 -1
- package/scripts/gh/git-gh-pr-rollup.ts +10 -3
- package/scripts/gh/git-gh-pr-snapshot.ts +78 -22
- package/scripts/gh/git-gh-pr.ts +51 -17
- package/scripts/gh/git-gh-rate-limit.ts +91 -0
- package/scripts/gh/git-gh-repo.ts +37 -20
- package/scripts/gh/git-gh-retry.ts +60 -24
- package/scripts/gh/git-gh-spawn-width.ts +6 -0
- package/scripts/gh/git-gh-transport.ts +213 -0
- package/scripts/gh/git-pr-ai-review.ts +8 -5
- package/scripts/gh/git-pr-checks-eval.ts +16 -17
- package/scripts/gh/git-pr-checks-failed.ts +24 -0
- package/scripts/gh/git-pr-checks-gate.ts +129 -0
- package/scripts/gh/git-pr-checks-missing.ts +165 -0
- package/scripts/gh/git-pr-checks-parse.ts +4 -0
- package/scripts/gh/git-pr-checks-watch.ts +22 -6
- package/scripts/gh/git-pr-checks.ts +105 -76
- package/scripts/gh/git-pr-merge-checked.ts +26 -12
- package/scripts/gh/git-pr.ts +9 -23
- package/scripts/git/base-tree.ts +18 -10
- package/scripts/git/changed-paths-sync.ts +4 -12
- package/scripts/git/changed-paths.ts +31 -6
- package/scripts/git/git-command.ts +9 -1
- package/scripts/git/git-common-directory.ts +17 -3
- package/scripts/git/git-issue.ts +3 -3
- package/scripts/git/git-merge-conflicts.ts +8 -3
- package/scripts/git/git-path-quoting.ts +54 -0
- package/scripts/git/git-push-transport.ts +8 -10
- package/scripts/git/git-schemas.ts +1 -0
- package/scripts/git/git-spawn-sync.ts +11 -7
- package/scripts/git/git-spawn.ts +1 -1
- package/scripts/git/git-ssh-keepalive.ts +3 -3
- package/scripts/git/git-workflow.ts +32 -9
- package/scripts/git/git-worktree.ts +12 -4
- package/scripts/git/main-merge.ts +3 -36
- package/scripts/git/main-sync.ts +2 -13
- package/scripts/git/repository-lock.ts +8 -7
- package/scripts/git/stash/git-stash.ts +38 -5
- package/scripts/git/stash/stash-pop-cli.ts +43 -6
- package/scripts/hooks/bash-revert.ts +253 -0
- package/scripts/hooks/batch-guard.ts +28 -16
- package/scripts/hooks/check-commit-message.ts +5 -7
- package/scripts/hooks/codex-hook-adapter.ts +58 -13
- package/scripts/hooks/direct-gh-usage.ts +130 -0
- package/scripts/hooks/edited-cspell.ts +8 -11
- package/scripts/hooks/fixtures/claude-Agent.json +16 -0
- package/scripts/hooks/fixtures/claude-Bash.json +12 -0
- package/scripts/hooks/fixtures/claude-Edit.json +17 -0
- package/scripts/hooks/fixtures/claude-Read.json +12 -0
- package/scripts/hooks/fixtures/claude-Write.json +12 -0
- package/scripts/hooks/fixtures/codex-Bash-cat.json +12 -0
- package/scripts/hooks/fixtures/codex-Bash.json +12 -0
- package/scripts/hooks/fixtures/codex-apply_patch.json +14 -0
- package/scripts/hooks/format-edited-cli.ts +8 -1
- package/scripts/hooks/format-edited-file.ts +33 -27
- package/scripts/hooks/hook-context.ts +22 -0
- package/scripts/hooks/hook-demoted.ts +84 -0
- package/scripts/hooks/hook-lap.ts +61 -0
- package/scripts/hooks/hook-ledger-cli.ts +246 -0
- package/scripts/hooks/hook-ledger-demote.ts +58 -0
- package/scripts/hooks/hook-ledger-issues.ts +61 -0
- package/scripts/hooks/hook-ledger-read.ts +97 -0
- package/scripts/hooks/hook-ledger.ts +163 -0
- package/scripts/hooks/implementation-authority.ts +48 -0
- package/scripts/hooks/implementation-shell-deny-expansion.ts +20 -0
- package/scripts/hooks/implementation-shell-deny-git.ts +128 -0
- package/scripts/hooks/implementation-shell-deny.ts +220 -0
- package/scripts/hooks/implementation-shell-nested.ts +148 -0
- package/scripts/hooks/implementation-shell.ts +276 -0
- package/scripts/hooks/lane-plan-guard.ts +1 -1
- package/scripts/hooks/pre-commit-lint.ts +10 -5
- package/scripts/hooks/pre-push-unit.ts +49 -13
- package/scripts/hooks/pretool-guard.ts +184 -70
- package/scripts/hooks/reserved-run.ts +13 -13
- package/scripts/hooks/run-hook.sh +84 -30
- package/scripts/hooks/step-zero-notice.ts +58 -17
- package/scripts/hooks/stop-actions.ts +14 -5
- package/scripts/hooks/stop-guard.ts +29 -8
- package/scripts/init/claude-kit-only-settings.ts +1 -1
- package/scripts/init/hook-command-rewrite.ts +90 -65
- package/scripts/init/hook-launch.ts +27 -22
- package/scripts/init/init-ai-copy.ts +14 -4
- package/scripts/init/init-bootstrap.ts +40 -8
- package/scripts/init/init-copy-content.ts +2 -2
- package/scripts/init/init-install.ts +9 -1
- package/scripts/init/init-logic-deploy-vps.ts +5 -3
- package/scripts/init/init-logic-workspace.ts +16 -1
- package/scripts/init/init-logic.ts +11 -18
- package/scripts/init/npm-publish-files.ts +25 -0
- package/scripts/init/start-setup-pr.ts +1 -1
- package/scripts/init/tsconfig-preset-migration.ts +5 -10
- package/scripts/issue/aggregation-split.ts +4 -2
- package/scripts/issue/already-done-citation.ts +103 -0
- package/scripts/issue/baseline-measure.ts +2 -1
- package/scripts/issue/behavior-change-lint.ts +5 -4
- package/scripts/issue/defect-origin-line.ts +11 -10
- package/scripts/issue/defect-origin.ts +4 -3
- package/scripts/issue/defect-rate.ts +2 -1
- package/scripts/issue/defect-report-format.ts +1 -1
- package/scripts/issue/effect-audit.ts +12 -11
- package/scripts/issue/enforcement-lint.ts +48 -0
- package/scripts/issue/expected-effect-lint.ts +6 -5
- package/scripts/issue/figure-source-lint.ts +59 -0
- package/scripts/issue/git-next-issues.ts +15 -17
- package/scripts/issue/issue-already-done-cli.ts +24 -4
- package/scripts/issue/issue-auto-ok.ts +65 -9
- package/scripts/issue/issue-body-cli.ts +75 -0
- package/scripts/issue/issue-body-keys.ts +227 -0
- package/scripts/issue/issue-body-or-comment.ts +1 -1
- package/scripts/issue/issue-bug-label.ts +5 -2
- package/scripts/issue/issue-cap-files.ts +111 -0
- package/scripts/issue/issue-cite-cli.ts +2 -2
- package/scripts/issue/issue-cite.ts +20 -3
- package/scripts/issue/issue-classification.ts +66 -7
- package/scripts/issue/issue-closing-pr.ts +51 -16
- package/scripts/issue/issue-comment-cli.ts +15 -2
- package/scripts/issue/issue-consolidate-cli.ts +81 -0
- package/scripts/issue/issue-consolidate.ts +246 -0
- package/scripts/issue/issue-declared-size.ts +21 -0
- package/scripts/issue/issue-evidence-exit.ts +12 -5
- package/scripts/issue/issue-file-batch-entries.ts +107 -0
- package/scripts/issue/issue-file-batch.ts +206 -0
- package/scripts/issue/issue-file-cli.ts +152 -209
- package/scripts/issue/issue-file-fold.ts +4 -8
- package/scripts/issue/issue-file-interrupt.ts +68 -9
- package/scripts/issue/issue-file-lane-hint.ts +3 -2
- package/scripts/issue/issue-file-main.ts +17 -0
- package/scripts/issue/issue-file-pass.ts +249 -0
- package/scripts/issue/issue-file-worker.ts +95 -0
- package/scripts/issue/issue-file.ts +25 -6
- package/scripts/issue/issue-fold-apply.ts +102 -0
- package/scripts/issue/issue-fold-existing-cli.ts +226 -19
- package/scripts/issue/issue-human-stops.ts +102 -0
- package/scripts/issue/issue-labels.ts +14 -3
- package/scripts/issue/issue-lint-cli.ts +20 -6
- package/scripts/issue/issue-lint.ts +4 -6
- package/scripts/issue/issue-merged.ts +75 -9
- package/scripts/issue/issue-not-before.ts +34 -4
- package/scripts/issue/issue-number-shape.ts +8 -0
- package/scripts/issue/issue-outcome.ts +107 -0
- package/scripts/issue/issue-plan-cli.ts +33 -5
- package/scripts/issue/issue-plan-notify.ts +100 -0
- package/scripts/issue/issue-premise-unmet-cli.ts +110 -0
- package/scripts/issue/issue-priority-cli.ts +103 -16
- package/scripts/issue/issue-priority-instructed.ts +55 -0
- package/scripts/issue/issue-priority-raise.ts +70 -12
- package/scripts/issue/issue-priority.ts +56 -16
- package/scripts/issue/issue-rank.ts +48 -15
- package/scripts/issue/issue-read-cli.ts +66 -33
- package/scripts/issue/issue-read.ts +30 -10
- package/scripts/issue/issue-release-class-cli.ts +79 -0
- package/scripts/issue/issue-report-failures.ts +14 -5
- package/scripts/issue/issue-run-hold.ts +13 -0
- package/scripts/issue/issue-run-verdict.ts +68 -0
- package/scripts/issue/issue-sample-gate.ts +18 -7
- package/scripts/issue/issue-sample-required.ts +20 -3
- package/scripts/issue/issue-sample-source.ts +2 -1
- package/scripts/issue/issue-scout-cli.ts +34 -18
- package/scripts/issue/issue-scout.ts +25 -4
- package/scripts/issue/issue-search.ts +3 -0
- package/scripts/issue/issue-sources.ts +98 -0
- package/scripts/issue/issue-spill-cli.ts +292 -0
- package/scripts/issue/issue-spill-main.ts +11 -0
- package/scripts/issue/issue-spill.ts +193 -0
- package/scripts/issue/issue-state-cli.ts +9 -17
- package/scripts/issue/issue-template-section.ts +8 -3
- package/scripts/issue/issue-tick-cli.ts +59 -0
- package/scripts/issue/issue-watch-diff.ts +24 -8
- package/scripts/issue/issue-watch-hook.ts +11 -9
- package/scripts/issue/issue-watch.ts +25 -5
- package/scripts/issue/issue-wip.ts +44 -9
- package/scripts/issue/markdown-section.ts +66 -10
- package/scripts/issue/measure-declaration.ts +70 -13
- package/scripts/issue/measure-rerun-cli.ts +9 -8
- package/scripts/issue/measure-twin.ts +37 -0
- package/scripts/issue/reproduction-measure.ts +2 -1
- package/scripts/issue/session-cite.ts +1 -1
- package/scripts/issue/size-estimate.ts +317 -22
- package/scripts/issue/trusted-measure-source.ts +43 -0
- package/scripts/issue/trusted-measure.ts +79 -35
- package/scripts/issue/upstream-interrupt-cli.ts +280 -0
- package/scripts/issue/upstream-interrupt-main.ts +11 -0
- package/scripts/josh/agent-session-environment.ts +19 -1
- package/scripts/josh/cli-body.ts +46 -9
- package/scripts/josh/command-usage.ts +3 -0
- package/scripts/josh/durable-state-migrate.ts +11 -4
- package/scripts/josh/durable-state-root.ts +60 -0
- package/scripts/josh/durable-state.ts +9 -44
- package/scripts/josh/hook-decision.ts +55 -113
- package/scripts/josh/hook-envelope.ts +62 -0
- package/scripts/josh/hook-payload-capture.ts +78 -0
- package/scripts/josh/hook-tool-payload.ts +15 -0
- package/scripts/josh/josh-aliases.ts +7 -0
- package/scripts/josh/josh-command-map.ts +15 -0
- package/scripts/josh/josh-command-types.ts +28 -4
- package/scripts/josh/josh-commands-agent-hooks.ts +39 -7
- package/scripts/josh/josh-commands-ai.ts +420 -9
- package/scripts/josh/josh-commands-backlog.ts +79 -11
- package/scripts/josh/josh-commands-clone.ts +2 -5
- package/scripts/josh/josh-commands-development.ts +45 -12
- package/scripts/josh/josh-commands-document.ts +22 -10
- package/scripts/josh/josh-commands-epic.ts +30 -11
- package/scripts/josh/josh-commands-hooks.ts +0 -1
- package/scripts/josh/josh-commands-issue-write.ts +193 -20
- package/scripts/josh/josh-commands-issue.ts +57 -17
- package/scripts/josh/josh-commands-lint.ts +52 -19
- package/scripts/josh/josh-commands-maintenance.ts +37 -4
- package/scripts/josh/josh-commands-pause.ts +53 -5
- package/scripts/josh/josh-commands-prime.ts +28 -0
- package/scripts/josh/josh-commands-progress.ts +59 -7
- package/scripts/josh/josh-commands-project.ts +15 -7
- package/scripts/josh/josh-commands-review.ts +83 -5
- package/scripts/josh/josh-commands-run.ts +30 -33
- package/scripts/josh/josh-commands-ship.ts +95 -13
- package/scripts/josh/josh-commands-test-check.ts +0 -2
- package/scripts/josh/josh-commands-versioning.ts +11 -2
- package/scripts/josh/josh-commands-workflow.ts +46 -11
- package/scripts/josh/josh-completion-scripts.ts +81 -0
- package/scripts/josh/josh-completion.ts +29 -0
- package/scripts/josh/josh-environment-file.ts +8 -10
- package/scripts/josh/josh-gh-usage.ts +53 -0
- package/scripts/josh/josh-in-process.ts +21 -21
- package/scripts/josh/josh-logic.ts +22 -46
- package/scripts/josh/josh-read-only.ts +51 -0
- package/scripts/josh/josh-run.ts +30 -6
- package/scripts/josh/josh.ts +9 -11
- package/scripts/josh/path-decision.ts +2 -2
- package/scripts/josh/process-identity.ts +5 -0
- package/scripts/josh/session-handoff-line.ts +88 -0
- package/scripts/josh/session-language-cli.ts +18 -4
- package/scripts/josh/session-model-record.ts +62 -0
- package/scripts/lane/historical-evidence.ts +136 -0
- package/scripts/lane/historical-log-evidence.ts +47 -0
- package/scripts/lane/lane-adopt-cli.ts +1 -1
- package/scripts/lane/lane-await.ts +8 -3
- package/scripts/lane/lane-breakdown-calls.ts +165 -0
- package/scripts/lane/lane-breakdown-cli.ts +88 -10
- package/scripts/lane/lane-breakdown-estimate.ts +136 -0
- package/scripts/lane/lane-breakdown-implement.ts +166 -29
- package/scripts/lane/lane-breakdown-laps.ts +116 -24
- package/scripts/lane/lane-breakdown-pause.ts +127 -0
- package/scripts/lane/lane-breakdown-pinned.ts +19 -3
- package/scripts/lane/lane-breakdown-related.ts +40 -0
- package/scripts/lane/lane-breakdown-text.ts +136 -15
- package/scripts/lane/lane-breakdown.ts +215 -31
- package/scripts/lane/lane-broker-server.ts +1 -1
- package/scripts/lane/lane-capacity.ts +27 -16
- package/scripts/lane/lane-chain-stop-stats.ts +110 -0
- package/scripts/lane/lane-check-stats.ts +25 -5
- package/scripts/lane/lane-child-invocation.ts +9 -9
- package/scripts/lane/lane-ci-path-stats.ts +15 -4
- package/scripts/lane/lane-cli.ts +2 -2
- package/scripts/lane/lane-concurrency-stats.ts +110 -0
- package/scripts/lane/lane-cut-stats.ts +101 -0
- package/scripts/lane/lane-dispatch-prepare.ts +83 -0
- package/scripts/lane/lane-dispatch.ts +27 -72
- package/scripts/lane/lane-early-push-stats.ts +25 -0
- package/scripts/lane/lane-elapsed-time.ts +118 -0
- package/scripts/lane/lane-environment.ts +2 -2
- package/scripts/lane/lane-gap-stats.ts +69 -8
- package/scripts/lane/lane-guard-policy.ts +1 -1
- package/scripts/lane/lane-hand-back-held.ts +51 -0
- package/scripts/lane/lane-hand-back-hold.ts +103 -0
- package/scripts/lane/lane-held-stats.ts +13 -1
- package/scripts/lane/lane-implement-rate-read.ts +50 -0
- package/scripts/lane/lane-implement-rate.ts +74 -0
- package/scripts/lane/lane-implement-read.ts +129 -0
- package/scripts/lane/lane-implement-signals-record.ts +56 -0
- package/scripts/lane/lane-implement-signals.ts +161 -0
- package/scripts/lane/lane-implement-stats.ts +93 -18
- package/scripts/lane/lane-launch-admission.ts +61 -0
- package/scripts/lane/lane-launch-cli.ts +63 -27
- package/scripts/lane/lane-launch-pending.ts +44 -0
- package/scripts/lane/lane-ledger-archive.ts +200 -0
- package/scripts/lane/lane-ledger-kind.ts +5 -0
- package/scripts/lane/lane-ledger-pinned-origin.ts +10 -0
- package/scripts/lane/lane-ledger-schema-load.ts +45 -0
- package/scripts/lane/lane-ledger-schema-offer.ts +30 -0
- package/scripts/lane/lane-ledger-schema-ship.ts +73 -4
- package/scripts/lane/lane-ledger-schema.ts +53 -30
- package/scripts/lane/lane-ledger-tail.ts +124 -0
- package/scripts/lane/lane-ledger-write.ts +60 -27
- package/scripts/lane/lane-ledger.ts +6 -31
- package/scripts/lane/lane-limit-cli.ts +11 -1
- package/scripts/lane/lane-limit-history.ts +77 -0
- package/scripts/lane/lane-limit-override.ts +49 -8
- package/scripts/lane/lane-listening-ports.ts +77 -0
- package/scripts/lane/lane-load.ts +62 -2
- package/scripts/lane/lane-measure-cli.ts +134 -55
- package/scripts/lane/lane-net-read.ts +22 -10
- package/scripts/lane/lane-net-time.ts +134 -21
- package/scripts/lane/lane-open.ts +19 -113
- package/scripts/lane/lane-over-causes.ts +130 -0
- package/scripts/lane/lane-over.ts +177 -0
- package/scripts/lane/lane-overrun-prompt.ts +4 -3
- package/scripts/lane/lane-overrun.ts +22 -9
- package/scripts/lane/lane-pairs.ts +128 -0
- package/scripts/lane/lane-paths.ts +26 -0
- package/scripts/lane/lane-pause-cli.ts +4 -2
- package/scripts/lane/lane-paused-spans.ts +11 -4
- package/scripts/lane/lane-phase.ts +36 -7
- package/scripts/lane/lane-plan-approval.ts +113 -0
- package/scripts/lane/lane-plan-auto.ts +53 -0
- package/scripts/lane/lane-plan-check.ts +196 -54
- package/scripts/lane/lane-plan-cli.ts +41 -10
- package/scripts/lane/lane-plan-estimate.ts +57 -0
- package/scripts/lane/lane-plan-imports.ts +53 -0
- package/scripts/lane/lane-plan-premise.ts +83 -0
- package/scripts/lane/lane-plan-probe.ts +115 -0
- package/scripts/lane/lane-plan-signals.ts +119 -0
- package/scripts/lane/lane-plan-size.ts +380 -0
- package/scripts/lane/lane-plan-wait-event.ts +124 -0
- package/scripts/lane/lane-plan-wait-until.ts +22 -0
- package/scripts/lane/lane-plan-wait.ts +125 -0
- package/scripts/lane/lane-plan.ts +114 -14
- package/scripts/lane/lane-preserve.ts +58 -13
- package/scripts/lane/lane-process-load.ts +130 -19
- package/scripts/lane/lane-process-stats.ts +51 -10
- package/scripts/lane/lane-reap.ts +4 -2
- package/scripts/lane/lane-registry.ts +19 -14
- package/scripts/lane/lane-relaunch.ts +37 -14
- package/scripts/lane/lane-report.ts +2 -0
- package/scripts/lane/lane-resolve-cli.ts +88 -0
- package/scripts/lane/lane-resolve-hunks.ts +63 -0
- package/scripts/lane/lane-resolve-record.ts +59 -0
- package/scripts/lane/lane-resolve.ts +122 -0
- package/scripts/lane/lane-restart.ts +1 -1
- package/scripts/lane/lane-room.ts +58 -0
- package/scripts/lane/lane-round-one-stats.ts +2 -1
- package/scripts/lane/lane-sampler.ts +53 -3
- package/scripts/lane/lane-seat-ownership.ts +57 -0
- package/scripts/lane/lane-seat-start.ts +52 -0
- package/scripts/lane/lane-seat-stop.ts +20 -0
- package/scripts/lane/lane-seat.ts +174 -0
- package/scripts/lane/lane-seed.ts +2 -5
- package/scripts/lane/lane-session-action.ts +26 -10
- package/scripts/lane/lane-session-broker.ts +1 -1
- package/scripts/lane/lane-session-reread.ts +2 -1
- package/scripts/lane/lane-setup.ts +59 -0
- package/scripts/lane/lane-ship-lap-stats.ts +3 -1
- package/scripts/lane/lane-sinks-issues.ts +52 -0
- package/scripts/lane/lane-sinks.ts +165 -0
- package/scripts/lane/lane-size-record.ts +39 -0
- package/scripts/lane/lane-size-stats.ts +111 -0
- package/scripts/lane/lane-split-stats.ts +33 -9
- package/scripts/lane/lane-stage-budget.ts +32 -0
- package/scripts/lane/lane-stage-events.ts +103 -0
- package/scripts/lane/lane-stage-stats.ts +94 -25
- package/scripts/lane/lane-state-record.ts +74 -0
- package/scripts/lane/lane-state.ts +21 -33
- package/scripts/lane/lane-stats-request.ts +163 -0
- package/scripts/lane/lane-stats-tables.ts +47 -3
- package/scripts/lane/lane-stats.ts +9 -2
- package/scripts/lane/lane-stop-check-stats.ts +117 -0
- package/scripts/lane/lane-stop-stats.ts +33 -8
- package/scripts/lane/lane-test-related-stats.ts +5 -2
- package/scripts/lane/lane-timeline.ts +251 -0
- package/scripts/lane/lane-transcript-calls.ts +73 -4
- package/scripts/lane/lane-transcript-stats.ts +8 -3
- package/scripts/lane/lane-turn-stats.ts +171 -0
- package/scripts/lane/lane-value-cell.ts +87 -13
- package/scripts/lane/lane-value-missing.ts +21 -0
- package/scripts/lane/lane-why-causes.ts +94 -0
- package/scripts/lane/lane-why-ci.ts +50 -0
- package/scripts/lane/lane-why-cli.ts +83 -0
- package/scripts/lane/lane-why-period.ts +187 -0
- package/scripts/lane/lane-why-ship.ts +67 -0
- package/scripts/lane/lane-why.ts +192 -0
- package/scripts/lane/lane-withdraw.ts +12 -1
- package/scripts/lane/lane-yield-split.ts +218 -0
- package/scripts/lane/lane-yield.ts +38 -4
- package/scripts/lane/openai-lane-ship.ts +2 -2
- package/scripts/lane/openai-lane-supervisor-cli.ts +17 -8
- package/scripts/lane/openai-lane-supervisor-decision.ts +10 -4
- package/scripts/lane/openai-lane-supervisor-entry.ts +6 -0
- package/scripts/lane/openai-lane-supervisor-owner.ts +31 -3
- package/scripts/lane/openai-lane-supervisor.ts +62 -5
- package/scripts/lane/process-directories.ts +3 -1
- package/scripts/lane/process-lane-marks.ts +11 -5
- package/scripts/lane/process-linux.ts +81 -0
- package/scripts/lane/process-tools.ts +2 -5
- package/scripts/lib/bounded-pool.ts +38 -7
- package/scripts/lib/buffered-process.ts +34 -9
- package/scripts/lib/claude-installer.ts +29 -0
- package/scripts/lib/home-tilde.ts +24 -0
- package/scripts/lib/import-closure.ts +72 -0
- package/scripts/lib/josh-temporary-directory.ts +7 -0
- package/scripts/lib/main-guard.ts +29 -0
- package/scripts/lib/package-manifest.ts +80 -3
- package/scripts/lib/pnpm-installer.ts +16 -0
- package/scripts/lib/poll.ts +130 -20
- package/scripts/lib/schemas.ts +1 -1
- package/scripts/lib/stamped-memo.ts +1 -1
- package/scripts/lib/stamped-store.ts +82 -0
- package/scripts/lib/stdin-text.ts +68 -0
- package/scripts/lib/timeouts.ts +4 -4
- package/scripts/lib/transcript-record.ts +4 -0
- package/scripts/lib/verified-download.ts +17 -0
- package/scripts/lines/bytes-command.ts +1 -1
- package/scripts/lint/cspell-cached.ts +1 -1
- package/scripts/lint/eslint-cache-dependencies.ts +38 -8
- package/scripts/lint/eslint-daemon-calls.ts +83 -0
- package/scripts/lint/eslint-daemon.ts +101 -13
- package/scripts/lint/eslint-heap.ts +50 -0
- package/scripts/lint/eslint-memory.js +45 -0
- package/scripts/lint/eslint-trim.ts +44 -0
- package/scripts/lint/eslint-warm.ts +5 -2
- package/scripts/lint/format.ts +30 -5
- package/scripts/lint/import-graph-store.ts +245 -0
- package/scripts/lint/import-graph.ts +54 -65
- package/scripts/lint/import-move.ts +275 -0
- package/scripts/lint/import-test-inputs.ts +97 -0
- package/scripts/lint/lint-gate-scope.ts +1 -0
- package/scripts/lint/lint-parallel.ts +148 -43
- package/scripts/lint/lint-related-scope.ts +6 -1
- package/scripts/lint/lint-related.ts +66 -25
- package/scripts/lint/lint-rule.ts +293 -0
- package/scripts/lint/lint-shard.ts +91 -0
- package/scripts/lint/lint-timing.ts +39 -0
- package/scripts/lint/rename-cli.ts +36 -10
- package/scripts/lint/rename-identifier.ts +2 -2
- package/scripts/lint/type-only-imports.ts +20 -1
- package/scripts/notify/git-notify.ts +3 -1
- package/scripts/notify/telegram-notify.ts +33 -35
- package/scripts/notify/telegram-test.ts +9 -4
- package/scripts/observations/observation-depth-cli.ts +78 -0
- package/scripts/observations/observation-depth.ts +85 -0
- package/scripts/observations/observation-ledger-archive.ts +180 -0
- package/scripts/observations/observation-ledger-home.ts +15 -7
- package/scripts/observations/observation-ledger.ts +5 -0
- package/scripts/observations/observations-flush-landing.ts +1 -1
- package/scripts/observations/observations-flush-transaction.ts +358 -0
- package/scripts/observations/observations-flush.ts +72 -172
- package/scripts/overrides/overrides-check.ts +33 -10
- package/scripts/overrides/overrides-diff-report.ts +91 -0
- package/scripts/overrides/overrides-diff.ts +98 -0
- package/scripts/package/package-scout-cli.ts +37 -11
- package/scripts/package/package-scout-format.ts +20 -6
- package/scripts/package/package-scout-reuse.ts +207 -0
- package/scripts/plan/plan-scaffold-cli.ts +136 -0
- package/scripts/plan/plan-scaffold.ts +123 -0
- package/scripts/ports/port-command.ts +2 -5
- package/scripts/propagate/propagate-git.ts +3 -3
- package/scripts/propagate/propagate-publish.ts +8 -7
- package/scripts/propagate/propagate-steps.ts +2 -3
- package/scripts/refactor/import-graph.ts +2 -4
- package/scripts/refactor/refactor-lint.ts +47 -30
- package/scripts/refactor/refactor-scan.ts +16 -9
- package/scripts/refactor/refactor-targets.ts +2 -3
- package/scripts/release/github-release-notes.ts +24 -0
- package/scripts/release/github-release-runs.ts +32 -6
- package/scripts/release/github-release.ts +20 -12
- package/scripts/release/publish-tag-cli.ts +13 -3
- package/scripts/release/release-cli.ts +2 -0
- package/scripts/release/release-progress.ts +66 -46
- package/scripts/release/release-publish-run.ts +39 -6
- package/scripts/release/release-request.ts +42 -0
- package/scripts/release/release-scope-cli.ts +31 -2
- package/scripts/release/release-workflow-check.ts +59 -0
- package/scripts/repo/repository-labels.ts +23 -11
- package/scripts/report/markdown-shape.ts +2 -1
- package/scripts/report/report-template-cli.ts +2 -2
- package/scripts/report/report-template.ts +17 -4
- package/scripts/review/acceptance-map.ts +87 -8
- package/scripts/review/diff-summary-cli.ts +81 -0
- package/scripts/review/diff-summary.ts +109 -0
- package/scripts/review/disposition-batch-filing.ts +150 -0
- package/scripts/review/disposition-batch.ts +103 -0
- package/scripts/review/disposition-cli.ts +35 -1
- package/scripts/review/import-specifiers.ts +38 -0
- package/scripts/review/prose-stale-cli.ts +7 -37
- package/scripts/review/prose-stale-read.ts +105 -0
- package/scripts/review/prose-stale-scan.ts +121 -17
- package/scripts/review/removed-tests-check.ts +28 -4
- package/scripts/review/review-brief-cli.ts +69 -71
- package/scripts/review/review-brief.ts +38 -42
- package/scripts/review/review-code-tree.ts +80 -16
- package/scripts/review/review-comment-carry.ts +30 -0
- package/scripts/review/review-comment-round.ts +10 -5
- package/scripts/review/review-diff-pack.ts +70 -0
- package/scripts/review/review-diff-write.ts +23 -22
- package/scripts/review/review-final-record.ts +47 -0
- package/scripts/review/review-finding-ledger.ts +72 -10
- package/scripts/review/review-findings-cli.ts +88 -8
- package/scripts/review/review-fix-hunks.ts +115 -0
- package/scripts/review/review-fix-round.ts +144 -0
- package/scripts/review/review-gate-mode.ts +25 -0
- package/scripts/review/review-interaction.ts +69 -11
- package/scripts/review/review-lane-handover.ts +29 -4
- package/scripts/review/review-level.ts +35 -34
- package/scripts/review/review-lint-findings.ts +3 -3
- package/scripts/review/review-lint-sections.ts +2 -2
- package/scripts/review/review-lint.ts +7 -1
- package/scripts/review/review-pair-cli.ts +157 -0
- package/scripts/review/review-pair-log.ts +75 -0
- package/scripts/review/review-pair-session.ts +98 -0
- package/scripts/review/review-pair.ts +112 -0
- package/scripts/review/review-prior-findings.ts +2 -4
- package/scripts/review/review-prompt-level.ts +28 -0
- package/scripts/review/review-readers-scan.ts +25 -3
- package/scripts/review/review-record-cli.ts +46 -68
- package/scripts/review/review-record-interaction.ts +2 -2
- package/scripts/review/review-record-main.ts +7 -2
- package/scripts/review/review-record-pinned.ts +5 -0
- package/scripts/review/review-record-slot.ts +155 -0
- package/scripts/review/review-reviewed-tree.ts +60 -13
- package/scripts/review/review-round-one-blobs.ts +43 -9
- package/scripts/review/review-round-one-skip.ts +72 -0
- package/scripts/review/review-round-reuse.ts +13 -6
- package/scripts/review/review-round.ts +57 -0
- package/scripts/review/review-round2-cli.ts +5 -0
- package/scripts/review/review-round2-skip-comment.ts +3 -1
- package/scripts/review/review-round2.ts +18 -6
- package/scripts/review/review-size.ts +92 -0
- package/scripts/review/review-stamps.ts +8 -0
- package/scripts/review/review-submit-args.ts +91 -0
- package/scripts/review/review-submit-cli.ts +55 -29
- package/scripts/review/selfcheck-cli.ts +193 -0
- package/scripts/review/selfcheck-commands.ts +175 -0
- package/scripts/review/selfcheck-report.ts +98 -0
- package/scripts/rules/bash-triggers.ts +24 -13
- package/scripts/rules/broad-investigation-shell.ts +183 -0
- package/scripts/rules/broad-investigation.ts +116 -0
- package/scripts/rules/codex-prompt.ts +63 -0
- package/scripts/rules/consultation-handoff.ts +81 -0
- package/scripts/rules/consultation-investigation.ts +99 -0
- package/scripts/rules/decision-oracle.ts +1 -1
- package/scripts/rules/delivered-rules-guard.ts +94 -0
- package/scripts/rules/delivered-rules.ts +46 -87
- package/scripts/rules/destructive-command.ts +2 -1
- package/scripts/rules/direct-git-status.ts +81 -0
- package/scripts/rules/direct-issue-comment.ts +71 -3
- package/scripts/rules/direct-issue-read.ts +55 -2
- package/scripts/rules/direct-vitest-run.ts +98 -0
- package/scripts/rules/egress-guard.ts +308 -0
- package/scripts/rules/firing-point.ts +9 -12
- package/scripts/rules/gh-api.ts +19 -4
- package/scripts/rules/gh-repo-selector.ts +1 -1
- package/scripts/rules/git-argv.ts +57 -10
- package/scripts/rules/guard-remedy.ts +18 -3
- package/scripts/rules/guard-rule-rows.ts +13 -0
- package/scripts/rules/implementation-cut-verdict.ts +1 -1
- package/scripts/rules/implementation-cut.ts +94 -31
- package/scripts/rules/interpreter-options.ts +179 -0
- package/scripts/rules/investigator-foreground.ts +13 -7
- package/scripts/rules/issue-citation.ts +20 -9
- package/scripts/rules/josh-git-bare.ts +1 -1
- package/scripts/rules/keychain-read.ts +73 -0
- package/scripts/rules/lane-background.ts +15 -14
- package/scripts/rules/lane-carry-conflict.ts +15 -8
- package/scripts/rules/lane-direct-tool.ts +18 -11
- package/scripts/rules/lane-interactive-ask.ts +3 -5
- package/scripts/rules/lane-park.ts +25 -10
- package/scripts/rules/lane-spilled-read.ts +3 -5
- package/scripts/rules/lane-split-park.ts +7 -6
- package/scripts/rules/lane-switch-main.ts +10 -3
- package/scripts/rules/last-prompt.ts +8 -4
- package/scripts/rules/launched-call.ts +135 -0
- package/scripts/rules/main-model.ts +54 -0
- package/scripts/rules/nested-commands.ts +71 -0
- package/scripts/rules/permission-guards.ts +6 -2
- package/scripts/rules/pr-merge.ts +1 -1
- package/scripts/rules/pre-gate-cut.ts +20 -11
- package/scripts/rules/protected-files.ts +34 -98
- package/scripts/rules/repeat-check-related.ts +66 -0
- package/scripts/rules/reviewer-foreground.ts +11 -7
- package/scripts/rules/round-one-check-related.ts +59 -19
- package/scripts/rules/rule-list.ts +3 -4
- package/scripts/rules/rule-rephrase.ts +43 -0
- package/scripts/rules/rule-rewrite.ts +16 -6
- package/scripts/rules/rule-value-cache.ts +10 -1
- package/scripts/rules/rule-value-cli.ts +143 -54
- package/scripts/rules/rule-value-prose.ts +186 -0
- package/scripts/rules/rule-value-runs.ts +171 -0
- package/scripts/rules/rule-value-trend.ts +108 -0
- package/scripts/rules/rule-value.ts +38 -13
- package/scripts/rules/run-tail-rule.ts +19 -2
- package/scripts/rules/secret-paths.ts +92 -0
- package/scripts/rules/sed-in-place.ts +1 -1
- package/scripts/rules/shell-permissions.ts +91 -0
- package/scripts/rules/shell-redirects.ts +66 -0
- package/scripts/rules/shell-segments.ts +148 -22
- package/scripts/rules/shell-tokens.ts +66 -0
- package/scripts/rules/standalone-gh-call.ts +63 -0
- package/scripts/rules/stop-decision.ts +7 -1
- package/scripts/rules/stop-rules.ts +1 -1
- package/scripts/rules/unasked-filing.ts +166 -0
- package/scripts/run/add/run-add-cli.ts +114 -36
- package/scripts/run/add/run-add-epic.ts +45 -0
- package/scripts/run/add/run-add-issue.ts +17 -0
- package/scripts/run/add/run-add.ts +159 -21
- package/scripts/run/attached-log.ts +38 -0
- package/scripts/run/board/run-board-cli.ts +34 -9
- package/scripts/run/board/run-board-closed-graphql.ts +129 -0
- package/scripts/run/board/run-board-closed.ts +78 -11
- package/scripts/run/board/run-board-decision-graphql.ts +136 -0
- package/scripts/run/board/run-board-decision-read.ts +235 -0
- package/scripts/run/board/run-board-decision.ts +97 -0
- package/scripts/run/board/run-board-earlier.ts +27 -3
- package/scripts/run/board/run-board-ending-reason.ts +112 -9
- package/scripts/run/board/run-board-ending-states.ts +34 -0
- package/scripts/run/board/run-board-every.ts +19 -9
- package/scripts/run/board/run-board-first-lane.ts +26 -0
- package/scripts/run/board/run-board-fit.ts +47 -11
- package/scripts/run/board/run-board-fold-store.ts +62 -0
- package/scripts/run/board/run-board-fold.ts +41 -9
- package/scripts/run/board/run-board-gather-live.ts +2 -0
- package/scripts/run/board/run-board-gather-thread.ts +14 -3
- package/scripts/run/board/run-board-gather-worker.ts +10 -8
- package/scripts/run/board/run-board-gather.ts +10 -3
- package/scripts/run/board/run-board-github.ts +125 -30
- package/scripts/run/board/run-board-header.ts +33 -24
- package/scripts/run/board/run-board-held.ts +53 -0
- package/scripts/run/board/run-board-human-merge.ts +113 -0
- package/scripts/run/board/run-board-human.ts +37 -0
- package/scripts/run/board/run-board-idle.ts +9 -6
- package/scripts/run/board/run-board-issue-count.ts +101 -0
- package/scripts/run/board/run-board-keys.ts +19 -4
- package/scripts/run/board/run-board-labels.ts +20 -4
- package/scripts/run/board/run-board-lane-event.ts +23 -2
- package/scripts/run/board/run-board-lane-result.ts +58 -0
- package/scripts/run/board/run-board-lane-state.ts +52 -7
- package/scripts/run/board/run-board-lane-stop.ts +108 -0
- package/scripts/run/board/run-board-lane-time.ts +1 -0
- package/scripts/run/board/run-board-layout.ts +68 -76
- package/scripts/run/board/run-board-link.ts +44 -2
- package/scripts/run/board/run-board-notes.ts +1 -1
- package/scripts/run/board/run-board-now.ts +1 -1
- package/scripts/run/board/run-board-operation-codex.ts +37 -0
- package/scripts/run/board/run-board-operation-read.ts +2 -2
- package/scripts/run/board/run-board-operation.ts +14 -7
- package/scripts/run/board/run-board-pause-fixture.json +12 -0
- package/scripts/run/board/run-board-pause.ts +87 -0
- package/scripts/run/board/run-board-plan-shared.ts +5 -0
- package/scripts/run/board/run-board-plan.ts +6 -1
- package/scripts/run/board/run-board-process-groups.ts +1 -1
- package/scripts/run/board/run-board-quota-held.ts +319 -0
- package/scripts/run/board/run-board-quota-lane.ts +23 -0
- package/scripts/run/board/run-board-quota-read.ts +422 -0
- package/scripts/run/board/run-board-quota-spent.ts +162 -0
- package/scripts/run/board/run-board-quota-status.ts +67 -0
- package/scripts/run/board/run-board-read.ts +112 -36
- package/scripts/run/board/run-board-reason.ts +40 -20
- package/scripts/run/board/run-board-render-condition.ts +27 -2
- package/scripts/run/board/run-board-render-drawn.ts +5 -1
- package/scripts/run/board/run-board-render-foot.ts +5 -1
- package/scripts/run/board/run-board-render-found.ts +21 -2
- package/scripts/run/board/run-board-render-icon.ts +3 -6
- package/scripts/run/board/run-board-render-lanes.ts +49 -9
- package/scripts/run/board/run-board-render-lead.ts +20 -1
- package/scripts/run/board/run-board-render-legend.ts +4 -0
- package/scripts/run/board/run-board-render-none.ts +35 -0
- package/scripts/run/board/run-board-render-notes.ts +5 -3
- package/scripts/run/board/run-board-render-processes.ts +6 -5
- package/scripts/run/board/run-board-render-quota-cell.ts +81 -0
- package/scripts/run/board/run-board-render-quota-github.ts +112 -0
- package/scripts/run/board/run-board-render-quota.ts +285 -0
- package/scripts/run/board/run-board-render-section.ts +50 -6
- package/scripts/run/board/run-board-render-tail.ts +53 -7
- package/scripts/run/board/run-board-render-throughput.ts +140 -0
- package/scripts/run/board/run-board-render-title.ts +33 -4
- package/scripts/run/board/run-board-render.ts +59 -57
- package/scripts/run/board/run-board-row-yield.ts +1 -0
- package/scripts/run/board/run-board-scope.ts +13 -6
- package/scripts/run/board/run-board-seat.ts +107 -0
- package/scripts/run/board/run-board-settle.ts +47 -0
- package/scripts/run/board/run-board-setup.ts +30 -15
- package/scripts/run/board/run-board-single.ts +123 -0
- package/scripts/run/board/run-board-snapshot.ts +11 -1
- package/scripts/run/board/run-board-span.ts +18 -3
- package/scripts/run/board/run-board-spin.ts +12 -6
- package/scripts/run/board/run-board-standing-waits.ts +52 -0
- package/scripts/run/board/run-board-state.ts +23 -0
- package/scripts/run/board/run-board-status.ts +97 -100
- package/scripts/run/board/run-board-throughput.ts +215 -0
- package/scripts/run/board/run-board-tick.ts +76 -30
- package/scripts/run/board/run-board-usage-read.ts +3 -3
- package/scripts/run/board/run-board-usage-top.ts +12 -35
- package/scripts/run/board/run-board-usual.ts +18 -1
- package/scripts/run/carry/run-carry-added.ts +6 -1
- package/scripts/run/carry/run-carry-args.ts +22 -8
- package/scripts/run/carry/run-carry-cli.ts +31 -1
- package/scripts/run/carry/run-carry-conversation.ts +12 -4
- package/scripts/run/carry/run-carry-ended.ts +3 -0
- package/scripts/run/carry/run-carry-reclaim.ts +2 -1
- package/scripts/run/carry/run-carry.ts +40 -20
- package/scripts/run/cut/run-cut-adoption.ts +67 -0
- package/scripts/run/cut/run-cut-cli.ts +89 -34
- package/scripts/run/cut/run-cut-decline.ts +1 -1
- package/scripts/run/cut/run-cut-handoff.ts +2 -1
- package/scripts/run/cut/run-cut-next.ts +20 -0
- package/scripts/run/cut/run-cut-ready.ts +7 -5
- package/scripts/run/cut/run-cut-report.ts +13 -14
- package/scripts/run/cut/run-cut-resume.ts +1 -1
- package/scripts/run/cut/run-cut.ts +36 -23
- package/scripts/run/detached-launch.ts +12 -7
- package/scripts/run/early-push-record.ts +22 -0
- package/scripts/run/entry/run-entry-children.ts +126 -0
- package/scripts/run/entry/run-entry-cli.ts +126 -82
- package/scripts/run/entry/run-entry-dispatch.ts +20 -0
- package/scripts/run/entry/run-entry-lane-plan.ts +39 -0
- package/scripts/run/entry/run-entry-spill.ts +67 -22
- package/scripts/run/entry/run-entry-stop.ts +9 -8
- package/scripts/run/entry/run-entry-sync.ts +149 -0
- package/scripts/run/entry/run-entry-trust.ts +1 -1
- package/scripts/run/entry/run-entry.ts +9 -0
- package/scripts/run/event/run-event-checks.ts +1 -1
- package/scripts/run/event/run-event-filed.ts +1 -1
- package/scripts/run/event/run-event-follow.ts +9 -5
- package/scripts/run/event/run-event-overrun.ts +7 -7
- package/scripts/run/event/run-event-plan.ts +1 -1
- package/scripts/run/event/run-event-render.ts +5 -0
- package/scripts/run/event/run-event-retry.ts +34 -0
- package/scripts/run/event/run-event-scope.ts +4 -1
- package/scripts/run/event/run-event-setup.ts +55 -5
- package/scripts/run/event/run-event-step.ts +81 -0
- package/scripts/run/event/run-event-stream-emit.ts +63 -23
- package/scripts/run/event/run-event-stream.ts +69 -21
- package/scripts/run/event/run-event-tail.ts +122 -0
- package/scripts/run/event/run-event-watch.ts +12 -7
- package/scripts/run/handoff/run-handoff-args.ts +93 -0
- package/scripts/run/handoff/run-handoff-cli.ts +320 -0
- package/scripts/run/handoff/run-handoff-final.ts +38 -0
- package/scripts/run/handoff/run-handoff-launch.ts +113 -0
- package/scripts/run/handoff/run-handoff-retrospective.ts +48 -0
- package/scripts/run/handoff-lanes/run-handoff-lanes-cli.ts +31 -0
- package/scripts/run/handoff-lanes/run-handoff-lanes.ts +183 -0
- package/scripts/run/hold/run-hold-block.ts +35 -0
- package/scripts/run/hold/run-hold-cli.ts +20 -36
- package/scripts/run/hold/run-hold-main.ts +16 -1
- package/scripts/run/hold/run-hold.ts +12 -8
- package/scripts/run/hold/run-stop-notify.ts +1 -1
- package/scripts/run/launch-priority.ts +4 -7
- package/scripts/run/merge/run-merge-auth.ts +38 -13
- package/scripts/run/merge/run-merge-cap.ts +11 -6
- package/scripts/run/merge/run-merge-cli.ts +55 -58
- package/scripts/run/merge/run-merge-dated.ts +64 -0
- package/scripts/run/merge/run-merge-decision.ts +183 -0
- package/scripts/run/merge/run-merge-driver.ts +2 -0
- package/scripts/run/merge/run-merge-github-limit.ts +98 -0
- package/scripts/run/merge/run-merge-health.ts +137 -0
- package/scripts/run/merge/run-merge-human-review.ts +26 -0
- package/scripts/run/merge/run-merge-restart.ts +10 -3
- package/scripts/run/merge/run-merge-signals.ts +34 -9
- package/scripts/run/merge/run-merge-steps.ts +49 -50
- package/scripts/run/merge/run-merge-token.ts +3 -4
- package/scripts/run/merge/run-merge-usage-limit.ts +22 -9
- package/scripts/run/merge/run-merge-withdrawn.ts +4 -3
- package/scripts/run/merge/run-merge.ts +36 -18
- package/scripts/run/park/run-park-answered.ts +84 -0
- package/scripts/run/park/run-park-body.ts +346 -0
- package/scripts/run/park/run-park-cli.ts +49 -12
- package/scripts/run/park/run-park-escalate.ts +102 -0
- package/scripts/run/park/run-park-lane.ts +41 -0
- package/scripts/run/park/run-park-release.ts +61 -0
- package/scripts/run/park/run-park-write.ts +41 -0
- package/scripts/run/park/run-park.ts +2 -4
- package/scripts/run/park/run-stalled-park.ts +32 -0
- package/scripts/run/park/run-stalled.ts +97 -12
- package/scripts/run/pause/run-pause-cli.ts +4 -3
- package/scripts/run/pause/run-pause-comment.ts +30 -0
- package/scripts/run/pause/run-pause.ts +35 -223
- package/scripts/run/pause/run-set-aside-commit.ts +52 -0
- package/scripts/run/pause/run-set-aside.ts +139 -0
- package/scripts/run/prime/run-prime-cli.ts +105 -0
- package/scripts/run/progress/run-progress-cli.ts +44 -27
- package/scripts/run/progress/run-progress-config.ts +7 -18
- package/scripts/run/progress/run-progress.ts +16 -7
- package/scripts/run/review/run-chain-cli.ts +162 -0
- package/scripts/run/review/run-chain-join.ts +108 -0
- package/scripts/run/review/run-chain-review-fix.ts +70 -0
- package/scripts/run/review/run-chain.ts +167 -0
- package/scripts/run/review/run-review-cli.ts +127 -53
- package/scripts/run/review/run-review-early-push.ts +46 -12
- package/scripts/run/review/run-review-join-ready.ts +88 -0
- package/scripts/run/review/run-review-pinned-accepted.ts +15 -1
- package/scripts/run/review/run-review-pinned-join.ts +8 -4
- package/scripts/run/review/run-review-pinned-steps.ts +12 -7
- package/scripts/run/review/run-review-pinned.ts +8 -3
- package/scripts/run/review/run-review-steps.ts +29 -14
- package/scripts/run/review/run-review-unplanned.ts +75 -0
- package/scripts/run/review/run-review.ts +4 -4
- package/scripts/run/run-halfrun-resume.ts +9 -1
- package/scripts/run/run-headless-keys.ts +23 -0
- package/scripts/run/run-headless.ts +77 -13
- package/scripts/run/run-investigation-record.ts +66 -0
- package/scripts/run/run-label-main.ts +55 -0
- package/scripts/run/run-label.ts +20 -4
- package/scripts/run/run-liveness-cli.ts +1 -1
- package/scripts/run/run-liveness.ts +6 -5
- package/scripts/run/run-maintenance.ts +66 -0
- package/scripts/run/run-open-pr.ts +19 -0
- package/scripts/run/run-parent-cut-hook.ts +17 -9
- package/scripts/run/run-pickup-cli.ts +86 -0
- package/scripts/run/run-pickup-launch.ts +85 -0
- package/scripts/run/run-poll-hook.ts +14 -7
- package/scripts/run/run-pr-return.ts +99 -0
- package/scripts/run/run-prep-cli.ts +54 -7
- package/scripts/run/run-prep-locate.ts +8 -3
- package/scripts/run/run-prep-summary.ts +55 -0
- package/scripts/run/run-prep.ts +37 -1
- package/scripts/run/run-report-cli.ts +13 -2
- package/scripts/run/run-report-end.ts +133 -0
- package/scripts/run/run-report-handoff.ts +1 -1
- package/scripts/run/run-report.ts +7 -1
- package/scripts/run/run-stage-read.ts +38 -4
- package/scripts/run/run-stage.ts +18 -6
- package/scripts/run/run-status.ts +2 -1
- package/scripts/run/run-step-cli.ts +38 -10
- package/scripts/run/run-step-lane-plan.ts +26 -12
- package/scripts/run/run-step-progress.ts +61 -0
- package/scripts/run/run-step-section-driver.ts +27 -0
- package/scripts/run/run-step-section-once.ts +83 -0
- package/scripts/run/run-step-section-table.ts +120 -0
- package/scripts/run/run-step-section.ts +39 -53
- package/scripts/run/run-step.ts +4 -3
- package/scripts/run/run-stop-notify.ts +1 -1
- package/scripts/run/run-tail-cli.ts +14 -6
- package/scripts/run/run-tail.ts +22 -0
- package/scripts/run/run-watcher-guard.ts +15 -5
- package/scripts/run/run-watcher-hook.ts +12 -6
- package/scripts/run/ship/run-ship-args.ts +8 -1
- package/scripts/run/ship/run-ship-cli.ts +68 -65
- package/scripts/run/ship/run-ship-conflict-probe.ts +12 -14
- package/scripts/run/ship/run-ship-detach-wait.ts +25 -0
- package/scripts/run/ship/run-ship-detach.ts +29 -35
- package/scripts/run/ship/run-ship-early-push.ts +34 -0
- package/scripts/run/ship/run-ship-evidence-cli.ts +133 -0
- package/scripts/run/ship/run-ship-evidence.ts +71 -0
- package/scripts/run/ship/run-ship-final-review.ts +28 -0
- package/scripts/run/ship/run-ship-gate-runs.ts +58 -0
- package/scripts/run/ship/run-ship-group.ts +38 -0
- package/scripts/run/ship/run-ship-handover.ts +1 -1
- package/scripts/run/ship/run-ship-lap.ts +100 -12
- package/scripts/run/ship/run-ship-narrowed.ts +104 -0
- package/scripts/run/ship/run-ship-next.ts +3 -3
- package/scripts/run/ship/run-ship-pair-runs.ts +127 -0
- package/scripts/run/ship/run-ship-place.ts +9 -8
- package/scripts/run/ship/run-ship-planned.ts +1 -1
- package/scripts/run/ship/run-ship-pre-detach-pinned.ts +7 -1
- package/scripts/run/ship/run-ship-pre-detach.ts +18 -12
- package/scripts/run/ship/run-ship-preflight-reuse.ts +53 -0
- package/scripts/run/ship/run-ship-preflight.ts +21 -2
- package/scripts/run/ship/run-ship-probe.ts +5 -15
- package/scripts/run/ship/run-ship-record-wait.ts +30 -0
- package/scripts/run/ship/run-ship-relaunch-cap.ts +107 -14
- package/scripts/run/ship/run-ship-relaunch.ts +7 -1
- package/scripts/run/ship/run-ship-removed-rows.ts +34 -10
- package/scripts/run/ship/run-ship-reship.ts +125 -0
- package/scripts/run/ship/run-ship-return.ts +68 -22
- package/scripts/run/ship/run-ship-review-checkpoint.ts +112 -0
- package/scripts/run/ship/run-ship-review-reason.ts +3 -1
- package/scripts/run/ship/run-ship-review-steps.ts +80 -31
- package/scripts/run/ship/run-ship-review.ts +13 -9
- package/scripts/run/ship/run-ship-reviewer.ts +59 -7
- package/scripts/run/ship/run-ship-scoped.ts +232 -21
- package/scripts/run/ship/run-ship-stage.ts +3 -5
- package/scripts/run/ship/run-ship-steps.ts +65 -20
- package/scripts/run/ship/run-ship-stop-cause.ts +64 -2
- package/scripts/run/ship/run-ship-stop-context.ts +5 -5
- package/scripts/run/ship/run-ship-stop-text.ts +1 -1
- package/scripts/run/ship/run-ship-supervised.ts +38 -0
- package/scripts/run/ship/run-ship-sync.ts +114 -19
- package/scripts/run/ship/run-ship-synced-scope.ts +162 -58
- package/scripts/run/ship/run-ship-tree-stamp.ts +35 -0
- package/scripts/run/ship/run-ship-wait-cli.ts +23 -25
- package/scripts/run/ship/run-ship-wait-main.ts +12 -0
- package/scripts/run/ship/run-ship-waiter.ts +8 -6
- package/scripts/run/ship/run-ship.ts +12 -0
- package/scripts/run/split/run-split-cli.ts +134 -0
- package/scripts/run/split/run-split-prerequisite.ts +75 -0
- package/scripts/run/split/run-split.ts +213 -0
- package/scripts/run/stale/run-stale-cli.ts +86 -0
- package/scripts/run/stale/run-stale-main.ts +7 -0
- package/scripts/run/stale/run-stale.ts +117 -0
- package/scripts/run/tidy/run-tidy-cli.ts +24 -2
- package/scripts/run/tree-status-cli.ts +131 -0
- package/scripts/run/tree-status.ts +77 -0
- package/scripts/run/ts-entry-loader.ts +34 -0
- package/scripts/run/wake/run-wake-await.ts +22 -2
- package/scripts/run/wake/run-wake-cli.ts +3 -3
- package/scripts/run/wake/run-wake-describe.ts +1 -1
- package/scripts/run/wake/run-wake-driver.ts +158 -61
- package/scripts/run/wake/run-wake-handoff.ts +65 -14
- package/scripts/run/wake/run-wake-loop.ts +63 -23
- package/scripts/run/wake/run-wake-ports.ts +99 -17
- package/scripts/run/wake/run-wake-resume.ts +98 -0
- package/scripts/run/wake/run-wake-session.ts +16 -14
- package/scripts/run/wake/run-wake-window.ts +15 -0
- package/scripts/run/wake/run-wake.ts +7 -6
- package/scripts/safe-chain/preinstall-command.ts +3 -6
- package/scripts/safe-chain/project-config.ts +2 -2
- package/scripts/security/security-audit-cache.ts +157 -0
- package/scripts/security/security-audit-main.ts +4 -2
- package/scripts/security/security-audit-provision-logic.ts +4 -4
- package/scripts/security/security-audit-provision-main.ts +19 -5
- package/scripts/split/declared-growth.ts +22 -0
- package/scripts/split/split-assess.ts +229 -37
- package/scripts/split/split-child-recover-cli.ts +118 -0
- package/scripts/split/split-direction.ts +172 -0
- package/scripts/split/split-measure.ts +28 -14
- package/scripts/split/split-relocations.ts +108 -0
- package/scripts/split/split-resolution.ts +63 -61
- package/scripts/sync/claude-settings-merge.ts +8 -4
- package/scripts/sync/managed-config-scope.ts +13 -1
- package/scripts/sync/sync-ai-files.ts +2 -2
- package/scripts/sync/sync-configs.ts +3 -5
- package/scripts/test/test-e2e-guard.ts +2 -1
- package/scripts/test/test-inputs.ts +119 -0
- package/scripts/test/test-no-base.ts +35 -16
- package/scripts/test/test-pinned-cache-logic.ts +4 -0
- package/scripts/test/test-pinned-cache.ts +8 -15
- package/scripts/test/test-pinned-carry.ts +93 -0
- package/scripts/test/test-pinned-emit.ts +2 -1
- package/scripts/test/test-pinned-ledger.ts +15 -9
- package/scripts/test/test-pinned-logic.ts +66 -4
- package/scripts/test/test-pinned-main.ts +6 -30
- package/scripts/test/test-pinned-moves.ts +43 -0
- package/scripts/test/test-pinned-probe.ts +61 -17
- package/scripts/test/test-pinned-prune-logic.ts +2 -1
- package/scripts/test/test-pinned-reach.ts +11 -3
- package/scripts/test/test-pinned-record.ts +36 -4
- package/scripts/test/test-pinned-snapshot.ts +110 -0
- package/scripts/test/test-pinned-spawn.ts +32 -7
- package/scripts/test/test-pinned-stage.ts +43 -16
- package/scripts/test/test-pinned-type-check.ts +110 -0
- package/scripts/test/test-pinned.ts +92 -35
- package/scripts/test/test-red-logic.ts +40 -2
- package/scripts/test/test-red.ts +131 -19
- package/scripts/test/test-related-cap.ts +182 -0
- package/scripts/test/test-related-main.ts +2 -4
- package/scripts/test/test-related-pins.ts +33 -0
- package/scripts/test/test-related-record.ts +84 -8
- package/scripts/test/test-related-red.ts +218 -0
- package/scripts/test/test-related-reuse.ts +167 -0
- package/scripts/test/test-related-run.ts +144 -0
- package/scripts/test/test-related-synced.ts +31 -8
- package/scripts/test/test-related-touched.ts +29 -6
- package/scripts/test/test-related-verdict.ts +127 -0
- package/scripts/test/test-related-whole.ts +22 -0
- package/scripts/test/test-related.ts +124 -147
- package/scripts/test/test-type-logic.ts +1 -2
- package/scripts/test/test-unit-guard.ts +12 -3
- package/scripts/test/unit-count-file.ts +25 -1
- package/scripts/test/unit-lane-count.ts +63 -0
- package/scripts/test/unit-run-marker.ts +11 -1
- package/scripts/test/unit-update-arguments.ts +73 -0
- package/scripts/test/unit-worker-share.ts +28 -13
- package/scripts/test/whole-suite-files.ts +2 -0
- package/scripts/time-runtime/guard-rephrase.ts +66 -0
- package/scripts/time-runtime/time-agent-bundles.ts +5 -5
- package/scripts/time-runtime/time-bundle-call.ts +2 -2
- package/scripts/time-runtime/time-bundles.ts +2 -2
- package/scripts/time-runtime/time-command-key.ts +2 -5
- package/scripts/time-runtime/time-density-hook.ts +2 -31
- package/scripts/time-runtime/time-format.ts +4 -4
- package/scripts/time-runtime/time-josh-names.ts +51 -0
- package/scripts/time-runtime/time-markers.ts +4 -4
- package/scripts/time-runtime/time-phase-names.ts +2 -2
- package/scripts/time-runtime/time-shell.ts +28 -17
- package/scripts/time-runtime/time-single-check.ts +4 -4
- package/scripts/time-runtime/time-spans.ts +8 -8
- package/scripts/time-runtime/time-tool-call.ts +4 -3
- package/scripts/time-runtime/time-transcript-block.ts +172 -0
- package/scripts/time-runtime/time-transcript-line.ts +26 -158
- package/scripts/time-runtime/transcript-tail.ts +39 -0
- package/scripts/ui/ui-shot-cli.ts +90 -0
- package/scripts/ui/ui-shot.ts +95 -0
- package/scripts/usage/usage-state-path.ts +22 -0
- package/scripts/usage/usage-tee-cli.ts +5 -0
- package/scripts/usage/usage-tee.ts +48 -0
- package/scripts/version/development-engines-verdict.ts +7 -1
- package/scripts/version/fresh-metadata-cache.ts +4 -3
- package/scripts/version/latest-corepack.ts +3 -3
- package/scripts/version/latest-if-required-cli.ts +32 -4
- package/scripts/version/latest-scope-cli.ts +12 -2
- package/scripts/version/latest-stamp.ts +5 -4
- package/scripts/version/npm-registry.ts +19 -0
- package/scripts/version/playwright-browsers.ts +1 -1
- package/scripts/version/release-hold.ts +2 -2
- package/scripts/version/upgrade-command-guard.ts +1 -1
- package/templates/prettierignore.basic +3 -0
- package/templates/sonar-project.properties +2 -1
- package/templates/workflows/ci.yml +5 -4
- package/tsconfig/base.json +1 -0
- package/dist/hooks/chunk-3GKE653K.js +0 -6204
- package/dist/hooks/chunk-45CJJOO7.js +0 -1243
- package/dist/hooks/chunk-5PM2JRGV.js +0 -7780
- package/dist/hooks/chunk-7SIUNQXK.js +0 -3591
- package/dist/hooks/chunk-Z6DQJKH3.js +0 -2806
- package/prompts/collaboration-workflow.md +0 -28
- package/scripts/epic/epic-bundle-poll.ts +0 -41
- package/scripts/josh/josh-commands-lane.ts +0 -310
- package/scripts/josh/josh-commands-split.ts +0 -28
- package/scripts/review/review-lint-cli.ts +0 -57
- package/scripts/split/split-early-notice.ts +0 -116
|
@@ -0,0 +1,1612 @@
|
|
|
1
|
+
import {
|
|
2
|
+
hook_launch
|
|
3
|
+
} from "./chunk-OF4BY4N7.js";
|
|
4
|
+
import {
|
|
5
|
+
composite_actions
|
|
6
|
+
} from "./chunk-RXAZJMSZ.js";
|
|
7
|
+
import {
|
|
8
|
+
gh_spawn
|
|
9
|
+
} from "./chunk-3PEXBHRN.js";
|
|
10
|
+
import {
|
|
11
|
+
init_logic,
|
|
12
|
+
init_logic_json_merge,
|
|
13
|
+
json_format,
|
|
14
|
+
managed_config_scope,
|
|
15
|
+
npm_publish_files,
|
|
16
|
+
parse_jsonc,
|
|
17
|
+
patch_json_key
|
|
18
|
+
} from "./chunk-5ZNUH4LV.js";
|
|
19
|
+
import {
|
|
20
|
+
KIT_PACKAGE_NAME
|
|
21
|
+
} from "./chunk-PBOS7MTW.js";
|
|
22
|
+
import {
|
|
23
|
+
release_age
|
|
24
|
+
} from "./chunk-CWCKCZS6.js";
|
|
25
|
+
import {
|
|
26
|
+
yaml_document
|
|
27
|
+
} from "./chunk-UCI4AL3Q.js";
|
|
28
|
+
import {
|
|
29
|
+
distributed_paths
|
|
30
|
+
} from "./chunk-66TGK5XL.js";
|
|
31
|
+
import {
|
|
32
|
+
repo_origin
|
|
33
|
+
} from "./chunk-4ZHWTTQW.js";
|
|
34
|
+
import {
|
|
35
|
+
error_text
|
|
36
|
+
} from "./chunk-CDY4NFQG.js";
|
|
37
|
+
import {
|
|
38
|
+
session_language
|
|
39
|
+
} from "./chunk-OKYFQJW3.js";
|
|
40
|
+
import {
|
|
41
|
+
PACKAGE_DIR,
|
|
42
|
+
PROJECT_ROOT,
|
|
43
|
+
package_path
|
|
44
|
+
} from "./chunk-3CCGKX7Y.js";
|
|
45
|
+
import {
|
|
46
|
+
json_object_schema,
|
|
47
|
+
string_array_schema,
|
|
48
|
+
vscode_settings_schema
|
|
49
|
+
} from "./chunk-RBU2NKHF.js";
|
|
50
|
+
import {
|
|
51
|
+
PACKAGE_JSON,
|
|
52
|
+
package_manifest
|
|
53
|
+
} from "./chunk-WB4T3VY2.js";
|
|
54
|
+
import {
|
|
55
|
+
git_spawn_sync
|
|
56
|
+
} from "./chunk-B77ZMVHS.js";
|
|
57
|
+
import {
|
|
58
|
+
file_reader
|
|
59
|
+
} from "./chunk-ZNX2LJCQ.js";
|
|
60
|
+
import {
|
|
61
|
+
json_value
|
|
62
|
+
} from "./chunk-HIU2WXB6.js";
|
|
63
|
+
|
|
64
|
+
// scripts/safe-chain/project-config.ts
|
|
65
|
+
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
66
|
+
import path3 from "node:path";
|
|
67
|
+
|
|
68
|
+
// scripts/sync/file-content.ts
|
|
69
|
+
import { lstatSync, mkdirSync, readFileSync, readlinkSync, writeFileSync } from "node:fs";
|
|
70
|
+
import path from "node:path";
|
|
71
|
+
var PATH_SEPARATORS = path.sep === "\\" ? /[/\\]/u : /\//u;
|
|
72
|
+
var MAX_RESOLVE_STEPS = 4096;
|
|
73
|
+
function is_read_denied(error) {
|
|
74
|
+
return error instanceof Error && "code" in error && ["EACCES", "EPERM"].includes(String(error.code));
|
|
75
|
+
}
|
|
76
|
+
function is_regular_existing_file(destination_path) {
|
|
77
|
+
try {
|
|
78
|
+
return lstatSync(destination_path).isFile();
|
|
79
|
+
} catch (error) {
|
|
80
|
+
if (file_reader.is_absent(error)) return false;
|
|
81
|
+
throw error;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
function does_read_match(destination_path, expected) {
|
|
85
|
+
try {
|
|
86
|
+
return readFileSync(destination_path).equals(expected);
|
|
87
|
+
} catch (error) {
|
|
88
|
+
if (is_read_denied(error)) return false;
|
|
89
|
+
throw error;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
function is_same_file_content(destination_path, content) {
|
|
93
|
+
if (!is_regular_existing_file(destination_path)) return false;
|
|
94
|
+
const expected = Buffer.isBuffer(content) ? content : Buffer.from(content);
|
|
95
|
+
return does_read_match(destination_path, expected);
|
|
96
|
+
}
|
|
97
|
+
function read_symlink(target) {
|
|
98
|
+
if (!lstatSync(target, { throwIfNoEntry: false })?.isSymbolicLink()) return void 0;
|
|
99
|
+
return readlinkSync(target);
|
|
100
|
+
}
|
|
101
|
+
function split_components(target) {
|
|
102
|
+
return target.split(PATH_SEPARATORS).filter((part) => part !== "" && part !== ".");
|
|
103
|
+
}
|
|
104
|
+
function enter_component(current, name, pending) {
|
|
105
|
+
if (name === "..") return path.dirname(current);
|
|
106
|
+
const next = path.join(current, name);
|
|
107
|
+
const link = read_symlink(next);
|
|
108
|
+
if (link === void 0) return next;
|
|
109
|
+
const root = path.isAbsolute(link) ? path.parse(link).root : "";
|
|
110
|
+
pending.unshift(...split_components(link.slice(root.length)));
|
|
111
|
+
return root === "" ? current : root;
|
|
112
|
+
}
|
|
113
|
+
function resolve_write_path(target) {
|
|
114
|
+
const absolute = path.isAbsolute(target) ? target : `${process.cwd()}${path.sep}${target}`;
|
|
115
|
+
let current = path.parse(absolute).root;
|
|
116
|
+
const pending = split_components(absolute.slice(current.length));
|
|
117
|
+
for (let steps = 0; steps <= MAX_RESOLVE_STEPS; steps += 1) {
|
|
118
|
+
const name = pending.shift();
|
|
119
|
+
if (name === void 0) return current;
|
|
120
|
+
current = enter_component(current, name, pending);
|
|
121
|
+
}
|
|
122
|
+
throw new Error(`Refusing to write ${target}: too many links`);
|
|
123
|
+
}
|
|
124
|
+
function is_within(root, target) {
|
|
125
|
+
const relative = path.relative(root, target);
|
|
126
|
+
return relative !== ".." && !relative.startsWith(`..${path.sep}`) && !path.isAbsolute(relative);
|
|
127
|
+
}
|
|
128
|
+
function does_escape_project(destination_path) {
|
|
129
|
+
if (!is_within(path.resolve(PROJECT_ROOT), path.resolve(destination_path))) return false;
|
|
130
|
+
return !is_within(resolve_write_path(PROJECT_ROOT), resolve_write_path(destination_path));
|
|
131
|
+
}
|
|
132
|
+
function write_contained(destination_path, content) {
|
|
133
|
+
if (does_escape_project(destination_path)) {
|
|
134
|
+
throw new Error(`Refusing to write ${destination_path}: it resolves outside the project`);
|
|
135
|
+
}
|
|
136
|
+
mkdirSync(path.dirname(destination_path), { recursive: true });
|
|
137
|
+
writeFileSync(destination_path, content);
|
|
138
|
+
}
|
|
139
|
+
function write_text_if_changed(destination_path, content) {
|
|
140
|
+
if (is_same_file_content(destination_path, content)) return false;
|
|
141
|
+
write_contained(destination_path, content);
|
|
142
|
+
return true;
|
|
143
|
+
}
|
|
144
|
+
var file_content = { is_same_file_content, write_contained, write_text_if_changed };
|
|
145
|
+
|
|
146
|
+
// scripts/version/release-window.ts
|
|
147
|
+
import path2 from "node:path";
|
|
148
|
+
import { z } from "zod";
|
|
149
|
+
var WORKSPACE_FILE = "pnpm-workspace.yaml";
|
|
150
|
+
var exclusions_schema = z.object({ minimumReleaseAgeExclude: z.array(z.string()).optional() });
|
|
151
|
+
var DEFAULT_RELEASE_AGE_MINUTES = 4320;
|
|
152
|
+
function parse_release_window(workspace) {
|
|
153
|
+
const exclusions = exclusions_schema.parse(yaml_document.parse_yaml(workspace));
|
|
154
|
+
return {
|
|
155
|
+
minutes: release_age.parse_declared_minimum_release_age(workspace),
|
|
156
|
+
exclusions: exclusions.minimumReleaseAgeExclude ?? []
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function read_release_window(root) {
|
|
160
|
+
return parse_release_window(file_reader.read_file_or_empty(path2.join(root, WORKSPACE_FILE)));
|
|
161
|
+
}
|
|
162
|
+
var release_window = { parse_release_window, read_release_window };
|
|
163
|
+
|
|
164
|
+
// scripts/safe-chain/project-config.ts
|
|
165
|
+
import { dump } from "js-yaml";
|
|
166
|
+
var WORKSPACE_FILE2 = "pnpm-workspace.yaml";
|
|
167
|
+
var PROJECT_CONFIG_FILE = ".aikido";
|
|
168
|
+
var EXCLUSIONS_FIELD = "minimumPackageAgeExclusions";
|
|
169
|
+
var AGE_FIELD = "minimumPackageAgeHours";
|
|
170
|
+
var MINUTES_PER_HOUR = 60;
|
|
171
|
+
function read_mapping(value, label) {
|
|
172
|
+
if (value === void 0) return {};
|
|
173
|
+
if (yaml_document.is_mapping_document(value)) return value;
|
|
174
|
+
throw new Error(`${label} must be a YAML mapping`);
|
|
175
|
+
}
|
|
176
|
+
function is_block_line(line) {
|
|
177
|
+
return line.trim() === "" || line.startsWith(" ") || line.startsWith(" ");
|
|
178
|
+
}
|
|
179
|
+
function trim_block_end(lines, start, end) {
|
|
180
|
+
let trimmed = end;
|
|
181
|
+
while (trimmed > start + 1 && lines[trimmed - 1]?.trim() === "") trimmed -= 1;
|
|
182
|
+
return trimmed;
|
|
183
|
+
}
|
|
184
|
+
function find_block_end(lines, start) {
|
|
185
|
+
const remaining = lines.slice(start + 1);
|
|
186
|
+
const relative = remaining.findIndex((line, index) => {
|
|
187
|
+
if (is_block_line(line)) return false;
|
|
188
|
+
if (!line.startsWith("#")) return true;
|
|
189
|
+
const next = remaining.slice(index + 1).find((candidate) => candidate.trim() !== "" && !candidate.startsWith("#"));
|
|
190
|
+
return next === void 0 || !is_block_line(next);
|
|
191
|
+
});
|
|
192
|
+
const end = relative === -1 ? lines.length : start + 1 + relative;
|
|
193
|
+
return trim_block_end(lines, start, end);
|
|
194
|
+
}
|
|
195
|
+
function append_block(existing, block) {
|
|
196
|
+
if (existing.length === 0) return block;
|
|
197
|
+
const prefix = existing.endsWith("\n") ? existing : `${existing}
|
|
198
|
+
`;
|
|
199
|
+
return `${prefix}
|
|
200
|
+
${block}`;
|
|
201
|
+
}
|
|
202
|
+
function preserve_anchor(block, key_line) {
|
|
203
|
+
const anchor = /(?:^|\s)(&[^\s#]+)/u.exec(key_line)?.[1];
|
|
204
|
+
if (!anchor) return block;
|
|
205
|
+
const header = "safe-chain:";
|
|
206
|
+
return `${header} ${anchor}${block.slice(header.length)}`;
|
|
207
|
+
}
|
|
208
|
+
function replace_safe_chain_block(existing, safe_chain) {
|
|
209
|
+
const block = dump({ "safe-chain": safe_chain }, { lineWidth: -1 });
|
|
210
|
+
const lines = existing.split("\n");
|
|
211
|
+
const start = lines.findIndex(
|
|
212
|
+
(line) => /^(?:safe-chain|'safe-chain'|"safe-chain")\s*:/u.test(line)
|
|
213
|
+
);
|
|
214
|
+
if (start === -1) return append_block(existing, block);
|
|
215
|
+
const replacement = preserve_anchor(block, lines[start] ?? "");
|
|
216
|
+
const end = find_block_end(lines, start);
|
|
217
|
+
const prefix = lines.slice(0, start).join("\n");
|
|
218
|
+
const suffix = lines.slice(end).join("\n");
|
|
219
|
+
return `${prefix}${prefix ? "\n" : ""}${replacement}${suffix}`;
|
|
220
|
+
}
|
|
221
|
+
function package_age_hours(workspace) {
|
|
222
|
+
const { minutes } = release_window.parse_release_window(workspace);
|
|
223
|
+
if (minutes === void 0) return void 0;
|
|
224
|
+
return Math.floor(minutes / MINUTES_PER_HOUR);
|
|
225
|
+
}
|
|
226
|
+
function merge_age(safe_chain, workspace) {
|
|
227
|
+
const hours = package_age_hours(workspace);
|
|
228
|
+
if (hours === void 0) return safe_chain;
|
|
229
|
+
return { ...safe_chain, [AGE_FIELD]: hours };
|
|
230
|
+
}
|
|
231
|
+
function merge_exclusions(safe_chain, exclusions) {
|
|
232
|
+
const npm = read_mapping(safe_chain["npm"], "safe-chain.npm");
|
|
233
|
+
return { ...safe_chain, npm: { ...npm, [EXCLUSIONS_FIELD]: exclusions } };
|
|
234
|
+
}
|
|
235
|
+
function has_nothing_to_write(existing, exclusions, workspace) {
|
|
236
|
+
return existing.length === 0 && exclusions.length === 0 && package_age_hours(workspace) === void 0;
|
|
237
|
+
}
|
|
238
|
+
function merge_project_config(existing, workspace) {
|
|
239
|
+
const { exclusions } = release_window.parse_release_window(workspace);
|
|
240
|
+
const aikido = yaml_document.parse_yaml(existing);
|
|
241
|
+
const safe_chain = read_mapping(aikido["safe-chain"], "safe-chain");
|
|
242
|
+
const merged = merge_age(merge_exclusions(safe_chain, exclusions), workspace);
|
|
243
|
+
if (JSON.stringify(merged) === JSON.stringify(safe_chain) || has_nothing_to_write(existing, exclusions, workspace)) {
|
|
244
|
+
return existing;
|
|
245
|
+
}
|
|
246
|
+
return replace_safe_chain_block(existing, merged);
|
|
247
|
+
}
|
|
248
|
+
function sync_project_config(root) {
|
|
249
|
+
const workspace_path = path3.join(root, WORKSPACE_FILE2);
|
|
250
|
+
if (!existsSync(workspace_path)) return false;
|
|
251
|
+
const config_path = path3.join(root, PROJECT_CONFIG_FILE);
|
|
252
|
+
const existing = file_reader.read_file_or_empty(config_path);
|
|
253
|
+
const workspace = readFileSync2(workspace_path, "utf8");
|
|
254
|
+
const merged = merge_project_config(existing, workspace);
|
|
255
|
+
if (merged === existing) return false;
|
|
256
|
+
file_content.write_contained(config_path, merged);
|
|
257
|
+
return true;
|
|
258
|
+
}
|
|
259
|
+
var project_config = { merge_project_config, sync_project_config };
|
|
260
|
+
|
|
261
|
+
// scripts/init/init-actions.ts
|
|
262
|
+
import { readFileSync as readFileSync4 } from "node:fs";
|
|
263
|
+
import path5 from "node:path";
|
|
264
|
+
|
|
265
|
+
// scripts/init/session-language-environment.ts
|
|
266
|
+
import { existsSync as existsSync2, readFileSync as readFileSync3 } from "node:fs";
|
|
267
|
+
import path4 from "node:path";
|
|
268
|
+
var ENV_FILE = ".env";
|
|
269
|
+
var CLAUDE_SETTINGS_PATH = path4.join(".claude", "settings.json");
|
|
270
|
+
var SESSION_LANG_HOOK = "session:lang";
|
|
271
|
+
var LOCALE_KEYS = ["LC_ALL", "LC_MESSAGES", "LANG"];
|
|
272
|
+
var JAPANESE_PREFIX = "ja";
|
|
273
|
+
var NON_JAPANESE_LANG = "en";
|
|
274
|
+
var KEY_LINE_PATTERN = new RegExp(
|
|
275
|
+
String.raw`^\s*(?:export\s+)?${session_language.ENV_KEY}\s*=`,
|
|
276
|
+
"mu"
|
|
277
|
+
);
|
|
278
|
+
function lang_from_locale(environment) {
|
|
279
|
+
const locale = LOCALE_KEYS.map((key) => environment[key]?.trim()).find(Boolean) ?? "";
|
|
280
|
+
return locale.toLowerCase().startsWith(JAPANESE_PREFIX) ? JAPANESE_PREFIX : NON_JAPANESE_LANG;
|
|
281
|
+
}
|
|
282
|
+
function resolve_lang(environment) {
|
|
283
|
+
const exported = environment[session_language.ENV_KEY]?.trim();
|
|
284
|
+
if (exported) return exported;
|
|
285
|
+
return lang_from_locale(environment);
|
|
286
|
+
}
|
|
287
|
+
function session_lang_line(lang) {
|
|
288
|
+
return `${session_language.ENV_KEY}=${lang}
|
|
289
|
+
`;
|
|
290
|
+
}
|
|
291
|
+
function merge_session_lang(existing, lang) {
|
|
292
|
+
if (KEY_LINE_PATTERN.test(existing)) return existing;
|
|
293
|
+
const separator = existing.length === 0 || existing.endsWith("\n") ? "" : "\n";
|
|
294
|
+
return `${existing}${separator}${session_lang_line(lang)}`;
|
|
295
|
+
}
|
|
296
|
+
function is_session_lang_hooked(project_root) {
|
|
297
|
+
const settings_path = path4.join(project_root, CLAUDE_SETTINGS_PATH);
|
|
298
|
+
return existsSync2(settings_path) && readFileSync3(settings_path, "utf8").includes(SESSION_LANG_HOOK);
|
|
299
|
+
}
|
|
300
|
+
function build_session_lang_actions(environment = process.env, project_root = PROJECT_ROOT) {
|
|
301
|
+
if (is_session_lang_hooked(project_root)) return [];
|
|
302
|
+
const lang = resolve_lang(environment);
|
|
303
|
+
return [
|
|
304
|
+
{
|
|
305
|
+
dest: ENV_FILE,
|
|
306
|
+
create: () => session_lang_line(lang),
|
|
307
|
+
merge: (existing) => merge_session_lang(existing, lang)
|
|
308
|
+
}
|
|
309
|
+
];
|
|
310
|
+
}
|
|
311
|
+
var session_language_environment = {
|
|
312
|
+
build_session_lang_actions,
|
|
313
|
+
lang_from_locale,
|
|
314
|
+
merge_session_lang
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
// scripts/config-merge/patch-json-array.ts
|
|
318
|
+
import { findNodeAtLocation, getNodeValue, parseTree } from "jsonc-parser";
|
|
319
|
+
var PROBE_HEAD_LINES = 2;
|
|
320
|
+
var PROBE_TAIL_LINES = 3;
|
|
321
|
+
function element_nodes(array) {
|
|
322
|
+
if (array?.type !== "array") return [];
|
|
323
|
+
return array.children ?? [];
|
|
324
|
+
}
|
|
325
|
+
function find_array(content, key) {
|
|
326
|
+
const root = parseTree(content);
|
|
327
|
+
const array = root === void 0 ? void 0 : findNodeAtLocation(root, [key]);
|
|
328
|
+
const elements = element_nodes(array);
|
|
329
|
+
if (array?.parent === void 0 || elements.length === 0) return void 0;
|
|
330
|
+
return { property: array.parent, elements };
|
|
331
|
+
}
|
|
332
|
+
function render_element(content, site, upsert) {
|
|
333
|
+
const lines = json_format.format_json({ [upsert.key]: [upsert.value] }).split("\n");
|
|
334
|
+
const text = lines.slice(PROBE_HEAD_LINES, -PROBE_TAIL_LINES).join("\n");
|
|
335
|
+
const unit = patch_json_key.line_indent(content, site.property.offset);
|
|
336
|
+
return patch_json_key.fit_value(content, text, unit).trimStart();
|
|
337
|
+
}
|
|
338
|
+
function splice(content, node, length, text) {
|
|
339
|
+
return content.slice(0, node.offset) + text + content.slice(node.offset + length);
|
|
340
|
+
}
|
|
341
|
+
function append_element(content, last, element_text) {
|
|
342
|
+
const indent = patch_json_key.line_indent(content, last.offset);
|
|
343
|
+
const text = `,${patch_json_key.eol_of(content)}${indent}${element_text}`;
|
|
344
|
+
const end = { ...last, offset: last.offset + last.length };
|
|
345
|
+
return splice(content, end, 0, text);
|
|
346
|
+
}
|
|
347
|
+
function is_equal(node, value) {
|
|
348
|
+
return JSON.stringify(getNodeValue(node)) === JSON.stringify(value);
|
|
349
|
+
}
|
|
350
|
+
function upsert_in(content, site, upsert) {
|
|
351
|
+
const target = site.elements.find((element) => upsert.is_target(getNodeValue(element)));
|
|
352
|
+
if (target !== void 0 && is_equal(target, upsert.value)) return content;
|
|
353
|
+
const element_text = render_element(content, site, upsert);
|
|
354
|
+
if (target !== void 0) return splice(content, target, target.length, element_text);
|
|
355
|
+
const last = site.elements.at(-1);
|
|
356
|
+
return last === void 0 ? content : append_element(content, last, element_text);
|
|
357
|
+
}
|
|
358
|
+
function upsert_element(content, upsert) {
|
|
359
|
+
const site = find_array(content, upsert.key);
|
|
360
|
+
if (site === void 0) return patch_json_key.set_json_key(content, upsert.key, [upsert.value]);
|
|
361
|
+
return upsert_in(content, site, upsert);
|
|
362
|
+
}
|
|
363
|
+
var patch_json_array = { upsert_element };
|
|
364
|
+
|
|
365
|
+
// scripts/init/vscode-tasks.ts
|
|
366
|
+
import { z as z2 } from "zod";
|
|
367
|
+
var TASKS_KEY = "tasks";
|
|
368
|
+
var LABEL_KEY = "label";
|
|
369
|
+
var TASKS_VERSION = "2.0.0";
|
|
370
|
+
var VSCODE_TASKS_FILENAME = "tasks.json";
|
|
371
|
+
var RETIRED_LABELS = /* @__PURE__ */ new Map([
|
|
372
|
+
["josh: run event watch", "josh: run board"]
|
|
373
|
+
]);
|
|
374
|
+
var task_array_schema = z2.array(json_object_schema);
|
|
375
|
+
function read_tasks(parsed) {
|
|
376
|
+
const result = task_array_schema.safeParse(parsed[TASKS_KEY]);
|
|
377
|
+
return result.success ? result.data : [];
|
|
378
|
+
}
|
|
379
|
+
function has_label(element, label) {
|
|
380
|
+
const result = json_object_schema.safeParse(element);
|
|
381
|
+
if (!result.success) return false;
|
|
382
|
+
const own = result.data[LABEL_KEY];
|
|
383
|
+
return (RETIRED_LABELS.get(own) ?? own) === label;
|
|
384
|
+
}
|
|
385
|
+
function merge_tasks(content, kit_tasks) {
|
|
386
|
+
let merged = init_logic_json_merge.merge_json_object(content, { version: TASKS_VERSION });
|
|
387
|
+
for (const task of kit_tasks) {
|
|
388
|
+
merged = patch_json_array.upsert_element(merged, {
|
|
389
|
+
key: TASKS_KEY,
|
|
390
|
+
value: task,
|
|
391
|
+
is_target: (element) => has_label(element, task[LABEL_KEY])
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
return merged;
|
|
395
|
+
}
|
|
396
|
+
function read_kit_tasks(content) {
|
|
397
|
+
return read_tasks(parse_jsonc(content));
|
|
398
|
+
}
|
|
399
|
+
var vscode_tasks = { VSCODE_TASKS_FILENAME, merge_tasks, read_kit_tasks };
|
|
400
|
+
|
|
401
|
+
// scripts/init/init-actions.ts
|
|
402
|
+
var PRETTIER_CONFIG_JS = "prettier.config.js";
|
|
403
|
+
var BASIC_PRETTIER_CONFIG = "prettier.config.mjs";
|
|
404
|
+
var VSCODE_EXTENSIONS_PATH = ".vscode/extensions.json";
|
|
405
|
+
var VSCODE_SETTINGS_PATH = ".vscode/settings.json";
|
|
406
|
+
var TSCONFIG_PATH = "tsconfig.json";
|
|
407
|
+
var LEFTHOOK_PATH = "lefthook.yml";
|
|
408
|
+
function read_package_file(relative_path) {
|
|
409
|
+
return readFileSync4(package_path(relative_path), "utf8");
|
|
410
|
+
}
|
|
411
|
+
function read_package_json(relative_path) {
|
|
412
|
+
return JSON.parse(read_package_file(relative_path));
|
|
413
|
+
}
|
|
414
|
+
function build_action(destination, create, merge) {
|
|
415
|
+
return { dest: destination, create, merge };
|
|
416
|
+
}
|
|
417
|
+
function build_vscode_tasks_action() {
|
|
418
|
+
const tasks_path = path5.join(".vscode", vscode_tasks.VSCODE_TASKS_FILENAME);
|
|
419
|
+
const kit_tasks = vscode_tasks.read_kit_tasks(read_package_file(tasks_path));
|
|
420
|
+
return build_action(
|
|
421
|
+
tasks_path,
|
|
422
|
+
() => read_package_file(tasks_path),
|
|
423
|
+
(existing) => vscode_tasks.merge_tasks(existing, kit_tasks)
|
|
424
|
+
);
|
|
425
|
+
}
|
|
426
|
+
function build_vscode_actions() {
|
|
427
|
+
const extensions_path = path5.join(".vscode", init_logic.VSCODE_EXTENSIONS_FILENAME);
|
|
428
|
+
const settings_path = path5.join(".vscode", init_logic.get_vscode_settings_filename());
|
|
429
|
+
const extensions_raw = vscode_settings_schema.parse(read_package_json(extensions_path));
|
|
430
|
+
const raw_recommendations = extensions_raw["recommendations"];
|
|
431
|
+
const recommendations = string_array_schema.parse(raw_recommendations);
|
|
432
|
+
const settings_data = init_logic.strip_kit_only_vscode_settings(
|
|
433
|
+
vscode_settings_schema.parse(read_package_json(settings_path))
|
|
434
|
+
);
|
|
435
|
+
return [
|
|
436
|
+
{
|
|
437
|
+
dest: VSCODE_EXTENSIONS_PATH,
|
|
438
|
+
create: () => read_package_file(extensions_path),
|
|
439
|
+
merge: (existing) => init_logic.merge_json_array_field(existing, "recommendations", recommendations)
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
dest: VSCODE_SETTINGS_PATH,
|
|
443
|
+
create: () => init_logic.strip_kit_only_vscode_settings_content(read_package_file(settings_path)),
|
|
444
|
+
merge: (existing) => init_logic.merge_json_object(existing, settings_data)
|
|
445
|
+
},
|
|
446
|
+
build_vscode_tasks_action()
|
|
447
|
+
];
|
|
448
|
+
}
|
|
449
|
+
var BASIC_EXTENSIONS = [
|
|
450
|
+
"streetsidesoftware.code-spell-checker",
|
|
451
|
+
"pkief.material-icon-theme",
|
|
452
|
+
"usernamehw.errorlens",
|
|
453
|
+
"anthropic.claude-code",
|
|
454
|
+
"github.github-vscode-theme"
|
|
455
|
+
];
|
|
456
|
+
var PRETTIER_EXTENSION = "esbenp.prettier-vscode";
|
|
457
|
+
var DEFAULT_FORMATTER = "editor.defaultFormatter";
|
|
458
|
+
var FORMAT_ON_SAVE = "editor.formatOnSave";
|
|
459
|
+
var BASIC_LANGUAGES = ["[html]", "[css]", "[javascript]"];
|
|
460
|
+
function basic_settings() {
|
|
461
|
+
const formatter = { [DEFAULT_FORMATTER]: PRETTIER_EXTENSION, [FORMAT_ON_SAVE]: true };
|
|
462
|
+
return Object.fromEntries(BASIC_LANGUAGES.map((language) => [language, formatter]));
|
|
463
|
+
}
|
|
464
|
+
function build_basic_settings_action() {
|
|
465
|
+
const settings = basic_settings();
|
|
466
|
+
return build_action(
|
|
467
|
+
VSCODE_SETTINGS_PATH,
|
|
468
|
+
() => json_format.format_json(settings),
|
|
469
|
+
(existing) => init_logic.merge_json_object(existing, settings)
|
|
470
|
+
);
|
|
471
|
+
}
|
|
472
|
+
function build_basic_vscode_actions(shape) {
|
|
473
|
+
const recommendations = shape.should_use_prettier ? [...BASIC_EXTENSIONS, PRETTIER_EXTENSION] : BASIC_EXTENSIONS;
|
|
474
|
+
const actions = [
|
|
475
|
+
build_action(
|
|
476
|
+
VSCODE_EXTENSIONS_PATH,
|
|
477
|
+
() => json_format.format_json({ recommendations }),
|
|
478
|
+
(existing) => init_logic.merge_json_array_field(existing, "recommendations", recommendations)
|
|
479
|
+
)
|
|
480
|
+
];
|
|
481
|
+
if (shape.should_use_prettier) actions.push(build_basic_settings_action());
|
|
482
|
+
return actions;
|
|
483
|
+
}
|
|
484
|
+
function build_basic_tsconfig_action() {
|
|
485
|
+
return build_action(
|
|
486
|
+
TSCONFIG_PATH,
|
|
487
|
+
() => json_format.format_json({ extends: init_logic.get_tsconfig_extends_entry() }),
|
|
488
|
+
(existing) => init_logic.merge_tsconfig_extends(
|
|
489
|
+
existing,
|
|
490
|
+
init_logic.get_tsconfig_extends_entry(),
|
|
491
|
+
PROJECT_ROOT
|
|
492
|
+
)
|
|
493
|
+
);
|
|
494
|
+
}
|
|
495
|
+
function build_secretlint_action() {
|
|
496
|
+
return {
|
|
497
|
+
dest: init_logic.get_secretlint_config_filename(),
|
|
498
|
+
create: () => init_logic.generate_secretlint_config()
|
|
499
|
+
};
|
|
500
|
+
}
|
|
501
|
+
function build_tsconfig_action() {
|
|
502
|
+
return build_action(
|
|
503
|
+
TSCONFIG_PATH,
|
|
504
|
+
() => init_logic.generate_tsconfig(),
|
|
505
|
+
(existing) => init_logic.merge_tsconfig_exclude(
|
|
506
|
+
init_logic.merge_tsconfig_extends(
|
|
507
|
+
existing,
|
|
508
|
+
init_logic.get_tsconfig_extends_entry(),
|
|
509
|
+
PROJECT_ROOT
|
|
510
|
+
)
|
|
511
|
+
)
|
|
512
|
+
);
|
|
513
|
+
}
|
|
514
|
+
function build_config_file_actions() {
|
|
515
|
+
const lefthook_extends = init_logic.get_lefthook_extends_value();
|
|
516
|
+
return [
|
|
517
|
+
build_tsconfig_action(),
|
|
518
|
+
build_action(
|
|
519
|
+
"cspell.config.yaml",
|
|
520
|
+
() => init_logic.generate_cspell_config(),
|
|
521
|
+
(existing) => init_logic.merge_cspell_import(existing, init_logic.get_cspell_import_value())
|
|
522
|
+
),
|
|
523
|
+
build_action(
|
|
524
|
+
LEFTHOOK_PATH,
|
|
525
|
+
() => init_logic.generate_lefthook_config(),
|
|
526
|
+
(existing) => init_logic.merge_lefthook_extends(existing, lefthook_extends)
|
|
527
|
+
),
|
|
528
|
+
build_secretlint_action(),
|
|
529
|
+
...build_vscode_actions()
|
|
530
|
+
];
|
|
531
|
+
}
|
|
532
|
+
function build_playwright_action() {
|
|
533
|
+
return { dest: "playwright.config.ts", create: () => init_logic.generate_playwright_config() };
|
|
534
|
+
}
|
|
535
|
+
function build_eslint_action() {
|
|
536
|
+
return build_action(
|
|
537
|
+
"eslint.config.js",
|
|
538
|
+
() => init_logic.generate_eslint_config(),
|
|
539
|
+
(existing) => init_logic.merge_eslint_config(existing)
|
|
540
|
+
);
|
|
541
|
+
}
|
|
542
|
+
function build_gitignore_action() {
|
|
543
|
+
const template = read_package_file("templates/gitignore");
|
|
544
|
+
return build_action(
|
|
545
|
+
".gitignore",
|
|
546
|
+
() => template,
|
|
547
|
+
(existing) => init_logic.merge_gitignore(existing, template)
|
|
548
|
+
);
|
|
549
|
+
}
|
|
550
|
+
function build_basic_actions(shape) {
|
|
551
|
+
const actions = [];
|
|
552
|
+
if (shape.has_git) actions.push(build_gitignore_action());
|
|
553
|
+
if (shape.has_typescript) actions.push(build_basic_tsconfig_action());
|
|
554
|
+
if (shape.should_use_prettier) {
|
|
555
|
+
actions.push({
|
|
556
|
+
dest: BASIC_PRETTIER_CONFIG,
|
|
557
|
+
create: () => "import { config } from '@joshuafolkken/kit/prettier/basic'\n\nexport default config\n"
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
actions.push(...build_basic_vscode_actions(shape));
|
|
561
|
+
if (shape.has_workflow) actions.push(...session_language_environment.build_session_lang_actions());
|
|
562
|
+
return actions;
|
|
563
|
+
}
|
|
564
|
+
function build_file_actions(shape) {
|
|
565
|
+
if (shape?.profile === "basic") return build_basic_actions(shape);
|
|
566
|
+
return [
|
|
567
|
+
...shape?.has_git === false ? [] : [build_gitignore_action()],
|
|
568
|
+
build_eslint_action(),
|
|
569
|
+
build_action(
|
|
570
|
+
PRETTIER_CONFIG_JS,
|
|
571
|
+
() => init_logic.generate_prettier_config(init_logic.detect_tailwind_stylesheet(PROJECT_ROOT)),
|
|
572
|
+
(existing) => init_logic.merge_prettier_config(existing, PROJECT_ROOT)
|
|
573
|
+
),
|
|
574
|
+
build_playwright_action(),
|
|
575
|
+
...build_config_file_actions().filter(
|
|
576
|
+
(action) => shape?.has_git !== false || action.dest !== LEFTHOOK_PATH
|
|
577
|
+
),
|
|
578
|
+
...session_language_environment.build_session_lang_actions()
|
|
579
|
+
];
|
|
580
|
+
}
|
|
581
|
+
var init_actions = { build_file_actions, read_package_json };
|
|
582
|
+
|
|
583
|
+
// scripts/init/project-profile.ts
|
|
584
|
+
import { existsSync as existsSync8, readdirSync as readdirSync3 } from "node:fs";
|
|
585
|
+
import path14 from "node:path";
|
|
586
|
+
import { z as z4 } from "zod";
|
|
587
|
+
|
|
588
|
+
// scripts/safe-chain/pack-hook.ts
|
|
589
|
+
import { existsSync as existsSync3, readFileSync as readFileSync5, rmSync } from "node:fs";
|
|
590
|
+
import path6 from "node:path";
|
|
591
|
+
import { z as z3 } from "zod";
|
|
592
|
+
var PACK_HOOK_FILE = ".pnpmfile.mjs";
|
|
593
|
+
var MANAGED_LINE = "// josh-managed-pnpmfile: @joshuafolkken/kit";
|
|
594
|
+
var LEGACY_HOOK_FILE = ".pnpmfile.cjs";
|
|
595
|
+
var CONFIG_FILES = ["pnpm-workspace.yaml", ".npmrc"];
|
|
596
|
+
var PNPMFILE_SETTINGS = /* @__PURE__ */ new Set(["pnpmfile", "pnpmfiles"]);
|
|
597
|
+
var SETTING_KEY_END = /[\s:=]/u;
|
|
598
|
+
var manifest_schema = z3.looseObject({ private: z3.boolean().optional() });
|
|
599
|
+
function is_published(manifest_text) {
|
|
600
|
+
return manifest_schema.parse(JSON.parse(manifest_text)).private !== true;
|
|
601
|
+
}
|
|
602
|
+
function sets_pnpmfile(config_text) {
|
|
603
|
+
return config_text.split("\n").some((line) => PNPMFILE_SETTINGS.has(line.trimStart().split(SETTING_KEY_END, 1)[0] ?? ""));
|
|
604
|
+
}
|
|
605
|
+
function has_own_hook_source(project_root) {
|
|
606
|
+
if (existsSync3(path6.join(project_root, LEGACY_HOOK_FILE))) return true;
|
|
607
|
+
return CONFIG_FILES.some(
|
|
608
|
+
(name) => sets_pnpmfile(file_reader.read_file_or_empty(path6.join(project_root, name)))
|
|
609
|
+
);
|
|
610
|
+
}
|
|
611
|
+
function write_hook(destination, package_directory) {
|
|
612
|
+
const source = readFileSync5(path6.join(package_directory, PACK_HOOK_FILE), "utf8");
|
|
613
|
+
return file_content.write_text_if_changed(destination, source) ? "written" : "unchanged";
|
|
614
|
+
}
|
|
615
|
+
function withdraw(destination, existing) {
|
|
616
|
+
if (existing === void 0) return "owned";
|
|
617
|
+
rmSync(destination);
|
|
618
|
+
return "withdrawn";
|
|
619
|
+
}
|
|
620
|
+
function apply(project_root, package_directory) {
|
|
621
|
+
const destination = path6.join(project_root, PACK_HOOK_FILE);
|
|
622
|
+
const existing = file_reader.read_optional(destination);
|
|
623
|
+
if (existing !== void 0 && !existing.startsWith(MANAGED_LINE)) return "owned";
|
|
624
|
+
if (has_own_hook_source(project_root)) return withdraw(destination, existing);
|
|
625
|
+
return write_hook(destination, package_directory);
|
|
626
|
+
}
|
|
627
|
+
var MESSAGES = {
|
|
628
|
+
written: ` \u2714 synced ${PACK_HOOK_FILE} (run \`pnpm install\` to refresh pnpmfileChecksum)`,
|
|
629
|
+
unchanged: ` \u2714 unchanged ${PACK_HOOK_FILE}`,
|
|
630
|
+
private: void 0,
|
|
631
|
+
owned: ` \u26A0 skipped ${PACK_HOOK_FILE} \u2014 the project has its own pnpmfile; strip the safe-chain preinstall at pack time there`,
|
|
632
|
+
withdrawn: ` \u26A0 removed ${PACK_HOOK_FILE} \u2014 it shadowed the project's own pnpmfile; strip the safe-chain preinstall at pack time there`
|
|
633
|
+
};
|
|
634
|
+
function sync_pack_hook(project_root, package_directory) {
|
|
635
|
+
const manifest_text = file_reader.read_optional(package_manifest.manifest_path(project_root));
|
|
636
|
+
const is_private = manifest_text === void 0 || !is_published(manifest_text);
|
|
637
|
+
const result = is_private ? "private" : apply(project_root, package_directory);
|
|
638
|
+
const message = MESSAGES[result];
|
|
639
|
+
if (message !== void 0) console.info(message);
|
|
640
|
+
return result;
|
|
641
|
+
}
|
|
642
|
+
var pack_hook = { MANAGED_LINE, sync_pack_hook };
|
|
643
|
+
|
|
644
|
+
// scripts/init/init-ai-copy.ts
|
|
645
|
+
import { existsSync as existsSync6, readFileSync as readFileSync9 } from "node:fs";
|
|
646
|
+
import path12 from "node:path";
|
|
647
|
+
|
|
648
|
+
// scripts/claude/workflow-destination.ts
|
|
649
|
+
var WORKFLOW_DESTINATION_PATTERN = /(?:^|[/\\])\.github[/\\]workflows[/\\][^/\\]+\.ya?ml$/u;
|
|
650
|
+
var COMPOSITE_ACTION_DESTINATION_PATTERN = /(?:^|[/\\])\.github[/\\]actions[/\\][^/\\]+[/\\]action\.ya?ml$/u;
|
|
651
|
+
function is_workflow_destination(destination) {
|
|
652
|
+
return WORKFLOW_DESTINATION_PATTERN.test(destination) || COMPOSITE_ACTION_DESTINATION_PATTERN.test(destination);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
// scripts/managed-marker/managed-marker-logic.ts
|
|
656
|
+
var MARKER_TOKEN = "josh-managed-workflow:";
|
|
657
|
+
var MARKER_PREFIX = `# ${MARKER_TOKEN}`;
|
|
658
|
+
var MARKER_NOTE = "Overwritten on every sync of that package. Edit it there, not here.";
|
|
659
|
+
function marker_block(package_name) {
|
|
660
|
+
return `${MARKER_PREFIX} ${package_name}
|
|
661
|
+
# ${MARKER_NOTE}
|
|
662
|
+
`;
|
|
663
|
+
}
|
|
664
|
+
function is_marked(text) {
|
|
665
|
+
return text.startsWith(MARKER_PREFIX);
|
|
666
|
+
}
|
|
667
|
+
function apply_marker_for_destination(destination, text, package_name) {
|
|
668
|
+
if (!is_workflow_destination(destination) || is_marked(text)) return text;
|
|
669
|
+
return `${marker_block(package_name)}${text}`;
|
|
670
|
+
}
|
|
671
|
+
var managed_marker_logic = {
|
|
672
|
+
MARKER_TOKEN,
|
|
673
|
+
MARKER_PREFIX,
|
|
674
|
+
is_marked,
|
|
675
|
+
apply_marker_for_destination
|
|
676
|
+
};
|
|
677
|
+
|
|
678
|
+
// scripts/sync/directory-copy-guard.ts
|
|
679
|
+
import { cpSync, lstatSync as lstatSync2, readdirSync as readdirSync2, readFileSync as readFileSync7 } from "node:fs";
|
|
680
|
+
import path10 from "node:path";
|
|
681
|
+
|
|
682
|
+
// scripts/sync/workflow-pin-logic.ts
|
|
683
|
+
import { readdirSync, readFileSync as readFileSync6 } from "node:fs";
|
|
684
|
+
import path7 from "node:path";
|
|
685
|
+
var RUNTIME_WORKFLOWS_DIR = ".github/workflows";
|
|
686
|
+
var TEMPLATE_WORKFLOWS_DIR = "templates/workflows";
|
|
687
|
+
var USES_KEY = "uses:";
|
|
688
|
+
var YAML_PATTERN = /\.ya?ml$/u;
|
|
689
|
+
var SYNC_HINT = " Run `pnpm josh sync-workflow-pins` to sync template workflow pins.";
|
|
690
|
+
function parse_uses_line(line) {
|
|
691
|
+
const key_index = line.indexOf(USES_KEY);
|
|
692
|
+
if (key_index === -1 || line.slice(0, key_index).trim() !== "") return void 0;
|
|
693
|
+
const value = line.slice(key_index + USES_KEY.length).trim();
|
|
694
|
+
const at_index = value.indexOf("@");
|
|
695
|
+
if (at_index === -1) return void 0;
|
|
696
|
+
return { name: value.slice(0, at_index), ref: value.slice(at_index + 1) };
|
|
697
|
+
}
|
|
698
|
+
function conflict_message(name, existing, found, file) {
|
|
699
|
+
return `Action ${name} pinned to conflicting refs in .github/workflows: "${existing}" vs "${found}" (${file})`;
|
|
700
|
+
}
|
|
701
|
+
function add_pin(pins, pin, file) {
|
|
702
|
+
const existing = pins.get(pin.name);
|
|
703
|
+
if (existing !== void 0 && existing !== pin.ref) {
|
|
704
|
+
throw new Error(conflict_message(pin.name, existing, pin.ref, file));
|
|
705
|
+
}
|
|
706
|
+
pins.set(pin.name, pin.ref);
|
|
707
|
+
}
|
|
708
|
+
function collect_into(pins, source) {
|
|
709
|
+
for (const line of source.text.split("\n")) {
|
|
710
|
+
const pin = parse_uses_line(line);
|
|
711
|
+
if (pin) add_pin(pins, pin, source.file);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
function collect_canonical(sources) {
|
|
715
|
+
const pins = /* @__PURE__ */ new Map();
|
|
716
|
+
for (const source of sources) collect_into(pins, source);
|
|
717
|
+
return pins;
|
|
718
|
+
}
|
|
719
|
+
function drift_for_line(template, line, index, canonical) {
|
|
720
|
+
const pin = parse_uses_line(line);
|
|
721
|
+
if (!pin) return void 0;
|
|
722
|
+
const want = canonical.get(pin.name);
|
|
723
|
+
if (want === void 0 || want === pin.ref) return void 0;
|
|
724
|
+
return { template, line: index + 1, action: pin.name, from: pin.ref, to: want };
|
|
725
|
+
}
|
|
726
|
+
function find_drift_in_text(template, text, canonical) {
|
|
727
|
+
const drifts = [];
|
|
728
|
+
for (const [index, line] of text.split("\n").entries()) {
|
|
729
|
+
const drift = drift_for_line(template, line, index, canonical);
|
|
730
|
+
if (drift) drifts.push(drift);
|
|
731
|
+
}
|
|
732
|
+
return drifts;
|
|
733
|
+
}
|
|
734
|
+
function rewrite_line(line, canonical) {
|
|
735
|
+
const pin = parse_uses_line(line);
|
|
736
|
+
if (!pin) return line;
|
|
737
|
+
const want = canonical.get(pin.name);
|
|
738
|
+
if (want === void 0 || want === pin.ref) return line;
|
|
739
|
+
const key_index = line.indexOf(USES_KEY);
|
|
740
|
+
return `${line.slice(0, key_index)}${USES_KEY} ${pin.name}@${want}`;
|
|
741
|
+
}
|
|
742
|
+
function apply_to_text(text, canonical) {
|
|
743
|
+
return text.split("\n").map((line) => rewrite_line(line, canonical)).join("\n");
|
|
744
|
+
}
|
|
745
|
+
function read_source(relative_directory, name) {
|
|
746
|
+
const file = path7.join(relative_directory, name);
|
|
747
|
+
return { file, text: readFileSync6(package_path(file), "utf8") };
|
|
748
|
+
}
|
|
749
|
+
function list_workflow_sources(relative_directory) {
|
|
750
|
+
return readdirSync(package_path(relative_directory)).filter((name) => YAML_PATTERN.test(name)).toSorted((left, right) => left.localeCompare(right)).map((name) => read_source(relative_directory, name));
|
|
751
|
+
}
|
|
752
|
+
function list_composite_action_sources() {
|
|
753
|
+
return composite_actions.list(package_path).map((file) => ({ file, text: readFileSync6(package_path(file), "utf8") }));
|
|
754
|
+
}
|
|
755
|
+
function build_canonical_pins() {
|
|
756
|
+
return collect_canonical([
|
|
757
|
+
...list_workflow_sources(RUNTIME_WORKFLOWS_DIR),
|
|
758
|
+
...list_composite_action_sources()
|
|
759
|
+
]);
|
|
760
|
+
}
|
|
761
|
+
function unknown_actions_in_source(source, canonical) {
|
|
762
|
+
const unknown = [];
|
|
763
|
+
for (const [index, line] of source.text.split("\n").entries()) {
|
|
764
|
+
const pin = parse_uses_line(line);
|
|
765
|
+
if (pin && !canonical.has(pin.name)) {
|
|
766
|
+
unknown.push({ template: source.file, line: index + 1, action: pin.name });
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
return unknown;
|
|
770
|
+
}
|
|
771
|
+
function apply_pins_for_destination(destination, text) {
|
|
772
|
+
if (!is_workflow_destination(destination)) return text;
|
|
773
|
+
return apply_to_text(text, build_canonical_pins());
|
|
774
|
+
}
|
|
775
|
+
function scan_templates(scan) {
|
|
776
|
+
const canonical = build_canonical_pins();
|
|
777
|
+
return list_workflow_sources(TEMPLATE_WORKFLOWS_DIR).flatMap((source) => scan(source, canonical));
|
|
778
|
+
}
|
|
779
|
+
function find_unknown_template_actions() {
|
|
780
|
+
return scan_templates(unknown_actions_in_source);
|
|
781
|
+
}
|
|
782
|
+
function format_drift_message(drifts) {
|
|
783
|
+
const lines = drifts.map(
|
|
784
|
+
(drift) => ` - ${drift.template}:${String(drift.line)} ${drift.action}: ${drift.from} \u2192 ${drift.to}`
|
|
785
|
+
);
|
|
786
|
+
return [
|
|
787
|
+
"\u2716 Template workflow action pins drifted from .github/workflows:",
|
|
788
|
+
...lines,
|
|
789
|
+
SYNC_HINT
|
|
790
|
+
].join("\n");
|
|
791
|
+
}
|
|
792
|
+
var workflow_pin_logic = {
|
|
793
|
+
RUNTIME_WORKFLOWS_DIR,
|
|
794
|
+
parse_uses_line,
|
|
795
|
+
collect_canonical,
|
|
796
|
+
find_drift_in_text,
|
|
797
|
+
apply_to_text,
|
|
798
|
+
is_workflow_destination,
|
|
799
|
+
apply_pins_for_destination,
|
|
800
|
+
build_canonical_pins,
|
|
801
|
+
find_unknown_template_actions,
|
|
802
|
+
format_drift_message
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
// scripts/init/claude-plugin-config.ts
|
|
806
|
+
import path8 from "node:path";
|
|
807
|
+
var MARKETPLACE_NAME = "kit";
|
|
808
|
+
var PLUGIN_ID = "kit@kit";
|
|
809
|
+
var MARKETPLACE_PATH = "./node_modules/@joshuafolkken/kit";
|
|
810
|
+
var CLAUDE_SETTINGS_DESTINATION = path8.join(".claude", "settings.json");
|
|
811
|
+
var PLUGIN_SETTINGS = {
|
|
812
|
+
extraKnownMarketplaces: {
|
|
813
|
+
[MARKETPLACE_NAME]: { source: { source: "directory", path: MARKETPLACE_PATH } }
|
|
814
|
+
},
|
|
815
|
+
enabledPlugins: { [PLUGIN_ID]: true }
|
|
816
|
+
};
|
|
817
|
+
function inject_plugin_config(content) {
|
|
818
|
+
return init_logic_json_merge.merge_json_object(content, PLUGIN_SETTINGS);
|
|
819
|
+
}
|
|
820
|
+
function apply_plugin_config_for_destination(destination_path, content) {
|
|
821
|
+
return destination_path.endsWith(CLAUDE_SETTINGS_DESTINATION) ? inject_plugin_config(content) : content;
|
|
822
|
+
}
|
|
823
|
+
var claude_plugin_config = {
|
|
824
|
+
PLUGIN_ID,
|
|
825
|
+
MARKETPLACE_PATH,
|
|
826
|
+
CLAUDE_SETTINGS_DESTINATION,
|
|
827
|
+
inject_plugin_config,
|
|
828
|
+
apply_plugin_config_for_destination
|
|
829
|
+
};
|
|
830
|
+
|
|
831
|
+
// scripts/init/claude-kit-only-settings.ts
|
|
832
|
+
var KIT_ONLY_SETTING_KEYS = ["enableArtifact"];
|
|
833
|
+
function strip_kit_only_settings(content) {
|
|
834
|
+
let stripped = content;
|
|
835
|
+
for (const key of KIT_ONLY_SETTING_KEYS) stripped = patch_json_key.remove_json_key(stripped, key);
|
|
836
|
+
return stripped;
|
|
837
|
+
}
|
|
838
|
+
function apply_kit_only_strip_for_destination(destination_path, content) {
|
|
839
|
+
return destination_path.endsWith(claude_plugin_config.CLAUDE_SETTINGS_DESTINATION) ? strip_kit_only_settings(content) : content;
|
|
840
|
+
}
|
|
841
|
+
var claude_kit_only_settings = {
|
|
842
|
+
KIT_ONLY_SETTING_KEYS,
|
|
843
|
+
strip_kit_only_settings,
|
|
844
|
+
apply_kit_only_strip_for_destination
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
// scripts/init/hook-command-rewrite.ts
|
|
848
|
+
var PNPM_JOSH_PREFIX = "pnpm josh ";
|
|
849
|
+
var { MARKETPLACE_PATH: MARKETPLACE_PATH2 } = claude_plugin_config;
|
|
850
|
+
var PACKAGE_PATH = MARKETPLACE_PATH2.replace(/^\.\//u, "");
|
|
851
|
+
var INSTALLED_LAUNCHER = `${PACKAGE_PATH}/${hook_launch.RUN_HOOK_SCRIPT}`;
|
|
852
|
+
var INSTALLED_DISPATCHER = `${PACKAGE_PATH}/dist/josh.js`;
|
|
853
|
+
var INSTALLED_MANIFEST = `${PACKAGE_PATH}/package.json`;
|
|
854
|
+
var MISSING_INSTALL_NOTICE = "kit hooks inactive: run pnpm install, then reread CLAUDE.md";
|
|
855
|
+
var CODEX_HOOKS_DESTINATION = ".codex/hooks.json";
|
|
856
|
+
var RELATIVE_RUN_HOOK_INVOCATION = `sh ${hook_launch.RUN_HOOK_SCRIPT} `;
|
|
857
|
+
var RELATIVE_CONSUMER_RUN_HOOK_INVOCATION = `sh ${MARKETPLACE_PATH2}/${hook_launch.RUN_HOOK_SCRIPT} `;
|
|
858
|
+
var RELATIVE_BUNDLE_INVOCATION = `node ${MARKETPLACE_PATH2}/dist/josh.js `;
|
|
859
|
+
var RELATIVE_INSTALL_GUARD = `if [ ! -f ${MARKETPLACE_PATH2}/package.json ]; then echo '${MISSING_INSTALL_NOTICE}' >&2; exit 0; fi; `;
|
|
860
|
+
var LOCATION_VARIABLES = "GIT_ALTERNATE_OBJECT_DIRECTORIES GIT_COMMON_DIR GIT_DIR GIT_INDEX_FILE GIT_NAMESPACE GIT_OBJECT_DIRECTORY GIT_WORK_TREE";
|
|
861
|
+
var ROOT_LOOKUP = "git rev-parse --show-toplevel";
|
|
862
|
+
var LOCATION_FREE_ROOT = `$( (unset ${LOCATION_VARIABLES}; ${ROOT_LOOKUP} 2>/dev/null) || ${ROOT_LOOKUP})`;
|
|
863
|
+
var ROOT_PREFIXES = [
|
|
864
|
+
`export JOSH_HOOK_CWD="$PWD" && project_root="\${CLAUDE_PROJECT_DIR:-${LOCATION_FREE_ROOT}}" && cd "$project_root" && `,
|
|
865
|
+
`project_root="\${CLAUDE_PROJECT_DIR:-${LOCATION_FREE_ROOT}}" && cd "$project_root" && `,
|
|
866
|
+
`if project_root="$(unset ${LOCATION_VARIABLES}; ${ROOT_LOOKUP} 2>/dev/null)"; then unset ${LOCATION_VARIABLES}; else project_root="$(${ROOT_LOOKUP})"; fi && cd "$project_root" && `
|
|
867
|
+
];
|
|
868
|
+
var PLAIN_KIT_COMMANDS = new Set(
|
|
869
|
+
[
|
|
870
|
+
"audit:provision",
|
|
871
|
+
"batch:guard",
|
|
872
|
+
"format:edited",
|
|
873
|
+
"investigation:guard",
|
|
874
|
+
"rule:guard",
|
|
875
|
+
"session:lang"
|
|
876
|
+
].map((command) => `${PNPM_JOSH_PREFIX}${command}`)
|
|
877
|
+
);
|
|
878
|
+
var KIT_COMMAND_MARKERS = [
|
|
879
|
+
`/${hook_launch.RUN_HOOK_SCRIPT}" `,
|
|
880
|
+
`/${INSTALLED_DISPATCHER}" `,
|
|
881
|
+
RELATIVE_RUN_HOOK_INVOCATION,
|
|
882
|
+
RELATIVE_CONSUMER_RUN_HOOK_INVOCATION,
|
|
883
|
+
RELATIVE_BUNDLE_INVOCATION
|
|
884
|
+
];
|
|
885
|
+
var COMMAND_FIELD = /("command":\s*")((?:[^"\\]|\\.)*)(")/gu;
|
|
886
|
+
function install_guard(root) {
|
|
887
|
+
const manifest = hook_launch.rooted_path(root, INSTALLED_MANIFEST);
|
|
888
|
+
return `if [ ! -f ${manifest} ]; then echo '${MISSING_INSTALL_NOTICE}' >&2; exit 0; fi; `;
|
|
889
|
+
}
|
|
890
|
+
function launch_part(command, root) {
|
|
891
|
+
const prefix = ROOT_PREFIXES.find((candidate) => command.startsWith(candidate)) ?? "";
|
|
892
|
+
const launch = command.slice(prefix.length);
|
|
893
|
+
const guard = [RELATIVE_INSTALL_GUARD, install_guard(root)].find(
|
|
894
|
+
(candidate) => launch.startsWith(candidate)
|
|
895
|
+
);
|
|
896
|
+
return launch.slice(guard?.length ?? 0);
|
|
897
|
+
}
|
|
898
|
+
function rebased(launch, root) {
|
|
899
|
+
const consumer_launch = `sh ${hook_launch.rooted_path(root, INSTALLED_LAUNCHER)} `;
|
|
900
|
+
const bundle_launch = `node ${hook_launch.rooted_path(root, INSTALLED_DISPATCHER)} `;
|
|
901
|
+
const replacements = [
|
|
902
|
+
[`sh ${hook_launch.rooted_path(root, hook_launch.RUN_HOOK_SCRIPT)} `, consumer_launch],
|
|
903
|
+
[RELATIVE_CONSUMER_RUN_HOOK_INVOCATION, consumer_launch],
|
|
904
|
+
[RELATIVE_RUN_HOOK_INVOCATION, consumer_launch],
|
|
905
|
+
[RELATIVE_BUNDLE_INVOCATION, bundle_launch],
|
|
906
|
+
[PNPM_JOSH_PREFIX, bundle_launch]
|
|
907
|
+
];
|
|
908
|
+
let text = launch;
|
|
909
|
+
for (const [from, to] of replacements) text = text.split(from).join(to);
|
|
910
|
+
return text;
|
|
911
|
+
}
|
|
912
|
+
function rewrite_command(command, root) {
|
|
913
|
+
const rewritten = rebased(launch_part(command, root), root);
|
|
914
|
+
return rewritten.includes(PACKAGE_PATH) ? `${install_guard(root)}${rewritten}` : rewritten;
|
|
915
|
+
}
|
|
916
|
+
function rewrite_command_value(value, root) {
|
|
917
|
+
const command = JSON.parse(`"${value}"`);
|
|
918
|
+
const rewritten = rewrite_command(command, root);
|
|
919
|
+
return rewritten === command ? value : JSON.stringify(rewritten).slice(1, -1);
|
|
920
|
+
}
|
|
921
|
+
function rewrite_hook_commands(content, is_codex = false) {
|
|
922
|
+
const root = is_codex ? hook_launch.CODEX_ROOT : hook_launch.CLAUDE_ROOT;
|
|
923
|
+
return content.replaceAll(
|
|
924
|
+
COMMAND_FIELD,
|
|
925
|
+
(_match, open, value, close) => `${open}${rewrite_command_value(value, root)}${close}`
|
|
926
|
+
);
|
|
927
|
+
}
|
|
928
|
+
function apply_hook_command_rewrite_for_destination(destination_path, content) {
|
|
929
|
+
if (destination_path.endsWith(CODEX_HOOKS_DESTINATION)) {
|
|
930
|
+
return rewrite_hook_commands(content, true);
|
|
931
|
+
}
|
|
932
|
+
if (destination_path.endsWith(claude_plugin_config.CLAUDE_SETTINGS_DESTINATION)) {
|
|
933
|
+
return rewrite_hook_commands(content);
|
|
934
|
+
}
|
|
935
|
+
return content;
|
|
936
|
+
}
|
|
937
|
+
function is_kit_hook_command(command) {
|
|
938
|
+
if (PLAIN_KIT_COMMANDS.has(command)) return true;
|
|
939
|
+
return KIT_COMMAND_MARKERS.some((marker) => command.includes(marker));
|
|
940
|
+
}
|
|
941
|
+
var hook_command_rewrite = {
|
|
942
|
+
apply_hook_command_rewrite_for_destination,
|
|
943
|
+
is_kit_hook_command,
|
|
944
|
+
rewrite_hook_commands
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
// scripts/init/security-policy.ts
|
|
948
|
+
import path9 from "node:path";
|
|
949
|
+
var SECURITY_MD = "SECURITY.md";
|
|
950
|
+
var SECURITY_TEMPLATE = "templates/SECURITY.md";
|
|
951
|
+
var REPOSITORY_PLACEHOLDER = "{{REPOSITORY}}";
|
|
952
|
+
var KIT_ADVISORY_URL = "https://github.com/joshuafolkken/kit/security/advisories/new";
|
|
953
|
+
var UNRESOLVED_REASON = "`origin` is not a GitHub repository `owner/repo` can be read from";
|
|
954
|
+
var LINK_DELIMITER = /[\s()<>[\]]+/u;
|
|
955
|
+
function repository_at(root) {
|
|
956
|
+
const url = git_spawn_sync.origin_url(root);
|
|
957
|
+
const identity = url === void 0 ? void 0 : repo_origin.parse_origin_url(url);
|
|
958
|
+
return identity === void 0 ? void 0 : `${identity.owner}/${identity.repo}`;
|
|
959
|
+
}
|
|
960
|
+
function apply_repository(content, repository) {
|
|
961
|
+
return content.replaceAll(REPOSITORY_PLACEHOLDER, () => repository);
|
|
962
|
+
}
|
|
963
|
+
function apply_repository_for_destination(destination_path, content) {
|
|
964
|
+
if (path9.basename(destination_path) !== SECURITY_MD) return content;
|
|
965
|
+
const repository = repository_at(path9.dirname(destination_path));
|
|
966
|
+
if (repository === void 0) {
|
|
967
|
+
throw new Error(`${SECURITY_MD} needs a GitHub origin to name the repository it reports to`);
|
|
968
|
+
}
|
|
969
|
+
return apply_repository(content, repository);
|
|
970
|
+
}
|
|
971
|
+
function does_report_to_kit(root) {
|
|
972
|
+
const existing = file_reader.read_if_readable(path9.join(root, SECURITY_MD)) ?? "";
|
|
973
|
+
return new Set(existing.split(LINK_DELIMITER)).has(KIT_ADVISORY_URL);
|
|
974
|
+
}
|
|
975
|
+
function unresolved_warning(root) {
|
|
976
|
+
if (!does_report_to_kit(root)) return ` \u26A0 skipped ${SECURITY_MD} (${UNRESOLVED_REASON})`;
|
|
977
|
+
return ` \u26A0 stale ${SECURITY_MD} still reports vulnerabilities to joshuafolkken/kit \u2014 replace it with your own policy or delete it (${UNRESOLVED_REASON})`;
|
|
978
|
+
}
|
|
979
|
+
function did_skip_unresolved(filename, root) {
|
|
980
|
+
if (filename !== SECURITY_MD || repository_at(root) !== void 0) return false;
|
|
981
|
+
console.warn(unresolved_warning(root));
|
|
982
|
+
return true;
|
|
983
|
+
}
|
|
984
|
+
var security_policy = {
|
|
985
|
+
SECURITY_MD,
|
|
986
|
+
SECURITY_TEMPLATE,
|
|
987
|
+
REPOSITORY_PLACEHOLDER,
|
|
988
|
+
KIT_ADVISORY_URL,
|
|
989
|
+
repository_at,
|
|
990
|
+
apply_repository_for_destination,
|
|
991
|
+
did_skip_unresolved
|
|
992
|
+
};
|
|
993
|
+
|
|
994
|
+
// scripts/init/init-copy-content.ts
|
|
995
|
+
function transform_copied_content(destination_path, content) {
|
|
996
|
+
const with_paths = init_logic.transform_distributed_paths(content);
|
|
997
|
+
const with_pins = workflow_pin_logic.apply_pins_for_destination(destination_path, with_paths);
|
|
998
|
+
const with_marker = managed_marker_logic.apply_marker_for_destination(
|
|
999
|
+
destination_path,
|
|
1000
|
+
with_pins,
|
|
1001
|
+
KIT_PACKAGE_NAME
|
|
1002
|
+
);
|
|
1003
|
+
const with_kit_only_stripped = claude_kit_only_settings.apply_kit_only_strip_for_destination(
|
|
1004
|
+
destination_path,
|
|
1005
|
+
with_marker
|
|
1006
|
+
);
|
|
1007
|
+
const with_plugin = claude_plugin_config.apply_plugin_config_for_destination(
|
|
1008
|
+
destination_path,
|
|
1009
|
+
with_kit_only_stripped
|
|
1010
|
+
);
|
|
1011
|
+
const with_hooks = hook_command_rewrite.apply_hook_command_rewrite_for_destination(
|
|
1012
|
+
destination_path,
|
|
1013
|
+
with_plugin
|
|
1014
|
+
);
|
|
1015
|
+
return security_policy.apply_repository_for_destination(destination_path, with_hooks);
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
// scripts/sync/directory-copy-guard.ts
|
|
1019
|
+
function classify_path(candidate_path) {
|
|
1020
|
+
try {
|
|
1021
|
+
return lstatSync2(candidate_path).isDirectory() ? "directory" : "other";
|
|
1022
|
+
} catch (error) {
|
|
1023
|
+
return file_reader.is_absent(error) ? "absent" : "other";
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
function directory_copy_blocker(source_path, destination_path) {
|
|
1027
|
+
if (classify_path(source_path) !== "directory") return "missing from the installed package";
|
|
1028
|
+
if (path10.resolve(source_path) === path10.resolve(destination_path)) {
|
|
1029
|
+
return "already the package's own copy";
|
|
1030
|
+
}
|
|
1031
|
+
return classify_path(destination_path) === "other" ? "destination is not a directory" : void 0;
|
|
1032
|
+
}
|
|
1033
|
+
var TRANSFORMED_EXTENSION = ".md";
|
|
1034
|
+
function is_regular_file(candidate_path) {
|
|
1035
|
+
try {
|
|
1036
|
+
return lstatSync2(candidate_path).isFile();
|
|
1037
|
+
} catch {
|
|
1038
|
+
return false;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
function is_transformable(candidate_path) {
|
|
1042
|
+
return candidate_path.endsWith(TRANSFORMED_EXTENSION) && is_regular_file(candidate_path);
|
|
1043
|
+
}
|
|
1044
|
+
function transform_copied_file(file_path) {
|
|
1045
|
+
const content = readFileSync7(file_path, "utf8");
|
|
1046
|
+
const transformed = transform_copied_content(file_path, content);
|
|
1047
|
+
if (transformed !== content) file_content.write_contained(file_path, transformed);
|
|
1048
|
+
}
|
|
1049
|
+
function transform_copied_tree(source_path, destination_path) {
|
|
1050
|
+
const entries = readdirSync2(source_path, { encoding: "utf8", recursive: true });
|
|
1051
|
+
for (const entry of entries) {
|
|
1052
|
+
if (!is_transformable(path10.join(source_path, entry))) continue;
|
|
1053
|
+
transform_copied_file(path10.join(destination_path, entry));
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
function should_copy_entry(source_path, destination_path) {
|
|
1057
|
+
if (!is_regular_file(source_path)) return true;
|
|
1058
|
+
if (classify_path(destination_path) === "directory") {
|
|
1059
|
+
throw new Error("destination is a directory where the package has a file");
|
|
1060
|
+
}
|
|
1061
|
+
const source_content = readFileSync7(source_path);
|
|
1062
|
+
const content = source_path.endsWith(TRANSFORMED_EXTENSION) ? transform_copied_content(destination_path, source_content.toString("utf8")) : source_content;
|
|
1063
|
+
return !file_content.is_same_file_content(destination_path, content);
|
|
1064
|
+
}
|
|
1065
|
+
function is_changed_entry(source_entry, destination_entry, root) {
|
|
1066
|
+
if (source_entry === root) return false;
|
|
1067
|
+
if (is_regular_file(source_entry)) return true;
|
|
1068
|
+
return classify_path(destination_entry) === "absent";
|
|
1069
|
+
}
|
|
1070
|
+
function copy_directory(source_path, destination_path) {
|
|
1071
|
+
let did_change = false;
|
|
1072
|
+
cpSync(source_path, destination_path, {
|
|
1073
|
+
recursive: true,
|
|
1074
|
+
filter: (source_entry, destination_entry) => {
|
|
1075
|
+
const should_copy = should_copy_entry(source_entry, destination_entry);
|
|
1076
|
+
if (should_copy && is_changed_entry(source_entry, destination_entry, source_path)) {
|
|
1077
|
+
did_change = true;
|
|
1078
|
+
}
|
|
1079
|
+
return should_copy;
|
|
1080
|
+
}
|
|
1081
|
+
});
|
|
1082
|
+
return did_change;
|
|
1083
|
+
}
|
|
1084
|
+
function failure_message(prefix, error) {
|
|
1085
|
+
return `${prefix} (${error_text.message_of(error)})`;
|
|
1086
|
+
}
|
|
1087
|
+
function copy_directory_failure(source_path, destination_path, on_copy) {
|
|
1088
|
+
let did_change = false;
|
|
1089
|
+
try {
|
|
1090
|
+
did_change ||= copy_directory(source_path, destination_path);
|
|
1091
|
+
} catch (error) {
|
|
1092
|
+
return failure_message("copy failed", error);
|
|
1093
|
+
}
|
|
1094
|
+
try {
|
|
1095
|
+
transform_copied_tree(source_path, destination_path);
|
|
1096
|
+
} catch (error) {
|
|
1097
|
+
return failure_message("copied but left partly un-rewritten \u2014 re-run the sync", error);
|
|
1098
|
+
}
|
|
1099
|
+
on_copy?.(did_change);
|
|
1100
|
+
return void 0;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
// scripts/init/init-sonar.ts
|
|
1104
|
+
import { existsSync as existsSync5 } from "node:fs";
|
|
1105
|
+
import path11 from "node:path";
|
|
1106
|
+
|
|
1107
|
+
// scripts/security/sonar-file.ts
|
|
1108
|
+
import { existsSync as existsSync4, readFileSync as readFileSync8 } from "node:fs";
|
|
1109
|
+
function write_sonar_file(template_source, destination_path, identifiers) {
|
|
1110
|
+
const content = init_logic.apply_sonar_template(
|
|
1111
|
+
readFileSync8(template_source, "utf8"),
|
|
1112
|
+
identifiers.project_key,
|
|
1113
|
+
identifiers.organization
|
|
1114
|
+
);
|
|
1115
|
+
file_content.write_contained(destination_path, content);
|
|
1116
|
+
}
|
|
1117
|
+
function merge_sonar_file(template_source, destination_path, identifiers) {
|
|
1118
|
+
if (!existsSync4(destination_path)) {
|
|
1119
|
+
write_sonar_file(template_source, destination_path, identifiers);
|
|
1120
|
+
return;
|
|
1121
|
+
}
|
|
1122
|
+
const template_content = init_logic.apply_sonar_template(
|
|
1123
|
+
readFileSync8(template_source, "utf8"),
|
|
1124
|
+
identifiers.project_key,
|
|
1125
|
+
identifiers.organization
|
|
1126
|
+
);
|
|
1127
|
+
const existing = readFileSync8(destination_path, "utf8");
|
|
1128
|
+
file_content.write_contained(
|
|
1129
|
+
destination_path,
|
|
1130
|
+
init_logic.merge_sonar_properties(existing, template_content)
|
|
1131
|
+
);
|
|
1132
|
+
}
|
|
1133
|
+
var sonar_file = { write_sonar_file, merge_sonar_file };
|
|
1134
|
+
|
|
1135
|
+
// scripts/init/init-sonar.ts
|
|
1136
|
+
function copy_sonar_with_template(name_with_owner) {
|
|
1137
|
+
const destination = init_logic.get_sonar_template_destination();
|
|
1138
|
+
if (name_with_owner === void 0) {
|
|
1139
|
+
console.warn(` \u26A0 skipped ${destination} (gh repo view failed)`);
|
|
1140
|
+
return;
|
|
1141
|
+
}
|
|
1142
|
+
const destination_path = path11.join(PROJECT_ROOT, destination);
|
|
1143
|
+
const is_existing = existsSync5(destination_path);
|
|
1144
|
+
const identifiers = init_logic.derive_sonar_identifiers(name_with_owner);
|
|
1145
|
+
sonar_file.merge_sonar_file(
|
|
1146
|
+
path11.join(PACKAGE_DIR, init_logic.get_sonar_template_source()),
|
|
1147
|
+
destination_path,
|
|
1148
|
+
identifiers
|
|
1149
|
+
);
|
|
1150
|
+
console.info(` \u2714 ${is_existing ? "updated" : "created"} ${destination}`);
|
|
1151
|
+
}
|
|
1152
|
+
var init_sonar = {
|
|
1153
|
+
copy_sonar_with_template
|
|
1154
|
+
};
|
|
1155
|
+
|
|
1156
|
+
// scripts/init/init-ai-copy.ts
|
|
1157
|
+
var WORKSPACE_YAML = "pnpm-workspace.yaml";
|
|
1158
|
+
var CLAUDE_MD_FILENAME = "CLAUDE.md";
|
|
1159
|
+
var BASIC_CLAUDE_IMPORT = "@node_modules/@joshuafolkken/kit/dist/CLAUDE.basic.md";
|
|
1160
|
+
var PRETTIER_IGNORE = ".prettierignore";
|
|
1161
|
+
var GIT_ATTRIBUTES = ".gitattributes";
|
|
1162
|
+
var CODE_OF_CONDUCT = "CODE_OF_CONDUCT.md";
|
|
1163
|
+
var { SECURITY_MD: SECURITY_MD2 } = security_policy;
|
|
1164
|
+
var AGENTS_MD = "AGENTS.md";
|
|
1165
|
+
var GEMINI_MD = "GEMINI.md";
|
|
1166
|
+
var BASIC_AI_FILES = [
|
|
1167
|
+
AGENTS_MD,
|
|
1168
|
+
GEMINI_MD,
|
|
1169
|
+
PRETTIER_IGNORE,
|
|
1170
|
+
GIT_ATTRIBUTES,
|
|
1171
|
+
CODE_OF_CONDUCT,
|
|
1172
|
+
SECURITY_MD2,
|
|
1173
|
+
WORKSPACE_YAML
|
|
1174
|
+
];
|
|
1175
|
+
var BASIC_SOURCES = {
|
|
1176
|
+
[AGENTS_MD]: "templates/AGENTS.basic.md",
|
|
1177
|
+
[GEMINI_MD]: "templates/GEMINI.basic.md",
|
|
1178
|
+
[PRETTIER_IGNORE]: "templates/prettierignore.basic",
|
|
1179
|
+
[WORKSPACE_YAML]: "templates/pnpm-workspace.basic.yaml"
|
|
1180
|
+
};
|
|
1181
|
+
var CONSUMER_SOURCES = {
|
|
1182
|
+
[SECURITY_MD2]: security_policy.SECURITY_TEMPLATE
|
|
1183
|
+
};
|
|
1184
|
+
var BASIC_WORKFLOW_AI_FILES = [...BASIC_AI_FILES, ".claude/settings.json"];
|
|
1185
|
+
var GITHUB_FILES = /* @__PURE__ */ new Set([CODE_OF_CONDUCT, SECURITY_MD2]);
|
|
1186
|
+
var BASIC_POINTER_MAPPING = { src: "templates/cursorrules.basic", dest: ".cursorrules" };
|
|
1187
|
+
var PULL_REQUEST_TEMPLATE = ".github/pull_request_template.md";
|
|
1188
|
+
var RELEASE_CONFIG = ".github/release.yml";
|
|
1189
|
+
var BASIC_GITHUB_MAPPINGS = [
|
|
1190
|
+
{ src: PULL_REQUEST_TEMPLATE, dest: PULL_REQUEST_TEMPLATE },
|
|
1191
|
+
{ src: RELEASE_CONFIG, dest: RELEASE_CONFIG }
|
|
1192
|
+
];
|
|
1193
|
+
function did_read_unstamped(destination_path) {
|
|
1194
|
+
try {
|
|
1195
|
+
return !managed_marker_logic.is_marked(readFileSync9(destination_path, "utf8"));
|
|
1196
|
+
} catch {
|
|
1197
|
+
return false;
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
function copied_content(source_path, destination_path) {
|
|
1201
|
+
return transform_copied_content(destination_path, readFileSync9(source_path, "utf8"));
|
|
1202
|
+
}
|
|
1203
|
+
function copy_ai_file(source_path, destination_path) {
|
|
1204
|
+
file_content.write_contained(destination_path, copied_content(source_path, destination_path));
|
|
1205
|
+
}
|
|
1206
|
+
function did_warn_unstamped_workflow(destination_path, label) {
|
|
1207
|
+
if (!is_workflow_destination(destination_path) || !did_read_unstamped(destination_path)) {
|
|
1208
|
+
return false;
|
|
1209
|
+
}
|
|
1210
|
+
console.warn(` \u26A0 ${label} has no managed-workflow header \u2014 run josh sync before merging bumps`);
|
|
1211
|
+
return true;
|
|
1212
|
+
}
|
|
1213
|
+
function did_skip_copy_if_absent(source_path, destination_path, label) {
|
|
1214
|
+
if (existsSync6(destination_path)) {
|
|
1215
|
+
console.info(` \u23ED skipped ${label} (already exists)`);
|
|
1216
|
+
did_warn_unstamped_workflow(destination_path, label);
|
|
1217
|
+
return true;
|
|
1218
|
+
}
|
|
1219
|
+
copy_ai_file(source_path, destination_path);
|
|
1220
|
+
console.info(` \u2714 created ${label}`);
|
|
1221
|
+
return false;
|
|
1222
|
+
}
|
|
1223
|
+
function read_workspace_template(source_path, destination_path) {
|
|
1224
|
+
const npmrc = file_reader.read_file_or_empty(path12.join(path12.dirname(destination_path), ".npmrc"));
|
|
1225
|
+
const distributed = init_logic.drop_kit_only_regions(readFileSync9(source_path, "utf8"));
|
|
1226
|
+
return init_logic.carry_npmrc_settings(distributed, npmrc);
|
|
1227
|
+
}
|
|
1228
|
+
function merge_existing_workspace_yaml(source_path, destination_path) {
|
|
1229
|
+
const template = read_workspace_template(source_path, destination_path);
|
|
1230
|
+
const existing = readFileSync9(destination_path, "utf8");
|
|
1231
|
+
const merged = init_logic.merge_workspace_yaml(existing, template);
|
|
1232
|
+
if (merged === existing) {
|
|
1233
|
+
console.info(` \u2714 unchanged ${WORKSPACE_YAML}`);
|
|
1234
|
+
return;
|
|
1235
|
+
}
|
|
1236
|
+
file_content.write_contained(destination_path, merged);
|
|
1237
|
+
console.info(` \u2714 updated ${WORKSPACE_YAML}`);
|
|
1238
|
+
}
|
|
1239
|
+
function workspace_content(source_path, destination_path) {
|
|
1240
|
+
return transform_copied_content(
|
|
1241
|
+
destination_path,
|
|
1242
|
+
read_workspace_template(source_path, destination_path)
|
|
1243
|
+
);
|
|
1244
|
+
}
|
|
1245
|
+
function did_skip_workspace_yaml_copy(source_path, destination_path) {
|
|
1246
|
+
if (existsSync6(destination_path)) {
|
|
1247
|
+
merge_existing_workspace_yaml(source_path, destination_path);
|
|
1248
|
+
return false;
|
|
1249
|
+
}
|
|
1250
|
+
file_content.write_contained(destination_path, workspace_content(source_path, destination_path));
|
|
1251
|
+
console.info(` \u2714 created ${WORKSPACE_YAML}`);
|
|
1252
|
+
return false;
|
|
1253
|
+
}
|
|
1254
|
+
function ai_file_source(filename, shape) {
|
|
1255
|
+
const basic_source = shape?.profile === "basic" ? BASIC_SOURCES[filename] : void 0;
|
|
1256
|
+
return basic_source ?? CONSUMER_SOURCES[filename] ?? filename;
|
|
1257
|
+
}
|
|
1258
|
+
function did_skip_ai_file_copy(filename, shape) {
|
|
1259
|
+
if (security_policy.did_skip_unresolved(filename, PROJECT_ROOT)) return false;
|
|
1260
|
+
const source_path = package_path(ai_file_source(filename, shape));
|
|
1261
|
+
const destination_path = path12.join(PROJECT_ROOT, filename);
|
|
1262
|
+
if (filename === WORKSPACE_YAML) {
|
|
1263
|
+
return did_skip_workspace_yaml_copy(source_path, destination_path);
|
|
1264
|
+
}
|
|
1265
|
+
return did_skip_copy_if_absent(source_path, destination_path, filename);
|
|
1266
|
+
}
|
|
1267
|
+
function did_skip_ai_file_mapping(source, destination) {
|
|
1268
|
+
return did_skip_copy_if_absent(
|
|
1269
|
+
package_path(source),
|
|
1270
|
+
path12.join(PROJECT_ROOT, destination),
|
|
1271
|
+
destination
|
|
1272
|
+
);
|
|
1273
|
+
}
|
|
1274
|
+
function directory_copy_skip(source_path, destination_path) {
|
|
1275
|
+
const blocker = directory_copy_blocker(source_path, destination_path);
|
|
1276
|
+
if (blocker !== void 0) return { reason: blocker, is_blocked: true };
|
|
1277
|
+
if (classify_path(destination_path) !== "absent") {
|
|
1278
|
+
return { reason: "already exists \u2014 run josh sync to update", is_blocked: false };
|
|
1279
|
+
}
|
|
1280
|
+
return void 0;
|
|
1281
|
+
}
|
|
1282
|
+
function report_directory_skip(directory_name, skip) {
|
|
1283
|
+
const line = `${directory_name}/ (${skip.reason})`;
|
|
1284
|
+
if (skip.is_blocked) console.warn(` \u26A0 skipped ${line}`);
|
|
1285
|
+
else console.info(` \u23ED skipped ${line}`);
|
|
1286
|
+
}
|
|
1287
|
+
function did_copy_directory(directory_name) {
|
|
1288
|
+
const failure = copy_directory_failure(
|
|
1289
|
+
package_path(directory_name),
|
|
1290
|
+
path12.join(PROJECT_ROOT, directory_name)
|
|
1291
|
+
);
|
|
1292
|
+
if (failure !== void 0) {
|
|
1293
|
+
console.warn(` \u26A0 skipped ${directory_name}/ (${failure})`);
|
|
1294
|
+
return false;
|
|
1295
|
+
}
|
|
1296
|
+
console.info(` \u2714 created ${directory_name}/`);
|
|
1297
|
+
return true;
|
|
1298
|
+
}
|
|
1299
|
+
function did_skip_ai_directory_copy(directory_name) {
|
|
1300
|
+
const skip = directory_copy_skip(
|
|
1301
|
+
package_path(directory_name),
|
|
1302
|
+
path12.join(PROJECT_ROOT, directory_name)
|
|
1303
|
+
);
|
|
1304
|
+
if (skip === void 0) {
|
|
1305
|
+
did_copy_directory(directory_name);
|
|
1306
|
+
return false;
|
|
1307
|
+
}
|
|
1308
|
+
report_directory_skip(directory_name, skip);
|
|
1309
|
+
return !skip.is_blocked;
|
|
1310
|
+
}
|
|
1311
|
+
function basic_claude_md() {
|
|
1312
|
+
return `> If kit is not installed, run \`pnpm install\` first.
|
|
1313
|
+
|
|
1314
|
+
${BASIC_CLAUDE_IMPORT}
|
|
1315
|
+
`;
|
|
1316
|
+
}
|
|
1317
|
+
function ensure_basic_claude_md(existing) {
|
|
1318
|
+
if (existing === void 0) return basic_claude_md();
|
|
1319
|
+
const kept = distributed_paths.remove_claude_md_import(existing);
|
|
1320
|
+
if (kept.includes(BASIC_CLAUDE_IMPORT)) return kept;
|
|
1321
|
+
return kept === "" ? basic_claude_md() : `${basic_claude_md()}
|
|
1322
|
+
${kept}`;
|
|
1323
|
+
}
|
|
1324
|
+
function did_skip_claude_md_import(shape) {
|
|
1325
|
+
const destination_path = path12.join(PROJECT_ROOT, CLAUDE_MD_FILENAME);
|
|
1326
|
+
if (existsSync6(destination_path)) {
|
|
1327
|
+
console.info(` \u23ED skipped ${CLAUDE_MD_FILENAME} (already exists)`);
|
|
1328
|
+
return true;
|
|
1329
|
+
}
|
|
1330
|
+
const content = shape?.profile === "basic" ? basic_claude_md() : init_logic.ensure_claude_md_import(void 0);
|
|
1331
|
+
file_content.write_contained(destination_path, content);
|
|
1332
|
+
console.info(` \u2714 created ${CLAUDE_MD_FILENAME}`);
|
|
1333
|
+
return false;
|
|
1334
|
+
}
|
|
1335
|
+
function should_copy_git_file(filename, shape) {
|
|
1336
|
+
if (shape?.has_git !== false) return true;
|
|
1337
|
+
return filename !== GIT_ATTRIBUTES && !filename.startsWith(".claude/") && !filename.startsWith(".codex/");
|
|
1338
|
+
}
|
|
1339
|
+
function should_copy_github_file(filename, shape) {
|
|
1340
|
+
if (shape?.has_github !== false) return true;
|
|
1341
|
+
return !GITHUB_FILES.has(filename) && !filename.startsWith(".github/");
|
|
1342
|
+
}
|
|
1343
|
+
function should_copy_basic_file(filename, shape) {
|
|
1344
|
+
if (filename !== PRETTIER_IGNORE || shape?.profile !== "basic") return true;
|
|
1345
|
+
return shape.should_use_prettier;
|
|
1346
|
+
}
|
|
1347
|
+
function should_copy_ai_file(filename, shape) {
|
|
1348
|
+
return should_copy_git_file(filename, shape) && should_copy_github_file(filename, shape) && should_copy_basic_file(filename, shape);
|
|
1349
|
+
}
|
|
1350
|
+
function basic_ai_files(shape) {
|
|
1351
|
+
return shape.has_workflow ? BASIC_WORKFLOW_AI_FILES : BASIC_AI_FILES;
|
|
1352
|
+
}
|
|
1353
|
+
function ai_files(shape) {
|
|
1354
|
+
const files = shape?.profile === "basic" ? basic_ai_files(shape) : init_logic.get_ai_copy_files();
|
|
1355
|
+
return files.filter((filename) => should_copy_ai_file(filename, shape));
|
|
1356
|
+
}
|
|
1357
|
+
function copied_files(shape) {
|
|
1358
|
+
return [...ai_files(shape), ...npm_publish_files.files(shape)];
|
|
1359
|
+
}
|
|
1360
|
+
function ai_file_mappings(shape) {
|
|
1361
|
+
const mappings = shape?.profile === "basic" ? [BASIC_POINTER_MAPPING, ...shape.has_github ? BASIC_GITHUB_MAPPINGS : []] : init_logic.get_ai_copy_file_mappings();
|
|
1362
|
+
return mappings.filter(({ dest }) => shape?.has_github !== false || !dest.startsWith(".github/"));
|
|
1363
|
+
}
|
|
1364
|
+
function ai_mapping_skips(shape) {
|
|
1365
|
+
return ai_file_mappings(shape).map(({ src, dest }) => did_skip_ai_file_mapping(src, dest));
|
|
1366
|
+
}
|
|
1367
|
+
function repository_name(shape) {
|
|
1368
|
+
if (shape?.has_github === false || shape?.profile === "basic") return void 0;
|
|
1369
|
+
return gh_spawn.get_repo_name_with_owner();
|
|
1370
|
+
}
|
|
1371
|
+
function report_sync_hint(has_skips, shape) {
|
|
1372
|
+
if (!has_skips || shape?.profile === "basic") return;
|
|
1373
|
+
console.info("\n \u{1F4A1} Run `josh sync` to overwrite skipped AI files with the latest version.");
|
|
1374
|
+
}
|
|
1375
|
+
function run_ai_copies(shape) {
|
|
1376
|
+
const did_skip_claude_md = did_skip_claude_md_import(shape);
|
|
1377
|
+
const file_skips = copied_files(shape).map((filename) => did_skip_ai_file_copy(filename, shape));
|
|
1378
|
+
const mapping_skips = ai_mapping_skips(shape);
|
|
1379
|
+
const directory_skips = init_logic.get_ai_copy_directories().map((directory_name) => did_skip_ai_directory_copy(directory_name));
|
|
1380
|
+
const has_skips = [did_skip_claude_md, ...file_skips, ...mapping_skips, ...directory_skips].some(
|
|
1381
|
+
Boolean
|
|
1382
|
+
);
|
|
1383
|
+
const name_with_owner = repository_name(shape);
|
|
1384
|
+
if (shape?.profile !== "basic") init_sonar.copy_sonar_with_template(name_with_owner);
|
|
1385
|
+
report_sync_hint(has_skips, shape);
|
|
1386
|
+
return name_with_owner;
|
|
1387
|
+
}
|
|
1388
|
+
var init_ai_copy = {
|
|
1389
|
+
copy_ai_file,
|
|
1390
|
+
copied_content,
|
|
1391
|
+
workspace_content,
|
|
1392
|
+
run_ai_copies,
|
|
1393
|
+
ai_files,
|
|
1394
|
+
copied_files,
|
|
1395
|
+
ai_file_source,
|
|
1396
|
+
ai_file_mappings,
|
|
1397
|
+
ensure_basic_claude_md,
|
|
1398
|
+
read_workspace_template
|
|
1399
|
+
};
|
|
1400
|
+
|
|
1401
|
+
// scripts/init/kit-written-paths.ts
|
|
1402
|
+
var LOCKFILE = "pnpm-lock.yaml";
|
|
1403
|
+
var SETUP_ONLY_PATHS = /* @__PURE__ */ new Set([
|
|
1404
|
+
CLAUDE_MD_FILENAME,
|
|
1405
|
+
BASIC_PRETTIER_CONFIG,
|
|
1406
|
+
PROJECT_CONFIG_FILE,
|
|
1407
|
+
PACK_HOOK_FILE,
|
|
1408
|
+
PACKAGE_JSON,
|
|
1409
|
+
LOCKFILE
|
|
1410
|
+
]);
|
|
1411
|
+
function is_kit_written(file_path) {
|
|
1412
|
+
return SETUP_ONLY_PATHS.has(file_path) || managed_config_scope.has_managed_path([file_path]);
|
|
1413
|
+
}
|
|
1414
|
+
function select(paths) {
|
|
1415
|
+
return paths.filter((file_path) => is_kit_written(file_path));
|
|
1416
|
+
}
|
|
1417
|
+
var kit_written_paths = { is_kit_written, select };
|
|
1418
|
+
|
|
1419
|
+
// scripts/init/own-formatter.ts
|
|
1420
|
+
import { existsSync as existsSync7 } from "node:fs";
|
|
1421
|
+
import path13 from "node:path";
|
|
1422
|
+
var OWN_FORMATTER_CONFIGS = [
|
|
1423
|
+
"biome.json",
|
|
1424
|
+
"biome.jsonc",
|
|
1425
|
+
"dprint.json",
|
|
1426
|
+
"dprint.jsonc",
|
|
1427
|
+
".dprint.json",
|
|
1428
|
+
".dprint.jsonc"
|
|
1429
|
+
];
|
|
1430
|
+
function find_config(root) {
|
|
1431
|
+
return OWN_FORMATTER_CONFIGS.find((name) => existsSync7(path13.join(root, name)));
|
|
1432
|
+
}
|
|
1433
|
+
var own_formatter = { find_config };
|
|
1434
|
+
|
|
1435
|
+
// scripts/init/workflow-mark.ts
|
|
1436
|
+
var WORKFLOW_ENV = "JOSH_WORKFLOW";
|
|
1437
|
+
var GITHUB_WORKFLOW = "github";
|
|
1438
|
+
function is_requested(environment = process.env) {
|
|
1439
|
+
return environment[WORKFLOW_ENV] === GITHUB_WORKFLOW;
|
|
1440
|
+
}
|
|
1441
|
+
function is_recorded(manifest) {
|
|
1442
|
+
const josh = manifest?.["josh"];
|
|
1443
|
+
return json_value.is_record(josh) && josh["workflow"] === GITHUB_WORKFLOW;
|
|
1444
|
+
}
|
|
1445
|
+
function request(environment = process.env) {
|
|
1446
|
+
environment[WORKFLOW_ENV] = GITHUB_WORKFLOW;
|
|
1447
|
+
}
|
|
1448
|
+
function recorded_fields(has_workflow2) {
|
|
1449
|
+
return has_workflow2 ? { workflow: GITHUB_WORKFLOW } : {};
|
|
1450
|
+
}
|
|
1451
|
+
var workflow_mark = { is_requested, is_recorded, request, recorded_fields };
|
|
1452
|
+
|
|
1453
|
+
// scripts/init/project-profile.ts
|
|
1454
|
+
var IGNORED_DIRECTORIES = /* @__PURE__ */ new Set([".git", "node_modules", "dist", "build", ".svelte-kit"]);
|
|
1455
|
+
var WEB_EXTENSIONS = /* @__PURE__ */ new Set([".html", ".css", ".js", ".jsx", ".mjs", ".cjs"]);
|
|
1456
|
+
var TYPESCRIPT_EXTENSIONS = /* @__PURE__ */ new Set([".ts", ".tsx"]);
|
|
1457
|
+
var PROFILE_ARG_LENGTH = 2;
|
|
1458
|
+
var PROFILE_NAMES = {
|
|
1459
|
+
basic: "basic",
|
|
1460
|
+
full: "full",
|
|
1461
|
+
static: "basic",
|
|
1462
|
+
node: "full"
|
|
1463
|
+
};
|
|
1464
|
+
function parse_profile(value) {
|
|
1465
|
+
return typeof value === "string" && Object.hasOwn(PROFILE_NAMES, value) ? PROFILE_NAMES[value] : void 0;
|
|
1466
|
+
}
|
|
1467
|
+
var LEGACY_NAMES = { basic: "static", full: "node" };
|
|
1468
|
+
function with_legacy_profile_names(args) {
|
|
1469
|
+
return args.map((argument, index) => {
|
|
1470
|
+
const profile = args[index - 1] === "--profile" ? parse_profile(argument) : void 0;
|
|
1471
|
+
return profile === void 0 ? argument : LEGACY_NAMES[profile];
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1474
|
+
function is_profile_pair(args) {
|
|
1475
|
+
return args.length === PROFILE_ARG_LENGTH && args[0] === "--profile";
|
|
1476
|
+
}
|
|
1477
|
+
function requested_profile(args, usage = "josh init [--profile basic|full]") {
|
|
1478
|
+
if (args.length === 0) return void 0;
|
|
1479
|
+
if (!is_profile_pair(args)) throw new Error(`Usage: ${usage}`);
|
|
1480
|
+
const profile = parse_profile(args[1]);
|
|
1481
|
+
if (profile !== void 0) return profile;
|
|
1482
|
+
throw new Error("Profile must be basic or full");
|
|
1483
|
+
}
|
|
1484
|
+
function read_manifest(root) {
|
|
1485
|
+
if (!existsSync8(package_manifest.manifest_path(root))) return void 0;
|
|
1486
|
+
const parsed = package_manifest.read_manifest(root, z4.unknown());
|
|
1487
|
+
if (!json_value.is_record(parsed)) throw new Error("package.json must contain an object");
|
|
1488
|
+
return parsed;
|
|
1489
|
+
}
|
|
1490
|
+
function recorded_profile(manifest) {
|
|
1491
|
+
const { josh } = manifest;
|
|
1492
|
+
return json_value.is_record(josh) ? parse_profile(josh["profile"]) : void 0;
|
|
1493
|
+
}
|
|
1494
|
+
function has_build_script(value) {
|
|
1495
|
+
return json_value.is_record(value) && ("build" in value || "dev" in value);
|
|
1496
|
+
}
|
|
1497
|
+
function has_project_dependencies(value) {
|
|
1498
|
+
if (!json_value.is_record(value)) return false;
|
|
1499
|
+
return Object.keys(value).some((name) => name !== KIT_PACKAGE_NAME);
|
|
1500
|
+
}
|
|
1501
|
+
function inferred_profile(manifest) {
|
|
1502
|
+
if (has_project_dependencies(manifest["dependencies"]) || has_project_dependencies(manifest["devDependencies"])) {
|
|
1503
|
+
return { profile: "full", reason: "package dependencies" };
|
|
1504
|
+
}
|
|
1505
|
+
if (has_build_script(manifest["scripts"])) {
|
|
1506
|
+
return { profile: "full", reason: "build or dev script" };
|
|
1507
|
+
}
|
|
1508
|
+
return { profile: "basic", reason: "metadata-only package.json" };
|
|
1509
|
+
}
|
|
1510
|
+
function resolve_profile(root, requested) {
|
|
1511
|
+
if (requested !== void 0) return { profile: requested, reason: "explicit --profile" };
|
|
1512
|
+
const manifest = read_manifest(root);
|
|
1513
|
+
if (manifest === void 0) return { profile: "basic", reason: "no package.json" };
|
|
1514
|
+
const profile = recorded_profile(manifest);
|
|
1515
|
+
if (profile !== void 0) return { profile, reason: "package.json josh.profile" };
|
|
1516
|
+
return inferred_profile(manifest);
|
|
1517
|
+
}
|
|
1518
|
+
function is_ignored_directory(name) {
|
|
1519
|
+
return IGNORED_DIRECTORIES.has(name);
|
|
1520
|
+
}
|
|
1521
|
+
function should_visit(entry) {
|
|
1522
|
+
return entry.isDirectory() && !is_ignored_directory(entry.name);
|
|
1523
|
+
}
|
|
1524
|
+
function scan_directory(directory, pending) {
|
|
1525
|
+
const entries = readdirSync3(directory, { withFileTypes: true });
|
|
1526
|
+
pending.push(
|
|
1527
|
+
...entries.filter((entry) => should_visit(entry)).map((entry) => path14.join(directory, entry.name))
|
|
1528
|
+
);
|
|
1529
|
+
return entries.filter((entry) => entry.isFile()).map((entry) => path14.join(directory, entry.name));
|
|
1530
|
+
}
|
|
1531
|
+
function is_project_file(root, file) {
|
|
1532
|
+
const relative_path = path14.relative(root, file).split(path14.sep).join(path14.posix.sep);
|
|
1533
|
+
return !kit_written_paths.is_kit_written(relative_path);
|
|
1534
|
+
}
|
|
1535
|
+
function list_files(root) {
|
|
1536
|
+
const pending = [root];
|
|
1537
|
+
const files = [];
|
|
1538
|
+
for (const directory of pending) {
|
|
1539
|
+
files.push(...scan_directory(directory, pending));
|
|
1540
|
+
}
|
|
1541
|
+
return files;
|
|
1542
|
+
}
|
|
1543
|
+
function file_extensions(root) {
|
|
1544
|
+
return list_files(root).filter((file) => is_project_file(root, file)).map((file) => path14.extname(file));
|
|
1545
|
+
}
|
|
1546
|
+
function scan_files(root) {
|
|
1547
|
+
const extensions = file_extensions(root);
|
|
1548
|
+
const has_web = extensions.some((extension) => WEB_EXTENSIONS.has(extension));
|
|
1549
|
+
const should_use_prettier = has_web && own_formatter.find_config(root) === void 0;
|
|
1550
|
+
const has_typescript = extensions.some((extension) => TYPESCRIPT_EXTENSIONS.has(extension));
|
|
1551
|
+
return { should_use_prettier, has_typescript };
|
|
1552
|
+
}
|
|
1553
|
+
function has_github_remote(root) {
|
|
1554
|
+
const url = git_spawn_sync.origin_url(root);
|
|
1555
|
+
return url !== void 0 && repo_origin.parse_origin_url(url) !== void 0;
|
|
1556
|
+
}
|
|
1557
|
+
function has_git(root) {
|
|
1558
|
+
return existsSync8(path14.join(root, ".git"));
|
|
1559
|
+
}
|
|
1560
|
+
function has_workflow(root) {
|
|
1561
|
+
return workflow_mark.is_requested() || workflow_mark.is_recorded(read_manifest(root));
|
|
1562
|
+
}
|
|
1563
|
+
function inspect_project(root, requested) {
|
|
1564
|
+
const profile = resolve_profile(root, requested);
|
|
1565
|
+
const files = scan_files(root);
|
|
1566
|
+
const is_git = has_git(root);
|
|
1567
|
+
return {
|
|
1568
|
+
...profile,
|
|
1569
|
+
...files,
|
|
1570
|
+
has_git: is_git,
|
|
1571
|
+
has_github: is_git && has_github_remote(root),
|
|
1572
|
+
has_workflow: has_workflow(root)
|
|
1573
|
+
};
|
|
1574
|
+
}
|
|
1575
|
+
var project_profile = {
|
|
1576
|
+
parse_profile,
|
|
1577
|
+
resolve_profile,
|
|
1578
|
+
has_git,
|
|
1579
|
+
inspect_project,
|
|
1580
|
+
is_ignored_directory,
|
|
1581
|
+
list_files,
|
|
1582
|
+
requested_profile,
|
|
1583
|
+
with_legacy_profile_names
|
|
1584
|
+
};
|
|
1585
|
+
|
|
1586
|
+
export {
|
|
1587
|
+
own_formatter,
|
|
1588
|
+
file_content,
|
|
1589
|
+
PACK_HOOK_FILE,
|
|
1590
|
+
pack_hook,
|
|
1591
|
+
DEFAULT_RELEASE_AGE_MINUTES,
|
|
1592
|
+
release_window,
|
|
1593
|
+
PROJECT_CONFIG_FILE,
|
|
1594
|
+
project_config,
|
|
1595
|
+
vscode_tasks,
|
|
1596
|
+
PRETTIER_CONFIG_JS,
|
|
1597
|
+
LEFTHOOK_PATH,
|
|
1598
|
+
init_actions,
|
|
1599
|
+
hook_command_rewrite,
|
|
1600
|
+
security_policy,
|
|
1601
|
+
transform_copied_content,
|
|
1602
|
+
directory_copy_blocker,
|
|
1603
|
+
is_transformable,
|
|
1604
|
+
copy_directory_failure,
|
|
1605
|
+
sonar_file,
|
|
1606
|
+
WORKSPACE_YAML,
|
|
1607
|
+
CLAUDE_MD_FILENAME,
|
|
1608
|
+
init_ai_copy,
|
|
1609
|
+
kit_written_paths,
|
|
1610
|
+
workflow_mark,
|
|
1611
|
+
project_profile
|
|
1612
|
+
};
|