@unbrained/pm-cli 2026.5.31 → 2026.6.6
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 +167 -0
- package/CONTRIBUTING.md +1 -0
- package/README.md +12 -4
- package/dist/cli/argv-utils.js +7 -3
- package/dist/cli/argv-utils.js.map +1 -1
- package/dist/cli/bootstrap-args.d.ts +1 -0
- package/dist/cli/bootstrap-args.js +23 -3
- package/dist/cli/bootstrap-args.js.map +1 -1
- package/dist/cli/commands/calendar.js +17 -3
- package/dist/cli/commands/calendar.js.map +1 -1
- package/dist/cli/commands/close-many.d.ts +63 -0
- package/dist/cli/commands/close-many.js +302 -0
- package/dist/cli/commands/close-many.js.map +1 -0
- package/dist/cli/commands/completion.d.ts +1 -0
- package/dist/cli/commands/completion.js +260 -32
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/config.d.ts +4 -4
- package/dist/cli/commands/config.js +115 -3
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/contracts.js +193 -162
- package/dist/cli/commands/contracts.js.map +1 -1
- package/dist/cli/commands/create.d.ts +1 -0
- package/dist/cli/commands/create.js +77 -114
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/extension/doctor.d.ts +12 -0
- package/dist/cli/commands/extension/doctor.js +97 -2
- package/dist/cli/commands/extension/doctor.js.map +1 -1
- package/dist/cli/commands/extension/scaffold.js +49 -48
- package/dist/cli/commands/extension/scaffold.js.map +1 -1
- package/dist/cli/commands/extension.js +51 -23
- package/dist/cli/commands/extension.js.map +1 -1
- package/dist/cli/commands/gc.d.ts +8 -1
- package/dist/cli/commands/gc.js +26 -3
- package/dist/cli/commands/gc.js.map +1 -1
- package/dist/cli/commands/get.js +7 -7
- package/dist/cli/commands/get.js.map +1 -1
- package/dist/cli/commands/health.js +51 -3
- package/dist/cli/commands/health.js.map +1 -1
- package/dist/cli/commands/history.d.ts +4 -1
- package/dist/cli/commands/history.js +12 -24
- package/dist/cli/commands/history.js.map +1 -1
- package/dist/cli/commands/index.d.ts +3 -1
- package/dist/cli/commands/index.js +5 -3
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/init.d.ts +10 -0
- package/dist/cli/commands/init.js +107 -4
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/list.d.ts +5 -0
- package/dist/cli/commands/list.js +58 -26
- package/dist/cli/commands/list.js.map +1 -1
- package/dist/cli/commands/reindex.js +163 -47
- package/dist/cli/commands/reindex.js.map +1 -1
- package/dist/cli/commands/repeatable-metadata-parsers.d.ts +15 -0
- package/dist/cli/commands/repeatable-metadata-parsers.js +120 -0
- package/dist/cli/commands/repeatable-metadata-parsers.js.map +1 -0
- package/dist/cli/commands/restore.js +25 -4
- package/dist/cli/commands/restore.js.map +1 -1
- package/dist/cli/commands/schema.d.ts +122 -1
- package/dist/cli/commands/schema.js +536 -6
- package/dist/cli/commands/schema.js.map +1 -1
- package/dist/cli/commands/search.d.ts +1 -0
- package/dist/cli/commands/search.js +18 -4
- package/dist/cli/commands/search.js.map +1 -1
- package/dist/cli/commands/stats.d.ts +8 -1
- package/dist/cli/commands/stats.js +18 -17
- package/dist/cli/commands/stats.js.map +1 -1
- package/dist/cli/commands/telemetry.d.ts +8 -0
- package/dist/cli/commands/telemetry.js +253 -0
- package/dist/cli/commands/telemetry.js.map +1 -0
- package/dist/cli/commands/test.js +4 -3
- package/dist/cli/commands/test.js.map +1 -1
- package/dist/cli/commands/update-many.js +69 -140
- package/dist/cli/commands/update-many.js.map +1 -1
- package/dist/cli/commands/update.d.ts +2 -0
- package/dist/cli/commands/update.js +138 -119
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/commands/validate.d.ts +1 -0
- package/dist/cli/commands/validate.js +63 -33
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/error-guidance.js +26 -3
- package/dist/cli/error-guidance.js.map +1 -1
- package/dist/cli/help-content.js +91 -3
- package/dist/cli/help-content.js.map +1 -1
- package/dist/cli/main.js +377 -23
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/register-list-query.js +14 -5
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/register-mutation.js +200 -28
- package/dist/cli/register-mutation.js.map +1 -1
- package/dist/cli/register-operations.js +31 -6
- package/dist/cli/register-operations.js.map +1 -1
- package/dist/cli/register-setup.js +4 -2
- package/dist/cli/register-setup.js.map +1 -1
- package/dist/cli/registration-helpers.js +31 -4
- package/dist/cli/registration-helpers.js.map +1 -1
- package/dist/cli-bundle/chunks/activity-CVXTCHYY.js +16 -0
- package/dist/cli-bundle/chunks/activity-JM6DTDND.js +20 -0
- package/dist/cli-bundle/chunks/activity-JM6DTDND.js.map +1 -0
- package/dist/cli-bundle/chunks/aggregate-GI7WSZPH.js +206 -0
- package/dist/cli-bundle/chunks/aggregate-GI7WSZPH.js.map +1 -0
- package/dist/cli-bundle/chunks/{aggregate-ADUOSFRO.js → aggregate-VNAHUNNF.js} +11 -11
- package/dist/cli-bundle/chunks/{append-JD2DETU7.js → append-7H5N64R2.js} +8 -9
- package/dist/cli-bundle/chunks/{append-JD2DETU7.js.map → append-7H5N64R2.js.map} +1 -1
- package/dist/cli-bundle/chunks/append-WMKRXKCE.js +69 -0
- package/dist/cli-bundle/chunks/append-WMKRXKCE.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-3M73P3G6.js → chunk-23YFZ3IG.js} +210 -132
- package/dist/cli-bundle/chunks/chunk-23YFZ3IG.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-2HVRUSQA.js +128 -0
- package/dist/cli-bundle/chunks/chunk-2HVRUSQA.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-2RSPZI5H.js +266 -0
- package/dist/cli-bundle/chunks/chunk-2RSPZI5H.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-2VBQ6ZXS.js +631 -0
- package/dist/cli-bundle/chunks/chunk-2VBQ6ZXS.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-2VVCGBNV.js +380 -0
- package/dist/cli-bundle/chunks/chunk-2VVCGBNV.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-3BWOVLTH.js +1664 -0
- package/dist/cli-bundle/chunks/chunk-3BWOVLTH.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-6HT2F4TK.js → chunk-3FI4SEFT.js} +175 -54
- package/dist/cli-bundle/chunks/chunk-3FI4SEFT.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-JULRTHJQ.js → chunk-3LB74A67.js} +119 -6
- package/dist/cli-bundle/chunks/chunk-3LB74A67.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-3VAM3NNM.js +57 -0
- package/dist/cli-bundle/chunks/chunk-3VAM3NNM.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-4LL6TK5B.js +1832 -0
- package/dist/cli-bundle/chunks/chunk-4LL6TK5B.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-52MAOQ6J.js +422 -0
- package/dist/cli-bundle/chunks/chunk-52MAOQ6J.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-5FDATVEZ.js +412 -0
- package/dist/cli-bundle/chunks/chunk-5FDATVEZ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-5SFCOO6B.js +5622 -0
- package/dist/cli-bundle/chunks/chunk-5SFCOO6B.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-U7FMKRXH.js → chunk-6ER6DXH5.js} +37 -16
- package/dist/cli-bundle/chunks/chunk-6ER6DXH5.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-6P6GGMOG.js +218 -0
- package/dist/cli-bundle/chunks/chunk-6P6GGMOG.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-77GFDHGF.js +80 -0
- package/dist/cli-bundle/chunks/chunk-77GFDHGF.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-MD7K4JYF.js → chunk-AO442XLN.js} +26 -15
- package/dist/cli-bundle/chunks/chunk-AO442XLN.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-AY43SBIN.js +751 -0
- package/dist/cli-bundle/chunks/chunk-AY43SBIN.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-D7AOMPRH.js → chunk-BQHUILZS.js} +5 -5
- package/dist/cli-bundle/chunks/chunk-E5FJNAZA.js +242 -0
- package/dist/cli-bundle/chunks/chunk-E5FJNAZA.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-OGZEG5TT.js → chunk-ECCMVXGM.js} +164 -53
- package/dist/cli-bundle/chunks/chunk-ECCMVXGM.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-FRAUKRU2.js +182 -0
- package/dist/cli-bundle/chunks/chunk-FRAUKRU2.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-GCOQW437.js +130 -0
- package/dist/cli-bundle/chunks/chunk-GCOQW437.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-GGYWB3Y2.js +1340 -0
- package/dist/cli-bundle/chunks/chunk-GGYWB3Y2.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-G57E5D7T.js → chunk-GU2ZJ2VV.js} +5 -5
- package/dist/cli-bundle/chunks/chunk-GXSUPCBV.js +231 -0
- package/dist/cli-bundle/chunks/chunk-GXSUPCBV.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-HZGUAH22.js +76 -0
- package/dist/cli-bundle/chunks/chunk-HZGUAH22.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-I2HSTRJF.js +346 -0
- package/dist/cli-bundle/chunks/chunk-I2HSTRJF.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-I6BNFU5X.js +140 -0
- package/dist/cli-bundle/chunks/chunk-I6BNFU5X.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-JTWRXG4B.js → chunk-IJGCZSIQ.js} +251 -251
- package/dist/cli-bundle/chunks/chunk-IJGCZSIQ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-IOR7LGF4.js +1491 -0
- package/dist/cli-bundle/chunks/chunk-IOR7LGF4.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-IUV734HF.js +17 -0
- package/dist/cli-bundle/chunks/chunk-IUV734HF.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-J27KIHTG.js +15 -0
- package/dist/cli-bundle/chunks/chunk-J27KIHTG.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-AKOOMO3T.js → chunk-KAG77BY3.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-KBQY3YG5.js → chunk-KJ33AOCY.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-WDPXDQFG.js → chunk-KJE2FOS4.js} +6 -4
- package/dist/cli-bundle/chunks/chunk-KJE2FOS4.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-KWU6HG75.js +3883 -0
- package/dist/cli-bundle/chunks/chunk-KWU6HG75.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-LB3RUL2N.js +1325 -0
- package/dist/cli-bundle/chunks/chunk-LB3RUL2N.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-5HSEP75M.js → chunk-LCM63IXU.js} +18 -6
- package/dist/cli-bundle/chunks/chunk-LCM63IXU.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-LXYVKYMQ.js +24 -0
- package/dist/cli-bundle/chunks/chunk-LXYVKYMQ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-ME2YH6FN.js +182 -0
- package/dist/cli-bundle/chunks/chunk-ME2YH6FN.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-MITFDD35.js +1809 -0
- package/dist/cli-bundle/chunks/chunk-MITFDD35.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-WJ2NAC37.js → chunk-N7ACFE26.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-NUZ5HKR4.js +332 -0
- package/dist/cli-bundle/chunks/chunk-NUZ5HKR4.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-7Y53ZJIQ.js → chunk-OVQCEJPG.js} +22 -3
- package/dist/cli-bundle/chunks/chunk-OVQCEJPG.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-PXUAZUUY.js → chunk-OZ7NSQHL.js} +12 -11
- package/dist/cli-bundle/chunks/chunk-OZ7NSQHL.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-P53TN6IA.js → chunk-PDDFYW4X.js} +35 -8
- package/dist/cli-bundle/chunks/chunk-PDDFYW4X.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-6YCV7WSL.js → chunk-PIU6RSL3.js} +10 -12
- package/dist/cli-bundle/chunks/{chunk-6YCV7WSL.js.map → chunk-PIU6RSL3.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-PO3GSVFV.js +338 -0
- package/dist/cli-bundle/chunks/chunk-PO3GSVFV.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-LRBOHPUE.js → chunk-PRJCELV4.js} +108 -21
- package/dist/cli-bundle/chunks/chunk-PRJCELV4.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-GN7IJPCD.js → chunk-PROOHX4K.js} +332 -32
- package/dist/cli-bundle/chunks/chunk-PROOHX4K.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-FQE6XZDB.js → chunk-Q7SPNHLW.js} +54 -32
- package/dist/cli-bundle/chunks/chunk-Q7SPNHLW.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-PVNQLCIS.js → chunk-QO7EBBOM.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-A7E7PUVX.js → chunk-R6UFP2GE.js} +7 -7
- package/dist/cli-bundle/chunks/chunk-RWPSOIEE.js +154 -0
- package/dist/cli-bundle/chunks/chunk-RWPSOIEE.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-RZN6VURO.js +119 -0
- package/dist/cli-bundle/chunks/chunk-RZN6VURO.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-SKJWX3QB.js +1501 -0
- package/dist/cli-bundle/chunks/chunk-SKJWX3QB.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-CEFIVZPG.js → chunk-T3LC5LKB.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-TCD3R2PF.js +173 -0
- package/dist/cli-bundle/chunks/chunk-TCD3R2PF.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-TPH5XEVD.js +2988 -0
- package/dist/cli-bundle/chunks/chunk-TPH5XEVD.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-LSXGH6NE.js → chunk-U5SXYXSY.js} +821 -200
- package/dist/cli-bundle/chunks/chunk-U5SXYXSY.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-UBOPJT3S.js +540 -0
- package/dist/cli-bundle/chunks/chunk-UBOPJT3S.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-JFWUHHS2.js → chunk-UM2GBHS4.js} +5 -4
- package/dist/cli-bundle/chunks/chunk-W7XABV4H.js +454 -0
- package/dist/cli-bundle/chunks/chunk-W7XABV4H.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-SEXQN4KL.js → chunk-WKY2IBOQ.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-WOPXVEZP.js +698 -0
- package/dist/cli-bundle/chunks/chunk-WOPXVEZP.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-WSMOSYRD.js +1704 -0
- package/dist/cli-bundle/chunks/chunk-WSMOSYRD.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-NGN7UV5K.js → chunk-XLTD2HN3.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-XSJCLN2R.js +131 -0
- package/dist/cli-bundle/chunks/chunk-XSJCLN2R.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-XSLQSXAH.js +53 -0
- package/dist/cli-bundle/chunks/chunk-XSLQSXAH.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-BUPWJ3IJ.js → chunk-XTGLRY2Y.js} +484 -49
- package/dist/cli-bundle/chunks/chunk-XTGLRY2Y.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-L2FXEKDB.js → chunk-YL2DJGYS.js} +7 -7
- package/dist/cli-bundle/chunks/{claim-EE4TKKCV.js → claim-4DBF6RVG.js} +10 -11
- package/dist/cli-bundle/chunks/{claim-EE4TKKCV.js.map → claim-4DBF6RVG.js.map} +1 -1
- package/dist/cli-bundle/chunks/claim-X2P4IB7J.js +129 -0
- package/dist/cli-bundle/chunks/claim-X2P4IB7J.js.map +1 -0
- package/dist/cli-bundle/chunks/close-3HDWDA3L.js +13 -0
- package/dist/cli-bundle/chunks/close-PTYFA45H.js +17 -0
- package/dist/cli-bundle/chunks/close-PTYFA45H.js.map +1 -0
- package/dist/cli-bundle/chunks/close-many-7CGIDPTJ.js +314 -0
- package/dist/cli-bundle/chunks/close-many-7CGIDPTJ.js.map +7 -0
- package/dist/cli-bundle/chunks/close-many-ERFO6LHR.js +311 -0
- package/dist/cli-bundle/chunks/close-many-ERFO6LHR.js.map +1 -0
- package/dist/cli-bundle/chunks/comments-OONGABK5.js +100 -0
- package/dist/cli-bundle/chunks/comments-OONGABK5.js.map +1 -0
- package/dist/cli-bundle/chunks/{comments-AAKJQ6LW.js → comments-QKBYCWKD.js} +10 -11
- package/dist/cli-bundle/chunks/{comments-AAKJQ6LW.js.map → comments-QKBYCWKD.js.map} +1 -1
- package/dist/cli-bundle/chunks/config-6FXCQKIF.js +1671 -0
- package/dist/cli-bundle/chunks/config-6FXCQKIF.js.map +1 -0
- package/dist/cli-bundle/chunks/{config-V3FZOKLI.js → config-U4RZ4CQB.js} +121 -10
- package/dist/cli-bundle/chunks/config-U4RZ4CQB.js.map +7 -0
- package/dist/cli-bundle/chunks/{context-RZ5QPNJB.js → context-FYYJGFWS.js} +32 -19
- package/dist/cli-bundle/chunks/{context-RZ5QPNJB.js.map → context-FYYJGFWS.js.map} +2 -2
- package/dist/cli-bundle/chunks/context-YMJ3Z2HQ.js +1461 -0
- package/dist/cli-bundle/chunks/context-YMJ3Z2HQ.js.map +1 -0
- package/dist/cli-bundle/chunks/contracts-QDB6OMLQ.js +1278 -0
- package/dist/cli-bundle/chunks/contracts-QDB6OMLQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{contracts-YLMH33VU.js → contracts-RFSPGVVJ.js} +198 -162
- package/dist/cli-bundle/chunks/contracts-RFSPGVVJ.js.map +7 -0
- package/dist/cli-bundle/chunks/create-I5L4EYYZ.js +31 -0
- package/dist/cli-bundle/chunks/create-I5L4EYYZ.js.map +1 -0
- package/dist/cli-bundle/chunks/create-JTZNCTQC.js +27 -0
- package/dist/cli-bundle/chunks/delete-7HPGI4GZ.js +55 -0
- package/dist/cli-bundle/chunks/delete-7HPGI4GZ.js.map +1 -0
- package/dist/cli-bundle/chunks/{delete-RHCTEORS.js → delete-VXUPH5RS.js} +7 -8
- package/dist/cli-bundle/chunks/{delete-RHCTEORS.js.map → delete-VXUPH5RS.js.map} +1 -1
- package/dist/cli-bundle/chunks/{deps-MZYCMLAO.js → deps-JSRRWC3Z.js} +7 -8
- package/dist/cli-bundle/chunks/{deps-MZYCMLAO.js.map → deps-JSRRWC3Z.js.map} +1 -1
- package/dist/cli-bundle/chunks/deps-SCZIFK2Z.js +225 -0
- package/dist/cli-bundle/chunks/deps-SCZIFK2Z.js.map +1 -0
- package/dist/cli-bundle/chunks/docs-GJK6K4VP.js +31 -0
- package/dist/cli-bundle/chunks/docs-GJK6K4VP.js.map +1 -0
- package/dist/cli-bundle/chunks/{docs-FXXUCZYU.js → docs-WW4N3MBM.js} +9 -10
- package/dist/cli-bundle/chunks/{docs-FXXUCZYU.js.map → docs-WW4N3MBM.js.map} +1 -1
- package/dist/cli-bundle/chunks/{extension-B4WL7BQU.js → extension-J7IBMFTD.js} +4 -5
- package/dist/cli-bundle/chunks/extension-VDY2U33M.js +28 -0
- package/dist/cli-bundle/chunks/extension-VDY2U33M.js.map +1 -0
- package/dist/cli-bundle/chunks/files-ISZJGILQ.js +282 -0
- package/dist/cli-bundle/chunks/files-ISZJGILQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{files-WVOX67PE.js → files-WKOD326U.js} +9 -10
- package/dist/cli-bundle/chunks/{files-WVOX67PE.js.map → files-WKOD326U.js.map} +1 -1
- package/dist/cli-bundle/chunks/gc-JDVJ6OQ2.js +362 -0
- package/dist/cli-bundle/chunks/gc-JDVJ6OQ2.js.map +1 -0
- package/dist/cli-bundle/chunks/gc-ULPVWMTN.js +372 -0
- package/dist/cli-bundle/chunks/gc-ULPVWMTN.js.map +7 -0
- package/dist/cli-bundle/chunks/get-RV37HT3G.js +194 -0
- package/dist/cli-bundle/chunks/get-RV37HT3G.js.map +1 -0
- package/dist/cli-bundle/chunks/{get-LTK3HOCQ.js → get-WXU6WI5P.js} +16 -17
- package/dist/cli-bundle/chunks/get-WXU6WI5P.js.map +7 -0
- package/dist/cli-bundle/chunks/{health-TCWL55KM.js → health-6L6EH4WR.js} +57 -16
- package/dist/cli-bundle/chunks/health-6L6EH4WR.js.map +7 -0
- package/dist/cli-bundle/chunks/health-LOI2HHKB.js +1271 -0
- package/dist/cli-bundle/chunks/health-LOI2HHKB.js.map +1 -0
- package/dist/cli-bundle/chunks/history-2BA3T5AE.js +20 -0
- package/dist/cli-bundle/chunks/history-PKN67D5O.js +24 -0
- package/dist/cli-bundle/chunks/history-PKN67D5O.js.map +1 -0
- package/dist/cli-bundle/chunks/history-redact-JBZNXHGR.js +19 -0
- package/dist/cli-bundle/chunks/history-redact-V4FOJGS7.js +23 -0
- package/dist/cli-bundle/chunks/history-redact-V4FOJGS7.js.map +1 -0
- package/dist/cli-bundle/chunks/{history-repair-ZWSTDRH2.js → history-repair-HIBCBIKK.js} +12 -14
- package/dist/cli-bundle/chunks/{history-repair-ZWSTDRH2.js.map → history-repair-HIBCBIKK.js.map} +1 -1
- package/dist/cli-bundle/chunks/history-repair-SDMHR7JT.js +193 -0
- package/dist/cli-bundle/chunks/history-repair-SDMHR7JT.js.map +1 -0
- package/dist/cli-bundle/chunks/init-HIVSNX3O.js +16 -0
- package/dist/cli-bundle/chunks/init-P56QYWJF.js +20 -0
- package/dist/cli-bundle/chunks/init-P56QYWJF.js.map +1 -0
- package/dist/cli-bundle/chunks/learnings-GDFRG5J7.js +44 -0
- package/dist/cli-bundle/chunks/learnings-GDFRG5J7.js.map +1 -0
- package/dist/cli-bundle/chunks/{learnings-NXTWE3FR.js → learnings-MIXSESLK.js} +10 -11
- package/dist/cli-bundle/chunks/{learnings-NXTWE3FR.js.map → learnings-MIXSESLK.js.map} +1 -1
- package/dist/cli-bundle/chunks/list-FGOWQMSM.js +24 -0
- package/dist/cli-bundle/chunks/list-FGOWQMSM.js.map +1 -0
- package/dist/cli-bundle/chunks/list-MUSQNMTD.js +20 -0
- package/dist/cli-bundle/chunks/{notes-DFS5ZGOO.js → notes-4XVSH2AZ.js} +10 -11
- package/dist/cli-bundle/chunks/{notes-DFS5ZGOO.js.map → notes-4XVSH2AZ.js.map} +1 -1
- package/dist/cli-bundle/chunks/notes-5UK3GEH2.js +44 -0
- package/dist/cli-bundle/chunks/notes-5UK3GEH2.js.map +1 -0
- package/dist/cli-bundle/chunks/plan-DUMBV3QB.js +1171 -0
- package/dist/cli-bundle/chunks/plan-DUMBV3QB.js.map +1 -0
- package/dist/cli-bundle/chunks/{plan-67AB2PLM.js → plan-SLMODHWX.js} +13 -14
- package/dist/cli-bundle/chunks/{plan-67AB2PLM.js.map → plan-SLMODHWX.js.map} +1 -1
- package/dist/cli-bundle/chunks/register-list-query-POCFZ5JW.js +229 -0
- package/dist/cli-bundle/chunks/register-list-query-POCFZ5JW.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-list-query-UP3VRUFS.js → register-list-query-WST76HSQ.js} +26 -26
- package/dist/cli-bundle/chunks/register-list-query-WST76HSQ.js.map +7 -0
- package/dist/cli-bundle/chunks/register-mutation-N5GSUZJV.js +813 -0
- package/dist/cli-bundle/chunks/register-mutation-N5GSUZJV.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-mutation-YWSBF545.js → register-mutation-OA675SOU.js} +154 -43
- package/dist/cli-bundle/chunks/register-mutation-OA675SOU.js.map +7 -0
- package/dist/cli-bundle/chunks/register-operations-GNHBE5I3.js +383 -0
- package/dist/cli-bundle/chunks/register-operations-GNHBE5I3.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-operations-3BDTGSDH.js → register-operations-N3PMHXH5.js} +49 -37
- package/dist/cli-bundle/chunks/register-operations-N3PMHXH5.js.map +7 -0
- package/dist/cli-bundle/chunks/register-setup-JIMPKJKV.js +242 -0
- package/dist/cli-bundle/chunks/register-setup-JIMPKJKV.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-setup-V56GDRUS.js → register-setup-ZHJI2DI3.js} +18 -19
- package/dist/cli-bundle/chunks/{register-setup-V56GDRUS.js.map → register-setup-ZHJI2DI3.js.map} +2 -2
- package/dist/cli-bundle/chunks/restore-D4RGNX33.js +17 -0
- package/dist/cli-bundle/chunks/restore-PBL6T5TW.js +21 -0
- package/dist/cli-bundle/chunks/restore-PBL6T5TW.js.map +1 -0
- package/dist/cli-bundle/chunks/schema-2NOO6NGB.js +780 -0
- package/dist/cli-bundle/chunks/schema-2NOO6NGB.js.map +7 -0
- package/dist/cli-bundle/chunks/schema-EBI4NLUO.js +770 -0
- package/dist/cli-bundle/chunks/schema-EBI4NLUO.js.map +1 -0
- package/dist/cli-bundle/chunks/search-JPUQTVCY.js +1127 -0
- package/dist/cli-bundle/chunks/search-JPUQTVCY.js.map +1 -0
- package/dist/cli-bundle/chunks/{search-HENBL456.js → search-OA6JX27A.js} +25 -16
- package/dist/cli-bundle/chunks/search-OA6JX27A.js.map +7 -0
- package/dist/cli-bundle/chunks/stats-CV54BAWY.js +202 -0
- package/dist/cli-bundle/chunks/stats-CV54BAWY.js.map +1 -0
- package/dist/cli-bundle/chunks/stats-XYB6KTFG.js +212 -0
- package/dist/cli-bundle/chunks/stats-XYB6KTFG.js.map +7 -0
- package/dist/cli-bundle/chunks/telemetry-LMJ7PFUO.js +251 -0
- package/dist/cli-bundle/chunks/telemetry-LMJ7PFUO.js.map +7 -0
- package/dist/cli-bundle/chunks/telemetry-NCMEPJNR.js +248 -0
- package/dist/cli-bundle/chunks/telemetry-NCMEPJNR.js.map +1 -0
- package/dist/cli-bundle/chunks/test-MXX3E5JL.js +31 -0
- package/dist/cli-bundle/chunks/test-WBROAJIE.js +35 -0
- package/dist/cli-bundle/chunks/test-WBROAJIE.js.map +1 -0
- package/dist/cli-bundle/chunks/test-all-N6NSRDTV.js +328 -0
- package/dist/cli-bundle/chunks/test-all-N6NSRDTV.js.map +1 -0
- package/dist/cli-bundle/chunks/{test-all-G2AZOHXI.js → test-all-NTOZ7C3M.js} +13 -14
- package/dist/cli-bundle/chunks/{test-all-G2AZOHXI.js.map → test-all-NTOZ7C3M.js.map} +1 -1
- package/dist/cli-bundle/chunks/test-runs-V6A7LPWZ.js +929 -0
- package/dist/cli-bundle/chunks/test-runs-V6A7LPWZ.js.map +1 -0
- package/dist/cli-bundle/chunks/{test-runs-GX5HTPSF.js → test-runs-WMVTQU3Y.js} +5 -5
- package/dist/cli-bundle/chunks/update-OSV3NAQB.js +25 -0
- package/dist/cli-bundle/chunks/update-OSV3NAQB.js.map +1 -0
- package/dist/cli-bundle/chunks/update-YRXSUGYQ.js +21 -0
- package/dist/cli-bundle/chunks/update-many-EM6OXYGO.js +605 -0
- package/dist/cli-bundle/chunks/update-many-EM6OXYGO.js.map +1 -0
- package/dist/cli-bundle/chunks/{update-many-46HRSP2Q.js → update-many-KGGEYABR.js} +78 -146
- package/dist/cli-bundle/chunks/update-many-KGGEYABR.js.map +7 -0
- package/dist/cli-bundle/chunks/{upgrade-H5HHM5UV.js → upgrade-BLI7XBAJ.js} +5 -7
- package/dist/cli-bundle/chunks/{upgrade-H5HHM5UV.js.map → upgrade-BLI7XBAJ.js.map} +1 -1
- package/dist/cli-bundle/chunks/upgrade-LXPOQKFV.js +266 -0
- package/dist/cli-bundle/chunks/upgrade-LXPOQKFV.js.map +1 -0
- package/dist/cli-bundle/chunks/{validate-TMCVKIGZ.js → validate-AGOAUOVW.js} +61 -48
- package/dist/cli-bundle/chunks/validate-AGOAUOVW.js.map +7 -0
- package/dist/cli-bundle/chunks/validate-L5J6A7YO.js +1120 -0
- package/dist/cli-bundle/chunks/validate-L5J6A7YO.js.map +1 -0
- package/dist/cli-bundle/main.js +534 -1505
- package/dist/cli-bundle/main.js.map +4 -4
- package/dist/core/checkpoint/mutation-checkpoint.d.ts +44 -0
- package/dist/core/checkpoint/mutation-checkpoint.js +119 -0
- package/dist/core/checkpoint/mutation-checkpoint.js.map +1 -0
- package/dist/core/config/positional-value.js +4 -2
- package/dist/core/config/positional-value.js.map +1 -1
- package/dist/core/diagnostics/remediation.d.ts +73 -0
- package/dist/core/diagnostics/remediation.js +328 -0
- package/dist/core/diagnostics/remediation.js.map +1 -0
- package/dist/core/extensions/extension-hook-runtime.js +9 -2
- package/dist/core/extensions/extension-hook-runtime.js.map +1 -1
- package/dist/core/extensions/extension-types.d.ts +60 -4
- package/dist/core/extensions/extension-types.js +2 -2
- package/dist/core/extensions/extension-types.js.map +1 -1
- package/dist/core/extensions/index.d.ts +5 -1
- package/dist/core/extensions/index.js +61 -2
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/item-fields.d.ts +5 -1
- package/dist/core/extensions/item-fields.js +126 -4
- package/dist/core/extensions/item-fields.js.map +1 -1
- package/dist/core/extensions/loader.js +283 -8
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/history/history-diff.d.ts +47 -0
- package/dist/core/history/history-diff.js +152 -0
- package/dist/core/history/history-diff.js.map +1 -0
- package/dist/core/history/history-storage-stats.d.ts +31 -0
- package/dist/core/history/history-storage-stats.js +101 -0
- package/dist/core/history/history-storage-stats.js.map +1 -0
- package/dist/core/item/item-format.d.ts +3 -2
- package/dist/core/item/item-format.js +15 -10
- package/dist/core/item/item-format.js.map +1 -1
- package/dist/core/item/status-filter.d.ts +29 -0
- package/dist/core/item/status-filter.js +97 -0
- package/dist/core/item/status-filter.js.map +1 -0
- package/dist/core/item/type-registry.js +4 -2
- package/dist/core/item/type-registry.js.map +1 -1
- package/dist/core/lock/lock-gc.d.ts +46 -0
- package/dist/core/lock/lock-gc.js +194 -0
- package/dist/core/lock/lock-gc.js.map +1 -0
- package/dist/core/output/output.js +17 -5
- package/dist/core/output/output.js.map +1 -1
- package/dist/core/schema/item-types-file.d.ts +15 -0
- package/dist/core/schema/item-types-file.js +27 -2
- package/dist/core/schema/item-types-file.js.map +1 -1
- package/dist/core/schema/runtime-field-filters.js +4 -3
- package/dist/core/schema/runtime-field-filters.js.map +1 -1
- package/dist/core/schema/runtime-field-values.d.ts +1 -1
- package/dist/core/schema/runtime-field-values.js +10 -4
- package/dist/core/schema/runtime-field-values.js.map +1 -1
- package/dist/core/schema/runtime-schema.js +75 -2
- package/dist/core/schema/runtime-schema.js.map +1 -1
- package/dist/core/schema/status-defs-file.d.ts +113 -0
- package/dist/core/schema/status-defs-file.js +260 -0
- package/dist/core/schema/status-defs-file.js.map +1 -0
- package/dist/core/schema/type-workflows.d.ts +64 -0
- package/dist/core/schema/type-workflows.js +98 -0
- package/dist/core/schema/type-workflows.js.map +1 -0
- package/dist/core/search/cache.d.ts +3 -1
- package/dist/core/search/cache.js +104 -28
- package/dist/core/search/cache.js.map +1 -1
- package/dist/core/search/http-client.d.ts +2 -2
- package/dist/core/search/http-client.js +2 -2
- package/dist/core/search/http-client.js.map +1 -1
- package/dist/core/search/vector-stores.d.ts +1 -0
- package/dist/core/search/vector-stores.js +64 -14
- package/dist/core/search/vector-stores.js.map +1 -1
- package/dist/core/search/vectorization-metadata.d.ts +13 -0
- package/dist/core/search/vectorization-metadata.js +65 -0
- package/dist/core/search/vectorization-metadata.js.map +1 -0
- package/dist/core/shared/serial-queue.d.ts +12 -0
- package/dist/core/shared/serial-queue.js +43 -0
- package/dist/core/shared/serial-queue.js.map +1 -0
- package/dist/core/shared/serialization.d.ts +1 -0
- package/dist/core/shared/serialization.js +86 -2
- package/dist/core/shared/serialization.js.map +1 -1
- package/dist/core/store/front-matter-cache.js +14 -5
- package/dist/core/store/front-matter-cache.js.map +1 -1
- package/dist/core/store/item-store.d.ts +2 -0
- package/dist/core/store/item-store.js +61 -6
- package/dist/core/store/item-store.js.map +1 -1
- package/dist/core/store/settings-validator.js +18 -2
- package/dist/core/store/settings-validator.js.map +1 -1
- package/dist/core/store/settings.d.ts +19 -1
- package/dist/core/store/settings.js +130 -10
- package/dist/core/store/settings.js.map +1 -1
- package/dist/core/telemetry/consent.js +3 -3
- package/dist/core/telemetry/consent.js.map +1 -1
- package/dist/core/telemetry/observability.js +5 -4
- package/dist/core/telemetry/observability.js.map +1 -1
- package/dist/core/telemetry/runtime.js +16 -4
- package/dist/core/telemetry/runtime.js.map +1 -1
- package/dist/mcp/server.d.ts +1 -0
- package/dist/mcp/server.js +372 -45
- package/dist/mcp/server.js.map +1 -1
- package/dist/sdk/cli-contracts/commander-mutation-options.js +16 -2
- package/dist/sdk/cli-contracts/commander-mutation-options.js.map +1 -1
- package/dist/sdk/cli-contracts/commander-types.js +7 -2
- package/dist/sdk/cli-contracts/commander-types.js.map +1 -1
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +2 -2
- package/dist/sdk/cli-contracts/enum-contracts.js +6 -2
- package/dist/sdk/cli-contracts/enum-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-option-contracts.d.ts +1 -0
- package/dist/sdk/cli-contracts/tool-option-contracts.js +53 -3
- package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +42 -10
- package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
- package/dist/sdk/cli-contracts.d.ts +42 -1
- package/dist/sdk/cli-contracts.js +225 -19
- package/dist/sdk/cli-contracts.js.map +1 -1
- package/dist/sdk/errors.d.ts +22 -0
- package/dist/sdk/errors.js +46 -0
- package/dist/sdk/errors.js.map +1 -0
- package/dist/sdk/index.d.ts +2 -1
- package/dist/sdk/index.js +3 -2
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/package-import-adapters.js +14 -3
- package/dist/sdk/package-import-adapters.js.map +1 -1
- package/dist/sdk/runtime.d.ts +1 -0
- package/dist/sdk/runtime.js +3 -2
- package/dist/sdk/runtime.js.map +1 -1
- package/dist/sdk/testing.d.ts +77 -0
- package/dist/sdk/testing.js +239 -0
- package/dist/sdk/testing.js.map +1 -0
- package/dist/types.d.ts +19 -0
- package/dist/types.js +3 -2
- package/dist/types.js.map +1 -1
- package/docs/AGENT_GUIDE.md +22 -3
- package/docs/ARCHITECTURE.md +11 -1
- package/docs/CLAUDE_CODE_PLUGIN.md +2 -2
- package/docs/COMMANDS.md +118 -7
- package/docs/CONFIGURATION.md +57 -2
- package/docs/EXTENSIONS.md +125 -6
- package/docs/EXTENSION_AUTHOR_CONTRACTS.md +73 -0
- package/docs/ONBOARDING.md +165 -0
- package/docs/QUICKSTART.md +3 -1
- package/docs/README.md +12 -4
- package/docs/RELEASING.md +38 -3
- package/docs/SDK.md +273 -1
- package/docs/TESTING.md +36 -1
- package/docs/examples/policy-restricted-extension/manifest.json +1 -0
- package/docs/examples/starter-extension/index.js +9 -1
- package/docs/examples/starter-extension/manifest.json +1 -0
- package/package.json +16 -7
- package/packages/pm-beads/extensions/beads/index.js +2 -4
- package/packages/pm-beads/extensions/beads/index.ts +43 -33
- package/packages/pm-beads/extensions/beads/manifest.json +12 -1
- package/packages/pm-calendar/README.md +6 -0
- package/packages/pm-calendar/extensions/calendar/index.js +6 -1
- package/packages/pm-calendar/extensions/calendar/index.ts +6 -1
- package/packages/pm-calendar/extensions/calendar/manifest.json +6 -1
- package/packages/pm-governance-audit/extensions/governance-audit/manifest.json +6 -1
- package/packages/pm-guide-shell/README.md +4 -0
- package/packages/pm-guide-shell/extensions/guide-shell/index.js +22 -0
- package/packages/pm-guide-shell/extensions/guide-shell/index.ts +22 -0
- package/packages/pm-guide-shell/extensions/guide-shell/manifest.json +6 -1
- package/packages/pm-guide-shell/extensions/guide-shell/runtime.js +74 -3
- package/packages/pm-guide-shell/extensions/guide-shell/runtime.ts +84 -4
- package/packages/pm-lifecycle-hooks/README.md +29 -0
- package/packages/pm-lifecycle-hooks/extensions/lifecycle-hooks/index.js +18 -0
- package/packages/pm-lifecycle-hooks/extensions/lifecycle-hooks/index.ts +20 -0
- package/packages/pm-lifecycle-hooks/extensions/lifecycle-hooks/manifest.json +9 -0
- package/packages/pm-lifecycle-hooks/package.json +52 -0
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/manifest.json +13 -1
- package/packages/pm-search-advanced/extensions/search-advanced/index.js +69 -1
- package/packages/pm-search-advanced/extensions/search-advanced/index.ts +91 -2
- package/packages/pm-search-advanced/extensions/search-advanced/manifest.json +13 -1
- package/packages/pm-templates/extensions/templates/manifest.json +6 -1
- package/packages/pm-todos/extensions/todos/index.js +3 -7
- package/packages/pm-todos/extensions/todos/index.ts +55 -42
- package/packages/pm-todos/extensions/todos/manifest.json +13 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/README.md +7 -4
- package/plugins/pm-claude/agents/pm-coordinator.md +1 -1
- package/plugins/pm-claude/commands/pm-init.md +1 -1
- package/scripts/bundle-cli.mjs +121 -17
- package/dist/cli-bundle/chunks/activity-OWYSUZOY.js +0 -17
- package/dist/cli-bundle/chunks/chunk-3M73P3G6.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-4AEZR5EJ.js +0 -189
- package/dist/cli-bundle/chunks/chunk-4AEZR5EJ.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-5HSEP75M.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-6HT2F4TK.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-7Y53ZJIQ.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-BUPWJ3IJ.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-EGUGFSNX.js +0 -47
- package/dist/cli-bundle/chunks/chunk-EGUGFSNX.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-FM26RGSU.js +0 -56
- package/dist/cli-bundle/chunks/chunk-FM26RGSU.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-FQE6XZDB.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-GN7IJPCD.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-JTWRXG4B.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-JULRTHJQ.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-LRBOHPUE.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-LSXGH6NE.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-MD7K4JYF.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-OGZEG5TT.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-P53TN6IA.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-PXUAZUUY.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-U7FMKRXH.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-VGICHR7D.js +0 -141
- package/dist/cli-bundle/chunks/chunk-VGICHR7D.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-WDPXDQFG.js.map +0 -7
- package/dist/cli-bundle/chunks/close-XY4CSAYF.js +0 -14
- package/dist/cli-bundle/chunks/config-V3FZOKLI.js.map +0 -7
- package/dist/cli-bundle/chunks/contracts-YLMH33VU.js.map +0 -7
- package/dist/cli-bundle/chunks/create-PZVHRIZQ.js +0 -28
- package/dist/cli-bundle/chunks/gc-JWNF66EC.js +0 -181
- package/dist/cli-bundle/chunks/gc-JWNF66EC.js.map +0 -7
- package/dist/cli-bundle/chunks/get-LTK3HOCQ.js.map +0 -7
- package/dist/cli-bundle/chunks/health-TCWL55KM.js.map +0 -7
- package/dist/cli-bundle/chunks/history-A2JUDXUE.js +0 -21
- package/dist/cli-bundle/chunks/history-redact-ED6RFCPL.js +0 -20
- package/dist/cli-bundle/chunks/init-M2WUB4YH.js +0 -16
- package/dist/cli-bundle/chunks/list-OGWQPC26.js +0 -20
- package/dist/cli-bundle/chunks/register-list-query-UP3VRUFS.js.map +0 -7
- package/dist/cli-bundle/chunks/register-mutation-YWSBF545.js.map +0 -7
- package/dist/cli-bundle/chunks/register-operations-3BDTGSDH.js.map +0 -7
- package/dist/cli-bundle/chunks/restore-MB2ISME7.js +0 -18
- package/dist/cli-bundle/chunks/schema-Q622KC46.js +0 -119
- package/dist/cli-bundle/chunks/schema-Q622KC46.js.map +0 -7
- package/dist/cli-bundle/chunks/search-HENBL456.js.map +0 -7
- package/dist/cli-bundle/chunks/stats-N6H3YP2F.js +0 -124
- package/dist/cli-bundle/chunks/stats-N6H3YP2F.js.map +0 -7
- package/dist/cli-bundle/chunks/test-VNBDRJ4Z.js +0 -32
- package/dist/cli-bundle/chunks/update-H6SCWNMA.js +0 -22
- package/dist/cli-bundle/chunks/update-many-46HRSP2Q.js.map +0 -7
- package/dist/cli-bundle/chunks/validate-TMCVKIGZ.js.map +0 -7
- /package/dist/cli-bundle/chunks/{activity-OWYSUZOY.js.map → activity-CVXTCHYY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-ADUOSFRO.js.map → aggregate-VNAHUNNF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-D7AOMPRH.js.map → chunk-BQHUILZS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-G57E5D7T.js.map → chunk-GU2ZJ2VV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AKOOMO3T.js.map → chunk-KAG77BY3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KBQY3YG5.js.map → chunk-KJ33AOCY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WJ2NAC37.js.map → chunk-N7ACFE26.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PVNQLCIS.js.map → chunk-QO7EBBOM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-A7E7PUVX.js.map → chunk-R6UFP2GE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CEFIVZPG.js.map → chunk-T3LC5LKB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JFWUHHS2.js.map → chunk-UM2GBHS4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SEXQN4KL.js.map → chunk-WKY2IBOQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NGN7UV5K.js.map → chunk-XLTD2HN3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-L2FXEKDB.js.map → chunk-YL2DJGYS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-XY4CSAYF.js.map → close-3HDWDA3L.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-PZVHRIZQ.js.map → create-JTZNCTQC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-B4WL7BQU.js.map → extension-J7IBMFTD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-A2JUDXUE.js.map → history-2BA3T5AE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-ED6RFCPL.js.map → history-redact-JBZNXHGR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-M2WUB4YH.js.map → init-HIVSNX3O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-OGWQPC26.js.map → list-MUSQNMTD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-MB2ISME7.js.map → restore-D4RGNX33.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-VNBDRJ4Z.js.map → test-MXX3E5JL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-GX5HTPSF.js.map → test-runs-WMVTQU3Y.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-H6SCWNMA.js.map → update-YRXSUGYQ.js.map} +0 -0
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
CALENDAR_FLAG_CONTRACTS,
|
|
8
8
|
CLAIM_FLAG_CONTRACTS,
|
|
9
9
|
CLOSE_FLAG_CONTRACTS,
|
|
10
|
+
CLOSE_MANY_FLAG_CONTRACTS,
|
|
10
11
|
CLOSE_TASK_FLAG_CONTRACTS,
|
|
11
12
|
COMMENTS_AUDIT_FLAG_CONTRACTS,
|
|
12
13
|
COMMENTS_FLAG_CONTRACTS,
|
|
@@ -22,7 +23,19 @@ import {
|
|
|
22
23
|
DELETE_FLAG_CONTRACTS,
|
|
23
24
|
DEPS_FLAG_CONTRACTS,
|
|
24
25
|
DOCS_FLAG_CONTRACTS,
|
|
26
|
+
EXTENSION_ACTIVATE_FLAG_CONTRACTS,
|
|
27
|
+
EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,
|
|
28
|
+
EXTENSION_ADOPT_FLAG_CONTRACTS,
|
|
29
|
+
EXTENSION_CATALOG_FLAG_CONTRACTS,
|
|
30
|
+
EXTENSION_DEACTIVATE_FLAG_CONTRACTS,
|
|
31
|
+
EXTENSION_DOCTOR_FLAG_CONTRACTS,
|
|
32
|
+
EXTENSION_EXPLORE_FLAG_CONTRACTS,
|
|
25
33
|
EXTENSION_FLAG_CONTRACTS,
|
|
34
|
+
EXTENSION_INIT_FLAG_CONTRACTS,
|
|
35
|
+
EXTENSION_INSTALL_FLAG_CONTRACTS,
|
|
36
|
+
EXTENSION_MANAGE_FLAG_CONTRACTS,
|
|
37
|
+
EXTENSION_RELOAD_FLAG_CONTRACTS,
|
|
38
|
+
EXTENSION_UNINSTALL_FLAG_CONTRACTS,
|
|
26
39
|
FILES_FLAG_CONTRACTS,
|
|
27
40
|
GC_FLAG_CONTRACTS,
|
|
28
41
|
GET_FLAG_CONTRACTS,
|
|
@@ -57,6 +70,8 @@ import {
|
|
|
57
70
|
SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,
|
|
58
71
|
SEARCH_FLAG_CONTRACTS,
|
|
59
72
|
START_TASK_FLAG_CONTRACTS,
|
|
73
|
+
STATS_FLAG_CONTRACTS,
|
|
74
|
+
TELEMETRY_FLAG_CONTRACTS,
|
|
60
75
|
TEST_ALL_FLAG_CONTRACTS,
|
|
61
76
|
TEST_FLAG_CONTRACTS,
|
|
62
77
|
TEST_RUNS_FLAG_CONTRACTS,
|
|
@@ -67,12 +82,12 @@ import {
|
|
|
67
82
|
UPGRADE_FLAG_CONTRACTS,
|
|
68
83
|
VALIDATE_FLAG_CONTRACTS,
|
|
69
84
|
compactFlagAliasContracts
|
|
70
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-PROOHX4K.js";
|
|
71
86
|
import {
|
|
72
87
|
commandOptionFlagLabel,
|
|
73
88
|
resolveCommandOptionPolicyState,
|
|
74
89
|
resolveItemTypeRegistry
|
|
75
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-KJE2FOS4.js";
|
|
76
91
|
import {
|
|
77
92
|
EXIT_CODE,
|
|
78
93
|
PmCliError,
|
|
@@ -86,13 +101,13 @@ import {
|
|
|
86
101
|
resolvePmRoot,
|
|
87
102
|
resolveRuntimeFieldRegistry,
|
|
88
103
|
resolveRuntimeStatusRegistry
|
|
89
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-U5SXYXSY.js";
|
|
90
105
|
|
|
91
106
|
// dist/cli/commands/contracts.js
|
|
92
107
|
!(function() {
|
|
93
108
|
try {
|
|
94
109
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
95
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
110
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "56fc72c4-48c6-5cd7-ac44-80861cdbf7b5");
|
|
96
111
|
} catch (e2) {
|
|
97
112
|
}
|
|
98
113
|
})();
|
|
@@ -128,7 +143,9 @@ var PACKAGE_OWNED_COMMANDS = /* @__PURE__ */ new Set([
|
|
|
128
143
|
"calendar",
|
|
129
144
|
"comments-audit",
|
|
130
145
|
"completion",
|
|
146
|
+
"completion-statuses",
|
|
131
147
|
"completion-tags",
|
|
148
|
+
"completion-types",
|
|
132
149
|
"dedupe-audit",
|
|
133
150
|
"guide",
|
|
134
151
|
"normalize",
|
|
@@ -149,7 +166,9 @@ var PACKAGE_OWNED_COMMAND_INSTALL_HINTS = /* @__PURE__ */ new Map([
|
|
|
149
166
|
["calendar", "calendar"],
|
|
150
167
|
["comments-audit", "governance-audit"],
|
|
151
168
|
["completion", "guide-shell"],
|
|
169
|
+
["completion-statuses", "guide-shell"],
|
|
152
170
|
["completion-tags", "guide-shell"],
|
|
171
|
+
["completion-types", "guide-shell"],
|
|
153
172
|
["dedupe-audit", "governance-audit"],
|
|
154
173
|
["guide", "guide-shell"],
|
|
155
174
|
["normalize", "governance-audit"],
|
|
@@ -165,6 +184,24 @@ var PACKAGE_OWNED_COMMAND_INSTALL_HINTS = /* @__PURE__ */ new Map([
|
|
|
165
184
|
["test-runs stop", "linked-test-adapters"],
|
|
166
185
|
["test-runs resume", "linked-test-adapters"]
|
|
167
186
|
]);
|
|
187
|
+
var PACKAGE_OWNED_ACTION_COMMAND_PATHS = /* @__PURE__ */ new Map([
|
|
188
|
+
["calendar", "calendar|cal"],
|
|
189
|
+
["dedupe-audit", "dedupe-audit"],
|
|
190
|
+
["guide", "guide"],
|
|
191
|
+
["reindex", "reindex"],
|
|
192
|
+
["normalize", "normalize"],
|
|
193
|
+
["comments-audit", "comments-audit"],
|
|
194
|
+
["completion", "completion"],
|
|
195
|
+
["test-runs-list", "test-runs|test-runs list"],
|
|
196
|
+
["test-runs-status", "test-runs status"],
|
|
197
|
+
["test-runs-logs", "test-runs logs"],
|
|
198
|
+
["test-runs-stop", "test-runs stop"],
|
|
199
|
+
["test-runs-resume", "test-runs resume"],
|
|
200
|
+
["templates-list", "templates|templates list"],
|
|
201
|
+
["templates-save", "templates save"],
|
|
202
|
+
["templates-show", "templates show"]
|
|
203
|
+
]);
|
|
204
|
+
var PACKAGE_OWNED_COMMAND_ACTIONS = new Map([...PACKAGE_OWNED_ACTION_COMMAND_PATHS.entries()].flatMap(([action, commandPaths]) => splitCommandPathAliases(commandPaths).map((commandPath) => [commandPath, action])));
|
|
168
205
|
var CANONICAL_COMMAND_ALIASES = [
|
|
169
206
|
{
|
|
170
207
|
canonical: "context",
|
|
@@ -176,6 +213,96 @@ var CANONICAL_COMMAND_ALIASES = [
|
|
|
176
213
|
}
|
|
177
214
|
];
|
|
178
215
|
var COMMAND_ALIAS_TO_CANONICAL = new Map(CANONICAL_COMMAND_ALIASES.flatMap((entry) => entry.aliases.map((alias) => [alias, entry.canonical])));
|
|
216
|
+
var EXTENSION_PACKAGE_LIFECYCLE_FLAG_CONTRACTS = [
|
|
217
|
+
["init", EXTENSION_INIT_FLAG_CONTRACTS],
|
|
218
|
+
["install", EXTENSION_INSTALL_FLAG_CONTRACTS],
|
|
219
|
+
["uninstall", EXTENSION_UNINSTALL_FLAG_CONTRACTS],
|
|
220
|
+
["explore", EXTENSION_EXPLORE_FLAG_CONTRACTS],
|
|
221
|
+
["manage", EXTENSION_MANAGE_FLAG_CONTRACTS],
|
|
222
|
+
["reload", EXTENSION_RELOAD_FLAG_CONTRACTS],
|
|
223
|
+
["doctor", EXTENSION_DOCTOR_FLAG_CONTRACTS],
|
|
224
|
+
["catalog", EXTENSION_CATALOG_FLAG_CONTRACTS],
|
|
225
|
+
["adopt", EXTENSION_ADOPT_FLAG_CONTRACTS],
|
|
226
|
+
["adopt-all", EXTENSION_ADOPT_ALL_FLAG_CONTRACTS],
|
|
227
|
+
["activate", EXTENSION_ACTIVATE_FLAG_CONTRACTS],
|
|
228
|
+
["deactivate", EXTENSION_DEACTIVATE_FLAG_CONTRACTS]
|
|
229
|
+
];
|
|
230
|
+
var CORE_COMMAND_FLAG_CONTRACT_ENTRIES = [
|
|
231
|
+
...EXTENSION_PACKAGE_LIFECYCLE_FLAG_CONTRACTS.flatMap(([subcommand, flags]) => [
|
|
232
|
+
[`extension ${subcommand}`, flags],
|
|
233
|
+
[`package ${subcommand}`, flags],
|
|
234
|
+
[`packages ${subcommand}`, flags]
|
|
235
|
+
]),
|
|
236
|
+
["init", INIT_FLAG_CONTRACTS],
|
|
237
|
+
["config", CONFIG_FLAG_CONTRACTS],
|
|
238
|
+
["extension", EXTENSION_FLAG_CONTRACTS],
|
|
239
|
+
["package", EXTENSION_FLAG_CONTRACTS],
|
|
240
|
+
["packages", EXTENSION_FLAG_CONTRACTS],
|
|
241
|
+
["install", INSTALL_FLAG_CONTRACTS],
|
|
242
|
+
["create", CREATE_FLAG_CONTRACTS],
|
|
243
|
+
["update", UPDATE_FLAG_CONTRACTS],
|
|
244
|
+
["update-many", UPDATE_MANY_FLAG_CONTRACTS],
|
|
245
|
+
["upgrade", UPGRADE_FLAG_CONTRACTS],
|
|
246
|
+
["normalize", NORMALIZE_FLAG_CONTRACTS],
|
|
247
|
+
["calendar", CALENDAR_FLAG_CONTRACTS],
|
|
248
|
+
["cal", CALENDAR_FLAG_CONTRACTS],
|
|
249
|
+
["context", CONTEXT_FLAG_CONTRACTS],
|
|
250
|
+
["ctx", CONTEXT_FLAG_CONTRACTS],
|
|
251
|
+
["get", GET_FLAG_CONTRACTS],
|
|
252
|
+
["search", SEARCH_FLAG_CONTRACTS],
|
|
253
|
+
["aggregate", AGGREGATE_FLAG_CONTRACTS],
|
|
254
|
+
["dedupe-audit", DEDUPE_AUDIT_FLAG_CONTRACTS],
|
|
255
|
+
["deps", DEPS_FLAG_CONTRACTS],
|
|
256
|
+
["guide", GUIDE_FLAG_CONTRACTS],
|
|
257
|
+
["reindex", REINDEX_FLAG_CONTRACTS],
|
|
258
|
+
["history", HISTORY_FLAG_CONTRACTS],
|
|
259
|
+
["history-redact", HISTORY_REDACT_FLAG_CONTRACTS],
|
|
260
|
+
["history-repair", HISTORY_REPAIR_FLAG_CONTRACTS],
|
|
261
|
+
["schema", SCHEMA_FLAG_CONTRACTS],
|
|
262
|
+
["plan", PLAN_FLAG_CONTRACTS],
|
|
263
|
+
["restore", RESTORE_FLAG_CONTRACTS],
|
|
264
|
+
["delete", DELETE_FLAG_CONTRACTS],
|
|
265
|
+
["close", CLOSE_FLAG_CONTRACTS],
|
|
266
|
+
["close-many", CLOSE_MANY_FLAG_CONTRACTS],
|
|
267
|
+
["append", APPEND_FLAG_CONTRACTS],
|
|
268
|
+
["claim", CLAIM_FLAG_CONTRACTS],
|
|
269
|
+
["release", RELEASE_FLAG_CONTRACTS],
|
|
270
|
+
["start-task", START_TASK_FLAG_CONTRACTS],
|
|
271
|
+
["pause-task", PAUSE_TASK_FLAG_CONTRACTS],
|
|
272
|
+
["close-task", CLOSE_TASK_FLAG_CONTRACTS],
|
|
273
|
+
["comments", COMMENTS_FLAG_CONTRACTS],
|
|
274
|
+
["notes", NOTES_FLAG_CONTRACTS],
|
|
275
|
+
["learnings", LEARNINGS_FLAG_CONTRACTS],
|
|
276
|
+
["files", FILES_FLAG_CONTRACTS],
|
|
277
|
+
["docs", DOCS_FLAG_CONTRACTS],
|
|
278
|
+
["test", TEST_FLAG_CONTRACTS],
|
|
279
|
+
["test-all", TEST_ALL_FLAG_CONTRACTS],
|
|
280
|
+
["telemetry", TELEMETRY_FLAG_CONTRACTS],
|
|
281
|
+
["test-runs", TEST_RUNS_FLAG_CONTRACTS],
|
|
282
|
+
["gc", GC_FLAG_CONTRACTS],
|
|
283
|
+
["stats", STATS_FLAG_CONTRACTS],
|
|
284
|
+
["validate", VALIDATE_FLAG_CONTRACTS],
|
|
285
|
+
["comments-audit", COMMENTS_AUDIT_FLAG_CONTRACTS],
|
|
286
|
+
["health", HEALTH_FLAG_CONTRACTS],
|
|
287
|
+
["contracts", CONTRACTS_FLAG_CONTRACTS],
|
|
288
|
+
["completion", COMPLETION_FLAG_CONTRACTS],
|
|
289
|
+
["activity", ACTIVITY_FLAG_CONTRACTS],
|
|
290
|
+
...[...LIST_COMMAND_NAMES].map((command) => [command, LIST_FILTER_FLAG_CONTRACTS])
|
|
291
|
+
];
|
|
292
|
+
var CORE_COMMAND_FLAG_CONTRACTS_BY_COMMAND = new Map(CORE_COMMAND_FLAG_CONTRACT_ENTRIES);
|
|
293
|
+
function packageOwnedActionForCommand(command) {
|
|
294
|
+
const exactAction = PACKAGE_OWNED_COMMAND_ACTIONS.get(command);
|
|
295
|
+
if (exactAction) {
|
|
296
|
+
return exactAction;
|
|
297
|
+
}
|
|
298
|
+
if (command.startsWith("test-runs ")) {
|
|
299
|
+
return `test-runs-${command.slice("test-runs ".length)}`;
|
|
300
|
+
}
|
|
301
|
+
if (command.startsWith("templates ")) {
|
|
302
|
+
return `templates-${command.slice("templates ".length)}`;
|
|
303
|
+
}
|
|
304
|
+
return command;
|
|
305
|
+
}
|
|
179
306
|
function resolveActionCommandPath(action) {
|
|
180
307
|
if (PM_CORE_COMMAND_NAMES.includes(action)) {
|
|
181
308
|
return normalizeCommandPath(action);
|
|
@@ -192,6 +319,9 @@ function resolveActionCommandPath(action) {
|
|
|
192
319
|
if (action.startsWith("templates-")) {
|
|
193
320
|
return normalizeCommandPath(`templates ${action.slice("templates-".length)}`);
|
|
194
321
|
}
|
|
322
|
+
if (PACKAGE_OWNED_ACTIONS.has(action)) {
|
|
323
|
+
return PACKAGE_OWNED_ACTION_COMMAND_PATHS.get(action) ?? normalizeCommandPath(action);
|
|
324
|
+
}
|
|
195
325
|
return null;
|
|
196
326
|
}
|
|
197
327
|
function actionDescriptorMatchesSelectedCommand(descriptor, selectedCommand) {
|
|
@@ -641,20 +771,34 @@ async function resolveRuntimeExtensionActionProbe(global2) {
|
|
|
641
771
|
};
|
|
642
772
|
}
|
|
643
773
|
}
|
|
644
|
-
function collectActionContractDescriptors(extensionContracts) {
|
|
774
|
+
function collectActionContractDescriptors(extensionContracts, options = {}) {
|
|
645
775
|
const descriptors = /* @__PURE__ */ new Map();
|
|
646
776
|
for (const action of PM_TOOL_ACTIONS) {
|
|
647
|
-
|
|
777
|
+
const packageOwned = PACKAGE_OWNED_ACTIONS.has(action);
|
|
778
|
+
if (packageOwned && !options.includePackageOwnedActions) {
|
|
648
779
|
continue;
|
|
649
780
|
}
|
|
650
781
|
const commandPath = resolveActionCommandPath(action);
|
|
651
782
|
descriptors.set(action, {
|
|
652
783
|
action,
|
|
653
|
-
provider: "core",
|
|
654
|
-
requires_extension:
|
|
784
|
+
provider: packageOwned ? "extension" : "core",
|
|
785
|
+
requires_extension: packageOwned,
|
|
655
786
|
command_path: commandPath
|
|
656
787
|
});
|
|
657
788
|
}
|
|
789
|
+
if (options.includePackageOwnedActions) {
|
|
790
|
+
for (const action of PACKAGE_OWNED_ACTIONS) {
|
|
791
|
+
if (descriptors.has(action)) {
|
|
792
|
+
continue;
|
|
793
|
+
}
|
|
794
|
+
descriptors.set(action, {
|
|
795
|
+
action,
|
|
796
|
+
provider: "extension",
|
|
797
|
+
requires_extension: true,
|
|
798
|
+
command_path: resolveActionCommandPath(action)
|
|
799
|
+
});
|
|
800
|
+
}
|
|
801
|
+
}
|
|
658
802
|
for (const contract of extensionContracts) {
|
|
659
803
|
if (descriptors.has(contract.action)) {
|
|
660
804
|
continue;
|
|
@@ -683,6 +827,7 @@ function resolveActionAvailability(descriptor, runtimeProbe) {
|
|
|
683
827
|
}
|
|
684
828
|
const commandPaths = descriptor.command_path ? splitCommandPathAliases(descriptor.command_path) : [];
|
|
685
829
|
const extensionCommandAvailable = commandPaths.some((commandPath) => runtimeProbe.handlers.has(commandPath));
|
|
830
|
+
const optionalPackageHint = commandPaths.map((commandPath) => PACKAGE_OWNED_COMMAND_INSTALL_HINTS.get(commandPath)).find((hint) => typeof hint === "string");
|
|
686
831
|
const invocable = runtimeProbe.disabledReason === null && extensionCommandAvailable;
|
|
687
832
|
return {
|
|
688
833
|
action: descriptor.action,
|
|
@@ -690,7 +835,7 @@ function resolveActionAvailability(descriptor, runtimeProbe) {
|
|
|
690
835
|
available: invocable,
|
|
691
836
|
requires_extension: true,
|
|
692
837
|
provider: "extension",
|
|
693
|
-
disabled_reason: invocable ? null : runtimeProbe.disabledReason ?? "extension_command_not_registered",
|
|
838
|
+
disabled_reason: invocable ? null : runtimeProbe.disabledReason ?? (optionalPackageHint ? `optional_package_not_installed:${optionalPackageHint}` : "extension_command_not_registered"),
|
|
694
839
|
command_path: descriptor.command_path,
|
|
695
840
|
cli_exposed: extensionCommandAvailable,
|
|
696
841
|
policy_state: {
|
|
@@ -701,151 +846,13 @@ function resolveActionAvailability(descriptor, runtimeProbe) {
|
|
|
701
846
|
};
|
|
702
847
|
}
|
|
703
848
|
function resolveCoreCommandFlags(command) {
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
if (command
|
|
708
|
-
return
|
|
709
|
-
}
|
|
710
|
-
if (command === "extension" || command === "package" || command === "packages") {
|
|
711
|
-
return EXTENSION_FLAG_CONTRACTS;
|
|
712
|
-
}
|
|
713
|
-
if (command === "install") {
|
|
714
|
-
return INSTALL_FLAG_CONTRACTS;
|
|
715
|
-
}
|
|
716
|
-
if (command === "create") {
|
|
717
|
-
return CREATE_FLAG_CONTRACTS;
|
|
718
|
-
}
|
|
719
|
-
if (command === "update") {
|
|
720
|
-
return UPDATE_FLAG_CONTRACTS;
|
|
721
|
-
}
|
|
722
|
-
if (command === "update-many") {
|
|
723
|
-
return UPDATE_MANY_FLAG_CONTRACTS;
|
|
724
|
-
}
|
|
725
|
-
if (command === "upgrade") {
|
|
726
|
-
return UPGRADE_FLAG_CONTRACTS;
|
|
727
|
-
}
|
|
728
|
-
if (command === "normalize") {
|
|
729
|
-
return NORMALIZE_FLAG_CONTRACTS;
|
|
730
|
-
}
|
|
731
|
-
if (command === "calendar" || command === "cal") {
|
|
732
|
-
return CALENDAR_FLAG_CONTRACTS;
|
|
733
|
-
}
|
|
734
|
-
if (command === "context" || command === "ctx") {
|
|
735
|
-
return CONTEXT_FLAG_CONTRACTS;
|
|
736
|
-
}
|
|
737
|
-
if (command === "get") {
|
|
738
|
-
return GET_FLAG_CONTRACTS;
|
|
739
|
-
}
|
|
740
|
-
if (command === "search") {
|
|
741
|
-
return SEARCH_FLAG_CONTRACTS;
|
|
742
|
-
}
|
|
743
|
-
if (command === "aggregate") {
|
|
744
|
-
return AGGREGATE_FLAG_CONTRACTS;
|
|
745
|
-
}
|
|
746
|
-
if (command === "dedupe-audit") {
|
|
747
|
-
return DEDUPE_AUDIT_FLAG_CONTRACTS;
|
|
748
|
-
}
|
|
749
|
-
if (command === "deps") {
|
|
750
|
-
return DEPS_FLAG_CONTRACTS;
|
|
751
|
-
}
|
|
752
|
-
if (command === "guide") {
|
|
753
|
-
return GUIDE_FLAG_CONTRACTS;
|
|
754
|
-
}
|
|
755
|
-
if (command === "reindex") {
|
|
756
|
-
return REINDEX_FLAG_CONTRACTS;
|
|
757
|
-
}
|
|
758
|
-
if (command === "history") {
|
|
759
|
-
return HISTORY_FLAG_CONTRACTS;
|
|
760
|
-
}
|
|
761
|
-
if (command === "history-redact") {
|
|
762
|
-
return HISTORY_REDACT_FLAG_CONTRACTS;
|
|
763
|
-
}
|
|
764
|
-
if (command === "history-repair") {
|
|
765
|
-
return HISTORY_REPAIR_FLAG_CONTRACTS;
|
|
766
|
-
}
|
|
767
|
-
if (command === "schema") {
|
|
768
|
-
return SCHEMA_FLAG_CONTRACTS;
|
|
769
|
-
}
|
|
770
|
-
if (command === "plan") {
|
|
771
|
-
return PLAN_FLAG_CONTRACTS;
|
|
772
|
-
}
|
|
773
|
-
if (command === "restore") {
|
|
774
|
-
return RESTORE_FLAG_CONTRACTS;
|
|
775
|
-
}
|
|
776
|
-
if (command === "delete") {
|
|
777
|
-
return DELETE_FLAG_CONTRACTS;
|
|
778
|
-
}
|
|
779
|
-
if (command === "close") {
|
|
780
|
-
return CLOSE_FLAG_CONTRACTS;
|
|
781
|
-
}
|
|
782
|
-
if (command === "append") {
|
|
783
|
-
return APPEND_FLAG_CONTRACTS;
|
|
784
|
-
}
|
|
785
|
-
if (command === "claim") {
|
|
786
|
-
return CLAIM_FLAG_CONTRACTS;
|
|
787
|
-
}
|
|
788
|
-
if (command === "release") {
|
|
789
|
-
return RELEASE_FLAG_CONTRACTS;
|
|
790
|
-
}
|
|
791
|
-
if (command === "start-task") {
|
|
792
|
-
return START_TASK_FLAG_CONTRACTS;
|
|
793
|
-
}
|
|
794
|
-
if (command === "pause-task") {
|
|
795
|
-
return PAUSE_TASK_FLAG_CONTRACTS;
|
|
796
|
-
}
|
|
797
|
-
if (command === "close-task") {
|
|
798
|
-
return CLOSE_TASK_FLAG_CONTRACTS;
|
|
799
|
-
}
|
|
800
|
-
if (command === "comments") {
|
|
801
|
-
return COMMENTS_FLAG_CONTRACTS;
|
|
802
|
-
}
|
|
803
|
-
if (command === "notes") {
|
|
804
|
-
return NOTES_FLAG_CONTRACTS;
|
|
805
|
-
}
|
|
806
|
-
if (command === "learnings") {
|
|
807
|
-
return LEARNINGS_FLAG_CONTRACTS;
|
|
808
|
-
}
|
|
809
|
-
if (command === "files") {
|
|
810
|
-
return FILES_FLAG_CONTRACTS;
|
|
811
|
-
}
|
|
812
|
-
if (command === "docs") {
|
|
813
|
-
return DOCS_FLAG_CONTRACTS;
|
|
814
|
-
}
|
|
815
|
-
if (command === "test") {
|
|
816
|
-
return TEST_FLAG_CONTRACTS;
|
|
817
|
-
}
|
|
818
|
-
if (command === "test-all") {
|
|
819
|
-
return TEST_ALL_FLAG_CONTRACTS;
|
|
820
|
-
}
|
|
821
|
-
if (command === "test-runs") {
|
|
822
|
-
return TEST_RUNS_FLAG_CONTRACTS;
|
|
823
|
-
}
|
|
824
|
-
if (command === "gc") {
|
|
825
|
-
return GC_FLAG_CONTRACTS;
|
|
826
|
-
}
|
|
827
|
-
if (command === "validate") {
|
|
828
|
-
return VALIDATE_FLAG_CONTRACTS;
|
|
829
|
-
}
|
|
830
|
-
if (command === "comments-audit") {
|
|
831
|
-
return COMMENTS_AUDIT_FLAG_CONTRACTS;
|
|
832
|
-
}
|
|
833
|
-
if (command === "health") {
|
|
834
|
-
return HEALTH_FLAG_CONTRACTS;
|
|
835
|
-
}
|
|
836
|
-
if (command === "contracts") {
|
|
837
|
-
return CONTRACTS_FLAG_CONTRACTS;
|
|
838
|
-
}
|
|
839
|
-
if (command === "completion") {
|
|
840
|
-
return COMPLETION_FLAG_CONTRACTS;
|
|
841
|
-
}
|
|
842
|
-
if (command === "activity") {
|
|
843
|
-
return ACTIVITY_FLAG_CONTRACTS;
|
|
844
|
-
}
|
|
845
|
-
if (LIST_COMMAND_NAMES.has(command)) {
|
|
846
|
-
return LIST_FILTER_FLAG_CONTRACTS;
|
|
849
|
+
return CORE_COMMAND_FLAG_CONTRACTS_BY_COMMAND.get(command) ?? GLOBAL_FLAG_CONTRACTS;
|
|
850
|
+
}
|
|
851
|
+
function isCoreCommandPath(command) {
|
|
852
|
+
if (PACKAGE_OWNED_COMMANDS.has(command)) {
|
|
853
|
+
return false;
|
|
847
854
|
}
|
|
848
|
-
return
|
|
855
|
+
return CORE_COMMAND_FLAG_CONTRACTS_BY_COMMAND.has(command);
|
|
849
856
|
}
|
|
850
857
|
function normalizeCommandForRuntimeFieldFlags(command) {
|
|
851
858
|
if (LIST_COMMAND_NAMES.has(command)) {
|
|
@@ -858,7 +865,7 @@ function normalizeCommandForRuntimeFieldFlags(command) {
|
|
|
858
865
|
return "context";
|
|
859
866
|
}
|
|
860
867
|
if (command === "update-many") {
|
|
861
|
-
return "
|
|
868
|
+
return "update_many";
|
|
862
869
|
}
|
|
863
870
|
return command;
|
|
864
871
|
}
|
|
@@ -940,7 +947,7 @@ function mergeFlagContracts(primary, secondary) {
|
|
|
940
947
|
}
|
|
941
948
|
function buildCommandFlagSurface(commands, extensionFlagMap, runtimeFieldFlagMap) {
|
|
942
949
|
return commands.map((command) => {
|
|
943
|
-
const isCoreCommand =
|
|
950
|
+
const isCoreCommand = isCoreCommandPath(command);
|
|
944
951
|
const coreFlags = isCoreCommand ? resolveCoreCommandFlags(command) : [];
|
|
945
952
|
const runtimeFlags = runtimeFieldFlagMap.get(normalizeCommandForRuntimeFieldFlags(command)) ?? [];
|
|
946
953
|
const extensionFlags = extensionFlagMap.get(command);
|
|
@@ -1100,7 +1107,16 @@ async function runContracts(options, global2) {
|
|
|
1100
1107
|
const extensionContracts = collectExtensionCommandContracts(runtimeProbe);
|
|
1101
1108
|
const mergedExtensionContracts = mergeExtensionContractsByAction(extensionContracts);
|
|
1102
1109
|
const extensionFlagMap = collectExtensionFlagContractsByCommand(runtimeProbe.flagRegistrations);
|
|
1103
|
-
const
|
|
1110
|
+
const includePackageOwnedActions = selectedAction !== void 0 && PACKAGE_OWNED_ACTIONS.has(selectedAction) && availabilityOnly || selectedCommand !== void 0 && PACKAGE_OWNED_COMMANDS.has(selectedCommand) && availabilityOnly;
|
|
1111
|
+
const actionDescriptors = collectActionContractDescriptors(mergedExtensionContracts, { includePackageOwnedActions });
|
|
1112
|
+
if (includePackageOwnedActions && selectedCommand !== void 0 && PACKAGE_OWNED_COMMANDS.has(selectedCommand) && !actionDescriptors.some((entry) => entry.command_path === selectedCommand)) {
|
|
1113
|
+
actionDescriptors.push({
|
|
1114
|
+
action: packageOwnedActionForCommand(selectedCommand),
|
|
1115
|
+
provider: "extension",
|
|
1116
|
+
requires_extension: true,
|
|
1117
|
+
command_path: selectedCommand
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1104
1120
|
const actionNames = new Set(actionDescriptors.map((entry) => entry.action));
|
|
1105
1121
|
if (selectedAction && !actionNames.has(selectedAction)) {
|
|
1106
1122
|
throw new PmCliError(`Unknown action: "${options.action}".`, EXIT_CODE.USAGE);
|
|
@@ -1108,6 +1124,8 @@ async function runContracts(options, global2) {
|
|
|
1108
1124
|
const commandCatalog = [
|
|
1109
1125
|
.../* @__PURE__ */ new Set([
|
|
1110
1126
|
...PM_CORE_COMMAND_NAMES.filter((entry) => !PACKAGE_OWNED_COMMANDS.has(entry)),
|
|
1127
|
+
...[...CORE_COMMAND_FLAG_CONTRACTS_BY_COMMAND.keys()].filter((entry) => !PACKAGE_OWNED_COMMANDS.has(entry)),
|
|
1128
|
+
...actionDescriptors.flatMap((entry) => entry.command_path ? splitCommandPathAliases(entry.command_path) : []),
|
|
1111
1129
|
...mergedExtensionContracts.flatMap((entry) => entry.command.split("|"))
|
|
1112
1130
|
])
|
|
1113
1131
|
].map((entry) => normalizeCommandPath(entry)).filter((entry) => entry.length > 0).sort((left, right) => left.localeCompare(right));
|
|
@@ -1116,6 +1134,9 @@ async function runContracts(options, global2) {
|
|
|
1116
1134
|
const packageHint = PACKAGE_OWNED_COMMAND_INSTALL_HINTS.get(selectedCommand);
|
|
1117
1135
|
if (packageHint) {
|
|
1118
1136
|
throw new PmCliError(`Unknown command: "${options.command}". Command "${selectedCommand}" is provided by the optional "${packageHint}" package. Run "pm install ${packageHint} --project" and retry.`, EXIT_CODE.USAGE, {
|
|
1137
|
+
code: "unknown_command",
|
|
1138
|
+
required: `Install the optional "${packageHint}" package, or choose a command from pm contracts --flags-only --json.`,
|
|
1139
|
+
why: "Command contracts include core commands plus commands registered by active packages and extensions.",
|
|
1119
1140
|
examples: [`pm install ${packageHint} --project`, `pm contracts --command ${selectedCommand} --flags-only --json`],
|
|
1120
1141
|
nextSteps: [`Install the optional package first: pm install ${packageHint} --project`],
|
|
1121
1142
|
recovery: {
|
|
@@ -1123,9 +1144,19 @@ async function runContracts(options, global2) {
|
|
|
1123
1144
|
}
|
|
1124
1145
|
});
|
|
1125
1146
|
}
|
|
1126
|
-
throw new PmCliError(`Unknown command: "${options.command}".`, EXIT_CODE.USAGE
|
|
1147
|
+
throw new PmCliError(`Unknown command: "${options.command}".`, EXIT_CODE.USAGE, {
|
|
1148
|
+
code: "unknown_command",
|
|
1149
|
+
required: "Use a command path listed by pm contracts --flags-only --json.",
|
|
1150
|
+
why: "Command contracts are generated from the active core, package, and extension command registry.",
|
|
1151
|
+
examples: ["pm contracts --flags-only --json", "pm --help"],
|
|
1152
|
+
nextSteps: ["Verify spelling and active packages/extensions, then rerun with a known command path."],
|
|
1153
|
+
recovery: {
|
|
1154
|
+
suggested_retry: "pm contracts --flags-only --json"
|
|
1155
|
+
}
|
|
1156
|
+
});
|
|
1127
1157
|
}
|
|
1128
|
-
const
|
|
1158
|
+
const selectedPackageOwnedAction = selectedCommand ? PACKAGE_OWNED_COMMAND_ACTIONS.get(selectedCommand) : void 0;
|
|
1159
|
+
const commandScopedDescriptors = selectedCommand ? actionDescriptors.filter((descriptor) => selectedPackageOwnedAction ? descriptor.action === selectedPackageOwnedAction : actionDescriptorMatchesSelectedCommand(descriptor, selectedCommand)) : actionDescriptors;
|
|
1129
1160
|
if (selectedCommand && selectedAction && !commandScopedDescriptors.some((descriptor) => descriptor.action === selectedAction)) {
|
|
1130
1161
|
throw new PmCliError(`Action "${options.action}" is not mapped to command "${options.command}" in contracts output.`, EXIT_CODE.USAGE);
|
|
1131
1162
|
}
|
|
@@ -1149,9 +1180,14 @@ async function runContracts(options, global2) {
|
|
|
1149
1180
|
oneOf: [...schemaBranches, ...extensionBranches]
|
|
1150
1181
|
} : schema;
|
|
1151
1182
|
const scopedActionDescriptors = selectedAction ? commandScopedDescriptors.filter((descriptor) => descriptor.action === selectedAction) : commandScopedDescriptors;
|
|
1152
|
-
const allActionAvailability =
|
|
1153
|
-
|
|
1154
|
-
|
|
1183
|
+
const allActionAvailability = [
|
|
1184
|
+
...new Map(scopedActionDescriptors.map((descriptor) => resolveActionAvailability(descriptor, runtimeProbe)).map((entry) => [
|
|
1185
|
+
selectedPackageOwnedAction ? entry.action : `${entry.action}|${entry.command_path ?? ""}`,
|
|
1186
|
+
entry
|
|
1187
|
+
])).values()
|
|
1188
|
+
];
|
|
1189
|
+
const actionAvailability = runtimeOnly && !selectedAction && !availabilityOnly ? allActionAvailability.filter((entry) => entry.invocable) : allActionAvailability;
|
|
1190
|
+
const actions = [...new Set(actionAvailability.map((entry) => entry.action))];
|
|
1155
1191
|
const descriptorActionSet = new Set(actionDescriptors.map((descriptor) => descriptor.action));
|
|
1156
1192
|
let filteredSchema = selectedAction ? filterSchemaByAction(mergedSchema, selectedAction) : selectedCommand ? filterSchemaByActions(mergedSchema, new Set(scopedActionDescriptors.map((descriptor) => descriptor.action))) : filterSchemaByActions(mergedSchema, descriptorActionSet);
|
|
1157
1193
|
if (runtimeOnly && !selectedAction) {
|
|
@@ -1242,4 +1278,4 @@ async function runContracts(options, global2) {
|
|
|
1242
1278
|
export {
|
|
1243
1279
|
runContracts
|
|
1244
1280
|
};
|
|
1245
|
-
//# sourceMappingURL=contracts-
|
|
1281
|
+
//# sourceMappingURL=contracts-RFSPGVVJ.js.map
|