@unbrained/pm-cli 2026.7.2 → 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/.claude-plugin/marketplace.json +3 -3
- package/CHANGELOG.md +29 -0
- package/CONTRIBUTING.md +38 -9
- package/README.md +1 -5
- package/dist/cli/commander-usage.js +54 -41
- package/dist/cli/commander-usage.js.map +1 -1
- package/dist/cli/commands/activity.js +79 -57
- package/dist/cli/commands/activity.js.map +1 -1
- package/dist/cli/commands/calendar.js +3 -3
- package/dist/cli/commands/calendar.js.map +1 -1
- package/dist/cli/commands/close-many.js +106 -65
- package/dist/cli/commands/close-many.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 +38 -39
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/extension/doctor.js +56 -67
- package/dist/cli/commands/extension/doctor.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/extension/shared.js +21 -15
- package/dist/cli/commands/extension/shared.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/health.js +101 -112
- package/dist/cli/commands/health.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 +160 -111
- 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/next.js +13 -10
- package/dist/cli/commands/next.js.map +1 -1
- package/dist/cli/commands/profile.js +23 -15
- package/dist/cli/commands/profile.js.map +1 -1
- 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.d.ts +2 -0
- package/dist/cli/commands/validate.js +16 -4
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/error-guidance.js +9 -6
- package/dist/cli/error-guidance.js.map +1 -1
- package/dist/cli/extension-command-help.js +27 -19
- package/dist/cli/extension-command-help.js.map +1 -1
- package/dist/cli/help-json-payload.js +57 -49
- package/dist/cli/help-json-payload.js.map +1 -1
- package/dist/cli/main.js +48 -32
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/register-list-query.js +215 -213
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/register-mutation.js +368 -368
- package/dist/cli/register-mutation.js.map +1 -1
- package/dist/cli/register-operations.js +303 -299
- package/dist/cli/register-operations.js.map +1 -1
- package/dist/cli/registration-helpers.d.ts +4 -0
- package/dist/cli/registration-helpers.js +51 -56
- 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-CUC4JY3U.js → activity-OENQCYZD.js} +9 -9
- package/dist/cli-bundle/chunks/{aggregate-SW5PNGCS.js → aggregate-EC4LWS3U.js} +8 -8
- package/dist/cli-bundle/chunks/{aggregate-DKUTRY6R.js → aggregate-RCB3QJJE.js} +8 -8
- package/dist/cli-bundle/chunks/{append-H32VOR2Y.js → append-ADBOI3A6.js} +8 -8
- package/dist/cli-bundle/chunks/{append-UBM632FK.js → append-XLEKVVWB.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-Q6NXOHS6.js → chunk-2LRMWMZ6.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-2227673O.js → chunk-2ONH3WG6.js} +32 -13
- package/dist/cli-bundle/chunks/{chunk-2227673O.js.map → chunk-2ONH3WG6.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-MNBPX5JS.js → chunk-2VK677OA.js} +72 -49
- package/dist/cli-bundle/chunks/chunk-2VK677OA.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-KLXF7NCC.js → chunk-3C5T3ZEO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JMK5GCK2.js → chunk-3MLQZI3H.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-BTX5MIQF.js → chunk-4EVY7CQN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Q6K2OACU.js → chunk-4IW7STMB.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-6YCYF2AI.js → chunk-4KPQQ42D.js} +166 -110
- package/dist/cli-bundle/chunks/chunk-4KPQQ42D.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-BVZZN2LH.js → chunk-4OXNQHKQ.js} +23 -17
- package/dist/cli-bundle/chunks/{chunk-BVZZN2LH.js.map → chunk-4OXNQHKQ.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UWKEJMZU.js → chunk-4PJYRA3V.js} +31 -12
- package/dist/cli-bundle/chunks/{chunk-UWKEJMZU.js.map → chunk-4PJYRA3V.js.map} +3 -3
- package/dist/cli-bundle/chunks/{chunk-EMPGXBUF.js → chunk-4SHME4VR.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6ITZLD4T.js → chunk-5FYY76HR.js} +28 -99
- package/dist/cli-bundle/chunks/chunk-5FYY76HR.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-OTUJZKGI.js → chunk-6QY2NA2M.js} +24 -18
- package/dist/cli-bundle/chunks/{chunk-OTUJZKGI.js.map → chunk-6QY2NA2M.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-2KWL5NPW.js → chunk-6YB7HG2J.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-36UGKF4O.js → chunk-724VLYDJ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XCHUVHKU.js → chunk-75VMARGO.js} +11 -11
- package/dist/cli-bundle/chunks/chunk-75VMARGO.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-XWGEMNBR.js → chunk-7745CXNI.js} +119 -195
- package/dist/cli-bundle/chunks/chunk-7745CXNI.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-YPKFV2JR.js → chunk-7G5SUU6F.js} +76 -54
- package/dist/cli-bundle/chunks/chunk-7G5SUU6F.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-Y4NRKBFW.js → chunk-7ITQSEBL.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-W47SML5B.js → chunk-A222YWOQ.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-3LCUASYG.js → chunk-A2W3XKAD.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-KN3URLKS.js → chunk-AOP2EMK3.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-RM37OPYK.js → chunk-AZMPKLIA.js} +72 -49
- package/dist/cli-bundle/chunks/chunk-AZMPKLIA.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-7NSPKJUS.js → chunk-BDDYM4LH.js} +262 -252
- package/dist/cli-bundle/chunks/chunk-BDDYM4LH.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-JXAUVO6X.js → chunk-CN4OAA2G.js} +55 -20
- package/dist/cli-bundle/chunks/chunk-CN4OAA2G.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-IEEJQCZ4.js → chunk-CQFZRLXQ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-4NUOWFBT.js → chunk-CQISNF3Z.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-S62UANU7.js → chunk-D2LDM35X.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-GRRG3MCT.js → chunk-DEIDJQZK.js} +57 -136
- package/dist/cli-bundle/chunks/chunk-DEIDJQZK.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-IG5JYZGU.js → chunk-DJ5S2LDY.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-A6VOGKBA.js → chunk-EB4BBEZD.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-QH3FSKRJ.js → chunk-EH23N5FX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HQTPRV4D.js → chunk-FDNJMYZB.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-K2VYLVX4.js → chunk-FMWQRMHS.js} +33 -6
- package/dist/cli-bundle/chunks/chunk-FMWQRMHS.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-N2JSWVWG.js → chunk-HL742IBM.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-3AZUFQK6.js → chunk-J4KNRDI3.js} +59 -70
- package/dist/cli-bundle/chunks/{chunk-3AZUFQK6.js.map → chunk-J4KNRDI3.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-66Z3X7ZG.js → chunk-JYLFF7GJ.js} +166 -110
- package/dist/cli-bundle/chunks/chunk-JYLFF7GJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-GFMSLORL.js → chunk-JZJJEJBR.js} +75 -53
- package/dist/cli-bundle/chunks/chunk-JZJJEJBR.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-7TH5NMVB.js → chunk-KKHIQOTN.js} +25 -19
- package/dist/cli-bundle/chunks/chunk-KKHIQOTN.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-5GVTFFTC.js → chunk-LLQLLAKU.js} +118 -194
- package/dist/cli-bundle/chunks/chunk-LLQLLAKU.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-KIYCOJ63.js → chunk-M34MVAOP.js} +58 -137
- package/dist/cli-bundle/chunks/chunk-M34MVAOP.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-CZPVDLD2.js → chunk-M6PR5BC6.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-XEWQKDYZ.js → chunk-MTB4PRA3.js} +10 -10
- package/dist/cli-bundle/chunks/chunk-MTB4PRA3.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-MRD4T5LF.js → chunk-MZ4NH46V.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-AIAIXG7I.js → chunk-MZG6I2Q2.js} +39 -5
- package/dist/cli-bundle/chunks/chunk-MZG6I2Q2.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-ZNHEYCDD.js → chunk-N2LOJUBB.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WJAMWAHZ.js → chunk-NGDK3KEZ.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-SYNKD3ZG.js → chunk-NHDR3UCW.js} +46 -60
- package/dist/cli-bundle/chunks/chunk-NHDR3UCW.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-2CHRYUXL.js → chunk-NHKXOMZ5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-7MYWF4ZX.js → chunk-OTSP6UEX.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-UGLU6Q2I.js → chunk-PUVPC5DL.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-LTRAF2D7.js → chunk-PV5JS7MP.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-KCO2EAN5.js → chunk-Q2266G4S.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-SYVUU7EK.js → chunk-Q3XVLRCJ.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-AJEBCRIY.js → chunk-QFXFKYNQ.js} +47 -61
- package/dist/cli-bundle/chunks/chunk-QFXFKYNQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-6ZMBJRDJ.js → chunk-R7EMP4JG.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-SPM2XLWI.js → chunk-SBNT6SLO.js} +22 -7
- package/dist/cli-bundle/chunks/chunk-SBNT6SLO.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-I66WE2HE.js → chunk-SL2ANJSV.js} +260 -250
- package/dist/cli-bundle/chunks/chunk-SL2ANJSV.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-U2BEEM2X.js → chunk-T5RTYLZJ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-UTSH5GWX.js → chunk-TGYDJEJH.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-H4GRLYJS.js → chunk-TO4KCIOT.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-EUKTMRN3.js → chunk-TUV7SIWZ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-N3QCJS4M.js → chunk-UGDONITK.js} +58 -69
- package/dist/cli-bundle/chunks/{chunk-N3QCJS4M.js.map → chunk-UGDONITK.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-NRZS637N.js → chunk-UYLA5ROU.js} +56 -21
- package/dist/cli-bundle/chunks/chunk-UYLA5ROU.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-55XRYWEG.js → chunk-V655JQ5J.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-3Q2HBMTI.js → chunk-W5X3AHJN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XTHQWXVC.js → chunk-WBWRQS32.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-UT73HUPC.js → chunk-WOOB7PV7.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-5PGBHRY3.js → chunk-WSDIALO4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-LRKMWUUV.js → chunk-WTXDLBSZ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-FFOQHGNH.js → chunk-XBIYI23P.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-7W4H4K26.js → chunk-XFO2NJY6.js} +29 -100
- package/dist/cli-bundle/chunks/chunk-XFO2NJY6.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-TPOFWBMY.js → chunk-XQCWTSLO.js} +26 -20
- package/dist/cli-bundle/chunks/chunk-XQCWTSLO.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-2ASNV4DH.js → chunk-Y2VSCQ77.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-ZNT7KEWE.js → chunk-YZR7UMZ6.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YLZZ6T54.js → chunk-YZWXMDNH.js} +23 -8
- package/dist/cli-bundle/chunks/chunk-YZWXMDNH.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-CYBDUHNO.js → chunk-ZIEGTQCY.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-TTHCEV5Q.js → chunk-ZZWMJVW2.js} +4 -4
- package/dist/cli-bundle/chunks/{claim-Z7MEQCBT.js → claim-D6L33A5Y.js} +8 -8
- package/dist/cli-bundle/chunks/{claim-SENTPZBN.js → claim-YAFUTPVK.js} +8 -8
- package/dist/cli-bundle/chunks/close-KLDLHAOP.js +14 -0
- package/dist/cli-bundle/chunks/{close-424MX4CU.js → close-TGYXG7TV.js} +7 -7
- package/dist/cli-bundle/chunks/{close-many-SWY34BII.js → close-many-4QSWKCRU.js} +119 -76
- package/dist/cli-bundle/chunks/close-many-4QSWKCRU.js.map +7 -0
- package/dist/cli-bundle/chunks/{close-many-2IV4J2TR.js → close-many-SNA6LNZH.js} +120 -77
- package/dist/cli-bundle/chunks/close-many-SNA6LNZH.js.map +1 -0
- package/dist/cli-bundle/chunks/{comments-4FGNTSNV.js → comments-QC6ARR5X.js} +9 -9
- package/dist/cli-bundle/chunks/{comments-7YS5MY5X.js → comments-ZHVYGUVC.js} +9 -9
- package/dist/cli-bundle/chunks/{config-G74GISC4.js → config-O6W2EU2G.js} +7 -7
- package/dist/cli-bundle/chunks/{config-BZJKK7FZ.js → config-XQRFJXJP.js} +7 -7
- package/dist/cli-bundle/chunks/{context-LHVKJSPJ.js → context-IHE3IXN5.js} +12 -12
- package/dist/cli-bundle/chunks/{context-ZQY54JNS.js → context-WSYWBEUL.js} +12 -12
- package/dist/cli-bundle/chunks/{contracts-FIZLMP7O.js → contracts-CVBINC7C.js} +3 -3
- package/dist/cli-bundle/chunks/{contracts-CP2EZJC7.js → contracts-NLCDIZAT.js} +3 -3
- package/dist/cli-bundle/chunks/{copy-TLW7JTQT.js → copy-7MUQC44A.js} +5 -5
- package/dist/cli-bundle/chunks/{copy-GYNQQPW2.js → copy-ANWXDJVC.js} +5 -5
- package/dist/cli-bundle/chunks/create-AJ6HUR5W.js +28 -0
- package/dist/cli-bundle/chunks/{create-VSKYSOCD.js → create-JIA2IFCO.js} +12 -12
- package/dist/cli-bundle/chunks/{delete-ANTOTI2I.js → delete-5OLYWQIC.js} +5 -5
- package/dist/cli-bundle/chunks/{delete-4W5JYCEG.js → delete-INHKCIRN.js} +5 -5
- package/dist/cli-bundle/chunks/{deps-HPPE6MJN.js → deps-CCSWGZW7.js} +5 -5
- package/dist/cli-bundle/chunks/{deps-ZQZN54EZ.js → deps-IYEID3QX.js} +5 -5
- package/dist/cli-bundle/chunks/{docs-XJNYBJGE.js → docs-3XZK22WF.js} +7 -7
- package/dist/cli-bundle/chunks/{docs-RPOVFMP3.js → docs-PKO7OEIM.js} +7 -7
- package/dist/cli-bundle/chunks/{eval-RFBI5FGS.js → eval-5XYP6NMY.js} +10 -10
- package/dist/cli-bundle/chunks/{eval-DM6JBZTS.js → eval-O4WGQYDI.js} +10 -10
- package/dist/cli-bundle/chunks/{extension-TTSEFQTS.js → extension-PVGRRZZG.js} +11 -11
- package/dist/cli-bundle/chunks/{extension-B3YY4WY5.js → extension-T7JNTAAA.js} +11 -11
- package/dist/cli-bundle/chunks/{files-5D65CHGE.js → files-7IU56S6R.js} +10 -10
- package/dist/cli-bundle/chunks/files-7IU56S6R.js.map +1 -0
- package/dist/cli-bundle/chunks/{files-GPIG77EN.js → files-W7HH5EOD.js} +9 -9
- package/dist/cli-bundle/chunks/{files-GPIG77EN.js.map → files-W7HH5EOD.js.map} +1 -1
- package/dist/cli-bundle/chunks/{focus-ZHN7WIGX.js → focus-6FA5KYRY.js} +6 -6
- package/dist/cli-bundle/chunks/{focus-C3PEJV2C.js → focus-CQ63JFDG.js} +6 -6
- package/dist/cli-bundle/chunks/{gc-D4JQ6OWN.js → gc-3BG67KTO.js} +3 -3
- package/dist/cli-bundle/chunks/{gc-VZIXDL32.js → gc-PEZYGNVB.js} +3 -3
- package/dist/cli-bundle/chunks/{get-GIBRUUOP.js → get-J6CSJ4SX.js} +10 -10
- package/dist/cli-bundle/chunks/{get-IOVAN6RU.js → get-KJTKGNEQ.js} +10 -10
- package/dist/cli-bundle/chunks/{health-L2U3AFKV.js → health-32UQICEL.js} +115 -123
- package/dist/cli-bundle/chunks/health-32UQICEL.js.map +1 -0
- package/dist/cli-bundle/chunks/{health-MM7AWXYF.js → health-ZUZG5ULV.js} +114 -122
- package/dist/cli-bundle/chunks/health-ZUZG5ULV.js.map +7 -0
- package/dist/cli-bundle/chunks/history-IOH6FKG7.js +18 -0
- package/dist/cli-bundle/chunks/{history-IL7XCEX2.js → history-W6QVR6FA.js} +8 -8
- package/dist/cli-bundle/chunks/{history-compact-HALOTOU7.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-MV25P7DM.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-VYCWQFK7.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-44MODPQF.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-CPNAOCNF.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-F27NHENZ.js → init-MAA6UMNQ.js} +12 -12
- package/dist/cli-bundle/chunks/{learnings-XSFSUUWK.js → learnings-EYC3OKS2.js} +9 -9
- package/dist/cli-bundle/chunks/{learnings-HJVDQIGY.js → learnings-HKJJUVTA.js} +9 -9
- package/dist/cli-bundle/chunks/{list-VMPWTURB.js → list-HFD5737R.js} +8 -8
- package/dist/cli-bundle/chunks/{list-HPMEKCAA.js → list-KN3TL5Y5.js} +8 -8
- package/dist/cli-bundle/chunks/{next-ETXF2ZCN.js → next-DQUMFAHG.js} +25 -22
- package/dist/cli-bundle/chunks/{next-ETXF2ZCN.js.map → next-DQUMFAHG.js.map} +2 -2
- package/dist/cli-bundle/chunks/{next-QM6YJIIS.js → next-JUEYC5HE.js} +26 -23
- package/dist/cli-bundle/chunks/next-JUEYC5HE.js.map +1 -0
- package/dist/cli-bundle/chunks/{notes-WDDBPC4D.js → notes-XATYT43P.js} +9 -9
- package/dist/cli-bundle/chunks/{notes-GDZIKGR6.js → notes-ZG6RLZXB.js} +9 -9
- package/dist/cli-bundle/chunks/{plan-BGDR73Z6.js → plan-5NWQL2DH.js} +12 -12
- package/dist/cli-bundle/chunks/{plan-C5IMM335.js → plan-DVVLX7LK.js} +12 -12
- package/dist/cli-bundle/chunks/{profile-CCOKZ2IQ.js → profile-54DZ4CLB.js} +27 -19
- package/dist/cli-bundle/chunks/profile-54DZ4CLB.js.map +1 -0
- package/dist/cli-bundle/chunks/{profile-HUCENIEQ.js → profile-PLIQVEOY.js} +26 -18
- package/dist/cli-bundle/chunks/profile-PLIQVEOY.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-list-query-ROSNIL52.js → register-list-query-PNRAHNIQ.js} +181 -172
- package/dist/cli-bundle/chunks/register-list-query-PNRAHNIQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-list-query-XN4ZRHSV.js → register-list-query-WRS6ACUW.js} +180 -171
- package/dist/cli-bundle/chunks/register-list-query-WRS6ACUW.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-mutation-KRLAHEL2.js → register-mutation-ET6E4VLE.js} +367 -361
- package/dist/cli-bundle/chunks/register-mutation-ET6E4VLE.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-mutation-CFSB2MS3.js → register-mutation-K2MNRWGI.js} +368 -362
- package/dist/cli-bundle/chunks/register-mutation-K2MNRWGI.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-operations-MBN4KGUM.js → register-operations-6DQRUTIX.js} +310 -305
- package/dist/cli-bundle/chunks/register-operations-6DQRUTIX.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-operations-4PASGJDB.js → register-operations-73UDWMVB.js} +309 -304
- package/dist/cli-bundle/chunks/register-operations-73UDWMVB.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-setup-ZCGKHDKL.js → register-setup-FXZJ2CEJ.js} +15 -15
- package/dist/cli-bundle/chunks/{register-setup-VIAWYFP5.js → register-setup-LYYCMQFV.js} +15 -15
- package/dist/cli-bundle/chunks/restore-L27TMMCF.js +17 -0
- package/dist/cli-bundle/chunks/{restore-4CBWUMCX.js → restore-R6YJHQK3.js} +9 -9
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-6VFKNKCM.js → scheduling-shortcuts-LE4S7OI7.js} +12 -12
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-ERHCVTEM.js → scheduling-shortcuts-OGODPUBL.js} +12 -12
- package/dist/cli-bundle/chunks/{schema-UE5KKAUX.js → schema-ICCD3HOP.js} +7 -7
- package/dist/cli-bundle/chunks/{schema-TDGK6N3I.js → schema-RHH23PQX.js} +7 -7
- package/dist/cli-bundle/chunks/{search-FP7MEU4S.js → search-HDDKOPFE.js} +10 -10
- package/dist/cli-bundle/chunks/{search-K4CFLQ5S.js → search-Z2VGP2Q5.js} +10 -10
- package/dist/cli-bundle/chunks/{stats-NJJCALEZ.js → stats-DHMRXHOB.js} +6 -6
- package/dist/cli-bundle/chunks/{stats-XT6QRKQY.js → stats-ETFP37MB.js} +6 -6
- package/dist/cli-bundle/chunks/{telemetry-HVXFZA2U.js → telemetry-NUZNKDCP.js} +4 -4
- package/dist/cli-bundle/chunks/{telemetry-5SQ5UDXC.js → telemetry-ZRBM22QD.js} +4 -4
- package/dist/cli-bundle/chunks/{test-UFSJ5YIO.js → test-H36PM746.js} +15 -15
- package/dist/cli-bundle/chunks/{test-YCDAUBWF.js → test-XNKTIP4Y.js} +15 -15
- package/dist/cli-bundle/chunks/{test-all-2BWKY3GQ.js → test-all-APCBSXQI.js} +17 -17
- package/dist/cli-bundle/chunks/{test-all-PM7UYN42.js → test-all-KIK3OYBY.js} +17 -17
- package/dist/cli-bundle/chunks/{test-runs-H4TGWGRN.js → test-runs-5SLLV3XU.js} +4 -4
- package/dist/cli-bundle/chunks/{test-runs-FK5E75AA.js → test-runs-L3WKLO67.js} +4 -4
- package/dist/cli-bundle/chunks/update-RQKI3AMW.js +24 -0
- package/dist/cli-bundle/chunks/{update-Y5WQVT5O.js → update-ZM7NJWHY.js} +15 -15
- package/dist/cli-bundle/chunks/{update-many-JTKKSA7Y.js → update-many-GFCQG6ZQ.js} +28 -28
- package/dist/cli-bundle/chunks/{update-many-6YAYYRLE.js → update-many-XGTJ7QIU.js} +28 -28
- package/dist/cli-bundle/chunks/{upgrade-DTAHZ236.js → upgrade-KJ3JGELR.js} +11 -11
- package/dist/cli-bundle/chunks/{upgrade-JUDU7YL4.js → upgrade-RBRQ7PQU.js} +11 -11
- package/dist/cli-bundle/chunks/{validate-732RWS5W.js → validate-EW6TGC7R.js} +31 -21
- package/dist/cli-bundle/chunks/validate-EW6TGC7R.js.map +7 -0
- package/dist/cli-bundle/chunks/{validate-W7H5TEDC.js → validate-T6PR5WAL.js} +32 -22
- package/dist/cli-bundle/chunks/validate-T6PR5WAL.js.map +1 -0
- package/dist/cli-bundle/main.js +180 -122
- package/dist/cli-bundle/main.js.map +3 -3
- 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 +180 -194
- package/dist/core/item/type-registry.js.map +1 -1
- package/dist/core/schema/runtime-schema.js +65 -54
- package/dist/core/schema/runtime-schema.js.map +1 -1
- package/dist/core/schema/status-defs-file.js +26 -3
- package/dist/core/schema/status-defs-file.js.map +1 -1
- package/dist/core/search/corpus.js +25 -19
- package/dist/core/search/corpus.js.map +1 -1
- package/dist/core/shared/memo.d.ts +12 -0
- package/dist/core/shared/memo.js +25 -0
- package/dist/core/shared/memo.js.map +1 -0
- package/dist/core/shared/serialization.js +24 -14
- package/dist/core/shared/serialization.js.map +1 -1
- package/dist/core/shared/time.js +26 -4
- package/dist/core/shared/time.js.map +1 -1
- package/dist/core/store/front-matter-cache.d.ts +5 -0
- package/dist/core/store/front-matter-cache.js +79 -20
- package/dist/core/store/front-matter-cache.js.map +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.js +73 -99
- 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/compose.js +51 -42
- package/dist/sdk/compose.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/docs/AGENT_GUIDE.md +2 -2
- package/docs/ARCHITECTURE.md +2 -2
- package/docs/COMMANDS.md +8 -4
- package/docs/CONFIGURATION.md +1 -1
- package/docs/EXTENSIONS.md +12 -12
- package/docs/ONBOARDING.md +4 -2
- package/docs/README.md +2 -0
- package/docs/examples/starter-extension/README.md +11 -10
- package/marketplace.json +3 -3
- 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/.claude-plugin/plugin.json +2 -2
- package/plugins/pm-claude/README.md +6 -3
- package/plugins/pm-claude/commands/pm-init.md +1 -1
- 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-WEIEMM73.js +0 -16
- package/dist/cli-bundle/chunks/chunk-5GVTFFTC.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-66Z3X7ZG.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-6ITZLD4T.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-6YCYF2AI.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-7NSPKJUS.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-7TH5NMVB.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-7W4H4K26.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-AIAIXG7I.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-AJEBCRIY.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-GFMSLORL.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-GRRG3MCT.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-I66WE2HE.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-JXAUVO6X.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-K2VYLVX4.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-KIYCOJ63.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-MNBPX5JS.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-NRZS637N.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-RM37OPYK.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-SPM2XLWI.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-SYNKD3ZG.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-TPOFWBMY.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-XCHUVHKU.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-XEWQKDYZ.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-XWGEMNBR.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-YLZZ6T54.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-YPKFV2JR.js.map +0 -1
- package/dist/cli-bundle/chunks/close-YCWQQPDS.js +0 -14
- package/dist/cli-bundle/chunks/close-many-2IV4J2TR.js.map +0 -1
- package/dist/cli-bundle/chunks/close-many-SWY34BII.js.map +0 -7
- package/dist/cli-bundle/chunks/create-XTMAPS7I.js +0 -28
- package/dist/cli-bundle/chunks/files-5D65CHGE.js.map +0 -1
- package/dist/cli-bundle/chunks/health-L2U3AFKV.js.map +0 -1
- package/dist/cli-bundle/chunks/health-MM7AWXYF.js.map +0 -7
- package/dist/cli-bundle/chunks/history-DD7L7BNL.js +0 -18
- package/dist/cli-bundle/chunks/history-compact-HALOTOU7.js.map +0 -1
- package/dist/cli-bundle/chunks/history-compact-MV25P7DM.js.map +0 -7
- package/dist/cli-bundle/chunks/history-redact-IX4YEWMY.js +0 -19
- package/dist/cli-bundle/chunks/history-repair-44MODPQF.js.map +0 -1
- package/dist/cli-bundle/chunks/history-repair-CPNAOCNF.js.map +0 -7
- package/dist/cli-bundle/chunks/init-HHVQQP6C.js +0 -22
- package/dist/cli-bundle/chunks/next-QM6YJIIS.js.map +0 -1
- package/dist/cli-bundle/chunks/profile-CCOKZ2IQ.js.map +0 -1
- package/dist/cli-bundle/chunks/profile-HUCENIEQ.js.map +0 -7
- package/dist/cli-bundle/chunks/register-list-query-ROSNIL52.js.map +0 -1
- package/dist/cli-bundle/chunks/register-list-query-XN4ZRHSV.js.map +0 -7
- package/dist/cli-bundle/chunks/register-mutation-CFSB2MS3.js.map +0 -1
- package/dist/cli-bundle/chunks/register-mutation-KRLAHEL2.js.map +0 -7
- package/dist/cli-bundle/chunks/register-operations-4PASGJDB.js.map +0 -7
- package/dist/cli-bundle/chunks/register-operations-MBN4KGUM.js.map +0 -1
- package/dist/cli-bundle/chunks/restore-5UEAGG3W.js +0 -17
- package/dist/cli-bundle/chunks/update-MTCFES6X.js +0 -24
- package/dist/cli-bundle/chunks/validate-732RWS5W.js.map +0 -7
- package/dist/cli-bundle/chunks/validate-W7H5TEDC.js.map +0 -1
- /package/dist/cli-bundle/chunks/{activity-WEIEMM73.js.map → activity-IDS5GSYG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-CUC4JY3U.js.map → activity-OENQCYZD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-SW5PNGCS.js.map → aggregate-EC4LWS3U.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-DKUTRY6R.js.map → aggregate-RCB3QJJE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-H32VOR2Y.js.map → append-ADBOI3A6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-UBM632FK.js.map → append-XLEKVVWB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Q6NXOHS6.js.map → chunk-2LRMWMZ6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KLXF7NCC.js.map → chunk-3C5T3ZEO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JMK5GCK2.js.map → chunk-3MLQZI3H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-BTX5MIQF.js.map → chunk-4EVY7CQN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Q6K2OACU.js.map → chunk-4IW7STMB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EMPGXBUF.js.map → chunk-4SHME4VR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2KWL5NPW.js.map → chunk-6YB7HG2J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-36UGKF4O.js.map → chunk-724VLYDJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Y4NRKBFW.js.map → chunk-7ITQSEBL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-W47SML5B.js.map → chunk-A222YWOQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3LCUASYG.js.map → chunk-A2W3XKAD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KN3URLKS.js.map → chunk-AOP2EMK3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IEEJQCZ4.js.map → chunk-CQFZRLXQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4NUOWFBT.js.map → chunk-CQISNF3Z.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-S62UANU7.js.map → chunk-D2LDM35X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IG5JYZGU.js.map → chunk-DJ5S2LDY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-A6VOGKBA.js.map → chunk-EB4BBEZD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QH3FSKRJ.js.map → chunk-EH23N5FX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HQTPRV4D.js.map → chunk-FDNJMYZB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-N2JSWVWG.js.map → chunk-HL742IBM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CZPVDLD2.js.map → chunk-M6PR5BC6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MRD4T5LF.js.map → chunk-MZ4NH46V.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZNHEYCDD.js.map → chunk-N2LOJUBB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WJAMWAHZ.js.map → chunk-NGDK3KEZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2CHRYUXL.js.map → chunk-NHKXOMZ5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7MYWF4ZX.js.map → chunk-OTSP6UEX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UGLU6Q2I.js.map → chunk-PUVPC5DL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LTRAF2D7.js.map → chunk-PV5JS7MP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KCO2EAN5.js.map → chunk-Q2266G4S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SYVUU7EK.js.map → chunk-Q3XVLRCJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6ZMBJRDJ.js.map → chunk-R7EMP4JG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-U2BEEM2X.js.map → chunk-T5RTYLZJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UTSH5GWX.js.map → chunk-TGYDJEJH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-H4GRLYJS.js.map → chunk-TO4KCIOT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EUKTMRN3.js.map → chunk-TUV7SIWZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-55XRYWEG.js.map → chunk-V655JQ5J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3Q2HBMTI.js.map → chunk-W5X3AHJN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XTHQWXVC.js.map → chunk-WBWRQS32.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UT73HUPC.js.map → chunk-WOOB7PV7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5PGBHRY3.js.map → chunk-WSDIALO4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LRKMWUUV.js.map → chunk-WTXDLBSZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FFOQHGNH.js.map → chunk-XBIYI23P.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2ASNV4DH.js.map → chunk-Y2VSCQ77.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZNT7KEWE.js.map → chunk-YZR7UMZ6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CYBDUHNO.js.map → chunk-ZIEGTQCY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TTHCEV5Q.js.map → chunk-ZZWMJVW2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-Z7MEQCBT.js.map → claim-D6L33A5Y.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-SENTPZBN.js.map → claim-YAFUTPVK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-YCWQQPDS.js.map → close-KLDLHAOP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-424MX4CU.js.map → close-TGYXG7TV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-4FGNTSNV.js.map → comments-QC6ARR5X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-7YS5MY5X.js.map → comments-ZHVYGUVC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-G74GISC4.js.map → config-O6W2EU2G.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-BZJKK7FZ.js.map → config-XQRFJXJP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-LHVKJSPJ.js.map → context-IHE3IXN5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-ZQY54JNS.js.map → context-WSYWBEUL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-FIZLMP7O.js.map → contracts-CVBINC7C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-CP2EZJC7.js.map → contracts-NLCDIZAT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-TLW7JTQT.js.map → copy-7MUQC44A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-GYNQQPW2.js.map → copy-ANWXDJVC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-XTMAPS7I.js.map → create-AJ6HUR5W.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-VSKYSOCD.js.map → create-JIA2IFCO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-ANTOTI2I.js.map → delete-5OLYWQIC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-4W5JYCEG.js.map → delete-INHKCIRN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-HPPE6MJN.js.map → deps-CCSWGZW7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-ZQZN54EZ.js.map → deps-IYEID3QX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-XJNYBJGE.js.map → docs-3XZK22WF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-RPOVFMP3.js.map → docs-PKO7OEIM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-RFBI5FGS.js.map → eval-5XYP6NMY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-DM6JBZTS.js.map → eval-O4WGQYDI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-TTSEFQTS.js.map → extension-PVGRRZZG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-B3YY4WY5.js.map → extension-T7JNTAAA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-ZHN7WIGX.js.map → focus-6FA5KYRY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-C3PEJV2C.js.map → focus-CQ63JFDG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-D4JQ6OWN.js.map → gc-3BG67KTO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-VZIXDL32.js.map → gc-PEZYGNVB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-GIBRUUOP.js.map → get-J6CSJ4SX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-IOVAN6RU.js.map → get-KJTKGNEQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-DD7L7BNL.js.map → history-IOH6FKG7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-IL7XCEX2.js.map → history-W6QVR6FA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-VYCWQFK7.js.map → history-redact-TUWOUYX5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-IX4YEWMY.js.map → history-redact-VVDOARNO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-HHVQQP6C.js.map → init-CZLEEE6Q.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-F27NHENZ.js.map → init-MAA6UMNQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-XSFSUUWK.js.map → learnings-EYC3OKS2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-HJVDQIGY.js.map → learnings-HKJJUVTA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-VMPWTURB.js.map → list-HFD5737R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-HPMEKCAA.js.map → list-KN3TL5Y5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-WDDBPC4D.js.map → notes-XATYT43P.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-GDZIKGR6.js.map → notes-ZG6RLZXB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-BGDR73Z6.js.map → plan-5NWQL2DH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-C5IMM335.js.map → plan-DVVLX7LK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-setup-ZCGKHDKL.js.map → register-setup-FXZJ2CEJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-setup-VIAWYFP5.js.map → register-setup-LYYCMQFV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-5UEAGG3W.js.map → restore-L27TMMCF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-4CBWUMCX.js.map → restore-R6YJHQK3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{scheduling-shortcuts-6VFKNKCM.js.map → scheduling-shortcuts-LE4S7OI7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{scheduling-shortcuts-ERHCVTEM.js.map → scheduling-shortcuts-OGODPUBL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-UE5KKAUX.js.map → schema-ICCD3HOP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-TDGK6N3I.js.map → schema-RHH23PQX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-FP7MEU4S.js.map → search-HDDKOPFE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-K4CFLQ5S.js.map → search-Z2VGP2Q5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-NJJCALEZ.js.map → stats-DHMRXHOB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-XT6QRKQY.js.map → stats-ETFP37MB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-HVXFZA2U.js.map → telemetry-NUZNKDCP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-5SQ5UDXC.js.map → telemetry-ZRBM22QD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-UFSJ5YIO.js.map → test-H36PM746.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-YCDAUBWF.js.map → test-XNKTIP4Y.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-all-2BWKY3GQ.js.map → test-all-APCBSXQI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-all-PM7UYN42.js.map → test-all-KIK3OYBY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-H4TGWGRN.js.map → test-runs-5SLLV3XU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-FK5E75AA.js.map → test-runs-L3WKLO67.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-MTCFES6X.js.map → update-RQKI3AMW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-Y5WQVT5O.js.map → update-ZM7NJWHY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-JTKKSA7Y.js.map → update-many-GFCQG6ZQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-6YAYYRLE.js.map → update-many-XGTJ7QIU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{upgrade-DTAHZ236.js.map → upgrade-KJ3JGELR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{upgrade-JUDU7YL4.js.map → upgrade-RBRQ7PQU.js.map} +0 -0
package/dist/cli-bundle/chunks/{register-mutation-KRLAHEL2.js → register-mutation-ET6E4VLE.js}
RENAMED
|
@@ -8,26 +8,27 @@ import {
|
|
|
8
8
|
getGlobalOptions,
|
|
9
9
|
invalidateSearchCachesForMutation,
|
|
10
10
|
normalizeCreateOptions,
|
|
11
|
-
normalizeUpdateOptions
|
|
12
|
-
|
|
11
|
+
normalizeUpdateOptions,
|
|
12
|
+
readOptionString
|
|
13
|
+
} from "./chunk-NHDR3UCW.js";
|
|
13
14
|
import {
|
|
14
15
|
printError,
|
|
15
16
|
printResult,
|
|
16
17
|
writeStdout
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-WSDIALO4.js";
|
|
19
|
+
import "./chunk-KKHIQOTN.js";
|
|
19
20
|
import {
|
|
20
21
|
CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,
|
|
21
22
|
UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-7745CXNI.js";
|
|
24
|
+
import "./chunk-CN4OAA2G.js";
|
|
25
|
+
import "./chunk-CQFZRLXQ.js";
|
|
26
|
+
import "./chunk-MZG6I2Q2.js";
|
|
26
27
|
import {
|
|
27
28
|
BUILTIN_ITEM_TYPE_VALUES,
|
|
28
29
|
EXIT_CODE,
|
|
29
30
|
PmCliError
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-BDDYM4LH.js";
|
|
31
32
|
|
|
32
33
|
// dist/cli/register-mutation.js
|
|
33
34
|
import { Option } from "commander";
|
|
@@ -109,7 +110,7 @@ function isPureSnakeCaseAlias(canonicalFlagSpec, aliasFlagSpec) {
|
|
|
109
110
|
!(function() {
|
|
110
111
|
try {
|
|
111
112
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
112
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
113
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "506e1f95-1444-5306-9a5e-c1fb3726b2df");
|
|
113
114
|
} catch (e2) {
|
|
114
115
|
}
|
|
115
116
|
})();
|
|
@@ -121,6 +122,11 @@ function addHiddenOption(command, flags, description, repeatable) {
|
|
|
121
122
|
}
|
|
122
123
|
command.addOption(option);
|
|
123
124
|
}
|
|
125
|
+
function addHiddenOptions(command, aliases, repeatable) {
|
|
126
|
+
for (const [flags, description] of aliases) {
|
|
127
|
+
addHiddenOption(command, flags, description, repeatable);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
124
130
|
var SCHEMA_SHORTHAND_RESERVED_PREFIXES = ["add-", "apply-", "list-", "remove-", "show-"];
|
|
125
131
|
var SCHEMA_SHORTHAND_RESERVED_TOKENS = /* @__PURE__ */ new Set([
|
|
126
132
|
"field",
|
|
@@ -424,9 +430,6 @@ function pickStringOption(...candidates) {
|
|
|
424
430
|
}
|
|
425
431
|
return void 0;
|
|
426
432
|
}
|
|
427
|
-
function readOptionString(options, key) {
|
|
428
|
-
return typeof options[key] === "string" ? options[key] : void 0;
|
|
429
|
-
}
|
|
430
433
|
function stringArrayOption(value) {
|
|
431
434
|
if (Array.isArray(value)) {
|
|
432
435
|
return value;
|
|
@@ -479,7 +482,7 @@ async function runCreateAction(typeOrTitle, secondTitle, options, command) {
|
|
|
479
482
|
delete options.bodyFile;
|
|
480
483
|
}
|
|
481
484
|
const normalized = normalizeCreateOptions(options, { requireType: false });
|
|
482
|
-
const { runCreate } = await import("./create-
|
|
485
|
+
const { runCreate } = await import("./create-AJ6HUR5W.js");
|
|
483
486
|
const result = await runCreate(normalized, globalOptions);
|
|
484
487
|
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
485
488
|
printResult(result, globalOptions);
|
|
@@ -512,7 +515,7 @@ function buildCloseManyListOptions(options) {
|
|
|
512
515
|
async function runCloseManyAction(options, command) {
|
|
513
516
|
const globalOptions = getGlobalOptions(command);
|
|
514
517
|
const startedAt = Date.now();
|
|
515
|
-
const { runCloseMany } = await import("./close-many-
|
|
518
|
+
const { runCloseMany } = await import("./close-many-4QSWKCRU.js");
|
|
516
519
|
const result = await runCloseMany({
|
|
517
520
|
status: readOptionString(options, "filterStatus"),
|
|
518
521
|
list: buildCloseManyListOptions(options),
|
|
@@ -534,6 +537,46 @@ async function runCloseManyAction(options, command) {
|
|
|
534
537
|
printError(`profile:command=close-many took_ms=${Date.now() - startedAt}`);
|
|
535
538
|
}
|
|
536
539
|
}
|
|
540
|
+
async function runUpdateManyAction(options, command) {
|
|
541
|
+
const globalOptions = getGlobalOptions(command);
|
|
542
|
+
const startedAt = Date.now();
|
|
543
|
+
const { runUpdateMany } = await import("./update-many-XGTJ7QIU.js");
|
|
544
|
+
const result = await runUpdateMany({
|
|
545
|
+
status: readOptionString(options, "filterStatus"),
|
|
546
|
+
list: buildUpdateManyListOptions(options),
|
|
547
|
+
update: normalizeUpdateOptions(extractUpdateManyMutationOptionSource(options)),
|
|
548
|
+
dryRun: options.dryRun === true ? true : void 0,
|
|
549
|
+
rollback: readOptionString(options, "rollback"),
|
|
550
|
+
checkpoint: options.checkpoint === false ? false : void 0
|
|
551
|
+
}, globalOptions);
|
|
552
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
553
|
+
printResult(result, globalOptions);
|
|
554
|
+
if (globalOptions.profile) {
|
|
555
|
+
printError(`profile:command=update-many took_ms=${Date.now() - startedAt}`);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
async function runCloseAction(id, text, options, command) {
|
|
559
|
+
const globalOptions = getGlobalOptions(command);
|
|
560
|
+
const startedAt = Date.now();
|
|
561
|
+
const { runClose } = await import("./close-KLDLHAOP.js");
|
|
562
|
+
const reasonFromOption = typeof options.reason === "string" && options.reason.trim().length > 0 && options.reason || typeof options.closeReason === "string" && options.closeReason.trim().length > 0 && options.closeReason || void 0;
|
|
563
|
+
const resolvedText = typeof text === "string" && text.length > 0 ? text : reasonFromOption;
|
|
564
|
+
const result = await runClose(id, resolvedText, {
|
|
565
|
+
author: readOptionString(options, "author"),
|
|
566
|
+
message: readOptionString(options, "message"),
|
|
567
|
+
validateClose: options.validateClose === true ? "warn" : readOptionString(options, "validateClose"),
|
|
568
|
+
force: Boolean(options.force),
|
|
569
|
+
duplicateOf: readOptionString(options, "duplicateOf"),
|
|
570
|
+
resolution: readOptionString(options, "resolution"),
|
|
571
|
+
expectedResult: pickStringOption(options.expectedResult, options.expected_result, options.expected),
|
|
572
|
+
actualResult: pickStringOption(options.actualResult, options.actual_result, options.actual)
|
|
573
|
+
}, globalOptions);
|
|
574
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
575
|
+
printResult(result, globalOptions);
|
|
576
|
+
if (globalOptions.profile) {
|
|
577
|
+
printError(`profile:command=close took_ms=${Date.now() - startedAt}`);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
537
580
|
function normalizePlanAliases(options) {
|
|
538
581
|
const planOptions = { ...options };
|
|
539
582
|
const aliasPairs = [
|
|
@@ -600,7 +643,7 @@ function parsePlanReorderTo(normalizedSubcommand, reorderToken) {
|
|
|
600
643
|
async function runPlanAction(subcommand, id, stepRef, reorderToken, options, command) {
|
|
601
644
|
const globalOptions = getGlobalOptions(command);
|
|
602
645
|
const startedAt = Date.now();
|
|
603
|
-
const { runPlan, PLAN_SUBCOMMANDS } = await import("./plan-
|
|
646
|
+
const { runPlan, PLAN_SUBCOMMANDS } = await import("./plan-DVVLX7LK.js");
|
|
604
647
|
const normalizedSubcommand = (subcommand ?? "").trim().toLowerCase();
|
|
605
648
|
assertKnownPlanSubcommand(subcommand, normalizedSubcommand, PLAN_SUBCOMMANDS);
|
|
606
649
|
const planOptions = normalizePlanAliases(options);
|
|
@@ -635,7 +678,7 @@ function parseNonNegativeIntFlag(raw, flag) {
|
|
|
635
678
|
async function runHistoryCompactAction(id, options, command) {
|
|
636
679
|
const globalOptions = getGlobalOptions(command);
|
|
637
680
|
const startedAt = Date.now();
|
|
638
|
-
const { runHistoryCompact, runHistoryCompactBulk, assertHistoryCompactTarget } = await import("./history-compact-
|
|
681
|
+
const { runHistoryCompact, runHistoryCompactBulk, assertHistoryCompactTarget } = await import("./history-compact-JQ6ZGYSJ.js");
|
|
639
682
|
const ids = typeof options.ids === "string" ? splitCommaList(options.ids) : void 0;
|
|
640
683
|
const allOver = parseNonNegativeIntFlag(options.allOver, "--all-over");
|
|
641
684
|
const minEntries = parseNonNegativeIntFlag(options.minEntries, "--min-entries");
|
|
@@ -686,7 +729,7 @@ function splitCollectedCommaList(raw) {
|
|
|
686
729
|
async function runSchemaAction(subcommand, name, options, command) {
|
|
687
730
|
const globalOptions = getGlobalOptions(command);
|
|
688
731
|
const startedAt = Date.now();
|
|
689
|
-
const schemaModule = await import("./schema-
|
|
732
|
+
const schemaModule = await import("./schema-ICCD3HOP.js");
|
|
690
733
|
const { SCHEMA_SUBCOMMANDS } = schemaModule;
|
|
691
734
|
let normalizedSubcommand = (subcommand ?? "").trim().toLowerCase();
|
|
692
735
|
let typeName = name;
|
|
@@ -766,7 +809,7 @@ async function runCommentsAction(id, text, options, command) {
|
|
|
766
809
|
const globalOptions = getGlobalOptions(command);
|
|
767
810
|
const startedAt = Date.now();
|
|
768
811
|
const sources = resolveCommentSources(text, options);
|
|
769
|
-
const { runComments } = await import("./comments-
|
|
812
|
+
const { runComments } = await import("./comments-QC6ARR5X.js");
|
|
770
813
|
const result = await runComments(id, {
|
|
771
814
|
add: sources.add,
|
|
772
815
|
stdin: sources.readFromStdin,
|
|
@@ -787,59 +830,301 @@ async function runCommentsAction(id, text, options, command) {
|
|
|
787
830
|
printError(`profile:command=comments took_ms=${Date.now() - startedAt}`);
|
|
788
831
|
}
|
|
789
832
|
}
|
|
833
|
+
async function runCopyAction(id, options, command) {
|
|
834
|
+
const globalOptions = getGlobalOptions(command);
|
|
835
|
+
const startedAt = Date.now();
|
|
836
|
+
const { runCopy } = await import("./copy-7MUQC44A.js");
|
|
837
|
+
const result = await runCopy(id, {
|
|
838
|
+
title: readOptionString(options, "title"),
|
|
839
|
+
author: readOptionString(options, "author"),
|
|
840
|
+
message: readOptionString(options, "message")
|
|
841
|
+
}, globalOptions);
|
|
842
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
843
|
+
printResult(result, globalOptions);
|
|
844
|
+
if (globalOptions.profile) {
|
|
845
|
+
printError(`profile:command=copy took_ms=${Date.now() - startedAt}`);
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
async function runFocusAction(id, options, command) {
|
|
849
|
+
const globalOptions = getGlobalOptions(command);
|
|
850
|
+
const startedAt = Date.now();
|
|
851
|
+
const { runFocus } = await import("./focus-CQ63JFDG.js");
|
|
852
|
+
const result = await runFocus(id, { clear: options.clear === true }, globalOptions);
|
|
853
|
+
printResult(result, globalOptions);
|
|
854
|
+
if (globalOptions.profile) {
|
|
855
|
+
printError(`profile:command=focus took_ms=${Date.now() - startedAt}`);
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
async function runUpdateAction(id, options, command) {
|
|
859
|
+
const globalOptions = getGlobalOptions(command);
|
|
860
|
+
const startedAt = Date.now();
|
|
861
|
+
if (typeof options.bodyFile === "string") {
|
|
862
|
+
options.body = await resolveBodyFileContent(options.bodyFile, options.body !== void 0 ? String(options.body) : void 0);
|
|
863
|
+
delete options.bodyFile;
|
|
864
|
+
}
|
|
865
|
+
const { runUpdate } = await import("./update-RQKI3AMW.js");
|
|
866
|
+
const result = await runUpdate(id, normalizeUpdateOptions(options), globalOptions);
|
|
867
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
868
|
+
printResult(result, globalOptions);
|
|
869
|
+
if (globalOptions.profile) {
|
|
870
|
+
printError(`profile:command=update took_ms=${Date.now() - startedAt}`);
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
async function runDeleteAction(id, options, command) {
|
|
874
|
+
const globalOptions = getGlobalOptions(command);
|
|
875
|
+
const startedAt = Date.now();
|
|
876
|
+
const { runDelete } = await import("./delete-5OLYWQIC.js");
|
|
877
|
+
const result = await runDelete(id, {
|
|
878
|
+
author: readOptionString(options, "author"),
|
|
879
|
+
message: readOptionString(options, "message"),
|
|
880
|
+
force: Boolean(options.force),
|
|
881
|
+
dryRun: options.dryRun === true
|
|
882
|
+
}, globalOptions);
|
|
883
|
+
if (result.dry_run !== true) {
|
|
884
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
885
|
+
}
|
|
886
|
+
printResult(result, globalOptions);
|
|
887
|
+
if (globalOptions.profile) {
|
|
888
|
+
printError(`profile:command=delete took_ms=${Date.now() - startedAt}`);
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
function resolveSingleTextSource(label, positional, options) {
|
|
892
|
+
const addFromOption = readOptionString(options, "add");
|
|
893
|
+
const addFromPositional = typeof positional === "string" ? positional : void 0;
|
|
894
|
+
if (addFromOption !== void 0 && addFromPositional !== void 0) {
|
|
895
|
+
throw new PmCliError(`Specify ${label} text either as positional [text] or with --add, not both`, EXIT_CODE.USAGE);
|
|
896
|
+
}
|
|
897
|
+
return addFromOption ?? addFromPositional;
|
|
898
|
+
}
|
|
899
|
+
function resolveAppendBody(text, options) {
|
|
900
|
+
const bodyFromOption = readOptionString(options, "body");
|
|
901
|
+
const bodyFromAlias = readOptionString(options, "text");
|
|
902
|
+
const bodyFromPositional = typeof text === "string" ? text : void 0;
|
|
903
|
+
const bodySourceCount = [bodyFromOption, bodyFromAlias, bodyFromPositional].filter((value) => value !== void 0).length;
|
|
904
|
+
if (bodySourceCount > 1) {
|
|
905
|
+
throw new PmCliError("Specify append text with exactly one source: positional [text], --body, or --text", EXIT_CODE.USAGE);
|
|
906
|
+
}
|
|
907
|
+
const resolvedBody = bodyFromOption ?? bodyFromAlias ?? bodyFromPositional;
|
|
908
|
+
if (resolvedBody === void 0) {
|
|
909
|
+
throw new PmCliError("Missing append text. Provide it as positional [text], --body <value>, or --text <value> (use - for stdin).", EXIT_CODE.USAGE);
|
|
910
|
+
}
|
|
911
|
+
return resolvedBody;
|
|
912
|
+
}
|
|
913
|
+
async function runAppendAction(id, text, options, command) {
|
|
914
|
+
const globalOptions = getGlobalOptions(command);
|
|
915
|
+
const startedAt = Date.now();
|
|
916
|
+
const { runAppend } = await import("./append-XLEKVVWB.js");
|
|
917
|
+
const result = await runAppend(id, {
|
|
918
|
+
body: resolveAppendBody(text, options),
|
|
919
|
+
author: readOptionString(options, "author"),
|
|
920
|
+
message: readOptionString(options, "message"),
|
|
921
|
+
force: Boolean(options.force)
|
|
922
|
+
}, globalOptions);
|
|
923
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
924
|
+
printResult(result, globalOptions);
|
|
925
|
+
if (globalOptions.profile) {
|
|
926
|
+
printError(`profile:command=append took_ms=${Date.now() - startedAt}`);
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
async function runRestoreAction(id, target, options, command) {
|
|
930
|
+
const globalOptions = getGlobalOptions(command);
|
|
931
|
+
const startedAt = Date.now();
|
|
932
|
+
const { runRestore } = await import("./restore-L27TMMCF.js");
|
|
933
|
+
const result = await runRestore(id, target, {
|
|
934
|
+
author: readOptionString(options, "author"),
|
|
935
|
+
message: readOptionString(options, "message"),
|
|
936
|
+
force: Boolean(options.force)
|
|
937
|
+
}, globalOptions);
|
|
938
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
939
|
+
printResult(result, globalOptions);
|
|
940
|
+
if (globalOptions.profile) {
|
|
941
|
+
printError(`profile:command=restore took_ms=${Date.now() - startedAt}`);
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
async function runProfileAction(subcommand, name, options, command) {
|
|
945
|
+
const globalOptions = getGlobalOptions(command);
|
|
946
|
+
const startedAt = Date.now();
|
|
947
|
+
const profileModule = await import("./profile-PLIQVEOY.js");
|
|
948
|
+
const { PROFILE_SUBCOMMANDS } = profileModule;
|
|
949
|
+
const normalizedSubcommand = (subcommand ?? "").trim().toLowerCase();
|
|
950
|
+
if (!normalizedSubcommand) {
|
|
951
|
+
throw new PmCliError(`pm profile requires a subcommand. Allowed: ${PROFILE_SUBCOMMANDS.join(", ")}`, EXIT_CODE.USAGE, {
|
|
952
|
+
code: "missing_required_argument",
|
|
953
|
+
examples: ["pm profile list", "pm profile show agile", "pm profile apply agile --dry-run", "pm profile lint agile"]
|
|
954
|
+
});
|
|
955
|
+
}
|
|
956
|
+
if (!PROFILE_SUBCOMMANDS.includes(normalizedSubcommand)) {
|
|
957
|
+
throw new PmCliError(`Unknown pm profile subcommand "${subcommand}". Allowed: ${PROFILE_SUBCOMMANDS.join(", ")}`, EXIT_CODE.USAGE, { code: "unknown_subcommand" });
|
|
958
|
+
}
|
|
959
|
+
const result = await dispatchProfileSubcommand(profileModule, normalizedSubcommand, name, options, globalOptions);
|
|
960
|
+
if (globalOptions.json === true || globalOptions.defaultOutputFormat === "json") {
|
|
961
|
+
printResult(result, globalOptions);
|
|
962
|
+
} else if (!globalOptions.quiet) {
|
|
963
|
+
renderProfileResultHuman(profileModule, result);
|
|
964
|
+
}
|
|
965
|
+
if (result.action === "lint" && !result.ok) {
|
|
966
|
+
process.exitCode = EXIT_CODE.GENERIC_FAILURE;
|
|
967
|
+
}
|
|
968
|
+
if (globalOptions.profile) {
|
|
969
|
+
printError(`profile:command=profile took_ms=${Date.now() - startedAt}`);
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
async function runNotesAction(id, text, options, command) {
|
|
973
|
+
const globalOptions = getGlobalOptions(command);
|
|
974
|
+
const startedAt = Date.now();
|
|
975
|
+
const add = resolveSingleTextSource("note", text, options);
|
|
976
|
+
const { runNotes } = await import("./notes-ZG6RLZXB.js");
|
|
977
|
+
const result = await runNotes(id, {
|
|
978
|
+
add,
|
|
979
|
+
limit: readOptionString(options, "limit"),
|
|
980
|
+
author: readOptionString(options, "author"),
|
|
981
|
+
message: readOptionString(options, "message"),
|
|
982
|
+
allowAuditComment: Boolean(options.allowAuditNote || options.allowAuditComment),
|
|
983
|
+
force: Boolean(options.force)
|
|
984
|
+
}, globalOptions);
|
|
985
|
+
if (typeof add === "string") {
|
|
986
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
987
|
+
}
|
|
988
|
+
printResult(result, globalOptions);
|
|
989
|
+
if (globalOptions.profile) {
|
|
990
|
+
printError(`profile:command=notes took_ms=${Date.now() - startedAt}`);
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
async function runLearningsAction(id, text, options, command) {
|
|
994
|
+
const globalOptions = getGlobalOptions(command);
|
|
995
|
+
const startedAt = Date.now();
|
|
996
|
+
const add = resolveSingleTextSource("learning", text, options);
|
|
997
|
+
const { runLearnings } = await import("./learnings-EYC3OKS2.js");
|
|
998
|
+
const result = await runLearnings(id, {
|
|
999
|
+
add,
|
|
1000
|
+
limit: readOptionString(options, "limit"),
|
|
1001
|
+
author: readOptionString(options, "author"),
|
|
1002
|
+
message: readOptionString(options, "message"),
|
|
1003
|
+
allowAuditComment: Boolean(options.allowAuditLearning || options.allowAuditComment),
|
|
1004
|
+
force: Boolean(options.force)
|
|
1005
|
+
}, globalOptions);
|
|
1006
|
+
if (typeof add === "string") {
|
|
1007
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
1008
|
+
}
|
|
1009
|
+
printResult(result, globalOptions);
|
|
1010
|
+
if (globalOptions.profile) {
|
|
1011
|
+
printError(`profile:command=learnings took_ms=${Date.now() - startedAt}`);
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
function readStringArrayOption(options, key) {
|
|
1015
|
+
return stringArrayOption(options[key]) ?? [];
|
|
1016
|
+
}
|
|
1017
|
+
async function runFilesAction(id, options, command) {
|
|
1018
|
+
const globalOptions = getGlobalOptions(command);
|
|
1019
|
+
const startedAt = Date.now();
|
|
1020
|
+
const addValues = readStringArrayOption(options, "add");
|
|
1021
|
+
const addGlobValues = readStringArrayOption(options, "addGlob");
|
|
1022
|
+
const removeValues = readStringArrayOption(options, "remove");
|
|
1023
|
+
const migrateValues = readStringArrayOption(options, "migrate");
|
|
1024
|
+
const { runFiles } = await import("./files-W7HH5EOD.js");
|
|
1025
|
+
const result = await runFiles(id, {
|
|
1026
|
+
add: addValues,
|
|
1027
|
+
addGlob: addGlobValues,
|
|
1028
|
+
remove: removeValues,
|
|
1029
|
+
migrate: migrateValues,
|
|
1030
|
+
note: readOptionString(options, "note"),
|
|
1031
|
+
list: Boolean(options.list),
|
|
1032
|
+
appendStable: Boolean(options.appendStable),
|
|
1033
|
+
validatePaths: Boolean(options.validatePaths),
|
|
1034
|
+
audit: Boolean(options.audit),
|
|
1035
|
+
author: readOptionString(options, "author"),
|
|
1036
|
+
message: readOptionString(options, "message"),
|
|
1037
|
+
force: Boolean(options.force)
|
|
1038
|
+
}, globalOptions);
|
|
1039
|
+
if (addValues.length > 0 || addGlobValues.length > 0 || removeValues.length > 0 || migrateValues.length > 0) {
|
|
1040
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
1041
|
+
}
|
|
1042
|
+
printResult(result, globalOptions);
|
|
1043
|
+
if (globalOptions.profile) {
|
|
1044
|
+
printError(`profile:command=files took_ms=${Date.now() - startedAt}`);
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
async function runFilesDiscoverAction(id, options, command) {
|
|
1048
|
+
const globalOptions = getGlobalOptions(command);
|
|
1049
|
+
const startedAt = Date.now();
|
|
1050
|
+
const mergedOptions = { ...command.optsWithGlobals(), ...options };
|
|
1051
|
+
const { runFilesDiscover } = await import("./files-W7HH5EOD.js");
|
|
1052
|
+
const result = await runFilesDiscover(id, {
|
|
1053
|
+
apply: Boolean(mergedOptions.apply),
|
|
1054
|
+
note: readOptionString(mergedOptions, "note"),
|
|
1055
|
+
appendStable: Boolean(mergedOptions.appendStable),
|
|
1056
|
+
author: readOptionString(mergedOptions, "author"),
|
|
1057
|
+
message: readOptionString(mergedOptions, "message"),
|
|
1058
|
+
force: Boolean(mergedOptions.force)
|
|
1059
|
+
}, globalOptions);
|
|
1060
|
+
if (result.changed) {
|
|
1061
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
1062
|
+
}
|
|
1063
|
+
printResult(result, globalOptions);
|
|
1064
|
+
if (globalOptions.profile) {
|
|
1065
|
+
printError(`profile:command=files.discover took_ms=${Date.now() - startedAt}`);
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
async function runDocsAction(id, options, command) {
|
|
1069
|
+
const globalOptions = getGlobalOptions(command);
|
|
1070
|
+
const startedAt = Date.now();
|
|
1071
|
+
const addValues = readStringArrayOption(options, "add");
|
|
1072
|
+
const addGlobValues = readStringArrayOption(options, "addGlob");
|
|
1073
|
+
const removeValues = readStringArrayOption(options, "remove");
|
|
1074
|
+
const migrateValues = readStringArrayOption(options, "migrate");
|
|
1075
|
+
const { runDocs } = await import("./docs-3XZK22WF.js");
|
|
1076
|
+
const result = await runDocs(id, {
|
|
1077
|
+
add: addValues,
|
|
1078
|
+
addGlob: addGlobValues,
|
|
1079
|
+
remove: removeValues,
|
|
1080
|
+
migrate: migrateValues,
|
|
1081
|
+
note: readOptionString(options, "note"),
|
|
1082
|
+
list: Boolean(options.list),
|
|
1083
|
+
validatePaths: Boolean(options.validatePaths),
|
|
1084
|
+
audit: Boolean(options.audit),
|
|
1085
|
+
author: readOptionString(options, "author"),
|
|
1086
|
+
message: readOptionString(options, "message"),
|
|
1087
|
+
force: Boolean(options.force)
|
|
1088
|
+
}, globalOptions);
|
|
1089
|
+
if (addValues.length > 0 || addGlobValues.length > 0 || removeValues.length > 0 || migrateValues.length > 0) {
|
|
1090
|
+
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
1091
|
+
}
|
|
1092
|
+
printResult(result, globalOptions);
|
|
1093
|
+
if (globalOptions.profile) {
|
|
1094
|
+
printError(`profile:command=docs took_ms=${Date.now() - startedAt}`);
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
async function runDepsAction(id, options, command) {
|
|
1098
|
+
const globalOptions = getGlobalOptions(command);
|
|
1099
|
+
const startedAt = Date.now();
|
|
1100
|
+
const { runDeps } = await import("./deps-CCSWGZW7.js");
|
|
1101
|
+
const result = await runDeps(id, {
|
|
1102
|
+
format: options.format,
|
|
1103
|
+
maxDepth: readOptionString(options, "maxDepth"),
|
|
1104
|
+
collapse: options.collapse,
|
|
1105
|
+
summary: options.summary === true
|
|
1106
|
+
}, globalOptions);
|
|
1107
|
+
printResult(result, globalOptions);
|
|
1108
|
+
if (globalOptions.profile) {
|
|
1109
|
+
printError(`profile:command=deps took_ms=${Date.now() - startedAt}`);
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
790
1112
|
function registerMutationCommands(program) {
|
|
791
1113
|
const createCommand = program.command("create").argument("[typeOrTitle]", 'Item title, or item type when a title follows (e.g. `pm create task "Fix bug"`)').argument("[title]", "Item title when the first argument is an item type").description("Create a new project management item.");
|
|
792
1114
|
registerCommanderOptionContracts(createCommand, CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS);
|
|
793
1115
|
createCommand.option("--body-file <path>", "Load the item markdown body from a file (mutually exclusive with --body)").option("--clear-deps", "Clear dependency entries").option("--clear-comments", "Clear comments").option("--clear-notes", "Clear notes").option("--clear-learnings", "Clear learnings").option("--clear-files", "Clear linked files").option("--clear-tests", "Clear linked tests").option("--clear-docs", "Clear linked docs").option("--clear-reminders", "Clear reminders").option("--clear-events", "Clear events").option("--clear-type-options", "Clear type options").action(runCreateAction);
|
|
794
|
-
program.command("copy").argument("<id>", "Source item id").option("--title <value>", "Optional title override for the copied item").option("--author <value>", "Mutation author").option("--message <value>", "History message").description("Copy an item into a new item id while resetting lifecycle fields.").action(
|
|
795
|
-
|
|
796
|
-
const startedAt = Date.now();
|
|
797
|
-
const { runCopy } = await import("./copy-TLW7JTQT.js");
|
|
798
|
-
const result = await runCopy(id, {
|
|
799
|
-
title: typeof options.title === "string" ? options.title : void 0,
|
|
800
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
801
|
-
message: typeof options.message === "string" ? options.message : void 0
|
|
802
|
-
}, globalOptions);
|
|
803
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
804
|
-
printResult(result, globalOptions);
|
|
805
|
-
if (globalOptions.profile) {
|
|
806
|
-
printError(`profile:command=copy took_ms=${Date.now() - startedAt}`);
|
|
807
|
-
}
|
|
808
|
-
});
|
|
809
|
-
program.command("focus").argument("[id]", "Item id to focus (omit to show current focus)").option("--clear", "Clear the focused item").description("Set/clear/show the session focused item that new items default --parent to.").action(async (id, options, command) => {
|
|
810
|
-
const globalOptions = getGlobalOptions(command);
|
|
811
|
-
const startedAt = Date.now();
|
|
812
|
-
const { runFocus } = await import("./focus-C3PEJV2C.js");
|
|
813
|
-
const result = await runFocus(id, { clear: options.clear === true }, globalOptions);
|
|
814
|
-
printResult(result, globalOptions);
|
|
815
|
-
if (globalOptions.profile) {
|
|
816
|
-
printError(`profile:command=focus took_ms=${Date.now() - startedAt}`);
|
|
817
|
-
}
|
|
818
|
-
});
|
|
1116
|
+
program.command("copy").argument("<id>", "Source item id").option("--title <value>", "Optional title override for the copied item").option("--author <value>", "Mutation author").option("--message <value>", "History message").description("Copy an item into a new item id while resetting lifecycle fields.").action(runCopyAction);
|
|
1117
|
+
program.command("focus").argument("[id]", "Item id to focus (omit to show current focus)").option("--clear", "Clear the focused item").description("Set/clear/show the session focused item that new items default --parent to.").action(runFocusAction);
|
|
819
1118
|
const updateCommand = program.command("update").argument("<id>", "Item id").description("Update item fields and metadata.");
|
|
820
1119
|
registerCommanderOptionContracts(updateCommand, UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS);
|
|
821
1120
|
updateCommand.option("--body-file <path>", "Load the item markdown body from a file (mutually exclusive with --body)").option("--replace-deps", "Atomically replace dependency entries with the provided --dep values").option("--replace-tests", "Atomically replace linked test entries with the provided --test values").option("--clear-deps", "Clear dependency entries").option("--clear-comments", "Clear comments").option("--clear-notes", "Clear notes").option("--clear-learnings", "Clear learnings").option("--clear-files", "Clear linked files").option("--clear-tests", "Clear linked tests").option("--clear-docs", "Clear linked docs").option("--clear-reminders", "Clear reminders").option("--clear-events", "Clear events").option("--clear-type-options", "Clear type options").option("--allow-audit-update", "Allow non-owner metadata-only audit updates without requiring --force").option("--allow-audit-dep-update", "Allow non-owner append-only dependency updates without requiring --force").option("--force", "Force ownership override");
|
|
822
1121
|
addHiddenOption(updateCommand, "--allow_audit_update", "Alias for --allow-audit-update", false);
|
|
823
1122
|
addHiddenOption(updateCommand, "--allow_audit_dep_update", "Alias for --allow-audit-dep-update", false);
|
|
824
|
-
updateCommand.action(
|
|
825
|
-
const globalOptions = getGlobalOptions(command);
|
|
826
|
-
const startedAt = Date.now();
|
|
827
|
-
if (typeof options.bodyFile === "string") {
|
|
828
|
-
options.body = await resolveBodyFileContent(options.bodyFile, options.body !== void 0 ? String(options.body) : void 0);
|
|
829
|
-
delete options.bodyFile;
|
|
830
|
-
}
|
|
831
|
-
const { runUpdate } = await import("./update-MTCFES6X.js");
|
|
832
|
-
const result = await runUpdate(id, normalizeUpdateOptions(options), globalOptions);
|
|
833
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
834
|
-
printResult(result, globalOptions);
|
|
835
|
-
if (globalOptions.profile) {
|
|
836
|
-
printError(`profile:command=update took_ms=${Date.now() - startedAt}`);
|
|
837
|
-
}
|
|
838
|
-
});
|
|
1123
|
+
updateCommand.action(runUpdateAction);
|
|
839
1124
|
const updateManyCommand = program.command("update-many").description("Bulk-update matched items with dry-run plans and rollback checkpoints.").option("--filter-status <value>", "Filter by status before applying updates").option("--filter-type <value>", "Filter by item type before applying updates").option("--filter-tag <value>", "Filter by tag before applying updates").option("--filter-priority <value>", "Filter by priority before applying updates").option("--filter-deadline-before <value>", "Filter by deadline upper bound before applying updates").option("--filter-deadline-after <value>", "Filter by deadline lower bound before applying updates").option("--filter-updated-after <value>", "Filter by updated_at lower bound before applying updates (ISO/relative)").option("--filter-updated-before <value>", "Filter by updated_at upper bound before applying updates (ISO/relative)").option("--filter-created-after <value>", "Filter by created_at lower bound before applying updates (ISO/relative)").option("--filter-created-before <value>", "Filter by created_at upper bound before applying updates (ISO/relative)").option("--filter-assignee <value>", "Filter by assignee before applying updates").option("--filter-assignee-filter <value>", "Filter assignee presence: assigned|unassigned before applying updates").option("--filter-parent <value>", "Filter by parent item ID before applying updates").option("--filter-sprint <value>", "Filter by sprint before applying updates").option("--filter-release <value>", "Filter by release before applying updates").option("--filter-ac-missing", "Select only items missing acceptance_criteria (bulk backfill)").option("--filter-estimates-missing", "Select only items missing estimated_minutes (bulk backfill)").option("--filter-resolution-missing", "Select only terminal items missing resolution (bulk backfill)").option("--filter-metadata-missing", "Select only items missing any tracked metadata (AC, estimate, or resolution)");
|
|
840
1125
|
registerBulkContentAndGovernanceFilters(updateManyCommand, "applying updates");
|
|
841
1126
|
updateManyCommand.option("--ids <value>", "Restrict to an explicit comma-separated ID allowlist (intersected with other filters)").option("--limit <n>", "Limit matched item count before apply/preview").option("--offset <n>", "Skip first n matched rows before apply/preview").option("--dry-run", "Preview per-item diffs and checkpoint intent without mutating").option("--rollback <value>", "Rollback a prior update-many checkpoint ID").option("--no-checkpoint", "Disable checkpoint creation during apply mode").option("--title, -t <value>", "Set title").option("--description, -d <value>", "Set description").option("--body, -b <value>", "Set body (allow empty string)").option("--status, -s <value>", "Set status (use close command for closed)").option("--priority, -p <value>", "Set priority").option("--type <value>", "Set type").option("--tags <value>", "Set comma-separated tags (replaces existing). Use --add-tags / --remove-tags to mutate additively.").option("--add-tags <value>", "Add tags additively without replacing existing (repeatable; CSV accepted)", collect).option("--remove-tags <value>", "Remove tags from the existing list (repeatable; CSV accepted)", collect).option("--deadline <value>", "Set deadline (ISO/date string or relative)").option("--estimate, --estimated-minutes <value>", "Set estimated minutes").option("--acceptance-criteria <value>", "Set acceptance criteria").option("--ac <value>", "Alias for --acceptance-criteria").option("--definition-of-ready <value>", "Set definition of ready").option("--order <value>", "Set planning order/rank integer").option("--rank <value>", "Alias for --order").option("--goal <value>", "Set goal identifier").option("--objective <value>", "Set objective identifier").option("--value <value>", "Set business value summary").option("--impact <value>", "Set business impact summary").option("--outcome <value>", "Set expected outcome summary").option("--why-now <value>", "Set why-now rationale").option("--assignee <value>", "Set assignee").option("--parent <value>", "Set parent item ID").option("--reviewer <value>", "Set reviewer").option("--risk <value>", "Set risk level").option("--confidence <value>", "Set confidence level").option("--sprint <value>", "Set sprint identifier").option("--release <value>", "Set release identifier").option("--blocked-by <value>", "Set blocked-by item ID or reason").option("--blocked-reason <value>", "Set blocked reason").option("--unblock-note <value>", "Set unblock rationale note").option("--reporter <value>", "Set issue reporter").option("--severity <value>", "Set issue severity").option("--environment <value>", "Set issue environment context").option("--repro-steps <value>", "Set issue reproduction steps").option("--resolution <value>", "Set issue resolution summary").option("--expected-result <value>", "Set issue expected behavior").option("--expected <value>", "Short alias for --expected-result").option("--actual-result <value>", "Set issue observed behavior").option("--actual <value>", "Short alias for --actual-result").option("--affected-version <value>", "Set affected version identifier").option("--fixed-version <value>", "Set fixed version identifier").option("--component <value>", "Set issue component ownership").option("--regression <value>", "Set regression marker: true|false|1|0").option("--customer-impact <value>", "Set customer impact summary").option("--dep <value>", "Add dependency entry id=<id>,kind=<kind>,author=<author>,created_at=<timestamp>", collect).option("--dep-remove <value>", "Remove dependency entries by id/kind/author/timestamp signature", collect).option("--replace-deps", "Atomically replace dependency entries with provided --dep values").option("--replace-tests", "Atomically replace linked tests with provided --test values").option("--comment <value>", "Add comment seed author=<value>,created_at=<iso|now>,text=<value>", collect).option("--note <value>", "Add note seed author=<value>,created_at=<iso|now>,text=<value>", collect).option("--learning <value>", "Add learning seed author=<value>,created_at=<iso|now>,text=<value>", collect).option("--file <value>", "Add linked file path=<value>,scope=<project|global>,note=<text>", collect).option("--test <value>", "Add linked test command=<value>,path=<value>,scope=<project|global>", collect).option("--doc <value>", "Add linked doc path=<value>,scope=<project|global>,note=<text>", collect).option("--reminder <value>", "Add reminder entry at=<iso|relative>|date=<iso|relative>,text=<text>|title=<text>", collect).option("--event <value>", "Add event entry start=<iso|relative>,end=<iso|relative>,recur_*", collect).option("--type-option <value>", "Set type options key=value (repeatable)", collect).option("--unset <field>", "Clear scalar metadata field by name (repeatable)", collect).option("--clear-deps", "Clear dependency entries").option("--clear-comments", "Clear comments").option("--clear-notes", "Clear notes").option("--clear-learnings", "Clear learnings").option("--clear-files", "Clear linked files").option("--clear-tests", "Clear linked tests").option("--clear-docs", "Clear linked docs").option("--clear-reminders", "Clear reminders").option("--clear-events", "Clear events").option("--clear-type-options", "Clear type options").option("--allow-audit-update", "Allow non-owner metadata-only audit updates without requiring --force").option("--allow-audit-dep-update", "Allow non-owner append-only dependency updates without requiring --force").option("--author <value>", "Mutation author").option("--message <value>", "Mutation message").option("--force", "Force ownership override");
|
|
842
|
-
|
|
1127
|
+
addHiddenOptions(updateManyCommand, [
|
|
843
1128
|
["--filter-assignee_filter <value>", "Alias for --filter-assignee-filter"],
|
|
844
1129
|
["--estimated_minutes <value>", "Alias for --estimated-minutes"],
|
|
845
1130
|
["--acceptance_criteria <value>", "Alias for --acceptance-criteria"],
|
|
@@ -857,68 +1142,18 @@ function registerMutationCommands(program) {
|
|
|
857
1142
|
["--allow_audit_update", "Alias for --allow-audit-update"],
|
|
858
1143
|
["--allow_audit_dep_update", "Alias for --allow-audit-dep-update"],
|
|
859
1144
|
["--filter-estimate-missing", "Alias for --filter-estimates-missing"]
|
|
860
|
-
])
|
|
861
|
-
|
|
862
|
-
}
|
|
863
|
-
for (const [flags, description] of [
|
|
1145
|
+
], false);
|
|
1146
|
+
addHiddenOptions(updateManyCommand, [
|
|
864
1147
|
["--dep_remove <value>", "Alias for --dep-remove"],
|
|
865
1148
|
["--type_option <value>", "Alias for --type-option"],
|
|
866
1149
|
["--add_tags <value>", "Alias for --add-tags"],
|
|
867
1150
|
["--remove_tags <value>", "Alias for --remove-tags"]
|
|
868
|
-
])
|
|
869
|
-
|
|
870
|
-
}
|
|
871
|
-
updateManyCommand.action(async (options, command) => {
|
|
872
|
-
const globalOptions = getGlobalOptions(command);
|
|
873
|
-
const startedAt = Date.now();
|
|
874
|
-
const { runUpdateMany } = await import("./update-many-6YAYYRLE.js");
|
|
875
|
-
const result = await runUpdateMany({
|
|
876
|
-
status: typeof options.filterStatus === "string" ? options.filterStatus : void 0,
|
|
877
|
-
list: buildUpdateManyListOptions(options),
|
|
878
|
-
update: normalizeUpdateOptions(extractUpdateManyMutationOptionSource(options)),
|
|
879
|
-
dryRun: options.dryRun === true ? true : void 0,
|
|
880
|
-
rollback: typeof options.rollback === "string" ? options.rollback : void 0,
|
|
881
|
-
checkpoint: options.checkpoint === false ? false : void 0
|
|
882
|
-
}, globalOptions);
|
|
883
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
884
|
-
printResult(result, globalOptions);
|
|
885
|
-
if (globalOptions.profile) {
|
|
886
|
-
printError(`profile:command=update-many took_ms=${Date.now() - startedAt}`);
|
|
887
|
-
}
|
|
888
|
-
});
|
|
1151
|
+
], true);
|
|
1152
|
+
updateManyCommand.action(runUpdateManyAction);
|
|
889
1153
|
const closeCommand = program.command("close").argument("<id>", "Item id").argument("[text]", "Close reason text (alias: --reason)").option("-r, --reason <value>", "Close reason text (alias for positional <text>)").option("--close-reason <value>", "Close reason text (alias for positional <text>)").option("-d, --duplicate-of <id>", "Close as a duplicate of the canonical item id and auto-fill duplicate closure metadata").option("--author <value>", "Mutation author").option("-m, --message <value>", "History message").option("--validate-close [mode]", 'Validate closure metadata before close: "off", "warn", or "strict" (default: settings governance preset)').option("--resolution <value>", "Set the closure resolution summary inline (same field --validate-close strict checks; previously required a prior pm update)").option("--expected-result <value>", "Set the expected-result note inline (closure validation field)").option("--expected <value>", "Short alias for --expected-result").option("--actual-result <value>", "Set the actual-result note inline (closure validation field)").option("--actual <value>", "Short alias for --actual-result").option("--force", "Force ownership override").description("Close an item. Close reason requirement follows governance.require_close_reason.");
|
|
890
1154
|
addHiddenOption(closeCommand, "--expected_result <value>", "Alias for --expected-result", false);
|
|
891
1155
|
addHiddenOption(closeCommand, "--actual_result <value>", "Alias for --actual-result", false);
|
|
892
|
-
closeCommand.action(
|
|
893
|
-
const globalOptions = getGlobalOptions(command);
|
|
894
|
-
const startedAt = Date.now();
|
|
895
|
-
const { runClose } = await import("./close-YCWQQPDS.js");
|
|
896
|
-
const reasonFromOption = typeof options.reason === "string" && options.reason.trim().length > 0 && options.reason || typeof options.closeReason === "string" && options.closeReason.trim().length > 0 && options.closeReason || void 0;
|
|
897
|
-
const resolvedText = typeof text === "string" && text.length > 0 ? text : reasonFromOption;
|
|
898
|
-
const pickInlineString = (...candidates) => {
|
|
899
|
-
for (const candidate of candidates) {
|
|
900
|
-
if (typeof candidate === "string") {
|
|
901
|
-
return candidate;
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
return void 0;
|
|
905
|
-
};
|
|
906
|
-
const result = await runClose(id, resolvedText, {
|
|
907
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
908
|
-
message: typeof options.message === "string" ? options.message : void 0,
|
|
909
|
-
validateClose: options.validateClose === true ? "warn" : typeof options.validateClose === "string" ? options.validateClose : void 0,
|
|
910
|
-
force: Boolean(options.force),
|
|
911
|
-
duplicateOf: typeof options.duplicateOf === "string" ? options.duplicateOf : void 0,
|
|
912
|
-
resolution: typeof options.resolution === "string" ? options.resolution : void 0,
|
|
913
|
-
expectedResult: pickInlineString(options.expectedResult, options.expected_result, options.expected),
|
|
914
|
-
actualResult: pickInlineString(options.actualResult, options.actual_result, options.actual)
|
|
915
|
-
}, globalOptions);
|
|
916
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
917
|
-
printResult(result, globalOptions);
|
|
918
|
-
if (globalOptions.profile) {
|
|
919
|
-
printError(`profile:command=close took_ms=${Date.now() - startedAt}`);
|
|
920
|
-
}
|
|
921
|
-
});
|
|
1156
|
+
closeCommand.action(runCloseAction);
|
|
922
1157
|
const closeManyCommand = program.command("close-many").description("Bulk-close matched items with a shared reason and full runClose semantics (dry-run + rollback checkpoint).").option("--filter-status <value>", "Filter by status before closing").option("--filter-type <value>", "Filter by item type before closing").option("--filter-tag <value>", "Filter by tag before closing").option("--filter-priority <value>", "Filter by priority before closing").option("--filter-deadline-before <value>", "Filter by deadline upper bound before closing").option("--filter-deadline-after <value>", "Filter by deadline lower bound before closing").option("--filter-updated-after <value>", "Filter by updated_at lower bound before closing (ISO/relative)").option("--filter-updated-before <value>", "Filter by updated_at upper bound before closing (ISO/relative)").option("--filter-created-after <value>", "Filter by created_at lower bound before closing (ISO/relative)").option("--filter-created-before <value>", "Filter by created_at upper bound before closing (ISO/relative)").option("--filter-assignee <value>", "Filter by assignee before closing").option("--filter-assignee-filter <value>", "Filter assignee presence: assigned|unassigned before closing").option("--filter-parent <value>", "Filter by parent item ID before closing").option("--filter-sprint <value>", "Filter by sprint before closing").option("--filter-release <value>", "Filter by release before closing");
|
|
923
1158
|
registerBulkContentAndGovernanceFilters(closeManyCommand, "closing");
|
|
924
1159
|
closeManyCommand.option("--ids <value>", "Restrict to an explicit comma-separated ID allowlist (intersected with other filters)").option("--limit <n>", "Limit matched item count before apply/preview").option("--offset <n>", "Skip first n matched rows before apply/preview").option("--reason <value>", "Shared close reason applied to matched items (required when governance.require_close_reason is enabled)").option("--resolution <value>", "Shared closure resolution applied to every matched item (closure-validation field)").option("--expected-result <value>", "Shared expected-result note (closure-validation field)").option("--expected <value>", "Short alias for --expected-result").option("--actual-result <value>", "Shared actual-result note (closure-validation field)").option("--actual <value>", "Short alias for --actual-result").option("--validate-close [mode]", 'Validate closure metadata per item: "off", "warn", or "strict" (default: settings governance preset)').option("--author <value>", "Mutation author").option("--message <value>", "History message").option("--force", "Re-close already-terminal matches and override ownership").option("--dry-run", "Preview matched items + per-item skip/active-child plan without mutating").option("--rollback <value>", "Rollback a prior close-many checkpoint ID").option("--no-checkpoint", "Disable checkpoint creation during apply mode");
|
|
@@ -926,68 +1161,11 @@ function registerMutationCommands(program) {
|
|
|
926
1161
|
addHiddenOption(closeManyCommand, "--expected_result <value>", "Alias for --expected-result", false);
|
|
927
1162
|
addHiddenOption(closeManyCommand, "--actual_result <value>", "Alias for --actual-result", false);
|
|
928
1163
|
closeManyCommand.action(runCloseManyAction);
|
|
929
|
-
program.command("delete").argument("<id>", "Item id").option("--author <value>", "Mutation author").option("--message <value>", "History message").option("--force", "Force ownership override").option("--dry-run", "Preview the item file that would be deleted without mutating").description("Delete an item and record the change in history.").action(
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
const { runDelete } = await import("./delete-ANTOTI2I.js");
|
|
933
|
-
const result = await runDelete(id, {
|
|
934
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
935
|
-
message: typeof options.message === "string" ? options.message : void 0,
|
|
936
|
-
force: Boolean(options.force),
|
|
937
|
-
dryRun: options.dryRun === true
|
|
938
|
-
}, globalOptions);
|
|
939
|
-
if (result.dry_run !== true) {
|
|
940
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
941
|
-
}
|
|
942
|
-
printResult(result, globalOptions);
|
|
943
|
-
if (globalOptions.profile) {
|
|
944
|
-
printError(`profile:command=delete took_ms=${Date.now() - startedAt}`);
|
|
945
|
-
}
|
|
946
|
-
});
|
|
947
|
-
program.command("append").argument("<id>", "Item id").argument("[text]", "Optional body text shorthand (equivalent to --body; use - for stdin)").option("--body <value>", "Text to append to body (or - for stdin)").option("--text <value>", "Alias for --body").option("--author <value>", "Mutation author").option("--message <value>", "Mutation message").option("--force", "Force ownership override").description("Append text to an item's body.").action(async (id, text, options, command) => {
|
|
948
|
-
const globalOptions = getGlobalOptions(command);
|
|
949
|
-
const startedAt = Date.now();
|
|
950
|
-
const bodyFromOption = typeof options.body === "string" ? options.body : void 0;
|
|
951
|
-
const bodyFromAlias = typeof options.text === "string" ? options.text : void 0;
|
|
952
|
-
const bodyFromPositional = typeof text === "string" ? text : void 0;
|
|
953
|
-
const bodySourceCount = [bodyFromOption, bodyFromAlias, bodyFromPositional].filter((value) => value !== void 0).length;
|
|
954
|
-
if (bodySourceCount > 1) {
|
|
955
|
-
throw new PmCliError("Specify append text with exactly one source: positional [text], --body, or --text", EXIT_CODE.USAGE);
|
|
956
|
-
}
|
|
957
|
-
const resolvedBody = bodyFromOption ?? bodyFromAlias ?? bodyFromPositional;
|
|
958
|
-
if (resolvedBody === void 0) {
|
|
959
|
-
throw new PmCliError("Missing append text. Provide it as positional [text], --body <value>, or --text <value> (use - for stdin).", EXIT_CODE.USAGE);
|
|
960
|
-
}
|
|
961
|
-
const { runAppend } = await import("./append-UBM632FK.js");
|
|
962
|
-
const result = await runAppend(id, {
|
|
963
|
-
body: resolvedBody,
|
|
964
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
965
|
-
message: typeof options.message === "string" ? options.message : void 0,
|
|
966
|
-
force: Boolean(options.force)
|
|
967
|
-
}, globalOptions);
|
|
968
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
969
|
-
printResult(result, globalOptions);
|
|
970
|
-
if (globalOptions.profile) {
|
|
971
|
-
printError(`profile:command=append took_ms=${Date.now() - startedAt}`);
|
|
972
|
-
}
|
|
973
|
-
});
|
|
974
|
-
program.command("restore").argument("<id>", "Item id").argument("<target>", "Restore target timestamp or version number").option("--author <value>", "Mutation author").option("--message <value>", "History message").option("--force", "Force ownership/lock override").description("Restore an item to an earlier timestamp or version.").action(async (id, target, options, command) => {
|
|
975
|
-
const globalOptions = getGlobalOptions(command);
|
|
976
|
-
const startedAt = Date.now();
|
|
977
|
-
const { runRestore } = await import("./restore-5UEAGG3W.js");
|
|
978
|
-
const result = await runRestore(id, target, {
|
|
979
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
980
|
-
message: typeof options.message === "string" ? options.message : void 0,
|
|
981
|
-
force: Boolean(options.force)
|
|
982
|
-
}, globalOptions);
|
|
983
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
984
|
-
printResult(result, globalOptions);
|
|
985
|
-
if (globalOptions.profile) {
|
|
986
|
-
printError(`profile:command=restore took_ms=${Date.now() - startedAt}`);
|
|
987
|
-
}
|
|
988
|
-
});
|
|
1164
|
+
program.command("delete").argument("<id>", "Item id").option("--author <value>", "Mutation author").option("--message <value>", "History message").option("--force", "Force ownership override").option("--dry-run", "Preview the item file that would be deleted without mutating").description("Delete an item and record the change in history.").action(runDeleteAction);
|
|
1165
|
+
program.command("append").argument("<id>", "Item id").argument("[text]", "Optional body text shorthand (equivalent to --body; use - for stdin)").option("--body <value>", "Text to append to body (or - for stdin)").option("--text <value>", "Alias for --body").option("--author <value>", "Mutation author").option("--message <value>", "Mutation message").option("--force", "Force ownership override").description("Append text to an item's body.").action(runAppendAction);
|
|
1166
|
+
program.command("restore").argument("<id>", "Item id").argument("<target>", "Restore target timestamp or version number").option("--author <value>", "Mutation author").option("--message <value>", "History message").option("--force", "Force ownership/lock override").description("Restore an item to an earlier timestamp or version.").action(runRestoreAction);
|
|
989
1167
|
const planCommand = program.command("plan").description("Agent-optimized Plan item workflow: create, manage steps, link dependencies, approve, and materialize.").argument("[subcommand]", "Plan subcommand: create|show|add-step|update-step|complete-step|block-step|reorder-step|remove-step|link|unlink|decision|discovery|validation|resume|approve|materialize").argument("[id]", "Plan id (required for non-create subcommands); for create this may be the positional title").argument("[stepRef]", "Step reference: stable id (plan-step-001) or order integer").argument("[reorderTo]", "New order integer for reorder-step").option("--title <value>", "Plan title").option("--description <value>", "Plan description").option("--scope <value>", "Short scope statement of the target change or investigation").option("--parent <value>", "Parent pm item id").option("--related <value>", "Related pm item ids (repeatable, csv-friendly)", collect).option("--blocks <value>", "Pm item ids this plan blocks (repeatable, csv-friendly)", collect).option("--blocked-by <value>", "Pm item ids that block this plan (repeatable, csv-friendly)", collect).option("--harness <value>", "Plan harness provenance: codex|claude-code|cursor|generic").option("--mode <value>", "Plan mode: draft|research|review|approved|executing|paused|completed|superseded").option("--resume-context <value>", "Compact context summary for a future stateless agent").option("--tags <value>", "Comma-separated tags").option("--priority <value>", "Priority 0-4").option("--body <value>", "Plan item body").option("--claim", "Claim the plan on create for the author").option("--from-search <value>", "Record the search query that led to plan creation").option("--template <value>", "Seed plan steps from a built-in template: bug-investigation|feature-implementation|refactoring-sprint").option("--step-title <value>", "Step title for add-step / update-step").option("--step <value>", "Step title (repeatable on create: each --step appends an ordered step; elsewhere a single value aliases --step-title)", collect).option("--step-body <value>", "Step body text").option("--step-owner <value>", "Step owner").option("--step-status <value>", "Step status: pending|in_progress|completed|blocked|skipped|superseded").option("--step-evidence <value>", "Step evidence text (used by update-step/complete-step)").option("--step-blocked-reason <value>", "Step blocked reason (required when blocking)").option("--step-replacement <value>", "Replacement reference for a superseded step").option("--depends-on <value>", "Pm item ids the step depends on (repeatable, csv-friendly)", collect).option("--link <value>", "Pm item id to link (repeatable, csv-friendly)", collect).option("--link-kind <value>", "Link kind: related|blocks|blocked_by|depends_on|discovered_from|implements|verifies|supersedes").option("--link-note <value>", "Optional note for the link").option("--promote-to-item-dep", "Also add the linked id as a top-level item dependency when linking").option("--allow-multiple-active", "Allow multiple steps to be in_progress at once").option("--file <value>", "Step linked file path=<value>[,scope=project|global,note=<text>] (repeatable)", collect).option("--test <value>", "Step linked test command=<value>[,path=<value>,note=<text>] (repeatable)", collect).option("--doc <value>", "Step linked doc path=<value>[,scope=project|global,note=<text>] (repeatable)", collect).option("--decision-text <value>", "Decision log entry text").option("--decision <value>", "Alias for --decision-text").option("--decision-rationale <value>", "Decision log entry rationale").option("--decision-evidence <value>", "Decision log entry evidence").option("--discovery-text <value>", "Discovery log entry text").option("--discovery <value>", "Alias for --discovery-text").option("--validation-text <value>", "Validation log entry text").option("--validation <value>", "Alias for --validation-text").option("--validation-command <value>", "Validation log entry command").option("--validation-expected <value>", "Validation log entry expected outcome").option("--depth <value>", "Show depth: brief|standard|deep (default: brief)").option("--fields <value>", "Comma-separated field projection for show output").option("--steps <value>", "Comma-separated step ids/orders for materialize").option("--materialize-type <value>", "Item type for materialized steps (default: Task)").option("--materialize-parent <value>", "Parent item id for materialized children (default: the plan)").option("--materialize-tags <value>", "Comma-separated tags for materialized children").option("--author <value>", "Mutation author").option("--message <value>", "Mutation message").option("--force", "Force ownership override");
|
|
990
|
-
|
|
1168
|
+
addHiddenOptions(planCommand, [
|
|
991
1169
|
["--resume_context <value>", "Alias for --resume-context"],
|
|
992
1170
|
["--from_search <value>", "Alias for --from-search"],
|
|
993
1171
|
["--step_title <value>", "Alias for --step-title"],
|
|
@@ -1011,21 +1189,17 @@ function registerMutationCommands(program) {
|
|
|
1011
1189
|
["--materialize_type <value>", "Alias for --materialize-type"],
|
|
1012
1190
|
["--materialize_parent <value>", "Alias for --materialize-parent"],
|
|
1013
1191
|
["--materialize_tags <value>", "Alias for --materialize-tags"]
|
|
1014
|
-
])
|
|
1015
|
-
|
|
1016
|
-
}
|
|
1017
|
-
for (const [flags, description] of [
|
|
1192
|
+
], false);
|
|
1193
|
+
addHiddenOptions(planCommand, [
|
|
1018
1194
|
["--blocked_by <value>", "Alias for --blocked-by"],
|
|
1019
1195
|
["--depends_on <value>", "Alias for --depends-on"]
|
|
1020
|
-
])
|
|
1021
|
-
addHiddenOption(planCommand, flags, description, true);
|
|
1022
|
-
}
|
|
1196
|
+
], true);
|
|
1023
1197
|
planCommand.action(runPlanAction);
|
|
1024
1198
|
void planCommand;
|
|
1025
1199
|
program.command("history-redact").argument("<id>", "Item id").option("--literal <value>", "Literal string to redact (repeatable)", collect).option("--regex <value>", "Regex pattern to redact (repeatable; accepts /pattern/flags or raw pattern)", collect).option("--replacement <value>", 'Replacement string (default: "[redacted]")').option("--dry-run", "Preview redaction impact without writing item/history files").option("--author <value>", "Mutation author").option("--message <value>", "Audit history message for the redaction marker entry").option("--force", "Force ownership/lock override").description("Redact sensitive literals/patterns from an item history stream and recompute hashes.").action(async (id, options, command) => {
|
|
1026
1200
|
const globalOptions = getGlobalOptions(command);
|
|
1027
1201
|
const startedAt = Date.now();
|
|
1028
|
-
const { runHistoryRedact } = await import("./history-redact-
|
|
1202
|
+
const { runHistoryRedact } = await import("./history-redact-VVDOARNO.js");
|
|
1029
1203
|
const literal = Array.isArray(options.literal) ? options.literal : void 0;
|
|
1030
1204
|
const regex = Array.isArray(options.regex) ? options.regex : void 0;
|
|
1031
1205
|
const result = await runHistoryRedact(id, {
|
|
@@ -1048,7 +1222,7 @@ function registerMutationCommands(program) {
|
|
|
1048
1222
|
program.command("history-repair").argument("[id]", "Item id (omit with --all)").option("--all", "Scan every stream for drift and repair each drifted stream in one audited pass").option("--dry-run", "Preview the re-anchor impact without writing the history file").option("--author <value>", "Mutation author").option("--message <value>", "Audit history message for the repair marker entry").option("--force", "Force ownership/lock override").description("Re-anchor a drifted item history chain (recompute hashes, reconcile with the on-disk item) and record an audit marker. Use --all to repair every drifted stream.").action(async (id, options, command) => {
|
|
1049
1223
|
const globalOptions = getGlobalOptions(command);
|
|
1050
1224
|
const startedAt = Date.now();
|
|
1051
|
-
const { runHistoryRepair, runHistoryRepairAll, assertHistoryRepairTarget } = await import("./history-repair-
|
|
1225
|
+
const { runHistoryRepair, runHistoryRepairAll, assertHistoryRepairTarget } = await import("./history-repair-ZKS3LKPV.js");
|
|
1052
1226
|
const all = options.all === true;
|
|
1053
1227
|
assertHistoryRepairTarget(id, all);
|
|
1054
1228
|
const repairOptions = {
|
|
@@ -1076,183 +1250,15 @@ function registerMutationCommands(program) {
|
|
|
1076
1250
|
addHiddenOption(schemaCommand, "--default_status <status>", "Alias for --default-status", false);
|
|
1077
1251
|
schemaCommand.action(runSchemaAction);
|
|
1078
1252
|
const profileCommand = program.command("profile").argument("[subcommand]", "Profile subcommand: list, show, apply, or lint").argument("[name]", "Profile name for show/apply/lint: agile, ops, or research").option("--dry-run", "Preview the apply diff without writing any files (apply)").option("--author <value>", "Mutation author").option("--force", "Force ownership/lock override").description("List, show, apply, and lint project profiles \u2014 archetype bundles of item types, statuses, fields, workflows, config, templates, and recommended packages.");
|
|
1079
|
-
profileCommand.action(
|
|
1080
|
-
const globalOptions = getGlobalOptions(command);
|
|
1081
|
-
const startedAt = Date.now();
|
|
1082
|
-
const profileModule = await import("./profile-HUCENIEQ.js");
|
|
1083
|
-
const { PROFILE_SUBCOMMANDS } = profileModule;
|
|
1084
|
-
const normalizedSubcommand = (subcommand ?? "").trim().toLowerCase();
|
|
1085
|
-
if (!normalizedSubcommand) {
|
|
1086
|
-
throw new PmCliError(`pm profile requires a subcommand. Allowed: ${PROFILE_SUBCOMMANDS.join(", ")}`, EXIT_CODE.USAGE, {
|
|
1087
|
-
code: "missing_required_argument",
|
|
1088
|
-
examples: ["pm profile list", "pm profile show agile", "pm profile apply agile --dry-run", "pm profile lint agile"]
|
|
1089
|
-
});
|
|
1090
|
-
}
|
|
1091
|
-
if (!PROFILE_SUBCOMMANDS.includes(normalizedSubcommand)) {
|
|
1092
|
-
throw new PmCliError(`Unknown pm profile subcommand "${subcommand}". Allowed: ${PROFILE_SUBCOMMANDS.join(", ")}`, EXIT_CODE.USAGE, { code: "unknown_subcommand" });
|
|
1093
|
-
}
|
|
1094
|
-
const result = await dispatchProfileSubcommand(profileModule, normalizedSubcommand, name, options, globalOptions);
|
|
1095
|
-
if (globalOptions.json === true || globalOptions.defaultOutputFormat === "json") {
|
|
1096
|
-
printResult(result, globalOptions);
|
|
1097
|
-
} else if (!globalOptions.quiet) {
|
|
1098
|
-
renderProfileResultHuman(profileModule, result);
|
|
1099
|
-
}
|
|
1100
|
-
if (result.action === "lint" && !result.ok) {
|
|
1101
|
-
process.exitCode = EXIT_CODE.GENERIC_FAILURE;
|
|
1102
|
-
}
|
|
1103
|
-
if (globalOptions.profile) {
|
|
1104
|
-
printError(`profile:command=profile took_ms=${Date.now() - startedAt}`);
|
|
1105
|
-
}
|
|
1106
|
-
});
|
|
1253
|
+
profileCommand.action(runProfileAction);
|
|
1107
1254
|
program.command("comments").argument("<id>", "Item id").argument("[text]", "Optional comment text shorthand (equivalent to --add)").option("--add <text>", "Add one comment entry (plain text fallback, text=<value>, markdown pairs, or - for stdin; CSV-like key fragments are preserved as plain text unless text is explicit)").option("--stdin", "Read comment text from stdin (supports multiline markdown)").option("--file <path>", "Read comment text from file (supports multiline markdown)").option("--edit <index>", "Replace the comment at 1-based <index> (replacement text from positional [text], --add, --stdin, or --file)", parsePositiveIntOption("--edit")).option("--delete <index>", "Delete the comment at 1-based <index>", parsePositiveIntOption("--delete")).option("--limit <n>", "Return only latest n comments").option("--author [value]", "Comment author (optional; falls back to PM_AUTHOR/settings)").option("--message <value>", "History message").option("--allow-audit-comment", "Allow non-owner append-only comment audits (add/edit/delete) without requiring --force").option("--force", "Force ownership override").description("List, add, edit, or delete comments for an item.").action(runCommentsAction);
|
|
1108
|
-
program.command("notes").argument("<id>", "Item id").argument("[text]", "Optional note text shorthand (equivalent to --add; use - for stdin)").option("--add <text>", "Add one note entry (plain text fallback, text=<value>, markdown pairs, or - for stdin; CSV-like key fragments are preserved as plain text unless text is explicit)").option("--limit <n>", "Return only latest n notes").option("--author [value]", "Note author (optional; falls back to PM_AUTHOR/settings)").option("--message <value>", "History message").option("--allow-audit-note", "Allow non-owner append-only note audits without requiring --force").option("--allow-audit-comment", "Backward-compatible alias for --allow-audit-note").option("--force", "Force ownership override").description("List or add notes for an item.").action(
|
|
1109
|
-
|
|
1110
|
-
const startedAt = Date.now();
|
|
1111
|
-
const addFromOption = typeof options.add === "string" ? options.add : void 0;
|
|
1112
|
-
const addFromPositional = typeof text === "string" ? text : void 0;
|
|
1113
|
-
if (addFromOption !== void 0 && addFromPositional !== void 0) {
|
|
1114
|
-
throw new PmCliError("Specify note text either as positional [text] or with --add, not both", EXIT_CODE.USAGE);
|
|
1115
|
-
}
|
|
1116
|
-
const add = addFromOption ?? addFromPositional;
|
|
1117
|
-
const { runNotes } = await import("./notes-GDZIKGR6.js");
|
|
1118
|
-
const result = await runNotes(id, {
|
|
1119
|
-
add,
|
|
1120
|
-
limit: typeof options.limit === "string" ? options.limit : void 0,
|
|
1121
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
1122
|
-
message: typeof options.message === "string" ? options.message : void 0,
|
|
1123
|
-
allowAuditComment: Boolean(options.allowAuditNote || options.allowAuditComment),
|
|
1124
|
-
force: Boolean(options.force)
|
|
1125
|
-
}, globalOptions);
|
|
1126
|
-
if (typeof add === "string") {
|
|
1127
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
1128
|
-
}
|
|
1129
|
-
printResult(result, globalOptions);
|
|
1130
|
-
if (globalOptions.profile) {
|
|
1131
|
-
printError(`profile:command=notes took_ms=${Date.now() - startedAt}`);
|
|
1132
|
-
}
|
|
1133
|
-
});
|
|
1134
|
-
program.command("learnings").argument("<id>", "Item id").argument("[text]", "Optional learning text shorthand (equivalent to --add; use - for stdin)").option("--add <text>", "Add one learning entry (plain text fallback, text=<value>, markdown pairs, or - for stdin; CSV-like key fragments are preserved as plain text unless text is explicit)").option("--limit <n>", "Return only latest n learnings").option("--author [value]", "Learning author (optional; falls back to PM_AUTHOR/settings)").option("--message <value>", "History message").option("--allow-audit-learning", "Allow non-owner append-only learning audits without requiring --force").option("--allow-audit-comment", "Backward-compatible alias for --allow-audit-learning").option("--force", "Force ownership override").description("List or add learnings for an item.").action(async (id, text, options, command) => {
|
|
1135
|
-
const globalOptions = getGlobalOptions(command);
|
|
1136
|
-
const startedAt = Date.now();
|
|
1137
|
-
const addFromOption = typeof options.add === "string" ? options.add : void 0;
|
|
1138
|
-
const addFromPositional = typeof text === "string" ? text : void 0;
|
|
1139
|
-
if (addFromOption !== void 0 && addFromPositional !== void 0) {
|
|
1140
|
-
throw new PmCliError("Specify learning text either as positional [text] or with --add, not both", EXIT_CODE.USAGE);
|
|
1141
|
-
}
|
|
1142
|
-
const add = addFromOption ?? addFromPositional;
|
|
1143
|
-
const { runLearnings } = await import("./learnings-XSFSUUWK.js");
|
|
1144
|
-
const result = await runLearnings(id, {
|
|
1145
|
-
add,
|
|
1146
|
-
limit: typeof options.limit === "string" ? options.limit : void 0,
|
|
1147
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
1148
|
-
message: typeof options.message === "string" ? options.message : void 0,
|
|
1149
|
-
allowAuditComment: Boolean(options.allowAuditLearning || options.allowAuditComment),
|
|
1150
|
-
force: Boolean(options.force)
|
|
1151
|
-
}, globalOptions);
|
|
1152
|
-
if (typeof add === "string") {
|
|
1153
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
1154
|
-
}
|
|
1155
|
-
printResult(result, globalOptions);
|
|
1156
|
-
if (globalOptions.profile) {
|
|
1157
|
-
printError(`profile:command=learnings took_ms=${Date.now() - startedAt}`);
|
|
1158
|
-
}
|
|
1159
|
-
});
|
|
1255
|
+
program.command("notes").argument("<id>", "Item id").argument("[text]", "Optional note text shorthand (equivalent to --add; use - for stdin)").option("--add <text>", "Add one note entry (plain text fallback, text=<value>, markdown pairs, or - for stdin; CSV-like key fragments are preserved as plain text unless text is explicit)").option("--limit <n>", "Return only latest n notes").option("--author [value]", "Note author (optional; falls back to PM_AUTHOR/settings)").option("--message <value>", "History message").option("--allow-audit-note", "Allow non-owner append-only note audits without requiring --force").option("--allow-audit-comment", "Backward-compatible alias for --allow-audit-note").option("--force", "Force ownership override").description("List or add notes for an item.").action(runNotesAction);
|
|
1256
|
+
program.command("learnings").argument("<id>", "Item id").argument("[text]", "Optional learning text shorthand (equivalent to --add; use - for stdin)").option("--add <text>", "Add one learning entry (plain text fallback, text=<value>, markdown pairs, or - for stdin; CSV-like key fragments are preserved as plain text unless text is explicit)").option("--limit <n>", "Return only latest n learnings").option("--author [value]", "Learning author (optional; falls back to PM_AUTHOR/settings)").option("--message <value>", "History message").option("--allow-audit-learning", "Allow non-owner append-only learning audits without requiring --force").option("--allow-audit-comment", "Backward-compatible alias for --allow-audit-learning").option("--force", "Force ownership override").description("List or add learnings for an item.").action(runLearningsAction);
|
|
1160
1257
|
const filesCommand = program.command("files").description("Manage files linked to an item.");
|
|
1161
|
-
filesCommand.argument("<id>", "Item id").option("--add <value>", "Add linked file entry (CSV/markdown pairs or - for stdin)", collect).option("--add-glob <value>", "Add linked file entries from a glob (plain glob or pattern=<glob>,scope=<scope>,note=<text>; repeatable)", collect).option("--remove <value>", "Remove linked file by path only (path=<value>, path:<value>, plain path, or - for stdin); does not accept note=/scope= \u2014 record removal context with --message", collect).option("--migrate <value>", "Migrate linked file paths in-place (from=<prefix>,to=<prefix>; repeatable)", collect).option("--note <value>", "Note attached to every link added by --add/--add-glob in this invocation (embedded note= wins)").option("--list", "List linked files without mutating").option("--append-stable", "Preserve existing linked-file order and append new links without full-array resorting").option("--validate-paths", "Validate linked file paths for existence and file shape").option("--audit", "Audit linked file usage across all items for this item's linked paths").option("--author <value>", "Mutation author").option("--message <value>", "History message").option("--force", "Force ownership override").action(
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
const addGlobValues = Array.isArray(options.addGlob) ? options.addGlob : [];
|
|
1166
|
-
const removeValues = Array.isArray(options.remove) ? options.remove : [];
|
|
1167
|
-
const migrateValues = Array.isArray(options.migrate) ? options.migrate : [];
|
|
1168
|
-
const { runFiles } = await import("./files-GPIG77EN.js");
|
|
1169
|
-
const result = await runFiles(id, {
|
|
1170
|
-
add: addValues,
|
|
1171
|
-
addGlob: addGlobValues,
|
|
1172
|
-
remove: removeValues,
|
|
1173
|
-
migrate: migrateValues,
|
|
1174
|
-
note: typeof options.note === "string" ? options.note : void 0,
|
|
1175
|
-
list: Boolean(options.list),
|
|
1176
|
-
appendStable: Boolean(options.appendStable),
|
|
1177
|
-
validatePaths: Boolean(options.validatePaths),
|
|
1178
|
-
audit: Boolean(options.audit),
|
|
1179
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
1180
|
-
message: typeof options.message === "string" ? options.message : void 0,
|
|
1181
|
-
force: Boolean(options.force)
|
|
1182
|
-
}, globalOptions);
|
|
1183
|
-
if (addValues.length > 0 || addGlobValues.length > 0 || removeValues.length > 0 || migrateValues.length > 0) {
|
|
1184
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
1185
|
-
}
|
|
1186
|
-
printResult(result, globalOptions);
|
|
1187
|
-
if (globalOptions.profile) {
|
|
1188
|
-
printError(`profile:command=files took_ms=${Date.now() - startedAt}`);
|
|
1189
|
-
}
|
|
1190
|
-
});
|
|
1191
|
-
filesCommand.command("discover").argument("<id>", "Item id").option("--apply", "Add discovered missing files to the item").option("--note <value>", "Note to attach to discovered file links").option("--append-stable", "Preserve existing linked-file order and append discovered links without full-array resorting").option("--author <value>", "Mutation author").option("--message <value>", "History message").option("--force", "Force ownership override").description("Discover existing file paths referenced in item text and optionally link missing files.").action(async (id, options, command) => {
|
|
1192
|
-
const globalOptions = getGlobalOptions(command);
|
|
1193
|
-
const startedAt = Date.now();
|
|
1194
|
-
const mergedOptions = { ...command.optsWithGlobals(), ...options };
|
|
1195
|
-
const { runFilesDiscover } = await import("./files-GPIG77EN.js");
|
|
1196
|
-
const result = await runFilesDiscover(id, {
|
|
1197
|
-
apply: Boolean(mergedOptions.apply),
|
|
1198
|
-
note: typeof mergedOptions.note === "string" ? mergedOptions.note : void 0,
|
|
1199
|
-
appendStable: Boolean(mergedOptions.appendStable),
|
|
1200
|
-
author: typeof mergedOptions.author === "string" ? mergedOptions.author : void 0,
|
|
1201
|
-
message: typeof mergedOptions.message === "string" ? mergedOptions.message : void 0,
|
|
1202
|
-
force: Boolean(mergedOptions.force)
|
|
1203
|
-
}, globalOptions);
|
|
1204
|
-
if (result.changed) {
|
|
1205
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
1206
|
-
}
|
|
1207
|
-
printResult(result, globalOptions);
|
|
1208
|
-
if (globalOptions.profile) {
|
|
1209
|
-
printError(`profile:command=files.discover took_ms=${Date.now() - startedAt}`);
|
|
1210
|
-
}
|
|
1211
|
-
});
|
|
1212
|
-
program.command("docs").argument("<id>", "Item id").option("--add <value>", "Add linked doc entry (CSV/markdown pairs or - for stdin)", collect).option("--add-glob <value>", "Add linked doc entries from a glob (plain glob or pattern=<glob>,scope=<scope>,note=<text>; repeatable)", collect).option("--remove <value>", "Remove linked doc by path only (path=<value>, path:<value>, plain path, or - for stdin); does not accept note=/scope= \u2014 record removal context with --message", collect).option("--migrate <value>", "Migrate linked doc paths in-place (from=<prefix>,to=<prefix>; repeatable)", collect).option("--note <value>", "Note attached to every link added by --add/--add-glob in this invocation (embedded note= wins)").option("--list", "List linked docs without mutating").option("--validate-paths", "Validate linked doc paths for existence and file shape").option("--audit", "Audit linked doc usage across all items for this item's linked paths").option("--author <value>", "Mutation author").option("--message <value>", "History message").option("--force", "Force ownership override").description("Manage docs linked to an item.").action(async (id, options, command) => {
|
|
1213
|
-
const globalOptions = getGlobalOptions(command);
|
|
1214
|
-
const startedAt = Date.now();
|
|
1215
|
-
const addValues = Array.isArray(options.add) ? options.add : [];
|
|
1216
|
-
const addGlobValues = Array.isArray(options.addGlob) ? options.addGlob : [];
|
|
1217
|
-
const removeValues = Array.isArray(options.remove) ? options.remove : [];
|
|
1218
|
-
const migrateValues = Array.isArray(options.migrate) ? options.migrate : [];
|
|
1219
|
-
const { runDocs } = await import("./docs-XJNYBJGE.js");
|
|
1220
|
-
const result = await runDocs(id, {
|
|
1221
|
-
add: addValues,
|
|
1222
|
-
addGlob: addGlobValues,
|
|
1223
|
-
remove: removeValues,
|
|
1224
|
-
migrate: migrateValues,
|
|
1225
|
-
note: typeof options.note === "string" ? options.note : void 0,
|
|
1226
|
-
list: Boolean(options.list),
|
|
1227
|
-
validatePaths: Boolean(options.validatePaths),
|
|
1228
|
-
audit: Boolean(options.audit),
|
|
1229
|
-
author: typeof options.author === "string" ? options.author : void 0,
|
|
1230
|
-
message: typeof options.message === "string" ? options.message : void 0,
|
|
1231
|
-
force: Boolean(options.force)
|
|
1232
|
-
}, globalOptions);
|
|
1233
|
-
if (addValues.length > 0 || addGlobValues.length > 0 || removeValues.length > 0 || migrateValues.length > 0) {
|
|
1234
|
-
await invalidateSearchCachesForMutation(globalOptions, result);
|
|
1235
|
-
}
|
|
1236
|
-
printResult(result, globalOptions);
|
|
1237
|
-
if (globalOptions.profile) {
|
|
1238
|
-
printError(`profile:command=docs took_ms=${Date.now() - startedAt}`);
|
|
1239
|
-
}
|
|
1240
|
-
});
|
|
1241
|
-
program.command("deps").argument("<id>", "Item id").option("--format <value>", "Output format (tree or graph)", "tree").option("--max-depth <value>", "Maximum dependency traversal depth (0 keeps only the root)").option("--collapse <value>", "Collapse mode (none or repeated)", "none").option("--summary", "Return counts only without full tree/graph payload").description("Show dependency relationships for an item.").action(async (id, options, command) => {
|
|
1242
|
-
const globalOptions = getGlobalOptions(command);
|
|
1243
|
-
const startedAt = Date.now();
|
|
1244
|
-
const { runDeps } = await import("./deps-HPPE6MJN.js");
|
|
1245
|
-
const result = await runDeps(id, {
|
|
1246
|
-
format: options.format,
|
|
1247
|
-
maxDepth: typeof options.maxDepth === "string" ? options.maxDepth : void 0,
|
|
1248
|
-
collapse: options.collapse,
|
|
1249
|
-
summary: options.summary === true
|
|
1250
|
-
}, globalOptions);
|
|
1251
|
-
printResult(result, globalOptions);
|
|
1252
|
-
if (globalOptions.profile) {
|
|
1253
|
-
printError(`profile:command=deps took_ms=${Date.now() - startedAt}`);
|
|
1254
|
-
}
|
|
1255
|
-
});
|
|
1258
|
+
filesCommand.argument("<id>", "Item id").option("--add <value>", "Add linked file entry (CSV/markdown pairs or - for stdin)", collect).option("--add-glob <value>", "Add linked file entries from a glob (plain glob or pattern=<glob>,scope=<scope>,note=<text>; repeatable)", collect).option("--remove <value>", "Remove linked file by path only (path=<value>, path:<value>, plain path, or - for stdin); does not accept note=/scope= \u2014 record removal context with --message", collect).option("--migrate <value>", "Migrate linked file paths in-place (from=<prefix>,to=<prefix>; repeatable)", collect).option("--note <value>", "Note attached to every link added by --add/--add-glob in this invocation (embedded note= wins)").option("--list", "List linked files without mutating").option("--append-stable", "Preserve existing linked-file order and append new links without full-array resorting").option("--validate-paths", "Validate linked file paths for existence and file shape").option("--audit", "Audit linked file usage across all items for this item's linked paths").option("--author <value>", "Mutation author").option("--message <value>", "History message").option("--force", "Force ownership override").action(runFilesAction);
|
|
1259
|
+
filesCommand.command("discover").argument("<id>", "Item id").option("--apply", "Add discovered missing files to the item").option("--note <value>", "Note to attach to discovered file links").option("--append-stable", "Preserve existing linked-file order and append discovered links without full-array resorting").option("--author <value>", "Mutation author").option("--message <value>", "History message").option("--force", "Force ownership override").description("Discover existing file paths referenced in item text and optionally link missing files.").action(runFilesDiscoverAction);
|
|
1260
|
+
program.command("docs").argument("<id>", "Item id").option("--add <value>", "Add linked doc entry (CSV/markdown pairs or - for stdin)", collect).option("--add-glob <value>", "Add linked doc entries from a glob (plain glob or pattern=<glob>,scope=<scope>,note=<text>; repeatable)", collect).option("--remove <value>", "Remove linked doc by path only (path=<value>, path:<value>, plain path, or - for stdin); does not accept note=/scope= \u2014 record removal context with --message", collect).option("--migrate <value>", "Migrate linked doc paths in-place (from=<prefix>,to=<prefix>; repeatable)", collect).option("--note <value>", "Note attached to every link added by --add/--add-glob in this invocation (embedded note= wins)").option("--list", "List linked docs without mutating").option("--validate-paths", "Validate linked doc paths for existence and file shape").option("--audit", "Audit linked doc usage across all items for this item's linked paths").option("--author <value>", "Mutation author").option("--message <value>", "History message").option("--force", "Force ownership override").description("Manage docs linked to an item.").action(runDocsAction);
|
|
1261
|
+
program.command("deps").argument("<id>", "Item id").option("--format <value>", "Output format (tree or graph)", "tree").option("--max-depth <value>", "Maximum dependency traversal depth (0 keeps only the root)").option("--collapse <value>", "Collapse mode (none or repeated)", "none").option("--summary", "Return counts only without full tree/graph payload").description("Show dependency relationships for an item.").action(runDepsAction);
|
|
1256
1262
|
}
|
|
1257
1263
|
export {
|
|
1258
1264
|
looksLikeSchemaSubcommandTypo,
|
|
@@ -1261,4 +1267,4 @@ export {
|
|
|
1261
1267
|
registerCommanderOptionContracts,
|
|
1262
1268
|
registerMutationCommands
|
|
1263
1269
|
};
|
|
1264
|
-
//# sourceMappingURL=register-mutation-
|
|
1270
|
+
//# sourceMappingURL=register-mutation-ET6E4VLE.js.map
|