@unbrained/pm-cli 2026.7.3 → 2026.7.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 +36 -0
- package/CONTRIBUTING.md +36 -7
- package/README.md +1 -9
- package/dist/cli/commands/calendar.d.ts +3 -2
- package/dist/cli/commands/calendar.js +5 -5
- package/dist/cli/commands/calendar.js.map +1 -1
- package/dist/cli/commands/claim.js +17 -3
- package/dist/cli/commands/claim.js.map +1 -1
- package/dist/cli/commands/close.js +34 -16
- package/dist/cli/commands/close.js.map +1 -1
- package/dist/cli/commands/completion.js +231 -345
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/copy.js +3 -3
- package/dist/cli/commands/copy.js.map +1 -1
- package/dist/cli/commands/create.d.ts +9 -59
- package/dist/cli/commands/create.js +162 -132
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/extension/bundled-catalog.d.ts +6 -0
- package/dist/cli/commands/extension/bundled-catalog.js +15 -2
- package/dist/cli/commands/extension/bundled-catalog.js.map +1 -1
- package/dist/cli/commands/extension/describe.d.ts +6 -3
- package/dist/cli/commands/extension/describe.js +21 -9
- package/dist/cli/commands/extension/describe.js.map +1 -1
- package/dist/cli/commands/extension/doctor.d.ts +0 -4
- package/dist/cli/commands/extension/doctor.js +3 -3
- package/dist/cli/commands/extension/doctor.js.map +1 -1
- package/dist/cli/commands/extension/scaffold.js +59 -133
- package/dist/cli/commands/extension/scaffold.js.map +1 -1
- package/dist/cli/commands/extension/shared.d.ts +2 -7
- package/dist/cli/commands/extension/shared.js +4 -10
- package/dist/cli/commands/extension/shared.js.map +1 -1
- package/dist/cli/commands/extension.js +33 -8
- package/dist/cli/commands/extension.js.map +1 -1
- package/dist/cli/commands/files.js +3 -3
- package/dist/cli/commands/files.js.map +1 -1
- package/dist/cli/commands/history-compact.js +9 -18
- package/dist/cli/commands/history-compact.js.map +1 -1
- package/dist/cli/commands/history-repair.js +9 -19
- package/dist/cli/commands/history-repair.js.map +1 -1
- package/dist/cli/commands/init-agent-guidance.js +133 -97
- package/dist/cli/commands/init-agent-guidance.js.map +1 -1
- package/dist/cli/commands/init.js +3 -3
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/item-filter-options.d.ts +2 -0
- package/dist/cli/commands/item-filter-options.js +2 -2
- package/dist/cli/commands/item-filter-options.js.map +1 -1
- package/dist/cli/commands/mutation-command-options.d.ts +78 -0
- package/dist/cli/commands/mutation-command-options.js +10 -0
- package/dist/cli/commands/mutation-command-options.js.map +1 -0
- package/dist/cli/commands/profile.js +3 -3
- package/dist/cli/commands/profile.js.map +1 -1
- package/dist/cli/commands/reindex.js +4 -4
- package/dist/cli/commands/reindex.js.map +1 -1
- package/dist/cli/commands/restore.js +3 -3
- package/dist/cli/commands/restore.js.map +1 -1
- package/dist/cli/commands/schema.js +10 -10
- package/dist/cli/commands/schema.js.map +1 -1
- package/dist/cli/commands/shared-unset-fields.d.ts +19 -0
- package/dist/cli/commands/shared-unset-fields.js +31 -2
- package/dist/cli/commands/shared-unset-fields.js.map +1 -1
- package/dist/cli/commands/update.d.ts +2 -59
- package/dist/cli/commands/update.js +29 -98
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/commands/validate.js +4 -4
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/error-guidance.js +107 -7
- package/dist/cli/error-guidance.js.map +1 -1
- package/dist/cli/main.d.ts +6 -2
- package/dist/cli/main.js +33 -12
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/register-list-query.js +4 -2
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/registration-helpers.js +12 -6
- package/dist/cli/registration-helpers.js.map +1 -1
- package/dist/cli-bundle/chunks/activity-4XQIDNM5.js +18 -0
- package/dist/cli-bundle/chunks/{activity-5YWLSPGE.js → activity-YKAKZTZ4.js} +11 -9
- package/dist/cli-bundle/chunks/{aggregate-2V2M3JZU.js → aggregate-EQX2RGB7.js} +16 -13
- package/dist/cli-bundle/chunks/{aggregate-2V2M3JZU.js.map → aggregate-EQX2RGB7.js.map} +1 -1
- package/dist/cli-bundle/chunks/{aggregate-EK7DXML7.js → aggregate-PEGZGJXD.js} +18 -15
- package/dist/cli-bundle/chunks/{aggregate-EK7DXML7.js.map → aggregate-PEGZGJXD.js.map} +1 -1
- package/dist/cli-bundle/chunks/{append-EZESUVJT.js → append-CZGUZ45Q.js} +11 -8
- package/dist/cli-bundle/chunks/{append-EZESUVJT.js.map → append-CZGUZ45Q.js.map} +1 -1
- package/dist/cli-bundle/chunks/{append-JFG4WQMG.js → append-NSQBCXZJ.js} +13 -10
- package/dist/cli-bundle/chunks/{append-JFG4WQMG.js.map → append-NSQBCXZJ.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-3JZNEQBA.js +1413 -0
- package/dist/cli-bundle/chunks/chunk-3JZNEQBA.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-NOIEVOK5.js → chunk-3PL6LEKP.js} +16 -14
- package/dist/cli-bundle/chunks/{chunk-NOIEVOK5.js.map → chunk-3PL6LEKP.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-6KRFL33E.js → chunk-3U3VEWK6.js} +277 -119
- package/dist/cli-bundle/chunks/chunk-3U3VEWK6.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-Z5F6XZXE.js → chunk-3Y4OESPP.js} +14 -12
- package/dist/cli-bundle/chunks/{chunk-Z5F6XZXE.js.map → chunk-3Y4OESPP.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-HB4FAT3O.js → chunk-4LRVSBO6.js} +21 -15
- package/dist/cli-bundle/chunks/chunk-4LRVSBO6.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-T3P7PMZP.js → chunk-4OFLJHX6.js} +7 -5
- package/dist/cli-bundle/chunks/{chunk-T3P7PMZP.js.map → chunk-4OFLJHX6.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-JPATY4SE.js → chunk-4QQ6PM7M.js} +45 -557
- package/dist/cli-bundle/chunks/chunk-4QQ6PM7M.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-6CDCWKSX.js → chunk-53BTLLAF.js} +68 -331
- package/dist/cli-bundle/chunks/chunk-53BTLLAF.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-4WB6S4YX.js → chunk-57C2RLW5.js} +277 -112
- package/dist/cli-bundle/chunks/chunk-57C2RLW5.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-PULUSQAV.js → chunk-5B3X4Y22.js} +52 -63
- package/dist/cli-bundle/chunks/{chunk-PULUSQAV.js.map → chunk-5B3X4Y22.js.map} +3 -3
- package/dist/cli-bundle/chunks/{chunk-7LYO6S5A.js → chunk-5J2XPTAD.js} +10 -8
- package/dist/cli-bundle/chunks/{chunk-7LYO6S5A.js.map → chunk-5J2XPTAD.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-QCDTQCMW.js → chunk-5JE6SMYS.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MHRS5FUX.js → chunk-5JZ7APJU.js} +153 -108
- package/dist/cli-bundle/chunks/chunk-5JZ7APJU.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-KHVGM5CS.js → chunk-5VVUKE3U.js} +544 -2368
- package/dist/cli-bundle/chunks/chunk-5VVUKE3U.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-RJH5VQHW.js → chunk-75U6M5ZD.js} +22 -16
- package/dist/cli-bundle/chunks/chunk-75U6M5ZD.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-7C2O74AE.js +23 -0
- package/dist/cli-bundle/chunks/chunk-7C2O74AE.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-ZFTKYWIF.js → chunk-7EQNAZX2.js} +14 -12
- package/dist/cli-bundle/chunks/{chunk-ZFTKYWIF.js.map → chunk-7EQNAZX2.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-Z4DGFQDH.js → chunk-7LQKVMPA.js} +14 -4
- package/dist/cli-bundle/chunks/chunk-7LQKVMPA.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-ERG65A2L.js → chunk-7MDXZAZS.js} +29 -7
- package/dist/cli-bundle/chunks/chunk-7MDXZAZS.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-OGLGI22K.js → chunk-7QH7DHUB.js} +74 -8
- package/dist/cli-bundle/chunks/chunk-7QH7DHUB.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-JBZ2NTKX.js → chunk-7WYXBPYQ.js} +7 -5
- package/dist/cli-bundle/chunks/{chunk-JBZ2NTKX.js.map → chunk-7WYXBPYQ.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-AAEQMOC6.js +150 -0
- package/dist/cli-bundle/chunks/chunk-AAEQMOC6.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-K5DT2YKM.js → chunk-ABRA3BHY.js} +18 -16
- package/dist/cli-bundle/chunks/{chunk-K5DT2YKM.js.map → chunk-ABRA3BHY.js.map} +2 -2
- package/dist/cli-bundle/chunks/chunk-B5KXLBSJ.js +47 -0
- package/dist/cli-bundle/chunks/chunk-B5KXLBSJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-7CLLC75T.js → chunk-BFVHCAOO.js} +9 -7
- package/dist/cli-bundle/chunks/{chunk-7CLLC75T.js.map → chunk-BFVHCAOO.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-MDHWWBNZ.js → chunk-BVEUCSH2.js} +6 -4
- package/dist/cli-bundle/chunks/{chunk-MDHWWBNZ.js.map → chunk-BVEUCSH2.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-C3PMDWGX.js +160 -0
- package/dist/cli-bundle/chunks/chunk-C3PMDWGX.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-T4XBKJ3F.js → chunk-D3UCE7RW.js} +7 -5
- package/dist/cli-bundle/chunks/{chunk-T4XBKJ3F.js.map → chunk-D3UCE7RW.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-DC3QJQWI.js +275 -0
- package/dist/cli-bundle/chunks/chunk-DC3QJQWI.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-DLQ4ZTCU.js +634 -0
- package/dist/cli-bundle/chunks/chunk-DLQ4ZTCU.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-AJHYQCBJ.js → chunk-DRBV5UC2.js} +8 -23
- package/dist/cli-bundle/chunks/chunk-DRBV5UC2.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-NZ7QIUP5.js → chunk-E2FUG6GD.js} +67 -351
- package/dist/cli-bundle/chunks/chunk-E2FUG6GD.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-4PFVUUYV.js → chunk-EEY54JMF.js} +5 -3
- package/dist/cli-bundle/chunks/{chunk-4PFVUUYV.js.map → chunk-EEY54JMF.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-3W2HJKJX.js → chunk-EZFKWSC7.js} +94 -16
- package/dist/cli-bundle/chunks/{chunk-3W2HJKJX.js.map → chunk-EZFKWSC7.js.map} +4 -4
- package/dist/cli-bundle/chunks/{chunk-F6WNBITZ.js → chunk-FDBARR33.js} +40 -19
- package/dist/cli-bundle/chunks/{chunk-F6WNBITZ.js.map → chunk-FDBARR33.js.map} +3 -3
- package/dist/cli-bundle/chunks/{chunk-WRYERRZX.js → chunk-FGQKEDE4.js} +36 -12
- package/dist/cli-bundle/chunks/chunk-FGQKEDE4.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-CXR3CMBQ.js → chunk-FJRKQREY.js} +10 -18
- package/dist/cli-bundle/chunks/chunk-FJRKQREY.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-QNNQAAZ5.js → chunk-FUM6UMY4.js} +10 -11
- package/dist/cli-bundle/chunks/{chunk-QNNQAAZ5.js.map → chunk-FUM6UMY4.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-TQ6AX5SQ.js → chunk-GIWXVMZ3.js} +140 -334
- package/dist/cli-bundle/chunks/chunk-GIWXVMZ3.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-FZJM2TXF.js → chunk-HBYZDSK5.js} +19 -17
- package/dist/cli-bundle/chunks/{chunk-FZJM2TXF.js.map → chunk-HBYZDSK5.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-5IZUBZBR.js → chunk-HJE4JTKQ.js} +6 -4
- package/dist/cli-bundle/chunks/{chunk-5IZUBZBR.js.map → chunk-HJE4JTKQ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-YSDFIY7N.js → chunk-HK72NWAD.js} +89 -18
- package/dist/cli-bundle/chunks/chunk-HK72NWAD.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-LBE5QFMZ.js → chunk-IJ6CO3JV.js} +41 -20
- package/dist/cli-bundle/chunks/{chunk-LBE5QFMZ.js.map → chunk-IJ6CO3JV.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-YF746GTH.js → chunk-JFCVQXZX.js} +139 -326
- package/dist/cli-bundle/chunks/chunk-JFCVQXZX.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-A3OQ7TFW.js → chunk-JLA7EVYV.js} +12 -10
- package/dist/cli-bundle/chunks/{chunk-A3OQ7TFW.js.map → chunk-JLA7EVYV.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-K32L7HZO.js +76 -0
- package/dist/cli-bundle/chunks/chunk-K32L7HZO.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-32IUNTG4.js → chunk-K3AGVXSF.js} +37 -13
- package/dist/cli-bundle/chunks/chunk-K3AGVXSF.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-KDZ6K25I.js +79 -0
- package/dist/cli-bundle/chunks/chunk-KDZ6K25I.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-KGHH652T.js +44 -0
- package/dist/cli-bundle/chunks/chunk-KGHH652T.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-KL22PY6L.js +915 -0
- package/dist/cli-bundle/chunks/chunk-KL22PY6L.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-BI4R7HI2.js → chunk-KLG4ZULO.js} +12 -10
- package/dist/cli-bundle/chunks/{chunk-BI4R7HI2.js.map → chunk-KLG4ZULO.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-XRYSCRZR.js → chunk-LEKT4K7I.js} +74 -8
- package/dist/cli-bundle/chunks/chunk-LEKT4K7I.js.map +7 -0
- package/dist/cli-bundle/chunks/{contracts-X74F2GSM.js → chunk-MNZ7DRNC.js} +13 -10
- package/dist/cli-bundle/chunks/{contracts-X74F2GSM.js.map → chunk-MNZ7DRNC.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-4EXFFP7T.js → chunk-MTTXDAK4.js} +206 -147
- package/dist/cli-bundle/chunks/chunk-MTTXDAK4.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-KEZOIPCR.js → chunk-MZ7VNEVY.js} +8 -6
- package/dist/cli-bundle/chunks/{chunk-KEZOIPCR.js.map → chunk-MZ7VNEVY.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-5JIWFWOZ.js → chunk-N6DNM2FA.js} +2 -2
- package/dist/cli-bundle/chunks/{test-runs-QIR5MJPL.js → chunk-N7X4WP6L.js} +11 -8
- package/dist/cli-bundle/chunks/{test-runs-QIR5MJPL.js.map → chunk-N7X4WP6L.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-U3S2B7TA.js → chunk-NBFCNJ7Q.js} +206 -147
- package/dist/cli-bundle/chunks/chunk-NBFCNJ7Q.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-GVJE5T7Q.js → chunk-NER3KUUS.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-NNHHXJB2.js +20 -0
- package/dist/cli-bundle/chunks/chunk-NNHHXJB2.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-OBA2WH65.js +918 -0
- package/dist/cli-bundle/chunks/chunk-OBA2WH65.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-YPWUSH72.js → chunk-OESSOFJ4.js} +14 -12
- package/dist/cli-bundle/chunks/{chunk-YPWUSH72.js.map → chunk-OESSOFJ4.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-OK5NXCZB.js +238 -0
- package/dist/cli-bundle/chunks/chunk-OK5NXCZB.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-FUFFPIYA.js → chunk-OWTIRHX4.js} +28 -6
- package/dist/cli-bundle/chunks/chunk-OWTIRHX4.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-Z7RPDF2Y.js → chunk-P3VRG72Q.js} +10 -8
- package/dist/cli-bundle/chunks/{chunk-Z7RPDF2Y.js.map → chunk-P3VRG72Q.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-P5TFTLWW.js +1423 -0
- package/dist/cli-bundle/chunks/chunk-P5TFTLWW.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-P5YORJRH.js +1977 -0
- package/dist/cli-bundle/chunks/chunk-P5YORJRH.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-MEZZZBYX.js → chunk-PDXT6Q55.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-EJ2OCBHF.js → chunk-PJ3A56YF.js} +46 -537
- package/dist/cli-bundle/chunks/chunk-PJ3A56YF.js.map +1 -0
- package/dist/cli-bundle/chunks/{test-runs-MG5VIGSK.js → chunk-PPAJG4GB.js} +13 -10
- package/dist/cli-bundle/chunks/{test-runs-MG5VIGSK.js.map → chunk-PPAJG4GB.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-572FKBRL.js → chunk-PPE4YUQM.js} +1725 -1663
- package/dist/cli-bundle/chunks/chunk-PPE4YUQM.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-ER4ME5U2.js → chunk-QHZO65XW.js} +8 -6
- package/dist/cli-bundle/chunks/{chunk-ER4ME5U2.js.map → chunk-QHZO65XW.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-T6AXEBOP.js → chunk-R3ZBLGTC.js} +9 -10
- package/dist/cli-bundle/chunks/{chunk-T6AXEBOP.js.map → chunk-R3ZBLGTC.js.map} +2 -2
- package/dist/cli-bundle/chunks/chunk-RCT3YJOK.js +624 -0
- package/dist/cli-bundle/chunks/chunk-RCT3YJOK.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-YVKZ3ANP.js → chunk-RX3HQSYG.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-LOWVNZBZ.js → chunk-S4APD35C.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-FH2H3CBD.js → chunk-S5AYOUT5.js} +8 -6
- package/dist/cli-bundle/chunks/{chunk-FH2H3CBD.js.map → chunk-S5AYOUT5.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-SYE6WMV6.js → chunk-STPSZ2XY.js} +19 -744
- package/dist/cli-bundle/chunks/chunk-STPSZ2XY.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-6NYJGMTY.js → chunk-T35XLYZF.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-P5L7Z2O6.js → chunk-T3ABIMGW.js} +5 -3
- package/dist/cli-bundle/chunks/{chunk-P5L7Z2O6.js.map → chunk-T3ABIMGW.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-SU2E4AWU.js → chunk-T3F4DF23.js} +16 -14
- package/dist/cli-bundle/chunks/{chunk-SU2E4AWU.js.map → chunk-T3F4DF23.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-T4MX77AK.js +272 -0
- package/dist/cli-bundle/chunks/chunk-T4MX77AK.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-T5Y3QSNF.js +5354 -0
- package/dist/cli-bundle/chunks/chunk-T5Y3QSNF.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-ECU6MMTQ.js → chunk-TSPKZRRW.js} +50 -116
- package/dist/cli-bundle/chunks/chunk-TSPKZRRW.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-BE2SR6QL.js → chunk-TT42JUMF.js} +4 -4
- package/dist/cli-bundle/chunks/chunk-UHKX7I75.js +165 -0
- package/dist/cli-bundle/chunks/chunk-UHKX7I75.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-RAHINBVP.js → chunk-UI5BJ6DO.js} +1339 -1277
- package/dist/cli-bundle/chunks/chunk-UI5BJ6DO.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-US3T3W5J.js +1932 -0
- package/dist/cli-bundle/chunks/chunk-US3T3W5J.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-UZRDBL6W.js +175 -0
- package/dist/cli-bundle/chunks/chunk-UZRDBL6W.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-B4O5S7I3.js → chunk-VUHVWI4C.js} +13 -3
- package/dist/cli-bundle/chunks/chunk-VUHVWI4C.js.map +7 -0
- package/dist/cli-bundle/chunks/{contracts-L6ODXNUM.js → chunk-VZIYHZDX.js} +11 -8
- package/dist/cli-bundle/chunks/{contracts-L6ODXNUM.js.map → chunk-VZIYHZDX.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-U5TR4N7J.js → chunk-WISPVC2E.js} +9 -7
- package/dist/cli-bundle/chunks/{chunk-U5TR4N7J.js.map → chunk-WISPVC2E.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-WVSGSZ6J.js +5434 -0
- package/dist/cli-bundle/chunks/chunk-WVSGSZ6J.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-HQAF23Q2.js → chunk-XQCG2JGW.js} +17 -749
- package/dist/cli-bundle/chunks/chunk-XQCG2JGW.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-Y76TWC45.js +550 -0
- package/dist/cli-bundle/chunks/chunk-Y76TWC45.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-L4SLHV6G.js → chunk-YD5FML7K.js} +464 -2239
- package/dist/cli-bundle/chunks/chunk-YD5FML7K.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-YSGTMDWC.js → chunk-YFIE7YK6.js} +7 -5
- package/dist/cli-bundle/chunks/{chunk-YSGTMDWC.js.map → chunk-YFIE7YK6.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-WYOIIFSE.js → chunk-YMABYTNG.js} +49 -115
- package/dist/cli-bundle/chunks/chunk-YMABYTNG.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-SU3TB4NS.js → chunk-YOF5VPKM.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WJA3PXW7.js → chunk-YPPVU5GX.js} +11 -9
- package/dist/cli-bundle/chunks/{chunk-WJA3PXW7.js.map → chunk-YPPVU5GX.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-GUYNUXQT.js → chunk-YQMMMONE.js} +6 -4
- package/dist/cli-bundle/chunks/{chunk-GUYNUXQT.js.map → chunk-YQMMMONE.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-AIKU3IIL.js → chunk-YSAH5FY5.js} +16 -14
- package/dist/cli-bundle/chunks/{chunk-AIKU3IIL.js.map → chunk-YSAH5FY5.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-KS6ATO47.js → chunk-YZIR4R3U.js} +153 -108
- package/dist/cli-bundle/chunks/chunk-YZIR4R3U.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-LCWQP6NM.js → chunk-Z2CRRZYF.js} +14 -12
- package/dist/cli-bundle/chunks/{chunk-LCWQP6NM.js.map → chunk-Z2CRRZYF.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-ZAHXPXVY.js +533 -0
- package/dist/cli-bundle/chunks/chunk-ZAHXPXVY.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-UMNQZS4H.js → chunk-ZCJAA3JK.js} +8 -6
- package/dist/cli-bundle/chunks/{chunk-UMNQZS4H.js.map → chunk-ZCJAA3JK.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-EQURFOMH.js → chunk-ZD34OFFQ.js} +5 -3
- package/dist/cli-bundle/chunks/{chunk-EQURFOMH.js.map → chunk-ZD34OFFQ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-67LARBDL.js → chunk-ZJB3UV5U.js} +54 -58
- package/dist/cli-bundle/chunks/chunk-ZJB3UV5U.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-5E7N4T2Z.js → chunk-ZMD35NYG.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-ZVDL32GJ.js +241 -0
- package/dist/cli-bundle/chunks/chunk-ZVDL32GJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{claim-5GU7OE67.js → claim-4DROPSIS.js} +30 -13
- package/dist/cli-bundle/chunks/claim-4DROPSIS.js.map +1 -0
- package/dist/cli-bundle/chunks/{claim-2BGBGSVI.js → claim-VX54TV5U.js} +29 -12
- package/dist/cli-bundle/chunks/claim-VX54TV5U.js.map +7 -0
- package/dist/cli-bundle/chunks/{close-AFVKPR57.js → close-3YRR3XY6.js} +9 -7
- package/dist/cli-bundle/chunks/close-OB2Y4QP5.js +16 -0
- package/dist/cli-bundle/chunks/{close-many-JKUJMHLG.js → close-many-AP4MWU36.js} +21 -18
- package/dist/cli-bundle/chunks/{close-many-JKUJMHLG.js.map → close-many-AP4MWU36.js.map} +1 -1
- package/dist/cli-bundle/chunks/{close-many-7KLOSYLP.js → close-many-OMZIGZB4.js} +19 -16
- package/dist/cli-bundle/chunks/{close-many-7KLOSYLP.js.map → close-many-OMZIGZB4.js.map} +1 -1
- package/dist/cli-bundle/chunks/{comments-DNWHEBOS.js → comments-MIW5MZOX.js} +12 -9
- package/dist/cli-bundle/chunks/{comments-DNWHEBOS.js.map → comments-MIW5MZOX.js.map} +1 -1
- package/dist/cli-bundle/chunks/{comments-RW23R3VE.js → comments-SAG5LSKL.js} +14 -11
- package/dist/cli-bundle/chunks/{comments-RW23R3VE.js.map → comments-SAG5LSKL.js.map} +1 -1
- package/dist/cli-bundle/chunks/{config-AUM5WBYA.js → config-DJJKZB5R.js} +20 -17
- package/dist/cli-bundle/chunks/{config-AUM5WBYA.js.map → config-DJJKZB5R.js.map} +1 -1
- package/dist/cli-bundle/chunks/{config-OZWSA2NP.js → config-V57QD47V.js} +22 -19
- package/dist/cli-bundle/chunks/{config-OZWSA2NP.js.map → config-V57QD47V.js.map} +1 -1
- package/dist/cli-bundle/chunks/{context-PKCEHQY3.js → context-4OQGIPSO.js} +15 -12
- package/dist/cli-bundle/chunks/{context-OYXRGY7S.js → context-WLA6IAWE.js} +15 -12
- package/dist/cli-bundle/chunks/contracts-HXJLKCRI.js +12 -0
- package/dist/cli-bundle/chunks/contracts-OJEXMKVW.js +16 -0
- package/dist/cli-bundle/chunks/{copy-I4NCLBR4.js → copy-LEE6P6EM.js} +17 -14
- package/dist/cli-bundle/chunks/{copy-I4NCLBR4.js.map → copy-LEE6P6EM.js.map} +2 -2
- package/dist/cli-bundle/chunks/{copy-6XOR3HKN.js → copy-OTJOWFL6.js} +18 -15
- package/dist/cli-bundle/chunks/{copy-6XOR3HKN.js.map → copy-OTJOWFL6.js.map} +1 -1
- package/dist/cli-bundle/chunks/create-WKOZKPQR.js +30 -0
- package/dist/cli-bundle/chunks/{create-PM45M6PE.js → create-XWWQFQ6S.js} +14 -12
- package/dist/cli-bundle/chunks/{delete-7YXHYG67.js → delete-62JQTYT4.js} +10 -7
- package/dist/cli-bundle/chunks/{delete-7YXHYG67.js.map → delete-62JQTYT4.js.map} +1 -1
- package/dist/cli-bundle/chunks/{delete-LPISP43T.js → delete-HQKGRNRZ.js} +12 -9
- package/dist/cli-bundle/chunks/{delete-LPISP43T.js.map → delete-HQKGRNRZ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{deps-WATKQDE3.js → deps-55FTG6Z5.js} +12 -9
- package/dist/cli-bundle/chunks/{deps-WATKQDE3.js.map → deps-55FTG6Z5.js.map} +1 -1
- package/dist/cli-bundle/chunks/{deps-N2T26FME.js → deps-L2FPIAD3.js} +10 -7
- package/dist/cli-bundle/chunks/{deps-N2T26FME.js.map → deps-L2FPIAD3.js.map} +1 -1
- package/dist/cli-bundle/chunks/{docs-6LQ3GLM7.js → docs-6CRCSVKK.js} +11 -9
- package/dist/cli-bundle/chunks/{docs-6LQ3GLM7.js.map → docs-6CRCSVKK.js.map} +1 -1
- package/dist/cli-bundle/chunks/{docs-Z3X6JZLT.js → docs-S6UTOTO5.js} +9 -7
- package/dist/cli-bundle/chunks/{docs-Z3X6JZLT.js.map → docs-S6UTOTO5.js.map} +1 -1
- package/dist/cli-bundle/chunks/{eval-6DCLG52D.js → eval-N6UHFWVO.js} +15 -11
- package/dist/cli-bundle/chunks/{eval-6DCLG52D.js.map → eval-N6UHFWVO.js.map} +1 -1
- package/dist/cli-bundle/chunks/{eval-Y3ZCUTHK.js → eval-PHOTWYHI.js} +17 -13
- package/dist/cli-bundle/chunks/{eval-Y3ZCUTHK.js.map → eval-PHOTWYHI.js.map} +1 -1
- package/dist/cli-bundle/chunks/{extension-BNINIMT7.js → extension-NBAH62ML.js} +17 -11
- package/dist/cli-bundle/chunks/{extension-QWE4YYK5.js → extension-ZF6ZZPOU.js} +17 -11
- package/dist/cli-bundle/chunks/{files-FUYPSOFJ.js → files-6P57MRKL.js} +14 -11
- package/dist/cli-bundle/chunks/files-6P57MRKL.js.map +7 -0
- package/dist/cli-bundle/chunks/{files-6SGKHS6O.js → files-JPU3FNJ7.js} +15 -12
- package/dist/cli-bundle/chunks/files-JPU3FNJ7.js.map +1 -0
- package/dist/cli-bundle/chunks/{focus-2Q3K76G2.js → focus-LFZ6IDBR.js} +15 -11
- package/dist/cli-bundle/chunks/{focus-2Q3K76G2.js.map → focus-LFZ6IDBR.js.map} +1 -1
- package/dist/cli-bundle/chunks/{focus-ATLBWXXD.js → focus-WNMYCVYA.js} +13 -9
- package/dist/cli-bundle/chunks/{focus-ATLBWXXD.js.map → focus-WNMYCVYA.js.map} +1 -1
- package/dist/cli-bundle/chunks/{gc-RUYEMNRF.js → gc-AETFKZ44.js} +10 -7
- package/dist/cli-bundle/chunks/{gc-RUYEMNRF.js.map → gc-AETFKZ44.js.map} +1 -1
- package/dist/cli-bundle/chunks/{gc-TDWSDR66.js → gc-RLBP4QVN.js} +12 -9
- package/dist/cli-bundle/chunks/{gc-TDWSDR66.js.map → gc-RLBP4QVN.js.map} +1 -1
- package/dist/cli-bundle/chunks/{get-LY6M2JIM.js → get-NH2MPBCI.js} +18 -15
- package/dist/cli-bundle/chunks/{get-LY6M2JIM.js.map → get-NH2MPBCI.js.map} +1 -1
- package/dist/cli-bundle/chunks/{get-2WGLX74N.js → get-P4ZQXCPZ.js} +16 -13
- package/dist/cli-bundle/chunks/{get-2WGLX74N.js.map → get-P4ZQXCPZ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{health-4RKHYS3T.js → health-3GVPMQBL.js} +36 -29
- package/dist/cli-bundle/chunks/{health-4RKHYS3T.js.map → health-3GVPMQBL.js.map} +1 -1
- package/dist/cli-bundle/chunks/{health-TMFVNYRA.js → health-DNTM72GJ.js} +34 -27
- package/dist/cli-bundle/chunks/{health-TMFVNYRA.js.map → health-DNTM72GJ.js.map} +1 -1
- package/dist/cli-bundle/chunks/history-RYKLC72X.js +20 -0
- package/dist/cli-bundle/chunks/{history-SGRRS72R.js → history-SGPYRAFT.js} +10 -8
- package/dist/cli-bundle/chunks/{history-compact-LOED43R3.js → history-compact-3F6VELO7.js} +26 -30
- package/dist/cli-bundle/chunks/history-compact-3F6VELO7.js.map +7 -0
- package/dist/cli-bundle/chunks/{history-compact-V5DNAQHH.js → history-compact-656Y2TN4.js} +27 -31
- package/dist/cli-bundle/chunks/history-compact-656Y2TN4.js.map +1 -0
- package/dist/cli-bundle/chunks/history-redact-4H3FCKF3.js +21 -0
- package/dist/cli-bundle/chunks/{history-redact-IRL7WJ3E.js → history-redact-54ICFKXM.js} +11 -9
- package/dist/cli-bundle/chunks/{history-repair-PGYQJMGD.js → history-repair-4N6SDVHK.js} +25 -30
- package/dist/cli-bundle/chunks/history-repair-4N6SDVHK.js.map +7 -0
- package/dist/cli-bundle/chunks/{history-repair-4WVBVHFR.js → history-repair-EVTO6LIH.js} +26 -31
- package/dist/cli-bundle/chunks/history-repair-EVTO6LIH.js.map +1 -0
- package/dist/cli-bundle/chunks/init-RPIPQUNV.js +32 -0
- package/dist/cli-bundle/chunks/init-SKQAESQS.js +28 -0
- package/dist/cli-bundle/chunks/{learnings-4FJY7WIW.js → learnings-2HTPZNGZ.js} +10 -8
- package/dist/cli-bundle/chunks/{learnings-4FJY7WIW.js.map → learnings-2HTPZNGZ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{learnings-4BHWFFUV.js → learnings-YBIHY3D6.js} +12 -10
- package/dist/cli-bundle/chunks/{learnings-4BHWFFUV.js.map → learnings-YBIHY3D6.js.map} +1 -1
- package/dist/cli-bundle/chunks/{list-472TIOVK.js → list-64LHZ3HM.js} +10 -8
- package/dist/cli-bundle/chunks/{list-D7BF5CL2.js → list-7LXBTEKI.js} +10 -8
- package/dist/cli-bundle/chunks/{next-SFQZVX2B.js → next-7ODPAQ4U.js} +22 -18
- package/dist/cli-bundle/chunks/{next-SFQZVX2B.js.map → next-7ODPAQ4U.js.map} +1 -1
- package/dist/cli-bundle/chunks/{next-D5STGWI2.js → next-ODJUM4ZM.js} +24 -20
- package/dist/cli-bundle/chunks/{next-D5STGWI2.js.map → next-ODJUM4ZM.js.map} +1 -1
- package/dist/cli-bundle/chunks/{notes-6KNOSLIT.js → notes-72YXN5JX.js} +10 -8
- package/dist/cli-bundle/chunks/{notes-6KNOSLIT.js.map → notes-72YXN5JX.js.map} +1 -1
- package/dist/cli-bundle/chunks/{notes-W4UEICGF.js → notes-NJ7IQJX4.js} +12 -10
- package/dist/cli-bundle/chunks/{notes-W4UEICGF.js.map → notes-NJ7IQJX4.js.map} +1 -1
- package/dist/cli-bundle/chunks/{plan-MJQW5XK3.js → plan-R4NDQ27E.js} +18 -15
- package/dist/cli-bundle/chunks/{plan-MJQW5XK3.js.map → plan-R4NDQ27E.js.map} +1 -1
- package/dist/cli-bundle/chunks/{plan-JO6V7BXO.js → plan-XWY5T67S.js} +20 -17
- package/dist/cli-bundle/chunks/{plan-JO6V7BXO.js.map → plan-XWY5T67S.js.map} +1 -1
- package/dist/cli-bundle/chunks/profile-XQWEQKS3.js +397 -0
- package/dist/cli-bundle/chunks/profile-XQWEQKS3.js.map +1 -0
- package/dist/cli-bundle/chunks/profile-YRDHLMRO.js +400 -0
- package/dist/cli-bundle/chunks/profile-YRDHLMRO.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-list-query-ELBHCCFI.js → register-list-query-5H66WFYF.js} +24 -21
- package/dist/cli-bundle/chunks/register-list-query-5H66WFYF.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-list-query-GAPQ6DM3.js → register-list-query-FB3FNDLZ.js} +25 -22
- package/dist/cli-bundle/chunks/{register-list-query-ELBHCCFI.js.map → register-list-query-FB3FNDLZ.js.map} +1 -7
- package/dist/cli-bundle/chunks/{register-mutation-SJWMVIJ2.js → register-mutation-UJO23C7R.js} +42 -39
- package/dist/cli-bundle/chunks/{register-mutation-SJWMVIJ2.js.map → register-mutation-UJO23C7R.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-mutation-ROFE2YPC.js → register-mutation-Z2ETYHKS.js} +40 -37
- package/dist/cli-bundle/chunks/{register-mutation-ROFE2YPC.js.map → register-mutation-Z2ETYHKS.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-operations-MEKU3AKC.js → register-operations-A3XAM5J7.js} +39 -36
- package/dist/cli-bundle/chunks/{register-operations-MEKU3AKC.js.map → register-operations-A3XAM5J7.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-operations-IADFVH53.js → register-operations-SG7HBSUP.js} +37 -34
- package/dist/cli-bundle/chunks/{register-operations-IADFVH53.js.map → register-operations-SG7HBSUP.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-setup-AJWUSSQX.js → register-setup-I45OGJUV.js} +25 -19
- package/dist/cli-bundle/chunks/{register-setup-AJWUSSQX.js.map → register-setup-I45OGJUV.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-setup-3QJY43CY.js → register-setup-K6U3NVY5.js} +23 -17
- package/dist/cli-bundle/chunks/{register-setup-3QJY43CY.js.map → register-setup-K6U3NVY5.js.map} +1 -1
- package/dist/cli-bundle/chunks/restore-PXOFL6AM.js +19 -0
- package/dist/cli-bundle/chunks/{restore-44IHMMZZ.js → restore-YJ2ET6AT.js} +11 -9
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-TSBK4AY5.js → scheduling-shortcuts-SSC4MYWQ.js} +14 -12
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-TSBK4AY5.js.map → scheduling-shortcuts-SSC4MYWQ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-OLHNLAZY.js → scheduling-shortcuts-ULRG7MNP.js} +16 -14
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-OLHNLAZY.js.map → scheduling-shortcuts-ULRG7MNP.js.map} +1 -1
- package/dist/cli-bundle/chunks/{schema-VBCELP5G.js → schema-2PUXCZ25.js} +10 -7
- package/dist/cli-bundle/chunks/{schema-IB2NZZWD.js → schema-Y6DXXK2F.js} +10 -7
- package/dist/cli-bundle/chunks/{search-7UBETML4.js → search-3S72CTD6.js} +13 -10
- package/dist/cli-bundle/chunks/{search-R227JOL6.js → search-WNUNBQXO.js} +13 -10
- package/dist/cli-bundle/chunks/{stats-FAG7COEH.js → stats-IJYTRQGV.js} +13 -10
- package/dist/cli-bundle/chunks/{stats-FAG7COEH.js.map → stats-IJYTRQGV.js.map} +1 -1
- package/dist/cli-bundle/chunks/{stats-MCK7PLYS.js → stats-L2D5Y2O5.js} +15 -12
- package/dist/cli-bundle/chunks/{stats-MCK7PLYS.js.map → stats-L2D5Y2O5.js.map} +1 -1
- package/dist/cli-bundle/chunks/{telemetry-DRPDZMAO.js → telemetry-L2CVOKVN.js} +11 -8
- package/dist/cli-bundle/chunks/{telemetry-DRPDZMAO.js.map → telemetry-L2CVOKVN.js.map} +1 -1
- package/dist/cli-bundle/chunks/{telemetry-GVVUQSJQ.js → telemetry-QBYWQA76.js} +13 -10
- package/dist/cli-bundle/chunks/{telemetry-GVVUQSJQ.js.map → telemetry-QBYWQA76.js.map} +1 -1
- package/dist/cli-bundle/chunks/{test-QY44WAMR.js → test-DQ2QFJ7W.js} +21 -15
- package/dist/cli-bundle/chunks/test-W7QBLVJS.js +41 -0
- package/dist/cli-bundle/chunks/{test-all-USPJHXFR.js → test-all-636NTRTT.js} +26 -19
- package/dist/cli-bundle/chunks/{test-all-USPJHXFR.js.map → test-all-636NTRTT.js.map} +1 -1
- package/dist/cli-bundle/chunks/{test-all-QD6QAEG7.js → test-all-DWYK3RG6.js} +24 -17
- package/dist/cli-bundle/chunks/{test-all-QD6QAEG7.js.map → test-all-DWYK3RG6.js.map} +1 -1
- package/dist/cli-bundle/chunks/test-runs-245OINZR.js +28 -0
- package/dist/cli-bundle/chunks/test-runs-245OINZR.js.map +1 -0
- package/dist/cli-bundle/chunks/test-runs-ZRD4GCTT.js +24 -0
- package/dist/cli-bundle/chunks/test-runs-ZRD4GCTT.js.map +7 -0
- package/dist/cli-bundle/chunks/update-SFLZPJXX.js +30 -0
- package/dist/cli-bundle/chunks/update-SFLZPJXX.js.map +1 -0
- package/dist/cli-bundle/chunks/update-SJZ6S77U.js +26 -0
- package/dist/cli-bundle/chunks/update-SJZ6S77U.js.map +7 -0
- package/dist/cli-bundle/chunks/{update-many-RATAARHU.js → update-many-DC7X3EWM.js} +32 -29
- package/dist/cli-bundle/chunks/{update-many-RATAARHU.js.map → update-many-DC7X3EWM.js.map} +1 -1
- package/dist/cli-bundle/chunks/{update-many-BEMTDA2X.js → update-many-SLLAMHT7.js} +34 -31
- package/dist/cli-bundle/chunks/{update-many-BEMTDA2X.js.map → update-many-SLLAMHT7.js.map} +1 -1
- package/dist/cli-bundle/chunks/{upgrade-VU46BLJZ.js → upgrade-HFFXLZJA.js} +19 -12
- package/dist/cli-bundle/chunks/{upgrade-VU46BLJZ.js.map → upgrade-HFFXLZJA.js.map} +1 -1
- package/dist/cli-bundle/chunks/{upgrade-NWMR3VQL.js → upgrade-UYQKM7RF.js} +21 -14
- package/dist/cli-bundle/chunks/{upgrade-NWMR3VQL.js.map → upgrade-UYQKM7RF.js.map} +1 -1
- package/dist/cli-bundle/chunks/{validate-NRY6MFXN.js → validate-PA4FDTOV.js} +35 -28
- package/dist/cli-bundle/chunks/validate-PA4FDTOV.js.map +7 -0
- package/dist/cli-bundle/chunks/{validate-GAJ6FUSI.js → validate-Z7L75YEJ.js} +35 -28
- package/dist/cli-bundle/chunks/validate-Z7L75YEJ.js.map +1 -0
- package/dist/cli-bundle/main.js +173 -57
- package/dist/cli-bundle/main.js.map +2 -2
- package/dist/cli-bundle/sdk-runtime.js +247 -0
- package/dist/cli-bundle/sdk-runtime.js.map +7 -0
- package/dist/cli-bundle/sdk-testing.js +101 -0
- package/dist/cli-bundle/sdk-testing.js.map +7 -0
- package/dist/cli-bundle/sdk.js +787 -0
- package/dist/cli-bundle/sdk.js.map +7 -0
- package/dist/core/config/nested-settings.d.ts +4 -3
- package/dist/core/config/nested-settings.js +17 -6
- package/dist/core/config/nested-settings.js.map +1 -1
- package/dist/core/extensions/activation-summary.d.ts +6 -0
- package/dist/core/extensions/activation-summary.js +10 -4
- package/dist/core/extensions/activation-summary.js.map +1 -1
- package/dist/core/extensions/capability-usage.d.ts +6 -0
- package/dist/core/extensions/capability-usage.js +10 -4
- package/dist/core/extensions/capability-usage.js.map +1 -1
- package/dist/core/extensions/extension-types.d.ts +6 -2
- package/dist/core/extensions/extension-types.js +2 -2
- package/dist/core/extensions/extension-types.js.map +1 -1
- package/dist/core/extensions/loader.d.ts +3 -0
- package/dist/core/extensions/loader.js +11 -19
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/history/history-rewrite.d.ts +10 -0
- package/dist/core/history/history-rewrite.js +28 -4
- package/dist/core/history/history-rewrite.js.map +1 -1
- package/dist/core/item/parent-reference-policy.d.ts +9 -1
- package/dist/core/item/parent-reference-policy.js +28 -4
- package/dist/core/item/parent-reference-policy.js.map +1 -1
- package/dist/core/item/type-registry.d.ts +1 -0
- package/dist/core/item/type-registry.js +153 -177
- package/dist/core/item/type-registry.js.map +1 -1
- package/dist/core/lock/lock.d.ts +28 -1
- package/dist/core/lock/lock.js +254 -20
- package/dist/core/lock/lock.js.map +1 -1
- package/dist/core/search/background-refresh.js +7 -19
- package/dist/core/search/background-refresh.js.map +1 -1
- package/dist/core/search/http-client.d.ts +0 -1
- package/dist/core/search/http-client.js +3 -3
- package/dist/core/search/http-client.js.map +1 -1
- package/dist/core/shared/constants.js +3 -2
- package/dist/core/shared/constants.js.map +1 -1
- package/dist/core/shared/errors.d.ts +1 -0
- package/dist/core/shared/errors.js +2 -2
- package/dist/core/shared/errors.js.map +1 -1
- package/dist/core/shared/primitives.d.ts +12 -0
- package/dist/core/shared/primitives.js +29 -2
- package/dist/core/shared/primitives.js.map +1 -1
- package/dist/core/store/item-store.js +3 -3
- package/dist/core/store/item-store.js.map +1 -1
- package/dist/core/store/settings-validator.d.ts +1 -0
- package/dist/core/store/settings-validator.js +6 -3
- package/dist/core/store/settings-validator.js.map +1 -1
- package/dist/core/store/settings.js +3 -3
- package/dist/core/store/settings.js.map +1 -1
- package/dist/core/validate/fix-planning.d.ts +0 -2
- package/dist/core/validate/fix-planning.js +3 -3
- package/dist/core/validate/fix-planning.js.map +1 -1
- package/dist/sdk/cli-contracts/commander-mutation-options.js +3 -2
- package/dist/sdk/cli-contracts/commander-mutation-options.js.map +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.js +5 -2
- package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-option-contracts.js +4 -2
- package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-schema.js +55 -94
- package/dist/sdk/cli-contracts/tool-schema.js.map +1 -1
- package/dist/sdk/errors.d.ts +21 -2
- package/dist/sdk/errors.js +8 -2
- package/dist/sdk/errors.js.map +1 -1
- package/dist/sdk/package-import-adapters.d.ts +90 -2
- package/dist/sdk/package-import-adapters.js +275 -3
- package/dist/sdk/package-import-adapters.js.map +1 -1
- package/dist/sdk/runtime.d.ts +1 -1
- package/dist/sdk/runtime.js +3 -3
- package/dist/sdk/runtime.js.map +1 -1
- package/dist/sdk/testing.js +41 -19
- package/dist/sdk/testing.js.map +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/types.js +2 -2
- package/dist/types.js.map +1 -1
- package/docs/ARCHITECTURE.md +27 -0
- package/docs/CONFIGURATION.md +3 -0
- package/docs/README.md +1 -0
- package/docs/SDK_PRIMITIVE_INVENTORY.md +55 -0
- package/docs/TESTING.md +5 -1
- package/docs/examples/ci/github-actions-pm-extension-gate.yml +5 -5
- package/docs/examples/ci/gitlab-ci-pm-extension-gate.yml +1 -1
- package/docs/examples/ci/jenkins-pm-extension-gate.Jenkinsfile +1 -1
- package/package.json +14 -26
- package/packages/pm-beads/extensions/beads/package.json +3 -0
- package/packages/pm-beads/extensions/beads/runtime-loader.ts +50 -41
- package/packages/pm-beads/extensions/beads/runtime.ts +106 -223
- package/packages/pm-calendar/extensions/calendar/package.json +3 -0
- package/packages/pm-calendar/extensions/calendar/runtime.ts +21 -18
- package/packages/pm-command-kit/extensions/command-kit/package.json +3 -0
- package/packages/pm-governance-audit/extensions/governance-audit/package.json +3 -0
- package/packages/pm-guide-shell/extensions/guide-shell/package.json +3 -0
- package/packages/pm-guide-shell/extensions/guide-shell/runtime.ts +9 -11
- package/packages/pm-kanban/extensions/kanban/package.json +3 -0
- package/packages/pm-lifecycle-hooks/extensions/lifecycle-hooks/package.json +3 -0
- package/packages/pm-search-advanced/extensions/search-advanced/package.json +3 -0
- package/packages/pm-templates/extensions/templates/package.json +3 -0
- package/packages/pm-todos/extensions/todos/package.json +3 -0
- package/packages/pm-todos/extensions/todos/runtime-loader.ts +62 -72
- package/packages/pm-todos/extensions/todos/runtime.ts +61 -257
- package/plugins/pm-claude/scripts/pm-mcp-server.mjs +73 -31
- package/plugins/pm-codex/scripts/pm-mcp-server.mjs +80 -34
- package/scripts/bundle-cli.mjs +12 -2
- package/scripts/install.ps1 +7 -7
- package/dist/cli-bundle/chunks/activity-BIML7K2D.js +0 -16
- package/dist/cli-bundle/chunks/chunk-32IUNTG4.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-4EXFFP7T.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-4WB6S4YX.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-572FKBRL.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-67LARBDL.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-6CDCWKSX.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-6KRFL33E.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-AJHYQCBJ.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-B4O5S7I3.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-CXR3CMBQ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-ECU6MMTQ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-EJ2OCBHF.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-ERG65A2L.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-FUFFPIYA.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-HB4FAT3O.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-HQAF23Q2.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-JPATY4SE.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-KHVGM5CS.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-KS6ATO47.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-L4SLHV6G.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-MHRS5FUX.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-NZ7QIUP5.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-OGLGI22K.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-RAHINBVP.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-RJH5VQHW.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-SYE6WMV6.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-TQ6AX5SQ.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-U3S2B7TA.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-WRYERRZX.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-WYOIIFSE.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-XRYSCRZR.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-YF746GTH.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-YSDFIY7N.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-Z4DGFQDH.js.map +0 -1
- package/dist/cli-bundle/chunks/claim-2BGBGSVI.js.map +0 -7
- package/dist/cli-bundle/chunks/claim-5GU7OE67.js.map +0 -1
- package/dist/cli-bundle/chunks/close-6YODBUIV.js +0 -14
- package/dist/cli-bundle/chunks/create-Z7YCH3BE.js +0 -28
- package/dist/cli-bundle/chunks/files-6SGKHS6O.js.map +0 -1
- package/dist/cli-bundle/chunks/files-FUYPSOFJ.js.map +0 -7
- package/dist/cli-bundle/chunks/history-CGNQJXFE.js +0 -18
- package/dist/cli-bundle/chunks/history-compact-LOED43R3.js.map +0 -7
- package/dist/cli-bundle/chunks/history-compact-V5DNAQHH.js.map +0 -1
- package/dist/cli-bundle/chunks/history-redact-N3JK7VBW.js +0 -19
- package/dist/cli-bundle/chunks/history-repair-4WVBVHFR.js.map +0 -1
- package/dist/cli-bundle/chunks/history-repair-PGYQJMGD.js.map +0 -7
- package/dist/cli-bundle/chunks/init-4GESW7RM.js +0 -26
- package/dist/cli-bundle/chunks/init-XIDPABA4.js +0 -22
- package/dist/cli-bundle/chunks/profile-3TOTMUR4.js +0 -1243
- package/dist/cli-bundle/chunks/profile-3TOTMUR4.js.map +0 -7
- package/dist/cli-bundle/chunks/profile-WIQY2KCV.js +0 -1205
- package/dist/cli-bundle/chunks/profile-WIQY2KCV.js.map +0 -1
- package/dist/cli-bundle/chunks/register-list-query-GAPQ6DM3.js.map +0 -1
- package/dist/cli-bundle/chunks/restore-EXHU34EU.js +0 -17
- package/dist/cli-bundle/chunks/test-SY76DZTO.js +0 -35
- package/dist/cli-bundle/chunks/update-A7EICML6.js +0 -24
- package/dist/cli-bundle/chunks/update-IKJZWLQC.js +0 -28
- package/dist/cli-bundle/chunks/validate-GAJ6FUSI.js.map +0 -1
- package/dist/cli-bundle/chunks/validate-NRY6MFXN.js.map +0 -7
- /package/dist/cli-bundle/chunks/{activity-BIML7K2D.js.map → activity-4XQIDNM5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-5YWLSPGE.js.map → activity-YKAKZTZ4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QCDTQCMW.js.map → chunk-5JE6SMYS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5JIWFWOZ.js.map → chunk-N6DNM2FA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GVJE5T7Q.js.map → chunk-NER3KUUS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MEZZZBYX.js.map → chunk-PDXT6Q55.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YVKZ3ANP.js.map → chunk-RX3HQSYG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LOWVNZBZ.js.map → chunk-S4APD35C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6NYJGMTY.js.map → chunk-T35XLYZF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-BE2SR6QL.js.map → chunk-TT42JUMF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SU3TB4NS.js.map → chunk-YOF5VPKM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5E7N4T2Z.js.map → chunk-ZMD35NYG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-AFVKPR57.js.map → close-3YRR3XY6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-6YODBUIV.js.map → close-OB2Y4QP5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-PKCEHQY3.js.map → context-4OQGIPSO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-OYXRGY7S.js.map → context-WLA6IAWE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-Z7YCH3BE.js.map → contracts-HXJLKCRI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-PM45M6PE.js.map → contracts-OJEXMKVW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-BNINIMT7.js.map → create-WKOZKPQR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-QWE4YYK5.js.map → create-XWWQFQ6S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-CGNQJXFE.js.map → extension-NBAH62ML.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-SGRRS72R.js.map → extension-ZF6ZZPOU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-N3JK7VBW.js.map → history-RYKLC72X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-IRL7WJ3E.js.map → history-SGPYRAFT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-XIDPABA4.js.map → history-redact-4H3FCKF3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-4GESW7RM.js.map → history-redact-54ICFKXM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-D7BF5CL2.js.map → init-RPIPQUNV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-472TIOVK.js.map → init-SKQAESQS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-EXHU34EU.js.map → list-64LHZ3HM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-44IHMMZZ.js.map → list-7LXBTEKI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-VBCELP5G.js.map → restore-PXOFL6AM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-IB2NZZWD.js.map → restore-YJ2ET6AT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-R227JOL6.js.map → schema-2PUXCZ25.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-7UBETML4.js.map → schema-Y6DXXK2F.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-QY44WAMR.js.map → search-3S72CTD6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-SY76DZTO.js.map → search-WNUNBQXO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-IKJZWLQC.js.map → test-DQ2QFJ7W.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-A7EICML6.js.map → test-W7QBLVJS.js.map} +0 -0
|
@@ -1,762 +1,37 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="034228c0-2ef9-5500-a0de-723ef2544e22")}catch(e){}}();
|
|
3
3
|
import {
|
|
4
4
|
runActivity
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Z2CRRZYF.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
runList
|
|
10
|
-
} from "./chunk-AIKU3IIL.js";
|
|
7
|
+
runCalendar
|
|
8
|
+
} from "./chunk-KL22PY6L.js";
|
|
11
9
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
parseType
|
|
15
|
-
} from "./chunk-YSGTMDWC.js";
|
|
10
|
+
runList
|
|
11
|
+
} from "./chunk-YSAH5FY5.js";
|
|
16
12
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./chunk-
|
|
13
|
+
parseIntegerLimit
|
|
14
|
+
} from "./chunk-YFIE7YK6.js";
|
|
19
15
|
import {
|
|
20
16
|
isTerminalStatus,
|
|
21
17
|
normalizeStatusForRegistry,
|
|
22
18
|
normalizeStatusInput
|
|
23
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-HK72NWAD.js";
|
|
20
|
+
import {
|
|
21
|
+
compareTimestampStrings
|
|
22
|
+
} from "./chunk-FJRKQREY.js";
|
|
24
23
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} from "./chunk-CXR3CMBQ.js";
|
|
24
|
+
PmCliError,
|
|
25
|
+
readSettings
|
|
26
|
+
} from "./chunk-US3T3W5J.js";
|
|
29
27
|
import {
|
|
30
28
|
CONTEXT_DEPTH_VALUES,
|
|
31
29
|
CONTEXT_SECTION_VALUES,
|
|
32
30
|
EXIT_CODE,
|
|
33
|
-
PmCliError,
|
|
34
31
|
SETTINGS_DEFAULTS,
|
|
35
|
-
getActiveExtensionRegistrations,
|
|
36
|
-
getSettingsPath,
|
|
37
|
-
levenshteinDistanceWithinLimit,
|
|
38
|
-
pathExists,
|
|
39
|
-
readSettings,
|
|
40
|
-
resolveItemTypeRegistry,
|
|
41
32
|
resolvePmRoot,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
weekdayOrderIndex
|
|
45
|
-
} from "./chunk-L4SLHV6G.js";
|
|
46
|
-
|
|
47
|
-
// dist/cli/commands/calendar.js
|
|
48
|
-
import { encode as encodeToon } from "@toon-format/toon";
|
|
49
|
-
var CALENDAR_VIEW_VALUES = ["agenda", "day", "week", "month"];
|
|
50
|
-
var UTC_DAY_TO_WEEKDAY = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"];
|
|
51
|
-
var DEFAULT_RECURRENCE_LOOKAHEAD_DAYS = 365;
|
|
52
|
-
var DEFAULT_RECURRENCE_LOOKBACK_DAYS = 365;
|
|
53
|
-
var DEFAULT_EVENTS_ONLY_LOOKAHEAD_DAYS = 28;
|
|
54
|
-
var MAX_RECURRENCE_OCCURRENCES = 1e3;
|
|
55
|
-
function parseNonNegativeInteger(raw, label) {
|
|
56
|
-
if (raw === void 0)
|
|
57
|
-
return void 0;
|
|
58
|
-
const parsed = Number(raw);
|
|
59
|
-
if (!Number.isInteger(parsed) || parsed < 0) {
|
|
60
|
-
throw new PmCliError(`${label} must be a non-negative integer`, EXIT_CODE.USAGE);
|
|
61
|
-
}
|
|
62
|
-
return parsed;
|
|
63
|
-
}
|
|
64
|
-
function parseIncludeSources(raw) {
|
|
65
|
-
if (!raw) {
|
|
66
|
-
return /* @__PURE__ */ new Set(["deadlines", "reminders", "events"]);
|
|
67
|
-
}
|
|
68
|
-
const normalized = raw.trim().toLowerCase();
|
|
69
|
-
if (normalized === "all") {
|
|
70
|
-
return /* @__PURE__ */ new Set(["deadlines", "reminders", "events"]);
|
|
71
|
-
}
|
|
72
|
-
const values = normalized.split(/[\|,]/).map((value) => value.trim()).filter((value) => value.length > 0);
|
|
73
|
-
if (values.length === 0) {
|
|
74
|
-
throw new PmCliError("Calendar include filter must not be empty", EXIT_CODE.USAGE);
|
|
75
|
-
}
|
|
76
|
-
const include = /* @__PURE__ */ new Set();
|
|
77
|
-
for (const value of values) {
|
|
78
|
-
if (value === "deadlines" || value === "deadline") {
|
|
79
|
-
include.add("deadlines");
|
|
80
|
-
continue;
|
|
81
|
-
}
|
|
82
|
-
if (value === "reminders" || value === "reminder") {
|
|
83
|
-
include.add("reminders");
|
|
84
|
-
continue;
|
|
85
|
-
}
|
|
86
|
-
if (value === "events" || value === "event" || value === "scheduled") {
|
|
87
|
-
include.add("events");
|
|
88
|
-
continue;
|
|
89
|
-
}
|
|
90
|
-
throw new PmCliError("Calendar include filter must be deadlines|reminders|events|scheduled|all", EXIT_CODE.USAGE);
|
|
91
|
-
}
|
|
92
|
-
return include;
|
|
93
|
-
}
|
|
94
|
-
function suggestClosestChoice(value, choices) {
|
|
95
|
-
let best;
|
|
96
|
-
for (const choice of choices) {
|
|
97
|
-
const distance = levenshteinDistanceWithinLimit(value, choice, 2);
|
|
98
|
-
if (distance !== null && (best === void 0 || distance < best.distance)) {
|
|
99
|
-
best = { choice, distance };
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
return best?.choice;
|
|
103
|
-
}
|
|
104
|
-
function parseView(raw) {
|
|
105
|
-
if (!raw)
|
|
106
|
-
return "agenda";
|
|
107
|
-
const normalized = raw.trim().toLowerCase();
|
|
108
|
-
if (!CALENDAR_VIEW_VALUES.includes(normalized)) {
|
|
109
|
-
const suggestion = suggestClosestChoice(normalized, CALENDAR_VIEW_VALUES);
|
|
110
|
-
throw new PmCliError(`Calendar view must be one of ${CALENDAR_VIEW_VALUES.join("|")}${suggestion ? `. Did you mean "${suggestion}"?` : "."}`, EXIT_CODE.USAGE);
|
|
111
|
-
}
|
|
112
|
-
return normalized;
|
|
113
|
-
}
|
|
114
|
-
function parseStatus(raw, statusRegistry) {
|
|
115
|
-
if (raw === void 0)
|
|
116
|
-
return void 0;
|
|
117
|
-
const normalized = normalizeStatusInput(raw, statusRegistry);
|
|
118
|
-
if (!normalized) {
|
|
119
|
-
const allowedStatuses = statusRegistry.definitions.map((definition) => definition.id);
|
|
120
|
-
throw new PmCliError(`Calendar status filter must be one of ${allowedStatuses.join("|")}`, EXIT_CODE.USAGE);
|
|
121
|
-
}
|
|
122
|
-
return normalized;
|
|
123
|
-
}
|
|
124
|
-
function parseAssigneeFilter(raw) {
|
|
125
|
-
if (raw === void 0) {
|
|
126
|
-
return void 0;
|
|
127
|
-
}
|
|
128
|
-
const normalized = raw.trim().toLowerCase();
|
|
129
|
-
if (!normalized) {
|
|
130
|
-
throw new PmCliError("Calendar assignee filter must be one of assigned|unassigned", EXIT_CODE.USAGE);
|
|
131
|
-
}
|
|
132
|
-
if (normalized !== "assigned" && normalized !== "unassigned") {
|
|
133
|
-
throw new PmCliError(`Invalid calendar assignee filter "${raw}". Allowed: assigned|unassigned`, EXIT_CODE.USAGE);
|
|
134
|
-
}
|
|
135
|
-
return normalized;
|
|
136
|
-
}
|
|
137
|
-
function toUtcDayKey(timestamp) {
|
|
138
|
-
return new Date(timestamp).toISOString().slice(0, 10);
|
|
139
|
-
}
|
|
140
|
-
function toLocalDayKey(timestamp, timezone) {
|
|
141
|
-
if (!timezone || timezone === "UTC") {
|
|
142
|
-
return toUtcDayKey(timestamp);
|
|
143
|
-
}
|
|
144
|
-
try {
|
|
145
|
-
const parts = new Intl.DateTimeFormat("en-CA", {
|
|
146
|
-
timeZone: timezone,
|
|
147
|
-
year: "numeric",
|
|
148
|
-
month: "2-digit",
|
|
149
|
-
day: "2-digit"
|
|
150
|
-
}).formatToParts(new Date(timestamp));
|
|
151
|
-
const year = parts.find((part) => part.type === "year")?.value;
|
|
152
|
-
const month = parts.find((part) => part.type === "month")?.value;
|
|
153
|
-
const day = parts.find((part) => part.type === "day")?.value;
|
|
154
|
-
if (year && month && day) {
|
|
155
|
-
return `${year}-${month}-${day}`;
|
|
156
|
-
}
|
|
157
|
-
} catch {
|
|
158
|
-
}
|
|
159
|
-
return toUtcDayKey(timestamp);
|
|
160
|
-
}
|
|
161
|
-
function startOfUtcDay(timestamp) {
|
|
162
|
-
const date = new Date(timestamp);
|
|
163
|
-
return new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate(), 0, 0, 0, 0)).toISOString();
|
|
164
|
-
}
|
|
165
|
-
function addUtcDays(timestamp, days) {
|
|
166
|
-
const date = new Date(timestamp);
|
|
167
|
-
return new Date(date.getTime() + days * 24 * 60 * 60 * 1e3).toISOString();
|
|
168
|
-
}
|
|
169
|
-
function startOfUtcWeekMonday(timestamp) {
|
|
170
|
-
const base = new Date(startOfUtcDay(timestamp));
|
|
171
|
-
const day = base.getUTCDay();
|
|
172
|
-
const delta = day === 0 ? -6 : 1 - day;
|
|
173
|
-
return addUtcDays(base.toISOString(), delta);
|
|
174
|
-
}
|
|
175
|
-
function startOfUtcMonth(timestamp) {
|
|
176
|
-
const date = new Date(timestamp);
|
|
177
|
-
return new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), 1, 0, 0, 0, 0)).toISOString();
|
|
178
|
-
}
|
|
179
|
-
function startOfNextUtcMonth(timestamp) {
|
|
180
|
-
const date = new Date(timestamp);
|
|
181
|
-
return new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + 1, 1, 0, 0, 0, 0)).toISOString();
|
|
182
|
-
}
|
|
183
|
-
function maxTimestamp(left, right) {
|
|
184
|
-
return compareTimestampStrings(left, right) >= 0 ? left : right;
|
|
185
|
-
}
|
|
186
|
-
function toSortedCountRecord(values) {
|
|
187
|
-
return Object.fromEntries([...values.entries()].sort(([left], [right]) => left.localeCompare(right)));
|
|
188
|
-
}
|
|
189
|
-
function incrementCount(values, key) {
|
|
190
|
-
values.set(key, (values.get(key) ?? 0) + 1);
|
|
191
|
-
}
|
|
192
|
-
function formatRecurrenceRuleForSummary(rule) {
|
|
193
|
-
if (!rule) {
|
|
194
|
-
return null;
|
|
195
|
-
}
|
|
196
|
-
const parts = [`freq=${rule.freq}`];
|
|
197
|
-
if (rule.interval !== void 0) {
|
|
198
|
-
parts.push(`interval=${rule.interval}`);
|
|
199
|
-
}
|
|
200
|
-
if (rule.count !== void 0) {
|
|
201
|
-
parts.push(`count=${rule.count}`);
|
|
202
|
-
}
|
|
203
|
-
if (rule.until) {
|
|
204
|
-
parts.push(`until=${rule.until}`);
|
|
205
|
-
}
|
|
206
|
-
if (rule.by_weekday && rule.by_weekday.length > 0) {
|
|
207
|
-
const weekdays = [...rule.by_weekday].sort((left, right) => weekdayOrderIndex(left) - weekdayOrderIndex(right));
|
|
208
|
-
parts.push(`by_weekday=${weekdays.join("|")}`);
|
|
209
|
-
}
|
|
210
|
-
if (rule.by_month_day && rule.by_month_day.length > 0) {
|
|
211
|
-
const monthDays = [...rule.by_month_day].sort((left, right) => left - right);
|
|
212
|
-
parts.push(`by_month_day=${monthDays.join("|")}`);
|
|
213
|
-
}
|
|
214
|
-
if (rule.exdates && rule.exdates.length > 0) {
|
|
215
|
-
const exdates = [...rule.exdates].sort((left, right) => left.localeCompare(right));
|
|
216
|
-
parts.push(`exdates=${exdates.join("|")}`);
|
|
217
|
-
}
|
|
218
|
-
return parts.join(",");
|
|
219
|
-
}
|
|
220
|
-
function buildUtcTimestamp(year, month, day, timeSource) {
|
|
221
|
-
const candidate = new Date(Date.UTC(year, month, day, timeSource.getUTCHours(), timeSource.getUTCMinutes(), timeSource.getUTCSeconds(), timeSource.getUTCMilliseconds()));
|
|
222
|
-
if (candidate.getUTCFullYear() !== year || candidate.getUTCMonth() !== month || candidate.getUTCDate() !== day) {
|
|
223
|
-
return void 0;
|
|
224
|
-
}
|
|
225
|
-
return candidate.toISOString();
|
|
226
|
-
}
|
|
227
|
-
function weekdayToken(timestamp) {
|
|
228
|
-
return UTC_DAY_TO_WEEKDAY[new Date(timestamp).getUTCDay()];
|
|
229
|
-
}
|
|
230
|
-
function normalizeInstantKey(timestamp) {
|
|
231
|
-
const parsed = Date.parse(timestamp);
|
|
232
|
-
return Number.isFinite(parsed) ? new Date(parsed).toISOString() : null;
|
|
233
|
-
}
|
|
234
|
-
function buildExcludedInstantSet(exdates) {
|
|
235
|
-
const excluded = /* @__PURE__ */ new Set();
|
|
236
|
-
for (const exdate of exdates ?? []) {
|
|
237
|
-
const instantKey = normalizeInstantKey(exdate);
|
|
238
|
-
if (instantKey) {
|
|
239
|
-
excluded.add(instantKey);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
return excluded;
|
|
243
|
-
}
|
|
244
|
-
function buildRecurringEventWindow(start, end, nowValue, lookbackDays, lookaheadDays) {
|
|
245
|
-
const windowStart = start ?? addUtcDays(nowValue, -(lookbackDays ?? DEFAULT_RECURRENCE_LOOKBACK_DAYS));
|
|
246
|
-
const windowEnd = end ?? addUtcDays(start ?? nowValue, lookaheadDays ?? DEFAULT_RECURRENCE_LOOKAHEAD_DAYS);
|
|
247
|
-
return {
|
|
248
|
-
start: windowStart,
|
|
249
|
-
end: compareTimestampStrings(windowEnd, windowStart) > 0 ? windowEnd : addUtcDays(windowStart, 1)
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
function buildRecurrenceExpansionContext(startAt, recurrence, window, occurrenceLimit) {
|
|
253
|
-
const recurrenceWeekdays = recurrence.by_weekday !== void 0 ? [...recurrence.by_weekday] : [weekdayToken(startAt)];
|
|
254
|
-
const recurrenceMonthDays = recurrence.by_month_day !== void 0 ? [...recurrence.by_month_day] : [new Date(startAt).getUTCDate()];
|
|
255
|
-
return {
|
|
256
|
-
startAt,
|
|
257
|
-
startDate: new Date(startAt),
|
|
258
|
-
window,
|
|
259
|
-
maxOccurrences: occurrenceLimit ?? MAX_RECURRENCE_OCCURRENCES,
|
|
260
|
-
interval: recurrence.interval ?? 1,
|
|
261
|
-
countLimit: recurrence.count ?? Number.POSITIVE_INFINITY,
|
|
262
|
-
until: recurrence.until,
|
|
263
|
-
excluded: buildExcludedInstantSet(recurrence.exdates),
|
|
264
|
-
weekdayFilter: recurrence.by_weekday !== void 0 ? new Set(recurrence.by_weekday) : void 0,
|
|
265
|
-
monthDayFilter: recurrence.by_month_day !== void 0 ? new Set(recurrence.by_month_day) : void 0,
|
|
266
|
-
sortedWeekdays: [...new Set(recurrenceWeekdays)].sort((left, right) => weekdayOrderIndex(left) - weekdayOrderIndex(right)),
|
|
267
|
-
sortedMonthDays: [...new Set(recurrenceMonthDays)].sort((left, right) => left - right),
|
|
268
|
-
occurrences: [],
|
|
269
|
-
produced: 0
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
function consumeRecurrenceCandidate(context, candidateAt) {
|
|
273
|
-
if (compareTimestampStrings(candidateAt, context.startAt) < 0) {
|
|
274
|
-
return "continue";
|
|
275
|
-
}
|
|
276
|
-
if (context.until && compareTimestampStrings(candidateAt, context.until) > 0) {
|
|
277
|
-
return "stop";
|
|
278
|
-
}
|
|
279
|
-
if (compareTimestampStrings(candidateAt, context.window.end) >= 0) {
|
|
280
|
-
return "stop";
|
|
281
|
-
}
|
|
282
|
-
if (context.excluded.has(candidateAt)) {
|
|
283
|
-
return "continue";
|
|
284
|
-
}
|
|
285
|
-
context.produced += 1;
|
|
286
|
-
if (compareTimestampStrings(candidateAt, context.window.start) >= 0) {
|
|
287
|
-
context.occurrences.push(candidateAt);
|
|
288
|
-
}
|
|
289
|
-
return context.produced >= context.countLimit || context.occurrences.length >= context.maxOccurrences ? "stop" : "continue";
|
|
290
|
-
}
|
|
291
|
-
function recurrenceDayMatchesFilters(context, candidateAt) {
|
|
292
|
-
const candidateWeekday = weekdayToken(candidateAt);
|
|
293
|
-
const candidateMonthDay = new Date(candidateAt).getUTCDate();
|
|
294
|
-
const weekdayMatches = !context.weekdayFilter || context.weekdayFilter.has(candidateWeekday);
|
|
295
|
-
const monthDayMatches = !context.monthDayFilter || context.monthDayFilter.has(candidateMonthDay);
|
|
296
|
-
return weekdayMatches && monthDayMatches;
|
|
297
|
-
}
|
|
298
|
-
function expandDailyOccurrences(context) {
|
|
299
|
-
let candidateAt = context.startAt;
|
|
300
|
-
for (let iteration = 0; iteration < context.maxOccurrences; iteration += 1) {
|
|
301
|
-
if (recurrenceDayMatchesFilters(context, candidateAt) && consumeRecurrenceCandidate(context, candidateAt) === "stop") {
|
|
302
|
-
break;
|
|
303
|
-
}
|
|
304
|
-
candidateAt = addUtcDays(candidateAt, context.interval);
|
|
305
|
-
}
|
|
306
|
-
return context.occurrences;
|
|
307
|
-
}
|
|
308
|
-
function buildWeeklyCandidateAt(context, candidateWeekStart, weekday) {
|
|
309
|
-
const dayOffset = weekdayOrderIndex(weekday);
|
|
310
|
-
const candidateDay = addUtcDays(candidateWeekStart, dayOffset);
|
|
311
|
-
const dayDate = new Date(candidateDay);
|
|
312
|
-
return new Date(Date.UTC(dayDate.getUTCFullYear(), dayDate.getUTCMonth(), dayDate.getUTCDate(), context.startDate.getUTCHours(), context.startDate.getUTCMinutes(), context.startDate.getUTCSeconds(), context.startDate.getUTCMilliseconds())).toISOString();
|
|
313
|
-
}
|
|
314
|
-
function expandWeeklyOccurrences(context) {
|
|
315
|
-
const weekStart = startOfUtcWeekMonday(context.startAt);
|
|
316
|
-
for (let step = 0; step < context.maxOccurrences; step += 1) {
|
|
317
|
-
const candidateWeekStart = addUtcDays(weekStart, step * context.interval * 7);
|
|
318
|
-
for (const weekday of context.sortedWeekdays) {
|
|
319
|
-
const candidateAt = buildWeeklyCandidateAt(context, candidateWeekStart, weekday);
|
|
320
|
-
if (!recurrenceDayMatchesFilters(context, candidateAt)) {
|
|
321
|
-
continue;
|
|
322
|
-
}
|
|
323
|
-
if (consumeRecurrenceCandidate(context, candidateAt) === "stop") {
|
|
324
|
-
return context.occurrences;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
return context.occurrences;
|
|
329
|
-
}
|
|
330
|
-
function expandMonthlyOccurrences(context) {
|
|
331
|
-
const startYear = context.startDate.getUTCFullYear();
|
|
332
|
-
const startMonth = context.startDate.getUTCMonth();
|
|
333
|
-
for (let step = 0; step < context.maxOccurrences; step += 1) {
|
|
334
|
-
const monthAnchor = new Date(Date.UTC(startYear, startMonth + step * context.interval, 1, 0, 0, 0, 0));
|
|
335
|
-
for (const monthDay of context.sortedMonthDays) {
|
|
336
|
-
const candidateAt = buildUtcTimestamp(monthAnchor.getUTCFullYear(), monthAnchor.getUTCMonth(), monthDay, context.startDate);
|
|
337
|
-
if (!candidateAt || !recurrenceDayMatchesFilters(context, candidateAt)) {
|
|
338
|
-
continue;
|
|
339
|
-
}
|
|
340
|
-
if (consumeRecurrenceCandidate(context, candidateAt) === "stop") {
|
|
341
|
-
return context.occurrences;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
return context.occurrences;
|
|
346
|
-
}
|
|
347
|
-
function expandYearlyOccurrences(context) {
|
|
348
|
-
const year = context.startDate.getUTCFullYear();
|
|
349
|
-
const month = context.startDate.getUTCMonth();
|
|
350
|
-
for (let step = 0; step < context.maxOccurrences; step += 1) {
|
|
351
|
-
const candidateYear = year + step * context.interval;
|
|
352
|
-
for (const monthDay of context.sortedMonthDays) {
|
|
353
|
-
const candidateAt = buildUtcTimestamp(candidateYear, month, monthDay, context.startDate);
|
|
354
|
-
if (!candidateAt || !recurrenceDayMatchesFilters(context, candidateAt)) {
|
|
355
|
-
continue;
|
|
356
|
-
}
|
|
357
|
-
if (consumeRecurrenceCandidate(context, candidateAt) === "stop") {
|
|
358
|
-
return context.occurrences;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
return context.occurrences;
|
|
363
|
-
}
|
|
364
|
-
function expandRecurringOccurrences(startAt, recurrence, window, occurrenceLimit) {
|
|
365
|
-
const context = buildRecurrenceExpansionContext(startAt, recurrence, window, occurrenceLimit);
|
|
366
|
-
if (recurrence.freq === "daily") {
|
|
367
|
-
return expandDailyOccurrences(context);
|
|
368
|
-
}
|
|
369
|
-
if (recurrence.freq === "weekly") {
|
|
370
|
-
return expandWeeklyOccurrences(context);
|
|
371
|
-
}
|
|
372
|
-
if (recurrence.freq === "monthly") {
|
|
373
|
-
return expandMonthlyOccurrences(context);
|
|
374
|
-
}
|
|
375
|
-
return expandYearlyOccurrences(context);
|
|
376
|
-
}
|
|
377
|
-
function sortEvents(values) {
|
|
378
|
-
return [...values].sort((a, b) => {
|
|
379
|
-
const byAt = compareTimestampStrings(a.at, b.at);
|
|
380
|
-
if (byAt !== 0)
|
|
381
|
-
return byAt;
|
|
382
|
-
const byPriority = a.item_priority - b.item_priority;
|
|
383
|
-
if (byPriority !== 0)
|
|
384
|
-
return byPriority;
|
|
385
|
-
const byId = a.item_id.localeCompare(b.item_id);
|
|
386
|
-
if (byId !== 0)
|
|
387
|
-
return byId;
|
|
388
|
-
const byKind = a.kind.localeCompare(b.kind);
|
|
389
|
-
if (byKind !== 0)
|
|
390
|
-
return byKind;
|
|
391
|
-
const byEventTitle = String(a.event_title).localeCompare(String(b.event_title));
|
|
392
|
-
if (byEventTitle !== 0)
|
|
393
|
-
return byEventTitle;
|
|
394
|
-
return String(a.reminder_text).localeCompare(String(b.reminder_text));
|
|
395
|
-
});
|
|
396
|
-
}
|
|
397
|
-
function buildItemCalendarRowBase(item) {
|
|
398
|
-
return {
|
|
399
|
-
item_id: item.id,
|
|
400
|
-
item_title: item.title,
|
|
401
|
-
item_type: item.type,
|
|
402
|
-
item_status: item.status,
|
|
403
|
-
item_priority: item.priority,
|
|
404
|
-
item_assignee: item.assignee ?? null,
|
|
405
|
-
item_deadline: item.deadline ?? null,
|
|
406
|
-
item_tags: item.tags
|
|
407
|
-
};
|
|
408
|
-
}
|
|
409
|
-
function buildDeadlineRow(item) {
|
|
410
|
-
if (!item.deadline) {
|
|
411
|
-
return null;
|
|
412
|
-
}
|
|
413
|
-
return {
|
|
414
|
-
at: item.deadline,
|
|
415
|
-
date: toUtcDayKey(item.deadline),
|
|
416
|
-
kind: "deadline",
|
|
417
|
-
reminder_text: null,
|
|
418
|
-
event_title: null,
|
|
419
|
-
event_end: null,
|
|
420
|
-
event_location: null,
|
|
421
|
-
event_all_day: null,
|
|
422
|
-
event_timezone: null,
|
|
423
|
-
event_recurring: null,
|
|
424
|
-
event_recurrence_rule: null,
|
|
425
|
-
...buildItemCalendarRowBase(item),
|
|
426
|
-
item_deadline: item.deadline
|
|
427
|
-
};
|
|
428
|
-
}
|
|
429
|
-
function buildReminderRows(item) {
|
|
430
|
-
return (item.reminders ?? []).map((reminder) => ({
|
|
431
|
-
at: reminder.at,
|
|
432
|
-
date: toUtcDayKey(reminder.at),
|
|
433
|
-
kind: "reminder",
|
|
434
|
-
reminder_text: reminder.text,
|
|
435
|
-
event_title: null,
|
|
436
|
-
event_end: null,
|
|
437
|
-
event_location: null,
|
|
438
|
-
event_all_day: null,
|
|
439
|
-
event_timezone: null,
|
|
440
|
-
event_recurring: null,
|
|
441
|
-
event_recurrence_rule: null,
|
|
442
|
-
...buildItemCalendarRowBase(item)
|
|
443
|
-
}));
|
|
444
|
-
}
|
|
445
|
-
function recurringDurationMs(startAt, endAt) {
|
|
446
|
-
if (!endAt) {
|
|
447
|
-
return null;
|
|
448
|
-
}
|
|
449
|
-
const duration = Date.parse(endAt) - Date.parse(startAt);
|
|
450
|
-
return Number.isFinite(duration) && duration > 0 ? duration : null;
|
|
451
|
-
}
|
|
452
|
-
function eventOccurrenceEnd(occurrenceAt, event, durationMs) {
|
|
453
|
-
return event.recurrence && durationMs !== null ? new Date(new Date(occurrenceAt).getTime() + durationMs).toISOString() : event.end_at ?? null;
|
|
454
|
-
}
|
|
455
|
-
function buildScheduledEventRows(item, event, recurringWindow, occurrenceLimit) {
|
|
456
|
-
const recurrenceRuleSummary = formatRecurrenceRuleForSummary(event.recurrence);
|
|
457
|
-
const durationMs = recurringDurationMs(event.start_at, event.end_at);
|
|
458
|
-
const occurrences = event.recurrence ? expandRecurringOccurrences(event.start_at, event.recurrence, recurringWindow, occurrenceLimit) : [event.start_at];
|
|
459
|
-
return occurrences.map((occurrenceAt) => ({
|
|
460
|
-
at: occurrenceAt,
|
|
461
|
-
// All-day events are timezone-agnostic calendar dates: bucket by the
|
|
462
|
-
// literal start date. Timed events bucket by their local day in the
|
|
463
|
-
// event's timezone (defaults to UTC when unset).
|
|
464
|
-
date: event.all_day === true ? occurrenceAt.slice(0, 10) : toLocalDayKey(occurrenceAt, event.timezone),
|
|
465
|
-
kind: "event",
|
|
466
|
-
reminder_text: event.description ?? null,
|
|
467
|
-
event_title: event.title ?? item.title,
|
|
468
|
-
event_end: eventOccurrenceEnd(occurrenceAt, event, durationMs),
|
|
469
|
-
event_location: event.location ?? null,
|
|
470
|
-
event_all_day: event.all_day ?? null,
|
|
471
|
-
event_timezone: event.timezone ?? null,
|
|
472
|
-
event_recurring: event.recurrence ? true : false,
|
|
473
|
-
event_recurrence_rule: recurrenceRuleSummary,
|
|
474
|
-
...buildItemCalendarRowBase(item)
|
|
475
|
-
}));
|
|
476
|
-
}
|
|
477
|
-
function buildEventSeed(items, recurringWindow, includeSources, occurrenceLimit) {
|
|
478
|
-
const events = [];
|
|
479
|
-
for (const item of items) {
|
|
480
|
-
const deadlineRow = includeSources.has("deadlines") ? buildDeadlineRow(item) : null;
|
|
481
|
-
if (deadlineRow) {
|
|
482
|
-
events.push(deadlineRow);
|
|
483
|
-
}
|
|
484
|
-
if (includeSources.has("reminders")) {
|
|
485
|
-
events.push(...buildReminderRows(item));
|
|
486
|
-
}
|
|
487
|
-
for (const event of includeSources.has("events") ? item.events ?? [] : []) {
|
|
488
|
-
events.push(...buildScheduledEventRows(item, event, recurringWindow, occurrenceLimit));
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
return sortEvents(events);
|
|
492
|
-
}
|
|
493
|
-
function filterItems(items, options, typeRegistry, statusRegistry, runtimeFieldFilters) {
|
|
494
|
-
const typeFilter = parseType(options.type, typeRegistry);
|
|
495
|
-
const tagFilter = options.tag?.trim().toLowerCase();
|
|
496
|
-
const priorityFilter = parsePriority(options.priority);
|
|
497
|
-
const statusFilter = parseStatus(options.status, statusRegistry);
|
|
498
|
-
const assigneeFilter = options.assignee?.trim();
|
|
499
|
-
const assigneeModeFilter = parseAssigneeFilter(options.assigneeFilter);
|
|
500
|
-
const sprintFilter = options.sprint?.trim();
|
|
501
|
-
const releaseFilter = options.release?.trim();
|
|
502
|
-
if (assigneeFilter && (assigneeFilter.toLowerCase() === "none" || assigneeFilter.toLowerCase() === "null")) {
|
|
503
|
-
throw new PmCliError('--assignee no longer accepts "none" or "null". Use --assignee-filter unassigned.', EXIT_CODE.USAGE);
|
|
504
|
-
}
|
|
505
|
-
if (assigneeFilter !== void 0 && assigneeModeFilter === "unassigned") {
|
|
506
|
-
throw new PmCliError("Cannot combine --assignee with --assignee-filter unassigned", EXIT_CODE.USAGE);
|
|
507
|
-
}
|
|
508
|
-
return items.filter((item) => itemMatchesCalendarFilters(item, {
|
|
509
|
-
typeFilter,
|
|
510
|
-
tagFilter,
|
|
511
|
-
priorityFilter,
|
|
512
|
-
statusFilter,
|
|
513
|
-
assigneeFilter,
|
|
514
|
-
assigneeModeFilter,
|
|
515
|
-
sprintFilter,
|
|
516
|
-
releaseFilter,
|
|
517
|
-
runtimeFieldFilters
|
|
518
|
-
}));
|
|
519
|
-
}
|
|
520
|
-
function itemMatchesCalendarFilters(item, filters) {
|
|
521
|
-
return itemMatchesCalendarIdentityFilters(item, filters) && itemMatchesCalendarOwnerFilters(item, filters) && matchesRuntimeFilters(item, filters.runtimeFieldFilters);
|
|
522
|
-
}
|
|
523
|
-
function itemMatchesCalendarIdentityFilters(item, filters) {
|
|
524
|
-
if (filters.typeFilter && item.type !== filters.typeFilter)
|
|
525
|
-
return false;
|
|
526
|
-
if (filters.tagFilter && !item.tags.some((tag) => tag.trim().toLowerCase() === filters.tagFilter))
|
|
527
|
-
return false;
|
|
528
|
-
if (filters.priorityFilter !== void 0 && item.priority !== filters.priorityFilter)
|
|
529
|
-
return false;
|
|
530
|
-
if (filters.statusFilter && item.status !== filters.statusFilter)
|
|
531
|
-
return false;
|
|
532
|
-
return true;
|
|
533
|
-
}
|
|
534
|
-
function itemMatchesCalendarOwnerFilters(item, filters) {
|
|
535
|
-
if (filters.assigneeModeFilter === "assigned" && !item.assignee)
|
|
536
|
-
return false;
|
|
537
|
-
if (filters.assigneeModeFilter === "unassigned" && item.assignee)
|
|
538
|
-
return false;
|
|
539
|
-
if (filters.assigneeFilter !== void 0 && item.assignee !== filters.assigneeFilter)
|
|
540
|
-
return false;
|
|
541
|
-
if (filters.sprintFilter !== void 0 && item.sprint !== filters.sprintFilter)
|
|
542
|
-
return false;
|
|
543
|
-
if (filters.releaseFilter !== void 0 && item.release !== filters.releaseFilter)
|
|
544
|
-
return false;
|
|
545
|
-
return true;
|
|
546
|
-
}
|
|
547
|
-
function includeEventInWindow(event, start, end) {
|
|
548
|
-
if (start && compareTimestampStrings(event.at, start) < 0) {
|
|
549
|
-
return false;
|
|
550
|
-
}
|
|
551
|
-
if (end && compareTimestampStrings(event.at, end) >= 0) {
|
|
552
|
-
return false;
|
|
553
|
-
}
|
|
554
|
-
return true;
|
|
555
|
-
}
|
|
556
|
-
function resolveCalendarBoundaryInput(raw, nowValue, fieldLabel) {
|
|
557
|
-
if (raw.trim().toLowerCase() === "today") {
|
|
558
|
-
return startOfUtcDay(nowValue);
|
|
559
|
-
}
|
|
560
|
-
return resolveIsoOrRelative(raw, new Date(nowValue), fieldLabel);
|
|
561
|
-
}
|
|
562
|
-
function buildRange(view, options, nowValue) {
|
|
563
|
-
const anchor = options.date ? resolveCalendarBoundaryInput(options.date, nowValue, "--date") : nowValue;
|
|
564
|
-
const includePast = options.past === true;
|
|
565
|
-
const fullPeriodRequested = options.fullPeriod === true;
|
|
566
|
-
const from = options.from ? resolveCalendarBoundaryInput(options.from, nowValue, "--from") : void 0;
|
|
567
|
-
const to = options.to ? resolveCalendarBoundaryInput(options.to, nowValue, "--to") : void 0;
|
|
568
|
-
if (from && to && compareTimestampStrings(from, to) >= 0) {
|
|
569
|
-
throw new PmCliError("Calendar --from must be before --to", EXIT_CODE.USAGE);
|
|
570
|
-
}
|
|
571
|
-
if (view !== "agenda" && (options.from !== void 0 || options.to !== void 0)) {
|
|
572
|
-
throw new PmCliError("--from and --to are only supported for --view agenda", EXIT_CODE.USAGE);
|
|
573
|
-
}
|
|
574
|
-
if (view === "agenda") {
|
|
575
|
-
return buildAgendaRange(anchor, options, nowValue, includePast, fullPeriodRequested, from, to);
|
|
576
|
-
}
|
|
577
|
-
if (view === "day") {
|
|
578
|
-
const dayStart = startOfUtcDay(anchor);
|
|
579
|
-
return buildFixedPeriodRange(anchor, nowValue, includePast, fullPeriodRequested, dayStart, addUtcDays(dayStart, 1));
|
|
580
|
-
}
|
|
581
|
-
if (view === "week") {
|
|
582
|
-
const weekStart = startOfUtcWeekMonday(anchor);
|
|
583
|
-
return buildFixedPeriodRange(anchor, nowValue, includePast, fullPeriodRequested, weekStart, addUtcDays(weekStart, 7));
|
|
584
|
-
}
|
|
585
|
-
const monthStart = startOfUtcMonth(anchor);
|
|
586
|
-
return buildFixedPeriodRange(anchor, nowValue, includePast, fullPeriodRequested, monthStart, startOfNextUtcMonth(anchor));
|
|
587
|
-
}
|
|
588
|
-
function buildAgendaRange(anchor, options, nowValue, includePast, fullPeriodRequested, from, to) {
|
|
589
|
-
if (fullPeriodRequested) {
|
|
590
|
-
throw new PmCliError("--full-period is only supported for --view day|week|month. For agenda windows, use --from and --to.", EXIT_CODE.USAGE);
|
|
591
|
-
}
|
|
592
|
-
return {
|
|
593
|
-
anchor,
|
|
594
|
-
start: from ?? (options.date ? anchor : includePast ? void 0 : nowValue),
|
|
595
|
-
end: to,
|
|
596
|
-
fullPeriod: false
|
|
597
|
-
};
|
|
598
|
-
}
|
|
599
|
-
function buildFixedPeriodRange(anchor, nowValue, includePast, fullPeriodRequested, periodStart, periodEnd) {
|
|
600
|
-
const fullPeriod = includePast || fullPeriodRequested;
|
|
601
|
-
return {
|
|
602
|
-
anchor,
|
|
603
|
-
start: fullPeriod ? periodStart : maxTimestamp(periodStart, nowValue),
|
|
604
|
-
end: periodEnd,
|
|
605
|
-
periodStart,
|
|
606
|
-
periodEnd,
|
|
607
|
-
fullPeriod
|
|
608
|
-
};
|
|
609
|
-
}
|
|
610
|
-
function bucketEventsByDay(events) {
|
|
611
|
-
const dayMap = /* @__PURE__ */ new Map();
|
|
612
|
-
for (const event of events) {
|
|
613
|
-
const list = dayMap.get(event.date) ?? [];
|
|
614
|
-
list.push(event);
|
|
615
|
-
dayMap.set(event.date, list);
|
|
616
|
-
}
|
|
617
|
-
return [...dayMap.entries()].sort(([left], [right]) => left.localeCompare(right)).map(([date, dayEvents]) => ({
|
|
618
|
-
date,
|
|
619
|
-
count: dayEvents.length,
|
|
620
|
-
events: sortEvents(dayEvents)
|
|
621
|
-
}));
|
|
622
|
-
}
|
|
623
|
-
function summarize(events) {
|
|
624
|
-
const itemIds = /* @__PURE__ */ new Set();
|
|
625
|
-
const byType = /* @__PURE__ */ new Map();
|
|
626
|
-
const byStatus = /* @__PURE__ */ new Map();
|
|
627
|
-
let deadlines = 0;
|
|
628
|
-
let reminders = 0;
|
|
629
|
-
let scheduled = 0;
|
|
630
|
-
let recurringEvents = 0;
|
|
631
|
-
for (const event of events) {
|
|
632
|
-
itemIds.add(event.item_id);
|
|
633
|
-
incrementCount(byType, event.item_type);
|
|
634
|
-
incrementCount(byStatus, event.item_status);
|
|
635
|
-
if (event.kind === "deadline") {
|
|
636
|
-
deadlines += 1;
|
|
637
|
-
} else if (event.kind === "reminder") {
|
|
638
|
-
reminders += 1;
|
|
639
|
-
} else {
|
|
640
|
-
scheduled += 1;
|
|
641
|
-
if (event.event_recurring === true) {
|
|
642
|
-
recurringEvents += 1;
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
return {
|
|
647
|
-
events: events.length,
|
|
648
|
-
items: itemIds.size,
|
|
649
|
-
deadlines,
|
|
650
|
-
reminders,
|
|
651
|
-
scheduled,
|
|
652
|
-
by_kind: {
|
|
653
|
-
deadline: deadlines,
|
|
654
|
-
reminder: reminders,
|
|
655
|
-
event: scheduled
|
|
656
|
-
},
|
|
657
|
-
by_type: toSortedCountRecord(byType),
|
|
658
|
-
by_status: toSortedCountRecord(byStatus),
|
|
659
|
-
recurring_events: recurringEvents
|
|
660
|
-
};
|
|
661
|
-
}
|
|
662
|
-
function resolveCalendarExecutionInputs(options) {
|
|
663
|
-
const nowValue = nowIso();
|
|
664
|
-
const view = parseView(options.view);
|
|
665
|
-
const rangeBounds = buildRange(view, options, nowValue);
|
|
666
|
-
const limit = parseIntegerLimit(options.limit);
|
|
667
|
-
const includeSources = parseIncludeSources(options.include);
|
|
668
|
-
const explicitLookahead = parseNonNegativeInteger(options.recurrenceLookaheadDays, "Calendar recurrence lookahead days");
|
|
669
|
-
const recurrenceLookbackDays = parseNonNegativeInteger(options.recurrenceLookbackDays, "Calendar recurrence lookback days");
|
|
670
|
-
const occurrenceLimit = parseNonNegativeInteger(options.occurrenceLimit, "Calendar occurrence limit");
|
|
671
|
-
if (occurrenceLimit !== void 0 && occurrenceLimit < 1) {
|
|
672
|
-
throw new PmCliError("Calendar occurrence limit must be >= 1", EXIT_CODE.USAGE);
|
|
673
|
-
}
|
|
674
|
-
const eventsOnly = includeSources.has("events") && !includeSources.has("deadlines") && !includeSources.has("reminders");
|
|
675
|
-
const hasExplicitBounds = options.to !== void 0 || explicitLookahead !== void 0 || recurrenceLookbackDays !== void 0 || occurrenceLimit !== void 0;
|
|
676
|
-
const eventsOnlyCapApplied = eventsOnly && !hasExplicitBounds;
|
|
677
|
-
return {
|
|
678
|
-
nowValue,
|
|
679
|
-
view,
|
|
680
|
-
rangeBounds,
|
|
681
|
-
limit,
|
|
682
|
-
includeSources,
|
|
683
|
-
occurrenceLimit,
|
|
684
|
-
recurrenceLookaheadDays: eventsOnlyCapApplied ? DEFAULT_EVENTS_ONLY_LOOKAHEAD_DAYS : explicitLookahead,
|
|
685
|
-
recurrenceLookbackWindowDays: eventsOnlyCapApplied && recurrenceLookbackDays === void 0 ? 0 : recurrenceLookbackDays,
|
|
686
|
-
eventsOnlyCapApplied
|
|
687
|
-
};
|
|
688
|
-
}
|
|
689
|
-
function appendCalendarCapWarning(warnings, capApplied) {
|
|
690
|
-
if (!capApplied) {
|
|
691
|
-
return;
|
|
692
|
-
}
|
|
693
|
-
warnings.push(`recurring_events_default_cap_applied:lookback=0d,lookahead=${DEFAULT_EVENTS_ONLY_LOOKAHEAD_DAYS}d -- use --recurrence-lookback-days/--recurrence-lookahead-days or --to for wider range`);
|
|
694
|
-
}
|
|
695
|
-
function buildCalendarFiltersResult(options, runtimeFieldFilters) {
|
|
696
|
-
return {
|
|
697
|
-
type: options.type ?? null,
|
|
698
|
-
tag: options.tag ?? null,
|
|
699
|
-
priority: options.priority ?? null,
|
|
700
|
-
status: options.status ?? null,
|
|
701
|
-
assignee: options.assignee ?? null,
|
|
702
|
-
assignee_filter: options.assigneeFilter ?? null,
|
|
703
|
-
sprint: options.sprint ?? null,
|
|
704
|
-
release: options.release ?? null,
|
|
705
|
-
runtime_filters: runtimeFieldFilters,
|
|
706
|
-
limit: options.limit ?? null,
|
|
707
|
-
include: options.include ?? null,
|
|
708
|
-
full_period: options.fullPeriod === true ? "true" : null,
|
|
709
|
-
recurrence_lookahead_days: options.recurrenceLookaheadDays ?? null,
|
|
710
|
-
recurrence_lookback_days: options.recurrenceLookbackDays ?? null,
|
|
711
|
-
occurrence_limit: options.occurrenceLimit ?? null
|
|
712
|
-
};
|
|
713
|
-
}
|
|
714
|
-
function buildCalendarRangeResult(options, rangeBounds) {
|
|
715
|
-
return {
|
|
716
|
-
start: rangeBounds.start ?? null,
|
|
717
|
-
end: rangeBounds.end ?? null,
|
|
718
|
-
period_start: rangeBounds.periodStart ?? null,
|
|
719
|
-
period_end: rangeBounds.periodEnd ?? null,
|
|
720
|
-
full_period: rangeBounds.fullPeriod,
|
|
721
|
-
past: options.past === true,
|
|
722
|
-
from: options.from ?? null,
|
|
723
|
-
to: options.to ?? null
|
|
724
|
-
};
|
|
725
|
-
}
|
|
726
|
-
async function runCalendar(options, global) {
|
|
727
|
-
const pmRoot = resolvePmRoot(process.cwd(), global.path);
|
|
728
|
-
if (!await pathExists(getSettingsPath(pmRoot))) {
|
|
729
|
-
throw new PmCliError(`Tracker is not initialized at ${pmRoot}. Run pm init first.`, EXIT_CODE.NOT_FOUND);
|
|
730
|
-
}
|
|
731
|
-
const inputs = resolveCalendarExecutionInputs(options);
|
|
732
|
-
const settings = await readSettings(pmRoot);
|
|
733
|
-
const statusRegistry = resolveRuntimeStatusRegistry(settings.schema);
|
|
734
|
-
const runtimeFieldRegistry = resolveRuntimeFieldRegistry(settings.schema);
|
|
735
|
-
const runtimeFieldFilters = collectRuntimeFilterValues(options, runtimeFieldRegistry, "calendar");
|
|
736
|
-
const typeRegistry = resolveItemTypeRegistry(settings, getActiveExtensionRegistrations());
|
|
737
|
-
const listWarnings = [];
|
|
738
|
-
appendCalendarCapWarning(listWarnings, inputs.eventsOnlyCapApplied);
|
|
739
|
-
const items = await listAllFrontMatterLight(pmRoot, settings.item_format, typeRegistry.type_to_folder, listWarnings, settings.schema);
|
|
740
|
-
const filteredItems = filterItems(items, options, typeRegistry, statusRegistry, runtimeFieldFilters);
|
|
741
|
-
const recurringWindow = buildRecurringEventWindow(inputs.rangeBounds.start, inputs.rangeBounds.end, inputs.nowValue, inputs.recurrenceLookbackWindowDays, inputs.recurrenceLookaheadDays);
|
|
742
|
-
const seededEvents = buildEventSeed(filteredItems, recurringWindow, inputs.includeSources, inputs.occurrenceLimit);
|
|
743
|
-
const rangedEvents = seededEvents.filter((event) => includeEventInWindow(event, inputs.rangeBounds.start, inputs.rangeBounds.end));
|
|
744
|
-
const limitedEvents = inputs.limit === void 0 ? rangedEvents : rangedEvents.slice(0, inputs.limit);
|
|
745
|
-
const days = bucketEventsByDay(limitedEvents);
|
|
746
|
-
const warnings = [...new Set(listWarnings)].sort((left, right) => left.localeCompare(right));
|
|
747
|
-
return {
|
|
748
|
-
view: inputs.view,
|
|
749
|
-
output_default: "markdown",
|
|
750
|
-
now: inputs.nowValue,
|
|
751
|
-
anchor: inputs.rangeBounds.anchor,
|
|
752
|
-
range: buildCalendarRangeResult(options, inputs.rangeBounds),
|
|
753
|
-
filters: buildCalendarFiltersResult(options, runtimeFieldFilters),
|
|
754
|
-
summary: summarize(limitedEvents),
|
|
755
|
-
events: limitedEvents,
|
|
756
|
-
days,
|
|
757
|
-
...warnings.length > 0 ? { warnings } : {}
|
|
758
|
-
};
|
|
759
|
-
}
|
|
33
|
+
resolveRuntimeStatusRegistry
|
|
34
|
+
} from "./chunk-YD5FML7K.js";
|
|
760
35
|
|
|
761
36
|
// dist/cli/commands/context.js
|
|
762
37
|
var CONTEXT_OUTPUT_VALUES = ["markdown", "toon", "json"];
|
|
@@ -1869,6 +1144,6 @@ export {
|
|
|
1869
1144
|
renderContextMarkdown,
|
|
1870
1145
|
runContext
|
|
1871
1146
|
};
|
|
1872
|
-
//# sourceMappingURL=chunk-
|
|
1147
|
+
//# sourceMappingURL=chunk-STPSZ2XY.js.map
|
|
1873
1148
|
|
|
1874
|
-
//# debugId=
|
|
1149
|
+
//# debugId=034228c0-2ef9-5500-a0de-723ef2544e22
|