@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,31 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
buildRemediationCommands
|
|
3
|
-
|
|
4
|
-
} from "./chunk-LCSCXBGT.js";
|
|
2
|
+
buildRemediationCommands
|
|
3
|
+
} from "./chunk-R4VWYWRN.js";
|
|
5
4
|
import {
|
|
6
5
|
extractReferencedPmItemIdsFromCommand
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-4FHLNNW7.js";
|
|
7
|
+
import {
|
|
8
|
+
scanHistoryDrift
|
|
9
|
+
} from "./chunk-HWHONML5.js";
|
|
10
|
+
import "./chunk-GOO4UXBI.js";
|
|
11
|
+
import "./chunk-3FMQMHAG.js";
|
|
12
|
+
import "./chunk-HZOX5BYD.js";
|
|
13
|
+
import "./chunk-WLH7X4RN.js";
|
|
14
|
+
import "./chunk-UCVJP4JL.js";
|
|
15
|
+
import "./chunk-SQDKAEKG.js";
|
|
16
|
+
import "./chunk-5LMF75Q7.js";
|
|
15
17
|
import "./chunk-3HUE7XOF.js";
|
|
16
18
|
import {
|
|
17
19
|
listAllFrontMatterWithBody
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-XXLMJDUB.js";
|
|
21
|
+
import "./chunk-LGOXXQUW.js";
|
|
20
22
|
import {
|
|
21
23
|
normalizeStatusInput
|
|
22
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MACCNKSZ.js";
|
|
23
25
|
import {
|
|
24
26
|
resolveItemTypeRegistry
|
|
25
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-W6KNFAMZ.js";
|
|
26
28
|
import {
|
|
27
29
|
nowIso
|
|
28
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-IXVSSHGV.js";
|
|
29
31
|
import {
|
|
30
32
|
DEFAULT_VALIDATE_CLOSURE_LIKE_METADATA_FIELD_PATTERNS,
|
|
31
33
|
DEFAULT_VALIDATE_STALE_BLOCKER_REASON_PATTERNS,
|
|
@@ -39,7 +41,7 @@ import {
|
|
|
39
41
|
resolvePmRoot,
|
|
40
42
|
resolveRuntimeStatusRegistry,
|
|
41
43
|
toNonEmptyStringOrUndefined
|
|
42
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-LFW5NQUP.js";
|
|
43
45
|
|
|
44
46
|
// dist/cli/commands/validate.js
|
|
45
47
|
import fs from "node:fs/promises";
|
|
@@ -47,10 +49,230 @@ import { realpathSync } from "node:fs";
|
|
|
47
49
|
import { execFile } from "node:child_process";
|
|
48
50
|
import path from "node:path";
|
|
49
51
|
import { promisify } from "node:util";
|
|
52
|
+
|
|
53
|
+
// dist/core/validate/fix-planning.js
|
|
54
|
+
!(function() {
|
|
55
|
+
try {
|
|
56
|
+
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
57
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7163fbbf-1a9c-52e0-a1d5-6034abefc50f");
|
|
58
|
+
} catch (e2) {
|
|
59
|
+
}
|
|
60
|
+
})();
|
|
61
|
+
var DEFAULT_GRANTED_FIX_SCOPES = ["metadata", "resolution"];
|
|
62
|
+
var SUPPORTED_FIX_SCOPES = ["metadata", "resolution", "lifecycle"];
|
|
63
|
+
var DEFAULT_RESOLUTION_BACKFILL_VALUE = "completed";
|
|
64
|
+
function quoteForCommand(value) {
|
|
65
|
+
return `"${value.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;
|
|
66
|
+
}
|
|
67
|
+
function toMeaningfulValue(value) {
|
|
68
|
+
const trimmed = value?.trim();
|
|
69
|
+
return trimmed !== void 0 && trimmed.length > 0 ? trimmed : void 0;
|
|
70
|
+
}
|
|
71
|
+
function planResolutionBackfillFixes(rows) {
|
|
72
|
+
const fixes = [];
|
|
73
|
+
for (const row of rows) {
|
|
74
|
+
if (!row.missing_fields.includes("resolution")) {
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
const value = toMeaningfulValue(row.close_reason) ?? DEFAULT_RESOLUTION_BACKFILL_VALUE;
|
|
78
|
+
fixes.push({
|
|
79
|
+
item_id: row.id,
|
|
80
|
+
check: "resolution",
|
|
81
|
+
field: "resolution",
|
|
82
|
+
kind: "set_resolution",
|
|
83
|
+
value,
|
|
84
|
+
command: `pm update ${row.id} --resolution ${quoteForCommand(value)}`,
|
|
85
|
+
gate: "resolution"
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
return fixes;
|
|
89
|
+
}
|
|
90
|
+
function planCloseReasonBackfillFixes(rows) {
|
|
91
|
+
const fixes = [];
|
|
92
|
+
for (const row of rows) {
|
|
93
|
+
const value = toMeaningfulValue(row.resolution);
|
|
94
|
+
if (value === void 0) {
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
fixes.push({
|
|
98
|
+
item_id: row.id,
|
|
99
|
+
check: "metadata",
|
|
100
|
+
field: "close_reason",
|
|
101
|
+
kind: "set_close_reason",
|
|
102
|
+
value,
|
|
103
|
+
command: `pm update ${row.id} --close-reason ${quoteForCommand(value)}`,
|
|
104
|
+
gate: "metadata"
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
return fixes;
|
|
108
|
+
}
|
|
109
|
+
function planTerminalParentFixes(rows) {
|
|
110
|
+
return rows.map((row) => {
|
|
111
|
+
if (row.grandparent_id !== void 0 && row.grandparent_active === true) {
|
|
112
|
+
return {
|
|
113
|
+
item_id: row.id,
|
|
114
|
+
check: "lifecycle",
|
|
115
|
+
field: "parent",
|
|
116
|
+
kind: "reparent",
|
|
117
|
+
parent_id: row.grandparent_id,
|
|
118
|
+
command: `pm update ${row.id} --parent ${row.grandparent_id}`,
|
|
119
|
+
gate: "lifecycle"
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
item_id: row.id,
|
|
124
|
+
check: "lifecycle",
|
|
125
|
+
field: "parent",
|
|
126
|
+
kind: "unset_parent",
|
|
127
|
+
command: `pm update ${row.id} --unset parent`,
|
|
128
|
+
gate: "lifecycle"
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
function planStaleLinkPruneFixes(rows) {
|
|
133
|
+
const fixes = [];
|
|
134
|
+
for (const row of rows) {
|
|
135
|
+
if (row.classification !== "deleted") {
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
const noun = row.link_kind === "files" ? "files" : "docs";
|
|
139
|
+
fixes.push({
|
|
140
|
+
item_id: row.item_id,
|
|
141
|
+
check: "files",
|
|
142
|
+
field: row.link_kind,
|
|
143
|
+
kind: row.link_kind === "files" ? "prune_file_link" : "prune_doc_link",
|
|
144
|
+
path: row.path,
|
|
145
|
+
command: `pm ${noun} ${row.item_id} --remove ${quoteForCommand(row.path)}`
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
return fixes;
|
|
149
|
+
}
|
|
150
|
+
function resolveGrantedFixScopes(rawScopes) {
|
|
151
|
+
const tokens = (rawScopes ?? []).flatMap((raw) => raw.split(",")).map((raw) => raw.trim()).filter((raw) => raw.length > 0);
|
|
152
|
+
if (tokens.length === 0) {
|
|
153
|
+
if (rawScopes !== void 0 && rawScopes.length > 0) {
|
|
154
|
+
throw new PmCliError(`--fix-scope values must not be empty. Supported values: ${SUPPORTED_FIX_SCOPES.join(", ")}.`, EXIT_CODE.USAGE);
|
|
155
|
+
}
|
|
156
|
+
return new Set(DEFAULT_GRANTED_FIX_SCOPES);
|
|
157
|
+
}
|
|
158
|
+
const granted = /* @__PURE__ */ new Set();
|
|
159
|
+
for (const raw of tokens) {
|
|
160
|
+
const normalized = raw.toLowerCase().replaceAll("-", "_");
|
|
161
|
+
if (SUPPORTED_FIX_SCOPES.includes(normalized)) {
|
|
162
|
+
granted.add(normalized);
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
throw new PmCliError(`Unknown --fix-scope value "${raw}". Supported values: ${SUPPORTED_FIX_SCOPES.join(", ")}.`, EXIT_CODE.USAGE);
|
|
166
|
+
}
|
|
167
|
+
return granted;
|
|
168
|
+
}
|
|
169
|
+
function partitionFixesByGrant(fixes, granted) {
|
|
170
|
+
const applicable = [];
|
|
171
|
+
const gated = [];
|
|
172
|
+
for (const fix of fixes) {
|
|
173
|
+
if (fix.gate !== void 0 && !granted.has(fix.gate)) {
|
|
174
|
+
gated.push(fix);
|
|
175
|
+
} else {
|
|
176
|
+
applicable.push(fix);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return { applicable, gated };
|
|
180
|
+
}
|
|
181
|
+
function toFixOutputRow(fix) {
|
|
182
|
+
return {
|
|
183
|
+
item_id: fix.item_id,
|
|
184
|
+
check: fix.check,
|
|
185
|
+
field: fix.field,
|
|
186
|
+
command: fix.command,
|
|
187
|
+
...fix.gate !== void 0 ? { gate: fix.gate } : {}
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// dist/core/validate/missing-by-type.js
|
|
192
|
+
!(function() {
|
|
193
|
+
try {
|
|
194
|
+
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
195
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "16988d98-5a10-5e0a-952c-0a6289ab5935");
|
|
196
|
+
} catch (e2) {
|
|
197
|
+
}
|
|
198
|
+
})();
|
|
199
|
+
function buildMissingByTypeCounts(occurrences) {
|
|
200
|
+
const countsByType = /* @__PURE__ */ new Map();
|
|
201
|
+
for (const occurrence of occurrences) {
|
|
202
|
+
let fieldCounts = countsByType.get(occurrence.item_type);
|
|
203
|
+
if (!fieldCounts) {
|
|
204
|
+
fieldCounts = /* @__PURE__ */ new Map();
|
|
205
|
+
countsByType.set(occurrence.item_type, fieldCounts);
|
|
206
|
+
}
|
|
207
|
+
fieldCounts.set(occurrence.field, (fieldCounts.get(occurrence.field) ?? 0) + 1);
|
|
208
|
+
}
|
|
209
|
+
const result = {};
|
|
210
|
+
for (const type of [...countsByType.keys()].sort((left, right) => left.localeCompare(right))) {
|
|
211
|
+
const fieldCounts = countsByType.get(type);
|
|
212
|
+
const fields = {};
|
|
213
|
+
for (const field of [...fieldCounts.keys()].sort((left, right) => left.localeCompare(right))) {
|
|
214
|
+
fields[field] = fieldCounts.get(field);
|
|
215
|
+
}
|
|
216
|
+
result[type] = fields;
|
|
217
|
+
}
|
|
218
|
+
return result;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// dist/core/validate/stale-file-classification.js
|
|
222
|
+
!(function() {
|
|
223
|
+
try {
|
|
224
|
+
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
225
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2df68560-32a7-5762-9470-cf82e978a90d");
|
|
226
|
+
} catch (e2) {
|
|
227
|
+
}
|
|
228
|
+
})();
|
|
229
|
+
var DEFAULT_STALE_PATH_CANDIDATE_LIMIT = 3;
|
|
230
|
+
function basenameOf(relativePath) {
|
|
231
|
+
const lastSlash = Math.max(relativePath.lastIndexOf("/"), relativePath.lastIndexOf("\\"));
|
|
232
|
+
return lastSlash === -1 ? relativePath : relativePath.slice(lastSlash + 1);
|
|
233
|
+
}
|
|
234
|
+
function classifyStaleLinkedPaths(stalePaths, candidateFiles, candidateLimit = DEFAULT_STALE_PATH_CANDIDATE_LIMIT) {
|
|
235
|
+
const limit = Number.isFinite(candidateLimit) && candidateLimit >= 1 ? Math.floor(candidateLimit) : DEFAULT_STALE_PATH_CANDIDATE_LIMIT;
|
|
236
|
+
const candidatesByBasename = /* @__PURE__ */ new Map();
|
|
237
|
+
for (const candidate of candidateFiles) {
|
|
238
|
+
const basename = basenameOf(candidate);
|
|
239
|
+
if (basename.length === 0) {
|
|
240
|
+
continue;
|
|
241
|
+
}
|
|
242
|
+
const bucket = candidatesByBasename.get(basename);
|
|
243
|
+
if (bucket) {
|
|
244
|
+
bucket.push(candidate);
|
|
245
|
+
} else {
|
|
246
|
+
candidatesByBasename.set(basename, [candidate]);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
return stalePaths.map((stalePath) => {
|
|
250
|
+
const matches = (candidatesByBasename.get(basenameOf(stalePath)) ?? []).filter((candidate) => candidate !== stalePath).sort((left, right) => left.localeCompare(right));
|
|
251
|
+
if (matches.length === 0) {
|
|
252
|
+
return {
|
|
253
|
+
path: stalePath,
|
|
254
|
+
classification: "deleted",
|
|
255
|
+
candidates: [],
|
|
256
|
+
candidates_truncated: false
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
return {
|
|
260
|
+
path: stalePath,
|
|
261
|
+
classification: "moved",
|
|
262
|
+
candidates: matches.slice(0, limit),
|
|
263
|
+
candidates_truncated: matches.length > limit
|
|
264
|
+
};
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
function summarizeStaleLinkedPathClassifications(classified) {
|
|
268
|
+
return classified.map((entry) => entry.classification === "moved" ? `${entry.path}:moved:${entry.candidates[0]}` : `${entry.path}:deleted`);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// dist/cli/commands/validate.js
|
|
50
272
|
!(function() {
|
|
51
273
|
try {
|
|
52
274
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
53
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
275
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "24c5f96e-8535-5063-87d2-bb17fe0d4d1f");
|
|
54
276
|
} catch (e2) {
|
|
55
277
|
}
|
|
56
278
|
})();
|
|
@@ -525,17 +747,32 @@ function resolveRequestedChecks(options) {
|
|
|
525
747
|
requested.add("command_references");
|
|
526
748
|
}
|
|
527
749
|
if (requested.size === 0) {
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
750
|
+
if (options.autoFix) {
|
|
751
|
+
requested.add("metadata");
|
|
752
|
+
requested.add("resolution");
|
|
753
|
+
requested.add("lifecycle");
|
|
754
|
+
}
|
|
755
|
+
if (options.pruneMissing) {
|
|
756
|
+
requested.add("files");
|
|
757
|
+
}
|
|
758
|
+
if (requested.size === 0) {
|
|
759
|
+
requested.add("metadata");
|
|
760
|
+
requested.add("resolution");
|
|
761
|
+
requested.add("lifecycle");
|
|
762
|
+
requested.add("files");
|
|
763
|
+
requested.add("command_references");
|
|
764
|
+
requested.add("history_drift");
|
|
765
|
+
}
|
|
766
|
+
return requested;
|
|
767
|
+
}
|
|
768
|
+
if (options.pruneMissing) {
|
|
531
769
|
requested.add("files");
|
|
532
|
-
requested.add("command_references");
|
|
533
|
-
requested.add("history_drift");
|
|
534
770
|
}
|
|
535
771
|
return requested;
|
|
536
772
|
}
|
|
537
773
|
function buildMetadataCheck(items, metadataPolicy, statusRegistry, verboseDiagnostics) {
|
|
538
774
|
const missingByField = Object.fromEntries(SUPPORTED_METADATA_REQUIRED_FIELDS.map((field) => [field, []]));
|
|
775
|
+
const itemsById = new Map(items.map((item) => [item.id, item]));
|
|
539
776
|
for (const item of items) {
|
|
540
777
|
for (const field of SUPPORTED_METADATA_REQUIRED_FIELDS) {
|
|
541
778
|
if (!isMetadataFieldMissing(item, field, statusRegistry)) {
|
|
@@ -560,6 +797,14 @@ function buildMetadataCheck(items, metadataPolicy, statusRegistry, verboseDiagno
|
|
|
560
797
|
counts[countKey] = value;
|
|
561
798
|
}
|
|
562
799
|
}
|
|
800
|
+
const missingFieldOccurrences = [];
|
|
801
|
+
for (const field of metadataPolicy.required_fields) {
|
|
802
|
+
for (const itemId of missingByField[field] ?? []) {
|
|
803
|
+
const itemType = itemsById.get(itemId)?.type;
|
|
804
|
+
missingFieldOccurrences.push({ item_type: typeof itemType === "string" && itemType.length > 0 ? itemType : "Unknown", field });
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
const missingByType = buildMissingByTypeCounts(missingFieldOccurrences);
|
|
563
808
|
const details = {
|
|
564
809
|
checked_items: items.length,
|
|
565
810
|
metadata_profile: metadataPolicy.profile,
|
|
@@ -567,7 +812,8 @@ function buildMetadataCheck(items, metadataPolicy, statusRegistry, verboseDiagno
|
|
|
567
812
|
metadata_profile_fallback_to_core: metadataPolicy.fallback_to_core,
|
|
568
813
|
required_fields: [...metadataPolicy.required_fields],
|
|
569
814
|
supported_required_fields: [...SUPPORTED_METADATA_REQUIRED_FIELDS],
|
|
570
|
-
counts
|
|
815
|
+
counts,
|
|
816
|
+
missing_by_type: missingByType
|
|
571
817
|
};
|
|
572
818
|
if (metadataPolicy.configured_custom_fields.length > 0) {
|
|
573
819
|
details.configured_custom_required_fields = [...metadataPolicy.configured_custom_fields];
|
|
@@ -586,13 +832,18 @@ function buildMetadataCheck(items, metadataPolicy, statusRegistry, verboseDiagno
|
|
|
586
832
|
details[idsKey] = summarized.values;
|
|
587
833
|
details[truncatedKey] = summarized.truncated;
|
|
588
834
|
}
|
|
835
|
+
const closeReasonBackfillRows = metadataPolicy.required_fields.includes("close_reason") ? (missingByField.close_reason ?? []).map((itemId) => ({
|
|
836
|
+
id: itemId,
|
|
837
|
+
resolution: toNonEmptyStringOrUndefined(itemsById.get(itemId)?.resolution)
|
|
838
|
+
})) : [];
|
|
589
839
|
return {
|
|
590
840
|
check: {
|
|
591
841
|
name: "metadata",
|
|
592
842
|
status: warningTokens.length === 0 ? "ok" : "warn",
|
|
593
843
|
details
|
|
594
844
|
},
|
|
595
|
-
warnings: warningTokens
|
|
845
|
+
warnings: warningTokens,
|
|
846
|
+
closeReasonBackfillRows
|
|
596
847
|
};
|
|
597
848
|
}
|
|
598
849
|
function buildResolutionCheck(items, statusRegistry, verboseDiagnostics) {
|
|
@@ -600,6 +851,7 @@ function buildResolutionCheck(items, statusRegistry, verboseDiagnostics) {
|
|
|
600
851
|
terminalDoneStatuses.add(statusRegistry.close_status);
|
|
601
852
|
const closedItems = items.filter((item) => terminalDoneStatuses.has(normalizeStatusForRegistry(item.status, statusRegistry)));
|
|
602
853
|
const missingResolutionRows = [];
|
|
854
|
+
const resolutionBackfillRows = [];
|
|
603
855
|
for (const item of closedItems) {
|
|
604
856
|
const missingFields = RESOLUTION_FIELD_KEYS.filter((field) => !toNonEmptyStringOrUndefined(item[field]));
|
|
605
857
|
if (missingFields.length === 0) {
|
|
@@ -609,6 +861,11 @@ function buildResolutionCheck(items, statusRegistry, verboseDiagnostics) {
|
|
|
609
861
|
id: item.id,
|
|
610
862
|
missing_fields: missingFields
|
|
611
863
|
});
|
|
864
|
+
resolutionBackfillRows.push({
|
|
865
|
+
id: item.id,
|
|
866
|
+
missing_fields: missingFields,
|
|
867
|
+
close_reason: toNonEmptyStringOrUndefined(item.close_reason)
|
|
868
|
+
});
|
|
612
869
|
}
|
|
613
870
|
const warnings = missingResolutionRows.length > 0 ? [`validate_resolution_missing_fields:${missingResolutionRows.length}`] : [];
|
|
614
871
|
const diagnosticLimit = verboseDiagnostics ? Number.POSITIVE_INFINITY : DIAGNOSTIC_LIST_SUMMARY_LIMIT;
|
|
@@ -628,7 +885,8 @@ function buildResolutionCheck(items, statusRegistry, verboseDiagnostics) {
|
|
|
628
885
|
missing_resolution_remediation_hints_truncated: summarizedHints.truncated
|
|
629
886
|
}
|
|
630
887
|
},
|
|
631
|
-
warnings
|
|
888
|
+
warnings,
|
|
889
|
+
resolutionBackfillRows
|
|
632
890
|
};
|
|
633
891
|
}
|
|
634
892
|
function buildLifecycleDependencyGraph(activeItems) {
|
|
@@ -749,6 +1007,7 @@ function buildLifecycleCheck(items, includeStaleBlockers, dependencyCycleSeverit
|
|
|
749
1007
|
const activeItems = items.filter((item) => !isTerminalStatus(item.status, statusRegistry));
|
|
750
1008
|
const closureLikeRows = [];
|
|
751
1009
|
const terminalParentRows = [];
|
|
1010
|
+
const terminalParentFixRows = [];
|
|
752
1011
|
const staleBlockerRows = [];
|
|
753
1012
|
for (const item of activeItems) {
|
|
754
1013
|
const closureLikeFields = Object.entries(lifecyclePatternPolicy.closure_like_metadata_field_patterns).filter(([field, patterns]) => {
|
|
@@ -774,6 +1033,14 @@ function buildLifecycleCheck(items, includeStaleBlockers, dependencyCycleSeverit
|
|
|
774
1033
|
parent_id: parent.id,
|
|
775
1034
|
parent_status: parent.status
|
|
776
1035
|
});
|
|
1036
|
+
const grandparentId = toMeaningfulString(parent.parent);
|
|
1037
|
+
const grandparent = grandparentId ? itemsById.get(grandparentId) : void 0;
|
|
1038
|
+
terminalParentFixRows.push({
|
|
1039
|
+
id: item.id,
|
|
1040
|
+
parent_id: parent.id,
|
|
1041
|
+
grandparent_id: grandparent?.id,
|
|
1042
|
+
grandparent_active: grandparent !== void 0 && !isTerminalStatus(grandparent.status, statusRegistry)
|
|
1043
|
+
});
|
|
777
1044
|
}
|
|
778
1045
|
}
|
|
779
1046
|
if (includeStaleBlockers) {
|
|
@@ -811,6 +1078,7 @@ function buildLifecycleCheck(items, includeStaleBlockers, dependencyCycleSeverit
|
|
|
811
1078
|
}
|
|
812
1079
|
closureLikeRows.sort((left, right) => left.id.localeCompare(right.id));
|
|
813
1080
|
terminalParentRows.sort((left, right) => left.id.localeCompare(right.id) || left.parent_id.localeCompare(right.parent_id));
|
|
1081
|
+
terminalParentFixRows.sort((left, right) => left.id.localeCompare(right.id) || left.parent_id.localeCompare(right.parent_id));
|
|
814
1082
|
staleBlockerRows.sort((left, right) => left.id.localeCompare(right.id));
|
|
815
1083
|
const dependencyCycleDiagnostics = detectLifecycleDependencyCycles(activeItems);
|
|
816
1084
|
const warnings = [];
|
|
@@ -867,31 +1135,43 @@ function buildLifecycleCheck(items, includeStaleBlockers, dependencyCycleSeverit
|
|
|
867
1135
|
closure_like_actual_result_pattern_source: lifecyclePatternPolicy.closure_like_metadata_field_pattern_sources.actual_result
|
|
868
1136
|
}
|
|
869
1137
|
},
|
|
870
|
-
warnings
|
|
1138
|
+
warnings,
|
|
1139
|
+
terminalParentFixRows
|
|
871
1140
|
};
|
|
872
1141
|
}
|
|
873
1142
|
async function buildFilesCheck(items, workspaceRoot, pmRoot, fileScanMode, includePmInternals, verboseFileLists) {
|
|
874
1143
|
const linkedProjectPaths = /* @__PURE__ */ new Set();
|
|
875
1144
|
const missingLinkedPaths = [];
|
|
1145
|
+
const staleLinkRows = [];
|
|
876
1146
|
for (const item of items) {
|
|
877
|
-
const
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
const
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
1147
|
+
const linkedArtifactGroups = [
|
|
1148
|
+
{ link_kind: "files", artifacts: item.files ?? [] },
|
|
1149
|
+
{ link_kind: "docs", artifacts: item.docs ?? [] }
|
|
1150
|
+
];
|
|
1151
|
+
for (const group of linkedArtifactGroups) {
|
|
1152
|
+
for (const artifact of group.artifacts) {
|
|
1153
|
+
if (artifact.scope !== "project") {
|
|
1154
|
+
continue;
|
|
1155
|
+
}
|
|
1156
|
+
const normalizedPath = normalizeRelativePath(artifact.path);
|
|
1157
|
+
if (normalizedPath.length === 0) {
|
|
1158
|
+
continue;
|
|
1159
|
+
}
|
|
1160
|
+
linkedProjectPaths.add(normalizedPath);
|
|
1161
|
+
const absolutePath = path.isAbsolute(artifact.path) ? artifact.path : path.resolve(workspaceRoot, artifact.path);
|
|
1162
|
+
let missing = false;
|
|
1163
|
+
try {
|
|
1164
|
+
const stats = await fs.stat(absolutePath);
|
|
1165
|
+
if (!stats.isFile() && !stats.isDirectory()) {
|
|
1166
|
+
missing = true;
|
|
1167
|
+
}
|
|
1168
|
+
} catch {
|
|
1169
|
+
missing = true;
|
|
1170
|
+
}
|
|
1171
|
+
if (missing) {
|
|
891
1172
|
missingLinkedPaths.push(normalizedPath);
|
|
1173
|
+
staleLinkRows.push({ item_id: item.id, path: normalizedPath, link_kind: group.link_kind });
|
|
892
1174
|
}
|
|
893
|
-
} catch {
|
|
894
|
-
missingLinkedPaths.push(normalizedPath);
|
|
895
1175
|
}
|
|
896
1176
|
}
|
|
897
1177
|
}
|
|
@@ -915,6 +1195,13 @@ async function buildFilesCheck(items, workspaceRoot, pmRoot, fileScanMode, inclu
|
|
|
915
1195
|
};
|
|
916
1196
|
}
|
|
917
1197
|
const orphanedFiles = candidateFiles.filter((candidate) => !linkedProjectPaths.has(candidate));
|
|
1198
|
+
const classifiedStalePaths = classifyStaleLinkedPaths(uniqueMissingLinkedPaths, candidateFiles);
|
|
1199
|
+
const classificationByPath = new Map(classifiedStalePaths.map((entry) => [entry.path, entry.classification]));
|
|
1200
|
+
const movedStalePathCount = classifiedStalePaths.filter((entry) => entry.classification === "moved").length;
|
|
1201
|
+
const staleLinkPruneRows = staleLinkRows.map((row) => ({
|
|
1202
|
+
...row,
|
|
1203
|
+
classification: classificationByPath.get(row.path) ?? "deleted"
|
|
1204
|
+
})).sort((left, right) => left.item_id.localeCompare(right.item_id) || left.path.localeCompare(right.path) || left.link_kind.localeCompare(right.link_kind));
|
|
918
1205
|
const warnings = [];
|
|
919
1206
|
if (strictModeForcesPmInternals) {
|
|
920
1207
|
warnings.push("validate_files_tracked_all_strict_forces_pm_internals");
|
|
@@ -927,6 +1214,7 @@ async function buildFilesCheck(items, workspaceRoot, pmRoot, fileScanMode, inclu
|
|
|
927
1214
|
}
|
|
928
1215
|
const summarizedMissing = summarizeFileList(uniqueMissingLinkedPaths, verboseFileLists);
|
|
929
1216
|
const summarizedOrphaned = summarizeFileList(orphanedFiles, verboseFileLists);
|
|
1217
|
+
const summarizedClassifications = summarizeFileList(summarizeStaleLinkedPathClassifications(classifiedStalePaths), verboseFileLists);
|
|
930
1218
|
return {
|
|
931
1219
|
check: {
|
|
932
1220
|
name: "files",
|
|
@@ -957,13 +1245,18 @@ async function buildFilesCheck(items, workspaceRoot, pmRoot, fileScanMode, inclu
|
|
|
957
1245
|
missing_linked_paths_total: summarizedMissing.total,
|
|
958
1246
|
missing_linked_paths: summarizedMissing.values,
|
|
959
1247
|
missing_linked_paths_truncated: summarizedMissing.truncated,
|
|
1248
|
+
missing_linked_paths_moved_count: movedStalePathCount,
|
|
1249
|
+
missing_linked_paths_deleted_count: uniqueMissingLinkedPaths.length - movedStalePathCount,
|
|
1250
|
+
missing_linked_path_classifications: summarizedClassifications.values,
|
|
1251
|
+
missing_linked_path_classifications_truncated: summarizedClassifications.truncated,
|
|
960
1252
|
orphaned_paths_count: orphanedFiles.length,
|
|
961
1253
|
orphaned_paths_total: summarizedOrphaned.total,
|
|
962
1254
|
orphaned_paths: summarizedOrphaned.values,
|
|
963
1255
|
orphaned_paths_truncated: summarizedOrphaned.truncated
|
|
964
1256
|
}
|
|
965
1257
|
},
|
|
966
|
-
warnings
|
|
1258
|
+
warnings,
|
|
1259
|
+
staleLinkPruneRows
|
|
967
1260
|
};
|
|
968
1261
|
}
|
|
969
1262
|
async function buildHistoryDriftCheck(pmRoot, items, verboseDiagnostics) {
|
|
@@ -1062,7 +1355,93 @@ function buildCommandReferencesCheck(items, idPrefix, verboseDiagnostics) {
|
|
|
1062
1355
|
warnings
|
|
1063
1356
|
};
|
|
1064
1357
|
}
|
|
1358
|
+
var VALIDATE_AUTO_FIX_MESSAGE = "pm validate auto-fix";
|
|
1359
|
+
async function applyValidateFix(fix, global2) {
|
|
1360
|
+
switch (fix.kind) {
|
|
1361
|
+
case "set_resolution":
|
|
1362
|
+
case "set_close_reason":
|
|
1363
|
+
case "reparent":
|
|
1364
|
+
case "unset_parent": {
|
|
1365
|
+
const { runUpdate } = await import("./update-PD46VOXI.js");
|
|
1366
|
+
const updateOptions = { message: VALIDATE_AUTO_FIX_MESSAGE };
|
|
1367
|
+
if (fix.kind === "set_resolution") {
|
|
1368
|
+
updateOptions.resolution = fix.value;
|
|
1369
|
+
} else if (fix.kind === "set_close_reason") {
|
|
1370
|
+
updateOptions.closeReason = fix.value;
|
|
1371
|
+
} else if (fix.kind === "reparent") {
|
|
1372
|
+
updateOptions.parent = fix.parent_id;
|
|
1373
|
+
} else {
|
|
1374
|
+
updateOptions.unset = ["parent"];
|
|
1375
|
+
}
|
|
1376
|
+
await runUpdate(fix.item_id, updateOptions, global2);
|
|
1377
|
+
return;
|
|
1378
|
+
}
|
|
1379
|
+
case "prune_file_link": {
|
|
1380
|
+
throw new Error(`Unsupported non-batched fix kind: ${fix.kind}`);
|
|
1381
|
+
}
|
|
1382
|
+
case "prune_doc_link": {
|
|
1383
|
+
throw new Error(`Unsupported non-batched fix kind: ${fix.kind}`);
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
function pruneBatchKey(fix) {
|
|
1388
|
+
if (fix.kind !== "prune_file_link" && fix.kind !== "prune_doc_link") {
|
|
1389
|
+
return null;
|
|
1390
|
+
}
|
|
1391
|
+
return `${fix.kind}:${fix.item_id}`;
|
|
1392
|
+
}
|
|
1393
|
+
async function applyValidateFixes(applicable, global2) {
|
|
1394
|
+
const applied = [];
|
|
1395
|
+
const failed = [];
|
|
1396
|
+
const pruneBatches = /* @__PURE__ */ new Map();
|
|
1397
|
+
for (const fix of applicable) {
|
|
1398
|
+
const batchKey = pruneBatchKey(fix);
|
|
1399
|
+
if (batchKey === null) {
|
|
1400
|
+
try {
|
|
1401
|
+
await applyValidateFix(fix, global2);
|
|
1402
|
+
applied.push(fix);
|
|
1403
|
+
} catch (error) {
|
|
1404
|
+
failed.push({ fix, error });
|
|
1405
|
+
}
|
|
1406
|
+
continue;
|
|
1407
|
+
}
|
|
1408
|
+
const existing = pruneBatches.get(batchKey);
|
|
1409
|
+
if (existing) {
|
|
1410
|
+
existing.push(fix);
|
|
1411
|
+
} else {
|
|
1412
|
+
pruneBatches.set(batchKey, [fix]);
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
for (const batch of pruneBatches.values()) {
|
|
1416
|
+
const first = batch[0];
|
|
1417
|
+
if (!first) {
|
|
1418
|
+
continue;
|
|
1419
|
+
}
|
|
1420
|
+
const remove = batch.map((fix) => fix.path).filter((value) => typeof value === "string" && value.length > 0);
|
|
1421
|
+
try {
|
|
1422
|
+
if (first.kind === "prune_file_link") {
|
|
1423
|
+
const { runFiles } = await import("./files-LIFDKNCN.js");
|
|
1424
|
+
await runFiles(first.item_id, { remove, message: VALIDATE_AUTO_FIX_MESSAGE }, global2);
|
|
1425
|
+
} else {
|
|
1426
|
+
const { runDocs } = await import("./docs-SRTLCQOL.js");
|
|
1427
|
+
await runDocs(first.item_id, { remove, message: VALIDATE_AUTO_FIX_MESSAGE }, global2);
|
|
1428
|
+
}
|
|
1429
|
+
applied.push(...batch);
|
|
1430
|
+
} catch (error) {
|
|
1431
|
+
failed.push(...batch.map((fix) => ({ fix, error })));
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
return { applied, failed };
|
|
1435
|
+
}
|
|
1065
1436
|
async function runValidate(options, global2) {
|
|
1437
|
+
const fixesRequested = options.autoFix === true || options.pruneMissing === true;
|
|
1438
|
+
if (options.dryRun === true && !fixesRequested) {
|
|
1439
|
+
throw new PmCliError("--dry-run requires --auto-fix or --prune-missing (there is nothing to preview otherwise).", EXIT_CODE.USAGE);
|
|
1440
|
+
}
|
|
1441
|
+
if (options.fixScope !== void 0 && options.fixScope.length > 0 && options.autoFix !== true) {
|
|
1442
|
+
throw new PmCliError("--fix-scope requires --auto-fix.", EXIT_CODE.USAGE);
|
|
1443
|
+
}
|
|
1444
|
+
const grantedFixScopes = resolveGrantedFixScopes(options.fixScope);
|
|
1066
1445
|
const pmRoot = resolvePmRoot(process.cwd(), global2.path);
|
|
1067
1446
|
if (!await pathExists(getSettingsPath(pmRoot))) {
|
|
1068
1447
|
throw new PmCliError(`Tracker is not initialized at ${pmRoot}. Run pm init first.`, EXIT_CODE.NOT_FOUND);
|
|
@@ -1090,17 +1469,29 @@ async function runValidate(options, global2) {
|
|
|
1090
1469
|
checks.push(built.check);
|
|
1091
1470
|
warnings.push(...built.warnings);
|
|
1092
1471
|
};
|
|
1472
|
+
let closeReasonBackfillRows = [];
|
|
1473
|
+
let resolutionBackfillRows = [];
|
|
1474
|
+
let terminalParentFixRows = [];
|
|
1475
|
+
let staleLinkPruneRows = [];
|
|
1093
1476
|
if (requestedChecks.has("metadata")) {
|
|
1094
|
-
|
|
1477
|
+
const built = buildMetadataCheck(items, metadataPolicy, statusRegistry, Boolean(options.verboseDiagnostics));
|
|
1478
|
+
closeReasonBackfillRows = built.closeReasonBackfillRows;
|
|
1479
|
+
record(built);
|
|
1095
1480
|
}
|
|
1096
1481
|
if (requestedChecks.has("resolution")) {
|
|
1097
|
-
|
|
1482
|
+
const built = buildResolutionCheck(items, statusRegistry, Boolean(options.verboseDiagnostics));
|
|
1483
|
+
resolutionBackfillRows = built.resolutionBackfillRows;
|
|
1484
|
+
record(built);
|
|
1098
1485
|
}
|
|
1099
1486
|
if (requestedChecks.has("lifecycle")) {
|
|
1100
|
-
|
|
1487
|
+
const built = buildLifecycleCheck(items, Boolean(options.checkStaleBlockers), dependencyCycleSeverity, statusRegistry, lifecyclePatternPolicy, Boolean(options.verboseDiagnostics));
|
|
1488
|
+
terminalParentFixRows = built.terminalParentFixRows;
|
|
1489
|
+
record(built);
|
|
1101
1490
|
}
|
|
1102
1491
|
if (requestedChecks.has("files")) {
|
|
1103
|
-
|
|
1492
|
+
const built = await buildFilesCheck(items, workspaceRoot, pmRoot, fileScanMode, Boolean(options.includePmInternals), Boolean(options.verboseFileLists));
|
|
1493
|
+
staleLinkPruneRows = built.staleLinkPruneRows;
|
|
1494
|
+
record(built);
|
|
1104
1495
|
}
|
|
1105
1496
|
if (requestedChecks.has("command_references")) {
|
|
1106
1497
|
record(buildCommandReferencesCheck(items, settings.id_prefix, Boolean(options.verboseDiagnostics)));
|
|
@@ -1108,6 +1499,47 @@ async function runValidate(options, global2) {
|
|
|
1108
1499
|
if (requestedChecks.has("history_drift")) {
|
|
1109
1500
|
record(await buildHistoryDriftCheck(pmRoot, items, Boolean(options.verboseDiagnostics)));
|
|
1110
1501
|
}
|
|
1502
|
+
let fixes;
|
|
1503
|
+
if (fixesRequested) {
|
|
1504
|
+
const planned = [];
|
|
1505
|
+
if (options.autoFix === true) {
|
|
1506
|
+
planned.push(...planCloseReasonBackfillFixes(closeReasonBackfillRows));
|
|
1507
|
+
planned.push(...planResolutionBackfillFixes(resolutionBackfillRows));
|
|
1508
|
+
planned.push(...planTerminalParentFixes(terminalParentFixRows));
|
|
1509
|
+
}
|
|
1510
|
+
if (options.pruneMissing === true) {
|
|
1511
|
+
planned.push(...planStaleLinkPruneFixes(staleLinkPruneRows));
|
|
1512
|
+
}
|
|
1513
|
+
const { applicable, gated } = partitionFixesByGrant(planned, grantedFixScopes);
|
|
1514
|
+
const dryRun = options.dryRun === true;
|
|
1515
|
+
const appliedFixRows = [];
|
|
1516
|
+
const failedFixRows = [];
|
|
1517
|
+
if (!dryRun) {
|
|
1518
|
+
const applied = await applyValidateFixes(applicable, global2);
|
|
1519
|
+
appliedFixRows.push(...applied.applied.map(toFixOutputRow));
|
|
1520
|
+
failedFixRows.push(...applied.failed.map(({ fix, error }) => ({
|
|
1521
|
+
...toFixOutputRow(fix),
|
|
1522
|
+
error: error instanceof Error ? error.message : String(error)
|
|
1523
|
+
})));
|
|
1524
|
+
}
|
|
1525
|
+
fixes = {
|
|
1526
|
+
mode: dryRun ? "dry_run" : "apply",
|
|
1527
|
+
auto_fix: options.autoFix === true,
|
|
1528
|
+
prune_missing: options.pruneMissing === true,
|
|
1529
|
+
granted_fix_scopes: [...grantedFixScopes].sort((left, right) => left.localeCompare(right)),
|
|
1530
|
+
planned_count: planned.length,
|
|
1531
|
+
applied_count: appliedFixRows.length,
|
|
1532
|
+
gated_count: gated.length,
|
|
1533
|
+
failed_count: failedFixRows.length,
|
|
1534
|
+
planned_fixes: planned.map(toFixOutputRow),
|
|
1535
|
+
applied_fixes: appliedFixRows,
|
|
1536
|
+
gated_fixes: gated.map((fix) => ({
|
|
1537
|
+
...toFixOutputRow(fix),
|
|
1538
|
+
gate_hint: `Withheld: re-run with --fix-scope ${fix.gate} to apply.`
|
|
1539
|
+
})),
|
|
1540
|
+
failed_fixes: failedFixRows
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1111
1543
|
const normalizedWarnings = [...new Set(warnings)].sort((left, right) => left.localeCompare(right));
|
|
1112
1544
|
const hasErrors = checks.some((check) => check.status === "error");
|
|
1113
1545
|
return {
|
|
@@ -1115,10 +1547,11 @@ async function runValidate(options, global2) {
|
|
|
1115
1547
|
has_warnings: normalizedWarnings.length > 0,
|
|
1116
1548
|
checks,
|
|
1117
1549
|
warnings: normalizedWarnings,
|
|
1550
|
+
...fixes !== void 0 ? { fixes } : {},
|
|
1118
1551
|
generated_at: nowIso()
|
|
1119
1552
|
};
|
|
1120
1553
|
}
|
|
1121
1554
|
export {
|
|
1122
1555
|
runValidate
|
|
1123
1556
|
};
|
|
1124
|
-
//# sourceMappingURL=validate-
|
|
1557
|
+
//# sourceMappingURL=validate-UY6DRCG5.js.map
|