@unbrained/pm-cli 2026.5.31 → 2026.6.5
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 +127 -0
- 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 +241 -27
- 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 +191 -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/get.js +7 -7
- package/dist/cli/commands/get.js.map +1 -1
- package/dist/cli/commands/health.js +38 -3
- package/dist/cli/commands/health.js.map +1 -1
- package/dist/cli/commands/index.d.ts +2 -1
- package/dist/cli/commands/index.js +4 -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/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 +82 -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 +9 -3
- 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 +4 -2
- 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-3RWRRNOW.js +20 -0
- package/dist/cli-bundle/chunks/activity-3RWRRNOW.js.map +1 -0
- package/dist/cli-bundle/chunks/activity-P5BUMWP3.js +16 -0
- package/dist/cli-bundle/chunks/aggregate-J35K7WZB.js +206 -0
- package/dist/cli-bundle/chunks/aggregate-J35K7WZB.js.map +1 -0
- package/dist/cli-bundle/chunks/{aggregate-ADUOSFRO.js → aggregate-OOAGKWRG.js} +11 -11
- package/dist/cli-bundle/chunks/{append-JD2DETU7.js → append-5JE3YGXU.js} +8 -9
- package/dist/cli-bundle/chunks/{append-JD2DETU7.js.map → append-5JE3YGXU.js.map} +1 -1
- package/dist/cli-bundle/chunks/append-PNN6UIBZ.js +69 -0
- package/dist/cli-bundle/chunks/append-PNN6UIBZ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-26KTVXJW.js +218 -0
- package/dist/cli-bundle/chunks/chunk-26KTVXJW.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-JULRTHJQ.js → chunk-3OH4DAEB.js} +119 -6
- package/dist/cli-bundle/chunks/chunk-3OH4DAEB.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-4LTBNUYT.js +5553 -0
- package/dist/cli-bundle/chunks/chunk-4LTBNUYT.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-WDPXDQFG.js → chunk-4PJQSECJ.js} +6 -4
- package/dist/cli-bundle/chunks/chunk-4PJQSECJ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-4QCR4QW3.js +1832 -0
- package/dist/cli-bundle/chunks/chunk-4QCR4QW3.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-6HT2F4TK.js → chunk-5IRA6IYD.js} +175 -54
- package/dist/cli-bundle/chunks/chunk-5IRA6IYD.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-5KB4X7YY.js +412 -0
- package/dist/cli-bundle/chunks/chunk-5KB4X7YY.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-5PAOPUZX.js +182 -0
- package/dist/cli-bundle/chunks/chunk-5PAOPUZX.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-7K24QB23.js +698 -0
- package/dist/cli-bundle/chunks/chunk-7K24QB23.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-A6PEXMYN.js +380 -0
- package/dist/cli-bundle/chunks/chunk-A6PEXMYN.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-ASQM3IF5.js +230 -0
- package/dist/cli-bundle/chunks/chunk-ASQM3IF5.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-G57E5D7T.js → chunk-ATBVS6WW.js} +5 -5
- package/dist/cli-bundle/chunks/chunk-AXXKLVTW.js +332 -0
- package/dist/cli-bundle/chunks/chunk-AXXKLVTW.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-PXUAZUUY.js → chunk-B3N4TKNL.js} +12 -11
- package/dist/cli-bundle/chunks/chunk-B3N4TKNL.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-KBQY3YG5.js → chunk-BNL6S7QH.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-CCUFLH4J.js +154 -0
- package/dist/cli-bundle/chunks/chunk-CCUFLH4J.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-NGN7UV5K.js → chunk-CJDQB2ED.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-CWT53EYT.js +1340 -0
- package/dist/cli-bundle/chunks/chunk-CWT53EYT.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-D7AOMPRH.js → chunk-D3WUNETC.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-3M73P3G6.js → chunk-D5X7N6FI.js} +210 -132
- package/dist/cli-bundle/chunks/chunk-D5X7N6FI.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-6YCV7WSL.js → chunk-DFIZGAI5.js} +10 -12
- package/dist/cli-bundle/chunks/{chunk-6YCV7WSL.js.map → chunk-DFIZGAI5.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-DFUSXJDE.js +1704 -0
- package/dist/cli-bundle/chunks/chunk-DFUSXJDE.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-EHXPIKKP.js +2988 -0
- package/dist/cli-bundle/chunks/chunk-EHXPIKKP.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-FVXM3GKS.js +128 -0
- package/dist/cli-bundle/chunks/chunk-FVXM3GKS.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-G5BACLYH.js +454 -0
- package/dist/cli-bundle/chunks/chunk-G5BACLYH.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-U7FMKRXH.js → chunk-GCAVRLGE.js} +37 -16
- package/dist/cli-bundle/chunks/chunk-GCAVRLGE.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-GFWHHMVV.js +57 -0
- package/dist/cli-bundle/chunks/chunk-GFWHHMVV.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-GNHVV4SY.js +3860 -0
- package/dist/cli-bundle/chunks/chunk-GNHVV4SY.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-GPGAYASV.js +346 -0
- package/dist/cli-bundle/chunks/chunk-GPGAYASV.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-MD7K4JYF.js → chunk-HPH6X4ZZ.js} +26 -15
- package/dist/cli-bundle/chunks/chunk-HPH6X4ZZ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-5HSEP75M.js → chunk-HZOS2UG5.js} +18 -6
- package/dist/cli-bundle/chunks/chunk-HZOS2UG5.js.map +7 -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-L2FXEKDB.js → chunk-JB4RGL4V.js} +7 -7
- package/dist/cli-bundle/chunks/chunk-JQI2HE55.js +130 -0
- package/dist/cli-bundle/chunks/chunk-JQI2HE55.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-SEXQN4KL.js → chunk-K47WAYQV.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-CEFIVZPG.js → chunk-KA24HME7.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-KBG47ZOY.js +1325 -0
- package/dist/cli-bundle/chunks/chunk-KBG47ZOY.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-KCMIYKTA.js +242 -0
- package/dist/cli-bundle/chunks/chunk-KCMIYKTA.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-7Y53ZJIQ.js → chunk-KK6YPGH3.js} +22 -3
- package/dist/cli-bundle/chunks/chunk-KK6YPGH3.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-A7E7PUVX.js → chunk-LDJK7SHN.js} +7 -7
- 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-MISYRLEP.js +80 -0
- package/dist/cli-bundle/chunks/chunk-MISYRLEP.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-FQE6XZDB.js → chunk-N5YF3VFN.js} +54 -32
- package/dist/cli-bundle/chunks/chunk-N5YF3VFN.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-NQP3ECKF.js +173 -0
- package/dist/cli-bundle/chunks/chunk-NQP3ECKF.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-O5IBJE6S.js +338 -0
- package/dist/cli-bundle/chunks/chunk-O5IBJE6S.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-OGZEG5TT.js → chunk-OIQIXTNB.js} +164 -53
- package/dist/cli-bundle/chunks/chunk-OIQIXTNB.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-ORTLYVA4.js +751 -0
- package/dist/cli-bundle/chunks/chunk-ORTLYVA4.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-JTWRXG4B.js → chunk-OUF3ARDX.js} +251 -251
- package/dist/cli-bundle/chunks/chunk-OUF3ARDX.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-PVNQLCIS.js → chunk-RANZIID5.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-RQAWLSUU.js +140 -0
- package/dist/cli-bundle/chunks/chunk-RQAWLSUU.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-JFWUHHS2.js → chunk-S3CV7JGJ.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-LSXGH6NE.js → chunk-SRVKTWPR.js} +748 -196
- package/dist/cli-bundle/chunks/chunk-SRVKTWPR.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-SSFMJCPF.js +76 -0
- package/dist/cli-bundle/chunks/chunk-SSFMJCPF.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-SZQCER6S.js +631 -0
- package/dist/cli-bundle/chunks/chunk-SZQCER6S.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-T2ORWB6D.js +540 -0
- package/dist/cli-bundle/chunks/chunk-T2ORWB6D.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-TBQVUNVH.js +422 -0
- package/dist/cli-bundle/chunks/chunk-TBQVUNVH.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-P53TN6IA.js → chunk-TK633IVD.js} +35 -8
- package/dist/cli-bundle/chunks/chunk-TK633IVD.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-TQ3ZK6VD.js +131 -0
- package/dist/cli-bundle/chunks/chunk-TQ3ZK6VD.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-UFCG3SWR.js +119 -0
- package/dist/cli-bundle/chunks/chunk-UFCG3SWR.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-UOVLWB47.js +1664 -0
- package/dist/cli-bundle/chunks/chunk-UOVLWB47.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-V3JQ4IPL.js +186 -0
- package/dist/cli-bundle/chunks/chunk-V3JQ4IPL.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-VGO2T3TY.js +182 -0
- package/dist/cli-bundle/chunks/chunk-VGO2T3TY.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-LRBOHPUE.js → chunk-WIKR7KFL.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-BUPWJ3IJ.js → chunk-XG7RJYHV.js} +484 -49
- package/dist/cli-bundle/chunks/chunk-XG7RJYHV.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-AKOOMO3T.js → chunk-XX5LRINW.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WJ2NAC37.js → chunk-Y2AKE2HS.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-GN7IJPCD.js → chunk-ZQ4F6EC4.js} +301 -24
- package/dist/cli-bundle/chunks/chunk-ZQ4F6EC4.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-ZRVSMOMR.js +1809 -0
- package/dist/cli-bundle/chunks/chunk-ZRVSMOMR.js.map +1 -0
- package/dist/cli-bundle/chunks/{claim-EE4TKKCV.js → claim-AZLP7YFO.js} +10 -11
- package/dist/cli-bundle/chunks/{claim-EE4TKKCV.js.map → claim-AZLP7YFO.js.map} +1 -1
- package/dist/cli-bundle/chunks/claim-ZFA7HKU4.js +129 -0
- package/dist/cli-bundle/chunks/claim-ZFA7HKU4.js.map +1 -0
- package/dist/cli-bundle/chunks/close-65DFYAVS.js +17 -0
- package/dist/cli-bundle/chunks/close-65DFYAVS.js.map +1 -0
- package/dist/cli-bundle/chunks/close-RMHQ3KWH.js +13 -0
- package/dist/cli-bundle/chunks/close-many-AKPZNSGI.js +311 -0
- package/dist/cli-bundle/chunks/close-many-AKPZNSGI.js.map +1 -0
- package/dist/cli-bundle/chunks/close-many-UKZSQGM7.js +314 -0
- package/dist/cli-bundle/chunks/close-many-UKZSQGM7.js.map +7 -0
- package/dist/cli-bundle/chunks/{comments-AAKJQ6LW.js → comments-AGBNSJJH.js} +10 -11
- package/dist/cli-bundle/chunks/{comments-AAKJQ6LW.js.map → comments-AGBNSJJH.js.map} +1 -1
- package/dist/cli-bundle/chunks/comments-CJWXQI7X.js +100 -0
- package/dist/cli-bundle/chunks/comments-CJWXQI7X.js.map +1 -0
- package/dist/cli-bundle/chunks/{config-V3FZOKLI.js → config-5ON3ADRH.js} +121 -10
- package/dist/cli-bundle/chunks/config-5ON3ADRH.js.map +7 -0
- package/dist/cli-bundle/chunks/config-DDPYIA6J.js +1671 -0
- package/dist/cli-bundle/chunks/config-DDPYIA6J.js.map +1 -0
- package/dist/cli-bundle/chunks/{context-RZ5QPNJB.js → context-E6U3DWVM.js} +32 -19
- package/dist/cli-bundle/chunks/{context-RZ5QPNJB.js.map → context-E6U3DWVM.js.map} +2 -2
- package/dist/cli-bundle/chunks/context-ZOJEN5VT.js +1461 -0
- package/dist/cli-bundle/chunks/context-ZOJEN5VT.js.map +1 -0
- package/dist/cli-bundle/chunks/{contracts-YLMH33VU.js → contracts-CXSFM45B.js} +194 -162
- package/dist/cli-bundle/chunks/contracts-CXSFM45B.js.map +7 -0
- package/dist/cli-bundle/chunks/contracts-LCSX5R53.js +1274 -0
- package/dist/cli-bundle/chunks/contracts-LCSX5R53.js.map +1 -0
- package/dist/cli-bundle/chunks/create-ATONSAZW.js +27 -0
- package/dist/cli-bundle/chunks/create-WYFKN2U4.js +31 -0
- package/dist/cli-bundle/chunks/create-WYFKN2U4.js.map +1 -0
- package/dist/cli-bundle/chunks/{delete-RHCTEORS.js → delete-RONNH4F4.js} +7 -8
- package/dist/cli-bundle/chunks/{delete-RHCTEORS.js.map → delete-RONNH4F4.js.map} +1 -1
- package/dist/cli-bundle/chunks/delete-ZXWC56WO.js +55 -0
- package/dist/cli-bundle/chunks/delete-ZXWC56WO.js.map +1 -0
- package/dist/cli-bundle/chunks/deps-EHXIFOZR.js +225 -0
- package/dist/cli-bundle/chunks/deps-EHXIFOZR.js.map +1 -0
- package/dist/cli-bundle/chunks/{deps-MZYCMLAO.js → deps-WII3O4HB.js} +7 -8
- package/dist/cli-bundle/chunks/{deps-MZYCMLAO.js.map → deps-WII3O4HB.js.map} +1 -1
- package/dist/cli-bundle/chunks/{docs-FXXUCZYU.js → docs-JMVCFNHH.js} +9 -10
- package/dist/cli-bundle/chunks/{docs-FXXUCZYU.js.map → docs-JMVCFNHH.js.map} +1 -1
- package/dist/cli-bundle/chunks/docs-PDREIMLS.js +31 -0
- package/dist/cli-bundle/chunks/docs-PDREIMLS.js.map +1 -0
- package/dist/cli-bundle/chunks/extension-B4ROVWJD.js +28 -0
- package/dist/cli-bundle/chunks/extension-B4ROVWJD.js.map +1 -0
- package/dist/cli-bundle/chunks/{extension-B4WL7BQU.js → extension-G6UXSM5S.js} +4 -5
- package/dist/cli-bundle/chunks/files-2PN7UM2D.js +282 -0
- package/dist/cli-bundle/chunks/files-2PN7UM2D.js.map +1 -0
- package/dist/cli-bundle/chunks/{files-WVOX67PE.js → files-MXYS5W4M.js} +9 -10
- package/dist/cli-bundle/chunks/{files-WVOX67PE.js.map → files-MXYS5W4M.js.map} +1 -1
- package/dist/cli-bundle/chunks/gc-GT552UJH.js +178 -0
- package/dist/cli-bundle/chunks/gc-GT552UJH.js.map +1 -0
- package/dist/cli-bundle/chunks/{gc-JWNF66EC.js → gc-QNBRJG6H.js} +3 -3
- package/dist/cli-bundle/chunks/{get-LTK3HOCQ.js → get-CINFEUIY.js} +16 -17
- package/dist/cli-bundle/chunks/get-CINFEUIY.js.map +7 -0
- package/dist/cli-bundle/chunks/get-WXMLRG7M.js +194 -0
- package/dist/cli-bundle/chunks/get-WXMLRG7M.js.map +1 -0
- package/dist/cli-bundle/chunks/health-5VPOJQ53.js +1258 -0
- package/dist/cli-bundle/chunks/health-5VPOJQ53.js.map +1 -0
- package/dist/cli-bundle/chunks/{health-TCWL55KM.js → health-IT5DBPRJ.js} +43 -15
- package/dist/cli-bundle/chunks/health-IT5DBPRJ.js.map +7 -0
- package/dist/cli-bundle/chunks/history-6FC4H6HI.js +20 -0
- package/dist/cli-bundle/chunks/history-FLZIP7PM.js +24 -0
- package/dist/cli-bundle/chunks/history-FLZIP7PM.js.map +1 -0
- package/dist/cli-bundle/chunks/history-redact-SSZBAD76.js +23 -0
- package/dist/cli-bundle/chunks/history-redact-SSZBAD76.js.map +1 -0
- package/dist/cli-bundle/chunks/history-redact-XKYEZDBL.js +19 -0
- package/dist/cli-bundle/chunks/{history-repair-ZWSTDRH2.js → history-repair-KC5ZOJRZ.js} +12 -14
- package/dist/cli-bundle/chunks/{history-repair-ZWSTDRH2.js.map → history-repair-KC5ZOJRZ.js.map} +1 -1
- package/dist/cli-bundle/chunks/history-repair-X7CO5JJZ.js +193 -0
- package/dist/cli-bundle/chunks/history-repair-X7CO5JJZ.js.map +1 -0
- package/dist/cli-bundle/chunks/init-6MRFVOLH.js +20 -0
- package/dist/cli-bundle/chunks/init-6MRFVOLH.js.map +1 -0
- package/dist/cli-bundle/chunks/init-KHX3FEEM.js +16 -0
- package/dist/cli-bundle/chunks/{learnings-NXTWE3FR.js → learnings-A3CLB5CO.js} +10 -11
- package/dist/cli-bundle/chunks/{learnings-NXTWE3FR.js.map → learnings-A3CLB5CO.js.map} +1 -1
- package/dist/cli-bundle/chunks/learnings-DCX55BNX.js +44 -0
- package/dist/cli-bundle/chunks/learnings-DCX55BNX.js.map +1 -0
- package/dist/cli-bundle/chunks/list-53LZ2AEO.js +20 -0
- package/dist/cli-bundle/chunks/list-DBRECOG4.js +24 -0
- package/dist/cli-bundle/chunks/list-DBRECOG4.js.map +1 -0
- package/dist/cli-bundle/chunks/{notes-DFS5ZGOO.js → notes-42LIC3UE.js} +10 -11
- package/dist/cli-bundle/chunks/{notes-DFS5ZGOO.js.map → notes-42LIC3UE.js.map} +1 -1
- package/dist/cli-bundle/chunks/notes-P5O3VMQ3.js +44 -0
- package/dist/cli-bundle/chunks/notes-P5O3VMQ3.js.map +1 -0
- package/dist/cli-bundle/chunks/{plan-67AB2PLM.js → plan-HDQXEUKD.js} +13 -14
- package/dist/cli-bundle/chunks/{plan-67AB2PLM.js.map → plan-HDQXEUKD.js.map} +1 -1
- package/dist/cli-bundle/chunks/plan-IGTE3WOJ.js +1171 -0
- package/dist/cli-bundle/chunks/plan-IGTE3WOJ.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-list-query-UP3VRUFS.js → register-list-query-AG3XKXWL.js} +22 -24
- package/dist/cli-bundle/chunks/register-list-query-AG3XKXWL.js.map +7 -0
- package/dist/cli-bundle/chunks/register-list-query-EMNSIUO4.js +227 -0
- package/dist/cli-bundle/chunks/register-list-query-EMNSIUO4.js.map +1 -0
- package/dist/cli-bundle/chunks/register-mutation-M3YS6XDO.js +813 -0
- package/dist/cli-bundle/chunks/register-mutation-M3YS6XDO.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-mutation-YWSBF545.js → register-mutation-RSMT6DPK.js} +154 -43
- package/dist/cli-bundle/chunks/register-mutation-RSMT6DPK.js.map +7 -0
- package/dist/cli-bundle/chunks/register-operations-KYUOOOOD.js +370 -0
- package/dist/cli-bundle/chunks/register-operations-KYUOOOOD.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-operations-3BDTGSDH.js → register-operations-Q54JQZUN.js} +33 -34
- package/dist/cli-bundle/chunks/register-operations-Q54JQZUN.js.map +7 -0
- package/dist/cli-bundle/chunks/register-setup-DI6P7X75.js +242 -0
- package/dist/cli-bundle/chunks/register-setup-DI6P7X75.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-setup-V56GDRUS.js → register-setup-YJKIQRKA.js} +18 -19
- package/dist/cli-bundle/chunks/{register-setup-V56GDRUS.js.map → register-setup-YJKIQRKA.js.map} +2 -2
- package/dist/cli-bundle/chunks/restore-2XVTBLKQ.js +21 -0
- package/dist/cli-bundle/chunks/restore-2XVTBLKQ.js.map +1 -0
- package/dist/cli-bundle/chunks/restore-JL5QIH7H.js +17 -0
- package/dist/cli-bundle/chunks/schema-LVXZWFGY.js +770 -0
- package/dist/cli-bundle/chunks/schema-LVXZWFGY.js.map +1 -0
- package/dist/cli-bundle/chunks/schema-V6BX65Q2.js +780 -0
- package/dist/cli-bundle/chunks/schema-V6BX65Q2.js.map +7 -0
- package/dist/cli-bundle/chunks/{search-HENBL456.js → search-5A3BMFA7.js} +25 -16
- package/dist/cli-bundle/chunks/search-5A3BMFA7.js.map +7 -0
- package/dist/cli-bundle/chunks/search-C7NPB7G7.js +1127 -0
- package/dist/cli-bundle/chunks/search-C7NPB7G7.js.map +1 -0
- package/dist/cli-bundle/chunks/stats-FNLYVXTB.js +120 -0
- package/dist/cli-bundle/chunks/stats-FNLYVXTB.js.map +1 -0
- package/dist/cli-bundle/chunks/{stats-N6H3YP2F.js → stats-Y2CBTZSL.js} +7 -8
- package/dist/cli-bundle/chunks/{stats-N6H3YP2F.js.map → stats-Y2CBTZSL.js.map} +1 -1
- package/dist/cli-bundle/chunks/test-OFYONO3C.js +35 -0
- package/dist/cli-bundle/chunks/test-OFYONO3C.js.map +1 -0
- package/dist/cli-bundle/chunks/test-RJ4ZF35X.js +31 -0
- package/dist/cli-bundle/chunks/{test-all-G2AZOHXI.js → test-all-EEMKNTGU.js} +13 -14
- package/dist/cli-bundle/chunks/{test-all-G2AZOHXI.js.map → test-all-EEMKNTGU.js.map} +1 -1
- package/dist/cli-bundle/chunks/test-all-OJE6CIO7.js +328 -0
- package/dist/cli-bundle/chunks/test-all-OJE6CIO7.js.map +1 -0
- package/dist/cli-bundle/chunks/test-runs-IPOPFOAF.js +929 -0
- package/dist/cli-bundle/chunks/test-runs-IPOPFOAF.js.map +1 -0
- package/dist/cli-bundle/chunks/{test-runs-GX5HTPSF.js → test-runs-L2M7WKH7.js} +5 -5
- package/dist/cli-bundle/chunks/update-6YEHPVXH.js +25 -0
- package/dist/cli-bundle/chunks/update-6YEHPVXH.js.map +1 -0
- package/dist/cli-bundle/chunks/update-PYLVHMRD.js +21 -0
- package/dist/cli-bundle/chunks/{update-many-46HRSP2Q.js → update-many-322CCH2L.js} +78 -146
- package/dist/cli-bundle/chunks/update-many-322CCH2L.js.map +7 -0
- package/dist/cli-bundle/chunks/update-many-DYWGW57M.js +605 -0
- package/dist/cli-bundle/chunks/update-many-DYWGW57M.js.map +1 -0
- package/dist/cli-bundle/chunks/{upgrade-H5HHM5UV.js → upgrade-2U727SAM.js} +5 -7
- package/dist/cli-bundle/chunks/{upgrade-H5HHM5UV.js.map → upgrade-2U727SAM.js.map} +1 -1
- package/dist/cli-bundle/chunks/upgrade-3W3RVSNM.js +266 -0
- package/dist/cli-bundle/chunks/upgrade-3W3RVSNM.js.map +1 -0
- package/dist/cli-bundle/chunks/validate-GZ24NYHO.js +1120 -0
- package/dist/cli-bundle/chunks/validate-GZ24NYHO.js.map +1 -0
- package/dist/cli-bundle/chunks/{validate-TMCVKIGZ.js → validate-ZFVWPEEN.js} +61 -48
- package/dist/cli-bundle/chunks/validate-ZFVWPEEN.js.map +7 -0
- package/dist/cli-bundle/main.js +490 -52
- package/dist/cli-bundle/main.js.map +2 -2
- 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/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/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/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.js +40 -5
- 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 +4 -3
- package/dist/core/telemetry/observability.js.map +1 -1
- package/dist/mcp/server.js +221 -12
- 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 +4 -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 +35 -6
- package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
- package/dist/sdk/cli-contracts.d.ts +19 -1
- package/dist/sdk/cli-contracts.js +187 -15
- 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 +21 -2
- package/docs/COMMANDS.md +85 -5
- package/docs/CONFIGURATION.md +49 -2
- package/docs/EXTENSIONS.md +118 -6
- package/docs/QUICKSTART.md +2 -0
- package/docs/RELEASING.md +2 -2
- package/docs/SDK.md +273 -1
- package/docs/TESTING.md +17 -0
- 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 +12 -6
- 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/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-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/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/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-P5BUMWP3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-ADUOSFRO.js.map → aggregate-OOAGKWRG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-G57E5D7T.js.map → chunk-ATBVS6WW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KBQY3YG5.js.map → chunk-BNL6S7QH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NGN7UV5K.js.map → chunk-CJDQB2ED.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-D7AOMPRH.js.map → chunk-D3WUNETC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-L2FXEKDB.js.map → chunk-JB4RGL4V.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SEXQN4KL.js.map → chunk-K47WAYQV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CEFIVZPG.js.map → chunk-KA24HME7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-A7E7PUVX.js.map → chunk-LDJK7SHN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PVNQLCIS.js.map → chunk-RANZIID5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JFWUHHS2.js.map → chunk-S3CV7JGJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LRBOHPUE.js.map → chunk-WIKR7KFL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AKOOMO3T.js.map → chunk-XX5LRINW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WJ2NAC37.js.map → chunk-Y2AKE2HS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-XY4CSAYF.js.map → close-RMHQ3KWH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-PZVHRIZQ.js.map → create-ATONSAZW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-B4WL7BQU.js.map → extension-G6UXSM5S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-JWNF66EC.js.map → gc-QNBRJG6H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-A2JUDXUE.js.map → history-6FC4H6HI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-ED6RFCPL.js.map → history-redact-XKYEZDBL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-M2WUB4YH.js.map → init-KHX3FEEM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-OGWQPC26.js.map → list-53LZ2AEO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-MB2ISME7.js.map → restore-JL5QIH7H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-VNBDRJ4Z.js.map → test-RJ4ZF35X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-GX5HTPSF.js.map → test-runs-L2M7WKH7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-H6SCWNMA.js.map → update-PYLVHMRD.js.map} +0 -0
|
@@ -10,44 +10,45 @@ import {
|
|
|
10
10
|
parseLinkedTestMinLines,
|
|
11
11
|
parseLinkedTestRegexList,
|
|
12
12
|
parseLinkedTestStringList
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import {
|
|
15
|
-
buildInvalidTypeError
|
|
16
|
-
} from "./chunk-7Y53ZJIQ.js";
|
|
13
|
+
} from "./chunk-Y2AKE2HS.js";
|
|
17
14
|
import {
|
|
18
15
|
createStdinTokenResolver,
|
|
19
16
|
mergeAdditiveTags,
|
|
20
17
|
parseCsvKv,
|
|
21
18
|
parseOptionalNumber,
|
|
22
19
|
parseTags
|
|
23
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CJDQB2ED.js";
|
|
24
21
|
import {
|
|
25
22
|
normalizeParentReferenceValue,
|
|
26
23
|
validateMissingParentReference,
|
|
27
24
|
validateSprintOrReleaseValue
|
|
28
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XX5LRINW.js";
|
|
26
|
+
import {
|
|
27
|
+
buildInvalidTypeError
|
|
28
|
+
} from "./chunk-KK6YPGH3.js";
|
|
29
29
|
import {
|
|
30
30
|
printError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-HZOS2UG5.js";
|
|
32
32
|
import {
|
|
33
|
+
acquireLock,
|
|
33
34
|
appendHistoryEntry,
|
|
35
|
+
applyRegisteredItemFieldDefaultsAndValidation,
|
|
36
|
+
collectRegisteredItemFieldNames,
|
|
34
37
|
createHistoryEntry,
|
|
35
|
-
locateItem
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
acquireLock
|
|
39
|
-
} from "./chunk-4AEZR5EJ.js";
|
|
38
|
+
locateItem,
|
|
39
|
+
parseRegisteredItemFieldAssignments
|
|
40
|
+
} from "./chunk-XG7RJYHV.js";
|
|
40
41
|
import {
|
|
41
42
|
generateItemId,
|
|
42
43
|
normalizeItemId
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-KA24HME7.js";
|
|
44
45
|
import {
|
|
45
46
|
canonicalDocument,
|
|
46
47
|
collectRuntimeCreateFieldValues,
|
|
47
48
|
normalizeFrontMatter,
|
|
48
49
|
normalizeStatusInput,
|
|
49
50
|
serializeItemDocument
|
|
50
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-HPH6X4ZZ.js";
|
|
51
52
|
import {
|
|
52
53
|
canonicalizeCommandOptionKey,
|
|
53
54
|
commandOptionFlagLabel,
|
|
@@ -56,11 +57,11 @@ import {
|
|
|
56
57
|
resolveTypeDefinition,
|
|
57
58
|
resolveTypeName,
|
|
58
59
|
validateTypeOptions
|
|
59
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-4PJQSECJ.js";
|
|
60
61
|
import {
|
|
61
62
|
nowIso,
|
|
62
63
|
resolveIsoOrRelative
|
|
63
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-RANZIID5.js";
|
|
64
65
|
import {
|
|
65
66
|
CONFIDENCE_TEXT_VALUES,
|
|
66
67
|
DEPENDENCY_KIND_VALUES,
|
|
@@ -77,7 +78,9 @@ import {
|
|
|
77
78
|
getItemPath,
|
|
78
79
|
getSettingsPath,
|
|
79
80
|
pathExists,
|
|
81
|
+
projectAfterCommandItemSnapshot,
|
|
80
82
|
readSettings,
|
|
83
|
+
recordAfterCommandAffectedItem,
|
|
81
84
|
removeFileIfExists,
|
|
82
85
|
resolvePmRoot,
|
|
83
86
|
resolveRuntimeFieldRegistry,
|
|
@@ -86,7 +89,7 @@ import {
|
|
|
86
89
|
runActiveOnWriteHooks,
|
|
87
90
|
weekdayOrderIndex,
|
|
88
91
|
writeFileAtomic
|
|
89
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-SRVKTWPR.js";
|
|
90
93
|
|
|
91
94
|
// dist/core/item/priority.js
|
|
92
95
|
!(function() {
|
|
@@ -161,88 +164,6 @@ function resolveTypeSynonym(rawType) {
|
|
|
161
164
|
return TYPE_SYNONYMS[rawType.trim().toLowerCase()];
|
|
162
165
|
}
|
|
163
166
|
|
|
164
|
-
// dist/core/extensions/item-fields.js
|
|
165
|
-
!(function() {
|
|
166
|
-
try {
|
|
167
|
-
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
168
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ded4c408-642b-51bb-8f35-b66db506ce14");
|
|
169
|
-
} catch (e2) {
|
|
170
|
-
}
|
|
171
|
-
})();
|
|
172
|
-
function normalizeFieldName(value) {
|
|
173
|
-
if (typeof value !== "string") {
|
|
174
|
-
return null;
|
|
175
|
-
}
|
|
176
|
-
const normalized = value.trim();
|
|
177
|
-
return normalized.length > 0 ? normalized : null;
|
|
178
|
-
}
|
|
179
|
-
function normalizeFieldType(value) {
|
|
180
|
-
if (typeof value !== "string") {
|
|
181
|
-
return null;
|
|
182
|
-
}
|
|
183
|
-
const normalized = value.trim().toLowerCase();
|
|
184
|
-
if (normalized === "string" || normalized === "number" || normalized === "boolean" || normalized === "array" || normalized === "object") {
|
|
185
|
-
return normalized;
|
|
186
|
-
}
|
|
187
|
-
return null;
|
|
188
|
-
}
|
|
189
|
-
function cloneFieldValue(value) {
|
|
190
|
-
try {
|
|
191
|
-
return structuredClone(value);
|
|
192
|
-
} catch {
|
|
193
|
-
return value;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
function isValidFieldType(value, expectedType) {
|
|
197
|
-
if (expectedType === "string") {
|
|
198
|
-
return typeof value === "string";
|
|
199
|
-
}
|
|
200
|
-
if (expectedType === "number") {
|
|
201
|
-
return typeof value === "number" && Number.isFinite(value);
|
|
202
|
-
}
|
|
203
|
-
if (expectedType === "boolean") {
|
|
204
|
-
return typeof value === "boolean";
|
|
205
|
-
}
|
|
206
|
-
if (expectedType === "array") {
|
|
207
|
-
return Array.isArray(value);
|
|
208
|
-
}
|
|
209
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
210
|
-
}
|
|
211
|
-
function isAllowedFieldValue(value, allowed) {
|
|
212
|
-
if (!allowed || allowed.length === 0) {
|
|
213
|
-
return true;
|
|
214
|
-
}
|
|
215
|
-
return allowed.some((candidate) => Object.is(candidate, value));
|
|
216
|
-
}
|
|
217
|
-
function applyRegisteredItemFieldDefaultsAndValidation(frontMatter, registrations) {
|
|
218
|
-
if (!registrations) {
|
|
219
|
-
return;
|
|
220
|
-
}
|
|
221
|
-
for (const registration of registrations.item_fields) {
|
|
222
|
-
for (const definition of registration.fields) {
|
|
223
|
-
const fieldName = normalizeFieldName(definition.name);
|
|
224
|
-
if (!fieldName) {
|
|
225
|
-
continue;
|
|
226
|
-
}
|
|
227
|
-
if (!(fieldName in frontMatter) && Object.prototype.hasOwnProperty.call(definition, "default")) {
|
|
228
|
-
frontMatter[fieldName] = cloneFieldValue(definition.default);
|
|
229
|
-
}
|
|
230
|
-
const currentValue = frontMatter[fieldName];
|
|
231
|
-
if (currentValue === void 0) {
|
|
232
|
-
continue;
|
|
233
|
-
}
|
|
234
|
-
const expectedType = normalizeFieldType(definition.type);
|
|
235
|
-
if (expectedType && !isValidFieldType(currentValue, expectedType)) {
|
|
236
|
-
throw new TypeError(`Item field "${fieldName}" must be of type ${expectedType}`);
|
|
237
|
-
}
|
|
238
|
-
const allowedValues = Array.isArray(definition.values) ? definition.values : void 0;
|
|
239
|
-
if (!isAllowedFieldValue(currentValue, allowedValues)) {
|
|
240
|
-
throw new TypeError(`Item field "${fieldName}" must match one of the configured allowed values`);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
167
|
// dist/cli/commands/metadata-normalizers.js
|
|
247
168
|
!(function() {
|
|
248
169
|
try {
|
|
@@ -284,44 +205,6 @@ function parseRegressionInput(value) {
|
|
|
284
205
|
throw new PmCliError("Regression must be one of true|false|1|0", EXIT_CODE.USAGE);
|
|
285
206
|
}
|
|
286
207
|
|
|
287
|
-
// dist/cli/commands/event-validation-messages.js
|
|
288
|
-
!(function() {
|
|
289
|
-
try {
|
|
290
|
-
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
291
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d61c5566-4a50-5cd2-aafa-b52e99aa266a");
|
|
292
|
-
} catch (e2) {
|
|
293
|
-
}
|
|
294
|
-
})();
|
|
295
|
-
var EVENT_END_AFTER_START_MESSAGE = "--event end must be strictly after start. Equal start/end timestamps are treated as an instant event (end is dropped); an end earlier than start is rejected. Omit end for an instant event or set end later than start.";
|
|
296
|
-
var EVENT_END_DURATION_MUTUALLY_EXCLUSIVE_MESSAGE = "--event end and duration are mutually exclusive; provide only one (use duration=<relative> like duration=2h, or set an explicit end).";
|
|
297
|
-
function resolveEventEndAt(startAt, endRaw, durationRaw, referenceDate) {
|
|
298
|
-
if (endRaw && durationRaw) {
|
|
299
|
-
throw new PmCliError(EVENT_END_DURATION_MUTUALLY_EXCLUSIVE_MESSAGE, EXIT_CODE.USAGE);
|
|
300
|
-
}
|
|
301
|
-
if (durationRaw) {
|
|
302
|
-
const normalizedDuration = durationRaw.startsWith("+") ? durationRaw : `+${durationRaw}`;
|
|
303
|
-
const endAt2 = resolveIsoOrRelative(normalizedDuration, new Date(startAt), "event.duration");
|
|
304
|
-
if (endAt2 < startAt) {
|
|
305
|
-
throw new PmCliError(EVENT_END_AFTER_START_MESSAGE, EXIT_CODE.USAGE);
|
|
306
|
-
}
|
|
307
|
-
if (endAt2 === startAt) {
|
|
308
|
-
return void 0;
|
|
309
|
-
}
|
|
310
|
-
return endAt2;
|
|
311
|
-
}
|
|
312
|
-
if (!endRaw) {
|
|
313
|
-
return void 0;
|
|
314
|
-
}
|
|
315
|
-
const endAt = resolveIsoOrRelative(endRaw, referenceDate, "event.end");
|
|
316
|
-
if (endAt < startAt) {
|
|
317
|
-
throw new PmCliError(EVENT_END_AFTER_START_MESSAGE, EXIT_CODE.USAGE);
|
|
318
|
-
}
|
|
319
|
-
if (endAt === startAt) {
|
|
320
|
-
return void 0;
|
|
321
|
-
}
|
|
322
|
-
return endAt;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
208
|
// dist/cli/commands/legacy-none-tokens.js
|
|
326
209
|
!(function() {
|
|
327
210
|
try {
|
|
@@ -435,11 +318,162 @@ function parseRecurrenceRule(kv, startAt, nowValue, emptyNumericGuard) {
|
|
|
435
318
|
};
|
|
436
319
|
}
|
|
437
320
|
|
|
321
|
+
// dist/cli/commands/event-validation-messages.js
|
|
322
|
+
!(function() {
|
|
323
|
+
try {
|
|
324
|
+
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
325
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d61c5566-4a50-5cd2-aafa-b52e99aa266a");
|
|
326
|
+
} catch (e2) {
|
|
327
|
+
}
|
|
328
|
+
})();
|
|
329
|
+
var EVENT_END_AFTER_START_MESSAGE = "--event end must be strictly after start. Equal start/end timestamps are treated as an instant event (end is dropped); an end earlier than start is rejected. Omit end for an instant event or set end later than start.";
|
|
330
|
+
var EVENT_END_DURATION_MUTUALLY_EXCLUSIVE_MESSAGE = "--event end and duration are mutually exclusive; provide only one (use duration=<relative> like duration=2h, or set an explicit end).";
|
|
331
|
+
function resolveEventEndAt(startAt, endRaw, durationRaw, referenceDate) {
|
|
332
|
+
if (endRaw && durationRaw) {
|
|
333
|
+
throw new PmCliError(EVENT_END_DURATION_MUTUALLY_EXCLUSIVE_MESSAGE, EXIT_CODE.USAGE);
|
|
334
|
+
}
|
|
335
|
+
if (durationRaw) {
|
|
336
|
+
const normalizedDuration = durationRaw.startsWith("+") ? durationRaw : `+${durationRaw}`;
|
|
337
|
+
const endAt2 = resolveIsoOrRelative(normalizedDuration, new Date(startAt), "event.duration");
|
|
338
|
+
if (endAt2 < startAt) {
|
|
339
|
+
throw new PmCliError(EVENT_END_AFTER_START_MESSAGE, EXIT_CODE.USAGE);
|
|
340
|
+
}
|
|
341
|
+
if (endAt2 === startAt) {
|
|
342
|
+
return void 0;
|
|
343
|
+
}
|
|
344
|
+
return endAt2;
|
|
345
|
+
}
|
|
346
|
+
if (!endRaw) {
|
|
347
|
+
return void 0;
|
|
348
|
+
}
|
|
349
|
+
const endAt = resolveIsoOrRelative(endRaw, referenceDate, "event.end");
|
|
350
|
+
if (endAt < startAt) {
|
|
351
|
+
throw new PmCliError(EVENT_END_AFTER_START_MESSAGE, EXIT_CODE.USAGE);
|
|
352
|
+
}
|
|
353
|
+
if (endAt === startAt) {
|
|
354
|
+
return void 0;
|
|
355
|
+
}
|
|
356
|
+
return endAt;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
// dist/cli/commands/repeatable-metadata-parsers.js
|
|
360
|
+
!(function() {
|
|
361
|
+
try {
|
|
362
|
+
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
363
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1f8d48a8-041d-5a4c-9dd2-a175d9be03ea");
|
|
364
|
+
} catch (e2) {
|
|
365
|
+
}
|
|
366
|
+
})();
|
|
367
|
+
function optionalString(value, mode) {
|
|
368
|
+
return mode === "trimmed" ? value?.trim() : value;
|
|
369
|
+
}
|
|
370
|
+
function isProvided(value, guard) {
|
|
371
|
+
return guard === "defined" ? value !== void 0 : Boolean(value);
|
|
372
|
+
}
|
|
373
|
+
function parseReminderEntries(raw, nowValue, options) {
|
|
374
|
+
return raw.map((entry) => {
|
|
375
|
+
const kv = parseCsvKv(entry, "--reminder");
|
|
376
|
+
const atRaw = optionalString(kv.at ?? kv.date, options.valueMode);
|
|
377
|
+
const textRaw = optionalString(kv.text ?? kv.title, options.valueMode);
|
|
378
|
+
if (!atRaw || !textRaw) {
|
|
379
|
+
throw new PmCliError("--reminder requires at=<iso|relative> or date=<iso|relative>, plus text=<value> or title=<value>", EXIT_CODE.USAGE);
|
|
380
|
+
}
|
|
381
|
+
const text = textRaw.trim();
|
|
382
|
+
if (!text) {
|
|
383
|
+
throw new PmCliError("--reminder text must not be empty", EXIT_CODE.USAGE);
|
|
384
|
+
}
|
|
385
|
+
return {
|
|
386
|
+
at: resolveIsoOrRelative(atRaw, nowValue, "reminder.at"),
|
|
387
|
+
text
|
|
388
|
+
};
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
function parseEventEntries(raw, nowValue, options) {
|
|
392
|
+
return raw.map((entry) => {
|
|
393
|
+
const kv = parseCsvKv(entry, "--event");
|
|
394
|
+
const startRaw = (kv.start ?? kv.date)?.trim();
|
|
395
|
+
if (!startRaw) {
|
|
396
|
+
throw new PmCliError("--event requires start=<iso|relative> or date=<iso|relative>", EXIT_CODE.USAGE);
|
|
397
|
+
}
|
|
398
|
+
const startAt = resolveIsoOrRelative(startRaw, nowValue, "event.start");
|
|
399
|
+
const endRaw = kv.end?.trim();
|
|
400
|
+
const durationRaw = kv.duration?.trim();
|
|
401
|
+
const endAt = resolveEventEndAt(startAt, endRaw, durationRaw, nowValue);
|
|
402
|
+
const titleRaw = kv.title;
|
|
403
|
+
const descriptionRaw = kv.description;
|
|
404
|
+
const locationRaw = kv.location;
|
|
405
|
+
const timezoneRaw = kv.timezone;
|
|
406
|
+
const title = titleRaw?.trim();
|
|
407
|
+
const description = descriptionRaw?.trim();
|
|
408
|
+
const location = locationRaw?.trim();
|
|
409
|
+
const timezone = timezoneRaw?.trim();
|
|
410
|
+
if (titleRaw !== void 0 && !title) {
|
|
411
|
+
throw new PmCliError("--event title must not be empty", EXIT_CODE.USAGE);
|
|
412
|
+
}
|
|
413
|
+
if (descriptionRaw !== void 0 && !description) {
|
|
414
|
+
throw new PmCliError("--event description must not be empty", EXIT_CODE.USAGE);
|
|
415
|
+
}
|
|
416
|
+
if (locationRaw !== void 0 && !location) {
|
|
417
|
+
throw new PmCliError("--event location must not be empty", EXIT_CODE.USAGE);
|
|
418
|
+
}
|
|
419
|
+
if (timezoneRaw !== void 0 && !timezone) {
|
|
420
|
+
throw new PmCliError("--event timezone must not be empty", EXIT_CODE.USAGE);
|
|
421
|
+
}
|
|
422
|
+
const allDayRaw = kv.all_day?.trim();
|
|
423
|
+
const recurrence = parseRecurrenceRule(kv, startAt, nowValue, options.recurrenceEmptyNumericGuard);
|
|
424
|
+
const allDay = isProvided(allDayRaw, options.allDayEmptyGuard) ? parseEventBoolean(allDayRaw, "--event all_day") : void 0;
|
|
425
|
+
return {
|
|
426
|
+
start_at: startAt,
|
|
427
|
+
end_at: endAt,
|
|
428
|
+
title,
|
|
429
|
+
description,
|
|
430
|
+
location,
|
|
431
|
+
all_day: allDay,
|
|
432
|
+
timezone,
|
|
433
|
+
recurrence
|
|
434
|
+
};
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
function parseTypeOptionEntries(raw) {
|
|
438
|
+
const values = {};
|
|
439
|
+
for (const entry of raw) {
|
|
440
|
+
const trimmedEntry = entry.trim();
|
|
441
|
+
if (trimmedEntry.length === 0) {
|
|
442
|
+
throw new PmCliError("--type-option values must not be empty", EXIT_CODE.USAGE);
|
|
443
|
+
}
|
|
444
|
+
let key;
|
|
445
|
+
let value;
|
|
446
|
+
const prefersStructuredKv = trimmedEntry.includes(",") || trimmedEntry.includes("\n") || trimmedEntry.startsWith("```") || /^(?:[-*+]\s+)?(?:key|value)\s*[:=]/i.test(trimmedEntry);
|
|
447
|
+
if (prefersStructuredKv) {
|
|
448
|
+
const kv = parseCsvKv(trimmedEntry, "--type-option");
|
|
449
|
+
key = kv.key?.trim();
|
|
450
|
+
value = kv.value?.trim();
|
|
451
|
+
} else {
|
|
452
|
+
const equalsIndex = trimmedEntry.indexOf("=");
|
|
453
|
+
const colonIndex = trimmedEntry.indexOf(":");
|
|
454
|
+
let separatorIndex = equalsIndex;
|
|
455
|
+
if (equalsIndex <= 0 && colonIndex > 0) {
|
|
456
|
+
separatorIndex = colonIndex;
|
|
457
|
+
}
|
|
458
|
+
if (separatorIndex <= 0 || separatorIndex === trimmedEntry.length - 1) {
|
|
459
|
+
throw new PmCliError("--type-option requires key=value or key=<name>,value=<value> entries", EXIT_CODE.USAGE);
|
|
460
|
+
}
|
|
461
|
+
key = trimmedEntry.slice(0, separatorIndex).trim();
|
|
462
|
+
value = trimmedEntry.slice(separatorIndex + 1).trim();
|
|
463
|
+
}
|
|
464
|
+
if (!key || !value) {
|
|
465
|
+
throw new PmCliError("--type-option requires key and value", EXIT_CODE.USAGE);
|
|
466
|
+
}
|
|
467
|
+
values[key] = value;
|
|
468
|
+
}
|
|
469
|
+
return Object.fromEntries(Object.entries(values).sort((left, right) => left[0].localeCompare(right[0])));
|
|
470
|
+
}
|
|
471
|
+
|
|
438
472
|
// dist/cli/commands/create.js
|
|
439
473
|
!(function() {
|
|
440
474
|
try {
|
|
441
475
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
442
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
476
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6d06ae5b-933c-54ca-90c4-998090c1fcb3");
|
|
443
477
|
} catch (e2) {
|
|
444
478
|
}
|
|
445
479
|
})();
|
|
@@ -711,9 +745,9 @@ function parseDependencies(raw, nowValue, prefix) {
|
|
|
711
745
|
assertNoLegacyNoneTokens(raw, "--dep", "Use --clear-deps to clear dependencies.");
|
|
712
746
|
const values = raw.map((entry) => {
|
|
713
747
|
const trimmedEntry = entry.trim();
|
|
714
|
-
const kv = looksLikeStructuredEntry(trimmedEntry, ["id", "kind", "author", "created_at"]) ? parseCsvKv(entry, "--dep") : { id: trimmedEntry, kind: "related" };
|
|
748
|
+
const kv = looksLikeStructuredEntry(trimmedEntry, ["id", "kind", "type", "author", "created_at"]) ? parseCsvKv(entry, "--dep") : { id: trimmedEntry, kind: "related" };
|
|
715
749
|
const id = parseOptionalString(kv.id);
|
|
716
|
-
const kind = parseOptionalString(kv.kind);
|
|
750
|
+
const kind = normalizeDependencyKindInput(parseOptionalString(kv.kind ?? kv.type));
|
|
717
751
|
if (!id || !kind) {
|
|
718
752
|
throw new PmCliError("--dep requires id and kind, or a bare item id to create a related dependency", EXIT_CODE.USAGE);
|
|
719
753
|
}
|
|
@@ -729,6 +763,18 @@ function parseDependencies(raw, nowValue, prefix) {
|
|
|
729
763
|
});
|
|
730
764
|
return { values, explicitEmpty: false };
|
|
731
765
|
}
|
|
766
|
+
var DEPENDENCY_KIND_INPUT_ALIASES = {
|
|
767
|
+
"blocked-by": "blocked_by",
|
|
768
|
+
depends_on: "blocked_by",
|
|
769
|
+
"depends-on": "blocked_by"
|
|
770
|
+
};
|
|
771
|
+
function normalizeDependencyKindInput(raw) {
|
|
772
|
+
if (typeof raw !== "string") {
|
|
773
|
+
return raw;
|
|
774
|
+
}
|
|
775
|
+
const alias = DEPENDENCY_KIND_INPUT_ALIASES[raw.toLowerCase()];
|
|
776
|
+
return alias ?? raw;
|
|
777
|
+
}
|
|
732
778
|
function looksLikeStructuredEntry(raw, keys) {
|
|
733
779
|
if (raw.startsWith("```") || raw.includes("\n")) {
|
|
734
780
|
return true;
|
|
@@ -861,77 +907,27 @@ function parseReminders(raw, nowValue) {
|
|
|
861
907
|
if (!raw || raw.length === 0)
|
|
862
908
|
return { values: void 0, explicitEmpty: false };
|
|
863
909
|
assertNoLegacyNoneTokens(raw, "--reminder", "Use --clear-reminders to clear reminders.");
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
if (!atRaw || !textRaw) {
|
|
869
|
-
throw new PmCliError("--reminder requires at=<iso|relative> or date=<iso|relative>, plus text=<value> or title=<value>", EXIT_CODE.USAGE);
|
|
870
|
-
}
|
|
871
|
-
const text = textRaw.trim();
|
|
872
|
-
if (!text) {
|
|
873
|
-
throw new PmCliError("--reminder text must not be empty", EXIT_CODE.USAGE);
|
|
874
|
-
}
|
|
875
|
-
return {
|
|
876
|
-
at: resolveIsoOrRelative(atRaw, new Date(nowValue), "reminder.at"),
|
|
877
|
-
text
|
|
878
|
-
};
|
|
879
|
-
});
|
|
880
|
-
return { values, explicitEmpty: false };
|
|
910
|
+
return {
|
|
911
|
+
values: parseReminderEntries(raw, new Date(nowValue), { valueMode: "raw" }),
|
|
912
|
+
explicitEmpty: false
|
|
913
|
+
};
|
|
881
914
|
}
|
|
882
915
|
function parseEvents(raw, nowValue) {
|
|
883
916
|
if (!raw || raw.length === 0)
|
|
884
917
|
return { values: void 0, explicitEmpty: false };
|
|
885
918
|
assertNoLegacyNoneTokens(raw, "--event", "Use --clear-events to clear linked events.");
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
const startAt = resolveIsoOrRelative(startRaw, referenceDate, "event.start");
|
|
894
|
-
const endRaw = parseOptionalString(kv.end)?.trim();
|
|
895
|
-
const durationRaw = parseOptionalString(kv.duration)?.trim();
|
|
896
|
-
const endAt = resolveEventEndAt(startAt, endRaw, durationRaw, referenceDate);
|
|
897
|
-
const titleRaw = parseOptionalString(kv.title);
|
|
898
|
-
const descriptionRaw = parseOptionalString(kv.description);
|
|
899
|
-
const locationRaw = parseOptionalString(kv.location);
|
|
900
|
-
const timezoneRaw = parseOptionalString(kv.timezone);
|
|
901
|
-
const title = titleRaw?.trim();
|
|
902
|
-
const description = descriptionRaw?.trim();
|
|
903
|
-
const location = locationRaw?.trim();
|
|
904
|
-
const timezone = timezoneRaw?.trim();
|
|
905
|
-
if (titleRaw !== void 0 && !title) {
|
|
906
|
-
throw new PmCliError("--event title must not be empty", EXIT_CODE.USAGE);
|
|
907
|
-
}
|
|
908
|
-
if (descriptionRaw !== void 0 && !description) {
|
|
909
|
-
throw new PmCliError("--event description must not be empty", EXIT_CODE.USAGE);
|
|
910
|
-
}
|
|
911
|
-
if (locationRaw !== void 0 && !location) {
|
|
912
|
-
throw new PmCliError("--event location must not be empty", EXIT_CODE.USAGE);
|
|
913
|
-
}
|
|
914
|
-
if (timezoneRaw !== void 0 && !timezone) {
|
|
915
|
-
throw new PmCliError("--event timezone must not be empty", EXIT_CODE.USAGE);
|
|
916
|
-
}
|
|
917
|
-
const allDayRaw = parseOptionalString(kv.all_day)?.trim();
|
|
918
|
-
const recurrence = parseRecurrenceRule(kv, startAt, referenceDate, "defined");
|
|
919
|
-
return {
|
|
920
|
-
start_at: startAt,
|
|
921
|
-
end_at: endAt,
|
|
922
|
-
title,
|
|
923
|
-
description,
|
|
924
|
-
location,
|
|
925
|
-
all_day: allDayRaw !== void 0 ? parseEventBoolean(allDayRaw, "--event all_day") : void 0,
|
|
926
|
-
timezone,
|
|
927
|
-
recurrence
|
|
928
|
-
};
|
|
929
|
-
});
|
|
930
|
-
return { values, explicitEmpty: false };
|
|
919
|
+
return {
|
|
920
|
+
values: parseEventEntries(raw, new Date(nowValue), {
|
|
921
|
+
allDayEmptyGuard: "defined",
|
|
922
|
+
recurrenceEmptyNumericGuard: "defined"
|
|
923
|
+
}),
|
|
924
|
+
explicitEmpty: false
|
|
925
|
+
};
|
|
931
926
|
}
|
|
932
|
-
function buildChangedFields(frontMatter, body, explicitUnsets) {
|
|
927
|
+
function buildChangedFields(frontMatter, body, explicitUnsets, additionalFrontMatterKeys = []) {
|
|
933
928
|
const changed = [
|
|
934
929
|
...FRONT_MATTER_KEY_ORDER.filter((key) => frontMatter[key] !== void 0),
|
|
930
|
+
...additionalFrontMatterKeys.filter((key) => frontMatter[key] !== void 0),
|
|
935
931
|
...body.length > 0 ? ["body"] : [],
|
|
936
932
|
...explicitUnsets.map((key) => `unset:${key}`)
|
|
937
933
|
];
|
|
@@ -957,40 +953,8 @@ function parseTypeOptions(raw) {
|
|
|
957
953
|
return { values: void 0, explicitEmpty: false };
|
|
958
954
|
}
|
|
959
955
|
assertNoLegacyNoneTokens(raw, "--type-option", "Use --clear-type-options to clear existing type options.");
|
|
960
|
-
const values = {};
|
|
961
|
-
for (const entry of raw) {
|
|
962
|
-
const trimmedEntry = entry.trim();
|
|
963
|
-
if (trimmedEntry.length === 0) {
|
|
964
|
-
throw new PmCliError("--type-option values must not be empty", EXIT_CODE.USAGE);
|
|
965
|
-
}
|
|
966
|
-
let key;
|
|
967
|
-
let value;
|
|
968
|
-
const prefersStructuredKv = trimmedEntry.includes(",") || trimmedEntry.includes("\n") || trimmedEntry.startsWith("```") || /^(?:[-*+]\s+)?(?:key|value)\s*[:=]/i.test(trimmedEntry);
|
|
969
|
-
if (prefersStructuredKv) {
|
|
970
|
-
const kv = parseCsvKv(trimmedEntry, "--type-option");
|
|
971
|
-
key = parseOptionalString(kv.key)?.trim();
|
|
972
|
-
value = parseOptionalString(kv.value)?.trim();
|
|
973
|
-
} else {
|
|
974
|
-
const equalsIndex = trimmedEntry.indexOf("=");
|
|
975
|
-
const colonIndex = trimmedEntry.indexOf(":");
|
|
976
|
-
let separatorIndex = equalsIndex;
|
|
977
|
-
if (equalsIndex <= 0 && colonIndex > 0) {
|
|
978
|
-
separatorIndex = colonIndex;
|
|
979
|
-
}
|
|
980
|
-
if (separatorIndex <= 0 || separatorIndex === trimmedEntry.length - 1) {
|
|
981
|
-
throw new PmCliError("--type-option requires key=value or key=<name>,value=<value> entries", EXIT_CODE.USAGE);
|
|
982
|
-
}
|
|
983
|
-
key = trimmedEntry.slice(0, separatorIndex).trim();
|
|
984
|
-
value = trimmedEntry.slice(separatorIndex + 1).trim();
|
|
985
|
-
}
|
|
986
|
-
if (!key || !value) {
|
|
987
|
-
throw new PmCliError("--type-option requires key and value", EXIT_CODE.USAGE);
|
|
988
|
-
}
|
|
989
|
-
values[key] = value;
|
|
990
|
-
}
|
|
991
|
-
const sortedEntries = Object.entries(values).sort((left, right) => left[0].localeCompare(right[0]));
|
|
992
956
|
return {
|
|
993
|
-
values:
|
|
957
|
+
values: parseTypeOptionEntries(raw),
|
|
994
958
|
explicitEmpty: false
|
|
995
959
|
};
|
|
996
960
|
}
|
|
@@ -1008,7 +972,8 @@ async function resolveCreateStdinInputs(options) {
|
|
|
1008
972
|
doc: await stdinResolver.resolveList(options.doc, "--doc"),
|
|
1009
973
|
reminder: await stdinResolver.resolveList(options.reminder, "--reminder"),
|
|
1010
974
|
event: await stdinResolver.resolveList(options.event, "--event"),
|
|
1011
|
-
typeOption: await stdinResolver.resolveList(options.typeOption, "--type-option")
|
|
975
|
+
typeOption: await stdinResolver.resolveList(options.typeOption, "--type-option"),
|
|
976
|
+
field: await stdinResolver.resolveList(options.field, "--field")
|
|
1012
977
|
};
|
|
1013
978
|
}
|
|
1014
979
|
function resolveCreateMode(createMode, defaultMode) {
|
|
@@ -1104,7 +1069,8 @@ function requireCreateOptionByType(typeDefinition, options, createMode, clearOpt
|
|
|
1104
1069
|
doc: options.doc,
|
|
1105
1070
|
reminder: options.reminder,
|
|
1106
1071
|
event: options.event,
|
|
1107
|
-
typeOption: options.typeOption
|
|
1072
|
+
typeOption: options.typeOption,
|
|
1073
|
+
field: options.field
|
|
1108
1074
|
};
|
|
1109
1075
|
const hasOptionValue = (optionKey) => {
|
|
1110
1076
|
if (optionKey === "tags") {
|
|
@@ -1565,8 +1531,17 @@ async function runCreate(options, global2) {
|
|
|
1565
1531
|
const events = parseEvents(resolvedOptions.event, nowValue);
|
|
1566
1532
|
const typeOptions = parseTypeOptions(resolvedOptions.typeOption);
|
|
1567
1533
|
const validatedTypeOptions = validateTypeOptions(type, typeOptions.values, typeRegistry);
|
|
1534
|
+
const extensionRegistrations = getActiveExtensionRegistrations();
|
|
1535
|
+
const extensionFieldNames = collectRegisteredItemFieldNames(extensionRegistrations);
|
|
1536
|
+
const registeredItemFieldValues = parseRegisteredItemFieldAssignments(resolvedOptions.field, extensionRegistrations);
|
|
1537
|
+
for (const fieldKey of Object.keys(registeredItemFieldValues)) {
|
|
1538
|
+
if (!unsetTargets.frontMatterKeys.has(fieldKey)) {
|
|
1539
|
+
continue;
|
|
1540
|
+
}
|
|
1541
|
+
throw new PmCliError(`Cannot combine --unset ${fieldKey.replaceAll("_", "-")} with --field ${fieldKey}=...`, EXIT_CODE.USAGE);
|
|
1542
|
+
}
|
|
1568
1543
|
const runtimeCreateFieldValues = collectRuntimeCreateFieldValues(resolvedOptions, runtimeFieldRegistry, type);
|
|
1569
|
-
for (const fieldKey of Object.keys(runtimeCreateFieldValues.values)) {
|
|
1544
|
+
for (const fieldKey of Object.keys(runtimeCreateFieldValues.values ?? {})) {
|
|
1570
1545
|
if (!unsetTargets.frontMatterKeys.has(fieldKey)) {
|
|
1571
1546
|
continue;
|
|
1572
1547
|
}
|
|
@@ -1774,17 +1749,18 @@ async function runCreate(options, global2) {
|
|
|
1774
1749
|
docs: docs.values,
|
|
1775
1750
|
reminders: reminders.values,
|
|
1776
1751
|
events: events.values,
|
|
1777
|
-
...
|
|
1752
|
+
...registeredItemFieldValues,
|
|
1753
|
+
...runtimeCreateFieldValues.values ?? {}
|
|
1778
1754
|
});
|
|
1779
1755
|
try {
|
|
1780
|
-
applyRegisteredItemFieldDefaultsAndValidation(frontMatter,
|
|
1756
|
+
applyRegisteredItemFieldDefaultsAndValidation(frontMatter, extensionRegistrations);
|
|
1781
1757
|
} catch (error) {
|
|
1782
1758
|
throw new PmCliError(error instanceof Error ? error.message : "Invalid extension item field values", EXIT_CODE.USAGE);
|
|
1783
1759
|
}
|
|
1784
1760
|
const afterDocument = canonicalDocument({
|
|
1785
1761
|
metadata: frontMatter,
|
|
1786
1762
|
body
|
|
1787
|
-
}, { schema: settings.schema });
|
|
1763
|
+
}, { schema: settings.schema, extensionFieldNames });
|
|
1788
1764
|
const beforeDocument = {
|
|
1789
1765
|
metadata: {},
|
|
1790
1766
|
body: ""
|
|
@@ -1794,9 +1770,17 @@ async function runCreate(options, global2) {
|
|
|
1794
1770
|
const lockRelease = await acquireLock(pmRoot, id, settings.locks.ttl_seconds, author, false, settings.governance.force_required_for_stale_lock);
|
|
1795
1771
|
const explicitUnsetKeys = [...explicitUnsets].sort((left, right) => left.localeCompare(right));
|
|
1796
1772
|
const historyMessage = buildHistoryMessage(resolvedOptions.message, explicitUnsetKeys);
|
|
1773
|
+
const changedFields = buildChangedFields(frontMatter, body, explicitUnsetKeys, [
|
|
1774
|
+
...Object.keys(registeredItemFieldValues),
|
|
1775
|
+
...Object.keys(runtimeCreateFieldValues.values ?? {})
|
|
1776
|
+
]);
|
|
1797
1777
|
let hookWarnings = [];
|
|
1798
1778
|
try {
|
|
1799
|
-
await writeFileAtomic(itemPath, serializeItemDocument(afterDocument, {
|
|
1779
|
+
await writeFileAtomic(itemPath, serializeItemDocument(afterDocument, {
|
|
1780
|
+
format: settings.item_format,
|
|
1781
|
+
schema: settings.schema,
|
|
1782
|
+
extensionFieldNames
|
|
1783
|
+
}));
|
|
1800
1784
|
try {
|
|
1801
1785
|
const entry = createHistoryEntry({
|
|
1802
1786
|
nowIso: nowValue,
|
|
@@ -1815,18 +1799,35 @@ async function runCreate(options, global2) {
|
|
|
1815
1799
|
...await runActiveOnWriteHooks({
|
|
1816
1800
|
path: itemPath,
|
|
1817
1801
|
scope: "project",
|
|
1818
|
-
op: "create"
|
|
1802
|
+
op: "create",
|
|
1803
|
+
item_id: afterDocument.metadata.id,
|
|
1804
|
+
item_type: afterDocument.metadata.type,
|
|
1805
|
+
before: beforeDocument,
|
|
1806
|
+
after: afterDocument,
|
|
1807
|
+
changed_fields: changedFields
|
|
1819
1808
|
}),
|
|
1820
1809
|
...await runActiveOnWriteHooks({
|
|
1821
1810
|
path: historyPath,
|
|
1822
1811
|
scope: "project",
|
|
1823
|
-
op: "create:history"
|
|
1812
|
+
op: "create:history",
|
|
1813
|
+
item_id: afterDocument.metadata.id,
|
|
1814
|
+
item_type: afterDocument.metadata.type,
|
|
1815
|
+
before: beforeDocument,
|
|
1816
|
+
after: afterDocument,
|
|
1817
|
+
changed_fields: changedFields
|
|
1824
1818
|
})
|
|
1825
1819
|
];
|
|
1820
|
+
recordAfterCommandAffectedItem({
|
|
1821
|
+
id: afterDocument.metadata.id,
|
|
1822
|
+
op: "create",
|
|
1823
|
+
item_type: afterDocument.metadata.type,
|
|
1824
|
+
status: afterDocument.metadata.status,
|
|
1825
|
+
current: projectAfterCommandItemSnapshot(afterDocument.metadata, changedFields),
|
|
1826
|
+
changed_fields: changedFields
|
|
1827
|
+
});
|
|
1826
1828
|
} finally {
|
|
1827
1829
|
await lockRelease();
|
|
1828
1830
|
}
|
|
1829
|
-
const changedFields = buildChangedFields(frontMatter, body, explicitUnsetKeys);
|
|
1830
1831
|
const outputItem = structuredClone(frontMatter);
|
|
1831
1832
|
if (calendarRelevantTypes.has(type.toLowerCase()) && !hasDeadline && !hasReminders && !hasEvents) {
|
|
1832
1833
|
printError(`[pm] warning: ${type} '${id}' has no deadline/reminder/event \u2014 it will not appear on the calendar. Add one via 'pm update ${id} --deadline <ISO>' or 'pm update ${id} --event "start=<ISO>,end=<ISO>"'.`);
|
|
@@ -1840,22 +1841,21 @@ async function runCreate(options, global2) {
|
|
|
1840
1841
|
|
|
1841
1842
|
export {
|
|
1842
1843
|
resolvePriority,
|
|
1843
|
-
applyRegisteredItemFieldDefaultsAndValidation,
|
|
1844
1844
|
normalizeRiskInput,
|
|
1845
1845
|
normalizeSeverityInput,
|
|
1846
1846
|
parseConfidenceInput,
|
|
1847
1847
|
parseRegressionInput,
|
|
1848
|
-
resolveEventEndAt,
|
|
1849
1848
|
isLegacyNoneToken,
|
|
1850
1849
|
assertNoLegacyNoneToken,
|
|
1851
1850
|
assertNoLegacyNoneTokens,
|
|
1852
|
-
parseEventBoolean,
|
|
1853
1851
|
ensureEnumValue,
|
|
1854
|
-
|
|
1852
|
+
parseReminderEntries,
|
|
1853
|
+
parseEventEntries,
|
|
1854
|
+
parseTypeOptionEntries,
|
|
1855
1855
|
parseLogSeed,
|
|
1856
1856
|
parseFiles,
|
|
1857
1857
|
parseTests,
|
|
1858
1858
|
parseDocs,
|
|
1859
1859
|
runCreate
|
|
1860
1860
|
};
|
|
1861
|
-
//# sourceMappingURL=chunk-
|
|
1861
|
+
//# sourceMappingURL=chunk-OUF3ARDX.js.map
|