@unbrained/pm-cli 2026.6.11 → 2026.6.13
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/CHANGELOG.md +47 -0
- package/README.md +1 -1
- package/dist/cli/commands/completion.js +20 -8
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/create.js +13 -3
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/docs.d.ts +2 -0
- package/dist/cli/commands/docs.js +2 -2
- package/dist/cli/commands/docs.js.map +1 -1
- package/dist/cli/commands/files.d.ts +2 -0
- package/dist/cli/commands/files.js +2 -2
- package/dist/cli/commands/files.js.map +1 -1
- package/dist/cli/commands/health.d.ts +1 -1
- package/dist/cli/commands/health.js +77 -2
- package/dist/cli/commands/health.js.map +1 -1
- package/dist/cli/commands/history-repair.d.ts +36 -0
- package/dist/cli/commands/history-repair.js +68 -3
- package/dist/cli/commands/history-repair.js.map +1 -1
- package/dist/cli/commands/index.d.ts +1 -1
- package/dist/cli/commands/index.js +3 -3
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/linked-artifacts.d.ts +18 -0
- package/dist/cli/commands/linked-artifacts.js +26 -3
- package/dist/cli/commands/linked-artifacts.js.map +1 -1
- package/dist/cli/commands/plan.d.ts +6 -0
- package/dist/cli/commands/plan.js +93 -32
- package/dist/cli/commands/plan.js.map +1 -1
- package/dist/cli/commands/validate.d.ts +20 -0
- package/dist/cli/commands/validate.js +292 -28
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/error-guidance.js +29 -2
- package/dist/cli/error-guidance.js.map +1 -1
- package/dist/cli/help-content.js +7 -3
- package/dist/cli/help-content.js.map +1 -1
- package/dist/cli/main.js +13 -3
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/register-mutation.js +47 -16
- package/dist/cli/register-mutation.js.map +1 -1
- package/dist/cli/register-operations.js +10 -2
- package/dist/cli/register-operations.js.map +1 -1
- package/dist/cli/register-setup.js +16 -16
- package/dist/cli/register-setup.js.map +1 -1
- package/dist/cli-bundle/chunks/{activity-XADJOG6G.js → activity-PPO7QWJF.js} +11 -11
- package/dist/cli-bundle/chunks/activity-XIOTGZMU.js +16 -0
- package/dist/cli-bundle/chunks/{aggregate-6OTS3AOO.js → aggregate-IRHJWEKG.js} +10 -10
- package/dist/cli-bundle/chunks/{aggregate-OD36DJU5.js → aggregate-XEBW22UQ.js} +10 -10
- package/dist/cli-bundle/chunks/{append-JYWO4P7W.js → append-N2AWXKZC.js} +8 -8
- package/dist/cli-bundle/chunks/{append-KG55G7S3.js → append-NL67JNJU.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-IH4MBKK7.js → chunk-2ANTZBYF.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-F75JSIOZ.js → chunk-2J2AH4V5.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-CCX4RSYZ.js → chunk-32XSW44C.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-DY6C42S6.js → chunk-36BCSMKP.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-XUC4C4PT.js → chunk-3CQPVBK3.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-SXKNJPQ7.js → chunk-3FMQMHAG.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-I7NYDZDV.js → chunk-3VULHQNS.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HHHJ2GI3.js → chunk-4FHLNNW7.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-RXAP6JL5.js → chunk-4JHJ7YG2.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-P5BJOMBB.js → chunk-4TPFXE2R.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-XJDGS74Y.js → chunk-4ZKKZMLH.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-XJDGS74Y.js.map → chunk-4ZKKZMLH.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-3SLOMKCJ.js → chunk-5HSAHRYA.js} +12 -12
- package/dist/cli-bundle/chunks/{chunk-ZLMIWZUG.js → chunk-5LMF75Q7.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-TK5VZFHY.js → chunk-6TBR5AZ2.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-ATEES5SX.js → chunk-6ZFTM65G.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-P2PSODAQ.js → chunk-7CRFV6JR.js} +111 -10
- package/dist/cli-bundle/chunks/chunk-7CRFV6JR.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-VFUZV5EB.js → chunk-7SM7VA5I.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-GKIZW7SM.js → chunk-AAUYXSFF.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-FXRU333M.js → chunk-AGG32LKL.js} +111 -10
- package/dist/cli-bundle/chunks/chunk-AGG32LKL.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-OASDW5UI.js → chunk-AUDDXKNX.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-ZMW77VWV.js → chunk-BVL5KGVA.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-4JCSYR6F.js → chunk-C24PWDFG.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-4HFU4UO2.js → chunk-CEGUH2E5.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-Y3YKK7CY.js → chunk-DWG4FHPY.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-EKS6O2IR.js +217 -0
- package/dist/cli-bundle/chunks/chunk-EKS6O2IR.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-YW6Q3RYZ.js → chunk-GFBEXDCQ.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-XMBI6TNW.js → chunk-GOO4UXBI.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-IGVJRZ6H.js → chunk-GRZGHGRG.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-E5DUIJA4.js → chunk-HLEGAQXT.js} +20 -7
- package/dist/cli-bundle/chunks/chunk-HLEGAQXT.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-HWHONML5.js +190 -0
- package/dist/cli-bundle/chunks/chunk-HWHONML5.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-TNAP7EJX.js → chunk-HZOX5BYD.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-VSRZRLG3.js → chunk-IIOIBAQW.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-IUKD4W6Z.js → chunk-IXVSSHGV.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WUNFKP7M.js → chunk-IZHCCG4S.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-VAOUX6TK.js → chunk-JCTZV7TO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ZYNJNPYD.js → chunk-JE5IZXDS.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-QNJSITCX.js → chunk-JW7D6437.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-B65UUCGQ.js → chunk-JWXTOYBI.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-7RIT3OCD.js → chunk-KHGTYCJ6.js} +12 -12
- package/dist/cli-bundle/chunks/{chunk-HI7STVF2.js → chunk-L6YQONLM.js} +11 -27
- package/dist/cli-bundle/chunks/chunk-L6YQONLM.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-FY4SPXSC.js → chunk-LFW5NQUP.js} +59 -86
- package/dist/cli-bundle/chunks/chunk-LFW5NQUP.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-VPEAS7PS.js → chunk-LGOXXQUW.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-I2IJY2NL.js → chunk-LOAR5TKX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-S26FESD4.js → chunk-LSSTKL3Y.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-CW6E4NAT.js → chunk-LYNQ3NGI.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-4YFAGDRH.js → chunk-M3SI2REU.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-73ZPG2I3.js → chunk-MACCNKSZ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-IKOH24GZ.js → chunk-MGAQ6KZG.js} +20 -15
- package/dist/cli-bundle/chunks/{chunk-IKOH24GZ.js.map → chunk-MGAQ6KZG.js.map} +2 -2
- package/dist/cli-bundle/chunks/chunk-NAWVUHXH.js +220 -0
- package/dist/cli-bundle/chunks/chunk-NAWVUHXH.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-P5U5EOMA.js → chunk-NN6RKGFW.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-GWZSYR6X.js → chunk-O3YCJOVX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-7UGSRQCL.js → chunk-PEH7SZD2.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-7UGSRQCL.js.map → chunk-PEH7SZD2.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UOO6BYIA.js → chunk-PNYAAB4S.js} +21 -188
- package/dist/cli-bundle/chunks/chunk-PNYAAB4S.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-UUWGCWBU.js → chunk-QQG4HEX7.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-XTKJSVWH.js → chunk-QU3OPNVV.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-LCSCXBGT.js → chunk-R4VWYWRN.js} +19 -193
- package/dist/cli-bundle/chunks/chunk-R4VWYWRN.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-PSD7F7DX.js → chunk-RFR2YQGO.js} +21 -8
- package/dist/cli-bundle/chunks/chunk-RFR2YQGO.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-EWFY7SLA.js → chunk-RHYBR6G7.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-A6LXQFO7.js → chunk-S2CDTRJ6.js} +52 -79
- package/dist/cli-bundle/chunks/chunk-S2CDTRJ6.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-J3GD64J2.js → chunk-SGMGMCIF.js} +21 -16
- package/dist/cli-bundle/chunks/{chunk-J3GD64J2.js.map → chunk-SGMGMCIF.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-S2ZLDYGS.js → chunk-SOHXUA2Q.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-KWAXVAXX.js → chunk-SQDKAEKG.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-7IYFN5R7.js → chunk-TOX7YQ7X.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-FDH2X65L.js → chunk-TSXWFN3L.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-OLKBSY4N.js → chunk-UCVJP4JL.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-AVGHVVF7.js → chunk-V4KP3TCN.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-QKW5D45B.js → chunk-VNC2HBL4.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-QJMGRZO2.js → chunk-VYZNX4C5.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-5SCT2JCT.js → chunk-W6KNFAMZ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-I53JBTJW.js → chunk-WLH7X4RN.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-ESANVZF4.js → chunk-XOYHMHFF.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-HGLC63AU.js → chunk-XWDZVCBJ.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-3KLPFWZ4.js → chunk-XXLMJDUB.js} +10 -26
- package/dist/cli-bundle/chunks/chunk-XXLMJDUB.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-Z647PYLD.js +187 -0
- package/dist/cli-bundle/chunks/chunk-Z647PYLD.js.map +1 -0
- package/dist/cli-bundle/chunks/{claim-MJ7DZFC3.js → claim-HE6KEGJW.js} +10 -10
- package/dist/cli-bundle/chunks/{claim-2RDYMCTP.js → claim-QJOQBH7J.js} +10 -10
- package/dist/cli-bundle/chunks/{close-XLEKIQSW.js → close-SPUFW5QR.js} +8 -8
- package/dist/cli-bundle/chunks/close-WOG5WTMZ.js +13 -0
- package/dist/cli-bundle/chunks/{close-many-AOD4HSAZ.js → close-many-GKAJX54X.js} +15 -15
- package/dist/cli-bundle/chunks/{close-many-XKAQY5CQ.js → close-many-GL6NRUU5.js} +15 -15
- package/dist/cli-bundle/chunks/{comments-RN5TG4ZN.js → comments-5FPT6L7N.js} +10 -10
- package/dist/cli-bundle/chunks/{comments-B4RWWDJT.js → comments-TOLOYWNI.js} +10 -10
- package/dist/cli-bundle/chunks/{config-3JXJ3XZ7.js → config-4MN45TIH.js} +8 -8
- package/dist/cli-bundle/chunks/{config-FZ4UDC4B.js → config-7N6D7YJE.js} +8 -8
- package/dist/cli-bundle/chunks/{context-QBPO3BFM.js → context-AQSLE7DZ.js} +13 -13
- package/dist/cli-bundle/chunks/{context-L36PIN35.js → context-U3PUJMVN.js} +13 -13
- package/dist/cli-bundle/chunks/{contracts-MIXBWJIB.js → contracts-H7KCQXLY.js} +4 -4
- package/dist/cli-bundle/chunks/{contracts-3NKWYKKU.js → contracts-ITSJXO3O.js} +4 -4
- package/dist/cli-bundle/chunks/{copy-ALU5WMHA.js → copy-C4W522JM.js} +7 -7
- package/dist/cli-bundle/chunks/{copy-FWIVTLBO.js → copy-EB3MUCSW.js} +7 -7
- package/dist/cli-bundle/chunks/{create-IFA26O2I.js → create-4EQNELMY.js} +13 -13
- package/dist/cli-bundle/chunks/create-NW3K7LVG.js +27 -0
- package/dist/cli-bundle/chunks/{delete-IYTIYAJS.js → delete-X5QLXIQX.js} +7 -7
- package/dist/cli-bundle/chunks/{delete-Y2SGJBGY.js → delete-ZLGUYIXU.js} +7 -7
- package/dist/cli-bundle/chunks/{deps-CZ4PTVXU.js → deps-GPB3LGWN.js} +7 -7
- package/dist/cli-bundle/chunks/{deps-6TSPOSGU.js → deps-HV2C2L46.js} +7 -7
- package/dist/cli-bundle/chunks/{docs-5WMBVQT2.js → docs-RJQPLROO.js} +11 -11
- package/dist/cli-bundle/chunks/docs-RJQPLROO.js.map +1 -0
- package/dist/cli-bundle/chunks/{docs-MB53UJAJ.js → docs-SRTLCQOL.js} +10 -10
- package/dist/cli-bundle/chunks/docs-SRTLCQOL.js.map +7 -0
- package/dist/cli-bundle/chunks/{extension-Q34OEWO5.js → extension-MM3TVWOO.js} +5 -5
- package/dist/cli-bundle/chunks/{extension-WH2FOIOZ.js → extension-WKPVPNCC.js} +5 -5
- package/dist/cli-bundle/chunks/{files-GVMNVLCB.js → files-LIFDKNCN.js} +10 -10
- package/dist/cli-bundle/chunks/files-LIFDKNCN.js.map +7 -0
- package/dist/cli-bundle/chunks/{files-DLB5LJEP.js → files-OIFN3DQX.js} +11 -11
- package/dist/cli-bundle/chunks/files-OIFN3DQX.js.map +1 -0
- package/dist/cli-bundle/chunks/{gc-4Z3IKHAZ.js → gc-DL6AVOX5.js} +12 -181
- package/dist/cli-bundle/chunks/gc-DL6AVOX5.js.map +7 -0
- package/dist/cli-bundle/chunks/{gc-2WEPW6D6.js → gc-NRFHLVFT.js} +14 -176
- package/dist/cli-bundle/chunks/gc-NRFHLVFT.js.map +1 -0
- package/dist/cli-bundle/chunks/{get-QARTE6BL.js → get-K7UULTQF.js} +11 -11
- package/dist/cli-bundle/chunks/{get-PCHS7RA6.js → get-SAB7CRBG.js} +11 -11
- package/dist/cli-bundle/chunks/{health-4ZYB3IYQ.js → health-NUVZYIEV.js} +83 -16
- package/dist/cli-bundle/chunks/health-NUVZYIEV.js.map +1 -0
- package/dist/cli-bundle/chunks/{health-YO5LRWN4.js → health-VJWH3ZFK.js} +82 -15
- package/dist/cli-bundle/chunks/health-VJWH3ZFK.js.map +7 -0
- package/dist/cli-bundle/chunks/{history-7WUAEWHW.js → history-GYFD2DJW.js} +10 -10
- package/dist/cli-bundle/chunks/history-IUVN4NTN.js +20 -0
- package/dist/cli-bundle/chunks/{history-compact-3EJ3L2O7.js → history-compact-SLL6ESXH.js} +11 -11
- package/dist/cli-bundle/chunks/{history-compact-LW27IPFK.js → history-compact-WQZQ6KXM.js} +11 -11
- package/dist/cli-bundle/chunks/history-redact-75KIIJUJ.js +19 -0
- package/dist/cli-bundle/chunks/{history-redact-G72A4EJ4.js → history-redact-SDTDR6WM.js} +11 -11
- package/dist/cli-bundle/chunks/{history-repair-RUGKD3YR.js → history-repair-BJCGM6Q3.js} +72 -14
- package/dist/cli-bundle/chunks/history-repair-BJCGM6Q3.js.map +1 -0
- package/dist/cli-bundle/chunks/{history-repair-KVPFJKOS.js → history-repair-UCYS55ZX.js} +71 -13
- package/dist/cli-bundle/chunks/history-repair-UCYS55ZX.js.map +7 -0
- package/dist/cli-bundle/chunks/init-JJFYRUKG.js +17 -0
- package/dist/cli-bundle/chunks/{init-S5WEGUJY.js → init-MXV57LKL.js} +9 -9
- package/dist/cli-bundle/chunks/{learnings-HQXSSKZ5.js → learnings-L6KTZGOT.js} +10 -10
- package/dist/cli-bundle/chunks/{learnings-XK3P4ZDR.js → learnings-QKJOKEAO.js} +10 -10
- package/dist/cli-bundle/chunks/{list-6CL3XFT6.js → list-GGVPXEV6.js} +10 -10
- package/dist/cli-bundle/chunks/list-VOQDQHA4.js +19 -0
- package/dist/cli-bundle/chunks/{notes-5T6P7C5V.js → notes-3NLK7WTZ.js} +10 -10
- package/dist/cli-bundle/chunks/{notes-U5FZCSBT.js → notes-HMCB7TK6.js} +10 -10
- package/dist/cli-bundle/chunks/{plan-VNUG3WZZ.js → plan-DWBYI5C6.js} +63 -23
- package/dist/cli-bundle/chunks/plan-DWBYI5C6.js.map +1 -0
- package/dist/cli-bundle/chunks/{plan-FQLMJRLZ.js → plan-NANUWH4T.js} +62 -22
- package/dist/cli-bundle/chunks/plan-NANUWH4T.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-list-query-VHDXWEPP.js → register-list-query-PWQ5F2VI.js} +18 -18
- package/dist/cli-bundle/chunks/{register-list-query-NPE3ECJQ.js → register-list-query-SMMMLSWW.js} +18 -18
- package/dist/cli-bundle/chunks/{register-mutation-EAYNLGOS.js → register-mutation-QKFPTIZG.js} +64 -47
- package/dist/cli-bundle/chunks/{register-mutation-EAYNLGOS.js.map → register-mutation-QKFPTIZG.js.map} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-DG53FCBV.js → register-mutation-ZYJQ4DVP.js} +65 -48
- package/dist/cli-bundle/chunks/{register-mutation-DG53FCBV.js.map → register-mutation-ZYJQ4DVP.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-operations-FWFE64JG.js → register-operations-2FMZ6WEF.js} +37 -33
- package/dist/cli-bundle/chunks/{register-operations-FWFE64JG.js.map → register-operations-2FMZ6WEF.js.map} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-AM6KTWB6.js → register-operations-BAFQURZG.js} +38 -34
- package/dist/cli-bundle/chunks/register-operations-BAFQURZG.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-setup-G4QYI3RX.js → register-setup-DQEIKBIP.js} +30 -30
- package/dist/cli-bundle/chunks/register-setup-DQEIKBIP.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-setup-IKX5524L.js → register-setup-QN2XV7UL.js} +31 -31
- package/dist/cli-bundle/chunks/register-setup-QN2XV7UL.js.map +1 -0
- package/dist/cli-bundle/chunks/restore-DRBNXJJH.js +17 -0
- package/dist/cli-bundle/chunks/{restore-M6AFHMV4.js → restore-FJQWXMPY.js} +11 -11
- package/dist/cli-bundle/chunks/{schema-AINZ2IMM.js → schema-RNVJ55V2.js} +8 -8
- package/dist/cli-bundle/chunks/{schema-76HDZJCC.js → schema-ZZ7ZDM2X.js} +8 -8
- package/dist/cli-bundle/chunks/{search-JMLFQEPJ.js → search-BJ457C2A.js} +10 -10
- package/dist/cli-bundle/chunks/{search-NL3TSCYB.js → search-FQDZXX7P.js} +10 -10
- package/dist/cli-bundle/chunks/{stats-UBD56TGK.js → stats-CUG3ZHOI.js} +7 -7
- package/dist/cli-bundle/chunks/{stats-BKXCBIGT.js → stats-DUQWCVOS.js} +7 -7
- package/dist/cli-bundle/chunks/{telemetry-ZJXK3H7X.js → telemetry-33MRGX4Z.js} +4 -4
- package/dist/cli-bundle/chunks/{telemetry-N454RHG5.js → telemetry-RK2VX75A.js} +4 -4
- package/dist/cli-bundle/chunks/test-SDMYEQHH.js +32 -0
- package/dist/cli-bundle/chunks/{test-BQAKIXAT.js → test-Y3CTFMEC.js} +14 -14
- package/dist/cli-bundle/chunks/{test-all-7LV3I6S5.js → test-all-ANYQ33O2.js} +14 -14
- package/dist/cli-bundle/chunks/{test-all-TDYCCBA4.js → test-all-ARSMX33Q.js} +14 -14
- package/dist/cli-bundle/chunks/{test-runs-E64M6XS3.js → test-runs-5URSD34O.js} +5 -5
- package/dist/cli-bundle/chunks/{test-runs-LXZLULCI.js → test-runs-XNACGSNQ.js} +5 -5
- package/dist/cli-bundle/chunks/update-PD46VOXI.js +21 -0
- package/dist/cli-bundle/chunks/update-U235A7WP.js +25 -0
- package/dist/cli-bundle/chunks/{update-many-V4LA3C4H.js → update-many-6B7PJ33I.js} +22 -22
- package/dist/cli-bundle/chunks/{update-many-TUGU5YXQ.js → update-many-724JCVDE.js} +22 -22
- package/dist/cli-bundle/chunks/{upgrade-37F7JKES.js → upgrade-ALBEZAI7.js} +5 -5
- package/dist/cli-bundle/chunks/{upgrade-L32JA4TZ.js → upgrade-QHRGDBSA.js} +5 -5
- package/dist/cli-bundle/chunks/{validate-EQTT6WVX.js → validate-IQRYFXIV.js} +462 -50
- package/dist/cli-bundle/chunks/validate-IQRYFXIV.js.map +1 -0
- package/dist/cli-bundle/chunks/{validate-XN4I4DPL.js → validate-UY6DRCG5.js} +482 -49
- package/dist/cli-bundle/chunks/validate-UY6DRCG5.js.map +7 -0
- package/dist/cli-bundle/main.js +72 -24
- package/dist/cli-bundle/main.js.map +3 -3
- package/dist/core/diagnostics/remediation.js +19 -6
- package/dist/core/diagnostics/remediation.js.map +1 -1
- package/dist/core/extensions/extension-capability-aliases.js +7 -33
- package/dist/core/extensions/extension-capability-aliases.js.map +1 -1
- package/dist/core/lock/lock-gc.d.ts +31 -0
- package/dist/core/lock/lock-gc.js +120 -62
- package/dist/core/lock/lock-gc.js.map +1 -1
- package/dist/core/search/background-refresh.js +3 -3
- package/dist/core/search/background-refresh.js.map +1 -1
- package/dist/core/shared/errors.d.ts +3 -0
- package/dist/core/shared/errors.js +2 -2
- package/dist/core/shared/errors.js.map +1 -1
- package/dist/core/store/item-store.js +6 -22
- package/dist/core/store/item-store.js.map +1 -1
- package/dist/core/telemetry/consent.js +18 -3
- package/dist/core/telemetry/consent.js.map +1 -1
- package/dist/core/validate/fix-planning.d.ts +130 -0
- package/dist/core/validate/fix-planning.js +202 -0
- package/dist/core/validate/fix-planning.js.map +1 -0
- package/dist/core/validate/missing-by-type.d.ts +21 -0
- package/dist/core/validate/missing-by-type.js +39 -0
- package/dist/core/validate/missing-by-type.js.map +1 -0
- package/dist/core/validate/stale-file-classification.d.ts +41 -0
- package/dist/core/validate/stale-file-classification.js +73 -0
- package/dist/core/validate/stale-file-classification.js.map +1 -0
- package/dist/mcp/server.d.ts +1 -0
- package/dist/mcp/server.js +62 -9
- package/dist/mcp/server.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +38 -2
- package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
- package/dist/sdk/cli-contracts.d.ts +6 -1
- package/dist/sdk/cli-contracts.js +74 -7
- package/dist/sdk/cli-contracts.js.map +1 -1
- package/docs/AGENT_GUIDE.md +6 -1
- package/docs/COMMANDS.md +23 -1
- package/package.json +1 -1
- package/plugins/pm-claude/README.md +4 -12
- package/dist/cli-bundle/chunks/activity-XZIUPGZH.js +0 -16
- package/dist/cli-bundle/chunks/chunk-3KLPFWZ4.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-A6LXQFO7.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-E5DUIJA4.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-FXRU333M.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-FY4SPXSC.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-HI7STVF2.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-LCSCXBGT.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-P2PSODAQ.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-PSD7F7DX.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-UOO6BYIA.js.map +0 -1
- package/dist/cli-bundle/chunks/close-4FMAPEMY.js +0 -13
- package/dist/cli-bundle/chunks/create-JVXYHYH4.js +0 -27
- package/dist/cli-bundle/chunks/docs-5WMBVQT2.js.map +0 -1
- package/dist/cli-bundle/chunks/docs-MB53UJAJ.js.map +0 -7
- package/dist/cli-bundle/chunks/files-DLB5LJEP.js.map +0 -1
- package/dist/cli-bundle/chunks/files-GVMNVLCB.js.map +0 -7
- package/dist/cli-bundle/chunks/gc-2WEPW6D6.js.map +0 -1
- package/dist/cli-bundle/chunks/gc-4Z3IKHAZ.js.map +0 -7
- package/dist/cli-bundle/chunks/health-4ZYB3IYQ.js.map +0 -1
- package/dist/cli-bundle/chunks/health-YO5LRWN4.js.map +0 -7
- package/dist/cli-bundle/chunks/history-L2FQFRTU.js +0 -20
- package/dist/cli-bundle/chunks/history-redact-QWQCX5DZ.js +0 -19
- package/dist/cli-bundle/chunks/history-repair-KVPFJKOS.js.map +0 -7
- package/dist/cli-bundle/chunks/history-repair-RUGKD3YR.js.map +0 -1
- package/dist/cli-bundle/chunks/init-4BKRHGWW.js +0 -17
- package/dist/cli-bundle/chunks/list-BYNN4ZEO.js +0 -19
- package/dist/cli-bundle/chunks/plan-FQLMJRLZ.js.map +0 -7
- package/dist/cli-bundle/chunks/plan-VNUG3WZZ.js.map +0 -1
- package/dist/cli-bundle/chunks/register-operations-AM6KTWB6.js.map +0 -1
- package/dist/cli-bundle/chunks/register-setup-G4QYI3RX.js.map +0 -7
- package/dist/cli-bundle/chunks/register-setup-IKX5524L.js.map +0 -1
- package/dist/cli-bundle/chunks/restore-CHIOQAQL.js +0 -17
- package/dist/cli-bundle/chunks/test-O74JFUH5.js +0 -32
- package/dist/cli-bundle/chunks/update-2EVXOC7V.js +0 -21
- package/dist/cli-bundle/chunks/update-5A2B6QYB.js +0 -25
- package/dist/cli-bundle/chunks/validate-EQTT6WVX.js.map +0 -1
- package/dist/cli-bundle/chunks/validate-XN4I4DPL.js.map +0 -7
- /package/dist/cli-bundle/chunks/{activity-XADJOG6G.js.map → activity-PPO7QWJF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-XZIUPGZH.js.map → activity-XIOTGZMU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-6OTS3AOO.js.map → aggregate-IRHJWEKG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-OD36DJU5.js.map → aggregate-XEBW22UQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-JYWO4P7W.js.map → append-N2AWXKZC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-KG55G7S3.js.map → append-NL67JNJU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IH4MBKK7.js.map → chunk-2ANTZBYF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-F75JSIOZ.js.map → chunk-2J2AH4V5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CCX4RSYZ.js.map → chunk-32XSW44C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DY6C42S6.js.map → chunk-36BCSMKP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XUC4C4PT.js.map → chunk-3CQPVBK3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SXKNJPQ7.js.map → chunk-3FMQMHAG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-I7NYDZDV.js.map → chunk-3VULHQNS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HHHJ2GI3.js.map → chunk-4FHLNNW7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RXAP6JL5.js.map → chunk-4JHJ7YG2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P5BJOMBB.js.map → chunk-4TPFXE2R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3SLOMKCJ.js.map → chunk-5HSAHRYA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZLMIWZUG.js.map → chunk-5LMF75Q7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TK5VZFHY.js.map → chunk-6TBR5AZ2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ATEES5SX.js.map → chunk-6ZFTM65G.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VFUZV5EB.js.map → chunk-7SM7VA5I.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GKIZW7SM.js.map → chunk-AAUYXSFF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-OASDW5UI.js.map → chunk-AUDDXKNX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZMW77VWV.js.map → chunk-BVL5KGVA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4JCSYR6F.js.map → chunk-C24PWDFG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4HFU4UO2.js.map → chunk-CEGUH2E5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Y3YKK7CY.js.map → chunk-DWG4FHPY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YW6Q3RYZ.js.map → chunk-GFBEXDCQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XMBI6TNW.js.map → chunk-GOO4UXBI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IGVJRZ6H.js.map → chunk-GRZGHGRG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TNAP7EJX.js.map → chunk-HZOX5BYD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VSRZRLG3.js.map → chunk-IIOIBAQW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IUKD4W6Z.js.map → chunk-IXVSSHGV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WUNFKP7M.js.map → chunk-IZHCCG4S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VAOUX6TK.js.map → chunk-JCTZV7TO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZYNJNPYD.js.map → chunk-JE5IZXDS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QNJSITCX.js.map → chunk-JW7D6437.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-B65UUCGQ.js.map → chunk-JWXTOYBI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7RIT3OCD.js.map → chunk-KHGTYCJ6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VPEAS7PS.js.map → chunk-LGOXXQUW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-I2IJY2NL.js.map → chunk-LOAR5TKX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-S26FESD4.js.map → chunk-LSSTKL3Y.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CW6E4NAT.js.map → chunk-LYNQ3NGI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4YFAGDRH.js.map → chunk-M3SI2REU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-73ZPG2I3.js.map → chunk-MACCNKSZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P5U5EOMA.js.map → chunk-NN6RKGFW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GWZSYR6X.js.map → chunk-O3YCJOVX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UUWGCWBU.js.map → chunk-QQG4HEX7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XTKJSVWH.js.map → chunk-QU3OPNVV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EWFY7SLA.js.map → chunk-RHYBR6G7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-S2ZLDYGS.js.map → chunk-SOHXUA2Q.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KWAXVAXX.js.map → chunk-SQDKAEKG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7IYFN5R7.js.map → chunk-TOX7YQ7X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FDH2X65L.js.map → chunk-TSXWFN3L.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-OLKBSY4N.js.map → chunk-UCVJP4JL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AVGHVVF7.js.map → chunk-V4KP3TCN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QKW5D45B.js.map → chunk-VNC2HBL4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QJMGRZO2.js.map → chunk-VYZNX4C5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5SCT2JCT.js.map → chunk-W6KNFAMZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-I53JBTJW.js.map → chunk-WLH7X4RN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ESANVZF4.js.map → chunk-XOYHMHFF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HGLC63AU.js.map → chunk-XWDZVCBJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-MJ7DZFC3.js.map → claim-HE6KEGJW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-2RDYMCTP.js.map → claim-QJOQBH7J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-XLEKIQSW.js.map → close-SPUFW5QR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-4FMAPEMY.js.map → close-WOG5WTMZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-AOD4HSAZ.js.map → close-many-GKAJX54X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-XKAQY5CQ.js.map → close-many-GL6NRUU5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-RN5TG4ZN.js.map → comments-5FPT6L7N.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-B4RWWDJT.js.map → comments-TOLOYWNI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-3JXJ3XZ7.js.map → config-4MN45TIH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-FZ4UDC4B.js.map → config-7N6D7YJE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-QBPO3BFM.js.map → context-AQSLE7DZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-L36PIN35.js.map → context-U3PUJMVN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-MIXBWJIB.js.map → contracts-H7KCQXLY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-3NKWYKKU.js.map → contracts-ITSJXO3O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-ALU5WMHA.js.map → copy-C4W522JM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-FWIVTLBO.js.map → copy-EB3MUCSW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-IFA26O2I.js.map → create-4EQNELMY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-JVXYHYH4.js.map → create-NW3K7LVG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-IYTIYAJS.js.map → delete-X5QLXIQX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-Y2SGJBGY.js.map → delete-ZLGUYIXU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-CZ4PTVXU.js.map → deps-GPB3LGWN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-6TSPOSGU.js.map → deps-HV2C2L46.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-Q34OEWO5.js.map → extension-MM3TVWOO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-WH2FOIOZ.js.map → extension-WKPVPNCC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-QARTE6BL.js.map → get-K7UULTQF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-PCHS7RA6.js.map → get-SAB7CRBG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-7WUAEWHW.js.map → history-GYFD2DJW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-L2FQFRTU.js.map → history-IUVN4NTN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-3EJ3L2O7.js.map → history-compact-SLL6ESXH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-LW27IPFK.js.map → history-compact-WQZQ6KXM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-QWQCX5DZ.js.map → history-redact-75KIIJUJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-G72A4EJ4.js.map → history-redact-SDTDR6WM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-4BKRHGWW.js.map → init-JJFYRUKG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-S5WEGUJY.js.map → init-MXV57LKL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-HQXSSKZ5.js.map → learnings-L6KTZGOT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-XK3P4ZDR.js.map → learnings-QKJOKEAO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-6CL3XFT6.js.map → list-GGVPXEV6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-BYNN4ZEO.js.map → list-VOQDQHA4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-5T6P7C5V.js.map → notes-3NLK7WTZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-U5FZCSBT.js.map → notes-HMCB7TK6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-list-query-VHDXWEPP.js.map → register-list-query-PWQ5F2VI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-list-query-NPE3ECJQ.js.map → register-list-query-SMMMLSWW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-CHIOQAQL.js.map → restore-DRBNXJJH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-M6AFHMV4.js.map → restore-FJQWXMPY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-AINZ2IMM.js.map → schema-RNVJ55V2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-76HDZJCC.js.map → schema-ZZ7ZDM2X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-JMLFQEPJ.js.map → search-BJ457C2A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-NL3TSCYB.js.map → search-FQDZXX7P.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-UBD56TGK.js.map → stats-CUG3ZHOI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-BKXCBIGT.js.map → stats-DUQWCVOS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-ZJXK3H7X.js.map → telemetry-33MRGX4Z.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-N454RHG5.js.map → telemetry-RK2VX75A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-O74JFUH5.js.map → test-SDMYEQHH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-BQAKIXAT.js.map → test-Y3CTFMEC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-all-7LV3I6S5.js.map → test-all-ANYQ33O2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-all-TDYCCBA4.js.map → test-all-ARSMX33Q.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-E64M6XS3.js.map → test-runs-5URSD34O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-LXZLULCI.js.map → test-runs-XNACGSNQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-2EVXOC7V.js.map → update-PD46VOXI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-5A2B6QYB.js.map → update-U235A7WP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-V4LA3C4H.js.map → update-many-6B7PJ33I.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-TUGU5YXQ.js.map → update-many-724JCVDE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{upgrade-37F7JKES.js.map → upgrade-ALBEZAI7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{upgrade-L32JA4TZ.js.map → upgrade-QHRGDBSA.js.map} +0 -0
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d72c921c-3e8b-54f7-ab19-63281361ea78")}catch(e){}}();
|
|
3
3
|
import {
|
|
4
|
-
buildRemediationCommands
|
|
5
|
-
|
|
6
|
-
} from "./chunk-UOO6BYIA.js";
|
|
4
|
+
buildRemediationCommands
|
|
5
|
+
} from "./chunk-PNYAAB4S.js";
|
|
7
6
|
import {
|
|
8
7
|
extractReferencedPmItemIdsFromCommand
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-RHYBR6G7.js";
|
|
9
|
+
import {
|
|
10
|
+
scanHistoryDrift
|
|
11
|
+
} from "./chunk-Z647PYLD.js";
|
|
12
|
+
import "./chunk-JE5IZXDS.js";
|
|
13
|
+
import "./chunk-CEGUH2E5.js";
|
|
14
|
+
import "./chunk-3VULHQNS.js";
|
|
15
|
+
import "./chunk-2J2AH4V5.js";
|
|
16
|
+
import "./chunk-TSXWFN3L.js";
|
|
17
|
+
import "./chunk-SOHXUA2Q.js";
|
|
18
|
+
import "./chunk-JCTZV7TO.js";
|
|
17
19
|
import "./chunk-LXYVKYMQ.js";
|
|
18
20
|
import {
|
|
19
21
|
listAllFrontMatterWithBody
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-L6YQONLM.js";
|
|
23
|
+
import "./chunk-6ZFTM65G.js";
|
|
22
24
|
import {
|
|
23
25
|
normalizeStatusInput
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QQG4HEX7.js";
|
|
25
27
|
import {
|
|
26
28
|
resolveItemTypeRegistry
|
|
27
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-32XSW44C.js";
|
|
28
30
|
import {
|
|
29
31
|
nowIso
|
|
30
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-IZHCCG4S.js";
|
|
31
33
|
import {
|
|
32
34
|
DEFAULT_VALIDATE_CLOSURE_LIKE_METADATA_FIELD_PATTERNS,
|
|
33
35
|
DEFAULT_VALIDATE_STALE_BLOCKER_REASON_PATTERNS,
|
|
@@ -41,7 +43,7 @@ import {
|
|
|
41
43
|
resolvePmRoot,
|
|
42
44
|
resolveRuntimeStatusRegistry,
|
|
43
45
|
toNonEmptyStringOrUndefined
|
|
44
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-S2CDTRJ6.js";
|
|
45
47
|
|
|
46
48
|
// dist/cli/commands/validate.js
|
|
47
49
|
import fs from "node:fs/promises";
|
|
@@ -49,6 +51,205 @@ import { realpathSync } from "node:fs";
|
|
|
49
51
|
import { execFile } from "node:child_process";
|
|
50
52
|
import path from "node:path";
|
|
51
53
|
import { promisify } from "node:util";
|
|
54
|
+
|
|
55
|
+
// dist/core/validate/fix-planning.js
|
|
56
|
+
var DEFAULT_GRANTED_FIX_SCOPES = ["metadata", "resolution"];
|
|
57
|
+
var SUPPORTED_FIX_SCOPES = ["metadata", "resolution", "lifecycle"];
|
|
58
|
+
var DEFAULT_RESOLUTION_BACKFILL_VALUE = "completed";
|
|
59
|
+
function quoteForCommand(value) {
|
|
60
|
+
return `"${value.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;
|
|
61
|
+
}
|
|
62
|
+
function toMeaningfulValue(value) {
|
|
63
|
+
const trimmed = value?.trim();
|
|
64
|
+
return trimmed !== void 0 && trimmed.length > 0 ? trimmed : void 0;
|
|
65
|
+
}
|
|
66
|
+
function planResolutionBackfillFixes(rows) {
|
|
67
|
+
const fixes = [];
|
|
68
|
+
for (const row of rows) {
|
|
69
|
+
if (!row.missing_fields.includes("resolution")) {
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
const value = toMeaningfulValue(row.close_reason) ?? DEFAULT_RESOLUTION_BACKFILL_VALUE;
|
|
73
|
+
fixes.push({
|
|
74
|
+
item_id: row.id,
|
|
75
|
+
check: "resolution",
|
|
76
|
+
field: "resolution",
|
|
77
|
+
kind: "set_resolution",
|
|
78
|
+
value,
|
|
79
|
+
command: `pm update ${row.id} --resolution ${quoteForCommand(value)}`,
|
|
80
|
+
gate: "resolution"
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return fixes;
|
|
84
|
+
}
|
|
85
|
+
function planCloseReasonBackfillFixes(rows) {
|
|
86
|
+
const fixes = [];
|
|
87
|
+
for (const row of rows) {
|
|
88
|
+
const value = toMeaningfulValue(row.resolution);
|
|
89
|
+
if (value === void 0) {
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
fixes.push({
|
|
93
|
+
item_id: row.id,
|
|
94
|
+
check: "metadata",
|
|
95
|
+
field: "close_reason",
|
|
96
|
+
kind: "set_close_reason",
|
|
97
|
+
value,
|
|
98
|
+
command: `pm update ${row.id} --close-reason ${quoteForCommand(value)}`,
|
|
99
|
+
gate: "metadata"
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
return fixes;
|
|
103
|
+
}
|
|
104
|
+
function planTerminalParentFixes(rows) {
|
|
105
|
+
return rows.map((row) => {
|
|
106
|
+
if (row.grandparent_id !== void 0 && row.grandparent_active === true) {
|
|
107
|
+
return {
|
|
108
|
+
item_id: row.id,
|
|
109
|
+
check: "lifecycle",
|
|
110
|
+
field: "parent",
|
|
111
|
+
kind: "reparent",
|
|
112
|
+
parent_id: row.grandparent_id,
|
|
113
|
+
command: `pm update ${row.id} --parent ${row.grandparent_id}`,
|
|
114
|
+
gate: "lifecycle"
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
item_id: row.id,
|
|
119
|
+
check: "lifecycle",
|
|
120
|
+
field: "parent",
|
|
121
|
+
kind: "unset_parent",
|
|
122
|
+
command: `pm update ${row.id} --unset parent`,
|
|
123
|
+
gate: "lifecycle"
|
|
124
|
+
};
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
function planStaleLinkPruneFixes(rows) {
|
|
128
|
+
const fixes = [];
|
|
129
|
+
for (const row of rows) {
|
|
130
|
+
if (row.classification !== "deleted") {
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
const noun = row.link_kind === "files" ? "files" : "docs";
|
|
134
|
+
fixes.push({
|
|
135
|
+
item_id: row.item_id,
|
|
136
|
+
check: "files",
|
|
137
|
+
field: row.link_kind,
|
|
138
|
+
kind: row.link_kind === "files" ? "prune_file_link" : "prune_doc_link",
|
|
139
|
+
path: row.path,
|
|
140
|
+
command: `pm ${noun} ${row.item_id} --remove ${quoteForCommand(row.path)}`
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
return fixes;
|
|
144
|
+
}
|
|
145
|
+
function resolveGrantedFixScopes(rawScopes) {
|
|
146
|
+
const tokens = (rawScopes ?? []).flatMap((raw) => raw.split(",")).map((raw) => raw.trim()).filter((raw) => raw.length > 0);
|
|
147
|
+
if (tokens.length === 0) {
|
|
148
|
+
if (rawScopes !== void 0 && rawScopes.length > 0) {
|
|
149
|
+
throw new PmCliError(`--fix-scope values must not be empty. Supported values: ${SUPPORTED_FIX_SCOPES.join(", ")}.`, EXIT_CODE.USAGE);
|
|
150
|
+
}
|
|
151
|
+
return new Set(DEFAULT_GRANTED_FIX_SCOPES);
|
|
152
|
+
}
|
|
153
|
+
const granted = /* @__PURE__ */ new Set();
|
|
154
|
+
for (const raw of tokens) {
|
|
155
|
+
const normalized = raw.toLowerCase().replaceAll("-", "_");
|
|
156
|
+
if (SUPPORTED_FIX_SCOPES.includes(normalized)) {
|
|
157
|
+
granted.add(normalized);
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
throw new PmCliError(`Unknown --fix-scope value "${raw}". Supported values: ${SUPPORTED_FIX_SCOPES.join(", ")}.`, EXIT_CODE.USAGE);
|
|
161
|
+
}
|
|
162
|
+
return granted;
|
|
163
|
+
}
|
|
164
|
+
function partitionFixesByGrant(fixes, granted) {
|
|
165
|
+
const applicable = [];
|
|
166
|
+
const gated = [];
|
|
167
|
+
for (const fix of fixes) {
|
|
168
|
+
if (fix.gate !== void 0 && !granted.has(fix.gate)) {
|
|
169
|
+
gated.push(fix);
|
|
170
|
+
} else {
|
|
171
|
+
applicable.push(fix);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
return { applicable, gated };
|
|
175
|
+
}
|
|
176
|
+
function toFixOutputRow(fix) {
|
|
177
|
+
return {
|
|
178
|
+
item_id: fix.item_id,
|
|
179
|
+
check: fix.check,
|
|
180
|
+
field: fix.field,
|
|
181
|
+
command: fix.command,
|
|
182
|
+
...fix.gate !== void 0 ? { gate: fix.gate } : {}
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// dist/core/validate/missing-by-type.js
|
|
187
|
+
function buildMissingByTypeCounts(occurrences) {
|
|
188
|
+
const countsByType = /* @__PURE__ */ new Map();
|
|
189
|
+
for (const occurrence of occurrences) {
|
|
190
|
+
let fieldCounts = countsByType.get(occurrence.item_type);
|
|
191
|
+
if (!fieldCounts) {
|
|
192
|
+
fieldCounts = /* @__PURE__ */ new Map();
|
|
193
|
+
countsByType.set(occurrence.item_type, fieldCounts);
|
|
194
|
+
}
|
|
195
|
+
fieldCounts.set(occurrence.field, (fieldCounts.get(occurrence.field) ?? 0) + 1);
|
|
196
|
+
}
|
|
197
|
+
const result = {};
|
|
198
|
+
for (const type of [...countsByType.keys()].sort((left, right) => left.localeCompare(right))) {
|
|
199
|
+
const fieldCounts = countsByType.get(type);
|
|
200
|
+
const fields = {};
|
|
201
|
+
for (const field of [...fieldCounts.keys()].sort((left, right) => left.localeCompare(right))) {
|
|
202
|
+
fields[field] = fieldCounts.get(field);
|
|
203
|
+
}
|
|
204
|
+
result[type] = fields;
|
|
205
|
+
}
|
|
206
|
+
return result;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// dist/core/validate/stale-file-classification.js
|
|
210
|
+
var DEFAULT_STALE_PATH_CANDIDATE_LIMIT = 3;
|
|
211
|
+
function basenameOf(relativePath) {
|
|
212
|
+
const lastSlash = Math.max(relativePath.lastIndexOf("/"), relativePath.lastIndexOf("\\"));
|
|
213
|
+
return lastSlash === -1 ? relativePath : relativePath.slice(lastSlash + 1);
|
|
214
|
+
}
|
|
215
|
+
function classifyStaleLinkedPaths(stalePaths, candidateFiles, candidateLimit = DEFAULT_STALE_PATH_CANDIDATE_LIMIT) {
|
|
216
|
+
const limit = Number.isFinite(candidateLimit) && candidateLimit >= 1 ? Math.floor(candidateLimit) : DEFAULT_STALE_PATH_CANDIDATE_LIMIT;
|
|
217
|
+
const candidatesByBasename = /* @__PURE__ */ new Map();
|
|
218
|
+
for (const candidate of candidateFiles) {
|
|
219
|
+
const basename = basenameOf(candidate);
|
|
220
|
+
if (basename.length === 0) {
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
const bucket = candidatesByBasename.get(basename);
|
|
224
|
+
if (bucket) {
|
|
225
|
+
bucket.push(candidate);
|
|
226
|
+
} else {
|
|
227
|
+
candidatesByBasename.set(basename, [candidate]);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
return stalePaths.map((stalePath) => {
|
|
231
|
+
const matches = (candidatesByBasename.get(basenameOf(stalePath)) ?? []).filter((candidate) => candidate !== stalePath).sort((left, right) => left.localeCompare(right));
|
|
232
|
+
if (matches.length === 0) {
|
|
233
|
+
return {
|
|
234
|
+
path: stalePath,
|
|
235
|
+
classification: "deleted",
|
|
236
|
+
candidates: [],
|
|
237
|
+
candidates_truncated: false
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
return {
|
|
241
|
+
path: stalePath,
|
|
242
|
+
classification: "moved",
|
|
243
|
+
candidates: matches.slice(0, limit),
|
|
244
|
+
candidates_truncated: matches.length > limit
|
|
245
|
+
};
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
function summarizeStaleLinkedPathClassifications(classified) {
|
|
249
|
+
return classified.map((entry) => entry.classification === "moved" ? `${entry.path}:moved:${entry.candidates[0]}` : `${entry.path}:deleted`);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// dist/cli/commands/validate.js
|
|
52
253
|
var FILE_SCAN_DIRECTORIES = ["src", "tests", "docs"];
|
|
53
254
|
var FILE_SCAN_ROOT_FILES = [
|
|
54
255
|
"README.md",
|
|
@@ -520,17 +721,32 @@ function resolveRequestedChecks(options) {
|
|
|
520
721
|
requested.add("command_references");
|
|
521
722
|
}
|
|
522
723
|
if (requested.size === 0) {
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
724
|
+
if (options.autoFix) {
|
|
725
|
+
requested.add("metadata");
|
|
726
|
+
requested.add("resolution");
|
|
727
|
+
requested.add("lifecycle");
|
|
728
|
+
}
|
|
729
|
+
if (options.pruneMissing) {
|
|
730
|
+
requested.add("files");
|
|
731
|
+
}
|
|
732
|
+
if (requested.size === 0) {
|
|
733
|
+
requested.add("metadata");
|
|
734
|
+
requested.add("resolution");
|
|
735
|
+
requested.add("lifecycle");
|
|
736
|
+
requested.add("files");
|
|
737
|
+
requested.add("command_references");
|
|
738
|
+
requested.add("history_drift");
|
|
739
|
+
}
|
|
740
|
+
return requested;
|
|
741
|
+
}
|
|
742
|
+
if (options.pruneMissing) {
|
|
526
743
|
requested.add("files");
|
|
527
|
-
requested.add("command_references");
|
|
528
|
-
requested.add("history_drift");
|
|
529
744
|
}
|
|
530
745
|
return requested;
|
|
531
746
|
}
|
|
532
747
|
function buildMetadataCheck(items, metadataPolicy, statusRegistry, verboseDiagnostics) {
|
|
533
748
|
const missingByField = Object.fromEntries(SUPPORTED_METADATA_REQUIRED_FIELDS.map((field) => [field, []]));
|
|
749
|
+
const itemsById = new Map(items.map((item) => [item.id, item]));
|
|
534
750
|
for (const item of items) {
|
|
535
751
|
for (const field of SUPPORTED_METADATA_REQUIRED_FIELDS) {
|
|
536
752
|
if (!isMetadataFieldMissing(item, field, statusRegistry)) {
|
|
@@ -555,6 +771,14 @@ function buildMetadataCheck(items, metadataPolicy, statusRegistry, verboseDiagno
|
|
|
555
771
|
counts[countKey] = value;
|
|
556
772
|
}
|
|
557
773
|
}
|
|
774
|
+
const missingFieldOccurrences = [];
|
|
775
|
+
for (const field of metadataPolicy.required_fields) {
|
|
776
|
+
for (const itemId of missingByField[field] ?? []) {
|
|
777
|
+
const itemType = itemsById.get(itemId)?.type;
|
|
778
|
+
missingFieldOccurrences.push({ item_type: typeof itemType === "string" && itemType.length > 0 ? itemType : "Unknown", field });
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
const missingByType = buildMissingByTypeCounts(missingFieldOccurrences);
|
|
558
782
|
const details = {
|
|
559
783
|
checked_items: items.length,
|
|
560
784
|
metadata_profile: metadataPolicy.profile,
|
|
@@ -562,7 +786,8 @@ function buildMetadataCheck(items, metadataPolicy, statusRegistry, verboseDiagno
|
|
|
562
786
|
metadata_profile_fallback_to_core: metadataPolicy.fallback_to_core,
|
|
563
787
|
required_fields: [...metadataPolicy.required_fields],
|
|
564
788
|
supported_required_fields: [...SUPPORTED_METADATA_REQUIRED_FIELDS],
|
|
565
|
-
counts
|
|
789
|
+
counts,
|
|
790
|
+
missing_by_type: missingByType
|
|
566
791
|
};
|
|
567
792
|
if (metadataPolicy.configured_custom_fields.length > 0) {
|
|
568
793
|
details.configured_custom_required_fields = [...metadataPolicy.configured_custom_fields];
|
|
@@ -581,13 +806,18 @@ function buildMetadataCheck(items, metadataPolicy, statusRegistry, verboseDiagno
|
|
|
581
806
|
details[idsKey] = summarized.values;
|
|
582
807
|
details[truncatedKey] = summarized.truncated;
|
|
583
808
|
}
|
|
809
|
+
const closeReasonBackfillRows = metadataPolicy.required_fields.includes("close_reason") ? (missingByField.close_reason ?? []).map((itemId) => ({
|
|
810
|
+
id: itemId,
|
|
811
|
+
resolution: toNonEmptyStringOrUndefined(itemsById.get(itemId)?.resolution)
|
|
812
|
+
})) : [];
|
|
584
813
|
return {
|
|
585
814
|
check: {
|
|
586
815
|
name: "metadata",
|
|
587
816
|
status: warningTokens.length === 0 ? "ok" : "warn",
|
|
588
817
|
details
|
|
589
818
|
},
|
|
590
|
-
warnings: warningTokens
|
|
819
|
+
warnings: warningTokens,
|
|
820
|
+
closeReasonBackfillRows
|
|
591
821
|
};
|
|
592
822
|
}
|
|
593
823
|
function buildResolutionCheck(items, statusRegistry, verboseDiagnostics) {
|
|
@@ -595,6 +825,7 @@ function buildResolutionCheck(items, statusRegistry, verboseDiagnostics) {
|
|
|
595
825
|
terminalDoneStatuses.add(statusRegistry.close_status);
|
|
596
826
|
const closedItems = items.filter((item) => terminalDoneStatuses.has(normalizeStatusForRegistry(item.status, statusRegistry)));
|
|
597
827
|
const missingResolutionRows = [];
|
|
828
|
+
const resolutionBackfillRows = [];
|
|
598
829
|
for (const item of closedItems) {
|
|
599
830
|
const missingFields = RESOLUTION_FIELD_KEYS.filter((field) => !toNonEmptyStringOrUndefined(item[field]));
|
|
600
831
|
if (missingFields.length === 0) {
|
|
@@ -604,6 +835,11 @@ function buildResolutionCheck(items, statusRegistry, verboseDiagnostics) {
|
|
|
604
835
|
id: item.id,
|
|
605
836
|
missing_fields: missingFields
|
|
606
837
|
});
|
|
838
|
+
resolutionBackfillRows.push({
|
|
839
|
+
id: item.id,
|
|
840
|
+
missing_fields: missingFields,
|
|
841
|
+
close_reason: toNonEmptyStringOrUndefined(item.close_reason)
|
|
842
|
+
});
|
|
607
843
|
}
|
|
608
844
|
const warnings = missingResolutionRows.length > 0 ? [`validate_resolution_missing_fields:${missingResolutionRows.length}`] : [];
|
|
609
845
|
const diagnosticLimit = verboseDiagnostics ? Number.POSITIVE_INFINITY : DIAGNOSTIC_LIST_SUMMARY_LIMIT;
|
|
@@ -623,7 +859,8 @@ function buildResolutionCheck(items, statusRegistry, verboseDiagnostics) {
|
|
|
623
859
|
missing_resolution_remediation_hints_truncated: summarizedHints.truncated
|
|
624
860
|
}
|
|
625
861
|
},
|
|
626
|
-
warnings
|
|
862
|
+
warnings,
|
|
863
|
+
resolutionBackfillRows
|
|
627
864
|
};
|
|
628
865
|
}
|
|
629
866
|
function buildLifecycleDependencyGraph(activeItems) {
|
|
@@ -744,6 +981,7 @@ function buildLifecycleCheck(items, includeStaleBlockers, dependencyCycleSeverit
|
|
|
744
981
|
const activeItems = items.filter((item) => !isTerminalStatus(item.status, statusRegistry));
|
|
745
982
|
const closureLikeRows = [];
|
|
746
983
|
const terminalParentRows = [];
|
|
984
|
+
const terminalParentFixRows = [];
|
|
747
985
|
const staleBlockerRows = [];
|
|
748
986
|
for (const item of activeItems) {
|
|
749
987
|
const closureLikeFields = Object.entries(lifecyclePatternPolicy.closure_like_metadata_field_patterns).filter(([field, patterns]) => {
|
|
@@ -769,6 +1007,14 @@ function buildLifecycleCheck(items, includeStaleBlockers, dependencyCycleSeverit
|
|
|
769
1007
|
parent_id: parent.id,
|
|
770
1008
|
parent_status: parent.status
|
|
771
1009
|
});
|
|
1010
|
+
const grandparentId = toMeaningfulString(parent.parent);
|
|
1011
|
+
const grandparent = grandparentId ? itemsById.get(grandparentId) : void 0;
|
|
1012
|
+
terminalParentFixRows.push({
|
|
1013
|
+
id: item.id,
|
|
1014
|
+
parent_id: parent.id,
|
|
1015
|
+
grandparent_id: grandparent?.id,
|
|
1016
|
+
grandparent_active: grandparent !== void 0 && !isTerminalStatus(grandparent.status, statusRegistry)
|
|
1017
|
+
});
|
|
772
1018
|
}
|
|
773
1019
|
}
|
|
774
1020
|
if (includeStaleBlockers) {
|
|
@@ -806,6 +1052,7 @@ function buildLifecycleCheck(items, includeStaleBlockers, dependencyCycleSeverit
|
|
|
806
1052
|
}
|
|
807
1053
|
closureLikeRows.sort((left, right) => left.id.localeCompare(right.id));
|
|
808
1054
|
terminalParentRows.sort((left, right) => left.id.localeCompare(right.id) || left.parent_id.localeCompare(right.parent_id));
|
|
1055
|
+
terminalParentFixRows.sort((left, right) => left.id.localeCompare(right.id) || left.parent_id.localeCompare(right.parent_id));
|
|
809
1056
|
staleBlockerRows.sort((left, right) => left.id.localeCompare(right.id));
|
|
810
1057
|
const dependencyCycleDiagnostics = detectLifecycleDependencyCycles(activeItems);
|
|
811
1058
|
const warnings = [];
|
|
@@ -862,31 +1109,43 @@ function buildLifecycleCheck(items, includeStaleBlockers, dependencyCycleSeverit
|
|
|
862
1109
|
closure_like_actual_result_pattern_source: lifecyclePatternPolicy.closure_like_metadata_field_pattern_sources.actual_result
|
|
863
1110
|
}
|
|
864
1111
|
},
|
|
865
|
-
warnings
|
|
1112
|
+
warnings,
|
|
1113
|
+
terminalParentFixRows
|
|
866
1114
|
};
|
|
867
1115
|
}
|
|
868
1116
|
async function buildFilesCheck(items, workspaceRoot, pmRoot, fileScanMode, includePmInternals, verboseFileLists) {
|
|
869
1117
|
const linkedProjectPaths = /* @__PURE__ */ new Set();
|
|
870
1118
|
const missingLinkedPaths = [];
|
|
1119
|
+
const staleLinkRows = [];
|
|
871
1120
|
for (const item of items) {
|
|
872
|
-
const
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
const
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
1121
|
+
const linkedArtifactGroups = [
|
|
1122
|
+
{ link_kind: "files", artifacts: item.files ?? [] },
|
|
1123
|
+
{ link_kind: "docs", artifacts: item.docs ?? [] }
|
|
1124
|
+
];
|
|
1125
|
+
for (const group of linkedArtifactGroups) {
|
|
1126
|
+
for (const artifact of group.artifacts) {
|
|
1127
|
+
if (artifact.scope !== "project") {
|
|
1128
|
+
continue;
|
|
1129
|
+
}
|
|
1130
|
+
const normalizedPath = normalizeRelativePath(artifact.path);
|
|
1131
|
+
if (normalizedPath.length === 0) {
|
|
1132
|
+
continue;
|
|
1133
|
+
}
|
|
1134
|
+
linkedProjectPaths.add(normalizedPath);
|
|
1135
|
+
const absolutePath = path.isAbsolute(artifact.path) ? artifact.path : path.resolve(workspaceRoot, artifact.path);
|
|
1136
|
+
let missing = false;
|
|
1137
|
+
try {
|
|
1138
|
+
const stats = await fs.stat(absolutePath);
|
|
1139
|
+
if (!stats.isFile() && !stats.isDirectory()) {
|
|
1140
|
+
missing = true;
|
|
1141
|
+
}
|
|
1142
|
+
} catch {
|
|
1143
|
+
missing = true;
|
|
1144
|
+
}
|
|
1145
|
+
if (missing) {
|
|
886
1146
|
missingLinkedPaths.push(normalizedPath);
|
|
1147
|
+
staleLinkRows.push({ item_id: item.id, path: normalizedPath, link_kind: group.link_kind });
|
|
887
1148
|
}
|
|
888
|
-
} catch {
|
|
889
|
-
missingLinkedPaths.push(normalizedPath);
|
|
890
1149
|
}
|
|
891
1150
|
}
|
|
892
1151
|
}
|
|
@@ -910,6 +1169,13 @@ async function buildFilesCheck(items, workspaceRoot, pmRoot, fileScanMode, inclu
|
|
|
910
1169
|
};
|
|
911
1170
|
}
|
|
912
1171
|
const orphanedFiles = candidateFiles.filter((candidate) => !linkedProjectPaths.has(candidate));
|
|
1172
|
+
const classifiedStalePaths = classifyStaleLinkedPaths(uniqueMissingLinkedPaths, candidateFiles);
|
|
1173
|
+
const classificationByPath = new Map(classifiedStalePaths.map((entry) => [entry.path, entry.classification]));
|
|
1174
|
+
const movedStalePathCount = classifiedStalePaths.filter((entry) => entry.classification === "moved").length;
|
|
1175
|
+
const staleLinkPruneRows = staleLinkRows.map((row) => ({
|
|
1176
|
+
...row,
|
|
1177
|
+
classification: classificationByPath.get(row.path) ?? "deleted"
|
|
1178
|
+
})).sort((left, right) => left.item_id.localeCompare(right.item_id) || left.path.localeCompare(right.path) || left.link_kind.localeCompare(right.link_kind));
|
|
913
1179
|
const warnings = [];
|
|
914
1180
|
if (strictModeForcesPmInternals) {
|
|
915
1181
|
warnings.push("validate_files_tracked_all_strict_forces_pm_internals");
|
|
@@ -922,6 +1188,7 @@ async function buildFilesCheck(items, workspaceRoot, pmRoot, fileScanMode, inclu
|
|
|
922
1188
|
}
|
|
923
1189
|
const summarizedMissing = summarizeFileList(uniqueMissingLinkedPaths, verboseFileLists);
|
|
924
1190
|
const summarizedOrphaned = summarizeFileList(orphanedFiles, verboseFileLists);
|
|
1191
|
+
const summarizedClassifications = summarizeFileList(summarizeStaleLinkedPathClassifications(classifiedStalePaths), verboseFileLists);
|
|
925
1192
|
return {
|
|
926
1193
|
check: {
|
|
927
1194
|
name: "files",
|
|
@@ -952,13 +1219,18 @@ async function buildFilesCheck(items, workspaceRoot, pmRoot, fileScanMode, inclu
|
|
|
952
1219
|
missing_linked_paths_total: summarizedMissing.total,
|
|
953
1220
|
missing_linked_paths: summarizedMissing.values,
|
|
954
1221
|
missing_linked_paths_truncated: summarizedMissing.truncated,
|
|
1222
|
+
missing_linked_paths_moved_count: movedStalePathCount,
|
|
1223
|
+
missing_linked_paths_deleted_count: uniqueMissingLinkedPaths.length - movedStalePathCount,
|
|
1224
|
+
missing_linked_path_classifications: summarizedClassifications.values,
|
|
1225
|
+
missing_linked_path_classifications_truncated: summarizedClassifications.truncated,
|
|
955
1226
|
orphaned_paths_count: orphanedFiles.length,
|
|
956
1227
|
orphaned_paths_total: summarizedOrphaned.total,
|
|
957
1228
|
orphaned_paths: summarizedOrphaned.values,
|
|
958
1229
|
orphaned_paths_truncated: summarizedOrphaned.truncated
|
|
959
1230
|
}
|
|
960
1231
|
},
|
|
961
|
-
warnings
|
|
1232
|
+
warnings,
|
|
1233
|
+
staleLinkPruneRows
|
|
962
1234
|
};
|
|
963
1235
|
}
|
|
964
1236
|
async function buildHistoryDriftCheck(pmRoot, items, verboseDiagnostics) {
|
|
@@ -1057,7 +1329,93 @@ function buildCommandReferencesCheck(items, idPrefix, verboseDiagnostics) {
|
|
|
1057
1329
|
warnings
|
|
1058
1330
|
};
|
|
1059
1331
|
}
|
|
1332
|
+
var VALIDATE_AUTO_FIX_MESSAGE = "pm validate auto-fix";
|
|
1333
|
+
async function applyValidateFix(fix, global) {
|
|
1334
|
+
switch (fix.kind) {
|
|
1335
|
+
case "set_resolution":
|
|
1336
|
+
case "set_close_reason":
|
|
1337
|
+
case "reparent":
|
|
1338
|
+
case "unset_parent": {
|
|
1339
|
+
const { runUpdate } = await import("./update-U235A7WP.js");
|
|
1340
|
+
const updateOptions = { message: VALIDATE_AUTO_FIX_MESSAGE };
|
|
1341
|
+
if (fix.kind === "set_resolution") {
|
|
1342
|
+
updateOptions.resolution = fix.value;
|
|
1343
|
+
} else if (fix.kind === "set_close_reason") {
|
|
1344
|
+
updateOptions.closeReason = fix.value;
|
|
1345
|
+
} else if (fix.kind === "reparent") {
|
|
1346
|
+
updateOptions.parent = fix.parent_id;
|
|
1347
|
+
} else {
|
|
1348
|
+
updateOptions.unset = ["parent"];
|
|
1349
|
+
}
|
|
1350
|
+
await runUpdate(fix.item_id, updateOptions, global);
|
|
1351
|
+
return;
|
|
1352
|
+
}
|
|
1353
|
+
case "prune_file_link": {
|
|
1354
|
+
throw new Error(`Unsupported non-batched fix kind: ${fix.kind}`);
|
|
1355
|
+
}
|
|
1356
|
+
case "prune_doc_link": {
|
|
1357
|
+
throw new Error(`Unsupported non-batched fix kind: ${fix.kind}`);
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
function pruneBatchKey(fix) {
|
|
1362
|
+
if (fix.kind !== "prune_file_link" && fix.kind !== "prune_doc_link") {
|
|
1363
|
+
return null;
|
|
1364
|
+
}
|
|
1365
|
+
return `${fix.kind}:${fix.item_id}`;
|
|
1366
|
+
}
|
|
1367
|
+
async function applyValidateFixes(applicable, global) {
|
|
1368
|
+
const applied = [];
|
|
1369
|
+
const failed = [];
|
|
1370
|
+
const pruneBatches = /* @__PURE__ */ new Map();
|
|
1371
|
+
for (const fix of applicable) {
|
|
1372
|
+
const batchKey = pruneBatchKey(fix);
|
|
1373
|
+
if (batchKey === null) {
|
|
1374
|
+
try {
|
|
1375
|
+
await applyValidateFix(fix, global);
|
|
1376
|
+
applied.push(fix);
|
|
1377
|
+
} catch (error) {
|
|
1378
|
+
failed.push({ fix, error });
|
|
1379
|
+
}
|
|
1380
|
+
continue;
|
|
1381
|
+
}
|
|
1382
|
+
const existing = pruneBatches.get(batchKey);
|
|
1383
|
+
if (existing) {
|
|
1384
|
+
existing.push(fix);
|
|
1385
|
+
} else {
|
|
1386
|
+
pruneBatches.set(batchKey, [fix]);
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
for (const batch of pruneBatches.values()) {
|
|
1390
|
+
const first = batch[0];
|
|
1391
|
+
if (!first) {
|
|
1392
|
+
continue;
|
|
1393
|
+
}
|
|
1394
|
+
const remove = batch.map((fix) => fix.path).filter((value) => typeof value === "string" && value.length > 0);
|
|
1395
|
+
try {
|
|
1396
|
+
if (first.kind === "prune_file_link") {
|
|
1397
|
+
const { runFiles } = await import("./files-OIFN3DQX.js");
|
|
1398
|
+
await runFiles(first.item_id, { remove, message: VALIDATE_AUTO_FIX_MESSAGE }, global);
|
|
1399
|
+
} else {
|
|
1400
|
+
const { runDocs } = await import("./docs-RJQPLROO.js");
|
|
1401
|
+
await runDocs(first.item_id, { remove, message: VALIDATE_AUTO_FIX_MESSAGE }, global);
|
|
1402
|
+
}
|
|
1403
|
+
applied.push(...batch);
|
|
1404
|
+
} catch (error) {
|
|
1405
|
+
failed.push(...batch.map((fix) => ({ fix, error })));
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
return { applied, failed };
|
|
1409
|
+
}
|
|
1060
1410
|
async function runValidate(options, global) {
|
|
1411
|
+
const fixesRequested = options.autoFix === true || options.pruneMissing === true;
|
|
1412
|
+
if (options.dryRun === true && !fixesRequested) {
|
|
1413
|
+
throw new PmCliError("--dry-run requires --auto-fix or --prune-missing (there is nothing to preview otherwise).", EXIT_CODE.USAGE);
|
|
1414
|
+
}
|
|
1415
|
+
if (options.fixScope !== void 0 && options.fixScope.length > 0 && options.autoFix !== true) {
|
|
1416
|
+
throw new PmCliError("--fix-scope requires --auto-fix.", EXIT_CODE.USAGE);
|
|
1417
|
+
}
|
|
1418
|
+
const grantedFixScopes = resolveGrantedFixScopes(options.fixScope);
|
|
1061
1419
|
const pmRoot = resolvePmRoot(process.cwd(), global.path);
|
|
1062
1420
|
if (!await pathExists(getSettingsPath(pmRoot))) {
|
|
1063
1421
|
throw new PmCliError(`Tracker is not initialized at ${pmRoot}. Run pm init first.`, EXIT_CODE.NOT_FOUND);
|
|
@@ -1085,17 +1443,29 @@ async function runValidate(options, global) {
|
|
|
1085
1443
|
checks.push(built.check);
|
|
1086
1444
|
warnings.push(...built.warnings);
|
|
1087
1445
|
};
|
|
1446
|
+
let closeReasonBackfillRows = [];
|
|
1447
|
+
let resolutionBackfillRows = [];
|
|
1448
|
+
let terminalParentFixRows = [];
|
|
1449
|
+
let staleLinkPruneRows = [];
|
|
1088
1450
|
if (requestedChecks.has("metadata")) {
|
|
1089
|
-
|
|
1451
|
+
const built = buildMetadataCheck(items, metadataPolicy, statusRegistry, Boolean(options.verboseDiagnostics));
|
|
1452
|
+
closeReasonBackfillRows = built.closeReasonBackfillRows;
|
|
1453
|
+
record(built);
|
|
1090
1454
|
}
|
|
1091
1455
|
if (requestedChecks.has("resolution")) {
|
|
1092
|
-
|
|
1456
|
+
const built = buildResolutionCheck(items, statusRegistry, Boolean(options.verboseDiagnostics));
|
|
1457
|
+
resolutionBackfillRows = built.resolutionBackfillRows;
|
|
1458
|
+
record(built);
|
|
1093
1459
|
}
|
|
1094
1460
|
if (requestedChecks.has("lifecycle")) {
|
|
1095
|
-
|
|
1461
|
+
const built = buildLifecycleCheck(items, Boolean(options.checkStaleBlockers), dependencyCycleSeverity, statusRegistry, lifecyclePatternPolicy, Boolean(options.verboseDiagnostics));
|
|
1462
|
+
terminalParentFixRows = built.terminalParentFixRows;
|
|
1463
|
+
record(built);
|
|
1096
1464
|
}
|
|
1097
1465
|
if (requestedChecks.has("files")) {
|
|
1098
|
-
|
|
1466
|
+
const built = await buildFilesCheck(items, workspaceRoot, pmRoot, fileScanMode, Boolean(options.includePmInternals), Boolean(options.verboseFileLists));
|
|
1467
|
+
staleLinkPruneRows = built.staleLinkPruneRows;
|
|
1468
|
+
record(built);
|
|
1099
1469
|
}
|
|
1100
1470
|
if (requestedChecks.has("command_references")) {
|
|
1101
1471
|
record(buildCommandReferencesCheck(items, settings.id_prefix, Boolean(options.verboseDiagnostics)));
|
|
@@ -1103,6 +1473,47 @@ async function runValidate(options, global) {
|
|
|
1103
1473
|
if (requestedChecks.has("history_drift")) {
|
|
1104
1474
|
record(await buildHistoryDriftCheck(pmRoot, items, Boolean(options.verboseDiagnostics)));
|
|
1105
1475
|
}
|
|
1476
|
+
let fixes;
|
|
1477
|
+
if (fixesRequested) {
|
|
1478
|
+
const planned = [];
|
|
1479
|
+
if (options.autoFix === true) {
|
|
1480
|
+
planned.push(...planCloseReasonBackfillFixes(closeReasonBackfillRows));
|
|
1481
|
+
planned.push(...planResolutionBackfillFixes(resolutionBackfillRows));
|
|
1482
|
+
planned.push(...planTerminalParentFixes(terminalParentFixRows));
|
|
1483
|
+
}
|
|
1484
|
+
if (options.pruneMissing === true) {
|
|
1485
|
+
planned.push(...planStaleLinkPruneFixes(staleLinkPruneRows));
|
|
1486
|
+
}
|
|
1487
|
+
const { applicable, gated } = partitionFixesByGrant(planned, grantedFixScopes);
|
|
1488
|
+
const dryRun = options.dryRun === true;
|
|
1489
|
+
const appliedFixRows = [];
|
|
1490
|
+
const failedFixRows = [];
|
|
1491
|
+
if (!dryRun) {
|
|
1492
|
+
const applied = await applyValidateFixes(applicable, global);
|
|
1493
|
+
appliedFixRows.push(...applied.applied.map(toFixOutputRow));
|
|
1494
|
+
failedFixRows.push(...applied.failed.map(({ fix, error }) => ({
|
|
1495
|
+
...toFixOutputRow(fix),
|
|
1496
|
+
error: error instanceof Error ? error.message : String(error)
|
|
1497
|
+
})));
|
|
1498
|
+
}
|
|
1499
|
+
fixes = {
|
|
1500
|
+
mode: dryRun ? "dry_run" : "apply",
|
|
1501
|
+
auto_fix: options.autoFix === true,
|
|
1502
|
+
prune_missing: options.pruneMissing === true,
|
|
1503
|
+
granted_fix_scopes: [...grantedFixScopes].sort((left, right) => left.localeCompare(right)),
|
|
1504
|
+
planned_count: planned.length,
|
|
1505
|
+
applied_count: appliedFixRows.length,
|
|
1506
|
+
gated_count: gated.length,
|
|
1507
|
+
failed_count: failedFixRows.length,
|
|
1508
|
+
planned_fixes: planned.map(toFixOutputRow),
|
|
1509
|
+
applied_fixes: appliedFixRows,
|
|
1510
|
+
gated_fixes: gated.map((fix) => ({
|
|
1511
|
+
...toFixOutputRow(fix),
|
|
1512
|
+
gate_hint: `Withheld: re-run with --fix-scope ${fix.gate} to apply.`
|
|
1513
|
+
})),
|
|
1514
|
+
failed_fixes: failedFixRows
|
|
1515
|
+
};
|
|
1516
|
+
}
|
|
1106
1517
|
const normalizedWarnings = [...new Set(warnings)].sort((left, right) => left.localeCompare(right));
|
|
1107
1518
|
const hasErrors = checks.some((check) => check.status === "error");
|
|
1108
1519
|
return {
|
|
@@ -1110,12 +1521,13 @@ async function runValidate(options, global) {
|
|
|
1110
1521
|
has_warnings: normalizedWarnings.length > 0,
|
|
1111
1522
|
checks,
|
|
1112
1523
|
warnings: normalizedWarnings,
|
|
1524
|
+
...fixes !== void 0 ? { fixes } : {},
|
|
1113
1525
|
generated_at: nowIso()
|
|
1114
1526
|
};
|
|
1115
1527
|
}
|
|
1116
1528
|
export {
|
|
1117
1529
|
runValidate
|
|
1118
1530
|
};
|
|
1119
|
-
//# sourceMappingURL=validate-
|
|
1531
|
+
//# sourceMappingURL=validate-IQRYFXIV.js.map
|
|
1120
1532
|
|
|
1121
|
-
//# debugId=
|
|
1533
|
+
//# debugId=d72c921c-3e8b-54f7-ab19-63281361ea78
|