@unbrained/pm-cli 2026.7.3 → 2026.7.4
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 +10 -0
- package/CONTRIBUTING.md +36 -7
- package/README.md +0 -4
- package/dist/cli/commands/calendar.js +3 -3
- package/dist/cli/commands/calendar.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/create.d.ts +2 -59
- package/dist/cli/commands/create.js +8 -24
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/extension/scaffold.js +54 -133
- package/dist/cli/commands/extension/scaffold.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/reindex.js +3 -3
- package/dist/cli/commands/reindex.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 +26 -97
- 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/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-IDS5GSYG.js +16 -0
- package/dist/cli-bundle/chunks/{activity-5YWLSPGE.js → activity-OENQCYZD.js} +9 -9
- package/dist/cli-bundle/chunks/{aggregate-2V2M3JZU.js → aggregate-EC4LWS3U.js} +8 -8
- package/dist/cli-bundle/chunks/{aggregate-EK7DXML7.js → aggregate-RCB3QJJE.js} +8 -8
- package/dist/cli-bundle/chunks/{append-JFG4WQMG.js → append-ADBOI3A6.js} +6 -6
- package/dist/cli-bundle/chunks/{append-EZESUVJT.js → append-XLEKVVWB.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-NOIEVOK5.js → chunk-2LRMWMZ6.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-LBE5QFMZ.js → chunk-2ONH3WG6.js} +32 -13
- package/dist/cli-bundle/chunks/{chunk-LBE5QFMZ.js.map → chunk-2ONH3WG6.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-4EXFFP7T.js → chunk-2VK677OA.js} +42 -34
- package/dist/cli-bundle/chunks/chunk-2VK677OA.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-JBZ2NTKX.js → chunk-3C5T3ZEO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4PFVUUYV.js → chunk-3MLQZI3H.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-5JIWFWOZ.js → chunk-4EVY7CQN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-AIKU3IIL.js → chunk-4IW7STMB.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-MHRS5FUX.js → chunk-4KPQQ42D.js} +143 -100
- package/dist/cli-bundle/chunks/chunk-4KPQQ42D.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-T6AXEBOP.js → chunk-4OXNQHKQ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-F6WNBITZ.js → chunk-4PJYRA3V.js} +31 -12
- package/dist/cli-bundle/chunks/{chunk-F6WNBITZ.js.map → chunk-4PJYRA3V.js.map} +3 -3
- package/dist/cli-bundle/chunks/{chunk-QCDTQCMW.js → chunk-4SHME4VR.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WYOIIFSE.js → chunk-5FYY76HR.js} +28 -99
- package/dist/cli-bundle/chunks/chunk-5FYY76HR.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-QNNQAAZ5.js → chunk-6QY2NA2M.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-T3P7PMZP.js → chunk-6YB7HG2J.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YVKZ3ANP.js → chunk-724VLYDJ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SYE6WMV6.js → chunk-75VMARGO.js} +11 -11
- package/dist/cli-bundle/chunks/chunk-75VMARGO.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-RAHINBVP.js → chunk-7745CXNI.js} +62 -97
- package/dist/cli-bundle/chunks/chunk-7745CXNI.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-LCWQP6NM.js → chunk-7G5SUU6F.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-MDHWWBNZ.js → chunk-7ITQSEBL.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-ZFTKYWIF.js → chunk-A222YWOQ.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-6NYJGMTY.js → chunk-A2W3XKAD.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YSDFIY7N.js → chunk-AOP2EMK3.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-U3S2B7TA.js → chunk-AZMPKLIA.js} +42 -34
- package/dist/cli-bundle/chunks/chunk-AZMPKLIA.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-KHVGM5CS.js → chunk-BDDYM4LH.js} +151 -171
- package/dist/cli-bundle/chunks/chunk-BDDYM4LH.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-6KRFL33E.js → chunk-CN4OAA2G.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-3W2HJKJX.js → chunk-CQFZRLXQ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-K5DT2YKM.js → chunk-CQISNF3Z.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-5IZUBZBR.js → chunk-D2LDM35X.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-NZ7QIUP5.js → chunk-DEIDJQZK.js} +57 -136
- package/dist/cli-bundle/chunks/chunk-DEIDJQZK.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-YPWUSH72.js → chunk-DJ5S2LDY.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-Z5F6XZXE.js → chunk-EB4BBEZD.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-ERG65A2L.js → chunk-EH23N5FX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SU2E4AWU.js → chunk-FDNJMYZB.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-CXR3CMBQ.js → chunk-FMWQRMHS.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-T4XBKJ3F.js → chunk-HL742IBM.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-YF746GTH.js → chunk-J4KNRDI3.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-KS6ATO47.js → chunk-JYLFF7GJ.js} +143 -100
- package/dist/cli-bundle/chunks/chunk-JYLFF7GJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-BI4R7HI2.js → chunk-JZJJEJBR.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-XRYSCRZR.js → chunk-KKHIQOTN.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-572FKBRL.js → chunk-LLQLLAKU.js} +61 -96
- package/dist/cli-bundle/chunks/chunk-LLQLLAKU.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-6CDCWKSX.js → chunk-M34MVAOP.js} +58 -137
- package/dist/cli-bundle/chunks/chunk-M34MVAOP.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-WJA3PXW7.js → chunk-M6PR5BC6.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-HQAF23Q2.js → chunk-MTB4PRA3.js} +10 -10
- package/dist/cli-bundle/chunks/chunk-MTB4PRA3.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-5E7N4T2Z.js → chunk-MZ4NH46V.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-AJHYQCBJ.js → chunk-MZG6I2Q2.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-P5L7Z2O6.js → chunk-N2LOJUBB.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WRYERRZX.js → chunk-NGDK3KEZ.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-HB4FAT3O.js → chunk-NHDR3UCW.js} +12 -8
- package/dist/cli-bundle/chunks/{chunk-HB4FAT3O.js.map → chunk-NHDR3UCW.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YSGTMDWC.js → chunk-NHKXOMZ5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-FZJM2TXF.js → chunk-OTSP6UEX.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-LOWVNZBZ.js → chunk-PUVPC5DL.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-Z7RPDF2Y.js → chunk-PV5JS7MP.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-KEZOIPCR.js → chunk-Q2266G4S.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-67LARBDL.js → chunk-Q3XVLRCJ.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-RJH5VQHW.js → chunk-QFXFKYNQ.js} +13 -9
- package/dist/cli-bundle/chunks/chunk-QFXFKYNQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-PULUSQAV.js → chunk-R7EMP4JG.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-JPATY4SE.js → chunk-SBNT6SLO.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-L4SLHV6G.js → chunk-SL2ANJSV.js} +151 -171
- package/dist/cli-bundle/chunks/chunk-SL2ANJSV.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-FH2H3CBD.js → chunk-T5RTYLZJ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-U5TR4N7J.js → chunk-TGYDJEJH.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-ER4ME5U2.js → chunk-TO4KCIOT.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-FUFFPIYA.js → chunk-TUV7SIWZ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-TQ6AX5SQ.js → chunk-UGDONITK.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-4WB6S4YX.js → chunk-UYLA5ROU.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-A3OQ7TFW.js → chunk-V655JQ5J.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-SU3TB4NS.js → chunk-W5X3AHJN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-32IUNTG4.js → chunk-WBWRQS32.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-UMNQZS4H.js → chunk-WOOB7PV7.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-EQURFOMH.js → chunk-WSDIALO4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MEZZZBYX.js → chunk-WTXDLBSZ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-7LYO6S5A.js → chunk-XBIYI23P.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-ECU6MMTQ.js → chunk-XFO2NJY6.js} +29 -100
- package/dist/cli-bundle/chunks/chunk-XFO2NJY6.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-OGLGI22K.js → chunk-XQCWTSLO.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-7CLLC75T.js → chunk-Y2VSCQ77.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-GVJE5T7Q.js → chunk-YZR7UMZ6.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-EJ2OCBHF.js → chunk-YZWXMDNH.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-GUYNUXQT.js → chunk-ZIEGTQCY.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-BE2SR6QL.js → chunk-ZZWMJVW2.js} +4 -4
- package/dist/cli-bundle/chunks/{claim-5GU7OE67.js → claim-D6L33A5Y.js} +8 -8
- package/dist/cli-bundle/chunks/{claim-2BGBGSVI.js → claim-YAFUTPVK.js} +8 -8
- package/dist/cli-bundle/chunks/close-KLDLHAOP.js +14 -0
- package/dist/cli-bundle/chunks/{close-AFVKPR57.js → close-TGYXG7TV.js} +7 -7
- package/dist/cli-bundle/chunks/{close-many-7KLOSYLP.js → close-many-4QSWKCRU.js} +14 -14
- package/dist/cli-bundle/chunks/{close-many-JKUJMHLG.js → close-many-SNA6LNZH.js} +14 -14
- package/dist/cli-bundle/chunks/{comments-DNWHEBOS.js → comments-QC6ARR5X.js} +8 -8
- package/dist/cli-bundle/chunks/{comments-RW23R3VE.js → comments-ZHVYGUVC.js} +8 -8
- package/dist/cli-bundle/chunks/{config-AUM5WBYA.js → config-O6W2EU2G.js} +7 -7
- package/dist/cli-bundle/chunks/{config-OZWSA2NP.js → config-XQRFJXJP.js} +7 -7
- package/dist/cli-bundle/chunks/{context-PKCEHQY3.js → context-IHE3IXN5.js} +12 -12
- package/dist/cli-bundle/chunks/{context-OYXRGY7S.js → context-WSYWBEUL.js} +12 -12
- package/dist/cli-bundle/chunks/{contracts-X74F2GSM.js → contracts-CVBINC7C.js} +3 -3
- package/dist/cli-bundle/chunks/{contracts-L6ODXNUM.js → contracts-NLCDIZAT.js} +3 -3
- package/dist/cli-bundle/chunks/{copy-I4NCLBR4.js → copy-7MUQC44A.js} +5 -5
- package/dist/cli-bundle/chunks/{copy-6XOR3HKN.js → copy-ANWXDJVC.js} +5 -5
- package/dist/cli-bundle/chunks/create-AJ6HUR5W.js +28 -0
- package/dist/cli-bundle/chunks/{create-PM45M6PE.js → create-JIA2IFCO.js} +12 -12
- package/dist/cli-bundle/chunks/{delete-7YXHYG67.js → delete-5OLYWQIC.js} +5 -5
- package/dist/cli-bundle/chunks/{delete-LPISP43T.js → delete-INHKCIRN.js} +5 -5
- package/dist/cli-bundle/chunks/{deps-N2T26FME.js → deps-CCSWGZW7.js} +5 -5
- package/dist/cli-bundle/chunks/{deps-WATKQDE3.js → deps-IYEID3QX.js} +5 -5
- package/dist/cli-bundle/chunks/{docs-Z3X6JZLT.js → docs-3XZK22WF.js} +7 -7
- package/dist/cli-bundle/chunks/{docs-6LQ3GLM7.js → docs-PKO7OEIM.js} +7 -7
- package/dist/cli-bundle/chunks/{eval-6DCLG52D.js → eval-5XYP6NMY.js} +10 -10
- package/dist/cli-bundle/chunks/{eval-Y3ZCUTHK.js → eval-O4WGQYDI.js} +10 -10
- package/dist/cli-bundle/chunks/{extension-QWE4YYK5.js → extension-PVGRRZZG.js} +11 -11
- package/dist/cli-bundle/chunks/{extension-BNINIMT7.js → extension-T7JNTAAA.js} +11 -11
- package/dist/cli-bundle/chunks/{files-6SGKHS6O.js → files-7IU56S6R.js} +10 -10
- package/dist/cli-bundle/chunks/files-7IU56S6R.js.map +1 -0
- package/dist/cli-bundle/chunks/{files-FUYPSOFJ.js → files-W7HH5EOD.js} +9 -9
- package/dist/cli-bundle/chunks/{files-FUYPSOFJ.js.map → files-W7HH5EOD.js.map} +1 -1
- package/dist/cli-bundle/chunks/{focus-2Q3K76G2.js → focus-6FA5KYRY.js} +6 -6
- package/dist/cli-bundle/chunks/{focus-ATLBWXXD.js → focus-CQ63JFDG.js} +6 -6
- package/dist/cli-bundle/chunks/{gc-RUYEMNRF.js → gc-3BG67KTO.js} +3 -3
- package/dist/cli-bundle/chunks/{gc-TDWSDR66.js → gc-PEZYGNVB.js} +3 -3
- package/dist/cli-bundle/chunks/{get-LY6M2JIM.js → get-J6CSJ4SX.js} +10 -10
- package/dist/cli-bundle/chunks/{get-2WGLX74N.js → get-KJTKGNEQ.js} +10 -10
- package/dist/cli-bundle/chunks/{health-4RKHYS3T.js → health-32UQICEL.js} +15 -15
- package/dist/cli-bundle/chunks/{health-TMFVNYRA.js → health-ZUZG5ULV.js} +15 -15
- package/dist/cli-bundle/chunks/history-IOH6FKG7.js +18 -0
- package/dist/cli-bundle/chunks/{history-SGRRS72R.js → history-W6QVR6FA.js} +8 -8
- package/dist/cli-bundle/chunks/{history-compact-V5DNAQHH.js → history-compact-F355EGL4.js} +20 -27
- package/dist/cli-bundle/chunks/history-compact-F355EGL4.js.map +1 -0
- package/dist/cli-bundle/chunks/{history-compact-LOED43R3.js → history-compact-JQ6ZGYSJ.js} +19 -26
- package/dist/cli-bundle/chunks/history-compact-JQ6ZGYSJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{history-redact-IRL7WJ3E.js → history-redact-TUWOUYX5.js} +9 -9
- package/dist/cli-bundle/chunks/history-redact-VVDOARNO.js +19 -0
- package/dist/cli-bundle/chunks/{history-repair-4WVBVHFR.js → history-repair-MPCAIKYE.js} +20 -28
- package/dist/cli-bundle/chunks/history-repair-MPCAIKYE.js.map +1 -0
- package/dist/cli-bundle/chunks/{history-repair-PGYQJMGD.js → history-repair-ZKS3LKPV.js} +19 -27
- package/dist/cli-bundle/chunks/history-repair-ZKS3LKPV.js.map +7 -0
- package/dist/cli-bundle/chunks/init-CZLEEE6Q.js +22 -0
- package/dist/cli-bundle/chunks/{init-4GESW7RM.js → init-MAA6UMNQ.js} +12 -12
- package/dist/cli-bundle/chunks/{learnings-4FJY7WIW.js → learnings-EYC3OKS2.js} +8 -8
- package/dist/cli-bundle/chunks/{learnings-4BHWFFUV.js → learnings-HKJJUVTA.js} +8 -8
- package/dist/cli-bundle/chunks/{list-D7BF5CL2.js → list-HFD5737R.js} +8 -8
- package/dist/cli-bundle/chunks/{list-472TIOVK.js → list-KN3TL5Y5.js} +8 -8
- package/dist/cli-bundle/chunks/{next-SFQZVX2B.js → next-DQUMFAHG.js} +13 -13
- package/dist/cli-bundle/chunks/{next-D5STGWI2.js → next-JUEYC5HE.js} +13 -13
- package/dist/cli-bundle/chunks/{notes-W4UEICGF.js → notes-XATYT43P.js} +8 -8
- package/dist/cli-bundle/chunks/{notes-6KNOSLIT.js → notes-ZG6RLZXB.js} +8 -8
- package/dist/cli-bundle/chunks/{plan-JO6V7BXO.js → plan-5NWQL2DH.js} +12 -12
- package/dist/cli-bundle/chunks/{plan-MJQW5XK3.js → plan-DVVLX7LK.js} +12 -12
- package/dist/cli-bundle/chunks/{profile-WIQY2KCV.js → profile-54DZ4CLB.js} +8 -8
- package/dist/cli-bundle/chunks/{profile-3TOTMUR4.js → profile-PLIQVEOY.js} +8 -8
- package/dist/cli-bundle/chunks/{register-list-query-GAPQ6DM3.js → register-list-query-PNRAHNIQ.js} +21 -21
- package/dist/cli-bundle/chunks/{register-list-query-ELBHCCFI.js.map → register-list-query-PNRAHNIQ.js.map} +1 -7
- package/dist/cli-bundle/chunks/{register-list-query-ELBHCCFI.js → register-list-query-WRS6ACUW.js} +20 -20
- package/dist/cli-bundle/chunks/register-list-query-WRS6ACUW.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-mutation-ROFE2YPC.js → register-mutation-ET6E4VLE.js} +32 -32
- package/dist/cli-bundle/chunks/{register-mutation-SJWMVIJ2.js → register-mutation-K2MNRWGI.js} +32 -32
- package/dist/cli-bundle/chunks/{register-operations-MEKU3AKC.js → register-operations-6DQRUTIX.js} +30 -30
- package/dist/cli-bundle/chunks/{register-operations-IADFVH53.js → register-operations-73UDWMVB.js} +30 -30
- package/dist/cli-bundle/chunks/{register-setup-3QJY43CY.js → register-setup-FXZJ2CEJ.js} +15 -15
- package/dist/cli-bundle/chunks/{register-setup-AJWUSSQX.js → register-setup-LYYCMQFV.js} +15 -15
- package/dist/cli-bundle/chunks/restore-L27TMMCF.js +17 -0
- package/dist/cli-bundle/chunks/{restore-44IHMMZZ.js → restore-R6YJHQK3.js} +9 -9
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-OLHNLAZY.js → scheduling-shortcuts-LE4S7OI7.js} +12 -12
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-TSBK4AY5.js → scheduling-shortcuts-OGODPUBL.js} +12 -12
- package/dist/cli-bundle/chunks/{schema-VBCELP5G.js → schema-ICCD3HOP.js} +7 -7
- package/dist/cli-bundle/chunks/{schema-IB2NZZWD.js → schema-RHH23PQX.js} +7 -7
- package/dist/cli-bundle/chunks/{search-R227JOL6.js → search-HDDKOPFE.js} +10 -10
- package/dist/cli-bundle/chunks/{search-7UBETML4.js → search-Z2VGP2Q5.js} +10 -10
- package/dist/cli-bundle/chunks/{stats-MCK7PLYS.js → stats-DHMRXHOB.js} +6 -6
- package/dist/cli-bundle/chunks/{stats-FAG7COEH.js → stats-ETFP37MB.js} +6 -6
- package/dist/cli-bundle/chunks/{telemetry-GVVUQSJQ.js → telemetry-NUZNKDCP.js} +4 -4
- package/dist/cli-bundle/chunks/{telemetry-DRPDZMAO.js → telemetry-ZRBM22QD.js} +4 -4
- package/dist/cli-bundle/chunks/{test-SY76DZTO.js → test-H36PM746.js} +15 -15
- package/dist/cli-bundle/chunks/{test-QY44WAMR.js → test-XNKTIP4Y.js} +15 -15
- package/dist/cli-bundle/chunks/{test-all-USPJHXFR.js → test-all-APCBSXQI.js} +15 -15
- package/dist/cli-bundle/chunks/{test-all-QD6QAEG7.js → test-all-KIK3OYBY.js} +15 -15
- package/dist/cli-bundle/chunks/{test-runs-QIR5MJPL.js → test-runs-5SLLV3XU.js} +4 -4
- package/dist/cli-bundle/chunks/{test-runs-MG5VIGSK.js → test-runs-L3WKLO67.js} +4 -4
- package/dist/cli-bundle/chunks/update-RQKI3AMW.js +24 -0
- package/dist/cli-bundle/chunks/{update-IKJZWLQC.js → update-ZM7NJWHY.js} +15 -15
- package/dist/cli-bundle/chunks/{update-many-BEMTDA2X.js → update-many-GFCQG6ZQ.js} +22 -22
- package/dist/cli-bundle/chunks/{update-many-RATAARHU.js → update-many-XGTJ7QIU.js} +22 -22
- package/dist/cli-bundle/chunks/{upgrade-VU46BLJZ.js → upgrade-KJ3JGELR.js} +11 -11
- package/dist/cli-bundle/chunks/{upgrade-NWMR3VQL.js → upgrade-RBRQ7PQU.js} +11 -11
- package/dist/cli-bundle/chunks/{validate-NRY6MFXN.js → validate-EW6TGC7R.js} +21 -21
- package/dist/cli-bundle/chunks/validate-EW6TGC7R.js.map +7 -0
- package/dist/cli-bundle/chunks/{validate-GAJ6FUSI.js → validate-T6PR5WAL.js} +22 -22
- package/dist/cli-bundle/chunks/validate-T6PR5WAL.js.map +1 -0
- package/dist/cli-bundle/main.js +15 -15
- package/dist/core/extensions/extension-types.d.ts +1 -2
- package/dist/core/extensions/extension-types.js +2 -2
- package/dist/core/extensions/extension-types.js.map +1 -1
- package/dist/core/history/history-rewrite.d.ts +10 -0
- package/dist/core/history/history-rewrite.js +27 -3
- package/dist/core/history/history-rewrite.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/sdk/cli-contracts/flag-contracts.js +4 -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/package-import-adapters.d.ts +90 -2
- package/dist/sdk/package-import-adapters.js +274 -2
- 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/package.json +4 -3
- package/packages/pm-beads/extensions/beads/runtime-loader.ts +27 -40
- package/packages/pm-beads/extensions/beads/runtime.ts +106 -223
- package/packages/pm-calendar/extensions/calendar/runtime.ts +21 -18
- package/packages/pm-guide-shell/extensions/guide-shell/runtime.ts +9 -11
- package/packages/pm-todos/extensions/todos/runtime-loader.ts +48 -76
- 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/install.ps1 +7 -7
- package/dist/cli-bundle/chunks/activity-BIML7K2D.js +0 -16
- package/dist/cli-bundle/chunks/chunk-4EXFFP7T.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-572FKBRL.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-6CDCWKSX.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-ECU6MMTQ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-HQAF23Q2.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-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-U3S2B7TA.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-WYOIIFSE.js.map +0 -7
- 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/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-XIDPABA4.js +0 -22
- 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/update-A7EICML6.js +0 -24
- 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-IDS5GSYG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-5YWLSPGE.js.map → activity-OENQCYZD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-2V2M3JZU.js.map → aggregate-EC4LWS3U.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-EK7DXML7.js.map → aggregate-RCB3QJJE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-JFG4WQMG.js.map → append-ADBOI3A6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-EZESUVJT.js.map → append-XLEKVVWB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NOIEVOK5.js.map → chunk-2LRMWMZ6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JBZ2NTKX.js.map → chunk-3C5T3ZEO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4PFVUUYV.js.map → chunk-3MLQZI3H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5JIWFWOZ.js.map → chunk-4EVY7CQN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AIKU3IIL.js.map → chunk-4IW7STMB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-T6AXEBOP.js.map → chunk-4OXNQHKQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QCDTQCMW.js.map → chunk-4SHME4VR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QNNQAAZ5.js.map → chunk-6QY2NA2M.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-T3P7PMZP.js.map → chunk-6YB7HG2J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YVKZ3ANP.js.map → chunk-724VLYDJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LCWQP6NM.js.map → chunk-7G5SUU6F.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MDHWWBNZ.js.map → chunk-7ITQSEBL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZFTKYWIF.js.map → chunk-A222YWOQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6NYJGMTY.js.map → chunk-A2W3XKAD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YSDFIY7N.js.map → chunk-AOP2EMK3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6KRFL33E.js.map → chunk-CN4OAA2G.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3W2HJKJX.js.map → chunk-CQFZRLXQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-K5DT2YKM.js.map → chunk-CQISNF3Z.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5IZUBZBR.js.map → chunk-D2LDM35X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YPWUSH72.js.map → chunk-DJ5S2LDY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Z5F6XZXE.js.map → chunk-EB4BBEZD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ERG65A2L.js.map → chunk-EH23N5FX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SU2E4AWU.js.map → chunk-FDNJMYZB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CXR3CMBQ.js.map → chunk-FMWQRMHS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-T4XBKJ3F.js.map → chunk-HL742IBM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YF746GTH.js.map → chunk-J4KNRDI3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-BI4R7HI2.js.map → chunk-JZJJEJBR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XRYSCRZR.js.map → chunk-KKHIQOTN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WJA3PXW7.js.map → chunk-M6PR5BC6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5E7N4T2Z.js.map → chunk-MZ4NH46V.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AJHYQCBJ.js.map → chunk-MZG6I2Q2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P5L7Z2O6.js.map → chunk-N2LOJUBB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WRYERRZX.js.map → chunk-NGDK3KEZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YSGTMDWC.js.map → chunk-NHKXOMZ5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FZJM2TXF.js.map → chunk-OTSP6UEX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LOWVNZBZ.js.map → chunk-PUVPC5DL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Z7RPDF2Y.js.map → chunk-PV5JS7MP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KEZOIPCR.js.map → chunk-Q2266G4S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-67LARBDL.js.map → chunk-Q3XVLRCJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PULUSQAV.js.map → chunk-R7EMP4JG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JPATY4SE.js.map → chunk-SBNT6SLO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FH2H3CBD.js.map → chunk-T5RTYLZJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-U5TR4N7J.js.map → chunk-TGYDJEJH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ER4ME5U2.js.map → chunk-TO4KCIOT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FUFFPIYA.js.map → chunk-TUV7SIWZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TQ6AX5SQ.js.map → chunk-UGDONITK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4WB6S4YX.js.map → chunk-UYLA5ROU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-A3OQ7TFW.js.map → chunk-V655JQ5J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SU3TB4NS.js.map → chunk-W5X3AHJN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-32IUNTG4.js.map → chunk-WBWRQS32.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UMNQZS4H.js.map → chunk-WOOB7PV7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EQURFOMH.js.map → chunk-WSDIALO4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MEZZZBYX.js.map → chunk-WTXDLBSZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7LYO6S5A.js.map → chunk-XBIYI23P.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-OGLGI22K.js.map → chunk-XQCWTSLO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7CLLC75T.js.map → chunk-Y2VSCQ77.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GVJE5T7Q.js.map → chunk-YZR7UMZ6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EJ2OCBHF.js.map → chunk-YZWXMDNH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GUYNUXQT.js.map → chunk-ZIEGTQCY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-BE2SR6QL.js.map → chunk-ZZWMJVW2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-5GU7OE67.js.map → claim-D6L33A5Y.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-2BGBGSVI.js.map → claim-YAFUTPVK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-6YODBUIV.js.map → close-KLDLHAOP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-AFVKPR57.js.map → close-TGYXG7TV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-7KLOSYLP.js.map → close-many-4QSWKCRU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-JKUJMHLG.js.map → close-many-SNA6LNZH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-DNWHEBOS.js.map → comments-QC6ARR5X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-RW23R3VE.js.map → comments-ZHVYGUVC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-AUM5WBYA.js.map → config-O6W2EU2G.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-OZWSA2NP.js.map → config-XQRFJXJP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-PKCEHQY3.js.map → context-IHE3IXN5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-OYXRGY7S.js.map → context-WSYWBEUL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-X74F2GSM.js.map → contracts-CVBINC7C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-L6ODXNUM.js.map → contracts-NLCDIZAT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-I4NCLBR4.js.map → copy-7MUQC44A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-6XOR3HKN.js.map → copy-ANWXDJVC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-Z7YCH3BE.js.map → create-AJ6HUR5W.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-PM45M6PE.js.map → create-JIA2IFCO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-7YXHYG67.js.map → delete-5OLYWQIC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-LPISP43T.js.map → delete-INHKCIRN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-N2T26FME.js.map → deps-CCSWGZW7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-WATKQDE3.js.map → deps-IYEID3QX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-Z3X6JZLT.js.map → docs-3XZK22WF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-6LQ3GLM7.js.map → docs-PKO7OEIM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-6DCLG52D.js.map → eval-5XYP6NMY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-Y3ZCUTHK.js.map → eval-O4WGQYDI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-QWE4YYK5.js.map → extension-PVGRRZZG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-BNINIMT7.js.map → extension-T7JNTAAA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-2Q3K76G2.js.map → focus-6FA5KYRY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-ATLBWXXD.js.map → focus-CQ63JFDG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-RUYEMNRF.js.map → gc-3BG67KTO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-TDWSDR66.js.map → gc-PEZYGNVB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-LY6M2JIM.js.map → get-J6CSJ4SX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-2WGLX74N.js.map → get-KJTKGNEQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{health-4RKHYS3T.js.map → health-32UQICEL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{health-TMFVNYRA.js.map → health-ZUZG5ULV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-CGNQJXFE.js.map → history-IOH6FKG7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-SGRRS72R.js.map → history-W6QVR6FA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-IRL7WJ3E.js.map → history-redact-TUWOUYX5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-N3JK7VBW.js.map → history-redact-VVDOARNO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-XIDPABA4.js.map → init-CZLEEE6Q.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-4GESW7RM.js.map → init-MAA6UMNQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-4FJY7WIW.js.map → learnings-EYC3OKS2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-4BHWFFUV.js.map → learnings-HKJJUVTA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-D7BF5CL2.js.map → list-HFD5737R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-472TIOVK.js.map → list-KN3TL5Y5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{next-SFQZVX2B.js.map → next-DQUMFAHG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{next-D5STGWI2.js.map → next-JUEYC5HE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-W4UEICGF.js.map → notes-XATYT43P.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-6KNOSLIT.js.map → notes-ZG6RLZXB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-JO6V7BXO.js.map → plan-5NWQL2DH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-MJQW5XK3.js.map → plan-DVVLX7LK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-WIQY2KCV.js.map → profile-54DZ4CLB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-3TOTMUR4.js.map → profile-PLIQVEOY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-ROFE2YPC.js.map → register-mutation-ET6E4VLE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-SJWMVIJ2.js.map → register-mutation-K2MNRWGI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-operations-MEKU3AKC.js.map → register-operations-6DQRUTIX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-operations-IADFVH53.js.map → register-operations-73UDWMVB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-setup-3QJY43CY.js.map → register-setup-FXZJ2CEJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-setup-AJWUSSQX.js.map → register-setup-LYYCMQFV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-EXHU34EU.js.map → restore-L27TMMCF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-44IHMMZZ.js.map → restore-R6YJHQK3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{scheduling-shortcuts-OLHNLAZY.js.map → scheduling-shortcuts-LE4S7OI7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{scheduling-shortcuts-TSBK4AY5.js.map → scheduling-shortcuts-OGODPUBL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-VBCELP5G.js.map → schema-ICCD3HOP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-IB2NZZWD.js.map → schema-RHH23PQX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-R227JOL6.js.map → search-HDDKOPFE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-7UBETML4.js.map → search-Z2VGP2Q5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-MCK7PLYS.js.map → stats-DHMRXHOB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-FAG7COEH.js.map → stats-ETFP37MB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-GVVUQSJQ.js.map → telemetry-NUZNKDCP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-DRPDZMAO.js.map → telemetry-ZRBM22QD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-SY76DZTO.js.map → test-H36PM746.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-QY44WAMR.js.map → test-XNKTIP4Y.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-all-USPJHXFR.js.map → test-all-APCBSXQI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-all-QD6QAEG7.js.map → test-all-KIK3OYBY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-QIR5MJPL.js.map → test-runs-5SLLV3XU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-MG5VIGSK.js.map → test-runs-L3WKLO67.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-A7EICML6.js.map → update-RQKI3AMW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-IKJZWLQC.js.map → update-ZM7NJWHY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-BEMTDA2X.js.map → update-many-GFCQG6ZQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-RATAARHU.js.map → update-many-XGTJ7QIU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{upgrade-VU46BLJZ.js.map → upgrade-KJ3JGELR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{upgrade-NWMR3VQL.js.map → upgrade-RBRQ7PQU.js.map} +0 -0
|
@@ -2,27 +2,27 @@
|
|
|
2
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]="6ca42fbb-ef56-50b9-a64a-2e34cbb0ee9a")}catch(e){}}();
|
|
3
3
|
import {
|
|
4
4
|
readHistoryEntries
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-FDNJMYZB.js";
|
|
6
|
+
import "./chunk-Y2VSCQ77.js";
|
|
7
7
|
import {
|
|
8
8
|
runList
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4IW7STMB.js";
|
|
10
10
|
import "./chunk-QB7XMHJW.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-4SHME4VR.js";
|
|
12
12
|
import {
|
|
13
13
|
parseIntegerLimit
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NHKXOMZ5.js";
|
|
15
15
|
import {
|
|
16
16
|
buildItemNotFoundError,
|
|
17
17
|
listAllFrontMatterLight,
|
|
18
18
|
locateItem,
|
|
19
19
|
readLocatedItem,
|
|
20
20
|
toItemRecord
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UYLA5ROU.js";
|
|
22
22
|
import {
|
|
23
23
|
isTerminalStatus
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-AOP2EMK3.js";
|
|
25
|
+
import "./chunk-FMWQRMHS.js";
|
|
26
26
|
import {
|
|
27
27
|
EXIT_CODE,
|
|
28
28
|
FRONT_MATTER_KEY_ORDER,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
resolvePmRoot,
|
|
37
37
|
resolveRuntimeFieldRegistry,
|
|
38
38
|
resolveRuntimeStatusRegistry
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-SL2ANJSV.js";
|
|
40
40
|
|
|
41
41
|
// dist/cli/commands/get.js
|
|
42
42
|
var CHILD_ROLLUP_TYPES = /* @__PURE__ */ new Set(["milestone", "epic"]);
|
|
@@ -275,6 +275,6 @@ async function runGet(id, global, options = {}) {
|
|
|
275
275
|
export {
|
|
276
276
|
runGet
|
|
277
277
|
};
|
|
278
|
-
//# sourceMappingURL=get-
|
|
278
|
+
//# sourceMappingURL=get-J6CSJ4SX.js.map
|
|
279
279
|
|
|
280
280
|
//# debugId=6ca42fbb-ef56-50b9-a64a-2e34cbb0ee9a
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readHistoryEntries
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-EB4BBEZD.js";
|
|
4
|
+
import "./chunk-HL742IBM.js";
|
|
5
5
|
import {
|
|
6
6
|
runList
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-A222YWOQ.js";
|
|
8
8
|
import "./chunk-R23CSHGI.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-724VLYDJ.js";
|
|
10
10
|
import {
|
|
11
11
|
parseIntegerLimit
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3MLQZI3H.js";
|
|
13
13
|
import {
|
|
14
14
|
buildItemNotFoundError,
|
|
15
15
|
listAllFrontMatterLight,
|
|
16
16
|
locateItem,
|
|
17
17
|
readLocatedItem,
|
|
18
18
|
toItemRecord
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CN4OAA2G.js";
|
|
20
20
|
import {
|
|
21
21
|
isTerminalStatus
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-CQFZRLXQ.js";
|
|
23
|
+
import "./chunk-MZG6I2Q2.js";
|
|
24
24
|
import {
|
|
25
25
|
EXIT_CODE,
|
|
26
26
|
FRONT_MATTER_KEY_ORDER,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
resolvePmRoot,
|
|
35
35
|
resolveRuntimeFieldRegistry,
|
|
36
36
|
resolveRuntimeStatusRegistry
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-BDDYM4LH.js";
|
|
38
38
|
|
|
39
39
|
// dist/cli/commands/get.js
|
|
40
40
|
!(function() {
|
|
@@ -280,4 +280,4 @@ async function runGet(id, global2, options = {}) {
|
|
|
280
280
|
export {
|
|
281
281
|
runGet
|
|
282
282
|
};
|
|
283
|
-
//# sourceMappingURL=get-
|
|
283
|
+
//# sourceMappingURL=get-KJTKGNEQ.js.map
|
|
@@ -8,25 +8,25 @@ import {
|
|
|
8
8
|
} from "./chunk-37E72CNS.js";
|
|
9
9
|
import {
|
|
10
10
|
scanHistoryDrift
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZZWMJVW2.js";
|
|
12
12
|
import {
|
|
13
13
|
collectStaleVectorizationIds
|
|
14
14
|
} from "./chunk-ROGZTCCB.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-Y2VSCQ77.js";
|
|
16
16
|
import {
|
|
17
17
|
PM_TELEMETRY_SOURCE_CONTEXT_VALUES,
|
|
18
18
|
TELEMETRY_MAX_QUEUE_ENTRY_ATTEMPTS,
|
|
19
19
|
TELEMETRY_SCHEMA_VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PV5JS7MP.js";
|
|
21
21
|
import {
|
|
22
22
|
buildCapabilityContractMetadata,
|
|
23
23
|
buildRegistrationCollisionRemediation,
|
|
24
24
|
collectUnknownCapabilityGuidance,
|
|
25
25
|
readManagedExtensionState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-J4KNRDI3.js";
|
|
27
27
|
import "./chunk-P4SESZGT.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-YZWXMDNH.js";
|
|
29
|
+
import "./chunk-YZR7UMZ6.js";
|
|
30
30
|
import {
|
|
31
31
|
buildVectorizationEmbeddingIdentity,
|
|
32
32
|
hasVectorizationEmbeddingIdentityChanged,
|
|
@@ -36,25 +36,25 @@ import {
|
|
|
36
36
|
resolveProviderConfigSource,
|
|
37
37
|
resolveSettingsWithSemanticRuntimeDefaults,
|
|
38
38
|
resolveVectorStores
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-XQCWTSLO.js";
|
|
40
|
+
import "./chunk-M34MVAOP.js";
|
|
41
|
+
import "./chunk-6QY2NA2M.js";
|
|
42
|
+
import "./chunk-LLQLLAKU.js";
|
|
43
43
|
import {
|
|
44
44
|
collectRegisteredItemFieldNames,
|
|
45
45
|
enforceHistoryStreamPolicyForItems,
|
|
46
46
|
listAllFrontMatter,
|
|
47
47
|
listAllFrontMatterWithBody
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-UYLA5ROU.js";
|
|
49
49
|
import {
|
|
50
50
|
effectiveItemFormatVersion,
|
|
51
51
|
findFirstMergeConflictMarker,
|
|
52
52
|
parseItemDocument,
|
|
53
53
|
scanItemFormatVersions
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-AOP2EMK3.js";
|
|
55
55
|
import {
|
|
56
56
|
nowIso
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-FMWQRMHS.js";
|
|
58
58
|
import {
|
|
59
59
|
EXIT_CODE,
|
|
60
60
|
ITEM_FILE_EXTENSIONS,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
resolvePmRoot,
|
|
76
76
|
runActiveOnReadHooks,
|
|
77
77
|
toNonEmptyStringOrUndefined
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-SL2ANJSV.js";
|
|
79
79
|
|
|
80
80
|
// dist/cli/commands/health.js
|
|
81
81
|
import fs from "node:fs/promises";
|
|
@@ -1600,6 +1600,6 @@ export {
|
|
|
1600
1600
|
_testOnlyHealthCommand,
|
|
1601
1601
|
runHealth
|
|
1602
1602
|
};
|
|
1603
|
-
//# sourceMappingURL=health-
|
|
1603
|
+
//# sourceMappingURL=health-32UQICEL.js.map
|
|
1604
1604
|
|
|
1605
1605
|
//# debugId=4e0ed066-de64-5211-9b4a-be33f25e4d08
|
|
@@ -6,25 +6,25 @@ import {
|
|
|
6
6
|
} from "./chunk-QZ342C63.js";
|
|
7
7
|
import {
|
|
8
8
|
scanHistoryDrift
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PUVPC5DL.js";
|
|
10
10
|
import {
|
|
11
11
|
collectStaleVectorizationIds
|
|
12
12
|
} from "./chunk-VPLDQMW2.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-HL742IBM.js";
|
|
14
14
|
import {
|
|
15
15
|
PM_TELEMETRY_SOURCE_CONTEXT_VALUES,
|
|
16
16
|
TELEMETRY_MAX_QUEUE_ENTRY_ATTEMPTS,
|
|
17
17
|
TELEMETRY_SCHEMA_VERSION
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TO4KCIOT.js";
|
|
19
19
|
import {
|
|
20
20
|
buildCapabilityContractMetadata,
|
|
21
21
|
buildRegistrationCollisionRemediation,
|
|
22
22
|
collectUnknownCapabilityGuidance,
|
|
23
23
|
readManagedExtensionState
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-UGDONITK.js";
|
|
25
25
|
import "./chunk-5HIZDR5A.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-SBNT6SLO.js";
|
|
27
|
+
import "./chunk-A2W3XKAD.js";
|
|
28
28
|
import {
|
|
29
29
|
buildVectorizationEmbeddingIdentity,
|
|
30
30
|
hasVectorizationEmbeddingIdentityChanged,
|
|
@@ -34,25 +34,25 @@ import {
|
|
|
34
34
|
resolveProviderConfigSource,
|
|
35
35
|
resolveSettingsWithSemanticRuntimeDefaults,
|
|
36
36
|
resolveVectorStores
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-KKHIQOTN.js";
|
|
38
|
+
import "./chunk-DEIDJQZK.js";
|
|
39
|
+
import "./chunk-4OXNQHKQ.js";
|
|
40
|
+
import "./chunk-7745CXNI.js";
|
|
41
41
|
import {
|
|
42
42
|
collectRegisteredItemFieldNames,
|
|
43
43
|
enforceHistoryStreamPolicyForItems,
|
|
44
44
|
listAllFrontMatter,
|
|
45
45
|
listAllFrontMatterWithBody
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-CN4OAA2G.js";
|
|
47
47
|
import {
|
|
48
48
|
effectiveItemFormatVersion,
|
|
49
49
|
findFirstMergeConflictMarker,
|
|
50
50
|
parseItemDocument,
|
|
51
51
|
scanItemFormatVersions
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-CQFZRLXQ.js";
|
|
53
53
|
import {
|
|
54
54
|
nowIso
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-MZG6I2Q2.js";
|
|
56
56
|
import {
|
|
57
57
|
EXIT_CODE,
|
|
58
58
|
ITEM_FILE_EXTENSIONS,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
resolvePmRoot,
|
|
74
74
|
runActiveOnReadHooks,
|
|
75
75
|
toNonEmptyStringOrUndefined
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-BDDYM4LH.js";
|
|
77
77
|
|
|
78
78
|
// dist/cli/commands/health.js
|
|
79
79
|
import fs from "node:fs/promises";
|
|
@@ -1605,4 +1605,4 @@ export {
|
|
|
1605
1605
|
_testOnlyHealthCommand,
|
|
1606
1606
|
runHealth
|
|
1607
1607
|
};
|
|
1608
|
-
//# sourceMappingURL=health-
|
|
1608
|
+
//# sourceMappingURL=health-ZUZG5ULV.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
readHistoryEntries,
|
|
3
|
+
runHistory
|
|
4
|
+
} from "./chunk-EB4BBEZD.js";
|
|
5
|
+
import {
|
|
6
|
+
verifyHistoryChain
|
|
7
|
+
} from "./chunk-HL742IBM.js";
|
|
8
|
+
import "./chunk-3MLQZI3H.js";
|
|
9
|
+
import "./chunk-CN4OAA2G.js";
|
|
10
|
+
import "./chunk-CQFZRLXQ.js";
|
|
11
|
+
import "./chunk-MZG6I2Q2.js";
|
|
12
|
+
import "./chunk-BDDYM4LH.js";
|
|
13
|
+
export {
|
|
14
|
+
readHistoryEntries,
|
|
15
|
+
runHistory,
|
|
16
|
+
verifyHistoryChain
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=history-IOH6FKG7.js.map
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
import {
|
|
4
4
|
readHistoryEntries,
|
|
5
5
|
runHistory
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FDNJMYZB.js";
|
|
7
7
|
import {
|
|
8
8
|
verifyHistoryChain
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-Y2VSCQ77.js";
|
|
10
|
+
import "./chunk-NHKXOMZ5.js";
|
|
11
|
+
import "./chunk-UYLA5ROU.js";
|
|
12
|
+
import "./chunk-AOP2EMK3.js";
|
|
13
|
+
import "./chunk-FMWQRMHS.js";
|
|
14
|
+
import "./chunk-SL2ANJSV.js";
|
|
15
15
|
export {
|
|
16
16
|
readHistoryEntries,
|
|
17
17
|
runHistory,
|
|
18
18
|
verifyHistoryChain
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=history-
|
|
20
|
+
//# sourceMappingURL=history-W6QVR6FA.js.map
|
|
21
21
|
|
|
22
22
|
//# debugId=45eac7fa-f181-5cca-93b7-cfb58909dbb3
|
|
@@ -1,15 +1,16 @@
|
|
|
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]="9f49ebde-040b-5f53-9f82-5156914aa44c")}catch(e){}}();
|
|
3
3
|
import {
|
|
4
4
|
executeHistoryRewrite,
|
|
5
|
-
resolveHistorySubject
|
|
6
|
-
|
|
5
|
+
resolveHistorySubject,
|
|
6
|
+
writeHistoryRawWithRollback
|
|
7
|
+
} from "./chunk-2ONH3WG6.js";
|
|
7
8
|
import {
|
|
8
9
|
resolveAuthor
|
|
9
10
|
} from "./chunk-T5RRNDA7.js";
|
|
10
11
|
import {
|
|
11
12
|
readHistoryEntries
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FDNJMYZB.js";
|
|
13
14
|
import {
|
|
14
15
|
cloneEmptyReplayDocument,
|
|
15
16
|
historyEntriesToRaw,
|
|
@@ -18,20 +19,20 @@ import {
|
|
|
18
19
|
toReplayDocument,
|
|
19
20
|
tryApplyReplayPatch,
|
|
20
21
|
verifyHistoryChain
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Y2VSCQ77.js";
|
|
22
23
|
import {
|
|
23
24
|
lifecycleClassifierFromStatusRegistry
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-4SHME4VR.js";
|
|
26
|
+
import "./chunk-NHKXOMZ5.js";
|
|
26
27
|
import {
|
|
27
28
|
createHistoryEntry,
|
|
28
29
|
listAllFrontMatterLight,
|
|
29
30
|
readLocatedItem
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-UYLA5ROU.js";
|
|
32
|
+
import "./chunk-AOP2EMK3.js";
|
|
32
33
|
import {
|
|
33
34
|
nowIso
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FMWQRMHS.js";
|
|
35
36
|
import {
|
|
36
37
|
EXIT_CODE,
|
|
37
38
|
PmCliError,
|
|
@@ -44,9 +45,8 @@ import {
|
|
|
44
45
|
resolvePmRoot,
|
|
45
46
|
resolveRuntimeStatusRegistry,
|
|
46
47
|
runActiveOnReadHooks,
|
|
47
|
-
runActiveOnWriteHooks
|
|
48
|
-
|
|
49
|
-
} from "./chunk-L4SLHV6G.js";
|
|
48
|
+
runActiveOnWriteHooks
|
|
49
|
+
} from "./chunk-SL2ANJSV.js";
|
|
50
50
|
|
|
51
51
|
// dist/cli/commands/history-compact.js
|
|
52
52
|
import fs from "node:fs/promises";
|
|
@@ -263,18 +263,11 @@ async function applyHistoryCompactRewrite(params) {
|
|
|
263
263
|
author: params.author,
|
|
264
264
|
force: params.force,
|
|
265
265
|
itemDocument: params.loadedItem?.document ?? null,
|
|
266
|
-
applyRewrite: async ({ historyRawUnderLock }) => {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
await fs.rm(params.historyPath, { force: true });
|
|
272
|
-
} else {
|
|
273
|
-
await writeFileAtomic(params.historyPath, historyRawUnderLock);
|
|
274
|
-
}
|
|
275
|
-
throw error;
|
|
276
|
-
}
|
|
277
|
-
},
|
|
266
|
+
applyRewrite: async ({ historyRawUnderLock }) => writeHistoryRawWithRollback({
|
|
267
|
+
historyPath: params.historyPath,
|
|
268
|
+
nextHistoryRaw: historyEntriesToRaw(params.rewrittenEntries),
|
|
269
|
+
historyRawUnderLock
|
|
270
|
+
}),
|
|
278
271
|
applyPostRewrite: async () => runActiveOnWriteHooks({
|
|
279
272
|
path: params.historyPath,
|
|
280
273
|
scope: "project",
|
|
@@ -554,6 +547,6 @@ export {
|
|
|
554
547
|
runHistoryCompact,
|
|
555
548
|
runHistoryCompactBulk
|
|
556
549
|
};
|
|
557
|
-
//# sourceMappingURL=history-compact-
|
|
550
|
+
//# sourceMappingURL=history-compact-F355EGL4.js.map
|
|
558
551
|
|
|
559
|
-
//# debugId=
|
|
552
|
+
//# debugId=9f49ebde-040b-5f53-9f82-5156914aa44c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../cli/commands/history-compact.ts","../../../../../../../../core/history/history-compact-bulk.ts"],"sourcesContent":["/**\n * @module cli/commands/history-compact\n *\n * Implements the pm history compact command surface and its agent-facing runtime behavior.\n */\nimport fs from \"node:fs/promises\";\nimport path from \"node:path\";\nimport { createHistoryEntry } from \"../../core/history/history.js\";\nimport {\n selectHistoryCompactBulkTargets,\n type HistoryCompactBulkCandidate,\n type HistoryCompactBulkSkipReason,\n type HistoryCompactScope,\n} from \"../../core/history/history-compact-bulk.js\";\nimport { executeHistoryRewrite, writeHistoryRawWithRollback } from \"../../core/history/history-rewrite.js\";\nimport {\n cloneEmptyReplayDocument,\n historyEntriesToRaw,\n replayHash,\n replayToItemDocument,\n toReplayDocument,\n tryApplyReplayPatch,\n verifyHistoryChain,\n type ReplayDocument,\n} from \"../../core/history/replay.js\";\nimport { resolveItemTypeRegistry } from \"../../core/item/type-registry.js\";\nimport { lifecycleClassifierFromStatusRegistry } from \"../../core/governance/metadata-coverage.js\";\nimport { resolveRuntimeStatusRegistry } from \"../../core/schema/runtime-schema.js\";\nimport { listAllFrontMatterLight } from \"../../core/store/item-store.js\";\nimport { pathExists, readFileIfExists } from \"../../core/fs/fs-utils.js\";\nimport { EXIT_CODE } from \"../../core/shared/constants.js\";\nimport type { GlobalOptions } from \"../../core/shared/command-types.js\";\nimport { PmCliError } from \"../../core/shared/errors.js\";\nimport { nowIso } from \"../../core/shared/time.js\";\nimport {\n getActiveExtensionRegistrations,\n runActiveOnReadHooks,\n runActiveOnWriteHooks,\n} from \"../../core/extensions/index.js\";\nimport { readLocatedItem } from \"../../core/store/item-store.js\";\nimport { getSettingsPath, resolvePmRoot } from \"../../core/store/paths.js\";\nimport { readSettings } from \"../../core/store/settings.js\";\nimport { resolveAuthor } from \"../../core/shared/author.js\";\nimport type { HistoryEntry } from \"../../types/index.js\";\nimport { readHistoryEntries } from \"./history.js\";\nimport { resolveHistorySubject } from \"./history-redact.js\";\n\n/**\n * Documents the history compact command options payload exchanged by command, SDK, and package integrations.\n */\nexport interface HistoryCompactCommandOptions {\n before?: string;\n dryRun?: boolean;\n author?: string;\n message?: string;\n force?: boolean;\n}\n\ntype HistoryCompactBoundaryKind = \"default\" | \"version\" | \"timestamp\";\n\ninterface HistoryCompactBoundary {\n kind: HistoryCompactBoundaryKind;\n raw: string | null;\n compactCount: number;\n retainedCount: number;\n}\n\ninterface HistoryCompactCurrentItem {\n loadedItem: Awaited<ReturnType<typeof readLocatedItem>> | null;\n currentItemRawBeforeLock: string | null;\n matchedChainBefore: boolean | null;\n}\n\n/**\n * Documents the history compact result payload exchanged by command, SDK, and package integrations.\n */\nexport interface HistoryCompactResult {\n id: string;\n dry_run: boolean;\n changed: boolean;\n compact_boundary: {\n kind: HistoryCompactBoundaryKind;\n before: string | null;\n entries_compacted: number;\n entries_retained: number;\n first_retained_entry: number | null;\n };\n history: {\n path: string;\n entries_scanned: number;\n entries_after: number;\n baseline_entry_added: boolean;\n audit_entry_added: boolean;\n verify_ok: boolean;\n verify_errors: string[];\n };\n item: {\n exists: boolean;\n path: string | null;\n matched_chain_before: boolean | null;\n };\n warnings: string[];\n generated_at: string;\n}\n\nfunction parseBeforeBoundary(before: string | undefined, entries: HistoryEntry[]): HistoryCompactBoundary {\n if (before === undefined) {\n return {\n kind: \"default\",\n raw: null,\n compactCount: entries.length,\n retainedCount: 0,\n };\n }\n\n const raw = before.trim();\n if (raw.length === 0) {\n throw new PmCliError(\"history-compact --before requires a non-empty value.\", EXIT_CODE.USAGE);\n }\n\n if (/^\\d+$/.test(raw)) {\n const version = Number.parseInt(raw, 10);\n if (!Number.isSafeInteger(version) || version < 1 || version > entries.length + 1) {\n throw new PmCliError(\n `history-compact --before version must be between 1 and ${entries.length + 1}.`,\n EXIT_CODE.USAGE,\n );\n }\n const compactCount = Math.max(0, Math.min(entries.length, version - 1));\n return {\n kind: \"version\",\n raw,\n compactCount,\n retainedCount: entries.length - compactCount,\n };\n }\n\n const beforeTs = Date.parse(raw);\n if (!Number.isFinite(beforeTs)) {\n throw new PmCliError(\n `Invalid history-compact --before value \"${before}\". Use a version number or ISO timestamp.`,\n EXIT_CODE.USAGE,\n );\n }\n\n let compactCount = 0;\n for (const [index, entry] of entries.entries()) {\n const entryTs = Date.parse(entry.ts);\n if (!Number.isFinite(entryTs)) {\n throw new PmCliError(\n `History for this item contains invalid timestamp at entry ${index + 1}.`,\n EXIT_CODE.GENERIC_FAILURE,\n );\n }\n if (entryTs >= beforeTs) {\n break;\n }\n compactCount += 1;\n }\n\n return {\n kind: \"timestamp\",\n raw,\n compactCount,\n retainedCount: entries.length - compactCount,\n };\n}\n\nfunction applyHistoryPatch(current: ReplayDocument, entry: HistoryEntry, entryNumber: number): ReplayDocument {\n const result = tryApplyReplayPatch(current, entry.patch);\n if (!result.ok) {\n throw new PmCliError(\n `history-compact failed to apply patch at entry ${entryNumber} (op=${entry.op}): ${\n result.error instanceof Error ? result.error.message : String(result.error)\n }`,\n EXIT_CODE.GENERIC_FAILURE,\n );\n }\n return result.document;\n}\n\nfunction replayHistoryAndResolveCheckpoint(\n entries: HistoryEntry[],\n compactCount: number,\n): {\n checkpoint: ReplayDocument;\n finalReplay: ReplayDocument;\n} {\n let replay = cloneEmptyReplayDocument();\n let checkpoint = cloneEmptyReplayDocument();\n for (let index = 0; index < entries.length; index += 1) {\n const entry = entries[index];\n if (replayHash(replay) !== entry.before_hash) {\n throw new PmCliError(\n `history-compact detected before-hash drift at entry ${index + 1}; run pm history-repair first.`,\n EXIT_CODE.CONFLICT,\n );\n }\n replay = applyHistoryPatch(replay, entry, index + 1);\n if (replayHash(replay) !== entry.after_hash) {\n throw new PmCliError(\n `history-compact detected after-hash drift at entry ${index + 1}; run pm history-repair first.`,\n EXIT_CODE.CONFLICT,\n );\n }\n if (index + 1 === compactCount) {\n checkpoint = structuredClone(replay);\n }\n }\n return {\n checkpoint,\n finalReplay: replay,\n };\n}\n\nfunction reanchorRetainedEntries(\n retainedEntries: HistoryEntry[],\n seed: ReplayDocument,\n retainedEntryOffset: number,\n): {\n entries: HistoryEntry[];\n finalReplay: ReplayDocument;\n} {\n let replay = structuredClone(seed);\n const rewritten: HistoryEntry[] = [];\n for (const [index, entry] of retainedEntries.entries()) {\n const beforeHash = replayHash(replay);\n replay = applyHistoryPatch(replay, entry, retainedEntryOffset + index + 1);\n rewritten.push({\n ...entry,\n before_hash: beforeHash,\n after_hash: replayHash(replay),\n });\n }\n return {\n entries: rewritten,\n finalReplay: replay,\n };\n}\n\nasync function loadHistoryCompactCurrentItem(\n subject: Awaited<ReturnType<typeof resolveHistorySubject>>,\n settings: Awaited<ReturnType<typeof readSettings>>,\n historyEntries: HistoryEntry[],\n): Promise<HistoryCompactCurrentItem> {\n const loadedItem = subject.located ? await readLocatedItem(subject.located, { schema: settings.schema }) : null;\n if (!loadedItem) {\n return { loadedItem: null, currentItemRawBeforeLock: null, matchedChainBefore: null };\n }\n return {\n loadedItem,\n currentItemRawBeforeLock: loadedItem.raw,\n matchedChainBefore: replayHash(toReplayDocument(loadedItem.document)) === historyEntries[historyEntries.length - 1]?.after_hash,\n };\n}\n\nfunction buildHistoryCompactMessage(options: HistoryCompactCommandOptions, boundary: HistoryCompactBoundary): string {\n if (typeof options.message === \"string\" && options.message.trim().length > 0) {\n return options.message;\n }\n if (boundary.raw === null) {\n return `history-compact compacted full stream (${boundary.compactCount} entr${\n boundary.compactCount === 1 ? \"y\" : \"ies\"\n }).`;\n }\n return `history-compact compacted ${boundary.compactCount} entr${\n boundary.compactCount === 1 ? \"y\" : \"ies\"\n } before ${boundary.raw}.`;\n}\n\nfunction buildHistoryCompactBaselineMessage(boundary: HistoryCompactBoundary): string {\n if (boundary.raw === null) {\n return `history-compact baseline snapshot after compacting ${boundary.compactCount} entr${\n boundary.compactCount === 1 ? \"y\" : \"ies\"\n }.`;\n }\n return `history-compact baseline snapshot before ${boundary.raw}.`;\n}\n\nfunction buildHistoryCompactEntries(params: {\n historyEntries: HistoryEntry[];\n boundary: HistoryCompactBoundary;\n changed: boolean;\n dryRun: boolean;\n author: string;\n options: HistoryCompactCommandOptions;\n}): { rewrittenEntries: HistoryEntry[]; baselineEntryAdded: boolean; auditEntryAdded: boolean } {\n if (!params.changed) {\n return { rewrittenEntries: params.historyEntries, baselineEntryAdded: false, auditEntryAdded: false };\n }\n const { checkpoint, finalReplay } = replayHistoryAndResolveCheckpoint(params.historyEntries, params.boundary.compactCount);\n const retained = params.historyEntries.slice(params.boundary.compactCount);\n const reanchored = reanchorRetainedEntries(retained, checkpoint, params.boundary.compactCount);\n const baselineEntry = createHistoryEntry({\n nowIso: nowIso(),\n author: params.author,\n op: \"history_compact_baseline\",\n before: replayToItemDocument(cloneEmptyReplayDocument()),\n after: replayToItemDocument(checkpoint),\n message: buildHistoryCompactBaselineMessage(params.boundary),\n });\n const rewrittenEntries = [baselineEntry, ...reanchored.entries];\n if (!params.dryRun) {\n rewrittenEntries.push(\n createHistoryEntry({\n nowIso: nowIso(),\n author: params.author,\n op: \"history_compact\",\n before: replayToItemDocument(finalReplay),\n after: replayToItemDocument(finalReplay),\n message: buildHistoryCompactMessage(params.options, params.boundary),\n }),\n );\n }\n return { rewrittenEntries, baselineEntryAdded: true, auditEntryAdded: !params.dryRun };\n}\n\nasync function applyHistoryCompactRewrite(params: {\n pmRoot: string;\n subject: Awaited<ReturnType<typeof resolveHistorySubject>>;\n settings: Awaited<ReturnType<typeof readSettings>>;\n typeRegistry: ReturnType<typeof resolveItemTypeRegistry>;\n historyRawBeforeLock: string;\n currentItemRawBeforeLock: string | null;\n author: string;\n force: boolean | undefined;\n loadedItem: Awaited<ReturnType<typeof readLocatedItem>> | null;\n historyPath: string;\n rewrittenEntries: HistoryEntry[];\n}): Promise<string[]> {\n return executeHistoryRewrite({\n pmRoot: params.pmRoot,\n subject: params.subject,\n settings: params.settings,\n typeRegistry: params.typeRegistry,\n historyRawBeforeLock: params.historyRawBeforeLock,\n currentItemRawBeforeLock: params.currentItemRawBeforeLock,\n operation: \"history-compact\",\n author: params.author,\n force: params.force,\n itemDocument: params.loadedItem?.document ?? null,\n applyRewrite: async ({ historyRawUnderLock }) =>\n writeHistoryRawWithRollback({\n historyPath: params.historyPath,\n nextHistoryRaw: historyEntriesToRaw(params.rewrittenEntries),\n historyRawUnderLock,\n }),\n applyPostRewrite: async () =>\n runActiveOnWriteHooks({\n path: params.historyPath,\n scope: \"project\",\n op: \"history_compact:history\",\n }),\n });\n}\n\n/**\n * Implements run history compact for the public runtime surface of this module.\n */\nexport async function runHistoryCompact(\n id: string,\n options: HistoryCompactCommandOptions,\n global: GlobalOptions,\n): Promise<HistoryCompactResult> {\n const pmRoot = resolvePmRoot(process.cwd(), global.path);\n if (!(await pathExists(getSettingsPath(pmRoot)))) {\n throw new PmCliError(`Tracker is not initialized at ${pmRoot}. Run pm init first.`, EXIT_CODE.NOT_FOUND);\n }\n\n const settings = await readSettings(pmRoot);\n const typeRegistry = resolveItemTypeRegistry(settings, getActiveExtensionRegistrations());\n const subject = await resolveHistorySubject(pmRoot, id, settings, typeRegistry.type_to_folder);\n const historyPath = subject.historyPath;\n const historyRawBeforeLock = await readFileIfExists(historyPath);\n if (historyRawBeforeLock === null) {\n throw new PmCliError(`No history stream exists for ${subject.id}.`, EXIT_CODE.NOT_FOUND);\n }\n const historyEntries = await readHistoryEntries(historyPath, subject.id);\n if (historyEntries.length === 0) {\n throw new PmCliError(`No history entries exist for ${subject.id}; nothing to compact.`, EXIT_CODE.USAGE);\n }\n\n const chainVerification = verifyHistoryChain(historyEntries);\n if (!chainVerification.ok) {\n throw new PmCliError(\n `history-compact requires a valid history chain (${chainVerification.errors.join(\", \")}). Run pm history-repair ${subject.id} first.`,\n EXIT_CODE.CONFLICT,\n );\n }\n\n const boundary = parseBeforeBoundary(options.before, historyEntries);\n const changed = boundary.compactCount > 0;\n const dryRun = Boolean(options.dryRun);\n const author = resolveAuthor(options.author, settings.author_default);\n const warnings: string[] = [];\n if (!changed) {\n warnings.push(\"history_compact_noop_before_boundary\");\n }\n\n const currentItem = await loadHistoryCompactCurrentItem(subject, settings, historyEntries);\n if (currentItem.matchedChainBefore === false) {\n warnings.push(\"history_compact_item_chain_mismatch\");\n }\n\n const { rewrittenEntries, baselineEntryAdded, auditEntryAdded } = buildHistoryCompactEntries({\n historyEntries,\n boundary,\n changed,\n dryRun,\n author,\n options,\n });\n\n const rewrittenVerify = verifyHistoryChain(rewrittenEntries);\n if (!rewrittenVerify.ok) {\n throw new PmCliError(\n `history-compact produced an invalid rewritten chain (${rewrittenVerify.errors.join(\", \")}).`,\n EXIT_CODE.GENERIC_FAILURE,\n );\n }\n\n if (changed && !dryRun) {\n warnings.push(\n ...(await applyHistoryCompactRewrite({\n pmRoot,\n subject,\n settings,\n typeRegistry,\n historyRawBeforeLock,\n currentItemRawBeforeLock: currentItem.currentItemRawBeforeLock,\n author,\n force: options.force,\n loadedItem: currentItem.loadedItem,\n historyPath,\n rewrittenEntries,\n })),\n );\n }\n\n const firstRetainedEntry = boundary.retainedCount > 0 ? boundary.compactCount + 1 : null;\n return {\n id: subject.id,\n dry_run: dryRun,\n changed,\n compact_boundary: {\n kind: boundary.kind,\n before: boundary.raw,\n entries_compacted: boundary.compactCount,\n entries_retained: boundary.retainedCount,\n first_retained_entry: firstRetainedEntry,\n },\n history: {\n path: historyPath,\n entries_scanned: historyEntries.length,\n entries_after: rewrittenEntries.length,\n baseline_entry_added: baselineEntryAdded,\n audit_entry_added: auditEntryAdded,\n verify_ok: rewrittenVerify.ok,\n verify_errors: rewrittenVerify.errors,\n },\n item: {\n exists: subject.located !== null,\n path: subject.located?.itemPath ?? null,\n matched_chain_before: currentItem.matchedChainBefore,\n },\n warnings: [...new Set(warnings)].sort((left, right) => left.localeCompare(right)),\n generated_at: nowIso(),\n };\n}\n\n/** Default entry floor below which a stream is treated as already compact. */\nexport const HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES = 3;\n\n/**\n * Documents the bulk history compact command options payload exchanged by command, SDK, and package integrations.\n */\nexport interface HistoryCompactBulkCommandOptions {\n ids?: string[];\n scope?: HistoryCompactScope;\n allOver?: number;\n minEntries?: number;\n dryRun?: boolean;\n author?: string;\n message?: string;\n force?: boolean;\n}\n\n/** Per-item outcome row in a bulk compaction pass. */\nexport interface HistoryCompactBulkItemResult {\n id: string;\n outcome: \"compacted\" | \"skipped\" | \"errored\";\n entries_before: number;\n entries_after: number | null;\n skip_reason: HistoryCompactBulkSkipReason | null;\n changed: boolean;\n error: string | null;\n}\n\n/**\n * Documents the bulk history compact result payload exchanged by command, SDK, and package integrations.\n */\nexport interface HistoryCompactBulkResult {\n bulk: true;\n dry_run: boolean;\n mode: \"ids\" | \"scan\";\n scope: HistoryCompactScope | null;\n criteria: {\n min_entries: number;\n all_over: number | null;\n policy_threshold_applied: boolean;\n };\n totals: {\n streams_considered: number;\n selected: number;\n items_compacted: number;\n items_skipped: number;\n items_errored: number;\n };\n results: HistoryCompactBulkItemResult[];\n generated_at: string;\n}\n\n/**\n * Enforce the `pm history-compact` target contract shared by the CLI and MCP\n * surfaces: exactly one selection mode — a single item `<id>`, an explicit\n * `--ids` list, or a scan selector (`--all-over` / `--closed` / `--all-streams`).\n */\nexport function assertHistoryCompactTarget(\n id: string | undefined,\n bulk: { ids?: string[]; allOver?: number; scope?: HistoryCompactScope },\n): void {\n const hasIds = bulk.ids !== undefined && bulk.ids.length > 0;\n const hasScan = bulk.allOver !== undefined || bulk.scope !== undefined;\n const selectorCount = (id !== undefined ? 1 : 0) + (hasIds ? 1 : 0) + (hasScan ? 1 : 0);\n if (selectorCount === 0) {\n throw new PmCliError(\n \"history-compact: provide an item <id>, or a bulk selector (--ids, --all-over <N>, --closed, or --all-streams).\",\n EXIT_CODE.USAGE,\n );\n }\n if (id !== undefined && (hasIds || hasScan)) {\n throw new PmCliError(\n \"history-compact: <id> and bulk selectors (--ids/--all-over/--closed/--all-streams) are mutually exclusive; pass one item id, or use bulk mode without a positional id.\",\n EXIT_CODE.USAGE,\n );\n }\n if (hasIds && hasScan) {\n throw new PmCliError(\n \"history-compact: --ids is mutually exclusive with --all-over/--closed/--all-streams; pass an explicit id list or a scan selector, not both.\",\n EXIT_CODE.USAGE,\n );\n }\n}\n\nfunction countHistoryStreamEntries(raw: string): number {\n let count = 0;\n for (const line of raw.split(/\\r?\\n/)) {\n if (line.trim().length > 0) {\n count += 1;\n }\n }\n return count;\n}\n\nasync function collectHistoryCompactBulkCandidates(params: {\n pmRoot: string;\n settings: Awaited<ReturnType<typeof readSettings>>;\n typeToFolder: Record<string, string>;\n}): Promise<{ candidates: HistoryCompactBulkCandidate[]; preselectionErrors: HistoryCompactBulkItemResult[] }> {\n const statusRegistry = resolveRuntimeStatusRegistry(params.settings.schema);\n const classifier = lifecycleClassifierFromStatusRegistry(statusRegistry);\n const items = await listAllFrontMatterLight(\n params.pmRoot,\n params.settings.item_format,\n params.typeToFolder,\n undefined,\n params.settings.schema,\n );\n const bucketById = new Map(items.map((item) => [item.id, classifier.classify(item.status)] as const));\n const historyDir = path.join(params.pmRoot, \"history\");\n const candidates: HistoryCompactBulkCandidate[] = [];\n const preselectionErrors: HistoryCompactBulkItemResult[] = [];\n if (!(await pathExists(historyDir))) {\n return { candidates, preselectionErrors };\n }\n const historyFiles = (await fs.readdir(historyDir))\n .filter((entry) => entry.endsWith(\".jsonl\"))\n .sort((left, right) => left.localeCompare(right));\n for (const fileName of historyFiles) {\n const historyPath = path.join(historyDir, fileName);\n const id = fileName.slice(0, -\".jsonl\".length);\n try {\n const raw = await fs.readFile(historyPath, \"utf8\");\n await runActiveOnReadHooks({ path: historyPath, scope: \"project\" });\n candidates.push({ id, entries: countHistoryStreamEntries(raw), bucket: bucketById.get(id) ?? null });\n } catch (error) {\n preselectionErrors.push({\n id,\n outcome: \"errored\",\n entries_before: 0,\n entries_after: null,\n skip_reason: null,\n changed: false,\n /* c8 ignore next -- non-Error throws are normalized in defensive fallback. */\n error: error instanceof Error ? error.message : String(error),\n });\n }\n }\n return { candidates, preselectionErrors };\n}\n\nasync function runHistoryCompactBulkRow(params: {\n row: ReturnType<typeof selectHistoryCompactBulkTargets>[number];\n options: HistoryCompactBulkCommandOptions;\n dryRun: boolean;\n global: GlobalOptions;\n}): Promise<{ result: HistoryCompactBulkItemResult; selected: boolean; compacted: boolean; errored: boolean }> {\n if (!params.row.selected) {\n return {\n selected: false,\n compacted: false,\n errored: false,\n result: {\n id: params.row.id,\n outcome: \"skipped\",\n entries_before: params.row.entries,\n entries_after: null,\n skip_reason: params.row.skip_reason,\n changed: false,\n error: null,\n },\n };\n }\n try {\n const result = await runHistoryCompact(\n params.row.id,\n {\n dryRun: params.dryRun,\n author: params.options.author,\n message: params.options.message,\n force: params.options.force,\n },\n params.global,\n );\n return {\n selected: true,\n compacted: true,\n errored: false,\n result: {\n id: params.row.id,\n outcome: \"compacted\",\n entries_before: params.row.entries,\n entries_after: result.history.entries_after,\n skip_reason: null,\n changed: result.changed,\n error: null,\n },\n };\n } catch (error) {\n return {\n selected: true,\n compacted: false,\n errored: true,\n result: {\n id: params.row.id,\n outcome: \"errored\",\n entries_before: params.row.entries,\n entries_after: null,\n skip_reason: null,\n changed: false,\n /* c8 ignore next -- non-Error throws are normalized in defensive fallback. */\n error: error instanceof Error ? error.message : String(error),\n },\n };\n }\n}\n\n/**\n * Bulk history compaction: compact every history stream matching the requested\n * selection (explicit `--ids`, a `--scope` lifecycle filter, and/or an\n * `--all-over <N>` entry threshold) in one audited pass. Each selected stream is\n * compacted with the same single-item logic ({@link runHistoryCompact}); one\n * failing stream never aborts the rest, and the caller decides the exit code\n * from `totals.items_errored`.\n *\n * When `history.compact_policy` is enabled and no explicit `--all-over` is\n * given, the policy's `max_entries` is used as the scan threshold so the\n * configured policy drives the sweep.\n */\nexport async function runHistoryCompactBulk(\n options: HistoryCompactBulkCommandOptions,\n global: GlobalOptions,\n): Promise<HistoryCompactBulkResult> {\n const pmRoot = resolvePmRoot(process.cwd(), global.path);\n if (!(await pathExists(getSettingsPath(pmRoot)))) {\n throw new PmCliError(`Tracker is not initialized at ${pmRoot}. Run pm init first.`, EXIT_CODE.NOT_FOUND);\n }\n\n const settings = await readSettings(pmRoot);\n const typeRegistry = resolveItemTypeRegistry(settings, getActiveExtensionRegistrations());\n const { candidates, preselectionErrors } = await collectHistoryCompactBulkCandidates({\n pmRoot,\n settings,\n typeToFolder: typeRegistry.type_to_folder,\n });\n\n const mode: \"ids\" | \"scan\" = options.ids !== undefined && options.ids.length > 0 ? \"ids\" : \"scan\";\n const minEntries = options.minEntries ?? HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES;\n const policy = settings.history.compact_policy;\n const policyThresholdApplied = mode === \"scan\" && options.allOver === undefined && policy.enabled;\n const allOver = options.allOver ?? (policyThresholdApplied ? policy.max_entries : undefined);\n\n const selection = selectHistoryCompactBulkTargets(candidates, {\n ids: options.ids,\n scope: options.scope,\n minEntries,\n allOver,\n });\n\n const dryRun = Boolean(options.dryRun);\n const results: HistoryCompactBulkItemResult[] = [...preselectionErrors];\n const totals = {\n streams_considered: candidates.length + preselectionErrors.length,\n selected: 0,\n items_compacted: 0,\n items_skipped: 0,\n items_errored: preselectionErrors.length,\n };\n for (const row of selection) {\n const outcome = await runHistoryCompactBulkRow({ row, options, dryRun, global });\n results.push(outcome.result);\n if (!outcome.selected) {\n totals.items_skipped += 1;\n continue;\n }\n totals.selected += 1;\n if (outcome.compacted) {\n totals.items_compacted += 1;\n }\n if (outcome.errored) {\n totals.items_errored += 1;\n }\n }\n\n return {\n bulk: true,\n dry_run: dryRun,\n mode,\n scope: options.scope ?? null,\n criteria: {\n min_entries: minEntries,\n all_over: allOver ?? null,\n policy_threshold_applied: policyThresholdApplied,\n },\n totals,\n results,\n generated_at: nowIso(),\n };\n}\n","/**\n * @module core/history/history-compact-bulk\n *\n * Pure selection logic for bulk history-stream compaction. Given a set of\n * history-stream candidates (id, entry count, and lifecycle bucket of the\n * owning item) plus the requested selection criteria, this module decides which\n * streams should be compacted and which are skipped (and why).\n *\n * The module performs no filesystem access and imports no heavy runtime\n * dependencies — the command layer reads streams and item statuses, hands the\n * resolved candidates here, then executes per-item compaction on the selection\n * this module returns. Keeping selection pure makes the matrix of scope /\n * threshold / explicit-id rules trivially testable without touching disk.\n */\n\nimport type { LifecycleBucket } from \"../governance/metadata-coverage.js\";\n\n/** Bulk-compaction scope: only closed items, or every history stream. */\nexport type HistoryCompactScope = \"closed\" | \"all-streams\";\n\n/** Why a candidate stream was not selected for compaction. */\nexport type HistoryCompactBulkSkipReason = \"no_stream\" | \"already_compact\" | \"scope_mismatch\" | \"below_threshold\";\n\n/**\n * One history stream considered for bulk compaction.\n *\n * `bucket` is the lifecycle bucket of the owning item, or `null` when no item\n * matches the stream (an orphan history file). Orphan streams never satisfy a\n * `closed` scope filter but are eligible under `all-streams`.\n */\nexport interface HistoryCompactBulkCandidate {\n id: string;\n entries: number;\n bucket: LifecycleBucket | null;\n}\n\n/** Selection criteria resolved from the command flags + policy defaults. */\nexport interface HistoryCompactBulkCriteria {\n /**\n * Explicit, ordered list of item ids to compact. When non-empty the selection\n * runs in \"ids\" mode: scope/allOver are ignored and only the `minEntries`\n * floor applies. Duplicates are collapsed, preserving first-seen order.\n */\n ids?: string[];\n /** Lifecycle scope filter for scan mode (ignored in ids mode). */\n scope?: HistoryCompactScope;\n /**\n * Streams with at most this many entries are skipped as `already_compact`\n * (compaction collapses a stream to a 2-entry baseline+audit pair, so smaller\n * streams gain nothing). Applies in both modes.\n */\n minEntries: number;\n /**\n * Scan mode only: when set, only streams with strictly more entries than this\n * are selected. Streams above `minEntries` but at/below `allOver` are skipped\n * as `below_threshold`.\n */\n allOver?: number;\n}\n\n/** Per-candidate selection outcome. */\nexport interface HistoryCompactBulkSelectionRow {\n id: string;\n entries: number;\n selected: boolean;\n skip_reason: HistoryCompactBulkSkipReason | null;\n}\n\nfunction selectIdsMode(\n ids: string[],\n byId: ReadonlyMap<string, HistoryCompactBulkCandidate>,\n minEntries: number,\n): HistoryCompactBulkSelectionRow[] {\n const seen = new Set<string>();\n const rows: HistoryCompactBulkSelectionRow[] = [];\n for (const rawId of ids) {\n const id = rawId.trim();\n if (id.length === 0 || seen.has(id)) {\n continue;\n }\n seen.add(id);\n const candidate = byId.get(id);\n if (candidate === undefined) {\n rows.push({ id, entries: 0, selected: false, skip_reason: \"no_stream\" });\n continue;\n }\n if (candidate.entries <= minEntries) {\n rows.push({ id, entries: candidate.entries, selected: false, skip_reason: \"already_compact\" });\n continue;\n }\n rows.push({ id, entries: candidate.entries, selected: true, skip_reason: null });\n }\n return rows;\n}\n\nfunction selectScanMode(\n candidates: HistoryCompactBulkCandidate[],\n criteria: HistoryCompactBulkCriteria,\n): HistoryCompactBulkSelectionRow[] {\n const ordered = [...candidates].sort((a, b) => b.entries - a.entries || a.id.localeCompare(b.id));\n const rows: HistoryCompactBulkSelectionRow[] = [];\n for (const candidate of ordered) {\n if (criteria.scope === \"closed\" && candidate.bucket !== \"closed\") {\n rows.push({ id: candidate.id, entries: candidate.entries, selected: false, skip_reason: \"scope_mismatch\" });\n continue;\n }\n if (candidate.entries <= criteria.minEntries) {\n rows.push({ id: candidate.id, entries: candidate.entries, selected: false, skip_reason: \"already_compact\" });\n continue;\n }\n if (criteria.allOver !== undefined && candidate.entries <= criteria.allOver) {\n rows.push({ id: candidate.id, entries: candidate.entries, selected: false, skip_reason: \"below_threshold\" });\n continue;\n }\n rows.push({ id: candidate.id, entries: candidate.entries, selected: true, skip_reason: null });\n }\n return rows;\n}\n\n/**\n * Decide which history streams to compact.\n *\n * Runs in \"ids\" mode when `criteria.ids` is non-empty (exact, ordered set,\n * honouring only the `minEntries` floor) and \"scan\" mode otherwise (every\n * candidate, filtered by scope and entry thresholds, ordered deepest-first).\n */\nexport function selectHistoryCompactBulkTargets(\n candidates: HistoryCompactBulkCandidate[],\n criteria: HistoryCompactBulkCriteria,\n): HistoryCompactBulkSelectionRow[] {\n if (criteria.ids !== undefined && criteria.ids.length > 0) {\n const byId = new Map(candidates.map((candidate) => [candidate.id, candidate]));\n return selectIdsMode(criteria.ids, byId, criteria.minEntries);\n }\n return selectScanMode(candidates, criteria);\n}\n"],"names":["compactCount"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,OAAO,QAAQ;AACf,OAAO,UAAU;;;AC8DjB,SAAS,cACP,KACA,MACA,YAAkB;AAElB,QAAM,OAAO,oBAAI,IAAG;AACpB,QAAM,OAAyC,CAAA;AAC/C,aAAW,SAAS,KAAK;AACvB,UAAM,KAAK,MAAM,KAAI;AACrB,QAAI,GAAG,WAAW,KAAK,KAAK,IAAI,EAAE,GAAG;AACnC;IACF;AACA,SAAK,IAAI,EAAE;AACX,UAAM,YAAY,KAAK,IAAI,EAAE;AAC7B,QAAI,cAAc,QAAW;AAC3B,WAAK,KAAK,EAAE,IAAI,SAAS,GAAG,UAAU,OAAO,aAAa,YAAW,CAAE;AACvE;IACF;AACA,QAAI,UAAU,WAAW,YAAY;AACnC,WAAK,KAAK,EAAE,IAAI,SAAS,UAAU,SAAS,UAAU,OAAO,aAAa,kBAAiB,CAAE;AAC7F;IACF;AACA,SAAK,KAAK,EAAE,IAAI,SAAS,UAAU,SAAS,UAAU,MAAM,aAAa,KAAI,CAAE;EACjF;AACA,SAAO;AACT;AAEA,SAAS,eACP,YACA,UAAoC;AAEpC,QAAM,UAAU,CAAC,GAAG,UAAU,EAAE,KAAK,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,cAAc,EAAE,EAAE,CAAC;AAChG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AoB,WAAW,SAAS,mBAAmB;IAC3D,UAAU;IACV,iBAAiB;IACjB,eAAe;IACf,eAAe,mBAAmB;;AAEpC,aAAW,OAAO,WAAW;AAC3B,UAAM,UAAU,MAAM,yBAAyB,EAAE,KAAK,SAAS,QAAQ,OAAM,CAAE;AAC/E,YAAQ,KAAK,QAAQ,MAAM;AAC3B,QAAI,CAAC,QAAQ,UAAU;AACrB,aAAO,iBAAiB;AACxB;IACF;AACA,WAAO,YAAY;AACnB,QAAI,QAAQ,WAAW;AACrB,aAAO,mBAAmB;IAC5B;AACA,QAAI,QAAQ,SAAS;AACnB,aAAO,iBAAiB;IAC1B;EACF;AAEA,SAAO;IACL,MAAM;IACN,SAAS;IACT;IACA,OAAO,QAAQ,SAAS;IACxB,UAAU;MACR,aAAa;MACb,UAAU,WAAW;MACrB,0BAA0B;;IAE5B;IACA;IACA,cAAc,OAAM;;AAExB","debugId":"9f49ebde-040b-5f53-9f82-5156914aa44c"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeHistoryRewrite,
|
|
3
|
-
resolveHistorySubject
|
|
4
|
-
|
|
3
|
+
resolveHistorySubject,
|
|
4
|
+
writeHistoryRawWithRollback
|
|
5
|
+
} from "./chunk-4PJYRA3V.js";
|
|
5
6
|
import {
|
|
6
7
|
resolveAuthor
|
|
7
8
|
} from "./chunk-WW4E2DC3.js";
|
|
8
9
|
import {
|
|
9
10
|
readHistoryEntries
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EB4BBEZD.js";
|
|
11
12
|
import {
|
|
12
13
|
cloneEmptyReplayDocument,
|
|
13
14
|
historyEntriesToRaw,
|
|
@@ -16,20 +17,20 @@ import {
|
|
|
16
17
|
toReplayDocument,
|
|
17
18
|
tryApplyReplayPatch,
|
|
18
19
|
verifyHistoryChain
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HL742IBM.js";
|
|
20
21
|
import {
|
|
21
22
|
lifecycleClassifierFromStatusRegistry
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-724VLYDJ.js";
|
|
24
|
+
import "./chunk-3MLQZI3H.js";
|
|
24
25
|
import {
|
|
25
26
|
createHistoryEntry,
|
|
26
27
|
listAllFrontMatterLight,
|
|
27
28
|
readLocatedItem
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-CN4OAA2G.js";
|
|
30
|
+
import "./chunk-CQFZRLXQ.js";
|
|
30
31
|
import {
|
|
31
32
|
nowIso
|
|
32
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-MZG6I2Q2.js";
|
|
33
34
|
import {
|
|
34
35
|
EXIT_CODE,
|
|
35
36
|
PmCliError,
|
|
@@ -42,9 +43,8 @@ import {
|
|
|
42
43
|
resolvePmRoot,
|
|
43
44
|
resolveRuntimeStatusRegistry,
|
|
44
45
|
runActiveOnReadHooks,
|
|
45
|
-
runActiveOnWriteHooks
|
|
46
|
-
|
|
47
|
-
} from "./chunk-KHVGM5CS.js";
|
|
46
|
+
runActiveOnWriteHooks
|
|
47
|
+
} from "./chunk-BDDYM4LH.js";
|
|
48
48
|
|
|
49
49
|
// dist/cli/commands/history-compact.js
|
|
50
50
|
import fs from "node:fs/promises";
|
|
@@ -112,7 +112,7 @@ function selectHistoryCompactBulkTargets(candidates, criteria) {
|
|
|
112
112
|
!(function() {
|
|
113
113
|
try {
|
|
114
114
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
115
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
115
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "146d0012-1b32-50b1-a4d0-66eb7fe88f9f");
|
|
116
116
|
} catch (e2) {
|
|
117
117
|
}
|
|
118
118
|
})();
|
|
@@ -275,18 +275,11 @@ async function applyHistoryCompactRewrite(params) {
|
|
|
275
275
|
author: params.author,
|
|
276
276
|
force: params.force,
|
|
277
277
|
itemDocument: params.loadedItem?.document ?? null,
|
|
278
|
-
applyRewrite: async ({ historyRawUnderLock }) => {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
await fs.rm(params.historyPath, { force: true });
|
|
284
|
-
} else {
|
|
285
|
-
await writeFileAtomic(params.historyPath, historyRawUnderLock);
|
|
286
|
-
}
|
|
287
|
-
throw error;
|
|
288
|
-
}
|
|
289
|
-
},
|
|
278
|
+
applyRewrite: async ({ historyRawUnderLock }) => writeHistoryRawWithRollback({
|
|
279
|
+
historyPath: params.historyPath,
|
|
280
|
+
nextHistoryRaw: historyEntriesToRaw(params.rewrittenEntries),
|
|
281
|
+
historyRawUnderLock
|
|
282
|
+
}),
|
|
290
283
|
applyPostRewrite: async () => runActiveOnWriteHooks({
|
|
291
284
|
path: params.historyPath,
|
|
292
285
|
scope: "project",
|
|
@@ -566,4 +559,4 @@ export {
|
|
|
566
559
|
runHistoryCompact,
|
|
567
560
|
runHistoryCompactBulk
|
|
568
561
|
};
|
|
569
|
-
//# sourceMappingURL=history-compact-
|
|
562
|
+
//# sourceMappingURL=history-compact-JQ6ZGYSJ.js.map
|